Add GetSystemWindowsDirectory, GetCurrentHwProfile.
[wine] / include / wine / obj_extracticon.h
1 /*
2  *    IExtractIconA, IExtractIconW
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 typedef struct IExtractIconW IExtractIconW,*LPEXTRACTICONW;
32 #define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON)
33
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 */
38
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 */
45
46
47 #define INTERFACE IExtractIconA
48 #define IExtractIconA_METHODS \
49         IUnknown_METHODS \
50         STDMETHOD(GetIconLocation)(THIS_ UINT  uFlags, LPSTR  szIconFile, UINT  cchMax, INT * piIndex, UINT  * pwFlags) PURE; \
51         STDMETHOD(Extract)(THIS_ LPCSTR  pszFile, UINT  nIconIndex, HICON * phiconLarge, HICON * phiconSmall, UINT  nIconSize) PURE;
52 ICOM_DEFINE(IExtractIconA,IUnknown)
53 #undef INTERFACE
54
55 #ifdef COBJMACROS
56 #define IExtractIconA_QueryInterface(p,a,b)     (p)->lpVtbl->QueryInterface(p,a,b)
57 #define IExtractIconA_AddRef(p)                 (p)->lpVtbl->AddRef(p)
58 #define IExtractIconA_Release(p)                (p)->lpVtbl->Release(p)
59 #define IExtractIconA_GetIconLocation(p,a,b,c,d,e)      (p)->lpVtbl->GetIconLocation(p,a,b,c,d,e)
60 #define IExtractIconA_Extract(p,a,b,c,d,e)      (p)->lpVtbl->Extract(p,a,b,c,d,e)
61 #endif
62
63
64 #define INTERFACE IExtractIconW
65 #define IExtractIconW_METHODS \
66         IUnknown_METHODS \
67         STDMETHOD(GetIconLocation)(THIS_ UINT  uFlags, LPWSTR  szIconFile, UINT  cchMax, INT * piIndex, UINT  * pwFlags) PURE; \
68         STDMETHOD(Extract)(THIS_ LPCWSTR  pszFile, UINT  nIconIndex, HICON * phiconLarge, HICON * phiconSmall, UINT  nIconSize) PURE;
69 ICOM_DEFINE(IExtractIconW,IUnknown)
70 #undef INTERFACE
71
72 #ifdef COBJMACROS
73 #define IExtractIconW_QueryInterface(p,a,b)     (p)->lpVtbl->QueryInterface(p,a,b)
74 #define IExtractIconW_AddRef(p)                 (p)->lpVtbl->AddRef(p)
75 #define IExtractIconW_Release(p)                (p)->lpVtbl->Release(p)
76 #define IExtractIconW_GetIconLocation(p,a,b,c,d,e)      (p)->lpVtbl->GetIconLocation(p,a,b,c,d,e)
77 #define IExtractIconW_Extract(p,a,b,c,d,e)      (p)->lpVtbl->Extract(p,a,b,c,d,e)
78 #endif
79
80 #ifdef __cplusplus
81 } /* extern "C" */
82 #endif /* defined(__cplusplus) */
83
84 #endif /* __WINE_WINE_OBJ_EXTRACTICON_H */