EVT_WDF_DRIVER_UNLOAD callback function (wdfdriver.h)

[Applies to KMDF and UMDF]

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

Syntax

EVT_WDF_DRIVER_UNLOAD EvtWdfDriverUnload;

void EvtWdfDriverUnload(
  [in] WDFDRIVER Driver
)
{...}

Parameters

[in] Driver

A handle to a framework driver object.

Return value

None

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.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfdriver.h (include Wdf.h)
IRQL PASSIVE_LEVEL

See also

DriverEntry