Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call a Connect to...
Message
 
To
22/11/2001 20:24:42
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00584744
Message ID:
00585127
Views:
41
> I am looking for this same function also.
> Do you have any sample for InternetAutoDial() and InternetDial() ?

Try this:
#DEFINE INTERNET_AUTODIAL_FORCE_ONLINE      1 
#DEFINE INTERNET_AUTODIAL_FORCE_UNATTENDED  2 

DECLARE INTEGER InternetDial IN wininet.dll;
    INTEGER hwndParent, STRING @ lpszConnectoid, ;
    INTEGER dwFlags, INTEGER @ lpdwConnection, ;
    INTEGER dwReserved
DECLARE INTEGER InternetAutodial IN wininet.dll; 
    INTEGER dwFlags, INTEGER hwndParent
DECLARE INTEGER InternetAutodialHangup IN wininet.dll; 
    INTEGER dwReserved 

* Connect with prompt using selected connection
strConnection = "MyConnection"
nConnection = 0
= InternetDial(0, strConnection, INTERNET_AUTODIAL_FORCE_UNATTENDED, ;
	nConnection, 0)

* Connect with prompt using default connection
= InternetAutodial(INTERNET_AUTODIAL_FORCE_ONLINE, 0) 

* Connect without prompt
= InternetAutodial(INTERNET_AUTODIAL_FORCE_UNATTENDED, 0) 

* Disconnect
= InternetAutodialHangup(0)  
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform