IXtfFileIOClient::SetFileAttributes Method
Sets attributes for files on the development console.Syntax
Parameters
pszSearchPatternType: LPCWSTR Pointer to the search pattern that defines the filenames of the files to set the attributes of. This parameter accepts wildcard characters to match strings with the indicated pattern. dwIncludeAttributes
Type: DWORD Bitwise-OR combination of file attributes to include for the operation. See File Attribute Constants for a list of possible attributes. dwExcludeAttributes
Type: DWORD Bitwise-OR combination of file attributes to exclude from the operation. See File Attribute Constants for a list of possible attributes. dwRecursionLevels
Type: DWORD Number of directory levels to recurse for the operation. dwAddAttributes
Type: DWORD Bitwise-OR combination of file attributes to add to the files. dwRemoveAttributes
Type: DWORD Bitwise-OR combination of file attributes to remove from the files. pCallback
Type: IXtfFindFileCallback* Pointer to the IXtfFindFileCallback callback to call when a file is found to set the attributes of.
Return value
Type: HRESULT ReturnsS_OK if successful; otherwise, returns an HRESULT error code.
Remarks
This function sets the file attributes 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). Use the IXtfFileIOClient::GetFileAttributes method to get the file attributes 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 InterfaceXtfFileIO
