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.

25 lines
505 B

  1. #ifndef __EXTIMER_H_INCLUDED
  2. #define __EXTIMER_H_INCLUDED
  3. #include <windows.h>
  4. class CExclusiveTimer
  5. {
  6. private:
  7. UINT m_nTimerId;
  8. HWND m_hWnd;
  9. private:
  10. // No implementation
  11. CExclusiveTimer( const CExclusiveTimer & );
  12. CExclusiveTimer &operator=( const CExclusiveTimer & );
  13. public:
  14. CExclusiveTimer(void);
  15. ~CExclusiveTimer(void);
  16. void Kill(void);
  17. void Set( HWND hWnd, UINT nTimerId, UINT nMilliseconds );
  18. UINT TimerId(void) const;
  19. };
  20. #endif //__EXTIMER_H_INCLUDED