NET_POWER_OFFLOAD_NS_PARAMETERS_INIT - NtDoc

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

void NET_POWER_OFFLOAD_NS_PARAMETERS_INIT(
  [_Out_] NET_POWER_OFFLOAD_NS_PARAMETERS *Parameters
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netpoweroffload-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

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