Use "CALL" and "RET" in capital letters for distinction.
[wine.git] / include / wine / obj_extracticon.h
blob815ed1e0769698d906086634430670f0ad32126d
1 /************************************************************
2 * IExtractIconA
3 */
5 #ifndef __WINE_WINE_OBJ_EXTRACTICON_H
6 #define __WINE_WINE_OBJ_EXTRACTICON_H
8 #include "winbase.h"
9 #include "windef.h"
10 #include "wingdi.h"
11 #include "winuser.h"
12 #include "wine/obj_base.h"
14 #ifdef __cplusplus
15 extern "C" {
16 #endif /* defined(__cplusplus) */
18 DEFINE_SHLGUID(IID_IExtractIconA, 0x000214EBL, 0, 0);
19 DEFINE_SHLGUID(IID_IExtractIconW, 0x000214FAL, 0, 0);
20 #define IID_IExtractIcon WINELIB_NAME_AW(IID_IExtractIcon)
22 typedef struct IExtractIconA IExtractIconA,*LPEXTRACTICONA;
23 #define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)
25 /* GetIconLocation() input flags*/
26 #define GIL_OPENICON 0x0001 /* allows containers to specify an "open" look */
27 #define GIL_FORSHELL 0x0002 /* icon is to be displayed in a ShellFolder */
28 #define GIL_ASYNC 0x0020 /* this is an async extract, return E_ASYNC */
30 /* GetIconLocation() return flags */
31 #define GIL_SIMULATEDOC 0x0001 /* simulate this document icon for this */
32 #define GIL_PERINSTANCE 0x0002 /* icons from this class are per instance (each file has its own) */
33 #define GIL_PERCLASS 0x0004 /* icons from this class per class (shared for all files of this type) */
34 #define GIL_NOTFILENAME 0x0008 /* location is not a filename, must call ::ExtractIcon */
35 #define GIL_DONTCACHE 0x0010 /* this icon should not be cached */
38 #define ICOM_INTERFACE IExtractIconA
39 #define IExtractIconA_METHODS \
40 ICOM_METHOD5(HRESULT, GetIconLocation, UINT, uFlags, LPSTR, szIconFile, UINT, cchMax, INT*, piIndex, UINT *, pwFlags) \
41 ICOM_METHOD5(HRESULT, Extract, LPCSTR, pszFile, UINT, nIconIndex, HICON*, phiconLarge, HICON*, phiconSmall, UINT, nIconSize)
42 #define IExtractIconA_IMETHODS \
43 IUnknown_IMETHODS \
44 IExtractIconA_METHODS
45 ICOM_DEFINE(IExtractIconA,IUnknown)
46 #undef ICOM_INTERFACE
48 #define IExtractIconA_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
49 #define IExtractIconA_AddRef(p) ICOM_CALL(AddRef,p)
50 #define IExtractIconA_Release(p) ICOM_CALL(Release,p)
51 #define IExtractIconA_GetIconLocation(p,a,b,c,d,e) ICOM_CALL5(GetIconLocation,p,a,b,c,d,e)
52 #define IExtractIconA_Extract(p,a,b,c,d,e) ICOM_CALL5(Extract,p,a,b,c,d,e)
54 #ifdef __cplusplus
55 } /* extern "C" */
56 #endif /* defined(__cplusplus) */
58 #endif /* __WINE_WINE_OBJ_EXTRACTICON_H */