Group: File Management - Library: kernel32
How to test file attributes (key method for FileExists and DirectoryExists routines)
Changing file attributes
DWORD GetFileAttributes(
LPCTSTR lpFileName // name of file or directory
);
DECLARE INTEGER GetFileAttributes IN kernel32;
STRING lpFileName
lpFileName [in] Pointer to a null-terminated string that specifies the name of a file or directory.
If the function succeeds, the return value contains the attributes of the specified file or directory.
This function can be used for testing an access to a directory -- a key-turn DirectoryExists function.