Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From the app simply check if internet is connected or no
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01057453
Message ID:
01057458
Vues:
18
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform