Compartir a través de


IXtfFileIOClient::GetFileInfo Method

Retrieves information about the specified file on the development console.

Syntax

public:
HRESULT GetFileInfo(
         LPCWSTR pszFileName,
         LPXTFFILEINFO pFileInfo
)  

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)Requiere autorización.

Requirements

Header: xtffileio.h

Library: xtffileio.lib

Supported platforms: Windows (for Xbox console tools)

See also

IXtfFileIOClient::GetFileAttributes
IXtfFileIOClient::GetFileSize
IXtfFileIOClient Interface
XtfFileIO