FILE_NAMES_INFORMATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#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;

#endif

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.

NextEntryOffset

Offset (in bytes) of next FILE_NAMES_INFORMATION entry, or zero if last.

FileIndex

Index of file, or zero if Directory Indexing is disabled.

FileNameLength

Length of FileName array, in bytes.

FileName[1]

Name of file, in UNICODE format.

Documented by

See also