The PARTITION_INFORMATION structure contains partition information for a partition with a traditional AT-style Master Boot Record (MBR).
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;
| Partition Type | Meaning |
|---|---|
| PARTITION_ENTRY_UNUSED | Unused entry. |
| PARTITION_FAT_12 | Specifies a partition with 12-bit FAT entries. |
| PARTITION_XENIX_1 | Specifies a XENIX® Type 1 partition. |
| PARTITION_XENIX_2 | Specifies a XENIX Type 2 partition. |
| PARTITION_FAT_16 | Specifies a partition with 16-bit FAT entries. |
| PARTITION_EXTENDED | Specifies an MS-DOS® V4 extended partition. |
| PARTITION_HUGE | Specifies an MS-DOS V4 huge partition. |
| PARTITION_IFS | Specifies an IFS partition. |
| PARTITION_FAT32 | Specifies a FAT32 partition. |
| PARTITION_FAT32_XINT13 | Windows 95/98: Specifies a partition that uses extended INT 13 services. |
| PARTITION_XINT13_EXTENDED | Windows 95/98: Same as PARTITION_EXTENDED, but uses extended INT 13 services. |
| PARTITION_PREP | Specifies a PowerPC Reference Platform partition. |
| PARTITION_LDM | Specifies a logical disk manager partition. |
| PARTITION_UNIX | Specifies a UNIX partition. |
| PARTITION_NTFT | Specifies an NTFT partition. This value is used in combination (that is, bitwise logically ORed) with the other values in this table. |
Declared in ntdddisk.h. Include ntdddisk.h.
The partition entry data in PARTITION_INFORMATION forms part of the drive layout information reported by the legacy routine IoReadPartitionTable in the DRIVE_LAYOUT_INFORMATION structure. DRIVE_LAYOUT_INFORMATION contains an array of PARTITION_INFORMATION structures pointed to by its PartitionEntry member. Each partition entry contains information for a partition on the drive. PARTITION_INFORMATION is also used with the legacy routine IoSetPartitionInformation to change the properties of the partition, such as its type, recorded on the disk.
In Windows® 2000 and later operating systems, disk drivers should use structures DRIVE_LAYOUT_INFORMATION_EX and PARTITION_INFORMATION_EX along with routines IoReadPartitionTableEx and IoSetPartitionInformationEx to read and alter partition information on the disk.
IoReadPartitionTable, IoSetPartitionInformation, IoReadPartitionTableEx, IoSetPartitionInformationEx, DRIVE_LAYOUT_INFORMATION, DRIVE_LAYOUT_INFORMATION_EX, PARTITION_INFORMATION_EX