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

# ListUsersEx

> IXtfUserClient::ListUsersEx

Returns a list of all users currently associated with this console.

## Syntax

```cpp theme={null}
HRESULT ListUsersEx(  
         XTF_USER_DATA_V2 **ppUserData,  
         UINT32 *pCount  
)  
```

### Parameters

\*\**ppUserData*   \
Type: [XTF\_USER\_DATA\_V2](https://docs.xbox.com/reference/tools/xtf/xtfuser/structures/xtf_user_data_v2.md)

On successful return, points to an array of [XTF\_USER\_DATA\_V2](https://docs.xbox.com/reference/tools/xtf/xtfuser/structures/xtf_user_data_v2.md) objects describing users currently associated with the console.

\**pCount*   \
Type: UINT32

On successful return, the count of elements in the *ppUserData* array.

### Return value

Type: HRESULT

HRESULT success or error code.

## Requirements

**Header:** xtfuser.h

**Library:** xtfuser.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

[IXtfUserClient interface](https://docs.xbox.com/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t.md)


## Related topics

- [IXtfUserClient Interface (Interface contents)](https://docs.xbox.com/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t.md)
- [DeployEx](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/ixtfapplicationclient-deployex.md)
- [XInputSetStateEx](https://docs.xbox.com/reference/input/xinputongameinput/functions/xinputsetstateex.md)
- [XINPUT_VIBRATION_EX](https://docs.xbox.com/reference/input/xinputongameinput/structs/xinput_vibration_ex.md)
- [GAMEPAD_REPORT_EX](https://docs.xbox.com/reference/tools/xtf/xtfinput/structures/gamepad_report_ex.md)
