/* Copyright (c) 1998-1999 Microsoft Corporation Module Name: blbtime.h Abstract: Definition of the TIME class Author: */ #if !defined(AFX_BLBTIME_H__0CC1F05A_CAEB_11D0_8D58_00C04FD91AC0__INCLUDED_) #define AFX_BLBTIME_H__0CC1F05A_CAEB_11D0_8D58_00C04FD91AC0__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #include "resource.h" // main symbols #include "sdpblb.h" #include "blbcoen.h" ///////////////////////////////////////////////////////////////////////////// // Time const USHORT MAX_NTP_TIME_STRLEN = 10; const SHORT FIRST_POSSIBLE_YEAR = 1970; const DWORD NTP_OFFSET = 0x83aa7e80; // return the current Ntp time inline DWORD_PTR GetCurrentNtpTime( ) { return (time(NULL) + NTP_OFFSET); } class ATL_NO_VTABLE TIME : public ENUM_ELEMENT, public CComObjectRootEx, public CComDualImpl, public CObjectSafeImpl { friend class MY_COLL_IMPL