Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disconnect from net
Message
 
To
20/12/2004 13:08:44
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00970740
Message ID:
00970833
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform