Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call a Connect to...
Message
From
02/10/2002 06:01:02
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00584744
Message ID:
00706753
Views:
34
What have I to do if I want to connect without prompt using a selected connection ?
HOw to make a limit to the redial attempt ?

Thank you very much
Alessio

>> 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
Reply
Map
View

Click here to load this message in the networking platform