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

# XGameUiSetPlayerPickerUiResponse

> 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](/reference/system/xgameui/xgameui_members)\
[XGameUiShowPlayerPickerAsync](/reference/system/xgameui/functions/xgameuishowplayerpickerasync)


## Related topics

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