NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS_INIT function (netdevice.h)

The NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS_INIT function initializes a NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS structure.

Syntax

void NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS_INIT(
  [_Out_] NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS *Callbacks
);

Parameters

[_Out_] Callbacks

A pointer to a driver-allocated NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS structure.

Return value

None

Remarks

This function zeroes out the NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS structure, then fills in the Size member. After calling this function, call NetDeviceInitSetPowerPolicyEventCallbacks during device initialization before you call WdfDeviceCreate.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Target Platform Universal
Minimum UMDF version 2.33
Header netdevice.h (include netadaptercx.h)
IRQL Any level as long as target memory is resident

See also

Configuring Power Management

NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS

NetDeviceInitSetPowerPolicyEventCallbacks

WdfDeviceCreate