SET_PARTITION_INFORMATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntdddisk.h

typedef struct _SET_PARTITION_INFORMATION {
  UCHAR PartitionType;
} SET_PARTITION_INFORMATION, *PSET_PARTITION_INFORMATION;

View the official Windows Driver Kit DDI reference
// winioctl.h

typedef struct _SET_PARTITION_INFORMATION {
  BYTE PartitionType;
} SET_PARTITION_INFORMATION, *PSET_PARTITION_INFORMATION;

View the official Win32 API reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntdddisk-_set_partition_information)

_SET_PARTITION_INFORMATION structure

Description

SET_PARTITION_INFORMATION is used with IOCTL_DISK_SET_PARTITION_INFO to change the partition type of a specified Master Boot Record (MBR) disk partition.

Members

PartitionType

Indicates the partition type. IOCTL_DISK_SET_PARTITION_INFO uses this value to set the partition type. See PARTITION_INFORMATION for a list of system-defined GPT partition types.

Remarks

The single byte unsigned value, PartitionType, contained in this structure defines a traditional AT Master Boot Record style of partition and cannot be used to define an Extensible Firmware Interface partition (also known as a GUID Partition Table partition). GPT partitions use a GUID to indicate the partition type.

See also

IOCTL_DISK_SET_PARTITION_INFO

IoReadPartitionTable

SET_PARTITION_INFORMATION_EX

SET_PARTITION_INFORMATION_GPT

SET_PARTITION_INFORMATION_MBR


Win32 API reference (ns-winioctl-set_partition_information)

SET_PARTITION_INFORMATION structure

Description

Contains information used to set a disk partition's type.

Note SET_PARTITION_INFORMATION has been superseded by the PARTITION_INFORMATION_EX structure.

Members

PartitionType

The type of partition. For a list of values, see Disk Partition Types.

See also

IOCTL_DISK_GET_PARTITION_INFO

IOCTL_DISK_SET_PARTITION_INFO

PARTITION_INFORMATION_EX