?? ccamscdlg.h
字號(hào):
// CCAMSCDlg.h : header file
//
#if !defined(AFX_CCAMSCDLG_H__B64F8325_1015_4BAF_B12B_D17BF5F72FB9__INCLUDED_)
#define AFX_CCAMSCDLG_H__B64F8325_1015_4BAF_B12B_D17BF5F72FB9__INCLUDED_
#include "CupAgent.h" // Added by ClassView
#include "ProbeMail.h"
#include "systemTray.h"
#include "SocketSend.h"
#include "ProbePacket.h"
#include "FileWather.h"
#include "ProcessProbe.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_USER_TRAY_NOTIFICATION (WM_USER+0x101)
extern CRITICAL_SECTION gCriticalSectionForBuff;
extern CRITICAL_SECTION gCriticalSectionForPrtBuff;
extern struct probebuff * PtrBuffWrite;
/////////////////////////////////////////////////////////////////////////////
// CCAMSCDlg dialog
class CCAMSCDlg : public CDialog
{
// Construction
public:
CString m_monDriver;
ProbeMail m_MailProbe;
CCAMSCDlg(CWnd* pParent = NULL); // standard constructor
CTime NowTime;
CupAgent m_CpuProbe;
CFileWather m_FileProbe;
ProcessProbe m_ProcessProbe;
// HANDLE idHandle[4];
HANDLE hProbeThread[4];
int NICid;
// int NICid;
// Dialog Data
//{{AFX_DATA(CCAMSCDlg)
enum { IDD = IDD_CCAMSC_DIALOG };
CButton m_CtrlConnect;
CButton m_CtrlCapture;
CComboBox m_CtrlComboBoxNIC;
CComboBox m_CtrlComboBoxDriver;
CEdit m_CtrlPort;
CIPAddressCtrl m_CtrlIpAddress;
CListBox m_CtrlList;
CString m_StrCpuUsage;
CString m_StrNowtime;
long m_Port;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCAMSCDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
afx_msg LONG OnTrayNotification( WPARAM wparam, LPARAM lparam );
private:
static DWORD StartFileProbe(LPVOID lParam);
static DWORD StartPacketProbe(LPVOID lParam);
static DWORD StartMailProbe(LPVOID lParam);
static DWORD StartProccessProbe(LPVOID lParam);
// Implementation
protected:
HICON m_hIcon;
CSystemTray m_trayIcon;
SocketSend m_TcpSend;
// Generated message map functions
//{{AFX_MSG(CCAMSCDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnMenuExit();
afx_msg void OnMenuAbout();
afx_msg void OnMenuShow();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnDestroy();
afx_msg void OnStartCapture();
afx_msg void OnConnectServer();
afx_msg void OnMENUHelp();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CCAMSCDLG_H__B64F8325_1015_4BAF_B12B_D17BF5F72FB9__INCLUDED_)
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -