DRIVE_LAYOUT_INFORMATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntdddisk.h

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

View the official Windows Driver Kit DDI reference
// winioctl.h

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

View the official Win32 API reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntdddisk-_drive_layout_information)

_DRIVE_LAYOUT_INFORMATION structure

Description

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.

Members

PartitionCount

Contains the number of partitions on the drive.

Signature

Contains the disk signature.

PartitionEntry

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.

See also

IOCTL_DISK_GET_DRIVE_LAYOUT

IOCTL_DISK_GET_PARTITION_INFO

IOCTL_DISK_SET_DRIVE_LAYOUT

IoReadPartitionTable

IoReadPartitionTableEx

IoSetPartitionInformation

IoWritePartitionTable


Win32 API reference (ns-winioctl-drive_layout_information)

DRIVE_LAYOUT_INFORMATION structure

Description

Contains information about the partitions of a drive.

[!NOTE] DRIVE_LAYOUT_INFORMATION is superseded DRIVE_LAYOUT_INFORMATION_EX structure.

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

A variable-sized array of PARTITION_INFORMATION structures, one structure for each partition on a drive.

See also

DRIVE_LAYOUT_INFORMATION_EX, IOCTL_DISK_GET_DRIVE_LAYOUT, IOCTL_DISK_SET_DRIVE_LAYOUT