1999-02-25 18:10:15 +01:00
|
|
|
/*
|
|
|
|
* Defines the COM interfaces and APIs related to structured data storage.
|
|
|
|
*
|
|
|
|
* Depends on 'obj_base.h'.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* 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
|
1999-02-25 18:10:15 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_OBJ_CACHE_H
|
|
|
|
#define __WINE_WINE_OBJ_CACHE_H
|
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
1999-02-25 18:10:15 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* 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
|
|
|
|
*/
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IOleCache
|
1999-02-25 18:10:15 +01:00
|
|
|
#define IOleCache_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(Cache)(THIS_ FORMATETC *pformatetc, DWORD advf, DWORD * pdwConnection) PURE; \
|
|
|
|
STDMETHOD(Uncache)(THIS_ DWORD dwConnection) PURE; \
|
|
|
|
STDMETHOD(EnumCache)(THIS_ IEnumSTATDATA **ppenumSTATDATA) PURE; \
|
|
|
|
STDMETHOD(InitCache)(THIS_ IDataObject *pDataObject) PURE; \
|
|
|
|
STDMETHOD(SetData)(THIS_ FORMATETC *pformatetc, STGMEDIUM *pmedium, BOOL fRelease) PURE;
|
1999-02-25 18:10:15 +01:00
|
|
|
ICOM_DEFINE(IOleCache,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
1999-02-25 18:10:15 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
2001-01-11 21:21:15 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IOleCache_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IOleCache_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IOleCache_Release(p) (p)->lpVtbl->Release(p)
|
1999-02-25 18:10:15 +01:00
|
|
|
/*** IOleCache methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IOleCache_Cache(p,a,b,c) (p)->lpVtbl->Cache(p,a,b,c)
|
|
|
|
#define IOleCache_Uncache(p,a) (p)->lpVtbl->Uncache(p,a)
|
|
|
|
#define IOleCache_EnumCache(p,a) (p)->lpVtbl->EnumCache(p,a)
|
|
|
|
#define IOleCache_InitCache(p,a) (p)->lpVtbl->InitCache(p,a)
|
|
|
|
#define IOleCache_SetData(p,a,b,c) (p)->lpVtbl->SetData(p,a,b,c)
|
|
|
|
#endif
|
2002-06-01 01:06:46 +02:00
|
|
|
|
1999-02-25 18:10:15 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IOleCache2 interface
|
|
|
|
*/
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IOleCache2
|
1999-02-25 18:10:15 +01:00
|
|
|
#define IOleCache2_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IOleCache_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(UpdateCache)(THIS_ LPDATAOBJECT pDataObject, DWORD grfUpdf, LPVOID pReserved) PURE; \
|
|
|
|
STDMETHOD(DiscardCache)(THIS_ DWORD dwDiscardOptions) PURE;
|
1999-02-25 18:10:15 +01:00
|
|
|
ICOM_DEFINE(IOleCache2,IOleCache)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
1999-02-25 18:10:15 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
2001-01-11 21:21:15 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IOleCache2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IOleCache2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IOleCache2_Release(p) (p)->lpVtbl->Release(p)
|
1999-02-25 18:10:15 +01:00
|
|
|
/*** IOleCache methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IOleCache2_Cache(p,a,b,c) (p)->lpVtbl->Cache(p,a,b,c)
|
|
|
|
#define IOleCache2_Uncache(p,a) (p)->lpVtbl->Uncache(p,a)
|
|
|
|
#define IOleCache2_EnumCache(p,a) (p)->lpVtbl->EnumCache(p,a)
|
|
|
|
#define IOleCache2_InitCache(p,a) (p)->lpVtbl->InitCache(p,a)
|
|
|
|
#define IOleCache2_SetData(p,a,b,c) (p)->lpVtbl->SetData(p,a,b,c)
|
1999-02-25 18:10:15 +01:00
|
|
|
/*** IOleCache2 methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IOleCache2_UpdateCache(p,a,b,c) (p)->lpVtbl->UpdateCache(p,a,b,c)
|
|
|
|
#define IOleCache2_DiscardCache(p,a) (p)->lpVtbl->DiscardCache(p,a)
|
|
|
|
#endif
|
1999-02-25 18:10:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IOleCacheControl interface
|
|
|
|
*/
|
2003-04-10 02:19:24 +02:00
|
|
|
#define INTERFACE IOleCacheControl
|
1999-02-25 18:10:15 +01:00
|
|
|
#define IOleCacheControl_METHODS \
|
2003-04-11 02:31:02 +02:00
|
|
|
IUnknown_METHODS \
|
2003-04-10 02:19:24 +02:00
|
|
|
STDMETHOD(OnRun)(THIS_ LPDATAOBJECT pDataObject) PURE; \
|
|
|
|
STDMETHOD(OnStop)(THIS) PURE;
|
1999-02-25 18:10:15 +01:00
|
|
|
ICOM_DEFINE(IOleCacheControl,IUnknown)
|
2003-04-10 02:19:24 +02:00
|
|
|
#undef INTERFACE
|
1999-02-25 18:10:15 +01:00
|
|
|
|
2003-04-10 23:13:58 +02:00
|
|
|
#ifdef COBJMACROS
|
2001-01-11 21:21:15 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IOleCacheControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IOleCacheControl_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IOleCacheControl_Release(p) (p)->lpVtbl->Release(p)
|
1999-02-25 18:10:15 +01:00
|
|
|
/*** IOleCacheControl methods ***/
|
2003-04-10 23:13:58 +02:00
|
|
|
#define IOleCacheControl_OnRun(p,a) (p)->lpVtbl->UpdateCache(p,a)
|
|
|
|
#define IOleCacheControl_OnStop(p) (p)->lpVtbl->OnStop(p)
|
|
|
|
#endif
|
1999-02-25 18:10:15 +01:00
|
|
|
|
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
1999-02-25 18:10:15 +01:00
|
|
|
#endif /* __WINE_WINE_OBJ_CONTROL_H */
|