2002-03-10 00:29:33 +01:00
|
|
|
/*
|
2002-12-05 20:13:11 +01:00
|
|
|
* IExtractIconA, IExtractIconW
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright (C) 1999 Juergen Schmied
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-03-25 11:57:12 +01:00
|
|
|
*/
|
|
|
|
|
1999-06-12 20:36:54 +02:00
|
|
|
#ifndef __WINE_WINE_OBJ_EXTRACTICON_H
|
|
|
|
#define __WINE_WINE_OBJ_EXTRACTICON_H
|
1999-03-25 11:57:12 +01:00
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
2000-02-26 19:36:56 +01:00
|
|
|
#define IID_IExtractIcon WINELIB_NAME_AW(IID_IExtractIcon)
|
|
|
|
|
1999-03-25 11:57:12 +01:00
|
|
|
typedef struct IExtractIconA IExtractIconA,*LPEXTRACTICONA;
|
2002-12-05 20:13:11 +01:00
|
|
|
typedef struct IExtractIconW IExtractIconW,*LPEXTRACTICONW;
|
2000-02-26 19:36:56 +01:00
|
|
|
#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)
|
2003-07-22 01:50:52 +02:00
|
|
|
#define IExtractIcon WINELIB_NAME_AW(IExtractIcon)
|
1999-03-25 11:57:12 +01:00
|
|
|
|
|
|
|
/* GetIconLocation() input flags*/
|
|
|
|
#define GIL_OPENICON 0x0001 /* allows containers to specify an "open" look */
|
|
|
|
#define GIL_FORSHELL 0x0002 /* icon is to be displayed in a ShellFolder */
|
|
|
|
#define GIL_ASYNC 0x0020 /* this is an async extract, return E_ASYNC */
|
|
|
|
|
|
|
|
/* GetIconLocation() return flags */
|
|
|
|
#define GIL_SIMULATEDOC 0x0001 /* simulate this document icon for this */
|
|
|
|
#define GIL_PERINSTANCE 0x0002 /* icons from this class are per instance (each file has its own) */
|
|
|
|
#define GIL_PERCLASS 0x0004 /* icons from this class per class (shared for all files of this type) */
|
|
|
|
#define GIL_NOTFILENAME 0x0008 /* location is not a filename, must call ::ExtractIcon */
|
|
|
|
#define GIL_DONTCACHE 0x0010 /* this icon should not be cached */
|
|
|
|
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IExtractIconA
|
1999-03-25 11:57:12 +01:00
|
|
|
#define IExtractIconA_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(GetIconLocation)(THIS_ UINT uFlags, LPSTR szIconFile, UINT cchMax, INT * piIndex, UINT * pwFlags) PURE; \
|
|
|
|
STDMETHOD(Extract)(THIS_ LPCSTR pszFile, UINT nIconIndex, HICON * phiconLarge, HICON * phiconSmall, UINT nIconSize) PURE;
|
1999-03-25 11:57:12 +01:00
|
|
|
ICOM_DEFINE(IExtractIconA,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
1999-03-25 11:57:12 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
|
|
|
#define IExtractIconA_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IExtractIconA_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IExtractIconA_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
#define IExtractIconA_GetIconLocation(p,a,b,c,d,e) (p)->lpVtbl->GetIconLocation(p,a,b,c,d,e)
|
|
|
|
#define IExtractIconA_Extract(p,a,b,c,d,e) (p)->lpVtbl->Extract(p,a,b,c,d,e)
|
|
|
|
#endif
|
1999-03-25 11:57:12 +01:00
|
|
|
|
2002-12-05 20:13:11 +01:00
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IExtractIconW
|
2002-12-05 20:13:11 +01:00
|
|
|
#define IExtractIconW_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(GetIconLocation)(THIS_ UINT uFlags, LPWSTR szIconFile, UINT cchMax, INT * piIndex, UINT * pwFlags) PURE; \
|
|
|
|
STDMETHOD(Extract)(THIS_ LPCWSTR pszFile, UINT nIconIndex, HICON * phiconLarge, HICON * phiconSmall, UINT nIconSize) PURE;
|
2002-12-05 20:13:11 +01:00
|
|
|
ICOM_DEFINE(IExtractIconW,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
2002-12-05 20:13:11 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
|
|
|
#define IExtractIconW_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IExtractIconW_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IExtractIconW_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
#define IExtractIconW_GetIconLocation(p,a,b,c,d,e) (p)->lpVtbl->GetIconLocation(p,a,b,c,d,e)
|
|
|
|
#define IExtractIconW_Extract(p,a,b,c,d,e) (p)->lpVtbl->Extract(p,a,b,c,d,e)
|
|
|
|
#endif
|
2002-12-05 20:13:11 +01:00
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
1999-06-12 20:36:54 +02:00
|
|
|
#endif /* __WINE_WINE_OBJ_EXTRACTICON_H */
|