NTSTATUS
IoSetPartitionInformationEx(
  IN  PDEVICE_OBJECT DeviceObject,
  IN  ULONG PartitionNumber,
  IN  PSET_PARTITION_INFORMATION_EX PartitionInfo
  );

Routine Description:

    Set the partition information for a specific partition.

Arguments:

    DeviceObject - Pointer to the device object for the disk.

    PartitionNumber - A valid partition number we want to set the partition
            information for.

    PartitionInfo - The partition information.

Return Values:

    NTSTATUS code.