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

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](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus) を呼び出します。

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

## 要件

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

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

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

## 関連項目

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


## Related topics

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