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.
|
|
//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1992.
//
// File: Time32.CXX, 32-bit only
//
// Contents: time routine
//
// Functions: DfGetTOD
//
// History: 13-Nov-92 AlexT Created
//
//--------------------------------------------------------------------------
#include <exphead.cxx>
#pragma hdrstop
SCODE DfGetTOD(TIME_T *pft) { SCODE sc;
SYSTEMTIME SystemTime;
GetSystemTime(&SystemTime);
olAssert(sizeof(TIME_T) == sizeof(FILETIME)); BOOL b = SystemTimeToFileTime(&SystemTime, pft);
if (b) { sc = S_OK; } else { olAssert(!aMsg("Unable to convert time")); sc = E_FAIL; }
return(sc); }
|