// PipeIt.h : Declaration of the CPipeIt #ifndef __PIPEIT_H_ #define __PIPEIT_H_ #include "resource.h" // main symbols #include #include #include #include #include ///////////////////////////////////////////////////////////////////////////// // CPipeIt class ATL_NO_VTABLE CPipeIt : public CComObjectRootEx, public CComCoClass, public IDSAddIn, public IDispatchImpl { public: CPipeIt() { } DECLARE_REGISTRY_RESOURCEID(IDR_PIPEIT) BEGIN_COM_MAP(CPipeIt) COM_INTERFACE_ENTRY(IPipeIt) COM_INTERFACE_ENTRY2(IDispatch, IPipeIt) COM_INTERFACE_ENTRY(IDSAddIn) END_COM_MAP() CComPtr m_spApplication; DWORD m_dwAddInID; // IDSAddIn methods public: STDMETHOD(OnConnection)(IApplication* pApp, VARIANT_BOOL bFirstTime, long dwCookie, VARIANT_BOOL* bOnConnection); STDMETHOD(OnDisconnection)(VARIANT_BOOL bLastTime); // IPipeIt public: STDMETHOD(Filter)(); }; #endif //__PIPEIT_H_