// ntdddisk.h
typedef struct _DRIVE_LAYOUT_INFORMATION_GPT {
GUID DiskId;
LARGE_INTEGER StartingUsableOffset;
LARGE_INTEGER UsableLength;
ULONG MaxPartitionCount;
} DRIVE_LAYOUT_INFORMATION_GPT, *PDRIVE_LAYOUT_INFORMATION_GPT;
View the official Windows Driver Kit DDI reference
// winioctl.h
typedef struct _DRIVE_LAYOUT_INFORMATION_GPT {
GUID DiskId;
LARGE_INTEGER StartingUsableOffset;
LARGE_INTEGER UsableLength;
DWORD MaxPartitionCount;
} DRIVE_LAYOUT_INFORMATION_GPT, *PDRIVE_LAYOUT_INFORMATION_GPT;
View the official Win32 API reference
No description available.
The DRIVE_LAYOUT_INFORMATION_GPT structure reports the drive signature for a GUID Partition Table partition.
DiskId
Contains a GUID that uniquely identifies the drive. The GUID data type is described on the Using GUIDs in Drivers reference page.
StartingUsableOffset
Contains an offset in bytes to the location immediately following the primary partition table. This offset begins the region on the drive where partitions reside, but partition one is not necessarily located precisely at this offset.
UsableLength
Indicates the total usable space in bytes available on the drive.
MaxPartitionCount
Indicates the maximum number of partitions allowed on the drive.
This structure contains the drive layout information that is specific to a drive with a GUID Partition Table partition. It is encapsulated within the DRIVE_LAYOUT_INFORMATION_EX structure. For further information see Intel's Extensible Firmware Interface specification.
Contains information about a drive's GUID partition table (GPT) partitions.
DiskId
The GUID of the disk.
StartingUsableOffset
The starting byte offset of the first usable block.
UsableLength
The size of the usable blocks on the disk, in bytes.
MaxPartitionCount
The maximum number of partitions that can be defined in the usable block.
IOCTL_DISK_GET_DRIVE_LAYOUT_EX
IOCTL_DISK_SET_DRIVE_LAYOUT_EX