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

# XGameUiShowPlayerPickerResultCount

> XGameUiShowPlayerPickerResultCount

# XGameUiShowPlayerPickerResultCount

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

## 構文

```cpp theme={null}
HRESULT XGameUiShowPlayerPickerResultCount(  
         XAsyncBlock* async,  
         uint32_t* resultPlayersCount  
)  
```

### パラメーター

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

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

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

結果の数。

### 戻り値

Type: HRESULT

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

## 解説

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

## 要件

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

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

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

## 関連項目

[XGameUI](/reference/system/xgameui/xgameui_members)\
[XGameUiShowPlayerPickerAsync](/reference/system/xgameui/functions/xgameuishowplayerpickerasync)\
[XGameUiShowPlayerPickerResult](/reference/system/xgameui/functions/xgameuishowplayerpickerresult)


## Related topics

- [XGameUiShowPlayerPickerResult](/ja-jp/reference/system/xgameui/functions/xgameuishowplayerpickerresult.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)
