// ntddk.h
typedef struct _DISK_SIGNATURE {
ULONG PartitionStyle;
union {
struct {
ULONG Signature;
ULONG CheckSum;
} Mbr;
struct {
GUID DiskId;
} Gpt;
};
} DISK_SIGNATURE, *PDISK_SIGNATURE;
View the official Windows Driver Kit DDI referenceNo description available.
DISK_SIGNATURE contains the disk signature information for a disk's partition table.
PartitionStyleSpecifies the type of partition. See PARTITION_STYLE for a description of the possible values.
MbrMbr.SignatureSpecifies the signature value, which uniquely identifies the disk. The Mbr member of the union is used to specify the disk signature data for a disk formatted with a Master Boot Record (MBR) format partition table. This member is valid when PartitionStyle is PARTITION_STYLE_MBR.
Mbr.CheckSumSpecifies the checksum for the master boot record. The Mbr member of the union is used to specify the disk signature data for a disk formatted with a Master Boot Record (MBR) format partition table. This member is valid when PartitionStyle is PARTITION_STYLE_MBR.
GptGpt.DiskIdSpecifies the GUID that uniquely identifies the disk. The Gpt member of the union is used to specify the disk signature data for a disk that is formatted with a GUID Partition Table (GPT) format partition table. The GUID data type is described on the Using GUIDs in Drivers reference page. This member is valid when PartitionStyle is PARTITION_STYLE_GPT.