// ntddstor.h
// CTL_CODE(0x002d, 0x728, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_STORAGE_DIAGNOSTIC 0x002D1CA0
View the official Windows Driver Kit DDI referenceNo description available.
IOCTL_STORAGE_DIAGNOSTIC is used to query diagnostic data from the storage driver stack.
Irp->AssociatedIrp.SystemBuffer contains a STORAGE_DIAGNOSTIC_REQUEST structure that describes the diagnostic request being made about the storage driver stack.
Parameters.DeviceIoControl.InputBufferLength indicates the size, in bytes, of the parameter buffer at Irp->AssociatedIrp.SystemBuffer, which must be >= sizeof(STORAGE_DIAGNOSTIC_REQUEST).
The driver returns output to the buffer at Irp->AssociatedIrp.SystemBuffer. This buffer contains a STORAGE_DIAGNOSTIC_DATA structure with diagnostic data about the storage driver stack.
Parameters.DeviceIoControl.OutputBufferLength indicates the size, in bytes, of the parameter buffer at Irp->AssociatedIrp.SystemBuffer, which must be >= sizeof(STORAGE_DIAGNOSTIC_DATA).
n/a
n/a
Irp->IoStatus.Status is set to STATUS_SUCCESS if the request is successful. Otherwise, Status is set to the appropriate error condition as a NTSTATUS code. For more information, see NTSTATUS Values.