// ntdddisk.h
// CTL_CODE(0x0007, 0x032, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
#define IOCTL_DISK_UPDATE_DRIVE_SIZE 0x0007C0C8
View the official Windows Driver Kit DDI referenceNo description available.
Updates device extension with drive size information for current media.
None.
None.
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.
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).
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status to the appropriate error condition as a NTSTATUS code.