IOCTL_DISK_UPDATE_DRIVE_SIZE IOCTL

Updates device extension with drive size information for current media.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

None.

Input Buffer Length

None.

Output Buffer

Otherwise, the driver returns with an error status of STATUS_BUFFER_TOO_SMALL.

The device driver returns the DISK_GEOMETRY structure in the buffer at Irp->AssociatedIrp.SystemBuffer.

Output Buffer Length

Parameters.DeviceIoControl.OutputBufferLength in the I/O stack location of the IRP indicates the size, in bytes, of the buffer made available to the driver, which must be >= sizeof(DISK_GEOMETRY).

Status Block

Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as a NTSTATUS code.

Requirements

   
Header ntdddisk.h (include Ntdddisk.h)

See Also

DISK_GEOMETRY