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.

50 lines
1.1 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  5. //
  6. // File: secmisc.h
  7. //
  8. // Contents: Helper functions and macros for security packages
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 10-Dec-91 Richardw Created
  15. //
  16. //--------------------------------------------------------------------------
  17. #ifndef __SECMISC_H__
  18. #define __SECMISC_H__
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. ///////////////////////////////////////////////////////////////////////////
  23. //
  24. // Common TimeStamp Manipulation Functions
  25. //
  26. ///////////////////////////////////////////////////////////////////////////
  27. // Functions to get/set current local time, or time in UTC:
  28. void GetCurrentTimeStamp(PLARGE_INTEGER);
  29. #define SetMaxTimeStamp(ts) \
  30. (ts).HighPart = 0x7FFFFFFF; \
  31. (ts).LowPart = 0xFFFFFFFF;
  32. void AddSecondsToTimeStamp(PLARGE_INTEGER, ULONG);
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif // __SECMISC_H__