> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameUiShowSendGameInviteResult

> XGameUiShowSendGameInviteResult

Gets the result of a call to [XGameUIShowSendGameInviteAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowsendgameinviteasync.md).

## Syntax

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

### Parameters

*async*   \_In\_\
Type: [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md)\*

A pointer to the [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) object that was passed to [XGameUIShowSendGameInviteAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowsendgameinviteasync.md).

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

Typically, you specify this function in [XAsyncBlock](https://docs.xbox.com/reference/system/xasync/structs/xasyncblock.md) as the callback function for [XGameUIShowSendGameInviteAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowsendgameinviteasync.md).

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

## Requirements

**Header:** XGameUI.h

**Library:** xgameruntime.lib

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

## Conceptual documentation

* [Asynchronous programming design goals and improvements](https://docs.xbox.com/build/core-features/common/async/async-whitepaper.md)

## See also

[XGameUI](https://docs.xbox.com/reference/system/xgameui/xgameui_members.md)


## Related topics

- [XGameUiShowSendGameInviteAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowsendgameinviteasync.md)
- [Asynchronous programming design goals and improvements](https://docs.xbox.com/build/core-features/common/async/async-whitepaper.md)
- [XGameUI (API contents)](https://docs.xbox.com/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowSendGameInviteUiCallback](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowsendgameinviteuicallback.md)
- [XGameUiSetSendGameInviteUiResponse](https://docs.xbox.com/reference/system/xgameui/functions/xgameuisetsendgameinviteuiresponse.md)
