Bewerken

Delen via


IOCTL_DISK_SET_DRIVE_LAYOUT_EX IOCTL (ntdddisk.h)

Repartitions a disk as specified. (Floppy drivers need not handle this request.)

Major code

IRP_MJ_DEVICE_CONTROL

Input buffer

The buffer at Irp->AssociatedIrp.SystemBuffer contains the DRIVE_LAYOUT_INFORMATION_EX values 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(DRIVE_LAYOUT_INFORMATION_EX).

Output buffer

Returns updated DRIVE_LAYOUT_INFORMATION_EX, possibly with modified partition numbers, to the buffer at Irp->AssociatedIrp.SystemBuffer.

Output buffer length

Length of a DRIVE_LAYOUT_INFORMATION_EX.

Status block

The Information field is set to the size, in bytes, of the returned information. The Status field can be set to STATUS_SUCCESS, or possibly to STATUS_INVALID_PARAMETER, STATUS_INFO_LENGTH_MISMATCH, STATUS_INSUFFICIENT_RESOURCES, or STATUS_BUFFER_TOO_SMALL.

Requirements

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

See also

DRIVE_LAYOUT_INFORMATION_EX