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.

31 lines
680 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  5. //
  6. // File: time.hxx
  7. //
  8. // Contents: DocFile Time Support
  9. //
  10. //--------------------------------------------------------------------------
  11. #ifndef __TIME16_HXX__
  12. #define __TIME16_HXX__
  13. #include "h/storage.h"
  14. #include <time.h>
  15. // Time type
  16. typedef FILETIME TIME_T;
  17. STDAPI_(void) FileTimeToTimeT(const FILETIME *pft, time_t *ptt);
  18. STDAPI_(void) TimeTToFileTime(const time_t *ptt, FILETIME *pft);
  19. inline SCODE DfGetTOD(TIME_T *pft)
  20. {
  21. time_t tt;
  22. time(&tt);
  23. TimeTToFileTime(&tt, pft);
  24. return S_OK;
  25. }
  26. #endif