Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DISK_PARTITION_INFO structure (winioctl.h)

Contains the disk partition information.

Syntax

typedef struct _DISK_PARTITION_INFO {
 DWORD SizeOfPartitionInfo;
 PARTITION_STYLE PartitionStyle;
 union {
 struct {
 DWORD Signature;
 DWORD CheckSum;
 } Mbr;
 struct {
 GUID DiskId;
 } Gpt;
 } DUMMYUNIONNAME;
} DISK_PARTITION_INFO, *PDISK_PARTITION_INFO;

Members

SizeOfPartitionInfo

The size of this structure, in bytes.

PartitionStyle

The format of a partition.

For more information, see PARTITION_STYLE.

DUMMYUNIONNAME

DUMMYUNIONNAME.Mbr

If PartitionStyle is PARTITION_STYLE_MBR (0), the union is a structure that contains information for a master boot record partition, which includes a disk signature and a checksum.

DUMMYUNIONNAME.Mbr.Signature

MBR signature of the partition.

DUMMYUNIONNAME.Mbr.CheckSum

DUMMYUNIONNAME.Gpt

If PartitionStyle is PARTITION_STYLE_GPT (1), the union is a structure that contains information for a GUID partition table partition, which includes a disk identifier (GUID).

DUMMYUNIONNAME.Gpt.DiskId

GUID of the GPT partition.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header winioctl.h (include Windows.h)

See also

DISK_GEOMETRY_EX, PARTITION_STYLE


Feedback

Was this page helpful?

Additional resources