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

# XGameUiShowPlayerPickerResult

> XGameUiShowPlayerPickerResult

# XGameUiShowPlayerPickerResult

[XGameUiShowPlayerPickerAsync](/reference/system/xgameui/functions/xgameuishowplayerpickerasync) 呼び出しから結果を取得します。

## 構文

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

### パラメーター

*async*   \_In\_\
Type: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

[XGameUiShowPlayerPickerAsync](/reference/system/xgameui/functions/xgameuishowplayerpickerasync) に渡された [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) へのポインター。

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

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

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

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

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

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

### 戻り値

Type: HRESULT

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

## 解説

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

## 要件

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

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

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

## 関連項目

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiShowPlayerPickerAsync](/reference/system/xgameui/functions/xgameuishowplayerpickerasync)\
[XGameUiShowPlayerPickerResultCount](/reference/system/xgameui/functions/xgameuishowplayerpickerresultcount)


## Related topics

- [XGameUiShowPlayerPickerResultCount](/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerresultcount.md)
- [XGameUiShowPlayerPickerAsync](/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md)
- [XGameUiSetPlayerPickerUiResponse](/ja-jp/reference/system/xgameui/functions/xgameuisetplayerpickeruiresponse.md)
- [XGameUI](/ja-jp/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowPlayerPickerUiCallback](/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickeruicallback.md)
