// wificxpoweroffloadlist.h
SIZE_T WifiPowerOffloadListGetCount(
const WIFI_POWER_OFFLOAD_LIST *List
);
View the official Windows Driver Kit DDI referenceNo description available.
The WifiPowerOffloadListGetCount function gets the number of low power protocol offloads to a WiFiCx net adapter.
List[_In_] A pointer to a driver-allocated and initialized WIFI_POWER_OFFLOAD_LIST structure.
Returns the number of low power offloads to this WiFiCx net adapter.
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.