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:
00580880
Views:
30
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform