PortScanDlg.h
上传用户:zhyl198712
上传日期:2013-02-03
资源大小:35k
文件大小:2k
- // PortScanDlg.h : header file
- //
- #if !defined(AFX_PORTSCANDLG_H__6D0BE731_BC6F_4487_8F34_515E9958FC86__INCLUDED_)
- #define AFX_PORTSCANDLG_H__6D0BE731_BC6F_4487_8F34_515E9958FC86__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define WM_USER_PRINT_START (WM_USER+2)
- /////////////////////////////////////////////////////////////////////////////
- // CPortScanDlg dialog
- #define WM_USER_PRINT_START (WM_USER+2)
-
- typedef struct
- {
- int nAttempts;
- CString ipAddress;
- CString port;
- BOOL bStatus;
- }ScanInfo;
- struct thread
- {
- HWND m_hwnd;
- CString ip;
- };
- UINT threadA(LPVOID pParam);
- UINT threadM(LPVOID pParam);
- class CPortScanDlg : public CDialog
- {
- // Construction
- public:
- CPortScanDlg(CWnd* pParent = NULL); // standard constructor
- ~CPortScanDlg();
- // Dialog Data
- //{{AFX_DATA(CPortScanDlg)
- enum { IDD = IDD_PORTSCAN_DIALOG };
- CEdit m_threadNumber;
- CButton m_buttonStop;
- CButton m_buttonStart;
- CStatic m_prompt;
- CProgressCtrl m_progressScan;
- CEdit m_portFrom;
- CEdit m_portTo;
- CEdit m_singlePort;
- CIPAddressCtrl m_IP;
- CListCtrl m_listInfo;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CPortScanDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- LRESULT OnPrintStart(WPARAM wParam,LPARAM lParam);
- // Generated message map functions
- //{{AFX_MSG(CPortScanDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnRadioSingle();
- afx_msg void OnRadioMulti();
- afx_msg void OnButtonscan();
- afx_msg void OnButtonsave();
- afx_msg void OnButtonstop();
- afx_msg void OnButtonabout();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- public:
- public:
- BOOL TestConnection(CString ip,UINT nCounter);
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_PORTSCANDLG_H__6D0BE731_BC6F_4487_8F34_515E9958FC86__INCLUDED_)