// netadapter.h
typedef struct _NET_ADAPTER_WAKE_REASON_PACKET {
ULONG Size;
ULONG PatternId;
ULONG OriginalPacketSize;
WDFMEMORY WakePacket;
} NET_ADAPTER_WAKE_REASON_PACKET;
View the official Windows Driver Kit DDI referenceNo description available.
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.
SizeThe size of this structure, in bytes.
PatternIdA ULONG value that specifies the identifier of the wake-on-LAN (WOL) pattern that matches the wake packet.
OriginalPacketSizeA ULONG value that specifies the original length, in units of bytes, of the wake packet.
WakePacketA WDFMEMORY buffer that contains the wake packet.
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.
NET_ADAPTER_WAKE_REASON_PACKET_INIT
NetAdapterReportWakeReasonPacket