DISK_PARTITION_INFO structure (ntdddisk.h)
The DISK_PARTITION_INFO structure is used to report information about the disk's partition table.
Syntax
typedef struct _DISK_PARTITION_INFO {
ULONG SizeOfPartitionInfo;
PARTITION_STYLE PartitionStyle;
union {
struct {
ULONG Signature;
ULONG CheckSum;
} Mbr;
struct {
GUID DiskId;
} Gpt;
} DUMMYUNIONNAME;
} DISK_PARTITION_INFO, *PDISK_PARTITION_INFO;
Members
SizeOfPartitionInfo
Size of this structure in bytes. Set to sizeof(DISK_PARTITION_INFO).
PartitionStyle
Takes a PARTITION_STYLE enumerated value that specifies the type of partition table the disk contains.
DUMMYUNIONNAME
DUMMYUNIONNAME.Mbr
If PartitionStyle == MBR
DUMMYUNIONNAME.Mbr.Signature
Specifies 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. Any other value indicates that the partition is not a boot partition. This member is valid when PartitionStyle is PARTITION_STYLE_MBR.
DUMMYUNIONNAME.Mbr.CheckSum
Specifies 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.
DUMMYUNIONNAME.Gpt
If PartitionStyle == GPT
DUMMYUNIONNAME.Gpt.DiskId
Specifies 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. This member is valid when PartitionStyle is PARTITION_STYLE_GPT. The GUID data type is described on the Using GUIDs in Drivers reference page.
Requirements
Requirement | Value |
---|---|
Header | ntdddisk.h (include Ntdddisk.h) |