BCD_ELEMENT_DEVICE_QUALIFIED_PARTITION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTBCD_H
// Serialized device payloads can contain nested devices at unaligned offsets.
#include <pshpack1.h>

/**
 * Identifies a partition by disk identity and partition identity rather than by
 * its current device path. PartitionStyle 0 selects MBR (disk signature plus
 * partition byte offset); PartitionStyle 1 selects GPT (disk and partition GUIDs).
 * The 40-byte payload follows the 20-byte BCD_ELEMENT_DEVICE prefix. MBR fields
 * are consecutive, not alternatives; the MBR and GPT representations overlap.
 */
typedef struct _BCD_ELEMENT_DEVICE_QUALIFIED_PARTITION
{
    ULONG PartitionStyle;
    ULONG Reserved; // Zero when writing.
    union
    {
        struct
        {
            ULONG DiskSignature;
            ULONG64 PartitionOffset; // Bytes from the start of the disk.
        } Mbr;
        struct
        {
            GUID DiskSignature;
            GUID PartitionSignature;
        } Gpt;
    };
} BCD_ELEMENT_DEVICE_QUALIFIED_PARTITION, *PBCD_ELEMENT_DEVICE_QUALIFIED_PARTITION;

#include <poppack.h>
#endif

View code on GitHub

NtDoc

No description available.