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

Click here to load this message in the networking platform