RomanK Posted April 6, 2009 Posted April 6, 2009 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).aspxDisconnect: http://msdn.microsoft.com/en-us/library/aa384340(VS.85).aspxI 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,RomanPS. couldn't find useful things within the forum search results. [font="Courier New"]http://RomanK.hondadesigns.com[/font]
trancexx Posted April 6, 2009 Posted April 6, 2009 $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
RomanK Posted April 6, 2009 Author Posted April 6, 2009 (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! Thank you very much! Edited April 6, 2009 by RomanK [font="Courier New"]http://RomanK.hondadesigns.com[/font]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now