Function:
GetFileAttributes(lpFileName)
|
Description:
Returns attributes for a specified file or directory.
|
Parameters:
lpFileNam: The name of a file or directory.
|
Returns:
If the function succeeds, the return value contains the
attributes of the specified file or directory. If the function fails,
the return value is zero. These values can be:
1 = The file or directory is read-only.
2 = The file or directory is hidden.
4 = The file or directory is part of, or is used exclusively by, the
operating system.
16 = A directory.
32 = The file or directory is archived.
128 = The file or directory has no other attributes set. This attribute
is valid only if used alone.
2048 = The file or directory is compressed.
|
Example: 
Click on the calc icon to view a sample of the GetFileAttributes
function.
|