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

Obtiene el recuento de resultados de una llamada a [XGameUiShowPlayerPickerAsync](/reference/system/xgameui/functions/xgameuishowplayerpickerasync).

## Sintaxis

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

### Parámetros

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

Un puntero al [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) que se pasó a [XGameUiShowPlayerPickerAsync](/reference/system/xgameui/functions/xgameuishowplayerpickerasync).

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

El recuento de resultados.

### Valor devuelto

Tipo: HRESULT

HRESULT de éxito o código de error.

## Comentarios

Normalmente, esta función debe llamarse en el **XAsyncBlock** de [XGameUiShowPlayerPickerAsync](/reference/system/xgameui/functions/xgameuishowplayerpickerasync). Esta función le permitirá recuperar el número de jugadores devueltos a la lista. Para obtener la lista real de jugadores deberá llamar a [XGameUiShowPlayerPickerResult](/reference/system/xgameui/functions/xgameuishowplayerpickerresult).\
También puede llamar a esta función en cualquier momento después de que se complete la función asincrónica para recuperar el resultado de la función.

## Requisitos

**Encabezado:** XGameUI.h

**Biblioteca:** xgameruntime.lib

**Plataformas compatibles:** Windows, Steam Deck, consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

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


## Related topics

- [XGameUiShowPlayerPickerResult](/es/reference/system/xgameui/functions/xgameuishowplayerpickerresult.md)
- [XGameUiShowPlayerPickerAsync](/es/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md)
- [XGameUiSetPlayerPickerUiResponse](/es/reference/system/xgameui/functions/xgameuisetplayerpickeruiresponse.md)
- [XGameUI](/es/reference/system/xgameui/xgameui_members.md)
- [XGameUiShowPlayerPickerUiCallback](/es/reference/system/xgameui/functions/xgameuishowplayerpickeruicallback.md)
