#ifndef _NTIOAPI_H
typedef struct _FILE_NAMES_INFORMATION
{
ULONG NextEntryOffset;
ULONG FileIndex;
ULONG FileNameLength;
_Field_size_bytes_(FileNameLength) WCHAR FileName[1];
} FILE_NAMES_INFORMATION, *PFILE_NAMES_INFORMATION;
View code on GitHub
This structure is documented in Windows Driver Kit.
Structure FILE_NAMES_INFORMATION
is used as a result of call NtQueryDirectoryFile
with FileNamesInformation
information class. It's shorter then other directory informational structures, so can be used for better performance, when only file names are required.
Offset (in bytes) of next FILE_NAMES_INFORMATION
entry, or zero if last.
Index of file, or zero if Directory Indexing is disabled.
Length of FileName array, in bytes.
Name of file, in UNICODE format.