Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internet connection
Message
From
29/02/2000 11:25:44
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00339030
Message ID:
00339151
Views:
20
>Does anyone have idea how to check existence of internet connection from VFP via WININET.DLL?
>Need to know is the user connected or not.

There are several methods, but none of them really dependable, except to test for the accessibility of a known online resource (PING, HttpGet, etc).

The one I use is

DECLARE INTEGER InternetAttemptConnect IN WinInet.dll INTEGER
?INternetAttemptConnect(0)=0

This one initiates a DUN dialog if needed, and waits until the connection succeeds or fails. It has worked dependably for me, but others have reported inconsistencies.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform