view src/include/timer.h @ 3:8df8af626dca

dirtools: sys/stat.h->windows.h committer: GitHub <noreply@github.com>
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Sun, 07 Aug 2022 22:47:41 -0400
parents d91dfd53b8b4
children be4835547dd0
line wrap: on
line source

#ifndef __timer_h
#define __timer_h
#ifndef WIN32_LEAN_AND_MEAN
#  define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>

struct timer_t {
	int initialized;
	int is_timer_alive;
	UINT interval;
	HWND winampClientWindow;
	TIMERPROC timer_proc;
};

void timer_init(struct timer_t* timer, HWND winampClientWindow, TIMERPROC timer_proc);
void timer_set(struct timer_t* timer, HWND winampClientWindow);
void timer_stop(struct timer_t* timer, HWND winampClientWindow);

#endif // __timer_h