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

# XGameUiShowPlayerPickerResultCount

> XGameUiShowPlayerPickerResultCount

# XGameUiShowPlayerPickerResultCount

Obtém a contagem de resultados de uma chamada de [XGameUiShowPlayerPickerAsync](https://docs.xbox.com/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md).

## Sintaxe

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

### Parâmetros

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

Um ponteiro para o [XAsyncBlock](https://docs.xbox.com/pt-BR/reference/system/xasync/structs/xasyncblock.md) que foi passado para [XGameUiShowPlayerPickerAsync](https://docs.xbox.com/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md).

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

A contagem de resultados.

### Valor retornado

Tipo: HRESULT

Código de êxito ou de erro HRESULT.

## Comentários

Normalmente, esta função deve ser chamada no **XAsyncBlock** de [XGameUiShowPlayerPickerAsync](https://docs.xbox.com/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md). Esta função permitirá que você recupere o número de jogadores retornados na lista. Para obter a lista real de jogadores, você precisará chamar [XGameUiShowPlayerPickerResult](https://docs.xbox.com/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerresult.md).\
Você também pode chamar esta função a qualquer momento após a conclusão da função assíncrona para recuperar o resultado da função.

## Requisitos

**Cabeçalho:** XGameUI.h

**Biblioteca:** xgameruntime.lib

**Plataformas com suporte:** Windows, Steam Deck, consoles da família XBOX One e consoles XBOX Series

## Confira também

[XGameUI](https://docs.xbox.com/pt-BR/reference/system/xgameui/xgameui_members.md)\
[XGameUiShowPlayerPickerAsync](https://docs.xbox.com/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md)\
[XGameUiShowPlayerPickerResult](https://docs.xbox.com/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerresult.md)


## Related topics

- [XGameUiShowPlayerPickerResult](https://docs.xbox.com/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerresult.md)
- [XGameUiShowPlayerPickerAsync](https://docs.xbox.com/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md)
- [XGameUiSetPlayerPickerUiResponse](https://docs.xbox.com/pt-BR/reference/system/xgameui/functions/xgameuisetplayerpickeruiresponse.md)
- [XGameUI (conteúdo da API)](https://docs.xbox.com/pt-BR/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowPlayerPickerUiCallback](https://docs.xbox.com/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickeruicallback.md)
