Export (0) Print
Expand All

PARTITION_INFORMATION_EX structure

Contains partition information for standard AT-style master boot record (MBR) and Extensible Firmware Interface (EFI) disks.

Syntax


typedef struct {
  PARTITION_STYLE PartitionStyle;
  LARGE_INTEGER   StartingOffset;
  LARGE_INTEGER   PartitionLength;
  DWORD           PartitionNumber;
  BOOLEAN         RewritePartition;
  union {
    PARTITION_INFORMATION_MBR Mbr;
    PARTITION_INFORMATION_GPT Gpt;
  };
} PARTITION_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.

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.

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

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

File System Recognition
IOCTL_DISK_GET_PARTITION_INFO_EX
IOCTL_DISK_SET_PARTITION_INFO_EX
PARTITION_INFORMATION_GPT
PARTITION_INFORMATION_MBR
PARTITION_STYLE

 

 

Community Additions

ADD
Show:
© 2014 Microsoft