// netadapter.h
void NET_ADAPTER_WAKE_REASON_MAGIC_PACKET_INIT(
[out] NET_ADAPTER_WAKE_REASON_PACKET *Reason
);
View the official Windows Driver Kit DDI referenceNo description available.
The client driver calls the NET_ADAPTER_WAKE_REASON_MAGIC_PACKET_INIT function to initialize a NET_ADAPTER_WAKE_REASON_PACKET structure when reporting that a magic packet caused a wake-up event.
Reason [out]A pointer to a driver allocated NET_ADAPTER_WAKE_REASON_PACKET structure.
When the NET_WAKE_SOURCE_TYPE is NetWakeSourceTypeMagicPacket, call NET_ADAPTER_WAKE_REASON_MAGIC_PACKET_INIT to initialize the NET_ADAPTER_WAKE_REASON_PACKET structure. Call NetAdapterReportWakeReasonPacket to report this wake reason to NetAdapterCx.
This function zeroes out the memory for the NET_ADAPTER_WAKE_REASON_PACKET structure, sets the Size member, and sets the PatternId member to NetAdapterWakeMagicPatternId.
Configuring NetAdapterCx Power Management
NET_ADAPTER_WAKE_REASON_PACKET
NetAdapterReportWakeReasonPacket