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

# XGameUiShowMessageDialogResult

> XGameUiShowMessageDialogResult

# XGameUiShowMessageDialogResult

[XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync) の呼び出し結果を取得します。

<a id="syntaxSection" />

## 構文

```cpp theme={null}
HRESULT XGameUiShowMessageDialogResult(  
         XAsyncBlock* async,  
         XGameUiMessageDialogButton* resultButton  
)  
```

<a id="parametersSection" />

### パラメーター

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

[XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync) に渡された [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) オブジェクトへのポインター。

*resultButton*   \_Out\_\
Type: [XGameUiMessageDialogButton](/reference/system/xgameui/enums/xgameuimessagedialogbutton)\*

ユーザーがメッセージ ダイアログ ボックスで選択したボタンを示します。

<a id="retvalSection" />

### 戻り値

Type: HRESULT

HRESULT 成功またはエラー コード。

<a id="remarksSection" />

## 解説

通常、この関数は [XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync) のコールバック関数として [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) で指定します。

`XGameUiShowMessageDialogAsync` の完了後にこの関数を呼び出して結果を取得することもできます。

<a id="requirementsSection" />

## 要件

**ヘッダー:** XGameUI.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、Steam Deck、XBOX One ファミリー本体および XBOX Series 本体

<a id="seealsoSection" />

## 概念ドキュメント

* [非同期プログラミングの設計目標と改善点](/build/core-features/common/async/async-whitepaper)

## 関連項目

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


## Related topics

- [XGameUiShowMessageDialogAsync](/ja-jp/reference/system/xgameui/functions/xgameuishowmessagedialogasync.md)
- [XGameUiSetMessageDialogUiResponse](/ja-jp/reference/system/xgameui/functions/xgameuisetmessagedialoguiresponse.md)
- [XGameUiMessageDialogButton](/ja-jp/reference/system/xgameui/enums/xgameuimessagedialogbutton.md)
- [XGameUI](/ja-jp/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowMessageDialogUiCallback](/ja-jp/reference/system/xgameui/functions/xgameuishowmessagedialoguicallback.md)
