//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1999 - 1999 // // File: extract.h // //-------------------------------------------------------------------------- // ExtractIcon.h : Declaration of the CExtractIcon #ifndef __EXTRACTICON_H_ #define __EXTRACTICON_H_ #include "mmcshext.h" // main symbols #include "picon.h" #ifdef ASSERT #undef ASSERT #endif #define ASSERT(e) // get rid of the assert symbol. #include "cstr.h" extern CLSID CLSID_ExtractIcon; ///////////////////////////////////////////////////////////////////////////// // CExtractIcon class ATL_NO_VTABLE CExtractIcon : public CComObjectRootEx, public CComCoClass, public IExtractIcon, public IPersistFile { public: CExtractIcon() { } // IExtractIcon STDMETHOD(Extract) (LPCTSTR pszFile, UINT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize); STDMETHOD(GetIconLocation) (UINT uFlags, LPTSTR szIconFile, UINT cchMax, LPINT piIndex, UINT *pwFlags); // IPersistFile STDMETHOD(GetClassID) (CLSID *pClassID) {return E_NOTIMPL;} STDMETHOD(IsDirty) (void) {return E_NOTIMPL;} STDMETHOD(Load) (LPCOLESTR pszFileName, DWORD dwMode); STDMETHOD(Save) (LPCOLESTR pszFileName, BOOL fRemember) {return E_NOTIMPL;} STDMETHOD(SaveCompleted) (LPCOLESTR pszFileName) {return E_NOTIMPL;} STDMETHOD(GetCurFile) (LPOLESTR *ppszFileName) {return E_NOTIMPL;} DECLARE_REGISTRY_RESOURCEID(IDR_EXTRACTICON) DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(CExtractIcon) COM_INTERFACE_ENTRY_IID(IID_IExtractIcon, IExtractIcon) COM_INTERFACE_ENTRY(IPersistFile) END_COM_MAP() private: CStr m_strIconFile; }; #endif //__EXTRACTICON_H_