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

# IXtfUserClient::ListUsersEx

このコンソールに現在関連付けられているすべてのユーザーの一覧を返します。

## 構文

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

### パラメーター

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

正常に返された場合、コンソールに現在関連付けられているユーザーを記述する [XTF\_USER\_DATA\_V2](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfuser/structures/xtf_user_data_v2.md) オブジェクトの配列を指します。

\**pCount*   \
型: UINT32

正常に返された場合、*ppUserData* 配列内の要素数。

### 戻り値

型: HRESULT

HRESULT の成功またはエラー コード。

## 要件

**ヘッダー:** xtfuser.h

**ライブラリ:** xtfuser.lib

**対応プラットフォーム:** Windows (XBOX コンソール ツール用)

## 関連項目

[IXtfUserClient インターフェイス](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t.md)


## Related topics

- [IXtfUserClient インターフェイス (インターフェイスの目次)](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t.md)
- [XInputSetStateEx](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/functions/xinputsetstateex.md)
- [XINPUT_VIBRATION_EX](https://docs.xbox.com/ja-jp/reference/input/xinputongameinput/structs/xinput_vibration_ex.md)
- [DeployEx](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/ixtfapplicationclient-deployex.md)
- [GAMEPAD_REPORT_EX](https://docs.xbox.com/ja-jp/reference/tools/xtf/xtfinput/structures/gamepad_report_ex.md)
