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