Porting Miniport Driver Unload Operations to NDIS 6.0

For NDIS 6.0, miniport drivers must specify a MiniportDriverUnload function entry point in the NDIS_MINIPORT_DRIVER_CHARACTERISTICS structure. NDIS 6.0 drivers do not call the NdisMRegisterUnloadHandler function.

In MiniportDriverUnload, a miniport driver must call the NdisMDeregisterMiniportDriver function to deregister the miniport driver. The driver passes NdisMDeregisterMiniportDriver the handle that it obtained at NdisMiniportDriverHandle when it called the NdisMRegisterMiniportDriver function.

For more information about unloading an NDIS 6.0 miniport driver, see Unloading a Miniport Driver.