Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Internet connection
Message
De
29/02/2000 11:25:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00339030
Message ID:
00339151
Vues:
21
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform