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

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

## Sintaxe

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

### Parâmetros

*async*   \_In\_\
Tipo: [XAsyncBlock\*](/pt-BR/reference/system/xasync/structs/xasyncblock)

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

*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](/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerasync). 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](/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerresult).\
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](/pt-BR/reference/system/xgameui/xgameui_members)\
[XGameUiShowPlayerPickerAsync](/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerasync)\
[XGameUiShowPlayerPickerResult](/pt-BR/reference/system/xgameui/functions/xgameuishowplayerpickerresult)


## Related topics

- [XGameUiShowPlayerPickerResultCount](/zh-CN/reference/system/xgameui/functions/xgameuishowplayerpickerresultcount.md)
- [XGameUiShowPlayerPickerResult](/reference/system/xgameui/functions/xgameuishowplayerpickerresult.md)
