NET_ADAPTER_WAKE_MAGIC_PACKET_CAPABILITIES_INIT function (netadapter.h)

The NET_ADAPTER_WAKE_MAGIC_PACKET_CAPABILITIES_INIT function initializes a NET_ADAPTER_WAKE_MAGIC_PACKET_CAPABILITIES structure.

Syntax

void NET_ADAPTER_WAKE_MAGIC_PACKET_CAPABILITIES_INIT(
  [_Out_] NET_ADAPTER_WAKE_MAGIC_PACKET_CAPABILITIES *Capabilities
);

Parameters

[_Out_] Capabilities

A pointer to a client driver-allocated NET_ADAPTER_WAKE_MAGIC_PACKET_CAPABILITIES* structure.

Return value

None

Remarks

This function zeroes out the memory for the NET_ADAPTER_WAKE_MAGIC_PACKET_CAPABILITIES structure, then sets the Size member. After calling this function to initialize the NET_ADAPTER_WAKE_MAGIC_PACKET_CAPABILITIES structure, set the remaining members of the structure according to your hardware's capabilities, then call NetAdapterWakeSetMagicPacketCapabilities to set the net adapter's magic packet wake on LAN (WoL) capabilities. Client drivers typically call NetAdapterWakeSetMagicPacketCapabilities when starting a net adapter, but before calling NetAdapterStart.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Target Platform Universal
Minimum UMDF version 2.33
Header netadapter.h (include netadaptercx.h)
IRQL Any level as long as target memory is resident

See also

Configuring power management

NET_ADAPTER_WAKE_MAGIC_PACKET_CAPABILITIES

NetAdapterWakeSetMagicPacketCapabilities

NetAdapterStart