NetDeviceInitSetPowerPolicyEventCallbacks function (netdevice.h)

The NetDeviceInitSetPowerPolicyEventCallbacks function sets optional power policy event callbacks during device initialization for a client driver.

Syntax

void NetDeviceInitSetPowerPolicyEventCallbacks(
  [_Inout_] PWDFDEVICE_INIT                               DeviceInit,
  [_In_]    const NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS *Callbacks
);

Parameters

[_Inout_] DeviceInit

A pointer to a WDFDEVICE_INIT object that the client driver received in its EvtDriverDeviceAdd routine.

[_In_] Callbacks

A pointer to a client driver allocated and initialized NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS structure.

Return value

None

Remarks

Initialize the WDFDEVICE_INIT object by calling NetDeviceInitConfig before calling this function. Initialize the NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS structure by calling NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS_INIT, then fill in pointers to the callbacks that your client driver implements.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Target Platform Universal
Minimum UMDF version 2.33
Header netdevice.h (include netadaptercx.h)
Library netadaptercxstub.lib
IRQL PASSIVE_LEVEL

See also

Configuring Power Management

NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS