Export (0) Print
Expand All

DRIVE_LAYOUT_INFORMATION_EX structure

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;
  };
  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.

ValueMeaning
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.

Mbr

A DRIVE_LAYOUT_INFORMATION_MBR structure containing information about the master boot record type partitioning on the drive.

Gpt

A DRIVE_LAYOUT_INFORMATION_GPT structure containing information about the GUID disk partition type partitioning on the drive.

PartitionEntry

A variable-sized array of PARTITION_INFORMATION_EX structures, one structure for each partition on the drive.

Requirements

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_STYLE

 

 

Community Additions

ADD
Show:
© 2014 Microsoft