WIN32_FIND_DATA

Type WIN32_FIND_DATA
  dwFileAttributes As Long
  ftCreationTime As FILETIME
  ftLastAccessTime As FILETIME
  ftLastWriteTime As FILETIME
  nFileSizeHigh As Long
  nFileSizeLow As Long
  dwReserved0 As Long
  dwReserved1 As Long
  cFileName As String * 260
  cAlternate As String * 14
End Type

WIN32_FIND_DATA-type variables hold information found about a file from a file search operation. This information includes the file's attributes; its creation, last-access, and last-modified times; the size of the file; its long filename; and its short filename. The file size is a 64-bit value split into two halves of 32 bits each: a high-order and a low-order half. The actual file size can be found by concatenating the binary or hexadecimal equivalents of the two halves. It can also be found by using the formula filesize = nFileSizeHigh * 2^32 + nFileSizeLow.

dwFileAttributes
One or more of the following flags identifying the file's attributes:
FILE_ATTRIBUTE_ARCHIVE = &H20
An archive file (which most files are).
FILE_ATTRIBUTE_COMPRESSED = &H800
A file residing in a compressed drive or directory.
FILE_ATTRIBUTE_DIRECTORY = &H10
A directory instead of a file.
FILE_ATTRIBUTE_HIDDEN = &H2
A hidden file, not normally visible to the user.
FILE_ATTRIBUTE_NORMAL = &H80
An attribute-less file (cannot be combined with other attributes).
FILE_ATTRIBUTE_READONLY = &H1
A read-only file.
FILE_ATTRIBUTE_SYSTEM = &H4
A system file, used exclusively by the operating system.
ftCreationTime
The time and date of when the file was created.
ftLastAccessTime
The time and date of when the file was last accessed.
ftLastWriteTime
The time and date of when the file was last modified or written to.
nFileSizeHigh
The high-order half of the file size.
nFileSizeLow
The low-order half of the file size.
dwReserved0
Reserved for future use.
dwReserved1
Reserved for future use.
cFileName
The long filename of the file.
cAlternate
The short filename of the file.
Used by: FindFirstFile, FindNextFile

Go back to the alphabetical Structure listing.
Go back to the Reference section index.


This page is copyright © 2000 Paul Kuliniewicz. Copyright Information.
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/w/win32_find_data.html