Windows Driver Kit: Kernel-Mode Driver Framework
EvtDriverUnload
A driver's EvtDriverUnload event callback function performs operations that must take place before the driver is unloaded.
typedef VOID
(*PFN_WDF_DRIVER_UNLOAD)(
IN WDFDRIVER Driver
);
Parameters
- Driver
- A handle to a framework driver object.
Return Value
None
Headers
Defined in Wdfdriver.h. Include Wdf.h.
Comments
The EvtDriverUnload callback function is supported by version 1.0 and later versions of KMDF.
The EvtDriverUnload callback function must deallocate any non-device–specific system resources that the driver's DriverEntry routine allocated.
This callback function is called at IRQL = PASSIVE_LEVEL.
See Also
DriverEntry
APIScan Requirements
Header: Wdfdriver.h, Wdf.h
Function: EvtDriverUnload