#ifndef _NTIOAPI_H
/**
* The FILE_INTERNAL_INFORMATION structure is used to query for the file system's 8-byte file reference number for a file.
* @sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/ns-ntifs-_file_internal_information
*/
typedef struct _FILE_INTERNAL_INFORMATION
{
union
{
ULARGE_INTEGER IndexNumber;
struct
{
ULONGLONG MftRecordIndex : 48; // rev
ULONGLONG SequenceNumber : 16; // rev
};
};
} FILE_INTERNAL_INFORMATION, *PFILE_INTERNAL_INFORMATION;
View code on GitHub
This structure is documented in Windows Driver Kit.
FILE_INTERNAL_INFORMATION
structure is a result of call NtQueryInformationFile
with FileInternalInformation
information class. It's not possible to set file unique identifier.
File identifier, unique for file's device.