Platform SDK: Hardware

DRIVE_LAYOUT_INFORMATION

The DRIVE_LAYOUT_INFORMATION structure provides information about a drive's partitions.

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

Members

PartitionCount
The number of partitions on the drive.
Signature
A drive signature value.
PartitionEntry
A variable-sized array of PARTITION_INFORMATION structures, one structure for each partition on the drive.

Remarks

The DeviceIoControl function receives a DRIVE_LAYOUT_INFORMATION structure in response to an IOCTL_DISK_GET_DRIVE_LAYOUT control code. The DeviceIoControl function uses a DRIVE_LAYOUT_INFORMATION structure as input to an IOCTL_DISK_SET_DRIVE_LAYOUT control code.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Unsupported.
  Header: Declared in Winioctl.h.

See Also

Device Input and Output Overview, Device Input and Output Structures, DeviceIoControl, IOCTL_DISK_GET_DRIVE_LAYOUT, IOCTL_DISK_SET_DRIVE_LAYOUT, PARTITION_INFORMATION