Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
LFNSetAttributes
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD LFNSetAttributes(lpFile, wAttr)
LPSTR lpFile;
WORD wAttr;
 
The LFNSetAttributes function sets the attributes of a given file to the
bitfield specified by the wAttr parameter. This function may modify hidden,
system, read only, and archive but not volume or directory.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
lpFile     Points to a null-terminated string specifying the name of a
           file.
 
wAttr      Specifies the attributes for the specified file. The attributes
           can be a combination of the following values.
 
           Value  Meaning
           ─────────────────────────────────────────────────────────────────
           0      File can be read from or written to.
 
           1      File can be read from but not written to.
 
           2      File is hidden and does not appear in a directory
                  listing.
 
           4      File is a system file.
 
           32     File has been archived.
 
Return Value
 
The return value is one of the following values.
 
Value  Meaning
────────────────────────────────────────────────────────────────────────────
0      Success.
 
1      Invalid function.
 
2      File not found.
 
3      Path not found.
 
5      Access denied.
 
Comments
 
The export ordinal for this function is 104.
 
See Also
 
LFNGetAttributes