VOID
NdisRegisterAdapterShutdownHandler(
IN NDIS_HANDLE NdisAdapterHandle,
IN PVOID ShutdownContext,
IN ADAPTER_SHUTDOWN_HANDLER ShutdownHandler
);
NdisRegisterAdapterShutdownHandler is called by a NIC driver to register its MacShutdown handler, so this function will be called when system shutdown commences.
Callers of NdisRegisterAdapterShutdownHandler run at IRQL PASSIVE_LEVEL.