NetDeviceInitSetPowerPolicyEventCallbacks - NtDoc

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

void NetDeviceInitSetPowerPolicyEventCallbacks(
  [_Inout_] PWDFDEVICE_INIT                               DeviceInit,
  [_In_]    const NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS *Callbacks
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netdevice-netdeviceinitsetpowerpolicyeventcallbacks)

NetDeviceInitSetPowerPolicyEventCallbacks function

Description

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

Parameters

DeviceInit [_Inout_]

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

Callbacks [_In_]

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

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.

See also

Configuring Power Management

NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS