Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run dial-up connection without prompt user nm and pswrd
Message
From
22/11/2002 04:48:20
 
 
To
22/11/2002 03:10:29
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00725648
Message ID:
00725660
Views:
7
Irwan,

Please do not allocate any credit (stars) for this answer as I am only copying the answer from another message I found here on the UT. I cannot remember the original authors name.

Jos


#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

TCONNECT = InternetDial(0, strConnection, INTERNET_AUTODIAL_FORCE_UNATTENDED, nConnection, 0)

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

* Connect without prompt
TCONNECT = InternetAutodial(INTERNET_AUTODIAL_FORCE_UNATTENDED, 0)

* Disconnect
= InternetAutodialHangup( TCONNECT )
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform