 |
GetFileAttributesEx ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Retrieves attributes for a specified file or directory. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL GetFileAttributesEx(
LPCTSTR lpFileName, // file or directory name
GET_FILEEX_INFO_LEVELS fInfoLevelId, // attribute
LPVOID lpFileInformation // attribute information
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetFileAttributesEx IN kernel32;
STRING lpFileName,;
INTEGER fInfoLevelId,;
STRING @ lpFileInformation
|
 |
 |
 |
| Parameters: |
 |
lpFileName
[in] Pointer to a null-terminated string that specifies a file or directory.
fInfoLevelId
[in] Specifies a GET_FILEEX_INFO_LEVELS enumeration type that gives the set of attribute information to obtain.
lpFileInformation
[out] Pointer to a buffer that receives the attribute information. The type of attribute information stored into this buffer is determined by the value of fInfoLevelId. |
 |
 |
| Return value: |
 |
If the function succeeds, the return value is a nonzero value. If the function fails, the return value is zero.
|
 |
 |
| My comment: |
 |
| Same as the GetFileAttributes this function is a good basis for DirectoryExists and FileExists algorithms. |
 |
 |
| Word Index links for the GetFileAttributesEx : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-08-29 12:00:00 | | Modified: | 2001-12-02 22:58:12 | Visited in last 7 days: 22 |