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

# IDStorageFactoryX::CreateStatusArray

DirectStorage ステータス配列オブジェクトを作成します。

## 構文

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

### パラメーター

*capacity*\
Type: UINT32

配列に保持できるステータス エントリの数を指定します。

*name*\
Type: PCSTR

ステータス配列の名前。デバッグに使用されます。

*riid*\
Type: REFIID

`__uuidof(IDStorageStatusArrayX)` などの DirectStorage ステータス インターフェイスを指定します。

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

新しく作成されたステータス配列オブジェクトを受け取ります。

### 戻り値

Type: HRESULT

標準の HRESULT エラー コード。

## 解説

DirectStorage ステータス配列は、完了ステータス フラグを格納します。ステータス書き込みをキューに入れるには、[IDStorageQueueX::EnqueueStatus](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus.md) を呼び出します。

詳細については、[DirectStorage の概要](https://docs.xbox.com/ja-jp/build/console-features/storage/directstorage/directstorage-overview.md) の「EnqueueStatus/EnqueueSignal」セクションを参照してください。

## 要件

**ヘッダー:** dstorage\_xs.h

**ライブラリ:** dstorage\_xs.lib

**サポートされているプラットフォーム:** XBOX Series 本体

## 関連項目

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


## Related topics

- [EnqueueStatus](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus.md)
- [IDStorageFactoryX (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx.md)
- [DirectStorage の概要](https://docs.xbox.com/ja-jp/build/console-features/storage/directstorage/directstorage-overview.md)
- [LampArrayStatusCallback](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/functions/lamparraystatuscallback.md)
- [RegisterLampArrayStatusCallback](https://docs.xbox.com/ja-jp/reference/lighting/lamparray/functions/registerlamparraystatuscallback.md)
