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

# IDStorageQueueX2

> IDStorageQueueX2

# IDStorageQueueX2

Represents a DirectStorage queue.
Extends the [IDStorageQueueX1](/reference/system/dstorage/interfaces/IDStorageQueueX1/idstoragequeuex1) interface.

## Syntax

```cpp theme={null}
class IDStorageQueueX2 : public IDStorageQueueX1  
```

## Methods

| Method                                                                                          | Description                          |
| ----------------------------------------------------------------------------------------------- | ------------------------------------ |
| [Query1](/reference/system/dstorage/interfaces/IDStorageQueueX2/methods/idstoragequeuex_query1) | Obtains information about the queue. |

## Remarks

A DirectStorage queue holds entries until the title calls
[Submit](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_submit) on the queue, or one of the Enqueue methods
fills more than half of the queue's capacity since last submission and triggers
an automatic submission, if it is enabled for this queue. All entries in a DirectStorage queue complete in the
order they are enqueued.

`IDStorageQueueX2` extends `IDStorageQueueX1` with
[Query1](/reference/system/dstorage/interfaces/IDStorageQueueX2/methods/idstoragequeuex_query1) method to query the information about the queue, including the ability to disable the auto-submit feature of a DirectStorage Queue.

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

## Requirements

**Header:** dstorage\_xs.h

**Library:** dstorage.lib

**Supported platforms:** XBOX Series consoles

## See also

[IDStorageFactoryX::CreateQueue](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_createqueue)\
[IDStorageFactoryX2::CreateQueue1](/reference/system/dstorage/interfaces/IDStorageFactoryX2/methods/idstoragefactoryx_createqueue1)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [DirectStorage Overview](/build/console-features/storage/directstorage/directstorage-overview.md)
- [IDStorageQueueX2::Query1](/reference/system/dstorage/interfaces/IDStorageQueueX2/methods/idstoragequeuex_query1.md)
- [IDStorageFactoryX2::CreateQueue1](/reference/system/dstorage/interfaces/IDStorageFactoryX2/methods/idstoragefactoryx_createqueue1.md)
- [DStorage](/reference/system/dstorage/dstorage_members.md)
- [DSTORAGE_QUEUE_INFO1](/reference/system/dstorage/structs/dstorage_queue_info1.md)
