NetPowerOffloadGetNSParameters function (netpoweroffload.h)

The NetPowerOffloadGetNSParameters function gets parameters for an IPv6 Neighbor Solicitation (NS) low power protocol offload to a net adapter.

Syntax

void NetPowerOffloadGetNSParameters(
  [_In_]    NETPOWEROFFLOAD                 PowerOffload,
  [_Inout_] NET_POWER_OFFLOAD_NS_PARAMETERS *Parameters
);

Parameters

[_In_] PowerOffload

The NETPOWEROFFLOAD object that represents this NS protocol offload.

[_Inout_] Parameters

A pointer to a driver-allocated NET_POWER_OFFLOAD_NS_PARAMETERS structure that receives the NS parameter information.

Return value

None

Remarks

Call NET_POWER_OFFLOAD_NS_PARAMETERS_INIT to initialize the NET_POWER_OFFLOAD_NS_PARAMETERS structure before calling this function.

The client driver must only call NetPowerOffloadGetNSParameters 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 10, version 2004
Target Platform Universal
Minimum UMDF version 2.33
Header netpoweroffload.h (include netadaptercx.h)
Library netadaptercxstub.lib
IRQL PASSIVE_LEVEL

See also

Configuring power management

NET_POWER_OFFLOAD_NS_PARAMETERS

NET_POWER_OFFLOAD_NS_PARAMETERS_INIT