IOCTL_DISK_SET_CACHE_INFORMATION IOCTL

Sets disk cache configuration data.

Major Code

IRP_MJ_DEVICE_CONTROL

Input Buffer

The input buffer.

Input Buffer Length

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 Buffer

None.

Output Buffer Length

None.

Input / Output Buffer

Input / Output Buffer Length

Status Block

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

Requirements

   
Header ntdddisk.h (include Ntdddisk.h)

See Also

DISK_CACHE_INFORMATION