Type WIN32_FIND_DATA

Purpose
The WIN32_FIND_DATA structure describes a file found by the FindFirstFile or FindNextFile function.
 
 
From library
Kernel...DLL
 
Required Type definition

FILETIME

 
Type specification Include in your program. Copy/Paste if needed.

type WIN32_FIND_DATA
      dwFileAttributes As Integer

      ftCreationTime As FILETIME

      ftLastAccessTime As FILETIME

      ftLastWriteTime As FILETIME

      nFileSizeHigh As Integer

      nFileSizeLow As Integer

      dwReserved0 As Integer

      dwReserved1 As Integer

      cFileName As String * MAX_PATH

      cAlternate As String * 14

end type

 
 
Parameters

dwFileAttributes

 

ftCreationTime

 

 

 

ftLastAccessTime

 

 

ftLastWriteTime

 

 

nFileSizeHigh 

 

nFileSizeLow 

 

dwReserved0

 

dwReserved1

 

cFileName

 

cAlternate 

 

Specifies the file attributes of the file found

 

Specifies a FILETIME structure containing the time the file was created. FindFirstFile and FindNextFile report file times in Coordinated Universal Time (UTC) format.

 

Specifies a FILETIME structure containing the time that the file was last accessed.

 

Specifies a FILETIME structure containing the time that the file was last written to

 

Specifies the high-order DWORD value of the file size, in bytes. 

 

Specifies the low-order DWORD value of the file size, in bytes.

 

Reserved for future use

 

Reserved for future use

 

A null-terminated string that is the name of the file.

 

A null-terminated string that is an alternative name for the file. This name is in the classic 8.3 (filename.ext) filename format.

 

 
Values for parameter dwFileAttributes

FILE_ATTRIBUTE_ARCHIVE 
FILE_ATTRIBUTE_COMPRESSED 
FILE_ATTRIBUTE_DIRECTORY 
FILE_ATTRIBUTE_HIDDEN 
FILE_ATTRIBUTE_NORMAL 
FILE_ATTRIBUTE_OFFLINE 
FILE_ATTRIBUTE_READONLY 
FILE_ATTRIBUTE_SYSTEM 
FILE_ATTRIBUTE_TEMPORARY 

The file is an archive file. 
The file or directory is compressed. 

The file is a directory.
The file is hidden.

The file has no other attributes set.

The data of the file is not immediately available. 

The file is read-only. 

The file is part of the operating system or is used exclusively by it.

The file is being used for temporary storage.