> ## 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](/zh-TW/reference/system/xgameui/functions/xgameuishowsendgameinviteasync) 呼叫的結果。

<a id="syntaxSection" />

## 語法

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

<a id="parametersSection" />

### 參數

*async*   \_In\_\
類型：[XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock)\*

指向傳遞給 [XGameUIShowSendGameInviteAsync](/zh-TW/reference/system/xgameui/functions/xgameuishowsendgameinviteasync) 之 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 物件的指標。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

<a id="remarksSection" />

## 備註

通常，您會在 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 中將此函式指定為 [XGameUIShowSendGameInviteAsync](/zh-TW/reference/system/xgameui/functions/xgameuishowsendgameinviteasync) 的回呼函式。

您也可以在 `XGameUIShowSendGameInviteAsync` 完成之後呼叫此函式來擷取結果。

<a id="requirementsSection" />

## 需求

**標頭：** XGameUI.h

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、Steam Deck、XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 概念文件

* [非同步程式設計的設計目標與改進](/zh-TW/build/core-features/common/async/async-whitepaper)

## 另請參閱

[XGameUI](/zh-TW/reference/system/xgameui/xgameui_members)


## Related topics

- [XGameUiShowSendGameInviteResult](/reference/system/xgameui/functions/xgameuishowsendgameinviteresult.md)
- [XGameUiShowSendGameInviteAsync](/reference/system/xgameui/functions/xgameuishowsendgameinviteasync.md)
