Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Server off
Message
De
13/01/2009 06:15:21
 
 
À
13/01/2009 06:00:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01372915
Message ID:
01373108
Vues:
13
>>>Is there a (API?) function to know whether lan is off or on?
>>>Thanx in advance
>>
>>Can you simply check if network drive is available?
>>
>>Say, Check available drives
>
>it is useful, ok, but something to check if the cable is off?
Function InternetOK
Lparameters lcmyFastLoadedSite
#define FLAG_ICC_FORCE_CONNECTION 0x01
If Pcount()=0
  lcmyFastLoadedSite = "192.168.0.131" && Replace with the IP of the server.
EndIf 
DECLARE INTEGER InternetCheckConnection IN wininet STRING lpszUrlSTRING, INTEGER dwFlags, INTEGER dwReserved
Return InternetCheckConnection(lcmyFastLoadedSite,FLAG_ICC_FORCE_CONNECTION,0)=1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform