Writing an Unload Routine
Any driver that can be replaced, or unloaded and reloaded, while the system is running must have an Unload routine. All WDM drivers must have Unload routines.
Although Unload routines are optional for non-WDM drivers, Driver Verifier will fail any driver that does not provide an Unload routine.
This section contains the following topics: