MMTIMER.INT 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Tel.: +0351-8012255 =}
  7. {= Loewenstr.7a = info@swiftsoft.de =}
  8. {========================================================================}
  9. {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
  10. {========================================================================}
  11. {= This code is for reference purposes only and may not be copied or =}
  12. {= distributed in any format electronic or otherwise except one copy =}
  13. {= for backup purposes. =}
  14. {= =}
  15. {= No Delphi Component Kit or Component individually or in a collection=}
  16. {= subclassed or otherwise from the code in this unit, or associated =}
  17. {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
  18. {= without express permission from SwiftSoft. =}
  19. {= =}
  20. {= For more licence informations please refer to the associated =}
  21. {= HelpFile. =}
  22. {========================================================================}
  23. {= $Date: 20.01.1998 - 18:00:00 $ =}
  24. {========================================================================}
  25. Unit MMTimer;
  26. {$C FIXED PRELOAD PERMANENT}
  27. {$I COMPILER.INC}
  28. Interface
  29. Uses
  30. {$IFDEF WIN32}
  31. Windows,
  32. {$ELSE}
  33. WinTypes,
  34. WinProcs,
  35. {$ENDIF}
  36. SysUtils,
  37. MMSystem,
  38. MMUtils;
  39. const
  40. TIMERELAPSE = 25;
  41. type
  42. TMMTimeCallBack = procedure(uTimerID, dwUser: Longint);
  43. function MMTimeSetEvent(Interval: Cardinal; Suspended: Boolean;
  44. lpCallBack: TMMTimeCallBack; dwUser: Longint): Longint;
  45. procedure MMTimeSetInterval(uTimerID: Longint; Interval: Cardinal);
  46. procedure MMTimeSuspendEvent(uTimerID: Longint);
  47. procedure MMTimeResumeEvent(uTimerID: Longint);
  48. procedure MMTimeKillEvent(uTimerID: Longint);
  49. implementation