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

# XGameUiShowMultiplayerActivityGameInviteResult

> XGameUiShowMultiplayerActivityGameInviteResult

# XGameUiShowMultiplayerActivityGameInviteResult

取得 [XGameUiShowMultiplayerActivityGameInviteAsync](/zh-TW/reference/system/xgameui/functions/xgameuishowmultiplayeractivitygameinviteasync) 呼叫的結果。

## 語法

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

### 參數

*async*   \_In\_\
類型：XAsyncBlock \*

指向傳遞給 [XAsyncRun](/zh-TW/reference/system/xasync/functions/xasyncrun) 之 [XAsyncBlock](/zh-TW/reference/system/xasync/structs/xasyncblock) 的指標。

## 備註

失敗通常只會在開發期間發生，且通常表示傳入了無效的使用者，或未設定多人遊戲活動。

## 需求

**標頭：** XGameUI.h

**程式庫：** xgameruntime.lib

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

## 另請參閱

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


## Related topics

- [XGameUiShowMultiplayerActivityGameInviteResult](/reference/system/xgameui/functions/xgameuishowmultiplayeractivitygameinviteresult.md)
- [Example code for Multiplayer Activity](/services/xbox-services/multiplayer/mpa/how-to/live-mpa-client-how-to.md)
- [Moving from MPSD to PlayFab Multiplayer and MPA](/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
- [从 MPSD 迁移到 PlayFab Multiplayer 和 MPA](/zh-CN/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
- [Migración de MPSD a PlayFab Multiplayer y MPA](/es/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
