INetworkListManager::get_IsConnected method (netlistmgr.h)

The get_IsConnected property specifies if the local machine has network connectivity.

Syntax

HRESULT get_IsConnected(
  [out] VARIANT_BOOL *pbIsConnected
);

Parameters

[out] pbIsConnected

If TRUE , the network has at least local connectivity via ipv4 or ipv6 or both. The network may also have internet connectivity. Thus, the network is connected.

If FALSE, the network does not have local or internet connectivity. The network is not connected.

Return value

Returns S_OK if successful.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header netlistmgr.h

See also

INetworkListManager