Source code of Windows XP (NT5)
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.6 KiB

  1. // DglogsCom.h : Declaration of the CDglogsCom
  2. #ifndef __DGLOGSCOM_H_
  3. #define __DGLOGSCOM_H_
  4. #include "dglogsres.h" // main symbols
  5. #include "DglogsCP.h"
  6. #include "Diagnostics.h"
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CDglogsCom
  9. class ATL_NO_VTABLE CDglogsCom :
  10. //public CComObjectRootEx<CComSingleThreadModel>,
  11. public CComObjectRootEx<CComMultiThreadModelNoCS>,
  12. public CComCoClass<CDglogsCom, &CLSID_DglogsCom>,
  13. public IConnectionPointContainerImpl<CDglogsCom>,
  14. public IDispatchImpl<IDglogsCom, &IID_IDglogsCom, &LIBID_DGLOGSLib>,
  15. public CProxy_IDglogsComEvents< CDglogsCom >,
  16. public IProvideClassInfo2Impl<&CLSID_DglogsCom, NULL,&LIBID_DGLOGSLib>
  17. {
  18. public:
  19. CDglogsCom();
  20. DECLARE_REGISTRY_RESOURCEID(IDR_DGLOGSCOM)
  21. //DECLARE_REGISTRY_RESOURCEID(IDR_DGNET)
  22. DECLARE_PROTECT_FINAL_CONSTRUCT()
  23. BEGIN_COM_MAP(CDglogsCom)
  24. COM_INTERFACE_ENTRY(IDglogsCom)
  25. COM_INTERFACE_ENTRY(IDispatch)
  26. COM_INTERFACE_ENTRY(IConnectionPointContainer)
  27. COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
  28. COM_INTERFACE_ENTRY(IProvideClassInfo)
  29. COM_INTERFACE_ENTRY(IProvideClassInfo2)
  30. END_COM_MAP()
  31. BEGIN_CONNECTION_POINT_MAP(CDglogsCom)
  32. CONNECTION_POINT_ENTRY(DIID__IDglogsComEvents)
  33. END_CONNECTION_POINT_MAP()
  34. // IDglogsCom
  35. public:
  36. STDMETHOD(ExecQuery)(/*[in]*/ BSTR bstrCatagory, /*[in]*/ LONG bFlag, /*[out, retval]*/ BSTR *pbstrResult);
  37. STDMETHOD(Initialize)(BSTR *pbstrResult);
  38. STDMETHOD(StopQuery)();
  39. public:
  40. DWORD m_dwThreadId;
  41. CDiagnostics m_Diagnostics;
  42. public:
  43. HANDLE m_hThreadTerminated;
  44. HANDLE m_hTerminateThread;
  45. LONG m_lThreadCount;
  46. };
  47. #endif //__DGLOGSCOM_H_