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

# XtfCreateUserClient

> XtfCreateUserClient

Initializes a new instance of the [IXtfUserClient](https://docs.xbox.com/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t.md) interface with the specified address.

## Syntax

```cpp theme={null}
HRESULT XtfCreateUserClient(
         LPCWSTR pszAddress,
         REFIID riid,
         void **ppvObject
)  
```

### Parameters

*pszAddress*\
Type: LPCWSTR

Pointer to the tools IP address of the development console to use for the new [IXtfUserClient](https://docs.xbox.com/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t.md) instand.

*riid*\
Type: REFIID

Pointer that receives the instance identifier of the newly created [IXtfUserClient](https://docs.xbox.com/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t.md) instance.

*ppvObject*\
Type: void \*\*

Pointer that receives a reference to the newly created [IXtfUserClient](https://docs.xbox.com/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t.md) instance.

### Return value

Type: HRESULT

The result of the operation.

## Remarks

This function creates and attaches a new instance of [IXtfUserClient](https://docs.xbox.com/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t.md) to the development console specified in `pszAddress`. You can then use the new `IXtfUserClient` instance to add and delete users, sign in and sign out users, and pair a user and a controller. You can also work with parties.

## Requirements

**Header:** xtfuser.h

**Library:** xtfuser.lib

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

## See also

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


## Related topics

- [XTF_USER_DATA](https://docs.xbox.com/reference/tools/xtf/xtfuser/structures/XTF_USER_DATA-xtfuser-xbox-windows-t.md)
- [XtfUser (API contents)](https://docs.xbox.com/reference/tools/xtf/xtfuser/xtfuser-xbox-windows-n.md)
- [XtfCreateInputClient](https://docs.xbox.com/reference/tools/xtf/xtfinput/methods/xtfcreateinputclient-xtfinput-xbox-windows-m.md)
- [XtfCreateFileIOClient](https://docs.xbox.com/reference/tools/xtf/xtffileio/methods/xtfcreatefileioclient-xtffileio-xbox-microsoft-m.md)
- [XtfCreateApplicationClient](https://docs.xbox.com/reference/tools/xtf/xtfapplication/methods/xtfcreateapplicationclient-xtfapplication-xbox-microsoft-m.md)
