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.

28 lines
549 B

  1. #ifndef __WBEM_TIME_KEEPER__H_
  2. #define __WBEM_TIME_KEEPER__H_
  3. #include <esscpol.h>
  4. #include <sync.h>
  5. #include <wbemint.h>
  6. class ESSCLI_POLARITY CTimeKeeper
  7. {
  8. protected:
  9. CCritSec m_cs;
  10. FILETIME m_ftLastEvent;
  11. DWORD m_dwEventCount;
  12. long m_lTimeHandle;
  13. bool m_bHandleInit;
  14. public:
  15. CTimeKeeper() : m_dwEventCount(0), m_lTimeHandle(0), m_bHandleInit(false)
  16. {
  17. m_ftLastEvent.dwLowDateTime = m_ftLastEvent.dwHighDateTime = 0;
  18. }
  19. bool DecorateObject(_IWmiObject* pObj);
  20. };
  21. #endif