Click here to Skip to main content
15,881,812 members
Articles / Desktop Programming / MFC

An Adventure: How to Implement a Firewall-Hook Driver?

Rate me:
Please Sign up or sign in to vote.
4.83/5 (65 votes)
28 Oct 20049 min read 670.2K   11K   194  
Firewall-Hook driver is a completely unknown method to develop simple packet filtering applications. With this article, I want to tell you how this driver works and what you need to do to use it in your applications.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by FirewallApp.rc
//
#define IDD_ABOUTBOX                    100
#define IDD_FIREWALLAPP_FORM            101
#define IDR_MAINFRAME                   128
#define IDR_FIREWATYPE                  129
#define IDD_ADDRULEDLG                  132
#define IDC_LIST1                       1000
#define IDC_COMBO3                      1003
#define IDC_EDIT1                       1004
#define IDC_EDIT2                       1005
#define IDC_EDIT3                       1006
#define IDC_EDIT4                       1007
#define IDC_COMBO4                      1009
#define IDC_EDIT5                       1010
#define IDC_EDIT6                       1011
#define ID_BUTTONSTART                  32771
#define ID_BUTTONSTOP                   32772
#define ID_BUTTONADD                    32773
#define ID_BUTTONDEL                    32774
#define ID_BUTTONINSTALL                32775
#define ID_BUTTONDESINSTALL             32776
#define IDMENU_ADDRULE                  32777
#define IDMENU_DELRULE                  32778
#define IDMENU_INSTALLRULES             32779
#define IDMENU_UNINSTALLRULES           32780
#define ID_MENUSTART                    32781
#define ID_MENUSTOP                     32782
#define IDMENU_LOADRULES                32783
#define IDMENU_SAVERULES                32784

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_3D_CONTROLS                     1
#define _APS_NEXT_RESOURCE_VALUE        134
#define _APS_NEXT_COMMAND_VALUE         32785
#define _APS_NEXT_CONTROL_VALUE         1012
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Chief Technology Officer
Spain Spain
To summarize: learn, learn, learn... and then try to remember something I.... I don't Know what i have to remember...

http://www.olivacorner.com

Comments and Discussions