_DRIVE_LAYOUT_INFORMATION structure

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.

Syntax

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.

        `PartitionEntry`

        Contains a variable-length array of <a href="..\ntdddisk\ns-ntdddisk-_partition_information.md">PARTITION_INFORMATION</a> structures, one for each partition on the drive.

        `Signature`

        Contains the disk signature.

## Remarks
    In Windows 2000 and later operating systems, disk drivers should use structures <a href="..\ntdddisk\ns-ntdddisk-_drive_layout_information_ex.md">DRIVE_LAYOUT_INFORMATION_EX</a> and <a href="..\ntdddisk\ns-ntdddisk-_partition_information_ex.md">PARTITION_INFORMATION_EX</a> along with routines <b>IoReadPartitionTableEx</b> and <a href="..\ntddk\nf-ntddk-iosetpartitioninformationex.md">IoSetPartitionInformationEx</a> to read and alter partition information on the disk.

Requirements

   
Windows Driver kit version
Minimum KMDF version
Minimum UMDF version
Header ntdddisk.h (include Ntdddisk.h)
## See Also

    <dl>

IOCTL_DISK_GET_PARTITION_INFO
IOCTL_DISK_GET_DRIVE_LAYOUT
IOCTL_DISK_SET_DRIVE_LAYOUT
IoReadPartitionTable
IoReadPartitionTableEx
IoSetPartitionInformation
IoWritePartitionTable

Send comments about this topic to Microsoft