Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
From the app simply check if internet is connected or no
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01057453
Message ID:
01057458
Views:
13
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>How can I just find out if the users computer is online or not. A simplest and shortest and fastest code, something that maybe run from a timer and won't overload the system.
>
>Please advise.

Try this:
#define FLAG_ICC_FORCE_CONNECTION 0x01

DECLARE INTEGER InternetCheckConnection IN wininet STRING lpszUrlSTRING, INTEGER dwFlags, INTEGER dwReserved
myFastLoadedSite = "http://www.dir.bg"
? InternetCheckConnection(myFastLoadedSite,FLAG_ICC_FORCE_CONNECTION,0)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform