NET_ADAPTER_WAKE_REASON_MAGIC_PACKET_INIT - NtDoc

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

void NET_ADAPTER_WAKE_REASON_MAGIC_PACKET_INIT(
  [out] NET_ADAPTER_WAKE_REASON_PACKET *Reason
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netadapter-net_adapter_wake_reason_magic_packet_init)

Description

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.

Parameters

Reason [out]

A pointer to a driver allocated NET_ADAPTER_WAKE_REASON_PACKET structure.

Remarks

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.

See also

Configuring NetAdapterCx Power Management

NET_ADAPTER_WAKE_REASON_PACKET

NetAdapterReportWakeReasonPacket

NET_WAKE_SOURCE_TYPE