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.

58 lines
824 B

  1. /*++
  2. Copyright (c) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. NsTimer.h
  5. Abstract:
  6. Declarations for IpSec NAT shim timer management
  7. Author:
  8. Jonathan Burstein (jonburs) 11-July-2001
  9. Environment:
  10. Kernel mode
  11. Revision History:
  12. --*/
  13. #pragma once
  14. //
  15. // Macro used to convert from seconds to tick-count units
  16. //
  17. #define SECONDS_TO_TICKS(s) \
  18. ((LONG64)(s) * 10000000 / NsTimeIncrement)
  19. #define TICKS_TO_SECONDS(t) \
  20. ((LONG64)(t) * NsTimeIncrement / 10000000)
  21. //
  22. // Global Variables
  23. //
  24. extern ULONG NsTimeIncrement;
  25. extern ULONG NsTcpTimeoutSeconds;
  26. extern ULONG NsUdpTimeoutSeconds;
  27. //
  28. // Function Prototypes
  29. //
  30. NTSTATUS
  31. NsInitializeTimerManagement(
  32. VOID
  33. );
  34. VOID
  35. NsShutdownTimerManagement(
  36. VOID
  37. );