Bewerken

Delen via


WifiPowerOffloadListGetCount function (wificxpoweroffloadlist.h)

The WifiPowerOffloadListGetCount function gets the number of low power protocol offloads to a WiFiCx net adapter.

Syntax

SIZE_T WifiPowerOffloadListGetCount(
  const WIFI_POWER_OFFLOAD_LIST *List
);

Parameters

List

[In] A pointer to a driver-allocated and initialized WIFI_POWER_OFFLOAD_LIST structure.

Return value

Returns the number of low power offloads to this WiFiCx net adapter.

Remarks

Call WIFI_POWER_OFFLOAD_LIST_INIT to initialize the WIFI_POWER_OFFLOAD_LIST structure, then call WifiDeviceGetPowerOffloadList to retrieve the low power protocol offload list. After getting the list, call this function to determine how many low power protocol offloads there are to this WiFiCx net adapter.

The client driver must only call WifiPowerOffloadListGetCount 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.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
Header wificxpoweroffloadlist.h
IRQL PASSIVE_LEVEL

See also

WIFI_POWER_OFFLOAD_LIST

WIFI_POWER_OFFLOAD_LIST_INIT

WifiDeviceGetPowerOffloadList