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.

39 lines
828 B

  1. #pragma once
  2. #include "Thread.h"
  3. //---------------------------------------------------------------------------
  4. // MonitorThread Class
  5. //---------------------------------------------------------------------------
  6. class CMonitorThread : public CThread
  7. {
  8. public:
  9. CMonitorThread();
  10. virtual ~CMonitorThread();
  11. void Start();
  12. void Stop();
  13. protected:
  14. virtual void Run();
  15. void ProcessMigrationLog(bool bCheckModifyTime = true);
  16. void ProcessDispatchLog(bool bInitialize = false, bool bCheckModifyTime = true);
  17. private:
  18. _bstr_t m_strMigrationLog;
  19. HANDLE m_hMigrationLog;
  20. FILETIME m_ftMigrationLogLastWriteTime;
  21. _bstr_t m_strDispatchLog;
  22. HANDLE m_hDispatchLog;
  23. FILETIME m_ftDispatchLogLastWriteTime;
  24. FILETIME m_ftMonitorBeginTime;
  25. bool m_bDontNeedCheckMonitorBeginTime;
  26. };