Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if internet connection is on/off
Message
From
22/11/2002 16:53:24
 
 
To
22/11/2002 16:49:29
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00726032
Message ID:
00726040
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform