Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internet Connection
Message
 
To
12/08/2002 11:08:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00688602
Message ID:
00688668
Views:
26
I use the following code for our LAN: (never tested for modem though)

#define INTERNET_CONNECTION_MODEM 1
#define INTERNET_CONNECTION_LAN 2
#define INTERNET_CONNECTION_PROXY 4
#define INTERNET_CONNECTION_MODEM_BUSY 8

declare InternetGetConnectedState ;
in "wininet.dll" ;
long @ lpdwFlags, ;
long dwReserved

? InternetGetConnectedState(INTERNET_CONNECTION_MODEM, 0)

HTH
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform