| /* | |
| * Defines the COM interfaces and APIs related to structured data storage. | |
| * | |
| * Depends on 'obj_base.h'. | |
| * | |
| * Copyright (C) 1999 Paul Quinn | |
| * | |
| * This library is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU Lesser General Public | |
| * License as published by the Free Software Foundation; either | |
| * version 2.1 of the License, or (at your option) any later version. | |
| * | |
| * This library is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| * Lesser General Public License for more details. | |
| * | |
| * You should have received a copy of the GNU Lesser General Public | |
| * License along with this library; if not, write to the Free Software | |
| * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| */ | |
| #ifndef __WINE_WINE_OBJ_CACHE_H | |
| #define __WINE_WINE_OBJ_CACHE_H | |
| #ifdef __cplusplus | |
| extern "C" { | |
| #endif /* defined(__cplusplus) */ | |
| /***************************************************************************** | |
| * Declare the structures | |
| */ | |
| /***************************************************************************** | |
| * Predeclare the interfaces | |
| */ | |
| DEFINE_OLEGUID(IID_IOleCache, 0x0000011eL, 0, 0); | |
| typedef struct IOleCache IOleCache, *LPOLECACHE; | |
| DEFINE_OLEGUID(IID_IOleCache2, 0x00000128L, 0, 0); | |
| typedef struct IOleCache2 IOleCache2, *LPOLECACHE2; | |
| DEFINE_OLEGUID(IID_IOleCacheControl, 0x00000129L, 0, 0); | |
| typedef struct IOleCacheControl IOleCacheControl, *LPOLECACHECONTROL; | |
| /***************************************************************************** | |
| * IOleCache interface | |
| */ | |
| #define ICOM_INTERFACE IOleCache | |
| #define IOleCache_METHODS \ | |
| ICOM_METHOD3(HRESULT,Cache, FORMATETC*,pformatetc, DWORD,advf, DWORD*, pdwConnection) \ | |
| ICOM_METHOD1(HRESULT,Uncache, DWORD,dwConnection) \ | |
| ICOM_METHOD1(HRESULT,EnumCache, IEnumSTATDATA**,ppenumSTATDATA) \ | |
| ICOM_METHOD1(HRESULT,InitCache, IDataObject*,pDataObject) \ | |
| ICOM_METHOD3(HRESULT,SetData, FORMATETC*,pformatetc, STGMEDIUM*,pmedium, BOOL,fRelease) | |
| #define IOleCache_IMETHODS \ | |
| IUnknown_IMETHODS \ | |
| IOleCache_METHODS | |
| ICOM_DEFINE(IOleCache,IUnknown) | |
| #undef ICOM_INTERFACE | |
| /*** IUnknown methods ***/ | |
| #define IOleCache_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) | |
| #define IOleCache_AddRef(p) ICOM_CALL (AddRef,p) | |
| #define IOleCache_Release(p) ICOM_CALL (Release,p) | |
| /*** IOleCache methods ***/ | |
| #define IOleCache_Cache(p,a,b,c) ICOM_CALL3(Cache,p,a,b,c) | |
| #define IOleCache_Uncache(p,a) ICOM_CALL1(Uncache,p,a) | |
| #define IOleCache_EnumCache(p,a) ICOM_CALL1(EnumCache,p,a) | |
| #define IOleCache_InitCache(p,a) ICOM_CALL1(InitCache,p,a) | |
| #define IOleCache_SetData(p,a,b,c) ICOM_CALL3(SetData,p,a,b,c) | |
| /***************************************************************************** | |
| * IOleCache2 interface | |
| */ | |
| #define ICOM_INTERFACE IOleCache2 | |
| #define IOleCache2_METHODS \ | |
| ICOM_METHOD3(HRESULT,UpdateCache, LPDATAOBJECT,pDataObject, DWORD,grfUpdf, LPVOID,pReserved) \ | |
| ICOM_METHOD1(HRESULT,DiscardCache, DWORD,dwDiscardOptions) | |
| #define IOleCache2_IMETHODS \ | |
| IOleCache_IMETHODS \ | |
| IOleCache2_METHODS | |
| ICOM_DEFINE(IOleCache2,IOleCache) | |
| #undef ICOM_INTERFACE | |
| /*** IUnknown methods ***/ | |
| #define IOleCache2_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) | |
| #define IOleCache2_AddRef(p) ICOM_CALL (AddRef,p) | |
| #define IOleCache2_Release(p) ICOM_CALL (Release,p) | |
| /*** IOleCache methods ***/ | |
| #define IOleCache2_Cache(p,a,b,c) ICOM_CALL3(Cache,p,a,b,c) | |
| #define IOleCache2_Uncache(p,a) ICOM_CALL1(Uncache,p,a) | |
| #define IOleCache2_EnumCache(p,a) ICOM_CALL1(EnumCache,p,a) | |
| #define IOleCache2_InitCache(p,a) ICOM_CALL1(InitCache,p,a) | |
| #define IOleCache2_SetData(p,a,b,c) ICOM_CALL3(SetData,p,a,b,c) | |
| /*** IOleCache2 methods ***/ | |
| #define IOleCache2_UpdateCache(p,a,b,c) ICOM_CALL3(UpdateCache,p,a,b,c) | |
| #define IOleCache2_DiscardCache(p,a) ICOM_CALL1(DiscardCache,p,a) | |
| /***************************************************************************** | |
| * IOleCacheControl interface | |
| */ | |
| #define ICOM_INTERFACE IOleCacheControl | |
| #define IOleCacheControl_METHODS \ | |
| ICOM_METHOD1(HRESULT,OnRun, LPDATAOBJECT,pDataObject) \ | |
| ICOM_METHOD (HRESULT,OnStop) | |
| #define IOleCacheControl_IMETHODS \ | |
| IUnknown_IMETHODS \ | |
| IOleCacheControl_METHODS | |
| ICOM_DEFINE(IOleCacheControl,IUnknown) | |
| #undef ICOM_INTERFACE | |
| /*** IUnknown methods ***/ | |
| #define IOleCacheControl_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b) | |
| #define IOleCacheControl_AddRef(p) ICOM_CALL (AddRef,p) | |
| #define IOleCacheControl_Release(p) ICOM_CALL (Release,p) | |
| /*** IOleCacheControl methods ***/ | |
| #define IOleCacheControl_OnRun(p,a) ICOM_CALL1(UpdateCache,p,a) | |
| #define IOleCacheControl_OnStop(p) ICOM_CALL (OnStop,p) | |
| #ifdef __cplusplus | |
| } /* extern "C" */ | |
| #endif /* defined(__cplusplus) */ | |
| #endif /* __WINE_WINE_OBJ_CONTROL_H */ | |