Previous Next

DRIVE_LAYOUT_INFORMATION

The DRIVE_LAYOUT_INFORMATION structure is obsolete and is provided only to support existing drivers. New drivers must use DRIVE_LAYOUT_INFORMATION_EX.

The DRIVE_LAYOUT_INFORMATION structure is used to report information about a disk drive and its partitions. It is also used to write new drive layout information to the disk.

typedef struct _DRIVE_LAYOUT_INFORMATION {
    ULONG PartitionCount;
    ULONG Signature;
    PARTITION_INFORMATION PartitionEntry[1];
} DRIVE_LAYOUT_INFORMATION, *PDRIVE_LAYOUT_INFORMATION;

Members

PartitionCount
Contains the number of partitions on the drive.
Signature
Contains the disk signature. If the disk is bootable, the signature will have a value of 0xbb66. Any other value indicates that the disk is not bootable.
PartitionEntry
Contains a variable-length array of PARTITION_INFORMATION structures, one for each partition on the drive.

Headers

Declared in ntdddisk.h. Include ntdddisk.h.

Comments

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.

See Also

IOCTL_DISK_GET_PARTITION_INFO, IOCTL_DISK_GET_DRIVE_LAYOUT, IOCTL_DISK_SET_DRIVE_LAYOUT, IoReadPartitionTable, IoReadPartitionTableEx, IoSetPartitionInformation, IoWritePartitionTable