> ## 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.

# IDStorageFactoryX2::CreateQueue1

> IDStorageFactoryX2::CreateQueue1

# IDStorageFactoryX2::CreateQueue1

创建 DirectStorage 队列对象。

## Syntax

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

### Parameters

*desc*\
类型：[DSTORAGE\_QUEUE\_DESC1](/reference/system/dstorage/structs/dstorage_queue_desc1) \*

指定队列属性的描述符，其中包括禁用所创建队列的自动提交功能的能力。

*riid*\
类型：REFIID

指定 DirectStorage 队列接口，例如 `__uuidof(IDStorageQueueX2)`。

*ppv*   \_COM\_Outptr\_\
类型：void \*\*

返回指向所创建对象的指针。

### Return value

类型：HRESULT

标准 HRESULT 错误代码。

## Remarks

DirectStorage 队列会暂存读取请求，直到游戏调用队列的 [Submit](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_submit) 方法。DirectStorage 队列中的所有条目均按其入队顺序完成。

有关详细信息，请参阅 [DirectStorage 概述](/build/console-features/storage/directstorage/directstorage-overview) 中的“IDStorageQueueX2”一节。

## Requirements

**头文件：** dstorage\_xs.h

**库：** dstorage\_xs.lib

**受支持的平台：** XBOX Series 主机

## See also

[IDStorageFactoryX2](/reference/system/dstorage/interfaces/IDStorageFactoryX2/idstoragefactoryx2)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [IDStorageQueueX2](/zh-CN/reference/system/dstorage/interfaces/IDStorageQueueX2/idstoragequeuex2.md)
- [DSTORAGE_QUEUE_OPTIONS](/zh-CN/reference/system/dstorage/structs/dstorage_queue_options.md)
- [IDStorageFactoryX2](/zh-CN/reference/system/dstorage/interfaces/IDStorageFactoryX2/idstoragefactoryx2.md)
- [DirectStorage 概述](/zh-CN/build/console-features/storage/directstorage/directstorage-overview.md)
- [DStorageGetFactory](/zh-CN/reference/system/dstorage/functions/dstoragegetfactory.md)
