EVT_WDF_DRIVER_UNLOAD - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfdriver.h

EVT_WDF_DRIVER_UNLOAD EvtWdfDriverUnload;

VOID EvtWdfDriverUnload(
  [in] WDFDRIVER Driver
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-wdfdriver-evt_wdf_driver_unload)

EVT_WDF_DRIVER_UNLOAD callback function

Description

[Applies to KMDF and UMDF]

A driver's EvtDriverUnload event callback function performs operations that must take place before the driver is unloaded.

Parameters

Driver [in]

A handle to a framework driver object.

Remarks

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.

See also

DriverEntry