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

# XGameUiShowSendGameInviteResult

> XGameUiShowSendGameInviteResult

# XGameUiShowSendGameInviteResult

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

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
HRESULT XGameUiShowSendGameInviteResult(  
         XAsyncBlock* async  
)  
```

<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 [XGameUIShowSendGameInviteAsync](/reference/system/xgameui/functions/xgameuishowsendgameinviteasync).

<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 [XGameUIShowSendGameInviteAsync](/reference/system/xgameui/functions/xgameuishowsendgameinviteasync).

You can also retrieve the result by calling this function after `XGameUIShowSendGameInviteAsync` 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

- [XGameUiShowSendGameInviteAsync](/reference/system/xgameui/functions/xgameuishowsendgameinviteasync.md)
- [XGameUI](/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowSendGameInviteUiCallback](/reference/system/xgameui/functions/xgameuishowsendgameinviteuicallback.md)
- [XGameUiSetSendGameInviteUiResponse](/reference/system/xgameui/functions/xgameuisetsendgameinviteuiresponse.md)
- [XGameUiShowMultiplayerActivityGameInviteAsync](/reference/system/xgameui/functions/xgameuishowmultiplayeractivitygameinviteasync.md)
