Use r2 instead of r13 for TLS, since r13 is used in the ELF32 PPC
[wine] / include / wine / obj_extracticon.h
1 /*
2  *    IExtractIconA
3  *
4  * Copyright (C) 1999 Juergen Schmied
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #ifndef __WINE_WINE_OBJ_EXTRACTICON_H
22 #define __WINE_WINE_OBJ_EXTRACTICON_H
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* defined(__cplusplus) */
27
28 #define IID_IExtractIcon WINELIB_NAME_AW(IID_IExtractIcon)
29
30 typedef struct IExtractIconA IExtractIconA,*LPEXTRACTICONA;
31 #define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)
32
33 /* GetIconLocation() input flags*/
34 #define GIL_OPENICON     0x0001      /* allows containers to specify an "open" look */
35 #define GIL_FORSHELL     0x0002      /* icon is to be displayed in a ShellFolder */
36 #define GIL_ASYNC        0x0020      /* this is an async extract, return E_ASYNC */
37
38 /* GetIconLocation() return flags */
39 #define GIL_SIMULATEDOC  0x0001      /* simulate this document icon for this */
40 #define GIL_PERINSTANCE  0x0002      /* icons from this class are per instance (each file has its own) */
41 #define GIL_PERCLASS     0x0004      /* icons from this class per class (shared for all files of this type) */
42 #define GIL_NOTFILENAME  0x0008      /* location is not a filename, must call ::ExtractIcon */
43 #define GIL_DONTCACHE    0x0010      /* this icon should not be cached */
44
45
46 #define ICOM_INTERFACE IExtractIconA
47 #define IExtractIconA_METHODS \
48         ICOM_METHOD5(HRESULT, GetIconLocation, UINT, uFlags, LPSTR, szIconFile, UINT, cchMax, INT*, piIndex, UINT *, pwFlags) \
49         ICOM_METHOD5(HRESULT, Extract, LPCSTR, pszFile, UINT, nIconIndex, HICON*, phiconLarge, HICON*, phiconSmall, UINT, nIconSize)
50 #define IExtractIconA_IMETHODS \
51         IUnknown_IMETHODS \
52         IExtractIconA_METHODS
53 ICOM_DEFINE(IExtractIconA,IUnknown)
54 #undef ICOM_INTERFACE
55
56 #define IExtractIconA_QueryInterface(p,a,b)     ICOM_CALL2(QueryInterface,p,a,b)
57 #define IExtractIconA_AddRef(p)                 ICOM_CALL(AddRef,p)
58 #define IExtractIconA_Release(p)                ICOM_CALL(Release,p)
59 #define IExtractIconA_GetIconLocation(p,a,b,c,d,e)      ICOM_CALL5(GetIconLocation,p,a,b,c,d,e)
60 #define IExtractIconA_Extract(p,a,b,c,d,e)      ICOM_CALL5(Extract,p,a,b,c,d,e)
61
62 #ifdef __cplusplus
63 } /* extern "C" */
64 #endif /* defined(__cplusplus) */
65
66 #endif /* __WINE_WINE_OBJ_EXTRACTICON_H */
67