IOCTL_DISK_UPDATE_DRIVE_SIZE control code
Updates device extension with drive size information for current media.
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). 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.
The Information field is set to the size of the block of disk geometry information being returned, sizeof(DISK_GEOMETRY). The Status field is set to STATUS_SUCCESS, or possibly to STATUS_BUFFER_TOO_SMALL, STATUS_INSUFFICIENT_RESOURCES, STATUS_IO_DEVICE_ERROR, or STATUS_DEVICE_NOT_READY.