Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Line?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00580434
Message ID:
00581028
Views:
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?

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
Previous
Reply
Map
View

Click here to load this message in the networking platform