EVT_WDFDEVICE_WDM_PRE_PO_FX_UNREGISTER_DEVICE callback function (wdfdevice.h)

[Applies to KMDF only]

The EvtDeviceWdmPrePoFxUnregisterDevice callback function performs device-specific operations before the framework deletes a specified registration with the power framework.

Syntax

EVT_WDFDEVICE_WDM_PRE_PO_FX_UNREGISTER_DEVICE EvtWdfdeviceWdmPrePoFxUnregisterDevice;

void EvtWdfdeviceWdmPrePoFxUnregisterDevice(
  [in] WDFDEVICE Device,
  [in] POHANDLE PoHandle
)
{...}

Parameters

[in] Device

A handle to a framework device object.

[in] PoHandle

A handle that represents the device’s registration with the power framework.

Return value

None

Remarks

The EvtDeviceWdmPrePoFxUnregisterDevice callback function applies only to single-component devices.

To register an EvtDeviceWdmPrePoFxUnregisterDevice callback function, a driver must call WdfDeviceWdmAssignPowerFrameworkSettings.

A driver can provide this callback function if it must perform any additional operations before the framework unregisters the specified POHANDLE.

After the driver has returned from this callback, it is no longer safe to use this POHANDLE.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.11
Header wdfdevice.h (include Wdf.h)
IRQL PASSIVE_LEVEL

See also

EvtDeviceWdmPostPoFxRegisterDevice

WdfDeviceWdmAssignPowerFrameworkSettings