Previous Next

IOCTL_DISK_SET_PARTITION_INFO

Operation

Changes the partition type of the specified disk partition. (Floppy drivers need not handle this request.)

Input

The buffer at Irp->AssociatedIrp.SystemBuffer contains the SET_PARTITION_INFORMATION to be set. Parameters.DeviceIoControl.InputBufferLength in the I/O stack location of the IRP indicates the size of the buffer, which must be >= sizeof(SET_PARTITION_INFORMATION).

Output

None

I/O Status Block

The Information field is set to zero. The Status field can be set to STATUS_SUCCESS, or possibly to STATUS_INVALID_PARAMETER, STATUS_INVALID_DEVICE_REQUEST, STATUS_UNSUCCESSFUL, STATUS_INFO_LENGTH_MISMATCH, STATUS_INSUFFICIENT_RESOURCES, or STATUS_BUFFER_TOO_SMALL.

Headers

Defined in ntdddisk.h. Include ntdddisk.h.

See Also

SET_PARTITION_INFORMATION