Bewerken

Delen via


NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS structure (netdevice.h)

The NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS structure contains function pointers for a client driver's power policy callback functions.

Syntax

typedef struct _NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS {
  ULONG                                Size;
  PFN_NET_DEVICE_PREVIEW_WAKE_SOURCE   EvtDevicePreviewBitmapPattern;
  PFN_NET_DEVICE_PREVIEW_POWER_OFFLOAD EvtDevicePreviewArpOffload;
  PFN_NET_DEVICE_PREVIEW_POWER_OFFLOAD EvtDevicePreviewNSOffload;
} NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS;

Members

Size

The size of this structure, in bytes.

EvtDevicePreviewBitmapPattern

A pointer to the client driver's implementation of the EvtNetDevicePreviewWakeSource callback function for previewing a bitmap wake pattern.

EvtDevicePreviewArpOffload

A pointer to an implementation of the EvtNetDevicePreviewPowerOffload callback function for previewing an IPv4 ARP low power protocol offload.

EvtDevicePreviewNSOffload

A pointer to an implementation of the EvtNetDevicePreviewPowerOffload callback function for previewing an IPv6 Neighbor Solicitation (NS) low power protocol offload.

Remarks

Call NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS_INIT to initialize this structure, then provide pointers to the callbacks your client driver implements. If your client driver does not implement one of the callbacks, set that member to NULL.

Requirements

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

See also

Configuring Power Management

EvtNetDevicePreviewWakeSource

EvtNetDevicePreviewPowerOffload

NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS_INIT