2025-04-27 07:49:33 -04:00

36 lines
924 B
C

/* timers.h -- External definitions for multiplexed timer routines.
*
* Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
*
* $Revision: 1 $
* $Date: 10/05/98 12:38p $
*/
#if !defined(TIMERS_H)
#define TIMERS_H 1
// Function return values
#define TIMER_OK 0
#define TIMER_ERROR 1
#define TIMER_NOMEM 2
#define TIMER_NOWINTIMER 3
// Defined types
typedef void (CALLBACK *TIMERCALLBACK)(void *, long);
// Function protocols
extern int TimerMuxCreate(const HWND hWnd, const UINT uiID, HTIMERMUX * const pHTM);
extern int TimerMuxDestroy(HTIMERMUX * const phTM);
extern void TimerMuxProc(const HTIMERMUX hTM);
extern int TimerCreate(const HTIMERMUX hTM,
HTIMER * const phTimer,
long lInterval,
const TIMERCALLBACK pfCallback,
void *pvData);
extern int TimerDestroy(HTIMER * const phTimer);
#endif // !defined(TIMERS_H)
// End of timers.h