IOCTL_DISK_UPDATE_DRIVE_SIZE IOCTL (ntdddisk.h)

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

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

See also

DISK_GEOMETRY