2.2.2.11.1.1 CHANGE_ATTRIBUTES_PARAMETERS

The CHANGE_ATTRIBUTES_PARAMETERS structure describes the attributes to change on a partition.

 typedef struct _CHANGE_ATTRIBUTES_PARAMETERS {
   VDS_PARTITION_STYLE style;
   [switch_is(style)] union {
     [case(VDS_PST_MBR)] 
       struct {
       boolean bootIndicator;
     } MbrPartInfo;
     [case(VDS_PST_GPT)] 
       struct {
       ULONGLONG attributes;
     } GptPartInfo;
     [default]       ;
   };
 } CHANGE_ATTRIBUTES_PARAMETERS;

style: The value from the VDS_PARTITION_STYLE enumeration that describes the partition format of the disk. If the disk partitioning format is MBR, the only value that can be changed is the bootIndicator. If the disk partitioning format is GPT, the only value that can be changed is the GPT attribute.

MbrPartInfo: Contains information for an MBR partition.

bootIndicator: The Boolean value that indicates whether the partition is bootable.

GptPartInfo: Contains information for a partition in a GPT.

attributes: The bitwise OR operator of attributes to change; it can have a combination of the following values.

Value

Meaning

GPT_ATTRIBUTE_PLATFORM_REQUIRED

0x0000000000000001

Partition is required for the platform to function properly.<46>

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 machine. Used only with the basic data partition type.