1 Star 1 Fork 1

zys / xp_firewall

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
AddRuleDlg.h 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
idiot_mtf 提交于 2016-06-01 00:14 . create
#if !defined(AFX_ADDRULEDLG_H__BFC04DB5_65C6_11D7_9C14_CE97B9E6B96A__INCLUDED_)
#define AFX_ADDRULEDLG_H__BFC04DB5_65C6_11D7_9C14_CE97B9E6B96A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// AddRuleDlg.h : header file
//
//*********************************************************************
#include "DrvFltIp.h"
#include "TDriver.h"
/////////////////////////////////////////////////////////////////////////////
// CAddRuleDlg dialog
class CAddRuleDlg : public CDialog
{
private:
BOOL Verify(CString); // Check wether given rule is valid
// Construction
//These are various file operations that are to performed on files
BOOL NewFile(void); // open new or existing file
DWORD GotoEnd(void); //move to end of the file
/* This is the handle for the file which will be created for saving
the user defined rules
*/
HANDLE _hFile;
DWORD SaveFile(char*);
BOOL CloseFile();
public:
CAddRuleDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CAddRuleDlg)
enum { IDD = IDD_ADDRULE };
CComboBox m_protocol;
CComboBox m_action;
CString m_sdadd;
CString m_sdport;
CString m_ssadd;
CString m_ssport;
//}}AFX_DATA
//**********************************************************************
TDriver ipFltDrv;
DWORD AddFilter(IPFilter );
//**********************************************************************
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAddRuleDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CAddRuleDlg)
afx_msg void OnKillfocusSadd();
afx_msg void OnKillfocusDadd();
afx_msg void OnAddsave();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ADDRULEDLG_H__BFC04DB5_65C6_11D7_9C14_CE97B9E6B96A__INCLUDED_)
C++
1
https://gitee.com/zdiskless/xp_firewall.git
git@gitee.com:zdiskless/xp_firewall.git
zdiskless
xp_firewall
xp_firewall
master

搜索帮助