Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IOCTL_DISK_UPDATE_DRIVE_SIZE

IOCTL_DISK_UPDATE_DRIVE_SIZE control code

Updates device extension with drive size information for current media.

Input Parameters

None

Output Parameters

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.

I/O Status Block

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.

Requirements

Header

Ntdddisk.h (include Ntdddisk.h)

See also

DISK_GEOMETRY

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft