NetAdapterReportWakeReasonMediaChange function (netadapter.h)

The NetAdapterReportWakeReasonMediaChange function reports to the framework that a net adapter generated a wake-up event because of a media change.

Syntax

void NetAdapterReportWakeReasonMediaChange(
  [_In_] NETADAPTER                 Adapter,
  [_In_] NET_IF_MEDIA_CONNECT_STATE Reason
);

Parameters

[_In_] Adapter

A handle to the NETADAPTER object.

[_In_] Reason

A NET_IF_MEDIA_CONNECT_STATE value that specifies the network interface connection state that triggered the wake-up event.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Target Platform Universal
Minimum UMDF version 2.33
Header netadapter.h (include netadaptercx.h)
Library netadaptercxstub.lib
IRQL PASSIVE_LEVEL

See also

Configuring power management

NET_IF_MEDIA_CONNECT_STATE