VOID
MacShutdown(
IN PVOID ShutdownContext
);
MacShutdown is called by the NDIS library when the system is shutting down.
MacShutdown makes final preparations before the operating system shuts down. In particular, MacShutdown resets the NIC to its power-on state.
MacShutdown runs at IRQL PASSIVE_LEVEL in a system thread context when an end user explictly shuts the machine down. However, MacShutdown runs at an arbitrary IRQL if a bugcheck causes the system to shut down. Consequently, MacShutdown should call only those NdisXxx functions that the driver’s ISR can call.
MacAddAdapter, MiniportShutdown, NdisDeregisterAdapterShutdownHandler, NdisRegisterAdapterShutdownHandler