CREATE_DISK structure (winioctl.h)

Contains information that the IOCTL_DISK_CREATE_DISK control code uses to initialize GUID partition table (GPT), master boot record (MBR), or raw disks.

Syntax

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

Members

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.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header winioctl.h (include Windows.h)

See also

CREATE_DISK_GPT

CREATE_DISK_MBR

IOCTL_DISK_CREATE_DISK

PARTITION_STYLE