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

Returns the HRESULT code of the first failed request between the specified status entry and the previous status entry or fence.

## Syntax

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

### Parameters

*index*\
Type: UINT32

Specifies the index of the status entry to retrieve.

### Return value

Type: HRESULT

HRESULT code of the requests.

## Remarks

* If any requests have not completed yet, the return value is `E_PENDING`.
* If all requests have completed and one or more failures occurred, the return value is the failure code of the first failed request between the specified status entry and the previous status entry or fence.
* If all requests have completed successfully, the return value is `S_OK`.

## Requirements

**Header:** dstorage\_xs.h

**Library:** dstorage\_xs.lib

**Supported platforms:** XBOX Series consoles

## 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](/reference/system/dstorage/interfaces/IDStorageStatusArrayX/methods/idstoragestatusarrayx_iscomplete.md)
- [IDStorageFactoryX::SetDebugFlags](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags.md)
- [IDStorageStatusArrayX](/reference/system/dstorage/interfaces/IDStorageStatusArrayX/idstoragestatusarrayx.md)
- [IDStorageQueueX::EnqueueStatus](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus.md)
- [IDStorageFactoryX::CreateStatusArray](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_createstatusarray.md)
