-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAddRuleDlg.h
More file actions
71 lines (61 loc) · 1.98 KB
/
AddRuleDlg.h
File metadata and controls
71 lines (61 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#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_)