NetAdapterSetLinkState - NtDoc

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

void NetAdapterSetLinkState(
  [_In_] NETADAPTER             Adapter,
  [_In_] NET_ADAPTER_LINK_STATE *State
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-netadapter-netadaptersetlinkstate)

NetAdapterSetLinkState function

Description

Sets the link state of the of the network adapter.

Parameters

Adapter [_In_]

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

State [_In_]

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

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.

See also

NET_ADAPTER_LINK_STATE_INIT

NET_ADAPTER_LINK_STATE_INIT_DISCONNECTED