Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

  1. /* timers.h -- External definitions for multiplexed timer routines.
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. *
  5. * $Revision: 2 $
  6. * $Date: 5/29/02 2:17p $
  7. */
  8. #if !defined(TIMERS_H)
  9. #define TIMERS_H 1
  10. // Function return values
  11. #define TIMER_OK 0
  12. #define TIMER_ERROR 1
  13. #define TIMER_NOMEM 2
  14. #define TIMER_NOWINTIMER 3
  15. // Defined types
  16. typedef void (CALLBACK *TIMERCALLBACK)(void *, long);
  17. // Function protocols
  18. extern int TimerMuxCreate(const HWND hWnd,
  19. const UINT uiID,
  20. HTIMERMUX * const pHTM,
  21. const HSESSION hSession);
  22. extern int TimerMuxDestroy(HTIMERMUX * const phTM,
  23. const HSESSION hSession);
  24. extern void TimerMuxProc(const HSESSION hSession);
  25. extern int TimerCreate(const HSESSION hSession,
  26. HTIMER * const phTimer,
  27. long lInterval,
  28. const TIMERCALLBACK pfCallback,
  29. void *pvData);
  30. extern int TimerDestroy(HTIMER * const phTimer);
  31. #endif // !defined(TIMERS_H)
  32. // End of timers.h