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.
 
 
 
 
 
 

40 lines
1.0 KiB

// DateTimeObject.h : Declaration of the CDateTimeObject
#ifndef __DATETIMEOBJECT_H_
#define __DATETIMEOBJECT_H_
#include "resource.h" // main symbols
#include <windows.h>
#include <Chstring.h>
/////////////////////////////////////////////////////////////////////////////
// CDateTimeObject
class ATL_NO_VTABLE CDateTimeObject :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CDateTimeObject, &CLSID_DateTimeObject>,
public IDispatchImpl<IDateTimeObject, &IID_IDateTimeObject, &LIBID_SCRIPTINGUTILSLib>
{
public:
CDateTimeObject()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_DATETIMEOBJECT)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CDateTimeObject)
COM_INTERFACE_ENTRY(IDateTimeObject)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
// IDateTimeObject
public:
STDMETHOD(GetDateAndTime)(BSTR bstrInDateTime, VARIANT* pVarDateTime);
private:
LCID GetSupportedUserLocale( BOOL& bLocaleChanged ) ;
SYSTEMTIME GetDateTime(CHString strTime) ;
};
#endif //__DATETIMEOBJECT_H_