NET_ADAPTER_WAKE_REASON_PACKET_INIT function (netadaptercx.h)

The NET_ADAPTER_WAKE_REASON_PACKET_INIT function initializes a NET_ADAPTER_WAKE_REASON_PACKET structure.

Syntax

void NET_ADAPTER_WAKE_REASON_PACKET_INIT(
  [_Out_] NET_ADAPTER_WAKE_REASON_PACKET *Reason
);

Parameters

[_Out_] Reason

A pointer to a driver allocated NET_ADAPTER_WAKE_REASON_PACKET structure.

Return value

None

Remarks

This function zeroes out the memory for the NET_ADAPTER_WAKE_REASON_PACKET structure, then sets the Size member.

Requirements

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

See also

Configuring power management

NET_ADAPTER_WAKE_REASON_PACKET