Freigeben über


Check for Adapter Hang and Reset in NDIS 6.0 (Compact 2013)

3/26/2014

NDIS 6.0 replaces the NDIS 5.xMiniportCheckForHang function with the MiniportCheckForHangEx function. NDIS calls a miniport driver's MiniportCheckForHangEx function to check the operational state of an adapter. NDIS 6.0 also replaces the NDIS 5.xMiniportReset function with the MiniportResetEx function.

The following table shows which API elements have been renamed and/or changed for NDIS 6.0.

NDIS 5.x

NDIS 6.0

MiniportCheckForHang

MiniportCheckForHangEx

MiniportReset

MiniportResetEx

To port adapter operational state-checking functionality to NDIS 6.0

  1. Remove the MiniportCheckForHang function from your miniport driver.

  2. Implement MiniportCheckForHangEx to check the operational state of the adapter. MiniportCheckForHangEx does nothing more than check the internal state of the adapter and return TRUE if it detects that the adapter is not operating correctly.

To port adapter reset to NDIS 6.0

  1. Remove the MiniportReset function from your miniport driver.

  2. Implement MiniportResetEx to handle adapter reset. An NDIS 6.0 miniport driver's MiniportResetEx function differs from the NDIS 5.xMiniportReset function in that NDIS 6.0 miniport drivers can complete pending OID requests and send requests in the context of a reset. NDIS no longer performs such completion for the driver. Alternatively, the miniport driver can complete pending OID requests after the reset completes.

See Also

Concepts

Migrate Miniport Driver Functionality to NDIS 6.0