shell32: Move IShellIcon definition to idl source.

This commit is contained in:
Nikolay Sivov 2010-04-18 18:54:43 +04:00 committed by Alexandre Julliard
parent 066063541d
commit b7d611a80f
3 changed files with 15 additions and 28 deletions

View File

@ -38,7 +38,6 @@ DEFINE_OLEGUID(CGID_ShellDocView, 0x000214D1L, 0, 0);
DEFINE_OLEGUID(CGID_ShellServiceObject, 0x000214D2L, 0, 0);
DEFINE_OLEGUID(CGID_ExplorerBarDoc, 0x000214D3L, 0, 0);
DEFINE_OLEGUID(IID_IShellIcon, 0x000214E5L, 0, 0);
DEFINE_OLEGUID(IID_IShellDetails, 0x000214ECL, 0, 0);
DEFINE_OLEGUID(IID_IDelayedRelease, 0x000214EDL, 0, 0);
DEFINE_OLEGUID(IID_IShellCopyHookA, 0x000214EFL, 0, 0);

View File

@ -369,33 +369,6 @@ DECLARE_INTERFACE_(IShellDetails, IUnknown)
#define IShellDetails_ColumnClick(p,a) (p)->lpVtbl->ColumnClick(p,a)
#endif
/****************************************************************************
* IShellIcon interface
*/
#define INTERFACE IShellIcon
DECLARE_INTERFACE_(IShellIcon,IUnknown)
{
/*** IUnknown methods ***/
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
STDMETHOD_(ULONG,Release)(THIS) PURE;
/*** IShellIcon methods ***/
STDMETHOD(GetIconOf)(THIS_ LPCITEMIDLIST pidl, UINT flags, LPINT lpIconIndex) PURE;
};
#undef INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
#define IShellIcon_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IShellIcon_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IShellIcon_Release(p) (p)->lpVtbl->Release(p)
/*** IShellIcon methods ***/
#define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
#endif
typedef IShellIcon *LPSHELLICON;
/* IQueryInfo interface */
#define INTERFACE IQueryInfo
DECLARE_INTERFACE_(IQueryInfo,IUnknown)

View File

@ -422,6 +422,21 @@ typedef struct
} FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS;
typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS;
/*****************************************************************************
* IShellIcon interface
*/
[
uuid(000214e5-0000-0000-c000-000000000046),
object,
pointer_default(unique)
]
interface IShellIcon : IUnknown
{
HRESULT GetIconOf(
[in] PCUITEMID_CHILD pidl,
[in] UINT flags,
[out] int *pIconIndex);
}
/*****************************************************************************
* IShellView interface