Export (0) Print
Expand All

IOCTL_DISK_GET_LENGTH_INFO control code

Returns the length, in bytes, of the disk, partition, or volume associated with the device object that is the target of the request.

Input Parameters

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

Output Parameters

The driver returns the GET_LENGTH_INFORMATION data in the buffer at Irp->AssociatedIrp.SystemBuffer.

I/O 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

Version

Supported in Windows XP and later operating systems.

Header

Ntdddisk.h (include Ntdddisk.h)

See also

GET_LENGTH_INFORMATION

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft