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.

75 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. sstobj.h
  5. Abstract:
  6. Server statistic object implementation.
  7. Author:
  8. Don Ryan (donryan) 03-Mar-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _SSTOBJ_H_
  14. #define _SSTOBJ_H_
  15. class CServerStatistic : public CCmdTarget
  16. {
  17. DECLARE_DYNCREATE(CServerStatistic)
  18. private:
  19. CCmdTarget* m_pParent;
  20. public:
  21. CString m_strEntry;
  22. long m_lMaxUses;
  23. long m_lHighMark;
  24. BOOL m_bIsPerServer;
  25. public:
  26. CServerStatistic(
  27. CCmdTarget* pParent = NULL,
  28. LPCTSTR pEntry = NULL,
  29. DWORD dwFlags = 0L,
  30. long lMaxUses = 0,
  31. long lHighMark = 0
  32. );
  33. virtual ~CServerStatistic();
  34. //{{AFX_VIRTUAL(CServerStatistic)
  35. public:
  36. virtual void OnFinalRelease();
  37. //}}AFX_VIRTUAL
  38. //{{AFX_DISPATCH(CServerStatistic)
  39. afx_msg LPDISPATCH GetApplication();
  40. afx_msg LPDISPATCH GetParent();
  41. afx_msg BSTR GetServerName();
  42. afx_msg long GetMaxUses();
  43. afx_msg long GetHighMark();
  44. //}}AFX_DISPATCH
  45. DECLARE_DISPATCH_MAP()
  46. protected:
  47. //{{AFX_MSG(CServerStatistic)
  48. // NOTE - the ClassWizard will add and remove member functions here.
  49. //}}AFX_MSG
  50. DECLARE_MESSAGE_MAP()
  51. };
  52. #endif // _SSTOBJ_H_