CREATE_DISK structure

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;
  };
} 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.

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.

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

Header

Ntdddisk.h (include Ntdddisk.h)

See also

IOCTL_DISK_CREATE_DISK
CREATE_DISK_MBR
CREATE_DISK_GPT
PARTITION_STYLE

 

 

Send comments about this topic to Microsoft

Show: