DRIVE_LAYOUT_INFORMATION_EX structure (winioctl.h)
Contains extended information about a drive's partitions.
Syntax
typedef struct _DRIVE_LAYOUT_INFORMATION_EX {
DWORD PartitionStyle;
DWORD PartitionCount;
union {
DRIVE_LAYOUT_INFORMATION_MBR Mbr;
DRIVE_LAYOUT_INFORMATION_GPT Gpt;
} DUMMYUNIONNAME;
PARTITION_INFORMATION_EX PartitionEntry[1];
} DRIVE_LAYOUT_INFORMATION_EX, *PDRIVE_LAYOUT_INFORMATION_EX;
Members
PartitionStyle
The style of the partitions on the drive enumerated by the PARTITION_STYLE enumeration.
Style | Value | Meaning |
---|---|---|
PARTITION_STYLE_MBR | 0 | Master boot record (MBR) format. |
PARTITION_STYLE_GPT | 1 | GUID Partition Table (GPT) format. |
PARTITION_STYLE_RAW | 2 | Partition not formatted in either of the recognized formats—MBR or GPT. |
PartitionCount
The number of partitions on the drive. On hard disks with the MBR layout, this value will always be a multiple of 4. Any partitions that are actually unused will have a partition type of PARTITION_ENTRY_UNUSED (0) set in the PartitionType member of the PARTITION_INFORMATION_MBR structure of the Mbr member of the PARTITION_INFORMATION_EX structure of the PartitionEntry member of this structure.
DUMMYUNIONNAME
DUMMYUNIONNAME.Mbr
A DRIVE_LAYOUT_INFORMATION_MBR structure containing information about the master boot record type partitioning on the drive.
DUMMYUNIONNAME.Gpt
A DRIVE_LAYOUT_INFORMATION_GPT structure containing information about the GUID disk partition type partitioning on the drive.
PartitionEntry[1]
A variable-sized array of PARTITION_INFORMATION_EX structures, one structure for each partition on the drive.
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
DRIVE_LAYOUT_INFORMATION_GPT, DRIVE_LAYOUT_INFORMATION_MBR, IOCTL_DISK_GET_DRIVE_LAYOUT_EX, IOCTL_DISK_SET_DRIVE_LAYOUT_EX, PARTITION_INFORMATION_EX, PARTITION_INFORMATION