Bewerken

Delen via


IOCTL_DISK_SET_PARTITION_INFO IOCTL (ntdddisk.h)

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

Major code

IRP_MJ_DEVICE_CONTROL

Input buffer

The buffer at Irp->AssociatedIrp.SystemBuffer contains the SET_PARTITION_INFORMATION to be set.

Input buffer length

Parameters.DeviceIoControl.InputBufferLength in the I/O stack location of the IRP indicates the size, in bytes, of the buffer, which must be >= sizeof(SET_PARTITION_INFORMATION).

Output buffer

None.

Output buffer length

None.

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.

Requirements

Requirement Value
Header ntdddisk.h (include Ntdddisk.h)

See also

SET_PARTITION_INFORMATION