Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a live Internet Connection
Message
De
20/06/2007 02:52:55
 
 
À
20/06/2007 02:50:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01234421
Message ID:
01234432
Vues:
14
>>>>This question was asked quite a while ago and I seem to recall Tore posting a response. Unfortunately, I no longer have the code.
>>>>
>>>>How can I determine if my workstation has a live internet connection? The goal is to build a log showing up/down time so this will need to run from a timer.
>>>>
>>>>Thanks to all...........Rich
>>>
>>>Do you mean this simple function?
>>>Function InternetOK
>>>LParameters m.URL
>>>
>>>#define FLAG_ICC_FORCE_CONNECTION 0x01
>>>
>>>DECLARE INTEGER InternetCheckConnection IN wininet STRING lpszUrlSTRING, INTEGER dwFlags,;
>>> INTEGER dwReserved
>>>Return InternetCheckConnection(m.URL,FLAG_ICC_FORCE_CONNECTION,0)=1
>>
>>Yes, I think so. Except it's returning false for me right now. Is there a special format for the URL? I tried ? internetok("www.yahoo.com") and other URL's as well and they all returned FALSE.
>>
>>Thanks......Rich
>Try ? internetok("http://www.yahoo.com")

That did it. Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform