Jump to content

Recommended Posts

Posted

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]
Posted

$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

Posted (edited)

I have a direct DSL connection without a router, only a dsl modem.

Hey, thank you, at least the disconnecting works! The Autodial doesn't yet...

EDIT: Nevermind, it works perfectly! :D

Thank you very much!

Edited by RomanK
[font="Courier New"]http://RomanK.hondadesigns.com[/font]

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
×
×
  • Create New...