//*******************************************************************************************
//
// Filename : Icon.h
//
//Definition of CCabItemIcon
//
// Copyright 1994 - 1998 Microsoft Corporation. All rights reserved
//
//*******************************************************************************************
#ifndef _ICON_H_
#define _ICON_H_
class CCabItemIcon : public IExtractIcon
{
public:
CCabItemIcon(LPCSTR pszName) {lstrcpyn(m_szName, pszName, sizeof(m_szName));}
~CCabItemIcon() {}
// *** IUnknown methods ***
STDMETHODIMP QueryInterface(REFIID riid, LPVOID * ppvObj);
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
// *** IExtractIcon methods ***
STDMETHODIMP GetIconLocation(
UINT uFlags,
LPSTR szIconFile,
UINT cchMax,
int * piIndex,
UINT * pwFlags);
STDMETHODIMP Extract(
LPCSTR pszFile,
UINT nIconIndex,
HICON *phiconLarge,
HICON *phiconSmall,
UINT nIconSize);
private:
CRefDll m_cRefDll;
CRefCount m_cRef;
char m_szName[MAX_PATH];
} ;
#endif // _ICON_H_