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

# XGameUiShowErrorDialogUiCallback

XGameUiShowErrorDialogAsync 回呼的簽章。

## 語法

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

### 參數

*callbackHandle*\
類型：XGameUiCallbackHandle

此回呼叫用的控制代碼。

*queue*\
類型：XTaskQueueHandle

執行 UI 回呼之工作佇列的控制代碼。

*errorCode*\
類型：HRESULT

要向使用者顯示的錯誤碼。

*serviceContext*\
類型：const char\*

要針對此錯誤顯示的服務定義錯誤字串。

*context*\
類型：void\*

開發人員提供之內容的指標。

## 需求

**標頭：** XGameUi.h

**支援的平台：** 僅在 Steam Deck 上支援

## 另請參閱

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


## Related topics

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