NET_ADAPTER_LINK_STATE_INIT 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.

Initializes a NET_ADAPTER_LINK_STATE structure.

Syntax

void NET_ADAPTER_LINK_STATE_INIT(
  NET_ADAPTER_LINK_STATE             *LinkState,
  ULONG64                            LinkSpeed,
  NET_IF_MEDIA_CONNECT_STATE         MediaConnectState,
  NET_IF_MEDIA_DUPLEX_STATE          MediaDuplexState,
  NET_ADAPTER_PAUSE_FUNCTIONS        SupportedPauseFunctions,
  NET_ADAPTER_AUTO_NEGOTIATION_FLAGS AutoNegotiationFlags
);

Parameters

LinkState

A pointer to a driver-allocated NET_ADAPTER_LINK_STATE structure.

LinkSpeed

The link speed of the adapter in bits per second.

MediaConnectState

The media connect state for the network adapter.

MediaDuplexState

The media duplex state for the network adapter.

SupportedPauseFunctions

Support for the IEEE 802.3 pause frames. For more info, see NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES.

AutoNegotiationFlags

The auto-negotiation settings for the network adapter. For more info, see NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES.

Return Value

This method does not return a value.

Remarks

Call NET_ADAPTER_LINK_STATE_INIT or NET_ADAPTER_LINK_STATE_INIT_DISCONNECTED to initialize a NET_ADAPTER_LINK_STATE structure.

An initialized NET_ADAPTER_LINK_STATE structure is an input parameter value to NetAdapterSetLinkState.

Requirements

   
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Minimum KMDF version 1.21
Header netadapter.h
IRQL <= DISPATCH_LEVEL

See Also

NDIS_MINIPORT_ADAPTER_GENERAL_ATTRIBUTES

NetAdapterSetLinkState

NET_ADAPTER_LINK_STATE_INIT_DISCONNECTED

NET_ADAPTER_LINK_STATE