2002-12-19 23:15:24 +01:00
|
|
|
/*** Autogenerated by WIDL 0.1 from objidl.idl - Do not edit ***/
|
2001-07-18 22:04:08 +02:00
|
|
|
#include "rpc.h"
|
|
|
|
#include "rpcndr.h"
|
2002-12-19 23:15:24 +01:00
|
|
|
|
|
|
|
#ifndef __WIDL_OBJIDL_H
|
|
|
|
#define __WIDL_OBJIDL_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
#include "unknwn.h"
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IStream_FWD_DEFINED__
|
|
|
|
#define __IStream_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IStream IStream;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IStream16_FWD_DEFINED__
|
|
|
|
#define __IStream16_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IStream16 IStream16;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IEnumString_FWD_DEFINED__
|
|
|
|
#define __IEnumString_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IEnumString IEnumString;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IRunningObjectTable_FWD_DEFINED__
|
|
|
|
#define __IRunningObjectTable_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IRunningObjectTable IRunningObjectTable;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IMoniker_FWD_DEFINED__
|
|
|
|
#define __IMoniker_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IMoniker IMoniker;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IAdviseSink_FWD_DEFINED__
|
|
|
|
#define __IAdviseSink_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IAdviseSink IAdviseSink;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IAsyncManager_FWD_DEFINED__
|
|
|
|
#define __IAsyncManager_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IAsyncManager IAsyncManager;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IMarshal_FWD_DEFINED__
|
|
|
|
#define __IMarshal_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IMarshal IMarshal;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IMarshal *LPMARSHAL;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IMarshal interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IMarshal_INTERFACE_DEFINED__
|
|
|
|
#define __IMarshal_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IMarshal, 0x00000003, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IMarshal : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetUnmarshalClass(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFIID riid,
|
|
|
|
void* pv,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
DWORD mshlflags,
|
|
|
|
CLSID* pCid) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetMarshalSizeMax(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFIID riid,
|
|
|
|
void* pv,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
DWORD mshlflags,
|
|
|
|
DWORD* pSize) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE MarshalInterface(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* pStm,
|
|
|
|
REFIID riid,
|
|
|
|
void* pv,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
DWORD mshlflags) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE UnmarshalInterface(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* pStm,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppv) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE ReleaseMarshalData(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* pStm) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE DisconnectObject(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwReserved) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IMarshalVtbl IMarshalVtbl;
|
|
|
|
struct IMarshal {
|
|
|
|
const IMarshalVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IMarshalVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMarshal* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMarshal* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMarshal* This);
|
|
|
|
|
|
|
|
/*** IMarshal methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetUnmarshalClass)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMarshal* This,
|
|
|
|
REFIID riid,
|
|
|
|
void* pv,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
DWORD mshlflags,
|
|
|
|
CLSID* pCid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetMarshalSizeMax)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMarshal* This,
|
|
|
|
REFIID riid,
|
|
|
|
void* pv,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
DWORD mshlflags,
|
|
|
|
DWORD* pSize);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *MarshalInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMarshal* This,
|
|
|
|
IStream* pStm,
|
|
|
|
REFIID riid,
|
|
|
|
void* pv,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
DWORD mshlflags);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *UnmarshalInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMarshal* This,
|
|
|
|
IStream* pStm,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppv);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *ReleaseMarshalData)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMarshal* This,
|
|
|
|
IStream* pStm);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *DisconnectObject)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMarshal* This,
|
|
|
|
DWORD dwReserved);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IMarshal_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IMarshal_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IMarshal_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IMarshal methods ***/
|
|
|
|
#define IMarshal_GetUnmarshalClass(p,a,b,c,d,e,f) (p)->lpVtbl->GetUnmarshalClass(p,a,b,c,d,e,f)
|
|
|
|
#define IMarshal_GetMarshalSizeMax(p,a,b,c,d,e,f) (p)->lpVtbl->GetMarshalSizeMax(p,a,b,c,d,e,f)
|
|
|
|
#define IMarshal_MarshalInterface(p,a,b,c,d,e,f) (p)->lpVtbl->MarshalInterface(p,a,b,c,d,e,f)
|
|
|
|
#define IMarshal_UnmarshalInterface(p,a,b,c) (p)->lpVtbl->UnmarshalInterface(p,a,b,c)
|
|
|
|
#define IMarshal_ReleaseMarshalData(p,a) (p)->lpVtbl->ReleaseMarshalData(p,a)
|
|
|
|
#define IMarshal_DisconnectObject(p,a) (p)->lpVtbl->DisconnectObject(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IMarshal_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IMarshal methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetUnmarshalClass)(THIS_ REFIID riid, void* pv, DWORD dwDestContext, void* pvDestContext, DWORD mshlflags, CLSID* pCid) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetMarshalSizeMax)(THIS_ REFIID riid, void* pv, DWORD dwDestContext, void* pvDestContext, DWORD mshlflags, DWORD* pSize) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,MarshalInterface)(THIS_ IStream* pStm, REFIID riid, void* pv, DWORD dwDestContext, void* pvDestContext, DWORD mshlflags) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,UnmarshalInterface)(THIS_ IStream* pStm, REFIID riid, void** ppv) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,ReleaseMarshalData)(THIS_ IStream* pStm) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,DisconnectObject)(THIS_ DWORD dwReserved) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IMarshal_GetUnmarshalClass_Proxy(
|
|
|
|
IMarshal* This,
|
|
|
|
REFIID riid,
|
|
|
|
void* pv,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
DWORD mshlflags,
|
|
|
|
CLSID* pCid);
|
|
|
|
void __RPC_STUB IMarshal_GetUnmarshalClass_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMarshal_GetMarshalSizeMax_Proxy(
|
|
|
|
IMarshal* This,
|
|
|
|
REFIID riid,
|
|
|
|
void* pv,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
DWORD mshlflags,
|
|
|
|
DWORD* pSize);
|
|
|
|
void __RPC_STUB IMarshal_GetMarshalSizeMax_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMarshal_MarshalInterface_Proxy(
|
|
|
|
IMarshal* This,
|
|
|
|
IStream* pStm,
|
|
|
|
REFIID riid,
|
|
|
|
void* pv,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
DWORD mshlflags);
|
|
|
|
void __RPC_STUB IMarshal_MarshalInterface_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMarshal_UnmarshalInterface_Proxy(
|
|
|
|
IMarshal* This,
|
|
|
|
IStream* pStm,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppv);
|
|
|
|
void __RPC_STUB IMarshal_UnmarshalInterface_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMarshal_ReleaseMarshalData_Proxy(
|
|
|
|
IMarshal* This,
|
|
|
|
IStream* pStm);
|
|
|
|
void __RPC_STUB IMarshal_ReleaseMarshalData_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMarshal_DisconnectObject_Proxy(
|
|
|
|
IMarshal* This,
|
|
|
|
DWORD dwReserved);
|
|
|
|
void __RPC_STUB IMarshal_DisconnectObject_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IMarshal_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IStdMarshalInfo_FWD_DEFINED__
|
|
|
|
#define __IStdMarshalInfo_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IStdMarshalInfo IStdMarshalInfo;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IStdMarshalInfo *LPSTDMARSHALINFO;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IStdMarshalInfo interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IStdMarshalInfo_INTERFACE_DEFINED__
|
|
|
|
#define __IStdMarshalInfo_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IStdMarshalInfo, 0x00000018, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IStdMarshalInfo : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetClassForHandler(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
CLSID* pClsid) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IStdMarshalInfoVtbl IStdMarshalInfoVtbl;
|
|
|
|
struct IStdMarshalInfo {
|
|
|
|
const IStdMarshalInfoVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IStdMarshalInfoVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStdMarshalInfo* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStdMarshalInfo* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStdMarshalInfo* This);
|
|
|
|
|
|
|
|
/*** IStdMarshalInfo methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetClassForHandler)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStdMarshalInfo* This,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
CLSID* pClsid);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IStdMarshalInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IStdMarshalInfo_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IStdMarshalInfo_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IStdMarshalInfo methods ***/
|
|
|
|
#define IStdMarshalInfo_GetClassForHandler(p,a,b,c) (p)->lpVtbl->GetClassForHandler(p,a,b,c)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IStdMarshalInfo_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IStdMarshalInfo methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetClassForHandler)(THIS_ DWORD dwDestContext, void* pvDestContext, CLSID* pClsid) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IStdMarshalInfo_GetClassForHandler_Proxy(
|
|
|
|
IStdMarshalInfo* This,
|
|
|
|
DWORD dwDestContext,
|
|
|
|
void* pvDestContext,
|
|
|
|
CLSID* pClsid);
|
|
|
|
void __RPC_STUB IStdMarshalInfo_GetClassForHandler_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IStdMarshalInfo_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IExternalConnection_FWD_DEFINED__
|
|
|
|
#define __IExternalConnection_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IExternalConnection IExternalConnection;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IExternalConnection *LPEXTERNALCONNECTION;
|
|
|
|
|
|
|
|
typedef enum tagEXTCONN {
|
|
|
|
EXTCONN_STRONG = 0x1,
|
|
|
|
EXTCONN_WEAK = 0x2,
|
|
|
|
EXTCONN_CALLABLE = 0x4
|
|
|
|
} EXTCONN;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IExternalConnection interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IExternalConnection_INTERFACE_DEFINED__
|
|
|
|
#define __IExternalConnection_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IExternalConnection, 0x00000019, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IExternalConnection : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual DWORD STDMETHODCALLTYPE AddConnection(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD extconn,
|
|
|
|
DWORD reserved) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual DWORD STDMETHODCALLTYPE ReleaseConnection(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD extconn,
|
|
|
|
DWORD reserved,
|
|
|
|
BOOL fLastReleaseCloses) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IExternalConnectionVtbl IExternalConnectionVtbl;
|
|
|
|
struct IExternalConnection {
|
|
|
|
const IExternalConnectionVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IExternalConnectionVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IExternalConnection* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IExternalConnection* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IExternalConnection* This);
|
|
|
|
|
|
|
|
/*** IExternalConnection methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
DWORD (STDMETHODCALLTYPE *AddConnection)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IExternalConnection* This,
|
|
|
|
DWORD extconn,
|
|
|
|
DWORD reserved);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
DWORD (STDMETHODCALLTYPE *ReleaseConnection)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IExternalConnection* This,
|
|
|
|
DWORD extconn,
|
|
|
|
DWORD reserved,
|
|
|
|
BOOL fLastReleaseCloses);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IExternalConnection_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IExternalConnection_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IExternalConnection_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IExternalConnection methods ***/
|
|
|
|
#define IExternalConnection_AddConnection(p,a,b) (p)->lpVtbl->AddConnection(p,a,b)
|
|
|
|
#define IExternalConnection_ReleaseConnection(p,a,b,c) (p)->lpVtbl->ReleaseConnection(p,a,b,c)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IExternalConnection_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IExternalConnection methods ***/ \
|
|
|
|
STDMETHOD_(DWORD,AddConnection)(THIS_ DWORD extconn, DWORD reserved) PURE; \
|
|
|
|
STDMETHOD_(DWORD,ReleaseConnection)(THIS_ DWORD extconn, DWORD reserved, BOOL fLastReleaseCloses) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD CALLBACK IExternalConnection_AddConnection_Proxy(
|
|
|
|
IExternalConnection* This,
|
|
|
|
DWORD extconn,
|
|
|
|
DWORD reserved);
|
|
|
|
void __RPC_STUB IExternalConnection_AddConnection_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
DWORD CALLBACK IExternalConnection_ReleaseConnection_Proxy(
|
|
|
|
IExternalConnection* This,
|
|
|
|
DWORD extconn,
|
|
|
|
DWORD reserved,
|
|
|
|
BOOL fLastReleaseCloses);
|
|
|
|
void __RPC_STUB IExternalConnection_ReleaseConnection_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IExternalConnection_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IMultiQI_FWD_DEFINED__
|
|
|
|
#define __IMultiQI_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IMultiQI IMultiQI;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IMultiQI *LPMULTIQI;
|
|
|
|
|
|
|
|
typedef struct tagMULTI_QI {
|
|
|
|
const IID *pIID;
|
|
|
|
IUnknown *pItf;
|
|
|
|
HRESULT hr;
|
|
|
|
} MULTI_QI;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IMultiQI interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IMultiQI_INTERFACE_DEFINED__
|
|
|
|
#define __IMultiQI_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IMultiQI, 0x00000020, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IMultiQI : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE QueryMultipleInterfaces(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG cMQIs,
|
|
|
|
MULTI_QI* pMQIs) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IMultiQIVtbl IMultiQIVtbl;
|
|
|
|
struct IMultiQI {
|
|
|
|
const IMultiQIVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IMultiQIVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMultiQI* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMultiQI* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMultiQI* This);
|
|
|
|
|
|
|
|
/*** IMultiQI methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryMultipleInterfaces)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMultiQI* This,
|
|
|
|
ULONG cMQIs,
|
|
|
|
MULTI_QI* pMQIs);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IMultiQI_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IMultiQI_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IMultiQI_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IMultiQI methods ***/
|
|
|
|
#define IMultiQI_QueryMultipleInterfaces(p,a,b) (p)->lpVtbl->QueryMultipleInterfaces(p,a,b)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IMultiQI_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IMultiQI methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryMultipleInterfaces)(THIS_ ULONG cMQIs, MULTI_QI* pMQIs) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IMultiQI_QueryMultipleInterfaces_Proxy(
|
|
|
|
IMultiQI* This,
|
|
|
|
ULONG cMQIs,
|
|
|
|
MULTI_QI* pMQIs);
|
|
|
|
void __RPC_STUB IMultiQI_QueryMultipleInterfaces_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IMultiQI_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IMalloc_FWD_DEFINED__
|
|
|
|
#define __IMalloc_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IMalloc IMalloc;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IMalloc *LPMALLOC;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IMalloc interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IMalloc_INTERFACE_DEFINED__
|
|
|
|
#define __IMalloc_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IMalloc, 0x00000002, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IMalloc : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual LPVOID STDMETHODCALLTYPE Alloc(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG cb) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual LPVOID STDMETHODCALLTYPE Realloc(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pv,
|
|
|
|
ULONG cb) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE Free(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pv) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual ULONG STDMETHODCALLTYPE GetSize(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pv) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual int STDMETHODCALLTYPE DidAlloc(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pv) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE HeapMinimize(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IMallocVtbl IMallocVtbl;
|
|
|
|
struct IMalloc {
|
|
|
|
const IMallocVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IMallocVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMalloc* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMalloc* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMalloc* This);
|
|
|
|
|
|
|
|
/*** IMalloc methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
LPVOID (STDMETHODCALLTYPE *Alloc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMalloc* This,
|
|
|
|
ULONG cb);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
LPVOID (STDMETHODCALLTYPE *Realloc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMalloc* This,
|
|
|
|
LPVOID pv,
|
|
|
|
ULONG cb);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *Free)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMalloc* This,
|
|
|
|
LPVOID pv);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *GetSize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMalloc* This,
|
|
|
|
LPVOID pv);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
int (STDMETHODCALLTYPE *DidAlloc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMalloc* This,
|
|
|
|
LPVOID pv);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *HeapMinimize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMalloc* This);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IMalloc_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IMalloc_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IMalloc_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IMalloc methods ***/
|
|
|
|
#define IMalloc_Alloc(p,a) (p)->lpVtbl->Alloc(p,a)
|
|
|
|
#define IMalloc_Realloc(p,a,b) (p)->lpVtbl->Realloc(p,a,b)
|
|
|
|
#define IMalloc_Free(p,a) (p)->lpVtbl->Free(p,a)
|
|
|
|
#define IMalloc_GetSize(p,a) (p)->lpVtbl->GetSize(p,a)
|
|
|
|
#define IMalloc_DidAlloc(p,a) (p)->lpVtbl->DidAlloc(p,a)
|
|
|
|
#define IMalloc_HeapMinimize(p) (p)->lpVtbl->HeapMinimize(p)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IMalloc_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IMalloc methods ***/ \
|
|
|
|
STDMETHOD_(LPVOID,Alloc)(THIS_ ULONG cb) PURE; \
|
|
|
|
STDMETHOD_(LPVOID,Realloc)(THIS_ LPVOID pv, ULONG cb) PURE; \
|
|
|
|
STDMETHOD_(void,Free)(THIS_ LPVOID pv) PURE; \
|
|
|
|
STDMETHOD_(ULONG,GetSize)(THIS_ LPVOID pv) PURE; \
|
|
|
|
STDMETHOD_(int,DidAlloc)(THIS_ LPVOID pv) PURE; \
|
|
|
|
STDMETHOD_(void,HeapMinimize)(THIS) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID CALLBACK IMalloc_Alloc_Proxy(
|
|
|
|
IMalloc* This,
|
|
|
|
ULONG cb);
|
|
|
|
void __RPC_STUB IMalloc_Alloc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
LPVOID CALLBACK IMalloc_Realloc_Proxy(
|
|
|
|
IMalloc* This,
|
|
|
|
LPVOID pv,
|
|
|
|
ULONG cb);
|
|
|
|
void __RPC_STUB IMalloc_Realloc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IMalloc_Free_Proxy(
|
|
|
|
IMalloc* This,
|
|
|
|
LPVOID pv);
|
|
|
|
void __RPC_STUB IMalloc_Free_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
ULONG CALLBACK IMalloc_GetSize_Proxy(
|
|
|
|
IMalloc* This,
|
|
|
|
LPVOID pv);
|
|
|
|
void __RPC_STUB IMalloc_GetSize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
int CALLBACK IMalloc_DidAlloc_Proxy(
|
|
|
|
IMalloc* This,
|
|
|
|
LPVOID pv);
|
|
|
|
void __RPC_STUB IMalloc_DidAlloc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IMalloc_HeapMinimize_Proxy(
|
|
|
|
IMalloc* This);
|
|
|
|
void __RPC_STUB IMalloc_HeapMinimize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IMalloc_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IMallocSpy_FWD_DEFINED__
|
|
|
|
#define __IMallocSpy_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IMallocSpy IMallocSpy;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IMallocSpy *LPMALLOCSPY;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IMallocSpy interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IMallocSpy_INTERFACE_DEFINED__
|
|
|
|
#define __IMallocSpy_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IMallocSpy, 0x0000001d, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IMallocSpy : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual ULONG STDMETHODCALLTYPE PreAlloc(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG cbRequest) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual LPVOID STDMETHODCALLTYPE PostAlloc(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pActual) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual LPVOID STDMETHODCALLTYPE PreFree(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE PostFree(
|
2002-12-19 23:15:24 +01:00
|
|
|
BOOL fSpyed) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual ULONG STDMETHODCALLTYPE PreRealloc(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pRequest,
|
|
|
|
ULONG cbRequest,
|
|
|
|
LPVOID* ppNewRequest,
|
|
|
|
BOOL fSpyed) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual LPVOID STDMETHODCALLTYPE PostRealloc(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pActual,
|
|
|
|
BOOL fSpyed) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual LPVOID STDMETHODCALLTYPE PreGetSize(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual ULONG STDMETHODCALLTYPE PostGetSize(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG cbActual,
|
|
|
|
BOOL fSpyed) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual LPVOID STDMETHODCALLTYPE PreDidAlloc(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual int STDMETHODCALLTYPE PostDidAlloc(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed,
|
|
|
|
int fActual) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE PreHeapMinimize(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE PostHeapMinimize(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IMallocSpyVtbl IMallocSpyVtbl;
|
|
|
|
struct IMallocSpy {
|
|
|
|
const IMallocSpyVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IMallocSpyVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This);
|
|
|
|
|
|
|
|
/*** IMallocSpy methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *PreAlloc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
ULONG cbRequest);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
LPVOID (STDMETHODCALLTYPE *PostAlloc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pActual);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
LPVOID (STDMETHODCALLTYPE *PreFree)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *PostFree)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
BOOL fSpyed);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *PreRealloc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pRequest,
|
|
|
|
ULONG cbRequest,
|
|
|
|
LPVOID* ppNewRequest,
|
|
|
|
BOOL fSpyed);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
LPVOID (STDMETHODCALLTYPE *PostRealloc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pActual,
|
|
|
|
BOOL fSpyed);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
LPVOID (STDMETHODCALLTYPE *PreGetSize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *PostGetSize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
ULONG cbActual,
|
|
|
|
BOOL fSpyed);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
LPVOID (STDMETHODCALLTYPE *PreDidAlloc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
int (STDMETHODCALLTYPE *PostDidAlloc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed,
|
|
|
|
int fActual);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *PreHeapMinimize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *PostHeapMinimize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMallocSpy* This);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IMallocSpy_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IMallocSpy_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IMallocSpy_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IMallocSpy methods ***/
|
|
|
|
#define IMallocSpy_PreAlloc(p,a) (p)->lpVtbl->PreAlloc(p,a)
|
|
|
|
#define IMallocSpy_PostAlloc(p,a) (p)->lpVtbl->PostAlloc(p,a)
|
|
|
|
#define IMallocSpy_PreFree(p,a,b) (p)->lpVtbl->PreFree(p,a,b)
|
|
|
|
#define IMallocSpy_PostFree(p,a) (p)->lpVtbl->PostFree(p,a)
|
|
|
|
#define IMallocSpy_PreRealloc(p,a,b,c,d) (p)->lpVtbl->PreRealloc(p,a,b,c,d)
|
|
|
|
#define IMallocSpy_PostRealloc(p,a,b) (p)->lpVtbl->PostRealloc(p,a,b)
|
|
|
|
#define IMallocSpy_PreGetSize(p,a,b) (p)->lpVtbl->PreGetSize(p,a,b)
|
|
|
|
#define IMallocSpy_PostGetSize(p,a,b) (p)->lpVtbl->PostGetSize(p,a,b)
|
|
|
|
#define IMallocSpy_PreDidAlloc(p,a,b) (p)->lpVtbl->PreDidAlloc(p,a,b)
|
|
|
|
#define IMallocSpy_PostDidAlloc(p,a,b,c) (p)->lpVtbl->PostDidAlloc(p,a,b,c)
|
|
|
|
#define IMallocSpy_PreHeapMinimize(p) (p)->lpVtbl->PreHeapMinimize(p)
|
|
|
|
#define IMallocSpy_PostHeapMinimize(p) (p)->lpVtbl->PostHeapMinimize(p)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IMallocSpy_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IMallocSpy methods ***/ \
|
|
|
|
STDMETHOD_(ULONG,PreAlloc)(THIS_ ULONG cbRequest) PURE; \
|
|
|
|
STDMETHOD_(LPVOID,PostAlloc)(THIS_ LPVOID pActual) PURE; \
|
|
|
|
STDMETHOD_(LPVOID,PreFree)(THIS_ LPVOID pRequest, BOOL fSpyed) PURE; \
|
|
|
|
STDMETHOD_(void,PostFree)(THIS_ BOOL fSpyed) PURE; \
|
|
|
|
STDMETHOD_(ULONG,PreRealloc)(THIS_ LPVOID pRequest, ULONG cbRequest, LPVOID* ppNewRequest, BOOL fSpyed) PURE; \
|
|
|
|
STDMETHOD_(LPVOID,PostRealloc)(THIS_ LPVOID pActual, BOOL fSpyed) PURE; \
|
|
|
|
STDMETHOD_(LPVOID,PreGetSize)(THIS_ LPVOID pRequest, BOOL fSpyed) PURE; \
|
|
|
|
STDMETHOD_(ULONG,PostGetSize)(THIS_ ULONG cbActual, BOOL fSpyed) PURE; \
|
|
|
|
STDMETHOD_(LPVOID,PreDidAlloc)(THIS_ LPVOID pRequest, BOOL fSpyed) PURE; \
|
|
|
|
STDMETHOD_(int,PostDidAlloc)(THIS_ LPVOID pRequest, BOOL fSpyed, int fActual) PURE; \
|
|
|
|
STDMETHOD_(void,PreHeapMinimize)(THIS) PURE; \
|
|
|
|
STDMETHOD_(void,PostHeapMinimize)(THIS) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG CALLBACK IMallocSpy_PreAlloc_Proxy(
|
|
|
|
IMallocSpy* This,
|
|
|
|
ULONG cbRequest);
|
|
|
|
void __RPC_STUB IMallocSpy_PreAlloc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
LPVOID CALLBACK IMallocSpy_PostAlloc_Proxy(
|
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pActual);
|
|
|
|
void __RPC_STUB IMallocSpy_PostAlloc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
LPVOID CALLBACK IMallocSpy_PreFree_Proxy(
|
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed);
|
|
|
|
void __RPC_STUB IMallocSpy_PreFree_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IMallocSpy_PostFree_Proxy(
|
|
|
|
IMallocSpy* This,
|
|
|
|
BOOL fSpyed);
|
|
|
|
void __RPC_STUB IMallocSpy_PostFree_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
ULONG CALLBACK IMallocSpy_PreRealloc_Proxy(
|
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pRequest,
|
|
|
|
ULONG cbRequest,
|
|
|
|
LPVOID* ppNewRequest,
|
|
|
|
BOOL fSpyed);
|
|
|
|
void __RPC_STUB IMallocSpy_PreRealloc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
LPVOID CALLBACK IMallocSpy_PostRealloc_Proxy(
|
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pActual,
|
|
|
|
BOOL fSpyed);
|
|
|
|
void __RPC_STUB IMallocSpy_PostRealloc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
LPVOID CALLBACK IMallocSpy_PreGetSize_Proxy(
|
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed);
|
|
|
|
void __RPC_STUB IMallocSpy_PreGetSize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
ULONG CALLBACK IMallocSpy_PostGetSize_Proxy(
|
|
|
|
IMallocSpy* This,
|
|
|
|
ULONG cbActual,
|
|
|
|
BOOL fSpyed);
|
|
|
|
void __RPC_STUB IMallocSpy_PostGetSize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
LPVOID CALLBACK IMallocSpy_PreDidAlloc_Proxy(
|
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed);
|
|
|
|
void __RPC_STUB IMallocSpy_PreDidAlloc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
int CALLBACK IMallocSpy_PostDidAlloc_Proxy(
|
|
|
|
IMallocSpy* This,
|
|
|
|
LPVOID pRequest,
|
|
|
|
BOOL fSpyed,
|
|
|
|
int fActual);
|
|
|
|
void __RPC_STUB IMallocSpy_PostDidAlloc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IMallocSpy_PreHeapMinimize_Proxy(
|
|
|
|
IMallocSpy* This);
|
|
|
|
void __RPC_STUB IMallocSpy_PreHeapMinimize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IMallocSpy_PostHeapMinimize_Proxy(
|
|
|
|
IMallocSpy* This);
|
|
|
|
void __RPC_STUB IMallocSpy_PostHeapMinimize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IMallocSpy_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IEnumUnknown_FWD_DEFINED__
|
|
|
|
#define __IEnumUnknown_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IEnumUnknown IEnumUnknown;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IEnumUnknown *LPENUMUNKNOWN;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IEnumUnknown interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IEnumUnknown_INTERFACE_DEFINED__
|
|
|
|
#define __IEnumUnknown_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IEnumUnknown, 0x00000100, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IEnumUnknown : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Next(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt,
|
|
|
|
IUnknown** rgelt,
|
|
|
|
ULONG* pceltFetched) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Skip(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Reset(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Clone(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumUnknown** ppenum) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IEnumUnknownVtbl IEnumUnknownVtbl;
|
|
|
|
struct IEnumUnknown {
|
|
|
|
const IEnumUnknownVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IEnumUnknownVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumUnknown* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumUnknown* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumUnknown* This);
|
|
|
|
|
|
|
|
/*** IEnumUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Next)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumUnknown* This,
|
|
|
|
ULONG celt,
|
|
|
|
IUnknown** rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Skip)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumUnknown* This,
|
|
|
|
ULONG celt);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Reset)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumUnknown* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Clone)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumUnknown* This,
|
|
|
|
IEnumUnknown** ppenum);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IEnumUnknown_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumUnknown_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumUnknown_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IEnumUnknown methods ***/
|
|
|
|
#define IEnumUnknown_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumUnknown_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumUnknown_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumUnknown_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IEnumUnknown_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IEnumUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, IUnknown** rgelt, ULONG* pceltFetched) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Clone)(THIS_ IEnumUnknown** ppenum) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IEnumUnknown_RemoteNext_Proxy(
|
|
|
|
IEnumUnknown* This,
|
|
|
|
ULONG celt,
|
|
|
|
IUnknown** rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
void __RPC_STUB IEnumUnknown_RemoteNext_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumUnknown_Next_Proxy(
|
|
|
|
IEnumUnknown* This,
|
|
|
|
ULONG celt,
|
|
|
|
IUnknown** rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT __RPC_STUB IEnumUnknown_Next_Stub(
|
|
|
|
IEnumUnknown* This,
|
|
|
|
ULONG celt,
|
|
|
|
IUnknown** rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT CALLBACK IEnumUnknown_Skip_Proxy(
|
|
|
|
IEnumUnknown* This,
|
|
|
|
ULONG celt);
|
|
|
|
void __RPC_STUB IEnumUnknown_Skip_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumUnknown_Reset_Proxy(
|
|
|
|
IEnumUnknown* This);
|
|
|
|
void __RPC_STUB IEnumUnknown_Reset_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumUnknown_Clone_Proxy(
|
|
|
|
IEnumUnknown* This,
|
|
|
|
IEnumUnknown** ppenum);
|
|
|
|
void __RPC_STUB IEnumUnknown_Clone_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IEnumUnknown_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __ISurrogate_FWD_DEFINED__
|
|
|
|
#define __ISurrogate_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct ISurrogate ISurrogate;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef ISurrogate *LPSURROGATE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* ISurrogate interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __ISurrogate_INTERFACE_DEFINED__
|
|
|
|
#define __ISurrogate_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_ISurrogate, 0x00000022, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct ISurrogate : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE LoadDllServer(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFCLSID Clsid) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE FreeSurrogate(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct ISurrogateVtbl ISurrogateVtbl;
|
|
|
|
struct ISurrogate {
|
|
|
|
const ISurrogateVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct ISurrogateVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ISurrogate* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ISurrogate* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ISurrogate* This);
|
|
|
|
|
|
|
|
/*** ISurrogate methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *LoadDllServer)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ISurrogate* This,
|
|
|
|
REFCLSID Clsid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *FreeSurrogate)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ISurrogate* This);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define ISurrogate_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define ISurrogate_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define ISurrogate_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** ISurrogate methods ***/
|
|
|
|
#define ISurrogate_LoadDllServer(p,a) (p)->lpVtbl->LoadDllServer(p,a)
|
|
|
|
#define ISurrogate_FreeSurrogate(p) (p)->lpVtbl->FreeSurrogate(p)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define ISurrogate_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** ISurrogate methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,LoadDllServer)(THIS_ REFCLSID Clsid) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,FreeSurrogate)(THIS) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK ISurrogate_LoadDllServer_Proxy(
|
|
|
|
ISurrogate* This,
|
|
|
|
REFCLSID Clsid);
|
|
|
|
void __RPC_STUB ISurrogate_LoadDllServer_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ISurrogate_FreeSurrogate_Proxy(
|
|
|
|
ISurrogate* This);
|
|
|
|
void __RPC_STUB ISurrogate_FreeSurrogate_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __ISurrogate_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IGlobalInterfaceTable_FWD_DEFINED__
|
|
|
|
#define __IGlobalInterfaceTable_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IGlobalInterfaceTable IGlobalInterfaceTable;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IGlobalInterfaceTable *LPGLOBALINTERFACETABLE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IGlobalInterfaceTable interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IGlobalInterfaceTable_INTERFACE_DEFINED__
|
|
|
|
#define __IGlobalInterfaceTable_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IGlobalInterfaceTable, 0x00000146, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IGlobalInterfaceTable : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RegisterInterfaceInGlobal(
|
2002-12-19 23:15:24 +01:00
|
|
|
IUnknown* pUnk,
|
|
|
|
REFIID riid,
|
|
|
|
DWORD* pdwCookie) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RevokeInterfaceFromGlobal(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwCookie) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetInterfaceFromGlobal(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwCookie,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppv) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IGlobalInterfaceTableVtbl IGlobalInterfaceTableVtbl;
|
|
|
|
struct IGlobalInterfaceTable {
|
|
|
|
const IGlobalInterfaceTableVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IGlobalInterfaceTableVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IGlobalInterfaceTable* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IGlobalInterfaceTable* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IGlobalInterfaceTable* This);
|
|
|
|
|
|
|
|
/*** IGlobalInterfaceTable methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RegisterInterfaceInGlobal)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IGlobalInterfaceTable* This,
|
|
|
|
IUnknown* pUnk,
|
|
|
|
REFIID riid,
|
|
|
|
DWORD* pdwCookie);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RevokeInterfaceFromGlobal)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IGlobalInterfaceTable* This,
|
|
|
|
DWORD dwCookie);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetInterfaceFromGlobal)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IGlobalInterfaceTable* This,
|
|
|
|
DWORD dwCookie,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppv);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IGlobalInterfaceTable_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IGlobalInterfaceTable_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IGlobalInterfaceTable_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IGlobalInterfaceTable methods ***/
|
|
|
|
#define IGlobalInterfaceTable_RegisterInterfaceInGlobal(p,a,b,c) (p)->lpVtbl->RegisterInterfaceInGlobal(p,a,b,c)
|
|
|
|
#define IGlobalInterfaceTable_RevokeInterfaceFromGlobal(p,a) (p)->lpVtbl->RevokeInterfaceFromGlobal(p,a)
|
|
|
|
#define IGlobalInterfaceTable_GetInterfaceFromGlobal(p,a,b,c) (p)->lpVtbl->GetInterfaceFromGlobal(p,a,b,c)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IGlobalInterfaceTable_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IGlobalInterfaceTable methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,RegisterInterfaceInGlobal)(THIS_ IUnknown* pUnk, REFIID riid, DWORD* pdwCookie) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,RevokeInterfaceFromGlobal)(THIS_ DWORD dwCookie) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetInterfaceFromGlobal)(THIS_ DWORD dwCookie, REFIID riid, void** ppv) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IGlobalInterfaceTable_RegisterInterfaceInGlobal_Proxy(
|
|
|
|
IGlobalInterfaceTable* This,
|
|
|
|
IUnknown* pUnk,
|
|
|
|
REFIID riid,
|
|
|
|
DWORD* pdwCookie);
|
|
|
|
void __RPC_STUB IGlobalInterfaceTable_RegisterInterfaceInGlobal_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IGlobalInterfaceTable_RevokeInterfaceFromGlobal_Proxy(
|
|
|
|
IGlobalInterfaceTable* This,
|
|
|
|
DWORD dwCookie);
|
|
|
|
void __RPC_STUB IGlobalInterfaceTable_RevokeInterfaceFromGlobal_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IGlobalInterfaceTable_GetInterfaceFromGlobal_Proxy(
|
|
|
|
IGlobalInterfaceTable* This,
|
|
|
|
DWORD dwCookie,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppv);
|
|
|
|
void __RPC_STUB IGlobalInterfaceTable_GetInterfaceFromGlobal_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IGlobalInterfaceTable_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IBindCtx_FWD_DEFINED__
|
|
|
|
#define __IBindCtx_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IBindCtx IBindCtx;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IBindCtx *LPBINDCTX;
|
|
|
|
|
|
|
|
typedef IBindCtx *LPBC;
|
|
|
|
|
|
|
|
typedef struct tagBIND_OPTS {
|
|
|
|
DWORD cbStruct;
|
|
|
|
DWORD grfFlags;
|
|
|
|
DWORD grfMode;
|
|
|
|
DWORD dwTickCountDeadline;
|
|
|
|
} BIND_OPTS, *LPBIND_OPTS;
|
|
|
|
|
|
|
|
typedef struct tagBIND_OPTS2 {
|
|
|
|
DWORD cbStruct;
|
|
|
|
DWORD grfFlags;
|
|
|
|
DWORD grfMode;
|
|
|
|
DWORD dwTickCountDeadline;
|
|
|
|
DWORD dwTrackFlags;
|
|
|
|
DWORD dwClassContext;
|
|
|
|
LCID locale;
|
|
|
|
COSERVERINFO *pServerInfo;
|
|
|
|
} BIND_OPTS2, *LPBIND_OPTS2;
|
|
|
|
|
|
|
|
typedef enum tagBIND_FLAGS {
|
|
|
|
BIND_MAYBOTHERUSER = 1,
|
|
|
|
BIND_JUSTTESTEXISTENCE = 2
|
|
|
|
} BIND_FLAGS;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IBindCtx interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IBindCtx_INTERFACE_DEFINED__
|
|
|
|
#define __IBindCtx_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IBindCtx, 0x0000000e, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IBindCtx : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RegisterObjectBound(
|
2002-12-19 23:15:24 +01:00
|
|
|
IUnknown* punk) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RevokeObjectBound(
|
2002-12-19 23:15:24 +01:00
|
|
|
IUnknown* punk) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE ReleaseBoundObjects(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetBindOptions(
|
2002-12-19 23:15:24 +01:00
|
|
|
BIND_OPTS* pbindopts) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetBindOptions(
|
2002-12-19 23:15:24 +01:00
|
|
|
BIND_OPTS* pbindopts) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetRunningObjectTable(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable** pprot) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RegisterObjectParam(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPOLESTR pszKey,
|
|
|
|
IUnknown* punk) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetObjectParam(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPOLESTR pszKey,
|
|
|
|
IUnknown** ppunk) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE EnumObjectParam(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumString** ppenum) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RevokeObjectParam(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPOLESTR pszKey) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IBindCtxVtbl IBindCtxVtbl;
|
|
|
|
struct IBindCtx {
|
|
|
|
const IBindCtxVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IBindCtxVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This);
|
|
|
|
|
|
|
|
/*** IBindCtx methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RegisterObjectBound)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This,
|
|
|
|
IUnknown* punk);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RevokeObjectBound)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This,
|
|
|
|
IUnknown* punk);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *ReleaseBoundObjects)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetBindOptions)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This,
|
|
|
|
BIND_OPTS* pbindopts);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetBindOptions)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This,
|
|
|
|
BIND_OPTS* pbindopts);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetRunningObjectTable)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This,
|
|
|
|
IRunningObjectTable** pprot);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RegisterObjectParam)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This,
|
|
|
|
LPOLESTR pszKey,
|
|
|
|
IUnknown* punk);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetObjectParam)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This,
|
|
|
|
LPOLESTR pszKey,
|
|
|
|
IUnknown** ppunk);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *EnumObjectParam)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This,
|
|
|
|
IEnumString** ppenum);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RevokeObjectParam)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* This,
|
|
|
|
LPOLESTR pszKey);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IBindCtx_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IBindCtx_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IBindCtx_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IBindCtx methods ***/
|
|
|
|
#define IBindCtx_RegisterObjectBound(p,a) (p)->lpVtbl->RegisterObjectBound(p,a)
|
|
|
|
#define IBindCtx_RevokeObjectBound(p,a) (p)->lpVtbl->RevokeObjectBound(p,a)
|
|
|
|
#define IBindCtx_ReleaseBoundObjects(p) (p)->lpVtbl->ReleaseBoundObjects(p)
|
|
|
|
#define IBindCtx_SetBindOptions(p,a) (p)->lpVtbl->SetBindOptions(p,a)
|
|
|
|
#define IBindCtx_GetBindOptions(p,a) (p)->lpVtbl->GetBindOptions(p,a)
|
|
|
|
#define IBindCtx_GetRunningObjectTable(p,a) (p)->lpVtbl->GetRunningObjectTable(p,a)
|
|
|
|
#define IBindCtx_RegisterObjectParam(p,a,b) (p)->lpVtbl->RegisterObjectParam(p,a,b)
|
|
|
|
#define IBindCtx_GetObjectParam(p,a,b) (p)->lpVtbl->GetObjectParam(p,a,b)
|
|
|
|
#define IBindCtx_EnumObjectParam(p,a) (p)->lpVtbl->EnumObjectParam(p,a)
|
|
|
|
#define IBindCtx_RevokeObjectParam(p,a) (p)->lpVtbl->RevokeObjectParam(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IBindCtx_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IBindCtx methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,RegisterObjectBound)(THIS_ IUnknown* punk) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,RevokeObjectBound)(THIS_ IUnknown* punk) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,ReleaseBoundObjects)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetBindOptions)(THIS_ BIND_OPTS* pbindopts) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetBindOptions)(THIS_ BIND_OPTS* pbindopts) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetRunningObjectTable)(THIS_ IRunningObjectTable** pprot) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,RegisterObjectParam)(THIS_ LPOLESTR pszKey, IUnknown* punk) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetObjectParam)(THIS_ LPOLESTR pszKey, IUnknown** ppunk) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,EnumObjectParam)(THIS_ IEnumString** ppenum) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,RevokeObjectParam)(THIS_ LPOLESTR pszKey) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IBindCtx_RegisterObjectBound_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
IUnknown* punk);
|
|
|
|
void __RPC_STUB IBindCtx_RegisterObjectBound_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IBindCtx_RevokeObjectBound_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
IUnknown* punk);
|
|
|
|
void __RPC_STUB IBindCtx_RevokeObjectBound_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IBindCtx_ReleaseBoundObjects_Proxy(
|
|
|
|
IBindCtx* This);
|
|
|
|
void __RPC_STUB IBindCtx_ReleaseBoundObjects_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IBindCtx_RemoteSetBindOptions_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
BIND_OPTS2* pbindopts);
|
|
|
|
void __RPC_STUB IBindCtx_RemoteSetBindOptions_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IBindCtx_SetBindOptions_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
BIND_OPTS* pbindopts);
|
|
|
|
HRESULT __RPC_STUB IBindCtx_SetBindOptions_Stub(
|
|
|
|
IBindCtx* This,
|
|
|
|
BIND_OPTS2* pbindopts);
|
|
|
|
HRESULT CALLBACK IBindCtx_RemoteGetBindOptions_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
BIND_OPTS2* pbindopts);
|
|
|
|
void __RPC_STUB IBindCtx_RemoteGetBindOptions_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IBindCtx_GetBindOptions_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
BIND_OPTS* pbindopts);
|
|
|
|
HRESULT __RPC_STUB IBindCtx_GetBindOptions_Stub(
|
|
|
|
IBindCtx* This,
|
|
|
|
BIND_OPTS2* pbindopts);
|
|
|
|
HRESULT CALLBACK IBindCtx_GetRunningObjectTable_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
IRunningObjectTable** pprot);
|
|
|
|
void __RPC_STUB IBindCtx_GetRunningObjectTable_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IBindCtx_RegisterObjectParam_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
LPOLESTR pszKey,
|
|
|
|
IUnknown* punk);
|
|
|
|
void __RPC_STUB IBindCtx_RegisterObjectParam_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IBindCtx_GetObjectParam_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
LPOLESTR pszKey,
|
|
|
|
IUnknown** ppunk);
|
|
|
|
void __RPC_STUB IBindCtx_GetObjectParam_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IBindCtx_EnumObjectParam_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
IEnumString** ppenum);
|
|
|
|
void __RPC_STUB IBindCtx_EnumObjectParam_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IBindCtx_RevokeObjectParam_Proxy(
|
|
|
|
IBindCtx* This,
|
|
|
|
LPOLESTR pszKey);
|
|
|
|
void __RPC_STUB IBindCtx_RevokeObjectParam_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IBindCtx_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IEnumMoniker_FWD_DEFINED__
|
|
|
|
#define __IEnumMoniker_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IEnumMoniker IEnumMoniker;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IEnumMoniker *LPENUMMONIKER;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IEnumMoniker interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IEnumMoniker_INTERFACE_DEFINED__
|
|
|
|
#define __IEnumMoniker_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IEnumMoniker, 0x00000102, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IEnumMoniker : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Next(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt,
|
|
|
|
IMoniker** rgelt,
|
|
|
|
ULONG* pceltFetched) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Skip(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Reset(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Clone(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumMoniker** ppenum) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IEnumMonikerVtbl IEnumMonikerVtbl;
|
|
|
|
struct IEnumMoniker {
|
|
|
|
const IEnumMonikerVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IEnumMonikerVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumMoniker* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumMoniker* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumMoniker* This);
|
|
|
|
|
|
|
|
/*** IEnumMoniker methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Next)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumMoniker* This,
|
|
|
|
ULONG celt,
|
|
|
|
IMoniker** rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Skip)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumMoniker* This,
|
|
|
|
ULONG celt);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Reset)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumMoniker* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Clone)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumMoniker* This,
|
|
|
|
IEnumMoniker** ppenum);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IEnumMoniker_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumMoniker_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumMoniker_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IEnumMoniker methods ***/
|
|
|
|
#define IEnumMoniker_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumMoniker_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumMoniker_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumMoniker_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IEnumMoniker_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IEnumMoniker methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, IMoniker** rgelt, ULONG* pceltFetched) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Clone)(THIS_ IEnumMoniker** ppenum) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IEnumMoniker_RemoteNext_Proxy(
|
|
|
|
IEnumMoniker* This,
|
|
|
|
ULONG celt,
|
|
|
|
IMoniker** rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
void __RPC_STUB IEnumMoniker_RemoteNext_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumMoniker_Next_Proxy(
|
|
|
|
IEnumMoniker* This,
|
|
|
|
ULONG celt,
|
|
|
|
IMoniker** rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT __RPC_STUB IEnumMoniker_Next_Stub(
|
|
|
|
IEnumMoniker* This,
|
|
|
|
ULONG celt,
|
|
|
|
IMoniker** rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT CALLBACK IEnumMoniker_Skip_Proxy(
|
|
|
|
IEnumMoniker* This,
|
|
|
|
ULONG celt);
|
|
|
|
void __RPC_STUB IEnumMoniker_Skip_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumMoniker_Reset_Proxy(
|
|
|
|
IEnumMoniker* This);
|
|
|
|
void __RPC_STUB IEnumMoniker_Reset_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumMoniker_Clone_Proxy(
|
|
|
|
IEnumMoniker* This,
|
|
|
|
IEnumMoniker** ppenum);
|
|
|
|
void __RPC_STUB IEnumMoniker_Clone_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IEnumMoniker_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IRunnableObject_FWD_DEFINED__
|
|
|
|
#define __IRunnableObject_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IRunnableObject IRunnableObject;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IRunnableObject *LPRUNNABLEOBJECT;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IRunnableObject interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IRunnableObject_INTERFACE_DEFINED__
|
|
|
|
#define __IRunnableObject_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IRunnableObject, 0x00000126, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IRunnableObject : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetRunningClass(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCLSID lpClsid) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Run(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPBINDCTX pbc) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual BOOL STDMETHODCALLTYPE IsRunning(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE LockRunning(
|
2002-12-19 23:15:24 +01:00
|
|
|
BOOL fLock,
|
|
|
|
BOOL fLastUnlockCloses) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetContainedObject(
|
2002-12-19 23:15:24 +01:00
|
|
|
BOOL fContained) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IRunnableObjectVtbl IRunnableObjectVtbl;
|
|
|
|
struct IRunnableObject {
|
|
|
|
const IRunnableObjectVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IRunnableObjectVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunnableObject* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunnableObject* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunnableObject* This);
|
|
|
|
|
|
|
|
/*** IRunnableObject methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetRunningClass)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunnableObject* This,
|
|
|
|
LPCLSID lpClsid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Run)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunnableObject* This,
|
|
|
|
LPBINDCTX pbc);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
BOOL (STDMETHODCALLTYPE *IsRunning)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunnableObject* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *LockRunning)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunnableObject* This,
|
|
|
|
BOOL fLock,
|
|
|
|
BOOL fLastUnlockCloses);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetContainedObject)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunnableObject* This,
|
|
|
|
BOOL fContained);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IRunnableObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IRunnableObject_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IRunnableObject_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IRunnableObject methods ***/
|
|
|
|
#define IRunnableObject_GetRunningClass(p,a) (p)->lpVtbl->GetRunningClass(p,a)
|
|
|
|
#define IRunnableObject_Run(p,a) (p)->lpVtbl->Run(p,a)
|
|
|
|
#define IRunnableObject_IsRunning(p) (p)->lpVtbl->IsRunning(p)
|
|
|
|
#define IRunnableObject_LockRunning(p,a,b) (p)->lpVtbl->LockRunning(p,a,b)
|
|
|
|
#define IRunnableObject_SetContainedObject(p,a) (p)->lpVtbl->SetContainedObject(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IRunnableObject_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IRunnableObject methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetRunningClass)(THIS_ LPCLSID lpClsid) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Run)(THIS_ LPBINDCTX pbc) PURE; \
|
|
|
|
STDMETHOD_(BOOL,IsRunning)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,LockRunning)(THIS_ BOOL fLock, BOOL fLastUnlockCloses) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetContainedObject)(THIS_ BOOL fContained) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IRunnableObject_GetRunningClass_Proxy(
|
|
|
|
IRunnableObject* This,
|
|
|
|
LPCLSID lpClsid);
|
|
|
|
void __RPC_STUB IRunnableObject_GetRunningClass_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRunnableObject_Run_Proxy(
|
|
|
|
IRunnableObject* This,
|
|
|
|
LPBINDCTX pbc);
|
|
|
|
void __RPC_STUB IRunnableObject_Run_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRunnableObject_RemoteIsRunning_Proxy(
|
|
|
|
IRunnableObject* This);
|
|
|
|
void __RPC_STUB IRunnableObject_RemoteIsRunning_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
BOOL CALLBACK IRunnableObject_IsRunning_Proxy(
|
|
|
|
IRunnableObject* This);
|
|
|
|
HRESULT __RPC_STUB IRunnableObject_IsRunning_Stub(
|
|
|
|
IRunnableObject* This);
|
|
|
|
HRESULT CALLBACK IRunnableObject_LockRunning_Proxy(
|
|
|
|
IRunnableObject* This,
|
|
|
|
BOOL fLock,
|
|
|
|
BOOL fLastUnlockCloses);
|
|
|
|
void __RPC_STUB IRunnableObject_LockRunning_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRunnableObject_SetContainedObject_Proxy(
|
|
|
|
IRunnableObject* This,
|
|
|
|
BOOL fContained);
|
|
|
|
void __RPC_STUB IRunnableObject_SetContainedObject_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IRunnableObject_INTERFACE_DEFINED__ */
|
|
|
|
|
2003-01-04 01:52:18 +01:00
|
|
|
#ifdef __WINESRC__
|
2002-12-19 23:15:24 +01:00
|
|
|
#undef GetObject
|
|
|
|
#endif
|
|
|
|
typedef IRunningObjectTable *LPRUNNINGOBJECTTABLE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IRunningObjectTable interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IRunningObjectTable_INTERFACE_DEFINED__
|
|
|
|
#define __IRunningObjectTable_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IRunningObjectTable, 0x00000010, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IRunningObjectTable : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Register(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD grfFlags,
|
|
|
|
IUnknown* punkObject,
|
|
|
|
IMoniker* pmkObjectName,
|
|
|
|
DWORD* pdwRegister) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Revoke(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwRegister) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE IsRunning(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* pmkObjectName) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetObject(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* pmkObjectName,
|
|
|
|
IUnknown** ppunkObject) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE NoteChangeTime(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwRegister,
|
|
|
|
FILETIME* pfiletime) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetTimeOfLastChange(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* pmkObjectName,
|
|
|
|
FILETIME* pfiletime) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE EnumRunning(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumMoniker** ppenumMoniker) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IRunningObjectTableVtbl IRunningObjectTableVtbl;
|
|
|
|
struct IRunningObjectTable {
|
|
|
|
const IRunningObjectTableVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IRunningObjectTableVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable* This);
|
|
|
|
|
|
|
|
/*** IRunningObjectTable methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Register)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable* This,
|
|
|
|
DWORD grfFlags,
|
|
|
|
IUnknown* punkObject,
|
|
|
|
IMoniker* pmkObjectName,
|
|
|
|
DWORD* pdwRegister);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Revoke)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable* This,
|
|
|
|
DWORD dwRegister);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsRunning)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable* This,
|
|
|
|
IMoniker* pmkObjectName);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetObject)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable* This,
|
|
|
|
IMoniker* pmkObjectName,
|
|
|
|
IUnknown** ppunkObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *NoteChangeTime)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable* This,
|
|
|
|
DWORD dwRegister,
|
|
|
|
FILETIME* pfiletime);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetTimeOfLastChange)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable* This,
|
|
|
|
IMoniker* pmkObjectName,
|
|
|
|
FILETIME* pfiletime);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *EnumRunning)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRunningObjectTable* This,
|
|
|
|
IEnumMoniker** ppenumMoniker);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IRunningObjectTable_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IRunningObjectTable_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IRunningObjectTable_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IRunningObjectTable methods ***/
|
|
|
|
#define IRunningObjectTable_Register(p,a,b,c,d) (p)->lpVtbl->Register(p,a,b,c,d)
|
|
|
|
#define IRunningObjectTable_Revoke(p,a) (p)->lpVtbl->Revoke(p,a)
|
|
|
|
#define IRunningObjectTable_IsRunning(p,a) (p)->lpVtbl->IsRunning(p,a)
|
|
|
|
#define IRunningObjectTable_GetObject(p,a,b) (p)->lpVtbl->GetObject(p,a,b)
|
|
|
|
#define IRunningObjectTable_NoteChangeTime(p,a,b) (p)->lpVtbl->NoteChangeTime(p,a,b)
|
|
|
|
#define IRunningObjectTable_GetTimeOfLastChange(p,a,b) (p)->lpVtbl->GetTimeOfLastChange(p,a,b)
|
|
|
|
#define IRunningObjectTable_EnumRunning(p,a) (p)->lpVtbl->EnumRunning(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IRunningObjectTable_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IRunningObjectTable methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Register)(THIS_ DWORD grfFlags, IUnknown* punkObject, IMoniker* pmkObjectName, DWORD* pdwRegister) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Revoke)(THIS_ DWORD dwRegister) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,IsRunning)(THIS_ IMoniker* pmkObjectName) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetObject)(THIS_ IMoniker* pmkObjectName, IUnknown** ppunkObject) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,NoteChangeTime)(THIS_ DWORD dwRegister, FILETIME* pfiletime) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetTimeOfLastChange)(THIS_ IMoniker* pmkObjectName, FILETIME* pfiletime) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,EnumRunning)(THIS_ IEnumMoniker** ppenumMoniker) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IRunningObjectTable_Register_Proxy(
|
|
|
|
IRunningObjectTable* This,
|
|
|
|
DWORD grfFlags,
|
|
|
|
IUnknown* punkObject,
|
|
|
|
IMoniker* pmkObjectName,
|
|
|
|
DWORD* pdwRegister);
|
|
|
|
void __RPC_STUB IRunningObjectTable_Register_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRunningObjectTable_Revoke_Proxy(
|
|
|
|
IRunningObjectTable* This,
|
|
|
|
DWORD dwRegister);
|
|
|
|
void __RPC_STUB IRunningObjectTable_Revoke_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRunningObjectTable_IsRunning_Proxy(
|
|
|
|
IRunningObjectTable* This,
|
|
|
|
IMoniker* pmkObjectName);
|
|
|
|
void __RPC_STUB IRunningObjectTable_IsRunning_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRunningObjectTable_GetObject_Proxy(
|
|
|
|
IRunningObjectTable* This,
|
|
|
|
IMoniker* pmkObjectName,
|
|
|
|
IUnknown** ppunkObject);
|
|
|
|
void __RPC_STUB IRunningObjectTable_GetObject_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRunningObjectTable_NoteChangeTime_Proxy(
|
|
|
|
IRunningObjectTable* This,
|
|
|
|
DWORD dwRegister,
|
|
|
|
FILETIME* pfiletime);
|
|
|
|
void __RPC_STUB IRunningObjectTable_NoteChangeTime_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRunningObjectTable_GetTimeOfLastChange_Proxy(
|
|
|
|
IRunningObjectTable* This,
|
|
|
|
IMoniker* pmkObjectName,
|
|
|
|
FILETIME* pfiletime);
|
|
|
|
void __RPC_STUB IRunningObjectTable_GetTimeOfLastChange_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRunningObjectTable_EnumRunning_Proxy(
|
|
|
|
IRunningObjectTable* This,
|
|
|
|
IEnumMoniker** ppenumMoniker);
|
|
|
|
void __RPC_STUB IRunningObjectTable_EnumRunning_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IRunningObjectTable_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IPersist_FWD_DEFINED__
|
|
|
|
#define __IPersist_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IPersist IPersist;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IPersist *LPPERSIST;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IPersist interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IPersist_INTERFACE_DEFINED__
|
|
|
|
#define __IPersist_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IPersist, 0x0000010c, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IPersist : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetClassID(
|
2002-12-19 23:15:24 +01:00
|
|
|
CLSID* pClassID) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IPersistVtbl IPersistVtbl;
|
|
|
|
struct IPersist {
|
|
|
|
const IPersistVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IPersistVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersist* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersist* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersist* This);
|
|
|
|
|
|
|
|
/*** IPersist methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetClassID)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersist* This,
|
|
|
|
CLSID* pClassID);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IPersist_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IPersist_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IPersist_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IPersist methods ***/
|
|
|
|
#define IPersist_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IPersist_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IPersist methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetClassID)(THIS_ CLSID* pClassID) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IPersist_GetClassID_Proxy(
|
|
|
|
IPersist* This,
|
|
|
|
CLSID* pClassID);
|
|
|
|
void __RPC_STUB IPersist_GetClassID_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IPersist_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IPersistStream_FWD_DEFINED__
|
|
|
|
#define __IPersistStream_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IPersistStream IPersistStream;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IPersistStream *LPPERSISTSTREAM;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IPersistStream interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IPersistStream_INTERFACE_DEFINED__
|
|
|
|
#define __IPersistStream_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IPersistStream, 0x00000109, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IPersistStream : public IPersist
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE IsDirty(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Load(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* pStm) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Save(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* pStm,
|
|
|
|
BOOL fClearDirty) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetSizeMax(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER* pcbSize) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IPersistStreamVtbl IPersistStreamVtbl;
|
|
|
|
struct IPersistStream {
|
|
|
|
const IPersistStreamVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IPersistStreamVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStream* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStream* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStream* This);
|
|
|
|
|
|
|
|
/*** IPersist methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetClassID)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStream* This,
|
|
|
|
CLSID* pClassID);
|
|
|
|
|
|
|
|
/*** IPersistStream methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsDirty)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStream* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Load)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStream* This,
|
|
|
|
IStream* pStm);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Save)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStream* This,
|
|
|
|
IStream* pStm,
|
|
|
|
BOOL fClearDirty);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetSizeMax)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStream* This,
|
|
|
|
ULARGE_INTEGER* pcbSize);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IPersistStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IPersistStream_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IPersistStream_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IPersist methods ***/
|
|
|
|
#define IPersistStream_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a)
|
|
|
|
/*** IPersistStream methods ***/
|
|
|
|
#define IPersistStream_IsDirty(p) (p)->lpVtbl->IsDirty(p)
|
|
|
|
#define IPersistStream_Load(p,a) (p)->lpVtbl->Load(p,a)
|
|
|
|
#define IPersistStream_Save(p,a,b) (p)->lpVtbl->Save(p,a,b)
|
|
|
|
#define IPersistStream_GetSizeMax(p,a) (p)->lpVtbl->GetSizeMax(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IPersistStream_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IPersist methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetClassID)(THIS_ CLSID* pClassID) PURE; \
|
|
|
|
/*** IPersistStream methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,IsDirty)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Load)(THIS_ IStream* pStm) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Save)(THIS_ IStream* pStm, BOOL fClearDirty) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetSizeMax)(THIS_ ULARGE_INTEGER* pcbSize) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IPersistStream_IsDirty_Proxy(
|
|
|
|
IPersistStream* This);
|
|
|
|
void __RPC_STUB IPersistStream_IsDirty_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistStream_Load_Proxy(
|
|
|
|
IPersistStream* This,
|
|
|
|
IStream* pStm);
|
|
|
|
void __RPC_STUB IPersistStream_Load_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistStream_Save_Proxy(
|
|
|
|
IPersistStream* This,
|
|
|
|
IStream* pStm,
|
|
|
|
BOOL fClearDirty);
|
|
|
|
void __RPC_STUB IPersistStream_Save_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistStream_GetSizeMax_Proxy(
|
|
|
|
IPersistStream* This,
|
|
|
|
ULARGE_INTEGER* pcbSize);
|
|
|
|
void __RPC_STUB IPersistStream_GetSizeMax_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IPersistStream_INTERFACE_DEFINED__ */
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IMoniker *LPMONIKER;
|
|
|
|
|
|
|
|
typedef enum tagMKSYS {
|
|
|
|
MKSYS_NONE = 0,
|
|
|
|
MKSYS_GENERICCOMPOSITE = 1,
|
|
|
|
MKSYS_FILEMONIKER = 2,
|
|
|
|
MKSYS_ANTIMONIKER = 3,
|
|
|
|
MKSYS_ITEMMONIKER = 4,
|
|
|
|
MKSYS_POINTERMONIKER = 5,
|
|
|
|
MKSYS_CLASSMONIKER = 7
|
|
|
|
} MKSYS;
|
|
|
|
|
|
|
|
typedef enum tagMKREDUCE {
|
|
|
|
MKRREDUCE_ONE = 3 << 16,
|
|
|
|
MKRREDUCE_TOUSER = 2 << 16,
|
|
|
|
MKRREDUCE_THROUGHUSER = 1 << 16,
|
|
|
|
MKRREDUCE_ALL = 0
|
|
|
|
} MKRREDUCE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IMoniker interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IMoniker_INTERFACE_DEFINED__
|
|
|
|
#define __IMoniker_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IMoniker, 0x0000000f, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IMoniker : public IPersistStream
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE BindToObject(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
REFIID riidResult,
|
|
|
|
void** ppvResult) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE BindToStorage(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObj) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Reduce(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* pbc,
|
|
|
|
DWORD dwReduceHowFar,
|
|
|
|
IMoniker** ppmkToLeft,
|
|
|
|
IMoniker** ppmkReduced) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE ComposeWith(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* pmkRight,
|
|
|
|
BOOL fOnlyIfNotGeneric,
|
|
|
|
IMoniker** ppmkComposite) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Enum(
|
2002-12-19 23:15:24 +01:00
|
|
|
BOOL fForward,
|
|
|
|
IEnumMoniker** ppenumMoniker) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE IsEqual(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* pmkOtherMoniker) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Hash(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD* pdwHash) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE IsRunning(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
IMoniker* pmkNewlyRunning) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetTimeOfLastChange(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
FILETIME* pFileTime) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Inverse(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker** ppmk) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CommonPrefixWith(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* pmkOther,
|
|
|
|
IMoniker** ppmkPrefix) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RelativePathTo(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* pmkOther,
|
|
|
|
IMoniker** ppmkRelPath) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetDisplayName(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
LPOLESTR* ppszDisplayName) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE ParseDisplayName(
|
2002-12-19 23:15:24 +01:00
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
LPOLESTR pszDisplayName,
|
|
|
|
ULONG* pchEaten,
|
|
|
|
IMoniker** ppmkOut) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE IsSystemMoniker(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD* pdwMksys) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IMonikerVtbl IMonikerVtbl;
|
|
|
|
struct IMoniker {
|
|
|
|
const IMonikerVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IMonikerVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This);
|
|
|
|
|
|
|
|
/*** IPersist methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetClassID)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
CLSID* pClassID);
|
|
|
|
|
|
|
|
/*** IPersistStream methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsDirty)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Load)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IStream* pStm);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Save)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IStream* pStm,
|
|
|
|
BOOL fClearDirty);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetSizeMax)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
ULARGE_INTEGER* pcbSize);
|
|
|
|
|
|
|
|
/*** IMoniker methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *BindToObject)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
REFIID riidResult,
|
|
|
|
void** ppvResult);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *BindToStorage)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObj);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Reduce)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
DWORD dwReduceHowFar,
|
|
|
|
IMoniker** ppmkToLeft,
|
|
|
|
IMoniker** ppmkReduced);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *ComposeWith)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IMoniker* pmkRight,
|
|
|
|
BOOL fOnlyIfNotGeneric,
|
|
|
|
IMoniker** ppmkComposite);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Enum)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
BOOL fForward,
|
|
|
|
IEnumMoniker** ppenumMoniker);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsEqual)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IMoniker* pmkOtherMoniker);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Hash)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
DWORD* pdwHash);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsRunning)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
IMoniker* pmkNewlyRunning);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetTimeOfLastChange)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
FILETIME* pFileTime);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Inverse)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IMoniker** ppmk);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CommonPrefixWith)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IMoniker* pmkOther,
|
|
|
|
IMoniker** ppmkPrefix);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RelativePathTo)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IMoniker* pmkOther,
|
|
|
|
IMoniker** ppmkRelPath);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetDisplayName)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
LPOLESTR* ppszDisplayName);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *ParseDisplayName)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
LPOLESTR pszDisplayName,
|
|
|
|
ULONG* pchEaten,
|
|
|
|
IMoniker** ppmkOut);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsSystemMoniker)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* This,
|
|
|
|
DWORD* pdwMksys);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IMoniker_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IMoniker_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IMoniker_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IPersist methods ***/
|
|
|
|
#define IMoniker_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a)
|
|
|
|
/*** IPersistStream methods ***/
|
|
|
|
#define IMoniker_IsDirty(p) (p)->lpVtbl->IsDirty(p)
|
|
|
|
#define IMoniker_Load(p,a) (p)->lpVtbl->Load(p,a)
|
|
|
|
#define IMoniker_Save(p,a,b) (p)->lpVtbl->Save(p,a,b)
|
|
|
|
#define IMoniker_GetSizeMax(p,a) (p)->lpVtbl->GetSizeMax(p,a)
|
|
|
|
/*** IMoniker methods ***/
|
|
|
|
#define IMoniker_BindToObject(p,a,b,c,d) (p)->lpVtbl->BindToObject(p,a,b,c,d)
|
|
|
|
#define IMoniker_BindToStorage(p,a,b,c,d) (p)->lpVtbl->BindToStorage(p,a,b,c,d)
|
|
|
|
#define IMoniker_Reduce(p,a,b,c,d) (p)->lpVtbl->Reduce(p,a,b,c,d)
|
|
|
|
#define IMoniker_ComposeWith(p,a,b,c) (p)->lpVtbl->ComposeWith(p,a,b,c)
|
|
|
|
#define IMoniker_Enum(p,a,b) (p)->lpVtbl->Enum(p,a,b)
|
|
|
|
#define IMoniker_IsEqual(p,a) (p)->lpVtbl->IsEqual(p,a)
|
|
|
|
#define IMoniker_Hash(p,a) (p)->lpVtbl->Hash(p,a)
|
|
|
|
#define IMoniker_IsRunning(p,a,b,c) (p)->lpVtbl->IsRunning(p,a,b,c)
|
|
|
|
#define IMoniker_GetTimeOfLastChange(p,a,b,c) (p)->lpVtbl->GetTimeOfLastChange(p,a,b,c)
|
|
|
|
#define IMoniker_Inverse(p,a) (p)->lpVtbl->Inverse(p,a)
|
|
|
|
#define IMoniker_CommonPrefixWith(p,a,b) (p)->lpVtbl->CommonPrefixWith(p,a,b)
|
|
|
|
#define IMoniker_RelativePathTo(p,a,b) (p)->lpVtbl->RelativePathTo(p,a,b)
|
|
|
|
#define IMoniker_GetDisplayName(p,a,b,c) (p)->lpVtbl->GetDisplayName(p,a,b,c)
|
|
|
|
#define IMoniker_ParseDisplayName(p,a,b,c,d,e) (p)->lpVtbl->ParseDisplayName(p,a,b,c,d,e)
|
|
|
|
#define IMoniker_IsSystemMoniker(p,a) (p)->lpVtbl->IsSystemMoniker(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IMoniker_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IPersist methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetClassID)(THIS_ CLSID* pClassID) PURE; \
|
|
|
|
/*** IPersistStream methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,IsDirty)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Load)(THIS_ IStream* pStm) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Save)(THIS_ IStream* pStm, BOOL fClearDirty) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetSizeMax)(THIS_ ULARGE_INTEGER* pcbSize) PURE; \
|
|
|
|
/*** IMoniker methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,BindToObject)(THIS_ IBindCtx* pbc, IMoniker* pmkToLeft, REFIID riidResult, void** ppvResult) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,BindToStorage)(THIS_ IBindCtx* pbc, IMoniker* pmkToLeft, REFIID riid, void** ppvObj) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Reduce)(THIS_ IBindCtx* pbc, DWORD dwReduceHowFar, IMoniker** ppmkToLeft, IMoniker** ppmkReduced) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,ComposeWith)(THIS_ IMoniker* pmkRight, BOOL fOnlyIfNotGeneric, IMoniker** ppmkComposite) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Enum)(THIS_ BOOL fForward, IEnumMoniker** ppenumMoniker) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,IsEqual)(THIS_ IMoniker* pmkOtherMoniker) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Hash)(THIS_ DWORD* pdwHash) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,IsRunning)(THIS_ IBindCtx* pbc, IMoniker* pmkToLeft, IMoniker* pmkNewlyRunning) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetTimeOfLastChange)(THIS_ IBindCtx* pbc, IMoniker* pmkToLeft, FILETIME* pFileTime) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Inverse)(THIS_ IMoniker** ppmk) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,CommonPrefixWith)(THIS_ IMoniker* pmkOther, IMoniker** ppmkPrefix) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,RelativePathTo)(THIS_ IMoniker* pmkOther, IMoniker** ppmkRelPath) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetDisplayName)(THIS_ IBindCtx* pbc, IMoniker* pmkToLeft, LPOLESTR* ppszDisplayName) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,ParseDisplayName)(THIS_ IBindCtx* pbc, IMoniker* pmkToLeft, LPOLESTR pszDisplayName, ULONG* pchEaten, IMoniker** ppmkOut) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,IsSystemMoniker)(THIS_ DWORD* pdwMksys) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IMoniker_RemoteBindToObject_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
REFIID riidResult,
|
|
|
|
IUnknown** ppvResult);
|
|
|
|
void __RPC_STUB IMoniker_RemoteBindToObject_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_BindToObject_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
REFIID riidResult,
|
|
|
|
void** ppvResult);
|
|
|
|
HRESULT __RPC_STUB IMoniker_BindToObject_Stub(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
REFIID riidResult,
|
|
|
|
IUnknown** ppvResult);
|
|
|
|
HRESULT CALLBACK IMoniker_RemoteBindToStorage_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
REFIID riid,
|
|
|
|
IUnknown** ppvObj);
|
|
|
|
void __RPC_STUB IMoniker_RemoteBindToStorage_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_BindToStorage_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObj);
|
|
|
|
HRESULT __RPC_STUB IMoniker_BindToStorage_Stub(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
REFIID riid,
|
|
|
|
IUnknown** ppvObj);
|
|
|
|
HRESULT CALLBACK IMoniker_Reduce_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
DWORD dwReduceHowFar,
|
|
|
|
IMoniker** ppmkToLeft,
|
|
|
|
IMoniker** ppmkReduced);
|
|
|
|
void __RPC_STUB IMoniker_Reduce_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_ComposeWith_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IMoniker* pmkRight,
|
|
|
|
BOOL fOnlyIfNotGeneric,
|
|
|
|
IMoniker** ppmkComposite);
|
|
|
|
void __RPC_STUB IMoniker_ComposeWith_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_Enum_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
BOOL fForward,
|
|
|
|
IEnumMoniker** ppenumMoniker);
|
|
|
|
void __RPC_STUB IMoniker_Enum_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_IsEqual_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IMoniker* pmkOtherMoniker);
|
|
|
|
void __RPC_STUB IMoniker_IsEqual_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_Hash_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
DWORD* pdwHash);
|
|
|
|
void __RPC_STUB IMoniker_Hash_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_IsRunning_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
IMoniker* pmkNewlyRunning);
|
|
|
|
void __RPC_STUB IMoniker_IsRunning_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_GetTimeOfLastChange_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
FILETIME* pFileTime);
|
|
|
|
void __RPC_STUB IMoniker_GetTimeOfLastChange_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_Inverse_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IMoniker** ppmk);
|
|
|
|
void __RPC_STUB IMoniker_Inverse_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_CommonPrefixWith_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IMoniker* pmkOther,
|
|
|
|
IMoniker** ppmkPrefix);
|
|
|
|
void __RPC_STUB IMoniker_CommonPrefixWith_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_RelativePathTo_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IMoniker* pmkOther,
|
|
|
|
IMoniker** ppmkRelPath);
|
|
|
|
void __RPC_STUB IMoniker_RelativePathTo_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_GetDisplayName_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
LPOLESTR* ppszDisplayName);
|
|
|
|
void __RPC_STUB IMoniker_GetDisplayName_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_ParseDisplayName_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
IBindCtx* pbc,
|
|
|
|
IMoniker* pmkToLeft,
|
|
|
|
LPOLESTR pszDisplayName,
|
|
|
|
ULONG* pchEaten,
|
|
|
|
IMoniker** ppmkOut);
|
|
|
|
void __RPC_STUB IMoniker_ParseDisplayName_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IMoniker_IsSystemMoniker_Proxy(
|
|
|
|
IMoniker* This,
|
|
|
|
DWORD* pdwMksys);
|
|
|
|
void __RPC_STUB IMoniker_IsSystemMoniker_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IMoniker_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IROTData_FWD_DEFINED__
|
|
|
|
#define __IROTData_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IROTData IROTData;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* IROTData interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IROTData_INTERFACE_DEFINED__
|
|
|
|
#define __IROTData_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IROTData, 0xf29f6bc0, 0x5021, 0x11ce, 0xaa,0x15, 0x00,0x00,0x69,0x01,0x29,0x3f);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IROTData : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetComparisonData(
|
2002-12-19 23:15:24 +01:00
|
|
|
byte* pbData,
|
|
|
|
ULONG cbMax,
|
|
|
|
ULONG* pcbData) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IROTDataVtbl IROTDataVtbl;
|
|
|
|
struct IROTData {
|
|
|
|
const IROTDataVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IROTDataVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IROTData* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IROTData* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IROTData* This);
|
|
|
|
|
|
|
|
/*** IROTData methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetComparisonData)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IROTData* This,
|
|
|
|
byte* pbData,
|
|
|
|
ULONG cbMax,
|
|
|
|
ULONG* pcbData);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IROTData_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IROTData_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IROTData_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IROTData methods ***/
|
|
|
|
#define IROTData_GetComparisonData(p,a,b,c) (p)->lpVtbl->GetComparisonData(p,a,b,c)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IROTData_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IROTData methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetComparisonData)(THIS_ byte* pbData, ULONG cbMax, ULONG* pcbData) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IROTData_GetComparisonData_Proxy(
|
|
|
|
IROTData* This,
|
|
|
|
byte* pbData,
|
|
|
|
ULONG cbMax,
|
|
|
|
ULONG* pcbData);
|
|
|
|
void __RPC_STUB IROTData_GetComparisonData_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IROTData_INTERFACE_DEFINED__ */
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IEnumString *LPENUMSTRING;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IEnumString interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IEnumString_INTERFACE_DEFINED__
|
|
|
|
#define __IEnumString_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IEnumString, 0x00000101, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IEnumString : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Next(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt,
|
|
|
|
LPOLESTR* rgelt,
|
|
|
|
ULONG* pceltFetched) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Skip(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Reset(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Clone(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumString** ppenum) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IEnumStringVtbl IEnumStringVtbl;
|
|
|
|
struct IEnumString {
|
|
|
|
const IEnumStringVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IEnumStringVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumString* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumString* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumString* This);
|
|
|
|
|
|
|
|
/*** IEnumString methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Next)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumString* This,
|
|
|
|
ULONG celt,
|
|
|
|
LPOLESTR* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Skip)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumString* This,
|
|
|
|
ULONG celt);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Reset)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumString* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Clone)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumString* This,
|
|
|
|
IEnumString** ppenum);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IEnumString_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumString_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumString_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IEnumString methods ***/
|
|
|
|
#define IEnumString_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumString_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumString_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumString_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IEnumString_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IEnumString methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, LPOLESTR* rgelt, ULONG* pceltFetched) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Clone)(THIS_ IEnumString** ppenum) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IEnumString_RemoteNext_Proxy(
|
|
|
|
IEnumString* This,
|
|
|
|
ULONG celt,
|
|
|
|
LPOLESTR* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
void __RPC_STUB IEnumString_RemoteNext_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumString_Next_Proxy(
|
|
|
|
IEnumString* This,
|
|
|
|
ULONG celt,
|
|
|
|
LPOLESTR* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT __RPC_STUB IEnumString_Next_Stub(
|
|
|
|
IEnumString* This,
|
|
|
|
ULONG celt,
|
|
|
|
LPOLESTR* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT CALLBACK IEnumString_Skip_Proxy(
|
|
|
|
IEnumString* This,
|
|
|
|
ULONG celt);
|
|
|
|
void __RPC_STUB IEnumString_Skip_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumString_Reset_Proxy(
|
|
|
|
IEnumString* This);
|
|
|
|
void __RPC_STUB IEnumString_Reset_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumString_Clone_Proxy(
|
|
|
|
IEnumString* This,
|
|
|
|
IEnumString** ppenum);
|
|
|
|
void __RPC_STUB IEnumString_Clone_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IEnumString_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IClassActivator_FWD_DEFINED__
|
|
|
|
#define __IClassActivator_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IClassActivator IClassActivator;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* IClassActivator interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IClassActivator_INTERFACE_DEFINED__
|
|
|
|
#define __IClassActivator_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IClassActivator, 0x00000140, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IClassActivator : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetClassObject(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFCLSID rclsid,
|
|
|
|
DWORD dwClassContext,
|
|
|
|
LCID locale,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppv) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IClassActivatorVtbl IClassActivatorVtbl;
|
|
|
|
struct IClassActivator {
|
|
|
|
const IClassActivatorVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IClassActivatorVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IClassActivator* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IClassActivator* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IClassActivator* This);
|
|
|
|
|
|
|
|
/*** IClassActivator methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetClassObject)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IClassActivator* This,
|
|
|
|
REFCLSID rclsid,
|
|
|
|
DWORD dwClassContext,
|
|
|
|
LCID locale,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppv);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IClassActivator_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IClassActivator_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IClassActivator_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IClassActivator methods ***/
|
|
|
|
#define IClassActivator_GetClassObject(p,a,b,c,d,e) (p)->lpVtbl->GetClassObject(p,a,b,c,d,e)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IClassActivator_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IClassActivator methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetClassObject)(THIS_ REFCLSID rclsid, DWORD dwClassContext, LCID locale, REFIID riid, void** ppv) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IClassActivator_GetClassObject_Proxy(
|
|
|
|
IClassActivator* This,
|
|
|
|
REFCLSID rclsid,
|
|
|
|
DWORD dwClassContext,
|
|
|
|
LCID locale,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppv);
|
|
|
|
void __RPC_STUB IClassActivator_GetClassObject_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IClassActivator_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __ISequentialStream_FWD_DEFINED__
|
|
|
|
#define __ISequentialStream_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct ISequentialStream ISequentialStream;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* ISequentialStream interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __ISequentialStream_INTERFACE_DEFINED__
|
|
|
|
#define __ISequentialStream_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_ISequentialStream, 0x0c733a30, 0x2a1c, 0x11ce, 0xad,0xe5, 0x00,0xaa,0x00,0x44,0x77,0x3d);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct ISequentialStream : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Read(
|
2002-12-19 23:15:24 +01:00
|
|
|
void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Write(
|
2002-12-19 23:15:24 +01:00
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct ISequentialStreamVtbl ISequentialStreamVtbl;
|
|
|
|
struct ISequentialStream {
|
|
|
|
const ISequentialStreamVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct ISequentialStreamVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ISequentialStream* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ISequentialStream* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ISequentialStream* This);
|
|
|
|
|
|
|
|
/*** ISequentialStream methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Read)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ISequentialStream* This,
|
|
|
|
void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Write)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ISequentialStream* This,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define ISequentialStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define ISequentialStream_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define ISequentialStream_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** ISequentialStream methods ***/
|
|
|
|
#define ISequentialStream_Read(p,a,b,c) (p)->lpVtbl->Read(p,a,b,c)
|
|
|
|
#define ISequentialStream_Write(p,a,b,c) (p)->lpVtbl->Write(p,a,b,c)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define ISequentialStream_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** ISequentialStream methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Read)(THIS_ void* pv, ULONG cb, ULONG* pcbRead) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Write)(THIS_ const void* pv, ULONG cb, ULONG* pcbWritten) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK ISequentialStream_RemoteRead_Proxy(
|
|
|
|
ISequentialStream* This,
|
|
|
|
byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead);
|
|
|
|
void __RPC_STUB ISequentialStream_RemoteRead_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ISequentialStream_Read_Proxy(
|
|
|
|
ISequentialStream* This,
|
|
|
|
void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead);
|
|
|
|
HRESULT __RPC_STUB ISequentialStream_Read_Stub(
|
|
|
|
ISequentialStream* This,
|
|
|
|
byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead);
|
|
|
|
HRESULT CALLBACK ISequentialStream_RemoteWrite_Proxy(
|
|
|
|
ISequentialStream* This,
|
|
|
|
const byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
void __RPC_STUB ISequentialStream_RemoteWrite_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ISequentialStream_Write_Proxy(
|
|
|
|
ISequentialStream* This,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
HRESULT __RPC_STUB ISequentialStream_Write_Stub(
|
|
|
|
ISequentialStream* This,
|
|
|
|
const byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __ISequentialStream_INTERFACE_DEFINED__ */
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IStream *LPSTREAM;
|
|
|
|
|
|
|
|
typedef struct tagSTATSTG {
|
|
|
|
LPOLESTR pwcsName;
|
|
|
|
DWORD type;
|
|
|
|
ULARGE_INTEGER cbSize;
|
|
|
|
FILETIME mtime;
|
|
|
|
FILETIME ctime;
|
|
|
|
FILETIME atime;
|
|
|
|
DWORD grfMode;
|
|
|
|
DWORD grfLocksSupported;
|
|
|
|
CLSID clsid;
|
|
|
|
DWORD grfStateBits;
|
|
|
|
DWORD reserved;
|
|
|
|
} STATSTG;
|
|
|
|
|
|
|
|
typedef enum tagSTGTY {
|
|
|
|
STGTY_STORAGE = 1,
|
|
|
|
STGTY_STREAM = 2,
|
|
|
|
STGTY_LOCKBYTES = 3,
|
|
|
|
STGTY_PROPERTY = 4
|
|
|
|
} STGTY;
|
|
|
|
|
|
|
|
typedef enum tagSTREAM_SEEK {
|
|
|
|
STREAM_SEEK_SET = 0,
|
|
|
|
STREAM_SEEK_CUR = 1,
|
|
|
|
STREAM_SEEK_END = 2
|
|
|
|
} STREAM_SEEK;
|
|
|
|
|
|
|
|
#undef LOCK_MAND
|
|
|
|
#undef LOCK_READ
|
|
|
|
#undef LOCK_WRITE
|
|
|
|
#undef LOCK_RW
|
|
|
|
typedef enum tagLOCKTYPE {
|
|
|
|
LOCK_WRITE = 1,
|
|
|
|
LOCK_EXCLUSIVE = 2,
|
|
|
|
LOCK_ONLYONCE = 4
|
|
|
|
} LOCKTYPE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IStream interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IStream_INTERFACE_DEFINED__
|
|
|
|
#define __IStream_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IStream, 0x0000000c, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IStream : public ISequentialStream
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Seek(
|
2002-12-19 23:15:24 +01:00
|
|
|
LARGE_INTEGER dlibMove,
|
|
|
|
DWORD dwOrigin,
|
|
|
|
ULARGE_INTEGER* plibNewPosition) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetSize(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER libNewSize) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CopyTo(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* pstm,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
ULARGE_INTEGER* pcbRead,
|
|
|
|
ULARGE_INTEGER* pcbWritten) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Commit(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD grfCommitFlags) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Revert(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE LockRegion(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE UnlockRegion(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Stat(
|
2002-12-19 23:15:24 +01:00
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Clone(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream** ppstm) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IStreamVtbl IStreamVtbl;
|
|
|
|
struct IStream {
|
|
|
|
const IStreamVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IStreamVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This);
|
|
|
|
|
|
|
|
/*** ISequentialStream methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Read)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Write)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
|
|
|
|
/*** IStream methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Seek)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
LARGE_INTEGER dlibMove,
|
|
|
|
DWORD dwOrigin,
|
|
|
|
ULARGE_INTEGER* plibNewPosition);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetSize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
ULARGE_INTEGER libNewSize);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CopyTo)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
IStream* pstm,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
ULARGE_INTEGER* pcbRead,
|
|
|
|
ULARGE_INTEGER* pcbWritten);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Commit)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
DWORD grfCommitFlags);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Revert)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *LockRegion)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *UnlockRegion)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Stat)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Clone)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream* This,
|
|
|
|
IStream** ppstm);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IStream_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IStream_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** ISequentialStream methods ***/
|
|
|
|
#define IStream_Read(p,a,b,c) (p)->lpVtbl->Read(p,a,b,c)
|
|
|
|
#define IStream_Write(p,a,b,c) (p)->lpVtbl->Write(p,a,b,c)
|
|
|
|
/*** IStream methods ***/
|
|
|
|
#define IStream_Seek(p,a,b,c) (p)->lpVtbl->Seek(p,a,b,c)
|
|
|
|
#define IStream_SetSize(p,a) (p)->lpVtbl->SetSize(p,a)
|
|
|
|
#define IStream_CopyTo(p,a,b,c,d) (p)->lpVtbl->CopyTo(p,a,b,c,d)
|
|
|
|
#define IStream_Commit(p,a) (p)->lpVtbl->Commit(p,a)
|
|
|
|
#define IStream_Revert(p) (p)->lpVtbl->Revert(p)
|
|
|
|
#define IStream_LockRegion(p,a,b,c) (p)->lpVtbl->LockRegion(p,a,b,c)
|
|
|
|
#define IStream_UnlockRegion(p,a,b,c) (p)->lpVtbl->UnlockRegion(p,a,b,c)
|
|
|
|
#define IStream_Stat(p,a,b) (p)->lpVtbl->Stat(p,a,b)
|
|
|
|
#define IStream_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IStream_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** ISequentialStream methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Read)(THIS_ void* pv, ULONG cb, ULONG* pcbRead) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Write)(THIS_ const void* pv, ULONG cb, ULONG* pcbWritten) PURE; \
|
|
|
|
/*** IStream methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Seek)(THIS_ LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER* plibNewPosition) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetSize)(THIS_ ULARGE_INTEGER libNewSize) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,CopyTo)(THIS_ IStream* pstm, ULARGE_INTEGER cb, ULARGE_INTEGER* pcbRead, ULARGE_INTEGER* pcbWritten) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Commit)(THIS_ DWORD grfCommitFlags) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Revert)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,LockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,UnlockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Stat)(THIS_ STATSTG* pstatstg, DWORD grfStatFlag) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Clone)(THIS_ IStream** ppstm) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IStream_RemoteSeek_Proxy(
|
|
|
|
IStream* This,
|
|
|
|
LARGE_INTEGER dlibMove,
|
|
|
|
DWORD dwOrigin,
|
|
|
|
ULARGE_INTEGER* plibNewPosition);
|
|
|
|
void __RPC_STUB IStream_RemoteSeek_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream_Seek_Proxy(
|
|
|
|
IStream* This,
|
|
|
|
LARGE_INTEGER dlibMove,
|
|
|
|
DWORD dwOrigin,
|
|
|
|
ULARGE_INTEGER* plibNewPosition);
|
|
|
|
HRESULT __RPC_STUB IStream_Seek_Stub(
|
|
|
|
IStream* This,
|
|
|
|
LARGE_INTEGER dlibMove,
|
|
|
|
DWORD dwOrigin,
|
|
|
|
ULARGE_INTEGER* plibNewPosition);
|
|
|
|
HRESULT CALLBACK IStream_SetSize_Proxy(
|
|
|
|
IStream* This,
|
|
|
|
ULARGE_INTEGER libNewSize);
|
|
|
|
void __RPC_STUB IStream_SetSize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream_RemoteCopyTo_Proxy(
|
|
|
|
IStream* This,
|
|
|
|
IStream* pstm,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
ULARGE_INTEGER* pcbRead,
|
|
|
|
ULARGE_INTEGER* pcbWritten);
|
|
|
|
void __RPC_STUB IStream_RemoteCopyTo_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream_CopyTo_Proxy(
|
|
|
|
IStream* This,
|
|
|
|
IStream* pstm,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
ULARGE_INTEGER* pcbRead,
|
|
|
|
ULARGE_INTEGER* pcbWritten);
|
|
|
|
HRESULT __RPC_STUB IStream_CopyTo_Stub(
|
|
|
|
IStream* This,
|
|
|
|
IStream* pstm,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
ULARGE_INTEGER* pcbRead,
|
|
|
|
ULARGE_INTEGER* pcbWritten);
|
|
|
|
HRESULT CALLBACK IStream_Commit_Proxy(
|
|
|
|
IStream* This,
|
|
|
|
DWORD grfCommitFlags);
|
|
|
|
void __RPC_STUB IStream_Commit_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream_Revert_Proxy(
|
|
|
|
IStream* This);
|
|
|
|
void __RPC_STUB IStream_Revert_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream_LockRegion_Proxy(
|
|
|
|
IStream* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
void __RPC_STUB IStream_LockRegion_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream_UnlockRegion_Proxy(
|
|
|
|
IStream* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
void __RPC_STUB IStream_UnlockRegion_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream_Stat_Proxy(
|
|
|
|
IStream* This,
|
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag);
|
|
|
|
void __RPC_STUB IStream_Stat_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream_Clone_Proxy(
|
|
|
|
IStream* This,
|
|
|
|
IStream** ppstm);
|
|
|
|
void __RPC_STUB IStream_Clone_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IStream_INTERFACE_DEFINED__ */
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IStream16 *LPSTREAM16;
|
|
|
|
|
|
|
|
typedef struct tagSTATSTG16 {
|
|
|
|
LPOLESTR16 pwcsName;
|
|
|
|
DWORD type;
|
|
|
|
ULARGE_INTEGER cbSize;
|
|
|
|
FILETIME mtime;
|
|
|
|
FILETIME ctime;
|
|
|
|
FILETIME atime;
|
|
|
|
DWORD grfMode;
|
|
|
|
DWORD grfLocksSupported;
|
|
|
|
CLSID clsid;
|
|
|
|
DWORD grfStateBits;
|
|
|
|
DWORD reserved;
|
|
|
|
} STATSTG16;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IStream16 interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IStream16_INTERFACE_DEFINED__
|
|
|
|
#define __IStream16_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IStream16 : public ISequentialStream
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Seek(
|
2002-12-19 23:15:24 +01:00
|
|
|
LARGE_INTEGER dlibMove,
|
|
|
|
DWORD dwOrigin,
|
|
|
|
ULARGE_INTEGER* plibNewPosition) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetSize(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER libNewSize) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CopyTo(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* pstm,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
ULARGE_INTEGER* pcbRead,
|
|
|
|
ULARGE_INTEGER* pcbWritten) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Commit(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD grfCommitFlags) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Revert(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE LockRegion(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE UnlockRegion(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Stat(
|
2002-12-19 23:15:24 +01:00
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Clone(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16** ppstm) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IStream16Vtbl IStream16Vtbl;
|
|
|
|
struct IStream16 {
|
|
|
|
const IStream16Vtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IStream16Vtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This);
|
|
|
|
|
|
|
|
/*** ISequentialStream methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Read)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Write)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
|
|
|
|
/*** IStream16 methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Seek)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
LARGE_INTEGER dlibMove,
|
|
|
|
DWORD dwOrigin,
|
|
|
|
ULARGE_INTEGER* plibNewPosition);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetSize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
ULARGE_INTEGER libNewSize);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CopyTo)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
IStream16* pstm,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
ULARGE_INTEGER* pcbRead,
|
|
|
|
ULARGE_INTEGER* pcbWritten);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Commit)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
DWORD grfCommitFlags);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Revert)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *LockRegion)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *UnlockRegion)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Stat)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Clone)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStream16* This,
|
|
|
|
IStream16** ppstm);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IStream16_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IStream16_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IStream16_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** ISequentialStream methods ***/
|
|
|
|
#define IStream16_Read(p,a,b,c) (p)->lpVtbl->Read(p,a,b,c)
|
|
|
|
#define IStream16_Write(p,a,b,c) (p)->lpVtbl->Write(p,a,b,c)
|
|
|
|
/*** IStream16 methods ***/
|
|
|
|
#define IStream16_Seek(p,a,b,c) (p)->lpVtbl->Seek(p,a,b,c)
|
|
|
|
#define IStream16_SetSize(p,a) (p)->lpVtbl->SetSize(p,a)
|
|
|
|
#define IStream16_CopyTo(p,a,b,c,d) (p)->lpVtbl->CopyTo(p,a,b,c,d)
|
|
|
|
#define IStream16_Commit(p,a) (p)->lpVtbl->Commit(p,a)
|
|
|
|
#define IStream16_Revert(p) (p)->lpVtbl->Revert(p)
|
|
|
|
#define IStream16_LockRegion(p,a,b,c) (p)->lpVtbl->LockRegion(p,a,b,c)
|
|
|
|
#define IStream16_UnlockRegion(p,a,b,c) (p)->lpVtbl->UnlockRegion(p,a,b,c)
|
|
|
|
#define IStream16_Stat(p,a,b) (p)->lpVtbl->Stat(p,a,b)
|
|
|
|
#define IStream16_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IStream16_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** ISequentialStream methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Read)(THIS_ void* pv, ULONG cb, ULONG* pcbRead) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Write)(THIS_ const void* pv, ULONG cb, ULONG* pcbWritten) PURE; \
|
|
|
|
/*** IStream16 methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Seek)(THIS_ LARGE_INTEGER dlibMove, DWORD dwOrigin, ULARGE_INTEGER* plibNewPosition) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetSize)(THIS_ ULARGE_INTEGER libNewSize) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,CopyTo)(THIS_ IStream16* pstm, ULARGE_INTEGER cb, ULARGE_INTEGER* pcbRead, ULARGE_INTEGER* pcbWritten) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Commit)(THIS_ DWORD grfCommitFlags) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Revert)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,LockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,UnlockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Stat)(THIS_ STATSTG* pstatstg, DWORD grfStatFlag) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Clone)(THIS_ IStream16** ppstm) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IStream16_RemoteSeek_Proxy(
|
|
|
|
IStream16* This,
|
|
|
|
LARGE_INTEGER dlibMove,
|
|
|
|
DWORD dwOrigin,
|
|
|
|
ULARGE_INTEGER* plibNewPosition);
|
|
|
|
void __RPC_STUB IStream16_RemoteSeek_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream16_Seek_Proxy(
|
|
|
|
IStream16* This,
|
|
|
|
LARGE_INTEGER dlibMove,
|
|
|
|
DWORD dwOrigin,
|
|
|
|
ULARGE_INTEGER* plibNewPosition);
|
|
|
|
HRESULT __RPC_STUB IStream16_Seek_Stub(
|
|
|
|
IStream16* This,
|
|
|
|
LARGE_INTEGER dlibMove,
|
|
|
|
DWORD dwOrigin,
|
|
|
|
ULARGE_INTEGER* plibNewPosition);
|
|
|
|
HRESULT CALLBACK IStream16_SetSize_Proxy(
|
|
|
|
IStream16* This,
|
|
|
|
ULARGE_INTEGER libNewSize);
|
|
|
|
void __RPC_STUB IStream16_SetSize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream16_RemoteCopyTo_Proxy(
|
|
|
|
IStream16* This,
|
|
|
|
IStream16* pstm,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
ULARGE_INTEGER* pcbRead,
|
|
|
|
ULARGE_INTEGER* pcbWritten);
|
|
|
|
void __RPC_STUB IStream16_RemoteCopyTo_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream16_CopyTo_Proxy(
|
|
|
|
IStream16* This,
|
|
|
|
IStream16* pstm,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
ULARGE_INTEGER* pcbRead,
|
|
|
|
ULARGE_INTEGER* pcbWritten);
|
|
|
|
HRESULT __RPC_STUB IStream16_CopyTo_Stub(
|
|
|
|
IStream16* This,
|
|
|
|
IStream16* pstm,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
ULARGE_INTEGER* pcbRead,
|
|
|
|
ULARGE_INTEGER* pcbWritten);
|
|
|
|
HRESULT CALLBACK IStream16_Commit_Proxy(
|
|
|
|
IStream16* This,
|
|
|
|
DWORD grfCommitFlags);
|
|
|
|
void __RPC_STUB IStream16_Commit_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream16_Revert_Proxy(
|
|
|
|
IStream16* This);
|
|
|
|
void __RPC_STUB IStream16_Revert_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream16_LockRegion_Proxy(
|
|
|
|
IStream16* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
void __RPC_STUB IStream16_LockRegion_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream16_UnlockRegion_Proxy(
|
|
|
|
IStream16* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
void __RPC_STUB IStream16_UnlockRegion_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream16_Stat_Proxy(
|
|
|
|
IStream16* This,
|
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag);
|
|
|
|
void __RPC_STUB IStream16_Stat_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStream16_Clone_Proxy(
|
|
|
|
IStream16* This,
|
|
|
|
IStream16** ppstm);
|
|
|
|
void __RPC_STUB IStream16_Clone_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IStream16_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IEnumSTATSTG_FWD_DEFINED__
|
|
|
|
#define __IEnumSTATSTG_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IEnumSTATSTG IEnumSTATSTG;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IEnumSTATSTG *LPENUMSTATSTG;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IEnumSTATSTG interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IEnumSTATSTG_INTERFACE_DEFINED__
|
|
|
|
#define __IEnumSTATSTG_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IEnumSTATSTG, 0x0000000d, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IEnumSTATSTG : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Next(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt,
|
|
|
|
STATSTG* rgelt,
|
|
|
|
ULONG* pceltFetched) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Skip(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Reset(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Clone(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATSTG** ppenum) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IEnumSTATSTGVtbl IEnumSTATSTGVtbl;
|
|
|
|
struct IEnumSTATSTG {
|
|
|
|
const IEnumSTATSTGVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IEnumSTATSTGVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATSTG* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATSTG* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATSTG* This);
|
|
|
|
|
|
|
|
/*** IEnumSTATSTG methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Next)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Skip)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATSTG* This,
|
|
|
|
ULONG celt);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Reset)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATSTG* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Clone)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATSTG* This,
|
|
|
|
IEnumSTATSTG** ppenum);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IEnumSTATSTG_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumSTATSTG_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumSTATSTG_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IEnumSTATSTG methods ***/
|
|
|
|
#define IEnumSTATSTG_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumSTATSTG_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumSTATSTG_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumSTATSTG_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IEnumSTATSTG_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IEnumSTATSTG methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, STATSTG* rgelt, ULONG* pceltFetched) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Clone)(THIS_ IEnumSTATSTG** ppenum) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IEnumSTATSTG_RemoteNext_Proxy(
|
|
|
|
IEnumSTATSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
void __RPC_STUB IEnumSTATSTG_RemoteNext_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATSTG_Next_Proxy(
|
|
|
|
IEnumSTATSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT __RPC_STUB IEnumSTATSTG_Next_Stub(
|
|
|
|
IEnumSTATSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT CALLBACK IEnumSTATSTG_Skip_Proxy(
|
|
|
|
IEnumSTATSTG* This,
|
|
|
|
ULONG celt);
|
|
|
|
void __RPC_STUB IEnumSTATSTG_Skip_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATSTG_Reset_Proxy(
|
|
|
|
IEnumSTATSTG* This);
|
|
|
|
void __RPC_STUB IEnumSTATSTG_Reset_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATSTG_Clone_Proxy(
|
|
|
|
IEnumSTATSTG* This,
|
|
|
|
IEnumSTATSTG** ppenum);
|
|
|
|
void __RPC_STUB IEnumSTATSTG_Clone_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IEnumSTATSTG_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IStorage_FWD_DEFINED__
|
|
|
|
#define __IStorage_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IStorage IStorage;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IStorage *LPSTORAGE;
|
|
|
|
|
|
|
|
typedef struct tagRemSNB {
|
|
|
|
unsigned long ulCntStr;
|
|
|
|
unsigned long ulCntChar;
|
|
|
|
OLECHAR rgString[1];
|
|
|
|
} RemSNB;
|
|
|
|
|
|
|
|
typedef RemSNB *wireSNB;
|
|
|
|
|
|
|
|
typedef OLECHAR **SNB;
|
2003-01-09 02:10:14 +01:00
|
|
|
unsigned long __RPC_USER SNB_UserSize (unsigned long *, unsigned long, SNB *);
|
|
|
|
unsigned char * __RPC_USER SNB_UserMarshal (unsigned long *, unsigned char *, SNB *);
|
|
|
|
unsigned char * __RPC_USER SNB_UserUnmarshal(unsigned long *, unsigned char *, SNB *);
|
|
|
|
void __RPC_USER SNB_UserFree (unsigned long *, SNB *);
|
2002-12-19 23:15:24 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IStorage interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IStorage_INTERFACE_DEFINED__
|
|
|
|
#define __IStorage_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IStorage, 0x0000000b, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IStorage : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CreateStream(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved1,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream** ppstm) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE OpenStream(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
void* reserved1,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream** ppstm) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CreateStorage(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD dwStgFmt,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStorage** ppstg) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE OpenStorage(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
IStorage* pstgPriority,
|
|
|
|
DWORD grfMode,
|
|
|
|
SNB snbExclude,
|
|
|
|
DWORD reserved,
|
|
|
|
IStorage** ppstg) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CopyTo(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD ciidExclude,
|
|
|
|
const IID* rgiidExclude,
|
|
|
|
SNB snbExclude,
|
|
|
|
IStorage* pstgDest) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE MoveElementTo(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
IStorage* pstgDest,
|
|
|
|
LPCOLESTR pwcsNewName,
|
|
|
|
DWORD grfFlags) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Commit(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD grfCommitFlags) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Revert(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE EnumElements(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD reserved1,
|
|
|
|
void* reserved2,
|
|
|
|
DWORD reserved3,
|
|
|
|
IEnumSTATSTG** ppenum) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE DestroyElement(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pwcsName) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RenameElement(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pwcsOldName,
|
|
|
|
LPCOLESTR pwcsNewName) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetElementTimes(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
const FILETIME* pctime,
|
|
|
|
const FILETIME* patime,
|
|
|
|
const FILETIME* pmtime) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetClass(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFCLSID clsid) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetStateBits(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD grfStateBits,
|
|
|
|
DWORD grfMask) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Stat(
|
2002-12-19 23:15:24 +01:00
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IStorageVtbl IStorageVtbl;
|
|
|
|
struct IStorage {
|
|
|
|
const IStorageVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IStorageVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This);
|
|
|
|
|
|
|
|
/*** IStorage methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CreateStream)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved1,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream** ppstm);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *OpenStream)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
void* reserved1,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream** ppstm);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CreateStorage)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD dwStgFmt,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStorage** ppstg);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *OpenStorage)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
IStorage* pstgPriority,
|
|
|
|
DWORD grfMode,
|
|
|
|
SNB snbExclude,
|
|
|
|
DWORD reserved,
|
|
|
|
IStorage** ppstg);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CopyTo)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
DWORD ciidExclude,
|
|
|
|
const IID* rgiidExclude,
|
|
|
|
SNB snbExclude,
|
|
|
|
IStorage* pstgDest);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *MoveElementTo)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
IStorage* pstgDest,
|
|
|
|
LPCOLESTR pwcsNewName,
|
|
|
|
DWORD grfFlags);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Commit)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
DWORD grfCommitFlags);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Revert)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *EnumElements)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
DWORD reserved1,
|
|
|
|
void* reserved2,
|
|
|
|
DWORD reserved3,
|
|
|
|
IEnumSTATSTG** ppenum);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *DestroyElement)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RenameElement)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsOldName,
|
|
|
|
LPCOLESTR pwcsNewName);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetElementTimes)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
const FILETIME* pctime,
|
|
|
|
const FILETIME* patime,
|
|
|
|
const FILETIME* pmtime);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetClass)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
REFCLSID clsid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetStateBits)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
DWORD grfStateBits,
|
|
|
|
DWORD grfMask);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Stat)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* This,
|
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IStorage_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IStorage_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IStorage_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IStorage methods ***/
|
|
|
|
#define IStorage_CreateStream(p,a,b,c,d,e) (p)->lpVtbl->CreateStream(p,a,b,c,d,e)
|
|
|
|
#define IStorage_OpenStream(p,a,b,c,d,e) (p)->lpVtbl->OpenStream(p,a,b,c,d,e)
|
|
|
|
#define IStorage_CreateStorage(p,a,b,c,d,e) (p)->lpVtbl->CreateStorage(p,a,b,c,d,e)
|
|
|
|
#define IStorage_OpenStorage(p,a,b,c,d,e,f) (p)->lpVtbl->OpenStorage(p,a,b,c,d,e,f)
|
|
|
|
#define IStorage_CopyTo(p,a,b,c,d) (p)->lpVtbl->CopyTo(p,a,b,c,d)
|
|
|
|
#define IStorage_MoveElementTo(p,a,b,c,d) (p)->lpVtbl->MoveElementTo(p,a,b,c,d)
|
|
|
|
#define IStorage_Commit(p,a) (p)->lpVtbl->Commit(p,a)
|
|
|
|
#define IStorage_Revert(p) (p)->lpVtbl->Revert(p)
|
|
|
|
#define IStorage_EnumElements(p,a,b,c,d) (p)->lpVtbl->EnumElements(p,a,b,c,d)
|
|
|
|
#define IStorage_DestroyElement(p,a) (p)->lpVtbl->DestroyElement(p,a)
|
|
|
|
#define IStorage_RenameElement(p,a,b) (p)->lpVtbl->RenameElement(p,a,b)
|
|
|
|
#define IStorage_SetElementTimes(p,a,b,c,d) (p)->lpVtbl->SetElementTimes(p,a,b,c,d)
|
|
|
|
#define IStorage_SetClass(p,a) (p)->lpVtbl->SetClass(p,a)
|
|
|
|
#define IStorage_SetStateBits(p,a,b) (p)->lpVtbl->SetStateBits(p,a,b)
|
|
|
|
#define IStorage_Stat(p,a,b) (p)->lpVtbl->Stat(p,a,b)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IStorage_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IStorage methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,CreateStream)(THIS_ LPCOLESTR pwcsName, DWORD grfMode, DWORD reserved1, DWORD reserved2, IStream** ppstm) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,OpenStream)(THIS_ LPCOLESTR pwcsName, void* reserved1, DWORD grfMode, DWORD reserved2, IStream** ppstm) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,CreateStorage)(THIS_ LPCOLESTR pwcsName, DWORD grfMode, DWORD dwStgFmt, DWORD reserved2, IStorage** ppstg) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,OpenStorage)(THIS_ LPCOLESTR pwcsName, IStorage* pstgPriority, DWORD grfMode, SNB snbExclude, DWORD reserved, IStorage** ppstg) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,CopyTo)(THIS_ DWORD ciidExclude, const IID* rgiidExclude, SNB snbExclude, IStorage* pstgDest) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,MoveElementTo)(THIS_ LPCOLESTR pwcsName, IStorage* pstgDest, LPCOLESTR pwcsNewName, DWORD grfFlags) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Commit)(THIS_ DWORD grfCommitFlags) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Revert)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,EnumElements)(THIS_ DWORD reserved1, void* reserved2, DWORD reserved3, IEnumSTATSTG** ppenum) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,DestroyElement)(THIS_ LPCOLESTR pwcsName) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,RenameElement)(THIS_ LPCOLESTR pwcsOldName, LPCOLESTR pwcsNewName) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetElementTimes)(THIS_ LPCOLESTR pwcsName, const FILETIME* pctime, const FILETIME* patime, const FILETIME* pmtime) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetClass)(THIS_ REFCLSID clsid) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetStateBits)(THIS_ DWORD grfStateBits, DWORD grfMask) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Stat)(THIS_ STATSTG* pstatstg, DWORD grfStatFlag) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IStorage_CreateStream_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved1,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream** ppstm);
|
|
|
|
void __RPC_STUB IStorage_CreateStream_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_RemoteOpenStream_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
unsigned long cbReserved1,
|
|
|
|
byte* reserved1,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream** ppstm);
|
|
|
|
void __RPC_STUB IStorage_RemoteOpenStream_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_OpenStream_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
void* reserved1,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream** ppstm);
|
|
|
|
HRESULT __RPC_STUB IStorage_OpenStream_Stub(
|
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
unsigned long cbReserved1,
|
|
|
|
byte* reserved1,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream** ppstm);
|
|
|
|
HRESULT CALLBACK IStorage_CreateStorage_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD dwStgFmt,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStorage** ppstg);
|
|
|
|
void __RPC_STUB IStorage_CreateStorage_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_OpenStorage_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
IStorage* pstgPriority,
|
|
|
|
DWORD grfMode,
|
|
|
|
SNB snbExclude,
|
|
|
|
DWORD reserved,
|
|
|
|
IStorage** ppstg);
|
|
|
|
void __RPC_STUB IStorage_OpenStorage_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_CopyTo_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
DWORD ciidExclude,
|
|
|
|
const IID* rgiidExclude,
|
|
|
|
SNB snbExclude,
|
|
|
|
IStorage* pstgDest);
|
|
|
|
void __RPC_STUB IStorage_CopyTo_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_MoveElementTo_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
IStorage* pstgDest,
|
|
|
|
LPCOLESTR pwcsNewName,
|
|
|
|
DWORD grfFlags);
|
|
|
|
void __RPC_STUB IStorage_MoveElementTo_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_Commit_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
DWORD grfCommitFlags);
|
|
|
|
void __RPC_STUB IStorage_Commit_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_Revert_Proxy(
|
|
|
|
IStorage* This);
|
|
|
|
void __RPC_STUB IStorage_Revert_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_RemoteEnumElements_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
DWORD reserved1,
|
|
|
|
unsigned long cbReserved2,
|
|
|
|
byte* reserved2,
|
|
|
|
DWORD reserved3,
|
|
|
|
IEnumSTATSTG** ppenum);
|
|
|
|
void __RPC_STUB IStorage_RemoteEnumElements_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_EnumElements_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
DWORD reserved1,
|
|
|
|
void* reserved2,
|
|
|
|
DWORD reserved3,
|
|
|
|
IEnumSTATSTG** ppenum);
|
|
|
|
HRESULT __RPC_STUB IStorage_EnumElements_Stub(
|
|
|
|
IStorage* This,
|
|
|
|
DWORD reserved1,
|
|
|
|
unsigned long cbReserved2,
|
|
|
|
byte* reserved2,
|
|
|
|
DWORD reserved3,
|
|
|
|
IEnumSTATSTG** ppenum);
|
|
|
|
HRESULT CALLBACK IStorage_DestroyElement_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName);
|
|
|
|
void __RPC_STUB IStorage_DestroyElement_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_RenameElement_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsOldName,
|
|
|
|
LPCOLESTR pwcsNewName);
|
|
|
|
void __RPC_STUB IStorage_RenameElement_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_SetElementTimes_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
LPCOLESTR pwcsName,
|
|
|
|
const FILETIME* pctime,
|
|
|
|
const FILETIME* patime,
|
|
|
|
const FILETIME* pmtime);
|
|
|
|
void __RPC_STUB IStorage_SetElementTimes_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_SetClass_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
REFCLSID clsid);
|
|
|
|
void __RPC_STUB IStorage_SetClass_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_SetStateBits_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
DWORD grfStateBits,
|
|
|
|
DWORD grfMask);
|
|
|
|
void __RPC_STUB IStorage_SetStateBits_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage_Stat_Proxy(
|
|
|
|
IStorage* This,
|
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag);
|
|
|
|
void __RPC_STUB IStorage_Stat_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IStorage_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IStorage16_FWD_DEFINED__
|
|
|
|
#define __IStorage16_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IStorage16 IStorage16;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IStorage16 *LPSTORAGE16;
|
|
|
|
|
|
|
|
typedef struct tagRemSNB16 {
|
|
|
|
unsigned long ulCntStr;
|
|
|
|
unsigned long ulCntChar;
|
|
|
|
OLECHAR16 rgString[1];
|
|
|
|
} RemSNB16;
|
|
|
|
|
|
|
|
typedef RemSNB16 *wireSNB16;
|
|
|
|
|
|
|
|
typedef OLECHAR16 **SNB16;
|
2003-01-09 02:10:14 +01:00
|
|
|
unsigned long __RPC_USER SNB16_UserSize (unsigned long *, unsigned long, SNB16 *);
|
|
|
|
unsigned char * __RPC_USER SNB16_UserMarshal (unsigned long *, unsigned char *, SNB16 *);
|
|
|
|
unsigned char * __RPC_USER SNB16_UserUnmarshal(unsigned long *, unsigned char *, SNB16 *);
|
|
|
|
void __RPC_USER SNB16_UserFree (unsigned long *, SNB16 *);
|
2002-12-19 23:15:24 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IStorage16 interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IStorage16_INTERFACE_DEFINED__
|
|
|
|
#define __IStorage16_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IStorage16 : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CreateStream(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved1,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream16** ppstm) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE OpenStream(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
void* reserved1,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream16** ppstm) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CreateStorage(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD dwStgFmt,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStorage16** ppstg) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE OpenStorage(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
IStorage16* pstgPriority,
|
|
|
|
DWORD grfMode,
|
|
|
|
SNB16 snbExclude,
|
|
|
|
DWORD reserved,
|
|
|
|
IStorage16** ppstg) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CopyTo(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD ciidExclude,
|
|
|
|
const IID* rgiidExclude,
|
|
|
|
SNB16 snbExclude,
|
|
|
|
IStorage16* pstgDest) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE MoveElementTo(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
IStorage16* pstgDest,
|
|
|
|
LPCOLESTR16 pwcsNewName,
|
|
|
|
DWORD grfFlags) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Commit(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD grfCommitFlags) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Revert(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE EnumElements(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD reserved1,
|
|
|
|
void* reserved2,
|
|
|
|
DWORD reserved3,
|
|
|
|
IEnumSTATSTG** ppenum) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE DestroyElement(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR16 pwcsName) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RenameElement(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR16 pwcsOldName,
|
|
|
|
LPCOLESTR16 pwcsNewName) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetElementTimes(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
const FILETIME* pctime,
|
|
|
|
const FILETIME* patime,
|
|
|
|
const FILETIME* pmtime) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetClass(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFCLSID clsid) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetStateBits(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD grfStateBits,
|
|
|
|
DWORD grfMask) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Stat(
|
2002-12-19 23:15:24 +01:00
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IStorage16Vtbl IStorage16Vtbl;
|
|
|
|
struct IStorage16 {
|
|
|
|
const IStorage16Vtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IStorage16Vtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This);
|
|
|
|
|
|
|
|
/*** IStorage16 methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CreateStream)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved1,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream16** ppstm);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *OpenStream)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
void* reserved1,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream16** ppstm);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CreateStorage)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD dwStgFmt,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStorage16** ppstg);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *OpenStorage)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
IStorage16* pstgPriority,
|
|
|
|
DWORD grfMode,
|
|
|
|
SNB16 snbExclude,
|
|
|
|
DWORD reserved,
|
|
|
|
IStorage16** ppstg);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CopyTo)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
DWORD ciidExclude,
|
|
|
|
const IID* rgiidExclude,
|
|
|
|
SNB16 snbExclude,
|
|
|
|
IStorage16* pstgDest);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *MoveElementTo)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
IStorage16* pstgDest,
|
|
|
|
LPCOLESTR16 pwcsNewName,
|
|
|
|
DWORD grfFlags);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Commit)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
DWORD grfCommitFlags);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Revert)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *EnumElements)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
DWORD reserved1,
|
|
|
|
void* reserved2,
|
|
|
|
DWORD reserved3,
|
|
|
|
IEnumSTATSTG** ppenum);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *DestroyElement)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RenameElement)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsOldName,
|
|
|
|
LPCOLESTR16 pwcsNewName);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetElementTimes)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
const FILETIME* pctime,
|
|
|
|
const FILETIME* patime,
|
|
|
|
const FILETIME* pmtime);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetClass)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
REFCLSID clsid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetStateBits)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
DWORD grfStateBits,
|
|
|
|
DWORD grfMask);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Stat)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage16* This,
|
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IStorage16_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IStorage16_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IStorage16_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IStorage16 methods ***/
|
|
|
|
#define IStorage16_CreateStream(p,a,b,c,d,e) (p)->lpVtbl->CreateStream(p,a,b,c,d,e)
|
|
|
|
#define IStorage16_OpenStream(p,a,b,c,d,e) (p)->lpVtbl->OpenStream(p,a,b,c,d,e)
|
|
|
|
#define IStorage16_CreateStorage(p,a,b,c,d,e) (p)->lpVtbl->CreateStorage(p,a,b,c,d,e)
|
|
|
|
#define IStorage16_OpenStorage(p,a,b,c,d,e,f) (p)->lpVtbl->OpenStorage(p,a,b,c,d,e,f)
|
|
|
|
#define IStorage16_CopyTo(p,a,b,c,d) (p)->lpVtbl->CopyTo(p,a,b,c,d)
|
|
|
|
#define IStorage16_MoveElementTo(p,a,b,c,d) (p)->lpVtbl->MoveElementTo(p,a,b,c,d)
|
|
|
|
#define IStorage16_Commit(p,a) (p)->lpVtbl->Commit(p,a)
|
|
|
|
#define IStorage16_Revert(p) (p)->lpVtbl->Revert(p)
|
|
|
|
#define IStorage16_EnumElements(p,a,b,c,d) (p)->lpVtbl->EnumElements(p,a,b,c,d)
|
|
|
|
#define IStorage16_DestroyElement(p,a) (p)->lpVtbl->DestroyElement(p,a)
|
|
|
|
#define IStorage16_RenameElement(p,a,b) (p)->lpVtbl->RenameElement(p,a,b)
|
|
|
|
#define IStorage16_SetElementTimes(p,a,b,c,d) (p)->lpVtbl->SetElementTimes(p,a,b,c,d)
|
|
|
|
#define IStorage16_SetClass(p,a) (p)->lpVtbl->SetClass(p,a)
|
|
|
|
#define IStorage16_SetStateBits(p,a,b) (p)->lpVtbl->SetStateBits(p,a,b)
|
|
|
|
#define IStorage16_Stat(p,a,b) (p)->lpVtbl->Stat(p,a,b)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IStorage16_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IStorage16 methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,CreateStream)(THIS_ LPCOLESTR16 pwcsName, DWORD grfMode, DWORD reserved1, DWORD reserved2, IStream16** ppstm) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,OpenStream)(THIS_ LPCOLESTR16 pwcsName, void* reserved1, DWORD grfMode, DWORD reserved2, IStream16** ppstm) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,CreateStorage)(THIS_ LPCOLESTR16 pwcsName, DWORD grfMode, DWORD dwStgFmt, DWORD reserved2, IStorage16** ppstg) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,OpenStorage)(THIS_ LPCOLESTR16 pwcsName, IStorage16* pstgPriority, DWORD grfMode, SNB16 snbExclude, DWORD reserved, IStorage16** ppstg) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,CopyTo)(THIS_ DWORD ciidExclude, const IID* rgiidExclude, SNB16 snbExclude, IStorage16* pstgDest) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,MoveElementTo)(THIS_ LPCOLESTR16 pwcsName, IStorage16* pstgDest, LPCOLESTR16 pwcsNewName, DWORD grfFlags) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Commit)(THIS_ DWORD grfCommitFlags) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Revert)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,EnumElements)(THIS_ DWORD reserved1, void* reserved2, DWORD reserved3, IEnumSTATSTG** ppenum) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,DestroyElement)(THIS_ LPCOLESTR16 pwcsName) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,RenameElement)(THIS_ LPCOLESTR16 pwcsOldName, LPCOLESTR16 pwcsNewName) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetElementTimes)(THIS_ LPCOLESTR16 pwcsName, const FILETIME* pctime, const FILETIME* patime, const FILETIME* pmtime) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetClass)(THIS_ REFCLSID clsid) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetStateBits)(THIS_ DWORD grfStateBits, DWORD grfMask) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Stat)(THIS_ STATSTG* pstatstg, DWORD grfStatFlag) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IStorage16_CreateStream_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved1,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream16** ppstm);
|
|
|
|
void __RPC_STUB IStorage16_CreateStream_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_RemoteOpenStream_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
unsigned long cbReserved1,
|
|
|
|
byte* reserved1,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream16** ppstm);
|
|
|
|
void __RPC_STUB IStorage16_RemoteOpenStream_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_OpenStream_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
void* reserved1,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream16** ppstm);
|
|
|
|
HRESULT __RPC_STUB IStorage16_OpenStream_Stub(
|
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
unsigned long cbReserved1,
|
|
|
|
byte* reserved1,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStream16** ppstm);
|
|
|
|
HRESULT CALLBACK IStorage16_CreateStorage_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
DWORD grfMode,
|
|
|
|
DWORD dwStgFmt,
|
|
|
|
DWORD reserved2,
|
|
|
|
IStorage16** ppstg);
|
|
|
|
void __RPC_STUB IStorage16_CreateStorage_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_OpenStorage_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
IStorage16* pstgPriority,
|
|
|
|
DWORD grfMode,
|
|
|
|
SNB16 snbExclude,
|
|
|
|
DWORD reserved,
|
|
|
|
IStorage16** ppstg);
|
|
|
|
void __RPC_STUB IStorage16_OpenStorage_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_CopyTo_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
DWORD ciidExclude,
|
|
|
|
const IID* rgiidExclude,
|
|
|
|
SNB16 snbExclude,
|
|
|
|
IStorage16* pstgDest);
|
|
|
|
void __RPC_STUB IStorage16_CopyTo_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_MoveElementTo_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
IStorage16* pstgDest,
|
|
|
|
LPCOLESTR16 pwcsNewName,
|
|
|
|
DWORD grfFlags);
|
|
|
|
void __RPC_STUB IStorage16_MoveElementTo_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_Commit_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
DWORD grfCommitFlags);
|
|
|
|
void __RPC_STUB IStorage16_Commit_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_Revert_Proxy(
|
|
|
|
IStorage16* This);
|
|
|
|
void __RPC_STUB IStorage16_Revert_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_RemoteEnumElements_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
DWORD reserved1,
|
|
|
|
unsigned long cbReserved2,
|
|
|
|
byte* reserved2,
|
|
|
|
DWORD reserved3,
|
|
|
|
IEnumSTATSTG** ppenum);
|
|
|
|
void __RPC_STUB IStorage16_RemoteEnumElements_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_EnumElements_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
DWORD reserved1,
|
|
|
|
void* reserved2,
|
|
|
|
DWORD reserved3,
|
|
|
|
IEnumSTATSTG** ppenum);
|
|
|
|
HRESULT __RPC_STUB IStorage16_EnumElements_Stub(
|
|
|
|
IStorage16* This,
|
|
|
|
DWORD reserved1,
|
|
|
|
unsigned long cbReserved2,
|
|
|
|
byte* reserved2,
|
|
|
|
DWORD reserved3,
|
|
|
|
IEnumSTATSTG** ppenum);
|
|
|
|
HRESULT CALLBACK IStorage16_DestroyElement_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName);
|
|
|
|
void __RPC_STUB IStorage16_DestroyElement_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_RenameElement_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsOldName,
|
|
|
|
LPCOLESTR16 pwcsNewName);
|
|
|
|
void __RPC_STUB IStorage16_RenameElement_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_SetElementTimes_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
LPCOLESTR16 pwcsName,
|
|
|
|
const FILETIME* pctime,
|
|
|
|
const FILETIME* patime,
|
|
|
|
const FILETIME* pmtime);
|
|
|
|
void __RPC_STUB IStorage16_SetElementTimes_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_SetClass_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
REFCLSID clsid);
|
|
|
|
void __RPC_STUB IStorage16_SetClass_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_SetStateBits_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
DWORD grfStateBits,
|
|
|
|
DWORD grfMask);
|
|
|
|
void __RPC_STUB IStorage16_SetStateBits_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IStorage16_Stat_Proxy(
|
|
|
|
IStorage16* This,
|
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag);
|
|
|
|
void __RPC_STUB IStorage16_Stat_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IStorage16_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IPersistFile_FWD_DEFINED__
|
|
|
|
#define __IPersistFile_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IPersistFile IPersistFile;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IPersistFile *LPPERSISTFILE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IPersistFile interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IPersistFile_INTERFACE_DEFINED__
|
|
|
|
#define __IPersistFile_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IPersistFile, 0x0000010b, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IPersistFile : public IPersist
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE IsDirty(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Load(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pszFileName,
|
|
|
|
DWORD dwMode) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Save(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pszFileName,
|
|
|
|
BOOL fRemember) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SaveCompleted(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPCOLESTR pszFileName) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetCurFile(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPOLESTR* ppszFileName) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IPersistFileVtbl IPersistFileVtbl;
|
|
|
|
struct IPersistFile {
|
|
|
|
const IPersistFileVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IPersistFileVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistFile* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistFile* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistFile* This);
|
|
|
|
|
|
|
|
/*** IPersist methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetClassID)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistFile* This,
|
|
|
|
CLSID* pClassID);
|
|
|
|
|
|
|
|
/*** IPersistFile methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsDirty)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistFile* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Load)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistFile* This,
|
|
|
|
LPCOLESTR pszFileName,
|
|
|
|
DWORD dwMode);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Save)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistFile* This,
|
|
|
|
LPCOLESTR pszFileName,
|
|
|
|
BOOL fRemember);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SaveCompleted)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistFile* This,
|
|
|
|
LPCOLESTR pszFileName);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetCurFile)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistFile* This,
|
|
|
|
LPOLESTR* ppszFileName);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IPersistFile_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IPersistFile_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IPersistFile_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IPersist methods ***/
|
|
|
|
#define IPersistFile_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a)
|
|
|
|
/*** IPersistFile methods ***/
|
|
|
|
#define IPersistFile_IsDirty(p) (p)->lpVtbl->IsDirty(p)
|
|
|
|
#define IPersistFile_Load(p,a,b) (p)->lpVtbl->Load(p,a,b)
|
|
|
|
#define IPersistFile_Save(p,a,b) (p)->lpVtbl->Save(p,a,b)
|
|
|
|
#define IPersistFile_SaveCompleted(p,a) (p)->lpVtbl->SaveCompleted(p,a)
|
|
|
|
#define IPersistFile_GetCurFile(p,a) (p)->lpVtbl->GetCurFile(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IPersistFile_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IPersist methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetClassID)(THIS_ CLSID* pClassID) PURE; \
|
|
|
|
/*** IPersistFile methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,IsDirty)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Load)(THIS_ LPCOLESTR pszFileName, DWORD dwMode) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Save)(THIS_ LPCOLESTR pszFileName, BOOL fRemember) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SaveCompleted)(THIS_ LPCOLESTR pszFileName) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetCurFile)(THIS_ LPOLESTR* ppszFileName) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IPersistFile_IsDirty_Proxy(
|
|
|
|
IPersistFile* This);
|
|
|
|
void __RPC_STUB IPersistFile_IsDirty_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistFile_Load_Proxy(
|
|
|
|
IPersistFile* This,
|
|
|
|
LPCOLESTR pszFileName,
|
|
|
|
DWORD dwMode);
|
|
|
|
void __RPC_STUB IPersistFile_Load_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistFile_Save_Proxy(
|
|
|
|
IPersistFile* This,
|
|
|
|
LPCOLESTR pszFileName,
|
|
|
|
BOOL fRemember);
|
|
|
|
void __RPC_STUB IPersistFile_Save_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistFile_SaveCompleted_Proxy(
|
|
|
|
IPersistFile* This,
|
|
|
|
LPCOLESTR pszFileName);
|
|
|
|
void __RPC_STUB IPersistFile_SaveCompleted_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistFile_GetCurFile_Proxy(
|
|
|
|
IPersistFile* This,
|
|
|
|
LPOLESTR* ppszFileName);
|
|
|
|
void __RPC_STUB IPersistFile_GetCurFile_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IPersistFile_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IPersistStorage_FWD_DEFINED__
|
|
|
|
#define __IPersistStorage_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IPersistStorage IPersistStorage;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IPersistStorage *LPPERSISTSTORAGE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IPersistStorage interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IPersistStorage_INTERFACE_DEFINED__
|
|
|
|
#define __IPersistStorage_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IPersistStorage, 0x0000010a, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IPersistStorage : public IPersist
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE IsDirty(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE InitNew(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* pStg) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Load(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* pStg) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Save(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* pStgSave,
|
|
|
|
BOOL fSameAsLoad) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SaveCompleted(
|
2002-12-19 23:15:24 +01:00
|
|
|
IStorage* pStgNew) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE HandsOffStorage(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IPersistStorageVtbl IPersistStorageVtbl;
|
|
|
|
struct IPersistStorage {
|
|
|
|
const IPersistStorageVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IPersistStorageVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStorage* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStorage* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStorage* This);
|
|
|
|
|
|
|
|
/*** IPersist methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetClassID)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStorage* This,
|
|
|
|
CLSID* pClassID);
|
|
|
|
|
|
|
|
/*** IPersistStorage methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsDirty)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStorage* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *InitNew)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStorage* This,
|
|
|
|
IStorage* pStg);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Load)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStorage* This,
|
|
|
|
IStorage* pStg);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Save)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStorage* This,
|
|
|
|
IStorage* pStgSave,
|
|
|
|
BOOL fSameAsLoad);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SaveCompleted)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStorage* This,
|
|
|
|
IStorage* pStgNew);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *HandsOffStorage)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPersistStorage* This);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IPersistStorage_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IPersistStorage_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IPersistStorage_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IPersist methods ***/
|
|
|
|
#define IPersistStorage_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a)
|
|
|
|
/*** IPersistStorage methods ***/
|
|
|
|
#define IPersistStorage_IsDirty(p) (p)->lpVtbl->IsDirty(p)
|
|
|
|
#define IPersistStorage_InitNew(p,a) (p)->lpVtbl->InitNew(p,a)
|
|
|
|
#define IPersistStorage_Load(p,a) (p)->lpVtbl->Load(p,a)
|
|
|
|
#define IPersistStorage_Save(p,a,b) (p)->lpVtbl->Save(p,a,b)
|
|
|
|
#define IPersistStorage_SaveCompleted(p,a) (p)->lpVtbl->SaveCompleted(p,a)
|
|
|
|
#define IPersistStorage_HandsOffStorage(p) (p)->lpVtbl->HandsOffStorage(p)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IPersistStorage_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IPersist methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetClassID)(THIS_ CLSID* pClassID) PURE; \
|
|
|
|
/*** IPersistStorage methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,IsDirty)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,InitNew)(THIS_ IStorage* pStg) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Load)(THIS_ IStorage* pStg) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Save)(THIS_ IStorage* pStgSave, BOOL fSameAsLoad) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SaveCompleted)(THIS_ IStorage* pStgNew) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,HandsOffStorage)(THIS) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IPersistStorage_IsDirty_Proxy(
|
|
|
|
IPersistStorage* This);
|
|
|
|
void __RPC_STUB IPersistStorage_IsDirty_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistStorage_InitNew_Proxy(
|
|
|
|
IPersistStorage* This,
|
|
|
|
IStorage* pStg);
|
|
|
|
void __RPC_STUB IPersistStorage_InitNew_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistStorage_Load_Proxy(
|
|
|
|
IPersistStorage* This,
|
|
|
|
IStorage* pStg);
|
|
|
|
void __RPC_STUB IPersistStorage_Load_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistStorage_Save_Proxy(
|
|
|
|
IPersistStorage* This,
|
|
|
|
IStorage* pStgSave,
|
|
|
|
BOOL fSameAsLoad);
|
|
|
|
void __RPC_STUB IPersistStorage_Save_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistStorage_SaveCompleted_Proxy(
|
|
|
|
IPersistStorage* This,
|
|
|
|
IStorage* pStgNew);
|
|
|
|
void __RPC_STUB IPersistStorage_SaveCompleted_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPersistStorage_HandsOffStorage_Proxy(
|
|
|
|
IPersistStorage* This);
|
|
|
|
void __RPC_STUB IPersistStorage_HandsOffStorage_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IPersistStorage_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IRootStorage_FWD_DEFINED__
|
|
|
|
#define __IRootStorage_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IRootStorage IRootStorage;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IRootStorage *LPROOTSTORAGE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IRootStorage interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IRootStorage_INTERFACE_DEFINED__
|
|
|
|
#define __IRootStorage_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IRootStorage, 0x00000012, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IRootStorage : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SwitchToFile(
|
2002-12-19 23:15:24 +01:00
|
|
|
LPOLESTR pszFile) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IRootStorageVtbl IRootStorageVtbl;
|
|
|
|
struct IRootStorage {
|
|
|
|
const IRootStorageVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IRootStorageVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRootStorage* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRootStorage* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRootStorage* This);
|
|
|
|
|
|
|
|
/*** IRootStorage methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SwitchToFile)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRootStorage* This,
|
|
|
|
LPOLESTR pszFile);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IRootStorage_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IRootStorage_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IRootStorage_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IRootStorage methods ***/
|
|
|
|
#define IRootStorage_SwitchToFile(p,a) (p)->lpVtbl->SwitchToFile(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IRootStorage_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IRootStorage methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,SwitchToFile)(THIS_ LPOLESTR pszFile) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IRootStorage_SwitchToFile_Proxy(
|
|
|
|
IRootStorage* This,
|
|
|
|
LPOLESTR pszFile);
|
|
|
|
void __RPC_STUB IRootStorage_SwitchToFile_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IRootStorage_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __ILockBytes_FWD_DEFINED__
|
|
|
|
#define __ILockBytes_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct ILockBytes ILockBytes;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef ILockBytes *LPLOCKBYTES;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* ILockBytes interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __ILockBytes_INTERFACE_DEFINED__
|
|
|
|
#define __ILockBytes_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_ILockBytes, 0x0000000a, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct ILockBytes : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE ReadAt(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE WriteAt(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Flush(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetSize(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER cb) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE LockRegion(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE UnlockRegion(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Stat(
|
2002-12-19 23:15:24 +01:00
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct ILockBytesVtbl ILockBytesVtbl;
|
|
|
|
struct ILockBytes {
|
|
|
|
const ILockBytesVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct ILockBytesVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* This);
|
|
|
|
|
|
|
|
/*** ILockBytes methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *ReadAt)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *WriteAt)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Flush)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetSize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER cb);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *LockRegion)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *UnlockRegion)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Stat)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* This,
|
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define ILockBytes_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define ILockBytes_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define ILockBytes_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** ILockBytes methods ***/
|
|
|
|
#define ILockBytes_ReadAt(p,a,b,c,d) (p)->lpVtbl->ReadAt(p,a,b,c,d)
|
|
|
|
#define ILockBytes_WriteAt(p,a,b,c,d) (p)->lpVtbl->WriteAt(p,a,b,c,d)
|
|
|
|
#define ILockBytes_Flush(p) (p)->lpVtbl->Flush(p)
|
|
|
|
#define ILockBytes_SetSize(p,a) (p)->lpVtbl->SetSize(p,a)
|
|
|
|
#define ILockBytes_LockRegion(p,a,b,c) (p)->lpVtbl->LockRegion(p,a,b,c)
|
|
|
|
#define ILockBytes_UnlockRegion(p,a,b,c) (p)->lpVtbl->UnlockRegion(p,a,b,c)
|
|
|
|
#define ILockBytes_Stat(p,a,b) (p)->lpVtbl->Stat(p,a,b)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define ILockBytes_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** ILockBytes methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,ReadAt)(THIS_ ULARGE_INTEGER ulOffset, void* pv, ULONG cb, ULONG* pcbRead) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,WriteAt)(THIS_ ULARGE_INTEGER ulOffset, const void* pv, ULONG cb, ULONG* pcbWritten) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Flush)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetSize)(THIS_ ULARGE_INTEGER cb) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,LockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,UnlockRegion)(THIS_ ULARGE_INTEGER libOffset, ULARGE_INTEGER cb, DWORD dwLockType) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Stat)(THIS_ STATSTG* pstatstg, DWORD grfStatFlag) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK ILockBytes_RemoteReadAt_Proxy(
|
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead);
|
|
|
|
void __RPC_STUB ILockBytes_RemoteReadAt_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ILockBytes_ReadAt_Proxy(
|
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead);
|
|
|
|
HRESULT __RPC_STUB ILockBytes_ReadAt_Stub(
|
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbRead);
|
|
|
|
HRESULT CALLBACK ILockBytes_RemoteWriteAt_Proxy(
|
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
const byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
void __RPC_STUB ILockBytes_RemoteWriteAt_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ILockBytes_WriteAt_Proxy(
|
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
HRESULT __RPC_STUB ILockBytes_WriteAt_Stub(
|
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
const byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
HRESULT CALLBACK ILockBytes_Flush_Proxy(
|
|
|
|
ILockBytes* This);
|
|
|
|
void __RPC_STUB ILockBytes_Flush_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ILockBytes_SetSize_Proxy(
|
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER cb);
|
|
|
|
void __RPC_STUB ILockBytes_SetSize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ILockBytes_LockRegion_Proxy(
|
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
void __RPC_STUB ILockBytes_LockRegion_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ILockBytes_UnlockRegion_Proxy(
|
|
|
|
ILockBytes* This,
|
|
|
|
ULARGE_INTEGER libOffset,
|
|
|
|
ULARGE_INTEGER cb,
|
|
|
|
DWORD dwLockType);
|
|
|
|
void __RPC_STUB ILockBytes_UnlockRegion_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ILockBytes_Stat_Proxy(
|
|
|
|
ILockBytes* This,
|
|
|
|
STATSTG* pstatstg,
|
|
|
|
DWORD grfStatFlag);
|
|
|
|
void __RPC_STUB ILockBytes_Stat_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __ILockBytes_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IFillLockBytes_FWD_DEFINED__
|
|
|
|
#define __IFillLockBytes_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IFillLockBytes IFillLockBytes;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* IFillLockBytes interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IFillLockBytes_INTERFACE_DEFINED__
|
|
|
|
#define __IFillLockBytes_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IFillLockBytes, 0x99caf010, 0x415e, 0x11cf, 0x88,0x14, 0x00,0xaa,0x00,0xb5,0x69,0xf5);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IFillLockBytes : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE FillAppend(
|
2002-12-19 23:15:24 +01:00
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE FillAt(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetFillSize(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULARGE_INTEGER ulSize) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Terminate(
|
2002-12-19 23:15:24 +01:00
|
|
|
BOOL bCanceled) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IFillLockBytesVtbl IFillLockBytesVtbl;
|
|
|
|
struct IFillLockBytes {
|
|
|
|
const IFillLockBytesVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IFillLockBytesVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IFillLockBytes* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IFillLockBytes* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IFillLockBytes* This);
|
|
|
|
|
|
|
|
/*** IFillLockBytes methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *FillAppend)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IFillLockBytes* This,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *FillAt)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IFillLockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetFillSize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IFillLockBytes* This,
|
|
|
|
ULARGE_INTEGER ulSize);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Terminate)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IFillLockBytes* This,
|
|
|
|
BOOL bCanceled);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IFillLockBytes_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IFillLockBytes_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IFillLockBytes_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IFillLockBytes methods ***/
|
|
|
|
#define IFillLockBytes_FillAppend(p,a,b,c) (p)->lpVtbl->FillAppend(p,a,b,c)
|
|
|
|
#define IFillLockBytes_FillAt(p,a,b,c,d) (p)->lpVtbl->FillAt(p,a,b,c,d)
|
|
|
|
#define IFillLockBytes_SetFillSize(p,a) (p)->lpVtbl->SetFillSize(p,a)
|
|
|
|
#define IFillLockBytes_Terminate(p,a) (p)->lpVtbl->Terminate(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IFillLockBytes_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IFillLockBytes methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,FillAppend)(THIS_ const void* pv, ULONG cb, ULONG* pcbWritten) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,FillAt)(THIS_ ULARGE_INTEGER ulOffset, const void* pv, ULONG cb, ULONG* pcbWritten) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetFillSize)(THIS_ ULARGE_INTEGER ulSize) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Terminate)(THIS_ BOOL bCanceled) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IFillLockBytes_RemoteFillAppend_Proxy(
|
|
|
|
IFillLockBytes* This,
|
|
|
|
const byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
void __RPC_STUB IFillLockBytes_RemoteFillAppend_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IFillLockBytes_FillAppend_Proxy(
|
|
|
|
IFillLockBytes* This,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
HRESULT __RPC_STUB IFillLockBytes_FillAppend_Stub(
|
|
|
|
IFillLockBytes* This,
|
|
|
|
const byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
HRESULT CALLBACK IFillLockBytes_RemoteFillAt_Proxy(
|
|
|
|
IFillLockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
const byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
void __RPC_STUB IFillLockBytes_RemoteFillAt_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IFillLockBytes_FillAt_Proxy(
|
|
|
|
IFillLockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
const void* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
HRESULT __RPC_STUB IFillLockBytes_FillAt_Stub(
|
|
|
|
IFillLockBytes* This,
|
|
|
|
ULARGE_INTEGER ulOffset,
|
|
|
|
const byte* pv,
|
|
|
|
ULONG cb,
|
|
|
|
ULONG* pcbWritten);
|
|
|
|
HRESULT CALLBACK IFillLockBytes_SetFillSize_Proxy(
|
|
|
|
IFillLockBytes* This,
|
|
|
|
ULARGE_INTEGER ulSize);
|
|
|
|
void __RPC_STUB IFillLockBytes_SetFillSize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IFillLockBytes_Terminate_Proxy(
|
|
|
|
IFillLockBytes* This,
|
|
|
|
BOOL bCanceled);
|
|
|
|
void __RPC_STUB IFillLockBytes_Terminate_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IFillLockBytes_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IProgressNotify_FWD_DEFINED__
|
|
|
|
#define __IProgressNotify_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IProgressNotify IProgressNotify;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* IProgressNotify interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IProgressNotify_INTERFACE_DEFINED__
|
|
|
|
#define __IProgressNotify_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IProgressNotify, 0xa9d758a0, 0x4617, 0x11cf, 0x95,0xfc, 0x00,0xaa,0x00,0x68,0x0d,0xb4);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IProgressNotify : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE OnProgress(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwProgressCurrent,
|
|
|
|
DWORD dwProgressMaximum,
|
|
|
|
BOOL fAccurate,
|
|
|
|
BOOL fOwner) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IProgressNotifyVtbl IProgressNotifyVtbl;
|
|
|
|
struct IProgressNotify {
|
|
|
|
const IProgressNotifyVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IProgressNotifyVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IProgressNotify* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IProgressNotify* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IProgressNotify* This);
|
|
|
|
|
|
|
|
/*** IProgressNotify methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *OnProgress)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IProgressNotify* This,
|
|
|
|
DWORD dwProgressCurrent,
|
|
|
|
DWORD dwProgressMaximum,
|
|
|
|
BOOL fAccurate,
|
|
|
|
BOOL fOwner);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IProgressNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IProgressNotify_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IProgressNotify_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IProgressNotify methods ***/
|
|
|
|
#define IProgressNotify_OnProgress(p,a,b,c,d) (p)->lpVtbl->OnProgress(p,a,b,c,d)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IProgressNotify_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IProgressNotify methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,OnProgress)(THIS_ DWORD dwProgressCurrent, DWORD dwProgressMaximum, BOOL fAccurate, BOOL fOwner) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IProgressNotify_OnProgress_Proxy(
|
|
|
|
IProgressNotify* This,
|
|
|
|
DWORD dwProgressCurrent,
|
|
|
|
DWORD dwProgressMaximum,
|
|
|
|
BOOL fAccurate,
|
|
|
|
BOOL fOwner);
|
|
|
|
void __RPC_STUB IProgressNotify_OnProgress_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IProgressNotify_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __ILayoutStorage_FWD_DEFINED__
|
|
|
|
#define __ILayoutStorage_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct ILayoutStorage ILayoutStorage;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct tagStorageLayout {
|
|
|
|
DWORD LayoutType;
|
|
|
|
OLECHAR *pwcsElementName;
|
|
|
|
LARGE_INTEGER cOffset;
|
|
|
|
LARGE_INTEGER cBytes;
|
|
|
|
} StorageLayout;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* ILayoutStorage interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __ILayoutStorage_INTERFACE_DEFINED__
|
|
|
|
#define __ILayoutStorage_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_ILayoutStorage, 0x0e6d4d90, 0x6738, 0x11cf, 0x96,0x08, 0x00,0xaa,0x00,0x68,0x0d,0xb4);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct ILayoutStorage : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE LayoutScript(
|
2002-12-19 23:15:24 +01:00
|
|
|
StorageLayout* pStorageLayout,
|
|
|
|
DWORD nEntries,
|
|
|
|
DWORD glfInterleavedFlag) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE BeginMonitor(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE EndMonitor(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE ReLayoutDocfile(
|
2002-12-19 23:15:24 +01:00
|
|
|
OLECHAR* pwcsNewDfName) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE ReLayoutDocfileOnILockBytes(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILockBytes* pILockBytes) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct ILayoutStorageVtbl ILayoutStorageVtbl;
|
|
|
|
struct ILayoutStorage {
|
|
|
|
const ILayoutStorageVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct ILayoutStorageVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILayoutStorage* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILayoutStorage* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILayoutStorage* This);
|
|
|
|
|
|
|
|
/*** ILayoutStorage methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *LayoutScript)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILayoutStorage* This,
|
|
|
|
StorageLayout* pStorageLayout,
|
|
|
|
DWORD nEntries,
|
|
|
|
DWORD glfInterleavedFlag);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *BeginMonitor)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILayoutStorage* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *EndMonitor)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILayoutStorage* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *ReLayoutDocfile)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILayoutStorage* This,
|
|
|
|
OLECHAR* pwcsNewDfName);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *ReLayoutDocfileOnILockBytes)(
|
2002-12-19 23:15:24 +01:00
|
|
|
ILayoutStorage* This,
|
|
|
|
ILockBytes* pILockBytes);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define ILayoutStorage_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define ILayoutStorage_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define ILayoutStorage_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** ILayoutStorage methods ***/
|
|
|
|
#define ILayoutStorage_LayoutScript(p,a,b,c) (p)->lpVtbl->LayoutScript(p,a,b,c)
|
|
|
|
#define ILayoutStorage_BeginMonitor(p) (p)->lpVtbl->BeginMonitor(p)
|
|
|
|
#define ILayoutStorage_EndMonitor(p) (p)->lpVtbl->EndMonitor(p)
|
|
|
|
#define ILayoutStorage_ReLayoutDocfile(p,a) (p)->lpVtbl->ReLayoutDocfile(p,a)
|
|
|
|
#define ILayoutStorage_ReLayoutDocfileOnILockBytes(p,a) (p)->lpVtbl->ReLayoutDocfileOnILockBytes(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define ILayoutStorage_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** ILayoutStorage methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,LayoutScript)(THIS_ StorageLayout* pStorageLayout, DWORD nEntries, DWORD glfInterleavedFlag) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,BeginMonitor)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,EndMonitor)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,ReLayoutDocfile)(THIS_ OLECHAR* pwcsNewDfName) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,ReLayoutDocfileOnILockBytes)(THIS_ ILockBytes* pILockBytes) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK ILayoutStorage_LayoutScript_Proxy(
|
|
|
|
ILayoutStorage* This,
|
|
|
|
StorageLayout* pStorageLayout,
|
|
|
|
DWORD nEntries,
|
|
|
|
DWORD glfInterleavedFlag);
|
|
|
|
void __RPC_STUB ILayoutStorage_LayoutScript_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ILayoutStorage_BeginMonitor_Proxy(
|
|
|
|
ILayoutStorage* This);
|
|
|
|
void __RPC_STUB ILayoutStorage_BeginMonitor_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ILayoutStorage_EndMonitor_Proxy(
|
|
|
|
ILayoutStorage* This);
|
|
|
|
void __RPC_STUB ILayoutStorage_EndMonitor_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ILayoutStorage_ReLayoutDocfile_Proxy(
|
|
|
|
ILayoutStorage* This,
|
|
|
|
OLECHAR* pwcsNewDfName);
|
|
|
|
void __RPC_STUB ILayoutStorage_ReLayoutDocfile_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK ILayoutStorage_ReLayoutDocfileOnILockBytes_Proxy(
|
|
|
|
ILayoutStorage* This,
|
|
|
|
ILockBytes* pILockBytes);
|
|
|
|
void __RPC_STUB ILayoutStorage_ReLayoutDocfileOnILockBytes_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __ILayoutStorage_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IEnumFORMATETC_FWD_DEFINED__
|
|
|
|
#define __IEnumFORMATETC_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IEnumFORMATETC IEnumFORMATETC;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IEnumFORMATETC *LPENUMFORMATETC;
|
|
|
|
|
|
|
|
typedef struct tagDVTARGETDEVICE {
|
|
|
|
DWORD tdSize;
|
|
|
|
WORD tdDriverNameOffset;
|
|
|
|
WORD tdDeviceNameOffset;
|
|
|
|
WORD tdPortNameOffset;
|
|
|
|
WORD tdExtDevmodeOffset;
|
|
|
|
BYTE tdData[1];
|
|
|
|
} DVTARGETDEVICE;
|
|
|
|
|
|
|
|
typedef CLIPFORMAT *LPCLIPFORMAT;
|
|
|
|
|
|
|
|
typedef struct tagFORMATETC {
|
|
|
|
CLIPFORMAT cfFormat;
|
|
|
|
DVTARGETDEVICE *ptd;
|
|
|
|
DWORD dwAspect;
|
|
|
|
LONG lindex;
|
|
|
|
DWORD tymed;
|
|
|
|
} FORMATETC, *LPFORMATETC;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IEnumFORMATETC interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IEnumFORMATETC_INTERFACE_DEFINED__
|
|
|
|
#define __IEnumFORMATETC_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IEnumFORMATETC, 0x00000103, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IEnumFORMATETC : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Next(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt,
|
|
|
|
FORMATETC* rgelt,
|
|
|
|
ULONG* pceltFetched) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Skip(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Reset(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Clone(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumFORMATETC** ppenum) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IEnumFORMATETCVtbl IEnumFORMATETCVtbl;
|
|
|
|
struct IEnumFORMATETC {
|
|
|
|
const IEnumFORMATETCVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IEnumFORMATETCVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumFORMATETC* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumFORMATETC* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumFORMATETC* This);
|
|
|
|
|
|
|
|
/*** IEnumFORMATETC methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Next)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumFORMATETC* This,
|
|
|
|
ULONG celt,
|
|
|
|
FORMATETC* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Skip)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumFORMATETC* This,
|
|
|
|
ULONG celt);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Reset)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumFORMATETC* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Clone)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumFORMATETC* This,
|
|
|
|
IEnumFORMATETC** ppenum);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IEnumFORMATETC_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumFORMATETC_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumFORMATETC_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IEnumFORMATETC methods ***/
|
|
|
|
#define IEnumFORMATETC_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumFORMATETC_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumFORMATETC_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumFORMATETC_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IEnumFORMATETC_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IEnumFORMATETC methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, FORMATETC* rgelt, ULONG* pceltFetched) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Clone)(THIS_ IEnumFORMATETC** ppenum) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IEnumFORMATETC_RemoteNext_Proxy(
|
|
|
|
IEnumFORMATETC* This,
|
|
|
|
ULONG celt,
|
|
|
|
FORMATETC* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
void __RPC_STUB IEnumFORMATETC_RemoteNext_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumFORMATETC_Next_Proxy(
|
|
|
|
IEnumFORMATETC* This,
|
|
|
|
ULONG celt,
|
|
|
|
FORMATETC* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT __RPC_STUB IEnumFORMATETC_Next_Stub(
|
|
|
|
IEnumFORMATETC* This,
|
|
|
|
ULONG celt,
|
|
|
|
FORMATETC* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT CALLBACK IEnumFORMATETC_Skip_Proxy(
|
|
|
|
IEnumFORMATETC* This,
|
|
|
|
ULONG celt);
|
|
|
|
void __RPC_STUB IEnumFORMATETC_Skip_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumFORMATETC_Reset_Proxy(
|
|
|
|
IEnumFORMATETC* This);
|
|
|
|
void __RPC_STUB IEnumFORMATETC_Reset_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumFORMATETC_Clone_Proxy(
|
|
|
|
IEnumFORMATETC* This,
|
|
|
|
IEnumFORMATETC** ppenum);
|
|
|
|
void __RPC_STUB IEnumFORMATETC_Clone_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IEnumFORMATETC_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IEnumSTATDATA_FWD_DEFINED__
|
|
|
|
#define __IEnumSTATDATA_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IEnumSTATDATA IEnumSTATDATA;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IEnumSTATDATA *LPENUMSTATDATA;
|
|
|
|
|
|
|
|
typedef enum tagADVF {
|
|
|
|
ADVF_NODATA = 1,
|
|
|
|
ADVF_PRIMEFIRST = 2,
|
|
|
|
ADVF_ONLYONCE = 4,
|
|
|
|
ADVF_DATAONSTOP = 64,
|
|
|
|
ADVFCACHE_NOHANDLER = 8,
|
|
|
|
ADVFCACHE_FORCEBUILTIN = 16,
|
|
|
|
ADVFCACHE_ONSAVE = 32
|
|
|
|
} ADVF;
|
|
|
|
|
|
|
|
typedef struct tagSTATDATA {
|
|
|
|
FORMATETC formatetc;
|
|
|
|
DWORD advf;
|
|
|
|
IAdviseSink *pAdvSink;
|
|
|
|
DWORD dwConnection;
|
|
|
|
} STATDATA, *LPSTATDATA;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IEnumSTATDATA interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IEnumSTATDATA_INTERFACE_DEFINED__
|
|
|
|
#define __IEnumSTATDATA_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IEnumSTATDATA, 0x00000105, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IEnumSTATDATA : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Next(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt,
|
|
|
|
STATDATA* rgelt,
|
|
|
|
ULONG* pceltFetched) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Skip(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Reset(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Clone(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATDATA** ppenum) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IEnumSTATDATAVtbl IEnumSTATDATAVtbl;
|
|
|
|
struct IEnumSTATDATA {
|
|
|
|
const IEnumSTATDATAVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IEnumSTATDATAVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATDATA* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATDATA* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATDATA* This);
|
|
|
|
|
|
|
|
/*** IEnumSTATDATA methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Next)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATDATA* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATDATA* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Skip)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATDATA* This,
|
|
|
|
ULONG celt);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Reset)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATDATA* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Clone)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATDATA* This,
|
|
|
|
IEnumSTATDATA** ppenum);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IEnumSTATDATA_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumSTATDATA_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumSTATDATA_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IEnumSTATDATA methods ***/
|
|
|
|
#define IEnumSTATDATA_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumSTATDATA_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumSTATDATA_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumSTATDATA_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IEnumSTATDATA_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IEnumSTATDATA methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, STATDATA* rgelt, ULONG* pceltFetched) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Clone)(THIS_ IEnumSTATDATA** ppenum) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IEnumSTATDATA_RemoteNext_Proxy(
|
|
|
|
IEnumSTATDATA* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATDATA* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
void __RPC_STUB IEnumSTATDATA_RemoteNext_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATDATA_Next_Proxy(
|
|
|
|
IEnumSTATDATA* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATDATA* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT __RPC_STUB IEnumSTATDATA_Next_Stub(
|
|
|
|
IEnumSTATDATA* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATDATA* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT CALLBACK IEnumSTATDATA_Skip_Proxy(
|
|
|
|
IEnumSTATDATA* This,
|
|
|
|
ULONG celt);
|
|
|
|
void __RPC_STUB IEnumSTATDATA_Skip_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATDATA_Reset_Proxy(
|
|
|
|
IEnumSTATDATA* This);
|
|
|
|
void __RPC_STUB IEnumSTATDATA_Reset_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATDATA_Clone_Proxy(
|
|
|
|
IEnumSTATDATA* This,
|
|
|
|
IEnumSTATDATA** ppenum);
|
|
|
|
void __RPC_STUB IEnumSTATDATA_Clone_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IEnumSTATDATA_INTERFACE_DEFINED__ */
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IAdviseSink *LPADVISESINK;
|
|
|
|
|
|
|
|
typedef enum tagTYMED {
|
|
|
|
TYMED_HGLOBAL = 1,
|
|
|
|
TYMED_FILE = 2,
|
|
|
|
TYMED_ISTREAM = 4,
|
|
|
|
TYMED_ISTORAGE = 8,
|
|
|
|
TYMED_GDI = 16,
|
|
|
|
TYMED_MFPICT = 32,
|
|
|
|
TYMED_ENHMF = 64,
|
|
|
|
TYMED_NULL = 0
|
|
|
|
} TYMED;
|
|
|
|
|
|
|
|
typedef struct tagRemSTGMEDIUM {
|
|
|
|
DWORD tymed;
|
|
|
|
DWORD dwHandleType;
|
|
|
|
unsigned long pData;
|
|
|
|
unsigned long pUnkForRelease;
|
|
|
|
unsigned long cbData;
|
|
|
|
byte data[1];
|
|
|
|
} RemSTGMEDIUM;
|
|
|
|
|
|
|
|
typedef struct tagSTGMEDIUM {
|
|
|
|
DWORD tymed;
|
|
|
|
union {
|
|
|
|
HBITMAP hBitmap;
|
|
|
|
HMETAFILEPICT hMetaFilePict;
|
|
|
|
HENHMETAFILE hEnhMetaFile;
|
|
|
|
HGLOBAL hGlobal;
|
|
|
|
LPOLESTR lpszFileName;
|
|
|
|
IStream *pstm;
|
|
|
|
IStorage *pstg;
|
|
|
|
} DUMMYUNIONNAME;
|
|
|
|
IUnknown *pUnkForRelease;
|
|
|
|
} uSTGMEDIUM;
|
|
|
|
|
|
|
|
typedef struct _GDI_OBJECT {
|
|
|
|
DWORD ObjectType;
|
|
|
|
union {
|
|
|
|
wireHBITMAP hBitmap;
|
|
|
|
wireHPALETTE hPalette;
|
|
|
|
wireHGLOBAL hGeneric;
|
|
|
|
} u;
|
|
|
|
} GDI_OBJECT;
|
|
|
|
|
|
|
|
typedef struct _userSTGMEDIUM {
|
|
|
|
struct _STGMEDIUM_UNION {
|
|
|
|
DWORD tymed;
|
|
|
|
union {
|
|
|
|
wireHMETAFILEPICT hMetaFilePict;
|
|
|
|
wireHENHMETAFILE hHEnhMetaFile;
|
|
|
|
GDI_OBJECT *hGdiHandle;
|
|
|
|
wireHGLOBAL hGlobal;
|
|
|
|
LPOLESTR lpszFileName;
|
|
|
|
BYTE_BLOB *pstm;
|
|
|
|
BYTE_BLOB *pstg;
|
|
|
|
} u;
|
|
|
|
} DUMMYSTRUCTNAME;
|
|
|
|
IUnknown *pUnkForRelease;
|
|
|
|
} userSTGMEDIUM;
|
|
|
|
|
|
|
|
typedef userSTGMEDIUM *wireSTGMEDIUM;
|
|
|
|
|
|
|
|
typedef uSTGMEDIUM STGMEDIUM;
|
2003-01-09 02:10:14 +01:00
|
|
|
unsigned long __RPC_USER STGMEDIUM_UserSize (unsigned long *, unsigned long, STGMEDIUM *);
|
|
|
|
unsigned char * __RPC_USER STGMEDIUM_UserMarshal (unsigned long *, unsigned char *, STGMEDIUM *);
|
|
|
|
unsigned char * __RPC_USER STGMEDIUM_UserUnmarshal(unsigned long *, unsigned char *, STGMEDIUM *);
|
|
|
|
void __RPC_USER STGMEDIUM_UserFree (unsigned long *, STGMEDIUM *);
|
2002-12-19 23:15:24 +01:00
|
|
|
|
|
|
|
typedef userSTGMEDIUM *wireASYNC_STGMEDIUM;
|
|
|
|
|
|
|
|
typedef STGMEDIUM ASYNC_STGMEDIUM;
|
2003-01-09 02:10:14 +01:00
|
|
|
unsigned long __RPC_USER ASYNC_STGMEDIUM_UserSize (unsigned long *, unsigned long, ASYNC_STGMEDIUM *);
|
|
|
|
unsigned char * __RPC_USER ASYNC_STGMEDIUM_UserMarshal (unsigned long *, unsigned char *, ASYNC_STGMEDIUM *);
|
|
|
|
unsigned char * __RPC_USER ASYNC_STGMEDIUM_UserUnmarshal(unsigned long *, unsigned char *, ASYNC_STGMEDIUM *);
|
|
|
|
void __RPC_USER ASYNC_STGMEDIUM_UserFree (unsigned long *, ASYNC_STGMEDIUM *);
|
2002-12-19 23:15:24 +01:00
|
|
|
|
|
|
|
typedef STGMEDIUM *LPSTGMEDIUM;
|
|
|
|
|
|
|
|
typedef struct _userFLAG_STGMEDIUM {
|
|
|
|
long ContextFlags;
|
|
|
|
long fPassOwnership;
|
|
|
|
userSTGMEDIUM Stgmed;
|
|
|
|
} userFLAG_STGMEDIUM;
|
|
|
|
|
|
|
|
typedef userFLAG_STGMEDIUM *wireFLAG_STGMEDIUM;
|
|
|
|
|
|
|
|
typedef struct _FLAG_STGMEDIUM {
|
|
|
|
long ContextFlags;
|
|
|
|
long fPassOwnership;
|
|
|
|
STGMEDIUM Stgmed;
|
|
|
|
} FLAG_STGMEDIUM;
|
2003-01-09 02:10:14 +01:00
|
|
|
unsigned long __RPC_USER FLAG_STGMEDIUM_UserSize (unsigned long *, unsigned long, FLAG_STGMEDIUM *);
|
|
|
|
unsigned char * __RPC_USER FLAG_STGMEDIUM_UserMarshal (unsigned long *, unsigned char *, FLAG_STGMEDIUM *);
|
|
|
|
unsigned char * __RPC_USER FLAG_STGMEDIUM_UserUnmarshal(unsigned long *, unsigned char *, FLAG_STGMEDIUM *);
|
|
|
|
void __RPC_USER FLAG_STGMEDIUM_UserFree (unsigned long *, FLAG_STGMEDIUM *);
|
2002-12-19 23:15:24 +01:00
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IAdviseSink interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IAdviseSink_INTERFACE_DEFINED__
|
|
|
|
#define __IAdviseSink_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IAdviseSink, 0x0000010f, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IAdviseSink : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE OnDataChange(
|
2002-12-19 23:15:24 +01:00
|
|
|
FORMATETC* pFormatetc,
|
|
|
|
STGMEDIUM* pStgmed) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE OnViewChange(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwAspect,
|
|
|
|
LONG lindex) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE OnRename(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* pmk) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE OnSave(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE OnClose(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IAdviseSinkVtbl IAdviseSinkVtbl;
|
|
|
|
struct IAdviseSink {
|
|
|
|
const IAdviseSinkVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IAdviseSinkVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink* This);
|
|
|
|
|
|
|
|
/*** IAdviseSink methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnDataChange)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink* This,
|
|
|
|
FORMATETC* pFormatetc,
|
|
|
|
STGMEDIUM* pStgmed);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnViewChange)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink* This,
|
|
|
|
DWORD dwAspect,
|
|
|
|
LONG lindex);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnRename)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink* This,
|
|
|
|
IMoniker* pmk);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnSave)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnClose)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink* This);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IAdviseSink_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IAdviseSink_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IAdviseSink_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IAdviseSink methods ***/
|
|
|
|
#define IAdviseSink_OnDataChange(p,a,b) (p)->lpVtbl->OnDataChange(p,a,b)
|
|
|
|
#define IAdviseSink_OnViewChange(p,a,b) (p)->lpVtbl->OnViewChange(p,a,b)
|
|
|
|
#define IAdviseSink_OnRename(p,a) (p)->lpVtbl->OnRename(p,a)
|
|
|
|
#define IAdviseSink_OnSave(p) (p)->lpVtbl->OnSave(p)
|
|
|
|
#define IAdviseSink_OnClose(p) (p)->lpVtbl->OnClose(p)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IAdviseSink_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IAdviseSink methods ***/ \
|
|
|
|
STDMETHOD_(void,OnDataChange)(THIS_ FORMATETC* pFormatetc, STGMEDIUM* pStgmed) PURE; \
|
|
|
|
STDMETHOD_(void,OnViewChange)(THIS_ DWORD dwAspect, LONG lindex) PURE; \
|
|
|
|
STDMETHOD_(void,OnRename)(THIS_ IMoniker* pmk) PURE; \
|
|
|
|
STDMETHOD_(void,OnSave)(THIS) PURE; \
|
|
|
|
STDMETHOD_(void,OnClose)(THIS) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IAdviseSink_RemoteOnDataChange_Proxy(
|
|
|
|
IAdviseSink* This,
|
|
|
|
IAsyncManager** ppIAM,
|
|
|
|
FORMATETC* pFormatetc,
|
|
|
|
ASYNC_STGMEDIUM* pStgmed);
|
|
|
|
void __RPC_STUB IAdviseSink_RemoteOnDataChange_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IAdviseSink_OnDataChange_Proxy(
|
|
|
|
IAdviseSink* This,
|
|
|
|
FORMATETC* pFormatetc,
|
|
|
|
STGMEDIUM* pStgmed);
|
|
|
|
HRESULT __RPC_STUB IAdviseSink_OnDataChange_Stub(
|
|
|
|
IAdviseSink* This,
|
|
|
|
IAsyncManager** ppIAM,
|
|
|
|
FORMATETC* pFormatetc,
|
|
|
|
ASYNC_STGMEDIUM* pStgmed);
|
|
|
|
HRESULT CALLBACK IAdviseSink_RemoteOnViewChange_Proxy(
|
|
|
|
IAdviseSink* This,
|
|
|
|
IAsyncManager** ppIAM,
|
|
|
|
DWORD dwAspect,
|
|
|
|
LONG lindex);
|
|
|
|
void __RPC_STUB IAdviseSink_RemoteOnViewChange_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IAdviseSink_OnViewChange_Proxy(
|
|
|
|
IAdviseSink* This,
|
|
|
|
DWORD dwAspect,
|
|
|
|
LONG lindex);
|
|
|
|
HRESULT __RPC_STUB IAdviseSink_OnViewChange_Stub(
|
|
|
|
IAdviseSink* This,
|
|
|
|
IAsyncManager** ppIAM,
|
|
|
|
DWORD dwAspect,
|
|
|
|
LONG lindex);
|
|
|
|
HRESULT CALLBACK IAdviseSink_RemoteOnRename_Proxy(
|
|
|
|
IAdviseSink* This,
|
|
|
|
IAsyncManager** ppIAM,
|
|
|
|
IMoniker* pmk);
|
|
|
|
void __RPC_STUB IAdviseSink_RemoteOnRename_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IAdviseSink_OnRename_Proxy(
|
|
|
|
IAdviseSink* This,
|
|
|
|
IMoniker* pmk);
|
|
|
|
HRESULT __RPC_STUB IAdviseSink_OnRename_Stub(
|
|
|
|
IAdviseSink* This,
|
|
|
|
IAsyncManager** ppIAM,
|
|
|
|
IMoniker* pmk);
|
|
|
|
HRESULT CALLBACK IAdviseSink_RemoteOnSave_Proxy(
|
|
|
|
IAdviseSink* This,
|
|
|
|
IAsyncManager** ppIAM);
|
|
|
|
void __RPC_STUB IAdviseSink_RemoteOnSave_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IAdviseSink_OnSave_Proxy(
|
|
|
|
IAdviseSink* This);
|
|
|
|
HRESULT __RPC_STUB IAdviseSink_OnSave_Stub(
|
|
|
|
IAdviseSink* This,
|
|
|
|
IAsyncManager** ppIAM);
|
|
|
|
HRESULT CALLBACK IAdviseSink_RemoteOnClose_Proxy(
|
|
|
|
IAdviseSink* This);
|
|
|
|
void __RPC_STUB IAdviseSink_RemoteOnClose_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IAdviseSink_OnClose_Proxy(
|
|
|
|
IAdviseSink* This);
|
|
|
|
HRESULT __RPC_STUB IAdviseSink_OnClose_Stub(
|
|
|
|
IAdviseSink* This);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IAdviseSink_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IAdviseSink2_FWD_DEFINED__
|
|
|
|
#define __IAdviseSink2_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IAdviseSink2 IAdviseSink2;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IAdviseSink2 *LPADVISESINK2;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IAdviseSink2 interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IAdviseSink2_INTERFACE_DEFINED__
|
|
|
|
#define __IAdviseSink2_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IAdviseSink2, 0x00000125, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IAdviseSink2 : public IAdviseSink
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE OnLinkSrcChange(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMoniker* pmk) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IAdviseSink2Vtbl IAdviseSink2Vtbl;
|
|
|
|
struct IAdviseSink2 {
|
|
|
|
const IAdviseSink2Vtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IAdviseSink2Vtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink2* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink2* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink2* This);
|
|
|
|
|
|
|
|
/*** IAdviseSink methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnDataChange)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink2* This,
|
|
|
|
FORMATETC* pFormatetc,
|
|
|
|
STGMEDIUM* pStgmed);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnViewChange)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink2* This,
|
|
|
|
DWORD dwAspect,
|
|
|
|
LONG lindex);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnRename)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink2* This,
|
|
|
|
IMoniker* pmk);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnSave)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink2* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnClose)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink2* This);
|
|
|
|
|
|
|
|
/*** IAdviseSink2 methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *OnLinkSrcChange)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAdviseSink2* This,
|
|
|
|
IMoniker* pmk);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IAdviseSink2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IAdviseSink2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IAdviseSink2_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IAdviseSink methods ***/
|
|
|
|
#define IAdviseSink2_OnDataChange(p,a,b) (p)->lpVtbl->OnDataChange(p,a,b)
|
|
|
|
#define IAdviseSink2_OnViewChange(p,a,b) (p)->lpVtbl->OnViewChange(p,a,b)
|
|
|
|
#define IAdviseSink2_OnRename(p,a) (p)->lpVtbl->OnRename(p,a)
|
|
|
|
#define IAdviseSink2_OnSave(p) (p)->lpVtbl->OnSave(p)
|
|
|
|
#define IAdviseSink2_OnClose(p) (p)->lpVtbl->OnClose(p)
|
|
|
|
/*** IAdviseSink2 methods ***/
|
|
|
|
#define IAdviseSink2_OnLinkSrcChange(p,a) (p)->lpVtbl->OnLinkSrcChange(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IAdviseSink2_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IAdviseSink methods ***/ \
|
|
|
|
STDMETHOD_(void,OnDataChange)(THIS_ FORMATETC* pFormatetc, STGMEDIUM* pStgmed) PURE; \
|
|
|
|
STDMETHOD_(void,OnViewChange)(THIS_ DWORD dwAspect, LONG lindex) PURE; \
|
|
|
|
STDMETHOD_(void,OnRename)(THIS_ IMoniker* pmk) PURE; \
|
|
|
|
STDMETHOD_(void,OnSave)(THIS) PURE; \
|
|
|
|
STDMETHOD_(void,OnClose)(THIS) PURE; \
|
|
|
|
/*** IAdviseSink2 methods ***/ \
|
|
|
|
STDMETHOD_(void,OnLinkSrcChange)(THIS_ IMoniker* pmk) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IAdviseSink2_RemoteOnLinkSrcChange_Proxy(
|
|
|
|
IAdviseSink2* This,
|
|
|
|
IAsyncManager** ppIAM,
|
|
|
|
IMoniker* pmk);
|
|
|
|
void __RPC_STUB IAdviseSink2_RemoteOnLinkSrcChange_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IAdviseSink2_OnLinkSrcChange_Proxy(
|
|
|
|
IAdviseSink2* This,
|
|
|
|
IMoniker* pmk);
|
|
|
|
HRESULT __RPC_STUB IAdviseSink2_OnLinkSrcChange_Stub(
|
|
|
|
IAdviseSink2* This,
|
|
|
|
IAsyncManager** ppIAM,
|
|
|
|
IMoniker* pmk);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IAdviseSink2_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IDataObject_FWD_DEFINED__
|
|
|
|
#define __IDataObject_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IDataObject IDataObject;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IDataObject *LPDATAOBJECT;
|
|
|
|
|
|
|
|
typedef enum tagDATADIR {
|
|
|
|
DATADIR_GET = 1,
|
|
|
|
DATADIR_SET = 2
|
|
|
|
} DATADIR;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDataObject interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IDataObject_INTERFACE_DEFINED__
|
|
|
|
#define __IDataObject_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IDataObject, 0x0000010e, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IDataObject : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetData(
|
2002-12-19 23:15:24 +01:00
|
|
|
FORMATETC* pformatetcIn,
|
|
|
|
STGMEDIUM* pmedium) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetDataHere(
|
2002-12-19 23:15:24 +01:00
|
|
|
FORMATETC* pformatetc,
|
|
|
|
STGMEDIUM* pmedium) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE QueryGetData(
|
2002-12-19 23:15:24 +01:00
|
|
|
FORMATETC* pformatetc) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetCanonicalFormatEtc(
|
2002-12-19 23:15:24 +01:00
|
|
|
FORMATETC* pformatectIn,
|
|
|
|
FORMATETC* pformatetcOut) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetData(
|
2002-12-19 23:15:24 +01:00
|
|
|
FORMATETC* pformatetc,
|
|
|
|
STGMEDIUM* pmedium,
|
|
|
|
BOOL fRelease) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE EnumFormatEtc(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwDirection,
|
|
|
|
IEnumFORMATETC** ppenumFormatEtc) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE DAdvise(
|
2002-12-19 23:15:24 +01:00
|
|
|
FORMATETC* pformatetc,
|
|
|
|
DWORD advf,
|
|
|
|
IAdviseSink* pAdvSink,
|
|
|
|
DWORD* pdwConnection) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE DUnadvise(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwConnection) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE EnumDAdvise(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATDATA** ppenumAdvise) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IDataObjectVtbl IDataObjectVtbl;
|
|
|
|
struct IDataObject {
|
|
|
|
const IDataObjectVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IDataObjectVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This);
|
|
|
|
|
|
|
|
/*** IDataObject methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetData)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetcIn,
|
|
|
|
STGMEDIUM* pmedium);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetDataHere)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc,
|
|
|
|
STGMEDIUM* pmedium);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryGetData)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetCanonicalFormatEtc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatectIn,
|
|
|
|
FORMATETC* pformatetcOut);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetData)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc,
|
|
|
|
STGMEDIUM* pmedium,
|
|
|
|
BOOL fRelease);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *EnumFormatEtc)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This,
|
|
|
|
DWORD dwDirection,
|
|
|
|
IEnumFORMATETC** ppenumFormatEtc);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *DAdvise)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc,
|
|
|
|
DWORD advf,
|
|
|
|
IAdviseSink* pAdvSink,
|
|
|
|
DWORD* pdwConnection);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *DUnadvise)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This,
|
|
|
|
DWORD dwConnection);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *EnumDAdvise)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* This,
|
|
|
|
IEnumSTATDATA** ppenumAdvise);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IDataObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IDataObject_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IDataObject_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IDataObject methods ***/
|
|
|
|
#define IDataObject_GetData(p,a,b) (p)->lpVtbl->GetData(p,a,b)
|
|
|
|
#define IDataObject_GetDataHere(p,a,b) (p)->lpVtbl->GetDataHere(p,a,b)
|
|
|
|
#define IDataObject_QueryGetData(p,a) (p)->lpVtbl->QueryGetData(p,a)
|
|
|
|
#define IDataObject_GetCanonicalFormatEtc(p,a,b) (p)->lpVtbl->GetCanonicalFormatEtc(p,a,b)
|
|
|
|
#define IDataObject_SetData(p,a,b,c) (p)->lpVtbl->SetData(p,a,b,c)
|
|
|
|
#define IDataObject_EnumFormatEtc(p,a,b) (p)->lpVtbl->EnumFormatEtc(p,a,b)
|
|
|
|
#define IDataObject_DAdvise(p,a,b,c,d) (p)->lpVtbl->DAdvise(p,a,b,c,d)
|
|
|
|
#define IDataObject_DUnadvise(p,a) (p)->lpVtbl->DUnadvise(p,a)
|
|
|
|
#define IDataObject_EnumDAdvise(p,a) (p)->lpVtbl->EnumDAdvise(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IDataObject_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IDataObject methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetData)(THIS_ FORMATETC* pformatetcIn, STGMEDIUM* pmedium) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetDataHere)(THIS_ FORMATETC* pformatetc, STGMEDIUM* pmedium) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,QueryGetData)(THIS_ FORMATETC* pformatetc) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetCanonicalFormatEtc)(THIS_ FORMATETC* pformatectIn, FORMATETC* pformatetcOut) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetData)(THIS_ FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,EnumFormatEtc)(THIS_ DWORD dwDirection, IEnumFORMATETC** ppenumFormatEtc) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,DAdvise)(THIS_ FORMATETC* pformatetc, DWORD advf, IAdviseSink* pAdvSink, DWORD* pdwConnection) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,DUnadvise)(THIS_ DWORD dwConnection) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,EnumDAdvise)(THIS_ IEnumSTATDATA** ppenumAdvise) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IDataObject_RemoteGetData_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetcIn,
|
|
|
|
STGMEDIUM* pRemoteMedium);
|
|
|
|
void __RPC_STUB IDataObject_RemoteGetData_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataObject_GetData_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetcIn,
|
|
|
|
STGMEDIUM* pmedium);
|
|
|
|
HRESULT __RPC_STUB IDataObject_GetData_Stub(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetcIn,
|
|
|
|
STGMEDIUM* pRemoteMedium);
|
|
|
|
HRESULT CALLBACK IDataObject_RemoteGetDataHere_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc,
|
|
|
|
STGMEDIUM* pRemoteMedium);
|
|
|
|
void __RPC_STUB IDataObject_RemoteGetDataHere_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataObject_GetDataHere_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc,
|
|
|
|
STGMEDIUM* pmedium);
|
|
|
|
HRESULT __RPC_STUB IDataObject_GetDataHere_Stub(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc,
|
|
|
|
STGMEDIUM* pRemoteMedium);
|
|
|
|
HRESULT CALLBACK IDataObject_QueryGetData_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc);
|
|
|
|
void __RPC_STUB IDataObject_QueryGetData_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataObject_GetCanonicalFormatEtc_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatectIn,
|
|
|
|
FORMATETC* pformatetcOut);
|
|
|
|
void __RPC_STUB IDataObject_GetCanonicalFormatEtc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataObject_RemoteSetData_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc,
|
|
|
|
FLAG_STGMEDIUM* pmedium,
|
|
|
|
BOOL fRelease);
|
|
|
|
void __RPC_STUB IDataObject_RemoteSetData_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataObject_SetData_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc,
|
|
|
|
STGMEDIUM* pmedium,
|
|
|
|
BOOL fRelease);
|
|
|
|
HRESULT __RPC_STUB IDataObject_SetData_Stub(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc,
|
|
|
|
FLAG_STGMEDIUM* pmedium,
|
|
|
|
BOOL fRelease);
|
|
|
|
HRESULT CALLBACK IDataObject_EnumFormatEtc_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
DWORD dwDirection,
|
|
|
|
IEnumFORMATETC** ppenumFormatEtc);
|
|
|
|
void __RPC_STUB IDataObject_EnumFormatEtc_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataObject_DAdvise_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
FORMATETC* pformatetc,
|
|
|
|
DWORD advf,
|
|
|
|
IAdviseSink* pAdvSink,
|
|
|
|
DWORD* pdwConnection);
|
|
|
|
void __RPC_STUB IDataObject_DAdvise_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataObject_DUnadvise_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
DWORD dwConnection);
|
|
|
|
void __RPC_STUB IDataObject_DUnadvise_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataObject_EnumDAdvise_Proxy(
|
|
|
|
IDataObject* This,
|
|
|
|
IEnumSTATDATA** ppenumAdvise);
|
|
|
|
void __RPC_STUB IDataObject_EnumDAdvise_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IDataObject_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IDataAdviseHolder_FWD_DEFINED__
|
|
|
|
#define __IDataAdviseHolder_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IDataAdviseHolder IDataAdviseHolder;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IDataAdviseHolder *LPDATAADVISEHOLDER;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IDataAdviseHolder interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IDataAdviseHolder_INTERFACE_DEFINED__
|
|
|
|
#define __IDataAdviseHolder_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IDataAdviseHolder, 0x00000110, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IDataAdviseHolder : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Advise(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* pDataObject,
|
|
|
|
FORMATETC* pFetc,
|
|
|
|
DWORD advf,
|
|
|
|
IAdviseSink* pAdvise,
|
|
|
|
DWORD* pdwConnection) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Unadvise(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwConnection) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE EnumAdvise(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATDATA** ppenumAdvise) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SendOnDataChange(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataObject* pDataObject,
|
|
|
|
DWORD dwReserved,
|
|
|
|
DWORD advf) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IDataAdviseHolderVtbl IDataAdviseHolderVtbl;
|
|
|
|
struct IDataAdviseHolder {
|
|
|
|
const IDataAdviseHolderVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IDataAdviseHolderVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataAdviseHolder* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataAdviseHolder* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataAdviseHolder* This);
|
|
|
|
|
|
|
|
/*** IDataAdviseHolder methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Advise)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataAdviseHolder* This,
|
|
|
|
IDataObject* pDataObject,
|
|
|
|
FORMATETC* pFetc,
|
|
|
|
DWORD advf,
|
|
|
|
IAdviseSink* pAdvise,
|
|
|
|
DWORD* pdwConnection);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Unadvise)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataAdviseHolder* This,
|
|
|
|
DWORD dwConnection);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *EnumAdvise)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataAdviseHolder* This,
|
|
|
|
IEnumSTATDATA** ppenumAdvise);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SendOnDataChange)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IDataAdviseHolder* This,
|
|
|
|
IDataObject* pDataObject,
|
|
|
|
DWORD dwReserved,
|
|
|
|
DWORD advf);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IDataAdviseHolder_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IDataAdviseHolder_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IDataAdviseHolder_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IDataAdviseHolder methods ***/
|
|
|
|
#define IDataAdviseHolder_Advise(p,a,b,c,d,e) (p)->lpVtbl->Advise(p,a,b,c,d,e)
|
|
|
|
#define IDataAdviseHolder_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a)
|
|
|
|
#define IDataAdviseHolder_EnumAdvise(p,a) (p)->lpVtbl->EnumAdvise(p,a)
|
|
|
|
#define IDataAdviseHolder_SendOnDataChange(p,a,b,c) (p)->lpVtbl->SendOnDataChange(p,a,b,c)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IDataAdviseHolder_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IDataAdviseHolder methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Advise)(THIS_ IDataObject* pDataObject, FORMATETC* pFetc, DWORD advf, IAdviseSink* pAdvise, DWORD* pdwConnection) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Unadvise)(THIS_ DWORD dwConnection) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,EnumAdvise)(THIS_ IEnumSTATDATA** ppenumAdvise) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SendOnDataChange)(THIS_ IDataObject* pDataObject, DWORD dwReserved, DWORD advf) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IDataAdviseHolder_Advise_Proxy(
|
|
|
|
IDataAdviseHolder* This,
|
|
|
|
IDataObject* pDataObject,
|
|
|
|
FORMATETC* pFetc,
|
|
|
|
DWORD advf,
|
|
|
|
IAdviseSink* pAdvise,
|
|
|
|
DWORD* pdwConnection);
|
|
|
|
void __RPC_STUB IDataAdviseHolder_Advise_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataAdviseHolder_Unadvise_Proxy(
|
|
|
|
IDataAdviseHolder* This,
|
|
|
|
DWORD dwConnection);
|
|
|
|
void __RPC_STUB IDataAdviseHolder_Unadvise_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataAdviseHolder_EnumAdvise_Proxy(
|
|
|
|
IDataAdviseHolder* This,
|
|
|
|
IEnumSTATDATA** ppenumAdvise);
|
|
|
|
void __RPC_STUB IDataAdviseHolder_EnumAdvise_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IDataAdviseHolder_SendOnDataChange_Proxy(
|
|
|
|
IDataAdviseHolder* This,
|
|
|
|
IDataObject* pDataObject,
|
|
|
|
DWORD dwReserved,
|
|
|
|
DWORD advf);
|
|
|
|
void __RPC_STUB IDataAdviseHolder_SendOnDataChange_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IDataAdviseHolder_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IMessageFilter_FWD_DEFINED__
|
|
|
|
#define __IMessageFilter_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IMessageFilter IMessageFilter;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IMessageFilter *LPMESSAGEFILTER;
|
|
|
|
|
|
|
|
typedef enum tagCALLTYPE {
|
|
|
|
CALLTYPE_TOPLEVEL = 1,
|
|
|
|
CALLTYPE_NESTED = 2,
|
|
|
|
CALLTYPE_ASYNC = 3,
|
|
|
|
CALLTYPE_TOPLEVEL_CALLPENDING = 4,
|
|
|
|
CALLTYPE_ASYNC_CALLPENDING = 5
|
|
|
|
} CALLTYPE;
|
|
|
|
|
|
|
|
typedef enum tagSERVERCALL {
|
|
|
|
SERVERCALL_ISHANDLED = 0,
|
|
|
|
SERVERCALL_REJECTED = 1,
|
|
|
|
SERVERCALL_RETRYLATER = 2
|
|
|
|
} SERVERCALL;
|
|
|
|
|
|
|
|
typedef enum tagPENDINGTYPE {
|
|
|
|
PENDINGTYPE_TOPLEVEL = 1,
|
|
|
|
PENDINGTYPE_NESTED = 2
|
|
|
|
} PENDINGTYPE;
|
|
|
|
|
|
|
|
typedef enum tagPENDINGMSG {
|
|
|
|
PENDINGMSG_CANCELCALL = 0,
|
|
|
|
PENDINGMSG_WAITNOPROCESS = 1,
|
|
|
|
PENDINGMSG_WAITDEFPROCESS = 2
|
|
|
|
} PENDINGMSG;
|
|
|
|
|
|
|
|
typedef struct tagINTERFACEINFO {
|
|
|
|
IUnknown *pUnk;
|
|
|
|
IID iid;
|
|
|
|
WORD wMethod;
|
|
|
|
} INTERFACEINFO, *LPINTERFACEINFO;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IMessageFilter interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IMessageFilter_INTERFACE_DEFINED__
|
|
|
|
#define __IMessageFilter_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IMessageFilter, 0x00000016, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IMessageFilter : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual DWORD STDMETHODCALLTYPE HandleInComingCall(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD dwCallType,
|
|
|
|
HTASK htaskCaller,
|
|
|
|
DWORD dwTickCount,
|
|
|
|
LPINTERFACEINFO lpInterfaceInfo) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual DWORD STDMETHODCALLTYPE RetryRejectedCall(
|
2002-12-19 23:15:24 +01:00
|
|
|
HTASK htaskCallee,
|
|
|
|
DWORD dwTickCount,
|
|
|
|
DWORD dwRejectType) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual DWORD STDMETHODCALLTYPE MessagePending(
|
2002-12-19 23:15:24 +01:00
|
|
|
HTASK htaskCallee,
|
|
|
|
DWORD dwTickCount,
|
|
|
|
DWORD dwPendingType) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IMessageFilterVtbl IMessageFilterVtbl;
|
|
|
|
struct IMessageFilter {
|
|
|
|
const IMessageFilterVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IMessageFilterVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMessageFilter* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMessageFilter* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMessageFilter* This);
|
|
|
|
|
|
|
|
/*** IMessageFilter methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
DWORD (STDMETHODCALLTYPE *HandleInComingCall)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMessageFilter* This,
|
|
|
|
DWORD dwCallType,
|
|
|
|
HTASK htaskCaller,
|
|
|
|
DWORD dwTickCount,
|
|
|
|
LPINTERFACEINFO lpInterfaceInfo);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
DWORD (STDMETHODCALLTYPE *RetryRejectedCall)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMessageFilter* This,
|
|
|
|
HTASK htaskCallee,
|
|
|
|
DWORD dwTickCount,
|
|
|
|
DWORD dwRejectType);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
DWORD (STDMETHODCALLTYPE *MessagePending)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IMessageFilter* This,
|
|
|
|
HTASK htaskCallee,
|
|
|
|
DWORD dwTickCount,
|
|
|
|
DWORD dwPendingType);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IMessageFilter_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IMessageFilter_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IMessageFilter_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IMessageFilter methods ***/
|
|
|
|
#define IMessageFilter_HandleInComingCall(p,a,b,c,d) (p)->lpVtbl->HandleInComingCall(p,a,b,c,d)
|
|
|
|
#define IMessageFilter_RetryRejectedCall(p,a,b,c) (p)->lpVtbl->RetryRejectedCall(p,a,b,c)
|
|
|
|
#define IMessageFilter_MessagePending(p,a,b,c) (p)->lpVtbl->MessagePending(p,a,b,c)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IMessageFilter_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IMessageFilter methods ***/ \
|
|
|
|
STDMETHOD_(DWORD,HandleInComingCall)(THIS_ DWORD dwCallType, HTASK htaskCaller, DWORD dwTickCount, LPINTERFACEINFO lpInterfaceInfo) PURE; \
|
|
|
|
STDMETHOD_(DWORD,RetryRejectedCall)(THIS_ HTASK htaskCallee, DWORD dwTickCount, DWORD dwRejectType) PURE; \
|
|
|
|
STDMETHOD_(DWORD,MessagePending)(THIS_ HTASK htaskCallee, DWORD dwTickCount, DWORD dwPendingType) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD CALLBACK IMessageFilter_HandleInComingCall_Proxy(
|
|
|
|
IMessageFilter* This,
|
|
|
|
DWORD dwCallType,
|
|
|
|
HTASK htaskCaller,
|
|
|
|
DWORD dwTickCount,
|
|
|
|
LPINTERFACEINFO lpInterfaceInfo);
|
|
|
|
void __RPC_STUB IMessageFilter_HandleInComingCall_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
DWORD CALLBACK IMessageFilter_RetryRejectedCall_Proxy(
|
|
|
|
IMessageFilter* This,
|
|
|
|
HTASK htaskCallee,
|
|
|
|
DWORD dwTickCount,
|
|
|
|
DWORD dwRejectType);
|
|
|
|
void __RPC_STUB IMessageFilter_RetryRejectedCall_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
DWORD CALLBACK IMessageFilter_MessagePending_Proxy(
|
|
|
|
IMessageFilter* This,
|
|
|
|
HTASK htaskCallee,
|
|
|
|
DWORD dwTickCount,
|
|
|
|
DWORD dwPendingType);
|
|
|
|
void __RPC_STUB IMessageFilter_MessagePending_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IMessageFilter_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IRpcChannelBuffer_FWD_DEFINED__
|
|
|
|
#define __IRpcChannelBuffer_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IRpcChannelBuffer IRpcChannelBuffer;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IRpcChannelBuffer *LPRPCCHANNELBUFFER;
|
|
|
|
|
|
|
|
typedef unsigned long RPCOLEDATAREP;
|
|
|
|
|
|
|
|
typedef struct tagRPCOLEMESSAGE {
|
|
|
|
void *reserved1;
|
|
|
|
RPCOLEDATAREP dataRepresentation;
|
|
|
|
void *Buffer;
|
|
|
|
ULONG cbBuffer;
|
|
|
|
ULONG iMethod;
|
|
|
|
void *reserved2[5];
|
|
|
|
ULONG rpcFlags;
|
|
|
|
} RPCOLEMESSAGE;
|
|
|
|
|
|
|
|
typedef RPCOLEMESSAGE *PRPCOLEMESSAGE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IRpcChannelBuffer interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IRpcChannelBuffer_INTERFACE_DEFINED__
|
|
|
|
#define __IRpcChannelBuffer_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IRpcChannelBuffer, 0xd5f56b60, 0x593b, 0x101a, 0xb5,0x69, 0x08,0x00,0x2b,0x2d,0xbf,0x7a);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IRpcChannelBuffer : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetBuffer(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* pMessage,
|
|
|
|
REFIID riid) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SendReceive(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* pMessage,
|
|
|
|
ULONG* pStatus) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE FreeBuffer(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* pMessage) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetDestCtx(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD* pdwDestContext,
|
|
|
|
void** ppvDestContext) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE IsConnected(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IRpcChannelBufferVtbl IRpcChannelBufferVtbl;
|
|
|
|
struct IRpcChannelBuffer {
|
|
|
|
const IRpcChannelBufferVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IRpcChannelBufferVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer* This);
|
|
|
|
|
|
|
|
/*** IRpcChannelBuffer methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetBuffer)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer* This,
|
|
|
|
RPCOLEMESSAGE* pMessage,
|
|
|
|
REFIID riid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SendReceive)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer* This,
|
|
|
|
RPCOLEMESSAGE* pMessage,
|
|
|
|
ULONG* pStatus);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *FreeBuffer)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer* This,
|
|
|
|
RPCOLEMESSAGE* pMessage);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetDestCtx)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer* This,
|
|
|
|
DWORD* pdwDestContext,
|
|
|
|
void** ppvDestContext);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsConnected)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer* This);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IRpcChannelBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IRpcChannelBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IRpcChannelBuffer_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IRpcChannelBuffer methods ***/
|
|
|
|
#define IRpcChannelBuffer_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
|
|
|
|
#define IRpcChannelBuffer_SendReceive(p,a,b) (p)->lpVtbl->SendReceive(p,a,b)
|
|
|
|
#define IRpcChannelBuffer_FreeBuffer(p,a) (p)->lpVtbl->FreeBuffer(p,a)
|
|
|
|
#define IRpcChannelBuffer_GetDestCtx(p,a,b) (p)->lpVtbl->GetDestCtx(p,a,b)
|
|
|
|
#define IRpcChannelBuffer_IsConnected(p) (p)->lpVtbl->IsConnected(p)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IRpcChannelBuffer_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IRpcChannelBuffer methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetBuffer)(THIS_ RPCOLEMESSAGE* pMessage, REFIID riid) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SendReceive)(THIS_ RPCOLEMESSAGE* pMessage, ULONG* pStatus) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,FreeBuffer)(THIS_ RPCOLEMESSAGE* pMessage) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetDestCtx)(THIS_ DWORD* pdwDestContext, void** ppvDestContext) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,IsConnected)(THIS) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IRpcChannelBuffer_GetBuffer_Proxy(
|
|
|
|
IRpcChannelBuffer* This,
|
|
|
|
RPCOLEMESSAGE* pMessage,
|
|
|
|
REFIID riid);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer_GetBuffer_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcChannelBuffer_SendReceive_Proxy(
|
|
|
|
IRpcChannelBuffer* This,
|
|
|
|
RPCOLEMESSAGE* pMessage,
|
|
|
|
ULONG* pStatus);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer_SendReceive_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcChannelBuffer_FreeBuffer_Proxy(
|
|
|
|
IRpcChannelBuffer* This,
|
|
|
|
RPCOLEMESSAGE* pMessage);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer_FreeBuffer_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcChannelBuffer_GetDestCtx_Proxy(
|
|
|
|
IRpcChannelBuffer* This,
|
|
|
|
DWORD* pdwDestContext,
|
|
|
|
void** ppvDestContext);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer_GetDestCtx_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcChannelBuffer_IsConnected_Proxy(
|
|
|
|
IRpcChannelBuffer* This);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer_IsConnected_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IRpcChannelBuffer_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IRpcChannelBuffer2_FWD_DEFINED__
|
|
|
|
#define __IRpcChannelBuffer2_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IRpcChannelBuffer2 IRpcChannelBuffer2;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IRpcChannelBuffer2 *LPRPCCHANNELBUFFER2;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IRpcChannelBuffer2 interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IRpcChannelBuffer2_INTERFACE_DEFINED__
|
|
|
|
#define __IRpcChannelBuffer2_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IRpcChannelBuffer2, 0x594f31d0, 0x7f19, 0x11d0, 0xb1,0x94, 0x00,0xa0,0xc9,0x0d,0xc8,0xbf);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IRpcChannelBuffer2 : public IRpcChannelBuffer
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetProtocolVersion(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD* pdwVersion) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IRpcChannelBuffer2Vtbl IRpcChannelBuffer2Vtbl;
|
|
|
|
struct IRpcChannelBuffer2 {
|
|
|
|
const IRpcChannelBuffer2Vtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IRpcChannelBuffer2Vtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer2* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer2* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer2* This);
|
|
|
|
|
|
|
|
/*** IRpcChannelBuffer methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetBuffer)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer2* This,
|
|
|
|
RPCOLEMESSAGE* pMessage,
|
|
|
|
REFIID riid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SendReceive)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer2* This,
|
|
|
|
RPCOLEMESSAGE* pMessage,
|
|
|
|
ULONG* pStatus);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *FreeBuffer)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer2* This,
|
|
|
|
RPCOLEMESSAGE* pMessage);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetDestCtx)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer2* This,
|
|
|
|
DWORD* pdwDestContext,
|
|
|
|
void** ppvDestContext);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsConnected)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer2* This);
|
|
|
|
|
|
|
|
/*** IRpcChannelBuffer2 methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetProtocolVersion)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer2* This,
|
|
|
|
DWORD* pdwVersion);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IRpcChannelBuffer2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IRpcChannelBuffer2_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IRpcChannelBuffer2_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IRpcChannelBuffer methods ***/
|
|
|
|
#define IRpcChannelBuffer2_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
|
|
|
|
#define IRpcChannelBuffer2_SendReceive(p,a,b) (p)->lpVtbl->SendReceive(p,a,b)
|
|
|
|
#define IRpcChannelBuffer2_FreeBuffer(p,a) (p)->lpVtbl->FreeBuffer(p,a)
|
|
|
|
#define IRpcChannelBuffer2_GetDestCtx(p,a,b) (p)->lpVtbl->GetDestCtx(p,a,b)
|
|
|
|
#define IRpcChannelBuffer2_IsConnected(p) (p)->lpVtbl->IsConnected(p)
|
|
|
|
/*** IRpcChannelBuffer2 methods ***/
|
|
|
|
#define IRpcChannelBuffer2_GetProtocolVersion(p,a) (p)->lpVtbl->GetProtocolVersion(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IRpcChannelBuffer2_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IRpcChannelBuffer methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetBuffer)(THIS_ RPCOLEMESSAGE* pMessage, REFIID riid) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SendReceive)(THIS_ RPCOLEMESSAGE* pMessage, ULONG* pStatus) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,FreeBuffer)(THIS_ RPCOLEMESSAGE* pMessage) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetDestCtx)(THIS_ DWORD* pdwDestContext, void** ppvDestContext) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,IsConnected)(THIS) PURE; \
|
|
|
|
/*** IRpcChannelBuffer2 methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetProtocolVersion)(THIS_ DWORD* pdwVersion) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IRpcChannelBuffer2_GetProtocolVersion_Proxy(
|
|
|
|
IRpcChannelBuffer2* This,
|
|
|
|
DWORD* pdwVersion);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer2_GetProtocolVersion_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IRpcChannelBuffer2_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IRpcChannelBuffer3_FWD_DEFINED__
|
|
|
|
#define __IRpcChannelBuffer3_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IRpcChannelBuffer3 IRpcChannelBuffer3;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IRpcChannelBuffer3 *LPRPCCHANNELBUFFER3;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IRpcChannelBuffer3 interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IRpcChannelBuffer3_INTERFACE_DEFINED__
|
|
|
|
#define __IRpcChannelBuffer3_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IRpcChannelBuffer3, 0x25b15600, 0x0115, 0x11d0, 0xbf,0x0d, 0x00,0xaa,0x00,0xb8,0xdf,0xd2);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IRpcChannelBuffer3 : public IRpcChannelBuffer2
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Send(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
ULONG* pulStatus) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Receive(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
ULONG ulSize,
|
|
|
|
ULONG* pulStatus) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Cancel(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* pMsg) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetCallContext(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
REFIID riid,
|
|
|
|
void** pInterface) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetDestCtxEx(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
DWORD* pdwDestContext,
|
|
|
|
void** ppvDestContext) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetState(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
DWORD* pState) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RegisterAsync(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
IAsyncManager* pAsyncMgr) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IRpcChannelBuffer3Vtbl IRpcChannelBuffer3Vtbl;
|
|
|
|
struct IRpcChannelBuffer3 {
|
|
|
|
const IRpcChannelBuffer3Vtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IRpcChannelBuffer3Vtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This);
|
|
|
|
|
|
|
|
/*** IRpcChannelBuffer methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetBuffer)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMessage,
|
|
|
|
REFIID riid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SendReceive)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMessage,
|
|
|
|
ULONG* pStatus);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *FreeBuffer)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMessage);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetDestCtx)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
DWORD* pdwDestContext,
|
|
|
|
void** ppvDestContext);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *IsConnected)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This);
|
|
|
|
|
|
|
|
/*** IRpcChannelBuffer2 methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetProtocolVersion)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
DWORD* pdwVersion);
|
|
|
|
|
|
|
|
/*** IRpcChannelBuffer3 methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Send)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
ULONG* pulStatus);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Receive)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
ULONG ulSize,
|
|
|
|
ULONG* pulStatus);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Cancel)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetCallContext)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
REFIID riid,
|
|
|
|
void** pInterface);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetDestCtxEx)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
DWORD* pdwDestContext,
|
|
|
|
void** ppvDestContext);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetState)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
DWORD* pState);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RegisterAsync)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
IAsyncManager* pAsyncMgr);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IRpcChannelBuffer3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IRpcChannelBuffer3_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IRpcChannelBuffer3_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IRpcChannelBuffer methods ***/
|
|
|
|
#define IRpcChannelBuffer3_GetBuffer(p,a,b) (p)->lpVtbl->GetBuffer(p,a,b)
|
|
|
|
#define IRpcChannelBuffer3_SendReceive(p,a,b) (p)->lpVtbl->SendReceive(p,a,b)
|
|
|
|
#define IRpcChannelBuffer3_FreeBuffer(p,a) (p)->lpVtbl->FreeBuffer(p,a)
|
|
|
|
#define IRpcChannelBuffer3_GetDestCtx(p,a,b) (p)->lpVtbl->GetDestCtx(p,a,b)
|
|
|
|
#define IRpcChannelBuffer3_IsConnected(p) (p)->lpVtbl->IsConnected(p)
|
|
|
|
/*** IRpcChannelBuffer2 methods ***/
|
|
|
|
#define IRpcChannelBuffer3_GetProtocolVersion(p,a) (p)->lpVtbl->GetProtocolVersion(p,a)
|
|
|
|
/*** IRpcChannelBuffer3 methods ***/
|
|
|
|
#define IRpcChannelBuffer3_Send(p,a,b) (p)->lpVtbl->Send(p,a,b)
|
|
|
|
#define IRpcChannelBuffer3_Receive(p,a,b,c) (p)->lpVtbl->Receive(p,a,b,c)
|
|
|
|
#define IRpcChannelBuffer3_Cancel(p,a) (p)->lpVtbl->Cancel(p,a)
|
|
|
|
#define IRpcChannelBuffer3_GetCallContext(p,a,b,c) (p)->lpVtbl->GetCallContext(p,a,b,c)
|
|
|
|
#define IRpcChannelBuffer3_GetDestCtxEx(p,a,b,c) (p)->lpVtbl->GetDestCtxEx(p,a,b,c)
|
|
|
|
#define IRpcChannelBuffer3_GetState(p,a,b) (p)->lpVtbl->GetState(p,a,b)
|
|
|
|
#define IRpcChannelBuffer3_RegisterAsync(p,a,b) (p)->lpVtbl->RegisterAsync(p,a,b)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IRpcChannelBuffer3_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IRpcChannelBuffer methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetBuffer)(THIS_ RPCOLEMESSAGE* pMessage, REFIID riid) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SendReceive)(THIS_ RPCOLEMESSAGE* pMessage, ULONG* pStatus) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,FreeBuffer)(THIS_ RPCOLEMESSAGE* pMessage) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetDestCtx)(THIS_ DWORD* pdwDestContext, void** ppvDestContext) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,IsConnected)(THIS) PURE; \
|
|
|
|
/*** IRpcChannelBuffer2 methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetProtocolVersion)(THIS_ DWORD* pdwVersion) PURE; \
|
|
|
|
/*** IRpcChannelBuffer3 methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Send)(THIS_ RPCOLEMESSAGE* pMsg, ULONG* pulStatus) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Receive)(THIS_ RPCOLEMESSAGE* pMsg, ULONG ulSize, ULONG* pulStatus) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Cancel)(THIS_ RPCOLEMESSAGE* pMsg) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetCallContext)(THIS_ RPCOLEMESSAGE* pMsg, REFIID riid, void** pInterface) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetDestCtxEx)(THIS_ RPCOLEMESSAGE* pMsg, DWORD* pdwDestContext, void** ppvDestContext) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetState)(THIS_ RPCOLEMESSAGE* pMsg, DWORD* pState) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,RegisterAsync)(THIS_ RPCOLEMESSAGE* pMsg, IAsyncManager* pAsyncMgr) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IRpcChannelBuffer3_Send_Proxy(
|
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
ULONG* pulStatus);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer3_Send_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcChannelBuffer3_Receive_Proxy(
|
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
ULONG ulSize,
|
|
|
|
ULONG* pulStatus);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer3_Receive_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcChannelBuffer3_Cancel_Proxy(
|
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer3_Cancel_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcChannelBuffer3_GetCallContext_Proxy(
|
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
REFIID riid,
|
|
|
|
void** pInterface);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer3_GetCallContext_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcChannelBuffer3_GetDestCtxEx_Proxy(
|
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
DWORD* pdwDestContext,
|
|
|
|
void** ppvDestContext);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer3_GetDestCtxEx_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcChannelBuffer3_GetState_Proxy(
|
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
DWORD* pState);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer3_GetState_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcChannelBuffer3_RegisterAsync_Proxy(
|
|
|
|
IRpcChannelBuffer3* This,
|
|
|
|
RPCOLEMESSAGE* pMsg,
|
|
|
|
IAsyncManager* pAsyncMgr);
|
|
|
|
void __RPC_STUB IRpcChannelBuffer3_RegisterAsync_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IRpcChannelBuffer3_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IRpcProxyBuffer_FWD_DEFINED__
|
|
|
|
#define __IRpcProxyBuffer_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IRpcProxyBuffer IRpcProxyBuffer;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IRpcProxyBuffer *LPRPCPROXYBUFFER;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IRpcProxyBuffer interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IRpcProxyBuffer_INTERFACE_DEFINED__
|
|
|
|
#define __IRpcProxyBuffer_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IRpcProxyBuffer, 0xd5f56a34, 0x593b, 0x101a, 0xb5,0x69, 0x08,0x00,0x2b,0x2d,0xbf,0x7a);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IRpcProxyBuffer : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Connect(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcChannelBuffer* pRpcChannelBuffer) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE Disconnect(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IRpcProxyBufferVtbl IRpcProxyBufferVtbl;
|
|
|
|
struct IRpcProxyBuffer {
|
|
|
|
const IRpcProxyBufferVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IRpcProxyBufferVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcProxyBuffer* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcProxyBuffer* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcProxyBuffer* This);
|
|
|
|
|
|
|
|
/*** IRpcProxyBuffer methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Connect)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcProxyBuffer* This,
|
|
|
|
IRpcChannelBuffer* pRpcChannelBuffer);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *Disconnect)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcProxyBuffer* This);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IRpcProxyBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IRpcProxyBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IRpcProxyBuffer_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IRpcProxyBuffer methods ***/
|
|
|
|
#define IRpcProxyBuffer_Connect(p,a) (p)->lpVtbl->Connect(p,a)
|
|
|
|
#define IRpcProxyBuffer_Disconnect(p) (p)->lpVtbl->Disconnect(p)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IRpcProxyBuffer_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IRpcProxyBuffer methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Connect)(THIS_ IRpcChannelBuffer* pRpcChannelBuffer) PURE; \
|
|
|
|
STDMETHOD_(void,Disconnect)(THIS) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IRpcProxyBuffer_Connect_Proxy(
|
|
|
|
IRpcProxyBuffer* This,
|
|
|
|
IRpcChannelBuffer* pRpcChannelBuffer);
|
|
|
|
void __RPC_STUB IRpcProxyBuffer_Connect_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IRpcProxyBuffer_Disconnect_Proxy(
|
|
|
|
IRpcProxyBuffer* This);
|
|
|
|
void __RPC_STUB IRpcProxyBuffer_Disconnect_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IRpcProxyBuffer_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IRpcStubBuffer_FWD_DEFINED__
|
|
|
|
#define __IRpcStubBuffer_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IRpcStubBuffer IRpcStubBuffer;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IRpcStubBuffer *LPRPCSTUBBUFFER;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IRpcStubBuffer interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IRpcStubBuffer_INTERFACE_DEFINED__
|
|
|
|
#define __IRpcStubBuffer_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IRpcStubBuffer, 0xd5f56afc, 0x593b, 0x101a, 0xb5,0x69, 0x08,0x00,0x2b,0x2d,0xbf,0x7a);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IRpcStubBuffer : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Connect(
|
2002-12-19 23:15:24 +01:00
|
|
|
IUnknown* pUnkServer) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE Disconnect(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Invoke(
|
2002-12-19 23:15:24 +01:00
|
|
|
RPCOLEMESSAGE* _prpcmsg,
|
|
|
|
IRpcChannelBuffer* _pRpcChannelBuffer) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual IRpcStubBuffer* STDMETHODCALLTYPE IsIIDSupported(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFIID riid) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual ULONG STDMETHODCALLTYPE CountRefs(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE DebugServerQueryInterface(
|
2002-12-19 23:15:24 +01:00
|
|
|
void** ppv) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE DebugServerRelease(
|
2002-12-19 23:15:24 +01:00
|
|
|
void* pv) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IRpcStubBufferVtbl IRpcStubBufferVtbl;
|
|
|
|
struct IRpcStubBuffer {
|
|
|
|
const IRpcStubBufferVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IRpcStubBufferVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcStubBuffer* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcStubBuffer* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcStubBuffer* This);
|
|
|
|
|
|
|
|
/*** IRpcStubBuffer methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Connect)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcStubBuffer* This,
|
|
|
|
IUnknown* pUnkServer);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *Disconnect)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcStubBuffer* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Invoke)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcStubBuffer* This,
|
|
|
|
RPCOLEMESSAGE* _prpcmsg,
|
|
|
|
IRpcChannelBuffer* _pRpcChannelBuffer);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
IRpcStubBuffer* (STDMETHODCALLTYPE *IsIIDSupported)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcStubBuffer* This,
|
|
|
|
REFIID riid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *CountRefs)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcStubBuffer* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *DebugServerQueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcStubBuffer* This,
|
|
|
|
void** ppv);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *DebugServerRelease)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IRpcStubBuffer* This,
|
|
|
|
void* pv);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IRpcStubBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IRpcStubBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IRpcStubBuffer_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IRpcStubBuffer methods ***/
|
|
|
|
#define IRpcStubBuffer_Connect(p,a) (p)->lpVtbl->Connect(p,a)
|
|
|
|
#define IRpcStubBuffer_Disconnect(p) (p)->lpVtbl->Disconnect(p)
|
|
|
|
#define IRpcStubBuffer_Invoke(p,a,b) (p)->lpVtbl->Invoke(p,a,b)
|
|
|
|
#define IRpcStubBuffer_IsIIDSupported(p,a) (p)->lpVtbl->IsIIDSupported(p,a)
|
|
|
|
#define IRpcStubBuffer_CountRefs(p) (p)->lpVtbl->CountRefs(p)
|
|
|
|
#define IRpcStubBuffer_DebugServerQueryInterface(p,a) (p)->lpVtbl->DebugServerQueryInterface(p,a)
|
|
|
|
#define IRpcStubBuffer_DebugServerRelease(p,a) (p)->lpVtbl->DebugServerRelease(p,a)
|
|
|
|
|
2001-07-18 22:04:08 +02:00
|
|
|
#endif
|
2002-12-19 23:15:24 +01:00
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IRpcStubBuffer_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IRpcStubBuffer methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Connect)(THIS_ IUnknown* pUnkServer) PURE; \
|
|
|
|
STDMETHOD_(void,Disconnect)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Invoke)(THIS_ RPCOLEMESSAGE* _prpcmsg, IRpcChannelBuffer* _pRpcChannelBuffer) PURE; \
|
|
|
|
STDMETHOD_(IRpcStubBuffer*,IsIIDSupported)(THIS_ REFIID riid) PURE; \
|
|
|
|
STDMETHOD_(ULONG,CountRefs)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,DebugServerQueryInterface)(THIS_ void** ppv) PURE; \
|
|
|
|
STDMETHOD_(void,DebugServerRelease)(THIS_ void* pv) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IRpcStubBuffer_Connect_Proxy(
|
|
|
|
IRpcStubBuffer* This,
|
|
|
|
IUnknown* pUnkServer);
|
|
|
|
void __RPC_STUB IRpcStubBuffer_Connect_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IRpcStubBuffer_Disconnect_Proxy(
|
|
|
|
IRpcStubBuffer* This);
|
|
|
|
void __RPC_STUB IRpcStubBuffer_Disconnect_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcStubBuffer_Invoke_Proxy(
|
|
|
|
IRpcStubBuffer* This,
|
|
|
|
RPCOLEMESSAGE* _prpcmsg,
|
|
|
|
IRpcChannelBuffer* _pRpcChannelBuffer);
|
|
|
|
void __RPC_STUB IRpcStubBuffer_Invoke_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
IRpcStubBuffer* CALLBACK IRpcStubBuffer_IsIIDSupported_Proxy(
|
|
|
|
IRpcStubBuffer* This,
|
|
|
|
REFIID riid);
|
|
|
|
void __RPC_STUB IRpcStubBuffer_IsIIDSupported_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
ULONG CALLBACK IRpcStubBuffer_CountRefs_Proxy(
|
|
|
|
IRpcStubBuffer* This);
|
|
|
|
void __RPC_STUB IRpcStubBuffer_CountRefs_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IRpcStubBuffer_DebugServerQueryInterface_Proxy(
|
|
|
|
IRpcStubBuffer* This,
|
|
|
|
void** ppv);
|
|
|
|
void __RPC_STUB IRpcStubBuffer_DebugServerQueryInterface_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IRpcStubBuffer_DebugServerRelease_Proxy(
|
|
|
|
IRpcStubBuffer* This,
|
|
|
|
void* pv);
|
|
|
|
void __RPC_STUB IRpcStubBuffer_DebugServerRelease_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IRpcStubBuffer_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IPSFactoryBuffer_FWD_DEFINED__
|
|
|
|
#define __IPSFactoryBuffer_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IPSFactoryBuffer IPSFactoryBuffer;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IPSFactoryBuffer *LPPSFACTORYBUFFER;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IPSFactoryBuffer interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IPSFactoryBuffer_INTERFACE_DEFINED__
|
|
|
|
#define __IPSFactoryBuffer_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IPSFactoryBuffer, 0xd5f569d0, 0x593b, 0x101a, 0xb5,0x69, 0x08,0x00,0x2b,0x2d,0xbf,0x7a);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IPSFactoryBuffer : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CreateProxy(
|
2002-12-19 23:15:24 +01:00
|
|
|
IUnknown* pUnkOuter,
|
|
|
|
REFIID riid,
|
|
|
|
IRpcProxyBuffer** ppProxy,
|
|
|
|
void** ppv) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CreateStub(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFIID riid,
|
|
|
|
IUnknown* pUnkServer,
|
|
|
|
IRpcStubBuffer** ppStub) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IPSFactoryBufferVtbl IPSFactoryBufferVtbl;
|
|
|
|
struct IPSFactoryBuffer {
|
|
|
|
const IPSFactoryBufferVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IPSFactoryBufferVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPSFactoryBuffer* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPSFactoryBuffer* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPSFactoryBuffer* This);
|
|
|
|
|
|
|
|
/*** IPSFactoryBuffer methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CreateProxy)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPSFactoryBuffer* This,
|
|
|
|
IUnknown* pUnkOuter,
|
|
|
|
REFIID riid,
|
|
|
|
IRpcProxyBuffer** ppProxy,
|
|
|
|
void** ppv);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CreateStub)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPSFactoryBuffer* This,
|
|
|
|
REFIID riid,
|
|
|
|
IUnknown* pUnkServer,
|
|
|
|
IRpcStubBuffer** ppStub);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IPSFactoryBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IPSFactoryBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IPSFactoryBuffer_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IPSFactoryBuffer methods ***/
|
|
|
|
#define IPSFactoryBuffer_CreateProxy(p,a,b,c,d) (p)->lpVtbl->CreateProxy(p,a,b,c,d)
|
|
|
|
#define IPSFactoryBuffer_CreateStub(p,a,b,c) (p)->lpVtbl->CreateStub(p,a,b,c)
|
|
|
|
|
2001-07-18 22:04:08 +02:00
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IPSFactoryBuffer_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IPSFactoryBuffer methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,CreateProxy)(THIS_ IUnknown* pUnkOuter, REFIID riid, IRpcProxyBuffer** ppProxy, void** ppv) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,CreateStub)(THIS_ REFIID riid, IUnknown* pUnkServer, IRpcStubBuffer** ppStub) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IPSFactoryBuffer_CreateProxy_Proxy(
|
|
|
|
IPSFactoryBuffer* This,
|
|
|
|
IUnknown* pUnkOuter,
|
|
|
|
REFIID riid,
|
|
|
|
IRpcProxyBuffer** ppProxy,
|
|
|
|
void** ppv);
|
|
|
|
void __RPC_STUB IPSFactoryBuffer_CreateProxy_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPSFactoryBuffer_CreateStub_Proxy(
|
|
|
|
IPSFactoryBuffer* This,
|
|
|
|
REFIID riid,
|
|
|
|
IUnknown* pUnkServer,
|
|
|
|
IRpcStubBuffer** ppStub);
|
|
|
|
void __RPC_STUB IPSFactoryBuffer_CreateStub_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IPSFactoryBuffer_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IChannelHook_FWD_DEFINED__
|
|
|
|
#define __IChannelHook_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IChannelHook IChannelHook;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IChannelHook *LPCHANNELHOOK;
|
|
|
|
|
|
|
|
typedef struct SChannelHookCallInfo {
|
|
|
|
IID iid;
|
|
|
|
DWORD cbSize;
|
|
|
|
GUID uCausality;
|
|
|
|
DWORD dwServerPid;
|
|
|
|
DWORD iMethod;
|
|
|
|
void *pObject;
|
|
|
|
} SChannelHookCallInfo;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IChannelHook interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IChannelHook_INTERFACE_DEFINED__
|
|
|
|
#define __IChannelHook_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IChannelHook, 0x1008c4a0, 0x7613, 0x11cf, 0x9a,0xf1, 0x00,0x20,0xaf,0x6e,0x72,0xf4);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IChannelHook : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE ClientGetSize(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG* pDataSize) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE ClientFillBuffer(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG* pDataSize,
|
|
|
|
void* pDataBuffer) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE ClientNotify(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG cbDataSize,
|
|
|
|
void* pDataBuffer,
|
|
|
|
DWORD lDataRep,
|
|
|
|
HRESULT hrFault) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE ServerNotify(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG cbDataSize,
|
|
|
|
void* pDataBuffer,
|
|
|
|
DWORD lDataRep) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE ServerGetSize(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
HRESULT hrFault,
|
|
|
|
ULONG* pDataSize) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual void STDMETHODCALLTYPE ServerFillBuffer(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG* pDataSize,
|
|
|
|
void* pDataBuffer,
|
|
|
|
HRESULT hrFault) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IChannelHookVtbl IChannelHookVtbl;
|
|
|
|
struct IChannelHook {
|
|
|
|
const IChannelHookVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IChannelHookVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IChannelHook* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IChannelHook* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IChannelHook* This);
|
|
|
|
|
|
|
|
/*** IChannelHook methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *ClientGetSize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG* pDataSize);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *ClientFillBuffer)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG* pDataSize,
|
|
|
|
void* pDataBuffer);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *ClientNotify)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG cbDataSize,
|
|
|
|
void* pDataBuffer,
|
|
|
|
DWORD lDataRep,
|
|
|
|
HRESULT hrFault);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *ServerNotify)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG cbDataSize,
|
|
|
|
void* pDataBuffer,
|
|
|
|
DWORD lDataRep);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *ServerGetSize)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
HRESULT hrFault,
|
|
|
|
ULONG* pDataSize);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
void (STDMETHODCALLTYPE *ServerFillBuffer)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG* pDataSize,
|
|
|
|
void* pDataBuffer,
|
|
|
|
HRESULT hrFault);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IChannelHook_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IChannelHook_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IChannelHook_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IChannelHook methods ***/
|
|
|
|
#define IChannelHook_ClientGetSize(p,a,b,c) (p)->lpVtbl->ClientGetSize(p,a,b,c)
|
|
|
|
#define IChannelHook_ClientFillBuffer(p,a,b,c,d) (p)->lpVtbl->ClientFillBuffer(p,a,b,c,d)
|
|
|
|
#define IChannelHook_ClientNotify(p,a,b,c,d,e,f) (p)->lpVtbl->ClientNotify(p,a,b,c,d,e,f)
|
|
|
|
#define IChannelHook_ServerNotify(p,a,b,c,d,e) (p)->lpVtbl->ServerNotify(p,a,b,c,d,e)
|
|
|
|
#define IChannelHook_ServerGetSize(p,a,b,c,d) (p)->lpVtbl->ServerGetSize(p,a,b,c,d)
|
|
|
|
#define IChannelHook_ServerFillBuffer(p,a,b,c,d,e) (p)->lpVtbl->ServerFillBuffer(p,a,b,c,d,e)
|
1999-01-17 17:32:32 +01:00
|
|
|
|
2002-12-05 21:33:07 +01:00
|
|
|
#endif
|
1999-01-17 17:32:32 +01:00
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IChannelHook_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IChannelHook methods ***/ \
|
|
|
|
STDMETHOD_(void,ClientGetSize)(THIS_ REFGUID uExtent, REFIID riid, ULONG* pDataSize) PURE; \
|
|
|
|
STDMETHOD_(void,ClientFillBuffer)(THIS_ REFGUID uExtent, REFIID riid, ULONG* pDataSize, void* pDataBuffer) PURE; \
|
|
|
|
STDMETHOD_(void,ClientNotify)(THIS_ REFGUID uExtent, REFIID riid, ULONG cbDataSize, void* pDataBuffer, DWORD lDataRep, HRESULT hrFault) PURE; \
|
|
|
|
STDMETHOD_(void,ServerNotify)(THIS_ REFGUID uExtent, REFIID riid, ULONG cbDataSize, void* pDataBuffer, DWORD lDataRep) PURE; \
|
|
|
|
STDMETHOD_(void,ServerGetSize)(THIS_ REFGUID uExtent, REFIID riid, HRESULT hrFault, ULONG* pDataSize) PURE; \
|
|
|
|
STDMETHOD_(void,ServerFillBuffer)(THIS_ REFGUID uExtent, REFIID riid, ULONG* pDataSize, void* pDataBuffer, HRESULT hrFault) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
void CALLBACK IChannelHook_ClientGetSize_Proxy(
|
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG* pDataSize);
|
|
|
|
void __RPC_STUB IChannelHook_ClientGetSize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IChannelHook_ClientFillBuffer_Proxy(
|
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG* pDataSize,
|
|
|
|
void* pDataBuffer);
|
|
|
|
void __RPC_STUB IChannelHook_ClientFillBuffer_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IChannelHook_ClientNotify_Proxy(
|
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG cbDataSize,
|
|
|
|
void* pDataBuffer,
|
|
|
|
DWORD lDataRep,
|
|
|
|
HRESULT hrFault);
|
|
|
|
void __RPC_STUB IChannelHook_ClientNotify_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IChannelHook_ServerNotify_Proxy(
|
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG cbDataSize,
|
|
|
|
void* pDataBuffer,
|
|
|
|
DWORD lDataRep);
|
|
|
|
void __RPC_STUB IChannelHook_ServerNotify_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IChannelHook_ServerGetSize_Proxy(
|
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
HRESULT hrFault,
|
|
|
|
ULONG* pDataSize);
|
|
|
|
void __RPC_STUB IChannelHook_ServerGetSize_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
void CALLBACK IChannelHook_ServerFillBuffer_Proxy(
|
|
|
|
IChannelHook* This,
|
|
|
|
REFGUID uExtent,
|
|
|
|
REFIID riid,
|
|
|
|
ULONG* pDataSize,
|
|
|
|
void* pDataBuffer,
|
|
|
|
HRESULT hrFault);
|
|
|
|
void __RPC_STUB IChannelHook_ServerFillBuffer_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IChannelHook_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IEnumSTATPROPSTG_FWD_DEFINED__
|
|
|
|
#define __IEnumSTATPROPSTG_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IEnumSTATPROPSTG IEnumSTATPROPSTG;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IEnumSTATPROPSETSTG_FWD_DEFINED__
|
|
|
|
#define __IEnumSTATPROPSETSTG_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IEnumSTATPROPSETSTG IEnumSTATPROPSETSTG;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __IPropertyStorage_FWD_DEFINED__
|
|
|
|
#define __IPropertyStorage_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IPropertyStorage IPropertyStorage;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IPropertyStorage *LPPROPERTYSTORAGE;
|
|
|
|
|
|
|
|
extern const FMTID FMTID_SummaryInformation;
|
|
|
|
|
|
|
|
extern const FMTID FMTID_DocSummaryInformation;
|
|
|
|
|
|
|
|
extern const FMTID FMTID_UserDefinedProperties;
|
|
|
|
|
|
|
|
#define PROPSETFLAG_DEFAULT (0)
|
|
|
|
|
|
|
|
#define PROPSETFLAG_NONSIMPLE (1)
|
|
|
|
|
|
|
|
#define PROPSETFLAG_ANSI (2)
|
|
|
|
|
|
|
|
#define PROPSETFLAG_UNBUFFERED (4)
|
|
|
|
|
|
|
|
typedef struct tagPROPVARIANT PROPVARIANT;
|
|
|
|
|
|
|
|
typedef struct tagCAUB {
|
|
|
|
ULONG cElems;
|
|
|
|
unsigned char *pElems;
|
|
|
|
} CAUB;
|
|
|
|
|
|
|
|
typedef struct tagCAI {
|
|
|
|
ULONG cElems;
|
|
|
|
short *pElems;
|
|
|
|
} CAI;
|
|
|
|
|
|
|
|
typedef struct tagCAUI {
|
|
|
|
ULONG cElems;
|
|
|
|
USHORT *pElems;
|
|
|
|
} CAUI;
|
|
|
|
|
|
|
|
typedef struct tagCAL {
|
|
|
|
ULONG cElems;
|
|
|
|
long *pElems;
|
|
|
|
} CAL;
|
|
|
|
|
|
|
|
typedef struct tagCAUL {
|
|
|
|
ULONG cElems;
|
|
|
|
ULONG *pElems;
|
|
|
|
} CAUL;
|
|
|
|
|
|
|
|
typedef struct tagCAFLT {
|
|
|
|
ULONG cElems;
|
|
|
|
float *pElems;
|
|
|
|
} CAFLT;
|
|
|
|
|
|
|
|
typedef struct tagCADBL {
|
|
|
|
ULONG cElems;
|
|
|
|
double *pElems;
|
|
|
|
} CADBL;
|
|
|
|
|
|
|
|
typedef struct tagCACY {
|
|
|
|
ULONG cElems;
|
|
|
|
CY *pElems;
|
|
|
|
} CACY;
|
|
|
|
|
|
|
|
typedef struct tagCADATE {
|
|
|
|
ULONG cElems;
|
|
|
|
DATE *pElems;
|
|
|
|
} CADATE;
|
|
|
|
|
|
|
|
typedef struct tagCABSTR {
|
|
|
|
ULONG cElems;
|
|
|
|
BSTR *pElems;
|
|
|
|
} CABSTR;
|
|
|
|
|
|
|
|
typedef struct tagCABSTRBLOB {
|
|
|
|
ULONG cElems;
|
|
|
|
BSTRBLOB *pElems;
|
|
|
|
} CABSTRBLOB;
|
|
|
|
|
|
|
|
typedef struct tagCABOOL {
|
|
|
|
ULONG cElems;
|
|
|
|
VARIANT_BOOL *pElems;
|
|
|
|
} CABOOL;
|
|
|
|
|
|
|
|
typedef struct tagCASCODE {
|
|
|
|
ULONG cElems;
|
|
|
|
SCODE *pElems;
|
|
|
|
} CASCODE;
|
|
|
|
|
|
|
|
typedef struct tagCAPROPVARIANT {
|
|
|
|
ULONG cElems;
|
|
|
|
PROPVARIANT *pElems;
|
|
|
|
} CAPROPVARIANT;
|
|
|
|
|
|
|
|
typedef struct tagCAH {
|
|
|
|
ULONG cElems;
|
|
|
|
LARGE_INTEGER *pElems;
|
|
|
|
} CAH;
|
|
|
|
|
|
|
|
typedef struct tagCAUH {
|
|
|
|
ULONG cElems;
|
|
|
|
ULARGE_INTEGER *pElems;
|
|
|
|
} CAUH;
|
|
|
|
|
|
|
|
typedef struct tagCALPSTR {
|
|
|
|
ULONG cElems;
|
|
|
|
LPSTR *pElems;
|
|
|
|
} CALPSTR;
|
|
|
|
|
|
|
|
typedef struct tagCALPWSTR {
|
|
|
|
ULONG cElems;
|
|
|
|
LPWSTR *pElems;
|
|
|
|
} CALPWSTR;
|
|
|
|
|
|
|
|
typedef struct tagCAFILETIME {
|
|
|
|
ULONG cElems;
|
|
|
|
FILETIME *pElems;
|
|
|
|
} CAFILETIME;
|
|
|
|
|
|
|
|
typedef struct tagCACLIPDATA {
|
|
|
|
ULONG cElems;
|
|
|
|
CLIPDATA *pElems;
|
|
|
|
} CACLIPDATA;
|
|
|
|
|
|
|
|
typedef struct tagCACLSID {
|
|
|
|
ULONG cElems;
|
|
|
|
CLSID *pElems;
|
|
|
|
} CACLSID;
|
|
|
|
|
|
|
|
struct tagPROPVARIANT {
|
|
|
|
VARTYPE vt;
|
|
|
|
WORD wReserved1;
|
|
|
|
WORD wReserved2;
|
|
|
|
WORD wReserved3;
|
|
|
|
union {
|
2003-05-13 02:32:43 +02:00
|
|
|
char cVal;
|
2002-12-19 23:15:24 +01:00
|
|
|
UCHAR bVal;
|
|
|
|
short iVal;
|
|
|
|
USHORT uiVal;
|
|
|
|
VARIANT_BOOL boolVal;
|
|
|
|
long lVal;
|
|
|
|
ULONG ulVal;
|
|
|
|
float fltVal;
|
|
|
|
SCODE scode;
|
|
|
|
LARGE_INTEGER hVal;
|
|
|
|
ULARGE_INTEGER uhVal;
|
|
|
|
double dblVal;
|
|
|
|
CY cyVal;
|
|
|
|
DATE date;
|
|
|
|
FILETIME filetime;
|
|
|
|
CLSID *puuid;
|
|
|
|
BLOB blob;
|
|
|
|
CLIPDATA *pclipdata;
|
|
|
|
IStream *pStream;
|
|
|
|
IStorage *pStorage;
|
|
|
|
BSTR bstrVal;
|
|
|
|
BSTRBLOB bstrblobVal;
|
|
|
|
LPSTR pszVal;
|
|
|
|
LPWSTR pwszVal;
|
|
|
|
CAUB caub;
|
|
|
|
CAI cai;
|
|
|
|
CAUI caui;
|
|
|
|
CABOOL cabool;
|
|
|
|
CAL cal;
|
|
|
|
CAUL caul;
|
|
|
|
CAFLT caflt;
|
|
|
|
CASCODE cascode;
|
|
|
|
CAH cah;
|
|
|
|
CAUH cauh;
|
|
|
|
CADBL cadbl;
|
|
|
|
CACY cacy;
|
|
|
|
CADATE cadate;
|
|
|
|
CAFILETIME cafiletime;
|
|
|
|
CACLSID cauuid;
|
|
|
|
CACLIPDATA caclipdata;
|
|
|
|
CABSTR cabstr;
|
|
|
|
CABSTRBLOB cabstrblob;
|
|
|
|
CALPSTR calpstr;
|
|
|
|
CALPWSTR calpwstr;
|
|
|
|
CAPROPVARIANT capropvar;
|
|
|
|
} DUMMYUNIONNAME;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct tagPROPVARIANT *LPPROPVARIANT;
|
|
|
|
|
|
|
|
#define PRSPEC_INVALID (0x7fffffff)
|
|
|
|
|
|
|
|
#define PRSPEC_LPWSTR (0)
|
|
|
|
|
|
|
|
#define PRSPEC_PROPID (1)
|
|
|
|
|
|
|
|
typedef struct tagPROPSPEC {
|
|
|
|
ULONG ulKind;
|
|
|
|
union {
|
|
|
|
PROPID propid;
|
|
|
|
LPOLESTR lpwstr;
|
|
|
|
} DUMMYUNIONNAME;
|
|
|
|
} PROPSPEC;
|
|
|
|
|
|
|
|
typedef struct tagSTATPROPSTG {
|
|
|
|
LPOLESTR lpwstrName;
|
|
|
|
PROPID propid;
|
|
|
|
VARTYPE vt;
|
|
|
|
} STATPROPSTG;
|
|
|
|
|
|
|
|
typedef struct tagSTATPROPSETSTG {
|
|
|
|
FMTID fmtid;
|
|
|
|
CLSID clsid;
|
|
|
|
DWORD grfFlags;
|
|
|
|
FILETIME mtime;
|
|
|
|
FILETIME ctime;
|
|
|
|
FILETIME atime;
|
|
|
|
DWORD dwOSVersion;
|
|
|
|
} STATPROPSETSTG;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IPropertyStorage interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IPropertyStorage_INTERFACE_DEFINED__
|
|
|
|
#define __IPropertyStorage_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IPropertyStorage, 0x00000138, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IPropertyStorage : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE ReadMultiple(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG cpspec,
|
|
|
|
const PROPSPEC rgpspec[],
|
|
|
|
PROPVARIANT rgpropvar[]) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE WriteMultiple(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG cpspec,
|
|
|
|
const PROPSPEC rgpspec[],
|
|
|
|
const PROPVARIANT rgpropvar[],
|
|
|
|
PROPID propidNameFirst) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE DeleteMultiple(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG cpspec,
|
|
|
|
const PROPSPEC rgpspec[]) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE ReadPropertyNames(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG cpropid,
|
|
|
|
const PROPID rgpropid[],
|
|
|
|
LPOLESTR rglpwstrName[]) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE WritePropertyNames(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG cpropid,
|
|
|
|
const PROPID rgpropid[],
|
|
|
|
const LPOLESTR rglpwstrName[]) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE DeletePropertyNames(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG cpropid,
|
|
|
|
const PROPID rgpropid[]) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Commit(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD grfCommitFlags) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Revert(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Enum(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSTG** ppenum) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetTimes(
|
2002-12-19 23:15:24 +01:00
|
|
|
const FILETIME* pctime,
|
|
|
|
const FILETIME* patime,
|
|
|
|
const FILETIME* pmtime) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetClass(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFCLSID clsid) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Stat(
|
2002-12-19 23:15:24 +01:00
|
|
|
STATPROPSETSTG* statpsstg) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IPropertyStorageVtbl IPropertyStorageVtbl;
|
|
|
|
struct IPropertyStorage {
|
|
|
|
const IPropertyStorageVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IPropertyStorageVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This);
|
|
|
|
|
|
|
|
/*** IPropertyStorage methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *ReadMultiple)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpspec,
|
|
|
|
const PROPSPEC rgpspec[],
|
|
|
|
PROPVARIANT rgpropvar[]);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *WriteMultiple)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpspec,
|
|
|
|
const PROPSPEC rgpspec[],
|
|
|
|
const PROPVARIANT rgpropvar[],
|
|
|
|
PROPID propidNameFirst);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *DeleteMultiple)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpspec,
|
|
|
|
const PROPSPEC rgpspec[]);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *ReadPropertyNames)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpropid,
|
|
|
|
const PROPID rgpropid[],
|
|
|
|
LPOLESTR rglpwstrName[]);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *WritePropertyNames)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpropid,
|
|
|
|
const PROPID rgpropid[],
|
|
|
|
const LPOLESTR rglpwstrName[]);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *DeletePropertyNames)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpropid,
|
|
|
|
const PROPID rgpropid[]);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Commit)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
DWORD grfCommitFlags);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Revert)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Enum)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
IEnumSTATPROPSTG** ppenum);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetTimes)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
const FILETIME* pctime,
|
|
|
|
const FILETIME* patime,
|
|
|
|
const FILETIME* pmtime);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetClass)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
REFCLSID clsid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Stat)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertyStorage* This,
|
|
|
|
STATPROPSETSTG* statpsstg);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IPropertyStorage_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IPropertyStorage_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IPropertyStorage_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IPropertyStorage methods ***/
|
|
|
|
#define IPropertyStorage_ReadMultiple(p,a,b,c) (p)->lpVtbl->ReadMultiple(p,a,b,c)
|
|
|
|
#define IPropertyStorage_WriteMultiple(p,a,b,c,d) (p)->lpVtbl->WriteMultiple(p,a,b,c,d)
|
|
|
|
#define IPropertyStorage_DeleteMultiple(p,a,b) (p)->lpVtbl->DeleteMultiple(p,a,b)
|
|
|
|
#define IPropertyStorage_ReadPropertyNames(p,a,b,c) (p)->lpVtbl->ReadPropertyNames(p,a,b,c)
|
|
|
|
#define IPropertyStorage_WritePropertyNames(p,a,b,c) (p)->lpVtbl->WritePropertyNames(p,a,b,c)
|
|
|
|
#define IPropertyStorage_DeletePropertyNames(p,a,b) (p)->lpVtbl->DeletePropertyNames(p,a,b)
|
|
|
|
#define IPropertyStorage_Commit(p,a) (p)->lpVtbl->Commit(p,a)
|
|
|
|
#define IPropertyStorage_Revert(p) (p)->lpVtbl->Revert(p)
|
|
|
|
#define IPropertyStorage_Enum(p,a) (p)->lpVtbl->Enum(p,a)
|
|
|
|
#define IPropertyStorage_SetTimes(p,a,b,c) (p)->lpVtbl->SetTimes(p,a,b,c)
|
|
|
|
#define IPropertyStorage_SetClass(p,a) (p)->lpVtbl->SetClass(p,a)
|
|
|
|
#define IPropertyStorage_Stat(p,a) (p)->lpVtbl->Stat(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IPropertyStorage_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IPropertyStorage methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,ReadMultiple)(THIS_ ULONG cpspec, const PROPSPEC rgpspec[], PROPVARIANT rgpropvar[]) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,WriteMultiple)(THIS_ ULONG cpspec, const PROPSPEC rgpspec[], const PROPVARIANT rgpropvar[], PROPID propidNameFirst) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,DeleteMultiple)(THIS_ ULONG cpspec, const PROPSPEC rgpspec[]) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,ReadPropertyNames)(THIS_ ULONG cpropid, const PROPID rgpropid[], LPOLESTR rglpwstrName[]) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,WritePropertyNames)(THIS_ ULONG cpropid, const PROPID rgpropid[], const LPOLESTR rglpwstrName[]) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,DeletePropertyNames)(THIS_ ULONG cpropid, const PROPID rgpropid[]) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Commit)(THIS_ DWORD grfCommitFlags) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Revert)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Enum)(THIS_ IEnumSTATPROPSTG** ppenum) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetTimes)(THIS_ const FILETIME* pctime, const FILETIME* patime, const FILETIME* pmtime) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetClass)(THIS_ REFCLSID clsid) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Stat)(THIS_ STATPROPSETSTG* statpsstg) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IPropertyStorage_ReadMultiple_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpspec,
|
|
|
|
const PROPSPEC rgpspec[],
|
|
|
|
PROPVARIANT rgpropvar[]);
|
|
|
|
void __RPC_STUB IPropertyStorage_ReadMultiple_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_WriteMultiple_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpspec,
|
|
|
|
const PROPSPEC rgpspec[],
|
|
|
|
const PROPVARIANT rgpropvar[],
|
|
|
|
PROPID propidNameFirst);
|
|
|
|
void __RPC_STUB IPropertyStorage_WriteMultiple_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_DeleteMultiple_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpspec,
|
|
|
|
const PROPSPEC rgpspec[]);
|
|
|
|
void __RPC_STUB IPropertyStorage_DeleteMultiple_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_ReadPropertyNames_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpropid,
|
|
|
|
const PROPID rgpropid[],
|
|
|
|
LPOLESTR rglpwstrName[]);
|
|
|
|
void __RPC_STUB IPropertyStorage_ReadPropertyNames_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_WritePropertyNames_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpropid,
|
|
|
|
const PROPID rgpropid[],
|
|
|
|
const LPOLESTR rglpwstrName[]);
|
|
|
|
void __RPC_STUB IPropertyStorage_WritePropertyNames_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_DeletePropertyNames_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
ULONG cpropid,
|
|
|
|
const PROPID rgpropid[]);
|
|
|
|
void __RPC_STUB IPropertyStorage_DeletePropertyNames_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_Commit_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
DWORD grfCommitFlags);
|
|
|
|
void __RPC_STUB IPropertyStorage_Commit_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_Revert_Proxy(
|
|
|
|
IPropertyStorage* This);
|
|
|
|
void __RPC_STUB IPropertyStorage_Revert_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_Enum_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
IEnumSTATPROPSTG** ppenum);
|
|
|
|
void __RPC_STUB IPropertyStorage_Enum_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_SetTimes_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
const FILETIME* pctime,
|
|
|
|
const FILETIME* patime,
|
|
|
|
const FILETIME* pmtime);
|
|
|
|
void __RPC_STUB IPropertyStorage_SetTimes_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_SetClass_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
REFCLSID clsid);
|
|
|
|
void __RPC_STUB IPropertyStorage_SetClass_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertyStorage_Stat_Proxy(
|
|
|
|
IPropertyStorage* This,
|
|
|
|
STATPROPSETSTG* statpsstg);
|
|
|
|
void __RPC_STUB IPropertyStorage_Stat_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IPropertyStorage_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IPropertySetStorage_FWD_DEFINED__
|
|
|
|
#define __IPropertySetStorage_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IPropertySetStorage IPropertySetStorage;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IPropertySetStorage *LPPROPERTYSETSTORAGE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IPropertySetStorage interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IPropertySetStorage_INTERFACE_DEFINED__
|
|
|
|
#define __IPropertySetStorage_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IPropertySetStorage, 0x0000013a, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IPropertySetStorage : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Create(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFFMTID rfmtid,
|
|
|
|
const CLSID* pclsid,
|
|
|
|
DWORD grfFlags,
|
|
|
|
DWORD grfMode,
|
|
|
|
IPropertyStorage** ppprstg) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Open(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFFMTID rfmtid,
|
|
|
|
DWORD grfMode,
|
|
|
|
IPropertyStorage** ppprstg) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Delete(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFFMTID rfmtid) = 0;
|
1999-01-17 17:32:32 +01:00
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Enum(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSETSTG** ppenum) = 0;
|
1999-01-17 17:32:32 +01:00
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IPropertySetStorageVtbl IPropertySetStorageVtbl;
|
|
|
|
struct IPropertySetStorage {
|
|
|
|
const IPropertySetStorageVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IPropertySetStorageVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
1999-01-17 17:32:32 +01:00
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertySetStorage* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
1999-01-17 17:32:32 +01:00
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertySetStorage* This);
|
1999-01-17 17:32:32 +01:00
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertySetStorage* This);
|
|
|
|
|
|
|
|
/*** IPropertySetStorage methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Create)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertySetStorage* This,
|
|
|
|
REFFMTID rfmtid,
|
|
|
|
const CLSID* pclsid,
|
|
|
|
DWORD grfFlags,
|
|
|
|
DWORD grfMode,
|
|
|
|
IPropertyStorage** ppprstg);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Open)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertySetStorage* This,
|
|
|
|
REFFMTID rfmtid,
|
|
|
|
DWORD grfMode,
|
|
|
|
IPropertyStorage** ppprstg);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Delete)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertySetStorage* This,
|
|
|
|
REFFMTID rfmtid);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Enum)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IPropertySetStorage* This,
|
|
|
|
IEnumSTATPROPSETSTG** ppenum);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IPropertySetStorage_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IPropertySetStorage_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IPropertySetStorage_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IPropertySetStorage methods ***/
|
|
|
|
#define IPropertySetStorage_Create(p,a,b,c,d,e) (p)->lpVtbl->Create(p,a,b,c,d,e)
|
|
|
|
#define IPropertySetStorage_Open(p,a,b,c) (p)->lpVtbl->Open(p,a,b,c)
|
|
|
|
#define IPropertySetStorage_Delete(p,a) (p)->lpVtbl->Delete(p,a)
|
|
|
|
#define IPropertySetStorage_Enum(p,a) (p)->lpVtbl->Enum(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IPropertySetStorage_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IPropertySetStorage methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Create)(THIS_ REFFMTID rfmtid, const CLSID* pclsid, DWORD grfFlags, DWORD grfMode, IPropertyStorage** ppprstg) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Open)(THIS_ REFFMTID rfmtid, DWORD grfMode, IPropertyStorage** ppprstg) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Delete)(THIS_ REFFMTID rfmtid) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Enum)(THIS_ IEnumSTATPROPSETSTG** ppenum) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IPropertySetStorage_Create_Proxy(
|
|
|
|
IPropertySetStorage* This,
|
|
|
|
REFFMTID rfmtid,
|
|
|
|
const CLSID* pclsid,
|
|
|
|
DWORD grfFlags,
|
|
|
|
DWORD grfMode,
|
|
|
|
IPropertyStorage** ppprstg);
|
|
|
|
void __RPC_STUB IPropertySetStorage_Create_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertySetStorage_Open_Proxy(
|
|
|
|
IPropertySetStorage* This,
|
|
|
|
REFFMTID rfmtid,
|
|
|
|
DWORD grfMode,
|
|
|
|
IPropertyStorage** ppprstg);
|
|
|
|
void __RPC_STUB IPropertySetStorage_Open_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertySetStorage_Delete_Proxy(
|
|
|
|
IPropertySetStorage* This,
|
|
|
|
REFFMTID rfmtid);
|
|
|
|
void __RPC_STUB IPropertySetStorage_Delete_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IPropertySetStorage_Enum_Proxy(
|
|
|
|
IPropertySetStorage* This,
|
|
|
|
IEnumSTATPROPSETSTG** ppenum);
|
|
|
|
void __RPC_STUB IPropertySetStorage_Enum_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IPropertySetStorage_INTERFACE_DEFINED__ */
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IEnumSTATPROPSTG *LPENUMSTATPROPSTG;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IEnumSTATPROPSTG interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IEnumSTATPROPSTG_INTERFACE_DEFINED__
|
|
|
|
#define __IEnumSTATPROPSTG_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IEnumSTATPROPSTG, 0x00000139, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IEnumSTATPROPSTG : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Next(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt,
|
|
|
|
STATPROPSTG* rgelt,
|
|
|
|
ULONG* pceltFetched) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Skip(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Reset(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Clone(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSTG** ppenum) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IEnumSTATPROPSTGVtbl IEnumSTATPROPSTGVtbl;
|
|
|
|
struct IEnumSTATPROPSTG {
|
|
|
|
const IEnumSTATPROPSTGVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IEnumSTATPROPSTGVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSTG* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSTG* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSTG* This);
|
|
|
|
|
|
|
|
/*** IEnumSTATPROPSTG methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Next)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATPROPSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Skip)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSTG* This,
|
|
|
|
ULONG celt);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Reset)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSTG* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Clone)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSTG* This,
|
|
|
|
IEnumSTATPROPSTG** ppenum);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IEnumSTATPROPSTG_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumSTATPROPSTG_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumSTATPROPSTG_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IEnumSTATPROPSTG methods ***/
|
|
|
|
#define IEnumSTATPROPSTG_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumSTATPROPSTG_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumSTATPROPSTG_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumSTATPROPSTG_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IEnumSTATPROPSTG_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IEnumSTATPROPSTG methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, STATPROPSTG* rgelt, ULONG* pceltFetched) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Clone)(THIS_ IEnumSTATPROPSTG** ppenum) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IEnumSTATPROPSTG_RemoteNext_Proxy(
|
|
|
|
IEnumSTATPROPSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATPROPSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
void __RPC_STUB IEnumSTATPROPSTG_RemoteNext_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATPROPSTG_Next_Proxy(
|
|
|
|
IEnumSTATPROPSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATPROPSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT __RPC_STUB IEnumSTATPROPSTG_Next_Stub(
|
|
|
|
IEnumSTATPROPSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATPROPSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT CALLBACK IEnumSTATPROPSTG_Skip_Proxy(
|
|
|
|
IEnumSTATPROPSTG* This,
|
|
|
|
ULONG celt);
|
|
|
|
void __RPC_STUB IEnumSTATPROPSTG_Skip_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATPROPSTG_Reset_Proxy(
|
|
|
|
IEnumSTATPROPSTG* This);
|
|
|
|
void __RPC_STUB IEnumSTATPROPSTG_Reset_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATPROPSTG_Clone_Proxy(
|
|
|
|
IEnumSTATPROPSTG* This,
|
|
|
|
IEnumSTATPROPSTG** ppenum);
|
|
|
|
void __RPC_STUB IEnumSTATPROPSTG_Clone_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IEnumSTATPROPSTG_INTERFACE_DEFINED__ */
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef IEnumSTATPROPSETSTG *LPENUMSTATPROPSETSTG;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IEnumSTATPROPSETSTG interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IEnumSTATPROPSETSTG_INTERFACE_DEFINED__
|
|
|
|
#define __IEnumSTATPROPSETSTG_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IEnumSTATPROPSETSTG, 0x0000013b, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IEnumSTATPROPSETSTG : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Next(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt,
|
|
|
|
STATPROPSETSTG* rgelt,
|
|
|
|
ULONG* pceltFetched) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Skip(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG celt) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Reset(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE Clone(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSETSTG** ppenum) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IEnumSTATPROPSETSTGVtbl IEnumSTATPROPSETSTGVtbl;
|
|
|
|
struct IEnumSTATPROPSETSTG {
|
|
|
|
const IEnumSTATPROPSETSTGVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IEnumSTATPROPSETSTGVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSETSTG* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSETSTG* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSETSTG* This);
|
|
|
|
|
|
|
|
/*** IEnumSTATPROPSETSTG methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Next)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSETSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATPROPSETSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Skip)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSETSTG* This,
|
|
|
|
ULONG celt);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Reset)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSETSTG* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *Clone)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IEnumSTATPROPSETSTG* This,
|
|
|
|
IEnumSTATPROPSETSTG** ppenum);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IEnumSTATPROPSETSTG_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IEnumSTATPROPSETSTG_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IEnumSTATPROPSETSTG_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IEnumSTATPROPSETSTG methods ***/
|
|
|
|
#define IEnumSTATPROPSETSTG_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c)
|
|
|
|
#define IEnumSTATPROPSETSTG_Skip(p,a) (p)->lpVtbl->Skip(p,a)
|
|
|
|
#define IEnumSTATPROPSETSTG_Reset(p) (p)->lpVtbl->Reset(p)
|
|
|
|
#define IEnumSTATPROPSETSTG_Clone(p,a) (p)->lpVtbl->Clone(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IEnumSTATPROPSETSTG_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IEnumSTATPROPSETSTG methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, STATPROPSETSTG* rgelt, ULONG* pceltFetched) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Reset)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,Clone)(THIS_ IEnumSTATPROPSETSTG** ppenum) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IEnumSTATPROPSETSTG_RemoteNext_Proxy(
|
|
|
|
IEnumSTATPROPSETSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATPROPSETSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
void __RPC_STUB IEnumSTATPROPSETSTG_RemoteNext_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATPROPSETSTG_Next_Proxy(
|
|
|
|
IEnumSTATPROPSETSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATPROPSETSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT __RPC_STUB IEnumSTATPROPSETSTG_Next_Stub(
|
|
|
|
IEnumSTATPROPSETSTG* This,
|
|
|
|
ULONG celt,
|
|
|
|
STATPROPSETSTG* rgelt,
|
|
|
|
ULONG* pceltFetched);
|
|
|
|
HRESULT CALLBACK IEnumSTATPROPSETSTG_Skip_Proxy(
|
|
|
|
IEnumSTATPROPSETSTG* This,
|
|
|
|
ULONG celt);
|
|
|
|
void __RPC_STUB IEnumSTATPROPSETSTG_Skip_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATPROPSETSTG_Reset_Proxy(
|
|
|
|
IEnumSTATPROPSETSTG* This);
|
|
|
|
void __RPC_STUB IEnumSTATPROPSETSTG_Reset_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IEnumSTATPROPSETSTG_Clone_Proxy(
|
|
|
|
IEnumSTATPROPSETSTG* This,
|
|
|
|
IEnumSTATPROPSETSTG** ppenum);
|
|
|
|
void __RPC_STUB IEnumSTATPROPSETSTG_Clone_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IEnumSTATPROPSETSTG_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IClientSecurity_FWD_DEFINED__
|
|
|
|
#define __IClientSecurity_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IClientSecurity IClientSecurity;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct tagSOLE_AUTHENTICATION_SERVICE {
|
|
|
|
DWORD dwAuthnSvc;
|
|
|
|
DWORD dwAuthzSvc;
|
|
|
|
OLECHAR *pPrincipalName;
|
|
|
|
HRESULT hr;
|
|
|
|
} SOLE_AUTHENTICATION_SERVICE;
|
|
|
|
|
|
|
|
typedef SOLE_AUTHENTICATION_SERVICE *PSOLE_AUTHENTICATION_SERVICE;
|
|
|
|
|
|
|
|
typedef enum tagEOLE_AUTHENTICATION_CAPABILITIES {
|
|
|
|
EOAC_NONE = 0x0,
|
|
|
|
EOAC_MUTUAL_AUTH = 0x1,
|
|
|
|
EOAC_CLOAKING = 0x10,
|
|
|
|
EOAC_SECURE_REFS = 0x2,
|
|
|
|
EOAC_ACCESS_CONTROL = 0x4,
|
|
|
|
EOAC_APPID = 0x8
|
|
|
|
} EOLE_AUTHENTICATION_CAPABILITIES;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IClientSecurity interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IClientSecurity_INTERFACE_DEFINED__
|
|
|
|
#define __IClientSecurity_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IClientSecurity, 0x0000013d, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IClientSecurity : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE QueryBlanket(
|
2002-12-19 23:15:24 +01:00
|
|
|
IUnknown* pProxy,
|
|
|
|
DWORD* pAuthnSvc,
|
|
|
|
DWORD* pAuthzSvc,
|
|
|
|
OLECHAR** pServerPrincName,
|
|
|
|
DWORD* pAuthnLevel,
|
|
|
|
DWORD* pImpLevel,
|
|
|
|
void** pAuthInfo,
|
|
|
|
DWORD* pCapabilites) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE SetBlanket(
|
2002-12-19 23:15:24 +01:00
|
|
|
IUnknown* pProxy,
|
|
|
|
DWORD AuthnSvc,
|
|
|
|
DWORD AuthzSvc,
|
|
|
|
OLECHAR* pServerPrincName,
|
|
|
|
DWORD AuthnLevel,
|
|
|
|
DWORD ImpLevel,
|
|
|
|
void* pAuthInfo,
|
|
|
|
DWORD Capabilities) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CopyProxy(
|
2002-12-19 23:15:24 +01:00
|
|
|
IUnknown* pProxy,
|
|
|
|
IUnknown** ppCopy) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IClientSecurityVtbl IClientSecurityVtbl;
|
|
|
|
struct IClientSecurity {
|
|
|
|
const IClientSecurityVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IClientSecurityVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IClientSecurity* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IClientSecurity* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IClientSecurity* This);
|
|
|
|
|
|
|
|
/*** IClientSecurity methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryBlanket)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IClientSecurity* This,
|
|
|
|
IUnknown* pProxy,
|
|
|
|
DWORD* pAuthnSvc,
|
|
|
|
DWORD* pAuthzSvc,
|
|
|
|
OLECHAR** pServerPrincName,
|
|
|
|
DWORD* pAuthnLevel,
|
|
|
|
DWORD* pImpLevel,
|
|
|
|
void** pAuthInfo,
|
|
|
|
DWORD* pCapabilites);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *SetBlanket)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IClientSecurity* This,
|
|
|
|
IUnknown* pProxy,
|
|
|
|
DWORD AuthnSvc,
|
|
|
|
DWORD AuthzSvc,
|
|
|
|
OLECHAR* pServerPrincName,
|
|
|
|
DWORD AuthnLevel,
|
|
|
|
DWORD ImpLevel,
|
|
|
|
void* pAuthInfo,
|
|
|
|
DWORD Capabilities);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CopyProxy)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IClientSecurity* This,
|
|
|
|
IUnknown* pProxy,
|
|
|
|
IUnknown** ppCopy);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IClientSecurity_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IClientSecurity_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IClientSecurity_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IClientSecurity methods ***/
|
|
|
|
#define IClientSecurity_QueryBlanket(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->QueryBlanket(p,a,b,c,d,e,f,g,h)
|
|
|
|
#define IClientSecurity_SetBlanket(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->SetBlanket(p,a,b,c,d,e,f,g,h)
|
|
|
|
#define IClientSecurity_CopyProxy(p,a,b) (p)->lpVtbl->CopyProxy(p,a,b)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IClientSecurity_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IClientSecurity methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryBlanket)(THIS_ IUnknown* pProxy, DWORD* pAuthnSvc, DWORD* pAuthzSvc, OLECHAR** pServerPrincName, DWORD* pAuthnLevel, DWORD* pImpLevel, void** pAuthInfo, DWORD* pCapabilites) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,SetBlanket)(THIS_ IUnknown* pProxy, DWORD AuthnSvc, DWORD AuthzSvc, OLECHAR* pServerPrincName, DWORD AuthnLevel, DWORD ImpLevel, void* pAuthInfo, DWORD Capabilities) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,CopyProxy)(THIS_ IUnknown* pProxy, IUnknown** ppCopy) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IClientSecurity_QueryBlanket_Proxy(
|
|
|
|
IClientSecurity* This,
|
|
|
|
IUnknown* pProxy,
|
|
|
|
DWORD* pAuthnSvc,
|
|
|
|
DWORD* pAuthzSvc,
|
|
|
|
OLECHAR** pServerPrincName,
|
|
|
|
DWORD* pAuthnLevel,
|
|
|
|
DWORD* pImpLevel,
|
|
|
|
void** pAuthInfo,
|
|
|
|
DWORD* pCapabilites);
|
|
|
|
void __RPC_STUB IClientSecurity_QueryBlanket_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IClientSecurity_SetBlanket_Proxy(
|
|
|
|
IClientSecurity* This,
|
|
|
|
IUnknown* pProxy,
|
|
|
|
DWORD AuthnSvc,
|
|
|
|
DWORD AuthzSvc,
|
|
|
|
OLECHAR* pServerPrincName,
|
|
|
|
DWORD AuthnLevel,
|
|
|
|
DWORD ImpLevel,
|
|
|
|
void* pAuthInfo,
|
|
|
|
DWORD Capabilities);
|
|
|
|
void __RPC_STUB IClientSecurity_SetBlanket_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IClientSecurity_CopyProxy_Proxy(
|
|
|
|
IClientSecurity* This,
|
|
|
|
IUnknown* pProxy,
|
|
|
|
IUnknown** ppCopy);
|
|
|
|
void __RPC_STUB IClientSecurity_CopyProxy_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IClientSecurity_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IServerSecurity_FWD_DEFINED__
|
|
|
|
#define __IServerSecurity_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IServerSecurity IServerSecurity;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* IServerSecurity interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IServerSecurity_INTERFACE_DEFINED__
|
|
|
|
#define __IServerSecurity_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IServerSecurity, 0x0000013e, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IServerSecurity : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE QueryBlanket(
|
2002-12-19 23:15:24 +01:00
|
|
|
DWORD* pAuthnSvc,
|
|
|
|
DWORD* pAuthzSvc,
|
|
|
|
OLECHAR** pServerPrincName,
|
|
|
|
DWORD* pAuthnLevel,
|
|
|
|
DWORD* pImpLevel,
|
|
|
|
void** pPrivs,
|
|
|
|
DWORD* pCapabilities) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE ImpersonateClient(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE RevertToSelf(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual BOOL STDMETHODCALLTYPE IsImpersonating(
|
2002-12-19 23:15:24 +01:00
|
|
|
) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IServerSecurityVtbl IServerSecurityVtbl;
|
|
|
|
struct IServerSecurity {
|
|
|
|
const IServerSecurityVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IServerSecurityVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IServerSecurity* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IServerSecurity* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IServerSecurity* This);
|
|
|
|
|
|
|
|
/*** IServerSecurity methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryBlanket)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IServerSecurity* This,
|
|
|
|
DWORD* pAuthnSvc,
|
|
|
|
DWORD* pAuthzSvc,
|
|
|
|
OLECHAR** pServerPrincName,
|
|
|
|
DWORD* pAuthnLevel,
|
|
|
|
DWORD* pImpLevel,
|
|
|
|
void** pPrivs,
|
|
|
|
DWORD* pCapabilities);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *ImpersonateClient)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IServerSecurity* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *RevertToSelf)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IServerSecurity* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
BOOL (STDMETHODCALLTYPE *IsImpersonating)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IServerSecurity* This);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IServerSecurity_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IServerSecurity_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IServerSecurity_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IServerSecurity methods ***/
|
|
|
|
#define IServerSecurity_QueryBlanket(p,a,b,c,d,e,f,g) (p)->lpVtbl->QueryBlanket(p,a,b,c,d,e,f,g)
|
|
|
|
#define IServerSecurity_ImpersonateClient(p) (p)->lpVtbl->ImpersonateClient(p)
|
|
|
|
#define IServerSecurity_RevertToSelf(p) (p)->lpVtbl->RevertToSelf(p)
|
|
|
|
#define IServerSecurity_IsImpersonating(p) (p)->lpVtbl->IsImpersonating(p)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IServerSecurity_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IServerSecurity methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryBlanket)(THIS_ DWORD* pAuthnSvc, DWORD* pAuthzSvc, OLECHAR** pServerPrincName, DWORD* pAuthnLevel, DWORD* pImpLevel, void** pPrivs, DWORD* pCapabilities) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,ImpersonateClient)(THIS) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,RevertToSelf)(THIS) PURE; \
|
|
|
|
STDMETHOD_(BOOL,IsImpersonating)(THIS) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IServerSecurity_QueryBlanket_Proxy(
|
|
|
|
IServerSecurity* This,
|
|
|
|
DWORD* pAuthnSvc,
|
|
|
|
DWORD* pAuthzSvc,
|
|
|
|
OLECHAR** pServerPrincName,
|
|
|
|
DWORD* pAuthnLevel,
|
|
|
|
DWORD* pImpLevel,
|
|
|
|
void** pPrivs,
|
|
|
|
DWORD* pCapabilities);
|
|
|
|
void __RPC_STUB IServerSecurity_QueryBlanket_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IServerSecurity_ImpersonateClient_Proxy(
|
|
|
|
IServerSecurity* This);
|
|
|
|
void __RPC_STUB IServerSecurity_ImpersonateClient_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IServerSecurity_RevertToSelf_Proxy(
|
|
|
|
IServerSecurity* This);
|
|
|
|
void __RPC_STUB IServerSecurity_RevertToSelf_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
BOOL CALLBACK IServerSecurity_IsImpersonating_Proxy(
|
|
|
|
IServerSecurity* This);
|
|
|
|
void __RPC_STUB IServerSecurity_IsImpersonating_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IServerSecurity_INTERFACE_DEFINED__ */
|
|
|
|
|
|
|
|
#ifndef __IAsyncSetup_FWD_DEFINED__
|
|
|
|
#define __IAsyncSetup_FWD_DEFINED__
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef struct IAsyncSetup IAsyncSetup;
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* IAsyncSetup interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IAsyncSetup_INTERFACE_DEFINED__
|
|
|
|
#define __IAsyncSetup_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IAsyncSetup, 0x00000024, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IAsyncSetup : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetAsyncManager(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFIID riid,
|
|
|
|
IUnknown* pOuter,
|
|
|
|
DWORD dwFlags,
|
|
|
|
IUnknown** ppInner,
|
|
|
|
IAsyncManager** ppAsyncMgr) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IAsyncSetupVtbl IAsyncSetupVtbl;
|
|
|
|
struct IAsyncSetup {
|
|
|
|
const IAsyncSetupVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IAsyncSetupVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAsyncSetup* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAsyncSetup* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAsyncSetup* This);
|
|
|
|
|
|
|
|
/*** IAsyncSetup methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetAsyncManager)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAsyncSetup* This,
|
|
|
|
REFIID riid,
|
|
|
|
IUnknown* pOuter,
|
|
|
|
DWORD dwFlags,
|
|
|
|
IUnknown** ppInner,
|
|
|
|
IAsyncManager** ppAsyncMgr);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IAsyncSetup_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IAsyncSetup_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IAsyncSetup_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IAsyncSetup methods ***/
|
|
|
|
#define IAsyncSetup_GetAsyncManager(p,a,b,c,d,e) (p)->lpVtbl->GetAsyncManager(p,a,b,c,d,e)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IAsyncSetup_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IAsyncSetup methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,GetAsyncManager)(THIS_ REFIID riid, IUnknown* pOuter, DWORD dwFlags, IUnknown** ppInner, IAsyncManager** ppAsyncMgr) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IAsyncSetup_GetAsyncManager_Proxy(
|
|
|
|
IAsyncSetup* This,
|
|
|
|
REFIID riid,
|
|
|
|
IUnknown* pOuter,
|
|
|
|
DWORD dwFlags,
|
|
|
|
IUnknown** ppInner,
|
|
|
|
IAsyncManager** ppAsyncMgr);
|
|
|
|
void __RPC_STUB IAsyncSetup_GetAsyncManager_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IAsyncSetup_INTERFACE_DEFINED__ */
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
typedef enum tagDCOM_CALL_STATE {
|
|
|
|
DCOM_NONE = 0,
|
|
|
|
DCOM_CALL_COMPLETE = 1,
|
|
|
|
DCOM_CALL_CANCELED = 2
|
|
|
|
} DCOM_CALL_STATE;
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* IAsyncManager interface
|
|
|
|
*/
|
2003-07-01 05:43:09 +02:00
|
|
|
#ifndef __IAsyncManager_INTERFACE_DEFINED__
|
|
|
|
#define __IAsyncManager_INTERFACE_DEFINED__
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
DEFINE_GUID(IID_IAsyncManager, 0x0000002a, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46);
|
|
|
|
#if defined(__cplusplus) && !defined(CINTERFACE)
|
2003-04-12 02:09:14 +02:00
|
|
|
struct IAsyncManager : public IUnknown
|
|
|
|
{
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE CompleteCall(
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT Result) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetCallContext(
|
2002-12-19 23:15:24 +01:00
|
|
|
REFIID riid,
|
|
|
|
void** pInterface) = 0;
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
virtual HRESULT STDMETHODCALLTYPE GetState(
|
2002-12-19 23:15:24 +01:00
|
|
|
ULONG* pulStateFlags) = 0;
|
|
|
|
|
2003-04-12 02:09:14 +02:00
|
|
|
};
|
2002-12-19 23:15:24 +01:00
|
|
|
#else
|
|
|
|
typedef struct IAsyncManagerVtbl IAsyncManagerVtbl;
|
|
|
|
struct IAsyncManager {
|
|
|
|
const IAsyncManagerVtbl* lpVtbl;
|
|
|
|
};
|
|
|
|
struct IAsyncManagerVtbl {
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAsyncManager* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** ppvObject);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *AddRef)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAsyncManager* This);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
ULONG (STDMETHODCALLTYPE *Release)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAsyncManager* This);
|
|
|
|
|
|
|
|
/*** IAsyncManager methods ***/
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *CompleteCall)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAsyncManager* This,
|
|
|
|
HRESULT Result);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetCallContext)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAsyncManager* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** pInterface);
|
|
|
|
|
2003-04-10 02:19:24 +02:00
|
|
|
HRESULT (STDMETHODCALLTYPE *GetState)(
|
2002-12-19 23:15:24 +01:00
|
|
|
IAsyncManager* This,
|
|
|
|
ULONG* pulStateFlags);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
#define IAsyncManager_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
#define IAsyncManager_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
#define IAsyncManager_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
/*** IAsyncManager methods ***/
|
|
|
|
#define IAsyncManager_CompleteCall(p,a) (p)->lpVtbl->CompleteCall(p,a)
|
|
|
|
#define IAsyncManager_GetCallContext(p,a,b) (p)->lpVtbl->GetCallContext(p,a,b)
|
|
|
|
#define IAsyncManager_GetState(p,a) (p)->lpVtbl->GetState(p,a)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2003-04-11 02:31:02 +02:00
|
|
|
#define IAsyncManager_METHODS \
|
|
|
|
ICOM_MSVTABLE_COMPAT_FIELDS \
|
|
|
|
/*** IUnknown methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE; \
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE; \
|
|
|
|
/*** IAsyncManager methods ***/ \
|
|
|
|
STDMETHOD_(HRESULT,CompleteCall)(THIS_ HRESULT Result) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetCallContext)(THIS_ REFIID riid, void** pInterface) PURE; \
|
|
|
|
STDMETHOD_(HRESULT,GetState)(THIS_ ULONG* pulStateFlags) PURE;
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
HRESULT CALLBACK IAsyncManager_CompleteCall_Proxy(
|
|
|
|
IAsyncManager* This,
|
|
|
|
HRESULT Result);
|
|
|
|
void __RPC_STUB IAsyncManager_CompleteCall_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IAsyncManager_GetCallContext_Proxy(
|
|
|
|
IAsyncManager* This,
|
|
|
|
REFIID riid,
|
|
|
|
void** pInterface);
|
|
|
|
void __RPC_STUB IAsyncManager_GetCallContext_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
HRESULT CALLBACK IAsyncManager_GetState_Proxy(
|
|
|
|
IAsyncManager* This,
|
|
|
|
ULONG* pulStateFlags);
|
|
|
|
void __RPC_STUB IAsyncManager_GetState_Stub(
|
|
|
|
struct IRpcStubBuffer* This,
|
|
|
|
struct IRpcChannelBuffer* pRpcChannelBuffer,
|
|
|
|
PRPC_MESSAGE pRpcMessage,
|
|
|
|
DWORD* pdwStubPhase);
|
|
|
|
|
2003-07-01 05:43:09 +02:00
|
|
|
#endif /* __IAsyncManager_INTERFACE_DEFINED__ */
|
|
|
|
|
2002-12-19 23:15:24 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* __WIDL_OBJIDL_H */
|