NetWakeSourceListGetCount - NtDoc

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

SIZE_T NetWakeSourceListGetCount(
  [_In_] const NET_WAKE_SOURCE_LIST *List
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netwakesourcelist-netwakesourcelistgetcount)

NetWakeSourceListGetCount function

Description

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

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 NET_WAKE_SOURCE_LIST_INIT to initialize the NET_WAKE_SOURCE_LIST structure, then call NetDeviceGetWakeSourceList 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 NetWakeSourceListGetCount 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.

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

See also

Configuring power management

NET_WAKE_SOURCE_LIST_INIT

NET_WAKE_SOURCE_LIST

NetDeviceGetWakeSourceList