Skip to main content

IXtfFileIOClient::GetFileSize Method

Retrieves the size of the specified file on the development console.

Syntax

Parameters

pszFileName
Type: LPCWSTR
Pointer to the filename of the file to get the size of. pullFileSize
Type: PULONGLONG
Pointer that receives the size of the specified file, in bytes.

Return value

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

Remarks

This function gets the size, in bytes, of a specified file on the development console. 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). You can also use the IXtfFileIOClient::GetFileInfo method to get an XTFFILEINFO structure containing information, including the name, file attributes, creation time, last access time, last write time, and size, of a specified file on the development console.

Requirements

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

See also

IXtfFileIOClient Interface
XtfFileIO
Last modified on August 20, 2026