Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Contains partition information for standard AT-style master boot record (MBR) and Extensible Firmware Interface (EFI) disks.
Syntax
typedef struct _PARTITION_INFORMATION_EX {
PARTITION_STYLE PartitionStyle;
LARGE_INTEGER StartingOffset;
LARGE_INTEGER PartitionLength;
DWORD PartitionNumber;
BOOLEAN RewritePartition;
BOOLEAN IsServicePartition;
union {
PARTITION_INFORMATION_MBR Mbr;
PARTITION_INFORMATION_GPT Gpt;
} DUMMYUNIONNAME;
} PARTITION_INFORMATION_EX, *PPARTITION_INFORMATION_EX;
Members
PartitionStyle
The format of the partition. For a list of values, see PARTITION_STYLE.
StartingOffset
The starting offset of the partition.
PartitionLength
The size of the partition, in bytes.
PartitionNumber
The number of the partition (1-based).
RewritePartition
If this member is TRUE, the partition is rewritable. The value of this parameter should be set to TRUE.
IsServicePartition
DUMMYUNIONNAME
DUMMYUNIONNAME.Mbr
A PARTITION_INFORMATION_MBR structure that specifies partition information specific to master boot record (MBR) disks. The MBR partition format is the standard AT-style format.
DUMMYUNIONNAME.Gpt
A PARTITION_INFORMATION_GPT structure that specifies partition information specific to GUID partition table (GPT) disks. The GPT format corresponds to the EFI partition format.
Remarks
If the partition is on a disk formatted as type master boot record (MBR), partition size totals are limited. For more information, see the Remarks section of IOCTL_DISK_SET_DRIVE_LAYOUT.
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
IOCTL_DISK_GET_PARTITION_INFO_EX