Leaked source code of windows server 2003
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.

76 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1994-95 Microsoft Corporation
  3. Module Name:
  4. staobj.h
  5. Abstract:
  6. Statistic object implementation.
  7. Author:
  8. Don Ryan (donryan) 04-Jan-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _STAOBJ_H_
  14. #define _STAOBJ_H_
  15. class CStatistic : public CCmdTarget
  16. {
  17. DECLARE_DYNCREATE(CStatistic)
  18. private:
  19. CCmdTarget* m_pParent;
  20. public:
  21. CString m_strEntry;
  22. long m_lLastUsed;
  23. long m_lTotalUsed;
  24. BOOL m_bIsValid;
  25. public:
  26. CStatistic(
  27. CCmdTarget* pParent = NULL,
  28. LPCTSTR pEntry = NULL,
  29. DWORD dwFlags = 0L,
  30. long lLastUsed = 0,
  31. long lTotalUsed = 0
  32. );
  33. virtual ~CStatistic();
  34. BSTR GetLastUsedString();
  35. // ClassWizard generated virtual function overrides
  36. //{{AFX_VIRTUAL(CStatistic)
  37. public:
  38. virtual void OnFinalRelease();
  39. //}}AFX_VIRTUAL
  40. // Generated OLE dispatch map functions
  41. //{{AFX_DISPATCH(CStatistic)
  42. afx_msg LPDISPATCH GetApplication();
  43. afx_msg DATE GetLastUsed();
  44. afx_msg LPDISPATCH GetParent();
  45. afx_msg long GetTotalUsed();
  46. afx_msg BSTR GetEntryName();
  47. //}}AFX_DISPATCH
  48. DECLARE_DISPATCH_MAP()
  49. protected:
  50. // Generated message map functions
  51. //{{AFX_MSG(CStatistic)
  52. // NOTE - the ClassWizard will add and remove member functions here.
  53. //}}AFX_MSG
  54. DECLARE_MESSAGE_MAP()
  55. };
  56. #endif // _STAOBJ_H_