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

获取对 [XGameUIShowSendGameInviteAsync](/reference/system/xgameui/functions/xgameuishowsendgameinviteasync) 调用的结果。

<a id="syntaxSection" />

## 语法

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

<a id="parametersSection" />

### 参数

*async*   \_In\_\
类型：[XAsyncBlock](/reference/system/xasync/structs/xasyncblock)\*

指向传递给 [XGameUIShowSendGameInviteAsync](/reference/system/xgameui/functions/xgameuishowsendgameinviteasync) 的 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) 对象的指针。

<a id="retvalSection" />

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

<a id="remarksSection" />

## 备注

通常，你会在 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) 中将此函数指定为 [XGameUIShowSendGameInviteAsync](/reference/system/xgameui/functions/xgameuishowsendgameinviteasync) 的回调函数。

你也可以在 `XGameUIShowSendGameInviteAsync` 完成后调用此函数来获取结果。

<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

- [XGameUiShowSendGameInviteAsync](/zh-CN/reference/system/xgameui/functions/xgameuishowsendgameinviteasync.md)
- [XGameUI](/zh-CN/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowSendGameInviteUiCallback](/zh-CN/reference/system/xgameui/functions/xgameuishowsendgameinviteuicallback.md)
- [XGameUiSetSendGameInviteUiResponse](/zh-CN/reference/system/xgameui/functions/xgameuisetsendgameinviteuiresponse.md)
- [XGameUiShowMultiplayerActivityGameInviteResult](/zh-CN/reference/system/xgameui/functions/xgameuishowmultiplayeractivitygameinviteresult.md)
