// ntdddisk.h
typedef struct _SET_PARTITION_INFORMATION_EX {
PARTITION_STYLE PartitionStyle;
union {
SET_PARTITION_INFORMATION_MBR Mbr;
SET_PARTITION_INFORMATION_GPT Gpt;
} DUMMYUNIONNAME;
} SET_PARTITION_INFORMATION_EX, *PSET_PARTITION_INFORMATION_EX;
View the official Windows Driver Kit DDI reference
No description available.
SET_PARTITION_INFORMATION_EX is used with the IOCTL IOCTL_DISK_SET_PARTITION_INFO_EX to set information for a specific partition.
PartitionStyle
Takes a PARTITION_STYLE enumerated value that specifies the type of partition table that contains the partition.
DUMMYUNIONNAME
DUMMYUNIONNAME.Mbr
Contains the information for a Master Boot Record partition that is not held in common with a GUID Partition Table partition. This member is valid when PartitionStyle member is set to PARTITION_STYLE_MBR. For a definition of this structure, see SET_PARTITION_INFORMATION_MBR.
DUMMYUNIONNAME.Gpt
Contains the information for a GUID Partition Table partition that is not held in common with a Master Boot Record partition. This member is valid when PartitionStyle member is set to PARTITION_STYLE_GPT. For a definition of this structure, see SET_PARTITION_INFORMATION_GPT.
In the case of GPT partitions, any value that can be retrieved from the partition can also be set. In the MBR case, only the partition signature can be set.
IOCTL_DISK_SET_PARTITION_INFO_EX