Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run dial-up connection without prompt user nm and pswrd
Message
De
22/11/2002 04:48:20
 
 
À
22/11/2002 03:10:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00725648
Message ID:
00725660
Vues:
8
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform