> ## 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/zh-TW/reference/tools/xtf/xtfuser/structures/xtf_user_data_v2.md)

成功傳回時，指向描述目前與主機相關聯之使用者的 [XTF\_USER\_DATA\_V2](https://docs.xbox.com/zh-TW/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/zh-TW/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t.md)


## Related topics

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