NET_ADAPTER_WAKE_REASON_PACKET structure (netadaptercx.h)

The NET_ADAPTER_WAKE_REASON_PACKET structure describes a network packet (known as a wake packet) that caused the network adapter to generate a wake-up event.

Syntax

typedef struct _NET_ADAPTER_WAKE_REASON_PACKET {
  ULONG     Size;
  ULONG     PatternId;
  ULONG     OriginalPacketSize;
  WDFMEMORY WakePacket;
} NET_ADAPTER_WAKE_REASON_PACKET;

Members

Size

The size of this structure, in bytes.

PatternId

A ULONG value that specifies the identifier of the wake-on-LAN (WOL) pattern that matches the wake packet.

OriginalPacketSize

A ULONG value that specifies the original length, in units of bytes, of the wake packet.

WakePacket

A WDFMEMORY buffer that contains the wake packet.

Remarks

Call NET_ADAPTER_WAKE_REASON_PACKET_INIT to initialize this structure if the NET_WAKE_SOURCE_TYPE is NetWakeSourceTypeBitmapPattern.

Call NET_ADAPTER_WAKE_REASON_MAGIC_PACKET_INIT to initialize this structure if the NET_WAKE_SOURCE_TYPE is NetWakeSourceTypeMagicPacket.

Call NET_ADAPTER_WAKE_REASON_FILTER_PACKET_INIT to initialize this structure if the NET_WAKE_SOURCE_TYPE is NetWakeSourceTypePacketFilterMatch.

Call NET_ADAPTER_WAKE_REASON_EAPOL_PACKET_INIT to initialize this structure if the NET_WAKE_SOURCE_TYPE is NetWakeSourceTypeEapolPacket.

A NET_ADAPTER_WAKE_REASON_PACKET structure is passed as an input parameter to NetAdapterReportWakeReasonPacket.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Minimum UMDF version 2.33
Header netadaptercx.h (include netadaptercx.h)

See also

Configuring power management

NET_ADAPTER_WAKE_REASON_PACKET_INIT

NetAdapterReportWakeReasonPacket