Source code of Windows XP (NT5)
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.

62 lines
820 B

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module:
  4. timer.h
  5. Abstract:
  6. Contains declarations for the NAT's timer DPC routine,
  7. which is responsible for garbage-collecting expired mappings.
  8. Author:
  9. Abolade Gbadegesin (t-abolag) 22-July-1997
  10. Revision History:
  11. --*/
  12. #ifndef _NAT_TIMER_H_
  13. #define _NAT_TIMER_H_
  14. //
  15. // Macro used to convert from seconds to tick-count units
  16. //
  17. #define SECONDS_TO_TICKS(s) \
  18. ((LONG64)(s) * 10000000 / TimeIncrement)
  19. #define TICKS_TO_SECONDS(t) \
  20. ((LONG64)(t) * TimeIncrement / 10000000)
  21. extern ULONG TimeIncrement;
  22. VOID
  23. NatInitializeTimerManagement(
  24. VOID
  25. );
  26. VOID
  27. NatShutdownTimerManagement(
  28. VOID
  29. );
  30. VOID
  31. NatStartTimer(
  32. VOID
  33. );
  34. VOID
  35. NatStopTimer(
  36. VOID
  37. );
  38. VOID
  39. NatTriggerTimer(
  40. VOID
  41. );
  42. #endif // _NAT_TIMER_H_