Function:
SetFileAttributes(lpFileName, dwFileAttributes)
|
Description:
Sets a files attributes.
|
Parameters:
lpFileNam: The name of a file or directory.
dwFileAttributes : attributes to set.These values can be any valid combination
of the following values (ie. read-only & hidden = 3):
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.
|
Returns:
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
|
Example: 
Click on the calc icon to view a sample of the SetFileAttributes
function.
|