IOCTL_DISK_UPDATE_DRIVE_SIZE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// 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 reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-ntdddisk-ioctl_disk_update_drive_size)

IOCTL_DISK_UPDATE_DRIVE_SIZE IOCTL

Description

Updates device extension with drive size information for current media.

Parameters

Major code

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).

Input/output buffer

Input/output buffer length

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.

See also

DISK_GEOMETRY