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

# XGameUiShowPlayerPickerResult

> XGameUiShowPlayerPickerResult

# XGameUiShowPlayerPickerResult

[XGameUiShowPlayerPickerAsync](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md) 呼び出しから結果を取得します。

## 構文

```cpp theme={null}
HRESULT XGameUiShowPlayerPickerResult(  
         XAsyncBlock* async,  
         uint32_t resultPlayersCount,  
         uint64_t* resultPlayers,  
         uint32_t* resultPlayersUsed  
)  
```

### パラメーター

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

[XGameUiShowPlayerPickerAsync](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md) に渡された [XAsyncBlock](https://docs.xbox.com/ja-jp/reference/system/xasync/structs/xasyncblock.md) へのポインター。

*resultPlayersCount*   \_In\_\
Type: uint32\_t

プレイヤーの結果の数。これは結果を格納するバッファーのサイズを決定するために使用されます。この情報は [XGameUiShowPlayerPickerResultCount](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerresultcount.md) を呼び出すことで取得できます。または、大きな結果バッファーを事前に割り当てている場合は、バッファーが保持できる uint64\_t フィールドの最大数と等しい数を渡すこともできます。

*resultPlayers*   \_Out\_writes\_to\_(resultPlayersCount,*resultPlayersUsed)\
Type: uint64\_t*

プレイヤー ピッカー UI で選択されたプレイヤーの ID のリストへのポインター。

*resultPlayersUsed*   \_Out\_opt\_\
Type: uint32\_t\*

プレイヤー ピッカー UI で選択されたプレイヤーの数。

### 戻り値

Type: HRESULT

HRESULT 成功またはエラー コード。

## 解説

通常、この関数は [XGameUiShowPlayerPickerAsync](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md) の **XAsyncBlock** で呼び出します。この関数によって、要求されたプレイヤーのリストを取得できます。[XGameUiShowPlayerPickerResultCount](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerresultcount.md) を呼び出すことで、返されたプレイヤーの数を受け取ることもできます。\
非同期関数の完了後にこの関数をいつでも呼び出して関数の結果を取得することもできます。

## 要件

**ヘッダー:** XGameUI.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、Steam Deck、XBOX One ファミリー本体および XBOX Series 本体

## 関連項目

[XGameUI](https://docs.xbox.com/ja-jp/reference/system/xgameui/xgameui_members.md)\
[XGameUiShowPlayerPickerAsync](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md)\
[XGameUiShowPlayerPickerResultCount](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerresultcount.md)


## Related topics

- [XGameUiShowPlayerPickerResultCount](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerresultcount.md)
- [XGameUiShowPlayerPickerAsync](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md)
- [XGameUiSetPlayerPickerUiResponse](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuisetplayerpickeruiresponse.md)
- [XGameUI (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowPlayerPickerUiCallback](https://docs.xbox.com/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickeruicallback.md)
