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:
00581028
Vues:
32
>>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?

Exactly.

>
>#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)
>
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform