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

# IDStorageStatusArrayX::GetHResult

> IDStorageStatusArrayX::GetHResult

# IDStorageStatusArrayX::GetHResult

返回指定状态条目与上一个状态条目或 fence 之间首个失败请求的 HRESULT 代码。

## Syntax

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

### Parameters

*index*\
类型：UINT32

指定要检索的状态条目的索引。

### Return value

类型：HRESULT

请求的 HRESULT 代码。

## Remarks

* 如果有请求尚未完成，则返回值为 `E_PENDING`。
* 如果所有请求都已完成且发生了一个或多个失败，则返回值为该指定状态条目与上一个状态条目或 fence 之间首个失败请求的失败代码。
* 如果所有请求都已成功完成，则返回值为 `S_OK`。

## Requirements

**头文件：** dstorage\_xs.h

**库：** dstorage\_xs.lib

**受支持的平台：** XBOX Series 主机

## See also

[IDStorageStatusArrayX::IsComplete](/reference/system/dstorage/interfaces/IDStorageStatusArrayX/methods/idstoragestatusarrayx_iscomplete)\
[IDStorageStatusArrayX](/reference/system/dstorage/interfaces/IDStorageStatusArrayX/idstoragestatusarrayx)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [IDStorageStatusArrayX::IsComplete](/zh-CN/reference/system/dstorage/interfaces/IDStorageStatusArrayX/methods/idstoragestatusarrayx_iscomplete.md)
- [IDStorageFactoryX::SetDebugFlags](/zh-CN/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags.md)
- [IDStorageStatusArrayX](/zh-CN/reference/system/dstorage/interfaces/IDStorageStatusArrayX/idstoragestatusarrayx.md)
- [IDStorageQueueX::EnqueueStatus](/zh-CN/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus.md)
- [IDStorageFactoryX::CreateStatusArray](/zh-CN/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_createstatusarray.md)
