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

# XtfCreateFileIOClient

> XtfCreateFileIOClient

Initializes a new instance of the [IXtfFileIOClient](https://docs.xbox.com/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/ixtffileioclient-xtffileio-xbox-microsoft-t.md) interface with the specified address.

## Syntax

```cpp theme={null}
HRESULT XtfCreateFileIOClient(
         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 [IXtfFileIOClient](https://docs.xbox.com/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/ixtffileioclient-xtffileio-xbox-microsoft-t.md).

*riid*\
Type: REFIID

Pointer that receives the instance identifier of the newly created [IXtfFileIOClient](https://docs.xbox.com/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/ixtffileioclient-xtffileio-xbox-microsoft-t.md).

*ppvObject*\
Type: void \*\*

\[out] Pointer that receives a reference to the newly created [IXtfFileIOClient](https://docs.xbox.com/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/ixtffileioclient-xtffileio-xbox-microsoft-t.md).

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

This function creates an instance of the [IXtfFileIOClient](https://docs.xbox.com/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/ixtffileioclient-xtffileio-xbox-microsoft-t.md) interface. The file IO client handles all of the common file functions for XTFFileIO. These functions include finding, copying, creating, deleting, editing, and getting information for files and directories, on a development console.

## Requirements

**Header:** xtffileio.h

**Library:** xtffileio.lib

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

## See also

[XtfFileIO](https://docs.xbox.com/reference/tools/xtf/xtffileio/xtffileio-xbox-microsoft-n.md)\
[IXtfFileIOClient](https://docs.xbox.com/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/ixtffileioclient-xtffileio-xbox-microsoft-t.md)\
[IXtfBatchFileIOClient](https://docs.xbox.com/reference/tools/xtf/xtffileio/classes/IXtfBatchFileIOClient/ixtfbatchfileioclient-xtffileio-xbox-microsoft-t.md)


## Related topics

- [IXtfFileIOClient Interface (Interface contents)](https://docs.xbox.com/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/ixtffileioclient-xtffileio-xbox-microsoft-t.md)
- [XtfFileIO (API contents)](https://docs.xbox.com/reference/tools/xtf/xtffileio/xtffileio-xbox-microsoft-n.md)
- [XtfCreateApplicationClient](https://docs.xbox.com/reference/tools/xtf/xtfapplication/methods/xtfcreateapplicationclient-xtfapplication-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)
