> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateQueue

> IDStorageFactoryX::CreateQueue

# IDStorageFactoryX::CreateQueue

DirectStorage キュー オブジェクトを作成します。

## 構文

```cpp theme={null}
HRESULT CreateQueue(  
         const DSTORAGE_QUEUE_DESC *desc,  
         REFIID riid,  
         void **ppv  
)  
```

### パラメーター

*desc*\
Type: [DSTORAGE\_QUEUE\_DESC](https://docs.xbox.com/ja-jp/reference/system/dstorage/structs/dstorage_queue_desc.md) \*

キューのプロパティを指定するディスクリプター。

*riid*\
Type: REFIID

`__uuidof(IDStorageQueueX)` などの DirectStorage キュー インターフェイスを指定します。

*ppv*   \_COM\_Outptr\_\
Type: void \*\*

作成されたオブジェクトへのポインターを返します。

### 戻り値

Type: HRESULT

標準の HRESULT エラー コード。

## 解説

DirectStorage キューは、タイトルがキューで [Submit](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_submit.md) を呼び出すまで読み取り要求を保持します。DirectStorage キュー内のすべてのエントリは、キューに入れられた順序で完了します。

詳細については、[DirectStorage の概要](https://docs.xbox.com/ja-jp/build/console-features/storage/directstorage/directstorage-overview.md) の「IDStorageQueueX」セクションを参照してください。

## 要件

**ヘッダー:** dstorage\_xs.h

**ライブラリ:** dstorage\_xs.lib

**サポートされているプラットフォーム:** XBOX Series 本体

## 関連項目

[IDStorageFactoryX](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx.md)\
[DStorage](https://docs.xbox.com/ja-jp/reference/system/dstorage/dstorage_members.md)


## Related topics

- [IDStorageQueueX::Close](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_close.md)
- [IDStorageQueueX2 (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX2/idstoragequeuex2.md)
- [IDStorageQueueX (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/idstoragequeuex.md)
- [IDStorageQueueX1 (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX1/idstoragequeuex1.md)
- [DSTORAGE_QUEUE_DESC](https://docs.xbox.com/ja-jp/reference/system/dstorage/structs/dstorage_queue_desc.md)
