CREATE_DISK - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntdddisk-_create_disk)

_CREATE_DISK structure

Description

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

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.

See also

CREATE_DISK_GPT

CREATE_DISK_MBR

IOCTL_DISK_CREATE_DISK

PARTITION_STYLE


Win32 API reference (ns-winioctl-create_disk)

CREATE_DISK structure

Description

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

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.

See also

CREATE_DISK_GPT

CREATE_DISK_MBR

IOCTL_DISK_CREATE_DISK

PARTITION_STYLE