MINIPORT_WDI_ADAPTER_HANG_DIAGNOSE callback function

The MiniportWdiAdapterHangDiagnose handler function is used to collect hardware control register states and optionally full firmware state.

This is a WDI miniport handler inside NDIS_MINIPORT_DRIVER_WDI_CHARACTERISTICS.

Note  You must declare the function by using the MINIPORT_WDI_ADAPTER_HANG_DIAGNOSE type. For more information, see the following Examples section.
 

Syntax

MINIPORT_WDI_ADAPTER_HANG_DIAGNOSE MiniportWdiAdapterHangDiagnose;

NDIS_STATUS MiniportWdiAdapterHangDiagnose(
  NDIS_HANDLE MiniportDriverContext,
  eDiagnoseLevel DiagnoseLevel,
  UINT32 BufferSize,
  UINT8 *FirmwareBlob,
  UINT32 *pOutputSize
)
{...}

Parameters

MiniportDriverContext

The handle to a driver-allocated context area where the driver maintains state and configuration information. The miniport driver passed this context area to the NdisMRegisterWdiMiniportDriver function.

DiagnoseLevel

The diagnose level, as defined in the eDiagnoseLevel enumeration. The default level is DiagnoseLevelHardwareRegisters, 1KB maximum in the output buffer.

BufferSize

The size of FirmwareBlob, in bytes.

FirmwareBlob

pOutputSize

Return Value

The return value is ignored.

Remarks

The default diagnose level is DiagnoseLevelHardwareRegisters, with 1KB maximum in the output buffer.

Requirements

   
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Target Platform Windows
Header dot11wdi.h

See Also

NDIS_MINIPORT_DRIVER_WDI_CHARACTERISTICS

WDI hang detection and recovery

eDiagnoseLevel