Export (0) Print
Expand All

SET_PARTITION_INFORMATION_EX structure

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

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.

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

Header

Ntdddisk.h (include Ntdddisk.h)

See also

SET_PARTITION_INFORMATION_MBR
SET_PARTITION_INFORMATION_GPT
IOCTL_DISK_SET_PARTITION_INFO_EX

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft