> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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](https://docs.xbox.com/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus.md).

For more information, see the "EnqueueStatus/EnqueueSignal" section in [DirectStorage Overview](https://docs.xbox.com/build/console-features/storage/directstorage/directstorage-overview.md).

## Requirements

**Header:** dstorage\_xs.h

**Library:** dstorage\_xs.lib

**Supported platforms:** XBOX Series consoles

## See also

[IDStorageFactoryX](https://docs.xbox.com/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx.md)\
[DStorage](https://docs.xbox.com/reference/system/dstorage/dstorage_members.md)


## Related topics

- [EnqueueStatus](https://docs.xbox.com/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus.md)
- [IDStorageFactoryX (Interface contents)](https://docs.xbox.com/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx.md)
- [DirectStorage Overview](https://docs.xbox.com/build/console-features/storage/directstorage/directstorage-overview.md)
- [LampArrayStatusCallback](https://docs.xbox.com/reference/lighting/lamparray/functions/lamparraystatuscallback.md)
- [LampArrayStatus Enumeration](https://docs.xbox.com/reference/lighting/lamparray/enums/lamparraystatus.md)
