0
|
1 #ifndef __timer_h
|
|
2 #define __timer_h
|
|
3 #ifndef WIN32_LEAN_AND_MEAN
|
|
4 # define WIN32_LEAN_AND_MEAN
|
|
5 #endif
|
|
6 #include <windows.h>
|
|
7
|
7
|
8 struct timer {
|
0
|
9 int initialized;
|
|
10 int is_timer_alive;
|
|
11 UINT interval;
|
|
12 HWND winampClientWindow;
|
|
13 TIMERPROC timer_proc;
|
|
14 };
|
|
15
|
7
|
16 void timer_init(struct timer* timer, HWND winampClientWindow, TIMERPROC timer_proc);
|
|
17 void timer_set(struct timer* timer, HWND winampClientWindow);
|
|
18 void timer_stop(struct timer* timer, HWND winampClientWindow);
|
0
|
19
|
|
20 #endif // __timer_h |