NetPowerSettingsIsProtocolOffloadEnabled function

Warning

Some information in this topic relates to prereleased product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

NetAdapterCx is preview only in Windows 10, version 1903.

Determines if a protocol offload is enabled.

Syntax

BOOLEAN NetPowerSettingsIsProtocolOffloadEnabled(
  NETPOWERSETTINGS         NetPowerSettings,
  NDIS_PM_PROTOCOL_OFFLOAD *NdisProtocolOffload
);

Parameters

NetPowerSettings

A handle to the NETPOWERSETTINGS object associated with the net adapter. To retrieve the handle, call NetAdapterGetPowerSettings.

NdisProtocolOffload

A pointer to a NDIS_PM_PROTOCOL_OFFLOAD structure obtained by calling NetPowerSettingsGetProtocolOffload.

Return Value

Returns TRUE if the protocol offload is enabled, and FALSE otherwise.

Remarks

The client driver must only call NetPowerSettingsIsProtocolOffloadEnabled during a power transition, typically from its EVT_WDF_DEVICE_ARM_WAKE_FROM_SX, EVT_WDF_DEVICE_ARM_WAKE_FROM_S0, or EVT_NET_ADAPTER_PREVIEW_PROTOCOL_OFFLOAD callback function. Otherwise, the call results in a system bugcheck.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.23
Header netpowersettings.h (include netadaptercx.h)
Library NetAdapterCxStub.lib
IRQL PASSIVE_LEVEL

See Also

NDIS_PM_PROTOCOL_OFFLOAD