1999-01-17 17:32:32 +01:00
|
|
|
/*
|
|
|
|
* Defines the COM interfaces and APIs that allow an interface to
|
|
|
|
* specify a custom marshaling for its objects.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_WINE_OBJ_MARSHAL_H
|
|
|
|
#define __WINE_WINE_OBJ_MARSHAL_H
|
|
|
|
|
1999-02-28 20:14:33 +01:00
|
|
|
#include "wine/obj_base.h"
|
|
|
|
#include "wine/obj_storage.h"
|
1999-01-17 17:32:32 +01:00
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* defined(__cplusplus) */
|
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* Predeclare the interfaces
|
|
|
|
*/
|
|
|
|
DEFINE_OLEGUID(IID_IMarshal, 0x00000003L, 0, 0);
|
|
|
|
typedef struct IMarshal IMarshal,*LPMARSHAL;
|
|
|
|
|
|
|
|
DEFINE_OLEGUID(IID_IStdMarshalInfo, 0x00000018L, 0, 0);
|
|
|
|
typedef struct IStdMarshalInfo IStdMarshalInfo,*LPSTDMARSHALINFO;
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IMarshal interface
|
|
|
|
*/
|
1999-02-13 13:25:03 +01:00
|
|
|
#define ICOM_INTERFACE IMarshal
|
|
|
|
#define IMarshal_METHODS \
|
1999-04-25 21:01:52 +02:00
|
|
|
ICOM_METHOD6(HRESULT,GetUnmarshalClass, REFIID,riid, void*,pv, DWORD,dwDestContext, void*,pvDestContext, DWORD,mshlflags, CLSID*,pCid) \
|
|
|
|
ICOM_METHOD6(HRESULT,GetMarshalSizeMax, REFIID,riid, void*,pv, DWORD,dwDestContext, void*,pvDestContext, DWORD,mshlflags, DWORD*,pSize) \
|
|
|
|
ICOM_METHOD6(HRESULT,MarshalInterface, IStream*,pStm, REFIID,riid, void*,pv, DWORD,dwDestContext, void*,pvDestContext, DWORD,mshlflags) \
|
|
|
|
ICOM_METHOD3(HRESULT,UnmarshalInterface, IStream*,pStm, REFIID,riid, void**,ppv) \
|
|
|
|
ICOM_METHOD1(HRESULT,ReleaseMarshalData, IStream*,pStm) \
|
|
|
|
ICOM_METHOD1(HRESULT,DisconnectObject, DWORD,dwReserved)
|
1999-02-13 13:25:03 +01:00
|
|
|
#define IMarshal_IMETHODS \
|
1999-02-18 17:02:41 +01:00
|
|
|
IUnknown_IMETHODS \
|
|
|
|
IMarshal_METHODS
|
1999-02-13 13:25:03 +01:00
|
|
|
ICOM_DEFINE(IMarshal,IUnknown)
|
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IMarshal_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IMarshal_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IMarshal_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** IMarshal methods ***/
|
|
|
|
#define IMarshal_GetUnmarshalClass(p,a,b,c,d,e,f) ICOM_CALL6(GetUnmarshalClass,p,a,b,c,d,e,f)
|
|
|
|
#define IMarshal_GetMarshalSizeMax(p,a,b,c,d,e,f) ICOM_CALL6(GetMarshalSizeMax,p,a,b,c,d,e,f)
|
|
|
|
#define IMarshal_MarshalInterface(p,a,b,c,d,e,f) ICOM_CALL6(MarshalInterface,p,a,b,c,d,e,f)
|
|
|
|
#define IMarshal_UnmarshalInterface(p,a,b,c) ICOM_CALL3(UnmarshalInterface,p,a,b,c)
|
|
|
|
#define IMarshal_ReleaseMarshalData(p,a) ICOM_CALL1(ReleaseMarshalData,p,a)
|
|
|
|
#define IMarshal_DisconnectObject(p,a) ICOM_CALL1(DisconnectObject,p,a)
|
1999-01-17 17:32:32 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IStdMarshalInfo interface
|
|
|
|
*/
|
1999-02-13 13:25:03 +01:00
|
|
|
#define ICOM_INTERFACE IStdMarshalInfo
|
|
|
|
#define IStdMarshalInfo_METHODS \
|
1999-04-25 21:01:52 +02:00
|
|
|
ICOM_METHOD3(HRESULT,GetClassForHandler, DWORD,dwDestContext, void*,pvDestContext, CLSID*,pClsid)
|
1999-02-13 13:25:03 +01:00
|
|
|
#define IStdMarshalInfo_IMETHODS \
|
1999-02-18 17:02:41 +01:00
|
|
|
IUnknown_IMETHODS \
|
|
|
|
IStdMarshalInfo_METHODS
|
1999-02-13 13:25:03 +01:00
|
|
|
ICOM_DEFINE(IStdMarshalInfo,IUnknown)
|
|
|
|
#undef ICOM_INTERFACE
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IStdMarshalInfo_QueryInterface(p,a,b) ICOM_CALL2(QueryInterface,p,a,b)
|
|
|
|
#define IStdMarshalInfo_AddRef(p) ICOM_CALL (AddRef,p)
|
|
|
|
#define IStdMarshalInfo_Release(p) ICOM_CALL (Release,p)
|
|
|
|
/*** IStdMarshalInfo methods ***/
|
|
|
|
#define IStdMarshalInfo_GetClassForHandler(p,a,b,c) ICOM_CALL3(GetClassForHandler,p,a,b,c)
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* Additional marshalling API
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* FIXME: not implemented */
|
|
|
|
HRESULT WINAPI CoCreateFreeThreadedMarshaler(LPUNKNOWN punkOuter, LPUNKNOWN* ppunkMarshal);
|
|
|
|
|
|
|
|
/* FIXME: not implemented */
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI CoGetInterfaceAndReleaseStream(LPSTREAM pStm, REFIID iid, LPVOID* ppv);
|
1999-02-13 13:25:03 +01:00
|
|
|
|
|
|
|
/* FIXME: not implemented */
|
|
|
|
HRESULT WINAPI CoGetMarshalSizeMax(ULONG* pulSize, REFIID riid, LPUNKNOWN pUnk, DWORD dwDestContext, LPVOID pvDestContext, DWORD mshlflags);
|
|
|
|
|
|
|
|
/* FIXME: not implemented */
|
|
|
|
HRESULT WINAPI CoGetStandardMarshal(REFIID riid, LPUNKNOWN pUnk, DWORD dwDestContext, LPVOID pvDestContext, DWORD mshlflags, LPMARSHAL* ppMarshal);
|
|
|
|
|
|
|
|
/* FIXME: not implemented */
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI CoMarshalHresult(LPSTREAM pstm, HRESULT hresult);
|
1999-02-13 13:25:03 +01:00
|
|
|
|
|
|
|
/* FIXME: not implemented */
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI CoMarshalInterface(LPSTREAM pStm, REFIID riid, LPUNKNOWN pUnk, DWORD dwDestContext, LPVOID pvDestContext, DWORD mshlflags);
|
1999-02-13 13:25:03 +01:00
|
|
|
|
|
|
|
/* FIXME: not implemented */
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI CoMarshalInterThreadInterfaceInStream(REFIID riid, LPUNKNOWN pUnk, LPSTREAM* ppStm);
|
1999-02-13 13:25:03 +01:00
|
|
|
|
|
|
|
/* FIXME: not implemented */
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI CoReleaseMarshalData(LPSTREAM pStm);
|
1999-02-13 13:25:03 +01:00
|
|
|
|
|
|
|
/* FIXME: not implemented */
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI CoUnmarshalHresult(LPSTREAM pstm, HRESULT* phresult);
|
1999-02-13 13:25:03 +01:00
|
|
|
|
1999-01-17 17:32:32 +01:00
|
|
|
/* FIXME: not implemented */
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI CoUnmarshalInterface(LPSTREAM pStm, REFIID riid, LPVOID* ppv);
|
1999-01-17 17:32:32 +01:00
|
|
|
|
1999-06-12 12:53:06 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif /* defined(__cplusplus) */
|
1999-01-17 17:32:32 +01:00
|
|
|
|
|
|
|
#endif /* __WINE_WINE_OBJ_MARSHAL_H */
|