Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Server off
Message
From
13/01/2009 10:41:48
 
 
To
13/01/2009 10:25:02
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01372915
Message ID:
01373226
Views:
27
>>>>>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
>
>thank you

You're welcome!
Previous
Reply
Map
View

Click here to load this message in the networking platform