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

# IDStorageFactoryX::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](/reference/system/dstorage/structs/dstorage_queue_desc) \*

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

*riid*\
Type: REFIID

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

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

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

### 戻り値

Type: HRESULT

標準の HRESULT エラー コード。

## 解説

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

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

## 要件

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

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

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

## 関連項目

[IDStorageFactoryX](/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [IDStorageQueueX2](/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX2/idstoragequeuex2.md)
- [IDStorageQueueX](/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/idstoragequeuex.md)
- [IDStorageQueueX1](/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX1/idstoragequeuex1.md)
- [IDStorageQueueX::Close](/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_close.md)
- [DSTORAGE_REQUEST_SOURCE_TYPE](/ja-jp/reference/system/dstorage/enums/dstorage_request_source_type.md)
