NetAdapterSetLinkState function (netadapter.h)

Sets the link state of the of the network adapter.

Syntax

void NetAdapterSetLinkState(
  [_In_] NETADAPTER             Adapter,
  [_In_] NET_ADAPTER_LINK_STATE *State
);

Parameters

[_In_] Adapter

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

[_In_] 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 function later when it needs to change the current link state.

Requirements

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

See also

NET_ADAPTER_LINK_STATE_INIT

NET_ADAPTER_LINK_STATE_INIT_DISCONNECTED