mirror of https://github.com/tongzx/nt5src
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
25 lines
505 B
#ifndef __EXTIMER_H_INCLUDED
|
|
#define __EXTIMER_H_INCLUDED
|
|
|
|
#include <windows.h>
|
|
|
|
class CExclusiveTimer
|
|
{
|
|
private:
|
|
UINT m_nTimerId;
|
|
HWND m_hWnd;
|
|
|
|
private:
|
|
// No implementation
|
|
CExclusiveTimer( const CExclusiveTimer & );
|
|
CExclusiveTimer &operator=( const CExclusiveTimer & );
|
|
|
|
public:
|
|
CExclusiveTimer(void);
|
|
~CExclusiveTimer(void);
|
|
void Kill(void);
|
|
void Set( HWND hWnd, UINT nTimerId, UINT nMilliseconds );
|
|
UINT TimerId(void) const;
|
|
};
|
|
|
|
#endif //__EXTIMER_H_INCLUDED
|