📄 beastscanerdlg.h
字号:
// BeastScanerDlg.h : header file
//
#if !defined(AFX_BEASTSCANERDLG_H__845864DC_23F5_462B_B459_A63BBA95BB28__INCLUDED_)
#define AFX_BEASTSCANERDLG_H__845864DC_23F5_462B_B459_A63BBA95BB28__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "XTabCtrl.h"
#include "PortScanDlg.h"
#include "ArpScanDlg.h"
#include "IcmpScanDlg.h"
#include "afxwin.h"
#include "afxcmn.h"
#include "StdAfx.h" // Added by ClassView
/////////////////////////////////////////////////////////////////////////////
// CBeastScanerDlg dialog
class CBeastScanerDlg : public CDialog
{
// Construction
public:
DWORD dwCurrentHostNo,dwCurrentPortInfoNo;
SCAN_TYPE enCurrentScanType;
CXTabCtrl cTabCtrl;
CArpScanDlg cArpScanDlg;
CIcmpScanDlg cIcmpScanDlg;
CPortScanDlg cPortScanDlg;
DWORD dwNetMask;
DWORD dwLocalIP;
DWORD dwDefaultGateway;
UCHAR bLocalMac[6];
void InitTabCtrl();
void InitListCtrl();
void GetLocalInfo();
CBeastScanerDlg(CWnd* pParent = NULL); // standard constructor
~CBeastScanerDlg();
// Dialog Data
//{{AFX_DATA(CBeastScanerDlg)
enum { IDD = IDD_BEASTSCANER_DIALOG };
CListCtrl cListPortInfo;
CListCtrl cListHostInfo;
CButton cButtonPause;
CString stCurrentState;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CBeastScanerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
pcap_if_t *alldevs,*SelectDev;
virtual void OnOK();
// Generated message map functions
//{{AFX_MSG(CBeastScanerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnNMDblclkListHostInfo(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBnClickedPause();
afx_msg void OnBnClickedStop();
afx_msg LRESULT OnBeginScan(WPARAM wparam,LPARAM lparam);
afx_msg LRESULT OnAddHostInfo(WPARAM wprarm, LPARAM lprarm);
afx_msg LRESULT OnFinishScan(WPARAM wparam,LPARAM lparam);
afx_msg LRESULT OnUpdataLog(WPARAM wparam,LPARAM lparam);
afx_msg LRESULT OnHandleConnectScan(WPARAM wparam,LPARAM lparam);
afx_msg LRESULT OnHandleUdpScan(WPARAM wparam,LPARAM lparam);
afx_msg LRESULT OnHandleSynScan(WPARAM wparam,LPARAM lparam);
afx_msg LRESULT OnHandleFinScan(WPARAM wparam,LPARAM lparam);
afx_msg LRESULT OnHandleAckScan(WPARAM wparam,LPARAM lparam);
afx_msg LRESULT OnHandleNullScan(WPARAM wparam,LPARAM lparam);
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BEASTSCANERDLG_H__845864DC_23F5_462B_B459_A63BBA95BB28__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -