// netwakesource.h
NETADAPTER NetWakeSourceGetAdapter(
[_In_] NETWAKESOURCE WakeSource
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetWakeSourceGetAdapter function gets the net adapter for a wake-on-LAN (WoL) source.
WakeSource [_In_]The NETWAKESOURCE object that represents the source of the wake-up event.
Returns the NETADAPTER object that represents the net adapter for this wake source.
Client drivers that have one network adapter per device do not need to call this optional function. Call NetWakeSourceGetAdapter if your device has more than one net adapter object per device, such as in a MBBCx client driver.
The client driver must only call NetWakeSourceGetAdapter during a power transition, typically from its EVT_WDF_DEVICE_ARM_WAKE_FROM_SX, EVT_WDF_DEVICE_ARM_WAKE_FROM_S0, or EVT_NET_DEVICE_PREVIEW_WAKE_SOURCE callback function. Otherwise, the call results in a system bugcheck.