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

# GetHResult

> IDStorageStatusArrayX::GetHResult

# IDStorageStatusArrayX::GetHResult

指定されたステータス エントリと前のステータス エントリまたはフェンスの間で、最初に失敗した要求の HRESULT コードを返します。

## 構文

```cpp theme={null}
HRESULT GetHResult(  
         UINT32 index  
)  
```

### パラメーター

*index*\
Type: UINT32

取得するステータス エントリのインデックスを指定します。

### 戻り値

Type: HRESULT

要求の HRESULT コード。

## 解説

* いずれかの要求がまだ完了していない場合、戻り値は `E_PENDING` です。
* すべての要求が完了して、1 つ以上の失敗が発生した場合、戻り値は指定されたステータス エントリと前のステータス エントリまたはフェンスの間で最初に失敗した要求の失敗コードです。
* すべての要求が正常に完了した場合、戻り値は `S_OK` です。

## 要件

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

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

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

## 関連項目

[IDStorageStatusArrayX::IsComplete](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageStatusArrayX/methods/idstoragestatusarrayx_iscomplete.md)\
[IDStorageStatusArrayX](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageStatusArrayX/idstoragestatusarrayx.md)\
[DStorage](https://docs.xbox.com/ja-jp/reference/system/dstorage/dstorage_members.md)


## Related topics

- [IsComplete](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageStatusArrayX/methods/idstoragestatusarrayx_iscomplete.md)
- [IDStorageStatusArrayX (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageStatusArrayX/idstoragestatusarrayx.md)
- [SetDebugFlags](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags.md)
- [XAsyncGetResult](https://docs.xbox.com/ja-jp/reference/system/xasyncprovider/functions/xasyncgetresult.md)
- [XblLeaderboardResultGetNextResult](https://docs.xbox.com/ja-jp/reference/live/xsapi-c/leaderboard_c/functions/xblleaderboardresultgetnextresult.md)
