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.
 
 
 
 
 
 

58 lines
1.7 KiB

// DglogsCom.h : Declaration of the CDglogsCom
#ifndef __DGLOGSCOM_H_
#define __DGLOGSCOM_H_
#include "dglogsres.h" // main symbols
#include "DglogsCP.h"
#include "Diagnostics.h"
/////////////////////////////////////////////////////////////////////////////
// CDglogsCom
class ATL_NO_VTABLE CDglogsCom :
//public CComObjectRootEx<CComSingleThreadModel>,
public CComObjectRootEx<CComMultiThreadModelNoCS>,
public CComCoClass<CDglogsCom, &CLSID_DglogsCom>,
public IConnectionPointContainerImpl<CDglogsCom>,
public IDispatchImpl<IDglogsCom, &IID_IDglogsCom, &LIBID_DGLOGSLib>,
public CProxy_IDglogsComEvents< CDglogsCom >,
public IProvideClassInfo2Impl<&CLSID_DglogsCom, NULL,&LIBID_DGLOGSLib>
{
public:
CDglogsCom();
DECLARE_REGISTRY_RESOURCEID(IDR_DGLOGSCOM)
//DECLARE_REGISTRY_RESOURCEID(IDR_DGNET)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CDglogsCom)
COM_INTERFACE_ENTRY(IDglogsCom)
COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(IConnectionPointContainer)
COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
COM_INTERFACE_ENTRY(IProvideClassInfo)
COM_INTERFACE_ENTRY(IProvideClassInfo2)
END_COM_MAP()
BEGIN_CONNECTION_POINT_MAP(CDglogsCom)
CONNECTION_POINT_ENTRY(DIID__IDglogsComEvents)
END_CONNECTION_POINT_MAP()
// IDglogsCom
public:
STDMETHOD(ExecQuery)(/*[in]*/ BSTR bstrCatagory, /*[in]*/ LONG bFlag, /*[out, retval]*/ BSTR *pbstrResult);
STDMETHOD(Initialize)(BSTR *pbstrResult);
STDMETHOD(StopQuery)();
public:
DWORD m_dwThreadId;
CDiagnostics m_Diagnostics;
public:
HANDLE m_hThreadTerminated;
HANDLE m_hTerminateThread;
LONG m_lThreadCount;
};
#endif //__DGLOGSCOM_H_