Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1998 **/
  4. /**********************************************************************/
  5. /*
  6. svrstats.h
  7. The server statistics dialog
  8. FILE HISTORY:
  9. */
  10. #ifndef _STATS_H
  11. #define _STATS_H
  12. #if _MSC_VER >= 1000
  13. #pragma once
  14. #endif // _MSC_VER >= 1000
  15. #include "mdlsdlg.h"
  16. #include "spddb.h"
  17. #define SERVER_STATS_DEFAULT_WIDTH 450
  18. #define SERVER_STATS_DEFAULT_HEIGHT 300
  19. #define WM_UPDATE_STATS WM_USER + 1098
  20. class CIpsecStats;
  21. class CIpsecStats : public CModelessDlg
  22. {
  23. public:
  24. CIpsecStats();
  25. ~CIpsecStats();
  26. void SetData(ISpdInfo * pSpdInfo) { m_spSpdInfo.Set(pSpdInfo); }
  27. //{{AFX_DATA(CIpsecStats)
  28. enum { IDD = IDD_IPSM_STATS };
  29. //}}AFX_DATA
  30. // Overrides
  31. // ClassWizard generated virtual function overrides
  32. //{{AFX_VIRTUAL(CIpsecStats)
  33. protected:
  34. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  35. //}}AFX_VIRTUAL
  36. virtual DWORD * GetHelpMap() { return (DWORD *) &g_aHelpIDs_IDD_IPSM_STATS[0]; }
  37. protected:
  38. // Generated message map functions
  39. //{{AFX_MSG(CIpsecStats)
  40. virtual BOOL OnInitDialog();
  41. virtual afx_msg void OnRefresh();
  42. afx_msg long OnUpdateStats(UINT wParam, LONG lParam);
  43. //}}AFX_MSG
  44. DECLARE_MESSAGE_MAP()
  45. void UpdateStatistics(const CIkeStatistics & IkeStatisc,
  46. const CIpsecStatistics & IpsecStats);
  47. void SetColumns(CListCtrl * plistCtrl);
  48. SPISpdInfo m_spSpdInfo;
  49. CListCtrl m_listIkeStats;
  50. CListCtrl m_listIpsecStats;
  51. };
  52. #endif _SERVSTAT_H