typedef struct _WIN32_FIND_DATA { /* wfd */
DWORD dwFileAttributes;
FILETIME ftCreationTime;
FILETIME ftLastAccessTime;
FILETIME ftLastWriteTime;
DWORD nFileSizeHigh;
DWORD nFileSizeLow;
DWORD dwReserved0;
DWORD dwReserved1;
CHAR cFileName[ MAX_PATH ];
CHAR cAlternateFileName[ 14 ];
} WIN32_FIND_DATA, *PWI32_FIND_DATA, *LPWIN32_FIND_DATA;
dwFileAttributes
Returns the file attributes of the found file.
This flag may be some combination of the following values:
Attribute | Description |
FILE_ATTRIBUTE_ARCHIVE | The file is marked as archive. |
FILE_ATTRIBUTE_DIRECTORY | The file is marked as a directory. |
FILE_ATTRIBUTE_HIDDEN | The file is marked as hidden. |
FILE_ATTRIBUTE_NORMAL | The file has no other attributes set. |
FILE_ATTRIBUTE_READONLY | The file is marked as read-only. |
FILE_ATTRIBUTE_SYSTEM | The file is marked as a system file. |
FILE_ATTRIBUTE_VOLUME_LABEL | The file is marked as a volume label. |
ftCreationTime
Specifies the time that the file was created. A value of 0,0 indicates that the file system containing the file does not support this time field.
ftLastAccessTime
Specifies the time that the file was last accessed. A value of 0,0 indicates that the file system containing the file does not support this time field.
ftLastWriteTime
Specifies the time that the file was last written. All file systems support this time field.
nFileSizeHigh
Specifies the high-order 32 bits of the file's size, in bytes.
nFileSizeLow
Specifies the low-order 32 bits of the file's size, in bytes.
cFileName
Specifies a null-terminated string that is the name of the file.
cAlternateFileName
Specifies a null-terminated string that is an alternate name of the file, in 8.3 format.