Crome_BAD Posted February 9, 2005 Share Posted February 9, 2005 (edited) Hey guys, im starting to make a firewall dll, and i was wondering how to tell if its actually working, lol i dont seem to get errors.....but, ya never kno, lolHeres The Dll:http://www.autoitscript.com/fileman/users/public/Crome_BAD/fw.zipHeres My Test Code:expandcollapse popup#include <GUIConstants.AU3> $MainGUI = GUICreate("Brian's Firewall", 400, 300, -1, -1) $Input = GUICtrlCreateInput("", 250, 50, 100, 20, $WS_DISABLED) $StartB = GUICtrlCreateButton("Start Firewall", 100, 10, 100, 20) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop EndIf If $msg = $StartB Then StartFW($Input) EndIf WEnd DllCall("fw.dll", "int", "FireWallEnable", "short", "AF_UNSPEC", "int", "FALSE", "int", "FALSE") Func StartFW($Input) $FWCheck = DllCall("fw.dll", "int", "IsFireWallEnabled", "short", "AF_INET6") $FWStart = DllCall("fw.dll", "int", "FireWallEnable", "short", "AF_UNSPEC", "int", "TRUE", "int", "FALSE") MsgBox(4096, "FireWall Start", $FWStart) GUICtrlSetData($Input, "Running...") EndFunc@LarryPlease help me, my VERY first dll, and i love your AU3Xtra.dll file, thanksPeace,Crome_BADNo ideas Guys? Edited February 9, 2005 by Crome_BAD Link to comment Share on other sites More sharing options...
Crome_BAD Posted February 9, 2005 Author Share Posted February 9, 2005 No ideas guys? Should i try and program the dll FIRST through visual basic or? Please Post Back Crome Link to comment Share on other sites More sharing options...
SlimShady Posted February 9, 2005 Share Posted February 9, 2005 Why don't you test it with a P2P program? Link to comment Share on other sites More sharing options...
Crome_BAD Posted February 9, 2005 Author Share Posted February 9, 2005 Like? Sorry new at DLL's, lol, i dont even think i compiled it right, when i was in MSDN it said it required FWAPI.H (Header file) and i couldnt find it....sooo. Thanks for your response Crome Link to comment Share on other sites More sharing options...
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