PFILE_ID_BOTH_DIR_INFORMATION Struct Reference

Used to query detailed information for the files in a directory. More...

#include <fileinfo.h>

Data Fields

ULONG NextEntryOffset
 
ULONG FileIndex
 
LARGE_INTEGER CreationTime
 
LARGE_INTEGER LastAccessTime
 
LARGE_INTEGER LastWriteTime
 
LARGE_INTEGER ChangeTime
 
LARGE_INTEGER EndOfFile
 
LARGE_INTEGER AllocationSize
 
ULONG FileAttributes
 
ULONG FileNameLength
 
ULONG EaSize
 
CCHAR ShortNameLength
 
WCHAR ShortName [12]
 
LARGE_INTEGER FileId
 
WCHAR FileName [1]
 

Detailed Description

Used to query detailed information for the files in a directory.

Field Documentation

LARGE_INTEGER PFILE_ID_BOTH_DIR_INFORMATION::AllocationSize

File allocation size, in bytes. Usually, this value is a multiple of the sector or cluster size of the underlying physical device.

LARGE_INTEGER PFILE_ID_BOTH_DIR_INFORMATION::ChangeTime

Last time the file was changed.

LARGE_INTEGER PFILE_ID_BOTH_DIR_INFORMATION::CreationTime

Time when the file was created.

ULONG PFILE_ID_BOTH_DIR_INFORMATION::EaSize

Combined length, in bytes, of the extended attributes (EA) for the file.

LARGE_INTEGER PFILE_ID_BOTH_DIR_INFORMATION::EndOfFile

Absolute new end-of-file position as a byte offset from the start of the file. EndOfFile specifies the byte offset to the end of the file. Because this value is zero-based, it actually refers to the first free byte in the file. In other words, EndOfFile is the offset to the byte immediately following the last valid byte in the file.

ULONG PFILE_ID_BOTH_DIR_INFORMATION::FileAttributes

File attributes, which can be any valid combination of the following:

  • FILE_ATTRIBUTE_READONLY
  • FILE_ATTRIBUTE_HIDDEN
  • FILE_ATTRIBUTE_SYSTEM
  • FILE_ATTRIBUTE_DIRECTORY
  • FILE_ATTRIBUTE_ARCHIVE
  • FILE_ATTRIBUTE_NORMAL
  • FILE_ATTRIBUTE_TEMPORARY
  • FILE_ATTRIBUTE_COMPRESSED
LARGE_INTEGER PFILE_ID_BOTH_DIR_INFORMATION::FileId

The 8-byte file reference number for the file. This number is generated and assigned to the file by the file system. (Note that the FileId is not the same as the 16-byte "file object ID" that was added to NTFS for Microsoft Windows 2000.)

ULONG PFILE_ID_BOTH_DIR_INFORMATION::FileIndex

Byte offset of the file within the parent directory. This member is undefined for file systems, such as NTFS, in which the position of a file within the parent directory is not fixed and can be changed at any time to maintain sort order.

WCHAR PFILE_ID_BOTH_DIR_INFORMATION::FileName[1]

Specifies the first character of the file name string. This is followed in memory by the remainder of the string.

ULONG PFILE_ID_BOTH_DIR_INFORMATION::FileNameLength

Specifies the length of the file name string.

LARGE_INTEGER PFILE_ID_BOTH_DIR_INFORMATION::LastAccessTime

Last time the file was accessed.

LARGE_INTEGER PFILE_ID_BOTH_DIR_INFORMATION::LastWriteTime

Last time information was written to the file.

ULONG PFILE_ID_BOTH_DIR_INFORMATION::NextEntryOffset

Byte offset of the next FILE_DIRECTORY_INFORMATION entry, if multiple entries are present in a buffer. This member is zero if no other entries follow this one.

WCHAR PFILE_ID_BOTH_DIR_INFORMATION::ShortName[12]

Unicode string containing the short (8.3) name for the file.

CCHAR PFILE_ID_BOTH_DIR_INFORMATION::ShortNameLength

Specifies the length, in bytes, of the short file name string.


The documentation for this struct was generated from the following file: