2.2.1.3.22 CREATE_PARTITION_PARAMETERS
The CREATE_PARTITION_PARAMETERS structure provides information about partition properties.
-
typedef struct _CREATE_PARTITION_PARAMETERS { VDS_PARTITION_STYLE style; [switch_is(style)] union { [case(VDS_PST_MBR)] struct { byte partitionType; boolean bootIndicator; } MbrPartInfo; [case(VDS_PST_GPT)] struct { GUID partitionType; GUID partitionId; ULONGLONG attributes; WCHAR name[24]; } GptPartInfo; [default] ; }; } CREATE_PARTITION_PARAMETERS;
style: A value from the VDS_PARTITION_STYLE enumeration that describes the disk partition format.
MbrPartInfo: Contains information for an MBR partition.
partitionType: The byte value that indicates the partition type to create.
bootIndicator: A Boolean value that indicates whether the partition is bootable.
GptPartInfo: Contains information about a GPT partition.
partitionType: A GUID that indicates the partition type to create.<24>
partitionId: The GUID of the partition.
attributes: A bitwise OR operator of attributes that is used to create the partition; it can have a combination of the following values.
-
Value
Meaning
GPT_ATTRIBUTE_PLATFORM_REQUIRED
0x0000000000000001
A partition is required for the platform to function properly.<25>
GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY
0x1000000000000000
The partition can be read from, but not written to. Used only with the basic data partition type.
GPT_BASIC_DATA_ATTRIBUTE_HIDDEN
0x4000000000000000
The partition is hidden and is not mounted. Used only with the basic data partition type.
GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER
0x8000000000000000
The partition does not receive a drive letter by default when moving the disk to another computer. Used only with the basic data partition type.
name: The null-terminated Unicode name of the partition.