Previous Next

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.

Driver stacks for video, keyboard, or mouse devices, and for mass-storage devices that can hold the system page file currently do not have Unload routines because these types of devices must be available while the system is running and are thus never unloaded.

Although Unload routines are optional for non-WDM drivers, Driver Verifier will fail any driver that does not provide an Unload routine.