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

# XGameUiShowErrorDialogResult

> XGameUiShowErrorDialogResult

Gets the result of a call to [XGameUiShowErrorDialogAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowerrordialogasync.md).

## Syntax

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

### Parameters

*async*   \_In\_\
Type: [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md)\*

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

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

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

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

## Requirements

**Header:** XGameUI.h

**Library:** xgameruntime.lib

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

## See also

[XGameUI](https://docs.xbox.com/reference/system/xgameui/xgameui_members.md)


## Related topics

- [XGameUI (API contents)](https://docs.xbox.com/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowErrorDialogAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowerrordialogasync.md)
- [XGameUiShowMessageDialogAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowmessagedialogasync.md)
- [XGameUiShowErrorDialogUiCallback](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowerrordialoguicallback.md)
- [XGameUiShowMessageDialogResult](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowmessagedialogresult.md)
