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.

50 lines
959 B

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1991 - 1992
  6. //
  7. // File: gettime.c
  8. //
  9. // Contents: Getting time
  10. //
  11. //
  12. // History: Created
  13. //
  14. //------------------------------------------------------------------------
  15. #include <nt.h>
  16. #include <ntrtl.h>
  17. #include <nturtl.h>
  18. #include <windows.h>
  19. #ifndef SECURITY_WIN32
  20. #define SECURITY_WIN32
  21. #endif // SECURITY_WIN32
  22. #include <security.h>
  23. #include <secmisc.h>
  24. //+-------------------------------------------------------------------------
  25. //
  26. // Function: GetCurrentTimeStamp
  27. //
  28. // Synopsis: Gets current time, UTC format.
  29. //
  30. // Effects:
  31. //
  32. // Arguments:
  33. //
  34. // Requires:
  35. //
  36. // Returns:
  37. //
  38. // Notes:
  39. //
  40. //--------------------------------------------------------------------------
  41. void
  42. GetCurrentTimeStamp( PLARGE_INTEGER ptsCurrentTime)
  43. {
  44. (void) NtQuerySystemTime(ptsCurrentTime);
  45. }