Bewerken

Delen via


NET_WAKE_SOURCE_BITMAP_PARAMETERS_INIT function (netwakesource.h)

The NET_WAKE_SOURCE_BITMAP_PARAMETERS_INIT function initializes a NET_WAKE_SOURCE_BITMAP_PARAMETERS structure.

Syntax

void NET_WAKE_SOURCE_BITMAP_PARAMETERS_INIT(
  [_Out_] NET_WAKE_SOURCE_BITMAP_PARAMETERS *Parameters
);

Parameters

[_Out_] Parameters

A pointer to a driver-allocated NET_WAKE_SOURCE_BITMAP_PARAMETERS structure.

Return value

None

Remarks

This function zeroes out the memory of the NET_WAKE_SOURCE_BITMAP_PARAMETERS structure, then fills in the Size member. Client drivers must then call NetWakeSourceGetBitmapParameters to fill n the other members of the structure.

The client driver must only call NET_WAKE_SOURCE_BITMAP_PARAMETERS_INIT 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 10, version 2004
Target Platform Universal
Minimum UMDF version 2.33
Header netwakesource.h (include netadaptercx.h)
IRQL Any level as long as target memory is resident

See also

Configuring power management

NET_WAKE_SOURCE_BITMAP_PARAMETERS