NetWakeSourceGetAdapter - NtDoc

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

NETADAPTER NetWakeSourceGetAdapter(
  [_In_] NETWAKESOURCE WakeSource
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netwakesource-netwakesourcegetadapter)

NetWakeSourceGetAdapter function

Description

The NetWakeSourceGetAdapter function gets the net adapter for a wake-on-LAN (WoL) source.

Parameters

WakeSource [_In_]

The NETWAKESOURCE object that represents the source of the wake-up event.

Return value

Returns the NETADAPTER object that represents the net adapter for this wake source.

Remarks

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.

See also

Configuring power management

[NetWakeSourceListGetElement]