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

# IDStorageFactoryX::CreateStatusArray

> IDStorageFactoryX::CreateStatusArray

# IDStorageFactoryX::CreateStatusArray

Creates a DirectStorage status array object.

## Syntax

```cpp theme={null}
HRESULT CreateStatusArray(  
         UINT32 capacity,  
         PCSTR name,
         REFIID riid,  
         void **ppv  
)  
```

### Parameters

*capacity*\
Type: UINT32

Specifies the number of status entries the array can hold.

*name*\
Type: PCSTR

The name of the status array. Used for debugging.

*riid*\
Type: REFIID

Specifies the DirectStorage status interface, such as `__uuidof(IDStorageStatusArrayX)`.

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

Receives the newly created status array object.

### Return value

Type: HRESULT

Standard HRESULT error code.

## Remarks

A DirectStorage status array stores completion-status flags. To enqueue a status write, call [IDStorageQueueX::EnqueueStatus](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus).

For more information, see the "EnqueueStatus/EnqueueSignal" 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

[IDStorageFactoryX](/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [IDStorageQueueX::EnqueueStatus](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus.md)
- [IDStorageFactoryX::CreateQueue](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_createqueue.md)
- [IDStorageFactoryX](/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx.md)
- [DirectStorage Overview](/build/console-features/storage/directstorage/directstorage-overview.md)
- [IDStorageFactoryX::SetDebugFlags](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags.md)
