2 * IExtractIconA, IExtractIconW
4 * Copyright (C) 1999 Juergen Schmied
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_WINE_OBJ_EXTRACTICON_H
22 #define __WINE_WINE_OBJ_EXTRACTICON_H
26 #endif /* defined(__cplusplus) */
28 #define IID_IExtractIcon WINELIB_NAME_AW(IID_IExtractIcon)
30 typedef struct IExtractIconA IExtractIconA
,*LPEXTRACTICONA
;
31 typedef struct IExtractIconW IExtractIconW
,*LPEXTRACTICONW
;
32 #define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)
33 #define IExtractIcon WINELIB_NAME_AW(IExtractIcon)
35 /* GetIconLocation() input flags*/
36 #define GIL_OPENICON 0x0001 /* allows containers to specify an "open" look */
37 #define GIL_FORSHELL 0x0002 /* icon is to be displayed in a ShellFolder */
38 #define GIL_ASYNC 0x0020 /* this is an async extract, return E_ASYNC */
40 /* GetIconLocation() return flags */
41 #define GIL_SIMULATEDOC 0x0001 /* simulate this document icon for this */
42 #define GIL_PERINSTANCE 0x0002 /* icons from this class are per instance (each file has its own) */
43 #define GIL_PERCLASS 0x0004 /* icons from this class per class (shared for all files of this type) */
44 #define GIL_NOTFILENAME 0x0008 /* location is not a filename, must call ::ExtractIcon */
45 #define GIL_DONTCACHE 0x0010 /* this icon should not be cached */
48 #define INTERFACE IExtractIconA
49 #define IExtractIconA_METHODS \
51 STDMETHOD(GetIconLocation)(THIS_ UINT uFlags, LPSTR szIconFile, UINT cchMax, INT * piIndex, UINT * pwFlags) PURE; \
52 STDMETHOD(Extract)(THIS_ LPCSTR pszFile, UINT nIconIndex, HICON * phiconLarge, HICON * phiconSmall, UINT nIconSize) PURE;
53 ICOM_DEFINE(IExtractIconA
,IUnknown
)
57 #define IExtractIconA_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
58 #define IExtractIconA_AddRef(p) (p)->lpVtbl->AddRef(p)
59 #define IExtractIconA_Release(p) (p)->lpVtbl->Release(p)
60 #define IExtractIconA_GetIconLocation(p,a,b,c,d,e) (p)->lpVtbl->GetIconLocation(p,a,b,c,d,e)
61 #define IExtractIconA_Extract(p,a,b,c,d,e) (p)->lpVtbl->Extract(p,a,b,c,d,e)
65 #define INTERFACE IExtractIconW
66 #define IExtractIconW_METHODS \
68 STDMETHOD(GetIconLocation)(THIS_ UINT uFlags, LPWSTR szIconFile, UINT cchMax, INT * piIndex, UINT * pwFlags) PURE; \
69 STDMETHOD(Extract)(THIS_ LPCWSTR pszFile, UINT nIconIndex, HICON * phiconLarge, HICON * phiconSmall, UINT nIconSize) PURE;
70 ICOM_DEFINE(IExtractIconW
,IUnknown
)
74 #define IExtractIconW_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
75 #define IExtractIconW_AddRef(p) (p)->lpVtbl->AddRef(p)
76 #define IExtractIconW_Release(p) (p)->lpVtbl->Release(p)
77 #define IExtractIconW_GetIconLocation(p,a,b,c,d,e) (p)->lpVtbl->GetIconLocation(p,a,b,c,d,e)
78 #define IExtractIconW_Extract(p,a,b,c,d,e) (p)->lpVtbl->Extract(p,a,b,c,d,e)
83 #endif /* defined(__cplusplus) */
85 #endif /* __WINE_WINE_OBJ_EXTRACTICON_H */