Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Line?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00580434
Message ID:
00580880
Vues:
31
>THis is unreliable with a proxy, since AFA the machine is concerned, if it can reach the proxy server, it can reach the Internet. A better way is to ping a known IP address outside your gateway.

Like this?
#define FLAG_ICC_FORCE_CONNECTION 1
Declare Integer InternetCheckConnection in Wininet.dll String Url, Long dwFlags, Long Reserved

If InternetCheckConnection("http://www.microsoft.com", FLAG_ICC_FORCE_CONNECTION, 0) != 0
	Msg = "Connected!"
Else
	Msg = "Not connected!"
EndIf
MessageBox(msg)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform