128 lines
4.4 KiB
C
128 lines
4.4 KiB
C
/*
|
|
* Defines the COM interfaces and APIs related to structured data storage.
|
|
*
|
|
* Depends on 'obj_base.h'.
|
|
*/
|
|
|
|
#ifndef __WINE_WINE_OBJ_CACHE_H
|
|
#define __WINE_WINE_OBJ_CACHE_H
|
|
|
|
|
|
#include "wine/obj_storage.h"
|
|
#include "wine/obj_moniker.h"
|
|
#include "wine/obj_dataobject.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
|
|
|
|
#ifdef ICOM_CINTERFACE
|
|
/*** IUnknwon 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)
|
|
#endif
|
|
|
|
|
|
/*****************************************************************************
|
|
* 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
|
|
|
|
#ifdef ICOM_CINTERFACE
|
|
/*** IUnknwon 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)
|
|
#endif
|
|
|
|
|
|
/*****************************************************************************
|
|
* 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
|
|
|
|
#ifdef ICOM_CINTERFACE
|
|
/*** IUnknwon 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)
|
|
#endif
|
|
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
#endif /* __WINE_WINE_OBJ_CONTROL_H */
|
|
|
|
|