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

Gets the results from a [XGameUiShowPlayerPickerAsync](/reference/system/xgameui/functions/xgameuishowplayerpickerasync) call.

## Syntax

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

### Parameters

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

A pointer to the [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) that was passed to [XGameUiShowPlayerPickerAsync](/reference/system/xgameui/functions/xgameuishowplayerpickerasync).

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

The count of player results, which is used to determine the buffer size that contains the results. You can get this info by calling [XGameUiShowPlayerPickerResultCount](/reference/system/xgameui/functions/xgameuishowplayerpickerresultcount). Alternatively, if you have pre-allocated a large result buffer, you can pass in a number equal to the max number of uint64\_t fields that the buffer can contain.

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

A pointer to a list of the IDs of the players that were selected in the player picker UI.

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

The number of players that were selected in the player picker UI.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

Typically this function is to be called in [XGameUiShowPlayerPickerAsync's](/reference/system/xgameui/functions/xgameuishowplayerpickerasync) **XAsyncBlock**. This function will allow you to retrieve the list of players requested. You can also receive the number of player returned by calling [XGameUiShowPlayerPickerResultCount](/reference/system/xgameui/functions/xgameuishowplayerpickerresultcount).\
You may also call this function anytime after the async function completes in order to retrieve the function result.

## Requirements

**Header:** XGameUI.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, Steam Deck, XBOX One family consoles and XBOX Series consoles

## See also

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


## Related topics

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