DRIVE_LAYOUT_INFORMATION structure (winioctl.h)
Contains information about the partitions of a drive.
Note
DRIVE_LAYOUT_INFORMATION is superseded DRIVE_LAYOUT_INFORMATION_EX structure.
Syntax
typedef struct _DRIVE_LAYOUT_INFORMATION {
DWORD PartitionCount;
DWORD Signature;
PARTITION_INFORMATION PartitionEntry[1];
} DRIVE_LAYOUT_INFORMATION, *PDRIVE_LAYOUT_INFORMATION;
Members
PartitionCount
The number of partitions on a drive.
On disks with the MBR layout, this value is always a multiple of 4. Any partitions that are unused have a partition type of PARTITION_ENTRY_UNUSED (0).
Signature
The drive signature value.
PartitionEntry[1]
A variable-sized array of PARTITION_INFORMATION structures, one structure for each partition on a drive.
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
DRIVE_LAYOUT_INFORMATION_EX, IOCTL_DISK_GET_DRIVE_LAYOUT, IOCTL_DISK_SET_DRIVE_LAYOUT