SET_PARTITION_INFORMATION_EX structure (ntdddisk.h)
SET_PARTITION_INFORMATION_EX is used with the IOCTL IOCTL_DISK_SET_PARTITION_INFO_EX to set information for a specific partition.
Syntax
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;
Members
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.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Header | ntdddisk.h (include Ntdddisk.h) |