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

Creates a DirectStorage queue object.

## Syntax

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

### Parameters

*desc*\
Type: [DSTORAGE\_QUEUE\_DESC1](/reference/system/dstorage/structs/dstorage_queue_desc1) \*

Descriptor that specifies the properties of the queue, including the ability to disable the auto-submit feature of a created queue.

*riid*\
Type: REFIID

Specifies the DirectStorage queue interface, such as `__uuidof(IDStorageQueueX2)`.

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

Returns a pointer to the created object.

### Return value

Type: HRESULT

Standard HRESULT error code.

## Remarks

A DirectStorage queue holds read requests until the title calls [Submit](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_submit) on the queue. All entries in a DirectStorage queue complete in the order they are enqueued.

For more information, see the "IDStorageQueueX2" section in [DirectStorage Overview](/build/console-features/storage/directstorage/directstorage-overview).

## Requirements

**Header:** dstorage\_xs.h

**Library:** dstorage\_xs.lib

**Supported platforms:** XBOX Series consoles

## See also

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


## Related topics

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