IOCTL_DISK_GET_LENGTH_INFO IOCTL (ntdddisk.h)
Returns the length, in bytes, of the disk, partition, or volume associated with the device object that is the target of the request.
Major code
Input buffer
None.
Input buffer length
None.
Output buffer
The driver returns the GET_LENGTH_INFORMATION data 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, which must be >= sizeof(GET_LENGTH_INFORMATION).
Status block
The Information field is set to the size, in bytes, of the returned data. The Status field can be set to STATUS_SUCCESS, or to STATUS_BUFFER_TOO_SMALL if the buffer supplied by the caller is inadequate.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Supported in Windows XP and later operating systems. |
Header | ntdddisk.h (include Ntdddisk.h) |