CREATE_DISK structure (ntdddisk.h)

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).

Syntax

typedef struct _CREATE_DISK {
  PARTITION_STYLE PartitionStyle;
  union {
    CREATE_DISK_MBR Mbr;
    CREATE_DISK_GPT Gpt;
  } DUMMYUNIONNAME;
} CREATE_DISK, *PCREATE_DISK;

Members

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.

Requirements

Requirement Value
Header ntdddisk.h (include Ntdddisk.h)

See also

CREATE_DISK_GPT

CREATE_DISK_MBR

IOCTL_DISK_CREATE_DISK

PARTITION_STYLE