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)
34 /* GetIconLocation() input flags*/
35 #define GIL_OPENICON 0x0001 /* allows containers to specify an "open" look */
36 #define GIL_FORSHELL 0x0002 /* icon is to be displayed in a ShellFolder */
37 #define GIL_ASYNC 0x0020 /* this is an async extract, return E_ASYNC */
39 /* GetIconLocation() return flags */
40 #define GIL_SIMULATEDOC 0x0001 /* simulate this document icon for this */
41 #define GIL_PERINSTANCE 0x0002 /* icons from this class are per instance (each file has its own) */
42 #define GIL_PERCLASS 0x0004 /* icons from this class per class (shared for all files of this type) */
43 #define GIL_NOTFILENAME 0x0008 /* location is not a filename, must call ::ExtractIcon */
44 #define GIL_DONTCACHE 0x0010 /* this icon should not be cached */
47 #define ICOM_INTERFACE IExtractIconA
48 #define IExtractIconA_METHODS \
49 ICOM_METHOD5(HRESULT, GetIconLocation, UINT, uFlags, LPSTR, szIconFile, UINT, cchMax, INT*, piIndex, UINT *, pwFlags) \
50 ICOM_METHOD5(HRESULT, Extract, LPCSTR, pszFile, UINT, nIconIndex, HICON*, phiconLarge, HICON*, phiconSmall, UINT, nIconSize)
51 #define IExtractIconA_IMETHODS \
54 ICOM_DEFINE(IExtractIconA,IUnknown)
57 #define IExtractIconA_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
58 #define IExtractIconA_AddRef(p) ICOM_CALL(AddRef,p)
59 #define IExtractIconA_Release(p) ICOM_CALL(Release,p)
60 #define IExtractIconA_GetIconLocation(p,a,b,c,d,e) ICOM_CALL5(GetIconLocation,p,a,b,c,d,e)
61 #define IExtractIconA_Extract(p,a,b,c,d,e) ICOM_CALL5(Extract,p,a,b,c,d,e)
64 #define ICOM_INTERFACE IExtractIconW
65 #define IExtractIconW_METHODS \
66 ICOM_METHOD5(HRESULT, GetIconLocation, UINT, uFlags, LPWSTR, szIconFile, UINT, cchMax, INT*, piIndex, UINT *, pwFlags) \
67 ICOM_METHOD5(HRESULT, Extract, LPCWSTR, pszFile, UINT, nIconIndex, HICON*, phiconLarge, HICON*, phiconSmall, UINT, nIconSize)
68 #define IExtractIconW_IMETHODS \
71 ICOM_DEFINE(IExtractIconW,IUnknown)
74 #define IExtractIconW_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
75 #define IExtractIconW_AddRef(p) ICOM_CALL(AddRef,p)
76 #define IExtractIconW_Release(p) ICOM_CALL(Release,p)
77 #define IExtractIconW_GetIconLocation(p,a,b,c,d,e) ICOM_CALL5(GetIconLocation,p,a,b,c,d,e)
78 #define IExtractIconW_Extract(p,a,b,c,d,e) ICOM_CALL5(Extract,p,a,b,c,d,e)
82 #endif /* defined(__cplusplus) */
84 #endif /* __WINE_WINE_OBJ_EXTRACTICON_H */