WiFi Framework C++ Edition

◆ GetConnected()

int GetConnected ( bool &  Connected) const

Checks if the machine has network connectivity.

Parameters
ConnectedIf the method succeeded on output returns the network connectivity state. If the Connected is 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 the Connected is False, the network does not have local or Internet connectivity. The network is not connected.
Returns
If the function succeeded the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.