-
Notifications
You must be signed in to change notification settings - Fork 7
/
CCallbackTimer.hpp
43 lines (37 loc) · 1.04 KB
/
CCallbackTimer.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//////////////////////////////////////////////////////////////////////////////
//
// CCallbackTimer.hpp
// Win32::Daemon Perl extension callback timer class header file
//
// Copyright (c) 1998-2008 Dave Roth
// Courtesy of Roth Consulting
// http://www.roth.net/
//
// This file may be copied or modified only under the terms of either
// the Artistic License or the GNU General Public License, which may
// be found in the Perl 5.0 source kit.
//
// 2008.03.24 :Date
// 20080324 :Version
//////////////////////////////////////////////////////////////////////////////
#ifndef _CCALLBACKTIMER_H_
#define _CCALLBACKTIMER_H_
class CCallbackTimer
{
public:
CCallbackTimer();
~CCallbackTimer();
BOOL Stop();
BOOL Start();
BOOL QueryState();
UINT GetMessageID();
UINT SetMessageID( UINT iNewMessageID );
int GetTimerValue();
int SetTimerValue( int iNewTimerValue );
int operator=( const int iRightHandValue );
private:
UINT m_TimerValue;
UINT_PTR m_TimerID;
UINT m_MessageID;
};
#endif // _CCALLBACKTIMER_H_