General information
Category:
COM/DCOM and OLE Automation
Title:
Disconnect from net
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only