Skip to main content

IXtfFileIOClient::GetFileInfo Method

Retrieves information about the specified file on the development console.

Syntax

Parameters

pszFileName
Type: LPCWSTR
A pointer to the filename of the file to get the size of. pFileInfo
Type: LPXTFFILEINFO
A pointer to an XTFFILEINFO structure that receives the file information.

Return value

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

Remarks

This function gets information, including the name, file attributes, creation time, last access time, last write time, and size, of a specified file on the development console as an XTFFILEINFO structure. If an error occurs, this function returns an HRESULT error code. For more information about HRESULT error codes specific to XBOX Tools Framework (XTF) API, see XTF transport errors (NDA topic).

Requirements

Header: xtffileio.h Library: xtffileio.lib Supported platforms: Windows (for XBOX console tools)

See also

IXtfFileIOClient::GetFileAttributes
IXtfFileIOClient::GetFileSize
IXtfFileIOClient Interface
XtfFileIO
Last modified on August 20, 2026