windows-nt/Source/XPSP1/NT/com/ole32/stg/ref/time.hxx

32 lines
680 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1996.
//
// File: time.hxx
//
// Contents: DocFile Time Support
//
//--------------------------------------------------------------------------
#ifndef __TIME16_HXX__
#define __TIME16_HXX__
#include "h/storage.h"
#include <time.h>
// Time type
typedef FILETIME TIME_T;
STDAPI_(void) FileTimeToTimeT(const FILETIME *pft, time_t *ptt);
STDAPI_(void) TimeTToFileTime(const time_t *ptt, FILETIME *pft);
inline SCODE DfGetTOD(TIME_T *pft)
{
time_t tt;
time(&tt);
TimeTToFileTime(&tt, pft);
return S_OK;
}
#endif