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

# XGameUiSetPlayerPickerUiResponse

> XGameUiSetPlayerPickerUiResponse

Sets the results to be returned by XGameUiShowPlayerPickerResultCount and XGameUiShowPlayerPickerResult.

## Syntax

```cpp theme={null}
STDAPI  XGameUiSetPlayerPickerUiResponse(
     XGameUiCallbackHandle callbackHandle,
     uint32_t playerCount,
     const uint64_t* players
) noexcept;
```

### Parameters

*callbackHandle*\
Type: XGameUiCallbackHandle

The handle for this callback invocation.

*playerCount*\
Type: uint32\_t

The number of player IDs, to be returned by XGameUiShowPlayerPickerResultCount for the corresponding invocation of XGameUiShowPlayerPickerAsync.

*players*\
Type: const uint64\_t\*

Array of player IDs, of length `playerCount`, to be returned by XGameUiShowPlayerPickerResult.

### Return value

Type: STDAPI

## Requirements

**Header:** XGameUi.h

**Supported platforms:** Supported only on Steam Deck

## See also

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


## Related topics

- [XGameUiCallbackHandle](https://docs.xbox.com/reference/system/xgameui/structs/xgameuicallbackhandle.md)
- [XGameUiShowPlayerPickerUiCallback](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowplayerpickeruicallback.md)
- [XGameUiPlayerPickerInfo](https://docs.xbox.com/reference/system/xgameui/structs/xgameuiplayerpickerinfo.md)
- [XGameUiShowPlayerPickerResult](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowplayerpickerresult.md)
- [XGameUiShowPlayerPickerAsync](https://docs.xbox.com/reference/system/xgameui/functions/xgameuishowplayerpickerasync.md)
