Halting a Virtual Miniport
If an NDIS intermediate driver calls the NdisIMDeinitializeDeviceInstance function, NDIS calls the MiniportHaltEx function for the affected virtual miniport. An intermediate driver usually calls NdisIMDeInitializeDeviceInstance from its ProtocolUnbindAdapterEx function.
NDIS sets the HaltAction parameter to NdisHaltDeviceInstanceDeInitialized to indicate that NDIS is halting the adapter in response to an intermediate driver's call to the NdisIMDeInitializeDeviceInstance function.
The intermediate driver's MiniportHaltEx function must release all driver-allocated resources that are associated with a virtual miniport.