INtime SDK Help
INtime SDK v7.1 > About INtime > INtime Kernel > Files > SetRtFileAttributes

Sets the attributes of a named file.

BOOLEAN SetRtFileAttributes(
    LPCSTR lpFileName,
    DWORD dwFileAttributes


A pointer to a filename whose attributes are to be updated.
File attributes to set for the file. This parameter can be a combination of values. However, all other values override FILE_ATTR_NORMAL. Possible values are:
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)

Return values

TRUE on success. FALSE on failure. Possible failures include the following (returned from GetLastRtError()):


Versions Defined in Include Link to
INtime 6.0 intime/rt/include/rtbase.h rt.h rt.lib

See Also