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

> IDStorageFactoryX2

# IDStorageFactoryX2

Represents the static DirectStorage factory object.
Extends the [IDStorageFactoryX1](/reference/system/dstorage/interfaces/IDStorageFactoryX1/idstoragefactoryx1) interface.

## Syntax

```cpp theme={null}
class IDStorageFactoryX2 : public IDStorageFactoryX1  
```

## Methods

| Method                                                                                                          | Description                           |
| --------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| [CreateQueue1](/reference/system/dstorage/interfaces/IDStorageFactoryX2/methods/idstoragefactoryx_createqueue1) | Creates a DirectStorage queue object. |

## Remarks

Use the DirectStorage factory object to create DirectStorage queues, open files for DirectStorage access, and perform global operations.

To obtain a pointer to the `IDStorageFactoryX2` singleton, use [DStorageGetFactory](/reference/system/dstorage/functions/dstoragegetfactory).

For more information, see the "IDStorageFactoryX", "IDStorageFactoryX1" and "IDStorageFactoryX2"
sections of [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](/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx)\
[IDStorageFactoryX1](/reference/system/dstorage/interfaces/IDStorageFactoryX1/idstoragefactoryx1)\
[DStorageGetFactory](/reference/system/dstorage/functions/dstoragegetfactory)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [DirectStorage Overview](/build/console-features/storage/directstorage/directstorage-overview.md)
- [IDStorageFactoryX2::CreateQueue1](/reference/system/dstorage/interfaces/IDStorageFactoryX2/methods/idstoragefactoryx_createqueue1.md)
- [DStorageGetFactory](/reference/system/dstorage/functions/dstoragegetfactory.md)
- [IDStorageQueueX2](/reference/system/dstorage/interfaces/IDStorageQueueX2/idstoragequeuex2.md)
- [DStorage](/reference/system/dstorage/dstorage_members.md)
