// 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 referenceNo description available.
The DRIVE_LAYOUT_INFORMATION_GPT structure reports the drive signature for a GUID Partition Table partition.
DiskIdContains a GUID that uniquely identifies the drive. The GUID data type is described on the Using GUIDs in Drivers reference page.
StartingUsableOffsetContains 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.
UsableLengthIndicates the total usable space in bytes available on the drive.
MaxPartitionCountIndicates 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.
DiskIdThe GUID of the disk.
StartingUsableOffsetThe starting byte offset of the first usable block.
UsableLengthThe size of the usable blocks on the disk, in bytes.
MaxPartitionCountThe maximum number of partitions that can be defined in the usable block.
IOCTL_DISK_GET_DRIVE_LAYOUT_EX
IOCTL_DISK_SET_DRIVE_LAYOUT_EX