// ntdddisk.h
typedef struct _CREATE_DISK_GPT {
GUID DiskId;
ULONG MaxPartitionCount;
} CREATE_DISK_GPT, *PCREATE_DISK_GPT;
View the official Windows Driver Kit DDI reference// winioctl.h
typedef struct _CREATE_DISK_GPT {
GUID DiskId;
DWORD MaxPartitionCount;
} CREATE_DISK_GPT, *PCREATE_DISK_GPT;
View the official Win32 API referenceNo description available.
The CREATE_DISK_GPT structure is used with the IOCTL IOCTL_DISK_CREATE_DISK to initialize a disk with an empty GPT partition table.
DiskIdSpecifies the GUID that uniquely identifies the disk.
MaxPartitionCountSpecifies the maximum number of partitions allowed on the disk.
Contains information used by the IOCTL_DISK_CREATE_DISK control code to initialize GUID partition table (GPT) disks.
DiskIdThe disk identifier (GUID) of the GPT disk to be initialized.
MaxPartitionCountThe maximum number of partitions allowed on the GPT disk to be initialized without repartitioning the disk.
The CREATE_DISK_GPT structure is defined as part of the CREATE_DISK structure.
If a maximum partition count of less than 128 is specified, it will be reset to 128. This is in compliance with the EFI specification.