get_file_attributes


unsigned get_file_attributes(const character* file_name)

This function obtains the attributes of a file.

Parameters

const character* file_name

The name of a file whose attributes are being queried. The length of the file name may not exceed path_length::maximum. On some platforms, the wide version of this function may use names exceeding path_length::maximum by prefixing the characters "\\?\" to the full path name of the file.

Return

unsigned

The attributes of the file - see enumeration file_attribute.

Notes

File attributes may be set using the function set_file_attributes.