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

# XtfCreateApplicationClient

> XtfCreateApplicationClient

Initializes a new instance of the [IXtfApplicationClient](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md) interface for the development console with the specified address.

## Syntax

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

### Parameters

*pszAddress*\
Type: LPCWSTR

A pointer to the tools IP address of the development console to use for the new [IXtfApplicationClient](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md).

*riid*\
Type: REFIID

A pointer that receives the instance identifier of the newly created [IXtfApplicationClient](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md).

*ppvObject*\
Type: void\*\*

A pointer that receives a reference to the newly created [IXtfApplicationClient](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md).

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an HRESULT error code.

## Remarks

This function creates and attaches a new instance of [IXtfApplicationClient](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md) to the development console specified in `pszAddress`. You can then use the new `IXtfApplicationClient` instance for that deployment console to deploy and uninstall apps; launch, terminate, constrain, unconstrain, suspend, resume, and query the execution state of apps; and get and set information about apps.

For more information about available tool and automation APIs, such as XBOX Tools Framework (XTF), see [Tool and automation APIs (NDA topic)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/debug/atoc-api-tools-dev-env).

## Requirements

**Header:** xtfapplication.h

**Library:** xtfapplication.lib

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

## See also

[IXtfApplicationClient](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)\
[XtfApplication](https://docs.xbox.com/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n.md)


## Related topics

- [XtfApplication (API contents)](https://docs.xbox.com/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n.md)
- [XtfCreateFileIOClient](https://docs.xbox.com/reference/tools/xtf/xtffileio/methods/xtfcreatefileioclient-xtffileio-xbox-microsoft-m.md)
- [XtfCreateInputClient](https://docs.xbox.com/reference/tools/xtf/xtfinput/methods/xtfcreateinputclient-xtfinput-xbox-windows-m.md)
- [XtfCreateUserClient](https://docs.xbox.com/reference/tools/xtf/xtfuser/methods/xtfcreateuserclient-xtfuser-xbox-windows-m.md)
- [IXtfApplicationClient Interface (Interface contents)](https://docs.xbox.com/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)
