Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call a Connect to...
Message
De
02/10/2002 06:01:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00584744
Message ID:
00706753
Vues:
35
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)
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform