Previous Next

IOCTL_DISK_SET_CACHE_INFORMATION

Operation

Sets disk cache configuration data.

Input

Parameters.DeviceIoControl.InputBufferLength 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_CACHE_INFORMATION). Otherwise, the driver returns with an error status of STATUS_INFO_LENGTH_MISMATCH.

Output

The device driver returns disk cache data in the buffer at Irp->AssociatedIrp.SystemBuffer. The data is structured as follows:

The device driver returns the DISK_CACHE_INFORMATION in the buffer at Irp->AssociatedIrp.SystemBuffer.

I/O Status Block

The Information field is set to sizeof(DISK_CACHE_INFORMATION). The Status field can be set to STATUS_SUCCESS or STATUS_INFO_LENGTH_MISMATCH if the input buffer is not large enough.

Headers

Defined in ntdddisk.h. Include ntdddisk.h.

See Also

DISK_CACHE_INFORMATION