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

# XTFFILEINFO

> XTFFILEINFO

# XTFFILEINFO

Contains information about a file for XBOX Tools Framework (XTF) apps.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
typedef struct XTFFILEINFO {
    LPCWSTR pszFileName;
    DWORD dwFileAttributes;
    ULONGLONG ullCreationTime;
    ULONGLONG ullLastAccessTime;
    ULONGLONG ullLastWriteTime;
    ULONGLONG ullFileSize;
    XTFFILEIORESERVED Reserved;
} XTFFILEINFO, *LPXTFFILEINFO;  
```

<a id="membersSection" />

### Members

*pszFileName*\
Type: LPCWSTR

A pointer to the filename of the file.

*dwFileAttributes*\
Type: DWORD

The bitwise-OR combination of file attributes for the file. See [File Attribute Constants](https://msdn.microsoft.com/library/windows/desktop/gg258117\(v=vs.85\).aspx) for a list of possible attributes.

*ullCreationTime*\
Type: ULONGLONG

The date and time that the file was created.

*ullLastAccessTime*\
Type: ULONGLONG

The date and time that the file was last accessed.

*ullLastWriteTime*\
Type: ULONGLONG

The date and time that the file was last written to.

*ullFileSize*\
Type: ULONGLONG

The size of the file, in bytes.

*Reserved*\
Type: [XTFFILEIORESERVED](/reference/tools/xtf/xtffileio/structures/xtffileioreserved-xtffileio-xbox-microsoft-t)

Reserved for internal use.

<a id="remarksSection" />

## Remarks

This structure provides information about a file for use with XTF apps. The structure contains the name, file attributes, and size of the file, as well as the date and time when the file was created, last accessed, and last written to.

The `XTFFILEINFO` structure is used by other interface members in the XtfFileIO API, including [IXtfCopyFileCallback::OnEndFileCopy](/reference/tools/xtf/xtffileio/classes/IXtfCopyFileCallback/methods/onendfilecopy-ixtfcopyfilecallback-xtffileio-xbox-microsoft-m), [IXtfCopyFileCallback::OnStartFileCopy](/reference/tools/xtf/xtffileio/classes/IXtfCopyFileCallback/methods/onstartfilecopy-ixtfcopyfilecallback-xtffileio-xbox-microsoft-m), [IXtfFindFileCallback::OnFoundFile](/reference/tools/xtf/xtffileio/classes/IXtfFindFileCallback/methods/onfoundfile-ixtffindfilecallback-xtffileio-xbox-microsoft-m), and [IXtfFileIOClient::GetFileInfo](/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/getfileinfo-ixtffileioclient-xtffileio-xbox-microsoft-m).

<a id="requirementsSection" />

## Requirements

**Header:** xtffileio.h

**Library:** xtffileio.lib

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

<a id="seealsoSection" />

## See also

[IXtfCopyFileCallback::OnEndFileCopy](/reference/tools/xtf/xtffileio/classes/IXtfCopyFileCallback/methods/onendfilecopy-ixtfcopyfilecallback-xtffileio-xbox-microsoft-m)\
[IXtfCopyFileCallback::OnStartFileCopy](/reference/tools/xtf/xtffileio/classes/IXtfCopyFileCallback/methods/onstartfilecopy-ixtfcopyfilecallback-xtffileio-xbox-microsoft-m)\
[IXtfFindFileCallback::OnFoundFile](/reference/tools/xtf/xtffileio/classes/IXtfFindFileCallback/methods/onfoundfile-ixtffindfilecallback-xtffileio-xbox-microsoft-m)\
[IXtfFileIOClient::GetFileInfo](/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/getfileinfo-ixtffileioclient-xtffileio-xbox-microsoft-m)\
[XtfFileIO](/reference/tools/xtf/xtffileio/xtffileio-xbox-microsoft-n)


## Related topics

- [XTFFILEIORESERVED](/reference/tools/xtf/xtffileio/structures/xtffileioreserved-xtffileio-xbox-microsoft-t.md)
- [IXtfFileIOClient::GetFileInfo Method](/reference/tools/xtf/xtffileio/classes/IXtfFileIOClient/methods/getfileinfo-ixtffileioclient-xtffileio-xbox-microsoft-m.md)
- [IXtfCopyFileCallback::OnEndFileCopy Method](/reference/tools/xtf/xtffileio/classes/IXtfCopyFileCallback/methods/onendfilecopy-ixtfcopyfilecallback-xtffileio-xbox-microsoft-m.md)
- [IXtfFindFileCallback::OnFoundFile Method](/reference/tools/xtf/xtffileio/classes/IXtfFindFileCallback/methods/onfoundfile-ixtffindfilecallback-xtffileio-xbox-microsoft-m.md)
- [IXtfCopyFileCallback::OnStartFileCopy Method](/reference/tools/xtf/xtffileio/classes/IXtfCopyFileCallback/methods/onstartfilecopy-ixtfcopyfilecallback-xtffileio-xbox-microsoft-m.md)
