#ifndef _NTIOAPI_H
/**
 * The FILE_ID_INFORMATION structure is used to query file identification information.
 * \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/ns-ntifs-file_id_information
 */
typedef struct _FILE_ID_INFORMATION
{
    ULONGLONG VolumeSerialNumber;
    union
    {
        FILE_ID_128 FileId;
        struct
        {
            union
            {
                FILE_INTERNAL_INFORMATION FileInternal; // rev
                LONGLONG FileIdLowPart; // rev
            };
            LONGLONG FileIdHighPart; // rev
        };
    };
} FILE_ID_INFORMATION, *PFILE_ID_INFORMATION;
View code on GitHub// ntifs.h
typedef struct _FILE_ID_INFORMATION {
  ULONGLONG   VolumeSerialNumber;
  FILE_ID_128 FileId;
} FILE_ID_INFORMATION, *PFILE_ID_INFORMATION;
View the official Windows Driver Kit DDI referenceThis structure is documented in Windows Driver Kit.
FILE_ID_INFORMATION is used to query file identification information.
VolumeSerialNumberSerial number of the volume where the file is located.
FileId128-bit value that uniquely identifies the file within the given volume. This identifier is generated by the file system. For file systems that do not support a 128-bit file ID, this field must be set to 0, and must be ignored.