Group: System Information - Library: sensapi
The IsNetworkAlive function determines whether the local system is connected to a network and the type of network connection. For example, whether the local system has connectivity to a LAN, WAN, or both networks.
Determining if an Active Network Connection is Available
Bool IsNetworkAlive(
LPDWORD lpdwFlags // Specifies the type of network connection
);
DECLARE INTEGER IsNetworkAlive IN sensapi;
INTEGER @ lpdwFlags
lpdwFlags [out] Provides information on the type of network connection available when the return value is TRUE.
Returns True if the local system is connected to a network.