// ntdddisk.h
typedef struct _CREATE_DISK {
PARTITION_STYLE PartitionStyle;
union {
CREATE_DISK_MBR Mbr;
CREATE_DISK_GPT Gpt;
} DUMMYUNIONNAME;
} CREATE_DISK, *PCREATE_DISK;
View the official Windows Driver Kit DDI reference
// winioctl.h
typedef struct _CREATE_DISK {
PARTITION_STYLE PartitionStyle;
union {
CREATE_DISK_MBR Mbr;
CREATE_DISK_GPT Gpt;
} DUMMYUNIONNAME;
} CREATE_DISK, *PCREATE_DISK;
View the official Win32 API reference
No description available.
The CREATE_DISK structure is used with the IOCTL_DISK_CREATE_DISK IOCTL to initialize a disk with an empty partition table. The partition table styles are master boot record (MBR) or GUID partition table (GPT).
PartitionStyle
Takes a PARTITION_STYLE enumerated value that specifies the type of partition table to use when formatting the disk.
DUMMYUNIONNAME
DUMMYUNIONNAME.Mbr
Contains the signature used to initialize an MBR-style disk partition for the first time. This member is valid when PartitionStyle is PARTITION_STYLE_MBR. For more information, see CREATE_DISK_MBR.
DUMMYUNIONNAME.Gpt
Contains data used to initialize a GPT-style disk partition for the first time. This member is valid when PartitionStyle is PARTITION_STYLE_GPT. For more information, see CREATE_DISK_GPT.
Contains information that the IOCTL_DISK_CREATE_DISK control code uses to initialize GUID partition table (GPT), master boot record (MBR), or raw disks.
PartitionStyle
The format of a partition.
For more information, see PARTITION_STYLE.
DUMMYUNIONNAME
DUMMYUNIONNAME.Mbr
A CREATE_DISK_MBR structure that contains disk information when an MBR disk is to be initialized.
DUMMYUNIONNAME.Gpt
A CREATE_DISK_GPT structure that contains disk information when a GPT disk is to be initialized.