NET_POWER_OFFLOAD_LIST - NtDoc

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

typedef struct _NET_POWER_OFFLOAD_LIST {
  ULONG Size;
  void  *Reserved[4];
} NET_POWER_OFFLOAD_LIST;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-netpoweroffloadlist-_net_power_offload_list)

NET_POWER_OFFLOAD_LIST structure

Description

The NET_POWER_OFFLOAD_LIST structure represents a list of low power protocol offloads to a net adapter.

Members

Size

The size of this structure, in bytes.

Reserved

Reserved. Client drivers must not read or write to this value directly.

Remarks

Call NET_POWER_OFFLOAD_LIST_INIT to initialize this structure, then call NetDeviceGetPowerOffloadList to get the list of low power offloads to this net adapter. After you obtain the list, call NetPowerOffloadListGetCount with this structure to get the number of NETPOWEROFFLOAD objects that represents the offloads, then loop over the objects and call NetPowerOffloadListGetElement to retrieve each one. Once you have obtained a NETPOWEROFFLOAD object, call NetPowerOffloadGetType to get the type of that offload so you can call the appropriate function to get the offload's parameters.

The client driver must only call power offload-related functions during a power transition, typically from its EVT_WDF_DEVICE_ARM_WAKE_FROM_SX, EVT_WDF_DEVICE_ARM_WAKE_FROM_S0, or EVT_NET_DEVICE_PREVIEW_POWER_OFFLOAD callback function. Otherwise, the call results in a system bugcheck.

For a code sample of working with NETPOWEROFFLOAD objects, see Configuring power management.

See also

Configuring power management

NET_POWER_OFFLOAD_LIST_INIT

NetDeviceGetPowerOffloadList

NetPowerOffloadListGetCount

NetPowerOffloadListGetElement

NetPowerOffloadGetType