NetAdapterSetLinkState function

Sets the link state of the of the network adapter.

Syntax

void NetAdapterSetLinkState(
  NETADAPTER             Adapter,
  NET_ADAPTER_LINK_STATE *State
);

Parameters

Adapter

The network adapter object that the client created in a prior call to NetAdapterCreate.

State

A pointer to an allocated and initialized NET_ADAPTER_LINK_STATE structure that describes the link state of the adapter.

Return value

None

Remarks

The client driver calls NetAdapterSetLinkState when starting a net adapter, before it calls NetAdapterStart. It can also call this method later when it needs to change the current link state.

Requirements

   
Target Platform Universal
Minimum KMDF version 1.29
Header netadapter.h (include netadaptercx.h)
IRQL <= DISPATCH_LEVEL

See also

NET_ADAPTER_LINK_STATE_INIT

NET_ADAPTER_LINK_STATE_INIT_DISCONNECTED