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

# XtfCreateUserClient

> XtfCreateUserClient

# XtfCreateUserClient

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

<a id="syntaxSection" />

## Syntax

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

<a id="ID4EG" />

<a id="parametersSection" />

### Parameters

*pszAddress*\
Type: LPCWSTR

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

*riid*\
Type: REFIID

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

*ppvObject*\
Type: void \*\*

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

<a id="ID4EN" />

<a id="retvalSection" />

### Return value

Type: HRESULT

The result of the operation.

<a id="remarksSection" />

## Remarks

This function creates and attaches a new instance of [IXtfUserClient](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t) 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.

<a id="requirements" />

<a id="requirementsSection" />

## Requirements

**Header:** xtfuser.h

**Library:** xtfuser.lib

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

<a id="seealsoSection" />

## See also

[IXtfUserClient](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t)\
[XtfUser](/reference/tools/xtf/xtfuser/xtfuser-xbox-windows-n)


## Related topics

- [XTF_USER_DATA](/reference/tools/xtf/xtfuser/structures/XTF_USER_DATA-xtfuser-xbox-windows-t.md)
- [XtfCreateInputClient](/reference/tools/xtf/xtfinput/methods/xtfcreateinputclient-xtfinput-xbox-windows-m.md)
- [IXtfUserClient::PairControllerWithUser Method](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/paircontrollerwithuser-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [IXtfUserClient::PairControllerWithUserId Method](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/paircontrollerwithuserid-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [XtfCreateFileIOClient](/reference/tools/xtf/xtffileio/methods/xtfcreatefileioclient-xtffileio-xbox-microsoft-m.md)
