Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conection Detect
Message
De
01/03/2000 08:16:35
Gregg Geeslin
Kwajalein Range Services
Apo, Californie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00338398
Message ID:
00339683
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform