Crome_BAD 0 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 Share this post Link to post Share on other sites
Crome_BAD 0 Posted February 9, 2005 No ideas guys? Should i try and program the dll FIRST through visual basic or? Please Post Back Crome Share this post Link to post Share on other sites
SlimShady 1 Posted February 9, 2005 Why don't you test it with a P2P program? Share this post Link to post Share on other sites
Crome_BAD 0 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 Share this post Link to post Share on other sites