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

# IDStorageQueueX

> IDStorageQueueX

# IDStorageQueueX

Represents a DirectStorage queue.

## Syntax

```cpp theme={null}
class IDStorageQueueX : public IUnknown  
```

## Methods

| Method                                                                                                                       | Description                                                      |
| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [CancelRequestsWithTag](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_cancelrequestswithtag) | Attempts to cancel a group of previously enqueued read requests. |
| [IDStorageQueueX::Close](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_close)                | Closes the DirectStorage queue.                                  |
| [EnqueueRequest](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuerequest)               | Enqueues a read request.                                         |
| [EnqueueSignal](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuesignal)                 | Enqueues a fence write.                                          |
| [EnqueueStatus](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus)                 | Enqueues a status write.                                         |
| [GetErrorEvent](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_geterrorevent)                 | Obtains an event to wait on.                                     |
| [RetrieveErrorRecord](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_retrieveerrorrecord)     | Retrieves an error record.                                       |
| [Submit](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_submit)                               | Submits enqueued requests to DirectStorage.                      |
| [Query](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_query)                                 | 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. All entries in a DirectStorage queue complete in the
order they are enqueued.

For more information, see the "IDStorageQueueX" 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)\
[DStorage](/reference/system/dstorage/dstorage_members)
