// netdevice.h
void NetDeviceInitSetPowerPolicyEventCallbacks(
[_Inout_] PWDFDEVICE_INIT DeviceInit,
[_In_] const NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS *Callbacks
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetDeviceInitSetPowerPolicyEventCallbacks function sets optional power policy event callbacks during device initialization for a client driver.
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.
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.
NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS