📄 nidsdlg.h
字号:
// NIDSDlg.h : header file
//
#if !defined(AFX_NIDSDLG_H__45EEBEB0_B6D1_43F2_AB7B_6E96425363B6__INCLUDED_)
#define AFX_NIDSDLG_H__45EEBEB0_B6D1_43F2_AB7B_6E96425363B6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CNIDSDlg dialog
#define WM_START_DETECT (WM_USER+101)
#define WM_CLOSE_DETECT (WM_USER+102)
class CNIDSDlg : public CDialog
{
// Construction
public:
//void StartDetect();
//char * GetProtocolTxt(int Protocol);
CNIDSDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CNIDSDlg)
enum { IDD = IDD_NIDS_DIALOG };
CIPAddressCtrl m_TurnIP;
CButton m_checkTCP;
CListBox m_List;
CIPAddressCtrl m_IP;
CListCtrl m_ListCtrl;
CString m_edit3;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNIDSDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
public:
void ListCtrlDelPart();
void EventDetect(char *szSourcePort,char *szDestPort);
void CNIDSDlg::ShowList();
void StartDetect();
void InitListCtrl();
HANDLE hThreadStartDetect;
DWORD dwThreadStartDetectId;
BOOL m_IsAllProto; //选中全部协议
BOOL m_IsAllIp; //选中全部IP
BOOL m_IsAllPort; //选中全部端口
char m_szProto[16]; //得到用户选择的协议
char* m_HostIp; //本机IP
int m_ihLen; //IP包头长度
char m_szDestPort[16]; //得到IP包中目标协议
char m_szSourcePort[16]; //得到IP包中源协议
char m_szTTL[16]; //得到IP包中TTL
char m_szDestIP[16]; //得到IP包中目标IP
char m_szSourceIP[16]; //得到IP包中源IP
char m_szProtocol[16]; //得到IP包中协议
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CNIDSDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtoncheck();
virtual void OnOK();
afx_msg void OnButtonexit();
afx_msg void OnAllPort();
afx_msg void OnRadio2();
afx_msg void OnRadio3();
afx_msg void OnRadio4();
afx_msg void OnRadio5();
afx_msg void OnRadio8();
afx_msg void OnRadio6();
afx_msg void OnRadio7();
afx_msg void OnButton1();
afx_msg void OnDblclkList3();
afx_msg void OnButton2();
afx_msg void OnChecktcp();
afx_msg void OnButton4();
afx_msg void OnButton5();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
//afx_msg void OnStartDetect(WPARAM wParam, LPARAM lParam);
afx_msg void OnCloseDetect(WPARAM wParam, LPARAM lParam);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NIDSDLG_H__45EEBEB0_B6D1_43F2_AB7B_6E96425363B6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -