Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Driver Kit
Storage
Reference
Disk Structures
 DRIVE_LAYOUT_INFORMATION
Windows Driver Kit: Storage Devices
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.
PartitionEntry
Contains a variable-length array of PARTITION_INFORMATION structures, one for each partition on the drive.

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.

Requirements

Headers: Declared in ntdddisk.h. Include ntdddisk.h.

See Also

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

APIScan Requirements

Header: Ntdddisk.h
Function: DRIVE_LAYOUT_INFORMATION
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker