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.

40 lines
879 B

  1. /*----------------------------------------------------------------------------
  2. cpsmon.h
  3. Header file shared by pbsmon.cpp & pbserver.dll -- Has the shared memory object
  4. Copyright (c) 1997-1998 Microsoft Corporation
  5. All rights reserved.
  6. Authors:
  7. t-geetat Geeta Tarachandani
  8. History:
  9. 5/29/97 t-geetat Created
  10. --------------------------------------------------------------------------*/
  11. #define SHARED_OBJECT "MyCCpsCounter"
  12. #define SEMAPHORE_OBJECT "Sem_MyCpsMon"
  13. enum CPS_COUNTERS
  14. {
  15. TOTAL,
  16. NO_UPGRADE,
  17. DELTA_UPGRADE,
  18. FULL_UPGRADE,
  19. ERRORS
  20. };
  21. class CCpsCounter {
  22. public :
  23. DWORD m_dwTotalHits;
  24. DWORD m_dwNoUpgradeHits;
  25. DWORD m_dwDeltaUpgradeHits;
  26. DWORD m_dwFullUpgradeHits;
  27. DWORD m_dwErrors;
  28. void InitializeCounters( void );
  29. void AddHit(enum CPS_COUNTERS eCounter);
  30. };