Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verification for dialup access
Message
From
16/03/2004 18:54:46
 
 
To
16/03/2004 18:33:04
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00886903
Message ID:
00886907
Views:
15
>In a request to enhance an existing application, where we call some Web Service methods, the client wants our application to detect if we have an existing dialup connection. If not, we have to do what is necessary to call the default Windows dialup. Any guideline on how to accomplish that?

hello Michel

something i got from http://www.news2news.com
*!*	http://www.news2news.com/vfp/?example=312&function=-1&xpg=11
*!*	Initiating Inet connection using a modem

#DEFINE INTERNET_AUTODIAL_FORCE_ONLINE         1 
#DEFINE INTERNET_AUTODIAL_FORCE_UNATTENDED     2 
#DEFINE INTERNET_AUTODIAL_FAILIFSECURITYCHECK  4 

DECLARE INTEGER GetActiveWindow IN user32 

DECLARE INTEGER InternetDial IN wininet; 
    INTEGER hwndParent, STRING lpszConnectoid, INTEGER dwFlags,; 
    INTEGER @lpdwConnection, INTEGER dwReserved 

LOCAL hConnection 
hConnection = 0 

? InternetDial (GetActiveWindow(), "MyProvider",; 
    INTERNET_AUTODIAL_FORCE_ONLINE, @hConnection, 0) 

? "Number associated with the connection:", hConnection 
from reading several posts here at UT, there seems to be differences between modem access and lan access in the way the testing for a connection and the autodail/connect is beeing done.

so if you need to be flexible for the future, you might have to go a different route.

hope this helps.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform