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.

43 lines
1.1 KiB

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * pcy30Nov92: Added header
  7. * jod07Dec92: Made the timer a sortable Object.
  8. * pcy11Dec92: Changed #ifndef to _APCTIME_H so not to cause problems w/ TIME
  9. * pcy14Dec92: Changed Sortable to ApcSortable
  10. * ane11Jan93: Added copy constructor
  11. * ane18Jan93: Implemented Equal operator
  12. * srt12Jul96: Changed _APCTIME_H to _TIMERAPC_H cuz APCTIME.H now exists
  13. *
  14. */
  15. #ifndef _TIMERAPC_H
  16. #define _TIMERAPC_H
  17. //#include "apc.h"
  18. //#include "apcobj.h"
  19. #include "sortable.h"
  20. _CLASSDEF(Timer)
  21. _CLASSDEF(ApcSortable)
  22. class Timer : public ApcSortable
  23. {
  24. protected:
  25. ULONG theTimerID;
  26. ULONG theAlarmTime;
  27. virtual ULONG GetAlarmTime() {return theAlarmTime;};
  28. public:
  29. Timer(ULONG MilliSecondDelay);
  30. Timer(RTimer aTimer);
  31. virtual INT GreaterThan(PApcSortable);
  32. virtual INT LessThan(PApcSortable);
  33. virtual INT IsA() const {return TIMER;};
  34. virtual ULONG GetTimerID(){return theTimerID;};
  35. virtual ULONG GetTime(){return theAlarmTime;};
  36. virtual VOID Execute()=0;
  37. virtual INT Equal( RObj ) const;
  38. };
  39. #endif