Jump to content

Connect & Disconnect from the Internet


Recommended Posts

Hello everybody,

I really don't get how all that DllCall stuff works.

Want I want are two functions, one for connecting to the internet (with the default connection) and one disconnecting it.

MSDN gives the following information:

Connect: http://msdn.microsoft.com/en-us/library/aa384336(VS.85).aspx

Disconnect: http://msdn.microsoft.com/en-us/library/aa384340(VS.85).aspx

I know it is not very nice to have other people do something for me, but please, can someone quickly transform this to AutoIt?

Thank you in advance,

Roman

PS. couldn't find useful things within the forum search results.

[font="Courier New"]http://RomanK.hondadesigns.com[/font]
Link to comment
Share on other sites

$INTERNET_AUTODIAL_FORCE_ONLINE = 1
$INTERNET_AUTODIAL_FORCE_UNATTENDED = 2
$INTERNET_AUTODIAL_FAILIFSECURITYCHECK = 4
$INTERNET_AUTODIAL_OVERRIDE_NET_PRESENT = 8

;InternetAutodial
$aCall = DllCall("wininet.dll", "int", "InternetAutodial", "dword", $INTERNET_AUTODIAL_FORCE_UNATTENDED, "hwnd", 0)
ConsoleWrite($aCall[0] & @CRLF)

;InternetAutodialHangup
$aCall = DllCall("wininet.dll", "int", "InternetAutodialHangup", "dword", 0)
ConsoleWrite($aCall[0] & @CRLF)

What internet do you have? Connection, I mean.

♡♡♡

.

eMyvnE

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...