Jump to content

Firewall DLL


Recommended Posts

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, lol

Heres The Dll:

http://www.autoitscript.com/fileman/users/public/Crome_BAD/fw.zip

Heres My Test Code:

#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

@Larry

Please help me, my VERY first dll, and i love your AU3Xtra.dll file, thanks

Peace,

Crome_BAD

No ideas Guys?

Edited by Crome_BAD
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...