Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if internet connection is on/off
Message
De
22/11/2002 16:53:24
 
 
À
22/11/2002 16:49:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00726032
Message ID:
00726040
Vues:
16
>hi, all how do i check my internet connection still on,
>if still on i want to cut it off for several minute then turn it on again
>for several minute, sample code will be help or what kind of software that provide autodial internet connection with schedule task without prompt user name and password ?, i've used windows 2000 server

This is part of our "about to be released" December issue in the new Wayne Myers Visual FoxPro Tips column:
CheckInternetConnection('http://www.microsoft.com')

FUNCTION CheckInternetConnection
LPARAMETERS tcWebAddress
DECLARE Integer InternetCheckConnection;
 IN WININET.DLL;
 String Url, Long dwFlags, Long Reserved
IF InternetCheckConnection(tcWebAddress,1,0)<>0
   RETURN .T.
   ELSE
   RETURN .F.
ENDIF
See thread #724735 for the reference.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform