Mercurial > wgsdk
comparison src/include/timer.h @ 0:d91dfd53b8b4
Initial commit
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 07 Aug 2022 07:26:27 -0400 |
parents | |
children | be4835547dd0 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d91dfd53b8b4 |
---|---|
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 | |
8 struct timer_t { | |
9 int initialized; | |
10 int is_timer_alive; | |
11 UINT interval; | |
12 HWND winampClientWindow; | |
13 TIMERPROC timer_proc; | |
14 }; | |
15 | |
16 void timer_init(struct timer_t* timer, HWND winampClientWindow, TIMERPROC timer_proc); | |
17 void timer_set(struct timer_t* timer, HWND winampClientWindow); | |
18 void timer_stop(struct timer_t* timer, HWND winampClientWindow); | |
19 | |
20 #endif // __timer_h |