Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 2.6 KB

nf-netpoweroffload-net_power_offload_ns_parameters_init.md

File metadata and controls

65 lines (51 loc) · 2.6 KB
UID title description tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.lib req.dll req.irql req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library targetos ms.custom f1_keywords topic_type api_type api_location api_name
NF:netpoweroffload.NET_POWER_OFFLOAD_NS_PARAMETERS_INIT
NET_POWER_OFFLOAD_NS_PARAMETERS_INIT function (netpoweroffload.h)
The NET_POWER_OFFLOAD_NS_PARAMETERS_INIT function initializes a NET_POWER_OFFLOAD_NS_PARAMETERS structure.
netvista
09/30/2019
NET_POWER_OFFLOAD_NS_PARAMETERS_INIT function
NET_POWER_OFFLOAD_NS_PARAMETERS_INIT
netpoweroffload.h
netadaptercx.h
Windows 10, version 2004
Any level as long as target memory is resident
Windows
Vb
NET_POWER_OFFLOAD_NS_PARAMETERS_INIT
netpoweroffload/NET_POWER_OFFLOAD_NS_PARAMETERS_INIT
apiref
HeaderDef
netpoweroffload.h
NET_POWER_OFFLOAD_NS_PARAMETERS_INIT

NET_POWER_OFFLOAD_NS_PARAMETERS_INIT function

-description

The NET_POWER_OFFLOAD_NS_PARAMETERS_INIT function initializes a NET_POWER_OFFLOAD_NS_PARAMETERS structure.

-parameters

-param Parameters [Out]

A pointer to a client driver-allocated NET_POWER_OFFLOAD_NS_PARAMETERS structure.

-remarks

This function zeroes out the memory of the NET_POWER_OFFLOAD_NS_PARAMETERS structure, then fills in the Size member. Client drivers must then call NetPowerOffloadGetNsParameters to fill in the remaining members of the structure.

The client driver must only call NET_POWER_OFFLOAD_NS_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_POWER_OFFLOAD callback function. Otherwise, the call results in a system bugcheck.

-see-also

Configuring power management

NET_POWER_OFFLOAD_NS_PARAMETERS