Bewerken

Delen via


DRIVE_LAYOUT_INFORMATION structure (ntdddisk.h)

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.

Signature

Contains the disk signature.

PartitionEntry[1]

Contains a variable-length array of PARTITION_INFORMATION structures, one for each partition on the drive.

Remarks

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.

Requirements

Requirement Value
Header ntdddisk.h (include Ntdddisk.h)

See also

IOCTL_DISK_GET_DRIVE_LAYOUT

IOCTL_DISK_GET_PARTITION_INFO

IOCTL_DISK_SET_DRIVE_LAYOUT

IoReadPartitionTable

IoReadPartitionTableEx

IoSetPartitionInformation

IoWritePartitionTable