PARTITION_INFORMATION structure (winioctl.h)

Contains information about a disk partition.

Note  PARTITION_INFORMATION has been superseded by the PARTITION_INFORMATION_EX structure.
 

Syntax

typedef struct _PARTITION_INFORMATION {
  LARGE_INTEGER StartingOffset;
  LARGE_INTEGER PartitionLength;
  DWORD         HiddenSectors;
  DWORD         PartitionNumber;
  BYTE          PartitionType;
  BOOLEAN       BootIndicator;
  BOOLEAN       RecognizedPartition;
  BOOLEAN       RewritePartition;
} PARTITION_INFORMATION, *PPARTITION_INFORMATION;

Members

StartingOffset

The starting offset of the partition.

PartitionLength

The length of the partition, in bytes.

HiddenSectors

The number of hidden sectors in the partition.

PartitionNumber

The number of the partition (1-based).

PartitionType

The type of partition. For a list of values, see Disk Partition Types.

BootIndicator

If this member is TRUE, the partition is bootable.

RecognizedPartition

If this member is TRUE, the partition is of a recognized type.

RewritePartition

If this member is TRUE, the partition information has changed. When you change a partition (with IOCTL_DISK_SET_DRIVE_LAYOUT), the system uses this member to determine which partitions have changed and need their information rewritten.

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

File System Recognition

IOCTL_DISK_GET_DRIVE_LAYOUT

IOCTL_DISK_GET_PARTITION_INFO

IOCTL_DISK_SET_DRIVE_LAYOUT

IOCTL_DISK_SET_PARTITION_INFO

PARTITION_INFORMATION_EX

PARTITION_STYLE