Skip to main content

XGameUiShowMessageDialogResult

Gets the result of a call to XGameUiShowMessageDialogAsync.

Syntax

Parameters

async   _In_
Type: XAsyncBlock*
A pointer to the XAsyncBlock object that was passed to XGameUiShowMessageDialogAsync. resultButton   _Out_
Type: XGameUiMessageDialogButton*
Indicates the button that the user selected in the message dialog box.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

Typically, you specify this function in XAsyncBlock as the callback function for XGameUiShowMessageDialogAsync. You can also retrieve the result by calling this function after XGameUiShowMessageDialogAsync completes.

Requirements

Header: XGameUI.h Library: xgameruntime.lib Supported platforms: Windows, Steam Deck, XBOX One family consoles and XBOX Series consoles

Conceptual documentation

See also

XGameUI
Last modified on August 20, 2026