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

# XGameUiShowErrorDialogUiCallback

> XGameUiShowErrorDialogUiCallback

Signature for a XGameUiShowErrorDialogAsync callback.

## Syntax

```cpp theme={null}
void CALLBACK XGameUiShowErrorDialogUiCallback(
     
     XGameUiCallbackHandle callbackHandle,
     XTaskQueueHandle queue,
     HRESULT errorCode,
     const char* serviceContext,
     void* context
);
```

### Parameters

*callbackHandle*\
Type: XGameUiCallbackHandle

Handle for this callback invocation.

*queue*  
Type: XTaskQueueHandle

insert Handle to the task queue that the UI callback was executed on.

*errorCode*\
Type: HRESULT

Error code to display to the user.

*serviceContext*\
Type: const char\*

The service defined error string to display for the error.

*context*\
Type: void\*

Pointer to dev-provided context.

## Requirements

**Header:** XGameUi.h

**Supported platforms:** Supported only on Steam Deck

## See also

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


## Related topics

- [XGameUiUiCallbacks](https://docs.xbox.com/reference/system/xgameui/structs/xgameuiuicallbacks.md)
- [XGameUiShowErrorDialogResult](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowerrordialogresult.md)
- [XGameUiShowMessageDialogUiCallback](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowmessagedialoguicallback.md)
- [XGameUiShowMessageDialogAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowmessagedialogasync.md)
- [XGameUiShowErrorDialogAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowerrordialogasync.md)
