Sets the attributes of a named file.
BOOLEAN SetRtFileAttributes( LPCSTR lpFileName, DWORD dwFileAttributes );
lpFileName
dwFileAttributes
Attribute | Description |
FILE_ATTR_READONLY | File is read-only |
FILE_ATTR_HIDDEN | File is hidden |
FILE_ATTR_SYSTEM | File is marked as a system file |
FILE_ATTR_ARCHIVE | File is marked for archiving |
FILE_ATTR_NORMAL | File is a normal file (not a device nor a directory) |
Returns TRUE on success. On failure returns FALSE and the status code may be obtained by calling GetLastRtError()
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 6.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |