www.pudn.com > NetScan.rar > SnmpManagerDlg.h
#if !defined(AFX_SNMPMANAGERDLG_H__1054ADAB_9CAB_4767_987E_84BCB985FBFE__INCLUDED_)
#define AFX_SNMPMANAGERDLG_H__1054ADAB_9CAB_4767_987E_84BCB985FBFE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SnmpManagerDlg.h : header file
#include "Snmp.h"
/////////////////////////////////////////////////////////////////////////////
// CSnmpManagerDlg dialog
#define wMsg WM_USER+5
//
class CNetScanView;
/////////////////////////////////////////////////////////////////////////////
// CSnmpManagerDlg dialog
class CSnmpManagerDlg : public CDialog
{
// Construction
public:
void displaySysInfo();
void getSysInfo();
void getNextSoftInfo(LPTSTR Oid);
void getSoftInfo();
void displaySoftInfo();
void displayProcessInfo();
bool done;
void getNextProcInfo(LPTSTR Oid);
void Next(LPTSTR Oid);
void getValuetoStr();
void OnRecv();
void InitOid();
CString m_oldOid;
int m_flag;
int m_proNameCount;//存放进程的个数
int m_proIndexCount;
int m_proTypeCount;
LPTSTR m_ProcessIndex[100]; //进程信息数组
LPTSTR m_ProcessName[100];
LPTSTR m_ProcessType[100];
LPTSTR m_SoftIndex[100];//存放软件的索引信息
LPTSTR m_SoftName[100];//存放软件的名字信息
LPTSTR m_SoftType[100];//存放软件的类型信息
int m_softTypeCount;
int m_softNameCount;
int m_softIndexCount;//存放个数信息,三者相等
bool m_bNext; //设置是否访问下一个的标志
char* str2[100];
int m_snmpType;
LPCSTR m_initOid[100];//存放取得的简单变量列表的值,字符串类型
char* str[100];//暂时存放返回的信息,字符串数组类型
// CString m_oldOid;
CString m_sAgent;//存放要访问机器的ip地址,字符串类型
CSnmp pSnmp;
smiLPVALUE m_value[100];
LPTSTR m_sOid[100];
void getProcessInfo();
// CString m_sAgent;
CNetScanView* m_pView;
void addList();
CSnmpManagerDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSnmpManagerDlg)
enum { IDD = ID_SNMPMANAGERDLG };
CListBox m_ctrlListBox;
CString m_edit;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSnmpManagerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CSnmpManagerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnButton1();
afx_msg void OnSelchangeList1();
afx_msg void OnDblclkList1();
afx_msg void OnButton2();
afx_msg void OnButton3();
afx_msg void OnButton4();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SNMPMANAGERDLG_H__1054ADAB_9CAB_4767_987E_84BCB985FBFE__INCLUDED_)