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 |
Header | netdevice.h (include netadaptercx.h) |
Library | netadaptercxstub.lib |
IRQL | PASSIVE_LEVEL |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for