Share via


IXtfFileIOClient::GetFileSize Method

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

Syntax

public:
HRESULT GetFileSize(
         LPCWSTR pszFileName,
         PULONGLONG pullFileSize
)  

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)Authorization required.

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