Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conection Detect
Message
From
01/03/2000 08:16:35
Gregg Geeslin
Kwajalein Range Services
Apo, California, United States
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00338398
Message ID:
00339683
Views:
19
Hola Guillermo,

I have this in my system.vcx. I created a property called IsConnectedToInternet (OK, so the name is a bit long, at least it's self-documenting). The access method below then sets the property on the fly everytime I access the property. That way, if my connection goes down, I can identify the problem. I'm sure that I got the declare from the UT, but I can't remember from whom. I wish I could remember who had originally posted this so I could give them credit.....

PROCEDURE isconnectedtointernet_access
Declare Integer InternetGetConnectedState in WinINet.Dll Long @lpdwFlags, Long dwReserved
lnFlags = 0
Retval = InternetGetConnectedState(@lnFlags,0)
IF Retval > 0
This.IsConnectedToInternet = .T.
ELSE
This.IsConnectedToInternet = .F.
ENDIF
RETURN This.IsConnectedToInternet
ENDPROC

>How could I detect if my computer is connected to the internet.
>
>I'm using wwIPstuff.
>
>Thanks and Regards
>
>Guillermo Bran
>infile@guate.net
Previous
Reply
Map
View

Click here to load this message in the networking platform