// CurrDir.h : Declaration of the CCurrDir #ifndef __CURRDIR_H_ #define __CURRDIR_H_ #include #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CCurrDir class ATL_NO_VTABLE CCurrDir : public CComObjectRootEx, public CComCoClass, public IDispatchImpl { public: CCurrDir() { } DECLARE_REGISTRY_RESOURCEID(IDR_CURRDIR) DECLARE_NOT_AGGREGATABLE(CCurrDir) DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(CCurrDir) COM_INTERFACE_ENTRY(ICurrDir) COM_INTERFACE_ENTRY(IDispatch) END_COM_MAP() // ICurrDir public: STDMETHOD(GetDirContents)(/*[out]*/ BSTR *contents); STDMETHOD(SetCurrDir)(/*[in]*/ BSTR dirPath); STDMETHOD(GetCurrDir)(/*[out]*/ BSTR *dirPath); }; #endif //__CURRDIR_H_