IOCTL_STORAGE_DIAGNOSTIC - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntddstor.h

// CTL_CODE(0x002d, 0x728, METHOD_BUFFERED, FILE_ANY_ACCESS)
#define IOCTL_STORAGE_DIAGNOSTIC 0x002D1CA0
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ni-ntddstor-ioctl_storage_diagnostic)

Description

IOCTL_STORAGE_DIAGNOSTIC is used to query diagnostic data from the storage driver stack.

Parameters

Major code

Input buffer

Irp->AssociatedIrp.SystemBuffer contains a STORAGE_DIAGNOSTIC_REQUEST structure that describes the diagnostic request being made about the storage driver stack.

Input buffer length

Parameters.DeviceIoControl.InputBufferLength indicates the size, in bytes, of the parameter buffer at Irp->AssociatedIrp.SystemBuffer, which must be >= sizeof(STORAGE_DIAGNOSTIC_REQUEST).

Output buffer

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.

Output buffer length

Parameters.DeviceIoControl.OutputBufferLength indicates the size, in bytes, of the parameter buffer at Irp->AssociatedIrp.SystemBuffer, which must be >= sizeof(STORAGE_DIAGNOSTIC_DATA).

Input/output buffer

n/a

Input/output buffer length

n/a

Status block

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.

See also

STORAGE_DIAGNOSTIC_DATA

STORAGE_DIAGNOSTIC_REQUEST