// wdfdriver.h
EVT_WDF_DRIVER_UNLOAD EvtWdfDriverUnload;
VOID EvtWdfDriverUnload(
[in] WDFDRIVER Driver
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF and UMDF]
A driver's EvtDriverUnload event callback function performs operations that must take place before the driver is unloaded.
Driver [in]A handle to a framework driver object.
A driver registers an EvtDriverUnload callback function when it calls WdfDriverCreate.
The EvtDriverUnload callback function must deallocate any non-device-specific system resources that the driver's DriverEntry routine allocated.
The framework does not call a driver's EvtDriverUnload callback function if the driver's DriverEntry routine returns an error status value.