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

# XGameUiShowErrorDialogResult

> XGameUiShowErrorDialogResult

# XGameUiShowErrorDialogResult

Gets the result of a call to [XGameUiShowErrorDialogAsync](/reference/system/xgameui/functions/xgameuishowerrordialogasync).

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT XGameUiShowErrorDialogResult(  
         XAsyncBlock* async  
)  
```

<a id="parametersSection" />

### Parameters

*async*   \_In\_\
Type: [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)\*

A pointer to the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) object that was passed to [XGameUiShowErrorDialogAsync](/reference/system/xgameui/functions/xgameuishowerrordialogasync).

<a id="retvalSection" />

### Return value

Type: HRESULT

HRESULT success or error code.

<a id="remarksSection" />

## Remarks

Typically, you specify this function in [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) as the callback function for [XGameUiShowErrorDialogAsync](/reference/system/xgameui/functions/xgameuishowerrordialogasync).

You can also retrieve the result by calling this function after `XGameUiShowErrorDialogAsync` completes.

<a id="requirementsSection" />

## Requirements

**Header:** XGameUI.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, Steam Deck, XBOX One family consoles and XBOX Series consoles

<a id="seealsoSection" />

## See also

[XGameUI](/reference/system/xgameui/xgameui_members)


## Related topics

- [XGameUI](/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowErrorDialogAsync](/reference/system/xgameui/functions/xgameuishowerrordialogasync.md)
- [XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync.md)
- [XGameUiShowErrorDialogUiCallback](/reference/system/xgameui/functions/xgameuishowerrordialoguicallback.md)
- [XGameUiShowMessageDialogResult](/reference/system/xgameui/functions/xgameuishowmessagedialogresult.md)
