NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS structure (netwakesource.h)

The NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS structure contains parameters for a media change wake-on-LAN (WoL) wake source.

Syntax

typedef struct _NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS {
  ULONG   Size;
  BOOLEAN MediaConnect;
  BOOLEAN MediaDisconnect;
} NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS;

Members

Size

The size of this structure, in bytes.

MediaConnect

A boolean value that specifies if the net adapter generated the wake-up event because it connected to the network media.

MediaDisconnect

A boolean value that specifies if the net adapter generated the wake-up event because it disconnected from the network media.

Remarks

Call NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS_INIT to initialize this structure and fill in its Size field. After calling NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS_INIT, call NetWakeSourceGetMediaChangeParameters to fill in the other members of the structure.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004
Header netwakesource.h (include netadaptercx.h)

See also

Configuring power management

NET_WAKE_SOURCE_MEDIA_CHANGE_PARAMETERS_INIT

NetWakeSourceGetMediaChangeParameters