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

# 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](/zh-TW/reference/system/xgameui/xgameui_members)\
[XGameUiSetUiCallbacks](/zh-TW/reference/system/xgameui/functions/xgameuisetuicallbacks)


## Related topics

- [XGameUiShowErrorDialogUiCallback](/reference/system/xgameui/functions/xgameuishowerrordialoguicallback.md)
- [XGameUiUiCallbacks](/reference/system/xgameui/structs/xgameuiuicallbacks.md)
