PIPEIT.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. // PipeIt.h : Declaration of the CPipeIt
  2. #ifndef __PIPEIT_H_
  3. #define __PIPEIT_H_
  4. #include "resource.h"       // main symbols
  5. #include <ObjModeladdguid.h>
  6. #include <ObjModelappguid.h>
  7. #include <ObjModelbldguid.h>
  8. #include <ObjModeltextguid.h>
  9. #include <ObjModeldbgguid.h>
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPipeIt
  12. class ATL_NO_VTABLE CPipeIt : 
  13. public CComObjectRootEx<CComSingleThreadModel>,
  14. public CComCoClass<CPipeIt, &CLSID_PipeIt>,
  15. public IDSAddIn,
  16. public IDispatchImpl<IPipeIt, &IID_IPipeIt, &LIBID_PIPELib>
  17. {
  18. public:
  19. CPipeIt()
  20. {
  21. }
  22. DECLARE_REGISTRY_RESOURCEID(IDR_PIPEIT)
  23. BEGIN_COM_MAP(CPipeIt)
  24. COM_INTERFACE_ENTRY(IPipeIt)
  25. COM_INTERFACE_ENTRY2(IDispatch, IPipeIt)
  26. COM_INTERFACE_ENTRY(IDSAddIn)
  27. END_COM_MAP()
  28. CComPtr<IApplication> m_spApplication;
  29. DWORD m_dwAddInID;
  30. // IDSAddIn methods
  31. public:
  32. STDMETHOD(OnConnection)(IApplication* pApp, VARIANT_BOOL bFirstTime, long dwCookie, VARIANT_BOOL* bOnConnection);
  33. STDMETHOD(OnDisconnection)(VARIANT_BOOL bLastTime);
  34. // IPipeIt
  35. public:
  36. STDMETHOD(Filter)();
  37. };
  38. #endif //__PIPEIT_H_