Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disconnect from net
Message
 
À
20/12/2004 13:08:44
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00970740
Message ID:
00970833
Vues:
17
I found this function - but it's an autodial hangup:
http://www.news2news.com/vfp/?group=92&function=205

>I have made this connection in my code
>
>#DEFINE INTERNET_AUTODIAL_FORCE_ONLINE 1
>#DEFINE INTERNET_AUTODIAL_FORCE_UNATTENDED 2
>#DEFINE INTERNET_AUTODIAL_FAILIFSECURITYCHECK 4
>
>DECLARE INTEGER GetActiveWindow IN user32
>
>DECLARE INTEGER InternetDial IN wininet;
> INTEGER hwndParent, ;
> STRING lpszConnectoid, ;
> INTEGER dwFlags,;
> INTEGER @lpdwConnection, ;
> INTEGER dwReserved
>
>DECLARE INTEGER InternetCloseHandle IN wininet;
> INTEGER hInet
>
>LOCAL hConnection
>hConnection = 0
>
>? InternetDial (GetActiveWindow(), "CK1",;
> INTERNET_AUTODIAL_FORCE_ONLINE, @hConnection, 0)
>
>It is possible disconect from this connection? How
>I have try this command, but do not work
>
>InternetCloseHandle(hConnection)
>
>why?
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform