LFNGetAttributes

  WORD LFNGetAttributes(lpFile, lpAttr)    
  LPSTR lpFile;    
  LPINT lpAttr;    

The LFNGetAttributes function retrieves a field of attribute bits into the 16-bit variable specified by the lpAttr parameter for the file specified by the lpFile parameter.

Parameters

lpFile

Points to a null-terminated string specifying the name of a file.

lpAttr

Points to a 16-bit variable that receives the attributes of 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 but not written to.
2 File or directory is hidden and does not appear in a directory listing.
4 File or directory is a system file.
8 Filename is the current volume label for the media.
16 Filename identifies a directory, not a 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 103.

See Also

LFNSetAttributes