WifiWakeSourceListGetCount function (wificxwakesourcelist.h)

The WifiWakeSourceListGetCount function gets the number of wake sources for a WiFiCx net adapter.

Syntax

SIZE_T WifiWakeSourceListGetCount(
  const WIFI_WAKE_SOURCE_LIST *List
);

Parameters

List

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

Return value

Returns the number of wake sources for this net adapter.

Remarks

Call WIFI_WAKE_SOURCE_LIST_INIT to initialize the WIFI_WAKE_SOURCE_LIST structure, then call WifiDeviceGetWakeSourceList to retrieve the wake source list. After getting the list, call this function to determine how many wake sources there are for this net adapter.

The client driver must only call WifiWakeSourceListGetCount 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_WAKE_SOURCE 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 wificxwakesourcelist.h
IRQL PASSIVE_LEVEL

See also

NET_WAKE_SOURCE_LIST