| 1 | /* $Id: obj_cache.h,v 1.5 1999-08-22 22:52:06 sandervl Exp $ */
|
|---|
| 2 | /*
|
|---|
| 3 | * Defines the COM interfaces and APIs related to structured data storage.
|
|---|
| 4 | *
|
|---|
| 5 | * Depends on 'obj_base.h'.
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef __WINE_WINE_OBJ_CACHE_H
|
|---|
| 9 | #define __WINE_WINE_OBJ_CACHE_H
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 | #include "winbase.h"
|
|---|
| 13 |
|
|---|
| 14 | #ifdef __cplusplus
|
|---|
| 15 | extern "C" {
|
|---|
| 16 | #endif /* defined(__cplusplus) */
|
|---|
| 17 |
|
|---|
| 18 | /*****************************************************************************
|
|---|
| 19 | * Declare the structures
|
|---|
| 20 | */
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 | /*****************************************************************************
|
|---|
| 24 | * Predeclare the interfaces
|
|---|
| 25 | */
|
|---|
| 26 |
|
|---|
| 27 | DEFINE_OLEGUID(IID_IOleCache, 0x0000011eL, 0, 0);
|
|---|
| 28 | typedef struct IOleCache IOleCache, *LPOLECACHE;
|
|---|
| 29 |
|
|---|
| 30 | DEFINE_OLEGUID(IID_IOleCache2, 0x00000128L, 0, 0);
|
|---|
| 31 | typedef struct IOleCache2 IOleCache2, *LPOLECACHE2;
|
|---|
| 32 |
|
|---|
| 33 | DEFINE_OLEGUID(IID_IOleCacheControl, 0x00000129L, 0, 0);
|
|---|
| 34 | typedef struct IOleCacheControl IOleCacheControl, *LPOLECACHECONTROL;
|
|---|
| 35 |
|
|---|
| 36 | /*****************************************************************************
|
|---|
| 37 | * IOleCache interface
|
|---|
| 38 | */
|
|---|
| 39 | #define ICOM_INTERFACE IOleCache
|
|---|
| 40 | #define IOleCache_METHODS \
|
|---|
| 41 | ICOM_METHOD3(HRESULT,Cache, FORMATETC*,pformatetc, DWORD,advf, DWORD*, pdwConnection) \
|
|---|
| 42 | ICOM_METHOD1(HRESULT,Uncache, DWORD,dwConnection) \
|
|---|
| 43 | ICOM_METHOD1(HRESULT,EnumCache, IEnumSTATDATA**,ppenumSTATDATA) \
|
|---|
| 44 | ICOM_METHOD1(HRESULT,InitCache, IDataObject*,pDataObject) \
|
|---|
| 45 | ICOM_METHOD3(HRESULT,SetData, FORMATETC*,pformatetc, STGMEDIUM*,pmedium, BOOL,fRelease)
|
|---|
| 46 | #define IOleCache_IMETHODS \
|
|---|
| 47 | IUnknown_IMETHODS \
|
|---|
| 48 | IOleCache_METHODS
|
|---|
| 49 | ICOM_DEFINE(IOleCache,IUnknown)
|
|---|
| 50 | #undef ICOM_INTERFACE
|
|---|
| 51 |
|
|---|
| 52 | #ifdef ICOM_CINTERFACE
|
|---|
| 53 | /*** IUnknwon methods ***/
|
|---|
| 54 | #define IOleCache_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|---|
| 55 | #define IOleCache_AddRef(p) ICOM_CALL (AddRef,p)
|
|---|
| 56 | #define IOleCache_Release(p) ICOM_CALL (Release,p)
|
|---|
| 57 | /*** IOleCache methods ***/
|
|---|
| 58 | #define IOleCache_Cache(p,a,b,c) ICOM_CALL3(Cache,p,a,b,c)
|
|---|
| 59 | #define IOleCache_Uncache(p,a) ICOM_CALL1(Uncache,p,a)
|
|---|
| 60 | #define IOleCache_EnumCache(p,a) ICOM_CALL1(EnumCache,p,a)
|
|---|
| 61 | #define IOleCache_InitCache(p,a) ICOM_CALL1(InitCache,p,a)
|
|---|
| 62 | #define IOleCache_SetData(p,a,b,c) ICOM_CALL3(SetData,p,a,b,c)
|
|---|
| 63 | #endif
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 | /*****************************************************************************
|
|---|
| 67 | * IOleCache2 interface
|
|---|
| 68 | */
|
|---|
| 69 | #define ICOM_INTERFACE IOleCache2
|
|---|
| 70 | #define IOleCache2_METHODS \
|
|---|
| 71 | ICOM_METHOD3(HRESULT,UpdateCache, LPDATAOBJECT,pDataObject, DWORD,grfUpdf, LPVOID,pReserved) \
|
|---|
| 72 | ICOM_METHOD1(HRESULT,DiscardCache, DWORD,dwDiscardOptions)
|
|---|
| 73 | #define IOleCache2_IMETHODS \
|
|---|
| 74 | IOleCache_IMETHODS \
|
|---|
| 75 | IOleCache2_METHODS
|
|---|
| 76 | ICOM_DEFINE(IOleCache2,IOleCache)
|
|---|
| 77 | #undef ICOM_INTERFACE
|
|---|
| 78 |
|
|---|
| 79 | #ifdef ICOM_CINTERFACE
|
|---|
| 80 | /*** IUnknwon methods ***/
|
|---|
| 81 | #define IOleCache2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|---|
| 82 | #define IOleCache2_AddRef(p) ICOM_CALL (AddRef,p)
|
|---|
| 83 | #define IOleCache2_Release(p) ICOM_CALL (Release,p)
|
|---|
| 84 | /*** IOleCache methods ***/
|
|---|
| 85 | #define IOleCache2_Cache(p,a,b,c) ICOM_CALL3(Cache,p,a,b,c)
|
|---|
| 86 | #define IOleCache2_Uncache(p,a) ICOM_CALL1(Uncache,p,a)
|
|---|
| 87 | #define IOleCache2_EnumCache(p,a) ICOM_CALL1(EnumCache,p,a)
|
|---|
| 88 | #define IOleCache2_InitCache(p,a) ICOM_CALL1(InitCache,p,a)
|
|---|
| 89 | #define IOleCache2_SetData(p,a,b,c) ICOM_CALL3(SetData,p,a,b,c)
|
|---|
| 90 | /*** IOleCache2 methods ***/
|
|---|
| 91 | #define IOleCache2_UpdateCache(p,a,b,c) ICOM_CALL3(UpdateCache,p,a,b,c)
|
|---|
| 92 | #define IOleCache2_DiscardCache(p,a) ICOM_CALL1(DiscardCache,p,a)
|
|---|
| 93 | #endif
|
|---|
| 94 |
|
|---|
| 95 |
|
|---|
| 96 | /*****************************************************************************
|
|---|
| 97 | * IOleCacheControl interface
|
|---|
| 98 | */
|
|---|
| 99 | #define ICOM_INTERFACE IOleCacheControl
|
|---|
| 100 | #define IOleCacheControl_METHODS \
|
|---|
| 101 | ICOM_METHOD1(HRESULT,OnRun, LPDATAOBJECT,pDataObject) \
|
|---|
| 102 | ICOM_METHOD (HRESULT,OnStop)
|
|---|
| 103 | #define IOleCacheControl_IMETHODS \
|
|---|
| 104 | IUnknown_IMETHODS \
|
|---|
| 105 | IOleCacheControl_METHODS
|
|---|
| 106 | ICOM_DEFINE(IOleCacheControl,IUnknown)
|
|---|
| 107 | #undef ICOM_INTERFACE
|
|---|
| 108 |
|
|---|
| 109 | #ifdef ICOM_CINTERFACE
|
|---|
| 110 | /*** IUnknwon methods ***/
|
|---|
| 111 | #define IOleCacheControl_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|---|
| 112 | #define IOleCacheControl_AddRef(p) ICOM_CALL (AddRef,p)
|
|---|
| 113 | #define IOleCacheControl_Release(p) ICOM_CALL (Release,p)
|
|---|
| 114 | /*** IOleCacheControl methods ***/
|
|---|
| 115 | #define IOleCacheControl_OnRun(p,a) ICOM_CALL1(UpdateCache,p,a)
|
|---|
| 116 | #define IOleCacheControl_OnStop(p) ICOM_CALL (OnStop,p)
|
|---|
| 117 | #endif
|
|---|
| 118 |
|
|---|
| 119 |
|
|---|
| 120 | #ifdef __cplusplus
|
|---|
| 121 | } /* extern "C" */
|
|---|
| 122 | #endif /* defined(__cplusplus) */
|
|---|
| 123 |
|
|---|
| 124 | #endif /* __WINE_WINE_OBJ_CONTROL_H */
|
|---|
| 125 |
|
|---|
| 126 |
|
|---|