Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verification for dialup access
Message
De
17/03/2004 11:58:22
 
 
À
16/03/2004 19:00:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00886903
Message ID:
00887130
Vues:
18
>That seems to be good. However, when I run this on my existing Internet connection, it goes with the Dialup panel even if I am already connected. What would I need to change in there to adjust?
* *** from the msdn help
*!*	INTERNET_AUTODIAL_FORCE_ONLINE		Forces an online connection. 
*!*	INTERNET_AUTODIAL_FORCE_UNATTENDED	Forces an unattended Internet dial-up. 
*!*	INTERNET_DIAL_UNATTENDED		Connects to the Internet through a modem,
                                                      without displaying a user interface 

* *** from wininet.h
*!*	// Flags for InternetDial - must not conflict with InternetAutodial flags
*!*	//                          as they are valid here also.
#DEFINE INTERNET_AUTODIAL_FORCE_ONLINE         1
#DEFINE INTERNET_AUTODIAL_FORCE_UNATTENDED     2
#DEFINE INTERNET_AUTODIAL_FAILIFSECURITYCHECK  4
#define INTERNET_DIAL_UNATTENDED               0x8000
now, i have a lan connection, so can't test it. when i did run a test, i used INTERNET_AUTODIAL_FORCE_UNATTENDED + INTERNET_DIAL_UNATTENDED. the diplay still came up, however with the buttons disabled, and it froze, i hade to Ctrl+Alt+Del.

maybe the problem is that i did not specify a specific connection, or maybe that i don't have any connection the system could choose from.

so be sure to test this, so that it does not freeze up your connection. i would also include a test to see what kind of connection is available.

you can get available autodail numbers with this (not 95/98/ME):
DECLARE INTEGER RasEnumAutodialAddresses IN rasapi32; 
    STRING @lppAddresses, INTEGER @lpdwcbAddresses, INTEGER @lpdwcAddresses 

LOCAL lcBuffer, lnBufsize, lnCount 

STORE 0 TO lnBufsize, lnCount 
lnBufsize = 16384 
lcBuffer = Repli(Chr(0), lnBufsize) 

= RasEnumAutodialAddresses (@lcBuffer, @lnBufsize, @lnCount) 

IF lnCount = 0 
    ? "AutoDial mapping database is empty" 
ENDIF 
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform