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

Gets the result of a call to [XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync).

<a id="syntaxSection" />

## Syntax

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

<a id="parametersSection" />

### Parameters

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

A pointer to the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) object that was passed to [XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync).

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

Indicates the button that the user selected in the message dialog box.

<a id="retvalSection" />

### Return value

Type: HRESULT

HRESULT success or error code.

<a id="remarksSection" />

## Remarks

Typically, you specify this function in [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) as the callback function for [XGameUiShowMessageDialogAsync](/reference/system/xgameui/functions/xgameuishowmessagedialogasync).

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

<a id="requirementsSection" />

## Requirements

**Header:** XGameUI.h

**Library:** xgameruntime.lib

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

<a id="seealsoSection" />

## Conceptual documentation

* [Asynchronous programming design goals and improvements](/build/core-features/common/async/async-whitepaper)

## See also

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


## Related topics

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