Compartilhar via


Migrate Adapter Shutdown Functionality to NDIS 6.0 (Compact 2013)

3/26/2014

NDIS 6.0 calls your miniport driver's MiniportShutdownEx function when the system is shutting down. The NDIS 6.0 miniport driver's shutdown function, MiniportShutdownEx, differs from the NDIS 5.xMiniportShutdown function in that it receives a ShutdownAction parameter in addition to the MiniportAdapterContext parameter. The ShutdownAction parameter specifies the reason for shutting down the miniport driver.

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

NDIS 5.x

NDIS 6.0

MiniportShutdown

MiniportShutdownEx

MiniportShutdownEx restores the miniport adapter to a known initial state (the state before NDIS called the miniport driver's MiniportInitializeEx function for the miniport adapter). By restoring the miniport adapter to a known initial state, you ensure that the miniport adapter is ready to be reinitialized when the device is restarted after a system shutdown occurs for any reason, including an unrecoverable system error.

See Also

Concepts

Update Miniport Adapter Initialization, Halt, and Shutdown Functionality for NDIS 6.0