diff --git a/Make.rules.in b/Make.rules.in index 8c521af5ba1..a2318a6eb20 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -205,7 +205,7 @@ winapi_check:: dummy $(SUBDIRS:%=%/__depend__): $(MAKEDEP) dummy cd `dirname $@` && $(MAKE) depend -depend: $(MAKEDEP) $(SUBDIRS:%=%/__depend__) +depend: $(MAKEDEP) $(IDL_SRCS:.idl=.h) $(SUBDIRS:%=%/__depend__) $(MAKEDEP) $(INCLUDES) -C$(SRCDIR) $(C_SRCS) $(C_SRCS16) $(RC_SRCS) $(RC_SRCS16) $(MC_SRCS) $(IDL_SRCS) $(EXTRA_SRCS) .PHONY: depend $(SUBDIRS:%=%/__depend__) @@ -224,7 +224,7 @@ $(EXTRASUBDIRS:%=%/__clean__): dummy testclean:: $(SUBDIRS:%=%/__testclean__) clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__) - $(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res) $(MC_SRCS:.mc=.mc.rc) $(PROGRAMS) $(RC_BINARIES) + $(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res) $(MC_SRCS:.mc=.mc.rc) $(IDL_SRCS:.idl=.h) $(PROGRAMS) $(RC_BINARIES) .PHONY: clean testclean $(SUBDIRS:%=%/__clean__) $(SUBDIRS:%=%/__testclean__) $(EXTRASUBDIRS:%=%/__clean__) diff --git a/Makefile.in b/Makefile.in index 886c56a76b7..8b2eff12687 100644 --- a/Makefile.in +++ b/Makefile.in @@ -121,6 +121,21 @@ fonts/__install__ loader/__install__ server/__install__: libs tools programs/__install__: libs tools include/__install__ dlls/__install-lib__ tools/__install__: tools +# Dependencies rules + +$(SUBDIRS:%=%/__depend__): idl + +idl: $(WIDL) dummy + cd include && $(MAKE) all + +$(WIDL): $(TOOLSDIR)/libs/libwpp.a $(TOOLSDIR)/libs/libwine_port.a + cd $(TOOLSDIR)/tools/widl && $(MAKE) `basename $@` + +$(TOOLSDIR)/libs/libwpp.a $(TOOLSDIR)/libs/libwine_port.a: + cd $(TOOLSDIR)/libs && $(MAKE) `basename $@` + +.PHONY: idl + # Test rules checklink:: $(TESTSUBDIRS:%=%/__checklink__) diff --git a/dlls/itss/Makefile.in b/dlls/itss/Makefile.in index cfdd791fed4..a04f9a10a8e 100644 --- a/dlls/itss/Makefile.in +++ b/dlls/itss/Makefile.in @@ -20,3 +20,6 @@ IDL_SRCS = \ @MAKE_DLL_RULES@ ### Dependencies: + +# note: this will get overwritten by make depend +$(ALL_OBJS): $(IDL_SRCS:.idl=.h) diff --git a/dlls/itss/itss.h b/dlls/itss/itss.h deleted file mode 100644 index 12bda5c5dc5..00000000000 --- a/dlls/itss/itss.h +++ /dev/null @@ -1,315 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from itss.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_ITSS_H -#define __WIDL_ITSS_H -#ifdef __cplusplus -extern "C" { -#endif -#include -typedef struct _ITS_Control_Data { - UINT cdwControlData; - UINT adwControlData[1]; -} ITS_Control_Data, *PITS_Control_Data; - -typedef enum ECompactionLev { - COMPACT_DATA = 0, - COMPACT_DATA_AND_PATH -} ECompactionLev; - -#ifndef __IITStorage_FWD_DEFINED__ -#define __IITStorage_FWD_DEFINED__ -typedef struct IITStorage IITStorage; -#endif - -/***************************************************************************** - * IITStorage interface - */ -#ifndef __IITStorage_INTERFACE_DEFINED__ -#define __IITStorage_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IITStorage : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE StgCreateDocfile( - const WCHAR* pwcsName, - DWORD grfMode, - DWORD reserved, - IStorage** ppstgOpen) = 0; - - virtual HRESULT STDMETHODCALLTYPE StgCreateDocfileOnILockBytes( - ILockBytes* plkbyt, - DWORD grfMode, - DWORD reserved, - IStorage** ppstgOpen) = 0; - - virtual HRESULT STDMETHODCALLTYPE StgIsStorageFile( - const WCHAR* pwcsName) = 0; - - virtual HRESULT STDMETHODCALLTYPE StgIsStorageILockBytes( - ILockBytes* plkbyt) = 0; - - virtual HRESULT STDMETHODCALLTYPE StgOpenStorage( - const WCHAR* pwcsName, - IStorage* pstgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage** ppstgOpen) = 0; - - virtual HRESULT STDMETHODCALLTYPE StgOpenStorageOnILockBytes( - ILockBytes* plkbyt, - IStorage* pStgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage** ppstgOpen) = 0; - - virtual HRESULT STDMETHODCALLTYPE StgSetTimes( - WCHAR* lpszName, - FILETIME* pctime, - FILETIME* patime, - FILETIME* pmtime) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetControlData( - PITS_Control_Data pControlData) = 0; - - virtual HRESULT STDMETHODCALLTYPE DefaultControlData( - PITS_Control_Data* ppControlData) = 0; - - virtual HRESULT STDMETHODCALLTYPE Compact( - const WCHAR* pwcsName, - ECompactionLev iLev) = 0; - -}; -#else -typedef struct IITStorageVtbl IITStorageVtbl; -struct IITStorage { - const IITStorageVtbl* lpVtbl; -}; -struct IITStorageVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IITStorage* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IITStorage* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IITStorage* This); - - /*** IITStorage methods ***/ - HRESULT (STDMETHODCALLTYPE *StgCreateDocfile)( - IITStorage* This, - const WCHAR* pwcsName, - DWORD grfMode, - DWORD reserved, - IStorage** ppstgOpen); - - HRESULT (STDMETHODCALLTYPE *StgCreateDocfileOnILockBytes)( - IITStorage* This, - ILockBytes* plkbyt, - DWORD grfMode, - DWORD reserved, - IStorage** ppstgOpen); - - HRESULT (STDMETHODCALLTYPE *StgIsStorageFile)( - IITStorage* This, - const WCHAR* pwcsName); - - HRESULT (STDMETHODCALLTYPE *StgIsStorageILockBytes)( - IITStorage* This, - ILockBytes* plkbyt); - - HRESULT (STDMETHODCALLTYPE *StgOpenStorage)( - IITStorage* This, - const WCHAR* pwcsName, - IStorage* pstgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage** ppstgOpen); - - HRESULT (STDMETHODCALLTYPE *StgOpenStorageOnILockBytes)( - IITStorage* This, - ILockBytes* plkbyt, - IStorage* pStgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage** ppstgOpen); - - HRESULT (STDMETHODCALLTYPE *StgSetTimes)( - IITStorage* This, - WCHAR* lpszName, - FILETIME* pctime, - FILETIME* patime, - FILETIME* pmtime); - - HRESULT (STDMETHODCALLTYPE *SetControlData)( - IITStorage* This, - PITS_Control_Data pControlData); - - HRESULT (STDMETHODCALLTYPE *DefaultControlData)( - IITStorage* This, - PITS_Control_Data* ppControlData); - - HRESULT (STDMETHODCALLTYPE *Compact)( - IITStorage* This, - const WCHAR* pwcsName, - ECompactionLev iLev); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IITStorage_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IITStorage_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IITStorage_Release(p) (p)->lpVtbl->Release(p) -/*** IITStorage methods ***/ -#define IITStorage_StgCreateDocfile(p,a,b,c,d) (p)->lpVtbl->StgCreateDocfile(p,a,b,c,d) -#define IITStorage_StgCreateDocfileOnILockBytes(p,a,b,c,d) (p)->lpVtbl->StgCreateDocfileOnILockBytes(p,a,b,c,d) -#define IITStorage_StgIsStorageFile(p,a) (p)->lpVtbl->StgIsStorageFile(p,a) -#define IITStorage_StgIsStorageILockBytes(p,a) (p)->lpVtbl->StgIsStorageILockBytes(p,a) -#define IITStorage_StgOpenStorage(p,a,b,c,d,e,f) (p)->lpVtbl->StgOpenStorage(p,a,b,c,d,e,f) -#define IITStorage_StgOpenStorageOnILockBytes(p,a,b,c,d,e,f) (p)->lpVtbl->StgOpenStorageOnILockBytes(p,a,b,c,d,e,f) -#define IITStorage_StgSetTimes(p,a,b,c,d) (p)->lpVtbl->StgSetTimes(p,a,b,c,d) -#define IITStorage_SetControlData(p,a) (p)->lpVtbl->SetControlData(p,a) -#define IITStorage_DefaultControlData(p,a) (p)->lpVtbl->DefaultControlData(p,a) -#define IITStorage_Compact(p,a,b) (p)->lpVtbl->Compact(p,a,b) -#endif - -#endif - -#define IITStorage_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IITStorage methods ***/ \ - STDMETHOD_(HRESULT,StgCreateDocfile)(THIS_ const WCHAR* pwcsName, DWORD grfMode, DWORD reserved, IStorage** ppstgOpen) PURE; \ - STDMETHOD_(HRESULT,StgCreateDocfileOnILockBytes)(THIS_ ILockBytes* plkbyt, DWORD grfMode, DWORD reserved, IStorage** ppstgOpen) PURE; \ - STDMETHOD_(HRESULT,StgIsStorageFile)(THIS_ const WCHAR* pwcsName) PURE; \ - STDMETHOD_(HRESULT,StgIsStorageILockBytes)(THIS_ ILockBytes* plkbyt) PURE; \ - STDMETHOD_(HRESULT,StgOpenStorage)(THIS_ const WCHAR* pwcsName, IStorage* pstgPriority, DWORD grfMode, SNB snbExclude, DWORD reserved, IStorage** ppstgOpen) PURE; \ - STDMETHOD_(HRESULT,StgOpenStorageOnILockBytes)(THIS_ ILockBytes* plkbyt, IStorage* pStgPriority, DWORD grfMode, SNB snbExclude, DWORD reserved, IStorage** ppstgOpen) PURE; \ - STDMETHOD_(HRESULT,StgSetTimes)(THIS_ WCHAR* lpszName, FILETIME* pctime, FILETIME* patime, FILETIME* pmtime) PURE; \ - STDMETHOD_(HRESULT,SetControlData)(THIS_ PITS_Control_Data pControlData) PURE; \ - STDMETHOD_(HRESULT,DefaultControlData)(THIS_ PITS_Control_Data* ppControlData) PURE; \ - STDMETHOD_(HRESULT,Compact)(THIS_ const WCHAR* pwcsName, ECompactionLev iLev) PURE; - -HRESULT CALLBACK IITStorage_StgCreateDocfile_Proxy( - IITStorage* This, - const WCHAR* pwcsName, - DWORD grfMode, - DWORD reserved, - IStorage** ppstgOpen); -void __RPC_STUB IITStorage_StgCreateDocfile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IITStorage_StgCreateDocfileOnILockBytes_Proxy( - IITStorage* This, - ILockBytes* plkbyt, - DWORD grfMode, - DWORD reserved, - IStorage** ppstgOpen); -void __RPC_STUB IITStorage_StgCreateDocfileOnILockBytes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IITStorage_StgIsStorageFile_Proxy( - IITStorage* This, - const WCHAR* pwcsName); -void __RPC_STUB IITStorage_StgIsStorageFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IITStorage_StgIsStorageILockBytes_Proxy( - IITStorage* This, - ILockBytes* plkbyt); -void __RPC_STUB IITStorage_StgIsStorageILockBytes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IITStorage_StgOpenStorage_Proxy( - IITStorage* This, - const WCHAR* pwcsName, - IStorage* pstgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage** ppstgOpen); -void __RPC_STUB IITStorage_StgOpenStorage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IITStorage_StgOpenStorageOnILockBytes_Proxy( - IITStorage* This, - ILockBytes* plkbyt, - IStorage* pStgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage** ppstgOpen); -void __RPC_STUB IITStorage_StgOpenStorageOnILockBytes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IITStorage_StgSetTimes_Proxy( - IITStorage* This, - WCHAR* lpszName, - FILETIME* pctime, - FILETIME* patime, - FILETIME* pmtime); -void __RPC_STUB IITStorage_StgSetTimes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IITStorage_SetControlData_Proxy( - IITStorage* This, - PITS_Control_Data pControlData); -void __RPC_STUB IITStorage_SetControlData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IITStorage_DefaultControlData_Proxy( - IITStorage* This, - PITS_Control_Data* ppControlData); -void __RPC_STUB IITStorage_DefaultControlData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IITStorage_Compact_Proxy( - IITStorage* This, - const WCHAR* pwcsName, - ECompactionLev iLev); -void __RPC_STUB IITStorage_Compact_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IITStorage_INTERFACE_DEFINED__ */ - -DEFINE_GUID(CLSID_ITStorage,0x5d02926a,0x212e,0x11d0,0x9d,0xf9,0x00,0xa0,0xc9,0x22,0xe6,0xec ); -DEFINE_GUID(IID_IITStorage, 0x88cc31de, 0x27ab, 0x11d0, 0x9d, 0xf9, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xec); -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_ITSS_H */ diff --git a/dlls/ole32/Makefile.in b/dlls/ole32/Makefile.in index b4df56839c8..533f8ab4b37 100644 --- a/dlls/ole32/Makefile.in +++ b/dlls/ole32/Makefile.in @@ -69,3 +69,6 @@ SUBDIRS = tests @MAKE_DLL_RULES@ ### Dependencies: + +# note: this will get overwritten by make depend +$(ALL_OBJS): $(IDL_SRCS:.idl=.h) diff --git a/dlls/ole32/dcom.h b/dlls/ole32/dcom.h deleted file mode 100644 index 3ea35faaf13..00000000000 --- a/dlls/ole32/dcom.h +++ /dev/null @@ -1,515 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from dcom.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_DCOM_H -#define __WIDL_DCOM_H -#ifdef __cplusplus -extern "C" { -#endif -#include -typedef MIDL_uhyper ID; - -typedef ID MID; - -typedef ID OXID; - -typedef ID OID; - -typedef ID SETID; - -typedef GUID IPID; - -typedef GUID CID; - -typedef REFGUID REFIPID; - -#define COM_MINOR_VERSION_1 (1) - -#define COM_MINOR_VERSION_2 (2) - -#define COM_MAJOR_VERSION (5) - -#define COM_MINOR_VERSION (3) - -typedef struct tagCOMVERSION { - unsigned short MajorVersion; - unsigned short MinorVersion; -} COMVERSION; - -#define ORPCF_NULL (0) - -#define ORPCF_LOCAL (1) - -#define ORPCF_RESERVED1 (2) - -#define ORPCF_RESERVED2 (4) - -#define ORPCF_RESERVED3 (8) - -#define ORPCF_RESERVED4 (16) - -typedef struct tagORPC_EXTENT { - GUID id; - unsigned long size; - byte data[1]; -} ORPC_EXTENT; - -typedef struct tagORPC_EXTENT_ARRAY { - unsigned long size; - unsigned long reserved; - ORPC_EXTENT **extent; -} ORPC_EXTENT_ARRAY; - -typedef struct tagORPCTHIS { - COMVERSION version; - unsigned long flags; - unsigned long reserved1; - CID cid; - ORPC_EXTENT_ARRAY *extensions; -} ORPCTHIS; - -typedef struct tagORPCTHAT { - unsigned long flags; - ORPC_EXTENT_ARRAY *extensions; -} ORPCTHAT; - -#define NCADG_IP_UDP (0x8) - -#define NCACN_IP_TCP (0x7) - -#define NCADG_IPX (0xe) - -#define NCACN_SPX (0xc) - -#define NCACN_NB_NB (0x12) - -#define NCACN_NB_IPX (0xd) - -#define NCACN_DNET_NSP (0x4) - -#define NCACN_HTTP (0x1f) - -typedef struct tagSTRINGBINDING { - unsigned short wTowerId; - unsigned short aNetworkAddr[1]; -} STRINGBINDING; - -#define COM_C_AUTHZ_NONE (0xffff) - -typedef struct tagSECURITYBINDING { - unsigned short wAuthnSvc; - unsigned short wAuthzSvc; - unsigned short aPrincName[1]; -} SECURITYBINDING; - -typedef struct tagDUALSTRINGARRAY { - unsigned short wNumEntries; - unsigned short wSecurityOffset; - unsigned short aStringArray[1]; -} DUALSTRINGARRAY; - -#define OBJREF_SIGNATURE (0x574f454d) - -#define OBJREF_STANDARD (0x1) - -#define OBJREF_HANDLER (0x2) - -#define OBJREF_CUSTOM (0x4) - -#define SORF_OXRES1 (0x1) - -#define SORF_OXRES2 (0x20) - -#define SORF_OXRES3 (0x40) - -#define SORF_OXRES4 (0x80) - -#define SORF_OXRES5 (0x100) - -#define SORF_OXRES6 (0x200) - -#define SORF_OXRES7 (0x400) - -#define SORF_OXRES8 (0x800) - -#define SORF_NULL (0x0) - -#define SORF_NOPING (0x1000) - -typedef struct tagSTDOBJREF { - unsigned long flags; - unsigned long cPublicRefs; - OXID oxid; - OID oid; - IPID ipid; -} STDOBJREF; - -typedef struct tagOBJREF { - unsigned long signature; - unsigned long flags; - GUID iid; - union { - struct OR_STANDARD { - STDOBJREF std; - DUALSTRINGARRAY saResAddr; - } u_standard; - struct OR_HANDLER { - STDOBJREF std; - CLSID clsid; - DUALSTRINGARRAY saResAddr; - } u_handler; - struct OR_CUSTOM { - CLSID clsid; - unsigned long cbExtension; - unsigned long size; - byte *pData; - } u_custom; - } u_objref; -} OBJREF; - -typedef struct tagMInterfacePointer { - ULONG ulCntData; - BYTE abData[1]; -} MInterfacePointer; - -typedef MInterfacePointer *PMInterfacePointer; - -#ifndef __IRemUnknown_FWD_DEFINED__ -#define __IRemUnknown_FWD_DEFINED__ -typedef struct IRemUnknown IRemUnknown; -#endif - -typedef IRemUnknown *LPREMUNKNOWN; - -typedef struct tagREMQIRESULT { - HRESULT hResult; - STDOBJREF std; -} REMQIRESULT; - -typedef struct tagREMINTERFACEREF { - IPID ipid; - unsigned long cPublicRefs; - unsigned long cPrivateRefs; -} REMINTERFACEREF; - -/***************************************************************************** - * IRemUnknown interface - */ -#ifndef __IRemUnknown_INTERFACE_DEFINED__ -#define __IRemUnknown_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRemUnknown, 0x00000131, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRemUnknown : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE RemQueryInterface( - REFIPID ripid, - unsigned long cRefs, - unsigned short cIids, - IID* iids, - REMQIRESULT** ppQIResults) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemAddRef( - unsigned short cInterfaceRefs, - REMINTERFACEREF* InterfaceRefs, - HRESULT* pResults) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemRelease( - unsigned short cInterfaceRefs, - REMINTERFACEREF* InterfaceRefs) = 0; - -}; -#else -typedef struct IRemUnknownVtbl IRemUnknownVtbl; -struct IRemUnknown { - const IRemUnknownVtbl* lpVtbl; -}; -struct IRemUnknownVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRemUnknown* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRemUnknown* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRemUnknown* This); - - /*** IRemUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *RemQueryInterface)( - IRemUnknown* This, - REFIPID ripid, - unsigned long cRefs, - unsigned short cIids, - IID* iids, - REMQIRESULT** ppQIResults); - - HRESULT (STDMETHODCALLTYPE *RemAddRef)( - IRemUnknown* This, - unsigned short cInterfaceRefs, - REMINTERFACEREF* InterfaceRefs, - HRESULT* pResults); - - HRESULT (STDMETHODCALLTYPE *RemRelease)( - IRemUnknown* This, - unsigned short cInterfaceRefs, - REMINTERFACEREF* InterfaceRefs); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IRemUnknown_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IRemUnknown_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IRemUnknown_Release(p) (p)->lpVtbl->Release(p) -/*** IRemUnknown methods ***/ -#define IRemUnknown_RemQueryInterface(p,a,b,c,d,e) (p)->lpVtbl->RemQueryInterface(p,a,b,c,d,e) -#define IRemUnknown_RemAddRef(p,a,b,c) (p)->lpVtbl->RemAddRef(p,a,b,c) -#define IRemUnknown_RemRelease(p,a,b) (p)->lpVtbl->RemRelease(p,a,b) -#endif - -#endif - -#define IRemUnknown_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IRemUnknown methods ***/ \ - STDMETHOD_(HRESULT,RemQueryInterface)(THIS_ REFIPID ripid, unsigned long cRefs, unsigned short cIids, IID* iids, REMQIRESULT** ppQIResults) PURE; \ - STDMETHOD_(HRESULT,RemAddRef)(THIS_ unsigned short cInterfaceRefs, REMINTERFACEREF* InterfaceRefs, HRESULT* pResults) PURE; \ - STDMETHOD_(HRESULT,RemRelease)(THIS_ unsigned short cInterfaceRefs, REMINTERFACEREF* InterfaceRefs) PURE; - -HRESULT CALLBACK IRemUnknown_RemQueryInterface_Proxy( - IRemUnknown* This, - REFIPID ripid, - unsigned long cRefs, - unsigned short cIids, - IID* iids, - REMQIRESULT** ppQIResults); -void __RPC_STUB IRemUnknown_RemQueryInterface_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRemUnknown_RemAddRef_Proxy( - IRemUnknown* This, - unsigned short cInterfaceRefs, - REMINTERFACEREF* InterfaceRefs, - HRESULT* pResults); -void __RPC_STUB IRemUnknown_RemAddRef_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRemUnknown_RemRelease_Proxy( - IRemUnknown* This, - unsigned short cInterfaceRefs, - REMINTERFACEREF* InterfaceRefs); -void __RPC_STUB IRemUnknown_RemRelease_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IRemUnknown_INTERFACE_DEFINED__ */ - -#ifndef __IRemUnknown2_FWD_DEFINED__ -#define __IRemUnknown2_FWD_DEFINED__ -typedef struct IRemUnknown2 IRemUnknown2; -#endif - -typedef IRemUnknown2 *LPREMUNKNOWN2; - -/***************************************************************************** - * IRemUnknown2 interface - */ -#ifndef __IRemUnknown2_INTERFACE_DEFINED__ -#define __IRemUnknown2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRemUnknown2, 0x00000142, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRemUnknown2 : public IRemUnknown -{ - virtual HRESULT STDMETHODCALLTYPE RemQueryInterface2( - REFIPID ripid, - unsigned short cIids, - IID* iids, - HRESULT* phr, - MInterfacePointer** ppMIF) = 0; - -}; -#else -typedef struct IRemUnknown2Vtbl IRemUnknown2Vtbl; -struct IRemUnknown2 { - const IRemUnknown2Vtbl* lpVtbl; -}; -struct IRemUnknown2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRemUnknown2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRemUnknown2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRemUnknown2* This); - - /*** IRemUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *RemQueryInterface)( - IRemUnknown2* This, - REFIPID ripid, - unsigned long cRefs, - unsigned short cIids, - IID* iids, - REMQIRESULT** ppQIResults); - - HRESULT (STDMETHODCALLTYPE *RemAddRef)( - IRemUnknown2* This, - unsigned short cInterfaceRefs, - REMINTERFACEREF* InterfaceRefs, - HRESULT* pResults); - - HRESULT (STDMETHODCALLTYPE *RemRelease)( - IRemUnknown2* This, - unsigned short cInterfaceRefs, - REMINTERFACEREF* InterfaceRefs); - - /*** IRemUnknown2 methods ***/ - HRESULT (STDMETHODCALLTYPE *RemQueryInterface2)( - IRemUnknown2* This, - REFIPID ripid, - unsigned short cIids, - IID* iids, - HRESULT* phr, - MInterfacePointer** ppMIF); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IRemUnknown2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IRemUnknown2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IRemUnknown2_Release(p) (p)->lpVtbl->Release(p) -/*** IRemUnknown methods ***/ -#define IRemUnknown2_RemQueryInterface(p,a,b,c,d,e) (p)->lpVtbl->RemQueryInterface(p,a,b,c,d,e) -#define IRemUnknown2_RemAddRef(p,a,b,c) (p)->lpVtbl->RemAddRef(p,a,b,c) -#define IRemUnknown2_RemRelease(p,a,b) (p)->lpVtbl->RemRelease(p,a,b) -/*** IRemUnknown2 methods ***/ -#define IRemUnknown2_RemQueryInterface2(p,a,b,c,d,e) (p)->lpVtbl->RemQueryInterface2(p,a,b,c,d,e) -#endif - -#endif - -#define IRemUnknown2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IRemUnknown methods ***/ \ - STDMETHOD_(HRESULT,RemQueryInterface)(THIS_ REFIPID ripid, unsigned long cRefs, unsigned short cIids, IID* iids, REMQIRESULT** ppQIResults) PURE; \ - STDMETHOD_(HRESULT,RemAddRef)(THIS_ unsigned short cInterfaceRefs, REMINTERFACEREF* InterfaceRefs, HRESULT* pResults) PURE; \ - STDMETHOD_(HRESULT,RemRelease)(THIS_ unsigned short cInterfaceRefs, REMINTERFACEREF* InterfaceRefs) PURE; \ - /*** IRemUnknown2 methods ***/ \ - STDMETHOD_(HRESULT,RemQueryInterface2)(THIS_ REFIPID ripid, unsigned short cIids, IID* iids, HRESULT* phr, MInterfacePointer** ppMIF) PURE; - -HRESULT CALLBACK IRemUnknown2_RemQueryInterface2_Proxy( - IRemUnknown2* This, - REFIPID ripid, - unsigned short cIids, - IID* iids, - HRESULT* phr, - MInterfacePointer** ppMIF); -void __RPC_STUB IRemUnknown2_RemQueryInterface2_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IRemUnknown2_INTERFACE_DEFINED__ */ - -#if 0 -/***************************************************************************** - * IOXIDResolver interface (v0.0) - */ -DEFINE_GUID(IID_IOXIDResolver, 0x99fcfec4, 0x5260, 0x101b, 0xbb,0xcb, 0x00,0xaa,0x00,0x21,0x34,0x7a); -extern RPC_IF_HANDLE IOXIDResolver_v0_0_c_ifspec; -extern RPC_IF_HANDLE IOXIDResolver_v0_0_s_ifspec; -error_status_t ResolveOxid( - handle_t hRpc, - OXID* pOxid, - unsigned short cRequestedProtseqs, - unsigned short arRequestedProtseqs[], - DUALSTRINGARRAY** ppdsaOxidBindings, - IPID* pipidRemUnknown, - DWORD* pAuthnHint); -error_status_t SimplePing( - handle_t hRpc, - SETID* pSetId); -error_status_t ComplexPing( - handle_t hRpc, - SETID* pSetId, - unsigned short SequenceNum, - unsigned short cAddToSet, - unsigned short cDelFromSet, - OID AddToSet[], - OID DelFromSet[], - unsigned short* pPingBackoffFactor); -error_status_t ServerAlive( - handle_t hRpc); -error_status_t ResolveOxid2( - handle_t hRpc, - OXID* pOxid, - unsigned short cRequestedProtseqs, - unsigned short arRequestedProtseqs[], - DUALSTRINGARRAY** ppdsaOxidBindings, - IPID* pipidRemUnknown, - DWORD* pAuthnHint, - COMVERSION* pComVersion); - -#define MODE_GET_CLASS_OBJECT (0xffffffff) - -/***************************************************************************** - * IRemoteActivation interface (v0.0) - */ -DEFINE_GUID(IID_IRemoteActivation, 0x4d9f4ab8, 0x7d1c, 0x11cf, 0x86,0x1e, 0x00,0x20,0xaf,0x6e,0x7c,0x57); -extern RPC_IF_HANDLE IRemoteActivation_v0_0_c_ifspec; -extern RPC_IF_HANDLE IRemoteActivation_v0_0_s_ifspec; -HRESULT RemoteActivation( - handle_t hRpc, - ORPCTHIS* ORPCthis, - ORPCTHAT* ORPCthat, - GUID* Clsid, - WCHAR* pwszObjectName, - MInterfacePointer* pObjectStorage, - DWORD ClientImpLevel, - DWORD Mode, - DWORD Interfaces, - IID* pIIDs, - unsigned short cRequestedProtseqs, - unsigned short RequestedProtseqs[], - OXID* pOxid, - DUALSTRINGARRAY** ppdsaOxidBindings, - IPID* pipidRemUnknown, - DWORD* pAuthnHint, - COMVERSION* pServerVersion, - HRESULT* phr, - MInterfacePointer** ppInterfaceData, - HRESULT* pResults); - -#endif -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_DCOM_H */ diff --git a/include/Makefile.in b/include/Makefile.in index d4f7b949e2a..61677a89c84 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -32,12 +32,14 @@ IDL_SRCS = \ wtypes.idl IDL_INCLUDES = \ + $(IDL_SRCS) \ axcore.idl \ axextend.idl \ devenum.idl \ dyngraph.idl WINDOWS_INCLUDES = \ + $(IDL_INCLUDES) \ accctrl.h \ aclapi.h \ audevcod.h \ @@ -243,10 +245,7 @@ WINDOWS_INCLUDES = \ wsipx.h \ wsnwlink.h \ xcmc.h \ - zmouse.h \ - $(IDL_INCLUDES) \ - $(IDL_SRCS) \ - $(IDL_SRCS:.idl=.h) + zmouse.h MSVCRT_INCLUDES = \ msvcrt/conio.h \ @@ -295,18 +294,21 @@ EXTRASUBDIRS = msvcrt msvcrt/sys wine @MAKE_RULES@ -all: $(IDL_SRCS:.idl=.h) +IDL_HEADERS = $(IDL_SRCS:.idl=.h) -install:: $(IDL_SRCS:.idl=.h) +all: $(IDL_HEADERS) + +install:: $(IDL_HEADERS) $(MKINSTALLDIRS) $(includedir) $(includedir)/windows $(includedir)/msvcrt $(includedir)/msvcrt/sys for f in $(WINDOWS_INCLUDES); do $(INSTALL_DATA) $(SRCDIR)/$$f $(includedir)/windows/$$f; done + for f in $(IDL_HEADERS); do $(INSTALL_DATA) $$f $(includedir)/windows/$$f; done for f in $(MSVCRT_INCLUDES); do $(INSTALL_DATA) $(SRCDIR)/$$f $(includedir)/$$f; done for f in $(WINE_INCLUDES); do $(INSTALL_DATA) $(SRCDIR)/wine/$$f $(includedir)/$$f; done # Don't just do a rm -rf on $(includedir) -- don't want to wipe out # anything extra the user may have put there. uninstall:: - [ -d $(includedir)/windows ] && cd $(includedir)/windows && $(RM) $(WINDOWS_INCLUDES) || true + [ -d $(includedir)/windows ] && cd $(includedir)/windows && $(RM) $(WINDOWS_INCLUDES) $(IDL_HEADERS) || true [ -d $(includedir) ] && cd $(includedir) && $(RM) $(MSVCRT_INCLUDES) $(WINE_INCLUDES) || true -rmdir $(includedir)/msvcrt/sys $(includedir)/msvcrt $(includedir)/windows $(includedir) diff --git a/include/activscp.h b/include/activscp.h deleted file mode 100644 index 555b32bd53e..00000000000 --- a/include/activscp.h +++ /dev/null @@ -1,1447 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from activscp.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_ACTIVSCP_H -#define __WIDL_ACTIVSCP_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#include -typedef enum tagSCRIPTSTATE { - SCRIPTSTATE_UNINITIALIZED = 0, - SCRIPTSTATE_STARTED = 1, - SCRIPTSTATE_CONNECTED = 2, - SCRIPTSTATE_DISCONNECTED = 3, - SCRIPTSTATE_CLOSED = 4, - SCRIPTSTATE_INITIALIZED = 5 -} SCRIPTSTATE; - -typedef enum tagSCRIPTTHREADSTATE { - SCRIPTTHREADSTATE_NOTINSCRIPT = 0, - SCRIPTTHREADSTATE_RUNNING = 1 -} SCRIPTTHREADSTATE; - -typedef DWORD SCRIPTTHREADID; - -#define SCRIPTTHREADID_CURRENT ((SCRIPTTHREADID)-1) -#define SCRIPTTHREADID_BASE ((SCRIPTTHREADID)-2) -#define SCRIPTTHREADID_ALL ((SCRIPTTHREADID)-3) -#define SCRIPTITEM_ISVISIBLE 0x00000002 -#define SCRIPTITEM_ISSOURCE 0x00000004 -#define SCRIPTITEM_GLOBALMEMBERS 0x00000008 -#define SCRIPTITEM_ISPERSISTENT 0x00000040 -#define SCRIPTITEM_CODEONLY 0x00000200 -#define SCRIPTITEM_NOCODE 0x00000400 -#define SCRIPTITEM_ALL_FLAGS (SCRIPTITEM_ISSOURCE | \ - SCRIPTITEM_ISVISIBLE | \ - SCRIPTITEM_ISPERSISTENT | \ - SCRIPTITEM_GLOBALMEMBERS | \ - SCRIPTITEM_NOCODE | \ - SCRIPTITEM_CODEONLY) -#define SCRIPTTYPELIB_ISCONTROL 0x00000010 -#define SCRIPTTYPELIB_ISPERSISTENT 0x00000040 -#define SCRIPTTYPELIB_ALL_FLAGS (SCRIPTTEXT_ISCONTROL | SCRIPTTYPELIB_ISPERSISTENT) -#define SCRIPTTEXT_DELAYEXECUTION 0x00000001 -#define SCRIPTTEXT_ISVISIBLE 0x00000002 -#define SCRIPTTEXT_ISEXPRESSION 0x00000020 -#define SCRIPTTEXT_ISPERSISTENT 0x00000040 -#define SCRIPTTEXT_HOSTMANAGESSOURCE 0x00000080 -#define SCRIPTTEXT_ALL_FLAGS (SCRIPTTEXT_DELAYEXECUTION | \ - SCRIPTTEXT_ISVISIBLE | \ - SCRIPTTEXT_ISEXPRESSION | \ - SCRIPTTEXT_ISPERSISTENT | \ - SCRIPTTEXT_HOSTMANAGESSOURCE) -#define SCRIPTPROC_HOSTMANAGESSOURCE 0x00000080 -#define SCRIPTPROC_IMPLICIT_THIS 0x00000100 -#define SCRIPTPROC_IMPLICIT_PARENTS 0x00000200 -#define SCRIPTPROC_ALL_FLAGS (SCRIPTPROC_HOSTMANAGESSOURCE | \ - SCRIPTPROC_IMPLICIT_THIS | \ - SCRIPTPROC_IMPLICIT_PARENTS) -#define SCRIPTINFO_IUNKNOWN 0x00000001 -#define SCRIPTINFO_ITYPEINFO 0x00000002 -#define SCRIPTINFO_ALL_FLAGS (SCRIPTINFO_IUNKNOWN | SCRIPTINFO_ITYPEINFO) -#define SCRIPTINTERRUPT_DEBUG 0x00000001 -#define SCRIPTINTERRUPT_RAISEEXCEPTION 0x00000002 -#define SCRIPTINTERRUPT_ALL_FLAGS (SCRIPTINTERRUPT_DEBUG | SCRIPTINTERRUPT_RAISEEXCEPTION) -#define SCRIPTSTAT_STATEMENT_COUNT 1 -#define SCRIPTSTAT_INSTRUCTION_COUNT 2 -#define SCRIPTSTAT_INTSTRUCTION_TIME 3 -#define SCRIPTSTAT_TOTAL_TIME 4 -#ifndef __IActiveScriptError_FWD_DEFINED__ -#define __IActiveScriptError_FWD_DEFINED__ -typedef struct IActiveScriptError IActiveScriptError; -#endif - -/***************************************************************************** - * IActiveScriptError interface - */ -#ifndef __IActiveScriptError_INTERFACE_DEFINED__ -#define __IActiveScriptError_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IActiveScriptError, 0xeae1ba61, 0xa4ed, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IActiveScriptError : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetExceptionInfo( - EXCEPINFO* pexcepinfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourcePosition( - DWORD* pdwSourceContext, - ULONG* pulLineNumber, - LONG* plCharacterPosition) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceLineText( - BSTR* pbstrSourceLine) = 0; - -}; -#else -typedef struct IActiveScriptErrorVtbl IActiveScriptErrorVtbl; -struct IActiveScriptError { - const IActiveScriptErrorVtbl* lpVtbl; -}; -struct IActiveScriptErrorVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IActiveScriptError* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IActiveScriptError* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IActiveScriptError* This); - - /*** IActiveScriptError methods ***/ - HRESULT (STDMETHODCALLTYPE *GetExceptionInfo)( - IActiveScriptError* This, - EXCEPINFO* pexcepinfo); - - HRESULT (STDMETHODCALLTYPE *GetSourcePosition)( - IActiveScriptError* This, - DWORD* pdwSourceContext, - ULONG* pulLineNumber, - LONG* plCharacterPosition); - - HRESULT (STDMETHODCALLTYPE *GetSourceLineText)( - IActiveScriptError* This, - BSTR* pbstrSourceLine); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IActiveScriptError_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IActiveScriptError_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IActiveScriptError_Release(p) (p)->lpVtbl->Release(p) -/*** IActiveScriptError methods ***/ -#define IActiveScriptError_GetExceptionInfo(p,a) (p)->lpVtbl->GetExceptionInfo(p,a) -#define IActiveScriptError_GetSourcePosition(p,a,b,c) (p)->lpVtbl->GetSourcePosition(p,a,b,c) -#define IActiveScriptError_GetSourceLineText(p,a) (p)->lpVtbl->GetSourceLineText(p,a) -#endif - -#endif - -#define IActiveScriptError_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IActiveScriptError methods ***/ \ - STDMETHOD_(HRESULT,GetExceptionInfo)(THIS_ EXCEPINFO* pexcepinfo) PURE; \ - STDMETHOD_(HRESULT,GetSourcePosition)(THIS_ DWORD* pdwSourceContext, ULONG* pulLineNumber, LONG* plCharacterPosition) PURE; \ - STDMETHOD_(HRESULT,GetSourceLineText)(THIS_ BSTR* pbstrSourceLine) PURE; - -HRESULT CALLBACK IActiveScriptError_GetExceptionInfo_Proxy( - IActiveScriptError* This, - EXCEPINFO* pexcepinfo); -void __RPC_STUB IActiveScriptError_GetExceptionInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptError_GetSourcePosition_Proxy( - IActiveScriptError* This, - DWORD* pdwSourceContext, - ULONG* pulLineNumber, - LONG* plCharacterPosition); -void __RPC_STUB IActiveScriptError_GetSourcePosition_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptError_GetSourceLineText_Proxy( - IActiveScriptError* This, - BSTR* pbstrSourceLine); -void __RPC_STUB IActiveScriptError_GetSourceLineText_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IActiveScriptError_INTERFACE_DEFINED__ */ - -#ifndef __IActiveScriptSite_FWD_DEFINED__ -#define __IActiveScriptSite_FWD_DEFINED__ -typedef struct IActiveScriptSite IActiveScriptSite; -#endif - -/***************************************************************************** - * IActiveScriptSite interface - */ -#ifndef __IActiveScriptSite_INTERFACE_DEFINED__ -#define __IActiveScriptSite_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IActiveScriptSite, 0xdb01a1e3, 0xa42b, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IActiveScriptSite : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetLCID( - LCID* plcid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetItemInfo( - LPCOLESTR pstrName, - DWORD dwReturnMask, - IUnknown** ppiunkItem, - ITypeInfo** ppti) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDocVersionString( - BSTR* pbstrVersion) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnScriptTerminate( - const VARIANT* pvarResult, - const EXCEPINFO* pexcepinfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnStateChange( - SCRIPTSTATE ssScriptState) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnScriptError( - IActiveScriptError* pscripterror) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnEnterScript( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnLeaveScript( - ) = 0; - -}; -#else -typedef struct IActiveScriptSiteVtbl IActiveScriptSiteVtbl; -struct IActiveScriptSite { - const IActiveScriptSiteVtbl* lpVtbl; -}; -struct IActiveScriptSiteVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IActiveScriptSite* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IActiveScriptSite* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IActiveScriptSite* This); - - /*** IActiveScriptSite methods ***/ - HRESULT (STDMETHODCALLTYPE *GetLCID)( - IActiveScriptSite* This, - LCID* plcid); - - HRESULT (STDMETHODCALLTYPE *GetItemInfo)( - IActiveScriptSite* This, - LPCOLESTR pstrName, - DWORD dwReturnMask, - IUnknown** ppiunkItem, - ITypeInfo** ppti); - - HRESULT (STDMETHODCALLTYPE *GetDocVersionString)( - IActiveScriptSite* This, - BSTR* pbstrVersion); - - HRESULT (STDMETHODCALLTYPE *OnScriptTerminate)( - IActiveScriptSite* This, - const VARIANT* pvarResult, - const EXCEPINFO* pexcepinfo); - - HRESULT (STDMETHODCALLTYPE *OnStateChange)( - IActiveScriptSite* This, - SCRIPTSTATE ssScriptState); - - HRESULT (STDMETHODCALLTYPE *OnScriptError)( - IActiveScriptSite* This, - IActiveScriptError* pscripterror); - - HRESULT (STDMETHODCALLTYPE *OnEnterScript)( - IActiveScriptSite* This); - - HRESULT (STDMETHODCALLTYPE *OnLeaveScript)( - IActiveScriptSite* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IActiveScriptSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IActiveScriptSite_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IActiveScriptSite_Release(p) (p)->lpVtbl->Release(p) -/*** IActiveScriptSite methods ***/ -#define IActiveScriptSite_GetLCID(p,a) (p)->lpVtbl->GetLCID(p,a) -#define IActiveScriptSite_GetItemInfo(p,a,b,c,d) (p)->lpVtbl->GetItemInfo(p,a,b,c,d) -#define IActiveScriptSite_GetDocVersionString(p,a) (p)->lpVtbl->GetDocVersionString(p,a) -#define IActiveScriptSite_OnScriptTerminate(p,a,b) (p)->lpVtbl->OnScriptTerminate(p,a,b) -#define IActiveScriptSite_OnStateChange(p,a) (p)->lpVtbl->OnStateChange(p,a) -#define IActiveScriptSite_OnScriptError(p,a) (p)->lpVtbl->OnScriptError(p,a) -#define IActiveScriptSite_OnEnterScript(p) (p)->lpVtbl->OnEnterScript(p) -#define IActiveScriptSite_OnLeaveScript(p) (p)->lpVtbl->OnLeaveScript(p) -#endif - -#endif - -#define IActiveScriptSite_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IActiveScriptSite methods ***/ \ - STDMETHOD_(HRESULT,GetLCID)(THIS_ LCID* plcid) PURE; \ - STDMETHOD_(HRESULT,GetItemInfo)(THIS_ LPCOLESTR pstrName, DWORD dwReturnMask, IUnknown** ppiunkItem, ITypeInfo** ppti) PURE; \ - STDMETHOD_(HRESULT,GetDocVersionString)(THIS_ BSTR* pbstrVersion) PURE; \ - STDMETHOD_(HRESULT,OnScriptTerminate)(THIS_ const VARIANT* pvarResult, const EXCEPINFO* pexcepinfo) PURE; \ - STDMETHOD_(HRESULT,OnStateChange)(THIS_ SCRIPTSTATE ssScriptState) PURE; \ - STDMETHOD_(HRESULT,OnScriptError)(THIS_ IActiveScriptError* pscripterror) PURE; \ - STDMETHOD_(HRESULT,OnEnterScript)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnLeaveScript)(THIS) PURE; - -HRESULT CALLBACK IActiveScriptSite_GetLCID_Proxy( - IActiveScriptSite* This, - LCID* plcid); -void __RPC_STUB IActiveScriptSite_GetLCID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptSite_GetItemInfo_Proxy( - IActiveScriptSite* This, - LPCOLESTR pstrName, - DWORD dwReturnMask, - IUnknown** ppiunkItem, - ITypeInfo** ppti); -void __RPC_STUB IActiveScriptSite_GetItemInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptSite_GetDocVersionString_Proxy( - IActiveScriptSite* This, - BSTR* pbstrVersion); -void __RPC_STUB IActiveScriptSite_GetDocVersionString_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptSite_OnScriptTerminate_Proxy( - IActiveScriptSite* This, - const VARIANT* pvarResult, - const EXCEPINFO* pexcepinfo); -void __RPC_STUB IActiveScriptSite_OnScriptTerminate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptSite_OnStateChange_Proxy( - IActiveScriptSite* This, - SCRIPTSTATE ssScriptState); -void __RPC_STUB IActiveScriptSite_OnStateChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptSite_OnScriptError_Proxy( - IActiveScriptSite* This, - IActiveScriptError* pscripterror); -void __RPC_STUB IActiveScriptSite_OnScriptError_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptSite_OnEnterScript_Proxy( - IActiveScriptSite* This); -void __RPC_STUB IActiveScriptSite_OnEnterScript_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptSite_OnLeaveScript_Proxy( - IActiveScriptSite* This); -void __RPC_STUB IActiveScriptSite_OnLeaveScript_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IActiveScriptSite_INTERFACE_DEFINED__ */ - -typedef IActiveScriptSite *PIActiveScriptSite; -#ifndef __IActiveScriptSiteWindow_FWD_DEFINED__ -#define __IActiveScriptSiteWindow_FWD_DEFINED__ -typedef struct IActiveScriptSiteWindow IActiveScriptSiteWindow; -#endif - -/***************************************************************************** - * IActiveScriptSiteWindow interface - */ -#ifndef __IActiveScriptSiteWindow_INTERFACE_DEFINED__ -#define __IActiveScriptSiteWindow_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IActiveScriptSiteWindow, 0xd10f6761, 0x83e9, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IActiveScriptSiteWindow : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetWindow( - HWND* phwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnableModeless( - BOOL fEnable) = 0; - -}; -#else -typedef struct IActiveScriptSiteWindowVtbl IActiveScriptSiteWindowVtbl; -struct IActiveScriptSiteWindow { - const IActiveScriptSiteWindowVtbl* lpVtbl; -}; -struct IActiveScriptSiteWindowVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IActiveScriptSiteWindow* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IActiveScriptSiteWindow* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IActiveScriptSiteWindow* This); - - /*** IActiveScriptSiteWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IActiveScriptSiteWindow* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *EnableModeless)( - IActiveScriptSiteWindow* This, - BOOL fEnable); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IActiveScriptSiteWindow_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IActiveScriptSiteWindow_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IActiveScriptSiteWindow_Release(p) (p)->lpVtbl->Release(p) -/*** IActiveScriptSiteWindow methods ***/ -#define IActiveScriptSiteWindow_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IActiveScriptSiteWindow_EnableModeless(p,a) (p)->lpVtbl->EnableModeless(p,a) -#endif - -#endif - -#define IActiveScriptSiteWindow_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IActiveScriptSiteWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,EnableModeless)(THIS_ BOOL fEnable) PURE; - -HRESULT CALLBACK IActiveScriptSiteWindow_GetWindow_Proxy( - IActiveScriptSiteWindow* This, - HWND* phwnd); -void __RPC_STUB IActiveScriptSiteWindow_GetWindow_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptSiteWindow_EnableModeless_Proxy( - IActiveScriptSiteWindow* This, - BOOL fEnable); -void __RPC_STUB IActiveScriptSiteWindow_EnableModeless_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IActiveScriptSiteWindow_INTERFACE_DEFINED__ */ - -#ifndef __IActiveScriptSiteInterruptPoll_FWD_DEFINED__ -#define __IActiveScriptSiteInterruptPoll_FWD_DEFINED__ -typedef struct IActiveScriptSiteInterruptPoll IActiveScriptSiteInterruptPoll; -#endif - -/***************************************************************************** - * IActiveScriptSiteInterruptPoll interface - */ -#ifndef __IActiveScriptSiteInterruptPoll_INTERFACE_DEFINED__ -#define __IActiveScriptSiteInterruptPoll_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IActiveScriptSiteInterruptPoll, 0x539698a0, 0xcdca, 0x11cf, 0xa5,0xeb, 0x00,0xaa,0x00,0x47,0xa0,0x63); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IActiveScriptSiteInterruptPoll : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryContinue( - ) = 0; - -}; -#else -typedef struct IActiveScriptSiteInterruptPollVtbl IActiveScriptSiteInterruptPollVtbl; -struct IActiveScriptSiteInterruptPoll { - const IActiveScriptSiteInterruptPollVtbl* lpVtbl; -}; -struct IActiveScriptSiteInterruptPollVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IActiveScriptSiteInterruptPoll* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IActiveScriptSiteInterruptPoll* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IActiveScriptSiteInterruptPoll* This); - - /*** IActiveScriptSiteInterruptPoll methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryContinue)( - IActiveScriptSiteInterruptPoll* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IActiveScriptSiteInterruptPoll_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IActiveScriptSiteInterruptPoll_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IActiveScriptSiteInterruptPoll_Release(p) (p)->lpVtbl->Release(p) -/*** IActiveScriptSiteInterruptPoll methods ***/ -#define IActiveScriptSiteInterruptPoll_QueryContinue(p) (p)->lpVtbl->QueryContinue(p) -#endif - -#endif - -#define IActiveScriptSiteInterruptPoll_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IActiveScriptSiteInterruptPoll methods ***/ \ - STDMETHOD_(HRESULT,QueryContinue)(THIS) PURE; - -HRESULT CALLBACK IActiveScriptSiteInterruptPoll_QueryContinue_Proxy( - IActiveScriptSiteInterruptPoll* This); -void __RPC_STUB IActiveScriptSiteInterruptPoll_QueryContinue_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IActiveScriptSiteInterruptPoll_INTERFACE_DEFINED__ */ - -#ifndef __IActiveScript_FWD_DEFINED__ -#define __IActiveScript_FWD_DEFINED__ -typedef struct IActiveScript IActiveScript; -#endif - -/***************************************************************************** - * IActiveScript interface - */ -#ifndef __IActiveScript_INTERFACE_DEFINED__ -#define __IActiveScript_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IActiveScript, 0xbb1a2ae1, 0xa4f9, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IActiveScript : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetScriptSite( - IActiveScriptSite* pass) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetScriptSite( - REFIID riid, - void** ppvObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetScriptState( - SCRIPTSTATE ss) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetScriptState( - SCRIPTSTATE* pssState) = 0; - - virtual HRESULT STDMETHODCALLTYPE Close( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddNamedItem( - LPCOLESTR pstrName, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddTypeLib( - REFGUID rguidTypeLib, - DWORD dwMajor, - DWORD dwMinor, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetScriptDispatch( - LPCOLESTR pstrItemName, - IDispatch** ppdisp) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentScriptThreadID( - SCRIPTTHREADID* pstidThread) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetScriptThreadID( - DWORD dwWin32ThreadId, - SCRIPTTHREADID* pstidThread) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetScriptThreadState( - SCRIPTTHREADID stidThread, - SCRIPTTHREADSTATE* pstsState) = 0; - - virtual HRESULT STDMETHODCALLTYPE InterruptScriptThread( - SCRIPTTHREADID stidThread, - const EXCEPINFO* pexcepinfo, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IActiveScript** ppscript) = 0; - -}; -#else -typedef struct IActiveScriptVtbl IActiveScriptVtbl; -struct IActiveScript { - const IActiveScriptVtbl* lpVtbl; -}; -struct IActiveScriptVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IActiveScript* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IActiveScript* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IActiveScript* This); - - /*** IActiveScript methods ***/ - HRESULT (STDMETHODCALLTYPE *SetScriptSite)( - IActiveScript* This, - IActiveScriptSite* pass); - - HRESULT (STDMETHODCALLTYPE *GetScriptSite)( - IActiveScript* This, - REFIID riid, - void** ppvObject); - - HRESULT (STDMETHODCALLTYPE *SetScriptState)( - IActiveScript* This, - SCRIPTSTATE ss); - - HRESULT (STDMETHODCALLTYPE *GetScriptState)( - IActiveScript* This, - SCRIPTSTATE* pssState); - - HRESULT (STDMETHODCALLTYPE *Close)( - IActiveScript* This); - - HRESULT (STDMETHODCALLTYPE *AddNamedItem)( - IActiveScript* This, - LPCOLESTR pstrName, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *AddTypeLib)( - IActiveScript* This, - REFGUID rguidTypeLib, - DWORD dwMajor, - DWORD dwMinor, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *GetScriptDispatch)( - IActiveScript* This, - LPCOLESTR pstrItemName, - IDispatch** ppdisp); - - HRESULT (STDMETHODCALLTYPE *GetCurrentScriptThreadID)( - IActiveScript* This, - SCRIPTTHREADID* pstidThread); - - HRESULT (STDMETHODCALLTYPE *GetScriptThreadID)( - IActiveScript* This, - DWORD dwWin32ThreadId, - SCRIPTTHREADID* pstidThread); - - HRESULT (STDMETHODCALLTYPE *GetScriptThreadState)( - IActiveScript* This, - SCRIPTTHREADID stidThread, - SCRIPTTHREADSTATE* pstsState); - - HRESULT (STDMETHODCALLTYPE *InterruptScriptThread)( - IActiveScript* This, - SCRIPTTHREADID stidThread, - const EXCEPINFO* pexcepinfo, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IActiveScript* This, - IActiveScript** ppscript); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IActiveScript_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IActiveScript_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IActiveScript_Release(p) (p)->lpVtbl->Release(p) -/*** IActiveScript methods ***/ -#define IActiveScript_SetScriptSite(p,a) (p)->lpVtbl->SetScriptSite(p,a) -#define IActiveScript_GetScriptSite(p,a,b) (p)->lpVtbl->GetScriptSite(p,a,b) -#define IActiveScript_SetScriptState(p,a) (p)->lpVtbl->SetScriptState(p,a) -#define IActiveScript_GetScriptState(p,a) (p)->lpVtbl->GetScriptState(p,a) -#define IActiveScript_Close(p) (p)->lpVtbl->Close(p) -#define IActiveScript_AddNamedItem(p,a,b) (p)->lpVtbl->AddNamedItem(p,a,b) -#define IActiveScript_AddTypeLib(p,a,b,c,d) (p)->lpVtbl->AddTypeLib(p,a,b,c,d) -#define IActiveScript_GetScriptDispatch(p,a,b) (p)->lpVtbl->GetScriptDispatch(p,a,b) -#define IActiveScript_GetCurrentScriptThreadID(p,a) (p)->lpVtbl->GetCurrentScriptThreadID(p,a) -#define IActiveScript_GetScriptThreadID(p,a,b) (p)->lpVtbl->GetScriptThreadID(p,a,b) -#define IActiveScript_GetScriptThreadState(p,a,b) (p)->lpVtbl->GetScriptThreadState(p,a,b) -#define IActiveScript_InterruptScriptThread(p,a,b,c) (p)->lpVtbl->InterruptScriptThread(p,a,b,c) -#define IActiveScript_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IActiveScript_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IActiveScript methods ***/ \ - STDMETHOD_(HRESULT,SetScriptSite)(THIS_ IActiveScriptSite* pass) PURE; \ - STDMETHOD_(HRESULT,GetScriptSite)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(HRESULT,SetScriptState)(THIS_ SCRIPTSTATE ss) PURE; \ - STDMETHOD_(HRESULT,GetScriptState)(THIS_ SCRIPTSTATE* pssState) PURE; \ - STDMETHOD_(HRESULT,Close)(THIS) PURE; \ - STDMETHOD_(HRESULT,AddNamedItem)(THIS_ LPCOLESTR pstrName, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,AddTypeLib)(THIS_ REFGUID rguidTypeLib, DWORD dwMajor, DWORD dwMinor, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,GetScriptDispatch)(THIS_ LPCOLESTR pstrItemName, IDispatch** ppdisp) PURE; \ - STDMETHOD_(HRESULT,GetCurrentScriptThreadID)(THIS_ SCRIPTTHREADID* pstidThread) PURE; \ - STDMETHOD_(HRESULT,GetScriptThreadID)(THIS_ DWORD dwWin32ThreadId, SCRIPTTHREADID* pstidThread) PURE; \ - STDMETHOD_(HRESULT,GetScriptThreadState)(THIS_ SCRIPTTHREADID stidThread, SCRIPTTHREADSTATE* pstsState) PURE; \ - STDMETHOD_(HRESULT,InterruptScriptThread)(THIS_ SCRIPTTHREADID stidThread, const EXCEPINFO* pexcepinfo, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IActiveScript** ppscript) PURE; - -HRESULT CALLBACK IActiveScript_SetScriptSite_Proxy( - IActiveScript* This, - IActiveScriptSite* pass); -void __RPC_STUB IActiveScript_SetScriptSite_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_GetScriptSite_Proxy( - IActiveScript* This, - REFIID riid, - void** ppvObject); -void __RPC_STUB IActiveScript_GetScriptSite_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_SetScriptState_Proxy( - IActiveScript* This, - SCRIPTSTATE ss); -void __RPC_STUB IActiveScript_SetScriptState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_GetScriptState_Proxy( - IActiveScript* This, - SCRIPTSTATE* pssState); -void __RPC_STUB IActiveScript_GetScriptState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_Close_Proxy( - IActiveScript* This); -void __RPC_STUB IActiveScript_Close_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_AddNamedItem_Proxy( - IActiveScript* This, - LPCOLESTR pstrName, - DWORD dwFlags); -void __RPC_STUB IActiveScript_AddNamedItem_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_AddTypeLib_Proxy( - IActiveScript* This, - REFGUID rguidTypeLib, - DWORD dwMajor, - DWORD dwMinor, - DWORD dwFlags); -void __RPC_STUB IActiveScript_AddTypeLib_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_GetScriptDispatch_Proxy( - IActiveScript* This, - LPCOLESTR pstrItemName, - IDispatch** ppdisp); -void __RPC_STUB IActiveScript_GetScriptDispatch_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_GetCurrentScriptThreadID_Proxy( - IActiveScript* This, - SCRIPTTHREADID* pstidThread); -void __RPC_STUB IActiveScript_GetCurrentScriptThreadID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_GetScriptThreadID_Proxy( - IActiveScript* This, - DWORD dwWin32ThreadId, - SCRIPTTHREADID* pstidThread); -void __RPC_STUB IActiveScript_GetScriptThreadID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_GetScriptThreadState_Proxy( - IActiveScript* This, - SCRIPTTHREADID stidThread, - SCRIPTTHREADSTATE* pstsState); -void __RPC_STUB IActiveScript_GetScriptThreadState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_InterruptScriptThread_Proxy( - IActiveScript* This, - SCRIPTTHREADID stidThread, - const EXCEPINFO* pexcepinfo, - DWORD dwFlags); -void __RPC_STUB IActiveScript_InterruptScriptThread_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScript_Clone_Proxy( - IActiveScript* This, - IActiveScript** ppscript); -void __RPC_STUB IActiveScript_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IActiveScript_INTERFACE_DEFINED__ */ - -typedef IActiveScript *PIActiveScript; -#ifndef __IActiveScriptParse_FWD_DEFINED__ -#define __IActiveScriptParse_FWD_DEFINED__ -typedef struct IActiveScriptParse IActiveScriptParse; -#endif - -/***************************************************************************** - * IActiveScriptParse interface - */ -#ifndef __IActiveScriptParse_INTERFACE_DEFINED__ -#define __IActiveScriptParse_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IActiveScriptParse, 0xbb1a2ae2, 0xa4f9, 0x11cf, 0x8f,0x20, 0x00,0x80,0x5f,0x2c,0xd0,0x64); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IActiveScriptParse : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE InitNew( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddScriptlet( - LPCOLESTR pstrDefaultName, - LPCOLESTR pstrCode, - LPCOLESTR pstrItemName, - LPCOLESTR pstrSubItemName, - LPCOLESTR pstrEventName, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - BSTR* pbstrName, - EXCEPINFO* pexcepinfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE ParseScriptText( - LPCOLESTR pstrCode, - LPCOLESTR pstrItemName, - IUnknown* punkContext, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - VARIANT* pvarResult, - EXCEPINFO* pexcepinfo) = 0; - -}; -#else -typedef struct IActiveScriptParseVtbl IActiveScriptParseVtbl; -struct IActiveScriptParse { - const IActiveScriptParseVtbl* lpVtbl; -}; -struct IActiveScriptParseVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IActiveScriptParse* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IActiveScriptParse* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IActiveScriptParse* This); - - /*** IActiveScriptParse methods ***/ - HRESULT (STDMETHODCALLTYPE *InitNew)( - IActiveScriptParse* This); - - HRESULT (STDMETHODCALLTYPE *AddScriptlet)( - IActiveScriptParse* This, - LPCOLESTR pstrDefaultName, - LPCOLESTR pstrCode, - LPCOLESTR pstrItemName, - LPCOLESTR pstrSubItemName, - LPCOLESTR pstrEventName, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - BSTR* pbstrName, - EXCEPINFO* pexcepinfo); - - HRESULT (STDMETHODCALLTYPE *ParseScriptText)( - IActiveScriptParse* This, - LPCOLESTR pstrCode, - LPCOLESTR pstrItemName, - IUnknown* punkContext, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - VARIANT* pvarResult, - EXCEPINFO* pexcepinfo); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IActiveScriptParse_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IActiveScriptParse_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IActiveScriptParse_Release(p) (p)->lpVtbl->Release(p) -/*** IActiveScriptParse methods ***/ -#define IActiveScriptParse_InitNew(p) (p)->lpVtbl->InitNew(p) -#define IActiveScriptParse_AddScriptlet(p,a,b,c,d,e,f,g,h,i,j,k) (p)->lpVtbl->AddScriptlet(p,a,b,c,d,e,f,g,h,i,j,k) -#define IActiveScriptParse_ParseScriptText(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->ParseScriptText(p,a,b,c,d,e,f,g,h,i) -#endif - -#endif - -#define IActiveScriptParse_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IActiveScriptParse methods ***/ \ - STDMETHOD_(HRESULT,InitNew)(THIS) PURE; \ - STDMETHOD_(HRESULT,AddScriptlet)(THIS_ LPCOLESTR pstrDefaultName, LPCOLESTR pstrCode, LPCOLESTR pstrItemName, LPCOLESTR pstrSubItemName, LPCOLESTR pstrEventName, LPCOLESTR pstrDelimiter, DWORD dwSourceContextCookie, ULONG ulStartingLineNumber, DWORD dwFlags, BSTR* pbstrName, EXCEPINFO* pexcepinfo) PURE; \ - STDMETHOD_(HRESULT,ParseScriptText)(THIS_ LPCOLESTR pstrCode, LPCOLESTR pstrItemName, IUnknown* punkContext, LPCOLESTR pstrDelimiter, DWORD dwSourceContextCookie, ULONG ulStartingLineNumber, DWORD dwFlags, VARIANT* pvarResult, EXCEPINFO* pexcepinfo) PURE; - -HRESULT CALLBACK IActiveScriptParse_InitNew_Proxy( - IActiveScriptParse* This); -void __RPC_STUB IActiveScriptParse_InitNew_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptParse_AddScriptlet_Proxy( - IActiveScriptParse* This, - LPCOLESTR pstrDefaultName, - LPCOLESTR pstrCode, - LPCOLESTR pstrItemName, - LPCOLESTR pstrSubItemName, - LPCOLESTR pstrEventName, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - BSTR* pbstrName, - EXCEPINFO* pexcepinfo); -void __RPC_STUB IActiveScriptParse_AddScriptlet_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptParse_ParseScriptText_Proxy( - IActiveScriptParse* This, - LPCOLESTR pstrCode, - LPCOLESTR pstrItemName, - IUnknown* punkContext, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - VARIANT* pvarResult, - EXCEPINFO* pexcepinfo); -void __RPC_STUB IActiveScriptParse_ParseScriptText_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IActiveScriptParse_INTERFACE_DEFINED__ */ - -typedef IActiveScriptParse *PIActiveScriptParse; -#ifndef __IActiveScriptParseProcedureOld_FWD_DEFINED__ -#define __IActiveScriptParseProcedureOld_FWD_DEFINED__ -typedef struct IActiveScriptParseProcedureOld IActiveScriptParseProcedureOld; -#endif - -/***************************************************************************** - * IActiveScriptParseProcedureOld interface - */ -#ifndef __IActiveScriptParseProcedureOld_INTERFACE_DEFINED__ -#define __IActiveScriptParseProcedureOld_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IActiveScriptParseProcedureOld, 0x1cff0050, 0x6fdd, 0x11d0, 0x93,0x28, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IActiveScriptParseProcedureOld : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE ParseProcedureText( - LPCOLESTR pstrCode, - LPCOLESTR pstrFormalParams, - LPCOLESTR pstrItemName, - IUnknown* punkContext, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - IDispatch** ppdisp) = 0; - -}; -#else -typedef struct IActiveScriptParseProcedureOldVtbl IActiveScriptParseProcedureOldVtbl; -struct IActiveScriptParseProcedureOld { - const IActiveScriptParseProcedureOldVtbl* lpVtbl; -}; -struct IActiveScriptParseProcedureOldVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IActiveScriptParseProcedureOld* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IActiveScriptParseProcedureOld* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IActiveScriptParseProcedureOld* This); - - /*** IActiveScriptParseProcedureOld methods ***/ - HRESULT (STDMETHODCALLTYPE *ParseProcedureText)( - IActiveScriptParseProcedureOld* This, - LPCOLESTR pstrCode, - LPCOLESTR pstrFormalParams, - LPCOLESTR pstrItemName, - IUnknown* punkContext, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - IDispatch** ppdisp); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IActiveScriptParseProcedureOld_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IActiveScriptParseProcedureOld_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IActiveScriptParseProcedureOld_Release(p) (p)->lpVtbl->Release(p) -/*** IActiveScriptParseProcedureOld methods ***/ -#define IActiveScriptParseProcedureOld_ParseProcedureText(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->ParseProcedureText(p,a,b,c,d,e,f,g,h,i) -#endif - -#endif - -#define IActiveScriptParseProcedureOld_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IActiveScriptParseProcedureOld methods ***/ \ - STDMETHOD_(HRESULT,ParseProcedureText)(THIS_ LPCOLESTR pstrCode, LPCOLESTR pstrFormalParams, LPCOLESTR pstrItemName, IUnknown* punkContext, LPCOLESTR pstrDelimiter, DWORD dwSourceContextCookie, ULONG ulStartingLineNumber, DWORD dwFlags, IDispatch** ppdisp) PURE; - -HRESULT CALLBACK IActiveScriptParseProcedureOld_ParseProcedureText_Proxy( - IActiveScriptParseProcedureOld* This, - LPCOLESTR pstrCode, - LPCOLESTR pstrFormalParams, - LPCOLESTR pstrItemName, - IUnknown* punkContext, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - IDispatch** ppdisp); -void __RPC_STUB IActiveScriptParseProcedureOld_ParseProcedureText_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IActiveScriptParseProcedureOld_INTERFACE_DEFINED__ */ - -#ifndef __IActiveScriptParseProcedure_FWD_DEFINED__ -#define __IActiveScriptParseProcedure_FWD_DEFINED__ -typedef struct IActiveScriptParseProcedure IActiveScriptParseProcedure; -#endif - -/***************************************************************************** - * IActiveScriptParseProcedure interface - */ -#ifndef __IActiveScriptParseProcedure_INTERFACE_DEFINED__ -#define __IActiveScriptParseProcedure_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IActiveScriptParseProcedure, 0xaa5b6a80, 0xb834, 0x11d0, 0x93,0x2f, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IActiveScriptParseProcedure : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE ParseProcedureText( - LPCOLESTR pstrCode, - LPCOLESTR pstrFormalParams, - LPCOLESTR pstrProcedureName, - LPCOLESTR pstrItemName, - IUnknown* punkContext, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - IDispatch** ppdisp) = 0; - -}; -#else -typedef struct IActiveScriptParseProcedureVtbl IActiveScriptParseProcedureVtbl; -struct IActiveScriptParseProcedure { - const IActiveScriptParseProcedureVtbl* lpVtbl; -}; -struct IActiveScriptParseProcedureVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IActiveScriptParseProcedure* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IActiveScriptParseProcedure* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IActiveScriptParseProcedure* This); - - /*** IActiveScriptParseProcedure methods ***/ - HRESULT (STDMETHODCALLTYPE *ParseProcedureText)( - IActiveScriptParseProcedure* This, - LPCOLESTR pstrCode, - LPCOLESTR pstrFormalParams, - LPCOLESTR pstrProcedureName, - LPCOLESTR pstrItemName, - IUnknown* punkContext, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - IDispatch** ppdisp); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IActiveScriptParseProcedure_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IActiveScriptParseProcedure_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IActiveScriptParseProcedure_Release(p) (p)->lpVtbl->Release(p) -/*** IActiveScriptParseProcedure methods ***/ -#define IActiveScriptParseProcedure_ParseProcedureText(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->ParseProcedureText(p,a,b,c,d,e,f,g,h,i,j) -#endif - -#endif - -#define IActiveScriptParseProcedure_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IActiveScriptParseProcedure methods ***/ \ - STDMETHOD_(HRESULT,ParseProcedureText)(THIS_ LPCOLESTR pstrCode, LPCOLESTR pstrFormalParams, LPCOLESTR pstrProcedureName, LPCOLESTR pstrItemName, IUnknown* punkContext, LPCOLESTR pstrDelimiter, DWORD dwSourceContextCookie, ULONG ulStartingLineNumber, DWORD dwFlags, IDispatch** ppdisp) PURE; - -HRESULT CALLBACK IActiveScriptParseProcedure_ParseProcedureText_Proxy( - IActiveScriptParseProcedure* This, - LPCOLESTR pstrCode, - LPCOLESTR pstrFormalParams, - LPCOLESTR pstrProcedureName, - LPCOLESTR pstrItemName, - IUnknown* punkContext, - LPCOLESTR pstrDelimiter, - DWORD dwSourceContextCookie, - ULONG ulStartingLineNumber, - DWORD dwFlags, - IDispatch** ppdisp); -void __RPC_STUB IActiveScriptParseProcedure_ParseProcedureText_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IActiveScriptParseProcedure_INTERFACE_DEFINED__ */ - -#ifndef __IBindEventHandler_FWD_DEFINED__ -#define __IBindEventHandler_FWD_DEFINED__ -typedef struct IBindEventHandler IBindEventHandler; -#endif - -/***************************************************************************** - * IBindEventHandler interface - */ -#ifndef __IBindEventHandler_INTERFACE_DEFINED__ -#define __IBindEventHandler_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IBindEventHandler, 0x63cdbcb0, 0xc1b1, 0x11d0, 0x93,0x36, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IBindEventHandler : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE BindHandler( - LPCOLESTR pstrEvent, - IDispatch* pdisp) = 0; - -}; -#else -typedef struct IBindEventHandlerVtbl IBindEventHandlerVtbl; -struct IBindEventHandler { - const IBindEventHandlerVtbl* lpVtbl; -}; -struct IBindEventHandlerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IBindEventHandler* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IBindEventHandler* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IBindEventHandler* This); - - /*** IBindEventHandler methods ***/ - HRESULT (STDMETHODCALLTYPE *BindHandler)( - IBindEventHandler* This, - LPCOLESTR pstrEvent, - IDispatch* pdisp); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IBindEventHandler_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IBindEventHandler_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IBindEventHandler_Release(p) (p)->lpVtbl->Release(p) -/*** IBindEventHandler methods ***/ -#define IBindEventHandler_BindHandler(p,a,b) (p)->lpVtbl->BindHandler(p,a,b) -#endif - -#endif - -#define IBindEventHandler_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IBindEventHandler methods ***/ \ - STDMETHOD_(HRESULT,BindHandler)(THIS_ LPCOLESTR pstrEvent, IDispatch* pdisp) PURE; - -HRESULT CALLBACK IBindEventHandler_BindHandler_Proxy( - IBindEventHandler* This, - LPCOLESTR pstrEvent, - IDispatch* pdisp); -void __RPC_STUB IBindEventHandler_BindHandler_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IBindEventHandler_INTERFACE_DEFINED__ */ - -#ifndef __IActiveScriptStats_FWD_DEFINED__ -#define __IActiveScriptStats_FWD_DEFINED__ -typedef struct IActiveScriptStats IActiveScriptStats; -#endif - -/***************************************************************************** - * IActiveScriptStats interface - */ -#ifndef __IActiveScriptStats_INTERFACE_DEFINED__ -#define __IActiveScriptStats_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IActiveScriptStats, 0xb8da6310, 0xe19b, 0x11d0, 0x93,0x3c, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IActiveScriptStats : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetStat( - DWORD stid, - ULONG* pluHi, - ULONG* pluLo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStatEx( - REFGUID guid, - ULONG* pluHi, - ULONG* pluLo) = 0; - - virtual HRESULT STDMETHODCALLTYPE ResetStats( - ) = 0; - -}; -#else -typedef struct IActiveScriptStatsVtbl IActiveScriptStatsVtbl; -struct IActiveScriptStats { - const IActiveScriptStatsVtbl* lpVtbl; -}; -struct IActiveScriptStatsVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IActiveScriptStats* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IActiveScriptStats* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IActiveScriptStats* This); - - /*** IActiveScriptStats methods ***/ - HRESULT (STDMETHODCALLTYPE *GetStat)( - IActiveScriptStats* This, - DWORD stid, - ULONG* pluHi, - ULONG* pluLo); - - HRESULT (STDMETHODCALLTYPE *GetStatEx)( - IActiveScriptStats* This, - REFGUID guid, - ULONG* pluHi, - ULONG* pluLo); - - HRESULT (STDMETHODCALLTYPE *ResetStats)( - IActiveScriptStats* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IActiveScriptStats_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IActiveScriptStats_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IActiveScriptStats_Release(p) (p)->lpVtbl->Release(p) -/*** IActiveScriptStats methods ***/ -#define IActiveScriptStats_GetStat(p,a,b,c) (p)->lpVtbl->GetStat(p,a,b,c) -#define IActiveScriptStats_GetStatEx(p,a,b,c) (p)->lpVtbl->GetStatEx(p,a,b,c) -#define IActiveScriptStats_ResetStats(p) (p)->lpVtbl->ResetStats(p) -#endif - -#endif - -#define IActiveScriptStats_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IActiveScriptStats methods ***/ \ - STDMETHOD_(HRESULT,GetStat)(THIS_ DWORD stid, ULONG* pluHi, ULONG* pluLo) PURE; \ - STDMETHOD_(HRESULT,GetStatEx)(THIS_ REFGUID guid, ULONG* pluHi, ULONG* pluLo) PURE; \ - STDMETHOD_(HRESULT,ResetStats)(THIS) PURE; - -HRESULT CALLBACK IActiveScriptStats_GetStat_Proxy( - IActiveScriptStats* This, - DWORD stid, - ULONG* pluHi, - ULONG* pluLo); -void __RPC_STUB IActiveScriptStats_GetStat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptStats_GetStatEx_Proxy( - IActiveScriptStats* This, - REFGUID guid, - ULONG* pluHi, - ULONG* pluLo); -void __RPC_STUB IActiveScriptStats_GetStatEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IActiveScriptStats_ResetStats_Proxy( - IActiveScriptStats* This); -void __RPC_STUB IActiveScriptStats_ResetStats_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IActiveScriptStats_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_ACTIVSCP_H */ diff --git a/include/amstream.h b/include/amstream.h deleted file mode 100644 index e764d896071..00000000000 --- a/include/amstream.h +++ /dev/null @@ -1,1595 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from amstream.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_AMSTREAM_H -#define __WIDL_AMSTREAM_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#include -#include -#include -#include -#include -#include -#if 0 -#ifndef __IDirectDraw_FWD_DEFINED__ -#define __IDirectDraw_FWD_DEFINED__ -typedef struct IDirectDraw IDirectDraw; -#endif - -#ifndef __IDirectDrawSurface_FWD_DEFINED__ -#define __IDirectDrawSurface_FWD_DEFINED__ -typedef struct IDirectDrawSurface IDirectDrawSurface; -#endif - -#endif -#ifndef __IAMMultiMediaStream_FWD_DEFINED__ -#define __IAMMultiMediaStream_FWD_DEFINED__ -typedef struct IAMMultiMediaStream IAMMultiMediaStream; -#endif - -#ifndef __IAMMediaStream_FWD_DEFINED__ -#define __IAMMediaStream_FWD_DEFINED__ -typedef struct IAMMediaStream IAMMediaStream; -#endif - -#ifndef __IMediaStreamFilter_FWD_DEFINED__ -#define __IMediaStreamFilter_FWD_DEFINED__ -typedef struct IMediaStreamFilter IMediaStreamFilter; -#endif - -#ifndef __IAMMediaTypeStream_FWD_DEFINED__ -#define __IAMMediaTypeStream_FWD_DEFINED__ -typedef struct IAMMediaTypeStream IAMMediaTypeStream; -#endif - -#ifndef __IAMMediaTypeSample_FWD_DEFINED__ -#define __IAMMediaTypeSample_FWD_DEFINED__ -typedef struct IAMMediaTypeSample IAMMediaTypeSample; -#endif - -enum { - AMMSF_NOGRAPHTHREAD = 0x1 -}; - -enum { - AMMSF_ADDDEFAULTRENDERER = 0x1, - AMMSF_CREATEPEER = 0x2 -}; - -enum { - AMMSF_RENDERTYPEMASK = 0x3, - AMMSF_RENDERTOEXISTING = 0x0, - AMMSF_RENDERALLSTREAMS = 0x1, - AMMSF_NORENDER = 0x2, - AMMSF_NOCLOCK = 0x4, - AMMSF_RUN = 0x8 -}; - -typedef enum { - Disabled = 0, - ReadData = 1, - RenderData = 2 -} OUTPUT_STATE; - -/***************************************************************************** - * IAMMultiMediaStream interface - */ -#ifndef __IAMMultiMediaStream_INTERFACE_DEFINED__ -#define __IAMMultiMediaStream_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAMMultiMediaStream, 0xbebe595c, 0x9a6f, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAMMultiMediaStream : public IMultiMediaStream -{ - virtual HRESULT STDMETHODCALLTYPE Initialize( - STREAM_TYPE StreamType, - DWORD dwFlags, - IGraphBuilder* pFilterGraph) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFilterGraph( - IGraphBuilder** ppGraphBuilder) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFilter( - IMediaStreamFilter** ppFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddMediaStream( - IUnknown* pStreamObject, - const MSPID* PurposeId, - DWORD dwFlags, - IMediaStream** ppNewStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE OpenFile( - LPCWSTR pszFileName, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE OpenMoniker( - IBindCtx* pCtx, - IMoniker* pMoniker, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Render( - DWORD dwFlags) = 0; - -}; -#else -typedef struct IAMMultiMediaStreamVtbl IAMMultiMediaStreamVtbl; -struct IAMMultiMediaStream { - const IAMMultiMediaStreamVtbl* lpVtbl; -}; -struct IAMMultiMediaStreamVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAMMultiMediaStream* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAMMultiMediaStream* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAMMultiMediaStream* This); - - /*** IMultiMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *GetInformation)( - IAMMultiMediaStream* This, - char* pdwFlags, - STREAM_TYPE* pStreamType); - - HRESULT (STDMETHODCALLTYPE *GetMediaStream)( - IAMMultiMediaStream* This, - REFMSPID idPurpose, - IMediaStream** ppMediaStream); - - HRESULT (STDMETHODCALLTYPE *EnumMediaStreams)( - IAMMultiMediaStream* This, - long Index, - IMediaStream** ppMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetState)( - IAMMultiMediaStream* This, - STREAM_STATE* pCurrentState); - - HRESULT (STDMETHODCALLTYPE *SetState)( - IAMMultiMediaStream* This, - STREAM_STATE NewState); - - HRESULT (STDMETHODCALLTYPE *GetTime)( - IAMMultiMediaStream* This, - STREAM_TIME* pCurrentTime); - - HRESULT (STDMETHODCALLTYPE *GetDuration)( - IAMMultiMediaStream* This, - STREAM_TIME* pDuration); - - HRESULT (STDMETHODCALLTYPE *Seek)( - IAMMultiMediaStream* This, - STREAM_TIME SeekTime); - - HRESULT (STDMETHODCALLTYPE *GetEndOfStreamEventHandle)( - IAMMultiMediaStream* This, - HANDLE* phEOS); - - /*** IAMMultiMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *Initialize)( - IAMMultiMediaStream* This, - STREAM_TYPE StreamType, - DWORD dwFlags, - IGraphBuilder* pFilterGraph); - - HRESULT (STDMETHODCALLTYPE *GetFilterGraph)( - IAMMultiMediaStream* This, - IGraphBuilder** ppGraphBuilder); - - HRESULT (STDMETHODCALLTYPE *GetFilter)( - IAMMultiMediaStream* This, - IMediaStreamFilter** ppFilter); - - HRESULT (STDMETHODCALLTYPE *AddMediaStream)( - IAMMultiMediaStream* This, - IUnknown* pStreamObject, - const MSPID* PurposeId, - DWORD dwFlags, - IMediaStream** ppNewStream); - - HRESULT (STDMETHODCALLTYPE *OpenFile)( - IAMMultiMediaStream* This, - LPCWSTR pszFileName, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *OpenMoniker)( - IAMMultiMediaStream* This, - IBindCtx* pCtx, - IMoniker* pMoniker, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *Render)( - IAMMultiMediaStream* This, - DWORD dwFlags); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAMMultiMediaStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAMMultiMediaStream_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAMMultiMediaStream_Release(p) (p)->lpVtbl->Release(p) -/*** IMultiMediaStream methods ***/ -#define IAMMultiMediaStream_GetInformation(p,a,b) (p)->lpVtbl->GetInformation(p,a,b) -#define IAMMultiMediaStream_GetMediaStream(p,a,b) (p)->lpVtbl->GetMediaStream(p,a,b) -#define IAMMultiMediaStream_EnumMediaStreams(p,a,b) (p)->lpVtbl->EnumMediaStreams(p,a,b) -#define IAMMultiMediaStream_GetState(p,a) (p)->lpVtbl->GetState(p,a) -#define IAMMultiMediaStream_SetState(p,a) (p)->lpVtbl->SetState(p,a) -#define IAMMultiMediaStream_GetTime(p,a) (p)->lpVtbl->GetTime(p,a) -#define IAMMultiMediaStream_GetDuration(p,a) (p)->lpVtbl->GetDuration(p,a) -#define IAMMultiMediaStream_Seek(p,a) (p)->lpVtbl->Seek(p,a) -#define IAMMultiMediaStream_GetEndOfStreamEventHandle(p,a) (p)->lpVtbl->GetEndOfStreamEventHandle(p,a) -/*** IAMMultiMediaStream methods ***/ -#define IAMMultiMediaStream_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IAMMultiMediaStream_GetFilterGraph(p,a) (p)->lpVtbl->GetFilterGraph(p,a) -#define IAMMultiMediaStream_GetFilter(p,a) (p)->lpVtbl->GetFilter(p,a) -#define IAMMultiMediaStream_AddMediaStream(p,a,b,c,d) (p)->lpVtbl->AddMediaStream(p,a,b,c,d) -#define IAMMultiMediaStream_OpenFile(p,a,b) (p)->lpVtbl->OpenFile(p,a,b) -#define IAMMultiMediaStream_OpenMoniker(p,a,b,c) (p)->lpVtbl->OpenMoniker(p,a,b,c) -#define IAMMultiMediaStream_Render(p,a) (p)->lpVtbl->Render(p,a) -#endif - -#endif - -#define IAMMultiMediaStream_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMultiMediaStream methods ***/ \ - STDMETHOD_(HRESULT,GetInformation)(THIS_ char* pdwFlags, STREAM_TYPE* pStreamType) PURE; \ - STDMETHOD_(HRESULT,GetMediaStream)(THIS_ REFMSPID idPurpose, IMediaStream** ppMediaStream) PURE; \ - STDMETHOD_(HRESULT,EnumMediaStreams)(THIS_ long Index, IMediaStream** ppMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetState)(THIS_ STREAM_STATE* pCurrentState) PURE; \ - STDMETHOD_(HRESULT,SetState)(THIS_ STREAM_STATE NewState) PURE; \ - STDMETHOD_(HRESULT,GetTime)(THIS_ STREAM_TIME* pCurrentTime) PURE; \ - STDMETHOD_(HRESULT,GetDuration)(THIS_ STREAM_TIME* pDuration) PURE; \ - STDMETHOD_(HRESULT,Seek)(THIS_ STREAM_TIME SeekTime) PURE; \ - STDMETHOD_(HRESULT,GetEndOfStreamEventHandle)(THIS_ HANDLE* phEOS) PURE; \ - /*** IAMMultiMediaStream methods ***/ \ - STDMETHOD_(HRESULT,Initialize)(THIS_ STREAM_TYPE StreamType, DWORD dwFlags, IGraphBuilder* pFilterGraph) PURE; \ - STDMETHOD_(HRESULT,GetFilterGraph)(THIS_ IGraphBuilder** ppGraphBuilder) PURE; \ - STDMETHOD_(HRESULT,GetFilter)(THIS_ IMediaStreamFilter** ppFilter) PURE; \ - STDMETHOD_(HRESULT,AddMediaStream)(THIS_ IUnknown* pStreamObject, const MSPID* PurposeId, DWORD dwFlags, IMediaStream** ppNewStream) PURE; \ - STDMETHOD_(HRESULT,OpenFile)(THIS_ LPCWSTR pszFileName, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,OpenMoniker)(THIS_ IBindCtx* pCtx, IMoniker* pMoniker, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,Render)(THIS_ DWORD dwFlags) PURE; - -HRESULT CALLBACK IAMMultiMediaStream_Initialize_Proxy( - IAMMultiMediaStream* This, - STREAM_TYPE StreamType, - DWORD dwFlags, - IGraphBuilder* pFilterGraph); -void __RPC_STUB IAMMultiMediaStream_Initialize_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMultiMediaStream_GetFilterGraph_Proxy( - IAMMultiMediaStream* This, - IGraphBuilder** ppGraphBuilder); -void __RPC_STUB IAMMultiMediaStream_GetFilterGraph_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMultiMediaStream_GetFilter_Proxy( - IAMMultiMediaStream* This, - IMediaStreamFilter** ppFilter); -void __RPC_STUB IAMMultiMediaStream_GetFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMultiMediaStream_AddMediaStream_Proxy( - IAMMultiMediaStream* This, - IUnknown* pStreamObject, - const MSPID* PurposeId, - DWORD dwFlags, - IMediaStream** ppNewStream); -void __RPC_STUB IAMMultiMediaStream_AddMediaStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMultiMediaStream_OpenFile_Proxy( - IAMMultiMediaStream* This, - LPCWSTR pszFileName, - DWORD dwFlags); -void __RPC_STUB IAMMultiMediaStream_OpenFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMultiMediaStream_OpenMoniker_Proxy( - IAMMultiMediaStream* This, - IBindCtx* pCtx, - IMoniker* pMoniker, - DWORD dwFlags); -void __RPC_STUB IAMMultiMediaStream_OpenMoniker_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMultiMediaStream_Render_Proxy( - IAMMultiMediaStream* This, - DWORD dwFlags); -void __RPC_STUB IAMMultiMediaStream_Render_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAMMultiMediaStream_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IAMMediaStream interface - */ -#ifndef __IAMMediaStream_INTERFACE_DEFINED__ -#define __IAMMediaStream_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAMMediaStream, 0xbebe595d, 0x9a6f, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAMMediaStream : public IMediaStream -{ - virtual HRESULT STDMETHODCALLTYPE Initialize( - IUnknown* pSourceObject, - DWORD dwFlags, - REFMSPID PurposeId, - const STREAM_TYPE StreamType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetState( - FILTER_STATE State) = 0; - - virtual HRESULT STDMETHODCALLTYPE JoinAMMultiMediaStream( - IAMMultiMediaStream* pAMMultiMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE JoinFilter( - IMediaStreamFilter* pMediaStreamFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE JoinFilterGraph( - IFilterGraph* pFilterGraph) = 0; - -}; -#else -typedef struct IAMMediaStreamVtbl IAMMediaStreamVtbl; -struct IAMMediaStream { - const IAMMediaStreamVtbl* lpVtbl; -}; -struct IAMMediaStreamVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAMMediaStream* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAMMediaStream* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAMMediaStream* This); - - /*** IMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *GetMultiMediaStream)( - IAMMediaStream* This, - IMultiMediaStream** ppMultiMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetInformation)( - IAMMediaStream* This, - MSPID* pPurposeId, - STREAM_TYPE* pType); - - HRESULT (STDMETHODCALLTYPE *SetSameFormat)( - IAMMediaStream* This, - IMediaStream* pStreamThatHasDesiredFormat, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *AllocateSample)( - IAMMediaStream* This, - DWORD dwFlags, - IStreamSample** ppSample); - - HRESULT (STDMETHODCALLTYPE *CreateSharedSample)( - IAMMediaStream* This, - IStreamSample* pExistingSample, - DWORD dwFlags, - IStreamSample** ppNewSample); - - HRESULT (STDMETHODCALLTYPE *SendEndOfStream)( - IAMMediaStream* This, - DWORD dwFlags); - - /*** IAMMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *Initialize)( - IAMMediaStream* This, - IUnknown* pSourceObject, - DWORD dwFlags, - REFMSPID PurposeId, - const STREAM_TYPE StreamType); - - HRESULT (STDMETHODCALLTYPE *SetState)( - IAMMediaStream* This, - FILTER_STATE State); - - HRESULT (STDMETHODCALLTYPE *JoinAMMultiMediaStream)( - IAMMediaStream* This, - IAMMultiMediaStream* pAMMultiMediaStream); - - HRESULT (STDMETHODCALLTYPE *JoinFilter)( - IAMMediaStream* This, - IMediaStreamFilter* pMediaStreamFilter); - - HRESULT (STDMETHODCALLTYPE *JoinFilterGraph)( - IAMMediaStream* This, - IFilterGraph* pFilterGraph); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAMMediaStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAMMediaStream_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAMMediaStream_Release(p) (p)->lpVtbl->Release(p) -/*** IMediaStream methods ***/ -#define IAMMediaStream_GetMultiMediaStream(p,a) (p)->lpVtbl->GetMultiMediaStream(p,a) -#define IAMMediaStream_GetInformation(p,a,b) (p)->lpVtbl->GetInformation(p,a,b) -#define IAMMediaStream_SetSameFormat(p,a,b) (p)->lpVtbl->SetSameFormat(p,a,b) -#define IAMMediaStream_AllocateSample(p,a,b) (p)->lpVtbl->AllocateSample(p,a,b) -#define IAMMediaStream_CreateSharedSample(p,a,b,c) (p)->lpVtbl->CreateSharedSample(p,a,b,c) -#define IAMMediaStream_SendEndOfStream(p,a) (p)->lpVtbl->SendEndOfStream(p,a) -/*** IAMMediaStream methods ***/ -#define IAMMediaStream_Initialize(p,a,b,c,d) (p)->lpVtbl->Initialize(p,a,b,c,d) -#define IAMMediaStream_SetState(p,a) (p)->lpVtbl->SetState(p,a) -#define IAMMediaStream_JoinAMMultiMediaStream(p,a) (p)->lpVtbl->JoinAMMultiMediaStream(p,a) -#define IAMMediaStream_JoinFilter(p,a) (p)->lpVtbl->JoinFilter(p,a) -#define IAMMediaStream_JoinFilterGraph(p,a) (p)->lpVtbl->JoinFilterGraph(p,a) -#endif - -#endif - -#define IAMMediaStream_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMediaStream methods ***/ \ - STDMETHOD_(HRESULT,GetMultiMediaStream)(THIS_ IMultiMediaStream** ppMultiMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetInformation)(THIS_ MSPID* pPurposeId, STREAM_TYPE* pType) PURE; \ - STDMETHOD_(HRESULT,SetSameFormat)(THIS_ IMediaStream* pStreamThatHasDesiredFormat, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,AllocateSample)(THIS_ DWORD dwFlags, IStreamSample** ppSample) PURE; \ - STDMETHOD_(HRESULT,CreateSharedSample)(THIS_ IStreamSample* pExistingSample, DWORD dwFlags, IStreamSample** ppNewSample) PURE; \ - STDMETHOD_(HRESULT,SendEndOfStream)(THIS_ DWORD dwFlags) PURE; \ - /*** IAMMediaStream methods ***/ \ - STDMETHOD_(HRESULT,Initialize)(THIS_ IUnknown* pSourceObject, DWORD dwFlags, REFMSPID PurposeId, const STREAM_TYPE StreamType) PURE; \ - STDMETHOD_(HRESULT,SetState)(THIS_ FILTER_STATE State) PURE; \ - STDMETHOD_(HRESULT,JoinAMMultiMediaStream)(THIS_ IAMMultiMediaStream* pAMMultiMediaStream) PURE; \ - STDMETHOD_(HRESULT,JoinFilter)(THIS_ IMediaStreamFilter* pMediaStreamFilter) PURE; \ - STDMETHOD_(HRESULT,JoinFilterGraph)(THIS_ IFilterGraph* pFilterGraph) PURE; - -HRESULT CALLBACK IAMMediaStream_Initialize_Proxy( - IAMMediaStream* This, - IUnknown* pSourceObject, - DWORD dwFlags, - REFMSPID PurposeId, - const STREAM_TYPE StreamType); -void __RPC_STUB IAMMediaStream_Initialize_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaStream_SetState_Proxy( - IAMMediaStream* This, - FILTER_STATE State); -void __RPC_STUB IAMMediaStream_SetState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaStream_JoinAMMultiMediaStream_Proxy( - IAMMediaStream* This, - IAMMultiMediaStream* pAMMultiMediaStream); -void __RPC_STUB IAMMediaStream_JoinAMMultiMediaStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaStream_JoinFilter_Proxy( - IAMMediaStream* This, - IMediaStreamFilter* pMediaStreamFilter); -void __RPC_STUB IAMMediaStream_JoinFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaStream_JoinFilterGraph_Proxy( - IAMMediaStream* This, - IFilterGraph* pFilterGraph); -void __RPC_STUB IAMMediaStream_JoinFilterGraph_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAMMediaStream_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IMediaStreamFilter interface - */ -#ifndef __IMediaStreamFilter_INTERFACE_DEFINED__ -#define __IMediaStreamFilter_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMediaStreamFilter, 0xbebe595e, 0x9a6f, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMediaStreamFilter : public IBaseFilter -{ - virtual HRESULT STDMETHODCALLTYPE AddMediaStream( - IAMMediaStream* pAMMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMediaStream( - REFMSPID idPurpose, - IMediaStream** ppMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumMediaStreams( - long Index, - IMediaStream** ppMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE SupportSeeking( - BOOL bRenderer) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReferenceTimeToStreamTime( - REFERENCE_TIME* pTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentStreamTime( - REFERENCE_TIME* pCurrentStreamTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE WaitUntil( - REFERENCE_TIME WaitStreamTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE Flush( - BOOL bCancelEOS) = 0; - - virtual HRESULT STDMETHODCALLTYPE EndOfStream( - ) = 0; - -}; -#else -typedef struct IMediaStreamFilterVtbl IMediaStreamFilterVtbl; -struct IMediaStreamFilter { - const IMediaStreamFilterVtbl* lpVtbl; -}; -struct IMediaStreamFilterVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMediaStreamFilter* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMediaStreamFilter* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMediaStreamFilter* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IMediaStreamFilter* This, - CLSID* pClassID); - - /*** IMediaFilter methods ***/ - HRESULT (STDMETHODCALLTYPE *Stop)( - IMediaStreamFilter* This); - - HRESULT (STDMETHODCALLTYPE *Pause)( - IMediaStreamFilter* This); - - HRESULT (STDMETHODCALLTYPE *Run)( - IMediaStreamFilter* This, - REFERENCE_TIME tStart); - - HRESULT (STDMETHODCALLTYPE *GetState)( - IMediaStreamFilter* This, - DWORD dwMilliSecsTimeout, - FILTER_STATE* State); - - HRESULT (STDMETHODCALLTYPE *SetSyncSource)( - IMediaStreamFilter* This, - IReferenceClock* pClock); - - HRESULT (STDMETHODCALLTYPE *GetSyncSource)( - IMediaStreamFilter* This, - IReferenceClock** pClock); - - /*** IBaseFilter methods ***/ - HRESULT (STDMETHODCALLTYPE *EnumPins)( - IMediaStreamFilter* This, - IEnumPins** ppEnum); - - HRESULT (STDMETHODCALLTYPE *FindPin)( - IMediaStreamFilter* This, - LPCWSTR Id, - IPin** ppPin); - - HRESULT (STDMETHODCALLTYPE *QueryFilterInfo)( - IMediaStreamFilter* This, - FILTER_INFO* pInfo); - - HRESULT (STDMETHODCALLTYPE *JoinFilterGraph)( - IMediaStreamFilter* This, - IFilterGraph* pGraph, - LPCWSTR pName); - - HRESULT (STDMETHODCALLTYPE *QueryVendorInfo)( - IMediaStreamFilter* This, - LPWSTR* pVendorInfo); - - /*** IMediaStreamFilter methods ***/ - HRESULT (STDMETHODCALLTYPE *AddMediaStream)( - IMediaStreamFilter* This, - IAMMediaStream* pAMMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetMediaStream)( - IMediaStreamFilter* This, - REFMSPID idPurpose, - IMediaStream** ppMediaStream); - - HRESULT (STDMETHODCALLTYPE *EnumMediaStreams)( - IMediaStreamFilter* This, - long Index, - IMediaStream** ppMediaStream); - - HRESULT (STDMETHODCALLTYPE *SupportSeeking)( - IMediaStreamFilter* This, - BOOL bRenderer); - - HRESULT (STDMETHODCALLTYPE *ReferenceTimeToStreamTime)( - IMediaStreamFilter* This, - REFERENCE_TIME* pTime); - - HRESULT (STDMETHODCALLTYPE *GetCurrentStreamTime)( - IMediaStreamFilter* This, - REFERENCE_TIME* pCurrentStreamTime); - - HRESULT (STDMETHODCALLTYPE *WaitUntil)( - IMediaStreamFilter* This, - REFERENCE_TIME WaitStreamTime); - - HRESULT (STDMETHODCALLTYPE *Flush)( - IMediaStreamFilter* This, - BOOL bCancelEOS); - - HRESULT (STDMETHODCALLTYPE *EndOfStream)( - IMediaStreamFilter* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMediaStreamFilter_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMediaStreamFilter_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMediaStreamFilter_Release(p) (p)->lpVtbl->Release(p) -/*** IPersist methods ***/ -#define IMediaStreamFilter_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -/*** IMediaFilter methods ***/ -#define IMediaStreamFilter_Stop(p) (p)->lpVtbl->Stop(p) -#define IMediaStreamFilter_Pause(p) (p)->lpVtbl->Pause(p) -#define IMediaStreamFilter_Run(p,a) (p)->lpVtbl->Run(p,a) -#define IMediaStreamFilter_GetState(p,a,b) (p)->lpVtbl->GetState(p,a,b) -#define IMediaStreamFilter_SetSyncSource(p,a) (p)->lpVtbl->SetSyncSource(p,a) -#define IMediaStreamFilter_GetSyncSource(p,a) (p)->lpVtbl->GetSyncSource(p,a) -/*** IBaseFilter methods ***/ -#define IMediaStreamFilter_EnumPins(p,a) (p)->lpVtbl->EnumPins(p,a) -#define IMediaStreamFilter_FindPin(p,a,b) (p)->lpVtbl->FindPin(p,a,b) -#define IMediaStreamFilter_QueryFilterInfo(p,a) (p)->lpVtbl->QueryFilterInfo(p,a) -#define IMediaStreamFilter_JoinFilterGraph(p,a,b) (p)->lpVtbl->JoinFilterGraph(p,a,b) -#define IMediaStreamFilter_QueryVendorInfo(p,a) (p)->lpVtbl->QueryVendorInfo(p,a) -/*** IMediaStreamFilter methods ***/ -#define IMediaStreamFilter_AddMediaStream(p,a) (p)->lpVtbl->AddMediaStream(p,a) -#define IMediaStreamFilter_GetMediaStream(p,a,b) (p)->lpVtbl->GetMediaStream(p,a,b) -#define IMediaStreamFilter_EnumMediaStreams(p,a,b) (p)->lpVtbl->EnumMediaStreams(p,a,b) -#define IMediaStreamFilter_SupportSeeking(p,a) (p)->lpVtbl->SupportSeeking(p,a) -#define IMediaStreamFilter_ReferenceTimeToStreamTime(p,a) (p)->lpVtbl->ReferenceTimeToStreamTime(p,a) -#define IMediaStreamFilter_GetCurrentStreamTime(p,a) (p)->lpVtbl->GetCurrentStreamTime(p,a) -#define IMediaStreamFilter_WaitUntil(p,a) (p)->lpVtbl->WaitUntil(p,a) -#define IMediaStreamFilter_Flush(p,a) (p)->lpVtbl->Flush(p,a) -#define IMediaStreamFilter_EndOfStream(p) (p)->lpVtbl->EndOfStream(p) -#endif - -#endif - -#define IMediaStreamFilter_METHODS \ - /*** 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; \ - /*** IMediaFilter methods ***/ \ - STDMETHOD_(HRESULT,Stop)(THIS) PURE; \ - STDMETHOD_(HRESULT,Pause)(THIS) PURE; \ - STDMETHOD_(HRESULT,Run)(THIS_ REFERENCE_TIME tStart) PURE; \ - STDMETHOD_(HRESULT,GetState)(THIS_ DWORD dwMilliSecsTimeout, FILTER_STATE* State) PURE; \ - STDMETHOD_(HRESULT,SetSyncSource)(THIS_ IReferenceClock* pClock) PURE; \ - STDMETHOD_(HRESULT,GetSyncSource)(THIS_ IReferenceClock** pClock) PURE; \ - /*** IBaseFilter methods ***/ \ - STDMETHOD_(HRESULT,EnumPins)(THIS_ IEnumPins** ppEnum) PURE; \ - STDMETHOD_(HRESULT,FindPin)(THIS_ LPCWSTR Id, IPin** ppPin) PURE; \ - STDMETHOD_(HRESULT,QueryFilterInfo)(THIS_ FILTER_INFO* pInfo) PURE; \ - STDMETHOD_(HRESULT,JoinFilterGraph)(THIS_ IFilterGraph* pGraph, LPCWSTR pName) PURE; \ - STDMETHOD_(HRESULT,QueryVendorInfo)(THIS_ LPWSTR* pVendorInfo) PURE; \ - /*** IMediaStreamFilter methods ***/ \ - STDMETHOD_(HRESULT,AddMediaStream)(THIS_ IAMMediaStream* pAMMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetMediaStream)(THIS_ REFMSPID idPurpose, IMediaStream** ppMediaStream) PURE; \ - STDMETHOD_(HRESULT,EnumMediaStreams)(THIS_ long Index, IMediaStream** ppMediaStream) PURE; \ - STDMETHOD_(HRESULT,SupportSeeking)(THIS_ BOOL bRenderer) PURE; \ - STDMETHOD_(HRESULT,ReferenceTimeToStreamTime)(THIS_ REFERENCE_TIME* pTime) PURE; \ - STDMETHOD_(HRESULT,GetCurrentStreamTime)(THIS_ REFERENCE_TIME* pCurrentStreamTime) PURE; \ - STDMETHOD_(HRESULT,WaitUntil)(THIS_ REFERENCE_TIME WaitStreamTime) PURE; \ - STDMETHOD_(HRESULT,Flush)(THIS_ BOOL bCancelEOS) PURE; \ - STDMETHOD_(HRESULT,EndOfStream)(THIS) PURE; - -HRESULT CALLBACK IMediaStreamFilter_AddMediaStream_Proxy( - IMediaStreamFilter* This, - IAMMediaStream* pAMMediaStream); -void __RPC_STUB IMediaStreamFilter_AddMediaStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStreamFilter_GetMediaStream_Proxy( - IMediaStreamFilter* This, - REFMSPID idPurpose, - IMediaStream** ppMediaStream); -void __RPC_STUB IMediaStreamFilter_GetMediaStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStreamFilter_EnumMediaStreams_Proxy( - IMediaStreamFilter* This, - long Index, - IMediaStream** ppMediaStream); -void __RPC_STUB IMediaStreamFilter_EnumMediaStreams_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStreamFilter_SupportSeeking_Proxy( - IMediaStreamFilter* This, - BOOL bRenderer); -void __RPC_STUB IMediaStreamFilter_SupportSeeking_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStreamFilter_ReferenceTimeToStreamTime_Proxy( - IMediaStreamFilter* This, - REFERENCE_TIME* pTime); -void __RPC_STUB IMediaStreamFilter_ReferenceTimeToStreamTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStreamFilter_GetCurrentStreamTime_Proxy( - IMediaStreamFilter* This, - REFERENCE_TIME* pCurrentStreamTime); -void __RPC_STUB IMediaStreamFilter_GetCurrentStreamTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStreamFilter_WaitUntil_Proxy( - IMediaStreamFilter* This, - REFERENCE_TIME WaitStreamTime); -void __RPC_STUB IMediaStreamFilter_WaitUntil_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStreamFilter_Flush_Proxy( - IMediaStreamFilter* This, - BOOL bCancelEOS); -void __RPC_STUB IMediaStreamFilter_Flush_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStreamFilter_EndOfStream_Proxy( - IMediaStreamFilter* This); -void __RPC_STUB IMediaStreamFilter_EndOfStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMediaStreamFilter_INTERFACE_DEFINED__ */ - -#ifndef __IDirectDrawMediaSampleAllocator_FWD_DEFINED__ -#define __IDirectDrawMediaSampleAllocator_FWD_DEFINED__ -typedef struct IDirectDrawMediaSampleAllocator IDirectDrawMediaSampleAllocator; -#endif - -/***************************************************************************** - * IDirectDrawMediaSampleAllocator interface - */ -#ifndef __IDirectDrawMediaSampleAllocator_INTERFACE_DEFINED__ -#define __IDirectDrawMediaSampleAllocator_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDirectDrawMediaSampleAllocator, 0xab6b4afc, 0xf6e4, 0x11d0, 0x90,0x0d, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDirectDrawMediaSampleAllocator : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetDirectDraw( - IDirectDraw** ppDirectDraw) = 0; - -}; -#else -typedef struct IDirectDrawMediaSampleAllocatorVtbl IDirectDrawMediaSampleAllocatorVtbl; -struct IDirectDrawMediaSampleAllocator { - const IDirectDrawMediaSampleAllocatorVtbl* lpVtbl; -}; -struct IDirectDrawMediaSampleAllocatorVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDirectDrawMediaSampleAllocator* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDirectDrawMediaSampleAllocator* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDirectDrawMediaSampleAllocator* This); - - /*** IDirectDrawMediaSampleAllocator methods ***/ - HRESULT (STDMETHODCALLTYPE *GetDirectDraw)( - IDirectDrawMediaSampleAllocator* This, - IDirectDraw** ppDirectDraw); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDirectDrawMediaSampleAllocator_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectDrawMediaSampleAllocator_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawMediaSampleAllocator_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectDrawMediaSampleAllocator methods ***/ -#define IDirectDrawMediaSampleAllocator_GetDirectDraw(p,a) (p)->lpVtbl->GetDirectDraw(p,a) -#endif - -#endif - -#define IDirectDrawMediaSampleAllocator_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDirectDrawMediaSampleAllocator methods ***/ \ - STDMETHOD_(HRESULT,GetDirectDraw)(THIS_ IDirectDraw** ppDirectDraw) PURE; - -HRESULT CALLBACK IDirectDrawMediaSampleAllocator_GetDirectDraw_Proxy( - IDirectDrawMediaSampleAllocator* This, - IDirectDraw** ppDirectDraw); -void __RPC_STUB IDirectDrawMediaSampleAllocator_GetDirectDraw_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDirectDrawMediaSampleAllocator_INTERFACE_DEFINED__ */ - -#ifndef __IDirectDrawMediaSample_FWD_DEFINED__ -#define __IDirectDrawMediaSample_FWD_DEFINED__ -typedef struct IDirectDrawMediaSample IDirectDrawMediaSample; -#endif - -/***************************************************************************** - * IDirectDrawMediaSample interface - */ -#ifndef __IDirectDrawMediaSample_INTERFACE_DEFINED__ -#define __IDirectDrawMediaSample_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDirectDrawMediaSample, 0xab6b4afe, 0xf6e4, 0x11d0, 0x90,0x0d, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDirectDrawMediaSample : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetSurfaceAndReleaseLock( - IDirectDrawSurface** ppDirectDrawSurface, - RECT* pRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockMediaSamplePointer( - ) = 0; - -}; -#else -typedef struct IDirectDrawMediaSampleVtbl IDirectDrawMediaSampleVtbl; -struct IDirectDrawMediaSample { - const IDirectDrawMediaSampleVtbl* lpVtbl; -}; -struct IDirectDrawMediaSampleVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDirectDrawMediaSample* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDirectDrawMediaSample* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDirectDrawMediaSample* This); - - /*** IDirectDrawMediaSample methods ***/ - HRESULT (STDMETHODCALLTYPE *GetSurfaceAndReleaseLock)( - IDirectDrawMediaSample* This, - IDirectDrawSurface** ppDirectDrawSurface, - RECT* pRect); - - HRESULT (STDMETHODCALLTYPE *LockMediaSamplePointer)( - IDirectDrawMediaSample* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDirectDrawMediaSample_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectDrawMediaSample_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawMediaSample_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectDrawMediaSample methods ***/ -#define IDirectDrawMediaSample_GetSurfaceAndReleaseLock(p,a,b) (p)->lpVtbl->GetSurfaceAndReleaseLock(p,a,b) -#define IDirectDrawMediaSample_LockMediaSamplePointer(p) (p)->lpVtbl->LockMediaSamplePointer(p) -#endif - -#endif - -#define IDirectDrawMediaSample_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDirectDrawMediaSample methods ***/ \ - STDMETHOD_(HRESULT,GetSurfaceAndReleaseLock)(THIS_ IDirectDrawSurface** ppDirectDrawSurface, RECT* pRect) PURE; \ - STDMETHOD_(HRESULT,LockMediaSamplePointer)(THIS) PURE; - -HRESULT CALLBACK IDirectDrawMediaSample_GetSurfaceAndReleaseLock_Proxy( - IDirectDrawMediaSample* This, - IDirectDrawSurface** ppDirectDrawSurface, - RECT* pRect); -void __RPC_STUB IDirectDrawMediaSample_GetSurfaceAndReleaseLock_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawMediaSample_LockMediaSamplePointer_Proxy( - IDirectDrawMediaSample* This); -void __RPC_STUB IDirectDrawMediaSample_LockMediaSamplePointer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDirectDrawMediaSample_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IAMMediaTypeStream interface - */ -#ifndef __IAMMediaTypeStream_INTERFACE_DEFINED__ -#define __IAMMediaTypeStream_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAMMediaTypeStream, 0xab6b4afa, 0xf6e4, 0x11d0, 0x90,0x0d, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAMMediaTypeStream : public IMediaStream -{ - virtual HRESULT STDMETHODCALLTYPE GetFormat( - AM_MEDIA_TYPE* pMediaType, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFormat( - AM_MEDIA_TYPE* pMediaType, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateSample( - long lSampleSize, - BYTE* pbBuffer, - DWORD dwFlags, - IUnknown* pUnkOuter, - IAMMediaTypeSample** ppAMMediaTypeSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStreamAllocatorRequirements( - ALLOCATOR_PROPERTIES* pProps) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetStreamAllocatorRequirements( - ALLOCATOR_PROPERTIES* pProps) = 0; - -}; -#else -typedef struct IAMMediaTypeStreamVtbl IAMMediaTypeStreamVtbl; -struct IAMMediaTypeStream { - const IAMMediaTypeStreamVtbl* lpVtbl; -}; -struct IAMMediaTypeStreamVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAMMediaTypeStream* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAMMediaTypeStream* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAMMediaTypeStream* This); - - /*** IMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *GetMultiMediaStream)( - IAMMediaTypeStream* This, - IMultiMediaStream** ppMultiMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetInformation)( - IAMMediaTypeStream* This, - MSPID* pPurposeId, - STREAM_TYPE* pType); - - HRESULT (STDMETHODCALLTYPE *SetSameFormat)( - IAMMediaTypeStream* This, - IMediaStream* pStreamThatHasDesiredFormat, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *AllocateSample)( - IAMMediaTypeStream* This, - DWORD dwFlags, - IStreamSample** ppSample); - - HRESULT (STDMETHODCALLTYPE *CreateSharedSample)( - IAMMediaTypeStream* This, - IStreamSample* pExistingSample, - DWORD dwFlags, - IStreamSample** ppNewSample); - - HRESULT (STDMETHODCALLTYPE *SendEndOfStream)( - IAMMediaTypeStream* This, - DWORD dwFlags); - - /*** IAMMediaTypeStream methods ***/ - HRESULT (STDMETHODCALLTYPE *GetFormat)( - IAMMediaTypeStream* This, - AM_MEDIA_TYPE* pMediaType, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *SetFormat)( - IAMMediaTypeStream* This, - AM_MEDIA_TYPE* pMediaType, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *CreateSample)( - IAMMediaTypeStream* This, - long lSampleSize, - BYTE* pbBuffer, - DWORD dwFlags, - IUnknown* pUnkOuter, - IAMMediaTypeSample** ppAMMediaTypeSample); - - HRESULT (STDMETHODCALLTYPE *GetStreamAllocatorRequirements)( - IAMMediaTypeStream* This, - ALLOCATOR_PROPERTIES* pProps); - - HRESULT (STDMETHODCALLTYPE *SetStreamAllocatorRequirements)( - IAMMediaTypeStream* This, - ALLOCATOR_PROPERTIES* pProps); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAMMediaTypeStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAMMediaTypeStream_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAMMediaTypeStream_Release(p) (p)->lpVtbl->Release(p) -/*** IMediaStream methods ***/ -#define IAMMediaTypeStream_GetMultiMediaStream(p,a) (p)->lpVtbl->GetMultiMediaStream(p,a) -#define IAMMediaTypeStream_GetInformation(p,a,b) (p)->lpVtbl->GetInformation(p,a,b) -#define IAMMediaTypeStream_SetSameFormat(p,a,b) (p)->lpVtbl->SetSameFormat(p,a,b) -#define IAMMediaTypeStream_AllocateSample(p,a,b) (p)->lpVtbl->AllocateSample(p,a,b) -#define IAMMediaTypeStream_CreateSharedSample(p,a,b,c) (p)->lpVtbl->CreateSharedSample(p,a,b,c) -#define IAMMediaTypeStream_SendEndOfStream(p,a) (p)->lpVtbl->SendEndOfStream(p,a) -/*** IAMMediaTypeStream methods ***/ -#define IAMMediaTypeStream_GetFormat(p,a,b) (p)->lpVtbl->GetFormat(p,a,b) -#define IAMMediaTypeStream_SetFormat(p,a,b) (p)->lpVtbl->SetFormat(p,a,b) -#define IAMMediaTypeStream_CreateSample(p,a,b,c,d,e) (p)->lpVtbl->CreateSample(p,a,b,c,d,e) -#define IAMMediaTypeStream_GetStreamAllocatorRequirements(p,a) (p)->lpVtbl->GetStreamAllocatorRequirements(p,a) -#define IAMMediaTypeStream_SetStreamAllocatorRequirements(p,a) (p)->lpVtbl->SetStreamAllocatorRequirements(p,a) -#endif - -#endif - -#define IAMMediaTypeStream_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMediaStream methods ***/ \ - STDMETHOD_(HRESULT,GetMultiMediaStream)(THIS_ IMultiMediaStream** ppMultiMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetInformation)(THIS_ MSPID* pPurposeId, STREAM_TYPE* pType) PURE; \ - STDMETHOD_(HRESULT,SetSameFormat)(THIS_ IMediaStream* pStreamThatHasDesiredFormat, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,AllocateSample)(THIS_ DWORD dwFlags, IStreamSample** ppSample) PURE; \ - STDMETHOD_(HRESULT,CreateSharedSample)(THIS_ IStreamSample* pExistingSample, DWORD dwFlags, IStreamSample** ppNewSample) PURE; \ - STDMETHOD_(HRESULT,SendEndOfStream)(THIS_ DWORD dwFlags) PURE; \ - /*** IAMMediaTypeStream methods ***/ \ - STDMETHOD_(HRESULT,GetFormat)(THIS_ AM_MEDIA_TYPE* pMediaType, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,SetFormat)(THIS_ AM_MEDIA_TYPE* pMediaType, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,CreateSample)(THIS_ long lSampleSize, BYTE* pbBuffer, DWORD dwFlags, IUnknown* pUnkOuter, IAMMediaTypeSample** ppAMMediaTypeSample) PURE; \ - STDMETHOD_(HRESULT,GetStreamAllocatorRequirements)(THIS_ ALLOCATOR_PROPERTIES* pProps) PURE; \ - STDMETHOD_(HRESULT,SetStreamAllocatorRequirements)(THIS_ ALLOCATOR_PROPERTIES* pProps) PURE; - -HRESULT CALLBACK IAMMediaTypeStream_GetFormat_Proxy( - IAMMediaTypeStream* This, - AM_MEDIA_TYPE* pMediaType, - DWORD dwFlags); -void __RPC_STUB IAMMediaTypeStream_GetFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeStream_SetFormat_Proxy( - IAMMediaTypeStream* This, - AM_MEDIA_TYPE* pMediaType, - DWORD dwFlags); -void __RPC_STUB IAMMediaTypeStream_SetFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeStream_CreateSample_Proxy( - IAMMediaTypeStream* This, - long lSampleSize, - BYTE* pbBuffer, - DWORD dwFlags, - IUnknown* pUnkOuter, - IAMMediaTypeSample** ppAMMediaTypeSample); -void __RPC_STUB IAMMediaTypeStream_CreateSample_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeStream_GetStreamAllocatorRequirements_Proxy( - IAMMediaTypeStream* This, - ALLOCATOR_PROPERTIES* pProps); -void __RPC_STUB IAMMediaTypeStream_GetStreamAllocatorRequirements_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeStream_SetStreamAllocatorRequirements_Proxy( - IAMMediaTypeStream* This, - ALLOCATOR_PROPERTIES* pProps); -void __RPC_STUB IAMMediaTypeStream_SetStreamAllocatorRequirements_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAMMediaTypeStream_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IAMMediaTypeSample interface - */ -#ifndef __IAMMediaTypeSample_INTERFACE_DEFINED__ -#define __IAMMediaTypeSample_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAMMediaTypeSample, 0xab6b4afb, 0xf6e4, 0x11d0, 0x90,0x0d, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAMMediaTypeSample : public IStreamSample -{ - virtual HRESULT STDMETHODCALLTYPE SetPointer( - BYTE* pBuffer, - long lSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPointer( - BYTE** ppBuffer) = 0; - - virtual long STDMETHODCALLTYPE GetSize( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTime( - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTime( - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsSyncPoint( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSyncPoint( - BOOL bIsSyncPoint) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsPreroll( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetPreroll( - BOOL bIsPreroll) = 0; - - virtual long STDMETHODCALLTYPE GetActualDataLength( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetActualDataLength( - long Len) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMediaType( - AM_MEDIA_TYPE** ppMediaType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMediaType( - AM_MEDIA_TYPE* pMediaType) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsDiscontinuity( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDiscontinuity( - BOOL bDiscontinuity) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMediaTime( - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMediaTime( - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd) = 0; - -}; -#else -typedef struct IAMMediaTypeSampleVtbl IAMMediaTypeSampleVtbl; -struct IAMMediaTypeSample { - const IAMMediaTypeSampleVtbl* lpVtbl; -}; -struct IAMMediaTypeSampleVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAMMediaTypeSample* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAMMediaTypeSample* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAMMediaTypeSample* This); - - /*** IStreamSample methods ***/ - HRESULT (STDMETHODCALLTYPE *GetMediaStream)( - IAMMediaTypeSample* This, - IMediaStream** ppMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetSampleTimes)( - IAMMediaTypeSample* This, - STREAM_TIME* pStartTime, - STREAM_TIME* pEndTime, - STREAM_TIME* pCurrentTime); - - HRESULT (STDMETHODCALLTYPE *SetSampleTimes)( - IAMMediaTypeSample* This, - const STREAM_TIME* pStartTime, - const STREAM_TIME* pEndTime); - - HRESULT (STDMETHODCALLTYPE *Update)( - IAMMediaTypeSample* This, - DWORD dwFlags, - HANDLE hEvent, - PAPCFUNC pfnAPC, - DWORD dwAPCData); - - HRESULT (STDMETHODCALLTYPE *CompletionStatus)( - IAMMediaTypeSample* This, - DWORD dwFlags, - DWORD dwMilliseconds); - - /*** IAMMediaTypeSample methods ***/ - HRESULT (STDMETHODCALLTYPE *SetPointer)( - IAMMediaTypeSample* This, - BYTE* pBuffer, - long lSize); - - HRESULT (STDMETHODCALLTYPE *GetPointer)( - IAMMediaTypeSample* This, - BYTE** ppBuffer); - - long (STDMETHODCALLTYPE *GetSize)( - IAMMediaTypeSample* This); - - HRESULT (STDMETHODCALLTYPE *GetTime)( - IAMMediaTypeSample* This, - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd); - - HRESULT (STDMETHODCALLTYPE *SetTime)( - IAMMediaTypeSample* This, - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd); - - HRESULT (STDMETHODCALLTYPE *IsSyncPoint)( - IAMMediaTypeSample* This); - - HRESULT (STDMETHODCALLTYPE *SetSyncPoint)( - IAMMediaTypeSample* This, - BOOL bIsSyncPoint); - - HRESULT (STDMETHODCALLTYPE *IsPreroll)( - IAMMediaTypeSample* This); - - HRESULT (STDMETHODCALLTYPE *SetPreroll)( - IAMMediaTypeSample* This, - BOOL bIsPreroll); - - long (STDMETHODCALLTYPE *GetActualDataLength)( - IAMMediaTypeSample* This); - - HRESULT (STDMETHODCALLTYPE *SetActualDataLength)( - IAMMediaTypeSample* This, - long Len); - - HRESULT (STDMETHODCALLTYPE *GetMediaType)( - IAMMediaTypeSample* This, - AM_MEDIA_TYPE** ppMediaType); - - HRESULT (STDMETHODCALLTYPE *SetMediaType)( - IAMMediaTypeSample* This, - AM_MEDIA_TYPE* pMediaType); - - HRESULT (STDMETHODCALLTYPE *IsDiscontinuity)( - IAMMediaTypeSample* This); - - HRESULT (STDMETHODCALLTYPE *SetDiscontinuity)( - IAMMediaTypeSample* This, - BOOL bDiscontinuity); - - HRESULT (STDMETHODCALLTYPE *GetMediaTime)( - IAMMediaTypeSample* This, - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd); - - HRESULT (STDMETHODCALLTYPE *SetMediaTime)( - IAMMediaTypeSample* This, - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAMMediaTypeSample_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAMMediaTypeSample_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAMMediaTypeSample_Release(p) (p)->lpVtbl->Release(p) -/*** IStreamSample methods ***/ -#define IAMMediaTypeSample_GetMediaStream(p,a) (p)->lpVtbl->GetMediaStream(p,a) -#define IAMMediaTypeSample_GetSampleTimes(p,a,b,c) (p)->lpVtbl->GetSampleTimes(p,a,b,c) -#define IAMMediaTypeSample_SetSampleTimes(p,a,b) (p)->lpVtbl->SetSampleTimes(p,a,b) -#define IAMMediaTypeSample_Update(p,a,b,c,d) (p)->lpVtbl->Update(p,a,b,c,d) -#define IAMMediaTypeSample_CompletionStatus(p,a,b) (p)->lpVtbl->CompletionStatus(p,a,b) -/*** IAMMediaTypeSample methods ***/ -#define IAMMediaTypeSample_SetPointer(p,a,b) (p)->lpVtbl->SetPointer(p,a,b) -#define IAMMediaTypeSample_GetPointer(p,a) (p)->lpVtbl->GetPointer(p,a) -#define IAMMediaTypeSample_GetSize(p) (p)->lpVtbl->GetSize(p) -#define IAMMediaTypeSample_GetTime(p,a,b) (p)->lpVtbl->GetTime(p,a,b) -#define IAMMediaTypeSample_SetTime(p,a,b) (p)->lpVtbl->SetTime(p,a,b) -#define IAMMediaTypeSample_IsSyncPoint(p) (p)->lpVtbl->IsSyncPoint(p) -#define IAMMediaTypeSample_SetSyncPoint(p,a) (p)->lpVtbl->SetSyncPoint(p,a) -#define IAMMediaTypeSample_IsPreroll(p) (p)->lpVtbl->IsPreroll(p) -#define IAMMediaTypeSample_SetPreroll(p,a) (p)->lpVtbl->SetPreroll(p,a) -#define IAMMediaTypeSample_GetActualDataLength(p) (p)->lpVtbl->GetActualDataLength(p) -#define IAMMediaTypeSample_SetActualDataLength(p,a) (p)->lpVtbl->SetActualDataLength(p,a) -#define IAMMediaTypeSample_GetMediaType(p,a) (p)->lpVtbl->GetMediaType(p,a) -#define IAMMediaTypeSample_SetMediaType(p,a) (p)->lpVtbl->SetMediaType(p,a) -#define IAMMediaTypeSample_IsDiscontinuity(p) (p)->lpVtbl->IsDiscontinuity(p) -#define IAMMediaTypeSample_SetDiscontinuity(p,a) (p)->lpVtbl->SetDiscontinuity(p,a) -#define IAMMediaTypeSample_GetMediaTime(p,a,b) (p)->lpVtbl->GetMediaTime(p,a,b) -#define IAMMediaTypeSample_SetMediaTime(p,a,b) (p)->lpVtbl->SetMediaTime(p,a,b) -#endif - -#endif - -#define IAMMediaTypeSample_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IStreamSample methods ***/ \ - STDMETHOD_(HRESULT,GetMediaStream)(THIS_ IMediaStream** ppMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetSampleTimes)(THIS_ STREAM_TIME* pStartTime, STREAM_TIME* pEndTime, STREAM_TIME* pCurrentTime) PURE; \ - STDMETHOD_(HRESULT,SetSampleTimes)(THIS_ const STREAM_TIME* pStartTime, const STREAM_TIME* pEndTime) PURE; \ - STDMETHOD_(HRESULT,Update)(THIS_ DWORD dwFlags, HANDLE hEvent, PAPCFUNC pfnAPC, DWORD dwAPCData) PURE; \ - STDMETHOD_(HRESULT,CompletionStatus)(THIS_ DWORD dwFlags, DWORD dwMilliseconds) PURE; \ - /*** IAMMediaTypeSample methods ***/ \ - STDMETHOD_(HRESULT,SetPointer)(THIS_ BYTE* pBuffer, long lSize) PURE; \ - STDMETHOD_(HRESULT,GetPointer)(THIS_ BYTE** ppBuffer) PURE; \ - STDMETHOD_(long,GetSize)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetTime)(THIS_ REFERENCE_TIME* pTimeStart, REFERENCE_TIME* pTimeEnd) PURE; \ - STDMETHOD_(HRESULT,SetTime)(THIS_ REFERENCE_TIME* pTimeStart, REFERENCE_TIME* pTimeEnd) PURE; \ - STDMETHOD_(HRESULT,IsSyncPoint)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetSyncPoint)(THIS_ BOOL bIsSyncPoint) PURE; \ - STDMETHOD_(HRESULT,IsPreroll)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetPreroll)(THIS_ BOOL bIsPreroll) PURE; \ - STDMETHOD_(long,GetActualDataLength)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetActualDataLength)(THIS_ long Len) PURE; \ - STDMETHOD_(HRESULT,GetMediaType)(THIS_ AM_MEDIA_TYPE** ppMediaType) PURE; \ - STDMETHOD_(HRESULT,SetMediaType)(THIS_ AM_MEDIA_TYPE* pMediaType) PURE; \ - STDMETHOD_(HRESULT,IsDiscontinuity)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetDiscontinuity)(THIS_ BOOL bDiscontinuity) PURE; \ - STDMETHOD_(HRESULT,GetMediaTime)(THIS_ LONGLONG* pTimeStart, LONGLONG* pTimeEnd) PURE; \ - STDMETHOD_(HRESULT,SetMediaTime)(THIS_ LONGLONG* pTimeStart, LONGLONG* pTimeEnd) PURE; - -HRESULT CALLBACK IAMMediaTypeSample_SetPointer_Proxy( - IAMMediaTypeSample* This, - BYTE* pBuffer, - long lSize); -void __RPC_STUB IAMMediaTypeSample_SetPointer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_GetPointer_Proxy( - IAMMediaTypeSample* This, - BYTE** ppBuffer); -void __RPC_STUB IAMMediaTypeSample_GetPointer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -long CALLBACK IAMMediaTypeSample_GetSize_Proxy( - IAMMediaTypeSample* This); -void __RPC_STUB IAMMediaTypeSample_GetSize_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_GetTime_Proxy( - IAMMediaTypeSample* This, - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd); -void __RPC_STUB IAMMediaTypeSample_GetTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_SetTime_Proxy( - IAMMediaTypeSample* This, - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd); -void __RPC_STUB IAMMediaTypeSample_SetTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_IsSyncPoint_Proxy( - IAMMediaTypeSample* This); -void __RPC_STUB IAMMediaTypeSample_IsSyncPoint_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_SetSyncPoint_Proxy( - IAMMediaTypeSample* This, - BOOL bIsSyncPoint); -void __RPC_STUB IAMMediaTypeSample_SetSyncPoint_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_IsPreroll_Proxy( - IAMMediaTypeSample* This); -void __RPC_STUB IAMMediaTypeSample_IsPreroll_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_SetPreroll_Proxy( - IAMMediaTypeSample* This, - BOOL bIsPreroll); -void __RPC_STUB IAMMediaTypeSample_SetPreroll_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -long CALLBACK IAMMediaTypeSample_GetActualDataLength_Proxy( - IAMMediaTypeSample* This); -void __RPC_STUB IAMMediaTypeSample_GetActualDataLength_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_SetActualDataLength_Proxy( - IAMMediaTypeSample* This, - long Len); -void __RPC_STUB IAMMediaTypeSample_SetActualDataLength_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_GetMediaType_Proxy( - IAMMediaTypeSample* This, - AM_MEDIA_TYPE** ppMediaType); -void __RPC_STUB IAMMediaTypeSample_GetMediaType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_SetMediaType_Proxy( - IAMMediaTypeSample* This, - AM_MEDIA_TYPE* pMediaType); -void __RPC_STUB IAMMediaTypeSample_SetMediaType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_IsDiscontinuity_Proxy( - IAMMediaTypeSample* This); -void __RPC_STUB IAMMediaTypeSample_IsDiscontinuity_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_SetDiscontinuity_Proxy( - IAMMediaTypeSample* This, - BOOL bDiscontinuity); -void __RPC_STUB IAMMediaTypeSample_SetDiscontinuity_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_GetMediaTime_Proxy( - IAMMediaTypeSample* This, - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd); -void __RPC_STUB IAMMediaTypeSample_GetMediaTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMMediaTypeSample_SetMediaTime_Proxy( - IAMMediaTypeSample* This, - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd); -void __RPC_STUB IAMMediaTypeSample_SetMediaTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAMMediaTypeSample_INTERFACE_DEFINED__ */ - -DEFINE_GUID(CLSID_AMMultiMediaStream, 0x49c47ce5, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45); -DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45); -DEFINE_GUID(CLSID_AMAudioStream, 0x8496e040, 0xaf4c, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45); -DEFINE_GUID(CLSID_AMAudioData, 0xf2468580, 0xaf8a, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45); -DEFINE_GUID(CLSID_AMMediaTypeStream, 0xcf0f2f7c, 0xf7bf, 0x11d0, 0x90, 0x0d, 0x00, 0xc0, 0x4f, 0xd9, 0x18, 0x9d); -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_AMSTREAM_H */ diff --git a/include/amvideo.h b/include/amvideo.h deleted file mode 100644 index 0e593362f37..00000000000 --- a/include/amvideo.h +++ /dev/null @@ -1,1385 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from amvideo.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_AMVIDEO_H -#define __WIDL_AMVIDEO_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#if 0 -typedef void *LPDIRECTDRAW; - -typedef void DDSURFACEDESC, DDCAPS; - -typedef DWORD RGBQUAD; - -typedef LONGLONG REFERENCE_TIME; - -typedef struct { - DWORD biSize; - LONG biWidth; - LONG biHeight; - WORD biPlanes; - WORD biBitCount; - DWORD biCompression; - DWORD biSizeImage; - LONG biXPelsPerMeter; - LONG biYPelsPerMeter; - DWORD biClrUsed; - DWORD biClrImportant; -} BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER; - -#endif -#include -#define AMDDS_NONE 0x00 -#define AMDDS_DCIPS 0x01 -#define AMDDS_PS 0x02 -#define AMDDS_RGBOVR 0x04 -#define AMDDS_YUVOVR 0x08 -#define AMDDS_RGBOFF 0x10 -#define AMDDS_YUVOFF 0x20 -#define AMDDS_RGBFLP 0x40 -#define AMDDS_YUVFLP 0x80 -#define AMDDS_ALL 0xFF -#define AMDDS_DEFAULT AMDDS_ALL -#define AMDDS_YUV (AMDDS_YUVOFF | AMDDS_YUVOVR | AMDDS_YUVFLP) -#define AMDDS_RGB (AMDDS_RGBOFF | AMDDS_RGBOVR | AMDDS_RGBFLP) -#define AMDSS_PRIMARY (AMDDS_DCIPS | AMDDS_PS) -#ifndef __IDirectDrawVideo_FWD_DEFINED__ -#define __IDirectDrawVideo_FWD_DEFINED__ -typedef struct IDirectDrawVideo IDirectDrawVideo; -#endif - -/***************************************************************************** - * IDirectDrawVideo interface - */ -#ifndef __IDirectDrawVideo_INTERFACE_DEFINED__ -#define __IDirectDrawVideo_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDirectDrawVideo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetSwitches( - DWORD* pSwitches) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSwitches( - DWORD Switches) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCaps( - DDCAPS* pCaps) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetEmulatedCaps( - DDCAPS* pCaps) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSurfaceDesc( - DDSURFACEDESC* pSurfaceDesc) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFourCCCodes( - DWORD* pCount, - DWORD* pCodes) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDirectDraw( - LPDIRECTDRAW pDirectDraw) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDirectDraw( - LPDIRECTDRAW* ppDirectDraw) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSurfaceType( - DWORD* pSurfaceType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefault( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE UseScanLine( - long UseScanLine) = 0; - - virtual HRESULT STDMETHODCALLTYPE CanUseScanLine( - long* UseScanLine) = 0; - - virtual HRESULT STDMETHODCALLTYPE UseOverlayStretch( - long UseOverlayStretch) = 0; - - virtual HRESULT STDMETHODCALLTYPE CanUseOverlayStretch( - long* UseOverlayStretch) = 0; - - virtual HRESULT STDMETHODCALLTYPE UseWhenFullScreen( - long UseWhenFullScreen) = 0; - - virtual HRESULT STDMETHODCALLTYPE WillUseFullScreen( - long* UseWhenFullScreen) = 0; - -}; -#else -typedef struct IDirectDrawVideoVtbl IDirectDrawVideoVtbl; -struct IDirectDrawVideo { - const IDirectDrawVideoVtbl* lpVtbl; -}; -struct IDirectDrawVideoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDirectDrawVideo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDirectDrawVideo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDirectDrawVideo* This); - - /*** IDirectDrawVideo methods ***/ - HRESULT (STDMETHODCALLTYPE *GetSwitches)( - IDirectDrawVideo* This, - DWORD* pSwitches); - - HRESULT (STDMETHODCALLTYPE *SetSwitches)( - IDirectDrawVideo* This, - DWORD Switches); - - HRESULT (STDMETHODCALLTYPE *GetCaps)( - IDirectDrawVideo* This, - DDCAPS* pCaps); - - HRESULT (STDMETHODCALLTYPE *GetEmulatedCaps)( - IDirectDrawVideo* This, - DDCAPS* pCaps); - - HRESULT (STDMETHODCALLTYPE *GetSurfaceDesc)( - IDirectDrawVideo* This, - DDSURFACEDESC* pSurfaceDesc); - - HRESULT (STDMETHODCALLTYPE *GetFourCCCodes)( - IDirectDrawVideo* This, - DWORD* pCount, - DWORD* pCodes); - - HRESULT (STDMETHODCALLTYPE *SetDirectDraw)( - IDirectDrawVideo* This, - LPDIRECTDRAW pDirectDraw); - - HRESULT (STDMETHODCALLTYPE *GetDirectDraw)( - IDirectDrawVideo* This, - LPDIRECTDRAW* ppDirectDraw); - - HRESULT (STDMETHODCALLTYPE *GetSurfaceType)( - IDirectDrawVideo* This, - DWORD* pSurfaceType); - - HRESULT (STDMETHODCALLTYPE *SetDefault)( - IDirectDrawVideo* This); - - HRESULT (STDMETHODCALLTYPE *UseScanLine)( - IDirectDrawVideo* This, - long UseScanLine); - - HRESULT (STDMETHODCALLTYPE *CanUseScanLine)( - IDirectDrawVideo* This, - long* UseScanLine); - - HRESULT (STDMETHODCALLTYPE *UseOverlayStretch)( - IDirectDrawVideo* This, - long UseOverlayStretch); - - HRESULT (STDMETHODCALLTYPE *CanUseOverlayStretch)( - IDirectDrawVideo* This, - long* UseOverlayStretch); - - HRESULT (STDMETHODCALLTYPE *UseWhenFullScreen)( - IDirectDrawVideo* This, - long UseWhenFullScreen); - - HRESULT (STDMETHODCALLTYPE *WillUseFullScreen)( - IDirectDrawVideo* This, - long* UseWhenFullScreen); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDirectDrawVideo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectDrawVideo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawVideo_Release(p) (p)->lpVtbl->Release(p) -/*** IDirectDrawVideo methods ***/ -#define IDirectDrawVideo_GetSwitches(p,a) (p)->lpVtbl->GetSwitches(p,a) -#define IDirectDrawVideo_SetSwitches(p,a) (p)->lpVtbl->SetSwitches(p,a) -#define IDirectDrawVideo_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) -#define IDirectDrawVideo_GetEmulatedCaps(p,a) (p)->lpVtbl->GetEmulatedCaps(p,a) -#define IDirectDrawVideo_GetSurfaceDesc(p,a) (p)->lpVtbl->GetSurfaceDesc(p,a) -#define IDirectDrawVideo_GetFourCCCodes(p,a,b) (p)->lpVtbl->GetFourCCCodes(p,a,b) -#define IDirectDrawVideo_SetDirectDraw(p,a) (p)->lpVtbl->SetDirectDraw(p,a) -#define IDirectDrawVideo_GetDirectDraw(p,a) (p)->lpVtbl->GetDirectDraw(p,a) -#define IDirectDrawVideo_GetSurfaceType(p,a) (p)->lpVtbl->GetSurfaceType(p,a) -#define IDirectDrawVideo_SetDefault(p) (p)->lpVtbl->SetDefault(p) -#define IDirectDrawVideo_UseScanLine(p,a) (p)->lpVtbl->UseScanLine(p,a) -#define IDirectDrawVideo_CanUseScanLine(p,a) (p)->lpVtbl->CanUseScanLine(p,a) -#define IDirectDrawVideo_UseOverlayStretch(p,a) (p)->lpVtbl->UseOverlayStretch(p,a) -#define IDirectDrawVideo_CanUseOverlayStretch(p,a) (p)->lpVtbl->CanUseOverlayStretch(p,a) -#define IDirectDrawVideo_UseWhenFullScreen(p,a) (p)->lpVtbl->UseWhenFullScreen(p,a) -#define IDirectDrawVideo_WillUseFullScreen(p,a) (p)->lpVtbl->WillUseFullScreen(p,a) -#endif - -#endif - -#define IDirectDrawVideo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDirectDrawVideo methods ***/ \ - STDMETHOD_(HRESULT,GetSwitches)(THIS_ DWORD* pSwitches) PURE; \ - STDMETHOD_(HRESULT,SetSwitches)(THIS_ DWORD Switches) PURE; \ - STDMETHOD_(HRESULT,GetCaps)(THIS_ DDCAPS* pCaps) PURE; \ - STDMETHOD_(HRESULT,GetEmulatedCaps)(THIS_ DDCAPS* pCaps) PURE; \ - STDMETHOD_(HRESULT,GetSurfaceDesc)(THIS_ DDSURFACEDESC* pSurfaceDesc) PURE; \ - STDMETHOD_(HRESULT,GetFourCCCodes)(THIS_ DWORD* pCount, DWORD* pCodes) PURE; \ - STDMETHOD_(HRESULT,SetDirectDraw)(THIS_ LPDIRECTDRAW pDirectDraw) PURE; \ - STDMETHOD_(HRESULT,GetDirectDraw)(THIS_ LPDIRECTDRAW* ppDirectDraw) PURE; \ - STDMETHOD_(HRESULT,GetSurfaceType)(THIS_ DWORD* pSurfaceType) PURE; \ - STDMETHOD_(HRESULT,SetDefault)(THIS) PURE; \ - STDMETHOD_(HRESULT,UseScanLine)(THIS_ long UseScanLine) PURE; \ - STDMETHOD_(HRESULT,CanUseScanLine)(THIS_ long* UseScanLine) PURE; \ - STDMETHOD_(HRESULT,UseOverlayStretch)(THIS_ long UseOverlayStretch) PURE; \ - STDMETHOD_(HRESULT,CanUseOverlayStretch)(THIS_ long* UseOverlayStretch) PURE; \ - STDMETHOD_(HRESULT,UseWhenFullScreen)(THIS_ long UseWhenFullScreen) PURE; \ - STDMETHOD_(HRESULT,WillUseFullScreen)(THIS_ long* UseWhenFullScreen) PURE; - -HRESULT CALLBACK IDirectDrawVideo_GetSwitches_Proxy( - IDirectDrawVideo* This, - DWORD* pSwitches); -void __RPC_STUB IDirectDrawVideo_GetSwitches_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_SetSwitches_Proxy( - IDirectDrawVideo* This, - DWORD Switches); -void __RPC_STUB IDirectDrawVideo_SetSwitches_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_GetCaps_Proxy( - IDirectDrawVideo* This, - DDCAPS* pCaps); -void __RPC_STUB IDirectDrawVideo_GetCaps_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_GetEmulatedCaps_Proxy( - IDirectDrawVideo* This, - DDCAPS* pCaps); -void __RPC_STUB IDirectDrawVideo_GetEmulatedCaps_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_GetSurfaceDesc_Proxy( - IDirectDrawVideo* This, - DDSURFACEDESC* pSurfaceDesc); -void __RPC_STUB IDirectDrawVideo_GetSurfaceDesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_GetFourCCCodes_Proxy( - IDirectDrawVideo* This, - DWORD* pCount, - DWORD* pCodes); -void __RPC_STUB IDirectDrawVideo_GetFourCCCodes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_SetDirectDraw_Proxy( - IDirectDrawVideo* This, - LPDIRECTDRAW pDirectDraw); -void __RPC_STUB IDirectDrawVideo_SetDirectDraw_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_GetDirectDraw_Proxy( - IDirectDrawVideo* This, - LPDIRECTDRAW* ppDirectDraw); -void __RPC_STUB IDirectDrawVideo_GetDirectDraw_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_GetSurfaceType_Proxy( - IDirectDrawVideo* This, - DWORD* pSurfaceType); -void __RPC_STUB IDirectDrawVideo_GetSurfaceType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_SetDefault_Proxy( - IDirectDrawVideo* This); -void __RPC_STUB IDirectDrawVideo_SetDefault_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_UseScanLine_Proxy( - IDirectDrawVideo* This, - long UseScanLine); -void __RPC_STUB IDirectDrawVideo_UseScanLine_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_CanUseScanLine_Proxy( - IDirectDrawVideo* This, - long* UseScanLine); -void __RPC_STUB IDirectDrawVideo_CanUseScanLine_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_UseOverlayStretch_Proxy( - IDirectDrawVideo* This, - long UseOverlayStretch); -void __RPC_STUB IDirectDrawVideo_UseOverlayStretch_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_CanUseOverlayStretch_Proxy( - IDirectDrawVideo* This, - long* UseOverlayStretch); -void __RPC_STUB IDirectDrawVideo_CanUseOverlayStretch_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_UseWhenFullScreen_Proxy( - IDirectDrawVideo* This, - long UseWhenFullScreen); -void __RPC_STUB IDirectDrawVideo_UseWhenFullScreen_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawVideo_WillUseFullScreen_Proxy( - IDirectDrawVideo* This, - long* UseWhenFullScreen); -void __RPC_STUB IDirectDrawVideo_WillUseFullScreen_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDirectDrawVideo_INTERFACE_DEFINED__ */ - -#ifndef __IQualProp_FWD_DEFINED__ -#define __IQualProp_FWD_DEFINED__ -typedef struct IQualProp IQualProp; -#endif - -/***************************************************************************** - * IQualProp interface - */ -#ifndef __IQualProp_INTERFACE_DEFINED__ -#define __IQualProp_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IQualProp : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE get_FramesDroppedInRenderer( - int* pcFrames) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_FramesDrawn( - int* pcFramesDrawn) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_AvgFrameRate( - int* piAvgFrameRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Jitter( - int* iJitter) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_AvgSyncOffset( - int* piAvg) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_DevSyncOffset( - int* piDev) = 0; - -}; -#else -typedef struct IQualPropVtbl IQualPropVtbl; -struct IQualProp { - const IQualPropVtbl* lpVtbl; -}; -struct IQualPropVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IQualProp* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IQualProp* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IQualProp* This); - - /*** IQualProp methods ***/ - HRESULT (STDMETHODCALLTYPE *get_FramesDroppedInRenderer)( - IQualProp* This, - int* pcFrames); - - HRESULT (STDMETHODCALLTYPE *get_FramesDrawn)( - IQualProp* This, - int* pcFramesDrawn); - - HRESULT (STDMETHODCALLTYPE *get_AvgFrameRate)( - IQualProp* This, - int* piAvgFrameRate); - - HRESULT (STDMETHODCALLTYPE *get_Jitter)( - IQualProp* This, - int* iJitter); - - HRESULT (STDMETHODCALLTYPE *get_AvgSyncOffset)( - IQualProp* This, - int* piAvg); - - HRESULT (STDMETHODCALLTYPE *get_DevSyncOffset)( - IQualProp* This, - int* piDev); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IQualProp_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IQualProp_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IQualProp_Release(p) (p)->lpVtbl->Release(p) -/*** IQualProp methods ***/ -#define IQualProp_get_FramesDroppedInRenderer(p,a) (p)->lpVtbl->get_FramesDroppedInRenderer(p,a) -#define IQualProp_get_FramesDrawn(p,a) (p)->lpVtbl->get_FramesDrawn(p,a) -#define IQualProp_get_AvgFrameRate(p,a) (p)->lpVtbl->get_AvgFrameRate(p,a) -#define IQualProp_get_Jitter(p,a) (p)->lpVtbl->get_Jitter(p,a) -#define IQualProp_get_AvgSyncOffset(p,a) (p)->lpVtbl->get_AvgSyncOffset(p,a) -#define IQualProp_get_DevSyncOffset(p,a) (p)->lpVtbl->get_DevSyncOffset(p,a) -#endif - -#endif - -#define IQualProp_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IQualProp methods ***/ \ - STDMETHOD_(HRESULT,get_FramesDroppedInRenderer)(THIS_ int* pcFrames) PURE; \ - STDMETHOD_(HRESULT,get_FramesDrawn)(THIS_ int* pcFramesDrawn) PURE; \ - STDMETHOD_(HRESULT,get_AvgFrameRate)(THIS_ int* piAvgFrameRate) PURE; \ - STDMETHOD_(HRESULT,get_Jitter)(THIS_ int* iJitter) PURE; \ - STDMETHOD_(HRESULT,get_AvgSyncOffset)(THIS_ int* piAvg) PURE; \ - STDMETHOD_(HRESULT,get_DevSyncOffset)(THIS_ int* piDev) PURE; - -HRESULT CALLBACK IQualProp_get_FramesDroppedInRenderer_Proxy( - IQualProp* This, - int* pcFrames); -void __RPC_STUB IQualProp_get_FramesDroppedInRenderer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IQualProp_get_FramesDrawn_Proxy( - IQualProp* This, - int* pcFramesDrawn); -void __RPC_STUB IQualProp_get_FramesDrawn_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IQualProp_get_AvgFrameRate_Proxy( - IQualProp* This, - int* piAvgFrameRate); -void __RPC_STUB IQualProp_get_AvgFrameRate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IQualProp_get_Jitter_Proxy( - IQualProp* This, - int* iJitter); -void __RPC_STUB IQualProp_get_Jitter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IQualProp_get_AvgSyncOffset_Proxy( - IQualProp* This, - int* piAvg); -void __RPC_STUB IQualProp_get_AvgSyncOffset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IQualProp_get_DevSyncOffset_Proxy( - IQualProp* This, - int* piDev); -void __RPC_STUB IQualProp_get_DevSyncOffset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IQualProp_INTERFACE_DEFINED__ */ - -#ifndef __IFullScreenVideo_FWD_DEFINED__ -#define __IFullScreenVideo_FWD_DEFINED__ -typedef struct IFullScreenVideo IFullScreenVideo; -#endif - -/***************************************************************************** - * IFullScreenVideo interface - */ -#ifndef __IFullScreenVideo_INTERFACE_DEFINED__ -#define __IFullScreenVideo_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFullScreenVideo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CountModes( - long* pModes) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetModeInfo( - long Mode, - long* pWidth, - long* pHeight, - long* pDepth) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentMode( - long* pMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsModeAvailable( - long Mode) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsModeEnabled( - long Mode) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetEnabled( - long Mode, - long bEnabled) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetClipFactor( - long* pClipFactor) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetClipFactor( - long ClipFactor) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMessageDrain( - HWND hwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMessageDrain( - HWND* hwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMonitor( - long Monitor) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMonitor( - long* Monitor) = 0; - - virtual HRESULT STDMETHODCALLTYPE HideOnDeactivate( - long Hide) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsHideOnDeactivate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetCaption( - BSTR strCaption) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCaption( - BSTR* pstrCaption) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefault( - ) = 0; - -}; -#else -typedef struct IFullScreenVideoVtbl IFullScreenVideoVtbl; -struct IFullScreenVideo { - const IFullScreenVideoVtbl* lpVtbl; -}; -struct IFullScreenVideoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFullScreenVideo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFullScreenVideo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFullScreenVideo* This); - - /*** IFullScreenVideo methods ***/ - HRESULT (STDMETHODCALLTYPE *CountModes)( - IFullScreenVideo* This, - long* pModes); - - HRESULT (STDMETHODCALLTYPE *GetModeInfo)( - IFullScreenVideo* This, - long Mode, - long* pWidth, - long* pHeight, - long* pDepth); - - HRESULT (STDMETHODCALLTYPE *GetCurrentMode)( - IFullScreenVideo* This, - long* pMode); - - HRESULT (STDMETHODCALLTYPE *IsModeAvailable)( - IFullScreenVideo* This, - long Mode); - - HRESULT (STDMETHODCALLTYPE *IsModeEnabled)( - IFullScreenVideo* This, - long Mode); - - HRESULT (STDMETHODCALLTYPE *SetEnabled)( - IFullScreenVideo* This, - long Mode, - long bEnabled); - - HRESULT (STDMETHODCALLTYPE *GetClipFactor)( - IFullScreenVideo* This, - long* pClipFactor); - - HRESULT (STDMETHODCALLTYPE *SetClipFactor)( - IFullScreenVideo* This, - long ClipFactor); - - HRESULT (STDMETHODCALLTYPE *SetMessageDrain)( - IFullScreenVideo* This, - HWND hwnd); - - HRESULT (STDMETHODCALLTYPE *GetMessageDrain)( - IFullScreenVideo* This, - HWND* hwnd); - - HRESULT (STDMETHODCALLTYPE *SetMonitor)( - IFullScreenVideo* This, - long Monitor); - - HRESULT (STDMETHODCALLTYPE *GetMonitor)( - IFullScreenVideo* This, - long* Monitor); - - HRESULT (STDMETHODCALLTYPE *HideOnDeactivate)( - IFullScreenVideo* This, - long Hide); - - HRESULT (STDMETHODCALLTYPE *IsHideOnDeactivate)( - IFullScreenVideo* This); - - HRESULT (STDMETHODCALLTYPE *SetCaption)( - IFullScreenVideo* This, - BSTR strCaption); - - HRESULT (STDMETHODCALLTYPE *GetCaption)( - IFullScreenVideo* This, - BSTR* pstrCaption); - - HRESULT (STDMETHODCALLTYPE *SetDefault)( - IFullScreenVideo* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFullScreenVideo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFullScreenVideo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFullScreenVideo_Release(p) (p)->lpVtbl->Release(p) -/*** IFullScreenVideo methods ***/ -#define IFullScreenVideo_CountModes(p,a) (p)->lpVtbl->CountModes(p,a) -#define IFullScreenVideo_GetModeInfo(p,a,b,c,d) (p)->lpVtbl->GetModeInfo(p,a,b,c,d) -#define IFullScreenVideo_GetCurrentMode(p,a) (p)->lpVtbl->GetCurrentMode(p,a) -#define IFullScreenVideo_IsModeAvailable(p,a) (p)->lpVtbl->IsModeAvailable(p,a) -#define IFullScreenVideo_IsModeEnabled(p,a) (p)->lpVtbl->IsModeEnabled(p,a) -#define IFullScreenVideo_SetEnabled(p,a,b) (p)->lpVtbl->SetEnabled(p,a,b) -#define IFullScreenVideo_GetClipFactor(p,a) (p)->lpVtbl->GetClipFactor(p,a) -#define IFullScreenVideo_SetClipFactor(p,a) (p)->lpVtbl->SetClipFactor(p,a) -#define IFullScreenVideo_SetMessageDrain(p,a) (p)->lpVtbl->SetMessageDrain(p,a) -#define IFullScreenVideo_GetMessageDrain(p,a) (p)->lpVtbl->GetMessageDrain(p,a) -#define IFullScreenVideo_SetMonitor(p,a) (p)->lpVtbl->SetMonitor(p,a) -#define IFullScreenVideo_GetMonitor(p,a) (p)->lpVtbl->GetMonitor(p,a) -#define IFullScreenVideo_HideOnDeactivate(p,a) (p)->lpVtbl->HideOnDeactivate(p,a) -#define IFullScreenVideo_IsHideOnDeactivate(p) (p)->lpVtbl->IsHideOnDeactivate(p) -#define IFullScreenVideo_SetCaption(p,a) (p)->lpVtbl->SetCaption(p,a) -#define IFullScreenVideo_GetCaption(p,a) (p)->lpVtbl->GetCaption(p,a) -#define IFullScreenVideo_SetDefault(p) (p)->lpVtbl->SetDefault(p) -#endif - -#endif - -#define IFullScreenVideo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFullScreenVideo methods ***/ \ - STDMETHOD_(HRESULT,CountModes)(THIS_ long* pModes) PURE; \ - STDMETHOD_(HRESULT,GetModeInfo)(THIS_ long Mode, long* pWidth, long* pHeight, long* pDepth) PURE; \ - STDMETHOD_(HRESULT,GetCurrentMode)(THIS_ long* pMode) PURE; \ - STDMETHOD_(HRESULT,IsModeAvailable)(THIS_ long Mode) PURE; \ - STDMETHOD_(HRESULT,IsModeEnabled)(THIS_ long Mode) PURE; \ - STDMETHOD_(HRESULT,SetEnabled)(THIS_ long Mode, long bEnabled) PURE; \ - STDMETHOD_(HRESULT,GetClipFactor)(THIS_ long* pClipFactor) PURE; \ - STDMETHOD_(HRESULT,SetClipFactor)(THIS_ long ClipFactor) PURE; \ - STDMETHOD_(HRESULT,SetMessageDrain)(THIS_ HWND hwnd) PURE; \ - STDMETHOD_(HRESULT,GetMessageDrain)(THIS_ HWND* hwnd) PURE; \ - STDMETHOD_(HRESULT,SetMonitor)(THIS_ long Monitor) PURE; \ - STDMETHOD_(HRESULT,GetMonitor)(THIS_ long* Monitor) PURE; \ - STDMETHOD_(HRESULT,HideOnDeactivate)(THIS_ long Hide) PURE; \ - STDMETHOD_(HRESULT,IsHideOnDeactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetCaption)(THIS_ BSTR strCaption) PURE; \ - STDMETHOD_(HRESULT,GetCaption)(THIS_ BSTR* pstrCaption) PURE; \ - STDMETHOD_(HRESULT,SetDefault)(THIS) PURE; - -HRESULT CALLBACK IFullScreenVideo_CountModes_Proxy( - IFullScreenVideo* This, - long* pModes); -void __RPC_STUB IFullScreenVideo_CountModes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_GetModeInfo_Proxy( - IFullScreenVideo* This, - long Mode, - long* pWidth, - long* pHeight, - long* pDepth); -void __RPC_STUB IFullScreenVideo_GetModeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_GetCurrentMode_Proxy( - IFullScreenVideo* This, - long* pMode); -void __RPC_STUB IFullScreenVideo_GetCurrentMode_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_IsModeAvailable_Proxy( - IFullScreenVideo* This, - long Mode); -void __RPC_STUB IFullScreenVideo_IsModeAvailable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_IsModeEnabled_Proxy( - IFullScreenVideo* This, - long Mode); -void __RPC_STUB IFullScreenVideo_IsModeEnabled_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_SetEnabled_Proxy( - IFullScreenVideo* This, - long Mode, - long bEnabled); -void __RPC_STUB IFullScreenVideo_SetEnabled_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_GetClipFactor_Proxy( - IFullScreenVideo* This, - long* pClipFactor); -void __RPC_STUB IFullScreenVideo_GetClipFactor_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_SetClipFactor_Proxy( - IFullScreenVideo* This, - long ClipFactor); -void __RPC_STUB IFullScreenVideo_SetClipFactor_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_SetMessageDrain_Proxy( - IFullScreenVideo* This, - HWND hwnd); -void __RPC_STUB IFullScreenVideo_SetMessageDrain_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_GetMessageDrain_Proxy( - IFullScreenVideo* This, - HWND* hwnd); -void __RPC_STUB IFullScreenVideo_GetMessageDrain_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_SetMonitor_Proxy( - IFullScreenVideo* This, - long Monitor); -void __RPC_STUB IFullScreenVideo_SetMonitor_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_GetMonitor_Proxy( - IFullScreenVideo* This, - long* Monitor); -void __RPC_STUB IFullScreenVideo_GetMonitor_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_HideOnDeactivate_Proxy( - IFullScreenVideo* This, - long Hide); -void __RPC_STUB IFullScreenVideo_HideOnDeactivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_IsHideOnDeactivate_Proxy( - IFullScreenVideo* This); -void __RPC_STUB IFullScreenVideo_IsHideOnDeactivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_SetCaption_Proxy( - IFullScreenVideo* This, - BSTR strCaption); -void __RPC_STUB IFullScreenVideo_SetCaption_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_GetCaption_Proxy( - IFullScreenVideo* This, - BSTR* pstrCaption); -void __RPC_STUB IFullScreenVideo_GetCaption_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideo_SetDefault_Proxy( - IFullScreenVideo* This); -void __RPC_STUB IFullScreenVideo_SetDefault_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFullScreenVideo_INTERFACE_DEFINED__ */ - -#ifndef __IFullScreenVideoEx_FWD_DEFINED__ -#define __IFullScreenVideoEx_FWD_DEFINED__ -typedef struct IFullScreenVideoEx IFullScreenVideoEx; -#endif - -/***************************************************************************** - * IFullScreenVideoEx interface - */ -#ifndef __IFullScreenVideoEx_INTERFACE_DEFINED__ -#define __IFullScreenVideoEx_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFullScreenVideoEx : public IFullScreenVideo -{ - virtual HRESULT STDMETHODCALLTYPE SetAcceleratorTable( - HWND hwnd, - HACCEL hAccel) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAcceleratorTable( - HWND* phwnd, - HACCEL* phAccel) = 0; - - virtual HRESULT STDMETHODCALLTYPE KeepPixelAspectRatio( - long KeepAspect) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsKeepPixelAspectRatio( - long* pKeepAspect) = 0; - -}; -#else -typedef struct IFullScreenVideoExVtbl IFullScreenVideoExVtbl; -struct IFullScreenVideoEx { - const IFullScreenVideoExVtbl* lpVtbl; -}; -struct IFullScreenVideoExVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFullScreenVideoEx* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFullScreenVideoEx* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFullScreenVideoEx* This); - - /*** IFullScreenVideo methods ***/ - HRESULT (STDMETHODCALLTYPE *CountModes)( - IFullScreenVideoEx* This, - long* pModes); - - HRESULT (STDMETHODCALLTYPE *GetModeInfo)( - IFullScreenVideoEx* This, - long Mode, - long* pWidth, - long* pHeight, - long* pDepth); - - HRESULT (STDMETHODCALLTYPE *GetCurrentMode)( - IFullScreenVideoEx* This, - long* pMode); - - HRESULT (STDMETHODCALLTYPE *IsModeAvailable)( - IFullScreenVideoEx* This, - long Mode); - - HRESULT (STDMETHODCALLTYPE *IsModeEnabled)( - IFullScreenVideoEx* This, - long Mode); - - HRESULT (STDMETHODCALLTYPE *SetEnabled)( - IFullScreenVideoEx* This, - long Mode, - long bEnabled); - - HRESULT (STDMETHODCALLTYPE *GetClipFactor)( - IFullScreenVideoEx* This, - long* pClipFactor); - - HRESULT (STDMETHODCALLTYPE *SetClipFactor)( - IFullScreenVideoEx* This, - long ClipFactor); - - HRESULT (STDMETHODCALLTYPE *SetMessageDrain)( - IFullScreenVideoEx* This, - HWND hwnd); - - HRESULT (STDMETHODCALLTYPE *GetMessageDrain)( - IFullScreenVideoEx* This, - HWND* hwnd); - - HRESULT (STDMETHODCALLTYPE *SetMonitor)( - IFullScreenVideoEx* This, - long Monitor); - - HRESULT (STDMETHODCALLTYPE *GetMonitor)( - IFullScreenVideoEx* This, - long* Monitor); - - HRESULT (STDMETHODCALLTYPE *HideOnDeactivate)( - IFullScreenVideoEx* This, - long Hide); - - HRESULT (STDMETHODCALLTYPE *IsHideOnDeactivate)( - IFullScreenVideoEx* This); - - HRESULT (STDMETHODCALLTYPE *SetCaption)( - IFullScreenVideoEx* This, - BSTR strCaption); - - HRESULT (STDMETHODCALLTYPE *GetCaption)( - IFullScreenVideoEx* This, - BSTR* pstrCaption); - - HRESULT (STDMETHODCALLTYPE *SetDefault)( - IFullScreenVideoEx* This); - - /*** IFullScreenVideoEx methods ***/ - HRESULT (STDMETHODCALLTYPE *SetAcceleratorTable)( - IFullScreenVideoEx* This, - HWND hwnd, - HACCEL hAccel); - - HRESULT (STDMETHODCALLTYPE *GetAcceleratorTable)( - IFullScreenVideoEx* This, - HWND* phwnd, - HACCEL* phAccel); - - HRESULT (STDMETHODCALLTYPE *KeepPixelAspectRatio)( - IFullScreenVideoEx* This, - long KeepAspect); - - HRESULT (STDMETHODCALLTYPE *IsKeepPixelAspectRatio)( - IFullScreenVideoEx* This, - long* pKeepAspect); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFullScreenVideoEx_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFullScreenVideoEx_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFullScreenVideoEx_Release(p) (p)->lpVtbl->Release(p) -/*** IFullScreenVideo methods ***/ -#define IFullScreenVideoEx_CountModes(p,a) (p)->lpVtbl->CountModes(p,a) -#define IFullScreenVideoEx_GetModeInfo(p,a,b,c,d) (p)->lpVtbl->GetModeInfo(p,a,b,c,d) -#define IFullScreenVideoEx_GetCurrentMode(p,a) (p)->lpVtbl->GetCurrentMode(p,a) -#define IFullScreenVideoEx_IsModeAvailable(p,a) (p)->lpVtbl->IsModeAvailable(p,a) -#define IFullScreenVideoEx_IsModeEnabled(p,a) (p)->lpVtbl->IsModeEnabled(p,a) -#define IFullScreenVideoEx_SetEnabled(p,a,b) (p)->lpVtbl->SetEnabled(p,a,b) -#define IFullScreenVideoEx_GetClipFactor(p,a) (p)->lpVtbl->GetClipFactor(p,a) -#define IFullScreenVideoEx_SetClipFactor(p,a) (p)->lpVtbl->SetClipFactor(p,a) -#define IFullScreenVideoEx_SetMessageDrain(p,a) (p)->lpVtbl->SetMessageDrain(p,a) -#define IFullScreenVideoEx_GetMessageDrain(p,a) (p)->lpVtbl->GetMessageDrain(p,a) -#define IFullScreenVideoEx_SetMonitor(p,a) (p)->lpVtbl->SetMonitor(p,a) -#define IFullScreenVideoEx_GetMonitor(p,a) (p)->lpVtbl->GetMonitor(p,a) -#define IFullScreenVideoEx_HideOnDeactivate(p,a) (p)->lpVtbl->HideOnDeactivate(p,a) -#define IFullScreenVideoEx_IsHideOnDeactivate(p) (p)->lpVtbl->IsHideOnDeactivate(p) -#define IFullScreenVideoEx_SetCaption(p,a) (p)->lpVtbl->SetCaption(p,a) -#define IFullScreenVideoEx_GetCaption(p,a) (p)->lpVtbl->GetCaption(p,a) -#define IFullScreenVideoEx_SetDefault(p) (p)->lpVtbl->SetDefault(p) -/*** IFullScreenVideoEx methods ***/ -#define IFullScreenVideoEx_SetAcceleratorTable(p,a,b) (p)->lpVtbl->SetAcceleratorTable(p,a,b) -#define IFullScreenVideoEx_GetAcceleratorTable(p,a,b) (p)->lpVtbl->GetAcceleratorTable(p,a,b) -#define IFullScreenVideoEx_KeepPixelAspectRatio(p,a) (p)->lpVtbl->KeepPixelAspectRatio(p,a) -#define IFullScreenVideoEx_IsKeepPixelAspectRatio(p,a) (p)->lpVtbl->IsKeepPixelAspectRatio(p,a) -#endif - -#endif - -#define IFullScreenVideoEx_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFullScreenVideo methods ***/ \ - STDMETHOD_(HRESULT,CountModes)(THIS_ long* pModes) PURE; \ - STDMETHOD_(HRESULT,GetModeInfo)(THIS_ long Mode, long* pWidth, long* pHeight, long* pDepth) PURE; \ - STDMETHOD_(HRESULT,GetCurrentMode)(THIS_ long* pMode) PURE; \ - STDMETHOD_(HRESULT,IsModeAvailable)(THIS_ long Mode) PURE; \ - STDMETHOD_(HRESULT,IsModeEnabled)(THIS_ long Mode) PURE; \ - STDMETHOD_(HRESULT,SetEnabled)(THIS_ long Mode, long bEnabled) PURE; \ - STDMETHOD_(HRESULT,GetClipFactor)(THIS_ long* pClipFactor) PURE; \ - STDMETHOD_(HRESULT,SetClipFactor)(THIS_ long ClipFactor) PURE; \ - STDMETHOD_(HRESULT,SetMessageDrain)(THIS_ HWND hwnd) PURE; \ - STDMETHOD_(HRESULT,GetMessageDrain)(THIS_ HWND* hwnd) PURE; \ - STDMETHOD_(HRESULT,SetMonitor)(THIS_ long Monitor) PURE; \ - STDMETHOD_(HRESULT,GetMonitor)(THIS_ long* Monitor) PURE; \ - STDMETHOD_(HRESULT,HideOnDeactivate)(THIS_ long Hide) PURE; \ - STDMETHOD_(HRESULT,IsHideOnDeactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetCaption)(THIS_ BSTR strCaption) PURE; \ - STDMETHOD_(HRESULT,GetCaption)(THIS_ BSTR* pstrCaption) PURE; \ - STDMETHOD_(HRESULT,SetDefault)(THIS) PURE; \ - /*** IFullScreenVideoEx methods ***/ \ - STDMETHOD_(HRESULT,SetAcceleratorTable)(THIS_ HWND hwnd, HACCEL hAccel) PURE; \ - STDMETHOD_(HRESULT,GetAcceleratorTable)(THIS_ HWND* phwnd, HACCEL* phAccel) PURE; \ - STDMETHOD_(HRESULT,KeepPixelAspectRatio)(THIS_ long KeepAspect) PURE; \ - STDMETHOD_(HRESULT,IsKeepPixelAspectRatio)(THIS_ long* pKeepAspect) PURE; - -HRESULT CALLBACK IFullScreenVideoEx_SetAcceleratorTable_Proxy( - IFullScreenVideoEx* This, - HWND hwnd, - HACCEL hAccel); -void __RPC_STUB IFullScreenVideoEx_SetAcceleratorTable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideoEx_GetAcceleratorTable_Proxy( - IFullScreenVideoEx* This, - HWND* phwnd, - HACCEL* phAccel); -void __RPC_STUB IFullScreenVideoEx_GetAcceleratorTable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideoEx_KeepPixelAspectRatio_Proxy( - IFullScreenVideoEx* This, - long KeepAspect); -void __RPC_STUB IFullScreenVideoEx_KeepPixelAspectRatio_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFullScreenVideoEx_IsKeepPixelAspectRatio_Proxy( - IFullScreenVideoEx* This, - long* pKeepAspect); -void __RPC_STUB IFullScreenVideoEx_IsKeepPixelAspectRatio_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFullScreenVideoEx_INTERFACE_DEFINED__ */ - -#ifndef __IBaseVideoMixer_FWD_DEFINED__ -#define __IBaseVideoMixer_FWD_DEFINED__ -typedef struct IBaseVideoMixer IBaseVideoMixer; -#endif - -/***************************************************************************** - * IBaseVideoMixer interface - */ -#ifndef __IBaseVideoMixer_INTERFACE_DEFINED__ -#define __IBaseVideoMixer_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IBaseVideoMixer : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetLeadPin( - int iPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLeadPin( - int* piPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInputPinCount( - int* piPinCount) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsUsingClock( - int* pbValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetUsingClock( - int bValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetClockPeriod( - int* pbValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetClockPeriod( - int bValue) = 0; - -}; -#else -typedef struct IBaseVideoMixerVtbl IBaseVideoMixerVtbl; -struct IBaseVideoMixer { - const IBaseVideoMixerVtbl* lpVtbl; -}; -struct IBaseVideoMixerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IBaseVideoMixer* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IBaseVideoMixer* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IBaseVideoMixer* This); - - /*** IBaseVideoMixer methods ***/ - HRESULT (STDMETHODCALLTYPE *SetLeadPin)( - IBaseVideoMixer* This, - int iPin); - - HRESULT (STDMETHODCALLTYPE *GetLeadPin)( - IBaseVideoMixer* This, - int* piPin); - - HRESULT (STDMETHODCALLTYPE *GetInputPinCount)( - IBaseVideoMixer* This, - int* piPinCount); - - HRESULT (STDMETHODCALLTYPE *IsUsingClock)( - IBaseVideoMixer* This, - int* pbValue); - - HRESULT (STDMETHODCALLTYPE *SetUsingClock)( - IBaseVideoMixer* This, - int bValue); - - HRESULT (STDMETHODCALLTYPE *GetClockPeriod)( - IBaseVideoMixer* This, - int* pbValue); - - HRESULT (STDMETHODCALLTYPE *SetClockPeriod)( - IBaseVideoMixer* This, - int bValue); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IBaseVideoMixer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IBaseVideoMixer_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IBaseVideoMixer_Release(p) (p)->lpVtbl->Release(p) -/*** IBaseVideoMixer methods ***/ -#define IBaseVideoMixer_SetLeadPin(p,a) (p)->lpVtbl->SetLeadPin(p,a) -#define IBaseVideoMixer_GetLeadPin(p,a) (p)->lpVtbl->GetLeadPin(p,a) -#define IBaseVideoMixer_GetInputPinCount(p,a) (p)->lpVtbl->GetInputPinCount(p,a) -#define IBaseVideoMixer_IsUsingClock(p,a) (p)->lpVtbl->IsUsingClock(p,a) -#define IBaseVideoMixer_SetUsingClock(p,a) (p)->lpVtbl->SetUsingClock(p,a) -#define IBaseVideoMixer_GetClockPeriod(p,a) (p)->lpVtbl->GetClockPeriod(p,a) -#define IBaseVideoMixer_SetClockPeriod(p,a) (p)->lpVtbl->SetClockPeriod(p,a) -#endif - -#endif - -#define IBaseVideoMixer_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IBaseVideoMixer methods ***/ \ - STDMETHOD_(HRESULT,SetLeadPin)(THIS_ int iPin) PURE; \ - STDMETHOD_(HRESULT,GetLeadPin)(THIS_ int* piPin) PURE; \ - STDMETHOD_(HRESULT,GetInputPinCount)(THIS_ int* piPinCount) PURE; \ - STDMETHOD_(HRESULT,IsUsingClock)(THIS_ int* pbValue) PURE; \ - STDMETHOD_(HRESULT,SetUsingClock)(THIS_ int bValue) PURE; \ - STDMETHOD_(HRESULT,GetClockPeriod)(THIS_ int* pbValue) PURE; \ - STDMETHOD_(HRESULT,SetClockPeriod)(THIS_ int bValue) PURE; - -HRESULT CALLBACK IBaseVideoMixer_SetLeadPin_Proxy( - IBaseVideoMixer* This, - int iPin); -void __RPC_STUB IBaseVideoMixer_SetLeadPin_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBaseVideoMixer_GetLeadPin_Proxy( - IBaseVideoMixer* This, - int* piPin); -void __RPC_STUB IBaseVideoMixer_GetLeadPin_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBaseVideoMixer_GetInputPinCount_Proxy( - IBaseVideoMixer* This, - int* piPinCount); -void __RPC_STUB IBaseVideoMixer_GetInputPinCount_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBaseVideoMixer_IsUsingClock_Proxy( - IBaseVideoMixer* This, - int* pbValue); -void __RPC_STUB IBaseVideoMixer_IsUsingClock_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBaseVideoMixer_SetUsingClock_Proxy( - IBaseVideoMixer* This, - int bValue); -void __RPC_STUB IBaseVideoMixer_SetUsingClock_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBaseVideoMixer_GetClockPeriod_Proxy( - IBaseVideoMixer* This, - int* pbValue); -void __RPC_STUB IBaseVideoMixer_GetClockPeriod_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBaseVideoMixer_SetClockPeriod_Proxy( - IBaseVideoMixer* This, - int bValue); -void __RPC_STUB IBaseVideoMixer_SetClockPeriod_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IBaseVideoMixer_INTERFACE_DEFINED__ */ - -#define iPALETTE_COLORS 256 -#define iEGA_COLORS 16 -#define iMASK_COLORS 3 -#define iTRUECOLOR 16 -#define iRED 0 -#define iGREEN 1 -#define iBLUE 2 -#define iPALETTE 8 -#define iMAXBITS 8 -typedef struct tag_TRUECOLORINFO { - DWORD dwBitMasks[3]; - RGBQUAD bmiColors[256]; -} TRUECOLORINFO; - -typedef struct tagVIDEOINFOHEADER { - RECT rcSource; - RECT rcTarget; - DWORD dwBitRate; - DWORD dwBitErrorRate; - REFERENCE_TIME AvgTimePerFrame; - BITMAPINFOHEADER bmiHeader; -} VIDEOINFOHEADER; - -typedef struct tagVIDEOINFO { - RECT rcSource; - RECT rcTarget; - DWORD dwBitRate; - DWORD dwBitErrorRate; - REFERENCE_TIME AvgTimePerFrame; - BITMAPINFOHEADER bmiHeader; - union { - RGBQUAD bmiColors[256]; - DWORD dwBitMasks[3]; - TRUECOLORINFO TrueColorInfo; - } DUMMYUNIONNAME; -} VIDEOINFO; - -typedef struct tagMPEG1VIDEOINFO { - VIDEOINFOHEADER hdr; - DWORD dwStartTimeCode; - DWORD cbSequenceHeader; - BYTE bSequenceHeader[1]; -} MPEG1VIDEOINFO; - -#define MAX_SIZE_MPEG1_SEQUENCE_INFO 140 -#define MPEG1_SEQUENCE_INFO(pv) ((const BYTE *)(pv)->bSequenceHeader) -typedef struct tagAnalogVideoInfo { - RECT rcSource; - RECT rcTarget; - DWORD dwActiveWidth; - DWORD dwActiveHeight; - REFERENCE_TIME AvgTimePerFrame; -} ANALOGVIDEOINFO; - -typedef enum { - AM_PROPERTY_FRAMESTEP_STEP = 0x1, - AM_PROPERTY_FRAMESTEP_CANCEL = 0x2, - AM_PROPERTY_FRAMESTEP_CANSTEP = 0x3, - AM_PROPERTY_FRAMESTEP_CANSTEPMULTIPLE = 0x4 -} AM_PROPERTY_FRAMESTEP; - -typedef struct _AM_FRAMESTEP_STEP { - DWORD dwFramesToStep; -} AM_FRAMESTEP_STEP; - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_AMVIDEO_H */ diff --git a/include/austream.h b/include/austream.h deleted file mode 100644 index baf6a9beacb..00000000000 --- a/include/austream.h +++ /dev/null @@ -1,539 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from austream.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_AUSTREAM_H -#define __WIDL_AUSTREAM_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#if 0 -typedef struct tWAVEFORMATEX WAVEFORMATEX; - -#endif -#ifndef __IAudioMediaStream_FWD_DEFINED__ -#define __IAudioMediaStream_FWD_DEFINED__ -typedef struct IAudioMediaStream IAudioMediaStream; -#endif - -#ifndef __IAudioStreamSample_FWD_DEFINED__ -#define __IAudioStreamSample_FWD_DEFINED__ -typedef struct IAudioStreamSample IAudioStreamSample; -#endif - -#ifndef __IMemoryData_FWD_DEFINED__ -#define __IMemoryData_FWD_DEFINED__ -typedef struct IMemoryData IMemoryData; -#endif - -#ifndef __IAudioData_FWD_DEFINED__ -#define __IAudioData_FWD_DEFINED__ -typedef struct IAudioData IAudioData; -#endif - -/***************************************************************************** - * IAudioMediaStream interface - */ -#ifndef __IAudioMediaStream_INTERFACE_DEFINED__ -#define __IAudioMediaStream_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAudioMediaStream, 0xf7537560, 0xa3be, 0x11d0, 0x82,0x12, 0x00,0xc0,0x4f,0xc3,0x2c,0x45); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAudioMediaStream : public IMediaStream -{ - virtual HRESULT STDMETHODCALLTYPE GetFormat( - WAVEFORMATEX* pWaveFormatCurrent) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFormat( - const WAVEFORMATEX* lpWaveFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateSample( - IAudioData* pAudioData, - DWORD dwFlags, - IAudioStreamSample** ppSample) = 0; - -}; -#else -typedef struct IAudioMediaStreamVtbl IAudioMediaStreamVtbl; -struct IAudioMediaStream { - const IAudioMediaStreamVtbl* lpVtbl; -}; -struct IAudioMediaStreamVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAudioMediaStream* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAudioMediaStream* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAudioMediaStream* This); - - /*** IMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *GetMultiMediaStream)( - IAudioMediaStream* This, - IMultiMediaStream** ppMultiMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetInformation)( - IAudioMediaStream* This, - MSPID* pPurposeId, - STREAM_TYPE* pType); - - HRESULT (STDMETHODCALLTYPE *SetSameFormat)( - IAudioMediaStream* This, - IMediaStream* pStreamThatHasDesiredFormat, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *AllocateSample)( - IAudioMediaStream* This, - DWORD dwFlags, - IStreamSample** ppSample); - - HRESULT (STDMETHODCALLTYPE *CreateSharedSample)( - IAudioMediaStream* This, - IStreamSample* pExistingSample, - DWORD dwFlags, - IStreamSample** ppNewSample); - - HRESULT (STDMETHODCALLTYPE *SendEndOfStream)( - IAudioMediaStream* This, - DWORD dwFlags); - - /*** IAudioMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *GetFormat)( - IAudioMediaStream* This, - WAVEFORMATEX* pWaveFormatCurrent); - - HRESULT (STDMETHODCALLTYPE *SetFormat)( - IAudioMediaStream* This, - const WAVEFORMATEX* lpWaveFormat); - - HRESULT (STDMETHODCALLTYPE *CreateSample)( - IAudioMediaStream* This, - IAudioData* pAudioData, - DWORD dwFlags, - IAudioStreamSample** ppSample); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAudioMediaStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAudioMediaStream_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAudioMediaStream_Release(p) (p)->lpVtbl->Release(p) -/*** IMediaStream methods ***/ -#define IAudioMediaStream_GetMultiMediaStream(p,a) (p)->lpVtbl->GetMultiMediaStream(p,a) -#define IAudioMediaStream_GetInformation(p,a,b) (p)->lpVtbl->GetInformation(p,a,b) -#define IAudioMediaStream_SetSameFormat(p,a,b) (p)->lpVtbl->SetSameFormat(p,a,b) -#define IAudioMediaStream_AllocateSample(p,a,b) (p)->lpVtbl->AllocateSample(p,a,b) -#define IAudioMediaStream_CreateSharedSample(p,a,b,c) (p)->lpVtbl->CreateSharedSample(p,a,b,c) -#define IAudioMediaStream_SendEndOfStream(p,a) (p)->lpVtbl->SendEndOfStream(p,a) -/*** IAudioMediaStream methods ***/ -#define IAudioMediaStream_GetFormat(p,a) (p)->lpVtbl->GetFormat(p,a) -#define IAudioMediaStream_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a) -#define IAudioMediaStream_CreateSample(p,a,b,c) (p)->lpVtbl->CreateSample(p,a,b,c) -#endif - -#endif - -#define IAudioMediaStream_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMediaStream methods ***/ \ - STDMETHOD_(HRESULT,GetMultiMediaStream)(THIS_ IMultiMediaStream** ppMultiMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetInformation)(THIS_ MSPID* pPurposeId, STREAM_TYPE* pType) PURE; \ - STDMETHOD_(HRESULT,SetSameFormat)(THIS_ IMediaStream* pStreamThatHasDesiredFormat, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,AllocateSample)(THIS_ DWORD dwFlags, IStreamSample** ppSample) PURE; \ - STDMETHOD_(HRESULT,CreateSharedSample)(THIS_ IStreamSample* pExistingSample, DWORD dwFlags, IStreamSample** ppNewSample) PURE; \ - STDMETHOD_(HRESULT,SendEndOfStream)(THIS_ DWORD dwFlags) PURE; \ - /*** IAudioMediaStream methods ***/ \ - STDMETHOD_(HRESULT,GetFormat)(THIS_ WAVEFORMATEX* pWaveFormatCurrent) PURE; \ - STDMETHOD_(HRESULT,SetFormat)(THIS_ const WAVEFORMATEX* lpWaveFormat) PURE; \ - STDMETHOD_(HRESULT,CreateSample)(THIS_ IAudioData* pAudioData, DWORD dwFlags, IAudioStreamSample** ppSample) PURE; - -HRESULT CALLBACK IAudioMediaStream_GetFormat_Proxy( - IAudioMediaStream* This, - WAVEFORMATEX* pWaveFormatCurrent); -void __RPC_STUB IAudioMediaStream_GetFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAudioMediaStream_SetFormat_Proxy( - IAudioMediaStream* This, - const WAVEFORMATEX* lpWaveFormat); -void __RPC_STUB IAudioMediaStream_SetFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAudioMediaStream_CreateSample_Proxy( - IAudioMediaStream* This, - IAudioData* pAudioData, - DWORD dwFlags, - IAudioStreamSample** ppSample); -void __RPC_STUB IAudioMediaStream_CreateSample_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAudioMediaStream_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IAudioStreamSample interface - */ -#ifndef __IAudioStreamSample_INTERFACE_DEFINED__ -#define __IAudioStreamSample_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAudioStreamSample, 0x345fee00, 0xaba5, 0x11d0, 0x82,0x12, 0x00,0xc0,0x4f,0xc3,0x2c,0x45); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAudioStreamSample : public IStreamSample -{ - virtual HRESULT STDMETHODCALLTYPE GetAudioData( - IAudioData** ppAudio) = 0; - -}; -#else -typedef struct IAudioStreamSampleVtbl IAudioStreamSampleVtbl; -struct IAudioStreamSample { - const IAudioStreamSampleVtbl* lpVtbl; -}; -struct IAudioStreamSampleVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAudioStreamSample* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAudioStreamSample* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAudioStreamSample* This); - - /*** IStreamSample methods ***/ - HRESULT (STDMETHODCALLTYPE *GetMediaStream)( - IAudioStreamSample* This, - IMediaStream** ppMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetSampleTimes)( - IAudioStreamSample* This, - STREAM_TIME* pStartTime, - STREAM_TIME* pEndTime, - STREAM_TIME* pCurrentTime); - - HRESULT (STDMETHODCALLTYPE *SetSampleTimes)( - IAudioStreamSample* This, - const STREAM_TIME* pStartTime, - const STREAM_TIME* pEndTime); - - HRESULT (STDMETHODCALLTYPE *Update)( - IAudioStreamSample* This, - DWORD dwFlags, - HANDLE hEvent, - PAPCFUNC pfnAPC, - DWORD dwAPCData); - - HRESULT (STDMETHODCALLTYPE *CompletionStatus)( - IAudioStreamSample* This, - DWORD dwFlags, - DWORD dwMilliseconds); - - /*** IAudioStreamSample methods ***/ - HRESULT (STDMETHODCALLTYPE *GetAudioData)( - IAudioStreamSample* This, - IAudioData** ppAudio); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAudioStreamSample_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAudioStreamSample_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAudioStreamSample_Release(p) (p)->lpVtbl->Release(p) -/*** IStreamSample methods ***/ -#define IAudioStreamSample_GetMediaStream(p,a) (p)->lpVtbl->GetMediaStream(p,a) -#define IAudioStreamSample_GetSampleTimes(p,a,b,c) (p)->lpVtbl->GetSampleTimes(p,a,b,c) -#define IAudioStreamSample_SetSampleTimes(p,a,b) (p)->lpVtbl->SetSampleTimes(p,a,b) -#define IAudioStreamSample_Update(p,a,b,c,d) (p)->lpVtbl->Update(p,a,b,c,d) -#define IAudioStreamSample_CompletionStatus(p,a,b) (p)->lpVtbl->CompletionStatus(p,a,b) -/*** IAudioStreamSample methods ***/ -#define IAudioStreamSample_GetAudioData(p,a) (p)->lpVtbl->GetAudioData(p,a) -#endif - -#endif - -#define IAudioStreamSample_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IStreamSample methods ***/ \ - STDMETHOD_(HRESULT,GetMediaStream)(THIS_ IMediaStream** ppMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetSampleTimes)(THIS_ STREAM_TIME* pStartTime, STREAM_TIME* pEndTime, STREAM_TIME* pCurrentTime) PURE; \ - STDMETHOD_(HRESULT,SetSampleTimes)(THIS_ const STREAM_TIME* pStartTime, const STREAM_TIME* pEndTime) PURE; \ - STDMETHOD_(HRESULT,Update)(THIS_ DWORD dwFlags, HANDLE hEvent, PAPCFUNC pfnAPC, DWORD dwAPCData) PURE; \ - STDMETHOD_(HRESULT,CompletionStatus)(THIS_ DWORD dwFlags, DWORD dwMilliseconds) PURE; \ - /*** IAudioStreamSample methods ***/ \ - STDMETHOD_(HRESULT,GetAudioData)(THIS_ IAudioData** ppAudio) PURE; - -HRESULT CALLBACK IAudioStreamSample_GetAudioData_Proxy( - IAudioStreamSample* This, - IAudioData** ppAudio); -void __RPC_STUB IAudioStreamSample_GetAudioData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAudioStreamSample_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IMemoryData interface - */ -#ifndef __IMemoryData_INTERFACE_DEFINED__ -#define __IMemoryData_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMemoryData, 0x327fc560, 0xaf60, 0x11d0, 0x82,0x12, 0x00,0xc0,0x4f,0xc3,0x2c,0x45); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMemoryData : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetBuffer( - DWORD cbSize, - BYTE* pbData, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInfo( - DWORD* pdwLength, - BYTE** ppbData, - DWORD* pcbActualData) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetActual( - DWORD cbDataValid) = 0; - -}; -#else -typedef struct IMemoryDataVtbl IMemoryDataVtbl; -struct IMemoryData { - const IMemoryDataVtbl* lpVtbl; -}; -struct IMemoryDataVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMemoryData* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMemoryData* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMemoryData* This); - - /*** IMemoryData methods ***/ - HRESULT (STDMETHODCALLTYPE *SetBuffer)( - IMemoryData* This, - DWORD cbSize, - BYTE* pbData, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *GetInfo)( - IMemoryData* This, - DWORD* pdwLength, - BYTE** ppbData, - DWORD* pcbActualData); - - HRESULT (STDMETHODCALLTYPE *SetActual)( - IMemoryData* This, - DWORD cbDataValid); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMemoryData_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMemoryData_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMemoryData_Release(p) (p)->lpVtbl->Release(p) -/*** IMemoryData methods ***/ -#define IMemoryData_SetBuffer(p,a,b,c) (p)->lpVtbl->SetBuffer(p,a,b,c) -#define IMemoryData_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c) -#define IMemoryData_SetActual(p,a) (p)->lpVtbl->SetActual(p,a) -#endif - -#endif - -#define IMemoryData_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMemoryData methods ***/ \ - STDMETHOD_(HRESULT,SetBuffer)(THIS_ DWORD cbSize, BYTE* pbData, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,GetInfo)(THIS_ DWORD* pdwLength, BYTE** ppbData, DWORD* pcbActualData) PURE; \ - STDMETHOD_(HRESULT,SetActual)(THIS_ DWORD cbDataValid) PURE; - -HRESULT CALLBACK IMemoryData_SetBuffer_Proxy( - IMemoryData* This, - DWORD cbSize, - BYTE* pbData, - DWORD dwFlags); -void __RPC_STUB IMemoryData_SetBuffer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemoryData_GetInfo_Proxy( - IMemoryData* This, - DWORD* pdwLength, - BYTE** ppbData, - DWORD* pcbActualData); -void __RPC_STUB IMemoryData_GetInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemoryData_SetActual_Proxy( - IMemoryData* This, - DWORD cbDataValid); -void __RPC_STUB IMemoryData_SetActual_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMemoryData_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IAudioData interface - */ -#ifndef __IAudioData_INTERFACE_DEFINED__ -#define __IAudioData_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAudioData, 0x54c719c0, 0xaf60, 0x11d0, 0x82,0x12, 0x00,0xc0,0x4f,0xc3,0x2c,0x45); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAudioData : public IMemoryData -{ - virtual HRESULT STDMETHODCALLTYPE GetFormat( - WAVEFORMATEX* pWaveFormatCurrent) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFormat( - const WAVEFORMATEX* lpWaveFormat) = 0; - -}; -#else -typedef struct IAudioDataVtbl IAudioDataVtbl; -struct IAudioData { - const IAudioDataVtbl* lpVtbl; -}; -struct IAudioDataVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAudioData* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAudioData* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAudioData* This); - - /*** IMemoryData methods ***/ - HRESULT (STDMETHODCALLTYPE *SetBuffer)( - IAudioData* This, - DWORD cbSize, - BYTE* pbData, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *GetInfo)( - IAudioData* This, - DWORD* pdwLength, - BYTE** ppbData, - DWORD* pcbActualData); - - HRESULT (STDMETHODCALLTYPE *SetActual)( - IAudioData* This, - DWORD cbDataValid); - - /*** IAudioData methods ***/ - HRESULT (STDMETHODCALLTYPE *GetFormat)( - IAudioData* This, - WAVEFORMATEX* pWaveFormatCurrent); - - HRESULT (STDMETHODCALLTYPE *SetFormat)( - IAudioData* This, - const WAVEFORMATEX* lpWaveFormat); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAudioData_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAudioData_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAudioData_Release(p) (p)->lpVtbl->Release(p) -/*** IMemoryData methods ***/ -#define IAudioData_SetBuffer(p,a,b,c) (p)->lpVtbl->SetBuffer(p,a,b,c) -#define IAudioData_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c) -#define IAudioData_SetActual(p,a) (p)->lpVtbl->SetActual(p,a) -/*** IAudioData methods ***/ -#define IAudioData_GetFormat(p,a) (p)->lpVtbl->GetFormat(p,a) -#define IAudioData_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a) -#endif - -#endif - -#define IAudioData_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMemoryData methods ***/ \ - STDMETHOD_(HRESULT,SetBuffer)(THIS_ DWORD cbSize, BYTE* pbData, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,GetInfo)(THIS_ DWORD* pdwLength, BYTE** ppbData, DWORD* pcbActualData) PURE; \ - STDMETHOD_(HRESULT,SetActual)(THIS_ DWORD cbDataValid) PURE; \ - /*** IAudioData methods ***/ \ - STDMETHOD_(HRESULT,GetFormat)(THIS_ WAVEFORMATEX* pWaveFormatCurrent) PURE; \ - STDMETHOD_(HRESULT,SetFormat)(THIS_ const WAVEFORMATEX* lpWaveFormat) PURE; - -HRESULT CALLBACK IAudioData_GetFormat_Proxy( - IAudioData* This, - WAVEFORMATEX* pWaveFormatCurrent); -void __RPC_STUB IAudioData_GetFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAudioData_SetFormat_Proxy( - IAudioData* This, - const WAVEFORMATEX* lpWaveFormat); -void __RPC_STUB IAudioData_SetFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAudioData_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_AUSTREAM_H */ diff --git a/include/comcat.h b/include/comcat.h deleted file mode 100644 index da56f0a4032..00000000000 --- a/include/comcat.h +++ /dev/null @@ -1,743 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from comcat.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_COMCAT_H -#define __WIDL_COMCAT_H -#ifdef __cplusplus -extern "C" { -#endif -#include -typedef GUID CATID; - -typedef REFGUID REFCATID; - -#define CATID_NULL GUID_NULL -#define IsEqualCATID(rcatid1, rcatid2) IsEqualGUID(rcatid1, rcatid2) -#define IEnumCATID IEnumGUID -#define IID_IEnumCATID IID_IEnumGUID -#define LPENUMCATID LPENUMGUID -#define IEnumCLSID IEnumGUID -#define IID_IEnumCLSID IID_IEnumGUID -#define LPENUMCLSID LPENUMGUID -#ifndef __IEnumGUID_FWD_DEFINED__ -#define __IEnumGUID_FWD_DEFINED__ -typedef struct IEnumGUID IEnumGUID; -#endif - -typedef IEnumGUID *LPENUMGUID; - -/***************************************************************************** - * IEnumGUID interface - */ -#ifndef __IEnumGUID_INTERFACE_DEFINED__ -#define __IEnumGUID_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumGUID, 0x0002e000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumGUID : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - GUID* rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumGUID** ppenum) = 0; - -}; -#else -typedef struct IEnumGUIDVtbl IEnumGUIDVtbl; -struct IEnumGUID { - const IEnumGUIDVtbl* lpVtbl; -}; -struct IEnumGUIDVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumGUID* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumGUID* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumGUID* This); - - /*** IEnumGUID methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumGUID* This, - ULONG celt, - GUID* rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumGUID* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumGUID* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumGUID* This, - IEnumGUID** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumGUID_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumGUID_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumGUID_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumGUID methods ***/ -#define IEnumGUID_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumGUID_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumGUID_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumGUID_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumGUID_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumGUID methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, GUID* rgelt, ULONG* pceltFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumGUID** ppenum) PURE; - -HRESULT CALLBACK IEnumGUID_Next_Proxy( - IEnumGUID* This, - ULONG celt, - GUID* rgelt, - ULONG* pceltFetched); -void __RPC_STUB IEnumGUID_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumGUID_Skip_Proxy( - IEnumGUID* This, - ULONG celt); -void __RPC_STUB IEnumGUID_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumGUID_Reset_Proxy( - IEnumGUID* This); -void __RPC_STUB IEnumGUID_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumGUID_Clone_Proxy( - IEnumGUID* This, - IEnumGUID** ppenum); -void __RPC_STUB IEnumGUID_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumGUID_INTERFACE_DEFINED__ */ - -#ifndef __IEnumCATEGORYINFO_FWD_DEFINED__ -#define __IEnumCATEGORYINFO_FWD_DEFINED__ -typedef struct IEnumCATEGORYINFO IEnumCATEGORYINFO; -#endif - -typedef IEnumCATEGORYINFO *LPENUMCATEGORYINFO; - -typedef struct tagCATEGORYINFO { - CATID catid; - LCID lcid; - OLECHAR szDescription[128]; -} CATEGORYINFO, *LPCATEGORYINFO; - -/***************************************************************************** - * IEnumCATEGORYINFO interface - */ -#ifndef __IEnumCATEGORYINFO_INTERFACE_DEFINED__ -#define __IEnumCATEGORYINFO_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumCATEGORYINFO, 0x0002e011, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumCATEGORYINFO : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - CATEGORYINFO* rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumCATEGORYINFO** ppenum) = 0; - -}; -#else -typedef struct IEnumCATEGORYINFOVtbl IEnumCATEGORYINFOVtbl; -struct IEnumCATEGORYINFO { - const IEnumCATEGORYINFOVtbl* lpVtbl; -}; -struct IEnumCATEGORYINFOVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumCATEGORYINFO* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumCATEGORYINFO* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumCATEGORYINFO* This); - - /*** IEnumCATEGORYINFO methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumCATEGORYINFO* This, - ULONG celt, - CATEGORYINFO* rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumCATEGORYINFO* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumCATEGORYINFO* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumCATEGORYINFO* This, - IEnumCATEGORYINFO** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumCATEGORYINFO_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumCATEGORYINFO_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumCATEGORYINFO_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumCATEGORYINFO methods ***/ -#define IEnumCATEGORYINFO_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumCATEGORYINFO_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumCATEGORYINFO_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumCATEGORYINFO_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumCATEGORYINFO_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumCATEGORYINFO methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, CATEGORYINFO* rgelt, ULONG* pceltFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumCATEGORYINFO** ppenum) PURE; - -HRESULT CALLBACK IEnumCATEGORYINFO_Next_Proxy( - IEnumCATEGORYINFO* This, - ULONG celt, - CATEGORYINFO* rgelt, - ULONG* pceltFetched); -void __RPC_STUB IEnumCATEGORYINFO_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumCATEGORYINFO_Skip_Proxy( - IEnumCATEGORYINFO* This, - ULONG celt); -void __RPC_STUB IEnumCATEGORYINFO_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumCATEGORYINFO_Reset_Proxy( - IEnumCATEGORYINFO* This); -void __RPC_STUB IEnumCATEGORYINFO_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumCATEGORYINFO_Clone_Proxy( - IEnumCATEGORYINFO* This, - IEnumCATEGORYINFO** ppenum); -void __RPC_STUB IEnumCATEGORYINFO_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumCATEGORYINFO_INTERFACE_DEFINED__ */ - -#ifndef __ICatInformation_FWD_DEFINED__ -#define __ICatInformation_FWD_DEFINED__ -typedef struct ICatInformation ICatInformation; -#endif - -typedef ICatInformation *LPCATINFORMATION; - -/***************************************************************************** - * ICatInformation interface - */ -#ifndef __ICatInformation_INTERFACE_DEFINED__ -#define __ICatInformation_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICatInformation, 0x0002e013, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICatInformation : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE EnumCategories( - LCID lcid, - IEnumCATEGORYINFO** ppenumCategoryInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCategoryDesc( - REFCATID rcatid, - LCID lcid, - LPWSTR* pszDesc) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumClassesOfCategories( - ULONG cImplemented, - CATID rgcatidImpl[], - ULONG cRequired, - CATID rgcatidReq[], - IEnumGUID** ppenumClsid) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsClassOfCategories( - REFCLSID rclsid, - ULONG cImplemented, - CATID rgcatidImpl[], - ULONG cRequired, - CATID rgcatidReq[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumImplCategoriesOfClass( - REFCLSID rclsid, - IEnumGUID** ppenumCatid) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumReqCategoriesOfClass( - REFCLSID rclsid, - IEnumGUID** ppenumCatid) = 0; - -}; -#else -typedef struct ICatInformationVtbl ICatInformationVtbl; -struct ICatInformation { - const ICatInformationVtbl* lpVtbl; -}; -struct ICatInformationVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICatInformation* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICatInformation* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICatInformation* This); - - /*** ICatInformation methods ***/ - HRESULT (STDMETHODCALLTYPE *EnumCategories)( - ICatInformation* This, - LCID lcid, - IEnumCATEGORYINFO** ppenumCategoryInfo); - - HRESULT (STDMETHODCALLTYPE *GetCategoryDesc)( - ICatInformation* This, - REFCATID rcatid, - LCID lcid, - LPWSTR* pszDesc); - - HRESULT (STDMETHODCALLTYPE *EnumClassesOfCategories)( - ICatInformation* This, - ULONG cImplemented, - CATID rgcatidImpl[], - ULONG cRequired, - CATID rgcatidReq[], - IEnumGUID** ppenumClsid); - - HRESULT (STDMETHODCALLTYPE *IsClassOfCategories)( - ICatInformation* This, - REFCLSID rclsid, - ULONG cImplemented, - CATID rgcatidImpl[], - ULONG cRequired, - CATID rgcatidReq[]); - - HRESULT (STDMETHODCALLTYPE *EnumImplCategoriesOfClass)( - ICatInformation* This, - REFCLSID rclsid, - IEnumGUID** ppenumCatid); - - HRESULT (STDMETHODCALLTYPE *EnumReqCategoriesOfClass)( - ICatInformation* This, - REFCLSID rclsid, - IEnumGUID** ppenumCatid); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICatInformation_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICatInformation_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICatInformation_Release(p) (p)->lpVtbl->Release(p) -/*** ICatInformation methods ***/ -#define ICatInformation_EnumCategories(p,a,b) (p)->lpVtbl->EnumCategories(p,a,b) -#define ICatInformation_GetCategoryDesc(p,a,b,c) (p)->lpVtbl->GetCategoryDesc(p,a,b,c) -#define ICatInformation_EnumClassesOfCategories(p,a,b,c,d,e) (p)->lpVtbl->EnumClassesOfCategories(p,a,b,c,d,e) -#define ICatInformation_IsClassOfCategories(p,a,b,c,d,e) (p)->lpVtbl->IsClassOfCategories(p,a,b,c,d,e) -#define ICatInformation_EnumImplCategoriesOfClass(p,a,b) (p)->lpVtbl->EnumImplCategoriesOfClass(p,a,b) -#define ICatInformation_EnumReqCategoriesOfClass(p,a,b) (p)->lpVtbl->EnumReqCategoriesOfClass(p,a,b) -#endif - -#endif - -#define ICatInformation_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICatInformation methods ***/ \ - STDMETHOD_(HRESULT,EnumCategories)(THIS_ LCID lcid, IEnumCATEGORYINFO** ppenumCategoryInfo) PURE; \ - STDMETHOD_(HRESULT,GetCategoryDesc)(THIS_ REFCATID rcatid, LCID lcid, LPWSTR* pszDesc) PURE; \ - STDMETHOD_(HRESULT,EnumClassesOfCategories)(THIS_ ULONG cImplemented, CATID rgcatidImpl[], ULONG cRequired, CATID rgcatidReq[], IEnumGUID** ppenumClsid) PURE; \ - STDMETHOD_(HRESULT,IsClassOfCategories)(THIS_ REFCLSID rclsid, ULONG cImplemented, CATID rgcatidImpl[], ULONG cRequired, CATID rgcatidReq[]) PURE; \ - STDMETHOD_(HRESULT,EnumImplCategoriesOfClass)(THIS_ REFCLSID rclsid, IEnumGUID** ppenumCatid) PURE; \ - STDMETHOD_(HRESULT,EnumReqCategoriesOfClass)(THIS_ REFCLSID rclsid, IEnumGUID** ppenumCatid) PURE; - -HRESULT CALLBACK ICatInformation_EnumCategories_Proxy( - ICatInformation* This, - LCID lcid, - IEnumCATEGORYINFO** ppenumCategoryInfo); -void __RPC_STUB ICatInformation_EnumCategories_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICatInformation_GetCategoryDesc_Proxy( - ICatInformation* This, - REFCATID rcatid, - LCID lcid, - LPWSTR* pszDesc); -void __RPC_STUB ICatInformation_GetCategoryDesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICatInformation_RemoteEnumClassesOfCategories_Proxy( - ICatInformation* This, - ULONG cImplemented, - CATID rgcatidImpl[], - ULONG cRequired, - CATID rgcatidReq[], - IEnumGUID** ppenumClsid); -void __RPC_STUB ICatInformation_RemoteEnumClassesOfCategories_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICatInformation_EnumClassesOfCategories_Proxy( - ICatInformation* This, - ULONG cImplemented, - CATID rgcatidImpl[], - ULONG cRequired, - CATID rgcatidReq[], - IEnumGUID** ppenumClsid); -HRESULT __RPC_STUB ICatInformation_EnumClassesOfCategories_Stub( - ICatInformation* This, - ULONG cImplemented, - CATID rgcatidImpl[], - ULONG cRequired, - CATID rgcatidReq[], - IEnumGUID** ppenumClsid); -HRESULT CALLBACK ICatInformation_RemoteIsClassOfCategories_Proxy( - ICatInformation* This, - REFCLSID rclsid, - ULONG cImplemented, - CATID rgcatidImpl[], - ULONG cRequired, - CATID rgcatidReq[]); -void __RPC_STUB ICatInformation_RemoteIsClassOfCategories_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICatInformation_IsClassOfCategories_Proxy( - ICatInformation* This, - REFCLSID rclsid, - ULONG cImplemented, - CATID rgcatidImpl[], - ULONG cRequired, - CATID rgcatidReq[]); -HRESULT __RPC_STUB ICatInformation_IsClassOfCategories_Stub( - ICatInformation* This, - REFCLSID rclsid, - ULONG cImplemented, - CATID rgcatidImpl[], - ULONG cRequired, - CATID rgcatidReq[]); -HRESULT CALLBACK ICatInformation_EnumImplCategoriesOfClass_Proxy( - ICatInformation* This, - REFCLSID rclsid, - IEnumGUID** ppenumCatid); -void __RPC_STUB ICatInformation_EnumImplCategoriesOfClass_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICatInformation_EnumReqCategoriesOfClass_Proxy( - ICatInformation* This, - REFCLSID rclsid, - IEnumGUID** ppenumCatid); -void __RPC_STUB ICatInformation_EnumReqCategoriesOfClass_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICatInformation_INTERFACE_DEFINED__ */ - -#ifndef __ICatRegister_FWD_DEFINED__ -#define __ICatRegister_FWD_DEFINED__ -typedef struct ICatRegister ICatRegister; -#endif - -typedef ICatRegister *LPCATREGISTER; - -/***************************************************************************** - * ICatRegister interface - */ -#ifndef __ICatRegister_INTERFACE_DEFINED__ -#define __ICatRegister_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICatRegister, 0x0002e012, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICatRegister : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE RegisterCategories( - ULONG cCategories, - CATEGORYINFO rgCategoryInfo[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnRegisterCategories( - ULONG cCategories, - CATID rgcatid[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterClassImplCategories( - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnRegisterClassImplCategories( - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterClassReqCategories( - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnRegisterClassReqCategories( - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]) = 0; - -}; -#else -typedef struct ICatRegisterVtbl ICatRegisterVtbl; -struct ICatRegister { - const ICatRegisterVtbl* lpVtbl; -}; -struct ICatRegisterVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICatRegister* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICatRegister* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICatRegister* This); - - /*** ICatRegister methods ***/ - HRESULT (STDMETHODCALLTYPE *RegisterCategories)( - ICatRegister* This, - ULONG cCategories, - CATEGORYINFO rgCategoryInfo[]); - - HRESULT (STDMETHODCALLTYPE *UnRegisterCategories)( - ICatRegister* This, - ULONG cCategories, - CATID rgcatid[]); - - HRESULT (STDMETHODCALLTYPE *RegisterClassImplCategories)( - ICatRegister* This, - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]); - - HRESULT (STDMETHODCALLTYPE *UnRegisterClassImplCategories)( - ICatRegister* This, - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]); - - HRESULT (STDMETHODCALLTYPE *RegisterClassReqCategories)( - ICatRegister* This, - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]); - - HRESULT (STDMETHODCALLTYPE *UnRegisterClassReqCategories)( - ICatRegister* This, - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICatRegister_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICatRegister_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICatRegister_Release(p) (p)->lpVtbl->Release(p) -/*** ICatRegister methods ***/ -#define ICatRegister_RegisterCategories(p,a,b) (p)->lpVtbl->RegisterCategories(p,a,b) -#define ICatRegister_UnRegisterCategories(p,a,b) (p)->lpVtbl->UnRegisterCategories(p,a,b) -#define ICatRegister_RegisterClassImplCategories(p,a,b,c) (p)->lpVtbl->RegisterClassImplCategories(p,a,b,c) -#define ICatRegister_UnRegisterClassImplCategories(p,a,b,c) (p)->lpVtbl->UnRegisterClassImplCategories(p,a,b,c) -#define ICatRegister_RegisterClassReqCategories(p,a,b,c) (p)->lpVtbl->RegisterClassReqCategories(p,a,b,c) -#define ICatRegister_UnRegisterClassReqCategories(p,a,b,c) (p)->lpVtbl->UnRegisterClassReqCategories(p,a,b,c) -#endif - -#endif - -#define ICatRegister_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICatRegister methods ***/ \ - STDMETHOD_(HRESULT,RegisterCategories)(THIS_ ULONG cCategories, CATEGORYINFO rgCategoryInfo[]) PURE; \ - STDMETHOD_(HRESULT,UnRegisterCategories)(THIS_ ULONG cCategories, CATID rgcatid[]) PURE; \ - STDMETHOD_(HRESULT,RegisterClassImplCategories)(THIS_ REFCLSID rclsid, ULONG cCategories, CATID rgcatid[]) PURE; \ - STDMETHOD_(HRESULT,UnRegisterClassImplCategories)(THIS_ REFCLSID rclsid, ULONG cCategories, CATID rgcatid[]) PURE; \ - STDMETHOD_(HRESULT,RegisterClassReqCategories)(THIS_ REFCLSID rclsid, ULONG cCategories, CATID rgcatid[]) PURE; \ - STDMETHOD_(HRESULT,UnRegisterClassReqCategories)(THIS_ REFCLSID rclsid, ULONG cCategories, CATID rgcatid[]) PURE; - -HRESULT CALLBACK ICatRegister_RegisterCategories_Proxy( - ICatRegister* This, - ULONG cCategories, - CATEGORYINFO rgCategoryInfo[]); -void __RPC_STUB ICatRegister_RegisterCategories_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICatRegister_UnRegisterCategories_Proxy( - ICatRegister* This, - ULONG cCategories, - CATID rgcatid[]); -void __RPC_STUB ICatRegister_UnRegisterCategories_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICatRegister_RegisterClassImplCategories_Proxy( - ICatRegister* This, - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]); -void __RPC_STUB ICatRegister_RegisterClassImplCategories_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICatRegister_UnRegisterClassImplCategories_Proxy( - ICatRegister* This, - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]); -void __RPC_STUB ICatRegister_UnRegisterClassImplCategories_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICatRegister_RegisterClassReqCategories_Proxy( - ICatRegister* This, - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]); -void __RPC_STUB ICatRegister_RegisterClassReqCategories_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICatRegister_UnRegisterClassReqCategories_Proxy( - ICatRegister* This, - REFCLSID rclsid, - ULONG cCategories, - CATID rgcatid[]); -void __RPC_STUB ICatRegister_UnRegisterClassReqCategories_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICatRegister_INTERFACE_DEFINED__ */ - -DEFINE_GUID( CATID_Insertable, 0x40fc6ed3, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02); -DEFINE_GUID( CATID_Control, 0x40fc6ed4, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02); -DEFINE_GUID( CATID_Programmable, 0x40fc6ed5, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02); -DEFINE_GUID( CATID_IsShortcut, 0x40fc6ed6, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02); -DEFINE_GUID( CATID_NeverShowExt, 0x40fc6ed7, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02); -DEFINE_GUID( CATID_DocObject, 0x40fc6ed8, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02); -DEFINE_GUID( CATID_Printable, 0x40fc6ed9, 0x2438, 0x11cf, 0xa3, 0xdb, 0x08, 0x00, 0x36, 0xf1, 0x25, 0x02); -DEFINE_GUID( CATID_RequiresDataPathHost, 0x0de86a50, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52); -DEFINE_GUID( CATID_PersistsToMoniker, 0x0de86a51, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52); -DEFINE_GUID( CATID_PersistsToStorage, 0x0de86a52, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52); -DEFINE_GUID( CATID_PersistsToStreamInit, 0x0de86a53, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52); -DEFINE_GUID( CATID_PersistsToStream, 0x0de86a54, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52); -DEFINE_GUID( CATID_PersistsToMemory, 0x0de86a55, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52); -DEFINE_GUID( CATID_PersistsToFile, 0x0de86a56, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52); -DEFINE_GUID( CATID_PersistsToPropertyBag, 0x0de86a57, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52); -DEFINE_GUID( CATID_InternetAware, 0x0de86a58, 0x2baa, 0x11cf, 0xa2, 0x29, 0x00, 0xaa, 0x00, 0x3d, 0x73, 0x52); -DEFINE_GUID( CATID_DesignTimeUIActivatableControl, 0xf2bb56d1, 0xdb07, 0x11d1, 0xaa, 0x6b, 0x00, 0x60, 0x97, 0xdb, 0x95, 0x39); -DEFINE_GUID(CLSID_StdComponentCategoriesMgr, 0x0002e005, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_COMCAT_H */ diff --git a/include/ddstream.h b/include/ddstream.h deleted file mode 100644 index 8674c714706..00000000000 --- a/include/ddstream.h +++ /dev/null @@ -1,405 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from ddstream.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_DDSTREAM_H -#define __WIDL_DDSTREAM_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#ifndef __WINE_DDRAW_H -typedef void *LPDDSURFACEDESC; - -typedef struct tDDSURFACEDESC DDSURFACEDESC; - -#ifndef __IDirectDraw_FWD_DEFINED__ -#define __IDirectDraw_FWD_DEFINED__ -typedef struct IDirectDraw IDirectDraw; -#endif - -#ifndef __IDirectDrawSurface_FWD_DEFINED__ -#define __IDirectDrawSurface_FWD_DEFINED__ -typedef struct IDirectDrawSurface IDirectDrawSurface; -#endif - -#ifndef __IDirectDrawPalette_FWD_DEFINED__ -#define __IDirectDrawPalette_FWD_DEFINED__ -typedef struct IDirectDrawPalette IDirectDrawPalette; -#endif - -#endif -#include -enum { - DDSFF_PROGRESSIVERENDER = 0x1 -}; - -#ifndef __IDirectDrawMediaStream_FWD_DEFINED__ -#define __IDirectDrawMediaStream_FWD_DEFINED__ -typedef struct IDirectDrawMediaStream IDirectDrawMediaStream; -#endif - -#ifndef __IDirectDrawStreamSample_FWD_DEFINED__ -#define __IDirectDrawStreamSample_FWD_DEFINED__ -typedef struct IDirectDrawStreamSample IDirectDrawStreamSample; -#endif - -/***************************************************************************** - * IDirectDrawMediaStream interface - */ -#ifndef __IDirectDrawMediaStream_INTERFACE_DEFINED__ -#define __IDirectDrawMediaStream_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDirectDrawMediaStream, 0xf4104fce, 0x9a70, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDirectDrawMediaStream : public IMediaStream -{ - virtual HRESULT STDMETHODCALLTYPE GetFormat( - DDSURFACEDESC* pDDSDCurrent, - IDirectDrawPalette** ppDirectDrawPalette, - DDSURFACEDESC* pDDSDDesired, - DWORD* pdwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFormat( - const DDSURFACEDESC* pDDSurfaceDesc, - IDirectDrawPalette* pDirectDrawPalette) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDirectDraw( - IDirectDraw** ppDirectDraw) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDirectDraw( - IDirectDraw* pDirectDraw) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateSample( - IDirectDrawSurface* pSurface, - const RECT* pRect, - DWORD dwFlags, - IDirectDrawStreamSample** ppSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTimePerFrame( - STREAM_TIME* pFrameTime) = 0; - -}; -#else -typedef struct IDirectDrawMediaStreamVtbl IDirectDrawMediaStreamVtbl; -struct IDirectDrawMediaStream { - const IDirectDrawMediaStreamVtbl* lpVtbl; -}; -struct IDirectDrawMediaStreamVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDirectDrawMediaStream* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDirectDrawMediaStream* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDirectDrawMediaStream* This); - - /*** IMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *GetMultiMediaStream)( - IDirectDrawMediaStream* This, - IMultiMediaStream** ppMultiMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetInformation)( - IDirectDrawMediaStream* This, - MSPID* pPurposeId, - STREAM_TYPE* pType); - - HRESULT (STDMETHODCALLTYPE *SetSameFormat)( - IDirectDrawMediaStream* This, - IMediaStream* pStreamThatHasDesiredFormat, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *AllocateSample)( - IDirectDrawMediaStream* This, - DWORD dwFlags, - IStreamSample** ppSample); - - HRESULT (STDMETHODCALLTYPE *CreateSharedSample)( - IDirectDrawMediaStream* This, - IStreamSample* pExistingSample, - DWORD dwFlags, - IStreamSample** ppNewSample); - - HRESULT (STDMETHODCALLTYPE *SendEndOfStream)( - IDirectDrawMediaStream* This, - DWORD dwFlags); - - /*** IDirectDrawMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *GetFormat)( - IDirectDrawMediaStream* This, - DDSURFACEDESC* pDDSDCurrent, - IDirectDrawPalette** ppDirectDrawPalette, - DDSURFACEDESC* pDDSDDesired, - DWORD* pdwFlags); - - HRESULT (STDMETHODCALLTYPE *SetFormat)( - IDirectDrawMediaStream* This, - const DDSURFACEDESC* pDDSurfaceDesc, - IDirectDrawPalette* pDirectDrawPalette); - - HRESULT (STDMETHODCALLTYPE *GetDirectDraw)( - IDirectDrawMediaStream* This, - IDirectDraw** ppDirectDraw); - - HRESULT (STDMETHODCALLTYPE *SetDirectDraw)( - IDirectDrawMediaStream* This, - IDirectDraw* pDirectDraw); - - HRESULT (STDMETHODCALLTYPE *CreateSample)( - IDirectDrawMediaStream* This, - IDirectDrawSurface* pSurface, - const RECT* pRect, - DWORD dwFlags, - IDirectDrawStreamSample** ppSample); - - HRESULT (STDMETHODCALLTYPE *GetTimePerFrame)( - IDirectDrawMediaStream* This, - STREAM_TIME* pFrameTime); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDirectDrawMediaStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectDrawMediaStream_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawMediaStream_Release(p) (p)->lpVtbl->Release(p) -/*** IMediaStream methods ***/ -#define IDirectDrawMediaStream_GetMultiMediaStream(p,a) (p)->lpVtbl->GetMultiMediaStream(p,a) -#define IDirectDrawMediaStream_GetInformation(p,a,b) (p)->lpVtbl->GetInformation(p,a,b) -#define IDirectDrawMediaStream_SetSameFormat(p,a,b) (p)->lpVtbl->SetSameFormat(p,a,b) -#define IDirectDrawMediaStream_AllocateSample(p,a,b) (p)->lpVtbl->AllocateSample(p,a,b) -#define IDirectDrawMediaStream_CreateSharedSample(p,a,b,c) (p)->lpVtbl->CreateSharedSample(p,a,b,c) -#define IDirectDrawMediaStream_SendEndOfStream(p,a) (p)->lpVtbl->SendEndOfStream(p,a) -/*** IDirectDrawMediaStream methods ***/ -#define IDirectDrawMediaStream_GetFormat(p,a,b,c,d) (p)->lpVtbl->GetFormat(p,a,b,c,d) -#define IDirectDrawMediaStream_SetFormat(p,a,b) (p)->lpVtbl->SetFormat(p,a,b) -#define IDirectDrawMediaStream_GetDirectDraw(p,a) (p)->lpVtbl->GetDirectDraw(p,a) -#define IDirectDrawMediaStream_SetDirectDraw(p,a) (p)->lpVtbl->SetDirectDraw(p,a) -#define IDirectDrawMediaStream_CreateSample(p,a,b,c,d) (p)->lpVtbl->CreateSample(p,a,b,c,d) -#define IDirectDrawMediaStream_GetTimePerFrame(p,a) (p)->lpVtbl->GetTimePerFrame(p,a) -#endif - -#endif - -#define IDirectDrawMediaStream_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMediaStream methods ***/ \ - STDMETHOD_(HRESULT,GetMultiMediaStream)(THIS_ IMultiMediaStream** ppMultiMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetInformation)(THIS_ MSPID* pPurposeId, STREAM_TYPE* pType) PURE; \ - STDMETHOD_(HRESULT,SetSameFormat)(THIS_ IMediaStream* pStreamThatHasDesiredFormat, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,AllocateSample)(THIS_ DWORD dwFlags, IStreamSample** ppSample) PURE; \ - STDMETHOD_(HRESULT,CreateSharedSample)(THIS_ IStreamSample* pExistingSample, DWORD dwFlags, IStreamSample** ppNewSample) PURE; \ - STDMETHOD_(HRESULT,SendEndOfStream)(THIS_ DWORD dwFlags) PURE; \ - /*** IDirectDrawMediaStream methods ***/ \ - STDMETHOD_(HRESULT,GetFormat)(THIS_ DDSURFACEDESC* pDDSDCurrent, IDirectDrawPalette** ppDirectDrawPalette, DDSURFACEDESC* pDDSDDesired, DWORD* pdwFlags) PURE; \ - STDMETHOD_(HRESULT,SetFormat)(THIS_ const DDSURFACEDESC* pDDSurfaceDesc, IDirectDrawPalette* pDirectDrawPalette) PURE; \ - STDMETHOD_(HRESULT,GetDirectDraw)(THIS_ IDirectDraw** ppDirectDraw) PURE; \ - STDMETHOD_(HRESULT,SetDirectDraw)(THIS_ IDirectDraw* pDirectDraw) PURE; \ - STDMETHOD_(HRESULT,CreateSample)(THIS_ IDirectDrawSurface* pSurface, const RECT* pRect, DWORD dwFlags, IDirectDrawStreamSample** ppSample) PURE; \ - STDMETHOD_(HRESULT,GetTimePerFrame)(THIS_ STREAM_TIME* pFrameTime) PURE; - -HRESULT CALLBACK IDirectDrawMediaStream_GetFormat_Proxy( - IDirectDrawMediaStream* This, - DDSURFACEDESC* pDDSDCurrent, - IDirectDrawPalette** ppDirectDrawPalette, - DDSURFACEDESC* pDDSDDesired, - DWORD* pdwFlags); -void __RPC_STUB IDirectDrawMediaStream_GetFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawMediaStream_SetFormat_Proxy( - IDirectDrawMediaStream* This, - const DDSURFACEDESC* pDDSurfaceDesc, - IDirectDrawPalette* pDirectDrawPalette); -void __RPC_STUB IDirectDrawMediaStream_SetFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawMediaStream_GetDirectDraw_Proxy( - IDirectDrawMediaStream* This, - IDirectDraw** ppDirectDraw); -void __RPC_STUB IDirectDrawMediaStream_GetDirectDraw_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawMediaStream_SetDirectDraw_Proxy( - IDirectDrawMediaStream* This, - IDirectDraw* pDirectDraw); -void __RPC_STUB IDirectDrawMediaStream_SetDirectDraw_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawMediaStream_CreateSample_Proxy( - IDirectDrawMediaStream* This, - IDirectDrawSurface* pSurface, - const RECT* pRect, - DWORD dwFlags, - IDirectDrawStreamSample** ppSample); -void __RPC_STUB IDirectDrawMediaStream_CreateSample_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawMediaStream_GetTimePerFrame_Proxy( - IDirectDrawMediaStream* This, - STREAM_TIME* pFrameTime); -void __RPC_STUB IDirectDrawMediaStream_GetTimePerFrame_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDirectDrawMediaStream_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IDirectDrawStreamSample interface - */ -#ifndef __IDirectDrawStreamSample_INTERFACE_DEFINED__ -#define __IDirectDrawStreamSample_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDirectDrawStreamSample, 0xf4104fcf, 0x9a70, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDirectDrawStreamSample : public IStreamSample -{ - virtual HRESULT STDMETHODCALLTYPE GetSurface( - IDirectDrawSurface** ppDirectDrawSurface, - RECT* pRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRect( - const RECT* pRect) = 0; - -}; -#else -typedef struct IDirectDrawStreamSampleVtbl IDirectDrawStreamSampleVtbl; -struct IDirectDrawStreamSample { - const IDirectDrawStreamSampleVtbl* lpVtbl; -}; -struct IDirectDrawStreamSampleVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDirectDrawStreamSample* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDirectDrawStreamSample* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDirectDrawStreamSample* This); - - /*** IStreamSample methods ***/ - HRESULT (STDMETHODCALLTYPE *GetMediaStream)( - IDirectDrawStreamSample* This, - IMediaStream** ppMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetSampleTimes)( - IDirectDrawStreamSample* This, - STREAM_TIME* pStartTime, - STREAM_TIME* pEndTime, - STREAM_TIME* pCurrentTime); - - HRESULT (STDMETHODCALLTYPE *SetSampleTimes)( - IDirectDrawStreamSample* This, - const STREAM_TIME* pStartTime, - const STREAM_TIME* pEndTime); - - HRESULT (STDMETHODCALLTYPE *Update)( - IDirectDrawStreamSample* This, - DWORD dwFlags, - HANDLE hEvent, - PAPCFUNC pfnAPC, - DWORD dwAPCData); - - HRESULT (STDMETHODCALLTYPE *CompletionStatus)( - IDirectDrawStreamSample* This, - DWORD dwFlags, - DWORD dwMilliseconds); - - /*** IDirectDrawStreamSample methods ***/ - HRESULT (STDMETHODCALLTYPE *GetSurface)( - IDirectDrawStreamSample* This, - IDirectDrawSurface** ppDirectDrawSurface, - RECT* pRect); - - HRESULT (STDMETHODCALLTYPE *SetRect)( - IDirectDrawStreamSample* This, - const RECT* pRect); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDirectDrawStreamSample_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDirectDrawStreamSample_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDirectDrawStreamSample_Release(p) (p)->lpVtbl->Release(p) -/*** IStreamSample methods ***/ -#define IDirectDrawStreamSample_GetMediaStream(p,a) (p)->lpVtbl->GetMediaStream(p,a) -#define IDirectDrawStreamSample_GetSampleTimes(p,a,b,c) (p)->lpVtbl->GetSampleTimes(p,a,b,c) -#define IDirectDrawStreamSample_SetSampleTimes(p,a,b) (p)->lpVtbl->SetSampleTimes(p,a,b) -#define IDirectDrawStreamSample_Update(p,a,b,c,d) (p)->lpVtbl->Update(p,a,b,c,d) -#define IDirectDrawStreamSample_CompletionStatus(p,a,b) (p)->lpVtbl->CompletionStatus(p,a,b) -/*** IDirectDrawStreamSample methods ***/ -#define IDirectDrawStreamSample_GetSurface(p,a,b) (p)->lpVtbl->GetSurface(p,a,b) -#define IDirectDrawStreamSample_SetRect(p,a) (p)->lpVtbl->SetRect(p,a) -#endif - -#endif - -#define IDirectDrawStreamSample_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IStreamSample methods ***/ \ - STDMETHOD_(HRESULT,GetMediaStream)(THIS_ IMediaStream** ppMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetSampleTimes)(THIS_ STREAM_TIME* pStartTime, STREAM_TIME* pEndTime, STREAM_TIME* pCurrentTime) PURE; \ - STDMETHOD_(HRESULT,SetSampleTimes)(THIS_ const STREAM_TIME* pStartTime, const STREAM_TIME* pEndTime) PURE; \ - STDMETHOD_(HRESULT,Update)(THIS_ DWORD dwFlags, HANDLE hEvent, PAPCFUNC pfnAPC, DWORD dwAPCData) PURE; \ - STDMETHOD_(HRESULT,CompletionStatus)(THIS_ DWORD dwFlags, DWORD dwMilliseconds) PURE; \ - /*** IDirectDrawStreamSample methods ***/ \ - STDMETHOD_(HRESULT,GetSurface)(THIS_ IDirectDrawSurface** ppDirectDrawSurface, RECT* pRect) PURE; \ - STDMETHOD_(HRESULT,SetRect)(THIS_ const RECT* pRect) PURE; - -HRESULT CALLBACK IDirectDrawStreamSample_GetSurface_Proxy( - IDirectDrawStreamSample* This, - IDirectDrawSurface** ppDirectDrawSurface, - RECT* pRect); -void __RPC_STUB IDirectDrawStreamSample_GetSurface_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDirectDrawStreamSample_SetRect_Proxy( - IDirectDrawStreamSample* This, - const RECT* pRect); -void __RPC_STUB IDirectDrawStreamSample_SetRect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDirectDrawStreamSample_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_DDSTREAM_H */ diff --git a/include/dispex.h b/include/dispex.h deleted file mode 100644 index 3b46ba05d19..00000000000 --- a/include/dispex.h +++ /dev/null @@ -1,685 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from dispex.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_DISPEX_H -#define __WIDL_DISPEX_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#include -#include -#define fdexNameCaseSensitive 0x00000001L -#define fdexNameEnsure 0x00000002L -#define fdexNameImplicit 0x00000004L -#define fdexNameCaseInsensitive 0x00000008L -#define fdexNameInternal 0x00000010L -#define fdexNameNoDynamicProperties 0x00000020L -#define fdexPropCanGet 0x00000001L -#define fdexPropCannotGet 0x00000002L -#define fdexPropCanPut 0x00000004L -#define fdexPropCannotPut 0x00000008L -#define fdexPropCanPutRef 0x00000010L -#define fdexPropCannotPutRef 0x00000020L -#define fdexPropNoSideEffects 0x00000040L -#define fdexPropDynamicType 0x00000080L -#define fdexPropCanCall 0x00000100L -#define fdexPropCannotCall 0x00000200L -#define fdexPropCanConstruct 0x00000400L -#define fdexPropCannotConstruct 0x00000800L -#define fdexPropCanSourceEvents 0x00001000L -#define fdexPropCannotSourceEvents 0x00002000L -#define fdexEnumDefault 0x00000001L -#define fdexEnumAll 0x00000002L -#define grfdexPropCanAll \ - (fdexPropCanGet | fdexPropCanPut | fdexPropCanPutRef | \ - fdexPropCanCall | fdexPropCanConstruct | fdexPropCanSourceEvents) -#define grfdexPropCannotAll \ - (fdexPropCannotGet | fdexPropCannotPut | fdexPropCannotPutRef | \ - fdexPropCannotCall | fdexPropCannotConstruct | fdexPropCannotSourceEvents) -#define grfdexPropExtraAll \ - (fdexPropNoSideEffects | fdexPropDynamicType) -#define grfdexPropAll \ - (grfdexPropCanAll | grfdexPropCannotAll | grfdexPropExtraAll) -#define DISPATCH_CONSTRUCT 0x4000 -#define DISPID_THIS (-613) -#define DISPID_STARTENUM DISPID_UNKNOWN -#ifndef __IDispatchEx_FWD_DEFINED__ -#define __IDispatchEx_FWD_DEFINED__ -typedef struct IDispatchEx IDispatchEx; -#endif - -/***************************************************************************** - * IDispatchEx interface - */ -#ifndef __IDispatchEx_INTERFACE_DEFINED__ -#define __IDispatchEx_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDispatchEx, 0xa6ef9860, 0xc720, 0x11d0, 0x93,0x37, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDispatchEx : public IDispatch -{ - virtual HRESULT STDMETHODCALLTYPE GetDispID( - BSTR bstrName, - DWORD grfdex, - DISPID* pid) = 0; - - virtual HRESULT STDMETHODCALLTYPE InvokeEx( - DISPID id, - LCID lcid, - WORD wFlags, - DISPPARAMS* pdp, - VARIANT* pvarRes, - EXCEPINFO* pei, - IServiceProvider* pspCaller) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteMemberByName( - BSTR bstrName, - DWORD grfdex) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteMemberByDispID( - DISPID id) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMemberProperties( - DISPID id, - DWORD grfdexFetch, - DWORD* pgrfdex) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMemberName( - DISPID id, - BSTR* pbstrName) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNextDispID( - DWORD grfdex, - DISPID id, - DISPID* pid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNameSpaceParent( - IUnknown** ppunk) = 0; - -}; -#else -typedef struct IDispatchExVtbl IDispatchExVtbl; -struct IDispatchEx { - const IDispatchExVtbl* lpVtbl; -}; -struct IDispatchExVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDispatchEx* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDispatchEx* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDispatchEx* This); - - /*** IDispatch methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)( - IDispatchEx* This, - UINT* pctinfo); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - IDispatchEx* This, - UINT iTInfo, - LCID lcid, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)( - IDispatchEx* This, - REFIID riid, - LPOLESTR* rgszNames, - UINT cNames, - LCID lcid, - DISPID* rgDispId); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - IDispatchEx* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); - - /*** IDispatchEx methods ***/ - HRESULT (STDMETHODCALLTYPE *GetDispID)( - IDispatchEx* This, - BSTR bstrName, - DWORD grfdex, - DISPID* pid); - - HRESULT (STDMETHODCALLTYPE *InvokeEx)( - IDispatchEx* This, - DISPID id, - LCID lcid, - WORD wFlags, - DISPPARAMS* pdp, - VARIANT* pvarRes, - EXCEPINFO* pei, - IServiceProvider* pspCaller); - - HRESULT (STDMETHODCALLTYPE *DeleteMemberByName)( - IDispatchEx* This, - BSTR bstrName, - DWORD grfdex); - - HRESULT (STDMETHODCALLTYPE *DeleteMemberByDispID)( - IDispatchEx* This, - DISPID id); - - HRESULT (STDMETHODCALLTYPE *GetMemberProperties)( - IDispatchEx* This, - DISPID id, - DWORD grfdexFetch, - DWORD* pgrfdex); - - HRESULT (STDMETHODCALLTYPE *GetMemberName)( - IDispatchEx* This, - DISPID id, - BSTR* pbstrName); - - HRESULT (STDMETHODCALLTYPE *GetNextDispID)( - IDispatchEx* This, - DWORD grfdex, - DISPID id, - DISPID* pid); - - HRESULT (STDMETHODCALLTYPE *GetNameSpaceParent)( - IDispatchEx* This, - IUnknown** ppunk); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDispatchEx_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDispatchEx_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDispatchEx_Release(p) (p)->lpVtbl->Release(p) -/*** IDispatch methods ***/ -#define IDispatchEx_GetTypeInfoCount(p,a) (p)->lpVtbl->GetTypeInfoCount(p,a) -#define IDispatchEx_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c) -#define IDispatchEx_GetIDsOfNames(p,a,b,c,d,e) (p)->lpVtbl->GetIDsOfNames(p,a,b,c,d,e) -#define IDispatchEx_Invoke(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g,h) -/*** IDispatchEx methods ***/ -#define IDispatchEx_GetDispID(p,a,b,c) (p)->lpVtbl->GetDispID(p,a,b,c) -#define IDispatchEx_InvokeEx(p,a,b,c,d,e,f,g) (p)->lpVtbl->InvokeEx(p,a,b,c,d,e,f,g) -#define IDispatchEx_DeleteMemberByName(p,a,b) (p)->lpVtbl->DeleteMemberByName(p,a,b) -#define IDispatchEx_DeleteMemberByDispID(p,a) (p)->lpVtbl->DeleteMemberByDispID(p,a) -#define IDispatchEx_GetMemberProperties(p,a,b,c) (p)->lpVtbl->GetMemberProperties(p,a,b,c) -#define IDispatchEx_GetMemberName(p,a,b) (p)->lpVtbl->GetMemberName(p,a,b) -#define IDispatchEx_GetNextDispID(p,a,b,c) (p)->lpVtbl->GetNextDispID(p,a,b,c) -#define IDispatchEx_GetNameSpaceParent(p,a) (p)->lpVtbl->GetNameSpaceParent(p,a) -#endif - -#endif - -#define IDispatchEx_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDispatch methods ***/ \ - STDMETHOD_(HRESULT,GetTypeInfoCount)(THIS_ UINT* pctinfo) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,GetIDsOfNames)(THIS_ REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgDispId) PURE; \ - STDMETHOD_(HRESULT,Invoke)(THIS_ DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) PURE; \ - /*** IDispatchEx methods ***/ \ - STDMETHOD_(HRESULT,GetDispID)(THIS_ BSTR bstrName, DWORD grfdex, DISPID* pid) PURE; \ - STDMETHOD_(HRESULT,InvokeEx)(THIS_ DISPID id, LCID lcid, WORD wFlags, DISPPARAMS* pdp, VARIANT* pvarRes, EXCEPINFO* pei, IServiceProvider* pspCaller) PURE; \ - STDMETHOD_(HRESULT,DeleteMemberByName)(THIS_ BSTR bstrName, DWORD grfdex) PURE; \ - STDMETHOD_(HRESULT,DeleteMemberByDispID)(THIS_ DISPID id) PURE; \ - STDMETHOD_(HRESULT,GetMemberProperties)(THIS_ DISPID id, DWORD grfdexFetch, DWORD* pgrfdex) PURE; \ - STDMETHOD_(HRESULT,GetMemberName)(THIS_ DISPID id, BSTR* pbstrName) PURE; \ - STDMETHOD_(HRESULT,GetNextDispID)(THIS_ DWORD grfdex, DISPID id, DISPID* pid) PURE; \ - STDMETHOD_(HRESULT,GetNameSpaceParent)(THIS_ IUnknown** ppunk) PURE; - -HRESULT CALLBACK IDispatchEx_GetDispID_Proxy( - IDispatchEx* This, - BSTR bstrName, - DWORD grfdex, - DISPID* pid); -void __RPC_STUB IDispatchEx_GetDispID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatchEx_RemoteInvokeEx_Proxy( - IDispatchEx* This, - DISPID id, - LCID lcid, - DWORD dwFlags, - DISPPARAMS* pdp, - VARIANT* pvarRes, - EXCEPINFO* pei, - IServiceProvider* pspCaller, - UINT cvarRefArg, - UINT* rgiRefArg, - VARIANT* rgvarRefArg); -void __RPC_STUB IDispatchEx_RemoteInvokeEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatchEx_InvokeEx_Proxy( - IDispatchEx* This, - DISPID id, - LCID lcid, - WORD wFlags, - DISPPARAMS* pdp, - VARIANT* pvarRes, - EXCEPINFO* pei, - IServiceProvider* pspCaller); -HRESULT __RPC_STUB IDispatchEx_InvokeEx_Stub( - IDispatchEx* This, - DISPID id, - LCID lcid, - DWORD dwFlags, - DISPPARAMS* pdp, - VARIANT* pvarRes, - EXCEPINFO* pei, - IServiceProvider* pspCaller, - UINT cvarRefArg, - UINT* rgiRefArg, - VARIANT* rgvarRefArg); -HRESULT CALLBACK IDispatchEx_DeleteMemberByName_Proxy( - IDispatchEx* This, - BSTR bstrName, - DWORD grfdex); -void __RPC_STUB IDispatchEx_DeleteMemberByName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatchEx_DeleteMemberByDispID_Proxy( - IDispatchEx* This, - DISPID id); -void __RPC_STUB IDispatchEx_DeleteMemberByDispID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatchEx_GetMemberProperties_Proxy( - IDispatchEx* This, - DISPID id, - DWORD grfdexFetch, - DWORD* pgrfdex); -void __RPC_STUB IDispatchEx_GetMemberProperties_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatchEx_GetMemberName_Proxy( - IDispatchEx* This, - DISPID id, - BSTR* pbstrName); -void __RPC_STUB IDispatchEx_GetMemberName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatchEx_GetNextDispID_Proxy( - IDispatchEx* This, - DWORD grfdex, - DISPID id, - DISPID* pid); -void __RPC_STUB IDispatchEx_GetNextDispID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatchEx_GetNameSpaceParent_Proxy( - IDispatchEx* This, - IUnknown** ppunk); -void __RPC_STUB IDispatchEx_GetNameSpaceParent_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDispatchEx_INTERFACE_DEFINED__ */ - -#ifndef __IDispError_FWD_DEFINED__ -#define __IDispError_FWD_DEFINED__ -typedef struct IDispError IDispError; -#endif - -/***************************************************************************** - * IDispError interface - */ -#ifndef __IDispError_INTERFACE_DEFINED__ -#define __IDispError_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDispError, 0xa6ef9861, 0xc720, 0x11d0, 0x93,0x37, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDispError : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryErrorInfo( - GUID guidErrorType, - IDispError** ppde) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNext( - IDispError** ppde) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetHresult( - HRESULT* phr) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSource( - BSTR* pbstrSource) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetHelpInfo( - BSTR* pbstrFileName, - DWORD* pdwContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDescription( - BSTR* pbstrDescription) = 0; - -}; -#else -typedef struct IDispErrorVtbl IDispErrorVtbl; -struct IDispError { - const IDispErrorVtbl* lpVtbl; -}; -struct IDispErrorVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDispError* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDispError* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDispError* This); - - /*** IDispError methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryErrorInfo)( - IDispError* This, - GUID guidErrorType, - IDispError** ppde); - - HRESULT (STDMETHODCALLTYPE *GetNext)( - IDispError* This, - IDispError** ppde); - - HRESULT (STDMETHODCALLTYPE *GetHresult)( - IDispError* This, - HRESULT* phr); - - HRESULT (STDMETHODCALLTYPE *GetSource)( - IDispError* This, - BSTR* pbstrSource); - - HRESULT (STDMETHODCALLTYPE *GetHelpInfo)( - IDispError* This, - BSTR* pbstrFileName, - DWORD* pdwContext); - - HRESULT (STDMETHODCALLTYPE *GetDescription)( - IDispError* This, - BSTR* pbstrDescription); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDispError_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDispError_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDispError_Release(p) (p)->lpVtbl->Release(p) -/*** IDispError methods ***/ -#define IDispError_QueryErrorInfo(p,a,b) (p)->lpVtbl->QueryErrorInfo(p,a,b) -#define IDispError_GetNext(p,a) (p)->lpVtbl->GetNext(p,a) -#define IDispError_GetHresult(p,a) (p)->lpVtbl->GetHresult(p,a) -#define IDispError_GetSource(p,a) (p)->lpVtbl->GetSource(p,a) -#define IDispError_GetHelpInfo(p,a,b) (p)->lpVtbl->GetHelpInfo(p,a,b) -#define IDispError_GetDescription(p,a) (p)->lpVtbl->GetDescription(p,a) -#endif - -#endif - -#define IDispError_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDispError methods ***/ \ - STDMETHOD_(HRESULT,QueryErrorInfo)(THIS_ GUID guidErrorType, IDispError** ppde) PURE; \ - STDMETHOD_(HRESULT,GetNext)(THIS_ IDispError** ppde) PURE; \ - STDMETHOD_(HRESULT,GetHresult)(THIS_ HRESULT* phr) PURE; \ - STDMETHOD_(HRESULT,GetSource)(THIS_ BSTR* pbstrSource) PURE; \ - STDMETHOD_(HRESULT,GetHelpInfo)(THIS_ BSTR* pbstrFileName, DWORD* pdwContext) PURE; \ - STDMETHOD_(HRESULT,GetDescription)(THIS_ BSTR* pbstrDescription) PURE; - -HRESULT CALLBACK IDispError_QueryErrorInfo_Proxy( - IDispError* This, - GUID guidErrorType, - IDispError** ppde); -void __RPC_STUB IDispError_QueryErrorInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispError_GetNext_Proxy( - IDispError* This, - IDispError** ppde); -void __RPC_STUB IDispError_GetNext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispError_GetHresult_Proxy( - IDispError* This, - HRESULT* phr); -void __RPC_STUB IDispError_GetHresult_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispError_GetSource_Proxy( - IDispError* This, - BSTR* pbstrSource); -void __RPC_STUB IDispError_GetSource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispError_GetHelpInfo_Proxy( - IDispError* This, - BSTR* pbstrFileName, - DWORD* pdwContext); -void __RPC_STUB IDispError_GetHelpInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispError_GetDescription_Proxy( - IDispError* This, - BSTR* pbstrDescription); -void __RPC_STUB IDispError_GetDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDispError_INTERFACE_DEFINED__ */ - -#ifndef __IVariantChangeType_FWD_DEFINED__ -#define __IVariantChangeType_FWD_DEFINED__ -typedef struct IVariantChangeType IVariantChangeType; -#endif - -/***************************************************************************** - * IVariantChangeType interface - */ -#ifndef __IVariantChangeType_INTERFACE_DEFINED__ -#define __IVariantChangeType_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IVariantChangeType, 0xa6ef9862, 0xc720, 0x11d0, 0x93,0x37, 0x00,0xa0,0xc9,0x0d,0xca,0xa9); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IVariantChangeType : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE ChangeType( - VARIANT* pvarDst, - VARIANT* pvarSrc, - LCID lcid, - VARTYPE vtNew) = 0; - -}; -#else -typedef struct IVariantChangeTypeVtbl IVariantChangeTypeVtbl; -struct IVariantChangeType { - const IVariantChangeTypeVtbl* lpVtbl; -}; -struct IVariantChangeTypeVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IVariantChangeType* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IVariantChangeType* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IVariantChangeType* This); - - /*** IVariantChangeType methods ***/ - HRESULT (STDMETHODCALLTYPE *ChangeType)( - IVariantChangeType* This, - VARIANT* pvarDst, - VARIANT* pvarSrc, - LCID lcid, - VARTYPE vtNew); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IVariantChangeType_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IVariantChangeType_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IVariantChangeType_Release(p) (p)->lpVtbl->Release(p) -/*** IVariantChangeType methods ***/ -#define IVariantChangeType_ChangeType(p,a,b,c,d) (p)->lpVtbl->ChangeType(p,a,b,c,d) -#endif - -#endif - -#define IVariantChangeType_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IVariantChangeType methods ***/ \ - STDMETHOD_(HRESULT,ChangeType)(THIS_ VARIANT* pvarDst, VARIANT* pvarSrc, LCID lcid, VARTYPE vtNew) PURE; - -HRESULT CALLBACK IVariantChangeType_ChangeType_Proxy( - IVariantChangeType* This, - VARIANT* pvarDst, - VARIANT* pvarSrc, - LCID lcid, - VARTYPE vtNew); -void __RPC_STUB IVariantChangeType_ChangeType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IVariantChangeType_INTERFACE_DEFINED__ */ - -#ifndef __IObjectIdentity_FWD_DEFINED__ -#define __IObjectIdentity_FWD_DEFINED__ -typedef struct IObjectIdentity IObjectIdentity; -#endif - -/***************************************************************************** - * IObjectIdentity interface - */ -#ifndef __IObjectIdentity_INTERFACE_DEFINED__ -#define __IObjectIdentity_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IObjectIdentity, 0xca04b7e6, 0x0d21, 0x11d1, 0x8c,0xc5, 0x00,0xc0,0x4f,0xc2,0xb0,0x85); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IObjectIdentity : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE IsEqualObject( - IUnknown* punk) = 0; - -}; -#else -typedef struct IObjectIdentityVtbl IObjectIdentityVtbl; -struct IObjectIdentity { - const IObjectIdentityVtbl* lpVtbl; -}; -struct IObjectIdentityVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IObjectIdentity* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IObjectIdentity* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IObjectIdentity* This); - - /*** IObjectIdentity methods ***/ - HRESULT (STDMETHODCALLTYPE *IsEqualObject)( - IObjectIdentity* This, - IUnknown* punk); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IObjectIdentity_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IObjectIdentity_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IObjectIdentity_Release(p) (p)->lpVtbl->Release(p) -/*** IObjectIdentity methods ***/ -#define IObjectIdentity_IsEqualObject(p,a) (p)->lpVtbl->IsEqualObject(p,a) -#endif - -#endif - -#define IObjectIdentity_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IObjectIdentity methods ***/ \ - STDMETHOD_(HRESULT,IsEqualObject)(THIS_ IUnknown* punk) PURE; - -HRESULT CALLBACK IObjectIdentity_IsEqualObject_Proxy( - IObjectIdentity* This, - IUnknown* punk); -void __RPC_STUB IObjectIdentity_IsEqualObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IObjectIdentity_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_DISPEX_H */ diff --git a/include/docobj.h b/include/docobj.h deleted file mode 100644 index 8be54f56634..00000000000 --- a/include/docobj.h +++ /dev/null @@ -1,1174 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from docobj.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_DOCOBJ_H -#define __WIDL_DOCOBJ_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#include -#include -#include -#ifndef __IOleDocumentView_FWD_DEFINED__ -#define __IOleDocumentView_FWD_DEFINED__ -typedef struct IOleDocumentView IOleDocumentView; -#endif - -#ifndef __IEnumOleDocumentViews_FWD_DEFINED__ -#define __IEnumOleDocumentViews_FWD_DEFINED__ -typedef struct IEnumOleDocumentViews IEnumOleDocumentViews; -#endif - -#ifndef __IOleDocument_FWD_DEFINED__ -#define __IOleDocument_FWD_DEFINED__ -typedef struct IOleDocument IOleDocument; -#endif - -typedef IOleDocument *LPOLEDOCUMENT; - -typedef enum { - DOCMISC_CANCREATEMULTIPLEVIEWS = 1, - DOCMISC_SUPPORTCOMPLEXRECTANGLES = 2, - DOCMISC_CANTOPENEDIT = 4, - DOCMISC_NOFILESUPPORT = 8 -} DOCMISC; - -/***************************************************************************** - * IOleDocument interface - */ -#ifndef __IOleDocument_INTERFACE_DEFINED__ -#define __IOleDocument_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleDocument, 0xb722bcc5, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleDocument : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CreateView( - IOleInPlaceSite* pIPSite, - IStream* pstm, - DWORD dwReserved, - IOleDocumentView** ppView) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDocMiscStatus( - DWORD* pdwStatus) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumViews( - IEnumOleDocumentViews** ppEnum, - IOleDocumentView** ppView) = 0; - -}; -#else -typedef struct IOleDocumentVtbl IOleDocumentVtbl; -struct IOleDocument { - const IOleDocumentVtbl* lpVtbl; -}; -struct IOleDocumentVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleDocument* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleDocument* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleDocument* This); - - /*** IOleDocument methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateView)( - IOleDocument* This, - IOleInPlaceSite* pIPSite, - IStream* pstm, - DWORD dwReserved, - IOleDocumentView** ppView); - - HRESULT (STDMETHODCALLTYPE *GetDocMiscStatus)( - IOleDocument* This, - DWORD* pdwStatus); - - HRESULT (STDMETHODCALLTYPE *EnumViews)( - IOleDocument* This, - IEnumOleDocumentViews** ppEnum, - IOleDocumentView** ppView); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleDocument_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleDocument_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleDocument_Release(p) (p)->lpVtbl->Release(p) -/*** IOleDocument methods ***/ -#define IOleDocument_CreateView(p,a,b,c,d) (p)->lpVtbl->CreateView(p,a,b,c,d) -#define IOleDocument_GetDocMiscStatus(p,a) (p)->lpVtbl->GetDocMiscStatus(p,a) -#define IOleDocument_EnumViews(p,a,b) (p)->lpVtbl->EnumViews(p,a,b) -#endif - -#endif - -#define IOleDocument_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleDocument methods ***/ \ - STDMETHOD_(HRESULT,CreateView)(THIS_ IOleInPlaceSite* pIPSite, IStream* pstm, DWORD dwReserved, IOleDocumentView** ppView) PURE; \ - STDMETHOD_(HRESULT,GetDocMiscStatus)(THIS_ DWORD* pdwStatus) PURE; \ - STDMETHOD_(HRESULT,EnumViews)(THIS_ IEnumOleDocumentViews** ppEnum, IOleDocumentView** ppView) PURE; - -HRESULT CALLBACK IOleDocument_CreateView_Proxy( - IOleDocument* This, - IOleInPlaceSite* pIPSite, - IStream* pstm, - DWORD dwReserved, - IOleDocumentView** ppView); -void __RPC_STUB IOleDocument_CreateView_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocument_GetDocMiscStatus_Proxy( - IOleDocument* This, - DWORD* pdwStatus); -void __RPC_STUB IOleDocument_GetDocMiscStatus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocument_EnumViews_Proxy( - IOleDocument* This, - IEnumOleDocumentViews** ppEnum, - IOleDocumentView** ppView); -void __RPC_STUB IOleDocument_EnumViews_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleDocument_INTERFACE_DEFINED__ */ - -#ifndef __IOleDocumentSite_FWD_DEFINED__ -#define __IOleDocumentSite_FWD_DEFINED__ -typedef struct IOleDocumentSite IOleDocumentSite; -#endif - -typedef IOleDocumentSite *LPOLEDOCUMENTSITE; - -/***************************************************************************** - * IOleDocumentSite interface - */ -#ifndef __IOleDocumentSite_INTERFACE_DEFINED__ -#define __IOleDocumentSite_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleDocumentSite, 0xb722bcc7, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleDocumentSite : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE ActivateMe( - IOleDocumentView* pViewToActivate) = 0; - -}; -#else -typedef struct IOleDocumentSiteVtbl IOleDocumentSiteVtbl; -struct IOleDocumentSite { - const IOleDocumentSiteVtbl* lpVtbl; -}; -struct IOleDocumentSiteVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleDocumentSite* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleDocumentSite* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleDocumentSite* This); - - /*** IOleDocumentSite methods ***/ - HRESULT (STDMETHODCALLTYPE *ActivateMe)( - IOleDocumentSite* This, - IOleDocumentView* pViewToActivate); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleDocumentSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleDocumentSite_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleDocumentSite_Release(p) (p)->lpVtbl->Release(p) -/*** IOleDocumentSite methods ***/ -#define IOleDocumentSite_ActivateMe(p,a) (p)->lpVtbl->ActivateMe(p,a) -#endif - -#endif - -#define IOleDocumentSite_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleDocumentSite methods ***/ \ - STDMETHOD_(HRESULT,ActivateMe)(THIS_ IOleDocumentView* pViewToActivate) PURE; - -HRESULT CALLBACK IOleDocumentSite_ActivateMe_Proxy( - IOleDocumentSite* This, - IOleDocumentView* pViewToActivate); -void __RPC_STUB IOleDocumentSite_ActivateMe_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleDocumentSite_INTERFACE_DEFINED__ */ - -typedef IOleDocumentView *LPOLEDOCUMENTVIEW; - -/***************************************************************************** - * IOleDocumentView interface - */ -#ifndef __IOleDocumentView_INTERFACE_DEFINED__ -#define __IOleDocumentView_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleDocumentView, 0xb722bcc6, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleDocumentView : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetInPlaceSite( - IOleInPlaceSite* pIPSite) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInPlaceSite( - IOleInPlaceSite** ppIPSite) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDocument( - IUnknown** ppunk) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRect( - LPRECT prcView) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRect( - LPRECT prcView) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRectComplex( - LPRECT prcView, - LPRECT prcHScroll, - LPRECT prcVScroll, - LPRECT prcSizeBox) = 0; - - virtual HRESULT STDMETHODCALLTYPE Show( - BOOL fShow) = 0; - - virtual HRESULT STDMETHODCALLTYPE UIActivate( - BOOL fUIActivate) = 0; - - virtual HRESULT STDMETHODCALLTYPE Open( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE CloseView( - DWORD dwReserved) = 0; - - virtual HRESULT STDMETHODCALLTYPE SaveViewState( - LPSTREAM pstm) = 0; - - virtual HRESULT STDMETHODCALLTYPE ApplyViewState( - LPSTREAM pstm) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IOleInPlaceSite* pIPSiteNew, - IOleDocumentView** ppViewNew) = 0; - -}; -#else -typedef struct IOleDocumentViewVtbl IOleDocumentViewVtbl; -struct IOleDocumentView { - const IOleDocumentViewVtbl* lpVtbl; -}; -struct IOleDocumentViewVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleDocumentView* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleDocumentView* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleDocumentView* This); - - /*** IOleDocumentView methods ***/ - HRESULT (STDMETHODCALLTYPE *SetInPlaceSite)( - IOleDocumentView* This, - IOleInPlaceSite* pIPSite); - - HRESULT (STDMETHODCALLTYPE *GetInPlaceSite)( - IOleDocumentView* This, - IOleInPlaceSite** ppIPSite); - - HRESULT (STDMETHODCALLTYPE *GetDocument)( - IOleDocumentView* This, - IUnknown** ppunk); - - HRESULT (STDMETHODCALLTYPE *SetRect)( - IOleDocumentView* This, - LPRECT prcView); - - HRESULT (STDMETHODCALLTYPE *GetRect)( - IOleDocumentView* This, - LPRECT prcView); - - HRESULT (STDMETHODCALLTYPE *SetRectComplex)( - IOleDocumentView* This, - LPRECT prcView, - LPRECT prcHScroll, - LPRECT prcVScroll, - LPRECT prcSizeBox); - - HRESULT (STDMETHODCALLTYPE *Show)( - IOleDocumentView* This, - BOOL fShow); - - HRESULT (STDMETHODCALLTYPE *UIActivate)( - IOleDocumentView* This, - BOOL fUIActivate); - - HRESULT (STDMETHODCALLTYPE *Open)( - IOleDocumentView* This); - - HRESULT (STDMETHODCALLTYPE *CloseView)( - IOleDocumentView* This, - DWORD dwReserved); - - HRESULT (STDMETHODCALLTYPE *SaveViewState)( - IOleDocumentView* This, - LPSTREAM pstm); - - HRESULT (STDMETHODCALLTYPE *ApplyViewState)( - IOleDocumentView* This, - LPSTREAM pstm); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IOleDocumentView* This, - IOleInPlaceSite* pIPSiteNew, - IOleDocumentView** ppViewNew); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleDocumentView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleDocumentView_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleDocumentView_Release(p) (p)->lpVtbl->Release(p) -/*** IOleDocumentView methods ***/ -#define IOleDocumentView_SetInPlaceSite(p,a) (p)->lpVtbl->SetInPlaceSite(p,a) -#define IOleDocumentView_GetInPlaceSite(p,a) (p)->lpVtbl->GetInPlaceSite(p,a) -#define IOleDocumentView_GetDocument(p,a) (p)->lpVtbl->GetDocument(p,a) -#define IOleDocumentView_SetRect(p,a) (p)->lpVtbl->SetRect(p,a) -#define IOleDocumentView_GetRect(p,a) (p)->lpVtbl->GetRect(p,a) -#define IOleDocumentView_SetRectComplex(p,a,b,c,d) (p)->lpVtbl->SetRectComplex(p,a,b,c,d) -#define IOleDocumentView_Show(p,a) (p)->lpVtbl->Show(p,a) -#define IOleDocumentView_UIActivate(p,a) (p)->lpVtbl->UIActivate(p,a) -#define IOleDocumentView_Open(p) (p)->lpVtbl->Open(p) -#define IOleDocumentView_CloseView(p,a) (p)->lpVtbl->CloseView(p,a) -#define IOleDocumentView_SaveViewState(p,a) (p)->lpVtbl->SaveViewState(p,a) -#define IOleDocumentView_ApplyViewState(p,a) (p)->lpVtbl->ApplyViewState(p,a) -#define IOleDocumentView_Clone(p,a,b) (p)->lpVtbl->Clone(p,a,b) -#endif - -#endif - -#define IOleDocumentView_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleDocumentView methods ***/ \ - STDMETHOD_(HRESULT,SetInPlaceSite)(THIS_ IOleInPlaceSite* pIPSite) PURE; \ - STDMETHOD_(HRESULT,GetInPlaceSite)(THIS_ IOleInPlaceSite** ppIPSite) PURE; \ - STDMETHOD_(HRESULT,GetDocument)(THIS_ IUnknown** ppunk) PURE; \ - STDMETHOD_(HRESULT,SetRect)(THIS_ LPRECT prcView) PURE; \ - STDMETHOD_(HRESULT,GetRect)(THIS_ LPRECT prcView) PURE; \ - STDMETHOD_(HRESULT,SetRectComplex)(THIS_ LPRECT prcView, LPRECT prcHScroll, LPRECT prcVScroll, LPRECT prcSizeBox) PURE; \ - STDMETHOD_(HRESULT,Show)(THIS_ BOOL fShow) PURE; \ - STDMETHOD_(HRESULT,UIActivate)(THIS_ BOOL fUIActivate) PURE; \ - STDMETHOD_(HRESULT,Open)(THIS) PURE; \ - STDMETHOD_(HRESULT,CloseView)(THIS_ DWORD dwReserved) PURE; \ - STDMETHOD_(HRESULT,SaveViewState)(THIS_ LPSTREAM pstm) PURE; \ - STDMETHOD_(HRESULT,ApplyViewState)(THIS_ LPSTREAM pstm) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IOleInPlaceSite* pIPSiteNew, IOleDocumentView** ppViewNew) PURE; - -HRESULT CALLBACK IOleDocumentView_SetInPlaceSite_Proxy( - IOleDocumentView* This, - IOleInPlaceSite* pIPSite); -void __RPC_STUB IOleDocumentView_SetInPlaceSite_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_GetInPlaceSite_Proxy( - IOleDocumentView* This, - IOleInPlaceSite** ppIPSite); -void __RPC_STUB IOleDocumentView_GetInPlaceSite_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_GetDocument_Proxy( - IOleDocumentView* This, - IUnknown** ppunk); -void __RPC_STUB IOleDocumentView_GetDocument_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_SetRect_Proxy( - IOleDocumentView* This, - LPRECT prcView); -void __RPC_STUB IOleDocumentView_SetRect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_GetRect_Proxy( - IOleDocumentView* This, - LPRECT prcView); -void __RPC_STUB IOleDocumentView_GetRect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_SetRectComplex_Proxy( - IOleDocumentView* This, - LPRECT prcView, - LPRECT prcHScroll, - LPRECT prcVScroll, - LPRECT prcSizeBox); -void __RPC_STUB IOleDocumentView_SetRectComplex_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_Show_Proxy( - IOleDocumentView* This, - BOOL fShow); -void __RPC_STUB IOleDocumentView_Show_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_UIActivate_Proxy( - IOleDocumentView* This, - BOOL fUIActivate); -void __RPC_STUB IOleDocumentView_UIActivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_Open_Proxy( - IOleDocumentView* This); -void __RPC_STUB IOleDocumentView_Open_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_CloseView_Proxy( - IOleDocumentView* This, - DWORD dwReserved); -void __RPC_STUB IOleDocumentView_CloseView_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_SaveViewState_Proxy( - IOleDocumentView* This, - LPSTREAM pstm); -void __RPC_STUB IOleDocumentView_SaveViewState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_ApplyViewState_Proxy( - IOleDocumentView* This, - LPSTREAM pstm); -void __RPC_STUB IOleDocumentView_ApplyViewState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleDocumentView_Clone_Proxy( - IOleDocumentView* This, - IOleInPlaceSite* pIPSiteNew, - IOleDocumentView** ppViewNew); -void __RPC_STUB IOleDocumentView_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleDocumentView_INTERFACE_DEFINED__ */ - -typedef IEnumOleDocumentViews *LPENUMOLEDOCUMENTVIEWS; - -/***************************************************************************** - * IEnumOleDocumentViews interface - */ -#ifndef __IEnumOleDocumentViews_INTERFACE_DEFINED__ -#define __IEnumOleDocumentViews_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumOleDocumentViews, 0xb722bcc8, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumOleDocumentViews : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG cViews, - IOleDocumentView** rgpView, - ULONG* pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG cViews) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumOleDocumentViews** ppEnum) = 0; - -}; -#else -typedef struct IEnumOleDocumentViewsVtbl IEnumOleDocumentViewsVtbl; -struct IEnumOleDocumentViews { - const IEnumOleDocumentViewsVtbl* lpVtbl; -}; -struct IEnumOleDocumentViewsVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumOleDocumentViews* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumOleDocumentViews* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumOleDocumentViews* This); - - /*** IEnumOleDocumentViews methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumOleDocumentViews* This, - ULONG cViews, - IOleDocumentView** rgpView, - ULONG* pcFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumOleDocumentViews* This, - ULONG cViews); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumOleDocumentViews* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumOleDocumentViews* This, - IEnumOleDocumentViews** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumOleDocumentViews_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumOleDocumentViews_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumOleDocumentViews_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumOleDocumentViews methods ***/ -#define IEnumOleDocumentViews_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumOleDocumentViews_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumOleDocumentViews_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumOleDocumentViews_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumOleDocumentViews_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumOleDocumentViews methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG cViews, IOleDocumentView** rgpView, ULONG* pcFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cViews) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumOleDocumentViews** ppEnum) PURE; - -HRESULT CALLBACK IEnumOleDocumentViews_RemoteNext_Proxy( - IEnumOleDocumentViews* This, - ULONG cViews, - IOleDocumentView** rgpView, - ULONG* pcFetched); -void __RPC_STUB IEnumOleDocumentViews_RemoteNext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumOleDocumentViews_Next_Proxy( - IEnumOleDocumentViews* This, - ULONG cViews, - IOleDocumentView** rgpView, - ULONG* pcFetched); -HRESULT __RPC_STUB IEnumOleDocumentViews_Next_Stub( - IEnumOleDocumentViews* This, - ULONG cViews, - IOleDocumentView** rgpView, - ULONG* pcFetched); -HRESULT CALLBACK IEnumOleDocumentViews_Skip_Proxy( - IEnumOleDocumentViews* This, - ULONG cViews); -void __RPC_STUB IEnumOleDocumentViews_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumOleDocumentViews_Reset_Proxy( - IEnumOleDocumentViews* This); -void __RPC_STUB IEnumOleDocumentViews_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumOleDocumentViews_Clone_Proxy( - IEnumOleDocumentViews* This, - IEnumOleDocumentViews** ppEnum); -void __RPC_STUB IEnumOleDocumentViews_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumOleDocumentViews_INTERFACE_DEFINED__ */ - -#ifndef __IOleCommandTarget_FWD_DEFINED__ -#define __IOleCommandTarget_FWD_DEFINED__ -typedef struct IOleCommandTarget IOleCommandTarget; -#endif - -typedef IOleCommandTarget *LPOLECOMMANDTARGET; - -typedef enum { - OLECMDF_SUPPORTED = 0x1, - OLECMDF_ENABLED = 0x2, - OLECMDF_LATCHED = 0x4, - OLECMDF_NINCHED = 0x8, - OLECMDF_INVISIBLE = 0x10, - OLECMDF_DEFHIDEONCTXTMENU = 0x20 -} OLECMDF; - -typedef struct _tagOLECMD { - ULONG cmdID; - DWORD cmdf; -} OLECMD; - -typedef struct _tagOLECMDTEXT { - DWORD cmdtextf; - ULONG cwActual; - ULONG cwBuf; - WCHAR rgwz[1]; -} OLECMDTEXT; - -typedef enum { - OLECMDTEXTF_NONE = 0, - OLECMDTEXTF_NAME = 1, - OLECMDTEXTF_STATUS = 2 -} OLECMDTEXTF; - -typedef enum { - OLECMDEXECOPT_DODEFAULT = 0, - OLECMDEXECOPT_PROMPTUSER = 1, - OLECMDEXECOPT_DONTPROMPTUSER = 2, - OLECMDEXECOPT_SHOWHELP = 3 -} OLECMDEXECOPT; - -typedef enum OLECMDID { - OLECMDID_OPEN = 1, - OLECMDID_NEW = 2, - OLECMDID_SAVE = 3, - OLECMDID_SAVEAS = 4, - OLECMDID_SAVECOPYAS = 5, - OLECMDID_PRINT = 6, - OLECMDID_PRINTPREVIEW = 7, - OLECMDID_PAGESETUP = 8, - OLECMDID_SPELL = 9, - OLECMDID_PROPERTIES = 10, - OLECMDID_CUT = 11, - OLECMDID_COPY = 12, - OLECMDID_PASTE = 13, - OLECMDID_PASTESPECIAL = 14, - OLECMDID_UNDO = 15, - OLECMDID_REDO = 16, - OLECMDID_SELECTALL = 17, - OLECMDID_CLEARSELECTION = 18, - OLECMDID_ZOOM = 19, - OLECMDID_GETZOOMRANGE = 20, - OLECMDID_UPDATECOMMANDS = 21, - OLECMDID_REFRESH = 22, - OLECMDID_STOP = 23, - OLECMDID_HIDETOOLBARS = 24, - OLECMDID_SETPROGRESSMAX = 25, - OLECMDID_SETPROGRESSPOS = 26, - OLECMDID_SETPROGRESSTEXT = 27, - OLECMDID_SETTITLE = 28, - OLECMDID_SETDOWNLOADSTATE = 29, - OLECMDID_STOPDOWNLOAD = 30, - OLECMDID_ONTOOLBARACTIVATED = 31, - OLECMDID_FIND = 32, - OLECMDID_DELETE = 33, - OLECMDID_HTTPEQUIV = 34, - OLECMDID_HTTPEQUIV_DONE = 35, - OLECMDID_ENABLE_INTERACTION = 36, - OLECMDID_ONUNLOAD = 37, - OLECMDID_PROPERTYBAG2 = 38, - OLECMDID_PREREFRESH = 39, - OLECMDID_SHOWSCRIPTERROR = 40, - OLECMDID_SHOWMESSAGE = 41, - OLECMDID_SHOWFIND = 42, - OLECMDID_SHOWPAGESETUP = 43, - OLECMDID_SHOWPRINT = 44, - OLECMDID_CLOSE = 45, - OLECMDID_ALLOWUILESSSAVEAS = 46, - OLECMDID_DONTDOWNLOADCSS = 47, - OLECMDID_UPDATEPAGESTATUS = 48, - OLECMDID_PRINT2 = 49, - OLECMDID_PRINTPREVIEW2 = 50, - OLECMDID_SETPRINTTEMPLATE = 51, - OLECMDID_GETPRINTTEMPLATE = 52 -} OLECMDID; - -/***************************************************************************** - * IOleCommandTarget interface - */ -#ifndef __IOleCommandTarget_INTERFACE_DEFINED__ -#define __IOleCommandTarget_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleCommandTarget, 0xb722bccb, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleCommandTarget : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryStatus( - const GUID* pguidCmdGroup, - ULONG cCmds, - OLECMD prgCmds[], - OLECMDTEXT* pCmdText) = 0; - - virtual HRESULT STDMETHODCALLTYPE Exec( - const GUID* pguidCmdGroup, - DWORD nCmdID, - DWORD nCmdexecopt, - VARIANT* pvaIn, - VARIANT* pvaOut) = 0; - -}; -#else -typedef struct IOleCommandTargetVtbl IOleCommandTargetVtbl; -struct IOleCommandTarget { - const IOleCommandTargetVtbl* lpVtbl; -}; -struct IOleCommandTargetVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleCommandTarget* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleCommandTarget* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleCommandTarget* This); - - /*** IOleCommandTarget methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryStatus)( - IOleCommandTarget* This, - const GUID* pguidCmdGroup, - ULONG cCmds, - OLECMD prgCmds[], - OLECMDTEXT* pCmdText); - - HRESULT (STDMETHODCALLTYPE *Exec)( - IOleCommandTarget* This, - const GUID* pguidCmdGroup, - DWORD nCmdID, - DWORD nCmdexecopt, - VARIANT* pvaIn, - VARIANT* pvaOut); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleCommandTarget_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleCommandTarget_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleCommandTarget_Release(p) (p)->lpVtbl->Release(p) -/*** IOleCommandTarget methods ***/ -#define IOleCommandTarget_QueryStatus(p,a,b,c,d) (p)->lpVtbl->QueryStatus(p,a,b,c,d) -#define IOleCommandTarget_Exec(p,a,b,c,d,e) (p)->lpVtbl->Exec(p,a,b,c,d,e) -#endif - -#endif - -#define IOleCommandTarget_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleCommandTarget methods ***/ \ - STDMETHOD_(HRESULT,QueryStatus)(THIS_ const GUID* pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT* pCmdText) PURE; \ - STDMETHOD_(HRESULT,Exec)(THIS_ const GUID* pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT* pvaIn, VARIANT* pvaOut) PURE; - -HRESULT CALLBACK IOleCommandTarget_QueryStatus_Proxy( - IOleCommandTarget* This, - const GUID* pguidCmdGroup, - ULONG cCmds, - OLECMD prgCmds[], - OLECMDTEXT* pCmdText); -void __RPC_STUB IOleCommandTarget_QueryStatus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleCommandTarget_Exec_Proxy( - IOleCommandTarget* This, - const GUID* pguidCmdGroup, - DWORD nCmdID, - DWORD nCmdexecopt, - VARIANT* pvaIn, - VARIANT* pvaOut); -void __RPC_STUB IOleCommandTarget_Exec_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleCommandTarget_INTERFACE_DEFINED__ */ - -#ifndef __IContinueCallback_FWD_DEFINED__ -#define __IContinueCallback_FWD_DEFINED__ -typedef struct IContinueCallback IContinueCallback; -#endif - -typedef IContinueCallback *LPCONTINUECALLBACK; - -/***************************************************************************** - * IContinueCallback interface - */ -#ifndef __IContinueCallback_INTERFACE_DEFINED__ -#define __IContinueCallback_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IContinueCallback, 0xb722bcca, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IContinueCallback : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE FContinue( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE FContinuePrinting( - LONG nCntPrinted, - LONG nCurPage, - WCHAR* pwszPrintStatus) = 0; - -}; -#else -typedef struct IContinueCallbackVtbl IContinueCallbackVtbl; -struct IContinueCallback { - const IContinueCallbackVtbl* lpVtbl; -}; -struct IContinueCallbackVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IContinueCallback* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IContinueCallback* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IContinueCallback* This); - - /*** IContinueCallback methods ***/ - HRESULT (STDMETHODCALLTYPE *FContinue)( - IContinueCallback* This); - - HRESULT (STDMETHODCALLTYPE *FContinuePrinting)( - IContinueCallback* This, - LONG nCntPrinted, - LONG nCurPage, - WCHAR* pwszPrintStatus); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IContinueCallback_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IContinueCallback_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IContinueCallback_Release(p) (p)->lpVtbl->Release(p) -/*** IContinueCallback methods ***/ -#define IContinueCallback_FContinue(p) (p)->lpVtbl->FContinue(p) -#define IContinueCallback_FContinuePrinting(p,a,b,c) (p)->lpVtbl->FContinuePrinting(p,a,b,c) -#endif - -#endif - -#define IContinueCallback_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IContinueCallback methods ***/ \ - STDMETHOD_(HRESULT,FContinue)(THIS) PURE; \ - STDMETHOD_(HRESULT,FContinuePrinting)(THIS_ LONG nCntPrinted, LONG nCurPage, WCHAR* pwszPrintStatus) PURE; - -HRESULT CALLBACK IContinueCallback_FContinue_Proxy( - IContinueCallback* This); -void __RPC_STUB IContinueCallback_FContinue_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IContinueCallback_FContinuePrinting_Proxy( - IContinueCallback* This, - LONG nCntPrinted, - LONG nCurPage, - WCHAR* pwszPrintStatus); -void __RPC_STUB IContinueCallback_FContinuePrinting_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IContinueCallback_INTERFACE_DEFINED__ */ - -#ifndef __IPrint_FWD_DEFINED__ -#define __IPrint_FWD_DEFINED__ -typedef struct IPrint IPrint; -#endif - -typedef IPrint *LPPRINT; - -typedef enum { - PRINTFLAG_MAYBOTHERUSER = 1, - PRINTFLAG_PROMPTUSER = 2, - PRINTFLAG_USERMAYCHANGEPRINTER = 4, - PRINTFLAG_RECOMPOSETODEVICE = 8, - PRINTFLAG_DONTACTUALLYPRINT = 16, - PRINTFLAG_FORCEPROPERTIES = 32, - PRINTFLAG_PRINTTOFILE = 64 -} PRINTFLAG; - -typedef struct tagPAGERANGE { - LONG nFromPage; - LONG nToPage; -} PAGERANGE; - -typedef struct tagPAGESET { - ULONG cbStruct; - BOOL fOddPages; - BOOL fEvenPages; - ULONG cPageRange; - PAGERANGE rgPages[1]; -} PAGESET; - -/***************************************************************************** - * IPrint interface - */ -#ifndef __IPrint_INTERFACE_DEFINED__ -#define __IPrint_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPrint, 0xb722bcc9, 0x4e68, 0x101b, 0xa2,0xbc, 0x00,0xaa,0x00,0x40,0x47,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPrint : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetInitialPageNum( - LONG nFirstPage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPageInfo( - LONG* pnFirstPage, - LONG* pcPages) = 0; - - virtual HRESULT STDMETHODCALLTYPE Print( - DWORD grfFlags, - DVTARGETDEVICE** pptd, - PAGESET** ppPageSet, - STGMEDIUM* pstgmOptions, - IContinueCallback* pcallback, - LONG nFirstPage, - LONG* pcPagesPrinted, - LONG* pnLastPage) = 0; - -}; -#else -typedef struct IPrintVtbl IPrintVtbl; -struct IPrint { - const IPrintVtbl* lpVtbl; -}; -struct IPrintVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPrint* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPrint* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPrint* This); - - /*** IPrint methods ***/ - HRESULT (STDMETHODCALLTYPE *SetInitialPageNum)( - IPrint* This, - LONG nFirstPage); - - HRESULT (STDMETHODCALLTYPE *GetPageInfo)( - IPrint* This, - LONG* pnFirstPage, - LONG* pcPages); - - HRESULT (STDMETHODCALLTYPE *Print)( - IPrint* This, - DWORD grfFlags, - DVTARGETDEVICE** pptd, - PAGESET** ppPageSet, - STGMEDIUM* pstgmOptions, - IContinueCallback* pcallback, - LONG nFirstPage, - LONG* pcPagesPrinted, - LONG* pnLastPage); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPrint_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPrint_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPrint_Release(p) (p)->lpVtbl->Release(p) -/*** IPrint methods ***/ -#define IPrint_SetInitialPageNum(p,a) (p)->lpVtbl->SetInitialPageNum(p,a) -#define IPrint_GetPageInfo(p,a,b) (p)->lpVtbl->GetPageInfo(p,a,b) -#define IPrint_Print(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Print(p,a,b,c,d,e,f,g,h) -#endif - -#endif - -#define IPrint_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPrint methods ***/ \ - STDMETHOD_(HRESULT,SetInitialPageNum)(THIS_ LONG nFirstPage) PURE; \ - STDMETHOD_(HRESULT,GetPageInfo)(THIS_ LONG* pnFirstPage, LONG* pcPages) PURE; \ - STDMETHOD_(HRESULT,Print)(THIS_ DWORD grfFlags, DVTARGETDEVICE** pptd, PAGESET** ppPageSet, STGMEDIUM* pstgmOptions, IContinueCallback* pcallback, LONG nFirstPage, LONG* pcPagesPrinted, LONG* pnLastPage) PURE; - -HRESULT CALLBACK IPrint_SetInitialPageNum_Proxy( - IPrint* This, - LONG nFirstPage); -void __RPC_STUB IPrint_SetInitialPageNum_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPrint_GetPageInfo_Proxy( - IPrint* This, - LONG* pnFirstPage, - LONG* pcPages); -void __RPC_STUB IPrint_GetPageInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPrint_RemotePrint_Proxy( - IPrint* This, - DWORD grfFlags, - DVTARGETDEVICE** pptd, - PAGESET** pppageset, - RemSTGMEDIUM* pstgmOptions, - IContinueCallback* pcallback, - LONG nFirstPage, - LONG* pcPagesPrinted, - LONG* pnLastPage); -void __RPC_STUB IPrint_RemotePrint_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPrint_Print_Proxy( - IPrint* This, - DWORD grfFlags, - DVTARGETDEVICE** pptd, - PAGESET** ppPageSet, - STGMEDIUM* pstgmOptions, - IContinueCallback* pcallback, - LONG nFirstPage, - LONG* pcPagesPrinted, - LONG* pnLastPage); -HRESULT __RPC_STUB IPrint_Print_Stub( - IPrint* This, - DWORD grfFlags, - DVTARGETDEVICE** pptd, - PAGESET** pppageset, - RemSTGMEDIUM* pstgmOptions, - IContinueCallback* pcallback, - LONG nFirstPage, - LONG* pcPagesPrinted, - LONG* pnLastPage); - -#endif /* __IPrint_INTERFACE_DEFINED__ */ - -#define OLECMDERR_E_FIRST (OLE_E_LAST+1) -#define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST) -#define OLECMDERR_E_DISABLED (OLECMDERR_E_FIRST+1) -#define OLECMDERR_E_NOHELP (OLECMDERR_E_FIRST+2) -#define OLECMDERR_E_CANCELED (OLECMDERR_E_FIRST+3) -#define OLECMDERR_E_UNKNOWNGROUP (OLECMDERR_E_FIRST+4) -#define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST -#define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED -#define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED -#define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP -#define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED -#define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP -#define LPMSODOCUMENT LPOLEDOCUMENT -#define LPMSODOCUMENTSITE LPOLEDOCUMENTSITE -#define LPMSOVIEW LPOLEDOCUMENTVIEW -#define LPENUMMSOVIEW LPENUMOLEDOCUMENTVIEWS -#define LPMSOCOMMANDTARGET LPOLECOMMANDTARGET -#define IID_IMsoDocument IID_IOleDocument -#define IID_IMsoDocumentSite IID_IOleDocumentSite -#define IID_IMsoView IID_IOleDocumentView -#define IID_IEnumMsoView IID_IEnumOleDocumentViews -#define IID_IMsoCommandTarget IID_IOleCommandTarget -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_DOCOBJ_H */ diff --git a/include/exdisp.h b/include/exdisp.h deleted file mode 100644 index 903727316c1..00000000000 --- a/include/exdisp.h +++ /dev/null @@ -1,1491 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from exdisp.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_EXDISP_H -#define __WIDL_EXDISP_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#ifndef __IWebBrowser_FWD_DEFINED__ -#define __IWebBrowser_FWD_DEFINED__ -typedef struct IWebBrowser IWebBrowser; -#endif - -typedef enum BrowserNavConstants { - navOpenInNewWindow = 0x1, - navNoHistory = 0x2, - navNoReadFromCache = 0x4, - navNoWriteToCache = 0x8, - navAllowAutosearch = 0x10, - navBrowserBar = 0x20, - navHyperlink = 0x40, - navEnforceRestricted = 0x80 -} BrowserNavConstants; - -typedef enum RefreshConstants { - REFRESH_NORMAL = 0, - REFRESH_IFEXPIRED = 1, - REFRESH_COMPLETELY = 3 -} RefreshConstants; - -/***************************************************************************** - * IWebBrowser interface - */ -#ifndef __IWebBrowser_INTERFACE_DEFINED__ -#define __IWebBrowser_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IWebBrowser, 0xeab22ac1, 0x30c1, 0x11cf, 0xa7,0xeb, 0x00,0x00,0xc0,0x5b,0xae,0x0b); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IWebBrowser : public IDispatch -{ - virtual HRESULT STDMETHODCALLTYPE GoBack( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GoForward( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GoHome( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GoSearch( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Navigate( - BSTR URL, - VARIANT* Flags, - VARIANT* TargetFrameName, - VARIANT* PostData, - VARIANT* Headers) = 0; - - virtual HRESULT STDMETHODCALLTYPE Refresh( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Refresh2( - VARIANT* Level) = 0; - - virtual HRESULT STDMETHODCALLTYPE Stop( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Application( - IDispatch** ppDisp) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Parent( - IDispatch** ppDisp) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Container( - IDispatch** ppDisp) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Document( - IDispatch** ppDisp) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_TopLevelContainer( - VARIANT_BOOL* pBool) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Type( - BSTR* Type) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Left( - long* pl) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Left( - long Left) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Top( - long* pl) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Top( - long Top) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Width( - long* pl) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Width( - long Width) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Height( - long* pl) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Height( - long Height) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_LocationName( - BSTR* LocationName) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_LocationURL( - BSTR* LocationURL) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Busy( - VARIANT_BOOL* pBool) = 0; - -}; -#else -typedef struct IWebBrowserVtbl IWebBrowserVtbl; -struct IWebBrowser { - const IWebBrowserVtbl* lpVtbl; -}; -struct IWebBrowserVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IWebBrowser* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IWebBrowser* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IWebBrowser* This); - - /*** IDispatch methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)( - IWebBrowser* This, - UINT* pctinfo); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - IWebBrowser* This, - UINT iTInfo, - LCID lcid, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)( - IWebBrowser* This, - REFIID riid, - LPOLESTR* rgszNames, - UINT cNames, - LCID lcid, - DISPID* rgDispId); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - IWebBrowser* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); - - /*** IWebBrowser methods ***/ - HRESULT (STDMETHODCALLTYPE *GoBack)( - IWebBrowser* This); - - HRESULT (STDMETHODCALLTYPE *GoForward)( - IWebBrowser* This); - - HRESULT (STDMETHODCALLTYPE *GoHome)( - IWebBrowser* This); - - HRESULT (STDMETHODCALLTYPE *GoSearch)( - IWebBrowser* This); - - HRESULT (STDMETHODCALLTYPE *Navigate)( - IWebBrowser* This, - BSTR URL, - VARIANT* Flags, - VARIANT* TargetFrameName, - VARIANT* PostData, - VARIANT* Headers); - - HRESULT (STDMETHODCALLTYPE *Refresh)( - IWebBrowser* This); - - HRESULT (STDMETHODCALLTYPE *Refresh2)( - IWebBrowser* This, - VARIANT* Level); - - HRESULT (STDMETHODCALLTYPE *Stop)( - IWebBrowser* This); - - HRESULT (STDMETHODCALLTYPE *get_Application)( - IWebBrowser* This, - IDispatch** ppDisp); - - HRESULT (STDMETHODCALLTYPE *get_Parent)( - IWebBrowser* This, - IDispatch** ppDisp); - - HRESULT (STDMETHODCALLTYPE *get_Container)( - IWebBrowser* This, - IDispatch** ppDisp); - - HRESULT (STDMETHODCALLTYPE *get_Document)( - IWebBrowser* This, - IDispatch** ppDisp); - - HRESULT (STDMETHODCALLTYPE *get_TopLevelContainer)( - IWebBrowser* This, - VARIANT_BOOL* pBool); - - HRESULT (STDMETHODCALLTYPE *get_Type)( - IWebBrowser* This, - BSTR* Type); - - HRESULT (STDMETHODCALLTYPE *get_Left)( - IWebBrowser* This, - long* pl); - - HRESULT (STDMETHODCALLTYPE *put_Left)( - IWebBrowser* This, - long Left); - - HRESULT (STDMETHODCALLTYPE *get_Top)( - IWebBrowser* This, - long* pl); - - HRESULT (STDMETHODCALLTYPE *put_Top)( - IWebBrowser* This, - long Top); - - HRESULT (STDMETHODCALLTYPE *get_Width)( - IWebBrowser* This, - long* pl); - - HRESULT (STDMETHODCALLTYPE *put_Width)( - IWebBrowser* This, - long Width); - - HRESULT (STDMETHODCALLTYPE *get_Height)( - IWebBrowser* This, - long* pl); - - HRESULT (STDMETHODCALLTYPE *put_Height)( - IWebBrowser* This, - long Height); - - HRESULT (STDMETHODCALLTYPE *get_LocationName)( - IWebBrowser* This, - BSTR* LocationName); - - HRESULT (STDMETHODCALLTYPE *get_LocationURL)( - IWebBrowser* This, - BSTR* LocationURL); - - HRESULT (STDMETHODCALLTYPE *get_Busy)( - IWebBrowser* This, - VARIANT_BOOL* pBool); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IWebBrowser_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IWebBrowser_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IWebBrowser_Release(p) (p)->lpVtbl->Release(p) -/*** IDispatch methods ***/ -#define IWebBrowser_GetTypeInfoCount(p,a) (p)->lpVtbl->GetTypeInfoCount(p,a) -#define IWebBrowser_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c) -#define IWebBrowser_GetIDsOfNames(p,a,b,c,d,e) (p)->lpVtbl->GetIDsOfNames(p,a,b,c,d,e) -#define IWebBrowser_Invoke(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g,h) -/*** IWebBrowser methods ***/ -#define IWebBrowser_GoBack(p) (p)->lpVtbl->GoBack(p) -#define IWebBrowser_GoForward(p) (p)->lpVtbl->GoForward(p) -#define IWebBrowser_GoHome(p) (p)->lpVtbl->GoHome(p) -#define IWebBrowser_GoSearch(p) (p)->lpVtbl->GoSearch(p) -#define IWebBrowser_Navigate(p,a,b,c,d,e) (p)->lpVtbl->Navigate(p,a,b,c,d,e) -#define IWebBrowser_Refresh(p) (p)->lpVtbl->Refresh(p) -#define IWebBrowser_Refresh2(p,a) (p)->lpVtbl->Refresh2(p,a) -#define IWebBrowser_Stop(p) (p)->lpVtbl->Stop(p) -#define IWebBrowser_get_Application(p,a) (p)->lpVtbl->get_Application(p,a) -#define IWebBrowser_get_Parent(p,a) (p)->lpVtbl->get_Parent(p,a) -#define IWebBrowser_get_Container(p,a) (p)->lpVtbl->get_Container(p,a) -#define IWebBrowser_get_Document(p,a) (p)->lpVtbl->get_Document(p,a) -#define IWebBrowser_get_TopLevelContainer(p,a) (p)->lpVtbl->get_TopLevelContainer(p,a) -#define IWebBrowser_get_Type(p,a) (p)->lpVtbl->get_Type(p,a) -#define IWebBrowser_get_Left(p,a) (p)->lpVtbl->get_Left(p,a) -#define IWebBrowser_put_Left(p,a) (p)->lpVtbl->put_Left(p,a) -#define IWebBrowser_get_Top(p,a) (p)->lpVtbl->get_Top(p,a) -#define IWebBrowser_put_Top(p,a) (p)->lpVtbl->put_Top(p,a) -#define IWebBrowser_get_Width(p,a) (p)->lpVtbl->get_Width(p,a) -#define IWebBrowser_put_Width(p,a) (p)->lpVtbl->put_Width(p,a) -#define IWebBrowser_get_Height(p,a) (p)->lpVtbl->get_Height(p,a) -#define IWebBrowser_put_Height(p,a) (p)->lpVtbl->put_Height(p,a) -#define IWebBrowser_get_LocationName(p,a) (p)->lpVtbl->get_LocationName(p,a) -#define IWebBrowser_get_LocationURL(p,a) (p)->lpVtbl->get_LocationURL(p,a) -#define IWebBrowser_get_Busy(p,a) (p)->lpVtbl->get_Busy(p,a) -#endif - -#endif - -#define IWebBrowser_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDispatch methods ***/ \ - STDMETHOD_(HRESULT,GetTypeInfoCount)(THIS_ UINT* pctinfo) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,GetIDsOfNames)(THIS_ REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgDispId) PURE; \ - STDMETHOD_(HRESULT,Invoke)(THIS_ DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) PURE; \ - /*** IWebBrowser methods ***/ \ - STDMETHOD_(HRESULT,GoBack)(THIS) PURE; \ - STDMETHOD_(HRESULT,GoForward)(THIS) PURE; \ - STDMETHOD_(HRESULT,GoHome)(THIS) PURE; \ - STDMETHOD_(HRESULT,GoSearch)(THIS) PURE; \ - STDMETHOD_(HRESULT,Navigate)(THIS_ BSTR URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers) PURE; \ - STDMETHOD_(HRESULT,Refresh)(THIS) PURE; \ - STDMETHOD_(HRESULT,Refresh2)(THIS_ VARIANT* Level) PURE; \ - STDMETHOD_(HRESULT,Stop)(THIS) PURE; \ - STDMETHOD_(HRESULT,get_Application)(THIS_ IDispatch** ppDisp) PURE; \ - STDMETHOD_(HRESULT,get_Parent)(THIS_ IDispatch** ppDisp) PURE; \ - STDMETHOD_(HRESULT,get_Container)(THIS_ IDispatch** ppDisp) PURE; \ - STDMETHOD_(HRESULT,get_Document)(THIS_ IDispatch** ppDisp) PURE; \ - STDMETHOD_(HRESULT,get_TopLevelContainer)(THIS_ VARIANT_BOOL* pBool) PURE; \ - STDMETHOD_(HRESULT,get_Type)(THIS_ BSTR* Type) PURE; \ - STDMETHOD_(HRESULT,get_Left)(THIS_ long* pl) PURE; \ - STDMETHOD_(HRESULT,put_Left)(THIS_ long Left) PURE; \ - STDMETHOD_(HRESULT,get_Top)(THIS_ long* pl) PURE; \ - STDMETHOD_(HRESULT,put_Top)(THIS_ long Top) PURE; \ - STDMETHOD_(HRESULT,get_Width)(THIS_ long* pl) PURE; \ - STDMETHOD_(HRESULT,put_Width)(THIS_ long Width) PURE; \ - STDMETHOD_(HRESULT,get_Height)(THIS_ long* pl) PURE; \ - STDMETHOD_(HRESULT,put_Height)(THIS_ long Height) PURE; \ - STDMETHOD_(HRESULT,get_LocationName)(THIS_ BSTR* LocationName) PURE; \ - STDMETHOD_(HRESULT,get_LocationURL)(THIS_ BSTR* LocationURL) PURE; \ - STDMETHOD_(HRESULT,get_Busy)(THIS_ VARIANT_BOOL* pBool) PURE; - -HRESULT CALLBACK IWebBrowser_GoBack_Proxy( - IWebBrowser* This); -void __RPC_STUB IWebBrowser_GoBack_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_GoForward_Proxy( - IWebBrowser* This); -void __RPC_STUB IWebBrowser_GoForward_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_GoHome_Proxy( - IWebBrowser* This); -void __RPC_STUB IWebBrowser_GoHome_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_GoSearch_Proxy( - IWebBrowser* This); -void __RPC_STUB IWebBrowser_GoSearch_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_Navigate_Proxy( - IWebBrowser* This, - BSTR URL, - VARIANT* Flags, - VARIANT* TargetFrameName, - VARIANT* PostData, - VARIANT* Headers); -void __RPC_STUB IWebBrowser_Navigate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_Refresh_Proxy( - IWebBrowser* This); -void __RPC_STUB IWebBrowser_Refresh_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_Refresh2_Proxy( - IWebBrowser* This, - VARIANT* Level); -void __RPC_STUB IWebBrowser_Refresh2_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_Stop_Proxy( - IWebBrowser* This); -void __RPC_STUB IWebBrowser_Stop_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_Application_Proxy( - IWebBrowser* This, - IDispatch** ppDisp); -void __RPC_STUB IWebBrowser_get_Application_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_Parent_Proxy( - IWebBrowser* This, - IDispatch** ppDisp); -void __RPC_STUB IWebBrowser_get_Parent_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_Container_Proxy( - IWebBrowser* This, - IDispatch** ppDisp); -void __RPC_STUB IWebBrowser_get_Container_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_Document_Proxy( - IWebBrowser* This, - IDispatch** ppDisp); -void __RPC_STUB IWebBrowser_get_Document_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_TopLevelContainer_Proxy( - IWebBrowser* This, - VARIANT_BOOL* pBool); -void __RPC_STUB IWebBrowser_get_TopLevelContainer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_Type_Proxy( - IWebBrowser* This, - BSTR* Type); -void __RPC_STUB IWebBrowser_get_Type_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_Left_Proxy( - IWebBrowser* This, - long* pl); -void __RPC_STUB IWebBrowser_get_Left_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_put_Left_Proxy( - IWebBrowser* This, - long Left); -void __RPC_STUB IWebBrowser_put_Left_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_Top_Proxy( - IWebBrowser* This, - long* pl); -void __RPC_STUB IWebBrowser_get_Top_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_put_Top_Proxy( - IWebBrowser* This, - long Top); -void __RPC_STUB IWebBrowser_put_Top_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_Width_Proxy( - IWebBrowser* This, - long* pl); -void __RPC_STUB IWebBrowser_get_Width_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_put_Width_Proxy( - IWebBrowser* This, - long Width); -void __RPC_STUB IWebBrowser_put_Width_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_Height_Proxy( - IWebBrowser* This, - long* pl); -void __RPC_STUB IWebBrowser_get_Height_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_put_Height_Proxy( - IWebBrowser* This, - long Height); -void __RPC_STUB IWebBrowser_put_Height_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_LocationName_Proxy( - IWebBrowser* This, - BSTR* LocationName); -void __RPC_STUB IWebBrowser_get_LocationName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_LocationURL_Proxy( - IWebBrowser* This, - BSTR* LocationURL); -void __RPC_STUB IWebBrowser_get_LocationURL_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowser_get_Busy_Proxy( - IWebBrowser* This, - VARIANT_BOOL* pBool); -void __RPC_STUB IWebBrowser_get_Busy_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IWebBrowser_INTERFACE_DEFINED__ */ - -#ifndef __IWebBrowserApp_FWD_DEFINED__ -#define __IWebBrowserApp_FWD_DEFINED__ -typedef struct IWebBrowserApp IWebBrowserApp; -#endif - -/***************************************************************************** - * IWebBrowserApp interface - */ -#ifndef __IWebBrowserApp_INTERFACE_DEFINED__ -#define __IWebBrowserApp_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IWebBrowserApp, 0x0002df05, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IWebBrowserApp : public IWebBrowser -{ - virtual HRESULT STDMETHODCALLTYPE Quit( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE ClientToWindow( - int* pcx, - int* pcy) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutProperty( - BSTR szProperty, - VARIANT vtValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetProperty( - BSTR szProperty, - VARIANT* pvtValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Name( - BSTR* Name) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_HWND( - long* pHWND) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_FullName( - BSTR* FullName) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Path( - BSTR* Path) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Visible( - VARIANT_BOOL* pBool) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Visible( - VARIANT_BOOL Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_StatusBar( - VARIANT_BOOL* pBool) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_StatusBar( - VARIANT_BOOL Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_StatusText( - BSTR* StatusText) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_StatusText( - BSTR StatusText) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_ToolBar( - int* Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_ToolBar( - int Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_MenuBar( - VARIANT_BOOL* Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_MenuBar( - VARIANT_BOOL Value) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_FullScreen( - VARIANT_BOOL* pbFullScreen) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_FullScreen( - VARIANT_BOOL bFullScreen) = 0; - -}; -#else -typedef struct IWebBrowserAppVtbl IWebBrowserAppVtbl; -struct IWebBrowserApp { - const IWebBrowserAppVtbl* lpVtbl; -}; -struct IWebBrowserAppVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IWebBrowserApp* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IWebBrowserApp* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IWebBrowserApp* This); - - /*** IDispatch methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)( - IWebBrowserApp* This, - UINT* pctinfo); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - IWebBrowserApp* This, - UINT iTInfo, - LCID lcid, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)( - IWebBrowserApp* This, - REFIID riid, - LPOLESTR* rgszNames, - UINT cNames, - LCID lcid, - DISPID* rgDispId); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - IWebBrowserApp* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); - - /*** IWebBrowser methods ***/ - HRESULT (STDMETHODCALLTYPE *GoBack)( - IWebBrowserApp* This); - - HRESULT (STDMETHODCALLTYPE *GoForward)( - IWebBrowserApp* This); - - HRESULT (STDMETHODCALLTYPE *GoHome)( - IWebBrowserApp* This); - - HRESULT (STDMETHODCALLTYPE *GoSearch)( - IWebBrowserApp* This); - - HRESULT (STDMETHODCALLTYPE *Navigate)( - IWebBrowserApp* This, - BSTR URL, - VARIANT* Flags, - VARIANT* TargetFrameName, - VARIANT* PostData, - VARIANT* Headers); - - HRESULT (STDMETHODCALLTYPE *Refresh)( - IWebBrowserApp* This); - - HRESULT (STDMETHODCALLTYPE *Refresh2)( - IWebBrowserApp* This, - VARIANT* Level); - - HRESULT (STDMETHODCALLTYPE *Stop)( - IWebBrowserApp* This); - - HRESULT (STDMETHODCALLTYPE *get_Application)( - IWebBrowserApp* This, - IDispatch** ppDisp); - - HRESULT (STDMETHODCALLTYPE *get_Parent)( - IWebBrowserApp* This, - IDispatch** ppDisp); - - HRESULT (STDMETHODCALLTYPE *get_Container)( - IWebBrowserApp* This, - IDispatch** ppDisp); - - HRESULT (STDMETHODCALLTYPE *get_Document)( - IWebBrowserApp* This, - IDispatch** ppDisp); - - HRESULT (STDMETHODCALLTYPE *get_TopLevelContainer)( - IWebBrowserApp* This, - VARIANT_BOOL* pBool); - - HRESULT (STDMETHODCALLTYPE *get_Type)( - IWebBrowserApp* This, - BSTR* Type); - - HRESULT (STDMETHODCALLTYPE *get_Left)( - IWebBrowserApp* This, - long* pl); - - HRESULT (STDMETHODCALLTYPE *put_Left)( - IWebBrowserApp* This, - long Left); - - HRESULT (STDMETHODCALLTYPE *get_Top)( - IWebBrowserApp* This, - long* pl); - - HRESULT (STDMETHODCALLTYPE *put_Top)( - IWebBrowserApp* This, - long Top); - - HRESULT (STDMETHODCALLTYPE *get_Width)( - IWebBrowserApp* This, - long* pl); - - HRESULT (STDMETHODCALLTYPE *put_Width)( - IWebBrowserApp* This, - long Width); - - HRESULT (STDMETHODCALLTYPE *get_Height)( - IWebBrowserApp* This, - long* pl); - - HRESULT (STDMETHODCALLTYPE *put_Height)( - IWebBrowserApp* This, - long Height); - - HRESULT (STDMETHODCALLTYPE *get_LocationName)( - IWebBrowserApp* This, - BSTR* LocationName); - - HRESULT (STDMETHODCALLTYPE *get_LocationURL)( - IWebBrowserApp* This, - BSTR* LocationURL); - - HRESULT (STDMETHODCALLTYPE *get_Busy)( - IWebBrowserApp* This, - VARIANT_BOOL* pBool); - - /*** IWebBrowserApp methods ***/ - HRESULT (STDMETHODCALLTYPE *Quit)( - IWebBrowserApp* This); - - HRESULT (STDMETHODCALLTYPE *ClientToWindow)( - IWebBrowserApp* This, - int* pcx, - int* pcy); - - HRESULT (STDMETHODCALLTYPE *PutProperty)( - IWebBrowserApp* This, - BSTR szProperty, - VARIANT vtValue); - - HRESULT (STDMETHODCALLTYPE *GetProperty)( - IWebBrowserApp* This, - BSTR szProperty, - VARIANT* pvtValue); - - HRESULT (STDMETHODCALLTYPE *get_Name)( - IWebBrowserApp* This, - BSTR* Name); - - HRESULT (STDMETHODCALLTYPE *get_HWND)( - IWebBrowserApp* This, - long* pHWND); - - HRESULT (STDMETHODCALLTYPE *get_FullName)( - IWebBrowserApp* This, - BSTR* FullName); - - HRESULT (STDMETHODCALLTYPE *get_Path)( - IWebBrowserApp* This, - BSTR* Path); - - HRESULT (STDMETHODCALLTYPE *get_Visible)( - IWebBrowserApp* This, - VARIANT_BOOL* pBool); - - HRESULT (STDMETHODCALLTYPE *put_Visible)( - IWebBrowserApp* This, - VARIANT_BOOL Value); - - HRESULT (STDMETHODCALLTYPE *get_StatusBar)( - IWebBrowserApp* This, - VARIANT_BOOL* pBool); - - HRESULT (STDMETHODCALLTYPE *put_StatusBar)( - IWebBrowserApp* This, - VARIANT_BOOL Value); - - HRESULT (STDMETHODCALLTYPE *get_StatusText)( - IWebBrowserApp* This, - BSTR* StatusText); - - HRESULT (STDMETHODCALLTYPE *put_StatusText)( - IWebBrowserApp* This, - BSTR StatusText); - - HRESULT (STDMETHODCALLTYPE *get_ToolBar)( - IWebBrowserApp* This, - int* Value); - - HRESULT (STDMETHODCALLTYPE *put_ToolBar)( - IWebBrowserApp* This, - int Value); - - HRESULT (STDMETHODCALLTYPE *get_MenuBar)( - IWebBrowserApp* This, - VARIANT_BOOL* Value); - - HRESULT (STDMETHODCALLTYPE *put_MenuBar)( - IWebBrowserApp* This, - VARIANT_BOOL Value); - - HRESULT (STDMETHODCALLTYPE *get_FullScreen)( - IWebBrowserApp* This, - VARIANT_BOOL* pbFullScreen); - - HRESULT (STDMETHODCALLTYPE *put_FullScreen)( - IWebBrowserApp* This, - VARIANT_BOOL bFullScreen); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IWebBrowserApp_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IWebBrowserApp_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IWebBrowserApp_Release(p) (p)->lpVtbl->Release(p) -/*** IDispatch methods ***/ -#define IWebBrowserApp_GetTypeInfoCount(p,a) (p)->lpVtbl->GetTypeInfoCount(p,a) -#define IWebBrowserApp_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c) -#define IWebBrowserApp_GetIDsOfNames(p,a,b,c,d,e) (p)->lpVtbl->GetIDsOfNames(p,a,b,c,d,e) -#define IWebBrowserApp_Invoke(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g,h) -/*** IWebBrowser methods ***/ -#define IWebBrowserApp_GoBack(p) (p)->lpVtbl->GoBack(p) -#define IWebBrowserApp_GoForward(p) (p)->lpVtbl->GoForward(p) -#define IWebBrowserApp_GoHome(p) (p)->lpVtbl->GoHome(p) -#define IWebBrowserApp_GoSearch(p) (p)->lpVtbl->GoSearch(p) -#define IWebBrowserApp_Navigate(p,a,b,c,d,e) (p)->lpVtbl->Navigate(p,a,b,c,d,e) -#define IWebBrowserApp_Refresh(p) (p)->lpVtbl->Refresh(p) -#define IWebBrowserApp_Refresh2(p,a) (p)->lpVtbl->Refresh2(p,a) -#define IWebBrowserApp_Stop(p) (p)->lpVtbl->Stop(p) -#define IWebBrowserApp_get_Application(p,a) (p)->lpVtbl->get_Application(p,a) -#define IWebBrowserApp_get_Parent(p,a) (p)->lpVtbl->get_Parent(p,a) -#define IWebBrowserApp_get_Container(p,a) (p)->lpVtbl->get_Container(p,a) -#define IWebBrowserApp_get_Document(p,a) (p)->lpVtbl->get_Document(p,a) -#define IWebBrowserApp_get_TopLevelContainer(p,a) (p)->lpVtbl->get_TopLevelContainer(p,a) -#define IWebBrowserApp_get_Type(p,a) (p)->lpVtbl->get_Type(p,a) -#define IWebBrowserApp_get_Left(p,a) (p)->lpVtbl->get_Left(p,a) -#define IWebBrowserApp_put_Left(p,a) (p)->lpVtbl->put_Left(p,a) -#define IWebBrowserApp_get_Top(p,a) (p)->lpVtbl->get_Top(p,a) -#define IWebBrowserApp_put_Top(p,a) (p)->lpVtbl->put_Top(p,a) -#define IWebBrowserApp_get_Width(p,a) (p)->lpVtbl->get_Width(p,a) -#define IWebBrowserApp_put_Width(p,a) (p)->lpVtbl->put_Width(p,a) -#define IWebBrowserApp_get_Height(p,a) (p)->lpVtbl->get_Height(p,a) -#define IWebBrowserApp_put_Height(p,a) (p)->lpVtbl->put_Height(p,a) -#define IWebBrowserApp_get_LocationName(p,a) (p)->lpVtbl->get_LocationName(p,a) -#define IWebBrowserApp_get_LocationURL(p,a) (p)->lpVtbl->get_LocationURL(p,a) -#define IWebBrowserApp_get_Busy(p,a) (p)->lpVtbl->get_Busy(p,a) -/*** IWebBrowserApp methods ***/ -#define IWebBrowserApp_Quit(p) (p)->lpVtbl->Quit(p) -#define IWebBrowserApp_ClientToWindow(p,a,b) (p)->lpVtbl->ClientToWindow(p,a,b) -#define IWebBrowserApp_PutProperty(p,a,b) (p)->lpVtbl->PutProperty(p,a,b) -#define IWebBrowserApp_GetProperty(p,a,b) (p)->lpVtbl->GetProperty(p,a,b) -#define IWebBrowserApp_get_Name(p,a) (p)->lpVtbl->get_Name(p,a) -#define IWebBrowserApp_get_HWND(p,a) (p)->lpVtbl->get_HWND(p,a) -#define IWebBrowserApp_get_FullName(p,a) (p)->lpVtbl->get_FullName(p,a) -#define IWebBrowserApp_get_Path(p,a) (p)->lpVtbl->get_Path(p,a) -#define IWebBrowserApp_get_Visible(p,a) (p)->lpVtbl->get_Visible(p,a) -#define IWebBrowserApp_put_Visible(p,a) (p)->lpVtbl->put_Visible(p,a) -#define IWebBrowserApp_get_StatusBar(p,a) (p)->lpVtbl->get_StatusBar(p,a) -#define IWebBrowserApp_put_StatusBar(p,a) (p)->lpVtbl->put_StatusBar(p,a) -#define IWebBrowserApp_get_StatusText(p,a) (p)->lpVtbl->get_StatusText(p,a) -#define IWebBrowserApp_put_StatusText(p,a) (p)->lpVtbl->put_StatusText(p,a) -#define IWebBrowserApp_get_ToolBar(p,a) (p)->lpVtbl->get_ToolBar(p,a) -#define IWebBrowserApp_put_ToolBar(p,a) (p)->lpVtbl->put_ToolBar(p,a) -#define IWebBrowserApp_get_MenuBar(p,a) (p)->lpVtbl->get_MenuBar(p,a) -#define IWebBrowserApp_put_MenuBar(p,a) (p)->lpVtbl->put_MenuBar(p,a) -#define IWebBrowserApp_get_FullScreen(p,a) (p)->lpVtbl->get_FullScreen(p,a) -#define IWebBrowserApp_put_FullScreen(p,a) (p)->lpVtbl->put_FullScreen(p,a) -#endif - -#endif - -#define IWebBrowserApp_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDispatch methods ***/ \ - STDMETHOD_(HRESULT,GetTypeInfoCount)(THIS_ UINT* pctinfo) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,GetIDsOfNames)(THIS_ REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgDispId) PURE; \ - STDMETHOD_(HRESULT,Invoke)(THIS_ DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) PURE; \ - /*** IWebBrowser methods ***/ \ - STDMETHOD_(HRESULT,GoBack)(THIS) PURE; \ - STDMETHOD_(HRESULT,GoForward)(THIS) PURE; \ - STDMETHOD_(HRESULT,GoHome)(THIS) PURE; \ - STDMETHOD_(HRESULT,GoSearch)(THIS) PURE; \ - STDMETHOD_(HRESULT,Navigate)(THIS_ BSTR URL, VARIANT* Flags, VARIANT* TargetFrameName, VARIANT* PostData, VARIANT* Headers) PURE; \ - STDMETHOD_(HRESULT,Refresh)(THIS) PURE; \ - STDMETHOD_(HRESULT,Refresh2)(THIS_ VARIANT* Level) PURE; \ - STDMETHOD_(HRESULT,Stop)(THIS) PURE; \ - STDMETHOD_(HRESULT,get_Application)(THIS_ IDispatch** ppDisp) PURE; \ - STDMETHOD_(HRESULT,get_Parent)(THIS_ IDispatch** ppDisp) PURE; \ - STDMETHOD_(HRESULT,get_Container)(THIS_ IDispatch** ppDisp) PURE; \ - STDMETHOD_(HRESULT,get_Document)(THIS_ IDispatch** ppDisp) PURE; \ - STDMETHOD_(HRESULT,get_TopLevelContainer)(THIS_ VARIANT_BOOL* pBool) PURE; \ - STDMETHOD_(HRESULT,get_Type)(THIS_ BSTR* Type) PURE; \ - STDMETHOD_(HRESULT,get_Left)(THIS_ long* pl) PURE; \ - STDMETHOD_(HRESULT,put_Left)(THIS_ long Left) PURE; \ - STDMETHOD_(HRESULT,get_Top)(THIS_ long* pl) PURE; \ - STDMETHOD_(HRESULT,put_Top)(THIS_ long Top) PURE; \ - STDMETHOD_(HRESULT,get_Width)(THIS_ long* pl) PURE; \ - STDMETHOD_(HRESULT,put_Width)(THIS_ long Width) PURE; \ - STDMETHOD_(HRESULT,get_Height)(THIS_ long* pl) PURE; \ - STDMETHOD_(HRESULT,put_Height)(THIS_ long Height) PURE; \ - STDMETHOD_(HRESULT,get_LocationName)(THIS_ BSTR* LocationName) PURE; \ - STDMETHOD_(HRESULT,get_LocationURL)(THIS_ BSTR* LocationURL) PURE; \ - STDMETHOD_(HRESULT,get_Busy)(THIS_ VARIANT_BOOL* pBool) PURE; \ - /*** IWebBrowserApp methods ***/ \ - STDMETHOD_(HRESULT,Quit)(THIS) PURE; \ - STDMETHOD_(HRESULT,ClientToWindow)(THIS_ int* pcx, int* pcy) PURE; \ - STDMETHOD_(HRESULT,PutProperty)(THIS_ BSTR szProperty, VARIANT vtValue) PURE; \ - STDMETHOD_(HRESULT,GetProperty)(THIS_ BSTR szProperty, VARIANT* pvtValue) PURE; \ - STDMETHOD_(HRESULT,get_Name)(THIS_ BSTR* Name) PURE; \ - STDMETHOD_(HRESULT,get_HWND)(THIS_ long* pHWND) PURE; \ - STDMETHOD_(HRESULT,get_FullName)(THIS_ BSTR* FullName) PURE; \ - STDMETHOD_(HRESULT,get_Path)(THIS_ BSTR* Path) PURE; \ - STDMETHOD_(HRESULT,get_Visible)(THIS_ VARIANT_BOOL* pBool) PURE; \ - STDMETHOD_(HRESULT,put_Visible)(THIS_ VARIANT_BOOL Value) PURE; \ - STDMETHOD_(HRESULT,get_StatusBar)(THIS_ VARIANT_BOOL* pBool) PURE; \ - STDMETHOD_(HRESULT,put_StatusBar)(THIS_ VARIANT_BOOL Value) PURE; \ - STDMETHOD_(HRESULT,get_StatusText)(THIS_ BSTR* StatusText) PURE; \ - STDMETHOD_(HRESULT,put_StatusText)(THIS_ BSTR StatusText) PURE; \ - STDMETHOD_(HRESULT,get_ToolBar)(THIS_ int* Value) PURE; \ - STDMETHOD_(HRESULT,put_ToolBar)(THIS_ int Value) PURE; \ - STDMETHOD_(HRESULT,get_MenuBar)(THIS_ VARIANT_BOOL* Value) PURE; \ - STDMETHOD_(HRESULT,put_MenuBar)(THIS_ VARIANT_BOOL Value) PURE; \ - STDMETHOD_(HRESULT,get_FullScreen)(THIS_ VARIANT_BOOL* pbFullScreen) PURE; \ - STDMETHOD_(HRESULT,put_FullScreen)(THIS_ VARIANT_BOOL bFullScreen) PURE; - -HRESULT CALLBACK IWebBrowserApp_Quit_Proxy( - IWebBrowserApp* This); -void __RPC_STUB IWebBrowserApp_Quit_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_ClientToWindow_Proxy( - IWebBrowserApp* This, - int* pcx, - int* pcy); -void __RPC_STUB IWebBrowserApp_ClientToWindow_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_PutProperty_Proxy( - IWebBrowserApp* This, - BSTR szProperty, - VARIANT vtValue); -void __RPC_STUB IWebBrowserApp_PutProperty_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_GetProperty_Proxy( - IWebBrowserApp* This, - BSTR szProperty, - VARIANT* pvtValue); -void __RPC_STUB IWebBrowserApp_GetProperty_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_get_Name_Proxy( - IWebBrowserApp* This, - BSTR* Name); -void __RPC_STUB IWebBrowserApp_get_Name_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_get_HWND_Proxy( - IWebBrowserApp* This, - long* pHWND); -void __RPC_STUB IWebBrowserApp_get_HWND_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_get_FullName_Proxy( - IWebBrowserApp* This, - BSTR* FullName); -void __RPC_STUB IWebBrowserApp_get_FullName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_get_Path_Proxy( - IWebBrowserApp* This, - BSTR* Path); -void __RPC_STUB IWebBrowserApp_get_Path_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_get_Visible_Proxy( - IWebBrowserApp* This, - VARIANT_BOOL* pBool); -void __RPC_STUB IWebBrowserApp_get_Visible_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_put_Visible_Proxy( - IWebBrowserApp* This, - VARIANT_BOOL Value); -void __RPC_STUB IWebBrowserApp_put_Visible_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_get_StatusBar_Proxy( - IWebBrowserApp* This, - VARIANT_BOOL* pBool); -void __RPC_STUB IWebBrowserApp_get_StatusBar_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_put_StatusBar_Proxy( - IWebBrowserApp* This, - VARIANT_BOOL Value); -void __RPC_STUB IWebBrowserApp_put_StatusBar_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_get_StatusText_Proxy( - IWebBrowserApp* This, - BSTR* StatusText); -void __RPC_STUB IWebBrowserApp_get_StatusText_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_put_StatusText_Proxy( - IWebBrowserApp* This, - BSTR StatusText); -void __RPC_STUB IWebBrowserApp_put_StatusText_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_get_ToolBar_Proxy( - IWebBrowserApp* This, - int* Value); -void __RPC_STUB IWebBrowserApp_get_ToolBar_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_put_ToolBar_Proxy( - IWebBrowserApp* This, - int Value); -void __RPC_STUB IWebBrowserApp_put_ToolBar_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_get_MenuBar_Proxy( - IWebBrowserApp* This, - VARIANT_BOOL* Value); -void __RPC_STUB IWebBrowserApp_get_MenuBar_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_put_MenuBar_Proxy( - IWebBrowserApp* This, - VARIANT_BOOL Value); -void __RPC_STUB IWebBrowserApp_put_MenuBar_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_get_FullScreen_Proxy( - IWebBrowserApp* This, - VARIANT_BOOL* pbFullScreen); -void __RPC_STUB IWebBrowserApp_get_FullScreen_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWebBrowserApp_put_FullScreen_Proxy( - IWebBrowserApp* This, - VARIANT_BOOL bFullScreen); -void __RPC_STUB IWebBrowserApp_put_FullScreen_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IWebBrowserApp_INTERFACE_DEFINED__ */ - -#ifndef __IShellWindows_FWD_DEFINED__ -#define __IShellWindows_FWD_DEFINED__ -typedef struct IShellWindows IShellWindows; -#endif - -/***************************************************************************** - * IShellWindows interface - */ -#ifndef __IShellWindows_INTERFACE_DEFINED__ -#define __IShellWindows_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IShellWindows, 0x85cb6900, 0x4d95, 0x11cf, 0x96,0x0c, 0x00,0x80,0xc7,0xf4,0xee,0x85); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IShellWindows : public IDispatch -{ - virtual HRESULT STDMETHODCALLTYPE get_Count( - long* Count) = 0; - - virtual HRESULT STDMETHODCALLTYPE Item( - VARIANT index, - IDispatch** Folder) = 0; - - virtual HRESULT STDMETHODCALLTYPE _NewEnum( - IUnknown** ppunk) = 0; - - virtual HRESULT STDMETHODCALLTYPE Register( - IDispatch* pid, - long hWnd, - int swClass, - long* plCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterPending( - long lThread, - VARIANT* pvarloc, - VARIANT* varlocRoot, - int swClass, - long* plCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE Revoke( - long Cookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnNavigate( - long Cookie, - VARIANT* pvarLoc) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnActivated( - long Cookie, - VARIANT fActive) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindWindowSW( - VARIANT* pvarLoc, - VARIANT* pvarLocRoot, - int swClass, - long* phwnd, - int swfwOptions, - IDispatch** ppdispOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnCreated( - long lCookie, - IUnknown* punk) = 0; - - virtual HRESULT STDMETHODCALLTYPE ProcessAttachDetach( - VARIANT_BOOL fAttach) = 0; - -}; -#else -typedef struct IShellWindowsVtbl IShellWindowsVtbl; -struct IShellWindows { - const IShellWindowsVtbl* lpVtbl; -}; -struct IShellWindowsVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IShellWindows* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IShellWindows* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IShellWindows* This); - - /*** IDispatch methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)( - IShellWindows* This, - UINT* pctinfo); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - IShellWindows* This, - UINT iTInfo, - LCID lcid, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)( - IShellWindows* This, - REFIID riid, - LPOLESTR* rgszNames, - UINT cNames, - LCID lcid, - DISPID* rgDispId); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - IShellWindows* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); - - /*** IShellWindows methods ***/ - HRESULT (STDMETHODCALLTYPE *get_Count)( - IShellWindows* This, - long* Count); - - HRESULT (STDMETHODCALLTYPE *Item)( - IShellWindows* This, - VARIANT index, - IDispatch** Folder); - - HRESULT (STDMETHODCALLTYPE *_NewEnum)( - IShellWindows* This, - IUnknown** ppunk); - - HRESULT (STDMETHODCALLTYPE *Register)( - IShellWindows* This, - IDispatch* pid, - long hWnd, - int swClass, - long* plCookie); - - HRESULT (STDMETHODCALLTYPE *RegisterPending)( - IShellWindows* This, - long lThread, - VARIANT* pvarloc, - VARIANT* varlocRoot, - int swClass, - long* plCookie); - - HRESULT (STDMETHODCALLTYPE *Revoke)( - IShellWindows* This, - long Cookie); - - HRESULT (STDMETHODCALLTYPE *OnNavigate)( - IShellWindows* This, - long Cookie, - VARIANT* pvarLoc); - - HRESULT (STDMETHODCALLTYPE *OnActivated)( - IShellWindows* This, - long Cookie, - VARIANT fActive); - - HRESULT (STDMETHODCALLTYPE *FindWindowSW)( - IShellWindows* This, - VARIANT* pvarLoc, - VARIANT* pvarLocRoot, - int swClass, - long* phwnd, - int swfwOptions, - IDispatch** ppdispOut); - - HRESULT (STDMETHODCALLTYPE *OnCreated)( - IShellWindows* This, - long lCookie, - IUnknown* punk); - - HRESULT (STDMETHODCALLTYPE *ProcessAttachDetach)( - IShellWindows* This, - VARIANT_BOOL fAttach); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IShellWindows_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IShellWindows_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IShellWindows_Release(p) (p)->lpVtbl->Release(p) -/*** IDispatch methods ***/ -#define IShellWindows_GetTypeInfoCount(p,a) (p)->lpVtbl->GetTypeInfoCount(p,a) -#define IShellWindows_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c) -#define IShellWindows_GetIDsOfNames(p,a,b,c,d,e) (p)->lpVtbl->GetIDsOfNames(p,a,b,c,d,e) -#define IShellWindows_Invoke(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g,h) -/*** IShellWindows methods ***/ -#define IShellWindows_get_Count(p,a) (p)->lpVtbl->get_Count(p,a) -#define IShellWindows_Item(p,a,b) (p)->lpVtbl->Item(p,a,b) -#define IShellWindows__NewEnum(p,a) (p)->lpVtbl->_NewEnum(p,a) -#define IShellWindows_Register(p,a,b,c,d) (p)->lpVtbl->Register(p,a,b,c,d) -#define IShellWindows_RegisterPending(p,a,b,c,d,e) (p)->lpVtbl->RegisterPending(p,a,b,c,d,e) -#define IShellWindows_Revoke(p,a) (p)->lpVtbl->Revoke(p,a) -#define IShellWindows_OnNavigate(p,a,b) (p)->lpVtbl->OnNavigate(p,a,b) -#define IShellWindows_OnActivated(p,a,b) (p)->lpVtbl->OnActivated(p,a,b) -#define IShellWindows_FindWindowSW(p,a,b,c,d,e,f) (p)->lpVtbl->FindWindowSW(p,a,b,c,d,e,f) -#define IShellWindows_OnCreated(p,a,b) (p)->lpVtbl->OnCreated(p,a,b) -#define IShellWindows_ProcessAttachDetach(p,a) (p)->lpVtbl->ProcessAttachDetach(p,a) -#endif - -#endif - -#define IShellWindows_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDispatch methods ***/ \ - STDMETHOD_(HRESULT,GetTypeInfoCount)(THIS_ UINT* pctinfo) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,GetIDsOfNames)(THIS_ REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgDispId) PURE; \ - STDMETHOD_(HRESULT,Invoke)(THIS_ DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) PURE; \ - /*** IShellWindows methods ***/ \ - STDMETHOD_(HRESULT,get_Count)(THIS_ long* Count) PURE; \ - STDMETHOD_(HRESULT,Item)(THIS_ VARIANT index, IDispatch** Folder) PURE; \ - STDMETHOD_(HRESULT,_NewEnum)(THIS_ IUnknown** ppunk) PURE; \ - STDMETHOD_(HRESULT,Register)(THIS_ IDispatch* pid, long hWnd, int swClass, long* plCookie) PURE; \ - STDMETHOD_(HRESULT,RegisterPending)(THIS_ long lThread, VARIANT* pvarloc, VARIANT* varlocRoot, int swClass, long* plCookie) PURE; \ - STDMETHOD_(HRESULT,Revoke)(THIS_ long Cookie) PURE; \ - STDMETHOD_(HRESULT,OnNavigate)(THIS_ long Cookie, VARIANT* pvarLoc) PURE; \ - STDMETHOD_(HRESULT,OnActivated)(THIS_ long Cookie, VARIANT fActive) PURE; \ - STDMETHOD_(HRESULT,FindWindowSW)(THIS_ VARIANT* pvarLoc, VARIANT* pvarLocRoot, int swClass, long* phwnd, int swfwOptions, IDispatch** ppdispOut) PURE; \ - STDMETHOD_(HRESULT,OnCreated)(THIS_ long lCookie, IUnknown* punk) PURE; \ - STDMETHOD_(HRESULT,ProcessAttachDetach)(THIS_ VARIANT_BOOL fAttach) PURE; - -HRESULT CALLBACK IShellWindows_get_Count_Proxy( - IShellWindows* This, - long* Count); -void __RPC_STUB IShellWindows_get_Count_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellWindows_Item_Proxy( - IShellWindows* This, - VARIANT index, - IDispatch** Folder); -void __RPC_STUB IShellWindows_Item_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellWindows__NewEnum_Proxy( - IShellWindows* This, - IUnknown** ppunk); -void __RPC_STUB IShellWindows__NewEnum_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellWindows_Register_Proxy( - IShellWindows* This, - IDispatch* pid, - long hWnd, - int swClass, - long* plCookie); -void __RPC_STUB IShellWindows_Register_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellWindows_RegisterPending_Proxy( - IShellWindows* This, - long lThread, - VARIANT* pvarloc, - VARIANT* varlocRoot, - int swClass, - long* plCookie); -void __RPC_STUB IShellWindows_RegisterPending_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellWindows_Revoke_Proxy( - IShellWindows* This, - long Cookie); -void __RPC_STUB IShellWindows_Revoke_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellWindows_OnNavigate_Proxy( - IShellWindows* This, - long Cookie, - VARIANT* pvarLoc); -void __RPC_STUB IShellWindows_OnNavigate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellWindows_OnActivated_Proxy( - IShellWindows* This, - long Cookie, - VARIANT fActive); -void __RPC_STUB IShellWindows_OnActivated_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellWindows_FindWindowSW_Proxy( - IShellWindows* This, - VARIANT* pvarLoc, - VARIANT* pvarLocRoot, - int swClass, - long* phwnd, - int swfwOptions, - IDispatch** ppdispOut); -void __RPC_STUB IShellWindows_FindWindowSW_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellWindows_OnCreated_Proxy( - IShellWindows* This, - long lCookie, - IUnknown* punk); -void __RPC_STUB IShellWindows_OnCreated_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellWindows_ProcessAttachDetach_Proxy( - IShellWindows* This, - VARIANT_BOOL fAttach); -void __RPC_STUB IShellWindows_ProcessAttachDetach_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IShellWindows_INTERFACE_DEFINED__ */ - -DEFINE_GUID(CLSID_WebBrowser, 0x8856f961, 0x340a, 0x11d0, 0xa9, 0x6b, 0x00, 0xc0, 0x4f, 0xd7, 0x05, 0xa2); -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_EXDISP_H */ diff --git a/include/mlang.h b/include/mlang.h deleted file mode 100644 index 1c308a94984..00000000000 --- a/include/mlang.h +++ /dev/null @@ -1,2211 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from mlang.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_MLANG_H -#define __WIDL_MLANG_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#ifndef __IStream_FWD_DEFINED__ -#define __IStream_FWD_DEFINED__ -typedef struct IStream IStream; -#endif - -#ifndef __WINE_WINNT_H -typedef WORD LANGID; - -#endif -#ifndef __IMLangCodePages_FWD_DEFINED__ -#define __IMLangCodePages_FWD_DEFINED__ -typedef struct IMLangCodePages IMLangCodePages; -#endif - -/***************************************************************************** - * IMLangCodePages interface - */ -#ifndef __IMLangCodePages_INTERFACE_DEFINED__ -#define __IMLangCodePages_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMLangCodePages : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetCharCodePages( - WCHAR chSrc, - DWORD* pdwCodePages) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStrCodePages( - const WCHAR* pszSrc, - long cchSrc, - DWORD dwPriorityCodePages, - DWORD* pdwCodePages, - long* pcchCodePages) = 0; - - virtual HRESULT STDMETHODCALLTYPE CodePageToCodePages( - UINT uCodePage, - DWORD* pdwCodePages) = 0; - - virtual HRESULT STDMETHODCALLTYPE CodePagesToCodePage( - DWORD dwCodePages, - UINT uDefaultCodePage, - UINT* puCodePage) = 0; - -}; -#else -typedef struct IMLangCodePagesVtbl IMLangCodePagesVtbl; -struct IMLangCodePages { - const IMLangCodePagesVtbl* lpVtbl; -}; -struct IMLangCodePagesVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMLangCodePages* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMLangCodePages* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMLangCodePages* This); - - /*** IMLangCodePages methods ***/ - HRESULT (STDMETHODCALLTYPE *GetCharCodePages)( - IMLangCodePages* This, - WCHAR chSrc, - DWORD* pdwCodePages); - - HRESULT (STDMETHODCALLTYPE *GetStrCodePages)( - IMLangCodePages* This, - const WCHAR* pszSrc, - long cchSrc, - DWORD dwPriorityCodePages, - DWORD* pdwCodePages, - long* pcchCodePages); - - HRESULT (STDMETHODCALLTYPE *CodePageToCodePages)( - IMLangCodePages* This, - UINT uCodePage, - DWORD* pdwCodePages); - - HRESULT (STDMETHODCALLTYPE *CodePagesToCodePage)( - IMLangCodePages* This, - DWORD dwCodePages, - UINT uDefaultCodePage, - UINT* puCodePage); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMLangCodePages_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMLangCodePages_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMLangCodePages_Release(p) (p)->lpVtbl->Release(p) -/*** IMLangCodePages methods ***/ -#define IMLangCodePages_GetCharCodePages(p,a,b) (p)->lpVtbl->GetCharCodePages(p,a,b) -#define IMLangCodePages_GetStrCodePages(p,a,b,c,d,e) (p)->lpVtbl->GetStrCodePages(p,a,b,c,d,e) -#define IMLangCodePages_CodePageToCodePages(p,a,b) (p)->lpVtbl->CodePageToCodePages(p,a,b) -#define IMLangCodePages_CodePagesToCodePage(p,a,b,c) (p)->lpVtbl->CodePagesToCodePage(p,a,b,c) -#endif - -#endif - -#define IMLangCodePages_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMLangCodePages methods ***/ \ - STDMETHOD_(HRESULT,GetCharCodePages)(THIS_ WCHAR chSrc, DWORD* pdwCodePages) PURE; \ - STDMETHOD_(HRESULT,GetStrCodePages)(THIS_ const WCHAR* pszSrc, long cchSrc, DWORD dwPriorityCodePages, DWORD* pdwCodePages, long* pcchCodePages) PURE; \ - STDMETHOD_(HRESULT,CodePageToCodePages)(THIS_ UINT uCodePage, DWORD* pdwCodePages) PURE; \ - STDMETHOD_(HRESULT,CodePagesToCodePage)(THIS_ DWORD dwCodePages, UINT uDefaultCodePage, UINT* puCodePage) PURE; - -HRESULT CALLBACK IMLangCodePages_GetCharCodePages_Proxy( - IMLangCodePages* This, - WCHAR chSrc, - DWORD* pdwCodePages); -void __RPC_STUB IMLangCodePages_GetCharCodePages_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangCodePages_GetStrCodePages_Proxy( - IMLangCodePages* This, - const WCHAR* pszSrc, - long cchSrc, - DWORD dwPriorityCodePages, - DWORD* pdwCodePages, - long* pcchCodePages); -void __RPC_STUB IMLangCodePages_GetStrCodePages_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangCodePages_CodePageToCodePages_Proxy( - IMLangCodePages* This, - UINT uCodePage, - DWORD* pdwCodePages); -void __RPC_STUB IMLangCodePages_CodePageToCodePages_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangCodePages_CodePagesToCodePage_Proxy( - IMLangCodePages* This, - DWORD dwCodePages, - UINT uDefaultCodePage, - UINT* puCodePage); -void __RPC_STUB IMLangCodePages_CodePagesToCodePage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMLangCodePages_INTERFACE_DEFINED__ */ - -#ifndef __IMLangFontLink_FWD_DEFINED__ -#define __IMLangFontLink_FWD_DEFINED__ -typedef struct IMLangFontLink IMLangFontLink; -#endif - -/***************************************************************************** - * IMLangFontLink interface - */ -#ifndef __IMLangFontLink_INTERFACE_DEFINED__ -#define __IMLangFontLink_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMLangFontLink : public IMLangCodePages -{ - virtual HRESULT STDMETHODCALLTYPE GetFontCodePages( - HDC hDC, - HFONT hFont, - DWORD* pdwCodePages) = 0; - - virtual HRESULT STDMETHODCALLTYPE MapFont( - HDC hDC, - DWORD dwCodePages, - HFONT hSrcFont, - HFONT* phDestFont) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseFont( - HFONT hFont) = 0; - - virtual HRESULT STDMETHODCALLTYPE ResetFontMapping( - ) = 0; - -}; -#else -typedef struct IMLangFontLinkVtbl IMLangFontLinkVtbl; -struct IMLangFontLink { - const IMLangFontLinkVtbl* lpVtbl; -}; -struct IMLangFontLinkVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMLangFontLink* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMLangFontLink* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMLangFontLink* This); - - /*** IMLangCodePages methods ***/ - HRESULT (STDMETHODCALLTYPE *GetCharCodePages)( - IMLangFontLink* This, - WCHAR chSrc, - DWORD* pdwCodePages); - - HRESULT (STDMETHODCALLTYPE *GetStrCodePages)( - IMLangFontLink* This, - const WCHAR* pszSrc, - long cchSrc, - DWORD dwPriorityCodePages, - DWORD* pdwCodePages, - long* pcchCodePages); - - HRESULT (STDMETHODCALLTYPE *CodePageToCodePages)( - IMLangFontLink* This, - UINT uCodePage, - DWORD* pdwCodePages); - - HRESULT (STDMETHODCALLTYPE *CodePagesToCodePage)( - IMLangFontLink* This, - DWORD dwCodePages, - UINT uDefaultCodePage, - UINT* puCodePage); - - /*** IMLangFontLink methods ***/ - HRESULT (STDMETHODCALLTYPE *GetFontCodePages)( - IMLangFontLink* This, - HDC hDC, - HFONT hFont, - DWORD* pdwCodePages); - - HRESULT (STDMETHODCALLTYPE *MapFont)( - IMLangFontLink* This, - HDC hDC, - DWORD dwCodePages, - HFONT hSrcFont, - HFONT* phDestFont); - - HRESULT (STDMETHODCALLTYPE *ReleaseFont)( - IMLangFontLink* This, - HFONT hFont); - - HRESULT (STDMETHODCALLTYPE *ResetFontMapping)( - IMLangFontLink* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMLangFontLink_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMLangFontLink_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMLangFontLink_Release(p) (p)->lpVtbl->Release(p) -/*** IMLangCodePages methods ***/ -#define IMLangFontLink_GetCharCodePages(p,a,b) (p)->lpVtbl->GetCharCodePages(p,a,b) -#define IMLangFontLink_GetStrCodePages(p,a,b,c,d,e) (p)->lpVtbl->GetStrCodePages(p,a,b,c,d,e) -#define IMLangFontLink_CodePageToCodePages(p,a,b) (p)->lpVtbl->CodePageToCodePages(p,a,b) -#define IMLangFontLink_CodePagesToCodePage(p,a,b,c) (p)->lpVtbl->CodePagesToCodePage(p,a,b,c) -/*** IMLangFontLink methods ***/ -#define IMLangFontLink_GetFontCodePages(p,a,b,c) (p)->lpVtbl->GetFontCodePages(p,a,b,c) -#define IMLangFontLink_MapFont(p,a,b,c,d) (p)->lpVtbl->MapFont(p,a,b,c,d) -#define IMLangFontLink_ReleaseFont(p,a) (p)->lpVtbl->ReleaseFont(p,a) -#define IMLangFontLink_ResetFontMapping(p) (p)->lpVtbl->ResetFontMapping(p) -#endif - -#endif - -#define IMLangFontLink_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMLangCodePages methods ***/ \ - STDMETHOD_(HRESULT,GetCharCodePages)(THIS_ WCHAR chSrc, DWORD* pdwCodePages) PURE; \ - STDMETHOD_(HRESULT,GetStrCodePages)(THIS_ const WCHAR* pszSrc, long cchSrc, DWORD dwPriorityCodePages, DWORD* pdwCodePages, long* pcchCodePages) PURE; \ - STDMETHOD_(HRESULT,CodePageToCodePages)(THIS_ UINT uCodePage, DWORD* pdwCodePages) PURE; \ - STDMETHOD_(HRESULT,CodePagesToCodePage)(THIS_ DWORD dwCodePages, UINT uDefaultCodePage, UINT* puCodePage) PURE; \ - /*** IMLangFontLink methods ***/ \ - STDMETHOD_(HRESULT,GetFontCodePages)(THIS_ HDC hDC, HFONT hFont, DWORD* pdwCodePages) PURE; \ - STDMETHOD_(HRESULT,MapFont)(THIS_ HDC hDC, DWORD dwCodePages, HFONT hSrcFont, HFONT* phDestFont) PURE; \ - STDMETHOD_(HRESULT,ReleaseFont)(THIS_ HFONT hFont) PURE; \ - STDMETHOD_(HRESULT,ResetFontMapping)(THIS) PURE; - -HRESULT CALLBACK IMLangFontLink_GetFontCodePages_Proxy( - IMLangFontLink* This, - HDC hDC, - HFONT hFont, - DWORD* pdwCodePages); -void __RPC_STUB IMLangFontLink_GetFontCodePages_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangFontLink_MapFont_Proxy( - IMLangFontLink* This, - HDC hDC, - DWORD dwCodePages, - HFONT hSrcFont, - HFONT* phDestFont); -void __RPC_STUB IMLangFontLink_MapFont_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangFontLink_ReleaseFont_Proxy( - IMLangFontLink* This, - HFONT hFont); -void __RPC_STUB IMLangFontLink_ReleaseFont_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangFontLink_ResetFontMapping_Proxy( - IMLangFontLink* This); -void __RPC_STUB IMLangFontLink_ResetFontMapping_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMLangFontLink_INTERFACE_DEFINED__ */ - -#ifndef __IEnumScript_FWD_DEFINED__ -#define __IEnumScript_FWD_DEFINED__ -typedef struct IEnumScript IEnumScript; -#endif - -#define MAX_SCRIPT_NAME (48) - -#define MAX_MIMEFACE_NAME (32) - -typedef BYTE SCRIPT_ID; - -typedef __int64 SCRIPT_IDS; - -typedef enum tagSCRIPTCONTF { - sidDefault = 0, - sidMerge = sidDefault + 1, - sidAsciiSym = sidMerge + 1, - sidAsciiLatin = sidAsciiSym + 1, - sidLatin = sidAsciiLatin + 1, - sidGreek = sidLatin + 1, - sidCyrillic = sidGreek + 1, - sidArmenian = sidCyrillic + 1, - sidHebrew = sidArmenian + 1, - sidArabic = sidHebrew + 1, - sidDevanagari = sidArabic + 1, - sidBengali = sidDevanagari + 1, - sidGurmukhi = sidBengali + 1, - sidGujarati = sidGurmukhi + 1, - sidOriya = sidGujarati + 1, - sidTamil = sidOriya + 1, - sidTelugu = sidTamil + 1, - sidKannada = sidTelugu + 1, - sidMalayalam = sidKannada + 1, - sidThai = sidMalayalam + 1, - sidLao = sidThai + 1, - sidTibetan = sidLao + 1, - sidGeorgian = sidTibetan + 1, - sidHangul = sidGeorgian + 1, - sidKana = sidHangul + 1, - sidBopomofo = sidKana + 1, - sidHan = sidBopomofo + 1, - sidEthiopic = sidHan + 1, - sidCanSyllabic = sidEthiopic + 1, - sidCherokee = sidCanSyllabic + 1, - sidYi = sidCherokee + 1, - sidBraille = sidYi + 1, - sidRunic = sidBraille + 1, - sidOgham = sidRunic + 1, - sidSinhala = sidOgham + 1, - sidSyriac = sidSinhala + 1, - sidBurmese = sidSyriac + 1, - sidKhmer = sidBurmese + 1, - sidThaana = sidKhmer + 1, - sidMongolian = sidThaana + 1, - sidUserDefined = sidMongolian + 1, - sidLim = sidUserDefined + 1, - sidFEFirst = sidHangul, - sidFELast = sidHan -} SCRIPTCONTF; - -typedef enum tagSCRIPTFONTCONTF { - SCRIPTCONTF_FIXED_FONT = 0x1, - SCRIPTCONTF_PROPORTIONAL_FONT = 0x2, - SCRIPTCONTF_SCRIPT_USER = 0x10000, - SCRIPTCONTF_SCRIPT_HIDE = 0x20000, - SCRIPTCONTF_SCRIPT_SYSTEM = 0x40000 -} SCRIPTFONTCONTF; - -typedef struct tagSCRIPFONTINFO { - SCRIPT_IDS scripts; - WCHAR wszFont[32]; -} SCRIPTFONTINFO, *PSCRIPTFONTINFO; - -typedef struct tagSCRIPTINFO { - SCRIPT_ID ScriptId; - UINT uiCodePage; - WCHAR wszDescription[48]; - WCHAR wszFixedWidthFont[32]; - WCHAR wszProportionalFont[32]; -} SCRIPTINFO, *PSCRIPTINFO; - -/***************************************************************************** - * IEnumScript interface - */ -#ifndef __IEnumScript_INTERFACE_DEFINED__ -#define __IEnumScript_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumScript : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumScript** ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - PSCRIPTINFO rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - -}; -#else -typedef struct IEnumScriptVtbl IEnumScriptVtbl; -struct IEnumScript { - const IEnumScriptVtbl* lpVtbl; -}; -struct IEnumScriptVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumScript* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumScript* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumScript* This); - - /*** IEnumScript methods ***/ - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumScript* This, - IEnumScript** ppEnum); - - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumScript* This, - ULONG celt, - PSCRIPTINFO rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumScript* This); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumScript* This, - ULONG celt); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumScript_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumScript_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumScript_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumScript methods ***/ -#define IEnumScript_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#define IEnumScript_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumScript_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumScript_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#endif - -#endif - -#define IEnumScript_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumScript methods ***/ \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumScript** ppEnum) PURE; \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, PSCRIPTINFO rgelt, ULONG* pceltFetched) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; - -HRESULT CALLBACK IEnumScript_Clone_Proxy( - IEnumScript* This, - IEnumScript** ppEnum); -void __RPC_STUB IEnumScript_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumScript_Next_Proxy( - IEnumScript* This, - ULONG celt, - PSCRIPTINFO rgelt, - ULONG* pceltFetched); -void __RPC_STUB IEnumScript_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumScript_Reset_Proxy( - IEnumScript* This); -void __RPC_STUB IEnumScript_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumScript_Skip_Proxy( - IEnumScript* This, - ULONG celt); -void __RPC_STUB IEnumScript_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumScript_INTERFACE_DEFINED__ */ - -#ifndef __IEnumCodePage_FWD_DEFINED__ -#define __IEnumCodePage_FWD_DEFINED__ -typedef struct IEnumCodePage IEnumCodePage; -#endif - -#define MAX_MIMECP_NAME (64) - -#define MAX_MIMECSET_NAME (50) - -typedef enum tagMIMECONTF { - MIMECONTF_MAILNEWS = 0x1, - MIMECONTF_BROWSER = 0x2, - MIMECONTF_MINIMAL = 0x4, - MIMECONTF_IMPORT = 0x8, - MIMECONTF_SAVABLE_MAILNEWS = 0x100, - MIMECONTF_SAVABLE_BROWSER = 0x200, - MIMECONTF_EXPORT = 0x400, - MIMECONTF_PRIVCONVERTER = 0x10000, - MIMECONTF_VALID = 0x20000, - MIMECONTF_VALID_NLS = 0x40000, - MIMECONTF_MIME_IE4 = 0x10000000, - MIMECONTF_MIME_LATEST = 0x20000000, - MIMECONTF_MIME_REGISTRY = 0x40000000 -} MIMECONTF; - -typedef struct tagMIMECPINFO { - DWORD dwFlags; - UINT uiCodePage; - UINT uiFamilyCodePage; - WCHAR wszDescription[64]; - WCHAR wszWebCharset[50]; - WCHAR wszHeaderCharset[50]; - WCHAR wszBodyCharset[50]; - WCHAR wszFixedWidthFont[32]; - WCHAR wszProportionalFont[32]; - BYTE bGDICharset; -} MIMECPINFO, *PMIMECPINFO; - -typedef struct tagMIMECSETINFO { - UINT uiCodePage; - UINT uiInternetEncoding; - WCHAR wszCharset[50]; -} MIMECSETINFO, *PMIMECSETINFO; - -/***************************************************************************** - * IEnumCodePage interface - */ -#ifndef __IEnumCodePage_INTERFACE_DEFINED__ -#define __IEnumCodePage_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumCodePage : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumCodePage** ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - PMIMECPINFO rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - -}; -#else -typedef struct IEnumCodePageVtbl IEnumCodePageVtbl; -struct IEnumCodePage { - const IEnumCodePageVtbl* lpVtbl; -}; -struct IEnumCodePageVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumCodePage* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumCodePage* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumCodePage* This); - - /*** IEnumCodePage methods ***/ - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumCodePage* This, - IEnumCodePage** ppEnum); - - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumCodePage* This, - ULONG celt, - PMIMECPINFO rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumCodePage* This); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumCodePage* This, - ULONG celt); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumCodePage_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumCodePage_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumCodePage_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumCodePage methods ***/ -#define IEnumCodePage_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#define IEnumCodePage_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumCodePage_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumCodePage_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#endif - -#endif - -#define IEnumCodePage_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumCodePage methods ***/ \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumCodePage** ppEnum) PURE; \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, PMIMECPINFO rgelt, ULONG* pceltFetched) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; - -HRESULT CALLBACK IEnumCodePage_Clone_Proxy( - IEnumCodePage* This, - IEnumCodePage** ppEnum); -void __RPC_STUB IEnumCodePage_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumCodePage_Next_Proxy( - IEnumCodePage* This, - ULONG celt, - PMIMECPINFO rgelt, - ULONG* pceltFetched); -void __RPC_STUB IEnumCodePage_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumCodePage_Reset_Proxy( - IEnumCodePage* This); -void __RPC_STUB IEnumCodePage_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumCodePage_Skip_Proxy( - IEnumCodePage* This, - ULONG celt); -void __RPC_STUB IEnumCodePage_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumCodePage_INTERFACE_DEFINED__ */ - -#ifndef __IMLangConvertCharset_FWD_DEFINED__ -#define __IMLangConvertCharset_FWD_DEFINED__ -typedef struct IMLangConvertCharset IMLangConvertCharset; -#endif - -/***************************************************************************** - * IMLangConvertCharset interface - */ -#ifndef __IMLangConvertCharset_INTERFACE_DEFINED__ -#define __IMLangConvertCharset_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMLangConvertCharset : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Initialize( - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceCodePage( - UINT* puiSrcCodePage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDestinationCodePage( - UINT* puiDstCodePage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetProperty( - DWORD* pdwProperty) = 0; - - virtual HRESULT STDMETHODCALLTYPE DoConversion( - BYTE* pSrcStr, - UINT* pcSrcSize, - BYTE* pDstStr, - UINT* pcDstSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE DoConversionToUnicode( - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE DoConversionFromUnicode( - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize) = 0; - -}; -#else -typedef struct IMLangConvertCharsetVtbl IMLangConvertCharsetVtbl; -struct IMLangConvertCharset { - const IMLangConvertCharsetVtbl* lpVtbl; -}; -struct IMLangConvertCharsetVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMLangConvertCharset* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMLangConvertCharset* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMLangConvertCharset* This); - - /*** IMLangConvertCharset methods ***/ - HRESULT (STDMETHODCALLTYPE *Initialize)( - IMLangConvertCharset* This, - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty); - - HRESULT (STDMETHODCALLTYPE *GetSourceCodePage)( - IMLangConvertCharset* This, - UINT* puiSrcCodePage); - - HRESULT (STDMETHODCALLTYPE *GetDestinationCodePage)( - IMLangConvertCharset* This, - UINT* puiDstCodePage); - - HRESULT (STDMETHODCALLTYPE *GetProperty)( - IMLangConvertCharset* This, - DWORD* pdwProperty); - - HRESULT (STDMETHODCALLTYPE *DoConversion)( - IMLangConvertCharset* This, - BYTE* pSrcStr, - UINT* pcSrcSize, - BYTE* pDstStr, - UINT* pcDstSize); - - HRESULT (STDMETHODCALLTYPE *DoConversionToUnicode)( - IMLangConvertCharset* This, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize); - - HRESULT (STDMETHODCALLTYPE *DoConversionFromUnicode)( - IMLangConvertCharset* This, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMLangConvertCharset_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMLangConvertCharset_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMLangConvertCharset_Release(p) (p)->lpVtbl->Release(p) -/*** IMLangConvertCharset methods ***/ -#define IMLangConvertCharset_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#define IMLangConvertCharset_GetSourceCodePage(p,a) (p)->lpVtbl->GetSourceCodePage(p,a) -#define IMLangConvertCharset_GetDestinationCodePage(p,a) (p)->lpVtbl->GetDestinationCodePage(p,a) -#define IMLangConvertCharset_GetProperty(p,a) (p)->lpVtbl->GetProperty(p,a) -#define IMLangConvertCharset_DoConversion(p,a,b,c,d) (p)->lpVtbl->DoConversion(p,a,b,c,d) -#define IMLangConvertCharset_DoConversionToUnicode(p,a,b,c,d) (p)->lpVtbl->DoConversionToUnicode(p,a,b,c,d) -#define IMLangConvertCharset_DoConversionFromUnicode(p,a,b,c,d) (p)->lpVtbl->DoConversionFromUnicode(p,a,b,c,d) -#endif - -#endif - -#define IMLangConvertCharset_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMLangConvertCharset methods ***/ \ - STDMETHOD_(HRESULT,Initialize)(THIS_ UINT uiSrcCodePage, UINT uiDstCodePage, DWORD dwProperty) PURE; \ - STDMETHOD_(HRESULT,GetSourceCodePage)(THIS_ UINT* puiSrcCodePage) PURE; \ - STDMETHOD_(HRESULT,GetDestinationCodePage)(THIS_ UINT* puiDstCodePage) PURE; \ - STDMETHOD_(HRESULT,GetProperty)(THIS_ DWORD* pdwProperty) PURE; \ - STDMETHOD_(HRESULT,DoConversion)(THIS_ BYTE* pSrcStr, UINT* pcSrcSize, BYTE* pDstStr, UINT* pcDstSize) PURE; \ - STDMETHOD_(HRESULT,DoConversionToUnicode)(THIS_ CHAR* pSrcStr, UINT* pcSrcSize, WCHAR* pDstStr, UINT* pcDstSize) PURE; \ - STDMETHOD_(HRESULT,DoConversionFromUnicode)(THIS_ WCHAR* pSrcStr, UINT* pcSrcSize, CHAR* pDstStr, UINT* pcDstSize) PURE; - -HRESULT CALLBACK IMLangConvertCharset_Initialize_Proxy( - IMLangConvertCharset* This, - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty); -void __RPC_STUB IMLangConvertCharset_Initialize_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangConvertCharset_GetSourceCodePage_Proxy( - IMLangConvertCharset* This, - UINT* puiSrcCodePage); -void __RPC_STUB IMLangConvertCharset_GetSourceCodePage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangConvertCharset_GetDestinationCodePage_Proxy( - IMLangConvertCharset* This, - UINT* puiDstCodePage); -void __RPC_STUB IMLangConvertCharset_GetDestinationCodePage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangConvertCharset_GetProperty_Proxy( - IMLangConvertCharset* This, - DWORD* pdwProperty); -void __RPC_STUB IMLangConvertCharset_GetProperty_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangConvertCharset_DoConversion_Proxy( - IMLangConvertCharset* This, - BYTE* pSrcStr, - UINT* pcSrcSize, - BYTE* pDstStr, - UINT* pcDstSize); -void __RPC_STUB IMLangConvertCharset_DoConversion_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangConvertCharset_DoConversionToUnicode_Proxy( - IMLangConvertCharset* This, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize); -void __RPC_STUB IMLangConvertCharset_DoConversionToUnicode_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMLangConvertCharset_DoConversionFromUnicode_Proxy( - IMLangConvertCharset* This, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize); -void __RPC_STUB IMLangConvertCharset_DoConversionFromUnicode_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMLangConvertCharset_INTERFACE_DEFINED__ */ - -#ifndef __IEnumRfc1766_FWD_DEFINED__ -#define __IEnumRfc1766_FWD_DEFINED__ -typedef struct IEnumRfc1766 IEnumRfc1766; -#endif - -typedef struct tagRFC1766INFO { - LCID lcid; - WCHAR wszRfc1766[1]; - WCHAR wszLocaleName[1]; -} RFC1766INFO, *PRFC1766INFO; - -/***************************************************************************** - * IEnumRfc1766 interface - */ -#ifndef __IEnumRfc1766_INTERFACE_DEFINED__ -#define __IEnumRfc1766_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumRfc1766 : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumRfc1766** ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - PRFC1766INFO rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - -}; -#else -typedef struct IEnumRfc1766Vtbl IEnumRfc1766Vtbl; -struct IEnumRfc1766 { - const IEnumRfc1766Vtbl* lpVtbl; -}; -struct IEnumRfc1766Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumRfc1766* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumRfc1766* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumRfc1766* This); - - /*** IEnumRfc1766 methods ***/ - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumRfc1766* This, - IEnumRfc1766** ppEnum); - - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumRfc1766* This, - ULONG celt, - PRFC1766INFO rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumRfc1766* This); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumRfc1766* This, - ULONG celt); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumRfc1766_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumRfc1766_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumRfc1766_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumRfc1766 methods ***/ -#define IEnumRfc1766_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#define IEnumRfc1766_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumRfc1766_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumRfc1766_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#endif - -#endif - -#define IEnumRfc1766_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumRfc1766 methods ***/ \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumRfc1766** ppEnum) PURE; \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, PRFC1766INFO rgelt, ULONG* pceltFetched) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; - -HRESULT CALLBACK IEnumRfc1766_Clone_Proxy( - IEnumRfc1766* This, - IEnumRfc1766** ppEnum); -void __RPC_STUB IEnumRfc1766_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumRfc1766_Next_Proxy( - IEnumRfc1766* This, - ULONG celt, - PRFC1766INFO rgelt, - ULONG* pceltFetched); -void __RPC_STUB IEnumRfc1766_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumRfc1766_Reset_Proxy( - IEnumRfc1766* This); -void __RPC_STUB IEnumRfc1766_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumRfc1766_Skip_Proxy( - IEnumRfc1766* This, - ULONG celt); -void __RPC_STUB IEnumRfc1766_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumRfc1766_INTERFACE_DEFINED__ */ - -#ifndef __IMultiLanguage_FWD_DEFINED__ -#define __IMultiLanguage_FWD_DEFINED__ -typedef struct IMultiLanguage IMultiLanguage; -#endif - -/***************************************************************************** - * IMultiLanguage interface - */ -#ifndef __IMultiLanguage_INTERFACE_DEFINED__ -#define __IMultiLanguage_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMultiLanguage : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetNumberOfCodePageInfo( - UINT* pcCodePage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCodePageInfo( - UINT uiCodePage, - PMIMECPINFO pCodePageInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFamilyCodePage( - UINT uiCodePage, - UINT* puiFamilyCodePage) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumCodePages( - DWORD grfFlags, - IEnumCodePage** ppEnumCodePage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCharsetInfo( - BSTR Charset, - PMIMECSETINFO pCharsetInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsConvertible( - DWORD dwSrcEncoding, - DWORD dwDstEncoding) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertString( - DWORD* pdwMode, - DWORD dwSrcEncoding, - DWORD dwDstEncoding, - BYTE* pSrcStr, - UINT* pcSrcSize, - BYTE* pDstStr, - UINT* pcDstSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertStringToUnicode( - DWORD* pdwMode, - DWORD dwEncoding, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertStringFromUnicode( - DWORD* pdwMode, - DWORD dwEncoding, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertStringReset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRfc1766FromLcid( - LCID Locale, - BSTR* pbstrRfc1766) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLcidFromRfc1766( - LCID* pLocale, - BSTR bstrRfc1766) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumRfc1766( - IEnumRfc1766** ppEnumRfc1766) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRfc1766Info( - LCID Locale, - PRFC1766INFO pRfc1766Info) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateConvertCharset( - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty, - IMLangConvertCharset** ppMLangConvertCharset) = 0; - -}; -#else -typedef struct IMultiLanguageVtbl IMultiLanguageVtbl; -struct IMultiLanguage { - const IMultiLanguageVtbl* lpVtbl; -}; -struct IMultiLanguageVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMultiLanguage* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMultiLanguage* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMultiLanguage* This); - - /*** IMultiLanguage methods ***/ - HRESULT (STDMETHODCALLTYPE *GetNumberOfCodePageInfo)( - IMultiLanguage* This, - UINT* pcCodePage); - - HRESULT (STDMETHODCALLTYPE *GetCodePageInfo)( - IMultiLanguage* This, - UINT uiCodePage, - PMIMECPINFO pCodePageInfo); - - HRESULT (STDMETHODCALLTYPE *GetFamilyCodePage)( - IMultiLanguage* This, - UINT uiCodePage, - UINT* puiFamilyCodePage); - - HRESULT (STDMETHODCALLTYPE *EnumCodePages)( - IMultiLanguage* This, - DWORD grfFlags, - IEnumCodePage** ppEnumCodePage); - - HRESULT (STDMETHODCALLTYPE *GetCharsetInfo)( - IMultiLanguage* This, - BSTR Charset, - PMIMECSETINFO pCharsetInfo); - - HRESULT (STDMETHODCALLTYPE *IsConvertible)( - IMultiLanguage* This, - DWORD dwSrcEncoding, - DWORD dwDstEncoding); - - HRESULT (STDMETHODCALLTYPE *ConvertString)( - IMultiLanguage* This, - DWORD* pdwMode, - DWORD dwSrcEncoding, - DWORD dwDstEncoding, - BYTE* pSrcStr, - UINT* pcSrcSize, - BYTE* pDstStr, - UINT* pcDstSize); - - HRESULT (STDMETHODCALLTYPE *ConvertStringToUnicode)( - IMultiLanguage* This, - DWORD* pdwMode, - DWORD dwEncoding, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize); - - HRESULT (STDMETHODCALLTYPE *ConvertStringFromUnicode)( - IMultiLanguage* This, - DWORD* pdwMode, - DWORD dwEncoding, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize); - - HRESULT (STDMETHODCALLTYPE *ConvertStringReset)( - IMultiLanguage* This); - - HRESULT (STDMETHODCALLTYPE *GetRfc1766FromLcid)( - IMultiLanguage* This, - LCID Locale, - BSTR* pbstrRfc1766); - - HRESULT (STDMETHODCALLTYPE *GetLcidFromRfc1766)( - IMultiLanguage* This, - LCID* pLocale, - BSTR bstrRfc1766); - - HRESULT (STDMETHODCALLTYPE *EnumRfc1766)( - IMultiLanguage* This, - IEnumRfc1766** ppEnumRfc1766); - - HRESULT (STDMETHODCALLTYPE *GetRfc1766Info)( - IMultiLanguage* This, - LCID Locale, - PRFC1766INFO pRfc1766Info); - - HRESULT (STDMETHODCALLTYPE *CreateConvertCharset)( - IMultiLanguage* This, - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty, - IMLangConvertCharset** ppMLangConvertCharset); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMultiLanguage_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMultiLanguage_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMultiLanguage_Release(p) (p)->lpVtbl->Release(p) -/*** IMultiLanguage methods ***/ -#define IMultiLanguage_GetNumberOfCodePageInfo(p,a) (p)->lpVtbl->GetNumberOfCodePageInfo(p,a) -#define IMultiLanguage_GetCodePageInfo(p,a,b) (p)->lpVtbl->GetCodePageInfo(p,a,b) -#define IMultiLanguage_GetFamilyCodePage(p,a,b) (p)->lpVtbl->GetFamilyCodePage(p,a,b) -#define IMultiLanguage_EnumCodePages(p,a,b) (p)->lpVtbl->EnumCodePages(p,a,b) -#define IMultiLanguage_GetCharsetInfo(p,a,b) (p)->lpVtbl->GetCharsetInfo(p,a,b) -#define IMultiLanguage_IsConvertible(p,a,b) (p)->lpVtbl->IsConvertible(p,a,b) -#define IMultiLanguage_ConvertString(p,a,b,c,d,e,f,g) (p)->lpVtbl->ConvertString(p,a,b,c,d,e,f,g) -#define IMultiLanguage_ConvertStringToUnicode(p,a,b,c,d,e,f) (p)->lpVtbl->ConvertStringToUnicode(p,a,b,c,d,e,f) -#define IMultiLanguage_ConvertStringFromUnicode(p,a,b,c,d,e,f) (p)->lpVtbl->ConvertStringFromUnicode(p,a,b,c,d,e,f) -#define IMultiLanguage_ConvertStringReset(p) (p)->lpVtbl->ConvertStringReset(p) -#define IMultiLanguage_GetRfc1766FromLcid(p,a,b) (p)->lpVtbl->GetRfc1766FromLcid(p,a,b) -#define IMultiLanguage_GetLcidFromRfc1766(p,a,b) (p)->lpVtbl->GetLcidFromRfc1766(p,a,b) -#define IMultiLanguage_EnumRfc1766(p,a) (p)->lpVtbl->EnumRfc1766(p,a) -#define IMultiLanguage_GetRfc1766Info(p,a,b) (p)->lpVtbl->GetRfc1766Info(p,a,b) -#define IMultiLanguage_CreateConvertCharset(p,a,b,c,d) (p)->lpVtbl->CreateConvertCharset(p,a,b,c,d) -#endif - -#endif - -#define IMultiLanguage_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMultiLanguage methods ***/ \ - STDMETHOD_(HRESULT,GetNumberOfCodePageInfo)(THIS_ UINT* pcCodePage) PURE; \ - STDMETHOD_(HRESULT,GetCodePageInfo)(THIS_ UINT uiCodePage, PMIMECPINFO pCodePageInfo) PURE; \ - STDMETHOD_(HRESULT,GetFamilyCodePage)(THIS_ UINT uiCodePage, UINT* puiFamilyCodePage) PURE; \ - STDMETHOD_(HRESULT,EnumCodePages)(THIS_ DWORD grfFlags, IEnumCodePage** ppEnumCodePage) PURE; \ - STDMETHOD_(HRESULT,GetCharsetInfo)(THIS_ BSTR Charset, PMIMECSETINFO pCharsetInfo) PURE; \ - STDMETHOD_(HRESULT,IsConvertible)(THIS_ DWORD dwSrcEncoding, DWORD dwDstEncoding) PURE; \ - STDMETHOD_(HRESULT,ConvertString)(THIS_ DWORD* pdwMode, DWORD dwSrcEncoding, DWORD dwDstEncoding, BYTE* pSrcStr, UINT* pcSrcSize, BYTE* pDstStr, UINT* pcDstSize) PURE; \ - STDMETHOD_(HRESULT,ConvertStringToUnicode)(THIS_ DWORD* pdwMode, DWORD dwEncoding, CHAR* pSrcStr, UINT* pcSrcSize, WCHAR* pDstStr, UINT* pcDstSize) PURE; \ - STDMETHOD_(HRESULT,ConvertStringFromUnicode)(THIS_ DWORD* pdwMode, DWORD dwEncoding, WCHAR* pSrcStr, UINT* pcSrcSize, CHAR* pDstStr, UINT* pcDstSize) PURE; \ - STDMETHOD_(HRESULT,ConvertStringReset)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetRfc1766FromLcid)(THIS_ LCID Locale, BSTR* pbstrRfc1766) PURE; \ - STDMETHOD_(HRESULT,GetLcidFromRfc1766)(THIS_ LCID* pLocale, BSTR bstrRfc1766) PURE; \ - STDMETHOD_(HRESULT,EnumRfc1766)(THIS_ IEnumRfc1766** ppEnumRfc1766) PURE; \ - STDMETHOD_(HRESULT,GetRfc1766Info)(THIS_ LCID Locale, PRFC1766INFO pRfc1766Info) PURE; \ - STDMETHOD_(HRESULT,CreateConvertCharset)(THIS_ UINT uiSrcCodePage, UINT uiDstCodePage, DWORD dwProperty, IMLangConvertCharset** ppMLangConvertCharset) PURE; - -HRESULT CALLBACK IMultiLanguage_GetNumberOfCodePageInfo_Proxy( - IMultiLanguage* This, - UINT* pcCodePage); -void __RPC_STUB IMultiLanguage_GetNumberOfCodePageInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_GetCodePageInfo_Proxy( - IMultiLanguage* This, - UINT uiCodePage, - PMIMECPINFO pCodePageInfo); -void __RPC_STUB IMultiLanguage_GetCodePageInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_GetFamilyCodePage_Proxy( - IMultiLanguage* This, - UINT uiCodePage, - UINT* puiFamilyCodePage); -void __RPC_STUB IMultiLanguage_GetFamilyCodePage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_EnumCodePages_Proxy( - IMultiLanguage* This, - DWORD grfFlags, - IEnumCodePage** ppEnumCodePage); -void __RPC_STUB IMultiLanguage_EnumCodePages_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_GetCharsetInfo_Proxy( - IMultiLanguage* This, - BSTR Charset, - PMIMECSETINFO pCharsetInfo); -void __RPC_STUB IMultiLanguage_GetCharsetInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_IsConvertible_Proxy( - IMultiLanguage* This, - DWORD dwSrcEncoding, - DWORD dwDstEncoding); -void __RPC_STUB IMultiLanguage_IsConvertible_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_ConvertString_Proxy( - IMultiLanguage* This, - DWORD* pdwMode, - DWORD dwSrcEncoding, - DWORD dwDstEncoding, - BYTE* pSrcStr, - UINT* pcSrcSize, - BYTE* pDstStr, - UINT* pcDstSize); -void __RPC_STUB IMultiLanguage_ConvertString_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_ConvertStringToUnicode_Proxy( - IMultiLanguage* This, - DWORD* pdwMode, - DWORD dwEncoding, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize); -void __RPC_STUB IMultiLanguage_ConvertStringToUnicode_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_ConvertStringFromUnicode_Proxy( - IMultiLanguage* This, - DWORD* pdwMode, - DWORD dwEncoding, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize); -void __RPC_STUB IMultiLanguage_ConvertStringFromUnicode_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_ConvertStringReset_Proxy( - IMultiLanguage* This); -void __RPC_STUB IMultiLanguage_ConvertStringReset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_GetRfc1766FromLcid_Proxy( - IMultiLanguage* This, - LCID Locale, - BSTR* pbstrRfc1766); -void __RPC_STUB IMultiLanguage_GetRfc1766FromLcid_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_GetLcidFromRfc1766_Proxy( - IMultiLanguage* This, - LCID* pLocale, - BSTR bstrRfc1766); -void __RPC_STUB IMultiLanguage_GetLcidFromRfc1766_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_EnumRfc1766_Proxy( - IMultiLanguage* This, - IEnumRfc1766** ppEnumRfc1766); -void __RPC_STUB IMultiLanguage_EnumRfc1766_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_GetRfc1766Info_Proxy( - IMultiLanguage* This, - LCID Locale, - PRFC1766INFO pRfc1766Info); -void __RPC_STUB IMultiLanguage_GetRfc1766Info_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage_CreateConvertCharset_Proxy( - IMultiLanguage* This, - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty, - IMLangConvertCharset** ppMLangConvertCharset); -void __RPC_STUB IMultiLanguage_CreateConvertCharset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMultiLanguage_INTERFACE_DEFINED__ */ - -#ifndef __IMultiLanguage2_FWD_DEFINED__ -#define __IMultiLanguage2_FWD_DEFINED__ -typedef struct IMultiLanguage2 IMultiLanguage2; -#endif - -typedef struct tagDetectEncodingInfo { - UINT nLangID; - UINT nCodePage; - INT nDocPercent; - INT nConfidence; -} DetectEncodingInfo, *pDetectEncodingInfo; - -/***************************************************************************** - * IMultiLanguage2 interface - */ -#ifndef __IMultiLanguage2_INTERFACE_DEFINED__ -#define __IMultiLanguage2_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMultiLanguage2 : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetNumberOfCodePageInfo( - UINT* pcCodePage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCodePageInfo( - UINT uiCodePage, - LANGID LangId, - PMIMECPINFO pCodePageInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFamilyCodePage( - UINT uiCodePage, - UINT* puiFamilyCodePage) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumCodePages( - DWORD grfFlags, - LANGID LangId, - IEnumCodePage** ppEnumCodePage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCharsetInfo( - BSTR Charset, - PMIMECSETINFO pCharsetInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsConvertible( - DWORD dwSrcEncoding, - DWORD dwDstEncoding) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertString( - DWORD* pdwMode, - DWORD dwSrcEncoding, - DWORD dwDstEncoding, - BYTE* pSrcStr, - UINT* pcSrcSize, - BYTE* pDstStr, - UINT* pcDstSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertStringToUnicode( - DWORD* pdwMode, - DWORD dwEncoding, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertStringFromUnicode( - DWORD* pdwMode, - DWORD dwEncoding, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertStringReset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRfc1766FromLcid( - LCID Locale, - BSTR* pbstrRfc1766) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLcidFromRfc1766( - LCID* pLocale, - BSTR bstrRfc1766) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumRfc1766( - LANGID LangId, - IEnumRfc1766** ppEnumRfc1766) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRfc1766Info( - LCID Locale, - LANGID LangId, - PRFC1766INFO pRfc1766Info) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateConvertCharset( - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty, - IMLangConvertCharset** ppMLangConvertCharset) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertStringInIStream( - DWORD* pdwMode, - DWORD dwFlag, - WCHAR* lpFallBack, - DWORD dwSrcEncoding, - DWORD dwDstEncoding, - IStream* pstmIn, - IStream* pstmOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertStringToUnicodeEx( - DWORD* pdwMode, - DWORD dwEncoding, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize, - DWORD dwFlag, - WCHAR* lpFallBack) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertStringFromUnicodeEx( - DWORD* pdwMode, - DWORD dwEncoding, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize, - DWORD dwFlag, - WCHAR* lpFallBack) = 0; - - virtual HRESULT STDMETHODCALLTYPE DetectCodepageInIStream( - DWORD dwFlag, - DWORD dwPrefWinCodePage, - IStream* pstmIn, - DetectEncodingInfo* lpEncoding, - INT* pnScores) = 0; - - virtual HRESULT STDMETHODCALLTYPE DetectInputCodepage( - DWORD dwFlag, - DWORD dwPrefWinCodePage, - CHAR* pSrcStr, - INT* pcSrcSize, - DetectEncodingInfo* lpEncoding, - INT* pnScores) = 0; - - virtual HRESULT STDMETHODCALLTYPE ValidateCodePage( - UINT uiCodePage, - HWND hwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCodePageDescription( - UINT uiCodePage, - LCID lcid, - LPWSTR lpWideCharStr, - int cchWideChar) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsCodePageInstallable( - UINT uiCodePage) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMimeDBSource( - MIMECONTF dwSource) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNumberOfScripts( - UINT* pnScripts) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumScripts( - DWORD dwFlags, - LANGID LangId, - IEnumScript** ppEnumScript) = 0; - - virtual HRESULT STDMETHODCALLTYPE ValidateCodePageEx( - UINT uiCodePage, - HWND hwnd, - DWORD dwfIODControl) = 0; - -}; -#else -typedef struct IMultiLanguage2Vtbl IMultiLanguage2Vtbl; -struct IMultiLanguage2 { - const IMultiLanguage2Vtbl* lpVtbl; -}; -struct IMultiLanguage2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMultiLanguage2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMultiLanguage2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMultiLanguage2* This); - - /*** IMultiLanguage2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetNumberOfCodePageInfo)( - IMultiLanguage2* This, - UINT* pcCodePage); - - HRESULT (STDMETHODCALLTYPE *GetCodePageInfo)( - IMultiLanguage2* This, - UINT uiCodePage, - LANGID LangId, - PMIMECPINFO pCodePageInfo); - - HRESULT (STDMETHODCALLTYPE *GetFamilyCodePage)( - IMultiLanguage2* This, - UINT uiCodePage, - UINT* puiFamilyCodePage); - - HRESULT (STDMETHODCALLTYPE *EnumCodePages)( - IMultiLanguage2* This, - DWORD grfFlags, - LANGID LangId, - IEnumCodePage** ppEnumCodePage); - - HRESULT (STDMETHODCALLTYPE *GetCharsetInfo)( - IMultiLanguage2* This, - BSTR Charset, - PMIMECSETINFO pCharsetInfo); - - HRESULT (STDMETHODCALLTYPE *IsConvertible)( - IMultiLanguage2* This, - DWORD dwSrcEncoding, - DWORD dwDstEncoding); - - HRESULT (STDMETHODCALLTYPE *ConvertString)( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwSrcEncoding, - DWORD dwDstEncoding, - BYTE* pSrcStr, - UINT* pcSrcSize, - BYTE* pDstStr, - UINT* pcDstSize); - - HRESULT (STDMETHODCALLTYPE *ConvertStringToUnicode)( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwEncoding, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize); - - HRESULT (STDMETHODCALLTYPE *ConvertStringFromUnicode)( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwEncoding, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize); - - HRESULT (STDMETHODCALLTYPE *ConvertStringReset)( - IMultiLanguage2* This); - - HRESULT (STDMETHODCALLTYPE *GetRfc1766FromLcid)( - IMultiLanguage2* This, - LCID Locale, - BSTR* pbstrRfc1766); - - HRESULT (STDMETHODCALLTYPE *GetLcidFromRfc1766)( - IMultiLanguage2* This, - LCID* pLocale, - BSTR bstrRfc1766); - - HRESULT (STDMETHODCALLTYPE *EnumRfc1766)( - IMultiLanguage2* This, - LANGID LangId, - IEnumRfc1766** ppEnumRfc1766); - - HRESULT (STDMETHODCALLTYPE *GetRfc1766Info)( - IMultiLanguage2* This, - LCID Locale, - LANGID LangId, - PRFC1766INFO pRfc1766Info); - - HRESULT (STDMETHODCALLTYPE *CreateConvertCharset)( - IMultiLanguage2* This, - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty, - IMLangConvertCharset** ppMLangConvertCharset); - - HRESULT (STDMETHODCALLTYPE *ConvertStringInIStream)( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwFlag, - WCHAR* lpFallBack, - DWORD dwSrcEncoding, - DWORD dwDstEncoding, - IStream* pstmIn, - IStream* pstmOut); - - HRESULT (STDMETHODCALLTYPE *ConvertStringToUnicodeEx)( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwEncoding, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize, - DWORD dwFlag, - WCHAR* lpFallBack); - - HRESULT (STDMETHODCALLTYPE *ConvertStringFromUnicodeEx)( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwEncoding, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize, - DWORD dwFlag, - WCHAR* lpFallBack); - - HRESULT (STDMETHODCALLTYPE *DetectCodepageInIStream)( - IMultiLanguage2* This, - DWORD dwFlag, - DWORD dwPrefWinCodePage, - IStream* pstmIn, - DetectEncodingInfo* lpEncoding, - INT* pnScores); - - HRESULT (STDMETHODCALLTYPE *DetectInputCodepage)( - IMultiLanguage2* This, - DWORD dwFlag, - DWORD dwPrefWinCodePage, - CHAR* pSrcStr, - INT* pcSrcSize, - DetectEncodingInfo* lpEncoding, - INT* pnScores); - - HRESULT (STDMETHODCALLTYPE *ValidateCodePage)( - IMultiLanguage2* This, - UINT uiCodePage, - HWND hwnd); - - HRESULT (STDMETHODCALLTYPE *GetCodePageDescription)( - IMultiLanguage2* This, - UINT uiCodePage, - LCID lcid, - LPWSTR lpWideCharStr, - int cchWideChar); - - HRESULT (STDMETHODCALLTYPE *IsCodePageInstallable)( - IMultiLanguage2* This, - UINT uiCodePage); - - HRESULT (STDMETHODCALLTYPE *SetMimeDBSource)( - IMultiLanguage2* This, - MIMECONTF dwSource); - - HRESULT (STDMETHODCALLTYPE *GetNumberOfScripts)( - IMultiLanguage2* This, - UINT* pnScripts); - - HRESULT (STDMETHODCALLTYPE *EnumScripts)( - IMultiLanguage2* This, - DWORD dwFlags, - LANGID LangId, - IEnumScript** ppEnumScript); - - HRESULT (STDMETHODCALLTYPE *ValidateCodePageEx)( - IMultiLanguage2* This, - UINT uiCodePage, - HWND hwnd, - DWORD dwfIODControl); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMultiLanguage2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMultiLanguage2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMultiLanguage2_Release(p) (p)->lpVtbl->Release(p) -/*** IMultiLanguage2 methods ***/ -#define IMultiLanguage2_GetNumberOfCodePageInfo(p,a) (p)->lpVtbl->GetNumberOfCodePageInfo(p,a) -#define IMultiLanguage2_GetCodePageInfo(p,a,b,c) (p)->lpVtbl->GetCodePageInfo(p,a,b,c) -#define IMultiLanguage2_GetFamilyCodePage(p,a,b) (p)->lpVtbl->GetFamilyCodePage(p,a,b) -#define IMultiLanguage2_EnumCodePages(p,a,b,c) (p)->lpVtbl->EnumCodePages(p,a,b,c) -#define IMultiLanguage2_GetCharsetInfo(p,a,b) (p)->lpVtbl->GetCharsetInfo(p,a,b) -#define IMultiLanguage2_IsConvertible(p,a,b) (p)->lpVtbl->IsConvertible(p,a,b) -#define IMultiLanguage2_ConvertString(p,a,b,c,d,e,f,g) (p)->lpVtbl->ConvertString(p,a,b,c,d,e,f,g) -#define IMultiLanguage2_ConvertStringToUnicode(p,a,b,c,d,e,f) (p)->lpVtbl->ConvertStringToUnicode(p,a,b,c,d,e,f) -#define IMultiLanguage2_ConvertStringFromUnicode(p,a,b,c,d,e,f) (p)->lpVtbl->ConvertStringFromUnicode(p,a,b,c,d,e,f) -#define IMultiLanguage2_ConvertStringReset(p) (p)->lpVtbl->ConvertStringReset(p) -#define IMultiLanguage2_GetRfc1766FromLcid(p,a,b) (p)->lpVtbl->GetRfc1766FromLcid(p,a,b) -#define IMultiLanguage2_GetLcidFromRfc1766(p,a,b) (p)->lpVtbl->GetLcidFromRfc1766(p,a,b) -#define IMultiLanguage2_EnumRfc1766(p,a,b) (p)->lpVtbl->EnumRfc1766(p,a,b) -#define IMultiLanguage2_GetRfc1766Info(p,a,b,c) (p)->lpVtbl->GetRfc1766Info(p,a,b,c) -#define IMultiLanguage2_CreateConvertCharset(p,a,b,c,d) (p)->lpVtbl->CreateConvertCharset(p,a,b,c,d) -#define IMultiLanguage2_ConvertStringInIStream(p,a,b,c,d,e,f,g) (p)->lpVtbl->ConvertStringInIStream(p,a,b,c,d,e,f,g) -#define IMultiLanguage2_ConvertStringToUnicodeEx(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->ConvertStringToUnicodeEx(p,a,b,c,d,e,f,g,h) -#define IMultiLanguage2_ConvertStringFromUnicodeEx(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->ConvertStringFromUnicodeEx(p,a,b,c,d,e,f,g,h) -#define IMultiLanguage2_DetectCodepageInIStream(p,a,b,c,d,e) (p)->lpVtbl->DetectCodepageInIStream(p,a,b,c,d,e) -#define IMultiLanguage2_DetectInputCodepage(p,a,b,c,d,e,f) (p)->lpVtbl->DetectInputCodepage(p,a,b,c,d,e,f) -#define IMultiLanguage2_ValidateCodePage(p,a,b) (p)->lpVtbl->ValidateCodePage(p,a,b) -#define IMultiLanguage2_GetCodePageDescription(p,a,b,c,d) (p)->lpVtbl->GetCodePageDescription(p,a,b,c,d) -#define IMultiLanguage2_IsCodePageInstallable(p,a) (p)->lpVtbl->IsCodePageInstallable(p,a) -#define IMultiLanguage2_SetMimeDBSource(p,a) (p)->lpVtbl->SetMimeDBSource(p,a) -#define IMultiLanguage2_GetNumberOfScripts(p,a) (p)->lpVtbl->GetNumberOfScripts(p,a) -#define IMultiLanguage2_EnumScripts(p,a,b,c) (p)->lpVtbl->EnumScripts(p,a,b,c) -#define IMultiLanguage2_ValidateCodePageEx(p,a,b,c) (p)->lpVtbl->ValidateCodePageEx(p,a,b,c) -#endif - -#endif - -#define IMultiLanguage2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMultiLanguage2 methods ***/ \ - STDMETHOD_(HRESULT,GetNumberOfCodePageInfo)(THIS_ UINT* pcCodePage) PURE; \ - STDMETHOD_(HRESULT,GetCodePageInfo)(THIS_ UINT uiCodePage, LANGID LangId, PMIMECPINFO pCodePageInfo) PURE; \ - STDMETHOD_(HRESULT,GetFamilyCodePage)(THIS_ UINT uiCodePage, UINT* puiFamilyCodePage) PURE; \ - STDMETHOD_(HRESULT,EnumCodePages)(THIS_ DWORD grfFlags, LANGID LangId, IEnumCodePage** ppEnumCodePage) PURE; \ - STDMETHOD_(HRESULT,GetCharsetInfo)(THIS_ BSTR Charset, PMIMECSETINFO pCharsetInfo) PURE; \ - STDMETHOD_(HRESULT,IsConvertible)(THIS_ DWORD dwSrcEncoding, DWORD dwDstEncoding) PURE; \ - STDMETHOD_(HRESULT,ConvertString)(THIS_ DWORD* pdwMode, DWORD dwSrcEncoding, DWORD dwDstEncoding, BYTE* pSrcStr, UINT* pcSrcSize, BYTE* pDstStr, UINT* pcDstSize) PURE; \ - STDMETHOD_(HRESULT,ConvertStringToUnicode)(THIS_ DWORD* pdwMode, DWORD dwEncoding, CHAR* pSrcStr, UINT* pcSrcSize, WCHAR* pDstStr, UINT* pcDstSize) PURE; \ - STDMETHOD_(HRESULT,ConvertStringFromUnicode)(THIS_ DWORD* pdwMode, DWORD dwEncoding, WCHAR* pSrcStr, UINT* pcSrcSize, CHAR* pDstStr, UINT* pcDstSize) PURE; \ - STDMETHOD_(HRESULT,ConvertStringReset)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetRfc1766FromLcid)(THIS_ LCID Locale, BSTR* pbstrRfc1766) PURE; \ - STDMETHOD_(HRESULT,GetLcidFromRfc1766)(THIS_ LCID* pLocale, BSTR bstrRfc1766) PURE; \ - STDMETHOD_(HRESULT,EnumRfc1766)(THIS_ LANGID LangId, IEnumRfc1766** ppEnumRfc1766) PURE; \ - STDMETHOD_(HRESULT,GetRfc1766Info)(THIS_ LCID Locale, LANGID LangId, PRFC1766INFO pRfc1766Info) PURE; \ - STDMETHOD_(HRESULT,CreateConvertCharset)(THIS_ UINT uiSrcCodePage, UINT uiDstCodePage, DWORD dwProperty, IMLangConvertCharset** ppMLangConvertCharset) PURE; \ - STDMETHOD_(HRESULT,ConvertStringInIStream)(THIS_ DWORD* pdwMode, DWORD dwFlag, WCHAR* lpFallBack, DWORD dwSrcEncoding, DWORD dwDstEncoding, IStream* pstmIn, IStream* pstmOut) PURE; \ - STDMETHOD_(HRESULT,ConvertStringToUnicodeEx)(THIS_ DWORD* pdwMode, DWORD dwEncoding, CHAR* pSrcStr, UINT* pcSrcSize, WCHAR* pDstStr, UINT* pcDstSize, DWORD dwFlag, WCHAR* lpFallBack) PURE; \ - STDMETHOD_(HRESULT,ConvertStringFromUnicodeEx)(THIS_ DWORD* pdwMode, DWORD dwEncoding, WCHAR* pSrcStr, UINT* pcSrcSize, CHAR* pDstStr, UINT* pcDstSize, DWORD dwFlag, WCHAR* lpFallBack) PURE; \ - STDMETHOD_(HRESULT,DetectCodepageInIStream)(THIS_ DWORD dwFlag, DWORD dwPrefWinCodePage, IStream* pstmIn, DetectEncodingInfo* lpEncoding, INT* pnScores) PURE; \ - STDMETHOD_(HRESULT,DetectInputCodepage)(THIS_ DWORD dwFlag, DWORD dwPrefWinCodePage, CHAR* pSrcStr, INT* pcSrcSize, DetectEncodingInfo* lpEncoding, INT* pnScores) PURE; \ - STDMETHOD_(HRESULT,ValidateCodePage)(THIS_ UINT uiCodePage, HWND hwnd) PURE; \ - STDMETHOD_(HRESULT,GetCodePageDescription)(THIS_ UINT uiCodePage, LCID lcid, LPWSTR lpWideCharStr, int cchWideChar) PURE; \ - STDMETHOD_(HRESULT,IsCodePageInstallable)(THIS_ UINT uiCodePage) PURE; \ - STDMETHOD_(HRESULT,SetMimeDBSource)(THIS_ MIMECONTF dwSource) PURE; \ - STDMETHOD_(HRESULT,GetNumberOfScripts)(THIS_ UINT* pnScripts) PURE; \ - STDMETHOD_(HRESULT,EnumScripts)(THIS_ DWORD dwFlags, LANGID LangId, IEnumScript** ppEnumScript) PURE; \ - STDMETHOD_(HRESULT,ValidateCodePageEx)(THIS_ UINT uiCodePage, HWND hwnd, DWORD dwfIODControl) PURE; - -HRESULT CALLBACK IMultiLanguage2_GetNumberOfCodePageInfo_Proxy( - IMultiLanguage2* This, - UINT* pcCodePage); -void __RPC_STUB IMultiLanguage2_GetNumberOfCodePageInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_GetCodePageInfo_Proxy( - IMultiLanguage2* This, - UINT uiCodePage, - LANGID LangId, - PMIMECPINFO pCodePageInfo); -void __RPC_STUB IMultiLanguage2_GetCodePageInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_GetFamilyCodePage_Proxy( - IMultiLanguage2* This, - UINT uiCodePage, - UINT* puiFamilyCodePage); -void __RPC_STUB IMultiLanguage2_GetFamilyCodePage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_EnumCodePages_Proxy( - IMultiLanguage2* This, - DWORD grfFlags, - LANGID LangId, - IEnumCodePage** ppEnumCodePage); -void __RPC_STUB IMultiLanguage2_EnumCodePages_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_GetCharsetInfo_Proxy( - IMultiLanguage2* This, - BSTR Charset, - PMIMECSETINFO pCharsetInfo); -void __RPC_STUB IMultiLanguage2_GetCharsetInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_IsConvertible_Proxy( - IMultiLanguage2* This, - DWORD dwSrcEncoding, - DWORD dwDstEncoding); -void __RPC_STUB IMultiLanguage2_IsConvertible_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_ConvertString_Proxy( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwSrcEncoding, - DWORD dwDstEncoding, - BYTE* pSrcStr, - UINT* pcSrcSize, - BYTE* pDstStr, - UINT* pcDstSize); -void __RPC_STUB IMultiLanguage2_ConvertString_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_ConvertStringToUnicode_Proxy( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwEncoding, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize); -void __RPC_STUB IMultiLanguage2_ConvertStringToUnicode_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_ConvertStringFromUnicode_Proxy( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwEncoding, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize); -void __RPC_STUB IMultiLanguage2_ConvertStringFromUnicode_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_ConvertStringReset_Proxy( - IMultiLanguage2* This); -void __RPC_STUB IMultiLanguage2_ConvertStringReset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_GetRfc1766FromLcid_Proxy( - IMultiLanguage2* This, - LCID Locale, - BSTR* pbstrRfc1766); -void __RPC_STUB IMultiLanguage2_GetRfc1766FromLcid_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_GetLcidFromRfc1766_Proxy( - IMultiLanguage2* This, - LCID* pLocale, - BSTR bstrRfc1766); -void __RPC_STUB IMultiLanguage2_GetLcidFromRfc1766_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_EnumRfc1766_Proxy( - IMultiLanguage2* This, - LANGID LangId, - IEnumRfc1766** ppEnumRfc1766); -void __RPC_STUB IMultiLanguage2_EnumRfc1766_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_GetRfc1766Info_Proxy( - IMultiLanguage2* This, - LCID Locale, - LANGID LangId, - PRFC1766INFO pRfc1766Info); -void __RPC_STUB IMultiLanguage2_GetRfc1766Info_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_CreateConvertCharset_Proxy( - IMultiLanguage2* This, - UINT uiSrcCodePage, - UINT uiDstCodePage, - DWORD dwProperty, - IMLangConvertCharset** ppMLangConvertCharset); -void __RPC_STUB IMultiLanguage2_CreateConvertCharset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_ConvertStringInIStream_Proxy( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwFlag, - WCHAR* lpFallBack, - DWORD dwSrcEncoding, - DWORD dwDstEncoding, - IStream* pstmIn, - IStream* pstmOut); -void __RPC_STUB IMultiLanguage2_ConvertStringInIStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_ConvertStringToUnicodeEx_Proxy( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwEncoding, - CHAR* pSrcStr, - UINT* pcSrcSize, - WCHAR* pDstStr, - UINT* pcDstSize, - DWORD dwFlag, - WCHAR* lpFallBack); -void __RPC_STUB IMultiLanguage2_ConvertStringToUnicodeEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_ConvertStringFromUnicodeEx_Proxy( - IMultiLanguage2* This, - DWORD* pdwMode, - DWORD dwEncoding, - WCHAR* pSrcStr, - UINT* pcSrcSize, - CHAR* pDstStr, - UINT* pcDstSize, - DWORD dwFlag, - WCHAR* lpFallBack); -void __RPC_STUB IMultiLanguage2_ConvertStringFromUnicodeEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_DetectCodepageInIStream_Proxy( - IMultiLanguage2* This, - DWORD dwFlag, - DWORD dwPrefWinCodePage, - IStream* pstmIn, - DetectEncodingInfo* lpEncoding, - INT* pnScores); -void __RPC_STUB IMultiLanguage2_DetectCodepageInIStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_DetectInputCodepage_Proxy( - IMultiLanguage2* This, - DWORD dwFlag, - DWORD dwPrefWinCodePage, - CHAR* pSrcStr, - INT* pcSrcSize, - DetectEncodingInfo* lpEncoding, - INT* pnScores); -void __RPC_STUB IMultiLanguage2_DetectInputCodepage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_ValidateCodePage_Proxy( - IMultiLanguage2* This, - UINT uiCodePage, - HWND hwnd); -void __RPC_STUB IMultiLanguage2_ValidateCodePage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_GetCodePageDescription_Proxy( - IMultiLanguage2* This, - UINT uiCodePage, - LCID lcid, - LPWSTR lpWideCharStr, - int cchWideChar); -void __RPC_STUB IMultiLanguage2_GetCodePageDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_IsCodePageInstallable_Proxy( - IMultiLanguage2* This, - UINT uiCodePage); -void __RPC_STUB IMultiLanguage2_IsCodePageInstallable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_SetMimeDBSource_Proxy( - IMultiLanguage2* This, - MIMECONTF dwSource); -void __RPC_STUB IMultiLanguage2_SetMimeDBSource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_GetNumberOfScripts_Proxy( - IMultiLanguage2* This, - UINT* pnScripts); -void __RPC_STUB IMultiLanguage2_GetNumberOfScripts_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_EnumScripts_Proxy( - IMultiLanguage2* This, - DWORD dwFlags, - LANGID LangId, - IEnumScript** ppEnumScript); -void __RPC_STUB IMultiLanguage2_EnumScripts_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiLanguage2_ValidateCodePageEx_Proxy( - IMultiLanguage2* This, - UINT uiCodePage, - HWND hwnd, - DWORD dwfIODControl); -void __RPC_STUB IMultiLanguage2_ValidateCodePageEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMultiLanguage2_INTERFACE_DEFINED__ */ - -STDAPI LcidToRfc1766A(LCID, LPSTR, INT); -STDAPI LcidToRfc1766W(LCID, LPWSTR, INT); -#define LcidToRfc1766 WINELIB_NAME_AW(LcidToRfc1766) -STDAPI Rfc1766ToLcidA(LCID *, LPCSTR); -STDAPI Rfc1766ToLcidW(LCID *, LPCWSTR); -#define Rfc1766ToLcid WINELIB_NAME_AW(Rfc1766ToLcid) -STDAPI IsConvertINetStringAvailable(DWORD, DWORD); -STDAPI ConvertINetString(LPDWORD, DWORD, DWORD, LPCSTR, LPINT, LPSTR, LPINT); -STDAPI ConvertINetMultiByteToUnicode(LPDWORD, DWORD, LPCSTR, LPINT, LPWSTR, LPINT); -STDAPI ConvertINetUnicodeToMultiByte(LPDWORD, DWORD, LPCWSTR, LPINT, LPSTR, LPINT); -DEFINE_GUID(CLSID_CMultiLanguage, 0x275c23e2, 0x3747, 0x11d0, 0x9f,0xea,0x00,0xaa,0x00,0x3f,0x86,0x46); -DEFINE_GUID(IID_IMLangCodePages, 0x359F3443,0xBD4A,0x11D0,0xB1,0x88,0x00,0xAA,0x00,0x38,0xC9,0x69); -DEFINE_GUID(IID_IMLangFontLink, 0x359F3441,0xBD4A,0x11D0,0xB1,0x88,0x00,0xAA,0x00,0x38,0xC9,0x69); -DEFINE_GUID(IID_IMultiLanguage2, 0xDCCFC164,0x2B38,0x11d2,0xB7,0xEC,0x00,0xC0,0x4F,0x8F,0x5D,0x9A); -DEFINE_GUID(IID_IMultiLanguage, 0x275c23e1,0x3747,0x11d0,0x9f,0xea,0x00,0xaa,0x00,0x3f,0x86,0x46); -DEFINE_GUID(IID_IEnumCodePage, 0x275c23e3,0x3747,0x11d0,0x9f,0xea,0x00,0xaa,0x00,0x3f,0x86,0x46); -DEFINE_GUID(IID_IEnumScript, 0xae5f1430,0x388b,0x11d2,0x83,0x80,0x00,0xc0,0x4f,0x8f,0x5d,0xa1); -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_MLANG_H */ diff --git a/include/mmstream.h b/include/mmstream.h deleted file mode 100644 index daf95ac6fdd..00000000000 --- a/include/mmstream.h +++ /dev/null @@ -1,634 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from mmstream.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_MMSTREAM_H -#define __WIDL_MMSTREAM_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#define MS_ERROR_CODE(x) MAKE_HRESULT(1, FACILITY_ITF, (x) + 0x400) -#define MS_SUCCESS_CODE(x) MAKE_HRESULT(0, FACILITY_ITF, x) -#define MS_S_PENDING MS_SUCCESS_CODE(1) -#define MS_S_NOUPDATE MS_SUCCESS_CODE(2) -#define MS_S_ENDOFSTREAM MS_SUCCESS_CODE(3) -#define MS_E_SAMPLEALLOC MS_ERROR_CODE(1) -#define MS_E_PURPOSEID MS_ERROR_CODE(2) -#define MS_E_NOSTREAM MS_ERROR_CODE(3) -#define MS_E_NOSEEKING MS_ERROR_CODE(4) -#define MS_E_INCOMPATIBLE MS_ERROR_CODE(5) -#define MS_E_BUSY MS_ERROR_CODE(6) -#define MS_E_NOTINIT MS_ERROR_CODE(7) -#define MS_E_SOURCEALREADYDEFINED MS_ERROR_CODE(8) -#define MS_E_INVALIDSTREAMTYPE MS_ERROR_CODE(9) -#define MS_E_NOTRUNNING MS_ERROR_CODE(10) -DEFINE_GUID(MSPID_PrimaryVideo, 0xa35ff56a, 0x9fda, 0x11d0, 0x8f, 0xdf, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d); -DEFINE_GUID(MSPID_PrimaryAudio, 0xa35ff56b, 0x9fda, 0x11d0, 0x8f, 0xdf, 0x0, 0xc0, 0x4f, 0xd9, 0x18, 0x9d); -#if 0 -typedef void *PAPCFUNC; - -#endif -typedef LONGLONG STREAM_TIME; - -typedef GUID MSPID; - -typedef REFGUID REFMSPID; - -typedef enum { - STREAMTYPE_READ = 0, - STREAMTYPE_WRITE = 1, - STREAMTYPE_TRANSFORM = 2 -} STREAM_TYPE; - -typedef enum { - STREAMSTATE_STOP = 0, - STREAMSTATE_RUN = 1 -} STREAM_STATE; - -typedef enum { - COMPSTAT_NOUPDATEOK = 0x1, - COMPSTAT_WAIT = 0x2, - COMPSTAT_ABORT = 0x4 -} COMPLETION_STATUS_FLAGS; - -enum { - MMSSF_HASCLOCK = 0x1, - MMSSF_SUPPORTSEEK = 0x2, - MMSSF_ASYNCHRONOUS = 0x4 -}; - -enum { - SSUPDATE_ASYNC = 0x1, - SSUPDATE_CONTINUOUS = 0x2 -}; - -#ifndef __IMultiMediaStream_FWD_DEFINED__ -#define __IMultiMediaStream_FWD_DEFINED__ -typedef struct IMultiMediaStream IMultiMediaStream; -#endif - -#ifndef __IMediaStream_FWD_DEFINED__ -#define __IMediaStream_FWD_DEFINED__ -typedef struct IMediaStream IMediaStream; -#endif - -#ifndef __IStreamSample_FWD_DEFINED__ -#define __IStreamSample_FWD_DEFINED__ -typedef struct IStreamSample IStreamSample; -#endif - -/***************************************************************************** - * IMultiMediaStream interface - */ -#ifndef __IMultiMediaStream_INTERFACE_DEFINED__ -#define __IMultiMediaStream_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMultiMediaStream, 0xb502d1bc, 0x9a57, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMultiMediaStream : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetInformation( - char* pdwFlags, - STREAM_TYPE* pStreamType) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMediaStream( - REFMSPID idPurpose, - IMediaStream** ppMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumMediaStreams( - long Index, - IMediaStream** ppMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetState( - STREAM_STATE* pCurrentState) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetState( - STREAM_STATE NewState) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTime( - STREAM_TIME* pCurrentTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDuration( - STREAM_TIME* pDuration) = 0; - - virtual HRESULT STDMETHODCALLTYPE Seek( - STREAM_TIME SeekTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetEndOfStreamEventHandle( - HANDLE* phEOS) = 0; - -}; -#else -typedef struct IMultiMediaStreamVtbl IMultiMediaStreamVtbl; -struct IMultiMediaStream { - const IMultiMediaStreamVtbl* lpVtbl; -}; -struct IMultiMediaStreamVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMultiMediaStream* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMultiMediaStream* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMultiMediaStream* This); - - /*** IMultiMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *GetInformation)( - IMultiMediaStream* This, - char* pdwFlags, - STREAM_TYPE* pStreamType); - - HRESULT (STDMETHODCALLTYPE *GetMediaStream)( - IMultiMediaStream* This, - REFMSPID idPurpose, - IMediaStream** ppMediaStream); - - HRESULT (STDMETHODCALLTYPE *EnumMediaStreams)( - IMultiMediaStream* This, - long Index, - IMediaStream** ppMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetState)( - IMultiMediaStream* This, - STREAM_STATE* pCurrentState); - - HRESULT (STDMETHODCALLTYPE *SetState)( - IMultiMediaStream* This, - STREAM_STATE NewState); - - HRESULT (STDMETHODCALLTYPE *GetTime)( - IMultiMediaStream* This, - STREAM_TIME* pCurrentTime); - - HRESULT (STDMETHODCALLTYPE *GetDuration)( - IMultiMediaStream* This, - STREAM_TIME* pDuration); - - HRESULT (STDMETHODCALLTYPE *Seek)( - IMultiMediaStream* This, - STREAM_TIME SeekTime); - - HRESULT (STDMETHODCALLTYPE *GetEndOfStreamEventHandle)( - IMultiMediaStream* This, - HANDLE* phEOS); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMultiMediaStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMultiMediaStream_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMultiMediaStream_Release(p) (p)->lpVtbl->Release(p) -/*** IMultiMediaStream methods ***/ -#define IMultiMediaStream_GetInformation(p,a,b) (p)->lpVtbl->GetInformation(p,a,b) -#define IMultiMediaStream_GetMediaStream(p,a,b) (p)->lpVtbl->GetMediaStream(p,a,b) -#define IMultiMediaStream_EnumMediaStreams(p,a,b) (p)->lpVtbl->EnumMediaStreams(p,a,b) -#define IMultiMediaStream_GetState(p,a) (p)->lpVtbl->GetState(p,a) -#define IMultiMediaStream_SetState(p,a) (p)->lpVtbl->SetState(p,a) -#define IMultiMediaStream_GetTime(p,a) (p)->lpVtbl->GetTime(p,a) -#define IMultiMediaStream_GetDuration(p,a) (p)->lpVtbl->GetDuration(p,a) -#define IMultiMediaStream_Seek(p,a) (p)->lpVtbl->Seek(p,a) -#define IMultiMediaStream_GetEndOfStreamEventHandle(p,a) (p)->lpVtbl->GetEndOfStreamEventHandle(p,a) -#endif - -#endif - -#define IMultiMediaStream_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMultiMediaStream methods ***/ \ - STDMETHOD_(HRESULT,GetInformation)(THIS_ char* pdwFlags, STREAM_TYPE* pStreamType) PURE; \ - STDMETHOD_(HRESULT,GetMediaStream)(THIS_ REFMSPID idPurpose, IMediaStream** ppMediaStream) PURE; \ - STDMETHOD_(HRESULT,EnumMediaStreams)(THIS_ long Index, IMediaStream** ppMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetState)(THIS_ STREAM_STATE* pCurrentState) PURE; \ - STDMETHOD_(HRESULT,SetState)(THIS_ STREAM_STATE NewState) PURE; \ - STDMETHOD_(HRESULT,GetTime)(THIS_ STREAM_TIME* pCurrentTime) PURE; \ - STDMETHOD_(HRESULT,GetDuration)(THIS_ STREAM_TIME* pDuration) PURE; \ - STDMETHOD_(HRESULT,Seek)(THIS_ STREAM_TIME SeekTime) PURE; \ - STDMETHOD_(HRESULT,GetEndOfStreamEventHandle)(THIS_ HANDLE* phEOS) PURE; - -HRESULT CALLBACK IMultiMediaStream_GetInformation_Proxy( - IMultiMediaStream* This, - char* pdwFlags, - STREAM_TYPE* pStreamType); -void __RPC_STUB IMultiMediaStream_GetInformation_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiMediaStream_GetMediaStream_Proxy( - IMultiMediaStream* This, - REFMSPID idPurpose, - IMediaStream** ppMediaStream); -void __RPC_STUB IMultiMediaStream_GetMediaStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiMediaStream_EnumMediaStreams_Proxy( - IMultiMediaStream* This, - long Index, - IMediaStream** ppMediaStream); -void __RPC_STUB IMultiMediaStream_EnumMediaStreams_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiMediaStream_GetState_Proxy( - IMultiMediaStream* This, - STREAM_STATE* pCurrentState); -void __RPC_STUB IMultiMediaStream_GetState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiMediaStream_SetState_Proxy( - IMultiMediaStream* This, - STREAM_STATE NewState); -void __RPC_STUB IMultiMediaStream_SetState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiMediaStream_GetTime_Proxy( - IMultiMediaStream* This, - STREAM_TIME* pCurrentTime); -void __RPC_STUB IMultiMediaStream_GetTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiMediaStream_GetDuration_Proxy( - IMultiMediaStream* This, - STREAM_TIME* pDuration); -void __RPC_STUB IMultiMediaStream_GetDuration_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiMediaStream_Seek_Proxy( - IMultiMediaStream* This, - STREAM_TIME SeekTime); -void __RPC_STUB IMultiMediaStream_Seek_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMultiMediaStream_GetEndOfStreamEventHandle_Proxy( - IMultiMediaStream* This, - HANDLE* phEOS); -void __RPC_STUB IMultiMediaStream_GetEndOfStreamEventHandle_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMultiMediaStream_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IMediaStream interface - */ -#ifndef __IMediaStream_INTERFACE_DEFINED__ -#define __IMediaStream_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMediaStream, 0xb502d1bd, 0x9a57, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMediaStream : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetMultiMediaStream( - IMultiMediaStream** ppMultiMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInformation( - MSPID* pPurposeId, - STREAM_TYPE* pType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSameFormat( - IMediaStream* pStreamThatHasDesiredFormat, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE AllocateSample( - DWORD dwFlags, - IStreamSample** ppSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateSharedSample( - IStreamSample* pExistingSample, - DWORD dwFlags, - IStreamSample** ppNewSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE SendEndOfStream( - DWORD dwFlags) = 0; - -}; -#else -typedef struct IMediaStreamVtbl IMediaStreamVtbl; -struct IMediaStream { - const IMediaStreamVtbl* lpVtbl; -}; -struct IMediaStreamVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMediaStream* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMediaStream* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMediaStream* This); - - /*** IMediaStream methods ***/ - HRESULT (STDMETHODCALLTYPE *GetMultiMediaStream)( - IMediaStream* This, - IMultiMediaStream** ppMultiMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetInformation)( - IMediaStream* This, - MSPID* pPurposeId, - STREAM_TYPE* pType); - - HRESULT (STDMETHODCALLTYPE *SetSameFormat)( - IMediaStream* This, - IMediaStream* pStreamThatHasDesiredFormat, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *AllocateSample)( - IMediaStream* This, - DWORD dwFlags, - IStreamSample** ppSample); - - HRESULT (STDMETHODCALLTYPE *CreateSharedSample)( - IMediaStream* This, - IStreamSample* pExistingSample, - DWORD dwFlags, - IStreamSample** ppNewSample); - - HRESULT (STDMETHODCALLTYPE *SendEndOfStream)( - IMediaStream* This, - DWORD dwFlags); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMediaStream_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMediaStream_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMediaStream_Release(p) (p)->lpVtbl->Release(p) -/*** IMediaStream methods ***/ -#define IMediaStream_GetMultiMediaStream(p,a) (p)->lpVtbl->GetMultiMediaStream(p,a) -#define IMediaStream_GetInformation(p,a,b) (p)->lpVtbl->GetInformation(p,a,b) -#define IMediaStream_SetSameFormat(p,a,b) (p)->lpVtbl->SetSameFormat(p,a,b) -#define IMediaStream_AllocateSample(p,a,b) (p)->lpVtbl->AllocateSample(p,a,b) -#define IMediaStream_CreateSharedSample(p,a,b,c) (p)->lpVtbl->CreateSharedSample(p,a,b,c) -#define IMediaStream_SendEndOfStream(p,a) (p)->lpVtbl->SendEndOfStream(p,a) -#endif - -#endif - -#define IMediaStream_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMediaStream methods ***/ \ - STDMETHOD_(HRESULT,GetMultiMediaStream)(THIS_ IMultiMediaStream** ppMultiMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetInformation)(THIS_ MSPID* pPurposeId, STREAM_TYPE* pType) PURE; \ - STDMETHOD_(HRESULT,SetSameFormat)(THIS_ IMediaStream* pStreamThatHasDesiredFormat, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,AllocateSample)(THIS_ DWORD dwFlags, IStreamSample** ppSample) PURE; \ - STDMETHOD_(HRESULT,CreateSharedSample)(THIS_ IStreamSample* pExistingSample, DWORD dwFlags, IStreamSample** ppNewSample) PURE; \ - STDMETHOD_(HRESULT,SendEndOfStream)(THIS_ DWORD dwFlags) PURE; - -HRESULT CALLBACK IMediaStream_GetMultiMediaStream_Proxy( - IMediaStream* This, - IMultiMediaStream** ppMultiMediaStream); -void __RPC_STUB IMediaStream_GetMultiMediaStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStream_GetInformation_Proxy( - IMediaStream* This, - MSPID* pPurposeId, - STREAM_TYPE* pType); -void __RPC_STUB IMediaStream_GetInformation_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStream_SetSameFormat_Proxy( - IMediaStream* This, - IMediaStream* pStreamThatHasDesiredFormat, - DWORD dwFlags); -void __RPC_STUB IMediaStream_SetSameFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStream_AllocateSample_Proxy( - IMediaStream* This, - DWORD dwFlags, - IStreamSample** ppSample); -void __RPC_STUB IMediaStream_AllocateSample_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStream_CreateSharedSample_Proxy( - IMediaStream* This, - IStreamSample* pExistingSample, - DWORD dwFlags, - IStreamSample** ppNewSample); -void __RPC_STUB IMediaStream_CreateSharedSample_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaStream_SendEndOfStream_Proxy( - IMediaStream* This, - DWORD dwFlags); -void __RPC_STUB IMediaStream_SendEndOfStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMediaStream_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IStreamSample interface - */ -#ifndef __IStreamSample_INTERFACE_DEFINED__ -#define __IStreamSample_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IStreamSample, 0xb502d1be, 0x9a57, 0x11d0, 0x8f,0xde, 0x00,0xc0,0x4f,0xd9,0x18,0x9d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IStreamSample : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetMediaStream( - IMediaStream** ppMediaStream) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSampleTimes( - STREAM_TIME* pStartTime, - STREAM_TIME* pEndTime, - STREAM_TIME* pCurrentTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSampleTimes( - const STREAM_TIME* pStartTime, - const STREAM_TIME* pEndTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE Update( - DWORD dwFlags, - HANDLE hEvent, - PAPCFUNC pfnAPC, - DWORD dwAPCData) = 0; - - virtual HRESULT STDMETHODCALLTYPE CompletionStatus( - DWORD dwFlags, - DWORD dwMilliseconds) = 0; - -}; -#else -typedef struct IStreamSampleVtbl IStreamSampleVtbl; -struct IStreamSample { - const IStreamSampleVtbl* lpVtbl; -}; -struct IStreamSampleVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IStreamSample* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IStreamSample* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IStreamSample* This); - - /*** IStreamSample methods ***/ - HRESULT (STDMETHODCALLTYPE *GetMediaStream)( - IStreamSample* This, - IMediaStream** ppMediaStream); - - HRESULT (STDMETHODCALLTYPE *GetSampleTimes)( - IStreamSample* This, - STREAM_TIME* pStartTime, - STREAM_TIME* pEndTime, - STREAM_TIME* pCurrentTime); - - HRESULT (STDMETHODCALLTYPE *SetSampleTimes)( - IStreamSample* This, - const STREAM_TIME* pStartTime, - const STREAM_TIME* pEndTime); - - HRESULT (STDMETHODCALLTYPE *Update)( - IStreamSample* This, - DWORD dwFlags, - HANDLE hEvent, - PAPCFUNC pfnAPC, - DWORD dwAPCData); - - HRESULT (STDMETHODCALLTYPE *CompletionStatus)( - IStreamSample* This, - DWORD dwFlags, - DWORD dwMilliseconds); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IStreamSample_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IStreamSample_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IStreamSample_Release(p) (p)->lpVtbl->Release(p) -/*** IStreamSample methods ***/ -#define IStreamSample_GetMediaStream(p,a) (p)->lpVtbl->GetMediaStream(p,a) -#define IStreamSample_GetSampleTimes(p,a,b,c) (p)->lpVtbl->GetSampleTimes(p,a,b,c) -#define IStreamSample_SetSampleTimes(p,a,b) (p)->lpVtbl->SetSampleTimes(p,a,b) -#define IStreamSample_Update(p,a,b,c,d) (p)->lpVtbl->Update(p,a,b,c,d) -#define IStreamSample_CompletionStatus(p,a,b) (p)->lpVtbl->CompletionStatus(p,a,b) -#endif - -#endif - -#define IStreamSample_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IStreamSample methods ***/ \ - STDMETHOD_(HRESULT,GetMediaStream)(THIS_ IMediaStream** ppMediaStream) PURE; \ - STDMETHOD_(HRESULT,GetSampleTimes)(THIS_ STREAM_TIME* pStartTime, STREAM_TIME* pEndTime, STREAM_TIME* pCurrentTime) PURE; \ - STDMETHOD_(HRESULT,SetSampleTimes)(THIS_ const STREAM_TIME* pStartTime, const STREAM_TIME* pEndTime) PURE; \ - STDMETHOD_(HRESULT,Update)(THIS_ DWORD dwFlags, HANDLE hEvent, PAPCFUNC pfnAPC, DWORD dwAPCData) PURE; \ - STDMETHOD_(HRESULT,CompletionStatus)(THIS_ DWORD dwFlags, DWORD dwMilliseconds) PURE; - -HRESULT CALLBACK IStreamSample_GetMediaStream_Proxy( - IStreamSample* This, - IMediaStream** ppMediaStream); -void __RPC_STUB IStreamSample_GetMediaStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IStreamSample_GetSampleTimes_Proxy( - IStreamSample* This, - STREAM_TIME* pStartTime, - STREAM_TIME* pEndTime, - STREAM_TIME* pCurrentTime); -void __RPC_STUB IStreamSample_GetSampleTimes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IStreamSample_SetSampleTimes_Proxy( - IStreamSample* This, - const STREAM_TIME* pStartTime, - const STREAM_TIME* pEndTime); -void __RPC_STUB IStreamSample_SetSampleTimes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IStreamSample_Update_Proxy( - IStreamSample* This, - DWORD dwFlags, - HANDLE hEvent, - PAPCFUNC pfnAPC, - DWORD dwAPCData); -void __RPC_STUB IStreamSample_Update_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IStreamSample_CompletionStatus_Proxy( - IStreamSample* This, - DWORD dwFlags, - DWORD dwMilliseconds); -void __RPC_STUB IStreamSample_CompletionStatus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IStreamSample_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_MMSTREAM_H */ diff --git a/include/oaidl.h b/include/oaidl.h deleted file mode 100644 index 73436057ae2..00000000000 --- a/include/oaidl.h +++ /dev/null @@ -1,5586 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from oaidl.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_OAIDL_H -#define __WIDL_OAIDL_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#ifndef __IDispatch_FWD_DEFINED__ -#define __IDispatch_FWD_DEFINED__ -typedef struct IDispatch IDispatch; -#endif - -#ifndef __ITypeInfo_FWD_DEFINED__ -#define __ITypeInfo_FWD_DEFINED__ -typedef struct ITypeInfo ITypeInfo; -#endif - -#ifndef __ITypeLib_FWD_DEFINED__ -#define __ITypeLib_FWD_DEFINED__ -typedef struct ITypeLib ITypeLib; -#endif - -#ifndef __IRecordInfo_FWD_DEFINED__ -#define __IRecordInfo_FWD_DEFINED__ -typedef struct IRecordInfo IRecordInfo; -#endif - -typedef CY CURRENCY; - -typedef struct tagSAFEARRAYBOUND { - ULONG cElements; - LONG lLbound; -} SAFEARRAYBOUND, *LPSAFEARRAYBOUND; - -typedef struct _wireVARIANT *wireVARIANT; - -typedef struct _wireBRECORD *wireBRECORD; - -typedef struct _wireSAFEARR_BSTR { - ULONG Size; - wireBSTR *aBstr; -} SAFEARR_BSTR; - -typedef struct _wireSAFEARR_UNKNOWN { - ULONG Size; - IUnknown **apUnknown; -} SAFEARR_UNKNOWN; - -typedef struct _wireSAFEARR_DISPATCH { - ULONG Size; - IDispatch **apDispatch; -} SAFEARR_DISPATCH; - -typedef struct _wireSAFEARR_VARIANT { - ULONG Size; - wireVARIANT *aVariant; -} SAFEARR_VARIANT; - -typedef struct _wireSAFEARR_BRECORD { - ULONG Size; - wireBRECORD *aRecord; -} SAFEARR_BRECORD; - -typedef struct _wireSAFEARR_HAVEIID { - ULONG Size; - IUnknown **apUnknown; - IID iid; -} SAFEARR_HAVEIID; - -typedef enum tagSF_TYPE { - SF_ERROR = VT_ERROR, - SF_I1 = VT_I1, - SF_I2 = VT_I2, - SF_I4 = VT_I4, - SF_I8 = VT_I8, - SF_BSTR = VT_BSTR, - SF_UNKNOWN = VT_UNKNOWN, - SF_DISPATCH = VT_DISPATCH, - SF_VARIANT = VT_VARIANT, - SF_RECORD = VT_RECORD, - SF_HAVEIID = VT_UNKNOWN | VT_RESERVED -} SF_TYPE; - -typedef struct _wireSAFEARRAY_UNION { - ULONG sfType; - union { - SAFEARR_BSTR BstrStr; - SAFEARR_UNKNOWN UnknownStr; - SAFEARR_DISPATCH DispatchStr; - SAFEARR_VARIANT VariantStr; - SAFEARR_BRECORD RecordStr; - SAFEARR_HAVEIID HaveIidStr; - BYTE_SIZEDARR ByteStr; - WORD_SIZEDARR WordStr; - DWORD_SIZEDARR LongStr; - HYPER_SIZEDARR HyperStr; - } u; -} SAFEARRAYUNION; - -typedef struct _wireSAFEARRAY { - USHORT cDims; - USHORT fFeatures; - ULONG cbElements; - ULONG cLocks; - SAFEARRAYUNION uArrayStructs; - SAFEARRAYBOUND rgsabound[1]; -} *wireSAFEARRAY; - -typedef wireSAFEARRAY *wirePSAFEARRAY; - -typedef struct tagSAFEARRAY { - USHORT cDims; - USHORT fFeatures; - ULONG cbElements; - ULONG cLocks; - PVOID pvData; - SAFEARRAYBOUND rgsabound[1]; -} SAFEARRAY; - -typedef SAFEARRAY *LPSAFEARRAY; -unsigned long __RPC_USER LPSAFEARRAY_UserSize (unsigned long *, unsigned long, LPSAFEARRAY *); -unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal (unsigned long *, unsigned char *, LPSAFEARRAY *); -unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(unsigned long *, unsigned char *, LPSAFEARRAY *); -void __RPC_USER LPSAFEARRAY_UserFree (unsigned long *, LPSAFEARRAY *); - -#define FADF_AUTO (0x1) - -#define FADF_STATIC (0x2) - -#define FADF_EMBEDDED (0x4) - -#define FADF_FIXEDSIZE (0x10) - -#define FADF_RECORD (0x20) - -#define FADF_HAVEIID (0x40) - -#define FADF_HAVEVARTYPE (0x80) - -#define FADF_BSTR (0x100) - -#define FADF_UNKNOWN (0x200) - -#define FADF_DISPATCH (0x400) - -#define FADF_VARIANT (0x800) - -#define FADF_RESERVED (0xf008) - -#define FADF_DATADELETED (0x1000) - -#define FADF_CREATEVECTOR (0x2000) - -#if (__STDC__ && !defined(_FORCENAMELESSUNION)) || defined(NONAMELESSUNION) -#define __VARIANT_NAME_1 n1 -#define __VARIANT_NAME_2 n2 -#define __VARIANT_NAME_3 n3 -#define __VARIANT_NAME_4 brecVal -#else -#define __tagVARIANT -#define __VARIANT_NAME_1 -#define __VARIANT_NAME_2 -#define __VARIANT_NAME_3 -#define __tagBRECORD -#define __VARIANT_NAME_4 -#endif -typedef struct tagVARIANT VARIANT; -unsigned long __RPC_USER VARIANT_UserSize (unsigned long *, unsigned long, VARIANT *); -unsigned char * __RPC_USER VARIANT_UserMarshal (unsigned long *, unsigned char *, VARIANT *); -unsigned char * __RPC_USER VARIANT_UserUnmarshal(unsigned long *, unsigned char *, VARIANT *); -void __RPC_USER VARIANT_UserFree (unsigned long *, VARIANT *); - -struct tagVARIANT { - union { - struct __tagVARIANT { - VARTYPE vt; - WORD wReserved1; - WORD wReserved2; - WORD wReserved3; - union { - signed char cVal; - USHORT uiVal; - ULONG ulVal; - INT intVal; - UINT uintVal; - BYTE bVal; - SHORT iVal; - LONG lVal; - FLOAT fltVal; - DOUBLE dblVal; - VARIANT_BOOL boolVal; - SCODE scode; - DATE date; - BSTR bstrVal; - CY cyVal; - IUnknown *punkVal; - IDispatch *pdispVal; - SAFEARRAY *parray; - LONGLONG llVal; - ULONGLONG ullVal; - signed char *pcVal; - USHORT *puiVal; - ULONG *pulVal; - INT *pintVal; - UINT *puintVal; - BYTE *pbVal; - SHORT *piVal; - LONG *plVal; - FLOAT *pfltVal; - DOUBLE *pdblVal; - VARIANT_BOOL *pboolVal; - SCODE *pscode; - DATE *pdate; - BSTR *pbstrVal; - VARIANT *pvarVal; - PVOID byref; - CY *pcyVal; - DECIMAL *pdecVal; - IUnknown **ppunkVal; - IDispatch **ppdispVal; - SAFEARRAY **pparray; - LONGLONG *pllVal; - ULONGLONG *pullVal; - struct __tagBRECORD { - PVOID pvRecord; - IRecordInfo *pRecInfo; - } __VARIANT_NAME_4; - } __VARIANT_NAME_3; - } __VARIANT_NAME_2; - DECIMAL decVal; - } __VARIANT_NAME_1; -}; - -typedef VARIANT *LPVARIANT; - -typedef VARIANT VARIANTARG; - -typedef VARIANTARG *LPVARIANTARG; - -struct _wireBRECORD { - ULONG fFlags; - ULONG clSize; - IRecordInfo *pRecInfo; - byte *pRecord; -}; - -struct _wireVARIANT { - DWORD clSize; - DWORD rpcReserved; - USHORT vt; - USHORT wReserved1; - USHORT wReserved2; - USHORT wReserved3; - union { - signed char cVal; - USHORT uiVal; - ULONG ulVal; - INT intVal; - UINT uintVal; - BYTE bVal; - SHORT iVal; - LONG lVal; - FLOAT fltVal; - DOUBLE dblVal; - VARIANT_BOOL boolVal; - SCODE scode; - DATE date; - wireBSTR bstrVal; - CY cyVal; - DECIMAL decVal; - IUnknown *punkVal; - IDispatch *pdispVal; - wireSAFEARRAY parray; - signed char *pcVal; - USHORT *puiVal; - ULONG *pulVal; - INT *pintVal; - UINT *puintVal; - BYTE *pbVal; - SHORT *piVal; - LONG *plVal; - FLOAT *pfltVal; - DOUBLE *pdblVal; - VARIANT_BOOL *pboolVal; - SCODE *pscode; - DATE *pdate; - wireBSTR *pbstrVal; - wireVARIANT *pvarVal; - CY *pcyVal; - DECIMAL *pdecVal; - IUnknown **ppunkVal; - IDispatch **ppdispVal; - wireSAFEARRAY *pparray; - wireBRECORD brecVal; - } DUMMYUNIONNAME; -}; - -typedef LONG DISPID; - -typedef DWORD HREFTYPE; - -typedef DISPID MEMBERID; - -typedef enum tagTYPEKIND { - TKIND_ENUM = 0, - TKIND_RECORD, - TKIND_MODULE, - TKIND_INTERFACE, - TKIND_DISPATCH, - TKIND_COCLASS, - TKIND_ALIAS, - TKIND_UNION, - TKIND_MAX -} TYPEKIND; - -typedef struct tagTYPEDESC { - union { - struct tagTYPEDESC *lptdesc; - struct tagARRAYDESC *lpadesc; - HREFTYPE hreftype; - } DUMMYUNIONNAME; - VARTYPE vt; -} TYPEDESC; - -typedef struct tagARRAYDESC { - TYPEDESC tdescElem; - USHORT cDims; - SAFEARRAYBOUND rgbounds[1]; -} ARRAYDESC; - -typedef struct tagPARAMDESCEX { - ULONG cBytes; - VARIANTARG varDefaultValue; -} PARAMDESCEX, *LPPARAMDESCEX; - -typedef struct tagPARAMDESC { - LPPARAMDESCEX pparamdescex; - USHORT wParamFlags; -} PARAMDESC, *LPPARAMDESC; - -#define PARAMFLAG_NONE (0x0) - -#define PARAMFLAG_FIN (0x1) - -#define PARAMFLAG_FOUT (0x2) - -#define PARAMFLAG_FLCID (0x4) - -#define PARAMFLAG_FRETVAL (0x8) - -#define PARAMFLAG_FOPT (0x10) - -#define PARAMFLAG_FHASDEFAULT (0x20) - -#define PARAMFLAG_FHASCUSTDATA (0x40) - -typedef struct tagIDLDESC { - ULONG dwReserved; - USHORT wIDLFlags; -} IDLDESC, *LPIDLDESC; - -#define IDLFLAG_NONE (PARAMFLAG_NONE) - -#define IDLFLAG_FIN (PARAMFLAG_FIN) - -#define IDLFLAG_FOUT (PARAMFLAG_FOUT) - -#define IDLFLAG_FLCID (PARAMFLAG_FLCID) - -#define IDLFLAG_FRETVAL (PARAMFLAG_FRETVAL) - -#if 0 -typedef struct tagELEMDESC { - TYPEDESC tdesc; - PARAMDESC paramdesc; -} ELEMDESC; - -#else -typedef struct tagELEMDESC { - TYPEDESC tdesc; - union { - IDLDESC idldesc; - PARAMDESC paramdesc; - } DUMMYUNIONNAME; -} ELEMDESC, *LPELEMDESC; -#endif -typedef struct tagTYPEATTR { - GUID guid; - LCID lcid; - DWORD dwReserved; - MEMBERID memidConstructor; - MEMBERID memidDestructor; - LPOLESTR lpstrSchema; - ULONG cbSizeInstance; - TYPEKIND typekind; - WORD cFuncs; - WORD cVars; - WORD cImplTypes; - WORD cbSizeVft; - WORD cbAlignment; - WORD wTypeFlags; - WORD wMajorVerNum; - WORD wMinorVerNum; - TYPEDESC tdescAlias; - IDLDESC idldescType; -} TYPEATTR, *LPTYPEATTR; - -typedef struct tagDISPPARAMS { - VARIANTARG *rgvarg; - DISPID *rgdispidNamedArgs; - UINT cArgs; - UINT cNamedArgs; -} DISPPARAMS; - -#if 0 -typedef struct tagEXCEPINFO { - WORD wCode; - WORD wReserved; - BSTR bstrSource; - BSTR bstrDescription; - BSTR bstrHelpFile; - DWORD dwHelpContext; - ULONG pvReserved; - ULONG pfnDeferredFillIn; - SCODE scode; -} EXCEPINFO; - -#else -typedef struct tagEXCEPINFO { - WORD wCode; - WORD wReserved; - BSTR bstrSource; - BSTR bstrDescription; - BSTR bstrHelpFile; - DWORD dwHelpContext; - PVOID pvReserved; - HRESULT (__stdcall *pfnDeferredFillIn)(struct tagEXCEPINFO *); - SCODE scode; -} EXCEPINFO, *LPEXCEPINFO; -#endif -typedef enum tagCALLCONV { - CC_FASTCALL = 0, - CC_CDECL = 1, - CC_MSCPASCAL, - CC_PASCAL = CC_MSCPASCAL, - CC_MACPASCAL, - CC_STDCALL, - CC_FPFASTCALL, - CC_SYSCALL, - CC_MPWCDECL, - CC_MPWPASCAL, - CC_MAX -} CALLCONV; - -typedef enum tagFUNCKIND { - FUNC_VIRTUAL, - FUNC_PUREVIRTUAL, - FUNC_NONVIRTUAL, - FUNC_STATIC, - FUNC_DISPATCH -} FUNCKIND; - -typedef enum tagINVOKEKIND { - INVOKE_FUNC = 1, - INVOKE_PROPERTYGET = 2, - INVOKE_PROPERTYPUT = 4, - INVOKE_PROPERTYPUTREF = 8 -} INVOKEKIND; - -typedef struct tagFUNCDESC { - MEMBERID memid; - SCODE *lprgscode; - ELEMDESC *lprgelemdescParam; - FUNCKIND funckind; - INVOKEKIND invkind; - CALLCONV callconv; - SHORT cParams; - SHORT cParamsOpt; - SHORT oVft; - SHORT cScodes; - ELEMDESC elemdescFunc; - WORD wFuncFlags; -} FUNCDESC, *LPFUNCDESC; - -typedef enum tagVARKIND { - VAR_PERINSTANCE, - VAR_STATIC, - VAR_CONST, - VAR_DISPATCH -} VARKIND; - -#define IMPLTYPEFLAG_FDEFAULT (0x1) - -#define IMPLTYPEFLAG_FSOURCE (0x2) - -#define IMPLTYPEFLAG_FRESTRICTED (0x4) - -#define IMPLTYPEFLAG_FDEFAULTVTABLE (0x8) - -typedef struct tagVARDESC { - MEMBERID memid; - LPOLESTR lpstrSchema; - union { - ULONG oInst; - VARIANT *lpvarValue; - } DUMMYUNIONNAME; - ELEMDESC elemdescVar; - WORD wVarFlags; - VARKIND varkind; -} VARDESC, *LPVARDESC; - -typedef enum tagTYPEFLAGS { - TYPEFLAG_FAPPOBJECT = 0x1, - TYPEFLAG_FCANCREATE = 0x2, - TYPEFLAG_FLICENSED = 0x4, - TYPEFLAG_FPREDECLID = 0x8, - TYPEFLAG_FHIDDEN = 0x10, - TYPEFLAG_FCONTROL = 0x20, - TYPEFLAG_FDUAL = 0x40, - TYPEFLAG_FNONEXTENSIBLE = 0x80, - TYPEFLAG_FOLEAUTOMATION = 0x100, - TYPEFLAG_FRESTRICTED = 0x200, - TYPEFLAG_FAGGREGATABLE = 0x400, - TYPEFLAG_FREPLACEABLE = 0x800, - TYPEFLAG_FDISPATCHABLE = 0x1000, - TYPEFLAG_FREVERSEBIND = 0x2000, - TYPEFLAG_FPROXY = 0x4000 -} TYPEFLAGS; - -typedef enum tagFUNCFLAGS { - FUNCFLAG_FRESTRICTED = 0x1, - FUNCFLAG_FSOURCE = 0x2, - FUNCFLAG_FBINDABLE = 0x4, - FUNCFLAG_FREQUESTEDIT = 0x8, - FUNCFLAG_FDISPLAYBIND = 0x10, - FUNCFLAG_FDEFAULTBIND = 0x20, - FUNCFLAG_FHIDDEN = 0x40, - FUNCFLAG_FUSESGETLASTERROR = 0x80, - FUNCFLAG_FDEFAULTCOLLELEM = 0x100, - FUNCFLAG_FUIDEFAULT = 0x200, - FUNCFLAG_FNONBROWSABLE = 0x400, - FUNCFLAG_FREPLACEABLE = 0x800, - FUNCFLAG_FIMMEDIATEBIND = 0x1000 -} FUNCFLAGS; - -typedef enum tagVARFLAGS { - VARFLAG_FREADONLY = 0x1, - VARFLAG_FSOURCE = 0x2, - VARFLAG_FBINDABLE = 0x4, - VARFLAG_FREQUESTEDIT = 0x8, - VARFLAG_FDISPLAYBIND = 0x10, - VARFLAG_FDEFAULTBIND = 0x20, - VARFLAG_FHIDDEN = 0x40, - VARFLAG_FRESTRICTED = 0x80, - VARFLAG_FDEFAULTCOLLELEM = 0x100, - VARFLAG_FUIDEFAULT = 0x200, - VARFLAG_FNONBROWSABLE = 0x400, - VARFLAG_FREPLACEABLE = 0x800, - VARFLAG_FIMMEDIATEBIND = 0x1000 -} VARFLAGS; - -typedef struct tagCLEANLOCALSTORAGE { - IUnknown *pInterface; - PVOID pStorage; - DWORD flags; -} CLEANLOCALSTORAGE; -unsigned long __RPC_USER CLEANLOCALSTORAGE_UserSize (unsigned long *, unsigned long, CLEANLOCALSTORAGE *); -unsigned char * __RPC_USER CLEANLOCALSTORAGE_UserMarshal (unsigned long *, unsigned char *, CLEANLOCALSTORAGE *); -unsigned char * __RPC_USER CLEANLOCALSTORAGE_UserUnmarshal(unsigned long *, unsigned char *, CLEANLOCALSTORAGE *); -void __RPC_USER CLEANLOCALSTORAGE_UserFree (unsigned long *, CLEANLOCALSTORAGE *); - -typedef struct tagCUSTDATAITEM { - GUID guid; - VARIANTARG varValue; -} CUSTDATAITEM, *LPCUSTDATAITEM; - -typedef struct tagCUSTDATA { - DWORD cCustData; - LPCUSTDATAITEM prgCustData; -} CUSTDATA, *LPCUSTDATA; - -typedef IDispatch *LPDISPATCH; - -#define DISPID_UNKNOWN (-1) - -#define DISPID_VALUE (0) - -#define DISPID_PROPERTYPUT (-3) - -#define DISPID_NEWENUM (-4) - -#define DISPID_EVALUATE (-5) - -#define DISPID_CONSTRUCTOR (-6) - -#define DISPID_DESTRUCTOR (-7) - -#define DISPID_COLLECT (-8) - -/***************************************************************************** - * IDispatch interface - */ -#ifndef __IDispatch_INTERFACE_DEFINED__ -#define __IDispatch_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDispatch, 0x00020400, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDispatch : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetTypeInfoCount( - UINT* pctinfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTypeInfo( - UINT iTInfo, - LCID lcid, - ITypeInfo** ppTInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetIDsOfNames( - REFIID riid, - LPOLESTR* rgszNames, - UINT cNames, - LCID lcid, - DISPID* rgDispId) = 0; - - virtual HRESULT STDMETHODCALLTYPE Invoke( - DISPID dispIdMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr) = 0; - -}; -#else -typedef struct IDispatchVtbl IDispatchVtbl; -struct IDispatch { - const IDispatchVtbl* lpVtbl; -}; -struct IDispatchVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDispatch* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDispatch* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDispatch* This); - - /*** IDispatch methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)( - IDispatch* This, - UINT* pctinfo); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - IDispatch* This, - UINT iTInfo, - LCID lcid, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)( - IDispatch* This, - REFIID riid, - LPOLESTR* rgszNames, - UINT cNames, - LCID lcid, - DISPID* rgDispId); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - IDispatch* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDispatch_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDispatch_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDispatch_Release(p) (p)->lpVtbl->Release(p) -/*** IDispatch methods ***/ -#define IDispatch_GetTypeInfoCount(p,a) (p)->lpVtbl->GetTypeInfoCount(p,a) -#define IDispatch_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c) -#define IDispatch_GetIDsOfNames(p,a,b,c,d,e) (p)->lpVtbl->GetIDsOfNames(p,a,b,c,d,e) -#define IDispatch_Invoke(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g,h) -#endif - -#endif - -#define IDispatch_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDispatch methods ***/ \ - STDMETHOD_(HRESULT,GetTypeInfoCount)(THIS_ UINT* pctinfo) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,GetIDsOfNames)(THIS_ REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgDispId) PURE; \ - STDMETHOD_(HRESULT,Invoke)(THIS_ DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) PURE; - -HRESULT CALLBACK IDispatch_GetTypeInfoCount_Proxy( - IDispatch* This, - UINT* pctinfo); -void __RPC_STUB IDispatch_GetTypeInfoCount_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatch_GetTypeInfo_Proxy( - IDispatch* This, - UINT iTInfo, - LCID lcid, - ITypeInfo** ppTInfo); -void __RPC_STUB IDispatch_GetTypeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatch_GetIDsOfNames_Proxy( - IDispatch* This, - REFIID riid, - LPOLESTR* rgszNames, - UINT cNames, - LCID lcid, - DISPID* rgDispId); -void __RPC_STUB IDispatch_GetIDsOfNames_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatch_RemoteInvoke_Proxy( - IDispatch* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - DWORD dwFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* pArgErr, - UINT cVarRef, - UINT* rgVarRefIdx, - VARIANTARG* rgVarRef); -void __RPC_STUB IDispatch_RemoteInvoke_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDispatch_Invoke_Proxy( - IDispatch* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); -HRESULT __RPC_STUB IDispatch_Invoke_Stub( - IDispatch* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - DWORD dwFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* pArgErr, - UINT cVarRef, - UINT* rgVarRefIdx, - VARIANTARG* rgVarRef); - -#endif /* __IDispatch_INTERFACE_DEFINED__ */ - -#ifndef __IEnumVARIANT_FWD_DEFINED__ -#define __IEnumVARIANT_FWD_DEFINED__ -typedef struct IEnumVARIANT IEnumVARIANT; -#endif - -typedef IEnumVARIANT *LPENUMVARIANT; - -/***************************************************************************** - * IEnumVARIANT interface - */ -#ifndef __IEnumVARIANT_INTERFACE_DEFINED__ -#define __IEnumVARIANT_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumVARIANT, 0x00020404, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumVARIANT : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - VARIANT* rgVar, - ULONG* pCeltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumVARIANT** ppEnum) = 0; - -}; -#else -typedef struct IEnumVARIANTVtbl IEnumVARIANTVtbl; -struct IEnumVARIANT { - const IEnumVARIANTVtbl* lpVtbl; -}; -struct IEnumVARIANTVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumVARIANT* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumVARIANT* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumVARIANT* This); - - /*** IEnumVARIANT methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumVARIANT* This, - ULONG celt, - VARIANT* rgVar, - ULONG* pCeltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumVARIANT* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumVARIANT* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumVARIANT* This, - IEnumVARIANT** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumVARIANT_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumVARIANT_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumVARIANT_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumVARIANT methods ***/ -#define IEnumVARIANT_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumVARIANT_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumVARIANT_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumVARIANT_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumVARIANT_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumVARIANT methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, VARIANT* rgVar, ULONG* pCeltFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumVARIANT** ppEnum) PURE; - -HRESULT CALLBACK IEnumVARIANT_RemoteNext_Proxy( - IEnumVARIANT* This, - ULONG celt, - VARIANT* rgVar, - ULONG* pCeltFetched); -void __RPC_STUB IEnumVARIANT_RemoteNext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumVARIANT_Next_Proxy( - IEnumVARIANT* This, - ULONG celt, - VARIANT* rgVar, - ULONG* pCeltFetched); -HRESULT __RPC_STUB IEnumVARIANT_Next_Stub( - IEnumVARIANT* This, - ULONG celt, - VARIANT* rgVar, - ULONG* pCeltFetched); -HRESULT CALLBACK IEnumVARIANT_Skip_Proxy( - IEnumVARIANT* This, - ULONG celt); -void __RPC_STUB IEnumVARIANT_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumVARIANT_Reset_Proxy( - IEnumVARIANT* This); -void __RPC_STUB IEnumVARIANT_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumVARIANT_Clone_Proxy( - IEnumVARIANT* This, - IEnumVARIANT** ppEnum); -void __RPC_STUB IEnumVARIANT_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumVARIANT_INTERFACE_DEFINED__ */ - -#ifndef __ITypeComp_FWD_DEFINED__ -#define __ITypeComp_FWD_DEFINED__ -typedef struct ITypeComp ITypeComp; -#endif - -typedef ITypeComp *LPTYPECOMP; - -typedef enum tagDESCKIND { - DESCKIND_NONE = 0, - DESCKIND_FUNCDESC, - DESCKIND_VARDESC, - DESCKIND_TYPECOMP, - DESCKIND_IMPLICITAPPOBJ, - DESCKIND_MAX -} DESCKIND; - -typedef union tagBINDPTR { - FUNCDESC *lpfuncdesc; - VARDESC *lpvardesc; - ITypeComp *lptcomp; -} BINDPTR, *LPBINDPTR; - -/***************************************************************************** - * ITypeComp interface - */ -#ifndef __ITypeComp_INTERFACE_DEFINED__ -#define __ITypeComp_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ITypeComp, 0x00020403, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ITypeComp : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Bind( - LPOLESTR szName, - ULONG lHashVal, - WORD wFlags, - ITypeInfo** ppTInfo, - DESCKIND* pDescKind, - BINDPTR* pBindPtr) = 0; - - virtual HRESULT STDMETHODCALLTYPE BindType( - LPOLESTR szName, - ULONG lHashVal, - ITypeInfo** ppTInfo, - ITypeComp** ppTComp) = 0; - -}; -#else -typedef struct ITypeCompVtbl ITypeCompVtbl; -struct ITypeComp { - const ITypeCompVtbl* lpVtbl; -}; -struct ITypeCompVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ITypeComp* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ITypeComp* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ITypeComp* This); - - /*** ITypeComp methods ***/ - HRESULT (STDMETHODCALLTYPE *Bind)( - ITypeComp* This, - LPOLESTR szName, - ULONG lHashVal, - WORD wFlags, - ITypeInfo** ppTInfo, - DESCKIND* pDescKind, - BINDPTR* pBindPtr); - - HRESULT (STDMETHODCALLTYPE *BindType)( - ITypeComp* This, - LPOLESTR szName, - ULONG lHashVal, - ITypeInfo** ppTInfo, - ITypeComp** ppTComp); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ITypeComp_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ITypeComp_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ITypeComp_Release(p) (p)->lpVtbl->Release(p) -/*** ITypeComp methods ***/ -#define ITypeComp_Bind(p,a,b,c,d,e,f) (p)->lpVtbl->Bind(p,a,b,c,d,e,f) -#define ITypeComp_BindType(p,a,b,c,d) (p)->lpVtbl->BindType(p,a,b,c,d) -#endif - -#endif - -#define ITypeComp_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ITypeComp methods ***/ \ - STDMETHOD_(HRESULT,Bind)(THIS_ LPOLESTR szName, ULONG lHashVal, WORD wFlags, ITypeInfo** ppTInfo, DESCKIND* pDescKind, BINDPTR* pBindPtr) PURE; \ - STDMETHOD_(HRESULT,BindType)(THIS_ LPOLESTR szName, ULONG lHashVal, ITypeInfo** ppTInfo, ITypeComp** ppTComp) PURE; - -HRESULT CALLBACK ITypeComp_RemoteBind_Proxy( - ITypeComp* This, - LPOLESTR szName, - ULONG lHashVal, - WORD wFlags, - ITypeInfo** ppTInfo, - DESCKIND* pDescKind, - LPFUNCDESC* ppFuncDesc, - LPVARDESC* ppVarDesc, - ITypeComp** ppTypeComp, - CLEANLOCALSTORAGE* pDummy); -void __RPC_STUB ITypeComp_RemoteBind_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeComp_Bind_Proxy( - ITypeComp* This, - LPOLESTR szName, - ULONG lHashVal, - WORD wFlags, - ITypeInfo** ppTInfo, - DESCKIND* pDescKind, - BINDPTR* pBindPtr); -HRESULT __RPC_STUB ITypeComp_Bind_Stub( - ITypeComp* This, - LPOLESTR szName, - ULONG lHashVal, - WORD wFlags, - ITypeInfo** ppTInfo, - DESCKIND* pDescKind, - LPFUNCDESC* ppFuncDesc, - LPVARDESC* ppVarDesc, - ITypeComp** ppTypeComp, - CLEANLOCALSTORAGE* pDummy); -HRESULT CALLBACK ITypeComp_RemoteBindType_Proxy( - ITypeComp* This, - LPOLESTR szName, - ULONG lHashVal, - ITypeInfo** ppTInfo); -void __RPC_STUB ITypeComp_RemoteBindType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeComp_BindType_Proxy( - ITypeComp* This, - LPOLESTR szName, - ULONG lHashVal, - ITypeInfo** ppTInfo, - ITypeComp** ppTComp); -HRESULT __RPC_STUB ITypeComp_BindType_Stub( - ITypeComp* This, - LPOLESTR szName, - ULONG lHashVal, - ITypeInfo** ppTInfo); - -#endif /* __ITypeComp_INTERFACE_DEFINED__ */ - -typedef ITypeInfo *LPTYPEINFO; - -/***************************************************************************** - * ITypeInfo interface - */ -#ifndef __ITypeInfo_INTERFACE_DEFINED__ -#define __ITypeInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ITypeInfo, 0x00020401, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ITypeInfo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetTypeAttr( - TYPEATTR** ppTypeAttr) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTypeComp( - ITypeComp** ppTComp) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFuncDesc( - UINT index, - FUNCDESC** ppFuncDesc) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVarDesc( - UINT index, - VARDESC** ppVarDesc) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNames( - MEMBERID memid, - BSTR* rgBstrNames, - UINT cMaxNames, - UINT* pcNames) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRefTypeOfImplType( - UINT index, - HREFTYPE* pRefType) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetImplTypeFlags( - UINT index, - INT* pImplTypeFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetIDsOfNames( - LPOLESTR* rgszNames, - UINT cNames, - MEMBERID* pMemId) = 0; - - virtual HRESULT STDMETHODCALLTYPE Invoke( - PVOID pvInstance, - MEMBERID memid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDocumentation( - MEMBERID memid, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDllEntry( - MEMBERID memid, - INVOKEKIND invKind, - BSTR* pBstrDllName, - BSTR* pBstrName, - WORD* pwOrdinal) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRefTypeInfo( - HREFTYPE hRefType, - ITypeInfo** ppTInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddressOfMember( - MEMBERID memid, - INVOKEKIND invKind, - PVOID* ppv) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateInstance( - IUnknown* pUnkOuter, - REFIID riid, - PVOID* ppvObj) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMops( - MEMBERID memid, - BSTR* pBstrMops) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetContainingTypeLib( - ITypeLib** ppTLib, - UINT* pIndex) = 0; - - virtual void STDMETHODCALLTYPE ReleaseTypeAttr( - TYPEATTR* pTypeAttr) = 0; - - virtual void STDMETHODCALLTYPE ReleaseFuncDesc( - FUNCDESC* pFuncDesc) = 0; - - virtual void STDMETHODCALLTYPE ReleaseVarDesc( - VARDESC* pVarDesc) = 0; - -}; -#else -typedef struct ITypeInfoVtbl ITypeInfoVtbl; -struct ITypeInfo { - const ITypeInfoVtbl* lpVtbl; -}; -struct ITypeInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ITypeInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ITypeInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ITypeInfo* This); - - /*** ITypeInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeAttr)( - ITypeInfo* This, - TYPEATTR** ppTypeAttr); - - HRESULT (STDMETHODCALLTYPE *GetTypeComp)( - ITypeInfo* This, - ITypeComp** ppTComp); - - HRESULT (STDMETHODCALLTYPE *GetFuncDesc)( - ITypeInfo* This, - UINT index, - FUNCDESC** ppFuncDesc); - - HRESULT (STDMETHODCALLTYPE *GetVarDesc)( - ITypeInfo* This, - UINT index, - VARDESC** ppVarDesc); - - HRESULT (STDMETHODCALLTYPE *GetNames)( - ITypeInfo* This, - MEMBERID memid, - BSTR* rgBstrNames, - UINT cMaxNames, - UINT* pcNames); - - HRESULT (STDMETHODCALLTYPE *GetRefTypeOfImplType)( - ITypeInfo* This, - UINT index, - HREFTYPE* pRefType); - - HRESULT (STDMETHODCALLTYPE *GetImplTypeFlags)( - ITypeInfo* This, - UINT index, - INT* pImplTypeFlags); - - HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)( - ITypeInfo* This, - LPOLESTR* rgszNames, - UINT cNames, - MEMBERID* pMemId); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - ITypeInfo* This, - PVOID pvInstance, - MEMBERID memid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); - - HRESULT (STDMETHODCALLTYPE *GetDocumentation)( - ITypeInfo* This, - MEMBERID memid, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile); - - HRESULT (STDMETHODCALLTYPE *GetDllEntry)( - ITypeInfo* This, - MEMBERID memid, - INVOKEKIND invKind, - BSTR* pBstrDllName, - BSTR* pBstrName, - WORD* pwOrdinal); - - HRESULT (STDMETHODCALLTYPE *GetRefTypeInfo)( - ITypeInfo* This, - HREFTYPE hRefType, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *AddressOfMember)( - ITypeInfo* This, - MEMBERID memid, - INVOKEKIND invKind, - PVOID* ppv); - - HRESULT (STDMETHODCALLTYPE *CreateInstance)( - ITypeInfo* This, - IUnknown* pUnkOuter, - REFIID riid, - PVOID* ppvObj); - - HRESULT (STDMETHODCALLTYPE *GetMops)( - ITypeInfo* This, - MEMBERID memid, - BSTR* pBstrMops); - - HRESULT (STDMETHODCALLTYPE *GetContainingTypeLib)( - ITypeInfo* This, - ITypeLib** ppTLib, - UINT* pIndex); - - void (STDMETHODCALLTYPE *ReleaseTypeAttr)( - ITypeInfo* This, - TYPEATTR* pTypeAttr); - - void (STDMETHODCALLTYPE *ReleaseFuncDesc)( - ITypeInfo* This, - FUNCDESC* pFuncDesc); - - void (STDMETHODCALLTYPE *ReleaseVarDesc)( - ITypeInfo* This, - VARDESC* pVarDesc); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ITypeInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ITypeInfo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ITypeInfo_Release(p) (p)->lpVtbl->Release(p) -/*** ITypeInfo methods ***/ -#define ITypeInfo_GetTypeAttr(p,a) (p)->lpVtbl->GetTypeAttr(p,a) -#define ITypeInfo_GetTypeComp(p,a) (p)->lpVtbl->GetTypeComp(p,a) -#define ITypeInfo_GetFuncDesc(p,a,b) (p)->lpVtbl->GetFuncDesc(p,a,b) -#define ITypeInfo_GetVarDesc(p,a,b) (p)->lpVtbl->GetVarDesc(p,a,b) -#define ITypeInfo_GetNames(p,a,b,c,d) (p)->lpVtbl->GetNames(p,a,b,c,d) -#define ITypeInfo_GetRefTypeOfImplType(p,a,b) (p)->lpVtbl->GetRefTypeOfImplType(p,a,b) -#define ITypeInfo_GetImplTypeFlags(p,a,b) (p)->lpVtbl->GetImplTypeFlags(p,a,b) -#define ITypeInfo_GetIDsOfNames(p,a,b,c) (p)->lpVtbl->GetIDsOfNames(p,a,b,c) -#define ITypeInfo_Invoke(p,a,b,c,d,e,f,g) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g) -#define ITypeInfo_GetDocumentation(p,a,b,c,d,e) (p)->lpVtbl->GetDocumentation(p,a,b,c,d,e) -#define ITypeInfo_GetDllEntry(p,a,b,c,d,e) (p)->lpVtbl->GetDllEntry(p,a,b,c,d,e) -#define ITypeInfo_GetRefTypeInfo(p,a,b) (p)->lpVtbl->GetRefTypeInfo(p,a,b) -#define ITypeInfo_AddressOfMember(p,a,b,c) (p)->lpVtbl->AddressOfMember(p,a,b,c) -#define ITypeInfo_CreateInstance(p,a,b,c) (p)->lpVtbl->CreateInstance(p,a,b,c) -#define ITypeInfo_GetMops(p,a,b) (p)->lpVtbl->GetMops(p,a,b) -#define ITypeInfo_GetContainingTypeLib(p,a,b) (p)->lpVtbl->GetContainingTypeLib(p,a,b) -#define ITypeInfo_ReleaseTypeAttr(p,a) (p)->lpVtbl->ReleaseTypeAttr(p,a) -#define ITypeInfo_ReleaseFuncDesc(p,a) (p)->lpVtbl->ReleaseFuncDesc(p,a) -#define ITypeInfo_ReleaseVarDesc(p,a) (p)->lpVtbl->ReleaseVarDesc(p,a) -#endif - -#endif - -#define ITypeInfo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ITypeInfo methods ***/ \ - STDMETHOD_(HRESULT,GetTypeAttr)(THIS_ TYPEATTR** ppTypeAttr) PURE; \ - STDMETHOD_(HRESULT,GetTypeComp)(THIS_ ITypeComp** ppTComp) PURE; \ - STDMETHOD_(HRESULT,GetFuncDesc)(THIS_ UINT index, FUNCDESC** ppFuncDesc) PURE; \ - STDMETHOD_(HRESULT,GetVarDesc)(THIS_ UINT index, VARDESC** ppVarDesc) PURE; \ - STDMETHOD_(HRESULT,GetNames)(THIS_ MEMBERID memid, BSTR* rgBstrNames, UINT cMaxNames, UINT* pcNames) PURE; \ - STDMETHOD_(HRESULT,GetRefTypeOfImplType)(THIS_ UINT index, HREFTYPE* pRefType) PURE; \ - STDMETHOD_(HRESULT,GetImplTypeFlags)(THIS_ UINT index, INT* pImplTypeFlags) PURE; \ - STDMETHOD_(HRESULT,GetIDsOfNames)(THIS_ LPOLESTR* rgszNames, UINT cNames, MEMBERID* pMemId) PURE; \ - STDMETHOD_(HRESULT,Invoke)(THIS_ PVOID pvInstance, MEMBERID memid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) PURE; \ - STDMETHOD_(HRESULT,GetDocumentation)(THIS_ MEMBERID memid, BSTR* pBstrName, BSTR* pBstrDocString, DWORD* pdwHelpContext, BSTR* pBstrHelpFile) PURE; \ - STDMETHOD_(HRESULT,GetDllEntry)(THIS_ MEMBERID memid, INVOKEKIND invKind, BSTR* pBstrDllName, BSTR* pBstrName, WORD* pwOrdinal) PURE; \ - STDMETHOD_(HRESULT,GetRefTypeInfo)(THIS_ HREFTYPE hRefType, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,AddressOfMember)(THIS_ MEMBERID memid, INVOKEKIND invKind, PVOID* ppv) PURE; \ - STDMETHOD_(HRESULT,CreateInstance)(THIS_ IUnknown* pUnkOuter, REFIID riid, PVOID* ppvObj) PURE; \ - STDMETHOD_(HRESULT,GetMops)(THIS_ MEMBERID memid, BSTR* pBstrMops) PURE; \ - STDMETHOD_(HRESULT,GetContainingTypeLib)(THIS_ ITypeLib** ppTLib, UINT* pIndex) PURE; \ - STDMETHOD_(void,ReleaseTypeAttr)(THIS_ TYPEATTR* pTypeAttr) PURE; \ - STDMETHOD_(void,ReleaseFuncDesc)(THIS_ FUNCDESC* pFuncDesc) PURE; \ - STDMETHOD_(void,ReleaseVarDesc)(THIS_ VARDESC* pVarDesc) PURE; - -HRESULT CALLBACK ITypeInfo_RemoteGetTypeAttr_Proxy( - ITypeInfo* This, - LPTYPEATTR* ppTypeAttr, - CLEANLOCALSTORAGE* pDummy); -void __RPC_STUB ITypeInfo_RemoteGetTypeAttr_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_GetTypeAttr_Proxy( - ITypeInfo* This, - TYPEATTR** ppTypeAttr); -HRESULT __RPC_STUB ITypeInfo_GetTypeAttr_Stub( - ITypeInfo* This, - LPTYPEATTR* ppTypeAttr, - CLEANLOCALSTORAGE* pDummy); -HRESULT CALLBACK ITypeInfo_GetTypeComp_Proxy( - ITypeInfo* This, - ITypeComp** ppTComp); -void __RPC_STUB ITypeInfo_GetTypeComp_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_RemoteGetFuncDesc_Proxy( - ITypeInfo* This, - UINT index, - LPFUNCDESC* ppFuncDesc, - CLEANLOCALSTORAGE* pDummy); -void __RPC_STUB ITypeInfo_RemoteGetFuncDesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_GetFuncDesc_Proxy( - ITypeInfo* This, - UINT index, - FUNCDESC** ppFuncDesc); -HRESULT __RPC_STUB ITypeInfo_GetFuncDesc_Stub( - ITypeInfo* This, - UINT index, - LPFUNCDESC* ppFuncDesc, - CLEANLOCALSTORAGE* pDummy); -HRESULT CALLBACK ITypeInfo_RemoteGetVarDesc_Proxy( - ITypeInfo* This, - UINT index, - LPVARDESC* ppVarDesc, - CLEANLOCALSTORAGE* pDummy); -void __RPC_STUB ITypeInfo_RemoteGetVarDesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_GetVarDesc_Proxy( - ITypeInfo* This, - UINT index, - VARDESC** ppVarDesc); -HRESULT __RPC_STUB ITypeInfo_GetVarDesc_Stub( - ITypeInfo* This, - UINT index, - LPVARDESC* ppVarDesc, - CLEANLOCALSTORAGE* pDummy); -HRESULT CALLBACK ITypeInfo_RemoteGetNames_Proxy( - ITypeInfo* This, - MEMBERID memid, - BSTR* rgBstrNames, - UINT cMaxNames, - UINT* pcNames); -void __RPC_STUB ITypeInfo_RemoteGetNames_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_GetNames_Proxy( - ITypeInfo* This, - MEMBERID memid, - BSTR* rgBstrNames, - UINT cMaxNames, - UINT* pcNames); -HRESULT __RPC_STUB ITypeInfo_GetNames_Stub( - ITypeInfo* This, - MEMBERID memid, - BSTR* rgBstrNames, - UINT cMaxNames, - UINT* pcNames); -HRESULT CALLBACK ITypeInfo_GetRefTypeOfImplType_Proxy( - ITypeInfo* This, - UINT index, - HREFTYPE* pRefType); -void __RPC_STUB ITypeInfo_GetRefTypeOfImplType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_GetImplTypeFlags_Proxy( - ITypeInfo* This, - UINT index, - INT* pImplTypeFlags); -void __RPC_STUB ITypeInfo_GetImplTypeFlags_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_LocalGetIDsOfNames_Proxy( - ITypeInfo* This); -void __RPC_STUB ITypeInfo_LocalGetIDsOfNames_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_GetIDsOfNames_Proxy( - ITypeInfo* This, - LPOLESTR* rgszNames, - UINT cNames, - MEMBERID* pMemId); -HRESULT __RPC_STUB ITypeInfo_GetIDsOfNames_Stub( - ITypeInfo* This); -HRESULT CALLBACK ITypeInfo_LocalInvoke_Proxy( - ITypeInfo* This); -void __RPC_STUB ITypeInfo_LocalInvoke_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_Invoke_Proxy( - ITypeInfo* This, - PVOID pvInstance, - MEMBERID memid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); -HRESULT __RPC_STUB ITypeInfo_Invoke_Stub( - ITypeInfo* This); -HRESULT CALLBACK ITypeInfo_RemoteGetDocumentation_Proxy( - ITypeInfo* This, - MEMBERID memid, - DWORD refPtrFlags, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile); -void __RPC_STUB ITypeInfo_RemoteGetDocumentation_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_GetDocumentation_Proxy( - ITypeInfo* This, - MEMBERID memid, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile); -HRESULT __RPC_STUB ITypeInfo_GetDocumentation_Stub( - ITypeInfo* This, - MEMBERID memid, - DWORD refPtrFlags, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile); -HRESULT CALLBACK ITypeInfo_RemoteGetDllEntry_Proxy( - ITypeInfo* This, - MEMBERID memid, - INVOKEKIND invKind, - DWORD refPtrFlags, - BSTR* pBstrDllName, - BSTR* pBstrName, - WORD* pwOrdinal); -void __RPC_STUB ITypeInfo_RemoteGetDllEntry_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_GetDllEntry_Proxy( - ITypeInfo* This, - MEMBERID memid, - INVOKEKIND invKind, - BSTR* pBstrDllName, - BSTR* pBstrName, - WORD* pwOrdinal); -HRESULT __RPC_STUB ITypeInfo_GetDllEntry_Stub( - ITypeInfo* This, - MEMBERID memid, - INVOKEKIND invKind, - DWORD refPtrFlags, - BSTR* pBstrDllName, - BSTR* pBstrName, - WORD* pwOrdinal); -HRESULT CALLBACK ITypeInfo_GetRefTypeInfo_Proxy( - ITypeInfo* This, - HREFTYPE hRefType, - ITypeInfo** ppTInfo); -void __RPC_STUB ITypeInfo_GetRefTypeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_LocalAddressOfMember_Proxy( - ITypeInfo* This); -void __RPC_STUB ITypeInfo_LocalAddressOfMember_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_AddressOfMember_Proxy( - ITypeInfo* This, - MEMBERID memid, - INVOKEKIND invKind, - PVOID* ppv); -HRESULT __RPC_STUB ITypeInfo_AddressOfMember_Stub( - ITypeInfo* This); -HRESULT CALLBACK ITypeInfo_RemoteCreateInstance_Proxy( - ITypeInfo* This, - REFIID riid, - IUnknown** ppvObj); -void __RPC_STUB ITypeInfo_RemoteCreateInstance_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_CreateInstance_Proxy( - ITypeInfo* This, - IUnknown* pUnkOuter, - REFIID riid, - PVOID* ppvObj); -HRESULT __RPC_STUB ITypeInfo_CreateInstance_Stub( - ITypeInfo* This, - REFIID riid, - IUnknown** ppvObj); -HRESULT CALLBACK ITypeInfo_GetMops_Proxy( - ITypeInfo* This, - MEMBERID memid, - BSTR* pBstrMops); -void __RPC_STUB ITypeInfo_GetMops_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_RemoteGetContainingTypeLib_Proxy( - ITypeInfo* This, - ITypeLib** ppTLib, - UINT* pIndex); -void __RPC_STUB ITypeInfo_RemoteGetContainingTypeLib_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo_GetContainingTypeLib_Proxy( - ITypeInfo* This, - ITypeLib** ppTLib, - UINT* pIndex); -HRESULT __RPC_STUB ITypeInfo_GetContainingTypeLib_Stub( - ITypeInfo* This, - ITypeLib** ppTLib, - UINT* pIndex); -HRESULT CALLBACK ITypeInfo_LocalReleaseTypeAttr_Proxy( - ITypeInfo* This); -void __RPC_STUB ITypeInfo_LocalReleaseTypeAttr_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -void CALLBACK ITypeInfo_ReleaseTypeAttr_Proxy( - ITypeInfo* This, - TYPEATTR* pTypeAttr); -HRESULT __RPC_STUB ITypeInfo_ReleaseTypeAttr_Stub( - ITypeInfo* This); -HRESULT CALLBACK ITypeInfo_LocalReleaseFuncDesc_Proxy( - ITypeInfo* This); -void __RPC_STUB ITypeInfo_LocalReleaseFuncDesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -void CALLBACK ITypeInfo_ReleaseFuncDesc_Proxy( - ITypeInfo* This, - FUNCDESC* pFuncDesc); -HRESULT __RPC_STUB ITypeInfo_ReleaseFuncDesc_Stub( - ITypeInfo* This); -HRESULT CALLBACK ITypeInfo_LocalReleaseVarDesc_Proxy( - ITypeInfo* This); -void __RPC_STUB ITypeInfo_LocalReleaseVarDesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -void CALLBACK ITypeInfo_ReleaseVarDesc_Proxy( - ITypeInfo* This, - VARDESC* pVarDesc); -HRESULT __RPC_STUB ITypeInfo_ReleaseVarDesc_Stub( - ITypeInfo* This); - -#endif /* __ITypeInfo_INTERFACE_DEFINED__ */ - -#ifndef __ITypeInfo2_FWD_DEFINED__ -#define __ITypeInfo2_FWD_DEFINED__ -typedef struct ITypeInfo2 ITypeInfo2; -#endif - -typedef ITypeInfo2 *LPTYPEINFO2; - -/***************************************************************************** - * ITypeInfo2 interface - */ -#ifndef __ITypeInfo2_INTERFACE_DEFINED__ -#define __ITypeInfo2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ITypeInfo2, 0x00020412, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ITypeInfo2 : public ITypeInfo -{ - virtual HRESULT STDMETHODCALLTYPE GetTypeKind( - TYPEKIND* pTypeKind) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTypeFlags( - ULONG* pTypeFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFuncIndexOfMemId( - MEMBERID memid, - INVOKEKIND invKind, - UINT* pFuncIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVarIndexOfMemId( - MEMBERID memid, - UINT* pVarIndex) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCustData( - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFuncCustData( - UINT index, - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetParamCustData( - UINT indexFunc, - UINT indexParam, - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVarCustData( - UINT index, - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetImplTypeCustData( - UINT index, - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDocumentation2( - MEMBERID memid, - LCID lcid, - BSTR* pbstrHelpString, - DWORD* pdwHelpStringContext, - BSTR* pbstrHelpStringDll) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllCustData( - CUSTDATA* pCustData) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllFuncCustData( - UINT index, - CUSTDATA* pCustData) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllParamCustData( - UINT indexFunc, - UINT indexParam, - CUSTDATA* pCustData) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllVarCustData( - UINT index, - CUSTDATA* pCustData) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllImplTypeCustData( - UINT index, - CUSTDATA* pCustData) = 0; - -}; -#else -typedef struct ITypeInfo2Vtbl ITypeInfo2Vtbl; -struct ITypeInfo2 { - const ITypeInfo2Vtbl* lpVtbl; -}; -struct ITypeInfo2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ITypeInfo2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ITypeInfo2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ITypeInfo2* This); - - /*** ITypeInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeAttr)( - ITypeInfo2* This, - TYPEATTR** ppTypeAttr); - - HRESULT (STDMETHODCALLTYPE *GetTypeComp)( - ITypeInfo2* This, - ITypeComp** ppTComp); - - HRESULT (STDMETHODCALLTYPE *GetFuncDesc)( - ITypeInfo2* This, - UINT index, - FUNCDESC** ppFuncDesc); - - HRESULT (STDMETHODCALLTYPE *GetVarDesc)( - ITypeInfo2* This, - UINT index, - VARDESC** ppVarDesc); - - HRESULT (STDMETHODCALLTYPE *GetNames)( - ITypeInfo2* This, - MEMBERID memid, - BSTR* rgBstrNames, - UINT cMaxNames, - UINT* pcNames); - - HRESULT (STDMETHODCALLTYPE *GetRefTypeOfImplType)( - ITypeInfo2* This, - UINT index, - HREFTYPE* pRefType); - - HRESULT (STDMETHODCALLTYPE *GetImplTypeFlags)( - ITypeInfo2* This, - UINT index, - INT* pImplTypeFlags); - - HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)( - ITypeInfo2* This, - LPOLESTR* rgszNames, - UINT cNames, - MEMBERID* pMemId); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - ITypeInfo2* This, - PVOID pvInstance, - MEMBERID memid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); - - HRESULT (STDMETHODCALLTYPE *GetDocumentation)( - ITypeInfo2* This, - MEMBERID memid, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile); - - HRESULT (STDMETHODCALLTYPE *GetDllEntry)( - ITypeInfo2* This, - MEMBERID memid, - INVOKEKIND invKind, - BSTR* pBstrDllName, - BSTR* pBstrName, - WORD* pwOrdinal); - - HRESULT (STDMETHODCALLTYPE *GetRefTypeInfo)( - ITypeInfo2* This, - HREFTYPE hRefType, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *AddressOfMember)( - ITypeInfo2* This, - MEMBERID memid, - INVOKEKIND invKind, - PVOID* ppv); - - HRESULT (STDMETHODCALLTYPE *CreateInstance)( - ITypeInfo2* This, - IUnknown* pUnkOuter, - REFIID riid, - PVOID* ppvObj); - - HRESULT (STDMETHODCALLTYPE *GetMops)( - ITypeInfo2* This, - MEMBERID memid, - BSTR* pBstrMops); - - HRESULT (STDMETHODCALLTYPE *GetContainingTypeLib)( - ITypeInfo2* This, - ITypeLib** ppTLib, - UINT* pIndex); - - void (STDMETHODCALLTYPE *ReleaseTypeAttr)( - ITypeInfo2* This, - TYPEATTR* pTypeAttr); - - void (STDMETHODCALLTYPE *ReleaseFuncDesc)( - ITypeInfo2* This, - FUNCDESC* pFuncDesc); - - void (STDMETHODCALLTYPE *ReleaseVarDesc)( - ITypeInfo2* This, - VARDESC* pVarDesc); - - /*** ITypeInfo2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeKind)( - ITypeInfo2* This, - TYPEKIND* pTypeKind); - - HRESULT (STDMETHODCALLTYPE *GetTypeFlags)( - ITypeInfo2* This, - ULONG* pTypeFlags); - - HRESULT (STDMETHODCALLTYPE *GetFuncIndexOfMemId)( - ITypeInfo2* This, - MEMBERID memid, - INVOKEKIND invKind, - UINT* pFuncIndex); - - HRESULT (STDMETHODCALLTYPE *GetVarIndexOfMemId)( - ITypeInfo2* This, - MEMBERID memid, - UINT* pVarIndex); - - HRESULT (STDMETHODCALLTYPE *GetCustData)( - ITypeInfo2* This, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *GetFuncCustData)( - ITypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *GetParamCustData)( - ITypeInfo2* This, - UINT indexFunc, - UINT indexParam, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *GetVarCustData)( - ITypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *GetImplTypeCustData)( - ITypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *GetDocumentation2)( - ITypeInfo2* This, - MEMBERID memid, - LCID lcid, - BSTR* pbstrHelpString, - DWORD* pdwHelpStringContext, - BSTR* pbstrHelpStringDll); - - HRESULT (STDMETHODCALLTYPE *GetAllCustData)( - ITypeInfo2* This, - CUSTDATA* pCustData); - - HRESULT (STDMETHODCALLTYPE *GetAllFuncCustData)( - ITypeInfo2* This, - UINT index, - CUSTDATA* pCustData); - - HRESULT (STDMETHODCALLTYPE *GetAllParamCustData)( - ITypeInfo2* This, - UINT indexFunc, - UINT indexParam, - CUSTDATA* pCustData); - - HRESULT (STDMETHODCALLTYPE *GetAllVarCustData)( - ITypeInfo2* This, - UINT index, - CUSTDATA* pCustData); - - HRESULT (STDMETHODCALLTYPE *GetAllImplTypeCustData)( - ITypeInfo2* This, - UINT index, - CUSTDATA* pCustData); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ITypeInfo2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ITypeInfo2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ITypeInfo2_Release(p) (p)->lpVtbl->Release(p) -/*** ITypeInfo methods ***/ -#define ITypeInfo2_GetTypeAttr(p,a) (p)->lpVtbl->GetTypeAttr(p,a) -#define ITypeInfo2_GetTypeComp(p,a) (p)->lpVtbl->GetTypeComp(p,a) -#define ITypeInfo2_GetFuncDesc(p,a,b) (p)->lpVtbl->GetFuncDesc(p,a,b) -#define ITypeInfo2_GetVarDesc(p,a,b) (p)->lpVtbl->GetVarDesc(p,a,b) -#define ITypeInfo2_GetNames(p,a,b,c,d) (p)->lpVtbl->GetNames(p,a,b,c,d) -#define ITypeInfo2_GetRefTypeOfImplType(p,a,b) (p)->lpVtbl->GetRefTypeOfImplType(p,a,b) -#define ITypeInfo2_GetImplTypeFlags(p,a,b) (p)->lpVtbl->GetImplTypeFlags(p,a,b) -#define ITypeInfo2_GetIDsOfNames(p,a,b,c) (p)->lpVtbl->GetIDsOfNames(p,a,b,c) -#define ITypeInfo2_Invoke(p,a,b,c,d,e,f,g) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g) -#define ITypeInfo2_GetDocumentation(p,a,b,c,d,e) (p)->lpVtbl->GetDocumentation(p,a,b,c,d,e) -#define ITypeInfo2_GetDllEntry(p,a,b,c,d,e) (p)->lpVtbl->GetDllEntry(p,a,b,c,d,e) -#define ITypeInfo2_GetRefTypeInfo(p,a,b) (p)->lpVtbl->GetRefTypeInfo(p,a,b) -#define ITypeInfo2_AddressOfMember(p,a,b,c) (p)->lpVtbl->AddressOfMember(p,a,b,c) -#define ITypeInfo2_CreateInstance(p,a,b,c) (p)->lpVtbl->CreateInstance(p,a,b,c) -#define ITypeInfo2_GetMops(p,a,b) (p)->lpVtbl->GetMops(p,a,b) -#define ITypeInfo2_GetContainingTypeLib(p,a,b) (p)->lpVtbl->GetContainingTypeLib(p,a,b) -#define ITypeInfo2_ReleaseTypeAttr(p,a) (p)->lpVtbl->ReleaseTypeAttr(p,a) -#define ITypeInfo2_ReleaseFuncDesc(p,a) (p)->lpVtbl->ReleaseFuncDesc(p,a) -#define ITypeInfo2_ReleaseVarDesc(p,a) (p)->lpVtbl->ReleaseVarDesc(p,a) -/*** ITypeInfo2 methods ***/ -#define ITypeInfo2_GetTypeKind(p,a) (p)->lpVtbl->GetTypeKind(p,a) -#define ITypeInfo2_GetTypeFlags(p,a) (p)->lpVtbl->GetTypeFlags(p,a) -#define ITypeInfo2_GetFuncIndexOfMemId(p,a,b,c) (p)->lpVtbl->GetFuncIndexOfMemId(p,a,b,c) -#define ITypeInfo2_GetVarIndexOfMemId(p,a,b) (p)->lpVtbl->GetVarIndexOfMemId(p,a,b) -#define ITypeInfo2_GetCustData(p,a,b) (p)->lpVtbl->GetCustData(p,a,b) -#define ITypeInfo2_GetFuncCustData(p,a,b,c) (p)->lpVtbl->GetFuncCustData(p,a,b,c) -#define ITypeInfo2_GetParamCustData(p,a,b,c,d) (p)->lpVtbl->GetParamCustData(p,a,b,c,d) -#define ITypeInfo2_GetVarCustData(p,a,b,c) (p)->lpVtbl->GetVarCustData(p,a,b,c) -#define ITypeInfo2_GetImplTypeCustData(p,a,b,c) (p)->lpVtbl->GetImplTypeCustData(p,a,b,c) -#define ITypeInfo2_GetDocumentation2(p,a,b,c,d,e) (p)->lpVtbl->GetDocumentation2(p,a,b,c,d,e) -#define ITypeInfo2_GetAllCustData(p,a) (p)->lpVtbl->GetAllCustData(p,a) -#define ITypeInfo2_GetAllFuncCustData(p,a,b) (p)->lpVtbl->GetAllFuncCustData(p,a,b) -#define ITypeInfo2_GetAllParamCustData(p,a,b,c) (p)->lpVtbl->GetAllParamCustData(p,a,b,c) -#define ITypeInfo2_GetAllVarCustData(p,a,b) (p)->lpVtbl->GetAllVarCustData(p,a,b) -#define ITypeInfo2_GetAllImplTypeCustData(p,a,b) (p)->lpVtbl->GetAllImplTypeCustData(p,a,b) -#endif - -#endif - -#define ITypeInfo2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ITypeInfo methods ***/ \ - STDMETHOD_(HRESULT,GetTypeAttr)(THIS_ TYPEATTR** ppTypeAttr) PURE; \ - STDMETHOD_(HRESULT,GetTypeComp)(THIS_ ITypeComp** ppTComp) PURE; \ - STDMETHOD_(HRESULT,GetFuncDesc)(THIS_ UINT index, FUNCDESC** ppFuncDesc) PURE; \ - STDMETHOD_(HRESULT,GetVarDesc)(THIS_ UINT index, VARDESC** ppVarDesc) PURE; \ - STDMETHOD_(HRESULT,GetNames)(THIS_ MEMBERID memid, BSTR* rgBstrNames, UINT cMaxNames, UINT* pcNames) PURE; \ - STDMETHOD_(HRESULT,GetRefTypeOfImplType)(THIS_ UINT index, HREFTYPE* pRefType) PURE; \ - STDMETHOD_(HRESULT,GetImplTypeFlags)(THIS_ UINT index, INT* pImplTypeFlags) PURE; \ - STDMETHOD_(HRESULT,GetIDsOfNames)(THIS_ LPOLESTR* rgszNames, UINT cNames, MEMBERID* pMemId) PURE; \ - STDMETHOD_(HRESULT,Invoke)(THIS_ PVOID pvInstance, MEMBERID memid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) PURE; \ - STDMETHOD_(HRESULT,GetDocumentation)(THIS_ MEMBERID memid, BSTR* pBstrName, BSTR* pBstrDocString, DWORD* pdwHelpContext, BSTR* pBstrHelpFile) PURE; \ - STDMETHOD_(HRESULT,GetDllEntry)(THIS_ MEMBERID memid, INVOKEKIND invKind, BSTR* pBstrDllName, BSTR* pBstrName, WORD* pwOrdinal) PURE; \ - STDMETHOD_(HRESULT,GetRefTypeInfo)(THIS_ HREFTYPE hRefType, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,AddressOfMember)(THIS_ MEMBERID memid, INVOKEKIND invKind, PVOID* ppv) PURE; \ - STDMETHOD_(HRESULT,CreateInstance)(THIS_ IUnknown* pUnkOuter, REFIID riid, PVOID* ppvObj) PURE; \ - STDMETHOD_(HRESULT,GetMops)(THIS_ MEMBERID memid, BSTR* pBstrMops) PURE; \ - STDMETHOD_(HRESULT,GetContainingTypeLib)(THIS_ ITypeLib** ppTLib, UINT* pIndex) PURE; \ - STDMETHOD_(void,ReleaseTypeAttr)(THIS_ TYPEATTR* pTypeAttr) PURE; \ - STDMETHOD_(void,ReleaseFuncDesc)(THIS_ FUNCDESC* pFuncDesc) PURE; \ - STDMETHOD_(void,ReleaseVarDesc)(THIS_ VARDESC* pVarDesc) PURE; \ - /*** ITypeInfo2 methods ***/ \ - STDMETHOD_(HRESULT,GetTypeKind)(THIS_ TYPEKIND* pTypeKind) PURE; \ - STDMETHOD_(HRESULT,GetTypeFlags)(THIS_ ULONG* pTypeFlags) PURE; \ - STDMETHOD_(HRESULT,GetFuncIndexOfMemId)(THIS_ MEMBERID memid, INVOKEKIND invKind, UINT* pFuncIndex) PURE; \ - STDMETHOD_(HRESULT,GetVarIndexOfMemId)(THIS_ MEMBERID memid, UINT* pVarIndex) PURE; \ - STDMETHOD_(HRESULT,GetCustData)(THIS_ REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,GetFuncCustData)(THIS_ UINT index, REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,GetParamCustData)(THIS_ UINT indexFunc, UINT indexParam, REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,GetVarCustData)(THIS_ UINT index, REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,GetImplTypeCustData)(THIS_ UINT index, REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,GetDocumentation2)(THIS_ MEMBERID memid, LCID lcid, BSTR* pbstrHelpString, DWORD* pdwHelpStringContext, BSTR* pbstrHelpStringDll) PURE; \ - STDMETHOD_(HRESULT,GetAllCustData)(THIS_ CUSTDATA* pCustData) PURE; \ - STDMETHOD_(HRESULT,GetAllFuncCustData)(THIS_ UINT index, CUSTDATA* pCustData) PURE; \ - STDMETHOD_(HRESULT,GetAllParamCustData)(THIS_ UINT indexFunc, UINT indexParam, CUSTDATA* pCustData) PURE; \ - STDMETHOD_(HRESULT,GetAllVarCustData)(THIS_ UINT index, CUSTDATA* pCustData) PURE; \ - STDMETHOD_(HRESULT,GetAllImplTypeCustData)(THIS_ UINT index, CUSTDATA* pCustData) PURE; - -HRESULT CALLBACK ITypeInfo2_GetTypeKind_Proxy( - ITypeInfo2* This, - TYPEKIND* pTypeKind); -void __RPC_STUB ITypeInfo2_GetTypeKind_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetTypeFlags_Proxy( - ITypeInfo2* This, - ULONG* pTypeFlags); -void __RPC_STUB ITypeInfo2_GetTypeFlags_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetFuncIndexOfMemId_Proxy( - ITypeInfo2* This, - MEMBERID memid, - INVOKEKIND invKind, - UINT* pFuncIndex); -void __RPC_STUB ITypeInfo2_GetFuncIndexOfMemId_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetVarIndexOfMemId_Proxy( - ITypeInfo2* This, - MEMBERID memid, - UINT* pVarIndex); -void __RPC_STUB ITypeInfo2_GetVarIndexOfMemId_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetCustData_Proxy( - ITypeInfo2* This, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ITypeInfo2_GetCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetFuncCustData_Proxy( - ITypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ITypeInfo2_GetFuncCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetParamCustData_Proxy( - ITypeInfo2* This, - UINT indexFunc, - UINT indexParam, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ITypeInfo2_GetParamCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetVarCustData_Proxy( - ITypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ITypeInfo2_GetVarCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetImplTypeCustData_Proxy( - ITypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ITypeInfo2_GetImplTypeCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_RemoteGetDocumentation2_Proxy( - ITypeInfo2* This, - MEMBERID memid, - LCID lcid, - DWORD refPtrFlags, - BSTR* pbstrHelpString, - DWORD* pdwHelpStringContext, - BSTR* pbstrHelpStringDll); -void __RPC_STUB ITypeInfo2_RemoteGetDocumentation2_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetDocumentation2_Proxy( - ITypeInfo2* This, - MEMBERID memid, - LCID lcid, - BSTR* pbstrHelpString, - DWORD* pdwHelpStringContext, - BSTR* pbstrHelpStringDll); -HRESULT __RPC_STUB ITypeInfo2_GetDocumentation2_Stub( - ITypeInfo2* This, - MEMBERID memid, - LCID lcid, - DWORD refPtrFlags, - BSTR* pbstrHelpString, - DWORD* pdwHelpStringContext, - BSTR* pbstrHelpStringDll); -HRESULT CALLBACK ITypeInfo2_GetAllCustData_Proxy( - ITypeInfo2* This, - CUSTDATA* pCustData); -void __RPC_STUB ITypeInfo2_GetAllCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetAllFuncCustData_Proxy( - ITypeInfo2* This, - UINT index, - CUSTDATA* pCustData); -void __RPC_STUB ITypeInfo2_GetAllFuncCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetAllParamCustData_Proxy( - ITypeInfo2* This, - UINT indexFunc, - UINT indexParam, - CUSTDATA* pCustData); -void __RPC_STUB ITypeInfo2_GetAllParamCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetAllVarCustData_Proxy( - ITypeInfo2* This, - UINT index, - CUSTDATA* pCustData); -void __RPC_STUB ITypeInfo2_GetAllVarCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeInfo2_GetAllImplTypeCustData_Proxy( - ITypeInfo2* This, - UINT index, - CUSTDATA* pCustData); -void __RPC_STUB ITypeInfo2_GetAllImplTypeCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ITypeInfo2_INTERFACE_DEFINED__ */ - -typedef ITypeLib *LPTYPELIB; - -typedef enum tagSYSKIND { - SYS_WIN16 = 0, - SYS_WIN32, - SYS_MAC -} SYSKIND; - -typedef enum tagLIBFLAGS { - LIBFLAG_FRESTRICTED = 0x1, - LIBFLAG_FCONTROL = 0x2, - LIBFLAG_FHIDDEN = 0x4, - LIBFLAG_FHASDISKIMAGE = 0x8 -} LIBFLAGS; - -typedef struct tagTLIBATTR { - GUID guid; - LCID lcid; - SYSKIND syskind; - WORD wMajorVerNum; - WORD wMinorVerNum; - WORD wLibFlags; -} TLIBATTR, *LPTLIBATTR; - -/***************************************************************************** - * ITypeLib interface - */ -#ifndef __ITypeLib_INTERFACE_DEFINED__ -#define __ITypeLib_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ITypeLib, 0x00020402, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ITypeLib : public IUnknown -{ - virtual UINT STDMETHODCALLTYPE GetTypeInfoCount( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTypeInfo( - UINT index, - ITypeInfo** ppTInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTypeInfoType( - UINT index, - TYPEKIND* pTKind) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTypeInfoOfGuid( - REFGUID guid, - ITypeInfo** ppTinfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLibAttr( - TLIBATTR** ppTLibAttr) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTypeComp( - ITypeComp** ppTComp) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDocumentation( - INT index, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsName( - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL* pfName) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindName( - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo** ppTInfo, - MEMBERID* rgMemId, - USHORT* pcFound) = 0; - - virtual void STDMETHODCALLTYPE ReleaseTLibAttr( - TLIBATTR* pTLibAttr) = 0; - -}; -#else -typedef struct ITypeLibVtbl ITypeLibVtbl; -struct ITypeLib { - const ITypeLibVtbl* lpVtbl; -}; -struct ITypeLibVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ITypeLib* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ITypeLib* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ITypeLib* This); - - /*** ITypeLib methods ***/ - UINT (STDMETHODCALLTYPE *GetTypeInfoCount)( - ITypeLib* This); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - ITypeLib* This, - UINT index, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfoType)( - ITypeLib* This, - UINT index, - TYPEKIND* pTKind); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfoOfGuid)( - ITypeLib* This, - REFGUID guid, - ITypeInfo** ppTinfo); - - HRESULT (STDMETHODCALLTYPE *GetLibAttr)( - ITypeLib* This, - TLIBATTR** ppTLibAttr); - - HRESULT (STDMETHODCALLTYPE *GetTypeComp)( - ITypeLib* This, - ITypeComp** ppTComp); - - HRESULT (STDMETHODCALLTYPE *GetDocumentation)( - ITypeLib* This, - INT index, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile); - - HRESULT (STDMETHODCALLTYPE *IsName)( - ITypeLib* This, - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL* pfName); - - HRESULT (STDMETHODCALLTYPE *FindName)( - ITypeLib* This, - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo** ppTInfo, - MEMBERID* rgMemId, - USHORT* pcFound); - - void (STDMETHODCALLTYPE *ReleaseTLibAttr)( - ITypeLib* This, - TLIBATTR* pTLibAttr); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ITypeLib_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ITypeLib_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ITypeLib_Release(p) (p)->lpVtbl->Release(p) -/*** ITypeLib methods ***/ -#define ITypeLib_GetTypeInfoCount(p) (p)->lpVtbl->GetTypeInfoCount(p) -#define ITypeLib_GetTypeInfo(p,a,b) (p)->lpVtbl->GetTypeInfo(p,a,b) -#define ITypeLib_GetTypeInfoType(p,a,b) (p)->lpVtbl->GetTypeInfoType(p,a,b) -#define ITypeLib_GetTypeInfoOfGuid(p,a,b) (p)->lpVtbl->GetTypeInfoOfGuid(p,a,b) -#define ITypeLib_GetLibAttr(p,a) (p)->lpVtbl->GetLibAttr(p,a) -#define ITypeLib_GetTypeComp(p,a) (p)->lpVtbl->GetTypeComp(p,a) -#define ITypeLib_GetDocumentation(p,a,b,c,d,e) (p)->lpVtbl->GetDocumentation(p,a,b,c,d,e) -#define ITypeLib_IsName(p,a,b,c) (p)->lpVtbl->IsName(p,a,b,c) -#define ITypeLib_FindName(p,a,b,c,d,e) (p)->lpVtbl->FindName(p,a,b,c,d,e) -#define ITypeLib_ReleaseTLibAttr(p,a) (p)->lpVtbl->ReleaseTLibAttr(p,a) -#endif - -#endif - -#define ITypeLib_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ITypeLib methods ***/ \ - STDMETHOD_(UINT,GetTypeInfoCount)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ UINT index, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfoType)(THIS_ UINT index, TYPEKIND* pTKind) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfoOfGuid)(THIS_ REFGUID guid, ITypeInfo** ppTinfo) PURE; \ - STDMETHOD_(HRESULT,GetLibAttr)(THIS_ TLIBATTR** ppTLibAttr) PURE; \ - STDMETHOD_(HRESULT,GetTypeComp)(THIS_ ITypeComp** ppTComp) PURE; \ - STDMETHOD_(HRESULT,GetDocumentation)(THIS_ INT index, BSTR* pBstrName, BSTR* pBstrDocString, DWORD* pdwHelpContext, BSTR* pBstrHelpFile) PURE; \ - STDMETHOD_(HRESULT,IsName)(THIS_ LPOLESTR szNameBuf, ULONG lHashVal, BOOL* pfName) PURE; \ - STDMETHOD_(HRESULT,FindName)(THIS_ LPOLESTR szNameBuf, ULONG lHashVal, ITypeInfo** ppTInfo, MEMBERID* rgMemId, USHORT* pcFound) PURE; \ - STDMETHOD_(void,ReleaseTLibAttr)(THIS_ TLIBATTR* pTLibAttr) PURE; - -HRESULT CALLBACK ITypeLib_RemoteGetTypeInfoCount_Proxy( - ITypeLib* This, - UINT* pcTInfo); -void __RPC_STUB ITypeLib_RemoteGetTypeInfoCount_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -UINT CALLBACK ITypeLib_GetTypeInfoCount_Proxy( - ITypeLib* This); -HRESULT __RPC_STUB ITypeLib_GetTypeInfoCount_Stub( - ITypeLib* This, - UINT* pcTInfo); -HRESULT CALLBACK ITypeLib_GetTypeInfo_Proxy( - ITypeLib* This, - UINT index, - ITypeInfo** ppTInfo); -void __RPC_STUB ITypeLib_GetTypeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib_GetTypeInfoType_Proxy( - ITypeLib* This, - UINT index, - TYPEKIND* pTKind); -void __RPC_STUB ITypeLib_GetTypeInfoType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib_GetTypeInfoOfGuid_Proxy( - ITypeLib* This, - REFGUID guid, - ITypeInfo** ppTinfo); -void __RPC_STUB ITypeLib_GetTypeInfoOfGuid_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib_RemoteGetLibAttr_Proxy( - ITypeLib* This, - LPTLIBATTR* ppTLibAttr, - CLEANLOCALSTORAGE* pDummy); -void __RPC_STUB ITypeLib_RemoteGetLibAttr_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib_GetLibAttr_Proxy( - ITypeLib* This, - TLIBATTR** ppTLibAttr); -HRESULT __RPC_STUB ITypeLib_GetLibAttr_Stub( - ITypeLib* This, - LPTLIBATTR* ppTLibAttr, - CLEANLOCALSTORAGE* pDummy); -HRESULT CALLBACK ITypeLib_GetTypeComp_Proxy( - ITypeLib* This, - ITypeComp** ppTComp); -void __RPC_STUB ITypeLib_GetTypeComp_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib_RemoteGetDocumentation_Proxy( - ITypeLib* This, - INT index, - DWORD refPtrFlags, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile); -void __RPC_STUB ITypeLib_RemoteGetDocumentation_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib_GetDocumentation_Proxy( - ITypeLib* This, - INT index, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile); -HRESULT __RPC_STUB ITypeLib_GetDocumentation_Stub( - ITypeLib* This, - INT index, - DWORD refPtrFlags, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile); -HRESULT CALLBACK ITypeLib_RemoteIsName_Proxy( - ITypeLib* This, - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL* pfName, - BSTR* pBstrLibName); -void __RPC_STUB ITypeLib_RemoteIsName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib_IsName_Proxy( - ITypeLib* This, - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL* pfName); -HRESULT __RPC_STUB ITypeLib_IsName_Stub( - ITypeLib* This, - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL* pfName, - BSTR* pBstrLibName); -HRESULT CALLBACK ITypeLib_RemoteFindName_Proxy( - ITypeLib* This, - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo** ppTInfo, - MEMBERID* rgMemId, - USHORT* pcFound, - BSTR* pBstrLibName); -void __RPC_STUB ITypeLib_RemoteFindName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib_FindName_Proxy( - ITypeLib* This, - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo** ppTInfo, - MEMBERID* rgMemId, - USHORT* pcFound); -HRESULT __RPC_STUB ITypeLib_FindName_Stub( - ITypeLib* This, - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo** ppTInfo, - MEMBERID* rgMemId, - USHORT* pcFound, - BSTR* pBstrLibName); -HRESULT CALLBACK ITypeLib_LocalReleaseTLibAttr_Proxy( - ITypeLib* This); -void __RPC_STUB ITypeLib_LocalReleaseTLibAttr_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -void CALLBACK ITypeLib_ReleaseTLibAttr_Proxy( - ITypeLib* This, - TLIBATTR* pTLibAttr); -HRESULT __RPC_STUB ITypeLib_ReleaseTLibAttr_Stub( - ITypeLib* This); - -#endif /* __ITypeLib_INTERFACE_DEFINED__ */ - -#ifndef __ITypeLib2_FWD_DEFINED__ -#define __ITypeLib2_FWD_DEFINED__ -typedef struct ITypeLib2 ITypeLib2; -#endif - -typedef ITypeLib2 *LPTYPELIB2; - -/***************************************************************************** - * ITypeLib2 interface - */ -#ifndef __ITypeLib2_INTERFACE_DEFINED__ -#define __ITypeLib2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ITypeLib2, 0x00020411, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ITypeLib2 : public ITypeLib -{ - virtual HRESULT STDMETHODCALLTYPE GetCustData( - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLibStatistics( - ULONG* pcUniqueNames, - ULONG* pcchUniqueNames) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDocumentation2( - INT index, - LCID lcid, - BSTR* pbstrHelpString, - DWORD* pdwHelpStringContext, - BSTR* pbstrHelpStringDll) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllCustData( - CUSTDATA* pCustData) = 0; - -}; -#else -typedef struct ITypeLib2Vtbl ITypeLib2Vtbl; -struct ITypeLib2 { - const ITypeLib2Vtbl* lpVtbl; -}; -struct ITypeLib2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ITypeLib2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ITypeLib2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ITypeLib2* This); - - /*** ITypeLib methods ***/ - UINT (STDMETHODCALLTYPE *GetTypeInfoCount)( - ITypeLib2* This); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - ITypeLib2* This, - UINT index, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfoType)( - ITypeLib2* This, - UINT index, - TYPEKIND* pTKind); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfoOfGuid)( - ITypeLib2* This, - REFGUID guid, - ITypeInfo** ppTinfo); - - HRESULT (STDMETHODCALLTYPE *GetLibAttr)( - ITypeLib2* This, - TLIBATTR** ppTLibAttr); - - HRESULT (STDMETHODCALLTYPE *GetTypeComp)( - ITypeLib2* This, - ITypeComp** ppTComp); - - HRESULT (STDMETHODCALLTYPE *GetDocumentation)( - ITypeLib2* This, - INT index, - BSTR* pBstrName, - BSTR* pBstrDocString, - DWORD* pdwHelpContext, - BSTR* pBstrHelpFile); - - HRESULT (STDMETHODCALLTYPE *IsName)( - ITypeLib2* This, - LPOLESTR szNameBuf, - ULONG lHashVal, - BOOL* pfName); - - HRESULT (STDMETHODCALLTYPE *FindName)( - ITypeLib2* This, - LPOLESTR szNameBuf, - ULONG lHashVal, - ITypeInfo** ppTInfo, - MEMBERID* rgMemId, - USHORT* pcFound); - - void (STDMETHODCALLTYPE *ReleaseTLibAttr)( - ITypeLib2* This, - TLIBATTR* pTLibAttr); - - /*** ITypeLib2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetCustData)( - ITypeLib2* This, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *GetLibStatistics)( - ITypeLib2* This, - ULONG* pcUniqueNames, - ULONG* pcchUniqueNames); - - HRESULT (STDMETHODCALLTYPE *GetDocumentation2)( - ITypeLib2* This, - INT index, - LCID lcid, - BSTR* pbstrHelpString, - DWORD* pdwHelpStringContext, - BSTR* pbstrHelpStringDll); - - HRESULT (STDMETHODCALLTYPE *GetAllCustData)( - ITypeLib2* This, - CUSTDATA* pCustData); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ITypeLib2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ITypeLib2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ITypeLib2_Release(p) (p)->lpVtbl->Release(p) -/*** ITypeLib methods ***/ -#define ITypeLib2_GetTypeInfoCount(p) (p)->lpVtbl->GetTypeInfoCount(p) -#define ITypeLib2_GetTypeInfo(p,a,b) (p)->lpVtbl->GetTypeInfo(p,a,b) -#define ITypeLib2_GetTypeInfoType(p,a,b) (p)->lpVtbl->GetTypeInfoType(p,a,b) -#define ITypeLib2_GetTypeInfoOfGuid(p,a,b) (p)->lpVtbl->GetTypeInfoOfGuid(p,a,b) -#define ITypeLib2_GetLibAttr(p,a) (p)->lpVtbl->GetLibAttr(p,a) -#define ITypeLib2_GetTypeComp(p,a) (p)->lpVtbl->GetTypeComp(p,a) -#define ITypeLib2_GetDocumentation(p,a,b,c,d,e) (p)->lpVtbl->GetDocumentation(p,a,b,c,d,e) -#define ITypeLib2_IsName(p,a,b,c) (p)->lpVtbl->IsName(p,a,b,c) -#define ITypeLib2_FindName(p,a,b,c,d,e) (p)->lpVtbl->FindName(p,a,b,c,d,e) -#define ITypeLib2_ReleaseTLibAttr(p,a) (p)->lpVtbl->ReleaseTLibAttr(p,a) -/*** ITypeLib2 methods ***/ -#define ITypeLib2_GetCustData(p,a,b) (p)->lpVtbl->GetCustData(p,a,b) -#define ITypeLib2_GetLibStatistics(p,a,b) (p)->lpVtbl->GetLibStatistics(p,a,b) -#define ITypeLib2_GetDocumentation2(p,a,b,c,d,e) (p)->lpVtbl->GetDocumentation2(p,a,b,c,d,e) -#define ITypeLib2_GetAllCustData(p,a) (p)->lpVtbl->GetAllCustData(p,a) -#endif - -#endif - -#define ITypeLib2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ITypeLib methods ***/ \ - STDMETHOD_(UINT,GetTypeInfoCount)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ UINT index, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfoType)(THIS_ UINT index, TYPEKIND* pTKind) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfoOfGuid)(THIS_ REFGUID guid, ITypeInfo** ppTinfo) PURE; \ - STDMETHOD_(HRESULT,GetLibAttr)(THIS_ TLIBATTR** ppTLibAttr) PURE; \ - STDMETHOD_(HRESULT,GetTypeComp)(THIS_ ITypeComp** ppTComp) PURE; \ - STDMETHOD_(HRESULT,GetDocumentation)(THIS_ INT index, BSTR* pBstrName, BSTR* pBstrDocString, DWORD* pdwHelpContext, BSTR* pBstrHelpFile) PURE; \ - STDMETHOD_(HRESULT,IsName)(THIS_ LPOLESTR szNameBuf, ULONG lHashVal, BOOL* pfName) PURE; \ - STDMETHOD_(HRESULT,FindName)(THIS_ LPOLESTR szNameBuf, ULONG lHashVal, ITypeInfo** ppTInfo, MEMBERID* rgMemId, USHORT* pcFound) PURE; \ - STDMETHOD_(void,ReleaseTLibAttr)(THIS_ TLIBATTR* pTLibAttr) PURE; \ - /*** ITypeLib2 methods ***/ \ - STDMETHOD_(HRESULT,GetCustData)(THIS_ REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,GetLibStatistics)(THIS_ ULONG* pcUniqueNames, ULONG* pcchUniqueNames) PURE; \ - STDMETHOD_(HRESULT,GetDocumentation2)(THIS_ INT index, LCID lcid, BSTR* pbstrHelpString, DWORD* pdwHelpStringContext, BSTR* pbstrHelpStringDll) PURE; \ - STDMETHOD_(HRESULT,GetAllCustData)(THIS_ CUSTDATA* pCustData) PURE; - -HRESULT CALLBACK ITypeLib2_GetCustData_Proxy( - ITypeLib2* This, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ITypeLib2_GetCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib2_RemoteGetLibStatistics_Proxy( - ITypeLib2* This, - ULONG* pcUniqueNames, - ULONG* pcchUniqueNames); -void __RPC_STUB ITypeLib2_RemoteGetLibStatistics_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib2_GetLibStatistics_Proxy( - ITypeLib2* This, - ULONG* pcUniqueNames, - ULONG* pcchUniqueNames); -HRESULT __RPC_STUB ITypeLib2_GetLibStatistics_Stub( - ITypeLib2* This, - ULONG* pcUniqueNames, - ULONG* pcchUniqueNames); -HRESULT CALLBACK ITypeLib2_RemoteGetDocumentation2_Proxy( - ITypeLib2* This, - INT index, - LCID lcid, - DWORD refPtrFlags, - BSTR* pbstrHelpString, - DWORD* pdwHelpStringContext, - BSTR* pbstrHelpStringDll); -void __RPC_STUB ITypeLib2_RemoteGetDocumentation2_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeLib2_GetDocumentation2_Proxy( - ITypeLib2* This, - INT index, - LCID lcid, - BSTR* pbstrHelpString, - DWORD* pdwHelpStringContext, - BSTR* pbstrHelpStringDll); -HRESULT __RPC_STUB ITypeLib2_GetDocumentation2_Stub( - ITypeLib2* This, - INT index, - LCID lcid, - DWORD refPtrFlags, - BSTR* pbstrHelpString, - DWORD* pdwHelpStringContext, - BSTR* pbstrHelpStringDll); -HRESULT CALLBACK ITypeLib2_GetAllCustData_Proxy( - ITypeLib2* This, - CUSTDATA* pCustData); -void __RPC_STUB ITypeLib2_GetAllCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ITypeLib2_INTERFACE_DEFINED__ */ - -#ifndef __ITypeChangeEvents_FWD_DEFINED__ -#define __ITypeChangeEvents_FWD_DEFINED__ -typedef struct ITypeChangeEvents ITypeChangeEvents; -#endif - -typedef ITypeChangeEvents *LPTYPECHANGEEVENTS; - -typedef enum tagCHANGEKIND { - CHANGEKIND_ADDMEMBER, - CHANGEKIND_DELETEMEMBER, - CHANGEKIND_SETNAMES, - CHANGEKIND_SETDOCUMENTATION, - CHANGEKIND_GENERAL, - CHANGEKIND_INVALIDATE, - CHANGEKIND_CHANGEFAILED, - CHANGEKIND_MAX -} CHANGEKIND; - -/***************************************************************************** - * ITypeChangeEvents interface - */ -#ifndef __ITypeChangeEvents_INTERFACE_DEFINED__ -#define __ITypeChangeEvents_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ITypeChangeEvents, 0x00020410, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ITypeChangeEvents : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE RequestTypeChange( - CHANGEKIND changeKind, - ITypeInfo* pTInfoBefore, - LPOLESTR pStrName, - INT* pfCancel) = 0; - - virtual HRESULT STDMETHODCALLTYPE AfterTypeChange( - CHANGEKIND changeKind, - ITypeInfo* pTInfoAfter, - LPOLESTR pStrName) = 0; - -}; -#else -typedef struct ITypeChangeEventsVtbl ITypeChangeEventsVtbl; -struct ITypeChangeEvents { - const ITypeChangeEventsVtbl* lpVtbl; -}; -struct ITypeChangeEventsVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ITypeChangeEvents* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ITypeChangeEvents* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ITypeChangeEvents* This); - - /*** ITypeChangeEvents methods ***/ - HRESULT (STDMETHODCALLTYPE *RequestTypeChange)( - ITypeChangeEvents* This, - CHANGEKIND changeKind, - ITypeInfo* pTInfoBefore, - LPOLESTR pStrName, - INT* pfCancel); - - HRESULT (STDMETHODCALLTYPE *AfterTypeChange)( - ITypeChangeEvents* This, - CHANGEKIND changeKind, - ITypeInfo* pTInfoAfter, - LPOLESTR pStrName); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ITypeChangeEvents_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ITypeChangeEvents_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ITypeChangeEvents_Release(p) (p)->lpVtbl->Release(p) -/*** ITypeChangeEvents methods ***/ -#define ITypeChangeEvents_RequestTypeChange(p,a,b,c,d) (p)->lpVtbl->RequestTypeChange(p,a,b,c,d) -#define ITypeChangeEvents_AfterTypeChange(p,a,b,c) (p)->lpVtbl->AfterTypeChange(p,a,b,c) -#endif - -#endif - -#define ITypeChangeEvents_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ITypeChangeEvents methods ***/ \ - STDMETHOD_(HRESULT,RequestTypeChange)(THIS_ CHANGEKIND changeKind, ITypeInfo* pTInfoBefore, LPOLESTR pStrName, INT* pfCancel) PURE; \ - STDMETHOD_(HRESULT,AfterTypeChange)(THIS_ CHANGEKIND changeKind, ITypeInfo* pTInfoAfter, LPOLESTR pStrName) PURE; - -HRESULT CALLBACK ITypeChangeEvents_RequestTypeChange_Proxy( - ITypeChangeEvents* This, - CHANGEKIND changeKind, - ITypeInfo* pTInfoBefore, - LPOLESTR pStrName, - INT* pfCancel); -void __RPC_STUB ITypeChangeEvents_RequestTypeChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeChangeEvents_AfterTypeChange_Proxy( - ITypeChangeEvents* This, - CHANGEKIND changeKind, - ITypeInfo* pTInfoAfter, - LPOLESTR pStrName); -void __RPC_STUB ITypeChangeEvents_AfterTypeChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ITypeChangeEvents_INTERFACE_DEFINED__ */ - -#ifndef __IErrorInfo_FWD_DEFINED__ -#define __IErrorInfo_FWD_DEFINED__ -typedef struct IErrorInfo IErrorInfo; -#endif - -typedef IErrorInfo *LPERRORINFO; - -/***************************************************************************** - * IErrorInfo interface - */ -#ifndef __IErrorInfo_INTERFACE_DEFINED__ -#define __IErrorInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IErrorInfo, 0x1cf2b120, 0x547d, 0x101b, 0x8e,0x65, 0x08,0x00,0x2b,0x2b,0xd1,0x19); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IErrorInfo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetGUID( - GUID* pGUID) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSource( - BSTR* pBstrSource) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDescription( - BSTR* pBstrDescription) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetHelpFile( - BSTR* pBstrHelpFile) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetHelpContext( - DWORD* pdwHelpContext) = 0; - -}; -#else -typedef struct IErrorInfoVtbl IErrorInfoVtbl; -struct IErrorInfo { - const IErrorInfoVtbl* lpVtbl; -}; -struct IErrorInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IErrorInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IErrorInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IErrorInfo* This); - - /*** IErrorInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *GetGUID)( - IErrorInfo* This, - GUID* pGUID); - - HRESULT (STDMETHODCALLTYPE *GetSource)( - IErrorInfo* This, - BSTR* pBstrSource); - - HRESULT (STDMETHODCALLTYPE *GetDescription)( - IErrorInfo* This, - BSTR* pBstrDescription); - - HRESULT (STDMETHODCALLTYPE *GetHelpFile)( - IErrorInfo* This, - BSTR* pBstrHelpFile); - - HRESULT (STDMETHODCALLTYPE *GetHelpContext)( - IErrorInfo* This, - DWORD* pdwHelpContext); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IErrorInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IErrorInfo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IErrorInfo_Release(p) (p)->lpVtbl->Release(p) -/*** IErrorInfo methods ***/ -#define IErrorInfo_GetGUID(p,a) (p)->lpVtbl->GetGUID(p,a) -#define IErrorInfo_GetSource(p,a) (p)->lpVtbl->GetSource(p,a) -#define IErrorInfo_GetDescription(p,a) (p)->lpVtbl->GetDescription(p,a) -#define IErrorInfo_GetHelpFile(p,a) (p)->lpVtbl->GetHelpFile(p,a) -#define IErrorInfo_GetHelpContext(p,a) (p)->lpVtbl->GetHelpContext(p,a) -#endif - -#endif - -#define IErrorInfo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IErrorInfo methods ***/ \ - STDMETHOD_(HRESULT,GetGUID)(THIS_ GUID* pGUID) PURE; \ - STDMETHOD_(HRESULT,GetSource)(THIS_ BSTR* pBstrSource) PURE; \ - STDMETHOD_(HRESULT,GetDescription)(THIS_ BSTR* pBstrDescription) PURE; \ - STDMETHOD_(HRESULT,GetHelpFile)(THIS_ BSTR* pBstrHelpFile) PURE; \ - STDMETHOD_(HRESULT,GetHelpContext)(THIS_ DWORD* pdwHelpContext) PURE; - -HRESULT CALLBACK IErrorInfo_GetGUID_Proxy( - IErrorInfo* This, - GUID* pGUID); -void __RPC_STUB IErrorInfo_GetGUID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IErrorInfo_GetSource_Proxy( - IErrorInfo* This, - BSTR* pBstrSource); -void __RPC_STUB IErrorInfo_GetSource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IErrorInfo_GetDescription_Proxy( - IErrorInfo* This, - BSTR* pBstrDescription); -void __RPC_STUB IErrorInfo_GetDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IErrorInfo_GetHelpFile_Proxy( - IErrorInfo* This, - BSTR* pBstrHelpFile); -void __RPC_STUB IErrorInfo_GetHelpFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IErrorInfo_GetHelpContext_Proxy( - IErrorInfo* This, - DWORD* pdwHelpContext); -void __RPC_STUB IErrorInfo_GetHelpContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IErrorInfo_INTERFACE_DEFINED__ */ - -#ifndef __ICreateErrorInfo_FWD_DEFINED__ -#define __ICreateErrorInfo_FWD_DEFINED__ -typedef struct ICreateErrorInfo ICreateErrorInfo; -#endif - -typedef ICreateErrorInfo *LPCREATEERRORINFO; - -/***************************************************************************** - * ICreateErrorInfo interface - */ -#ifndef __ICreateErrorInfo_INTERFACE_DEFINED__ -#define __ICreateErrorInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICreateErrorInfo, 0x22f03340, 0x547d, 0x101b, 0x8e,0x65, 0x08,0x00,0x2b,0x2b,0xd1,0x19); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICreateErrorInfo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetGUID( - REFGUID rguid) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSource( - LPOLESTR szSource) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDescription( - LPOLESTR szDescription) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHelpFile( - LPOLESTR szHelpFile) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHelpContext( - DWORD dwHelpContext) = 0; - -}; -#else -typedef struct ICreateErrorInfoVtbl ICreateErrorInfoVtbl; -struct ICreateErrorInfo { - const ICreateErrorInfoVtbl* lpVtbl; -}; -struct ICreateErrorInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICreateErrorInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICreateErrorInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICreateErrorInfo* This); - - /*** ICreateErrorInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *SetGUID)( - ICreateErrorInfo* This, - REFGUID rguid); - - HRESULT (STDMETHODCALLTYPE *SetSource)( - ICreateErrorInfo* This, - LPOLESTR szSource); - - HRESULT (STDMETHODCALLTYPE *SetDescription)( - ICreateErrorInfo* This, - LPOLESTR szDescription); - - HRESULT (STDMETHODCALLTYPE *SetHelpFile)( - ICreateErrorInfo* This, - LPOLESTR szHelpFile); - - HRESULT (STDMETHODCALLTYPE *SetHelpContext)( - ICreateErrorInfo* This, - DWORD dwHelpContext); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICreateErrorInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICreateErrorInfo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICreateErrorInfo_Release(p) (p)->lpVtbl->Release(p) -/*** ICreateErrorInfo methods ***/ -#define ICreateErrorInfo_SetGUID(p,a) (p)->lpVtbl->SetGUID(p,a) -#define ICreateErrorInfo_SetSource(p,a) (p)->lpVtbl->SetSource(p,a) -#define ICreateErrorInfo_SetDescription(p,a) (p)->lpVtbl->SetDescription(p,a) -#define ICreateErrorInfo_SetHelpFile(p,a) (p)->lpVtbl->SetHelpFile(p,a) -#define ICreateErrorInfo_SetHelpContext(p,a) (p)->lpVtbl->SetHelpContext(p,a) -#endif - -#endif - -#define ICreateErrorInfo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICreateErrorInfo methods ***/ \ - STDMETHOD_(HRESULT,SetGUID)(THIS_ REFGUID rguid) PURE; \ - STDMETHOD_(HRESULT,SetSource)(THIS_ LPOLESTR szSource) PURE; \ - STDMETHOD_(HRESULT,SetDescription)(THIS_ LPOLESTR szDescription) PURE; \ - STDMETHOD_(HRESULT,SetHelpFile)(THIS_ LPOLESTR szHelpFile) PURE; \ - STDMETHOD_(HRESULT,SetHelpContext)(THIS_ DWORD dwHelpContext) PURE; - -HRESULT CALLBACK ICreateErrorInfo_SetGUID_Proxy( - ICreateErrorInfo* This, - REFGUID rguid); -void __RPC_STUB ICreateErrorInfo_SetGUID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateErrorInfo_SetSource_Proxy( - ICreateErrorInfo* This, - LPOLESTR szSource); -void __RPC_STUB ICreateErrorInfo_SetSource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateErrorInfo_SetDescription_Proxy( - ICreateErrorInfo* This, - LPOLESTR szDescription); -void __RPC_STUB ICreateErrorInfo_SetDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateErrorInfo_SetHelpFile_Proxy( - ICreateErrorInfo* This, - LPOLESTR szHelpFile); -void __RPC_STUB ICreateErrorInfo_SetHelpFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateErrorInfo_SetHelpContext_Proxy( - ICreateErrorInfo* This, - DWORD dwHelpContext); -void __RPC_STUB ICreateErrorInfo_SetHelpContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICreateErrorInfo_INTERFACE_DEFINED__ */ - -#ifndef __ISupportErrorInfo_FWD_DEFINED__ -#define __ISupportErrorInfo_FWD_DEFINED__ -typedef struct ISupportErrorInfo ISupportErrorInfo; -#endif - -typedef ISupportErrorInfo *LPSUPPORTERRORINFO; - -/***************************************************************************** - * ISupportErrorInfo interface - */ -#ifndef __ISupportErrorInfo_INTERFACE_DEFINED__ -#define __ISupportErrorInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ISupportErrorInfo, 0xdf0b3d60, 0x548f, 0x101b, 0x8e,0x65, 0x08,0x00,0x2b,0x2b,0xd1,0x19); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ISupportErrorInfo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE InterfaceSupportsErrorInfo( - REFIID riid) = 0; - -}; -#else -typedef struct ISupportErrorInfoVtbl ISupportErrorInfoVtbl; -struct ISupportErrorInfo { - const ISupportErrorInfoVtbl* lpVtbl; -}; -struct ISupportErrorInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ISupportErrorInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ISupportErrorInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ISupportErrorInfo* This); - - /*** ISupportErrorInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *InterfaceSupportsErrorInfo)( - ISupportErrorInfo* This, - REFIID riid); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ISupportErrorInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ISupportErrorInfo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ISupportErrorInfo_Release(p) (p)->lpVtbl->Release(p) -/*** ISupportErrorInfo methods ***/ -#define ISupportErrorInfo_InterfaceSupportsErrorInfo(p,a) (p)->lpVtbl->InterfaceSupportsErrorInfo(p,a) -#endif - -#endif - -#define ISupportErrorInfo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ISupportErrorInfo methods ***/ \ - STDMETHOD_(HRESULT,InterfaceSupportsErrorInfo)(THIS_ REFIID riid) PURE; - -HRESULT CALLBACK ISupportErrorInfo_InterfaceSupportsErrorInfo_Proxy( - ISupportErrorInfo* This, - REFIID riid); -void __RPC_STUB ISupportErrorInfo_InterfaceSupportsErrorInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ISupportErrorInfo_INTERFACE_DEFINED__ */ - -#ifndef __ITypeFactory_FWD_DEFINED__ -#define __ITypeFactory_FWD_DEFINED__ -typedef struct ITypeFactory ITypeFactory; -#endif - -/***************************************************************************** - * ITypeFactory interface - */ -#ifndef __ITypeFactory_INTERFACE_DEFINED__ -#define __ITypeFactory_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ITypeFactory, 0x0000002e, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ITypeFactory : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CreateFromTypeInfo( - ITypeInfo* pTypeInfo, - REFIID riid, - IUnknown** ppv) = 0; - -}; -#else -typedef struct ITypeFactoryVtbl ITypeFactoryVtbl; -struct ITypeFactory { - const ITypeFactoryVtbl* lpVtbl; -}; -struct ITypeFactoryVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ITypeFactory* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ITypeFactory* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ITypeFactory* This); - - /*** ITypeFactory methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateFromTypeInfo)( - ITypeFactory* This, - ITypeInfo* pTypeInfo, - REFIID riid, - IUnknown** ppv); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ITypeFactory_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ITypeFactory_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ITypeFactory_Release(p) (p)->lpVtbl->Release(p) -/*** ITypeFactory methods ***/ -#define ITypeFactory_CreateFromTypeInfo(p,a,b,c) (p)->lpVtbl->CreateFromTypeInfo(p,a,b,c) -#endif - -#endif - -#define ITypeFactory_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ITypeFactory methods ***/ \ - STDMETHOD_(HRESULT,CreateFromTypeInfo)(THIS_ ITypeInfo* pTypeInfo, REFIID riid, IUnknown** ppv) PURE; - -HRESULT CALLBACK ITypeFactory_CreateFromTypeInfo_Proxy( - ITypeFactory* This, - ITypeInfo* pTypeInfo, - REFIID riid, - IUnknown** ppv); -void __RPC_STUB ITypeFactory_CreateFromTypeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ITypeFactory_INTERFACE_DEFINED__ */ - -#ifndef __ITypeMarshal_FWD_DEFINED__ -#define __ITypeMarshal_FWD_DEFINED__ -typedef struct ITypeMarshal ITypeMarshal; -#endif - -/***************************************************************************** - * ITypeMarshal interface - */ -#ifndef __ITypeMarshal_INTERFACE_DEFINED__ -#define __ITypeMarshal_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ITypeMarshal, 0x0000002d, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ITypeMarshal : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Size( - PVOID pvType, - DWORD dwDestContext, - PVOID pvDestContext, - ULONG* pSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE Marshal( - PVOID pvType, - DWORD dwDestContext, - PVOID pvDestContext, - ULONG cbBufferLength, - BYTE* pBuffer, - ULONG* pcbWritten) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unmarshal( - PVOID pvType, - DWORD dwFlags, - ULONG cbBufferLength, - BYTE* pBuffer, - ULONG* pcbRead) = 0; - - virtual HRESULT STDMETHODCALLTYPE Free( - PVOID pvType) = 0; - -}; -#else -typedef struct ITypeMarshalVtbl ITypeMarshalVtbl; -struct ITypeMarshal { - const ITypeMarshalVtbl* lpVtbl; -}; -struct ITypeMarshalVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ITypeMarshal* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ITypeMarshal* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ITypeMarshal* This); - - /*** ITypeMarshal methods ***/ - HRESULT (STDMETHODCALLTYPE *Size)( - ITypeMarshal* This, - PVOID pvType, - DWORD dwDestContext, - PVOID pvDestContext, - ULONG* pSize); - - HRESULT (STDMETHODCALLTYPE *Marshal)( - ITypeMarshal* This, - PVOID pvType, - DWORD dwDestContext, - PVOID pvDestContext, - ULONG cbBufferLength, - BYTE* pBuffer, - ULONG* pcbWritten); - - HRESULT (STDMETHODCALLTYPE *Unmarshal)( - ITypeMarshal* This, - PVOID pvType, - DWORD dwFlags, - ULONG cbBufferLength, - BYTE* pBuffer, - ULONG* pcbRead); - - HRESULT (STDMETHODCALLTYPE *Free)( - ITypeMarshal* This, - PVOID pvType); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ITypeMarshal_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ITypeMarshal_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ITypeMarshal_Release(p) (p)->lpVtbl->Release(p) -/*** ITypeMarshal methods ***/ -#define ITypeMarshal_Size(p,a,b,c,d) (p)->lpVtbl->Size(p,a,b,c,d) -#define ITypeMarshal_Marshal(p,a,b,c,d,e,f) (p)->lpVtbl->Marshal(p,a,b,c,d,e,f) -#define ITypeMarshal_Unmarshal(p,a,b,c,d,e) (p)->lpVtbl->Unmarshal(p,a,b,c,d,e) -#define ITypeMarshal_Free(p,a) (p)->lpVtbl->Free(p,a) -#endif - -#endif - -#define ITypeMarshal_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ITypeMarshal methods ***/ \ - STDMETHOD_(HRESULT,Size)(THIS_ PVOID pvType, DWORD dwDestContext, PVOID pvDestContext, ULONG* pSize) PURE; \ - STDMETHOD_(HRESULT,Marshal)(THIS_ PVOID pvType, DWORD dwDestContext, PVOID pvDestContext, ULONG cbBufferLength, BYTE* pBuffer, ULONG* pcbWritten) PURE; \ - STDMETHOD_(HRESULT,Unmarshal)(THIS_ PVOID pvType, DWORD dwFlags, ULONG cbBufferLength, BYTE* pBuffer, ULONG* pcbRead) PURE; \ - STDMETHOD_(HRESULT,Free)(THIS_ PVOID pvType) PURE; - -HRESULT CALLBACK ITypeMarshal_Size_Proxy( - ITypeMarshal* This, - PVOID pvType, - DWORD dwDestContext, - PVOID pvDestContext, - ULONG* pSize); -void __RPC_STUB ITypeMarshal_Size_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeMarshal_Marshal_Proxy( - ITypeMarshal* This, - PVOID pvType, - DWORD dwDestContext, - PVOID pvDestContext, - ULONG cbBufferLength, - BYTE* pBuffer, - ULONG* pcbWritten); -void __RPC_STUB ITypeMarshal_Marshal_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeMarshal_Unmarshal_Proxy( - ITypeMarshal* This, - PVOID pvType, - DWORD dwFlags, - ULONG cbBufferLength, - BYTE* pBuffer, - ULONG* pcbRead); -void __RPC_STUB ITypeMarshal_Unmarshal_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ITypeMarshal_Free_Proxy( - ITypeMarshal* This, - PVOID pvType); -void __RPC_STUB ITypeMarshal_Free_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ITypeMarshal_INTERFACE_DEFINED__ */ - -typedef IRecordInfo *LPRECORDINFO; - -/***************************************************************************** - * IRecordInfo interface - */ -#ifndef __IRecordInfo_INTERFACE_DEFINED__ -#define __IRecordInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRecordInfo, 0x0000002f, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRecordInfo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE RecordInit( - PVOID pvNew) = 0; - - virtual HRESULT STDMETHODCALLTYPE RecordClear( - PVOID pvExisting) = 0; - - virtual HRESULT STDMETHODCALLTYPE RecordCopy( - PVOID pvExisting, - PVOID pvNew) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetGuid( - GUID* pguid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetName( - BSTR* pbstrName) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSize( - ULONG* pcbSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTypeInfo( - ITypeInfo** ppTypeInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetField( - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFieldNoCopy( - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField, - PVOID* ppvDataCArray) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutField( - ULONG wFlags, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField) = 0; - - virtual HRESULT STDMETHODCALLTYPE PutFieldNoCopy( - ULONG wFlags, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFieldNames( - ULONG* pcNames, - BSTR* rgBstrNames) = 0; - - virtual BOOL STDMETHODCALLTYPE IsMatchingType( - IRecordInfo* pRecordInfo) = 0; - - virtual PVOID STDMETHODCALLTYPE RecordCreate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE RecordCreateCopy( - PVOID pvSource, - PVOID* ppvDest) = 0; - - virtual HRESULT STDMETHODCALLTYPE RecordDestroy( - PVOID pvRecord) = 0; - -}; -#else -typedef struct IRecordInfoVtbl IRecordInfoVtbl; -struct IRecordInfo { - const IRecordInfoVtbl* lpVtbl; -}; -struct IRecordInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRecordInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRecordInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRecordInfo* This); - - /*** IRecordInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *RecordInit)( - IRecordInfo* This, - PVOID pvNew); - - HRESULT (STDMETHODCALLTYPE *RecordClear)( - IRecordInfo* This, - PVOID pvExisting); - - HRESULT (STDMETHODCALLTYPE *RecordCopy)( - IRecordInfo* This, - PVOID pvExisting, - PVOID pvNew); - - HRESULT (STDMETHODCALLTYPE *GetGuid)( - IRecordInfo* This, - GUID* pguid); - - HRESULT (STDMETHODCALLTYPE *GetName)( - IRecordInfo* This, - BSTR* pbstrName); - - HRESULT (STDMETHODCALLTYPE *GetSize)( - IRecordInfo* This, - ULONG* pcbSize); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - IRecordInfo* This, - ITypeInfo** ppTypeInfo); - - HRESULT (STDMETHODCALLTYPE *GetField)( - IRecordInfo* This, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField); - - HRESULT (STDMETHODCALLTYPE *GetFieldNoCopy)( - IRecordInfo* This, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField, - PVOID* ppvDataCArray); - - HRESULT (STDMETHODCALLTYPE *PutField)( - IRecordInfo* This, - ULONG wFlags, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField); - - HRESULT (STDMETHODCALLTYPE *PutFieldNoCopy)( - IRecordInfo* This, - ULONG wFlags, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField); - - HRESULT (STDMETHODCALLTYPE *GetFieldNames)( - IRecordInfo* This, - ULONG* pcNames, - BSTR* rgBstrNames); - - BOOL (STDMETHODCALLTYPE *IsMatchingType)( - IRecordInfo* This, - IRecordInfo* pRecordInfo); - - PVOID (STDMETHODCALLTYPE *RecordCreate)( - IRecordInfo* This); - - HRESULT (STDMETHODCALLTYPE *RecordCreateCopy)( - IRecordInfo* This, - PVOID pvSource, - PVOID* ppvDest); - - HRESULT (STDMETHODCALLTYPE *RecordDestroy)( - IRecordInfo* This, - PVOID pvRecord); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IRecordInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IRecordInfo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IRecordInfo_Release(p) (p)->lpVtbl->Release(p) -/*** IRecordInfo methods ***/ -#define IRecordInfo_RecordInit(p,a) (p)->lpVtbl->RecordInit(p,a) -#define IRecordInfo_RecordClear(p,a) (p)->lpVtbl->RecordClear(p,a) -#define IRecordInfo_RecordCopy(p,a,b) (p)->lpVtbl->RecordCopy(p,a,b) -#define IRecordInfo_GetGuid(p,a) (p)->lpVtbl->GetGuid(p,a) -#define IRecordInfo_GetName(p,a) (p)->lpVtbl->GetName(p,a) -#define IRecordInfo_GetSize(p,a) (p)->lpVtbl->GetSize(p,a) -#define IRecordInfo_GetTypeInfo(p,a) (p)->lpVtbl->GetTypeInfo(p,a) -#define IRecordInfo_GetField(p,a,b,c) (p)->lpVtbl->GetField(p,a,b,c) -#define IRecordInfo_GetFieldNoCopy(p,a,b,c,d) (p)->lpVtbl->GetFieldNoCopy(p,a,b,c,d) -#define IRecordInfo_PutField(p,a,b,c,d) (p)->lpVtbl->PutField(p,a,b,c,d) -#define IRecordInfo_PutFieldNoCopy(p,a,b,c,d) (p)->lpVtbl->PutFieldNoCopy(p,a,b,c,d) -#define IRecordInfo_GetFieldNames(p,a,b) (p)->lpVtbl->GetFieldNames(p,a,b) -#define IRecordInfo_IsMatchingType(p,a) (p)->lpVtbl->IsMatchingType(p,a) -#define IRecordInfo_RecordCreate(p) (p)->lpVtbl->RecordCreate(p) -#define IRecordInfo_RecordCreateCopy(p,a,b) (p)->lpVtbl->RecordCreateCopy(p,a,b) -#define IRecordInfo_RecordDestroy(p,a) (p)->lpVtbl->RecordDestroy(p,a) -#endif - -#endif - -#define IRecordInfo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IRecordInfo methods ***/ \ - STDMETHOD_(HRESULT,RecordInit)(THIS_ PVOID pvNew) PURE; \ - STDMETHOD_(HRESULT,RecordClear)(THIS_ PVOID pvExisting) PURE; \ - STDMETHOD_(HRESULT,RecordCopy)(THIS_ PVOID pvExisting, PVOID pvNew) PURE; \ - STDMETHOD_(HRESULT,GetGuid)(THIS_ GUID* pguid) PURE; \ - STDMETHOD_(HRESULT,GetName)(THIS_ BSTR* pbstrName) PURE; \ - STDMETHOD_(HRESULT,GetSize)(THIS_ ULONG* pcbSize) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ ITypeInfo** ppTypeInfo) PURE; \ - STDMETHOD_(HRESULT,GetField)(THIS_ PVOID pvData, LPCOLESTR szFieldName, VARIANT* pvarField) PURE; \ - STDMETHOD_(HRESULT,GetFieldNoCopy)(THIS_ PVOID pvData, LPCOLESTR szFieldName, VARIANT* pvarField, PVOID* ppvDataCArray) PURE; \ - STDMETHOD_(HRESULT,PutField)(THIS_ ULONG wFlags, PVOID pvData, LPCOLESTR szFieldName, VARIANT* pvarField) PURE; \ - STDMETHOD_(HRESULT,PutFieldNoCopy)(THIS_ ULONG wFlags, PVOID pvData, LPCOLESTR szFieldName, VARIANT* pvarField) PURE; \ - STDMETHOD_(HRESULT,GetFieldNames)(THIS_ ULONG* pcNames, BSTR* rgBstrNames) PURE; \ - STDMETHOD_(BOOL,IsMatchingType)(THIS_ IRecordInfo* pRecordInfo) PURE; \ - STDMETHOD_(PVOID,RecordCreate)(THIS) PURE; \ - STDMETHOD_(HRESULT,RecordCreateCopy)(THIS_ PVOID pvSource, PVOID* ppvDest) PURE; \ - STDMETHOD_(HRESULT,RecordDestroy)(THIS_ PVOID pvRecord) PURE; - -HRESULT CALLBACK IRecordInfo_RecordInit_Proxy( - IRecordInfo* This, - PVOID pvNew); -void __RPC_STUB IRecordInfo_RecordInit_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_RecordClear_Proxy( - IRecordInfo* This, - PVOID pvExisting); -void __RPC_STUB IRecordInfo_RecordClear_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_RecordCopy_Proxy( - IRecordInfo* This, - PVOID pvExisting, - PVOID pvNew); -void __RPC_STUB IRecordInfo_RecordCopy_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_GetGuid_Proxy( - IRecordInfo* This, - GUID* pguid); -void __RPC_STUB IRecordInfo_GetGuid_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_GetName_Proxy( - IRecordInfo* This, - BSTR* pbstrName); -void __RPC_STUB IRecordInfo_GetName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_GetSize_Proxy( - IRecordInfo* This, - ULONG* pcbSize); -void __RPC_STUB IRecordInfo_GetSize_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_GetTypeInfo_Proxy( - IRecordInfo* This, - ITypeInfo** ppTypeInfo); -void __RPC_STUB IRecordInfo_GetTypeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_GetField_Proxy( - IRecordInfo* This, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField); -void __RPC_STUB IRecordInfo_GetField_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_GetFieldNoCopy_Proxy( - IRecordInfo* This, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField, - PVOID* ppvDataCArray); -void __RPC_STUB IRecordInfo_GetFieldNoCopy_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_PutField_Proxy( - IRecordInfo* This, - ULONG wFlags, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField); -void __RPC_STUB IRecordInfo_PutField_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_PutFieldNoCopy_Proxy( - IRecordInfo* This, - ULONG wFlags, - PVOID pvData, - LPCOLESTR szFieldName, - VARIANT* pvarField); -void __RPC_STUB IRecordInfo_PutFieldNoCopy_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_GetFieldNames_Proxy( - IRecordInfo* This, - ULONG* pcNames, - BSTR* rgBstrNames); -void __RPC_STUB IRecordInfo_GetFieldNames_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -BOOL CALLBACK IRecordInfo_IsMatchingType_Proxy( - IRecordInfo* This, - IRecordInfo* pRecordInfo); -void __RPC_STUB IRecordInfo_IsMatchingType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -PVOID CALLBACK IRecordInfo_RecordCreate_Proxy( - IRecordInfo* This); -void __RPC_STUB IRecordInfo_RecordCreate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_RecordCreateCopy_Proxy( - IRecordInfo* This, - PVOID pvSource, - PVOID* ppvDest); -void __RPC_STUB IRecordInfo_RecordCreateCopy_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IRecordInfo_RecordDestroy_Proxy( - IRecordInfo* This, - PVOID pvRecord); -void __RPC_STUB IRecordInfo_RecordDestroy_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IRecordInfo_INTERFACE_DEFINED__ */ - -#ifndef __ICreateTypeInfo_FWD_DEFINED__ -#define __ICreateTypeInfo_FWD_DEFINED__ -typedef struct ICreateTypeInfo ICreateTypeInfo; -#endif - -typedef ICreateTypeInfo *LPCREATETYPEINFO; - -/***************************************************************************** - * ICreateTypeInfo interface - */ -#ifndef __ICreateTypeInfo_INTERFACE_DEFINED__ -#define __ICreateTypeInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICreateTypeInfo, 0x00020405, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICreateTypeInfo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetGuid( - REFGUID guid) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTypeFlags( - UINT uTypeFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDocString( - LPOLESTR pStrDoc) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHelpContext( - DWORD dwHelpContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVersion( - WORD wMajorVerNum, - WORD wMinorVerNum) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddRefTypeInfo( - ITypeInfo* pTInfo, - HREFTYPE* phRefType) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddFuncDesc( - UINT index, - FUNCDESC* pFuncDesc) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddImplType( - UINT index, - HREFTYPE hRefType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetImplTypeFlags( - UINT index, - INT implTypeFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetAlignment( - WORD cbAlignment) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSchema( - LPOLESTR pStrSchema) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddVarDesc( - UINT index, - VARDESC* pVarDesc) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFuncAndParamNames( - UINT index, - LPOLESTR* rgszNames, - UINT cNames) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVarName( - UINT index, - LPOLESTR szName) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTypeDescAlias( - TYPEDESC* pTDescAlias) = 0; - - virtual HRESULT STDMETHODCALLTYPE DefineFuncAsDllEntry( - UINT index, - LPOLESTR szDllName, - LPOLESTR szProcName) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFuncDocString( - UINT index, - LPOLESTR szDocString) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVarDocString( - UINT index, - LPOLESTR szDocString) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFuncHelpContext( - UINT index, - DWORD dwHelpContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVarHelpContext( - UINT index, - DWORD dwHelpContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMops( - UINT index, - BSTR bstrMops) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTypeIdldesc( - IDLDESC* pIdlDesc) = 0; - - virtual HRESULT STDMETHODCALLTYPE LayOut( - ) = 0; - -}; -#else -typedef struct ICreateTypeInfoVtbl ICreateTypeInfoVtbl; -struct ICreateTypeInfo { - const ICreateTypeInfoVtbl* lpVtbl; -}; -struct ICreateTypeInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICreateTypeInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICreateTypeInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICreateTypeInfo* This); - - /*** ICreateTypeInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *SetGuid)( - ICreateTypeInfo* This, - REFGUID guid); - - HRESULT (STDMETHODCALLTYPE *SetTypeFlags)( - ICreateTypeInfo* This, - UINT uTypeFlags); - - HRESULT (STDMETHODCALLTYPE *SetDocString)( - ICreateTypeInfo* This, - LPOLESTR pStrDoc); - - HRESULT (STDMETHODCALLTYPE *SetHelpContext)( - ICreateTypeInfo* This, - DWORD dwHelpContext); - - HRESULT (STDMETHODCALLTYPE *SetVersion)( - ICreateTypeInfo* This, - WORD wMajorVerNum, - WORD wMinorVerNum); - - HRESULT (STDMETHODCALLTYPE *AddRefTypeInfo)( - ICreateTypeInfo* This, - ITypeInfo* pTInfo, - HREFTYPE* phRefType); - - HRESULT (STDMETHODCALLTYPE *AddFuncDesc)( - ICreateTypeInfo* This, - UINT index, - FUNCDESC* pFuncDesc); - - HRESULT (STDMETHODCALLTYPE *AddImplType)( - ICreateTypeInfo* This, - UINT index, - HREFTYPE hRefType); - - HRESULT (STDMETHODCALLTYPE *SetImplTypeFlags)( - ICreateTypeInfo* This, - UINT index, - INT implTypeFlags); - - HRESULT (STDMETHODCALLTYPE *SetAlignment)( - ICreateTypeInfo* This, - WORD cbAlignment); - - HRESULT (STDMETHODCALLTYPE *SetSchema)( - ICreateTypeInfo* This, - LPOLESTR pStrSchema); - - HRESULT (STDMETHODCALLTYPE *AddVarDesc)( - ICreateTypeInfo* This, - UINT index, - VARDESC* pVarDesc); - - HRESULT (STDMETHODCALLTYPE *SetFuncAndParamNames)( - ICreateTypeInfo* This, - UINT index, - LPOLESTR* rgszNames, - UINT cNames); - - HRESULT (STDMETHODCALLTYPE *SetVarName)( - ICreateTypeInfo* This, - UINT index, - LPOLESTR szName); - - HRESULT (STDMETHODCALLTYPE *SetTypeDescAlias)( - ICreateTypeInfo* This, - TYPEDESC* pTDescAlias); - - HRESULT (STDMETHODCALLTYPE *DefineFuncAsDllEntry)( - ICreateTypeInfo* This, - UINT index, - LPOLESTR szDllName, - LPOLESTR szProcName); - - HRESULT (STDMETHODCALLTYPE *SetFuncDocString)( - ICreateTypeInfo* This, - UINT index, - LPOLESTR szDocString); - - HRESULT (STDMETHODCALLTYPE *SetVarDocString)( - ICreateTypeInfo* This, - UINT index, - LPOLESTR szDocString); - - HRESULT (STDMETHODCALLTYPE *SetFuncHelpContext)( - ICreateTypeInfo* This, - UINT index, - DWORD dwHelpContext); - - HRESULT (STDMETHODCALLTYPE *SetVarHelpContext)( - ICreateTypeInfo* This, - UINT index, - DWORD dwHelpContext); - - HRESULT (STDMETHODCALLTYPE *SetMops)( - ICreateTypeInfo* This, - UINT index, - BSTR bstrMops); - - HRESULT (STDMETHODCALLTYPE *SetTypeIdldesc)( - ICreateTypeInfo* This, - IDLDESC* pIdlDesc); - - HRESULT (STDMETHODCALLTYPE *LayOut)( - ICreateTypeInfo* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICreateTypeInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICreateTypeInfo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICreateTypeInfo_Release(p) (p)->lpVtbl->Release(p) -/*** ICreateTypeInfo methods ***/ -#define ICreateTypeInfo_SetGuid(p,a) (p)->lpVtbl->SetGuid(p,a) -#define ICreateTypeInfo_SetTypeFlags(p,a) (p)->lpVtbl->SetTypeFlags(p,a) -#define ICreateTypeInfo_SetDocString(p,a) (p)->lpVtbl->SetDocString(p,a) -#define ICreateTypeInfo_SetHelpContext(p,a) (p)->lpVtbl->SetHelpContext(p,a) -#define ICreateTypeInfo_SetVersion(p,a,b) (p)->lpVtbl->SetVersion(p,a,b) -#define ICreateTypeInfo_AddRefTypeInfo(p,a,b) (p)->lpVtbl->AddRefTypeInfo(p,a,b) -#define ICreateTypeInfo_AddFuncDesc(p,a,b) (p)->lpVtbl->AddFuncDesc(p,a,b) -#define ICreateTypeInfo_AddImplType(p,a,b) (p)->lpVtbl->AddImplType(p,a,b) -#define ICreateTypeInfo_SetImplTypeFlags(p,a,b) (p)->lpVtbl->SetImplTypeFlags(p,a,b) -#define ICreateTypeInfo_SetAlignment(p,a) (p)->lpVtbl->SetAlignment(p,a) -#define ICreateTypeInfo_SetSchema(p,a) (p)->lpVtbl->SetSchema(p,a) -#define ICreateTypeInfo_AddVarDesc(p,a,b) (p)->lpVtbl->AddVarDesc(p,a,b) -#define ICreateTypeInfo_SetFuncAndParamNames(p,a,b,c) (p)->lpVtbl->SetFuncAndParamNames(p,a,b,c) -#define ICreateTypeInfo_SetVarName(p,a,b) (p)->lpVtbl->SetVarName(p,a,b) -#define ICreateTypeInfo_SetTypeDescAlias(p,a) (p)->lpVtbl->SetTypeDescAlias(p,a) -#define ICreateTypeInfo_DefineFuncAsDllEntry(p,a,b,c) (p)->lpVtbl->DefineFuncAsDllEntry(p,a,b,c) -#define ICreateTypeInfo_SetFuncDocString(p,a,b) (p)->lpVtbl->SetFuncDocString(p,a,b) -#define ICreateTypeInfo_SetVarDocString(p,a,b) (p)->lpVtbl->SetVarDocString(p,a,b) -#define ICreateTypeInfo_SetFuncHelpContext(p,a,b) (p)->lpVtbl->SetFuncHelpContext(p,a,b) -#define ICreateTypeInfo_SetVarHelpContext(p,a,b) (p)->lpVtbl->SetVarHelpContext(p,a,b) -#define ICreateTypeInfo_SetMops(p,a,b) (p)->lpVtbl->SetMops(p,a,b) -#define ICreateTypeInfo_SetTypeIdldesc(p,a) (p)->lpVtbl->SetTypeIdldesc(p,a) -#define ICreateTypeInfo_LayOut(p) (p)->lpVtbl->LayOut(p) -#endif - -#endif - -#define ICreateTypeInfo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICreateTypeInfo methods ***/ \ - STDMETHOD_(HRESULT,SetGuid)(THIS_ REFGUID guid) PURE; \ - STDMETHOD_(HRESULT,SetTypeFlags)(THIS_ UINT uTypeFlags) PURE; \ - STDMETHOD_(HRESULT,SetDocString)(THIS_ LPOLESTR pStrDoc) PURE; \ - STDMETHOD_(HRESULT,SetHelpContext)(THIS_ DWORD dwHelpContext) PURE; \ - STDMETHOD_(HRESULT,SetVersion)(THIS_ WORD wMajorVerNum, WORD wMinorVerNum) PURE; \ - STDMETHOD_(HRESULT,AddRefTypeInfo)(THIS_ ITypeInfo* pTInfo, HREFTYPE* phRefType) PURE; \ - STDMETHOD_(HRESULT,AddFuncDesc)(THIS_ UINT index, FUNCDESC* pFuncDesc) PURE; \ - STDMETHOD_(HRESULT,AddImplType)(THIS_ UINT index, HREFTYPE hRefType) PURE; \ - STDMETHOD_(HRESULT,SetImplTypeFlags)(THIS_ UINT index, INT implTypeFlags) PURE; \ - STDMETHOD_(HRESULT,SetAlignment)(THIS_ WORD cbAlignment) PURE; \ - STDMETHOD_(HRESULT,SetSchema)(THIS_ LPOLESTR pStrSchema) PURE; \ - STDMETHOD_(HRESULT,AddVarDesc)(THIS_ UINT index, VARDESC* pVarDesc) PURE; \ - STDMETHOD_(HRESULT,SetFuncAndParamNames)(THIS_ UINT index, LPOLESTR* rgszNames, UINT cNames) PURE; \ - STDMETHOD_(HRESULT,SetVarName)(THIS_ UINT index, LPOLESTR szName) PURE; \ - STDMETHOD_(HRESULT,SetTypeDescAlias)(THIS_ TYPEDESC* pTDescAlias) PURE; \ - STDMETHOD_(HRESULT,DefineFuncAsDllEntry)(THIS_ UINT index, LPOLESTR szDllName, LPOLESTR szProcName) PURE; \ - STDMETHOD_(HRESULT,SetFuncDocString)(THIS_ UINT index, LPOLESTR szDocString) PURE; \ - STDMETHOD_(HRESULT,SetVarDocString)(THIS_ UINT index, LPOLESTR szDocString) PURE; \ - STDMETHOD_(HRESULT,SetFuncHelpContext)(THIS_ UINT index, DWORD dwHelpContext) PURE; \ - STDMETHOD_(HRESULT,SetVarHelpContext)(THIS_ UINT index, DWORD dwHelpContext) PURE; \ - STDMETHOD_(HRESULT,SetMops)(THIS_ UINT index, BSTR bstrMops) PURE; \ - STDMETHOD_(HRESULT,SetTypeIdldesc)(THIS_ IDLDESC* pIdlDesc) PURE; \ - STDMETHOD_(HRESULT,LayOut)(THIS) PURE; - -HRESULT CALLBACK ICreateTypeInfo_SetGuid_Proxy( - ICreateTypeInfo* This, - REFGUID guid); -void __RPC_STUB ICreateTypeInfo_SetGuid_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetTypeFlags_Proxy( - ICreateTypeInfo* This, - UINT uTypeFlags); -void __RPC_STUB ICreateTypeInfo_SetTypeFlags_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetDocString_Proxy( - ICreateTypeInfo* This, - LPOLESTR pStrDoc); -void __RPC_STUB ICreateTypeInfo_SetDocString_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetHelpContext_Proxy( - ICreateTypeInfo* This, - DWORD dwHelpContext); -void __RPC_STUB ICreateTypeInfo_SetHelpContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetVersion_Proxy( - ICreateTypeInfo* This, - WORD wMajorVerNum, - WORD wMinorVerNum); -void __RPC_STUB ICreateTypeInfo_SetVersion_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_AddRefTypeInfo_Proxy( - ICreateTypeInfo* This, - ITypeInfo* pTInfo, - HREFTYPE* phRefType); -void __RPC_STUB ICreateTypeInfo_AddRefTypeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_AddFuncDesc_Proxy( - ICreateTypeInfo* This, - UINT index, - FUNCDESC* pFuncDesc); -void __RPC_STUB ICreateTypeInfo_AddFuncDesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_AddImplType_Proxy( - ICreateTypeInfo* This, - UINT index, - HREFTYPE hRefType); -void __RPC_STUB ICreateTypeInfo_AddImplType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetImplTypeFlags_Proxy( - ICreateTypeInfo* This, - UINT index, - INT implTypeFlags); -void __RPC_STUB ICreateTypeInfo_SetImplTypeFlags_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetAlignment_Proxy( - ICreateTypeInfo* This, - WORD cbAlignment); -void __RPC_STUB ICreateTypeInfo_SetAlignment_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetSchema_Proxy( - ICreateTypeInfo* This, - LPOLESTR pStrSchema); -void __RPC_STUB ICreateTypeInfo_SetSchema_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_AddVarDesc_Proxy( - ICreateTypeInfo* This, - UINT index, - VARDESC* pVarDesc); -void __RPC_STUB ICreateTypeInfo_AddVarDesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetFuncAndParamNames_Proxy( - ICreateTypeInfo* This, - UINT index, - LPOLESTR* rgszNames, - UINT cNames); -void __RPC_STUB ICreateTypeInfo_SetFuncAndParamNames_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetVarName_Proxy( - ICreateTypeInfo* This, - UINT index, - LPOLESTR szName); -void __RPC_STUB ICreateTypeInfo_SetVarName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetTypeDescAlias_Proxy( - ICreateTypeInfo* This, - TYPEDESC* pTDescAlias); -void __RPC_STUB ICreateTypeInfo_SetTypeDescAlias_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_DefineFuncAsDllEntry_Proxy( - ICreateTypeInfo* This, - UINT index, - LPOLESTR szDllName, - LPOLESTR szProcName); -void __RPC_STUB ICreateTypeInfo_DefineFuncAsDllEntry_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetFuncDocString_Proxy( - ICreateTypeInfo* This, - UINT index, - LPOLESTR szDocString); -void __RPC_STUB ICreateTypeInfo_SetFuncDocString_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetVarDocString_Proxy( - ICreateTypeInfo* This, - UINT index, - LPOLESTR szDocString); -void __RPC_STUB ICreateTypeInfo_SetVarDocString_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetFuncHelpContext_Proxy( - ICreateTypeInfo* This, - UINT index, - DWORD dwHelpContext); -void __RPC_STUB ICreateTypeInfo_SetFuncHelpContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetVarHelpContext_Proxy( - ICreateTypeInfo* This, - UINT index, - DWORD dwHelpContext); -void __RPC_STUB ICreateTypeInfo_SetVarHelpContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetMops_Proxy( - ICreateTypeInfo* This, - UINT index, - BSTR bstrMops); -void __RPC_STUB ICreateTypeInfo_SetMops_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_SetTypeIdldesc_Proxy( - ICreateTypeInfo* This, - IDLDESC* pIdlDesc); -void __RPC_STUB ICreateTypeInfo_SetTypeIdldesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo_LayOut_Proxy( - ICreateTypeInfo* This); -void __RPC_STUB ICreateTypeInfo_LayOut_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICreateTypeInfo_INTERFACE_DEFINED__ */ - -#ifndef __ICreateTypeInfo2_FWD_DEFINED__ -#define __ICreateTypeInfo2_FWD_DEFINED__ -typedef struct ICreateTypeInfo2 ICreateTypeInfo2; -#endif - -typedef ICreateTypeInfo2 *LPCREATETYPEINFO2; - -/***************************************************************************** - * ICreateTypeInfo2 interface - */ -#ifndef __ICreateTypeInfo2_INTERFACE_DEFINED__ -#define __ICreateTypeInfo2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICreateTypeInfo2, 0x0002040e, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICreateTypeInfo2 : public ICreateTypeInfo -{ - virtual HRESULT STDMETHODCALLTYPE DeleteFuncDesc( - UINT index) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteFuncDescByMemId( - MEMBERID memid, - INVOKEKIND invKind) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteVarDesc( - UINT index) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteVarDescByMemId( - MEMBERID memid) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteImplType( - UINT index) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetCustData( - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFuncCustData( - UINT index, - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetParamCustData( - UINT indexFunc, - UINT indexParam, - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVarCustData( - UINT index, - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetImplTypeCustData( - UINT index, - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHelpStringContext( - ULONG dwHelpStringContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFuncHelpStringContext( - UINT index, - ULONG dwHelpStringContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVarHelpStringContext( - UINT index, - ULONG dwHelpStringContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE Invalidate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetName( - LPOLESTR szName) = 0; - -}; -#else -typedef struct ICreateTypeInfo2Vtbl ICreateTypeInfo2Vtbl; -struct ICreateTypeInfo2 { - const ICreateTypeInfo2Vtbl* lpVtbl; -}; -struct ICreateTypeInfo2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICreateTypeInfo2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICreateTypeInfo2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICreateTypeInfo2* This); - - /*** ICreateTypeInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *SetGuid)( - ICreateTypeInfo2* This, - REFGUID guid); - - HRESULT (STDMETHODCALLTYPE *SetTypeFlags)( - ICreateTypeInfo2* This, - UINT uTypeFlags); - - HRESULT (STDMETHODCALLTYPE *SetDocString)( - ICreateTypeInfo2* This, - LPOLESTR pStrDoc); - - HRESULT (STDMETHODCALLTYPE *SetHelpContext)( - ICreateTypeInfo2* This, - DWORD dwHelpContext); - - HRESULT (STDMETHODCALLTYPE *SetVersion)( - ICreateTypeInfo2* This, - WORD wMajorVerNum, - WORD wMinorVerNum); - - HRESULT (STDMETHODCALLTYPE *AddRefTypeInfo)( - ICreateTypeInfo2* This, - ITypeInfo* pTInfo, - HREFTYPE* phRefType); - - HRESULT (STDMETHODCALLTYPE *AddFuncDesc)( - ICreateTypeInfo2* This, - UINT index, - FUNCDESC* pFuncDesc); - - HRESULT (STDMETHODCALLTYPE *AddImplType)( - ICreateTypeInfo2* This, - UINT index, - HREFTYPE hRefType); - - HRESULT (STDMETHODCALLTYPE *SetImplTypeFlags)( - ICreateTypeInfo2* This, - UINT index, - INT implTypeFlags); - - HRESULT (STDMETHODCALLTYPE *SetAlignment)( - ICreateTypeInfo2* This, - WORD cbAlignment); - - HRESULT (STDMETHODCALLTYPE *SetSchema)( - ICreateTypeInfo2* This, - LPOLESTR pStrSchema); - - HRESULT (STDMETHODCALLTYPE *AddVarDesc)( - ICreateTypeInfo2* This, - UINT index, - VARDESC* pVarDesc); - - HRESULT (STDMETHODCALLTYPE *SetFuncAndParamNames)( - ICreateTypeInfo2* This, - UINT index, - LPOLESTR* rgszNames, - UINT cNames); - - HRESULT (STDMETHODCALLTYPE *SetVarName)( - ICreateTypeInfo2* This, - UINT index, - LPOLESTR szName); - - HRESULT (STDMETHODCALLTYPE *SetTypeDescAlias)( - ICreateTypeInfo2* This, - TYPEDESC* pTDescAlias); - - HRESULT (STDMETHODCALLTYPE *DefineFuncAsDllEntry)( - ICreateTypeInfo2* This, - UINT index, - LPOLESTR szDllName, - LPOLESTR szProcName); - - HRESULT (STDMETHODCALLTYPE *SetFuncDocString)( - ICreateTypeInfo2* This, - UINT index, - LPOLESTR szDocString); - - HRESULT (STDMETHODCALLTYPE *SetVarDocString)( - ICreateTypeInfo2* This, - UINT index, - LPOLESTR szDocString); - - HRESULT (STDMETHODCALLTYPE *SetFuncHelpContext)( - ICreateTypeInfo2* This, - UINT index, - DWORD dwHelpContext); - - HRESULT (STDMETHODCALLTYPE *SetVarHelpContext)( - ICreateTypeInfo2* This, - UINT index, - DWORD dwHelpContext); - - HRESULT (STDMETHODCALLTYPE *SetMops)( - ICreateTypeInfo2* This, - UINT index, - BSTR bstrMops); - - HRESULT (STDMETHODCALLTYPE *SetTypeIdldesc)( - ICreateTypeInfo2* This, - IDLDESC* pIdlDesc); - - HRESULT (STDMETHODCALLTYPE *LayOut)( - ICreateTypeInfo2* This); - - /*** ICreateTypeInfo2 methods ***/ - HRESULT (STDMETHODCALLTYPE *DeleteFuncDesc)( - ICreateTypeInfo2* This, - UINT index); - - HRESULT (STDMETHODCALLTYPE *DeleteFuncDescByMemId)( - ICreateTypeInfo2* This, - MEMBERID memid, - INVOKEKIND invKind); - - HRESULT (STDMETHODCALLTYPE *DeleteVarDesc)( - ICreateTypeInfo2* This, - UINT index); - - HRESULT (STDMETHODCALLTYPE *DeleteVarDescByMemId)( - ICreateTypeInfo2* This, - MEMBERID memid); - - HRESULT (STDMETHODCALLTYPE *DeleteImplType)( - ICreateTypeInfo2* This, - UINT index); - - HRESULT (STDMETHODCALLTYPE *SetCustData)( - ICreateTypeInfo2* This, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *SetFuncCustData)( - ICreateTypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *SetParamCustData)( - ICreateTypeInfo2* This, - UINT indexFunc, - UINT indexParam, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *SetVarCustData)( - ICreateTypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *SetImplTypeCustData)( - ICreateTypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *SetHelpStringContext)( - ICreateTypeInfo2* This, - ULONG dwHelpStringContext); - - HRESULT (STDMETHODCALLTYPE *SetFuncHelpStringContext)( - ICreateTypeInfo2* This, - UINT index, - ULONG dwHelpStringContext); - - HRESULT (STDMETHODCALLTYPE *SetVarHelpStringContext)( - ICreateTypeInfo2* This, - UINT index, - ULONG dwHelpStringContext); - - HRESULT (STDMETHODCALLTYPE *Invalidate)( - ICreateTypeInfo2* This); - - HRESULT (STDMETHODCALLTYPE *SetName)( - ICreateTypeInfo2* This, - LPOLESTR szName); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICreateTypeInfo2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICreateTypeInfo2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICreateTypeInfo2_Release(p) (p)->lpVtbl->Release(p) -/*** ICreateTypeInfo methods ***/ -#define ICreateTypeInfo2_SetGuid(p,a) (p)->lpVtbl->SetGuid(p,a) -#define ICreateTypeInfo2_SetTypeFlags(p,a) (p)->lpVtbl->SetTypeFlags(p,a) -#define ICreateTypeInfo2_SetDocString(p,a) (p)->lpVtbl->SetDocString(p,a) -#define ICreateTypeInfo2_SetHelpContext(p,a) (p)->lpVtbl->SetHelpContext(p,a) -#define ICreateTypeInfo2_SetVersion(p,a,b) (p)->lpVtbl->SetVersion(p,a,b) -#define ICreateTypeInfo2_AddRefTypeInfo(p,a,b) (p)->lpVtbl->AddRefTypeInfo(p,a,b) -#define ICreateTypeInfo2_AddFuncDesc(p,a,b) (p)->lpVtbl->AddFuncDesc(p,a,b) -#define ICreateTypeInfo2_AddImplType(p,a,b) (p)->lpVtbl->AddImplType(p,a,b) -#define ICreateTypeInfo2_SetImplTypeFlags(p,a,b) (p)->lpVtbl->SetImplTypeFlags(p,a,b) -#define ICreateTypeInfo2_SetAlignment(p,a) (p)->lpVtbl->SetAlignment(p,a) -#define ICreateTypeInfo2_SetSchema(p,a) (p)->lpVtbl->SetSchema(p,a) -#define ICreateTypeInfo2_AddVarDesc(p,a,b) (p)->lpVtbl->AddVarDesc(p,a,b) -#define ICreateTypeInfo2_SetFuncAndParamNames(p,a,b,c) (p)->lpVtbl->SetFuncAndParamNames(p,a,b,c) -#define ICreateTypeInfo2_SetVarName(p,a,b) (p)->lpVtbl->SetVarName(p,a,b) -#define ICreateTypeInfo2_SetTypeDescAlias(p,a) (p)->lpVtbl->SetTypeDescAlias(p,a) -#define ICreateTypeInfo2_DefineFuncAsDllEntry(p,a,b,c) (p)->lpVtbl->DefineFuncAsDllEntry(p,a,b,c) -#define ICreateTypeInfo2_SetFuncDocString(p,a,b) (p)->lpVtbl->SetFuncDocString(p,a,b) -#define ICreateTypeInfo2_SetVarDocString(p,a,b) (p)->lpVtbl->SetVarDocString(p,a,b) -#define ICreateTypeInfo2_SetFuncHelpContext(p,a,b) (p)->lpVtbl->SetFuncHelpContext(p,a,b) -#define ICreateTypeInfo2_SetVarHelpContext(p,a,b) (p)->lpVtbl->SetVarHelpContext(p,a,b) -#define ICreateTypeInfo2_SetMops(p,a,b) (p)->lpVtbl->SetMops(p,a,b) -#define ICreateTypeInfo2_SetTypeIdldesc(p,a) (p)->lpVtbl->SetTypeIdldesc(p,a) -#define ICreateTypeInfo2_LayOut(p) (p)->lpVtbl->LayOut(p) -/*** ICreateTypeInfo2 methods ***/ -#define ICreateTypeInfo2_DeleteFuncDesc(p,a) (p)->lpVtbl->DeleteFuncDesc(p,a) -#define ICreateTypeInfo2_DeleteFuncDescByMemId(p,a,b) (p)->lpVtbl->DeleteFuncDescByMemId(p,a,b) -#define ICreateTypeInfo2_DeleteVarDesc(p,a) (p)->lpVtbl->DeleteVarDesc(p,a) -#define ICreateTypeInfo2_DeleteVarDescByMemId(p,a) (p)->lpVtbl->DeleteVarDescByMemId(p,a) -#define ICreateTypeInfo2_DeleteImplType(p,a) (p)->lpVtbl->DeleteImplType(p,a) -#define ICreateTypeInfo2_SetCustData(p,a,b) (p)->lpVtbl->SetCustData(p,a,b) -#define ICreateTypeInfo2_SetFuncCustData(p,a,b,c) (p)->lpVtbl->SetFuncCustData(p,a,b,c) -#define ICreateTypeInfo2_SetParamCustData(p,a,b,c,d) (p)->lpVtbl->SetParamCustData(p,a,b,c,d) -#define ICreateTypeInfo2_SetVarCustData(p,a,b,c) (p)->lpVtbl->SetVarCustData(p,a,b,c) -#define ICreateTypeInfo2_SetImplTypeCustData(p,a,b,c) (p)->lpVtbl->SetImplTypeCustData(p,a,b,c) -#define ICreateTypeInfo2_SetHelpStringContext(p,a) (p)->lpVtbl->SetHelpStringContext(p,a) -#define ICreateTypeInfo2_SetFuncHelpStringContext(p,a,b) (p)->lpVtbl->SetFuncHelpStringContext(p,a,b) -#define ICreateTypeInfo2_SetVarHelpStringContext(p,a,b) (p)->lpVtbl->SetVarHelpStringContext(p,a,b) -#define ICreateTypeInfo2_Invalidate(p) (p)->lpVtbl->Invalidate(p) -#define ICreateTypeInfo2_SetName(p,a) (p)->lpVtbl->SetName(p,a) -#endif - -#endif - -#define ICreateTypeInfo2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICreateTypeInfo methods ***/ \ - STDMETHOD_(HRESULT,SetGuid)(THIS_ REFGUID guid) PURE; \ - STDMETHOD_(HRESULT,SetTypeFlags)(THIS_ UINT uTypeFlags) PURE; \ - STDMETHOD_(HRESULT,SetDocString)(THIS_ LPOLESTR pStrDoc) PURE; \ - STDMETHOD_(HRESULT,SetHelpContext)(THIS_ DWORD dwHelpContext) PURE; \ - STDMETHOD_(HRESULT,SetVersion)(THIS_ WORD wMajorVerNum, WORD wMinorVerNum) PURE; \ - STDMETHOD_(HRESULT,AddRefTypeInfo)(THIS_ ITypeInfo* pTInfo, HREFTYPE* phRefType) PURE; \ - STDMETHOD_(HRESULT,AddFuncDesc)(THIS_ UINT index, FUNCDESC* pFuncDesc) PURE; \ - STDMETHOD_(HRESULT,AddImplType)(THIS_ UINT index, HREFTYPE hRefType) PURE; \ - STDMETHOD_(HRESULT,SetImplTypeFlags)(THIS_ UINT index, INT implTypeFlags) PURE; \ - STDMETHOD_(HRESULT,SetAlignment)(THIS_ WORD cbAlignment) PURE; \ - STDMETHOD_(HRESULT,SetSchema)(THIS_ LPOLESTR pStrSchema) PURE; \ - STDMETHOD_(HRESULT,AddVarDesc)(THIS_ UINT index, VARDESC* pVarDesc) PURE; \ - STDMETHOD_(HRESULT,SetFuncAndParamNames)(THIS_ UINT index, LPOLESTR* rgszNames, UINT cNames) PURE; \ - STDMETHOD_(HRESULT,SetVarName)(THIS_ UINT index, LPOLESTR szName) PURE; \ - STDMETHOD_(HRESULT,SetTypeDescAlias)(THIS_ TYPEDESC* pTDescAlias) PURE; \ - STDMETHOD_(HRESULT,DefineFuncAsDllEntry)(THIS_ UINT index, LPOLESTR szDllName, LPOLESTR szProcName) PURE; \ - STDMETHOD_(HRESULT,SetFuncDocString)(THIS_ UINT index, LPOLESTR szDocString) PURE; \ - STDMETHOD_(HRESULT,SetVarDocString)(THIS_ UINT index, LPOLESTR szDocString) PURE; \ - STDMETHOD_(HRESULT,SetFuncHelpContext)(THIS_ UINT index, DWORD dwHelpContext) PURE; \ - STDMETHOD_(HRESULT,SetVarHelpContext)(THIS_ UINT index, DWORD dwHelpContext) PURE; \ - STDMETHOD_(HRESULT,SetMops)(THIS_ UINT index, BSTR bstrMops) PURE; \ - STDMETHOD_(HRESULT,SetTypeIdldesc)(THIS_ IDLDESC* pIdlDesc) PURE; \ - STDMETHOD_(HRESULT,LayOut)(THIS) PURE; \ - /*** ICreateTypeInfo2 methods ***/ \ - STDMETHOD_(HRESULT,DeleteFuncDesc)(THIS_ UINT index) PURE; \ - STDMETHOD_(HRESULT,DeleteFuncDescByMemId)(THIS_ MEMBERID memid, INVOKEKIND invKind) PURE; \ - STDMETHOD_(HRESULT,DeleteVarDesc)(THIS_ UINT index) PURE; \ - STDMETHOD_(HRESULT,DeleteVarDescByMemId)(THIS_ MEMBERID memid) PURE; \ - STDMETHOD_(HRESULT,DeleteImplType)(THIS_ UINT index) PURE; \ - STDMETHOD_(HRESULT,SetCustData)(THIS_ REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,SetFuncCustData)(THIS_ UINT index, REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,SetParamCustData)(THIS_ UINT indexFunc, UINT indexParam, REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,SetVarCustData)(THIS_ UINT index, REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,SetImplTypeCustData)(THIS_ UINT index, REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,SetHelpStringContext)(THIS_ ULONG dwHelpStringContext) PURE; \ - STDMETHOD_(HRESULT,SetFuncHelpStringContext)(THIS_ UINT index, ULONG dwHelpStringContext) PURE; \ - STDMETHOD_(HRESULT,SetVarHelpStringContext)(THIS_ UINT index, ULONG dwHelpStringContext) PURE; \ - STDMETHOD_(HRESULT,Invalidate)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetName)(THIS_ LPOLESTR szName) PURE; - -HRESULT CALLBACK ICreateTypeInfo2_DeleteFuncDesc_Proxy( - ICreateTypeInfo2* This, - UINT index); -void __RPC_STUB ICreateTypeInfo2_DeleteFuncDesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_DeleteFuncDescByMemId_Proxy( - ICreateTypeInfo2* This, - MEMBERID memid, - INVOKEKIND invKind); -void __RPC_STUB ICreateTypeInfo2_DeleteFuncDescByMemId_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_DeleteVarDesc_Proxy( - ICreateTypeInfo2* This, - UINT index); -void __RPC_STUB ICreateTypeInfo2_DeleteVarDesc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_DeleteVarDescByMemId_Proxy( - ICreateTypeInfo2* This, - MEMBERID memid); -void __RPC_STUB ICreateTypeInfo2_DeleteVarDescByMemId_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_DeleteImplType_Proxy( - ICreateTypeInfo2* This, - UINT index); -void __RPC_STUB ICreateTypeInfo2_DeleteImplType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_SetCustData_Proxy( - ICreateTypeInfo2* This, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ICreateTypeInfo2_SetCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_SetFuncCustData_Proxy( - ICreateTypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ICreateTypeInfo2_SetFuncCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_SetParamCustData_Proxy( - ICreateTypeInfo2* This, - UINT indexFunc, - UINT indexParam, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ICreateTypeInfo2_SetParamCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_SetVarCustData_Proxy( - ICreateTypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ICreateTypeInfo2_SetVarCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_SetImplTypeCustData_Proxy( - ICreateTypeInfo2* This, - UINT index, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ICreateTypeInfo2_SetImplTypeCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_SetHelpStringContext_Proxy( - ICreateTypeInfo2* This, - ULONG dwHelpStringContext); -void __RPC_STUB ICreateTypeInfo2_SetHelpStringContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_SetFuncHelpStringContext_Proxy( - ICreateTypeInfo2* This, - UINT index, - ULONG dwHelpStringContext); -void __RPC_STUB ICreateTypeInfo2_SetFuncHelpStringContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_SetVarHelpStringContext_Proxy( - ICreateTypeInfo2* This, - UINT index, - ULONG dwHelpStringContext); -void __RPC_STUB ICreateTypeInfo2_SetVarHelpStringContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_Invalidate_Proxy( - ICreateTypeInfo2* This); -void __RPC_STUB ICreateTypeInfo2_Invalidate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeInfo2_SetName_Proxy( - ICreateTypeInfo2* This, - LPOLESTR szName); -void __RPC_STUB ICreateTypeInfo2_SetName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICreateTypeInfo2_INTERFACE_DEFINED__ */ - -#ifndef __ICreateTypeLib_FWD_DEFINED__ -#define __ICreateTypeLib_FWD_DEFINED__ -typedef struct ICreateTypeLib ICreateTypeLib; -#endif - -typedef ICreateTypeLib *LPCREATETYPELIB; - -/***************************************************************************** - * ICreateTypeLib interface - */ -#ifndef __ICreateTypeLib_INTERFACE_DEFINED__ -#define __ICreateTypeLib_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICreateTypeLib, 0x00020406, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICreateTypeLib : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CreateTypeInfo( - LPOLESTR szName, - TYPEKIND tkind, - ICreateTypeInfo** ppCTInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetName( - LPOLESTR szName) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetVersion( - WORD wMajorVerNum, - WORD wMinorVerNum) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetGuid( - REFGUID guid) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDocString( - LPOLESTR szDoc) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHelpFileName( - LPOLESTR szHelpFileName) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHelpContext( - DWORD dwHelpContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetLcid( - LCID lcid) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetLibFlags( - UINT uLibFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SaveAllChanges( - ) = 0; - -}; -#else -typedef struct ICreateTypeLibVtbl ICreateTypeLibVtbl; -struct ICreateTypeLib { - const ICreateTypeLibVtbl* lpVtbl; -}; -struct ICreateTypeLibVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICreateTypeLib* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICreateTypeLib* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICreateTypeLib* This); - - /*** ICreateTypeLib methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateTypeInfo)( - ICreateTypeLib* This, - LPOLESTR szName, - TYPEKIND tkind, - ICreateTypeInfo** ppCTInfo); - - HRESULT (STDMETHODCALLTYPE *SetName)( - ICreateTypeLib* This, - LPOLESTR szName); - - HRESULT (STDMETHODCALLTYPE *SetVersion)( - ICreateTypeLib* This, - WORD wMajorVerNum, - WORD wMinorVerNum); - - HRESULT (STDMETHODCALLTYPE *SetGuid)( - ICreateTypeLib* This, - REFGUID guid); - - HRESULT (STDMETHODCALLTYPE *SetDocString)( - ICreateTypeLib* This, - LPOLESTR szDoc); - - HRESULT (STDMETHODCALLTYPE *SetHelpFileName)( - ICreateTypeLib* This, - LPOLESTR szHelpFileName); - - HRESULT (STDMETHODCALLTYPE *SetHelpContext)( - ICreateTypeLib* This, - DWORD dwHelpContext); - - HRESULT (STDMETHODCALLTYPE *SetLcid)( - ICreateTypeLib* This, - LCID lcid); - - HRESULT (STDMETHODCALLTYPE *SetLibFlags)( - ICreateTypeLib* This, - UINT uLibFlags); - - HRESULT (STDMETHODCALLTYPE *SaveAllChanges)( - ICreateTypeLib* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICreateTypeLib_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICreateTypeLib_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICreateTypeLib_Release(p) (p)->lpVtbl->Release(p) -/*** ICreateTypeLib methods ***/ -#define ICreateTypeLib_CreateTypeInfo(p,a,b,c) (p)->lpVtbl->CreateTypeInfo(p,a,b,c) -#define ICreateTypeLib_SetName(p,a) (p)->lpVtbl->SetName(p,a) -#define ICreateTypeLib_SetVersion(p,a,b) (p)->lpVtbl->SetVersion(p,a,b) -#define ICreateTypeLib_SetGuid(p,a) (p)->lpVtbl->SetGuid(p,a) -#define ICreateTypeLib_SetDocString(p,a) (p)->lpVtbl->SetDocString(p,a) -#define ICreateTypeLib_SetHelpFileName(p,a) (p)->lpVtbl->SetHelpFileName(p,a) -#define ICreateTypeLib_SetHelpContext(p,a) (p)->lpVtbl->SetHelpContext(p,a) -#define ICreateTypeLib_SetLcid(p,a) (p)->lpVtbl->SetLcid(p,a) -#define ICreateTypeLib_SetLibFlags(p,a) (p)->lpVtbl->SetLibFlags(p,a) -#define ICreateTypeLib_SaveAllChanges(p) (p)->lpVtbl->SaveAllChanges(p) -#endif - -#endif - -#define ICreateTypeLib_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICreateTypeLib methods ***/ \ - STDMETHOD_(HRESULT,CreateTypeInfo)(THIS_ LPOLESTR szName, TYPEKIND tkind, ICreateTypeInfo** ppCTInfo) PURE; \ - STDMETHOD_(HRESULT,SetName)(THIS_ LPOLESTR szName) PURE; \ - STDMETHOD_(HRESULT,SetVersion)(THIS_ WORD wMajorVerNum, WORD wMinorVerNum) PURE; \ - STDMETHOD_(HRESULT,SetGuid)(THIS_ REFGUID guid) PURE; \ - STDMETHOD_(HRESULT,SetDocString)(THIS_ LPOLESTR szDoc) PURE; \ - STDMETHOD_(HRESULT,SetHelpFileName)(THIS_ LPOLESTR szHelpFileName) PURE; \ - STDMETHOD_(HRESULT,SetHelpContext)(THIS_ DWORD dwHelpContext) PURE; \ - STDMETHOD_(HRESULT,SetLcid)(THIS_ LCID lcid) PURE; \ - STDMETHOD_(HRESULT,SetLibFlags)(THIS_ UINT uLibFlags) PURE; \ - STDMETHOD_(HRESULT,SaveAllChanges)(THIS) PURE; - -HRESULT CALLBACK ICreateTypeLib_CreateTypeInfo_Proxy( - ICreateTypeLib* This, - LPOLESTR szName, - TYPEKIND tkind, - ICreateTypeInfo** ppCTInfo); -void __RPC_STUB ICreateTypeLib_CreateTypeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib_SetName_Proxy( - ICreateTypeLib* This, - LPOLESTR szName); -void __RPC_STUB ICreateTypeLib_SetName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib_SetVersion_Proxy( - ICreateTypeLib* This, - WORD wMajorVerNum, - WORD wMinorVerNum); -void __RPC_STUB ICreateTypeLib_SetVersion_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib_SetGuid_Proxy( - ICreateTypeLib* This, - REFGUID guid); -void __RPC_STUB ICreateTypeLib_SetGuid_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib_SetDocString_Proxy( - ICreateTypeLib* This, - LPOLESTR szDoc); -void __RPC_STUB ICreateTypeLib_SetDocString_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib_SetHelpFileName_Proxy( - ICreateTypeLib* This, - LPOLESTR szHelpFileName); -void __RPC_STUB ICreateTypeLib_SetHelpFileName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib_SetHelpContext_Proxy( - ICreateTypeLib* This, - DWORD dwHelpContext); -void __RPC_STUB ICreateTypeLib_SetHelpContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib_SetLcid_Proxy( - ICreateTypeLib* This, - LCID lcid); -void __RPC_STUB ICreateTypeLib_SetLcid_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib_SetLibFlags_Proxy( - ICreateTypeLib* This, - UINT uLibFlags); -void __RPC_STUB ICreateTypeLib_SetLibFlags_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib_SaveAllChanges_Proxy( - ICreateTypeLib* This); -void __RPC_STUB ICreateTypeLib_SaveAllChanges_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICreateTypeLib_INTERFACE_DEFINED__ */ - -#ifndef __ICreateTypeLib2_FWD_DEFINED__ -#define __ICreateTypeLib2_FWD_DEFINED__ -typedef struct ICreateTypeLib2 ICreateTypeLib2; -#endif - -typedef ICreateTypeLib2 *LPCREATETYPELIB2; - -/***************************************************************************** - * ICreateTypeLib2 interface - */ -#ifndef __ICreateTypeLib2_INTERFACE_DEFINED__ -#define __ICreateTypeLib2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICreateTypeLib2, 0x0002040f, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICreateTypeLib2 : public ICreateTypeLib -{ - virtual HRESULT STDMETHODCALLTYPE DeleteTypeInfo( - LPOLESTR szName) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetCustData( - REFGUID guid, - VARIANT* pVarVal) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHelpStringContext( - ULONG dwHelpStringContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHelpStringDll( - LPOLESTR szFileName) = 0; - -}; -#else -typedef struct ICreateTypeLib2Vtbl ICreateTypeLib2Vtbl; -struct ICreateTypeLib2 { - const ICreateTypeLib2Vtbl* lpVtbl; -}; -struct ICreateTypeLib2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICreateTypeLib2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICreateTypeLib2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICreateTypeLib2* This); - - /*** ICreateTypeLib methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateTypeInfo)( - ICreateTypeLib2* This, - LPOLESTR szName, - TYPEKIND tkind, - ICreateTypeInfo** ppCTInfo); - - HRESULT (STDMETHODCALLTYPE *SetName)( - ICreateTypeLib2* This, - LPOLESTR szName); - - HRESULT (STDMETHODCALLTYPE *SetVersion)( - ICreateTypeLib2* This, - WORD wMajorVerNum, - WORD wMinorVerNum); - - HRESULT (STDMETHODCALLTYPE *SetGuid)( - ICreateTypeLib2* This, - REFGUID guid); - - HRESULT (STDMETHODCALLTYPE *SetDocString)( - ICreateTypeLib2* This, - LPOLESTR szDoc); - - HRESULT (STDMETHODCALLTYPE *SetHelpFileName)( - ICreateTypeLib2* This, - LPOLESTR szHelpFileName); - - HRESULT (STDMETHODCALLTYPE *SetHelpContext)( - ICreateTypeLib2* This, - DWORD dwHelpContext); - - HRESULT (STDMETHODCALLTYPE *SetLcid)( - ICreateTypeLib2* This, - LCID lcid); - - HRESULT (STDMETHODCALLTYPE *SetLibFlags)( - ICreateTypeLib2* This, - UINT uLibFlags); - - HRESULT (STDMETHODCALLTYPE *SaveAllChanges)( - ICreateTypeLib2* This); - - /*** ICreateTypeLib2 methods ***/ - HRESULT (STDMETHODCALLTYPE *DeleteTypeInfo)( - ICreateTypeLib2* This, - LPOLESTR szName); - - HRESULT (STDMETHODCALLTYPE *SetCustData)( - ICreateTypeLib2* This, - REFGUID guid, - VARIANT* pVarVal); - - HRESULT (STDMETHODCALLTYPE *SetHelpStringContext)( - ICreateTypeLib2* This, - ULONG dwHelpStringContext); - - HRESULT (STDMETHODCALLTYPE *SetHelpStringDll)( - ICreateTypeLib2* This, - LPOLESTR szFileName); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICreateTypeLib2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICreateTypeLib2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICreateTypeLib2_Release(p) (p)->lpVtbl->Release(p) -/*** ICreateTypeLib methods ***/ -#define ICreateTypeLib2_CreateTypeInfo(p,a,b,c) (p)->lpVtbl->CreateTypeInfo(p,a,b,c) -#define ICreateTypeLib2_SetName(p,a) (p)->lpVtbl->SetName(p,a) -#define ICreateTypeLib2_SetVersion(p,a,b) (p)->lpVtbl->SetVersion(p,a,b) -#define ICreateTypeLib2_SetGuid(p,a) (p)->lpVtbl->SetGuid(p,a) -#define ICreateTypeLib2_SetDocString(p,a) (p)->lpVtbl->SetDocString(p,a) -#define ICreateTypeLib2_SetHelpFileName(p,a) (p)->lpVtbl->SetHelpFileName(p,a) -#define ICreateTypeLib2_SetHelpContext(p,a) (p)->lpVtbl->SetHelpContext(p,a) -#define ICreateTypeLib2_SetLcid(p,a) (p)->lpVtbl->SetLcid(p,a) -#define ICreateTypeLib2_SetLibFlags(p,a) (p)->lpVtbl->SetLibFlags(p,a) -#define ICreateTypeLib2_SaveAllChanges(p) (p)->lpVtbl->SaveAllChanges(p) -/*** ICreateTypeLib2 methods ***/ -#define ICreateTypeLib2_DeleteTypeInfo(p,a) (p)->lpVtbl->DeleteTypeInfo(p,a) -#define ICreateTypeLib2_SetCustData(p,a,b) (p)->lpVtbl->SetCustData(p,a,b) -#define ICreateTypeLib2_SetHelpStringContext(p,a) (p)->lpVtbl->SetHelpStringContext(p,a) -#define ICreateTypeLib2_SetHelpStringDll(p,a) (p)->lpVtbl->SetHelpStringDll(p,a) -#endif - -#endif - -#define ICreateTypeLib2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICreateTypeLib methods ***/ \ - STDMETHOD_(HRESULT,CreateTypeInfo)(THIS_ LPOLESTR szName, TYPEKIND tkind, ICreateTypeInfo** ppCTInfo) PURE; \ - STDMETHOD_(HRESULT,SetName)(THIS_ LPOLESTR szName) PURE; \ - STDMETHOD_(HRESULT,SetVersion)(THIS_ WORD wMajorVerNum, WORD wMinorVerNum) PURE; \ - STDMETHOD_(HRESULT,SetGuid)(THIS_ REFGUID guid) PURE; \ - STDMETHOD_(HRESULT,SetDocString)(THIS_ LPOLESTR szDoc) PURE; \ - STDMETHOD_(HRESULT,SetHelpFileName)(THIS_ LPOLESTR szHelpFileName) PURE; \ - STDMETHOD_(HRESULT,SetHelpContext)(THIS_ DWORD dwHelpContext) PURE; \ - STDMETHOD_(HRESULT,SetLcid)(THIS_ LCID lcid) PURE; \ - STDMETHOD_(HRESULT,SetLibFlags)(THIS_ UINT uLibFlags) PURE; \ - STDMETHOD_(HRESULT,SaveAllChanges)(THIS) PURE; \ - /*** ICreateTypeLib2 methods ***/ \ - STDMETHOD_(HRESULT,DeleteTypeInfo)(THIS_ LPOLESTR szName) PURE; \ - STDMETHOD_(HRESULT,SetCustData)(THIS_ REFGUID guid, VARIANT* pVarVal) PURE; \ - STDMETHOD_(HRESULT,SetHelpStringContext)(THIS_ ULONG dwHelpStringContext) PURE; \ - STDMETHOD_(HRESULT,SetHelpStringDll)(THIS_ LPOLESTR szFileName) PURE; - -HRESULT CALLBACK ICreateTypeLib2_DeleteTypeInfo_Proxy( - ICreateTypeLib2* This, - LPOLESTR szName); -void __RPC_STUB ICreateTypeLib2_DeleteTypeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib2_SetCustData_Proxy( - ICreateTypeLib2* This, - REFGUID guid, - VARIANT* pVarVal); -void __RPC_STUB ICreateTypeLib2_SetCustData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib2_SetHelpStringContext_Proxy( - ICreateTypeLib2* This, - ULONG dwHelpStringContext); -void __RPC_STUB ICreateTypeLib2_SetHelpStringContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICreateTypeLib2_SetHelpStringDll_Proxy( - ICreateTypeLib2* This, - LPOLESTR szFileName); -void __RPC_STUB ICreateTypeLib2_SetHelpStringDll_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICreateTypeLib2_INTERFACE_DEFINED__ */ - -#ifndef __IErrorLog_FWD_DEFINED__ -#define __IErrorLog_FWD_DEFINED__ -typedef struct IErrorLog IErrorLog; -#endif - -typedef IErrorLog *LPERRORLOG; - -/***************************************************************************** - * IErrorLog interface - */ -#ifndef __IErrorLog_INTERFACE_DEFINED__ -#define __IErrorLog_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IErrorLog, 0x3127ca40, 0x446e, 0x11ce, 0x81,0x35, 0x00,0xaa,0x00,0x4b,0xb8,0x51); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IErrorLog : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE AddError( - LPCOLESTR pszPropName, - EXCEPINFO* pExcepInfo) = 0; - -}; -#else -typedef struct IErrorLogVtbl IErrorLogVtbl; -struct IErrorLog { - const IErrorLogVtbl* lpVtbl; -}; -struct IErrorLogVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IErrorLog* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IErrorLog* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IErrorLog* This); - - /*** IErrorLog methods ***/ - HRESULT (STDMETHODCALLTYPE *AddError)( - IErrorLog* This, - LPCOLESTR pszPropName, - EXCEPINFO* pExcepInfo); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IErrorLog_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IErrorLog_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IErrorLog_Release(p) (p)->lpVtbl->Release(p) -/*** IErrorLog methods ***/ -#define IErrorLog_AddError(p,a,b) (p)->lpVtbl->AddError(p,a,b) -#endif - -#endif - -#define IErrorLog_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IErrorLog methods ***/ \ - STDMETHOD_(HRESULT,AddError)(THIS_ LPCOLESTR pszPropName, EXCEPINFO* pExcepInfo) PURE; - -HRESULT CALLBACK IErrorLog_AddError_Proxy( - IErrorLog* This, - LPCOLESTR pszPropName, - EXCEPINFO* pExcepInfo); -void __RPC_STUB IErrorLog_AddError_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IErrorLog_INTERFACE_DEFINED__ */ - -#ifndef __IPropertyBag_FWD_DEFINED__ -#define __IPropertyBag_FWD_DEFINED__ -typedef struct IPropertyBag IPropertyBag; -#endif - -typedef IPropertyBag *LPPROPERTYBAG; - -/***************************************************************************** - * IPropertyBag interface - */ -#ifndef __IPropertyBag_INTERFACE_DEFINED__ -#define __IPropertyBag_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPropertyBag, 0x55272a00, 0x42cb, 0x11ce, 0x81,0x35, 0x00,0xaa,0x00,0x4b,0xb8,0x51); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPropertyBag : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Read( - LPCOLESTR pszPropName, - VARIANT* pVar, - IErrorLog* pErrorLog) = 0; - - virtual HRESULT STDMETHODCALLTYPE Write( - LPCOLESTR pszPropName, - VARIANT* pVar) = 0; - -}; -#else -typedef struct IPropertyBagVtbl IPropertyBagVtbl; -struct IPropertyBag { - const IPropertyBagVtbl* lpVtbl; -}; -struct IPropertyBagVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPropertyBag* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPropertyBag* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPropertyBag* This); - - /*** IPropertyBag methods ***/ - HRESULT (STDMETHODCALLTYPE *Read)( - IPropertyBag* This, - LPCOLESTR pszPropName, - VARIANT* pVar, - IErrorLog* pErrorLog); - - HRESULT (STDMETHODCALLTYPE *Write)( - IPropertyBag* This, - LPCOLESTR pszPropName, - VARIANT* pVar); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPropertyBag_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPropertyBag_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPropertyBag_Release(p) (p)->lpVtbl->Release(p) -/*** IPropertyBag methods ***/ -#define IPropertyBag_Read(p,a,b,c) (p)->lpVtbl->Read(p,a,b,c) -#define IPropertyBag_Write(p,a,b) (p)->lpVtbl->Write(p,a,b) -#endif - -#endif - -#define IPropertyBag_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPropertyBag methods ***/ \ - STDMETHOD_(HRESULT,Read)(THIS_ LPCOLESTR pszPropName, VARIANT* pVar, IErrorLog* pErrorLog) PURE; \ - STDMETHOD_(HRESULT,Write)(THIS_ LPCOLESTR pszPropName, VARIANT* pVar) PURE; - -HRESULT CALLBACK IPropertyBag_RemoteRead_Proxy( - IPropertyBag* This, - LPCOLESTR pszPropName, - VARIANT* pVar, - IErrorLog* pErrorLog, - DWORD varType, - IUnknown* pUnkObj); -void __RPC_STUB IPropertyBag_RemoteRead_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyBag_Read_Proxy( - IPropertyBag* This, - LPCOLESTR pszPropName, - VARIANT* pVar, - IErrorLog* pErrorLog); -HRESULT __RPC_STUB IPropertyBag_Read_Stub( - IPropertyBag* This, - LPCOLESTR pszPropName, - VARIANT* pVar, - IErrorLog* pErrorLog, - DWORD varType, - IUnknown* pUnkObj); -HRESULT CALLBACK IPropertyBag_Write_Proxy( - IPropertyBag* This, - LPCOLESTR pszPropName, - VARIANT* pVar); -void __RPC_STUB IPropertyBag_Write_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPropertyBag_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_OAIDL_H */ diff --git a/include/objidl.h b/include/objidl.h deleted file mode 100644 index bdfab1d9c71..00000000000 --- a/include/objidl.h +++ /dev/null @@ -1,8199 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from objidl.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_OBJIDL_H -#define __WIDL_OBJIDL_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#ifndef __IStream_FWD_DEFINED__ -#define __IStream_FWD_DEFINED__ -typedef struct IStream IStream; -#endif - -#ifndef __IEnumString_FWD_DEFINED__ -#define __IEnumString_FWD_DEFINED__ -typedef struct IEnumString IEnumString; -#endif - -#ifndef __IRunningObjectTable_FWD_DEFINED__ -#define __IRunningObjectTable_FWD_DEFINED__ -typedef struct IRunningObjectTable IRunningObjectTable; -#endif - -#ifndef __IMoniker_FWD_DEFINED__ -#define __IMoniker_FWD_DEFINED__ -typedef struct IMoniker IMoniker; -#endif - -#ifndef __IAdviseSink_FWD_DEFINED__ -#define __IAdviseSink_FWD_DEFINED__ -typedef struct IAdviseSink IAdviseSink; -#endif - -#ifndef __IAsyncManager_FWD_DEFINED__ -#define __IAsyncManager_FWD_DEFINED__ -typedef struct IAsyncManager IAsyncManager; -#endif - -#ifndef __IMarshal_FWD_DEFINED__ -#define __IMarshal_FWD_DEFINED__ -typedef struct IMarshal IMarshal; -#endif - -typedef IMarshal *LPMARSHAL; - -/***************************************************************************** - * IMarshal interface - */ -#ifndef __IMarshal_INTERFACE_DEFINED__ -#define __IMarshal_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMarshal, 0x00000003, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMarshal : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetUnmarshalClass( - REFIID riid, - void* pv, - DWORD dwDestContext, - void* pvDestContext, - DWORD mshlflags, - CLSID* pCid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMarshalSizeMax( - REFIID riid, - void* pv, - DWORD dwDestContext, - void* pvDestContext, - DWORD mshlflags, - DWORD* pSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE MarshalInterface( - IStream* pStm, - REFIID riid, - void* pv, - DWORD dwDestContext, - void* pvDestContext, - DWORD mshlflags) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnmarshalInterface( - IStream* pStm, - REFIID riid, - void** ppv) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseMarshalData( - IStream* pStm) = 0; - - virtual HRESULT STDMETHODCALLTYPE DisconnectObject( - DWORD dwReserved) = 0; - -}; -#else -typedef struct IMarshalVtbl IMarshalVtbl; -struct IMarshal { - const IMarshalVtbl* lpVtbl; -}; -struct IMarshalVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMarshal* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMarshal* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMarshal* This); - - /*** IMarshal methods ***/ - HRESULT (STDMETHODCALLTYPE *GetUnmarshalClass)( - IMarshal* This, - REFIID riid, - void* pv, - DWORD dwDestContext, - void* pvDestContext, - DWORD mshlflags, - CLSID* pCid); - - HRESULT (STDMETHODCALLTYPE *GetMarshalSizeMax)( - IMarshal* This, - REFIID riid, - void* pv, - DWORD dwDestContext, - void* pvDestContext, - DWORD mshlflags, - DWORD* pSize); - - HRESULT (STDMETHODCALLTYPE *MarshalInterface)( - IMarshal* This, - IStream* pStm, - REFIID riid, - void* pv, - DWORD dwDestContext, - void* pvDestContext, - DWORD mshlflags); - - HRESULT (STDMETHODCALLTYPE *UnmarshalInterface)( - IMarshal* This, - IStream* pStm, - REFIID riid, - void** ppv); - - HRESULT (STDMETHODCALLTYPE *ReleaseMarshalData)( - IMarshal* This, - IStream* pStm); - - HRESULT (STDMETHODCALLTYPE *DisconnectObject)( - IMarshal* This, - DWORD dwReserved); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IMarshal_METHODS \ - /*** 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; - -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); - -#endif /* __IMarshal_INTERFACE_DEFINED__ */ - -#ifndef __IStdMarshalInfo_FWD_DEFINED__ -#define __IStdMarshalInfo_FWD_DEFINED__ -typedef struct IStdMarshalInfo IStdMarshalInfo; -#endif - -typedef IStdMarshalInfo *LPSTDMARSHALINFO; - -/***************************************************************************** - * IStdMarshalInfo interface - */ -#ifndef __IStdMarshalInfo_INTERFACE_DEFINED__ -#define __IStdMarshalInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IStdMarshalInfo, 0x00000018, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IStdMarshalInfo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetClassForHandler( - DWORD dwDestContext, - void* pvDestContext, - CLSID* pClsid) = 0; - -}; -#else -typedef struct IStdMarshalInfoVtbl IStdMarshalInfoVtbl; -struct IStdMarshalInfo { - const IStdMarshalInfoVtbl* lpVtbl; -}; -struct IStdMarshalInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IStdMarshalInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IStdMarshalInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IStdMarshalInfo* This); - - /*** IStdMarshalInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassForHandler)( - IStdMarshalInfo* This, - DWORD dwDestContext, - void* pvDestContext, - CLSID* pClsid); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IStdMarshalInfo_METHODS \ - /*** 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; - -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); - -#endif /* __IStdMarshalInfo_INTERFACE_DEFINED__ */ - -#ifndef __IExternalConnection_FWD_DEFINED__ -#define __IExternalConnection_FWD_DEFINED__ -typedef struct IExternalConnection IExternalConnection; -#endif - -typedef IExternalConnection *LPEXTERNALCONNECTION; - -typedef enum tagEXTCONN { - EXTCONN_STRONG = 0x1, - EXTCONN_WEAK = 0x2, - EXTCONN_CALLABLE = 0x4 -} EXTCONN; - -/***************************************************************************** - * IExternalConnection interface - */ -#ifndef __IExternalConnection_INTERFACE_DEFINED__ -#define __IExternalConnection_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IExternalConnection, 0x00000019, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IExternalConnection : public IUnknown -{ - virtual DWORD STDMETHODCALLTYPE AddConnection( - DWORD extconn, - DWORD reserved) = 0; - - virtual DWORD STDMETHODCALLTYPE ReleaseConnection( - DWORD extconn, - DWORD reserved, - BOOL fLastReleaseCloses) = 0; - -}; -#else -typedef struct IExternalConnectionVtbl IExternalConnectionVtbl; -struct IExternalConnection { - const IExternalConnectionVtbl* lpVtbl; -}; -struct IExternalConnectionVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IExternalConnection* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IExternalConnection* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IExternalConnection* This); - - /*** IExternalConnection methods ***/ - DWORD (STDMETHODCALLTYPE *AddConnection)( - IExternalConnection* This, - DWORD extconn, - DWORD reserved); - - DWORD (STDMETHODCALLTYPE *ReleaseConnection)( - IExternalConnection* This, - DWORD extconn, - DWORD reserved, - BOOL fLastReleaseCloses); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IExternalConnection_METHODS \ - /*** 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; - -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); - -#endif /* __IExternalConnection_INTERFACE_DEFINED__ */ - -#ifndef __IMultiQI_FWD_DEFINED__ -#define __IMultiQI_FWD_DEFINED__ -typedef struct IMultiQI IMultiQI; -#endif - -typedef IMultiQI *LPMULTIQI; - -typedef struct tagMULTI_QI { - const IID *pIID; - IUnknown *pItf; - HRESULT hr; -} MULTI_QI; - -/***************************************************************************** - * IMultiQI interface - */ -#ifndef __IMultiQI_INTERFACE_DEFINED__ -#define __IMultiQI_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMultiQI, 0x00000020, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMultiQI : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryMultipleInterfaces( - ULONG cMQIs, - MULTI_QI* pMQIs) = 0; - -}; -#else -typedef struct IMultiQIVtbl IMultiQIVtbl; -struct IMultiQI { - const IMultiQIVtbl* lpVtbl; -}; -struct IMultiQIVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMultiQI* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMultiQI* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMultiQI* This); - - /*** IMultiQI methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryMultipleInterfaces)( - IMultiQI* This, - ULONG cMQIs, - MULTI_QI* pMQIs); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IMultiQI_METHODS \ - /*** 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; - -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); - -#endif /* __IMultiQI_INTERFACE_DEFINED__ */ - -#ifndef __IMalloc_FWD_DEFINED__ -#define __IMalloc_FWD_DEFINED__ -typedef struct IMalloc IMalloc; -#endif - -typedef IMalloc *LPMALLOC; - -/***************************************************************************** - * IMalloc interface - */ -#ifndef __IMalloc_INTERFACE_DEFINED__ -#define __IMalloc_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMalloc, 0x00000002, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMalloc : public IUnknown -{ - virtual LPVOID STDMETHODCALLTYPE Alloc( - ULONG cb) = 0; - - virtual LPVOID STDMETHODCALLTYPE Realloc( - LPVOID pv, - ULONG cb) = 0; - - virtual void STDMETHODCALLTYPE Free( - LPVOID pv) = 0; - - virtual ULONG STDMETHODCALLTYPE GetSize( - LPVOID pv) = 0; - - virtual int STDMETHODCALLTYPE DidAlloc( - LPVOID pv) = 0; - - virtual void STDMETHODCALLTYPE HeapMinimize( - ) = 0; - -}; -#else -typedef struct IMallocVtbl IMallocVtbl; -struct IMalloc { - const IMallocVtbl* lpVtbl; -}; -struct IMallocVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMalloc* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMalloc* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMalloc* This); - - /*** IMalloc methods ***/ - LPVOID (STDMETHODCALLTYPE *Alloc)( - IMalloc* This, - ULONG cb); - - LPVOID (STDMETHODCALLTYPE *Realloc)( - IMalloc* This, - LPVOID pv, - ULONG cb); - - void (STDMETHODCALLTYPE *Free)( - IMalloc* This, - LPVOID pv); - - ULONG (STDMETHODCALLTYPE *GetSize)( - IMalloc* This, - LPVOID pv); - - int (STDMETHODCALLTYPE *DidAlloc)( - IMalloc* This, - LPVOID pv); - - void (STDMETHODCALLTYPE *HeapMinimize)( - IMalloc* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IMalloc_METHODS \ - /*** 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; - -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); - -#endif /* __IMalloc_INTERFACE_DEFINED__ */ - -#ifndef __IMallocSpy_FWD_DEFINED__ -#define __IMallocSpy_FWD_DEFINED__ -typedef struct IMallocSpy IMallocSpy; -#endif - -typedef IMallocSpy *LPMALLOCSPY; - -/***************************************************************************** - * IMallocSpy interface - */ -#ifndef __IMallocSpy_INTERFACE_DEFINED__ -#define __IMallocSpy_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMallocSpy, 0x0000001d, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMallocSpy : public IUnknown -{ - virtual ULONG STDMETHODCALLTYPE PreAlloc( - ULONG cbRequest) = 0; - - virtual LPVOID STDMETHODCALLTYPE PostAlloc( - LPVOID pActual) = 0; - - virtual LPVOID STDMETHODCALLTYPE PreFree( - LPVOID pRequest, - BOOL fSpyed) = 0; - - virtual void STDMETHODCALLTYPE PostFree( - BOOL fSpyed) = 0; - - virtual ULONG STDMETHODCALLTYPE PreRealloc( - LPVOID pRequest, - ULONG cbRequest, - LPVOID* ppNewRequest, - BOOL fSpyed) = 0; - - virtual LPVOID STDMETHODCALLTYPE PostRealloc( - LPVOID pActual, - BOOL fSpyed) = 0; - - virtual LPVOID STDMETHODCALLTYPE PreGetSize( - LPVOID pRequest, - BOOL fSpyed) = 0; - - virtual ULONG STDMETHODCALLTYPE PostGetSize( - ULONG cbActual, - BOOL fSpyed) = 0; - - virtual LPVOID STDMETHODCALLTYPE PreDidAlloc( - LPVOID pRequest, - BOOL fSpyed) = 0; - - virtual int STDMETHODCALLTYPE PostDidAlloc( - LPVOID pRequest, - BOOL fSpyed, - int fActual) = 0; - - virtual void STDMETHODCALLTYPE PreHeapMinimize( - ) = 0; - - virtual void STDMETHODCALLTYPE PostHeapMinimize( - ) = 0; - -}; -#else -typedef struct IMallocSpyVtbl IMallocSpyVtbl; -struct IMallocSpy { - const IMallocSpyVtbl* lpVtbl; -}; -struct IMallocSpyVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMallocSpy* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMallocSpy* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMallocSpy* This); - - /*** IMallocSpy methods ***/ - ULONG (STDMETHODCALLTYPE *PreAlloc)( - IMallocSpy* This, - ULONG cbRequest); - - LPVOID (STDMETHODCALLTYPE *PostAlloc)( - IMallocSpy* This, - LPVOID pActual); - - LPVOID (STDMETHODCALLTYPE *PreFree)( - IMallocSpy* This, - LPVOID pRequest, - BOOL fSpyed); - - void (STDMETHODCALLTYPE *PostFree)( - IMallocSpy* This, - BOOL fSpyed); - - ULONG (STDMETHODCALLTYPE *PreRealloc)( - IMallocSpy* This, - LPVOID pRequest, - ULONG cbRequest, - LPVOID* ppNewRequest, - BOOL fSpyed); - - LPVOID (STDMETHODCALLTYPE *PostRealloc)( - IMallocSpy* This, - LPVOID pActual, - BOOL fSpyed); - - LPVOID (STDMETHODCALLTYPE *PreGetSize)( - IMallocSpy* This, - LPVOID pRequest, - BOOL fSpyed); - - ULONG (STDMETHODCALLTYPE *PostGetSize)( - IMallocSpy* This, - ULONG cbActual, - BOOL fSpyed); - - LPVOID (STDMETHODCALLTYPE *PreDidAlloc)( - IMallocSpy* This, - LPVOID pRequest, - BOOL fSpyed); - - int (STDMETHODCALLTYPE *PostDidAlloc)( - IMallocSpy* This, - LPVOID pRequest, - BOOL fSpyed, - int fActual); - - void (STDMETHODCALLTYPE *PreHeapMinimize)( - IMallocSpy* This); - - void (STDMETHODCALLTYPE *PostHeapMinimize)( - IMallocSpy* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IMallocSpy_METHODS \ - /*** 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; - -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); - -#endif /* __IMallocSpy_INTERFACE_DEFINED__ */ - -#ifndef __IEnumUnknown_FWD_DEFINED__ -#define __IEnumUnknown_FWD_DEFINED__ -typedef struct IEnumUnknown IEnumUnknown; -#endif - -typedef IEnumUnknown *LPENUMUNKNOWN; - -/***************************************************************************** - * IEnumUnknown interface - */ -#ifndef __IEnumUnknown_INTERFACE_DEFINED__ -#define __IEnumUnknown_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumUnknown, 0x00000100, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumUnknown : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - IUnknown** rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumUnknown** ppenum) = 0; - -}; -#else -typedef struct IEnumUnknownVtbl IEnumUnknownVtbl; -struct IEnumUnknown { - const IEnumUnknownVtbl* lpVtbl; -}; -struct IEnumUnknownVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumUnknown* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumUnknown* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumUnknown* This); - - /*** IEnumUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumUnknown* This, - ULONG celt, - IUnknown** rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumUnknown* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumUnknown* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumUnknown* This, - IEnumUnknown** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IEnumUnknown_METHODS \ - /*** 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; - -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); - -#endif /* __IEnumUnknown_INTERFACE_DEFINED__ */ - -#ifndef __ISurrogate_FWD_DEFINED__ -#define __ISurrogate_FWD_DEFINED__ -typedef struct ISurrogate ISurrogate; -#endif - -typedef ISurrogate *LPSURROGATE; - -/***************************************************************************** - * ISurrogate interface - */ -#ifndef __ISurrogate_INTERFACE_DEFINED__ -#define __ISurrogate_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ISurrogate, 0x00000022, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ISurrogate : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE LoadDllServer( - REFCLSID Clsid) = 0; - - virtual HRESULT STDMETHODCALLTYPE FreeSurrogate( - ) = 0; - -}; -#else -typedef struct ISurrogateVtbl ISurrogateVtbl; -struct ISurrogate { - const ISurrogateVtbl* lpVtbl; -}; -struct ISurrogateVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ISurrogate* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ISurrogate* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ISurrogate* This); - - /*** ISurrogate methods ***/ - HRESULT (STDMETHODCALLTYPE *LoadDllServer)( - ISurrogate* This, - REFCLSID Clsid); - - HRESULT (STDMETHODCALLTYPE *FreeSurrogate)( - ISurrogate* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define ISurrogate_METHODS \ - /*** 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; - -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); - -#endif /* __ISurrogate_INTERFACE_DEFINED__ */ - -#ifndef __IGlobalInterfaceTable_FWD_DEFINED__ -#define __IGlobalInterfaceTable_FWD_DEFINED__ -typedef struct IGlobalInterfaceTable IGlobalInterfaceTable; -#endif - -typedef IGlobalInterfaceTable *LPGLOBALINTERFACETABLE; - -/***************************************************************************** - * IGlobalInterfaceTable interface - */ -#ifndef __IGlobalInterfaceTable_INTERFACE_DEFINED__ -#define __IGlobalInterfaceTable_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IGlobalInterfaceTable, 0x00000146, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IGlobalInterfaceTable : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE RegisterInterfaceInGlobal( - IUnknown* pUnk, - REFIID riid, - DWORD* pdwCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE RevokeInterfaceFromGlobal( - DWORD dwCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetInterfaceFromGlobal( - DWORD dwCookie, - REFIID riid, - void** ppv) = 0; - -}; -#else -typedef struct IGlobalInterfaceTableVtbl IGlobalInterfaceTableVtbl; -struct IGlobalInterfaceTable { - const IGlobalInterfaceTableVtbl* lpVtbl; -}; -struct IGlobalInterfaceTableVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IGlobalInterfaceTable* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IGlobalInterfaceTable* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IGlobalInterfaceTable* This); - - /*** IGlobalInterfaceTable methods ***/ - HRESULT (STDMETHODCALLTYPE *RegisterInterfaceInGlobal)( - IGlobalInterfaceTable* This, - IUnknown* pUnk, - REFIID riid, - DWORD* pdwCookie); - - HRESULT (STDMETHODCALLTYPE *RevokeInterfaceFromGlobal)( - IGlobalInterfaceTable* This, - DWORD dwCookie); - - HRESULT (STDMETHODCALLTYPE *GetInterfaceFromGlobal)( - IGlobalInterfaceTable* This, - DWORD dwCookie, - REFIID riid, - void** ppv); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IGlobalInterfaceTable_METHODS \ - /*** 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; - -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); - -#endif /* __IGlobalInterfaceTable_INTERFACE_DEFINED__ */ - -#ifndef __IBindCtx_FWD_DEFINED__ -#define __IBindCtx_FWD_DEFINED__ -typedef struct IBindCtx IBindCtx; -#endif - -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 - */ -#ifndef __IBindCtx_INTERFACE_DEFINED__ -#define __IBindCtx_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IBindCtx, 0x0000000e, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IBindCtx : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE RegisterObjectBound( - IUnknown* punk) = 0; - - virtual HRESULT STDMETHODCALLTYPE RevokeObjectBound( - IUnknown* punk) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseBoundObjects( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBindOptions( - BIND_OPTS* pbindopts) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBindOptions( - BIND_OPTS* pbindopts) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRunningObjectTable( - IRunningObjectTable** pprot) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterObjectParam( - LPOLESTR pszKey, - IUnknown* punk) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetObjectParam( - LPOLESTR pszKey, - IUnknown** ppunk) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumObjectParam( - IEnumString** ppenum) = 0; - - virtual HRESULT STDMETHODCALLTYPE RevokeObjectParam( - LPOLESTR pszKey) = 0; - -}; -#else -typedef struct IBindCtxVtbl IBindCtxVtbl; -struct IBindCtx { - const IBindCtxVtbl* lpVtbl; -}; -struct IBindCtxVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IBindCtx* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IBindCtx* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IBindCtx* This); - - /*** IBindCtx methods ***/ - HRESULT (STDMETHODCALLTYPE *RegisterObjectBound)( - IBindCtx* This, - IUnknown* punk); - - HRESULT (STDMETHODCALLTYPE *RevokeObjectBound)( - IBindCtx* This, - IUnknown* punk); - - HRESULT (STDMETHODCALLTYPE *ReleaseBoundObjects)( - IBindCtx* This); - - HRESULT (STDMETHODCALLTYPE *SetBindOptions)( - IBindCtx* This, - BIND_OPTS* pbindopts); - - HRESULT (STDMETHODCALLTYPE *GetBindOptions)( - IBindCtx* This, - BIND_OPTS* pbindopts); - - HRESULT (STDMETHODCALLTYPE *GetRunningObjectTable)( - IBindCtx* This, - IRunningObjectTable** pprot); - - HRESULT (STDMETHODCALLTYPE *RegisterObjectParam)( - IBindCtx* This, - LPOLESTR pszKey, - IUnknown* punk); - - HRESULT (STDMETHODCALLTYPE *GetObjectParam)( - IBindCtx* This, - LPOLESTR pszKey, - IUnknown** ppunk); - - HRESULT (STDMETHODCALLTYPE *EnumObjectParam)( - IBindCtx* This, - IEnumString** ppenum); - - HRESULT (STDMETHODCALLTYPE *RevokeObjectParam)( - IBindCtx* This, - LPOLESTR pszKey); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IBindCtx_METHODS \ - /*** 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; - -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); - -#endif /* __IBindCtx_INTERFACE_DEFINED__ */ - -#ifndef __IEnumMoniker_FWD_DEFINED__ -#define __IEnumMoniker_FWD_DEFINED__ -typedef struct IEnumMoniker IEnumMoniker; -#endif - -typedef IEnumMoniker *LPENUMMONIKER; - -/***************************************************************************** - * IEnumMoniker interface - */ -#ifndef __IEnumMoniker_INTERFACE_DEFINED__ -#define __IEnumMoniker_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumMoniker, 0x00000102, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumMoniker : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - IMoniker** rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumMoniker** ppenum) = 0; - -}; -#else -typedef struct IEnumMonikerVtbl IEnumMonikerVtbl; -struct IEnumMoniker { - const IEnumMonikerVtbl* lpVtbl; -}; -struct IEnumMonikerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumMoniker* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumMoniker* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumMoniker* This); - - /*** IEnumMoniker methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumMoniker* This, - ULONG celt, - IMoniker** rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumMoniker* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumMoniker* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumMoniker* This, - IEnumMoniker** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IEnumMoniker_METHODS \ - /*** 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; - -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); - -#endif /* __IEnumMoniker_INTERFACE_DEFINED__ */ - -#ifndef __IRunnableObject_FWD_DEFINED__ -#define __IRunnableObject_FWD_DEFINED__ -typedef struct IRunnableObject IRunnableObject; -#endif - -typedef IRunnableObject *LPRUNNABLEOBJECT; - -/***************************************************************************** - * IRunnableObject interface - */ -#ifndef __IRunnableObject_INTERFACE_DEFINED__ -#define __IRunnableObject_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRunnableObject, 0x00000126, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRunnableObject : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetRunningClass( - LPCLSID lpClsid) = 0; - - virtual HRESULT STDMETHODCALLTYPE Run( - LPBINDCTX pbc) = 0; - - virtual BOOL STDMETHODCALLTYPE IsRunning( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockRunning( - BOOL fLock, - BOOL fLastUnlockCloses) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetContainedObject( - BOOL fContained) = 0; - -}; -#else -typedef struct IRunnableObjectVtbl IRunnableObjectVtbl; -struct IRunnableObject { - const IRunnableObjectVtbl* lpVtbl; -}; -struct IRunnableObjectVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRunnableObject* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRunnableObject* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRunnableObject* This); - - /*** IRunnableObject methods ***/ - HRESULT (STDMETHODCALLTYPE *GetRunningClass)( - IRunnableObject* This, - LPCLSID lpClsid); - - HRESULT (STDMETHODCALLTYPE *Run)( - IRunnableObject* This, - LPBINDCTX pbc); - - BOOL (STDMETHODCALLTYPE *IsRunning)( - IRunnableObject* This); - - HRESULT (STDMETHODCALLTYPE *LockRunning)( - IRunnableObject* This, - BOOL fLock, - BOOL fLastUnlockCloses); - - HRESULT (STDMETHODCALLTYPE *SetContainedObject)( - IRunnableObject* This, - BOOL fContained); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IRunnableObject_METHODS \ - /*** 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; - -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); - -#endif /* __IRunnableObject_INTERFACE_DEFINED__ */ - -#ifdef __WINESRC__ -#undef GetObject -#endif -typedef IRunningObjectTable *LPRUNNINGOBJECTTABLE; - -/***************************************************************************** - * IRunningObjectTable interface - */ -#ifndef __IRunningObjectTable_INTERFACE_DEFINED__ -#define __IRunningObjectTable_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRunningObjectTable, 0x00000010, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRunningObjectTable : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Register( - DWORD grfFlags, - IUnknown* punkObject, - IMoniker* pmkObjectName, - DWORD* pdwRegister) = 0; - - virtual HRESULT STDMETHODCALLTYPE Revoke( - DWORD dwRegister) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsRunning( - IMoniker* pmkObjectName) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetObject( - IMoniker* pmkObjectName, - IUnknown** ppunkObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE NoteChangeTime( - DWORD dwRegister, - FILETIME* pfiletime) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTimeOfLastChange( - IMoniker* pmkObjectName, - FILETIME* pfiletime) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumRunning( - IEnumMoniker** ppenumMoniker) = 0; - -}; -#else -typedef struct IRunningObjectTableVtbl IRunningObjectTableVtbl; -struct IRunningObjectTable { - const IRunningObjectTableVtbl* lpVtbl; -}; -struct IRunningObjectTableVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRunningObjectTable* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRunningObjectTable* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRunningObjectTable* This); - - /*** IRunningObjectTable methods ***/ - HRESULT (STDMETHODCALLTYPE *Register)( - IRunningObjectTable* This, - DWORD grfFlags, - IUnknown* punkObject, - IMoniker* pmkObjectName, - DWORD* pdwRegister); - - HRESULT (STDMETHODCALLTYPE *Revoke)( - IRunningObjectTable* This, - DWORD dwRegister); - - HRESULT (STDMETHODCALLTYPE *IsRunning)( - IRunningObjectTable* This, - IMoniker* pmkObjectName); - - HRESULT (STDMETHODCALLTYPE *GetObject)( - IRunningObjectTable* This, - IMoniker* pmkObjectName, - IUnknown** ppunkObject); - - HRESULT (STDMETHODCALLTYPE *NoteChangeTime)( - IRunningObjectTable* This, - DWORD dwRegister, - FILETIME* pfiletime); - - HRESULT (STDMETHODCALLTYPE *GetTimeOfLastChange)( - IRunningObjectTable* This, - IMoniker* pmkObjectName, - FILETIME* pfiletime); - - HRESULT (STDMETHODCALLTYPE *EnumRunning)( - IRunningObjectTable* This, - IEnumMoniker** ppenumMoniker); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IRunningObjectTable_METHODS \ - /*** 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; - -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); - -#endif /* __IRunningObjectTable_INTERFACE_DEFINED__ */ - -#ifndef __IPersist_FWD_DEFINED__ -#define __IPersist_FWD_DEFINED__ -typedef struct IPersist IPersist; -#endif - -typedef IPersist *LPPERSIST; - -/***************************************************************************** - * IPersist interface - */ -#ifndef __IPersist_INTERFACE_DEFINED__ -#define __IPersist_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersist, 0x0000010c, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersist : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetClassID( - CLSID* pClassID) = 0; - -}; -#else -typedef struct IPersistVtbl IPersistVtbl; -struct IPersist { - const IPersistVtbl* lpVtbl; -}; -struct IPersistVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersist* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersist* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersist* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersist* This, - CLSID* pClassID); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IPersist_METHODS \ - /*** 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; - -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); - -#endif /* __IPersist_INTERFACE_DEFINED__ */ - -#ifndef __IPersistStream_FWD_DEFINED__ -#define __IPersistStream_FWD_DEFINED__ -typedef struct IPersistStream IPersistStream; -#endif - -typedef IPersistStream *LPPERSISTSTREAM; - -/***************************************************************************** - * IPersistStream interface - */ -#ifndef __IPersistStream_INTERFACE_DEFINED__ -#define __IPersistStream_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistStream, 0x00000109, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistStream : public IPersist -{ - virtual HRESULT STDMETHODCALLTYPE IsDirty( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Load( - IStream* pStm) = 0; - - virtual HRESULT STDMETHODCALLTYPE Save( - IStream* pStm, - BOOL fClearDirty) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSizeMax( - ULARGE_INTEGER* pcbSize) = 0; - -}; -#else -typedef struct IPersistStreamVtbl IPersistStreamVtbl; -struct IPersistStream { - const IPersistStreamVtbl* lpVtbl; -}; -struct IPersistStreamVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistStream* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistStream* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistStream* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistStream* This, - CLSID* pClassID); - - /*** IPersistStream methods ***/ - HRESULT (STDMETHODCALLTYPE *IsDirty)( - IPersistStream* This); - - HRESULT (STDMETHODCALLTYPE *Load)( - IPersistStream* This, - IStream* pStm); - - HRESULT (STDMETHODCALLTYPE *Save)( - IPersistStream* This, - IStream* pStm, - BOOL fClearDirty); - - HRESULT (STDMETHODCALLTYPE *GetSizeMax)( - IPersistStream* This, - ULARGE_INTEGER* pcbSize); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IPersistStream_METHODS \ - /*** 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; - -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); - -#endif /* __IPersistStream_INTERFACE_DEFINED__ */ - -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 - */ -#ifndef __IMoniker_INTERFACE_DEFINED__ -#define __IMoniker_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMoniker, 0x0000000f, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMoniker : public IPersistStream -{ - virtual HRESULT STDMETHODCALLTYPE BindToObject( - IBindCtx* pbc, - IMoniker* pmkToLeft, - REFIID riidResult, - void** ppvResult) = 0; - - virtual HRESULT STDMETHODCALLTYPE BindToStorage( - IBindCtx* pbc, - IMoniker* pmkToLeft, - REFIID riid, - void** ppvObj) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reduce( - IBindCtx* pbc, - DWORD dwReduceHowFar, - IMoniker** ppmkToLeft, - IMoniker** ppmkReduced) = 0; - - virtual HRESULT STDMETHODCALLTYPE ComposeWith( - IMoniker* pmkRight, - BOOL fOnlyIfNotGeneric, - IMoniker** ppmkComposite) = 0; - - virtual HRESULT STDMETHODCALLTYPE Enum( - BOOL fForward, - IEnumMoniker** ppenumMoniker) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsEqual( - IMoniker* pmkOtherMoniker) = 0; - - virtual HRESULT STDMETHODCALLTYPE Hash( - DWORD* pdwHash) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsRunning( - IBindCtx* pbc, - IMoniker* pmkToLeft, - IMoniker* pmkNewlyRunning) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTimeOfLastChange( - IBindCtx* pbc, - IMoniker* pmkToLeft, - FILETIME* pFileTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE Inverse( - IMoniker** ppmk) = 0; - - virtual HRESULT STDMETHODCALLTYPE CommonPrefixWith( - IMoniker* pmkOther, - IMoniker** ppmkPrefix) = 0; - - virtual HRESULT STDMETHODCALLTYPE RelativePathTo( - IMoniker* pmkOther, - IMoniker** ppmkRelPath) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDisplayName( - IBindCtx* pbc, - IMoniker* pmkToLeft, - LPOLESTR* ppszDisplayName) = 0; - - virtual HRESULT STDMETHODCALLTYPE ParseDisplayName( - IBindCtx* pbc, - IMoniker* pmkToLeft, - LPOLESTR pszDisplayName, - ULONG* pchEaten, - IMoniker** ppmkOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsSystemMoniker( - DWORD* pdwMksys) = 0; - -}; -#else -typedef struct IMonikerVtbl IMonikerVtbl; -struct IMoniker { - const IMonikerVtbl* lpVtbl; -}; -struct IMonikerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMoniker* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMoniker* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMoniker* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IMoniker* This, - CLSID* pClassID); - - /*** IPersistStream methods ***/ - HRESULT (STDMETHODCALLTYPE *IsDirty)( - IMoniker* This); - - HRESULT (STDMETHODCALLTYPE *Load)( - IMoniker* This, - IStream* pStm); - - HRESULT (STDMETHODCALLTYPE *Save)( - IMoniker* This, - IStream* pStm, - BOOL fClearDirty); - - HRESULT (STDMETHODCALLTYPE *GetSizeMax)( - IMoniker* This, - ULARGE_INTEGER* pcbSize); - - /*** IMoniker methods ***/ - HRESULT (STDMETHODCALLTYPE *BindToObject)( - IMoniker* This, - IBindCtx* pbc, - IMoniker* pmkToLeft, - REFIID riidResult, - void** ppvResult); - - HRESULT (STDMETHODCALLTYPE *BindToStorage)( - IMoniker* This, - IBindCtx* pbc, - IMoniker* pmkToLeft, - REFIID riid, - void** ppvObj); - - HRESULT (STDMETHODCALLTYPE *Reduce)( - IMoniker* This, - IBindCtx* pbc, - DWORD dwReduceHowFar, - IMoniker** ppmkToLeft, - IMoniker** ppmkReduced); - - HRESULT (STDMETHODCALLTYPE *ComposeWith)( - IMoniker* This, - IMoniker* pmkRight, - BOOL fOnlyIfNotGeneric, - IMoniker** ppmkComposite); - - HRESULT (STDMETHODCALLTYPE *Enum)( - IMoniker* This, - BOOL fForward, - IEnumMoniker** ppenumMoniker); - - HRESULT (STDMETHODCALLTYPE *IsEqual)( - IMoniker* This, - IMoniker* pmkOtherMoniker); - - HRESULT (STDMETHODCALLTYPE *Hash)( - IMoniker* This, - DWORD* pdwHash); - - HRESULT (STDMETHODCALLTYPE *IsRunning)( - IMoniker* This, - IBindCtx* pbc, - IMoniker* pmkToLeft, - IMoniker* pmkNewlyRunning); - - HRESULT (STDMETHODCALLTYPE *GetTimeOfLastChange)( - IMoniker* This, - IBindCtx* pbc, - IMoniker* pmkToLeft, - FILETIME* pFileTime); - - HRESULT (STDMETHODCALLTYPE *Inverse)( - IMoniker* This, - IMoniker** ppmk); - - HRESULT (STDMETHODCALLTYPE *CommonPrefixWith)( - IMoniker* This, - IMoniker* pmkOther, - IMoniker** ppmkPrefix); - - HRESULT (STDMETHODCALLTYPE *RelativePathTo)( - IMoniker* This, - IMoniker* pmkOther, - IMoniker** ppmkRelPath); - - HRESULT (STDMETHODCALLTYPE *GetDisplayName)( - IMoniker* This, - IBindCtx* pbc, - IMoniker* pmkToLeft, - LPOLESTR* ppszDisplayName); - - HRESULT (STDMETHODCALLTYPE *ParseDisplayName)( - IMoniker* This, - IBindCtx* pbc, - IMoniker* pmkToLeft, - LPOLESTR pszDisplayName, - ULONG* pchEaten, - IMoniker** ppmkOut); - - HRESULT (STDMETHODCALLTYPE *IsSystemMoniker)( - IMoniker* This, - DWORD* pdwMksys); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IMoniker_METHODS \ - /*** 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; - -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); - -#endif /* __IMoniker_INTERFACE_DEFINED__ */ - -#ifndef __IROTData_FWD_DEFINED__ -#define __IROTData_FWD_DEFINED__ -typedef struct IROTData IROTData; -#endif - -/***************************************************************************** - * IROTData interface - */ -#ifndef __IROTData_INTERFACE_DEFINED__ -#define __IROTData_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IROTData, 0xf29f6bc0, 0x5021, 0x11ce, 0xaa,0x15, 0x00,0x00,0x69,0x01,0x29,0x3f); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IROTData : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetComparisonData( - byte* pbData, - ULONG cbMax, - ULONG* pcbData) = 0; - -}; -#else -typedef struct IROTDataVtbl IROTDataVtbl; -struct IROTData { - const IROTDataVtbl* lpVtbl; -}; -struct IROTDataVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IROTData* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IROTData* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IROTData* This); - - /*** IROTData methods ***/ - HRESULT (STDMETHODCALLTYPE *GetComparisonData)( - IROTData* This, - byte* pbData, - ULONG cbMax, - ULONG* pcbData); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IROTData_METHODS \ - /*** 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; - -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); - -#endif /* __IROTData_INTERFACE_DEFINED__ */ - -typedef IEnumString *LPENUMSTRING; - -/***************************************************************************** - * IEnumString interface - */ -#ifndef __IEnumString_INTERFACE_DEFINED__ -#define __IEnumString_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumString, 0x00000101, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumString : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - LPOLESTR* rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumString** ppenum) = 0; - -}; -#else -typedef struct IEnumStringVtbl IEnumStringVtbl; -struct IEnumString { - const IEnumStringVtbl* lpVtbl; -}; -struct IEnumStringVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumString* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumString* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumString* This); - - /*** IEnumString methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumString* This, - ULONG celt, - LPOLESTR* rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumString* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumString* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumString* This, - IEnumString** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IEnumString_METHODS \ - /*** 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; - -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); - -#endif /* __IEnumString_INTERFACE_DEFINED__ */ - -#ifndef __IClassActivator_FWD_DEFINED__ -#define __IClassActivator_FWD_DEFINED__ -typedef struct IClassActivator IClassActivator; -#endif - -/***************************************************************************** - * IClassActivator interface - */ -#ifndef __IClassActivator_INTERFACE_DEFINED__ -#define __IClassActivator_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IClassActivator, 0x00000140, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IClassActivator : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetClassObject( - REFCLSID rclsid, - DWORD dwClassContext, - LCID locale, - REFIID riid, - void** ppv) = 0; - -}; -#else -typedef struct IClassActivatorVtbl IClassActivatorVtbl; -struct IClassActivator { - const IClassActivatorVtbl* lpVtbl; -}; -struct IClassActivatorVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IClassActivator* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IClassActivator* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IClassActivator* This); - - /*** IClassActivator methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassObject)( - IClassActivator* This, - REFCLSID rclsid, - DWORD dwClassContext, - LCID locale, - REFIID riid, - void** ppv); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IClassActivator_METHODS \ - /*** 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; - -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); - -#endif /* __IClassActivator_INTERFACE_DEFINED__ */ - -#ifndef __ISequentialStream_FWD_DEFINED__ -#define __ISequentialStream_FWD_DEFINED__ -typedef struct ISequentialStream ISequentialStream; -#endif - -/***************************************************************************** - * ISequentialStream interface - */ -#ifndef __ISequentialStream_INTERFACE_DEFINED__ -#define __ISequentialStream_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ISequentialStream, 0x0c733a30, 0x2a1c, 0x11ce, 0xad,0xe5, 0x00,0xaa,0x00,0x44,0x77,0x3d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ISequentialStream : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Read( - void* pv, - ULONG cb, - ULONG* pcbRead) = 0; - - virtual HRESULT STDMETHODCALLTYPE Write( - const void* pv, - ULONG cb, - ULONG* pcbWritten) = 0; - -}; -#else -typedef struct ISequentialStreamVtbl ISequentialStreamVtbl; -struct ISequentialStream { - const ISequentialStreamVtbl* lpVtbl; -}; -struct ISequentialStreamVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ISequentialStream* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ISequentialStream* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ISequentialStream* This); - - /*** ISequentialStream methods ***/ - HRESULT (STDMETHODCALLTYPE *Read)( - ISequentialStream* This, - void* pv, - ULONG cb, - ULONG* pcbRead); - - HRESULT (STDMETHODCALLTYPE *Write)( - ISequentialStream* This, - const void* pv, - ULONG cb, - ULONG* pcbWritten); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define ISequentialStream_METHODS \ - /*** 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; - -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); - -#endif /* __ISequentialStream_INTERFACE_DEFINED__ */ - -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 - */ -#ifndef __IStream_INTERFACE_DEFINED__ -#define __IStream_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IStream, 0x0000000c, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IStream : public ISequentialStream -{ - virtual HRESULT STDMETHODCALLTYPE Seek( - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - ULARGE_INTEGER* plibNewPosition) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSize( - ULARGE_INTEGER libNewSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE CopyTo( - IStream* pstm, - ULARGE_INTEGER cb, - ULARGE_INTEGER* pcbRead, - ULARGE_INTEGER* pcbWritten) = 0; - - virtual HRESULT STDMETHODCALLTYPE Commit( - DWORD grfCommitFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Revert( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockRegion( - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnlockRegion( - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType) = 0; - - virtual HRESULT STDMETHODCALLTYPE Stat( - STATSTG* pstatstg, - DWORD grfStatFlag) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IStream** ppstm) = 0; - -}; -#else -typedef struct IStreamVtbl IStreamVtbl; -struct IStream { - const IStreamVtbl* lpVtbl; -}; -struct IStreamVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IStream* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IStream* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IStream* This); - - /*** ISequentialStream methods ***/ - HRESULT (STDMETHODCALLTYPE *Read)( - IStream* This, - void* pv, - ULONG cb, - ULONG* pcbRead); - - HRESULT (STDMETHODCALLTYPE *Write)( - IStream* This, - const void* pv, - ULONG cb, - ULONG* pcbWritten); - - /*** IStream methods ***/ - HRESULT (STDMETHODCALLTYPE *Seek)( - IStream* This, - LARGE_INTEGER dlibMove, - DWORD dwOrigin, - ULARGE_INTEGER* plibNewPosition); - - HRESULT (STDMETHODCALLTYPE *SetSize)( - IStream* This, - ULARGE_INTEGER libNewSize); - - HRESULT (STDMETHODCALLTYPE *CopyTo)( - IStream* This, - IStream* pstm, - ULARGE_INTEGER cb, - ULARGE_INTEGER* pcbRead, - ULARGE_INTEGER* pcbWritten); - - HRESULT (STDMETHODCALLTYPE *Commit)( - IStream* This, - DWORD grfCommitFlags); - - HRESULT (STDMETHODCALLTYPE *Revert)( - IStream* This); - - HRESULT (STDMETHODCALLTYPE *LockRegion)( - IStream* This, - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType); - - HRESULT (STDMETHODCALLTYPE *UnlockRegion)( - IStream* This, - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType); - - HRESULT (STDMETHODCALLTYPE *Stat)( - IStream* This, - STATSTG* pstatstg, - DWORD grfStatFlag); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IStream* This, - IStream** ppstm); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IStream_METHODS \ - /*** 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; - -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); - -#endif /* __IStream_INTERFACE_DEFINED__ */ - -#ifndef __IEnumSTATSTG_FWD_DEFINED__ -#define __IEnumSTATSTG_FWD_DEFINED__ -typedef struct IEnumSTATSTG IEnumSTATSTG; -#endif - -typedef IEnumSTATSTG *LPENUMSTATSTG; - -/***************************************************************************** - * IEnumSTATSTG interface - */ -#ifndef __IEnumSTATSTG_INTERFACE_DEFINED__ -#define __IEnumSTATSTG_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumSTATSTG, 0x0000000d, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumSTATSTG : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - STATSTG* rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumSTATSTG** ppenum) = 0; - -}; -#else -typedef struct IEnumSTATSTGVtbl IEnumSTATSTGVtbl; -struct IEnumSTATSTG { - const IEnumSTATSTGVtbl* lpVtbl; -}; -struct IEnumSTATSTGVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumSTATSTG* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumSTATSTG* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumSTATSTG* This); - - /*** IEnumSTATSTG methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumSTATSTG* This, - ULONG celt, - STATSTG* rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumSTATSTG* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumSTATSTG* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumSTATSTG* This, - IEnumSTATSTG** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IEnumSTATSTG_METHODS \ - /*** 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; - -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); - -#endif /* __IEnumSTATSTG_INTERFACE_DEFINED__ */ - -#ifndef __IStorage_FWD_DEFINED__ -#define __IStorage_FWD_DEFINED__ -typedef struct IStorage IStorage; -#endif - -typedef IStorage *LPSTORAGE; - -typedef struct tagRemSNB { - unsigned long ulCntStr; - unsigned long ulCntChar; - OLECHAR rgString[1]; -} RemSNB; - -typedef RemSNB *wireSNB; - -typedef OLECHAR **SNB; -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 *); - -/***************************************************************************** - * IStorage interface - */ -#ifndef __IStorage_INTERFACE_DEFINED__ -#define __IStorage_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IStorage, 0x0000000b, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IStorage : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CreateStream( - LPCOLESTR pwcsName, - DWORD grfMode, - DWORD reserved1, - DWORD reserved2, - IStream** ppstm) = 0; - - virtual HRESULT STDMETHODCALLTYPE OpenStream( - LPCOLESTR pwcsName, - void* reserved1, - DWORD grfMode, - DWORD reserved2, - IStream** ppstm) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateStorage( - LPCOLESTR pwcsName, - DWORD grfMode, - DWORD dwStgFmt, - DWORD reserved2, - IStorage** ppstg) = 0; - - virtual HRESULT STDMETHODCALLTYPE OpenStorage( - LPCOLESTR pwcsName, - IStorage* pstgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage** ppstg) = 0; - - virtual HRESULT STDMETHODCALLTYPE CopyTo( - DWORD ciidExclude, - const IID* rgiidExclude, - SNB snbExclude, - IStorage* pstgDest) = 0; - - virtual HRESULT STDMETHODCALLTYPE MoveElementTo( - LPCOLESTR pwcsName, - IStorage* pstgDest, - LPCOLESTR pwcsNewName, - DWORD grfFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Commit( - DWORD grfCommitFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Revert( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumElements( - DWORD reserved1, - void* reserved2, - DWORD reserved3, - IEnumSTATSTG** ppenum) = 0; - - virtual HRESULT STDMETHODCALLTYPE DestroyElement( - LPCOLESTR pwcsName) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenameElement( - LPCOLESTR pwcsOldName, - LPCOLESTR pwcsNewName) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetElementTimes( - LPCOLESTR pwcsName, - const FILETIME* pctime, - const FILETIME* patime, - const FILETIME* pmtime) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetClass( - REFCLSID clsid) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetStateBits( - DWORD grfStateBits, - DWORD grfMask) = 0; - - virtual HRESULT STDMETHODCALLTYPE Stat( - STATSTG* pstatstg, - DWORD grfStatFlag) = 0; - -}; -#else -typedef struct IStorageVtbl IStorageVtbl; -struct IStorage { - const IStorageVtbl* lpVtbl; -}; -struct IStorageVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IStorage* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IStorage* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IStorage* This); - - /*** IStorage methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateStream)( - IStorage* This, - LPCOLESTR pwcsName, - DWORD grfMode, - DWORD reserved1, - DWORD reserved2, - IStream** ppstm); - - HRESULT (STDMETHODCALLTYPE *OpenStream)( - IStorage* This, - LPCOLESTR pwcsName, - void* reserved1, - DWORD grfMode, - DWORD reserved2, - IStream** ppstm); - - HRESULT (STDMETHODCALLTYPE *CreateStorage)( - IStorage* This, - LPCOLESTR pwcsName, - DWORD grfMode, - DWORD dwStgFmt, - DWORD reserved2, - IStorage** ppstg); - - HRESULT (STDMETHODCALLTYPE *OpenStorage)( - IStorage* This, - LPCOLESTR pwcsName, - IStorage* pstgPriority, - DWORD grfMode, - SNB snbExclude, - DWORD reserved, - IStorage** ppstg); - - HRESULT (STDMETHODCALLTYPE *CopyTo)( - IStorage* This, - DWORD ciidExclude, - const IID* rgiidExclude, - SNB snbExclude, - IStorage* pstgDest); - - HRESULT (STDMETHODCALLTYPE *MoveElementTo)( - IStorage* This, - LPCOLESTR pwcsName, - IStorage* pstgDest, - LPCOLESTR pwcsNewName, - DWORD grfFlags); - - HRESULT (STDMETHODCALLTYPE *Commit)( - IStorage* This, - DWORD grfCommitFlags); - - HRESULT (STDMETHODCALLTYPE *Revert)( - IStorage* This); - - HRESULT (STDMETHODCALLTYPE *EnumElements)( - IStorage* This, - DWORD reserved1, - void* reserved2, - DWORD reserved3, - IEnumSTATSTG** ppenum); - - HRESULT (STDMETHODCALLTYPE *DestroyElement)( - IStorage* This, - LPCOLESTR pwcsName); - - HRESULT (STDMETHODCALLTYPE *RenameElement)( - IStorage* This, - LPCOLESTR pwcsOldName, - LPCOLESTR pwcsNewName); - - HRESULT (STDMETHODCALLTYPE *SetElementTimes)( - IStorage* This, - LPCOLESTR pwcsName, - const FILETIME* pctime, - const FILETIME* patime, - const FILETIME* pmtime); - - HRESULT (STDMETHODCALLTYPE *SetClass)( - IStorage* This, - REFCLSID clsid); - - HRESULT (STDMETHODCALLTYPE *SetStateBits)( - IStorage* This, - DWORD grfStateBits, - DWORD grfMask); - - HRESULT (STDMETHODCALLTYPE *Stat)( - IStorage* This, - STATSTG* pstatstg, - DWORD grfStatFlag); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IStorage_METHODS \ - /*** 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; - -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); - -#endif /* __IStorage_INTERFACE_DEFINED__ */ - -#ifndef __IPersistFile_FWD_DEFINED__ -#define __IPersistFile_FWD_DEFINED__ -typedef struct IPersistFile IPersistFile; -#endif - -typedef IPersistFile *LPPERSISTFILE; - -/***************************************************************************** - * IPersistFile interface - */ -#ifndef __IPersistFile_INTERFACE_DEFINED__ -#define __IPersistFile_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistFile, 0x0000010b, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistFile : public IPersist -{ - virtual HRESULT STDMETHODCALLTYPE IsDirty( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Load( - LPCOLESTR pszFileName, - DWORD dwMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE Save( - LPCOLESTR pszFileName, - BOOL fRemember) = 0; - - virtual HRESULT STDMETHODCALLTYPE SaveCompleted( - LPCOLESTR pszFileName) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurFile( - LPOLESTR* ppszFileName) = 0; - -}; -#else -typedef struct IPersistFileVtbl IPersistFileVtbl; -struct IPersistFile { - const IPersistFileVtbl* lpVtbl; -}; -struct IPersistFileVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistFile* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistFile* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistFile* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistFile* This, - CLSID* pClassID); - - /*** IPersistFile methods ***/ - HRESULT (STDMETHODCALLTYPE *IsDirty)( - IPersistFile* This); - - HRESULT (STDMETHODCALLTYPE *Load)( - IPersistFile* This, - LPCOLESTR pszFileName, - DWORD dwMode); - - HRESULT (STDMETHODCALLTYPE *Save)( - IPersistFile* This, - LPCOLESTR pszFileName, - BOOL fRemember); - - HRESULT (STDMETHODCALLTYPE *SaveCompleted)( - IPersistFile* This, - LPCOLESTR pszFileName); - - HRESULT (STDMETHODCALLTYPE *GetCurFile)( - IPersistFile* This, - LPOLESTR* ppszFileName); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IPersistFile_METHODS \ - /*** 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; - -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); - -#endif /* __IPersistFile_INTERFACE_DEFINED__ */ - -#ifndef __IPersistStorage_FWD_DEFINED__ -#define __IPersistStorage_FWD_DEFINED__ -typedef struct IPersistStorage IPersistStorage; -#endif - -typedef IPersistStorage *LPPERSISTSTORAGE; - -/***************************************************************************** - * IPersistStorage interface - */ -#ifndef __IPersistStorage_INTERFACE_DEFINED__ -#define __IPersistStorage_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistStorage, 0x0000010a, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistStorage : public IPersist -{ - virtual HRESULT STDMETHODCALLTYPE IsDirty( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE InitNew( - IStorage* pStg) = 0; - - virtual HRESULT STDMETHODCALLTYPE Load( - IStorage* pStg) = 0; - - virtual HRESULT STDMETHODCALLTYPE Save( - IStorage* pStgSave, - BOOL fSameAsLoad) = 0; - - virtual HRESULT STDMETHODCALLTYPE SaveCompleted( - IStorage* pStgNew) = 0; - - virtual HRESULT STDMETHODCALLTYPE HandsOffStorage( - ) = 0; - -}; -#else -typedef struct IPersistStorageVtbl IPersistStorageVtbl; -struct IPersistStorage { - const IPersistStorageVtbl* lpVtbl; -}; -struct IPersistStorageVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistStorage* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistStorage* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistStorage* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistStorage* This, - CLSID* pClassID); - - /*** IPersistStorage methods ***/ - HRESULT (STDMETHODCALLTYPE *IsDirty)( - IPersistStorage* This); - - HRESULT (STDMETHODCALLTYPE *InitNew)( - IPersistStorage* This, - IStorage* pStg); - - HRESULT (STDMETHODCALLTYPE *Load)( - IPersistStorage* This, - IStorage* pStg); - - HRESULT (STDMETHODCALLTYPE *Save)( - IPersistStorage* This, - IStorage* pStgSave, - BOOL fSameAsLoad); - - HRESULT (STDMETHODCALLTYPE *SaveCompleted)( - IPersistStorage* This, - IStorage* pStgNew); - - HRESULT (STDMETHODCALLTYPE *HandsOffStorage)( - IPersistStorage* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IPersistStorage_METHODS \ - /*** 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; - -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); - -#endif /* __IPersistStorage_INTERFACE_DEFINED__ */ - -#ifndef __IRootStorage_FWD_DEFINED__ -#define __IRootStorage_FWD_DEFINED__ -typedef struct IRootStorage IRootStorage; -#endif - -typedef IRootStorage *LPROOTSTORAGE; - -/***************************************************************************** - * IRootStorage interface - */ -#ifndef __IRootStorage_INTERFACE_DEFINED__ -#define __IRootStorage_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRootStorage, 0x00000012, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRootStorage : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SwitchToFile( - LPOLESTR pszFile) = 0; - -}; -#else -typedef struct IRootStorageVtbl IRootStorageVtbl; -struct IRootStorage { - const IRootStorageVtbl* lpVtbl; -}; -struct IRootStorageVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRootStorage* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRootStorage* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRootStorage* This); - - /*** IRootStorage methods ***/ - HRESULT (STDMETHODCALLTYPE *SwitchToFile)( - IRootStorage* This, - LPOLESTR pszFile); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IRootStorage_METHODS \ - /*** 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; - -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); - -#endif /* __IRootStorage_INTERFACE_DEFINED__ */ - -#ifndef __ILockBytes_FWD_DEFINED__ -#define __ILockBytes_FWD_DEFINED__ -typedef struct ILockBytes ILockBytes; -#endif - -typedef ILockBytes *LPLOCKBYTES; - -/***************************************************************************** - * ILockBytes interface - */ -#ifndef __ILockBytes_INTERFACE_DEFINED__ -#define __ILockBytes_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ILockBytes, 0x0000000a, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ILockBytes : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE ReadAt( - ULARGE_INTEGER ulOffset, - void* pv, - ULONG cb, - ULONG* pcbRead) = 0; - - virtual HRESULT STDMETHODCALLTYPE WriteAt( - ULARGE_INTEGER ulOffset, - const void* pv, - ULONG cb, - ULONG* pcbWritten) = 0; - - virtual HRESULT STDMETHODCALLTYPE Flush( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSize( - ULARGE_INTEGER cb) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockRegion( - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnlockRegion( - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType) = 0; - - virtual HRESULT STDMETHODCALLTYPE Stat( - STATSTG* pstatstg, - DWORD grfStatFlag) = 0; - -}; -#else -typedef struct ILockBytesVtbl ILockBytesVtbl; -struct ILockBytes { - const ILockBytesVtbl* lpVtbl; -}; -struct ILockBytesVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ILockBytes* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ILockBytes* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ILockBytes* This); - - /*** ILockBytes methods ***/ - HRESULT (STDMETHODCALLTYPE *ReadAt)( - ILockBytes* This, - ULARGE_INTEGER ulOffset, - void* pv, - ULONG cb, - ULONG* pcbRead); - - HRESULT (STDMETHODCALLTYPE *WriteAt)( - ILockBytes* This, - ULARGE_INTEGER ulOffset, - const void* pv, - ULONG cb, - ULONG* pcbWritten); - - HRESULT (STDMETHODCALLTYPE *Flush)( - ILockBytes* This); - - HRESULT (STDMETHODCALLTYPE *SetSize)( - ILockBytes* This, - ULARGE_INTEGER cb); - - HRESULT (STDMETHODCALLTYPE *LockRegion)( - ILockBytes* This, - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType); - - HRESULT (STDMETHODCALLTYPE *UnlockRegion)( - ILockBytes* This, - ULARGE_INTEGER libOffset, - ULARGE_INTEGER cb, - DWORD dwLockType); - - HRESULT (STDMETHODCALLTYPE *Stat)( - ILockBytes* This, - STATSTG* pstatstg, - DWORD grfStatFlag); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define ILockBytes_METHODS \ - /*** 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; - -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); - -#endif /* __ILockBytes_INTERFACE_DEFINED__ */ - -#ifndef __IFillLockBytes_FWD_DEFINED__ -#define __IFillLockBytes_FWD_DEFINED__ -typedef struct IFillLockBytes IFillLockBytes; -#endif - -/***************************************************************************** - * IFillLockBytes interface - */ -#ifndef __IFillLockBytes_INTERFACE_DEFINED__ -#define __IFillLockBytes_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFillLockBytes, 0x99caf010, 0x415e, 0x11cf, 0x88,0x14, 0x00,0xaa,0x00,0xb5,0x69,0xf5); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFillLockBytes : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE FillAppend( - const void* pv, - ULONG cb, - ULONG* pcbWritten) = 0; - - virtual HRESULT STDMETHODCALLTYPE FillAt( - ULARGE_INTEGER ulOffset, - const void* pv, - ULONG cb, - ULONG* pcbWritten) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFillSize( - ULARGE_INTEGER ulSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE Terminate( - BOOL bCanceled) = 0; - -}; -#else -typedef struct IFillLockBytesVtbl IFillLockBytesVtbl; -struct IFillLockBytes { - const IFillLockBytesVtbl* lpVtbl; -}; -struct IFillLockBytesVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFillLockBytes* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFillLockBytes* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFillLockBytes* This); - - /*** IFillLockBytes methods ***/ - HRESULT (STDMETHODCALLTYPE *FillAppend)( - IFillLockBytes* This, - const void* pv, - ULONG cb, - ULONG* pcbWritten); - - HRESULT (STDMETHODCALLTYPE *FillAt)( - IFillLockBytes* This, - ULARGE_INTEGER ulOffset, - const void* pv, - ULONG cb, - ULONG* pcbWritten); - - HRESULT (STDMETHODCALLTYPE *SetFillSize)( - IFillLockBytes* This, - ULARGE_INTEGER ulSize); - - HRESULT (STDMETHODCALLTYPE *Terminate)( - IFillLockBytes* This, - BOOL bCanceled); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IFillLockBytes_METHODS \ - /*** 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; - -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); - -#endif /* __IFillLockBytes_INTERFACE_DEFINED__ */ - -#ifndef __IProgressNotify_FWD_DEFINED__ -#define __IProgressNotify_FWD_DEFINED__ -typedef struct IProgressNotify IProgressNotify; -#endif - -/***************************************************************************** - * IProgressNotify interface - */ -#ifndef __IProgressNotify_INTERFACE_DEFINED__ -#define __IProgressNotify_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IProgressNotify, 0xa9d758a0, 0x4617, 0x11cf, 0x95,0xfc, 0x00,0xaa,0x00,0x68,0x0d,0xb4); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IProgressNotify : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE OnProgress( - DWORD dwProgressCurrent, - DWORD dwProgressMaximum, - BOOL fAccurate, - BOOL fOwner) = 0; - -}; -#else -typedef struct IProgressNotifyVtbl IProgressNotifyVtbl; -struct IProgressNotify { - const IProgressNotifyVtbl* lpVtbl; -}; -struct IProgressNotifyVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IProgressNotify* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IProgressNotify* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IProgressNotify* This); - - /*** IProgressNotify methods ***/ - HRESULT (STDMETHODCALLTYPE *OnProgress)( - IProgressNotify* This, - DWORD dwProgressCurrent, - DWORD dwProgressMaximum, - BOOL fAccurate, - BOOL fOwner); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IProgressNotify_METHODS \ - /*** 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; - -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); - -#endif /* __IProgressNotify_INTERFACE_DEFINED__ */ - -#ifndef __ILayoutStorage_FWD_DEFINED__ -#define __ILayoutStorage_FWD_DEFINED__ -typedef struct ILayoutStorage ILayoutStorage; -#endif - -typedef struct tagStorageLayout { - DWORD LayoutType; - OLECHAR *pwcsElementName; - LARGE_INTEGER cOffset; - LARGE_INTEGER cBytes; -} StorageLayout; - -/***************************************************************************** - * ILayoutStorage interface - */ -#ifndef __ILayoutStorage_INTERFACE_DEFINED__ -#define __ILayoutStorage_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ILayoutStorage, 0x0e6d4d90, 0x6738, 0x11cf, 0x96,0x08, 0x00,0xaa,0x00,0x68,0x0d,0xb4); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ILayoutStorage : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE LayoutScript( - StorageLayout* pStorageLayout, - DWORD nEntries, - DWORD glfInterleavedFlag) = 0; - - virtual HRESULT STDMETHODCALLTYPE BeginMonitor( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE EndMonitor( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReLayoutDocfile( - OLECHAR* pwcsNewDfName) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReLayoutDocfileOnILockBytes( - ILockBytes* pILockBytes) = 0; - -}; -#else -typedef struct ILayoutStorageVtbl ILayoutStorageVtbl; -struct ILayoutStorage { - const ILayoutStorageVtbl* lpVtbl; -}; -struct ILayoutStorageVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ILayoutStorage* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ILayoutStorage* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ILayoutStorage* This); - - /*** ILayoutStorage methods ***/ - HRESULT (STDMETHODCALLTYPE *LayoutScript)( - ILayoutStorage* This, - StorageLayout* pStorageLayout, - DWORD nEntries, - DWORD glfInterleavedFlag); - - HRESULT (STDMETHODCALLTYPE *BeginMonitor)( - ILayoutStorage* This); - - HRESULT (STDMETHODCALLTYPE *EndMonitor)( - ILayoutStorage* This); - - HRESULT (STDMETHODCALLTYPE *ReLayoutDocfile)( - ILayoutStorage* This, - OLECHAR* pwcsNewDfName); - - HRESULT (STDMETHODCALLTYPE *ReLayoutDocfileOnILockBytes)( - ILayoutStorage* This, - ILockBytes* pILockBytes); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define ILayoutStorage_METHODS \ - /*** 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; - -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); - -#endif /* __ILayoutStorage_INTERFACE_DEFINED__ */ - -#ifndef __IEnumFORMATETC_FWD_DEFINED__ -#define __IEnumFORMATETC_FWD_DEFINED__ -typedef struct IEnumFORMATETC IEnumFORMATETC; -#endif - -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 - */ -#ifndef __IEnumFORMATETC_INTERFACE_DEFINED__ -#define __IEnumFORMATETC_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumFORMATETC, 0x00000103, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumFORMATETC : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - FORMATETC* rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumFORMATETC** ppenum) = 0; - -}; -#else -typedef struct IEnumFORMATETCVtbl IEnumFORMATETCVtbl; -struct IEnumFORMATETC { - const IEnumFORMATETCVtbl* lpVtbl; -}; -struct IEnumFORMATETCVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumFORMATETC* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumFORMATETC* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumFORMATETC* This); - - /*** IEnumFORMATETC methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumFORMATETC* This, - ULONG celt, - FORMATETC* rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumFORMATETC* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumFORMATETC* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumFORMATETC* This, - IEnumFORMATETC** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IEnumFORMATETC_METHODS \ - /*** 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; - -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); - -#endif /* __IEnumFORMATETC_INTERFACE_DEFINED__ */ - -#ifndef __IEnumSTATDATA_FWD_DEFINED__ -#define __IEnumSTATDATA_FWD_DEFINED__ -typedef struct IEnumSTATDATA IEnumSTATDATA; -#endif - -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 - */ -#ifndef __IEnumSTATDATA_INTERFACE_DEFINED__ -#define __IEnumSTATDATA_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumSTATDATA, 0x00000105, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumSTATDATA : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - STATDATA* rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumSTATDATA** ppenum) = 0; - -}; -#else -typedef struct IEnumSTATDATAVtbl IEnumSTATDATAVtbl; -struct IEnumSTATDATA { - const IEnumSTATDATAVtbl* lpVtbl; -}; -struct IEnumSTATDATAVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumSTATDATA* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumSTATDATA* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumSTATDATA* This); - - /*** IEnumSTATDATA methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumSTATDATA* This, - ULONG celt, - STATDATA* rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumSTATDATA* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumSTATDATA* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumSTATDATA* This, - IEnumSTATDATA** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IEnumSTATDATA_METHODS \ - /*** 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; - -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); - -#endif /* __IEnumSTATDATA_INTERFACE_DEFINED__ */ - -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 { - 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; -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 *); - -typedef userSTGMEDIUM *wireASYNC_STGMEDIUM; - -typedef STGMEDIUM ASYNC_STGMEDIUM; -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 *); - -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; -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 *); - -/***************************************************************************** - * IAdviseSink interface - */ -#ifndef __IAdviseSink_INTERFACE_DEFINED__ -#define __IAdviseSink_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAdviseSink, 0x0000010f, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAdviseSink : public IUnknown -{ - virtual void STDMETHODCALLTYPE OnDataChange( - FORMATETC* pFormatetc, - STGMEDIUM* pStgmed) = 0; - - virtual void STDMETHODCALLTYPE OnViewChange( - DWORD dwAspect, - LONG lindex) = 0; - - virtual void STDMETHODCALLTYPE OnRename( - IMoniker* pmk) = 0; - - virtual void STDMETHODCALLTYPE OnSave( - ) = 0; - - virtual void STDMETHODCALLTYPE OnClose( - ) = 0; - -}; -#else -typedef struct IAdviseSinkVtbl IAdviseSinkVtbl; -struct IAdviseSink { - const IAdviseSinkVtbl* lpVtbl; -}; -struct IAdviseSinkVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAdviseSink* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAdviseSink* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAdviseSink* This); - - /*** IAdviseSink methods ***/ - void (STDMETHODCALLTYPE *OnDataChange)( - IAdviseSink* This, - FORMATETC* pFormatetc, - STGMEDIUM* pStgmed); - - void (STDMETHODCALLTYPE *OnViewChange)( - IAdviseSink* This, - DWORD dwAspect, - LONG lindex); - - void (STDMETHODCALLTYPE *OnRename)( - IAdviseSink* This, - IMoniker* pmk); - - void (STDMETHODCALLTYPE *OnSave)( - IAdviseSink* This); - - void (STDMETHODCALLTYPE *OnClose)( - IAdviseSink* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IAdviseSink_METHODS \ - /*** 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; - -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); - -#endif /* __IAdviseSink_INTERFACE_DEFINED__ */ - -#ifndef __IAdviseSink2_FWD_DEFINED__ -#define __IAdviseSink2_FWD_DEFINED__ -typedef struct IAdviseSink2 IAdviseSink2; -#endif - -typedef IAdviseSink2 *LPADVISESINK2; - -/***************************************************************************** - * IAdviseSink2 interface - */ -#ifndef __IAdviseSink2_INTERFACE_DEFINED__ -#define __IAdviseSink2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAdviseSink2, 0x00000125, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAdviseSink2 : public IAdviseSink -{ - virtual void STDMETHODCALLTYPE OnLinkSrcChange( - IMoniker* pmk) = 0; - -}; -#else -typedef struct IAdviseSink2Vtbl IAdviseSink2Vtbl; -struct IAdviseSink2 { - const IAdviseSink2Vtbl* lpVtbl; -}; -struct IAdviseSink2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAdviseSink2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAdviseSink2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAdviseSink2* This); - - /*** IAdviseSink methods ***/ - void (STDMETHODCALLTYPE *OnDataChange)( - IAdviseSink2* This, - FORMATETC* pFormatetc, - STGMEDIUM* pStgmed); - - void (STDMETHODCALLTYPE *OnViewChange)( - IAdviseSink2* This, - DWORD dwAspect, - LONG lindex); - - void (STDMETHODCALLTYPE *OnRename)( - IAdviseSink2* This, - IMoniker* pmk); - - void (STDMETHODCALLTYPE *OnSave)( - IAdviseSink2* This); - - void (STDMETHODCALLTYPE *OnClose)( - IAdviseSink2* This); - - /*** IAdviseSink2 methods ***/ - void (STDMETHODCALLTYPE *OnLinkSrcChange)( - IAdviseSink2* This, - IMoniker* pmk); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IAdviseSink2_METHODS \ - /*** 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; - -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); - -#endif /* __IAdviseSink2_INTERFACE_DEFINED__ */ - -#ifndef __IDataObject_FWD_DEFINED__ -#define __IDataObject_FWD_DEFINED__ -typedef struct IDataObject IDataObject; -#endif - -typedef IDataObject *LPDATAOBJECT; - -typedef enum tagDATADIR { - DATADIR_GET = 1, - DATADIR_SET = 2 -} DATADIR; - -/***************************************************************************** - * IDataObject interface - */ -#ifndef __IDataObject_INTERFACE_DEFINED__ -#define __IDataObject_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDataObject, 0x0000010e, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDataObject : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetData( - FORMATETC* pformatetcIn, - STGMEDIUM* pmedium) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDataHere( - FORMATETC* pformatetc, - STGMEDIUM* pmedium) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryGetData( - FORMATETC* pformatetc) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCanonicalFormatEtc( - FORMATETC* pformatectIn, - FORMATETC* pformatetcOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetData( - FORMATETC* pformatetc, - STGMEDIUM* pmedium, - BOOL fRelease) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumFormatEtc( - DWORD dwDirection, - IEnumFORMATETC** ppenumFormatEtc) = 0; - - virtual HRESULT STDMETHODCALLTYPE DAdvise( - FORMATETC* pformatetc, - DWORD advf, - IAdviseSink* pAdvSink, - DWORD* pdwConnection) = 0; - - virtual HRESULT STDMETHODCALLTYPE DUnadvise( - DWORD dwConnection) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumDAdvise( - IEnumSTATDATA** ppenumAdvise) = 0; - -}; -#else -typedef struct IDataObjectVtbl IDataObjectVtbl; -struct IDataObject { - const IDataObjectVtbl* lpVtbl; -}; -struct IDataObjectVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDataObject* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDataObject* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDataObject* This); - - /*** IDataObject methods ***/ - HRESULT (STDMETHODCALLTYPE *GetData)( - IDataObject* This, - FORMATETC* pformatetcIn, - STGMEDIUM* pmedium); - - HRESULT (STDMETHODCALLTYPE *GetDataHere)( - IDataObject* This, - FORMATETC* pformatetc, - STGMEDIUM* pmedium); - - HRESULT (STDMETHODCALLTYPE *QueryGetData)( - IDataObject* This, - FORMATETC* pformatetc); - - HRESULT (STDMETHODCALLTYPE *GetCanonicalFormatEtc)( - IDataObject* This, - FORMATETC* pformatectIn, - FORMATETC* pformatetcOut); - - HRESULT (STDMETHODCALLTYPE *SetData)( - IDataObject* This, - FORMATETC* pformatetc, - STGMEDIUM* pmedium, - BOOL fRelease); - - HRESULT (STDMETHODCALLTYPE *EnumFormatEtc)( - IDataObject* This, - DWORD dwDirection, - IEnumFORMATETC** ppenumFormatEtc); - - HRESULT (STDMETHODCALLTYPE *DAdvise)( - IDataObject* This, - FORMATETC* pformatetc, - DWORD advf, - IAdviseSink* pAdvSink, - DWORD* pdwConnection); - - HRESULT (STDMETHODCALLTYPE *DUnadvise)( - IDataObject* This, - DWORD dwConnection); - - HRESULT (STDMETHODCALLTYPE *EnumDAdvise)( - IDataObject* This, - IEnumSTATDATA** ppenumAdvise); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IDataObject_METHODS \ - /*** 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; - -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); - -#endif /* __IDataObject_INTERFACE_DEFINED__ */ - -#ifndef __IDataAdviseHolder_FWD_DEFINED__ -#define __IDataAdviseHolder_FWD_DEFINED__ -typedef struct IDataAdviseHolder IDataAdviseHolder; -#endif - -typedef IDataAdviseHolder *LPDATAADVISEHOLDER; - -/***************************************************************************** - * IDataAdviseHolder interface - */ -#ifndef __IDataAdviseHolder_INTERFACE_DEFINED__ -#define __IDataAdviseHolder_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDataAdviseHolder, 0x00000110, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDataAdviseHolder : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Advise( - IDataObject* pDataObject, - FORMATETC* pFetc, - DWORD advf, - IAdviseSink* pAdvise, - DWORD* pdwConnection) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unadvise( - DWORD dwConnection) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumAdvise( - IEnumSTATDATA** ppenumAdvise) = 0; - - virtual HRESULT STDMETHODCALLTYPE SendOnDataChange( - IDataObject* pDataObject, - DWORD dwReserved, - DWORD advf) = 0; - -}; -#else -typedef struct IDataAdviseHolderVtbl IDataAdviseHolderVtbl; -struct IDataAdviseHolder { - const IDataAdviseHolderVtbl* lpVtbl; -}; -struct IDataAdviseHolderVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDataAdviseHolder* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDataAdviseHolder* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDataAdviseHolder* This); - - /*** IDataAdviseHolder methods ***/ - HRESULT (STDMETHODCALLTYPE *Advise)( - IDataAdviseHolder* This, - IDataObject* pDataObject, - FORMATETC* pFetc, - DWORD advf, - IAdviseSink* pAdvise, - DWORD* pdwConnection); - - HRESULT (STDMETHODCALLTYPE *Unadvise)( - IDataAdviseHolder* This, - DWORD dwConnection); - - HRESULT (STDMETHODCALLTYPE *EnumAdvise)( - IDataAdviseHolder* This, - IEnumSTATDATA** ppenumAdvise); - - HRESULT (STDMETHODCALLTYPE *SendOnDataChange)( - IDataAdviseHolder* This, - IDataObject* pDataObject, - DWORD dwReserved, - DWORD advf); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IDataAdviseHolder_METHODS \ - /*** 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; - -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); - -#endif /* __IDataAdviseHolder_INTERFACE_DEFINED__ */ - -#ifndef __IMessageFilter_FWD_DEFINED__ -#define __IMessageFilter_FWD_DEFINED__ -typedef struct IMessageFilter IMessageFilter; -#endif - -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 - */ -#ifndef __IMessageFilter_INTERFACE_DEFINED__ -#define __IMessageFilter_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMessageFilter, 0x00000016, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMessageFilter : public IUnknown -{ - virtual DWORD STDMETHODCALLTYPE HandleIncomingCall( - DWORD dwCallType, - HTASK htaskCaller, - DWORD dwTickCount, - LPINTERFACEINFO lpInterfaceInfo) = 0; - - virtual DWORD STDMETHODCALLTYPE RetryRejectedCall( - HTASK htaskCallee, - DWORD dwTickCount, - DWORD dwRejectType) = 0; - - virtual DWORD STDMETHODCALLTYPE MessagePending( - HTASK htaskCallee, - DWORD dwTickCount, - DWORD dwPendingType) = 0; - -}; -#else -typedef struct IMessageFilterVtbl IMessageFilterVtbl; -struct IMessageFilter { - const IMessageFilterVtbl* lpVtbl; -}; -struct IMessageFilterVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMessageFilter* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMessageFilter* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMessageFilter* This); - - /*** IMessageFilter methods ***/ - DWORD (STDMETHODCALLTYPE *HandleIncomingCall)( - IMessageFilter* This, - DWORD dwCallType, - HTASK htaskCaller, - DWORD dwTickCount, - LPINTERFACEINFO lpInterfaceInfo); - - DWORD (STDMETHODCALLTYPE *RetryRejectedCall)( - IMessageFilter* This, - HTASK htaskCallee, - DWORD dwTickCount, - DWORD dwRejectType); - - DWORD (STDMETHODCALLTYPE *MessagePending)( - IMessageFilter* This, - HTASK htaskCallee, - DWORD dwTickCount, - DWORD dwPendingType); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IMessageFilter_METHODS \ - /*** 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; - -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); - -#endif /* __IMessageFilter_INTERFACE_DEFINED__ */ - -#ifndef __IRpcChannelBuffer_FWD_DEFINED__ -#define __IRpcChannelBuffer_FWD_DEFINED__ -typedef struct IRpcChannelBuffer IRpcChannelBuffer; -#endif - -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 - */ -#ifndef __IRpcChannelBuffer_INTERFACE_DEFINED__ -#define __IRpcChannelBuffer_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRpcChannelBuffer, 0xd5f56b60, 0x593b, 0x101a, 0xb5,0x69, 0x08,0x00,0x2b,0x2d,0xbf,0x7a); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRpcChannelBuffer : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetBuffer( - RPCOLEMESSAGE* pMessage, - REFIID riid) = 0; - - virtual HRESULT STDMETHODCALLTYPE SendReceive( - RPCOLEMESSAGE* pMessage, - ULONG* pStatus) = 0; - - virtual HRESULT STDMETHODCALLTYPE FreeBuffer( - RPCOLEMESSAGE* pMessage) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDestCtx( - DWORD* pdwDestContext, - void** ppvDestContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsConnected( - ) = 0; - -}; -#else -typedef struct IRpcChannelBufferVtbl IRpcChannelBufferVtbl; -struct IRpcChannelBuffer { - const IRpcChannelBufferVtbl* lpVtbl; -}; -struct IRpcChannelBufferVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRpcChannelBuffer* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRpcChannelBuffer* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRpcChannelBuffer* This); - - /*** IRpcChannelBuffer methods ***/ - HRESULT (STDMETHODCALLTYPE *GetBuffer)( - IRpcChannelBuffer* This, - RPCOLEMESSAGE* pMessage, - REFIID riid); - - HRESULT (STDMETHODCALLTYPE *SendReceive)( - IRpcChannelBuffer* This, - RPCOLEMESSAGE* pMessage, - ULONG* pStatus); - - HRESULT (STDMETHODCALLTYPE *FreeBuffer)( - IRpcChannelBuffer* This, - RPCOLEMESSAGE* pMessage); - - HRESULT (STDMETHODCALLTYPE *GetDestCtx)( - IRpcChannelBuffer* This, - DWORD* pdwDestContext, - void** ppvDestContext); - - HRESULT (STDMETHODCALLTYPE *IsConnected)( - IRpcChannelBuffer* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IRpcChannelBuffer_METHODS \ - /*** 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; - -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); - -#endif /* __IRpcChannelBuffer_INTERFACE_DEFINED__ */ - -#ifndef __IRpcChannelBuffer2_FWD_DEFINED__ -#define __IRpcChannelBuffer2_FWD_DEFINED__ -typedef struct IRpcChannelBuffer2 IRpcChannelBuffer2; -#endif - -typedef IRpcChannelBuffer2 *LPRPCCHANNELBUFFER2; - -/***************************************************************************** - * IRpcChannelBuffer2 interface - */ -#ifndef __IRpcChannelBuffer2_INTERFACE_DEFINED__ -#define __IRpcChannelBuffer2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRpcChannelBuffer2, 0x594f31d0, 0x7f19, 0x11d0, 0xb1,0x94, 0x00,0xa0,0xc9,0x0d,0xc8,0xbf); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRpcChannelBuffer2 : public IRpcChannelBuffer -{ - virtual HRESULT STDMETHODCALLTYPE GetProtocolVersion( - DWORD* pdwVersion) = 0; - -}; -#else -typedef struct IRpcChannelBuffer2Vtbl IRpcChannelBuffer2Vtbl; -struct IRpcChannelBuffer2 { - const IRpcChannelBuffer2Vtbl* lpVtbl; -}; -struct IRpcChannelBuffer2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRpcChannelBuffer2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRpcChannelBuffer2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRpcChannelBuffer2* This); - - /*** IRpcChannelBuffer methods ***/ - HRESULT (STDMETHODCALLTYPE *GetBuffer)( - IRpcChannelBuffer2* This, - RPCOLEMESSAGE* pMessage, - REFIID riid); - - HRESULT (STDMETHODCALLTYPE *SendReceive)( - IRpcChannelBuffer2* This, - RPCOLEMESSAGE* pMessage, - ULONG* pStatus); - - HRESULT (STDMETHODCALLTYPE *FreeBuffer)( - IRpcChannelBuffer2* This, - RPCOLEMESSAGE* pMessage); - - HRESULT (STDMETHODCALLTYPE *GetDestCtx)( - IRpcChannelBuffer2* This, - DWORD* pdwDestContext, - void** ppvDestContext); - - HRESULT (STDMETHODCALLTYPE *IsConnected)( - IRpcChannelBuffer2* This); - - /*** IRpcChannelBuffer2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetProtocolVersion)( - IRpcChannelBuffer2* This, - DWORD* pdwVersion); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IRpcChannelBuffer2_METHODS \ - /*** 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; - -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); - -#endif /* __IRpcChannelBuffer2_INTERFACE_DEFINED__ */ - -#ifndef __IRpcChannelBuffer3_FWD_DEFINED__ -#define __IRpcChannelBuffer3_FWD_DEFINED__ -typedef struct IRpcChannelBuffer3 IRpcChannelBuffer3; -#endif - -typedef IRpcChannelBuffer3 *LPRPCCHANNELBUFFER3; - -/***************************************************************************** - * IRpcChannelBuffer3 interface - */ -#ifndef __IRpcChannelBuffer3_INTERFACE_DEFINED__ -#define __IRpcChannelBuffer3_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRpcChannelBuffer3, 0x25b15600, 0x0115, 0x11d0, 0xbf,0x0d, 0x00,0xaa,0x00,0xb8,0xdf,0xd2); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRpcChannelBuffer3 : public IRpcChannelBuffer2 -{ - virtual HRESULT STDMETHODCALLTYPE Send( - RPCOLEMESSAGE* pMsg, - ULONG* pulStatus) = 0; - - virtual HRESULT STDMETHODCALLTYPE Receive( - RPCOLEMESSAGE* pMsg, - ULONG ulSize, - ULONG* pulStatus) = 0; - - virtual HRESULT STDMETHODCALLTYPE Cancel( - RPCOLEMESSAGE* pMsg) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCallContext( - RPCOLEMESSAGE* pMsg, - REFIID riid, - void** pInterface) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDestCtxEx( - RPCOLEMESSAGE* pMsg, - DWORD* pdwDestContext, - void** ppvDestContext) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetState( - RPCOLEMESSAGE* pMsg, - DWORD* pState) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterAsync( - RPCOLEMESSAGE* pMsg, - IAsyncManager* pAsyncMgr) = 0; - -}; -#else -typedef struct IRpcChannelBuffer3Vtbl IRpcChannelBuffer3Vtbl; -struct IRpcChannelBuffer3 { - const IRpcChannelBuffer3Vtbl* lpVtbl; -}; -struct IRpcChannelBuffer3Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRpcChannelBuffer3* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRpcChannelBuffer3* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRpcChannelBuffer3* This); - - /*** IRpcChannelBuffer methods ***/ - HRESULT (STDMETHODCALLTYPE *GetBuffer)( - IRpcChannelBuffer3* This, - RPCOLEMESSAGE* pMessage, - REFIID riid); - - HRESULT (STDMETHODCALLTYPE *SendReceive)( - IRpcChannelBuffer3* This, - RPCOLEMESSAGE* pMessage, - ULONG* pStatus); - - HRESULT (STDMETHODCALLTYPE *FreeBuffer)( - IRpcChannelBuffer3* This, - RPCOLEMESSAGE* pMessage); - - HRESULT (STDMETHODCALLTYPE *GetDestCtx)( - IRpcChannelBuffer3* This, - DWORD* pdwDestContext, - void** ppvDestContext); - - HRESULT (STDMETHODCALLTYPE *IsConnected)( - IRpcChannelBuffer3* This); - - /*** IRpcChannelBuffer2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetProtocolVersion)( - IRpcChannelBuffer3* This, - DWORD* pdwVersion); - - /*** IRpcChannelBuffer3 methods ***/ - HRESULT (STDMETHODCALLTYPE *Send)( - IRpcChannelBuffer3* This, - RPCOLEMESSAGE* pMsg, - ULONG* pulStatus); - - HRESULT (STDMETHODCALLTYPE *Receive)( - IRpcChannelBuffer3* This, - RPCOLEMESSAGE* pMsg, - ULONG ulSize, - ULONG* pulStatus); - - HRESULT (STDMETHODCALLTYPE *Cancel)( - IRpcChannelBuffer3* This, - RPCOLEMESSAGE* pMsg); - - HRESULT (STDMETHODCALLTYPE *GetCallContext)( - IRpcChannelBuffer3* This, - RPCOLEMESSAGE* pMsg, - REFIID riid, - void** pInterface); - - HRESULT (STDMETHODCALLTYPE *GetDestCtxEx)( - IRpcChannelBuffer3* This, - RPCOLEMESSAGE* pMsg, - DWORD* pdwDestContext, - void** ppvDestContext); - - HRESULT (STDMETHODCALLTYPE *GetState)( - IRpcChannelBuffer3* This, - RPCOLEMESSAGE* pMsg, - DWORD* pState); - - HRESULT (STDMETHODCALLTYPE *RegisterAsync)( - IRpcChannelBuffer3* This, - RPCOLEMESSAGE* pMsg, - IAsyncManager* pAsyncMgr); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IRpcChannelBuffer3_METHODS \ - /*** 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; - -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); - -#endif /* __IRpcChannelBuffer3_INTERFACE_DEFINED__ */ - -#ifndef __IRpcProxyBuffer_FWD_DEFINED__ -#define __IRpcProxyBuffer_FWD_DEFINED__ -typedef struct IRpcProxyBuffer IRpcProxyBuffer; -#endif - -typedef IRpcProxyBuffer *LPRPCPROXYBUFFER; - -/***************************************************************************** - * IRpcProxyBuffer interface - */ -#ifndef __IRpcProxyBuffer_INTERFACE_DEFINED__ -#define __IRpcProxyBuffer_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRpcProxyBuffer, 0xd5f56a34, 0x593b, 0x101a, 0xb5,0x69, 0x08,0x00,0x2b,0x2d,0xbf,0x7a); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRpcProxyBuffer : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Connect( - IRpcChannelBuffer* pRpcChannelBuffer) = 0; - - virtual void STDMETHODCALLTYPE Disconnect( - ) = 0; - -}; -#else -typedef struct IRpcProxyBufferVtbl IRpcProxyBufferVtbl; -struct IRpcProxyBuffer { - const IRpcProxyBufferVtbl* lpVtbl; -}; -struct IRpcProxyBufferVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRpcProxyBuffer* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRpcProxyBuffer* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRpcProxyBuffer* This); - - /*** IRpcProxyBuffer methods ***/ - HRESULT (STDMETHODCALLTYPE *Connect)( - IRpcProxyBuffer* This, - IRpcChannelBuffer* pRpcChannelBuffer); - - void (STDMETHODCALLTYPE *Disconnect)( - IRpcProxyBuffer* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IRpcProxyBuffer_METHODS \ - /*** 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; - -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); - -#endif /* __IRpcProxyBuffer_INTERFACE_DEFINED__ */ - -#ifndef __IRpcStubBuffer_FWD_DEFINED__ -#define __IRpcStubBuffer_FWD_DEFINED__ -typedef struct IRpcStubBuffer IRpcStubBuffer; -#endif - -typedef IRpcStubBuffer *LPRPCSTUBBUFFER; - -/***************************************************************************** - * IRpcStubBuffer interface - */ -#ifndef __IRpcStubBuffer_INTERFACE_DEFINED__ -#define __IRpcStubBuffer_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IRpcStubBuffer, 0xd5f56afc, 0x593b, 0x101a, 0xb5,0x69, 0x08,0x00,0x2b,0x2d,0xbf,0x7a); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IRpcStubBuffer : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Connect( - IUnknown* pUnkServer) = 0; - - virtual void STDMETHODCALLTYPE Disconnect( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Invoke( - RPCOLEMESSAGE* _prpcmsg, - IRpcChannelBuffer* _pRpcChannelBuffer) = 0; - - virtual IRpcStubBuffer* STDMETHODCALLTYPE IsIIDSupported( - REFIID riid) = 0; - - virtual ULONG STDMETHODCALLTYPE CountRefs( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE DebugServerQueryInterface( - void** ppv) = 0; - - virtual void STDMETHODCALLTYPE DebugServerRelease( - void* pv) = 0; - -}; -#else -typedef struct IRpcStubBufferVtbl IRpcStubBufferVtbl; -struct IRpcStubBuffer { - const IRpcStubBufferVtbl* lpVtbl; -}; -struct IRpcStubBufferVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IRpcStubBuffer* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IRpcStubBuffer* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IRpcStubBuffer* This); - - /*** IRpcStubBuffer methods ***/ - HRESULT (STDMETHODCALLTYPE *Connect)( - IRpcStubBuffer* This, - IUnknown* pUnkServer); - - void (STDMETHODCALLTYPE *Disconnect)( - IRpcStubBuffer* This); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - IRpcStubBuffer* This, - RPCOLEMESSAGE* _prpcmsg, - IRpcChannelBuffer* _pRpcChannelBuffer); - - IRpcStubBuffer* (STDMETHODCALLTYPE *IsIIDSupported)( - IRpcStubBuffer* This, - REFIID riid); - - ULONG (STDMETHODCALLTYPE *CountRefs)( - IRpcStubBuffer* This); - - HRESULT (STDMETHODCALLTYPE *DebugServerQueryInterface)( - IRpcStubBuffer* This, - void** ppv); - - void (STDMETHODCALLTYPE *DebugServerRelease)( - IRpcStubBuffer* This, - void* pv); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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) -#endif - -#endif - -#define IRpcStubBuffer_METHODS \ - /*** 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; - -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); - -#endif /* __IRpcStubBuffer_INTERFACE_DEFINED__ */ - -#ifndef __IPSFactoryBuffer_FWD_DEFINED__ -#define __IPSFactoryBuffer_FWD_DEFINED__ -typedef struct IPSFactoryBuffer IPSFactoryBuffer; -#endif - -typedef IPSFactoryBuffer *LPPSFACTORYBUFFER; - -/***************************************************************************** - * IPSFactoryBuffer interface - */ -#ifndef __IPSFactoryBuffer_INTERFACE_DEFINED__ -#define __IPSFactoryBuffer_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPSFactoryBuffer, 0xd5f569d0, 0x593b, 0x101a, 0xb5,0x69, 0x08,0x00,0x2b,0x2d,0xbf,0x7a); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPSFactoryBuffer : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CreateProxy( - IUnknown* pUnkOuter, - REFIID riid, - IRpcProxyBuffer** ppProxy, - void** ppv) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateStub( - REFIID riid, - IUnknown* pUnkServer, - IRpcStubBuffer** ppStub) = 0; - -}; -#else -typedef struct IPSFactoryBufferVtbl IPSFactoryBufferVtbl; -struct IPSFactoryBuffer { - const IPSFactoryBufferVtbl* lpVtbl; -}; -struct IPSFactoryBufferVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPSFactoryBuffer* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPSFactoryBuffer* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPSFactoryBuffer* This); - - /*** IPSFactoryBuffer methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateProxy)( - IPSFactoryBuffer* This, - IUnknown* pUnkOuter, - REFIID riid, - IRpcProxyBuffer** ppProxy, - void** ppv); - - HRESULT (STDMETHODCALLTYPE *CreateStub)( - IPSFactoryBuffer* This, - REFIID riid, - IUnknown* pUnkServer, - IRpcStubBuffer** ppStub); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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) -#endif - -#endif - -#define IPSFactoryBuffer_METHODS \ - /*** 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; - -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); - -#endif /* __IPSFactoryBuffer_INTERFACE_DEFINED__ */ - -#ifndef __IChannelHook_FWD_DEFINED__ -#define __IChannelHook_FWD_DEFINED__ -typedef struct IChannelHook IChannelHook; -#endif - -typedef IChannelHook *LPCHANNELHOOK; - -typedef struct SChannelHookCallInfo { - IID iid; - DWORD cbSize; - GUID uCausality; - DWORD dwServerPid; - DWORD iMethod; - void *pObject; -} SChannelHookCallInfo; - -/***************************************************************************** - * IChannelHook interface - */ -#ifndef __IChannelHook_INTERFACE_DEFINED__ -#define __IChannelHook_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IChannelHook, 0x1008c4a0, 0x7613, 0x11cf, 0x9a,0xf1, 0x00,0x20,0xaf,0x6e,0x72,0xf4); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IChannelHook : public IUnknown -{ - virtual void STDMETHODCALLTYPE ClientGetSize( - REFGUID uExtent, - REFIID riid, - ULONG* pDataSize) = 0; - - virtual void STDMETHODCALLTYPE ClientFillBuffer( - REFGUID uExtent, - REFIID riid, - ULONG* pDataSize, - void* pDataBuffer) = 0; - - virtual void STDMETHODCALLTYPE ClientNotify( - REFGUID uExtent, - REFIID riid, - ULONG cbDataSize, - void* pDataBuffer, - DWORD lDataRep, - HRESULT hrFault) = 0; - - virtual void STDMETHODCALLTYPE ServerNotify( - REFGUID uExtent, - REFIID riid, - ULONG cbDataSize, - void* pDataBuffer, - DWORD lDataRep) = 0; - - virtual void STDMETHODCALLTYPE ServerGetSize( - REFGUID uExtent, - REFIID riid, - HRESULT hrFault, - ULONG* pDataSize) = 0; - - virtual void STDMETHODCALLTYPE ServerFillBuffer( - REFGUID uExtent, - REFIID riid, - ULONG* pDataSize, - void* pDataBuffer, - HRESULT hrFault) = 0; - -}; -#else -typedef struct IChannelHookVtbl IChannelHookVtbl; -struct IChannelHook { - const IChannelHookVtbl* lpVtbl; -}; -struct IChannelHookVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IChannelHook* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IChannelHook* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IChannelHook* This); - - /*** IChannelHook methods ***/ - void (STDMETHODCALLTYPE *ClientGetSize)( - IChannelHook* This, - REFGUID uExtent, - REFIID riid, - ULONG* pDataSize); - - void (STDMETHODCALLTYPE *ClientFillBuffer)( - IChannelHook* This, - REFGUID uExtent, - REFIID riid, - ULONG* pDataSize, - void* pDataBuffer); - - void (STDMETHODCALLTYPE *ClientNotify)( - IChannelHook* This, - REFGUID uExtent, - REFIID riid, - ULONG cbDataSize, - void* pDataBuffer, - DWORD lDataRep, - HRESULT hrFault); - - void (STDMETHODCALLTYPE *ServerNotify)( - IChannelHook* This, - REFGUID uExtent, - REFIID riid, - ULONG cbDataSize, - void* pDataBuffer, - DWORD lDataRep); - - void (STDMETHODCALLTYPE *ServerGetSize)( - IChannelHook* This, - REFGUID uExtent, - REFIID riid, - HRESULT hrFault, - ULONG* pDataSize); - - void (STDMETHODCALLTYPE *ServerFillBuffer)( - IChannelHook* This, - REFGUID uExtent, - REFIID riid, - ULONG* pDataSize, - void* pDataBuffer, - HRESULT hrFault); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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) -#endif - -#endif - -#define IChannelHook_METHODS \ - /*** 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; - -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); - -#endif /* __IChannelHook_INTERFACE_DEFINED__ */ - -extern const FMTID FMTID_SummaryInformation; - -extern const FMTID FMTID_DocSummaryInformation; - -extern const FMTID FMTID_UserDefinedProperties; - -#ifndef __IClientSecurity_FWD_DEFINED__ -#define __IClientSecurity_FWD_DEFINED__ -typedef struct IClientSecurity IClientSecurity; -#endif - -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 - */ -#ifndef __IClientSecurity_INTERFACE_DEFINED__ -#define __IClientSecurity_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IClientSecurity, 0x0000013d, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IClientSecurity : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryBlanket( - IUnknown* pProxy, - DWORD* pAuthnSvc, - DWORD* pAuthzSvc, - OLECHAR** pServerPrincName, - DWORD* pAuthnLevel, - DWORD* pImpLevel, - void** pAuthInfo, - DWORD* pCapabilites) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBlanket( - IUnknown* pProxy, - DWORD AuthnSvc, - DWORD AuthzSvc, - OLECHAR* pServerPrincName, - DWORD AuthnLevel, - DWORD ImpLevel, - void* pAuthInfo, - DWORD Capabilities) = 0; - - virtual HRESULT STDMETHODCALLTYPE CopyProxy( - IUnknown* pProxy, - IUnknown** ppCopy) = 0; - -}; -#else -typedef struct IClientSecurityVtbl IClientSecurityVtbl; -struct IClientSecurity { - const IClientSecurityVtbl* lpVtbl; -}; -struct IClientSecurityVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IClientSecurity* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IClientSecurity* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IClientSecurity* This); - - /*** IClientSecurity methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryBlanket)( - IClientSecurity* This, - IUnknown* pProxy, - DWORD* pAuthnSvc, - DWORD* pAuthzSvc, - OLECHAR** pServerPrincName, - DWORD* pAuthnLevel, - DWORD* pImpLevel, - void** pAuthInfo, - DWORD* pCapabilites); - - HRESULT (STDMETHODCALLTYPE *SetBlanket)( - IClientSecurity* This, - IUnknown* pProxy, - DWORD AuthnSvc, - DWORD AuthzSvc, - OLECHAR* pServerPrincName, - DWORD AuthnLevel, - DWORD ImpLevel, - void* pAuthInfo, - DWORD Capabilities); - - HRESULT (STDMETHODCALLTYPE *CopyProxy)( - IClientSecurity* This, - IUnknown* pProxy, - IUnknown** ppCopy); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IClientSecurity_METHODS \ - /*** 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; - -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); - -#endif /* __IClientSecurity_INTERFACE_DEFINED__ */ - -#ifndef __IServerSecurity_FWD_DEFINED__ -#define __IServerSecurity_FWD_DEFINED__ -typedef struct IServerSecurity IServerSecurity; -#endif - -/***************************************************************************** - * IServerSecurity interface - */ -#ifndef __IServerSecurity_INTERFACE_DEFINED__ -#define __IServerSecurity_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IServerSecurity, 0x0000013e, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IServerSecurity : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryBlanket( - DWORD* pAuthnSvc, - DWORD* pAuthzSvc, - OLECHAR** pServerPrincName, - DWORD* pAuthnLevel, - DWORD* pImpLevel, - void** pPrivs, - DWORD* pCapabilities) = 0; - - virtual HRESULT STDMETHODCALLTYPE ImpersonateClient( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE RevertToSelf( - ) = 0; - - virtual BOOL STDMETHODCALLTYPE IsImpersonating( - ) = 0; - -}; -#else -typedef struct IServerSecurityVtbl IServerSecurityVtbl; -struct IServerSecurity { - const IServerSecurityVtbl* lpVtbl; -}; -struct IServerSecurityVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IServerSecurity* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IServerSecurity* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IServerSecurity* This); - - /*** IServerSecurity methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryBlanket)( - IServerSecurity* This, - DWORD* pAuthnSvc, - DWORD* pAuthzSvc, - OLECHAR** pServerPrincName, - DWORD* pAuthnLevel, - DWORD* pImpLevel, - void** pPrivs, - DWORD* pCapabilities); - - HRESULT (STDMETHODCALLTYPE *ImpersonateClient)( - IServerSecurity* This); - - HRESULT (STDMETHODCALLTYPE *RevertToSelf)( - IServerSecurity* This); - - BOOL (STDMETHODCALLTYPE *IsImpersonating)( - IServerSecurity* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IServerSecurity_METHODS \ - /*** 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; - -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); - -#endif /* __IServerSecurity_INTERFACE_DEFINED__ */ - -#ifndef __IAsyncSetup_FWD_DEFINED__ -#define __IAsyncSetup_FWD_DEFINED__ -typedef struct IAsyncSetup IAsyncSetup; -#endif - -/***************************************************************************** - * IAsyncSetup interface - */ -#ifndef __IAsyncSetup_INTERFACE_DEFINED__ -#define __IAsyncSetup_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAsyncSetup, 0x00000024, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAsyncSetup : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetAsyncManager( - REFIID riid, - IUnknown* pOuter, - DWORD dwFlags, - IUnknown** ppInner, - IAsyncManager** ppAsyncMgr) = 0; - -}; -#else -typedef struct IAsyncSetupVtbl IAsyncSetupVtbl; -struct IAsyncSetup { - const IAsyncSetupVtbl* lpVtbl; -}; -struct IAsyncSetupVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAsyncSetup* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAsyncSetup* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAsyncSetup* This); - - /*** IAsyncSetup methods ***/ - HRESULT (STDMETHODCALLTYPE *GetAsyncManager)( - IAsyncSetup* This, - REFIID riid, - IUnknown* pOuter, - DWORD dwFlags, - IUnknown** ppInner, - IAsyncManager** ppAsyncMgr); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IAsyncSetup_METHODS \ - /*** 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; - -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); - -#endif /* __IAsyncSetup_INTERFACE_DEFINED__ */ - -typedef enum tagDCOM_CALL_STATE { - DCOM_NONE = 0, - DCOM_CALL_COMPLETE = 1, - DCOM_CALL_CANCELED = 2 -} DCOM_CALL_STATE; - -/***************************************************************************** - * IAsyncManager interface - */ -#ifndef __IAsyncManager_INTERFACE_DEFINED__ -#define __IAsyncManager_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAsyncManager, 0x0000002a, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAsyncManager : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CompleteCall( - HRESULT Result) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCallContext( - REFIID riid, - void** pInterface) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetState( - ULONG* pulStateFlags) = 0; - -}; -#else -typedef struct IAsyncManagerVtbl IAsyncManagerVtbl; -struct IAsyncManager { - const IAsyncManagerVtbl* lpVtbl; -}; -struct IAsyncManagerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAsyncManager* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAsyncManager* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAsyncManager* This); - - /*** IAsyncManager methods ***/ - HRESULT (STDMETHODCALLTYPE *CompleteCall)( - IAsyncManager* This, - HRESULT Result); - - HRESULT (STDMETHODCALLTYPE *GetCallContext)( - IAsyncManager* This, - REFIID riid, - void** pInterface); - - HRESULT (STDMETHODCALLTYPE *GetState)( - IAsyncManager* This, - ULONG* pulStateFlags); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IAsyncManager_METHODS \ - /*** 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; - -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); - -#endif /* __IAsyncManager_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_OBJIDL_H */ diff --git a/include/ocidl.h b/include/ocidl.h deleted file mode 100644 index 1de4a23d1bb..00000000000 --- a/include/ocidl.h +++ /dev/null @@ -1,6365 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from ocidl.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_OCIDL_H -#define __WIDL_OCIDL_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#include -#include -typedef enum tagREADYSTATE { - READYSTATE_UNINITIALIZED = 0, - READYSTATE_LOADING = 1, - READYSTATE_LOADED = 2, - READYSTATE_INTERACTIVE = 3, - READYSTATE_COMPLETE = 4 -} READYSTATE; - -typedef struct tagVARIANT_BLOB { - DWORD clSize; - DWORD rpcReserved; - ULONGLONG ahData[1]; -} wireVARIANT_BLOB; - -typedef struct tagUserVARIANT { - wireVARIANT_BLOB pVarBlob; -} UserVARIANT; - -#ifndef __IFont_FWD_DEFINED__ -#define __IFont_FWD_DEFINED__ -typedef struct IFont IFont; -#endif - -typedef IFont *LPFONT; - -typedef TEXTMETRICW TEXTMETRICOLE, *LPTEXTMETRICOLE; - -/***************************************************************************** - * IFont interface - */ -#ifndef __IFont_INTERFACE_DEFINED__ -#define __IFont_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFont, 0xbef6e002, 0xa874, 0x101a, 0x8b,0xba, 0x00,0xaa,0x00,0x30,0x0c,0xab); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFont : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE get_Name( - BSTR* pname) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Name( - BSTR name) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Size( - CY* psize) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Size( - CY size) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Bold( - BOOL* pbold) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Bold( - BOOL bold) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Italic( - BOOL* pitalic) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Italic( - BOOL italic) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Underline( - BOOL* punderline) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Underline( - BOOL underline) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Strikethrough( - BOOL* pstrikethrough) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Strikethrough( - BOOL strikethrough) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Weight( - SHORT* pweight) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Weight( - SHORT weight) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Charset( - SHORT* pcharset) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_Charset( - SHORT charset) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_hFont( - HFONT* phfont) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IFont** ppfont) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsEqual( - IFont* pFontOther) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRatio( - LONG cyLogical, - LONG cyHimetric) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryTextMetrics( - TEXTMETRICOLE* ptm) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddRefHfont( - HFONT hfont) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseHfont( - HFONT hfont) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHdc( - HDC hdc) = 0; - -}; -#else -typedef struct IFontVtbl IFontVtbl; -struct IFont { - const IFontVtbl* lpVtbl; -}; -struct IFontVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFont* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFont* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFont* This); - - /*** IFont methods ***/ - HRESULT (STDMETHODCALLTYPE *get_Name)( - IFont* This, - BSTR* pname); - - HRESULT (STDMETHODCALLTYPE *put_Name)( - IFont* This, - BSTR name); - - HRESULT (STDMETHODCALLTYPE *get_Size)( - IFont* This, - CY* psize); - - HRESULT (STDMETHODCALLTYPE *put_Size)( - IFont* This, - CY size); - - HRESULT (STDMETHODCALLTYPE *get_Bold)( - IFont* This, - BOOL* pbold); - - HRESULT (STDMETHODCALLTYPE *put_Bold)( - IFont* This, - BOOL bold); - - HRESULT (STDMETHODCALLTYPE *get_Italic)( - IFont* This, - BOOL* pitalic); - - HRESULT (STDMETHODCALLTYPE *put_Italic)( - IFont* This, - BOOL italic); - - HRESULT (STDMETHODCALLTYPE *get_Underline)( - IFont* This, - BOOL* punderline); - - HRESULT (STDMETHODCALLTYPE *put_Underline)( - IFont* This, - BOOL underline); - - HRESULT (STDMETHODCALLTYPE *get_Strikethrough)( - IFont* This, - BOOL* pstrikethrough); - - HRESULT (STDMETHODCALLTYPE *put_Strikethrough)( - IFont* This, - BOOL strikethrough); - - HRESULT (STDMETHODCALLTYPE *get_Weight)( - IFont* This, - SHORT* pweight); - - HRESULT (STDMETHODCALLTYPE *put_Weight)( - IFont* This, - SHORT weight); - - HRESULT (STDMETHODCALLTYPE *get_Charset)( - IFont* This, - SHORT* pcharset); - - HRESULT (STDMETHODCALLTYPE *put_Charset)( - IFont* This, - SHORT charset); - - HRESULT (STDMETHODCALLTYPE *get_hFont)( - IFont* This, - HFONT* phfont); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IFont* This, - IFont** ppfont); - - HRESULT (STDMETHODCALLTYPE *IsEqual)( - IFont* This, - IFont* pFontOther); - - HRESULT (STDMETHODCALLTYPE *SetRatio)( - IFont* This, - LONG cyLogical, - LONG cyHimetric); - - HRESULT (STDMETHODCALLTYPE *QueryTextMetrics)( - IFont* This, - TEXTMETRICOLE* ptm); - - HRESULT (STDMETHODCALLTYPE *AddRefHfont)( - IFont* This, - HFONT hfont); - - HRESULT (STDMETHODCALLTYPE *ReleaseHfont)( - IFont* This, - HFONT hfont); - - HRESULT (STDMETHODCALLTYPE *SetHdc)( - IFont* This, - HDC hdc); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFont_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFont_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFont_Release(p) (p)->lpVtbl->Release(p) -/*** IFont methods ***/ -#define IFont_get_Name(p,a) (p)->lpVtbl->get_Name(p,a) -#define IFont_put_Name(p,a) (p)->lpVtbl->put_Name(p,a) -#define IFont_get_Size(p,a) (p)->lpVtbl->get_Size(p,a) -#define IFont_put_Size(p,a) (p)->lpVtbl->put_Size(p,a) -#define IFont_get_Bold(p,a) (p)->lpVtbl->get_Bold(p,a) -#define IFont_put_Bold(p,a) (p)->lpVtbl->put_Bold(p,a) -#define IFont_get_Italic(p,a) (p)->lpVtbl->get_Italic(p,a) -#define IFont_put_Italic(p,a) (p)->lpVtbl->put_Italic(p,a) -#define IFont_get_Underline(p,a) (p)->lpVtbl->get_Underline(p,a) -#define IFont_put_Underline(p,a) (p)->lpVtbl->put_Underline(p,a) -#define IFont_get_Strikethrough(p,a) (p)->lpVtbl->get_Strikethrough(p,a) -#define IFont_put_Strikethrough(p,a) (p)->lpVtbl->put_Strikethrough(p,a) -#define IFont_get_Weight(p,a) (p)->lpVtbl->get_Weight(p,a) -#define IFont_put_Weight(p,a) (p)->lpVtbl->put_Weight(p,a) -#define IFont_get_Charset(p,a) (p)->lpVtbl->get_Charset(p,a) -#define IFont_put_Charset(p,a) (p)->lpVtbl->put_Charset(p,a) -#define IFont_get_hFont(p,a) (p)->lpVtbl->get_hFont(p,a) -#define IFont_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#define IFont_IsEqual(p,a) (p)->lpVtbl->IsEqual(p,a) -#define IFont_SetRatio(p,a,b) (p)->lpVtbl->SetRatio(p,a,b) -#define IFont_QueryTextMetrics(p,a) (p)->lpVtbl->QueryTextMetrics(p,a) -#define IFont_AddRefHfont(p,a) (p)->lpVtbl->AddRefHfont(p,a) -#define IFont_ReleaseHfont(p,a) (p)->lpVtbl->ReleaseHfont(p,a) -#define IFont_SetHdc(p,a) (p)->lpVtbl->SetHdc(p,a) -#endif - -#endif - -#define IFont_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFont methods ***/ \ - STDMETHOD_(HRESULT,get_Name)(THIS_ BSTR* pname) PURE; \ - STDMETHOD_(HRESULT,put_Name)(THIS_ BSTR name) PURE; \ - STDMETHOD_(HRESULT,get_Size)(THIS_ CY* psize) PURE; \ - STDMETHOD_(HRESULT,put_Size)(THIS_ CY size) PURE; \ - STDMETHOD_(HRESULT,get_Bold)(THIS_ BOOL* pbold) PURE; \ - STDMETHOD_(HRESULT,put_Bold)(THIS_ BOOL bold) PURE; \ - STDMETHOD_(HRESULT,get_Italic)(THIS_ BOOL* pitalic) PURE; \ - STDMETHOD_(HRESULT,put_Italic)(THIS_ BOOL italic) PURE; \ - STDMETHOD_(HRESULT,get_Underline)(THIS_ BOOL* punderline) PURE; \ - STDMETHOD_(HRESULT,put_Underline)(THIS_ BOOL underline) PURE; \ - STDMETHOD_(HRESULT,get_Strikethrough)(THIS_ BOOL* pstrikethrough) PURE; \ - STDMETHOD_(HRESULT,put_Strikethrough)(THIS_ BOOL strikethrough) PURE; \ - STDMETHOD_(HRESULT,get_Weight)(THIS_ SHORT* pweight) PURE; \ - STDMETHOD_(HRESULT,put_Weight)(THIS_ SHORT weight) PURE; \ - STDMETHOD_(HRESULT,get_Charset)(THIS_ SHORT* pcharset) PURE; \ - STDMETHOD_(HRESULT,put_Charset)(THIS_ SHORT charset) PURE; \ - STDMETHOD_(HRESULT,get_hFont)(THIS_ HFONT* phfont) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IFont** ppfont) PURE; \ - STDMETHOD_(HRESULT,IsEqual)(THIS_ IFont* pFontOther) PURE; \ - STDMETHOD_(HRESULT,SetRatio)(THIS_ LONG cyLogical, LONG cyHimetric) PURE; \ - STDMETHOD_(HRESULT,QueryTextMetrics)(THIS_ TEXTMETRICOLE* ptm) PURE; \ - STDMETHOD_(HRESULT,AddRefHfont)(THIS_ HFONT hfont) PURE; \ - STDMETHOD_(HRESULT,ReleaseHfont)(THIS_ HFONT hfont) PURE; \ - STDMETHOD_(HRESULT,SetHdc)(THIS_ HDC hdc) PURE; - -HRESULT CALLBACK IFont_get_Name_Proxy( - IFont* This, - BSTR* pname); -void __RPC_STUB IFont_get_Name_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_put_Name_Proxy( - IFont* This, - BSTR name); -void __RPC_STUB IFont_put_Name_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_get_Size_Proxy( - IFont* This, - CY* psize); -void __RPC_STUB IFont_get_Size_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_put_Size_Proxy( - IFont* This, - CY size); -void __RPC_STUB IFont_put_Size_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_get_Bold_Proxy( - IFont* This, - BOOL* pbold); -void __RPC_STUB IFont_get_Bold_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_put_Bold_Proxy( - IFont* This, - BOOL bold); -void __RPC_STUB IFont_put_Bold_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_get_Italic_Proxy( - IFont* This, - BOOL* pitalic); -void __RPC_STUB IFont_get_Italic_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_put_Italic_Proxy( - IFont* This, - BOOL italic); -void __RPC_STUB IFont_put_Italic_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_get_Underline_Proxy( - IFont* This, - BOOL* punderline); -void __RPC_STUB IFont_get_Underline_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_put_Underline_Proxy( - IFont* This, - BOOL underline); -void __RPC_STUB IFont_put_Underline_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_get_Strikethrough_Proxy( - IFont* This, - BOOL* pstrikethrough); -void __RPC_STUB IFont_get_Strikethrough_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_put_Strikethrough_Proxy( - IFont* This, - BOOL strikethrough); -void __RPC_STUB IFont_put_Strikethrough_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_get_Weight_Proxy( - IFont* This, - SHORT* pweight); -void __RPC_STUB IFont_get_Weight_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_put_Weight_Proxy( - IFont* This, - SHORT weight); -void __RPC_STUB IFont_put_Weight_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_get_Charset_Proxy( - IFont* This, - SHORT* pcharset); -void __RPC_STUB IFont_get_Charset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_put_Charset_Proxy( - IFont* This, - SHORT charset); -void __RPC_STUB IFont_put_Charset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_get_hFont_Proxy( - IFont* This, - HFONT* phfont); -void __RPC_STUB IFont_get_hFont_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_Clone_Proxy( - IFont* This, - IFont** ppfont); -void __RPC_STUB IFont_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_IsEqual_Proxy( - IFont* This, - IFont* pFontOther); -void __RPC_STUB IFont_IsEqual_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_SetRatio_Proxy( - IFont* This, - LONG cyLogical, - LONG cyHimetric); -void __RPC_STUB IFont_SetRatio_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_QueryTextMetrics_Proxy( - IFont* This, - TEXTMETRICOLE* ptm); -void __RPC_STUB IFont_QueryTextMetrics_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_AddRefHfont_Proxy( - IFont* This, - HFONT hfont); -void __RPC_STUB IFont_AddRefHfont_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_ReleaseHfont_Proxy( - IFont* This, - HFONT hfont); -void __RPC_STUB IFont_ReleaseHfont_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFont_SetHdc_Proxy( - IFont* This, - HDC hdc); -void __RPC_STUB IFont_SetHdc_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFont_INTERFACE_DEFINED__ */ - -#ifndef __IFontDisp_FWD_DEFINED__ -#define __IFontDisp_FWD_DEFINED__ -typedef struct IFontDisp IFontDisp; -#endif - -typedef IFontDisp *LPFONTDISP; - -/***************************************************************************** - * IFontDisp interface - */ -#ifndef __IFontDisp_INTERFACE_DEFINED__ -#define __IFontDisp_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFontDisp, 0xbef6e003, 0xa874, 0x101a, 0x8b,0xba, 0x00,0xaa,0x00,0x30,0x0c,0xab); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFontDisp : public IDispatch -{ -}; -#else -typedef struct IFontDispVtbl IFontDispVtbl; -struct IFontDisp { - const IFontDispVtbl* lpVtbl; -}; -struct IFontDispVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFontDisp* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFontDisp* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFontDisp* This); - - /*** IDispatch methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)( - IFontDisp* This, - UINT* pctinfo); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - IFontDisp* This, - UINT iTInfo, - LCID lcid, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)( - IFontDisp* This, - REFIID riid, - LPOLESTR* rgszNames, - UINT cNames, - LCID lcid, - DISPID* rgDispId); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - IFontDisp* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFontDisp_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFontDisp_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFontDisp_Release(p) (p)->lpVtbl->Release(p) -/*** IDispatch methods ***/ -#define IFontDisp_GetTypeInfoCount(p,a) (p)->lpVtbl->GetTypeInfoCount(p,a) -#define IFontDisp_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c) -#define IFontDisp_GetIDsOfNames(p,a,b,c,d,e) (p)->lpVtbl->GetIDsOfNames(p,a,b,c,d,e) -#define IFontDisp_Invoke(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g,h) -#endif - -#endif - -#define IFontDisp_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDispatch methods ***/ \ - STDMETHOD_(HRESULT,GetTypeInfoCount)(THIS_ UINT* pctinfo) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,GetIDsOfNames)(THIS_ REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgDispId) PURE; \ - STDMETHOD_(HRESULT,Invoke)(THIS_ DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) PURE; - - -#endif /* __IFontDisp_INTERFACE_DEFINED__ */ - -#ifndef __IPicture_FWD_DEFINED__ -#define __IPicture_FWD_DEFINED__ -typedef struct IPicture IPicture; -#endif - -typedef IPicture *LPPICTURE; - -typedef enum tagPicture { - PICTURE_SCALABLE = 0x1, - PICTURE_TRANSPARENT = 0x2 -} PICTUREATTRIBUTES; - -typedef UINT OLE_HANDLE; - -typedef LONG OLE_XPOS_HIMETRIC; - -typedef LONG OLE_YPOS_HIMETRIC; - -typedef LONG OLE_XSIZE_HIMETRIC; - -typedef LONG OLE_YSIZE_HIMETRIC; - -/***************************************************************************** - * IPicture interface - */ -#ifndef __IPicture_INTERFACE_DEFINED__ -#define __IPicture_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPicture, 0x7bf80980, 0xbf32, 0x101a, 0x8b,0xbb, 0x00,0xaa,0x00,0x30,0x0c,0xab); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPicture : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE get_Handle( - OLE_HANDLE* pHandle) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_hPal( - OLE_HANDLE* phPal) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Type( - SHORT* pType) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Width( - OLE_XSIZE_HIMETRIC* pWidth) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Height( - OLE_YSIZE_HIMETRIC* pHeight) = 0; - - virtual HRESULT STDMETHODCALLTYPE Render( - HDC hdc, - LONG x, - LONG y, - LONG cx, - LONG cy, - OLE_XPOS_HIMETRIC xSrc, - OLE_YPOS_HIMETRIC ySrc, - OLE_XSIZE_HIMETRIC cxSrc, - OLE_YSIZE_HIMETRIC cySrc, - LPCRECT pRcWBounds) = 0; - - virtual HRESULT STDMETHODCALLTYPE set_hPal( - OLE_HANDLE hPal) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_CurDC( - HDC* phDC) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectPicture( - HDC hDCIn, - HDC* phDCOut, - OLE_HANDLE* phBmpOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_KeepOriginalFormat( - BOOL* pKeep) = 0; - - virtual HRESULT STDMETHODCALLTYPE put_KeepOriginalFormat( - BOOL keep) = 0; - - virtual HRESULT STDMETHODCALLTYPE PictureChanged( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SaveAsFile( - LPSTREAM pStream, - BOOL fSaveMemCopy, - LONG* pCbSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE get_Attributes( - DWORD* pDwAttr) = 0; - -}; -#else -typedef struct IPictureVtbl IPictureVtbl; -struct IPicture { - const IPictureVtbl* lpVtbl; -}; -struct IPictureVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPicture* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPicture* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPicture* This); - - /*** IPicture methods ***/ - HRESULT (STDMETHODCALLTYPE *get_Handle)( - IPicture* This, - OLE_HANDLE* pHandle); - - HRESULT (STDMETHODCALLTYPE *get_hPal)( - IPicture* This, - OLE_HANDLE* phPal); - - HRESULT (STDMETHODCALLTYPE *get_Type)( - IPicture* This, - SHORT* pType); - - HRESULT (STDMETHODCALLTYPE *get_Width)( - IPicture* This, - OLE_XSIZE_HIMETRIC* pWidth); - - HRESULT (STDMETHODCALLTYPE *get_Height)( - IPicture* This, - OLE_YSIZE_HIMETRIC* pHeight); - - HRESULT (STDMETHODCALLTYPE *Render)( - IPicture* This, - HDC hdc, - LONG x, - LONG y, - LONG cx, - LONG cy, - OLE_XPOS_HIMETRIC xSrc, - OLE_YPOS_HIMETRIC ySrc, - OLE_XSIZE_HIMETRIC cxSrc, - OLE_YSIZE_HIMETRIC cySrc, - LPCRECT pRcWBounds); - - HRESULT (STDMETHODCALLTYPE *set_hPal)( - IPicture* This, - OLE_HANDLE hPal); - - HRESULT (STDMETHODCALLTYPE *get_CurDC)( - IPicture* This, - HDC* phDC); - - HRESULT (STDMETHODCALLTYPE *SelectPicture)( - IPicture* This, - HDC hDCIn, - HDC* phDCOut, - OLE_HANDLE* phBmpOut); - - HRESULT (STDMETHODCALLTYPE *get_KeepOriginalFormat)( - IPicture* This, - BOOL* pKeep); - - HRESULT (STDMETHODCALLTYPE *put_KeepOriginalFormat)( - IPicture* This, - BOOL keep); - - HRESULT (STDMETHODCALLTYPE *PictureChanged)( - IPicture* This); - - HRESULT (STDMETHODCALLTYPE *SaveAsFile)( - IPicture* This, - LPSTREAM pStream, - BOOL fSaveMemCopy, - LONG* pCbSize); - - HRESULT (STDMETHODCALLTYPE *get_Attributes)( - IPicture* This, - DWORD* pDwAttr); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPicture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPicture_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPicture_Release(p) (p)->lpVtbl->Release(p) -/*** IPicture methods ***/ -#define IPicture_get_Handle(p,a) (p)->lpVtbl->get_Handle(p,a) -#define IPicture_get_hPal(p,a) (p)->lpVtbl->get_hPal(p,a) -#define IPicture_get_Type(p,a) (p)->lpVtbl->get_Type(p,a) -#define IPicture_get_Width(p,a) (p)->lpVtbl->get_Width(p,a) -#define IPicture_get_Height(p,a) (p)->lpVtbl->get_Height(p,a) -#define IPicture_Render(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->Render(p,a,b,c,d,e,f,g,h,i,j) -#define IPicture_set_hPal(p,a) (p)->lpVtbl->set_hPal(p,a) -#define IPicture_get_CurDC(p,a) (p)->lpVtbl->get_CurDC(p,a) -#define IPicture_SelectPicture(p,a,b,c) (p)->lpVtbl->SelectPicture(p,a,b,c) -#define IPicture_get_KeepOriginalFormat(p,a) (p)->lpVtbl->get_KeepOriginalFormat(p,a) -#define IPicture_put_KeepOriginalFormat(p,a) (p)->lpVtbl->put_KeepOriginalFormat(p,a) -#define IPicture_PictureChanged(p) (p)->lpVtbl->PictureChanged(p) -#define IPicture_SaveAsFile(p,a,b,c) (p)->lpVtbl->SaveAsFile(p,a,b,c) -#define IPicture_get_Attributes(p,a) (p)->lpVtbl->get_Attributes(p,a) -#endif - -#endif - -#define IPicture_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPicture methods ***/ \ - STDMETHOD_(HRESULT,get_Handle)(THIS_ OLE_HANDLE* pHandle) PURE; \ - STDMETHOD_(HRESULT,get_hPal)(THIS_ OLE_HANDLE* phPal) PURE; \ - STDMETHOD_(HRESULT,get_Type)(THIS_ SHORT* pType) PURE; \ - STDMETHOD_(HRESULT,get_Width)(THIS_ OLE_XSIZE_HIMETRIC* pWidth) PURE; \ - STDMETHOD_(HRESULT,get_Height)(THIS_ OLE_YSIZE_HIMETRIC* pHeight) PURE; \ - STDMETHOD_(HRESULT,Render)(THIS_ HDC hdc, LONG x, LONG y, LONG cx, LONG cy, OLE_XPOS_HIMETRIC xSrc, OLE_YPOS_HIMETRIC ySrc, OLE_XSIZE_HIMETRIC cxSrc, OLE_YSIZE_HIMETRIC cySrc, LPCRECT pRcWBounds) PURE; \ - STDMETHOD_(HRESULT,set_hPal)(THIS_ OLE_HANDLE hPal) PURE; \ - STDMETHOD_(HRESULT,get_CurDC)(THIS_ HDC* phDC) PURE; \ - STDMETHOD_(HRESULT,SelectPicture)(THIS_ HDC hDCIn, HDC* phDCOut, OLE_HANDLE* phBmpOut) PURE; \ - STDMETHOD_(HRESULT,get_KeepOriginalFormat)(THIS_ BOOL* pKeep) PURE; \ - STDMETHOD_(HRESULT,put_KeepOriginalFormat)(THIS_ BOOL keep) PURE; \ - STDMETHOD_(HRESULT,PictureChanged)(THIS) PURE; \ - STDMETHOD_(HRESULT,SaveAsFile)(THIS_ LPSTREAM pStream, BOOL fSaveMemCopy, LONG* pCbSize) PURE; \ - STDMETHOD_(HRESULT,get_Attributes)(THIS_ DWORD* pDwAttr) PURE; - -HRESULT CALLBACK IPicture_get_Handle_Proxy( - IPicture* This, - OLE_HANDLE* pHandle); -void __RPC_STUB IPicture_get_Handle_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_get_hPal_Proxy( - IPicture* This, - OLE_HANDLE* phPal); -void __RPC_STUB IPicture_get_hPal_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_get_Type_Proxy( - IPicture* This, - SHORT* pType); -void __RPC_STUB IPicture_get_Type_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_get_Width_Proxy( - IPicture* This, - OLE_XSIZE_HIMETRIC* pWidth); -void __RPC_STUB IPicture_get_Width_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_get_Height_Proxy( - IPicture* This, - OLE_YSIZE_HIMETRIC* pHeight); -void __RPC_STUB IPicture_get_Height_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_Render_Proxy( - IPicture* This, - HDC hdc, - LONG x, - LONG y, - LONG cx, - LONG cy, - OLE_XPOS_HIMETRIC xSrc, - OLE_YPOS_HIMETRIC ySrc, - OLE_XSIZE_HIMETRIC cxSrc, - OLE_YSIZE_HIMETRIC cySrc, - LPCRECT pRcWBounds); -void __RPC_STUB IPicture_Render_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_set_hPal_Proxy( - IPicture* This, - OLE_HANDLE hPal); -void __RPC_STUB IPicture_set_hPal_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_get_CurDC_Proxy( - IPicture* This, - HDC* phDC); -void __RPC_STUB IPicture_get_CurDC_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_SelectPicture_Proxy( - IPicture* This, - HDC hDCIn, - HDC* phDCOut, - OLE_HANDLE* phBmpOut); -void __RPC_STUB IPicture_SelectPicture_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_get_KeepOriginalFormat_Proxy( - IPicture* This, - BOOL* pKeep); -void __RPC_STUB IPicture_get_KeepOriginalFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_put_KeepOriginalFormat_Proxy( - IPicture* This, - BOOL keep); -void __RPC_STUB IPicture_put_KeepOriginalFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_PictureChanged_Proxy( - IPicture* This); -void __RPC_STUB IPicture_PictureChanged_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_SaveAsFile_Proxy( - IPicture* This, - LPSTREAM pStream, - BOOL fSaveMemCopy, - LONG* pCbSize); -void __RPC_STUB IPicture_SaveAsFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPicture_get_Attributes_Proxy( - IPicture* This, - DWORD* pDwAttr); -void __RPC_STUB IPicture_get_Attributes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPicture_INTERFACE_DEFINED__ */ - -#ifndef __IPictureDisp_FWD_DEFINED__ -#define __IPictureDisp_FWD_DEFINED__ -typedef struct IPictureDisp IPictureDisp; -#endif - -typedef IPictureDisp *LPPICTUREDISP; - -/***************************************************************************** - * IPictureDisp interface - */ -#ifndef __IPictureDisp_INTERFACE_DEFINED__ -#define __IPictureDisp_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPictureDisp, 0x7bf80981, 0xbf32, 0x101a, 0x8b,0xbb, 0x00,0xaa,0x00,0x30,0x0c,0xab); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPictureDisp : public IDispatch -{ -}; -#else -typedef struct IPictureDispVtbl IPictureDispVtbl; -struct IPictureDisp { - const IPictureDispVtbl* lpVtbl; -}; -struct IPictureDispVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPictureDisp* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPictureDisp* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPictureDisp* This); - - /*** IDispatch methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)( - IPictureDisp* This, - UINT* pctinfo); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - IPictureDisp* This, - UINT iTInfo, - LCID lcid, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)( - IPictureDisp* This, - REFIID riid, - LPOLESTR* rgszNames, - UINT cNames, - LCID lcid, - DISPID* rgDispId); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - IPictureDisp* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPictureDisp_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPictureDisp_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPictureDisp_Release(p) (p)->lpVtbl->Release(p) -/*** IDispatch methods ***/ -#define IPictureDisp_GetTypeInfoCount(p,a) (p)->lpVtbl->GetTypeInfoCount(p,a) -#define IPictureDisp_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c) -#define IPictureDisp_GetIDsOfNames(p,a,b,c,d,e) (p)->lpVtbl->GetIDsOfNames(p,a,b,c,d,e) -#define IPictureDisp_Invoke(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g,h) -#endif - -#endif - -#define IPictureDisp_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDispatch methods ***/ \ - STDMETHOD_(HRESULT,GetTypeInfoCount)(THIS_ UINT* pctinfo) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,GetIDsOfNames)(THIS_ REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgDispId) PURE; \ - STDMETHOD_(HRESULT,Invoke)(THIS_ DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) PURE; - - -#endif /* __IPictureDisp_INTERFACE_DEFINED__ */ - -#ifndef __IOleControl_FWD_DEFINED__ -#define __IOleControl_FWD_DEFINED__ -typedef struct IOleControl IOleControl; -#endif - -typedef IOleControl *LPOLECONTROL; - -typedef struct tagCONTROLINFO { - ULONG cb; - HACCEL hAccel; - USHORT cAccel; - DWORD dwFlags; -} CONTROLINFO, *LPCONTROLINFO; - -typedef enum tagCTRLINFO { - CTRLINFO_EATS_RETURN = 1, - CTRLINFO_EATS_ESCAPE = 2 -} CTRLINFO; - -/***************************************************************************** - * IOleControl interface - */ -#ifndef __IOleControl_INTERFACE_DEFINED__ -#define __IOleControl_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleControl, 0xb196b288, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleControl : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetControlInfo( - CONTROLINFO* pCI) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnMnemonic( - MSG* pMsg) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnAmbientPropertyChange( - DISPID dispID) = 0; - - virtual HRESULT STDMETHODCALLTYPE FreezeEvents( - BOOL bFreeze) = 0; - -}; -#else -typedef struct IOleControlVtbl IOleControlVtbl; -struct IOleControl { - const IOleControlVtbl* lpVtbl; -}; -struct IOleControlVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleControl* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleControl* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleControl* This); - - /*** IOleControl methods ***/ - HRESULT (STDMETHODCALLTYPE *GetControlInfo)( - IOleControl* This, - CONTROLINFO* pCI); - - HRESULT (STDMETHODCALLTYPE *OnMnemonic)( - IOleControl* This, - MSG* pMsg); - - HRESULT (STDMETHODCALLTYPE *OnAmbientPropertyChange)( - IOleControl* This, - DISPID dispID); - - HRESULT (STDMETHODCALLTYPE *FreezeEvents)( - IOleControl* This, - BOOL bFreeze); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleControl_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleControl_Release(p) (p)->lpVtbl->Release(p) -/*** IOleControl methods ***/ -#define IOleControl_GetControlInfo(p,a) (p)->lpVtbl->GetControlInfo(p,a) -#define IOleControl_OnMnemonic(p,a) (p)->lpVtbl->OnMnemonic(p,a) -#define IOleControl_OnAmbientPropertyChange(p,a) (p)->lpVtbl->OnAmbientPropertyChange(p,a) -#define IOleControl_FreezeEvents(p,a) (p)->lpVtbl->FreezeEvents(p,a) -#endif - -#endif - -#define IOleControl_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleControl methods ***/ \ - STDMETHOD_(HRESULT,GetControlInfo)(THIS_ CONTROLINFO* pCI) PURE; \ - STDMETHOD_(HRESULT,OnMnemonic)(THIS_ MSG* pMsg) PURE; \ - STDMETHOD_(HRESULT,OnAmbientPropertyChange)(THIS_ DISPID dispID) PURE; \ - STDMETHOD_(HRESULT,FreezeEvents)(THIS_ BOOL bFreeze) PURE; - -HRESULT CALLBACK IOleControl_GetControlInfo_Proxy( - IOleControl* This, - CONTROLINFO* pCI); -void __RPC_STUB IOleControl_GetControlInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleControl_OnMnemonic_Proxy( - IOleControl* This, - MSG* pMsg); -void __RPC_STUB IOleControl_OnMnemonic_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleControl_OnAmbientPropertyChange_Proxy( - IOleControl* This, - DISPID dispID); -void __RPC_STUB IOleControl_OnAmbientPropertyChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleControl_FreezeEvents_Proxy( - IOleControl* This, - BOOL bFreeze); -void __RPC_STUB IOleControl_FreezeEvents_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleControl_INTERFACE_DEFINED__ */ - -#ifndef __IOleControlSite_FWD_DEFINED__ -#define __IOleControlSite_FWD_DEFINED__ -typedef struct IOleControlSite IOleControlSite; -#endif - -typedef IOleControlSite *LPOLECONTROLSITE; - -typedef struct tagPOINTF { - FLOAT x; - FLOAT y; -} POINTF, *LPPOINTF; - -typedef enum tagXFORMCOORDS { - XFORMCOORDS_POSITION = 0x1, - XFORMCOORDS_SIZE = 0x2, - XFORMCOORDS_HIMETRICTOCONTAINER = 0x4, - XFORMCOORDS_CONTAINERTOHIMETRIC = 0x8, - XFORMCOORDS_EVENTCOMPAT = 0x10 -} XFORMCOORDS; - -/***************************************************************************** - * IOleControlSite interface - */ -#ifndef __IOleControlSite_INTERFACE_DEFINED__ -#define __IOleControlSite_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleControlSite, 0xb196b289, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleControlSite : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE OnControlInfoChanged( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockInPlaceActive( - BOOL fLock) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetExtendedControl( - IDispatch** ppDisp) = 0; - - virtual HRESULT STDMETHODCALLTYPE TransformCoords( - POINTL* pPtlHimetric, - POINTF* pPtfContainer, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator( - MSG* pMsg, - DWORD grfModifiers) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnFocus( - BOOL fGotFocus) = 0; - - virtual HRESULT STDMETHODCALLTYPE ShowPropertyFrame( - ) = 0; - -}; -#else -typedef struct IOleControlSiteVtbl IOleControlSiteVtbl; -struct IOleControlSite { - const IOleControlSiteVtbl* lpVtbl; -}; -struct IOleControlSiteVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleControlSite* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleControlSite* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleControlSite* This); - - /*** IOleControlSite methods ***/ - HRESULT (STDMETHODCALLTYPE *OnControlInfoChanged)( - IOleControlSite* This); - - HRESULT (STDMETHODCALLTYPE *LockInPlaceActive)( - IOleControlSite* This, - BOOL fLock); - - HRESULT (STDMETHODCALLTYPE *GetExtendedControl)( - IOleControlSite* This, - IDispatch** ppDisp); - - HRESULT (STDMETHODCALLTYPE *TransformCoords)( - IOleControlSite* This, - POINTL* pPtlHimetric, - POINTF* pPtfContainer, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *TranslateAccelerator)( - IOleControlSite* This, - MSG* pMsg, - DWORD grfModifiers); - - HRESULT (STDMETHODCALLTYPE *OnFocus)( - IOleControlSite* This, - BOOL fGotFocus); - - HRESULT (STDMETHODCALLTYPE *ShowPropertyFrame)( - IOleControlSite* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleControlSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleControlSite_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleControlSite_Release(p) (p)->lpVtbl->Release(p) -/*** IOleControlSite methods ***/ -#define IOleControlSite_OnControlInfoChanged(p) (p)->lpVtbl->OnControlInfoChanged(p) -#define IOleControlSite_LockInPlaceActive(p,a) (p)->lpVtbl->LockInPlaceActive(p,a) -#define IOleControlSite_GetExtendedControl(p,a) (p)->lpVtbl->GetExtendedControl(p,a) -#define IOleControlSite_TransformCoords(p,a,b,c) (p)->lpVtbl->TransformCoords(p,a,b,c) -#define IOleControlSite_TranslateAccelerator(p,a,b) (p)->lpVtbl->TranslateAccelerator(p,a,b) -#define IOleControlSite_OnFocus(p,a) (p)->lpVtbl->OnFocus(p,a) -#define IOleControlSite_ShowPropertyFrame(p) (p)->lpVtbl->ShowPropertyFrame(p) -#endif - -#endif - -#define IOleControlSite_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleControlSite methods ***/ \ - STDMETHOD_(HRESULT,OnControlInfoChanged)(THIS) PURE; \ - STDMETHOD_(HRESULT,LockInPlaceActive)(THIS_ BOOL fLock) PURE; \ - STDMETHOD_(HRESULT,GetExtendedControl)(THIS_ IDispatch** ppDisp) PURE; \ - STDMETHOD_(HRESULT,TransformCoords)(THIS_ POINTL* pPtlHimetric, POINTF* pPtfContainer, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,TranslateAccelerator)(THIS_ MSG* pMsg, DWORD grfModifiers) PURE; \ - STDMETHOD_(HRESULT,OnFocus)(THIS_ BOOL fGotFocus) PURE; \ - STDMETHOD_(HRESULT,ShowPropertyFrame)(THIS) PURE; - -HRESULT CALLBACK IOleControlSite_OnControlInfoChanged_Proxy( - IOleControlSite* This); -void __RPC_STUB IOleControlSite_OnControlInfoChanged_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleControlSite_LockInPlaceActive_Proxy( - IOleControlSite* This, - BOOL fLock); -void __RPC_STUB IOleControlSite_LockInPlaceActive_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleControlSite_GetExtendedControl_Proxy( - IOleControlSite* This, - IDispatch** ppDisp); -void __RPC_STUB IOleControlSite_GetExtendedControl_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleControlSite_TransformCoords_Proxy( - IOleControlSite* This, - POINTL* pPtlHimetric, - POINTF* pPtfContainer, - DWORD dwFlags); -void __RPC_STUB IOleControlSite_TransformCoords_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleControlSite_TranslateAccelerator_Proxy( - IOleControlSite* This, - MSG* pMsg, - DWORD grfModifiers); -void __RPC_STUB IOleControlSite_TranslateAccelerator_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleControlSite_OnFocus_Proxy( - IOleControlSite* This, - BOOL fGotFocus); -void __RPC_STUB IOleControlSite_OnFocus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleControlSite_ShowPropertyFrame_Proxy( - IOleControlSite* This); -void __RPC_STUB IOleControlSite_ShowPropertyFrame_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleControlSite_INTERFACE_DEFINED__ */ - -#ifndef __IOleInPlaceSiteEx_FWD_DEFINED__ -#define __IOleInPlaceSiteEx_FWD_DEFINED__ -typedef struct IOleInPlaceSiteEx IOleInPlaceSiteEx; -#endif - -typedef IOleInPlaceSiteEx *LPOLEINPLACESITEEX; - -typedef enum tagACTIVATEFLAGS { - ACTIVATE_WINDOWLESS = 1 -} ACTIVATE_FLAGS; - -/***************************************************************************** - * IOleInPlaceSiteEx interface - */ -#ifndef __IOleInPlaceSiteEx_INTERFACE_DEFINED__ -#define __IOleInPlaceSiteEx_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleInPlaceSiteEx, 0x9c2cad80, 0x3424, 0x11cf, 0xb6,0x70, 0x00,0xaa,0x00,0x4c,0xd6,0xd8); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleInPlaceSiteEx : public IOleInPlaceSite -{ - virtual HRESULT STDMETHODCALLTYPE OnInPlaceActivateEx( - BOOL* pfNoRedraw, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnInPlaceDeactivateEx( - BOOL fNoRedraw) = 0; - - virtual HRESULT STDMETHODCALLTYPE RequestUIActivate( - ) = 0; - -}; -#else -typedef struct IOleInPlaceSiteExVtbl IOleInPlaceSiteExVtbl; -struct IOleInPlaceSiteEx { - const IOleInPlaceSiteExVtbl* lpVtbl; -}; -struct IOleInPlaceSiteExVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleInPlaceSiteEx* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleInPlaceSiteEx* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleInPlaceSiteEx* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IOleInPlaceSiteEx* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IOleInPlaceSiteEx* This, - BOOL fEnterMode); - - /*** IOleInPlaceSite methods ***/ - HRESULT (STDMETHODCALLTYPE *CanInPlaceActivate)( - IOleInPlaceSiteEx* This); - - HRESULT (STDMETHODCALLTYPE *OnInPlaceActivate)( - IOleInPlaceSiteEx* This); - - HRESULT (STDMETHODCALLTYPE *OnUIActivate)( - IOleInPlaceSiteEx* This); - - HRESULT (STDMETHODCALLTYPE *GetWindowContext)( - IOleInPlaceSiteEx* This, - IOleInPlaceFrame** ppFrame, - IOleInPlaceUIWindow** ppDoc, - LPRECT lprcPosRect, - LPRECT lprcClipRect, - LPOLEINPLACEFRAMEINFO lpFrameInfo); - - HRESULT (STDMETHODCALLTYPE *Scroll)( - IOleInPlaceSiteEx* This, - SIZE scrollExtant); - - HRESULT (STDMETHODCALLTYPE *OnUIDeactivate)( - IOleInPlaceSiteEx* This, - BOOL fUndoable); - - HRESULT (STDMETHODCALLTYPE *OnInPlaceDeactivate)( - IOleInPlaceSiteEx* This); - - HRESULT (STDMETHODCALLTYPE *DiscardUndoState)( - IOleInPlaceSiteEx* This); - - HRESULT (STDMETHODCALLTYPE *DeactivateAndUndo)( - IOleInPlaceSiteEx* This); - - HRESULT (STDMETHODCALLTYPE *OnPosRectChange)( - IOleInPlaceSiteEx* This, - LPCRECT lprcPosRect); - - /*** IOleInPlaceSiteEx methods ***/ - HRESULT (STDMETHODCALLTYPE *OnInPlaceActivateEx)( - IOleInPlaceSiteEx* This, - BOOL* pfNoRedraw, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *OnInPlaceDeactivateEx)( - IOleInPlaceSiteEx* This, - BOOL fNoRedraw); - - HRESULT (STDMETHODCALLTYPE *RequestUIActivate)( - IOleInPlaceSiteEx* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleInPlaceSiteEx_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleInPlaceSiteEx_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleInPlaceSiteEx_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IOleInPlaceSiteEx_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IOleInPlaceSiteEx_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IOleInPlaceSite methods ***/ -#define IOleInPlaceSiteEx_CanInPlaceActivate(p) (p)->lpVtbl->CanInPlaceActivate(p) -#define IOleInPlaceSiteEx_OnInPlaceActivate(p) (p)->lpVtbl->OnInPlaceActivate(p) -#define IOleInPlaceSiteEx_OnUIActivate(p) (p)->lpVtbl->OnUIActivate(p) -#define IOleInPlaceSiteEx_GetWindowContext(p,a,b,c,d,e) (p)->lpVtbl->GetWindowContext(p,a,b,c,d,e) -#define IOleInPlaceSiteEx_Scroll(p,a) (p)->lpVtbl->Scroll(p,a) -#define IOleInPlaceSiteEx_OnUIDeactivate(p,a) (p)->lpVtbl->OnUIDeactivate(p,a) -#define IOleInPlaceSiteEx_OnInPlaceDeactivate(p) (p)->lpVtbl->OnInPlaceDeactivate(p) -#define IOleInPlaceSiteEx_DiscardUndoState(p) (p)->lpVtbl->DiscardUndoState(p) -#define IOleInPlaceSiteEx_DeactivateAndUndo(p) (p)->lpVtbl->DeactivateAndUndo(p) -#define IOleInPlaceSiteEx_OnPosRectChange(p,a) (p)->lpVtbl->OnPosRectChange(p,a) -/*** IOleInPlaceSiteEx methods ***/ -#define IOleInPlaceSiteEx_OnInPlaceActivateEx(p,a,b) (p)->lpVtbl->OnInPlaceActivateEx(p,a,b) -#define IOleInPlaceSiteEx_OnInPlaceDeactivateEx(p,a) (p)->lpVtbl->OnInPlaceDeactivateEx(p,a) -#define IOleInPlaceSiteEx_RequestUIActivate(p) (p)->lpVtbl->RequestUIActivate(p) -#endif - -#endif - -#define IOleInPlaceSiteEx_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IOleInPlaceSite methods ***/ \ - STDMETHOD_(HRESULT,CanInPlaceActivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnInPlaceActivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnUIActivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetWindowContext)(THIS_ IOleInPlaceFrame** ppFrame, IOleInPlaceUIWindow** ppDoc, LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo) PURE; \ - STDMETHOD_(HRESULT,Scroll)(THIS_ SIZE scrollExtant) PURE; \ - STDMETHOD_(HRESULT,OnUIDeactivate)(THIS_ BOOL fUndoable) PURE; \ - STDMETHOD_(HRESULT,OnInPlaceDeactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,DiscardUndoState)(THIS) PURE; \ - STDMETHOD_(HRESULT,DeactivateAndUndo)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnPosRectChange)(THIS_ LPCRECT lprcPosRect) PURE; \ - /*** IOleInPlaceSiteEx methods ***/ \ - STDMETHOD_(HRESULT,OnInPlaceActivateEx)(THIS_ BOOL* pfNoRedraw, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,OnInPlaceDeactivateEx)(THIS_ BOOL fNoRedraw) PURE; \ - STDMETHOD_(HRESULT,RequestUIActivate)(THIS) PURE; - -HRESULT CALLBACK IOleInPlaceSiteEx_OnInPlaceActivateEx_Proxy( - IOleInPlaceSiteEx* This, - BOOL* pfNoRedraw, - DWORD dwFlags); -void __RPC_STUB IOleInPlaceSiteEx_OnInPlaceActivateEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteEx_OnInPlaceDeactivateEx_Proxy( - IOleInPlaceSiteEx* This, - BOOL fNoRedraw); -void __RPC_STUB IOleInPlaceSiteEx_OnInPlaceDeactivateEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteEx_RequestUIActivate_Proxy( - IOleInPlaceSiteEx* This); -void __RPC_STUB IOleInPlaceSiteEx_RequestUIActivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleInPlaceSiteEx_INTERFACE_DEFINED__ */ - -#ifndef __IOleInPlaceSiteWindowless_FWD_DEFINED__ -#define __IOleInPlaceSiteWindowless_FWD_DEFINED__ -typedef struct IOleInPlaceSiteWindowless IOleInPlaceSiteWindowless; -#endif - -typedef IOleInPlaceSiteWindowless *LPOLEINPLACESITEWINDOWLESS; - -typedef enum tagOLEDCFLAGS { - OLEDC_NODRAW = 0x1, - OLEDC_PAINTBKGND = 0x2, - OLEDC_OFFSCREEN = 0x4 -} OLEDCFLAGS; - -/***************************************************************************** - * IOleInPlaceSiteWindowless interface - */ -#ifndef __IOleInPlaceSiteWindowless_INTERFACE_DEFINED__ -#define __IOleInPlaceSiteWindowless_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleInPlaceSiteWindowless, 0x922eada0, 0x3424, 0x11cf, 0xb6,0x70, 0x00,0xaa,0x00,0x4c,0xd6,0xd8); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleInPlaceSiteWindowless : public IOleInPlaceSiteEx -{ - virtual HRESULT STDMETHODCALLTYPE CanWindowlessActivate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCapture( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetCapture( - BOOL fCapture) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFocus( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFocus( - BOOL fFocus) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDC( - LPCRECT pRect, - DWORD grfFlags, - HDC* phDC) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseDC( - HDC hDC) = 0; - - virtual HRESULT STDMETHODCALLTYPE InvalidateRect( - LPCRECT pRect, - BOOL fErase) = 0; - - virtual HRESULT STDMETHODCALLTYPE InvalidateRgn( - HRGN hRGN, - BOOL fErase) = 0; - - virtual HRESULT STDMETHODCALLTYPE ScrollRect( - INT dx, - INT dy, - LPCRECT pRectScroll, - LPCRECT pRectClip) = 0; - - virtual HRESULT STDMETHODCALLTYPE AdjustRect( - LPRECT prc) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnDefWindowMessage( - UINT msg, - WPARAM wParam, - LPARAM lParam, - LRESULT* plResult) = 0; - -}; -#else -typedef struct IOleInPlaceSiteWindowlessVtbl IOleInPlaceSiteWindowlessVtbl; -struct IOleInPlaceSiteWindowless { - const IOleInPlaceSiteWindowlessVtbl* lpVtbl; -}; -struct IOleInPlaceSiteWindowlessVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleInPlaceSiteWindowless* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleInPlaceSiteWindowless* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleInPlaceSiteWindowless* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IOleInPlaceSiteWindowless* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IOleInPlaceSiteWindowless* This, - BOOL fEnterMode); - - /*** IOleInPlaceSite methods ***/ - HRESULT (STDMETHODCALLTYPE *CanInPlaceActivate)( - IOleInPlaceSiteWindowless* This); - - HRESULT (STDMETHODCALLTYPE *OnInPlaceActivate)( - IOleInPlaceSiteWindowless* This); - - HRESULT (STDMETHODCALLTYPE *OnUIActivate)( - IOleInPlaceSiteWindowless* This); - - HRESULT (STDMETHODCALLTYPE *GetWindowContext)( - IOleInPlaceSiteWindowless* This, - IOleInPlaceFrame** ppFrame, - IOleInPlaceUIWindow** ppDoc, - LPRECT lprcPosRect, - LPRECT lprcClipRect, - LPOLEINPLACEFRAMEINFO lpFrameInfo); - - HRESULT (STDMETHODCALLTYPE *Scroll)( - IOleInPlaceSiteWindowless* This, - SIZE scrollExtant); - - HRESULT (STDMETHODCALLTYPE *OnUIDeactivate)( - IOleInPlaceSiteWindowless* This, - BOOL fUndoable); - - HRESULT (STDMETHODCALLTYPE *OnInPlaceDeactivate)( - IOleInPlaceSiteWindowless* This); - - HRESULT (STDMETHODCALLTYPE *DiscardUndoState)( - IOleInPlaceSiteWindowless* This); - - HRESULT (STDMETHODCALLTYPE *DeactivateAndUndo)( - IOleInPlaceSiteWindowless* This); - - HRESULT (STDMETHODCALLTYPE *OnPosRectChange)( - IOleInPlaceSiteWindowless* This, - LPCRECT lprcPosRect); - - /*** IOleInPlaceSiteEx methods ***/ - HRESULT (STDMETHODCALLTYPE *OnInPlaceActivateEx)( - IOleInPlaceSiteWindowless* This, - BOOL* pfNoRedraw, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *OnInPlaceDeactivateEx)( - IOleInPlaceSiteWindowless* This, - BOOL fNoRedraw); - - HRESULT (STDMETHODCALLTYPE *RequestUIActivate)( - IOleInPlaceSiteWindowless* This); - - /*** IOleInPlaceSiteWindowless methods ***/ - HRESULT (STDMETHODCALLTYPE *CanWindowlessActivate)( - IOleInPlaceSiteWindowless* This); - - HRESULT (STDMETHODCALLTYPE *GetCapture)( - IOleInPlaceSiteWindowless* This); - - HRESULT (STDMETHODCALLTYPE *SetCapture)( - IOleInPlaceSiteWindowless* This, - BOOL fCapture); - - HRESULT (STDMETHODCALLTYPE *GetFocus)( - IOleInPlaceSiteWindowless* This); - - HRESULT (STDMETHODCALLTYPE *SetFocus)( - IOleInPlaceSiteWindowless* This, - BOOL fFocus); - - HRESULT (STDMETHODCALLTYPE *GetDC)( - IOleInPlaceSiteWindowless* This, - LPCRECT pRect, - DWORD grfFlags, - HDC* phDC); - - HRESULT (STDMETHODCALLTYPE *ReleaseDC)( - IOleInPlaceSiteWindowless* This, - HDC hDC); - - HRESULT (STDMETHODCALLTYPE *InvalidateRect)( - IOleInPlaceSiteWindowless* This, - LPCRECT pRect, - BOOL fErase); - - HRESULT (STDMETHODCALLTYPE *InvalidateRgn)( - IOleInPlaceSiteWindowless* This, - HRGN hRGN, - BOOL fErase); - - HRESULT (STDMETHODCALLTYPE *ScrollRect)( - IOleInPlaceSiteWindowless* This, - INT dx, - INT dy, - LPCRECT pRectScroll, - LPCRECT pRectClip); - - HRESULT (STDMETHODCALLTYPE *AdjustRect)( - IOleInPlaceSiteWindowless* This, - LPRECT prc); - - HRESULT (STDMETHODCALLTYPE *OnDefWindowMessage)( - IOleInPlaceSiteWindowless* This, - UINT msg, - WPARAM wParam, - LPARAM lParam, - LRESULT* plResult); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleInPlaceSiteWindowless_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleInPlaceSiteWindowless_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleInPlaceSiteWindowless_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IOleInPlaceSiteWindowless_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IOleInPlaceSiteWindowless_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IOleInPlaceSite methods ***/ -#define IOleInPlaceSiteWindowless_CanInPlaceActivate(p) (p)->lpVtbl->CanInPlaceActivate(p) -#define IOleInPlaceSiteWindowless_OnInPlaceActivate(p) (p)->lpVtbl->OnInPlaceActivate(p) -#define IOleInPlaceSiteWindowless_OnUIActivate(p) (p)->lpVtbl->OnUIActivate(p) -#define IOleInPlaceSiteWindowless_GetWindowContext(p,a,b,c,d,e) (p)->lpVtbl->GetWindowContext(p,a,b,c,d,e) -#define IOleInPlaceSiteWindowless_Scroll(p,a) (p)->lpVtbl->Scroll(p,a) -#define IOleInPlaceSiteWindowless_OnUIDeactivate(p,a) (p)->lpVtbl->OnUIDeactivate(p,a) -#define IOleInPlaceSiteWindowless_OnInPlaceDeactivate(p) (p)->lpVtbl->OnInPlaceDeactivate(p) -#define IOleInPlaceSiteWindowless_DiscardUndoState(p) (p)->lpVtbl->DiscardUndoState(p) -#define IOleInPlaceSiteWindowless_DeactivateAndUndo(p) (p)->lpVtbl->DeactivateAndUndo(p) -#define IOleInPlaceSiteWindowless_OnPosRectChange(p,a) (p)->lpVtbl->OnPosRectChange(p,a) -/*** IOleInPlaceSiteEx methods ***/ -#define IOleInPlaceSiteWindowless_OnInPlaceActivateEx(p,a,b) (p)->lpVtbl->OnInPlaceActivateEx(p,a,b) -#define IOleInPlaceSiteWindowless_OnInPlaceDeactivateEx(p,a) (p)->lpVtbl->OnInPlaceDeactivateEx(p,a) -#define IOleInPlaceSiteWindowless_RequestUIActivate(p) (p)->lpVtbl->RequestUIActivate(p) -/*** IOleInPlaceSiteWindowless methods ***/ -#define IOleInPlaceSiteWindowless_CanWindowlessActivate(p) (p)->lpVtbl->CanWindowlessActivate(p) -#define IOleInPlaceSiteWindowless_GetCapture(p) (p)->lpVtbl->GetCapture(p) -#define IOleInPlaceSiteWindowless_SetCapture(p,a) (p)->lpVtbl->SetCapture(p,a) -#define IOleInPlaceSiteWindowless_GetFocus(p) (p)->lpVtbl->GetFocus(p) -#define IOleInPlaceSiteWindowless_SetFocus(p,a) (p)->lpVtbl->SetFocus(p,a) -#define IOleInPlaceSiteWindowless_GetDC(p,a,b,c) (p)->lpVtbl->GetDC(p,a,b,c) -#define IOleInPlaceSiteWindowless_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a) -#define IOleInPlaceSiteWindowless_InvalidateRect(p,a,b) (p)->lpVtbl->InvalidateRect(p,a,b) -#define IOleInPlaceSiteWindowless_InvalidateRgn(p,a,b) (p)->lpVtbl->InvalidateRgn(p,a,b) -#define IOleInPlaceSiteWindowless_ScrollRect(p,a,b,c,d) (p)->lpVtbl->ScrollRect(p,a,b,c,d) -#define IOleInPlaceSiteWindowless_AdjustRect(p,a) (p)->lpVtbl->AdjustRect(p,a) -#define IOleInPlaceSiteWindowless_OnDefWindowMessage(p,a,b,c,d) (p)->lpVtbl->OnDefWindowMessage(p,a,b,c,d) -#endif - -#endif - -#define IOleInPlaceSiteWindowless_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IOleInPlaceSite methods ***/ \ - STDMETHOD_(HRESULT,CanInPlaceActivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnInPlaceActivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnUIActivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetWindowContext)(THIS_ IOleInPlaceFrame** ppFrame, IOleInPlaceUIWindow** ppDoc, LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo) PURE; \ - STDMETHOD_(HRESULT,Scroll)(THIS_ SIZE scrollExtant) PURE; \ - STDMETHOD_(HRESULT,OnUIDeactivate)(THIS_ BOOL fUndoable) PURE; \ - STDMETHOD_(HRESULT,OnInPlaceDeactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,DiscardUndoState)(THIS) PURE; \ - STDMETHOD_(HRESULT,DeactivateAndUndo)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnPosRectChange)(THIS_ LPCRECT lprcPosRect) PURE; \ - /*** IOleInPlaceSiteEx methods ***/ \ - STDMETHOD_(HRESULT,OnInPlaceActivateEx)(THIS_ BOOL* pfNoRedraw, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,OnInPlaceDeactivateEx)(THIS_ BOOL fNoRedraw) PURE; \ - STDMETHOD_(HRESULT,RequestUIActivate)(THIS) PURE; \ - /*** IOleInPlaceSiteWindowless methods ***/ \ - STDMETHOD_(HRESULT,CanWindowlessActivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetCapture)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetCapture)(THIS_ BOOL fCapture) PURE; \ - STDMETHOD_(HRESULT,GetFocus)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetFocus)(THIS_ BOOL fFocus) PURE; \ - STDMETHOD_(HRESULT,GetDC)(THIS_ LPCRECT pRect, DWORD grfFlags, HDC* phDC) PURE; \ - STDMETHOD_(HRESULT,ReleaseDC)(THIS_ HDC hDC) PURE; \ - STDMETHOD_(HRESULT,InvalidateRect)(THIS_ LPCRECT pRect, BOOL fErase) PURE; \ - STDMETHOD_(HRESULT,InvalidateRgn)(THIS_ HRGN hRGN, BOOL fErase) PURE; \ - STDMETHOD_(HRESULT,ScrollRect)(THIS_ INT dx, INT dy, LPCRECT pRectScroll, LPCRECT pRectClip) PURE; \ - STDMETHOD_(HRESULT,AdjustRect)(THIS_ LPRECT prc) PURE; \ - STDMETHOD_(HRESULT,OnDefWindowMessage)(THIS_ UINT msg, WPARAM wParam, LPARAM lParam, LRESULT* plResult) PURE; - -HRESULT CALLBACK IOleInPlaceSiteWindowless_CanWindowlessActivate_Proxy( - IOleInPlaceSiteWindowless* This); -void __RPC_STUB IOleInPlaceSiteWindowless_CanWindowlessActivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_GetCapture_Proxy( - IOleInPlaceSiteWindowless* This); -void __RPC_STUB IOleInPlaceSiteWindowless_GetCapture_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_SetCapture_Proxy( - IOleInPlaceSiteWindowless* This, - BOOL fCapture); -void __RPC_STUB IOleInPlaceSiteWindowless_SetCapture_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_GetFocus_Proxy( - IOleInPlaceSiteWindowless* This); -void __RPC_STUB IOleInPlaceSiteWindowless_GetFocus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_SetFocus_Proxy( - IOleInPlaceSiteWindowless* This, - BOOL fFocus); -void __RPC_STUB IOleInPlaceSiteWindowless_SetFocus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_GetDC_Proxy( - IOleInPlaceSiteWindowless* This, - LPCRECT pRect, - DWORD grfFlags, - HDC* phDC); -void __RPC_STUB IOleInPlaceSiteWindowless_GetDC_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_ReleaseDC_Proxy( - IOleInPlaceSiteWindowless* This, - HDC hDC); -void __RPC_STUB IOleInPlaceSiteWindowless_ReleaseDC_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_InvalidateRect_Proxy( - IOleInPlaceSiteWindowless* This, - LPCRECT pRect, - BOOL fErase); -void __RPC_STUB IOleInPlaceSiteWindowless_InvalidateRect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_InvalidateRgn_Proxy( - IOleInPlaceSiteWindowless* This, - HRGN hRGN, - BOOL fErase); -void __RPC_STUB IOleInPlaceSiteWindowless_InvalidateRgn_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_ScrollRect_Proxy( - IOleInPlaceSiteWindowless* This, - INT dx, - INT dy, - LPCRECT pRectScroll, - LPCRECT pRectClip); -void __RPC_STUB IOleInPlaceSiteWindowless_ScrollRect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_AdjustRect_Proxy( - IOleInPlaceSiteWindowless* This, - LPRECT prc); -void __RPC_STUB IOleInPlaceSiteWindowless_AdjustRect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSiteWindowless_OnDefWindowMessage_Proxy( - IOleInPlaceSiteWindowless* This, - UINT msg, - WPARAM wParam, - LPARAM lParam, - LRESULT* plResult); -void __RPC_STUB IOleInPlaceSiteWindowless_OnDefWindowMessage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleInPlaceSiteWindowless_INTERFACE_DEFINED__ */ - -#ifndef __IOleInPlaceObjectWindowless_FWD_DEFINED__ -#define __IOleInPlaceObjectWindowless_FWD_DEFINED__ -typedef struct IOleInPlaceObjectWindowless IOleInPlaceObjectWindowless; -#endif - -typedef IOleInPlaceObjectWindowless *LPOLEINPLACEOBJECTWINDOWLESS; - -/***************************************************************************** - * IOleInPlaceObjectWindowless interface - */ -#ifndef __IOleInPlaceObjectWindowless_INTERFACE_DEFINED__ -#define __IOleInPlaceObjectWindowless_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleInPlaceObjectWindowless, 0x1c2056cc, 0x5ef4, 0x101b, 0x8b,0xc8, 0x00,0xaa,0x00,0x3e,0x3b,0x29); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleInPlaceObjectWindowless : public IOleInPlaceObject -{ - virtual HRESULT STDMETHODCALLTYPE OnWindowMessage( - UINT msg, - WPARAM wParam, - LPARAM lParam, - LRESULT* plResult) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDropTarget( - IDropTarget** ppDropTarget) = 0; - -}; -#else -typedef struct IOleInPlaceObjectWindowlessVtbl IOleInPlaceObjectWindowlessVtbl; -struct IOleInPlaceObjectWindowless { - const IOleInPlaceObjectWindowlessVtbl* lpVtbl; -}; -struct IOleInPlaceObjectWindowlessVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleInPlaceObjectWindowless* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleInPlaceObjectWindowless* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleInPlaceObjectWindowless* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IOleInPlaceObjectWindowless* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IOleInPlaceObjectWindowless* This, - BOOL fEnterMode); - - /*** IOleInPlaceObject methods ***/ - HRESULT (STDMETHODCALLTYPE *InPlaceDeactivate)( - IOleInPlaceObjectWindowless* This); - - HRESULT (STDMETHODCALLTYPE *UIDeactivate)( - IOleInPlaceObjectWindowless* This); - - HRESULT (STDMETHODCALLTYPE *SetObjectRects)( - IOleInPlaceObjectWindowless* This, - LPCRECT lprcPosRect, - LPCRECT lprcClipRect); - - HRESULT (STDMETHODCALLTYPE *ReactivateAndUndo)( - IOleInPlaceObjectWindowless* This); - - /*** IOleInPlaceObjectWindowless methods ***/ - HRESULT (STDMETHODCALLTYPE *OnWindowMessage)( - IOleInPlaceObjectWindowless* This, - UINT msg, - WPARAM wParam, - LPARAM lParam, - LRESULT* plResult); - - HRESULT (STDMETHODCALLTYPE *GetDropTarget)( - IOleInPlaceObjectWindowless* This, - IDropTarget** ppDropTarget); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleInPlaceObjectWindowless_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleInPlaceObjectWindowless_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleInPlaceObjectWindowless_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IOleInPlaceObjectWindowless_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IOleInPlaceObjectWindowless_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IOleInPlaceObject methods ***/ -#define IOleInPlaceObjectWindowless_InPlaceDeactivate(p) (p)->lpVtbl->InPlaceDeactivate(p) -#define IOleInPlaceObjectWindowless_UIDeactivate(p) (p)->lpVtbl->UIDeactivate(p) -#define IOleInPlaceObjectWindowless_SetObjectRects(p,a,b) (p)->lpVtbl->SetObjectRects(p,a,b) -#define IOleInPlaceObjectWindowless_ReactivateAndUndo(p) (p)->lpVtbl->ReactivateAndUndo(p) -/*** IOleInPlaceObjectWindowless methods ***/ -#define IOleInPlaceObjectWindowless_OnWindowMessage(p,a,b,c,d) (p)->lpVtbl->OnWindowMessage(p,a,b,c,d) -#define IOleInPlaceObjectWindowless_GetDropTarget(p,a) (p)->lpVtbl->GetDropTarget(p,a) -#endif - -#endif - -#define IOleInPlaceObjectWindowless_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IOleInPlaceObject methods ***/ \ - STDMETHOD_(HRESULT,InPlaceDeactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,UIDeactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetObjectRects)(THIS_ LPCRECT lprcPosRect, LPCRECT lprcClipRect) PURE; \ - STDMETHOD_(HRESULT,ReactivateAndUndo)(THIS) PURE; \ - /*** IOleInPlaceObjectWindowless methods ***/ \ - STDMETHOD_(HRESULT,OnWindowMessage)(THIS_ UINT msg, WPARAM wParam, LPARAM lParam, LRESULT* plResult) PURE; \ - STDMETHOD_(HRESULT,GetDropTarget)(THIS_ IDropTarget** ppDropTarget) PURE; - -HRESULT CALLBACK IOleInPlaceObjectWindowless_OnWindowMessage_Proxy( - IOleInPlaceObjectWindowless* This, - UINT msg, - WPARAM wParam, - LPARAM lParam, - LRESULT* plResult); -void __RPC_STUB IOleInPlaceObjectWindowless_OnWindowMessage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceObjectWindowless_GetDropTarget_Proxy( - IOleInPlaceObjectWindowless* This, - IDropTarget** ppDropTarget); -void __RPC_STUB IOleInPlaceObjectWindowless_GetDropTarget_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleInPlaceObjectWindowless_INTERFACE_DEFINED__ */ - -#ifndef __IClassFactory2_FWD_DEFINED__ -#define __IClassFactory2_FWD_DEFINED__ -typedef struct IClassFactory2 IClassFactory2; -#endif - -typedef IClassFactory2 *LPCLASSFACTORY2; - -typedef struct tagLICINFO { - LONG cbLicInfo; - BOOL fRuntimeKeyAvail; - BOOL fLicVerified; -} LICINFO, *LPLICINFO; - -/***************************************************************************** - * IClassFactory2 interface - */ -#ifndef __IClassFactory2_INTERFACE_DEFINED__ -#define __IClassFactory2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IClassFactory2, 0xb196b28f, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IClassFactory2 : public IClassFactory -{ - virtual HRESULT STDMETHODCALLTYPE GetLicInfo( - LICINFO* pLicInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE RequestLicKey( - DWORD dwReserved, - BSTR* pBstrKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateInstanceLic( - IUnknown* pUnkOuter, - IUnknown* pUnkReserved, - REFIID riid, - BSTR bstrKey, - PVOID* ppvObj) = 0; - -}; -#else -typedef struct IClassFactory2Vtbl IClassFactory2Vtbl; -struct IClassFactory2 { - const IClassFactory2Vtbl* lpVtbl; -}; -struct IClassFactory2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IClassFactory2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IClassFactory2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IClassFactory2* This); - - /*** IClassFactory methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateInstance)( - IClassFactory2* This, - IUnknown* pUnkOuter, - REFIID riid, - void** ppvObject); - - HRESULT (STDMETHODCALLTYPE *LockServer)( - IClassFactory2* This, - BOOL fLock); - - /*** IClassFactory2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetLicInfo)( - IClassFactory2* This, - LICINFO* pLicInfo); - - HRESULT (STDMETHODCALLTYPE *RequestLicKey)( - IClassFactory2* This, - DWORD dwReserved, - BSTR* pBstrKey); - - HRESULT (STDMETHODCALLTYPE *CreateInstanceLic)( - IClassFactory2* This, - IUnknown* pUnkOuter, - IUnknown* pUnkReserved, - REFIID riid, - BSTR bstrKey, - PVOID* ppvObj); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IClassFactory2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IClassFactory2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IClassFactory2_Release(p) (p)->lpVtbl->Release(p) -/*** IClassFactory methods ***/ -#define IClassFactory2_CreateInstance(p,a,b,c) (p)->lpVtbl->CreateInstance(p,a,b,c) -#define IClassFactory2_LockServer(p,a) (p)->lpVtbl->LockServer(p,a) -/*** IClassFactory2 methods ***/ -#define IClassFactory2_GetLicInfo(p,a) (p)->lpVtbl->GetLicInfo(p,a) -#define IClassFactory2_RequestLicKey(p,a,b) (p)->lpVtbl->RequestLicKey(p,a,b) -#define IClassFactory2_CreateInstanceLic(p,a,b,c,d,e) (p)->lpVtbl->CreateInstanceLic(p,a,b,c,d,e) -#endif - -#endif - -#define IClassFactory2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IClassFactory methods ***/ \ - STDMETHOD_(HRESULT,CreateInstance)(THIS_ IUnknown* pUnkOuter, REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(HRESULT,LockServer)(THIS_ BOOL fLock) PURE; \ - /*** IClassFactory2 methods ***/ \ - STDMETHOD_(HRESULT,GetLicInfo)(THIS_ LICINFO* pLicInfo) PURE; \ - STDMETHOD_(HRESULT,RequestLicKey)(THIS_ DWORD dwReserved, BSTR* pBstrKey) PURE; \ - STDMETHOD_(HRESULT,CreateInstanceLic)(THIS_ IUnknown* pUnkOuter, IUnknown* pUnkReserved, REFIID riid, BSTR bstrKey, PVOID* ppvObj) PURE; - -HRESULT CALLBACK IClassFactory2_GetLicInfo_Proxy( - IClassFactory2* This, - LICINFO* pLicInfo); -void __RPC_STUB IClassFactory2_GetLicInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IClassFactory2_RequestLicKey_Proxy( - IClassFactory2* This, - DWORD dwReserved, - BSTR* pBstrKey); -void __RPC_STUB IClassFactory2_RequestLicKey_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IClassFactory2_RemoteCreateInstanceLic_Proxy( - IClassFactory2* This, - REFIID riid, - BSTR bstrKey, - IUnknown** ppvObj); -void __RPC_STUB IClassFactory2_RemoteCreateInstanceLic_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IClassFactory2_CreateInstanceLic_Proxy( - IClassFactory2* This, - IUnknown* pUnkOuter, - IUnknown* pUnkReserved, - REFIID riid, - BSTR bstrKey, - PVOID* ppvObj); -HRESULT __RPC_STUB IClassFactory2_CreateInstanceLic_Stub( - IClassFactory2* This, - REFIID riid, - BSTR bstrKey, - IUnknown** ppvObj); - -#endif /* __IClassFactory2_INTERFACE_DEFINED__ */ - -#ifndef __IViewObjectEx_FWD_DEFINED__ -#define __IViewObjectEx_FWD_DEFINED__ -typedef struct IViewObjectEx IViewObjectEx; -#endif - -typedef IViewObjectEx *LPVIEWOBJECTEX; - -typedef enum tagVIEWSTATUS { - VIEWSTATUS_OPAQUE = 1, - VIEWSTATUS_SOLIDBKGND = 2, - VIEWSTATUS_DVASPECTOPAQUE = 4, - VIEWSTATUS_DVASPECTTRANSPARENT = 8, - VIEWSTATUS_SURFACE = 16, - VIEWSTATUS_3DSURFACE = 32 -} VIEWSTATUS; - -typedef enum tagHITRESULT { - HITRESULT_OUTSIDE = 0, - HITRESULT_TRANSPARENT = 1, - HITRESULT_CLOSE = 2, - HITRESULT_HIT = 3 -} HITRESULT; - -typedef enum tagDVASPECT2 { - DVASPECT_OPAQUE = 16, - DVASPECT_TRANSPARENT = 32 -} DVASPECT2; - -typedef struct tagExtentInfo { - ULONG cb; - DWORD dwExtentMode; - SIZEL sizelProposed; -} DVEXTENTINFO; - -typedef enum tagAspectInfoFlag { - DVASPECTINFOFLAG_CANOPTIMIZE = 1 -} DVASPECTINFOFLAG; - -typedef struct tagAspectInfo { - ULONG cb; - DWORD dwFlags; -} DVASPECTINFO; - -/***************************************************************************** - * IViewObjectEx interface - */ -#ifndef __IViewObjectEx_INTERFACE_DEFINED__ -#define __IViewObjectEx_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IViewObjectEx, 0x3af24292, 0x0c96, 0x11ce, 0xa0,0xcf, 0x00,0xaa,0x00,0x60,0x0a,0xb8); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IViewObjectEx : public IViewObject2 -{ - virtual HRESULT STDMETHODCALLTYPE GetRect( - DWORD dwAspect, - LPRECTL pRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetViewStatus( - DWORD* pdwStatus) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryHitPoint( - DWORD dwAspect, - LPCRECT pRectBounds, - POINT ptlLoc, - LONG lCloseHint, - DWORD* pHitResult) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryHitRect( - DWORD dwAspect, - LPCRECT pRectBounds, - LPCRECT pRectLoc, - LONG lCloseHint, - DWORD* pHitResult) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetNaturalExtent( - DWORD dwAspect, - LONG lindex, - DVTARGETDEVICE* ptd, - HDC hicTargetDev, - DVEXTENTINFO* pExtentInfo, - LPSIZEL pSizel) = 0; - -}; -#else -typedef struct IViewObjectExVtbl IViewObjectExVtbl; -struct IViewObjectEx { - const IViewObjectExVtbl* lpVtbl; -}; -struct IViewObjectExVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IViewObjectEx* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IViewObjectEx* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IViewObjectEx* This); - - /*** IViewObject methods ***/ - HRESULT (STDMETHODCALLTYPE *Draw)( - IViewObjectEx* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DVTARGETDEVICE* ptd, - HDC hdcTargetDev, - HDC hdcDraw, - LPCRECTL lprcBounds, - LPCRECTL lprcWBounds, - BOOL (STDMETHODCALLTYPE *pfnContinue)(ULONG_PTR dwContinue), - ULONG_PTR dwContinue); - - HRESULT (STDMETHODCALLTYPE *GetColorSet)( - IViewObjectEx* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DVTARGETDEVICE* ptd, - HDC hicTargetDev, - LOGPALETTE** ppColorSet); - - HRESULT (STDMETHODCALLTYPE *Freeze)( - IViewObjectEx* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DWORD* pdwFreeze); - - HRESULT (STDMETHODCALLTYPE *Unfreeze)( - IViewObjectEx* This, - DWORD dwFreeze); - - HRESULT (STDMETHODCALLTYPE *SetAdvise)( - IViewObjectEx* This, - DWORD aspects, - DWORD advf, - IAdviseSink* pAdvSink); - - HRESULT (STDMETHODCALLTYPE *GetAdvise)( - IViewObjectEx* This, - DWORD* pAspects, - DWORD* pAdvf, - IAdviseSink** ppAdvSink); - - /*** IViewObject2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetExtent)( - IViewObjectEx* This, - DWORD dwDrawAspect, - LONG lindex, - DVTARGETDEVICE* ptd, - LPSIZEL lpsizel); - - /*** IViewObjectEx methods ***/ - HRESULT (STDMETHODCALLTYPE *GetRect)( - IViewObjectEx* This, - DWORD dwAspect, - LPRECTL pRect); - - HRESULT (STDMETHODCALLTYPE *GetViewStatus)( - IViewObjectEx* This, - DWORD* pdwStatus); - - HRESULT (STDMETHODCALLTYPE *QueryHitPoint)( - IViewObjectEx* This, - DWORD dwAspect, - LPCRECT pRectBounds, - POINT ptlLoc, - LONG lCloseHint, - DWORD* pHitResult); - - HRESULT (STDMETHODCALLTYPE *QueryHitRect)( - IViewObjectEx* This, - DWORD dwAspect, - LPCRECT pRectBounds, - LPCRECT pRectLoc, - LONG lCloseHint, - DWORD* pHitResult); - - HRESULT (STDMETHODCALLTYPE *GetNaturalExtent)( - IViewObjectEx* This, - DWORD dwAspect, - LONG lindex, - DVTARGETDEVICE* ptd, - HDC hicTargetDev, - DVEXTENTINFO* pExtentInfo, - LPSIZEL pSizel); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IViewObjectEx_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IViewObjectEx_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IViewObjectEx_Release(p) (p)->lpVtbl->Release(p) -/*** IViewObject methods ***/ -#define IViewObjectEx_Draw(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->Draw(p,a,b,c,d,e,f,g,h,i,j) -#define IViewObjectEx_GetColorSet(p,a,b,c,d,e,f) (p)->lpVtbl->GetColorSet(p,a,b,c,d,e,f) -#define IViewObjectEx_Freeze(p,a,b,c,d) (p)->lpVtbl->Freeze(p,a,b,c,d) -#define IViewObjectEx_Unfreeze(p,a) (p)->lpVtbl->Unfreeze(p,a) -#define IViewObjectEx_SetAdvise(p,a,b,c) (p)->lpVtbl->SetAdvise(p,a,b,c) -#define IViewObjectEx_GetAdvise(p,a,b,c) (p)->lpVtbl->GetAdvise(p,a,b,c) -/*** IViewObject2 methods ***/ -#define IViewObjectEx_GetExtent(p,a,b,c,d) (p)->lpVtbl->GetExtent(p,a,b,c,d) -/*** IViewObjectEx methods ***/ -#define IViewObjectEx_GetRect(p,a,b) (p)->lpVtbl->GetRect(p,a,b) -#define IViewObjectEx_GetViewStatus(p,a) (p)->lpVtbl->GetViewStatus(p,a) -#define IViewObjectEx_QueryHitPoint(p,a,b,c,d,e) (p)->lpVtbl->QueryHitPoint(p,a,b,c,d,e) -#define IViewObjectEx_QueryHitRect(p,a,b,c,d,e) (p)->lpVtbl->QueryHitRect(p,a,b,c,d,e) -#define IViewObjectEx_GetNaturalExtent(p,a,b,c,d,e,f) (p)->lpVtbl->GetNaturalExtent(p,a,b,c,d,e,f) -#endif - -#endif - -#define IViewObjectEx_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IViewObject methods ***/ \ - STDMETHOD_(HRESULT,Draw)(THIS_ DWORD dwDrawAspect, LONG lindex, void* pvAspect, DVTARGETDEVICE* ptd, HDC hdcTargetDev, HDC hdcDraw, LPCRECTL lprcBounds, LPCRECTL lprcWBounds, BOOL (STDMETHODCALLTYPE *pfnContinue)(ULONG_PTR dwContinue), ULONG_PTR dwContinue) PURE; \ - STDMETHOD_(HRESULT,GetColorSet)(THIS_ DWORD dwDrawAspect, LONG lindex, void* pvAspect, DVTARGETDEVICE* ptd, HDC hicTargetDev, LOGPALETTE** ppColorSet) PURE; \ - STDMETHOD_(HRESULT,Freeze)(THIS_ DWORD dwDrawAspect, LONG lindex, void* pvAspect, DWORD* pdwFreeze) PURE; \ - STDMETHOD_(HRESULT,Unfreeze)(THIS_ DWORD dwFreeze) PURE; \ - STDMETHOD_(HRESULT,SetAdvise)(THIS_ DWORD aspects, DWORD advf, IAdviseSink* pAdvSink) PURE; \ - STDMETHOD_(HRESULT,GetAdvise)(THIS_ DWORD* pAspects, DWORD* pAdvf, IAdviseSink** ppAdvSink) PURE; \ - /*** IViewObject2 methods ***/ \ - STDMETHOD_(HRESULT,GetExtent)(THIS_ DWORD dwDrawAspect, LONG lindex, DVTARGETDEVICE* ptd, LPSIZEL lpsizel) PURE; \ - /*** IViewObjectEx methods ***/ \ - STDMETHOD_(HRESULT,GetRect)(THIS_ DWORD dwAspect, LPRECTL pRect) PURE; \ - STDMETHOD_(HRESULT,GetViewStatus)(THIS_ DWORD* pdwStatus) PURE; \ - STDMETHOD_(HRESULT,QueryHitPoint)(THIS_ DWORD dwAspect, LPCRECT pRectBounds, POINT ptlLoc, LONG lCloseHint, DWORD* pHitResult) PURE; \ - STDMETHOD_(HRESULT,QueryHitRect)(THIS_ DWORD dwAspect, LPCRECT pRectBounds, LPCRECT pRectLoc, LONG lCloseHint, DWORD* pHitResult) PURE; \ - STDMETHOD_(HRESULT,GetNaturalExtent)(THIS_ DWORD dwAspect, LONG lindex, DVTARGETDEVICE* ptd, HDC hicTargetDev, DVEXTENTINFO* pExtentInfo, LPSIZEL pSizel) PURE; - -HRESULT CALLBACK IViewObjectEx_GetRect_Proxy( - IViewObjectEx* This, - DWORD dwAspect, - LPRECTL pRect); -void __RPC_STUB IViewObjectEx_GetRect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IViewObjectEx_GetViewStatus_Proxy( - IViewObjectEx* This, - DWORD* pdwStatus); -void __RPC_STUB IViewObjectEx_GetViewStatus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IViewObjectEx_QueryHitPoint_Proxy( - IViewObjectEx* This, - DWORD dwAspect, - LPCRECT pRectBounds, - POINT ptlLoc, - LONG lCloseHint, - DWORD* pHitResult); -void __RPC_STUB IViewObjectEx_QueryHitPoint_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IViewObjectEx_QueryHitRect_Proxy( - IViewObjectEx* This, - DWORD dwAspect, - LPCRECT pRectBounds, - LPCRECT pRectLoc, - LONG lCloseHint, - DWORD* pHitResult); -void __RPC_STUB IViewObjectEx_QueryHitRect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IViewObjectEx_GetNaturalExtent_Proxy( - IViewObjectEx* This, - DWORD dwAspect, - LONG lindex, - DVTARGETDEVICE* ptd, - HDC hicTargetDev, - DVEXTENTINFO* pExtentInfo, - LPSIZEL pSizel); -void __RPC_STUB IViewObjectEx_GetNaturalExtent_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IViewObjectEx_INTERFACE_DEFINED__ */ - -#ifndef __IProvideClassInfo_FWD_DEFINED__ -#define __IProvideClassInfo_FWD_DEFINED__ -typedef struct IProvideClassInfo IProvideClassInfo; -#endif - -typedef IProvideClassInfo *LPPROVIDECLASSINFO; - -#ifdef __WINESRC__ -#undef GetClassInfo -#endif -/***************************************************************************** - * IProvideClassInfo interface - */ -#ifndef __IProvideClassInfo_INTERFACE_DEFINED__ -#define __IProvideClassInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IProvideClassInfo, 0xb196b283, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IProvideClassInfo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetClassInfo( - ITypeInfo** ppTI) = 0; - -}; -#else -typedef struct IProvideClassInfoVtbl IProvideClassInfoVtbl; -struct IProvideClassInfo { - const IProvideClassInfoVtbl* lpVtbl; -}; -struct IProvideClassInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IProvideClassInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IProvideClassInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IProvideClassInfo* This); - - /*** IProvideClassInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassInfo)( - IProvideClassInfo* This, - ITypeInfo** ppTI); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IProvideClassInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IProvideClassInfo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IProvideClassInfo_Release(p) (p)->lpVtbl->Release(p) -/*** IProvideClassInfo methods ***/ -#define IProvideClassInfo_GetClassInfo(p,a) (p)->lpVtbl->GetClassInfo(p,a) -#endif - -#endif - -#define IProvideClassInfo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IProvideClassInfo methods ***/ \ - STDMETHOD_(HRESULT,GetClassInfo)(THIS_ ITypeInfo** ppTI) PURE; - -HRESULT CALLBACK IProvideClassInfo_GetClassInfo_Proxy( - IProvideClassInfo* This, - ITypeInfo** ppTI); -void __RPC_STUB IProvideClassInfo_GetClassInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IProvideClassInfo_INTERFACE_DEFINED__ */ - -#ifndef __IProvideClassInfo2_FWD_DEFINED__ -#define __IProvideClassInfo2_FWD_DEFINED__ -typedef struct IProvideClassInfo2 IProvideClassInfo2; -#endif - -typedef IProvideClassInfo2 *LPPROVIDECLASSINFO2; - -typedef enum tagGUIDKIND { - GUIDKIND_DEFAULT_SOURCE_DISP_IID = 1 -} GUIDKIND; - -/***************************************************************************** - * IProvideClassInfo2 interface - */ -#ifndef __IProvideClassInfo2_INTERFACE_DEFINED__ -#define __IProvideClassInfo2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IProvideClassInfo2, 0xa6bc3ac0, 0xdbaa, 0x11ce, 0x9d,0xe3, 0x00,0xaa,0x00,0x4b,0xb8,0x51); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IProvideClassInfo2 : public IProvideClassInfo -{ - virtual HRESULT STDMETHODCALLTYPE GetGUID( - DWORD dwGuidKind, - GUID* pGUID) = 0; - -}; -#else -typedef struct IProvideClassInfo2Vtbl IProvideClassInfo2Vtbl; -struct IProvideClassInfo2 { - const IProvideClassInfo2Vtbl* lpVtbl; -}; -struct IProvideClassInfo2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IProvideClassInfo2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IProvideClassInfo2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IProvideClassInfo2* This); - - /*** IProvideClassInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassInfo)( - IProvideClassInfo2* This, - ITypeInfo** ppTI); - - /*** IProvideClassInfo2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetGUID)( - IProvideClassInfo2* This, - DWORD dwGuidKind, - GUID* pGUID); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IProvideClassInfo2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IProvideClassInfo2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IProvideClassInfo2_Release(p) (p)->lpVtbl->Release(p) -/*** IProvideClassInfo methods ***/ -#define IProvideClassInfo2_GetClassInfo(p,a) (p)->lpVtbl->GetClassInfo(p,a) -/*** IProvideClassInfo2 methods ***/ -#define IProvideClassInfo2_GetGUID(p,a,b) (p)->lpVtbl->GetGUID(p,a,b) -#endif - -#endif - -#define IProvideClassInfo2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IProvideClassInfo methods ***/ \ - STDMETHOD_(HRESULT,GetClassInfo)(THIS_ ITypeInfo** ppTI) PURE; \ - /*** IProvideClassInfo2 methods ***/ \ - STDMETHOD_(HRESULT,GetGUID)(THIS_ DWORD dwGuidKind, GUID* pGUID) PURE; - -HRESULT CALLBACK IProvideClassInfo2_GetGUID_Proxy( - IProvideClassInfo2* This, - DWORD dwGuidKind, - GUID* pGUID); -void __RPC_STUB IProvideClassInfo2_GetGUID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IProvideClassInfo2_INTERFACE_DEFINED__ */ - -#ifndef __IConnectionPointContainer_FWD_DEFINED__ -#define __IConnectionPointContainer_FWD_DEFINED__ -typedef struct IConnectionPointContainer IConnectionPointContainer; -#endif - -#ifndef __IEnumConnections_FWD_DEFINED__ -#define __IEnumConnections_FWD_DEFINED__ -typedef struct IEnumConnections IEnumConnections; -#endif - -#ifndef __IConnectionPoint_FWD_DEFINED__ -#define __IConnectionPoint_FWD_DEFINED__ -typedef struct IConnectionPoint IConnectionPoint; -#endif - -typedef IConnectionPoint *PCONNECTIONPOINT, *LPCONNECTIONPOINT; - -/***************************************************************************** - * IConnectionPoint interface - */ -#ifndef __IConnectionPoint_INTERFACE_DEFINED__ -#define __IConnectionPoint_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IConnectionPoint, 0xb196b286, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IConnectionPoint : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetConnectionInterface( - IID* pIID) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetConnectionPointContainer( - IConnectionPointContainer** ppCPC) = 0; - - virtual HRESULT STDMETHODCALLTYPE Advise( - IUnknown* pUnkSink, - DWORD* pdwCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unadvise( - DWORD dwCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumConnections( - IEnumConnections** ppEnum) = 0; - -}; -#else -typedef struct IConnectionPointVtbl IConnectionPointVtbl; -struct IConnectionPoint { - const IConnectionPointVtbl* lpVtbl; -}; -struct IConnectionPointVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IConnectionPoint* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IConnectionPoint* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IConnectionPoint* This); - - /*** IConnectionPoint methods ***/ - HRESULT (STDMETHODCALLTYPE *GetConnectionInterface)( - IConnectionPoint* This, - IID* pIID); - - HRESULT (STDMETHODCALLTYPE *GetConnectionPointContainer)( - IConnectionPoint* This, - IConnectionPointContainer** ppCPC); - - HRESULT (STDMETHODCALLTYPE *Advise)( - IConnectionPoint* This, - IUnknown* pUnkSink, - DWORD* pdwCookie); - - HRESULT (STDMETHODCALLTYPE *Unadvise)( - IConnectionPoint* This, - DWORD dwCookie); - - HRESULT (STDMETHODCALLTYPE *EnumConnections)( - IConnectionPoint* This, - IEnumConnections** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IConnectionPoint_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IConnectionPoint_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IConnectionPoint_Release(p) (p)->lpVtbl->Release(p) -/*** IConnectionPoint methods ***/ -#define IConnectionPoint_GetConnectionInterface(p,a) (p)->lpVtbl->GetConnectionInterface(p,a) -#define IConnectionPoint_GetConnectionPointContainer(p,a) (p)->lpVtbl->GetConnectionPointContainer(p,a) -#define IConnectionPoint_Advise(p,a,b) (p)->lpVtbl->Advise(p,a,b) -#define IConnectionPoint_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a) -#define IConnectionPoint_EnumConnections(p,a) (p)->lpVtbl->EnumConnections(p,a) -#endif - -#endif - -#define IConnectionPoint_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IConnectionPoint methods ***/ \ - STDMETHOD_(HRESULT,GetConnectionInterface)(THIS_ IID* pIID) PURE; \ - STDMETHOD_(HRESULT,GetConnectionPointContainer)(THIS_ IConnectionPointContainer** ppCPC) PURE; \ - STDMETHOD_(HRESULT,Advise)(THIS_ IUnknown* pUnkSink, DWORD* pdwCookie) PURE; \ - STDMETHOD_(HRESULT,Unadvise)(THIS_ DWORD dwCookie) PURE; \ - STDMETHOD_(HRESULT,EnumConnections)(THIS_ IEnumConnections** ppEnum) PURE; - -HRESULT CALLBACK IConnectionPoint_GetConnectionInterface_Proxy( - IConnectionPoint* This, - IID* pIID); -void __RPC_STUB IConnectionPoint_GetConnectionInterface_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IConnectionPoint_GetConnectionPointContainer_Proxy( - IConnectionPoint* This, - IConnectionPointContainer** ppCPC); -void __RPC_STUB IConnectionPoint_GetConnectionPointContainer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IConnectionPoint_Advise_Proxy( - IConnectionPoint* This, - IUnknown* pUnkSink, - DWORD* pdwCookie); -void __RPC_STUB IConnectionPoint_Advise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IConnectionPoint_Unadvise_Proxy( - IConnectionPoint* This, - DWORD dwCookie); -void __RPC_STUB IConnectionPoint_Unadvise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IConnectionPoint_EnumConnections_Proxy( - IConnectionPoint* This, - IEnumConnections** ppEnum); -void __RPC_STUB IConnectionPoint_EnumConnections_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IConnectionPoint_INTERFACE_DEFINED__ */ - -#ifndef __IEnumConnectionPoints_FWD_DEFINED__ -#define __IEnumConnectionPoints_FWD_DEFINED__ -typedef struct IEnumConnectionPoints IEnumConnectionPoints; -#endif - -typedef IConnectionPointContainer *PCONNECTIONPOINTCONTAINER, *LPCONNECTIONPOINTCONTAINER; - -/***************************************************************************** - * IConnectionPointContainer interface - */ -#ifndef __IConnectionPointContainer_INTERFACE_DEFINED__ -#define __IConnectionPointContainer_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IConnectionPointContainer, 0xb196b284, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IConnectionPointContainer : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE EnumConnectionPoints( - IEnumConnectionPoints** ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindConnectionPoint( - REFIID riid, - IConnectionPoint** ppCP) = 0; - -}; -#else -typedef struct IConnectionPointContainerVtbl IConnectionPointContainerVtbl; -struct IConnectionPointContainer { - const IConnectionPointContainerVtbl* lpVtbl; -}; -struct IConnectionPointContainerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IConnectionPointContainer* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IConnectionPointContainer* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IConnectionPointContainer* This); - - /*** IConnectionPointContainer methods ***/ - HRESULT (STDMETHODCALLTYPE *EnumConnectionPoints)( - IConnectionPointContainer* This, - IEnumConnectionPoints** ppEnum); - - HRESULT (STDMETHODCALLTYPE *FindConnectionPoint)( - IConnectionPointContainer* This, - REFIID riid, - IConnectionPoint** ppCP); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IConnectionPointContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IConnectionPointContainer_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IConnectionPointContainer_Release(p) (p)->lpVtbl->Release(p) -/*** IConnectionPointContainer methods ***/ -#define IConnectionPointContainer_EnumConnectionPoints(p,a) (p)->lpVtbl->EnumConnectionPoints(p,a) -#define IConnectionPointContainer_FindConnectionPoint(p,a,b) (p)->lpVtbl->FindConnectionPoint(p,a,b) -#endif - -#endif - -#define IConnectionPointContainer_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IConnectionPointContainer methods ***/ \ - STDMETHOD_(HRESULT,EnumConnectionPoints)(THIS_ IEnumConnectionPoints** ppEnum) PURE; \ - STDMETHOD_(HRESULT,FindConnectionPoint)(THIS_ REFIID riid, IConnectionPoint** ppCP) PURE; - -HRESULT CALLBACK IConnectionPointContainer_EnumConnectionPoints_Proxy( - IConnectionPointContainer* This, - IEnumConnectionPoints** ppEnum); -void __RPC_STUB IConnectionPointContainer_EnumConnectionPoints_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IConnectionPointContainer_FindConnectionPoint_Proxy( - IConnectionPointContainer* This, - REFIID riid, - IConnectionPoint** ppCP); -void __RPC_STUB IConnectionPointContainer_FindConnectionPoint_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IConnectionPointContainer_INTERFACE_DEFINED__ */ - -typedef IEnumConnections *PENUMCONNECTIONS, *LPENUMCONNECTIONS; - -typedef struct tagCONNECTDATA { - IUnknown *pUnk; - DWORD dwCookie; -} CONNECTDATA, *PCONNECTDATA, *LPCONNECTDATA; - -/***************************************************************************** - * IEnumConnections interface - */ -#ifndef __IEnumConnections_INTERFACE_DEFINED__ -#define __IEnumConnections_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumConnections, 0xb196b287, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumConnections : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG cConnections, - LPCONNECTDATA rgcd, - ULONG* pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG cConnections) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumConnections** ppEnum) = 0; - -}; -#else -typedef struct IEnumConnectionsVtbl IEnumConnectionsVtbl; -struct IEnumConnections { - const IEnumConnectionsVtbl* lpVtbl; -}; -struct IEnumConnectionsVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumConnections* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumConnections* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumConnections* This); - - /*** IEnumConnections methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumConnections* This, - ULONG cConnections, - LPCONNECTDATA rgcd, - ULONG* pcFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumConnections* This, - ULONG cConnections); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumConnections* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumConnections* This, - IEnumConnections** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumConnections_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumConnections_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumConnections_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumConnections methods ***/ -#define IEnumConnections_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumConnections_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumConnections_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumConnections_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumConnections_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumConnections methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG cConnections, LPCONNECTDATA rgcd, ULONG* pcFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cConnections) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumConnections** ppEnum) PURE; - -HRESULT CALLBACK IEnumConnections_RemoteNext_Proxy( - IEnumConnections* This, - ULONG cConnections, - LPCONNECTDATA rgcd, - ULONG* pcFetched); -void __RPC_STUB IEnumConnections_RemoteNext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumConnections_Next_Proxy( - IEnumConnections* This, - ULONG cConnections, - LPCONNECTDATA rgcd, - ULONG* pcFetched); -HRESULT __RPC_STUB IEnumConnections_Next_Stub( - IEnumConnections* This, - ULONG cConnections, - LPCONNECTDATA rgcd, - ULONG* pcFetched); -HRESULT CALLBACK IEnumConnections_Skip_Proxy( - IEnumConnections* This, - ULONG cConnections); -void __RPC_STUB IEnumConnections_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumConnections_Reset_Proxy( - IEnumConnections* This); -void __RPC_STUB IEnumConnections_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumConnections_Clone_Proxy( - IEnumConnections* This, - IEnumConnections** ppEnum); -void __RPC_STUB IEnumConnections_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumConnections_INTERFACE_DEFINED__ */ - -typedef IEnumConnectionPoints *PENUMCONNECTIONPOINTS, *LPENUMCONNECTIONPOINTS; - -/***************************************************************************** - * IEnumConnectionPoints interface - */ -#ifndef __IEnumConnectionPoints_INTERFACE_DEFINED__ -#define __IEnumConnectionPoints_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumConnectionPoints, 0xb196b285, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumConnectionPoints : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG cConnections, - LPCONNECTIONPOINT* ppCP, - ULONG* pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG cConnections) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumConnectionPoints** ppEnum) = 0; - -}; -#else -typedef struct IEnumConnectionPointsVtbl IEnumConnectionPointsVtbl; -struct IEnumConnectionPoints { - const IEnumConnectionPointsVtbl* lpVtbl; -}; -struct IEnumConnectionPointsVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumConnectionPoints* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumConnectionPoints* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumConnectionPoints* This); - - /*** IEnumConnectionPoints methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumConnectionPoints* This, - ULONG cConnections, - LPCONNECTIONPOINT* ppCP, - ULONG* pcFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumConnectionPoints* This, - ULONG cConnections); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumConnectionPoints* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumConnectionPoints* This, - IEnumConnectionPoints** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumConnectionPoints_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumConnectionPoints_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumConnectionPoints_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumConnectionPoints methods ***/ -#define IEnumConnectionPoints_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumConnectionPoints_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumConnectionPoints_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumConnectionPoints_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumConnectionPoints_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumConnectionPoints methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG cConnections, LPCONNECTIONPOINT* ppCP, ULONG* pcFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cConnections) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumConnectionPoints** ppEnum) PURE; - -HRESULT CALLBACK IEnumConnectionPoints_RemoteNext_Proxy( - IEnumConnectionPoints* This, - ULONG cConnections, - LPCONNECTIONPOINT* ppCP, - ULONG* pcFetched); -void __RPC_STUB IEnumConnectionPoints_RemoteNext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumConnectionPoints_Next_Proxy( - IEnumConnectionPoints* This, - ULONG cConnections, - LPCONNECTIONPOINT* ppCP, - ULONG* pcFetched); -HRESULT __RPC_STUB IEnumConnectionPoints_Next_Stub( - IEnumConnectionPoints* This, - ULONG cConnections, - LPCONNECTIONPOINT* ppCP, - ULONG* pcFetched); -HRESULT CALLBACK IEnumConnectionPoints_Skip_Proxy( - IEnumConnectionPoints* This, - ULONG cConnections); -void __RPC_STUB IEnumConnectionPoints_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumConnectionPoints_Reset_Proxy( - IEnumConnectionPoints* This); -void __RPC_STUB IEnumConnectionPoints_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumConnectionPoints_Clone_Proxy( - IEnumConnectionPoints* This, - IEnumConnectionPoints** ppEnum); -void __RPC_STUB IEnumConnectionPoints_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumConnectionPoints_INTERFACE_DEFINED__ */ - -#ifndef __IPropertyPageSite_FWD_DEFINED__ -#define __IPropertyPageSite_FWD_DEFINED__ -typedef struct IPropertyPageSite IPropertyPageSite; -#endif - -#ifndef __IPropertyPage_FWD_DEFINED__ -#define __IPropertyPage_FWD_DEFINED__ -typedef struct IPropertyPage IPropertyPage; -#endif - -typedef IPropertyPage *LPPROPERTYPAGE; - -typedef struct tagPROPPAGEINFO { - ULONG cb; - LPOLESTR pszTitle; - SIZE size; - LPOLESTR pszDocString; - LPOLESTR pszHelpFile; - DWORD dwHelpContext; -} PROPPAGEINFO, *LPPROPPAGEINFO; - -/***************************************************************************** - * IPropertyPage interface - */ -#ifndef __IPropertyPage_INTERFACE_DEFINED__ -#define __IPropertyPage_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPropertyPage, 0xb196b28d, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPropertyPage : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetPageSite( - IPropertyPageSite* pPageSite) = 0; - - virtual HRESULT STDMETHODCALLTYPE Activate( - HWND hWndParent, - LPCRECT pRect, - BOOL bModal) = 0; - - virtual HRESULT STDMETHODCALLTYPE Deactivate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPageInfo( - PROPPAGEINFO* pPageInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetObjects( - ULONG cObjects, - IUnknown** ppUnk) = 0; - - virtual HRESULT STDMETHODCALLTYPE Show( - UINT nCmdShow) = 0; - - virtual HRESULT STDMETHODCALLTYPE Move( - LPCRECT pRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsPageDirty( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Apply( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Help( - LPCOLESTR pszHelpDir) = 0; - - virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator( - MSG* pMsg) = 0; - -}; -#else -typedef struct IPropertyPageVtbl IPropertyPageVtbl; -struct IPropertyPage { - const IPropertyPageVtbl* lpVtbl; -}; -struct IPropertyPageVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPropertyPage* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPropertyPage* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPropertyPage* This); - - /*** IPropertyPage methods ***/ - HRESULT (STDMETHODCALLTYPE *SetPageSite)( - IPropertyPage* This, - IPropertyPageSite* pPageSite); - - HRESULT (STDMETHODCALLTYPE *Activate)( - IPropertyPage* This, - HWND hWndParent, - LPCRECT pRect, - BOOL bModal); - - HRESULT (STDMETHODCALLTYPE *Deactivate)( - IPropertyPage* This); - - HRESULT (STDMETHODCALLTYPE *GetPageInfo)( - IPropertyPage* This, - PROPPAGEINFO* pPageInfo); - - HRESULT (STDMETHODCALLTYPE *SetObjects)( - IPropertyPage* This, - ULONG cObjects, - IUnknown** ppUnk); - - HRESULT (STDMETHODCALLTYPE *Show)( - IPropertyPage* This, - UINT nCmdShow); - - HRESULT (STDMETHODCALLTYPE *Move)( - IPropertyPage* This, - LPCRECT pRect); - - HRESULT (STDMETHODCALLTYPE *IsPageDirty)( - IPropertyPage* This); - - HRESULT (STDMETHODCALLTYPE *Apply)( - IPropertyPage* This); - - HRESULT (STDMETHODCALLTYPE *Help)( - IPropertyPage* This, - LPCOLESTR pszHelpDir); - - HRESULT (STDMETHODCALLTYPE *TranslateAccelerator)( - IPropertyPage* This, - MSG* pMsg); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPropertyPage_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPropertyPage_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPropertyPage_Release(p) (p)->lpVtbl->Release(p) -/*** IPropertyPage methods ***/ -#define IPropertyPage_SetPageSite(p,a) (p)->lpVtbl->SetPageSite(p,a) -#define IPropertyPage_Activate(p,a,b,c) (p)->lpVtbl->Activate(p,a,b,c) -#define IPropertyPage_Deactivate(p) (p)->lpVtbl->Deactivate(p) -#define IPropertyPage_GetPageInfo(p,a) (p)->lpVtbl->GetPageInfo(p,a) -#define IPropertyPage_SetObjects(p,a,b) (p)->lpVtbl->SetObjects(p,a,b) -#define IPropertyPage_Show(p,a) (p)->lpVtbl->Show(p,a) -#define IPropertyPage_Move(p,a) (p)->lpVtbl->Move(p,a) -#define IPropertyPage_IsPageDirty(p) (p)->lpVtbl->IsPageDirty(p) -#define IPropertyPage_Apply(p) (p)->lpVtbl->Apply(p) -#define IPropertyPage_Help(p,a) (p)->lpVtbl->Help(p,a) -#define IPropertyPage_TranslateAccelerator(p,a) (p)->lpVtbl->TranslateAccelerator(p,a) -#endif - -#endif - -#define IPropertyPage_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPropertyPage methods ***/ \ - STDMETHOD_(HRESULT,SetPageSite)(THIS_ IPropertyPageSite* pPageSite) PURE; \ - STDMETHOD_(HRESULT,Activate)(THIS_ HWND hWndParent, LPCRECT pRect, BOOL bModal) PURE; \ - STDMETHOD_(HRESULT,Deactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetPageInfo)(THIS_ PROPPAGEINFO* pPageInfo) PURE; \ - STDMETHOD_(HRESULT,SetObjects)(THIS_ ULONG cObjects, IUnknown** ppUnk) PURE; \ - STDMETHOD_(HRESULT,Show)(THIS_ UINT nCmdShow) PURE; \ - STDMETHOD_(HRESULT,Move)(THIS_ LPCRECT pRect) PURE; \ - STDMETHOD_(HRESULT,IsPageDirty)(THIS) PURE; \ - STDMETHOD_(HRESULT,Apply)(THIS) PURE; \ - STDMETHOD_(HRESULT,Help)(THIS_ LPCOLESTR pszHelpDir) PURE; \ - STDMETHOD_(HRESULT,TranslateAccelerator)(THIS_ MSG* pMsg) PURE; - -HRESULT CALLBACK IPropertyPage_SetPageSite_Proxy( - IPropertyPage* This, - IPropertyPageSite* pPageSite); -void __RPC_STUB IPropertyPage_SetPageSite_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPage_Activate_Proxy( - IPropertyPage* This, - HWND hWndParent, - LPCRECT pRect, - BOOL bModal); -void __RPC_STUB IPropertyPage_Activate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPage_Deactivate_Proxy( - IPropertyPage* This); -void __RPC_STUB IPropertyPage_Deactivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPage_GetPageInfo_Proxy( - IPropertyPage* This, - PROPPAGEINFO* pPageInfo); -void __RPC_STUB IPropertyPage_GetPageInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPage_SetObjects_Proxy( - IPropertyPage* This, - ULONG cObjects, - IUnknown** ppUnk); -void __RPC_STUB IPropertyPage_SetObjects_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPage_Show_Proxy( - IPropertyPage* This, - UINT nCmdShow); -void __RPC_STUB IPropertyPage_Show_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPage_Move_Proxy( - IPropertyPage* This, - LPCRECT pRect); -void __RPC_STUB IPropertyPage_Move_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPage_IsPageDirty_Proxy( - IPropertyPage* This); -void __RPC_STUB IPropertyPage_IsPageDirty_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPage_Apply_Proxy( - IPropertyPage* This); -void __RPC_STUB IPropertyPage_Apply_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPage_Help_Proxy( - IPropertyPage* This, - LPCOLESTR pszHelpDir); -void __RPC_STUB IPropertyPage_Help_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPage_TranslateAccelerator_Proxy( - IPropertyPage* This, - MSG* pMsg); -void __RPC_STUB IPropertyPage_TranslateAccelerator_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPropertyPage_INTERFACE_DEFINED__ */ - -#ifndef __IPropertyPage2_FWD_DEFINED__ -#define __IPropertyPage2_FWD_DEFINED__ -typedef struct IPropertyPage2 IPropertyPage2; -#endif - -typedef IPropertyPage2 *LPPROPERTYPAGE2; - -/***************************************************************************** - * IPropertyPage2 interface - */ -#ifndef __IPropertyPage2_INTERFACE_DEFINED__ -#define __IPropertyPage2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPropertyPage2, 0x01e44665, 0x24ac, 0x101b, 0x84,0xed, 0x08,0x00,0x2b,0x2e,0xc7,0x13); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPropertyPage2 : public IPropertyPage -{ - virtual HRESULT STDMETHODCALLTYPE EditProperty( - DISPID dispID) = 0; - -}; -#else -typedef struct IPropertyPage2Vtbl IPropertyPage2Vtbl; -struct IPropertyPage2 { - const IPropertyPage2Vtbl* lpVtbl; -}; -struct IPropertyPage2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPropertyPage2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPropertyPage2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPropertyPage2* This); - - /*** IPropertyPage methods ***/ - HRESULT (STDMETHODCALLTYPE *SetPageSite)( - IPropertyPage2* This, - IPropertyPageSite* pPageSite); - - HRESULT (STDMETHODCALLTYPE *Activate)( - IPropertyPage2* This, - HWND hWndParent, - LPCRECT pRect, - BOOL bModal); - - HRESULT (STDMETHODCALLTYPE *Deactivate)( - IPropertyPage2* This); - - HRESULT (STDMETHODCALLTYPE *GetPageInfo)( - IPropertyPage2* This, - PROPPAGEINFO* pPageInfo); - - HRESULT (STDMETHODCALLTYPE *SetObjects)( - IPropertyPage2* This, - ULONG cObjects, - IUnknown** ppUnk); - - HRESULT (STDMETHODCALLTYPE *Show)( - IPropertyPage2* This, - UINT nCmdShow); - - HRESULT (STDMETHODCALLTYPE *Move)( - IPropertyPage2* This, - LPCRECT pRect); - - HRESULT (STDMETHODCALLTYPE *IsPageDirty)( - IPropertyPage2* This); - - HRESULT (STDMETHODCALLTYPE *Apply)( - IPropertyPage2* This); - - HRESULT (STDMETHODCALLTYPE *Help)( - IPropertyPage2* This, - LPCOLESTR pszHelpDir); - - HRESULT (STDMETHODCALLTYPE *TranslateAccelerator)( - IPropertyPage2* This, - MSG* pMsg); - - /*** IPropertyPage2 methods ***/ - HRESULT (STDMETHODCALLTYPE *EditProperty)( - IPropertyPage2* This, - DISPID dispID); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPropertyPage2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPropertyPage2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPropertyPage2_Release(p) (p)->lpVtbl->Release(p) -/*** IPropertyPage methods ***/ -#define IPropertyPage2_SetPageSite(p,a) (p)->lpVtbl->SetPageSite(p,a) -#define IPropertyPage2_Activate(p,a,b,c) (p)->lpVtbl->Activate(p,a,b,c) -#define IPropertyPage2_Deactivate(p) (p)->lpVtbl->Deactivate(p) -#define IPropertyPage2_GetPageInfo(p,a) (p)->lpVtbl->GetPageInfo(p,a) -#define IPropertyPage2_SetObjects(p,a,b) (p)->lpVtbl->SetObjects(p,a,b) -#define IPropertyPage2_Show(p,a) (p)->lpVtbl->Show(p,a) -#define IPropertyPage2_Move(p,a) (p)->lpVtbl->Move(p,a) -#define IPropertyPage2_IsPageDirty(p) (p)->lpVtbl->IsPageDirty(p) -#define IPropertyPage2_Apply(p) (p)->lpVtbl->Apply(p) -#define IPropertyPage2_Help(p,a) (p)->lpVtbl->Help(p,a) -#define IPropertyPage2_TranslateAccelerator(p,a) (p)->lpVtbl->TranslateAccelerator(p,a) -/*** IPropertyPage2 methods ***/ -#define IPropertyPage2_EditProperty(p,a) (p)->lpVtbl->EditProperty(p,a) -#endif - -#endif - -#define IPropertyPage2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPropertyPage methods ***/ \ - STDMETHOD_(HRESULT,SetPageSite)(THIS_ IPropertyPageSite* pPageSite) PURE; \ - STDMETHOD_(HRESULT,Activate)(THIS_ HWND hWndParent, LPCRECT pRect, BOOL bModal) PURE; \ - STDMETHOD_(HRESULT,Deactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetPageInfo)(THIS_ PROPPAGEINFO* pPageInfo) PURE; \ - STDMETHOD_(HRESULT,SetObjects)(THIS_ ULONG cObjects, IUnknown** ppUnk) PURE; \ - STDMETHOD_(HRESULT,Show)(THIS_ UINT nCmdShow) PURE; \ - STDMETHOD_(HRESULT,Move)(THIS_ LPCRECT pRect) PURE; \ - STDMETHOD_(HRESULT,IsPageDirty)(THIS) PURE; \ - STDMETHOD_(HRESULT,Apply)(THIS) PURE; \ - STDMETHOD_(HRESULT,Help)(THIS_ LPCOLESTR pszHelpDir) PURE; \ - STDMETHOD_(HRESULT,TranslateAccelerator)(THIS_ MSG* pMsg) PURE; \ - /*** IPropertyPage2 methods ***/ \ - STDMETHOD_(HRESULT,EditProperty)(THIS_ DISPID dispID) PURE; - -HRESULT CALLBACK IPropertyPage2_EditProperty_Proxy( - IPropertyPage2* This, - DISPID dispID); -void __RPC_STUB IPropertyPage2_EditProperty_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPropertyPage2_INTERFACE_DEFINED__ */ - -typedef IPropertyPageSite *LPPROPERTYPAGESITE; - -typedef enum tagPROPPAGESTATUS { - PROPPAGESTATUS_DIRTY = 0x1, - PROPPAGESTATUS_VALIDATE = 0x2, - PROPPAGESTATUS_CLEAN = 0x4 -} PROPPAGESTATUS; - -/***************************************************************************** - * IPropertyPageSite interface - */ -#ifndef __IPropertyPageSite_INTERFACE_DEFINED__ -#define __IPropertyPageSite_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPropertyPageSite, 0xb196b28c, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPropertyPageSite : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE OnStatusChange( - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLocaleID( - LCID* pLocaleID) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPageContainer( - IUnknown** ppUnk) = 0; - - virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator( - MSG* pMsg) = 0; - -}; -#else -typedef struct IPropertyPageSiteVtbl IPropertyPageSiteVtbl; -struct IPropertyPageSite { - const IPropertyPageSiteVtbl* lpVtbl; -}; -struct IPropertyPageSiteVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPropertyPageSite* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPropertyPageSite* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPropertyPageSite* This); - - /*** IPropertyPageSite methods ***/ - HRESULT (STDMETHODCALLTYPE *OnStatusChange)( - IPropertyPageSite* This, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *GetLocaleID)( - IPropertyPageSite* This, - LCID* pLocaleID); - - HRESULT (STDMETHODCALLTYPE *GetPageContainer)( - IPropertyPageSite* This, - IUnknown** ppUnk); - - HRESULT (STDMETHODCALLTYPE *TranslateAccelerator)( - IPropertyPageSite* This, - MSG* pMsg); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPropertyPageSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPropertyPageSite_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPropertyPageSite_Release(p) (p)->lpVtbl->Release(p) -/*** IPropertyPageSite methods ***/ -#define IPropertyPageSite_OnStatusChange(p,a) (p)->lpVtbl->OnStatusChange(p,a) -#define IPropertyPageSite_GetLocaleID(p,a) (p)->lpVtbl->GetLocaleID(p,a) -#define IPropertyPageSite_GetPageContainer(p,a) (p)->lpVtbl->GetPageContainer(p,a) -#define IPropertyPageSite_TranslateAccelerator(p,a) (p)->lpVtbl->TranslateAccelerator(p,a) -#endif - -#endif - -#define IPropertyPageSite_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPropertyPageSite methods ***/ \ - STDMETHOD_(HRESULT,OnStatusChange)(THIS_ DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,GetLocaleID)(THIS_ LCID* pLocaleID) PURE; \ - STDMETHOD_(HRESULT,GetPageContainer)(THIS_ IUnknown** ppUnk) PURE; \ - STDMETHOD_(HRESULT,TranslateAccelerator)(THIS_ MSG* pMsg) PURE; - -HRESULT CALLBACK IPropertyPageSite_OnStatusChange_Proxy( - IPropertyPageSite* This, - DWORD dwFlags); -void __RPC_STUB IPropertyPageSite_OnStatusChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPageSite_GetLocaleID_Proxy( - IPropertyPageSite* This, - LCID* pLocaleID); -void __RPC_STUB IPropertyPageSite_GetLocaleID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPageSite_GetPageContainer_Proxy( - IPropertyPageSite* This, - IUnknown** ppUnk); -void __RPC_STUB IPropertyPageSite_GetPageContainer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyPageSite_TranslateAccelerator_Proxy( - IPropertyPageSite* This, - MSG* pMsg); -void __RPC_STUB IPropertyPageSite_TranslateAccelerator_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPropertyPageSite_INTERFACE_DEFINED__ */ - -#ifndef __IPropertyNotifySink_FWD_DEFINED__ -#define __IPropertyNotifySink_FWD_DEFINED__ -typedef struct IPropertyNotifySink IPropertyNotifySink; -#endif - -typedef IPropertyNotifySink *LPPROPERTYNOTIFYSINK; - -/***************************************************************************** - * IPropertyNotifySink interface - */ -#ifndef __IPropertyNotifySink_INTERFACE_DEFINED__ -#define __IPropertyNotifySink_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPropertyNotifySink, 0x9bfbbc02, 0xeff1, 0x101a, 0x84,0xed, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPropertyNotifySink : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE OnChanged( - DISPID dispID) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnRequestEdit( - DISPID dispID) = 0; - -}; -#else -typedef struct IPropertyNotifySinkVtbl IPropertyNotifySinkVtbl; -struct IPropertyNotifySink { - const IPropertyNotifySinkVtbl* lpVtbl; -}; -struct IPropertyNotifySinkVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPropertyNotifySink* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPropertyNotifySink* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPropertyNotifySink* This); - - /*** IPropertyNotifySink methods ***/ - HRESULT (STDMETHODCALLTYPE *OnChanged)( - IPropertyNotifySink* This, - DISPID dispID); - - HRESULT (STDMETHODCALLTYPE *OnRequestEdit)( - IPropertyNotifySink* This, - DISPID dispID); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPropertyNotifySink_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPropertyNotifySink_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPropertyNotifySink_Release(p) (p)->lpVtbl->Release(p) -/*** IPropertyNotifySink methods ***/ -#define IPropertyNotifySink_OnChanged(p,a) (p)->lpVtbl->OnChanged(p,a) -#define IPropertyNotifySink_OnRequestEdit(p,a) (p)->lpVtbl->OnRequestEdit(p,a) -#endif - -#endif - -#define IPropertyNotifySink_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPropertyNotifySink methods ***/ \ - STDMETHOD_(HRESULT,OnChanged)(THIS_ DISPID dispID) PURE; \ - STDMETHOD_(HRESULT,OnRequestEdit)(THIS_ DISPID dispID) PURE; - -HRESULT CALLBACK IPropertyNotifySink_OnChanged_Proxy( - IPropertyNotifySink* This, - DISPID dispID); -void __RPC_STUB IPropertyNotifySink_OnChanged_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyNotifySink_OnRequestEdit_Proxy( - IPropertyNotifySink* This, - DISPID dispID); -void __RPC_STUB IPropertyNotifySink_OnRequestEdit_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPropertyNotifySink_INTERFACE_DEFINED__ */ - -#ifndef __ISimpleFrameSite_FWD_DEFINED__ -#define __ISimpleFrameSite_FWD_DEFINED__ -typedef struct ISimpleFrameSite ISimpleFrameSite; -#endif - -typedef ISimpleFrameSite *LPSIMPLEFRAMESITE; - -/***************************************************************************** - * ISimpleFrameSite interface - */ -#ifndef __ISimpleFrameSite_INTERFACE_DEFINED__ -#define __ISimpleFrameSite_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ISimpleFrameSite, 0x742b0e01, 0x14e6, 0x101b, 0x91,0x4e, 0x00,0xaa,0x00,0x30,0x0c,0xab); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ISimpleFrameSite : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE PreMessageFilter( - HWND hWnd, - UINT msg, - WPARAM wp, - LPARAM lp, - LRESULT* plResult, - DWORD* pdwCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE PostMessageFilter( - HWND hWnd, - UINT msg, - WPARAM wp, - LPARAM lp, - LRESULT* plResult, - DWORD dwCookie) = 0; - -}; -#else -typedef struct ISimpleFrameSiteVtbl ISimpleFrameSiteVtbl; -struct ISimpleFrameSite { - const ISimpleFrameSiteVtbl* lpVtbl; -}; -struct ISimpleFrameSiteVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ISimpleFrameSite* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ISimpleFrameSite* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ISimpleFrameSite* This); - - /*** ISimpleFrameSite methods ***/ - HRESULT (STDMETHODCALLTYPE *PreMessageFilter)( - ISimpleFrameSite* This, - HWND hWnd, - UINT msg, - WPARAM wp, - LPARAM lp, - LRESULT* plResult, - DWORD* pdwCookie); - - HRESULT (STDMETHODCALLTYPE *PostMessageFilter)( - ISimpleFrameSite* This, - HWND hWnd, - UINT msg, - WPARAM wp, - LPARAM lp, - LRESULT* plResult, - DWORD dwCookie); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ISimpleFrameSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ISimpleFrameSite_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ISimpleFrameSite_Release(p) (p)->lpVtbl->Release(p) -/*** ISimpleFrameSite methods ***/ -#define ISimpleFrameSite_PreMessageFilter(p,a,b,c,d,e,f) (p)->lpVtbl->PreMessageFilter(p,a,b,c,d,e,f) -#define ISimpleFrameSite_PostMessageFilter(p,a,b,c,d,e,f) (p)->lpVtbl->PostMessageFilter(p,a,b,c,d,e,f) -#endif - -#endif - -#define ISimpleFrameSite_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ISimpleFrameSite methods ***/ \ - STDMETHOD_(HRESULT,PreMessageFilter)(THIS_ HWND hWnd, UINT msg, WPARAM wp, LPARAM lp, LRESULT* plResult, DWORD* pdwCookie) PURE; \ - STDMETHOD_(HRESULT,PostMessageFilter)(THIS_ HWND hWnd, UINT msg, WPARAM wp, LPARAM lp, LRESULT* plResult, DWORD dwCookie) PURE; - -HRESULT CALLBACK ISimpleFrameSite_PreMessageFilter_Proxy( - ISimpleFrameSite* This, - HWND hWnd, - UINT msg, - WPARAM wp, - LPARAM lp, - LRESULT* plResult, - DWORD* pdwCookie); -void __RPC_STUB ISimpleFrameSite_PreMessageFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ISimpleFrameSite_PostMessageFilter_Proxy( - ISimpleFrameSite* This, - HWND hWnd, - UINT msg, - WPARAM wp, - LPARAM lp, - LRESULT* plResult, - DWORD dwCookie); -void __RPC_STUB ISimpleFrameSite_PostMessageFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ISimpleFrameSite_INTERFACE_DEFINED__ */ - -#ifndef __IPersistStreamInit_FWD_DEFINED__ -#define __IPersistStreamInit_FWD_DEFINED__ -typedef struct IPersistStreamInit IPersistStreamInit; -#endif - -typedef IPersistStreamInit *LPPERSISTSTREAMINIT; - -/***************************************************************************** - * IPersistStreamInit interface - */ -#ifndef __IPersistStreamInit_INTERFACE_DEFINED__ -#define __IPersistStreamInit_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistStreamInit, 0x7fd52380, 0x4e07, 0x101b, 0xae,0x2d, 0x08,0x00,0x2b,0x2e,0xc7,0x13); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistStreamInit : public IPersist -{ - virtual HRESULT STDMETHODCALLTYPE IsDirty( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Load( - LPSTREAM pStm) = 0; - - virtual HRESULT STDMETHODCALLTYPE Save( - LPSTREAM pStm, - BOOL fClearDirty) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSizeMax( - ULARGE_INTEGER* pcbSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE InitNew( - ) = 0; - -}; -#else -typedef struct IPersistStreamInitVtbl IPersistStreamInitVtbl; -struct IPersistStreamInit { - const IPersistStreamInitVtbl* lpVtbl; -}; -struct IPersistStreamInitVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistStreamInit* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistStreamInit* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistStreamInit* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistStreamInit* This, - CLSID* pClassID); - - /*** IPersistStreamInit methods ***/ - HRESULT (STDMETHODCALLTYPE *IsDirty)( - IPersistStreamInit* This); - - HRESULT (STDMETHODCALLTYPE *Load)( - IPersistStreamInit* This, - LPSTREAM pStm); - - HRESULT (STDMETHODCALLTYPE *Save)( - IPersistStreamInit* This, - LPSTREAM pStm, - BOOL fClearDirty); - - HRESULT (STDMETHODCALLTYPE *GetSizeMax)( - IPersistStreamInit* This, - ULARGE_INTEGER* pcbSize); - - HRESULT (STDMETHODCALLTYPE *InitNew)( - IPersistStreamInit* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPersistStreamInit_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPersistStreamInit_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPersistStreamInit_Release(p) (p)->lpVtbl->Release(p) -/*** IPersist methods ***/ -#define IPersistStreamInit_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -/*** IPersistStreamInit methods ***/ -#define IPersistStreamInit_IsDirty(p) (p)->lpVtbl->IsDirty(p) -#define IPersistStreamInit_Load(p,a) (p)->lpVtbl->Load(p,a) -#define IPersistStreamInit_Save(p,a,b) (p)->lpVtbl->Save(p,a,b) -#define IPersistStreamInit_GetSizeMax(p,a) (p)->lpVtbl->GetSizeMax(p,a) -#define IPersistStreamInit_InitNew(p) (p)->lpVtbl->InitNew(p) -#endif - -#endif - -#define IPersistStreamInit_METHODS \ - /*** 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; \ - /*** IPersistStreamInit methods ***/ \ - STDMETHOD_(HRESULT,IsDirty)(THIS) PURE; \ - STDMETHOD_(HRESULT,Load)(THIS_ LPSTREAM pStm) PURE; \ - STDMETHOD_(HRESULT,Save)(THIS_ LPSTREAM pStm, BOOL fClearDirty) PURE; \ - STDMETHOD_(HRESULT,GetSizeMax)(THIS_ ULARGE_INTEGER* pcbSize) PURE; \ - STDMETHOD_(HRESULT,InitNew)(THIS) PURE; - -HRESULT CALLBACK IPersistStreamInit_IsDirty_Proxy( - IPersistStreamInit* This); -void __RPC_STUB IPersistStreamInit_IsDirty_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistStreamInit_Load_Proxy( - IPersistStreamInit* This, - LPSTREAM pStm); -void __RPC_STUB IPersistStreamInit_Load_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistStreamInit_Save_Proxy( - IPersistStreamInit* This, - LPSTREAM pStm, - BOOL fClearDirty); -void __RPC_STUB IPersistStreamInit_Save_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistStreamInit_GetSizeMax_Proxy( - IPersistStreamInit* This, - ULARGE_INTEGER* pcbSize); -void __RPC_STUB IPersistStreamInit_GetSizeMax_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistStreamInit_InitNew_Proxy( - IPersistStreamInit* This); -void __RPC_STUB IPersistStreamInit_InitNew_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPersistStreamInit_INTERFACE_DEFINED__ */ - -#ifndef __IPersistMemory_FWD_DEFINED__ -#define __IPersistMemory_FWD_DEFINED__ -typedef struct IPersistMemory IPersistMemory; -#endif - -typedef IPersistMemory *LPPERSISTMEMORY; - -/***************************************************************************** - * IPersistMemory interface - */ -#ifndef __IPersistMemory_INTERFACE_DEFINED__ -#define __IPersistMemory_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistMemory, 0xbd1ae5e0, 0xa6ae, 0x11ce, 0xbd,0x37, 0x50,0x42,0x00,0xc1,0x00,0x00); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistMemory : public IPersist -{ - virtual HRESULT STDMETHODCALLTYPE IsDirty( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Load( - LPVOID pMem, - ULONG cbSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE Save( - LPVOID pMem, - BOOL fClearDirty, - ULONG cbSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSizeMax( - ULONG* pCbSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE InitNew( - ) = 0; - -}; -#else -typedef struct IPersistMemoryVtbl IPersistMemoryVtbl; -struct IPersistMemory { - const IPersistMemoryVtbl* lpVtbl; -}; -struct IPersistMemoryVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistMemory* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistMemory* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistMemory* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistMemory* This, - CLSID* pClassID); - - /*** IPersistMemory methods ***/ - HRESULT (STDMETHODCALLTYPE *IsDirty)( - IPersistMemory* This); - - HRESULT (STDMETHODCALLTYPE *Load)( - IPersistMemory* This, - LPVOID pMem, - ULONG cbSize); - - HRESULT (STDMETHODCALLTYPE *Save)( - IPersistMemory* This, - LPVOID pMem, - BOOL fClearDirty, - ULONG cbSize); - - HRESULT (STDMETHODCALLTYPE *GetSizeMax)( - IPersistMemory* This, - ULONG* pCbSize); - - HRESULT (STDMETHODCALLTYPE *InitNew)( - IPersistMemory* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPersistMemory_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPersistMemory_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPersistMemory_Release(p) (p)->lpVtbl->Release(p) -/*** IPersist methods ***/ -#define IPersistMemory_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -/*** IPersistMemory methods ***/ -#define IPersistMemory_IsDirty(p) (p)->lpVtbl->IsDirty(p) -#define IPersistMemory_Load(p,a,b) (p)->lpVtbl->Load(p,a,b) -#define IPersistMemory_Save(p,a,b,c) (p)->lpVtbl->Save(p,a,b,c) -#define IPersistMemory_GetSizeMax(p,a) (p)->lpVtbl->GetSizeMax(p,a) -#define IPersistMemory_InitNew(p) (p)->lpVtbl->InitNew(p) -#endif - -#endif - -#define IPersistMemory_METHODS \ - /*** 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; \ - /*** IPersistMemory methods ***/ \ - STDMETHOD_(HRESULT,IsDirty)(THIS) PURE; \ - STDMETHOD_(HRESULT,Load)(THIS_ LPVOID pMem, ULONG cbSize) PURE; \ - STDMETHOD_(HRESULT,Save)(THIS_ LPVOID pMem, BOOL fClearDirty, ULONG cbSize) PURE; \ - STDMETHOD_(HRESULT,GetSizeMax)(THIS_ ULONG* pCbSize) PURE; \ - STDMETHOD_(HRESULT,InitNew)(THIS) PURE; - -HRESULT CALLBACK IPersistMemory_IsDirty_Proxy( - IPersistMemory* This); -void __RPC_STUB IPersistMemory_IsDirty_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistMemory_RemoteLoad_Proxy( - IPersistMemory* This, - BYTE* pMem, - ULONG cbSize); -void __RPC_STUB IPersistMemory_RemoteLoad_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistMemory_Load_Proxy( - IPersistMemory* This, - LPVOID pMem, - ULONG cbSize); -HRESULT __RPC_STUB IPersistMemory_Load_Stub( - IPersistMemory* This, - BYTE* pMem, - ULONG cbSize); -HRESULT CALLBACK IPersistMemory_RemoteSave_Proxy( - IPersistMemory* This, - BYTE* pMem, - BOOL fClearDirty, - ULONG cbSize); -void __RPC_STUB IPersistMemory_RemoteSave_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistMemory_Save_Proxy( - IPersistMemory* This, - LPVOID pMem, - BOOL fClearDirty, - ULONG cbSize); -HRESULT __RPC_STUB IPersistMemory_Save_Stub( - IPersistMemory* This, - BYTE* pMem, - BOOL fClearDirty, - ULONG cbSize); -HRESULT CALLBACK IPersistMemory_GetSizeMax_Proxy( - IPersistMemory* This, - ULONG* pCbSize); -void __RPC_STUB IPersistMemory_GetSizeMax_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistMemory_InitNew_Proxy( - IPersistMemory* This); -void __RPC_STUB IPersistMemory_InitNew_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPersistMemory_INTERFACE_DEFINED__ */ - -#ifndef __IPersistPropertyBag_FWD_DEFINED__ -#define __IPersistPropertyBag_FWD_DEFINED__ -typedef struct IPersistPropertyBag IPersistPropertyBag; -#endif - -typedef IPersistPropertyBag *LPPERSISTPROPERTYBAG; - -/***************************************************************************** - * IPersistPropertyBag interface - */ -#ifndef __IPersistPropertyBag_INTERFACE_DEFINED__ -#define __IPersistPropertyBag_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistPropertyBag, 0x37d84f60, 0x42cb, 0x11ce, 0x81,0x35, 0x00,0xaa,0x00,0x4b,0xb8,0x51); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistPropertyBag : public IPersist -{ - virtual HRESULT STDMETHODCALLTYPE InitNew( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Load( - IPropertyBag* pPropBag, - IErrorLog* pErrorLog) = 0; - - virtual HRESULT STDMETHODCALLTYPE Save( - IPropertyBag* pPropBag, - BOOL fClearDirty, - BOOL fSaveAllProperties) = 0; - -}; -#else -typedef struct IPersistPropertyBagVtbl IPersistPropertyBagVtbl; -struct IPersistPropertyBag { - const IPersistPropertyBagVtbl* lpVtbl; -}; -struct IPersistPropertyBagVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistPropertyBag* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistPropertyBag* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistPropertyBag* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistPropertyBag* This, - CLSID* pClassID); - - /*** IPersistPropertyBag methods ***/ - HRESULT (STDMETHODCALLTYPE *InitNew)( - IPersistPropertyBag* This); - - HRESULT (STDMETHODCALLTYPE *Load)( - IPersistPropertyBag* This, - IPropertyBag* pPropBag, - IErrorLog* pErrorLog); - - HRESULT (STDMETHODCALLTYPE *Save)( - IPersistPropertyBag* This, - IPropertyBag* pPropBag, - BOOL fClearDirty, - BOOL fSaveAllProperties); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPersistPropertyBag_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPersistPropertyBag_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPersistPropertyBag_Release(p) (p)->lpVtbl->Release(p) -/*** IPersist methods ***/ -#define IPersistPropertyBag_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -/*** IPersistPropertyBag methods ***/ -#define IPersistPropertyBag_InitNew(p) (p)->lpVtbl->InitNew(p) -#define IPersistPropertyBag_Load(p,a,b) (p)->lpVtbl->Load(p,a,b) -#define IPersistPropertyBag_Save(p,a,b,c) (p)->lpVtbl->Save(p,a,b,c) -#endif - -#endif - -#define IPersistPropertyBag_METHODS \ - /*** 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; \ - /*** IPersistPropertyBag methods ***/ \ - STDMETHOD_(HRESULT,InitNew)(THIS) PURE; \ - STDMETHOD_(HRESULT,Load)(THIS_ IPropertyBag* pPropBag, IErrorLog* pErrorLog) PURE; \ - STDMETHOD_(HRESULT,Save)(THIS_ IPropertyBag* pPropBag, BOOL fClearDirty, BOOL fSaveAllProperties) PURE; - -HRESULT CALLBACK IPersistPropertyBag_InitNew_Proxy( - IPersistPropertyBag* This); -void __RPC_STUB IPersistPropertyBag_InitNew_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistPropertyBag_Load_Proxy( - IPersistPropertyBag* This, - IPropertyBag* pPropBag, - IErrorLog* pErrorLog); -void __RPC_STUB IPersistPropertyBag_Load_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistPropertyBag_Save_Proxy( - IPersistPropertyBag* This, - IPropertyBag* pPropBag, - BOOL fClearDirty, - BOOL fSaveAllProperties); -void __RPC_STUB IPersistPropertyBag_Save_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPersistPropertyBag_INTERFACE_DEFINED__ */ - -#ifndef __IPropertyBag2_FWD_DEFINED__ -#define __IPropertyBag2_FWD_DEFINED__ -typedef struct IPropertyBag2 IPropertyBag2; -#endif - -typedef IPropertyBag2 *LPPROPERTYBAG2; - -typedef enum tagPROPBAG2_TYPE { - PROPBAG2_TYPE_UNDEFINED = 0, - PROPBAG2_TYPE_DATA = 1, - PROPBAG2_TYPE_URL = 2, - PROPBAG2_TYPE_OBJECT = 3, - PROPBAG2_TYPE_STREAM = 4, - PROPBAG2_TYPE_STORAGE = 5, - PROPBAG2_TYPE_MONIKER = 6 -} PROPBAG2_TYPE; - -typedef struct tagPROPBAG2 { - DWORD dwType; - VARTYPE vt; - CLIPFORMAT cfType; - DWORD dwHint; - LPOLESTR pstrName; - CLSID clsid; -} PROPBAG2; - -/***************************************************************************** - * IPropertyBag2 interface - */ -#ifndef __IPropertyBag2_INTERFACE_DEFINED__ -#define __IPropertyBag2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPropertyBag2, 0x22f55882, 0x280b, 0x11d0, 0xa8,0xa9, 0x00,0xa0,0xc9,0x0c,0x20,0x04); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPropertyBag2 : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Read( - ULONG cProperties, - PROPBAG2* pPropBag, - IErrorLog* pErrLog, - VARIANT* pvarValue, - HRESULT* phrError) = 0; - - virtual HRESULT STDMETHODCALLTYPE Write( - ULONG cProperties, - PROPBAG2* pPropBag, - VARIANT* pvarValue) = 0; - - virtual HRESULT STDMETHODCALLTYPE CountProperties( - ULONG* pcProperties) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPropertyInfo( - ULONG iProperty, - ULONG cProperties, - PROPBAG2* pPropBag, - ULONG* pcProperties) = 0; - - virtual HRESULT STDMETHODCALLTYPE LoadObject( - LPCOLESTR pstrName, - DWORD dwHint, - IUnknown* pUnkObject, - IErrorLog* pErrLog) = 0; - -}; -#else -typedef struct IPropertyBag2Vtbl IPropertyBag2Vtbl; -struct IPropertyBag2 { - const IPropertyBag2Vtbl* lpVtbl; -}; -struct IPropertyBag2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPropertyBag2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPropertyBag2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPropertyBag2* This); - - /*** IPropertyBag2 methods ***/ - HRESULT (STDMETHODCALLTYPE *Read)( - IPropertyBag2* This, - ULONG cProperties, - PROPBAG2* pPropBag, - IErrorLog* pErrLog, - VARIANT* pvarValue, - HRESULT* phrError); - - HRESULT (STDMETHODCALLTYPE *Write)( - IPropertyBag2* This, - ULONG cProperties, - PROPBAG2* pPropBag, - VARIANT* pvarValue); - - HRESULT (STDMETHODCALLTYPE *CountProperties)( - IPropertyBag2* This, - ULONG* pcProperties); - - HRESULT (STDMETHODCALLTYPE *GetPropertyInfo)( - IPropertyBag2* This, - ULONG iProperty, - ULONG cProperties, - PROPBAG2* pPropBag, - ULONG* pcProperties); - - HRESULT (STDMETHODCALLTYPE *LoadObject)( - IPropertyBag2* This, - LPCOLESTR pstrName, - DWORD dwHint, - IUnknown* pUnkObject, - IErrorLog* pErrLog); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPropertyBag2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPropertyBag2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPropertyBag2_Release(p) (p)->lpVtbl->Release(p) -/*** IPropertyBag2 methods ***/ -#define IPropertyBag2_Read(p,a,b,c,d,e) (p)->lpVtbl->Read(p,a,b,c,d,e) -#define IPropertyBag2_Write(p,a,b,c) (p)->lpVtbl->Write(p,a,b,c) -#define IPropertyBag2_CountProperties(p,a) (p)->lpVtbl->CountProperties(p,a) -#define IPropertyBag2_GetPropertyInfo(p,a,b,c,d) (p)->lpVtbl->GetPropertyInfo(p,a,b,c,d) -#define IPropertyBag2_LoadObject(p,a,b,c,d) (p)->lpVtbl->LoadObject(p,a,b,c,d) -#endif - -#endif - -#define IPropertyBag2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPropertyBag2 methods ***/ \ - STDMETHOD_(HRESULT,Read)(THIS_ ULONG cProperties, PROPBAG2* pPropBag, IErrorLog* pErrLog, VARIANT* pvarValue, HRESULT* phrError) PURE; \ - STDMETHOD_(HRESULT,Write)(THIS_ ULONG cProperties, PROPBAG2* pPropBag, VARIANT* pvarValue) PURE; \ - STDMETHOD_(HRESULT,CountProperties)(THIS_ ULONG* pcProperties) PURE; \ - STDMETHOD_(HRESULT,GetPropertyInfo)(THIS_ ULONG iProperty, ULONG cProperties, PROPBAG2* pPropBag, ULONG* pcProperties) PURE; \ - STDMETHOD_(HRESULT,LoadObject)(THIS_ LPCOLESTR pstrName, DWORD dwHint, IUnknown* pUnkObject, IErrorLog* pErrLog) PURE; - -HRESULT CALLBACK IPropertyBag2_Read_Proxy( - IPropertyBag2* This, - ULONG cProperties, - PROPBAG2* pPropBag, - IErrorLog* pErrLog, - VARIANT* pvarValue, - HRESULT* phrError); -void __RPC_STUB IPropertyBag2_Read_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyBag2_Write_Proxy( - IPropertyBag2* This, - ULONG cProperties, - PROPBAG2* pPropBag, - VARIANT* pvarValue); -void __RPC_STUB IPropertyBag2_Write_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyBag2_CountProperties_Proxy( - IPropertyBag2* This, - ULONG* pcProperties); -void __RPC_STUB IPropertyBag2_CountProperties_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyBag2_GetPropertyInfo_Proxy( - IPropertyBag2* This, - ULONG iProperty, - ULONG cProperties, - PROPBAG2* pPropBag, - ULONG* pcProperties); -void __RPC_STUB IPropertyBag2_GetPropertyInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPropertyBag2_LoadObject_Proxy( - IPropertyBag2* This, - LPCOLESTR pstrName, - DWORD dwHint, - IUnknown* pUnkObject, - IErrorLog* pErrLog); -void __RPC_STUB IPropertyBag2_LoadObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPropertyBag2_INTERFACE_DEFINED__ */ - -#ifndef __IPersistPropertyBag2_FWD_DEFINED__ -#define __IPersistPropertyBag2_FWD_DEFINED__ -typedef struct IPersistPropertyBag2 IPersistPropertyBag2; -#endif - -typedef IPersistPropertyBag2 *LPPERSISTPROPERTYBAG2; - -/***************************************************************************** - * IPersistPropertyBag2 interface - */ -#ifndef __IPersistPropertyBag2_INTERFACE_DEFINED__ -#define __IPersistPropertyBag2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistPropertyBag2, 0x22f55881, 0x280b, 0x11d0, 0xa8,0xa9, 0x00,0xa0,0xc9,0x0c,0x20,0x04); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistPropertyBag2 : public IPersist -{ - virtual HRESULT STDMETHODCALLTYPE InitNew( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Load( - IPropertyBag2* pPropBag, - IErrorLog* pErrorLog) = 0; - - virtual HRESULT STDMETHODCALLTYPE Save( - IPropertyBag2* pPropBag, - BOOL fClearDirty, - BOOL fSaveAllProperties) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsDirty( - ) = 0; - -}; -#else -typedef struct IPersistPropertyBag2Vtbl IPersistPropertyBag2Vtbl; -struct IPersistPropertyBag2 { - const IPersistPropertyBag2Vtbl* lpVtbl; -}; -struct IPersistPropertyBag2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistPropertyBag2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistPropertyBag2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistPropertyBag2* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistPropertyBag2* This, - CLSID* pClassID); - - /*** IPersistPropertyBag2 methods ***/ - HRESULT (STDMETHODCALLTYPE *InitNew)( - IPersistPropertyBag2* This); - - HRESULT (STDMETHODCALLTYPE *Load)( - IPersistPropertyBag2* This, - IPropertyBag2* pPropBag, - IErrorLog* pErrorLog); - - HRESULT (STDMETHODCALLTYPE *Save)( - IPersistPropertyBag2* This, - IPropertyBag2* pPropBag, - BOOL fClearDirty, - BOOL fSaveAllProperties); - - HRESULT (STDMETHODCALLTYPE *IsDirty)( - IPersistPropertyBag2* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPersistPropertyBag2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPersistPropertyBag2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPersistPropertyBag2_Release(p) (p)->lpVtbl->Release(p) -/*** IPersist methods ***/ -#define IPersistPropertyBag2_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -/*** IPersistPropertyBag2 methods ***/ -#define IPersistPropertyBag2_InitNew(p) (p)->lpVtbl->InitNew(p) -#define IPersistPropertyBag2_Load(p,a,b) (p)->lpVtbl->Load(p,a,b) -#define IPersistPropertyBag2_Save(p,a,b,c) (p)->lpVtbl->Save(p,a,b,c) -#define IPersistPropertyBag2_IsDirty(p) (p)->lpVtbl->IsDirty(p) -#endif - -#endif - -#define IPersistPropertyBag2_METHODS \ - /*** 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; \ - /*** IPersistPropertyBag2 methods ***/ \ - STDMETHOD_(HRESULT,InitNew)(THIS) PURE; \ - STDMETHOD_(HRESULT,Load)(THIS_ IPropertyBag2* pPropBag, IErrorLog* pErrorLog) PURE; \ - STDMETHOD_(HRESULT,Save)(THIS_ IPropertyBag2* pPropBag, BOOL fClearDirty, BOOL fSaveAllProperties) PURE; \ - STDMETHOD_(HRESULT,IsDirty)(THIS) PURE; - -HRESULT CALLBACK IPersistPropertyBag2_InitNew_Proxy( - IPersistPropertyBag2* This); -void __RPC_STUB IPersistPropertyBag2_InitNew_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistPropertyBag2_Load_Proxy( - IPersistPropertyBag2* This, - IPropertyBag2* pPropBag, - IErrorLog* pErrorLog); -void __RPC_STUB IPersistPropertyBag2_Load_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistPropertyBag2_Save_Proxy( - IPersistPropertyBag2* This, - IPropertyBag2* pPropBag, - BOOL fClearDirty, - BOOL fSaveAllProperties); -void __RPC_STUB IPersistPropertyBag2_Save_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistPropertyBag2_IsDirty_Proxy( - IPersistPropertyBag2* This); -void __RPC_STUB IPersistPropertyBag2_IsDirty_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPersistPropertyBag2_INTERFACE_DEFINED__ */ - -#ifndef __ISpecifyPropertyPages_FWD_DEFINED__ -#define __ISpecifyPropertyPages_FWD_DEFINED__ -typedef struct ISpecifyPropertyPages ISpecifyPropertyPages; -#endif - -typedef ISpecifyPropertyPages *LPSPECIFYPROPERTYPAGES; - -typedef struct tagCAUUID { - ULONG cElems; - GUID *pElems; -} CAUUID, *LPCAUUID; - -/***************************************************************************** - * ISpecifyPropertyPages interface - */ -#ifndef __ISpecifyPropertyPages_INTERFACE_DEFINED__ -#define __ISpecifyPropertyPages_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ISpecifyPropertyPages, 0xb196b28b, 0xbab4, 0x101a, 0xb6,0x9c, 0x00,0xaa,0x00,0x34,0x1d,0x07); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ISpecifyPropertyPages : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetPages( - CAUUID* pPages) = 0; - -}; -#else -typedef struct ISpecifyPropertyPagesVtbl ISpecifyPropertyPagesVtbl; -struct ISpecifyPropertyPages { - const ISpecifyPropertyPagesVtbl* lpVtbl; -}; -struct ISpecifyPropertyPagesVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ISpecifyPropertyPages* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ISpecifyPropertyPages* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ISpecifyPropertyPages* This); - - /*** ISpecifyPropertyPages methods ***/ - HRESULT (STDMETHODCALLTYPE *GetPages)( - ISpecifyPropertyPages* This, - CAUUID* pPages); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ISpecifyPropertyPages_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ISpecifyPropertyPages_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ISpecifyPropertyPages_Release(p) (p)->lpVtbl->Release(p) -/*** ISpecifyPropertyPages methods ***/ -#define ISpecifyPropertyPages_GetPages(p,a) (p)->lpVtbl->GetPages(p,a) -#endif - -#endif - -#define ISpecifyPropertyPages_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ISpecifyPropertyPages methods ***/ \ - STDMETHOD_(HRESULT,GetPages)(THIS_ CAUUID* pPages) PURE; - -HRESULT CALLBACK ISpecifyPropertyPages_GetPages_Proxy( - ISpecifyPropertyPages* This, - CAUUID* pPages); -void __RPC_STUB ISpecifyPropertyPages_GetPages_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ISpecifyPropertyPages_INTERFACE_DEFINED__ */ - -#ifndef __IPerPropertyBrowsing_FWD_DEFINED__ -#define __IPerPropertyBrowsing_FWD_DEFINED__ -typedef struct IPerPropertyBrowsing IPerPropertyBrowsing; -#endif - -typedef IPerPropertyBrowsing *LPPERPROPERTYBROWSING; - -typedef struct tagCALPOLESTR { - ULONG cElems; - LPOLESTR *pElems; -} CALPOLESTR, *LPCALPOLESTR; - -typedef struct tagCADWORD { - ULONG cElems; - DWORD *pElems; -} CADWORD, *LPCADWORD; - -/***************************************************************************** - * IPerPropertyBrowsing interface - */ -#ifndef __IPerPropertyBrowsing_INTERFACE_DEFINED__ -#define __IPerPropertyBrowsing_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPerPropertyBrowsing, 0x376bd3aa, 0x3845, 0x101b, 0x84,0xed, 0x08,0x00,0x2b,0x2e,0xc7,0x13); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPerPropertyBrowsing : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetDisplayString( - DISPID dispID, - BSTR* pBstr) = 0; - - virtual HRESULT STDMETHODCALLTYPE MapPropertyToPage( - DISPID dispID, - CLSID* pClsid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPredefinedStrings( - DISPID dispID, - CALPOLESTR* pCaStringsOut, - CADWORD* pCaCookiesOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPredefinedValue( - DISPID dispID, - DWORD dwCookie, - VARIANT* pVarOut) = 0; - -}; -#else -typedef struct IPerPropertyBrowsingVtbl IPerPropertyBrowsingVtbl; -struct IPerPropertyBrowsing { - const IPerPropertyBrowsingVtbl* lpVtbl; -}; -struct IPerPropertyBrowsingVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPerPropertyBrowsing* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPerPropertyBrowsing* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPerPropertyBrowsing* This); - - /*** IPerPropertyBrowsing methods ***/ - HRESULT (STDMETHODCALLTYPE *GetDisplayString)( - IPerPropertyBrowsing* This, - DISPID dispID, - BSTR* pBstr); - - HRESULT (STDMETHODCALLTYPE *MapPropertyToPage)( - IPerPropertyBrowsing* This, - DISPID dispID, - CLSID* pClsid); - - HRESULT (STDMETHODCALLTYPE *GetPredefinedStrings)( - IPerPropertyBrowsing* This, - DISPID dispID, - CALPOLESTR* pCaStringsOut, - CADWORD* pCaCookiesOut); - - HRESULT (STDMETHODCALLTYPE *GetPredefinedValue)( - IPerPropertyBrowsing* This, - DISPID dispID, - DWORD dwCookie, - VARIANT* pVarOut); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPerPropertyBrowsing_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPerPropertyBrowsing_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPerPropertyBrowsing_Release(p) (p)->lpVtbl->Release(p) -/*** IPerPropertyBrowsing methods ***/ -#define IPerPropertyBrowsing_GetDisplayString(p,a,b) (p)->lpVtbl->GetDisplayString(p,a,b) -#define IPerPropertyBrowsing_MapPropertyToPage(p,a,b) (p)->lpVtbl->MapPropertyToPage(p,a,b) -#define IPerPropertyBrowsing_GetPredefinedStrings(p,a,b,c) (p)->lpVtbl->GetPredefinedStrings(p,a,b,c) -#define IPerPropertyBrowsing_GetPredefinedValue(p,a,b,c) (p)->lpVtbl->GetPredefinedValue(p,a,b,c) -#endif - -#endif - -#define IPerPropertyBrowsing_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPerPropertyBrowsing methods ***/ \ - STDMETHOD_(HRESULT,GetDisplayString)(THIS_ DISPID dispID, BSTR* pBstr) PURE; \ - STDMETHOD_(HRESULT,MapPropertyToPage)(THIS_ DISPID dispID, CLSID* pClsid) PURE; \ - STDMETHOD_(HRESULT,GetPredefinedStrings)(THIS_ DISPID dispID, CALPOLESTR* pCaStringsOut, CADWORD* pCaCookiesOut) PURE; \ - STDMETHOD_(HRESULT,GetPredefinedValue)(THIS_ DISPID dispID, DWORD dwCookie, VARIANT* pVarOut) PURE; - -HRESULT CALLBACK IPerPropertyBrowsing_GetDisplayString_Proxy( - IPerPropertyBrowsing* This, - DISPID dispID, - BSTR* pBstr); -void __RPC_STUB IPerPropertyBrowsing_GetDisplayString_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPerPropertyBrowsing_MapPropertyToPage_Proxy( - IPerPropertyBrowsing* This, - DISPID dispID, - CLSID* pClsid); -void __RPC_STUB IPerPropertyBrowsing_MapPropertyToPage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPerPropertyBrowsing_GetPredefinedStrings_Proxy( - IPerPropertyBrowsing* This, - DISPID dispID, - CALPOLESTR* pCaStringsOut, - CADWORD* pCaCookiesOut); -void __RPC_STUB IPerPropertyBrowsing_GetPredefinedStrings_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPerPropertyBrowsing_GetPredefinedValue_Proxy( - IPerPropertyBrowsing* This, - DISPID dispID, - DWORD dwCookie, - VARIANT* pVarOut); -void __RPC_STUB IPerPropertyBrowsing_GetPredefinedValue_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPerPropertyBrowsing_INTERFACE_DEFINED__ */ - -#ifndef __IAdviseSinkEx_FWD_DEFINED__ -#define __IAdviseSinkEx_FWD_DEFINED__ -typedef struct IAdviseSinkEx IAdviseSinkEx; -#endif - -typedef IAdviseSinkEx *LPADVISESINKEX; - -/***************************************************************************** - * IAdviseSinkEx interface - */ -#ifndef __IAdviseSinkEx_INTERFACE_DEFINED__ -#define __IAdviseSinkEx_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAdviseSinkEx, 0x3af24290, 0x0c96, 0x11ce, 0xa0,0xcf, 0x00,0xaa,0x00,0x60,0x0a,0xb8); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAdviseSinkEx : public IAdviseSink -{ - virtual void STDMETHODCALLTYPE OnViewStatusChange( - DWORD dwViewStatus) = 0; - -}; -#else -typedef struct IAdviseSinkExVtbl IAdviseSinkExVtbl; -struct IAdviseSinkEx { - const IAdviseSinkExVtbl* lpVtbl; -}; -struct IAdviseSinkExVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAdviseSinkEx* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAdviseSinkEx* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAdviseSinkEx* This); - - /*** IAdviseSink methods ***/ - void (STDMETHODCALLTYPE *OnDataChange)( - IAdviseSinkEx* This, - FORMATETC* pFormatetc, - STGMEDIUM* pStgmed); - - void (STDMETHODCALLTYPE *OnViewChange)( - IAdviseSinkEx* This, - DWORD dwAspect, - LONG lindex); - - void (STDMETHODCALLTYPE *OnRename)( - IAdviseSinkEx* This, - IMoniker* pmk); - - void (STDMETHODCALLTYPE *OnSave)( - IAdviseSinkEx* This); - - void (STDMETHODCALLTYPE *OnClose)( - IAdviseSinkEx* This); - - /*** IAdviseSinkEx methods ***/ - void (STDMETHODCALLTYPE *OnViewStatusChange)( - IAdviseSinkEx* This, - DWORD dwViewStatus); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAdviseSinkEx_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAdviseSinkEx_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAdviseSinkEx_Release(p) (p)->lpVtbl->Release(p) -/*** IAdviseSink methods ***/ -#define IAdviseSinkEx_OnDataChange(p,a,b) (p)->lpVtbl->OnDataChange(p,a,b) -#define IAdviseSinkEx_OnViewChange(p,a,b) (p)->lpVtbl->OnViewChange(p,a,b) -#define IAdviseSinkEx_OnRename(p,a) (p)->lpVtbl->OnRename(p,a) -#define IAdviseSinkEx_OnSave(p) (p)->lpVtbl->OnSave(p) -#define IAdviseSinkEx_OnClose(p) (p)->lpVtbl->OnClose(p) -/*** IAdviseSinkEx methods ***/ -#define IAdviseSinkEx_OnViewStatusChange(p,a) (p)->lpVtbl->OnViewStatusChange(p,a) -#endif - -#endif - -#define IAdviseSinkEx_METHODS \ - /*** 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; \ - /*** IAdviseSinkEx methods ***/ \ - STDMETHOD_(void,OnViewStatusChange)(THIS_ DWORD dwViewStatus) PURE; - -HRESULT CALLBACK IAdviseSinkEx_RemoteOnViewStatusChange_Proxy( - IAdviseSinkEx* This, - DWORD dwViewStatus); -void __RPC_STUB IAdviseSinkEx_RemoteOnViewStatusChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -void CALLBACK IAdviseSinkEx_OnViewStatusChange_Proxy( - IAdviseSinkEx* This, - DWORD dwViewStatus); -HRESULT __RPC_STUB IAdviseSinkEx_OnViewStatusChange_Stub( - IAdviseSinkEx* This, - DWORD dwViewStatus); - -#endif /* __IAdviseSinkEx_INTERFACE_DEFINED__ */ - -#ifndef __IPointerInactive_FWD_DEFINED__ -#define __IPointerInactive_FWD_DEFINED__ -typedef struct IPointerInactive IPointerInactive; -#endif - -typedef IPointerInactive *LPPOINTERINACTIVE; - -/***************************************************************************** - * IPointerInactive interface - */ -#ifndef __IPointerInactive_INTERFACE_DEFINED__ -#define __IPointerInactive_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPointerInactive, 0x55980ba0, 0x35aa, 0x11cf, 0xb6,0x71, 0x00,0xaa,0x00,0x4c,0xd6,0xd8); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPointerInactive : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetActivationPolicy( - DWORD* pdwPolicy) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnInactiveMouseMove( - LPCRECT pRectBounds, - LONG x, - LONG y, - DWORD grfKeyState) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnInactiveSetCursor( - LPCRECT pRectBounds, - LONG x, - LONG y, - DWORD dwMouseMsg, - BOOL fSetAlways) = 0; - -}; -#else -typedef struct IPointerInactiveVtbl IPointerInactiveVtbl; -struct IPointerInactive { - const IPointerInactiveVtbl* lpVtbl; -}; -struct IPointerInactiveVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPointerInactive* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPointerInactive* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPointerInactive* This); - - /*** IPointerInactive methods ***/ - HRESULT (STDMETHODCALLTYPE *GetActivationPolicy)( - IPointerInactive* This, - DWORD* pdwPolicy); - - HRESULT (STDMETHODCALLTYPE *OnInactiveMouseMove)( - IPointerInactive* This, - LPCRECT pRectBounds, - LONG x, - LONG y, - DWORD grfKeyState); - - HRESULT (STDMETHODCALLTYPE *OnInactiveSetCursor)( - IPointerInactive* This, - LPCRECT pRectBounds, - LONG x, - LONG y, - DWORD dwMouseMsg, - BOOL fSetAlways); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPointerInactive_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPointerInactive_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPointerInactive_Release(p) (p)->lpVtbl->Release(p) -/*** IPointerInactive methods ***/ -#define IPointerInactive_GetActivationPolicy(p,a) (p)->lpVtbl->GetActivationPolicy(p,a) -#define IPointerInactive_OnInactiveMouseMove(p,a,b,c,d) (p)->lpVtbl->OnInactiveMouseMove(p,a,b,c,d) -#define IPointerInactive_OnInactiveSetCursor(p,a,b,c,d,e) (p)->lpVtbl->OnInactiveSetCursor(p,a,b,c,d,e) -#endif - -#endif - -#define IPointerInactive_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPointerInactive methods ***/ \ - STDMETHOD_(HRESULT,GetActivationPolicy)(THIS_ DWORD* pdwPolicy) PURE; \ - STDMETHOD_(HRESULT,OnInactiveMouseMove)(THIS_ LPCRECT pRectBounds, LONG x, LONG y, DWORD grfKeyState) PURE; \ - STDMETHOD_(HRESULT,OnInactiveSetCursor)(THIS_ LPCRECT pRectBounds, LONG x, LONG y, DWORD dwMouseMsg, BOOL fSetAlways) PURE; - -HRESULT CALLBACK IPointerInactive_GetActivationPolicy_Proxy( - IPointerInactive* This, - DWORD* pdwPolicy); -void __RPC_STUB IPointerInactive_GetActivationPolicy_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPointerInactive_OnInactiveMouseMove_Proxy( - IPointerInactive* This, - LPCRECT pRectBounds, - LONG x, - LONG y, - DWORD grfKeyState); -void __RPC_STUB IPointerInactive_OnInactiveMouseMove_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPointerInactive_OnInactiveSetCursor_Proxy( - IPointerInactive* This, - LPCRECT pRectBounds, - LONG x, - LONG y, - DWORD dwMouseMsg, - BOOL fSetAlways); -void __RPC_STUB IPointerInactive_OnInactiveSetCursor_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPointerInactive_INTERFACE_DEFINED__ */ - -#ifndef __IObjectWithSite_FWD_DEFINED__ -#define __IObjectWithSite_FWD_DEFINED__ -typedef struct IObjectWithSite IObjectWithSite; -#endif - -typedef IObjectWithSite *LPOBJECTWITHSITE; - -/***************************************************************************** - * IObjectWithSite interface - */ -#ifndef __IObjectWithSite_INTERFACE_DEFINED__ -#define __IObjectWithSite_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IObjectWithSite, 0xfc4801a3, 0x2ba9, 0x11cf, 0xa2,0x29, 0x00,0xaa,0x00,0x3d,0x73,0x52); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IObjectWithSite : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetSite( - IUnknown* pUnkSite) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSite( - REFIID riid, - PVOID* ppvSite) = 0; - -}; -#else -typedef struct IObjectWithSiteVtbl IObjectWithSiteVtbl; -struct IObjectWithSite { - const IObjectWithSiteVtbl* lpVtbl; -}; -struct IObjectWithSiteVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IObjectWithSite* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IObjectWithSite* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IObjectWithSite* This); - - /*** IObjectWithSite methods ***/ - HRESULT (STDMETHODCALLTYPE *SetSite)( - IObjectWithSite* This, - IUnknown* pUnkSite); - - HRESULT (STDMETHODCALLTYPE *GetSite)( - IObjectWithSite* This, - REFIID riid, - PVOID* ppvSite); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IObjectWithSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IObjectWithSite_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IObjectWithSite_Release(p) (p)->lpVtbl->Release(p) -/*** IObjectWithSite methods ***/ -#define IObjectWithSite_SetSite(p,a) (p)->lpVtbl->SetSite(p,a) -#define IObjectWithSite_GetSite(p,a,b) (p)->lpVtbl->GetSite(p,a,b) -#endif - -#endif - -#define IObjectWithSite_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IObjectWithSite methods ***/ \ - STDMETHOD_(HRESULT,SetSite)(THIS_ IUnknown* pUnkSite) PURE; \ - STDMETHOD_(HRESULT,GetSite)(THIS_ REFIID riid, PVOID* ppvSite) PURE; - -HRESULT CALLBACK IObjectWithSite_SetSite_Proxy( - IObjectWithSite* This, - IUnknown* pUnkSite); -void __RPC_STUB IObjectWithSite_SetSite_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IObjectWithSite_GetSite_Proxy( - IObjectWithSite* This, - REFIID riid, - PVOID* ppvSite); -void __RPC_STUB IObjectWithSite_GetSite_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IObjectWithSite_INTERFACE_DEFINED__ */ - -#ifndef __IOleUndoManager_FWD_DEFINED__ -#define __IOleUndoManager_FWD_DEFINED__ -typedef struct IOleUndoManager IOleUndoManager; -#endif - -#ifndef __IOleUndoUnit_FWD_DEFINED__ -#define __IOleUndoUnit_FWD_DEFINED__ -typedef struct IOleUndoUnit IOleUndoUnit; -#endif - -typedef IOleUndoUnit *LPOLEUNDOUNIT; - -/***************************************************************************** - * IOleUndoUnit interface - */ -#ifndef __IOleUndoUnit_INTERFACE_DEFINED__ -#define __IOleUndoUnit_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleUndoUnit, 0x894ad3b0, 0xef97, 0x11ce, 0x9b,0xc9, 0x00,0xaa,0x00,0x60,0x8e,0x01); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleUndoUnit : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Do( - IOleUndoManager* pUndoManager) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDescription( - BSTR* pBstr) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetUnitType( - CLSID* pClsid, - LONG* plID) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnNextAdd( - ) = 0; - -}; -#else -typedef struct IOleUndoUnitVtbl IOleUndoUnitVtbl; -struct IOleUndoUnit { - const IOleUndoUnitVtbl* lpVtbl; -}; -struct IOleUndoUnitVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleUndoUnit* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleUndoUnit* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleUndoUnit* This); - - /*** IOleUndoUnit methods ***/ - HRESULT (STDMETHODCALLTYPE *Do)( - IOleUndoUnit* This, - IOleUndoManager* pUndoManager); - - HRESULT (STDMETHODCALLTYPE *GetDescription)( - IOleUndoUnit* This, - BSTR* pBstr); - - HRESULT (STDMETHODCALLTYPE *GetUnitType)( - IOleUndoUnit* This, - CLSID* pClsid, - LONG* plID); - - HRESULT (STDMETHODCALLTYPE *OnNextAdd)( - IOleUndoUnit* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleUndoUnit_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleUndoUnit_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleUndoUnit_Release(p) (p)->lpVtbl->Release(p) -/*** IOleUndoUnit methods ***/ -#define IOleUndoUnit_Do(p,a) (p)->lpVtbl->Do(p,a) -#define IOleUndoUnit_GetDescription(p,a) (p)->lpVtbl->GetDescription(p,a) -#define IOleUndoUnit_GetUnitType(p,a,b) (p)->lpVtbl->GetUnitType(p,a,b) -#define IOleUndoUnit_OnNextAdd(p) (p)->lpVtbl->OnNextAdd(p) -#endif - -#endif - -#define IOleUndoUnit_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleUndoUnit methods ***/ \ - STDMETHOD_(HRESULT,Do)(THIS_ IOleUndoManager* pUndoManager) PURE; \ - STDMETHOD_(HRESULT,GetDescription)(THIS_ BSTR* pBstr) PURE; \ - STDMETHOD_(HRESULT,GetUnitType)(THIS_ CLSID* pClsid, LONG* plID) PURE; \ - STDMETHOD_(HRESULT,OnNextAdd)(THIS) PURE; - -HRESULT CALLBACK IOleUndoUnit_Do_Proxy( - IOleUndoUnit* This, - IOleUndoManager* pUndoManager); -void __RPC_STUB IOleUndoUnit_Do_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoUnit_GetDescription_Proxy( - IOleUndoUnit* This, - BSTR* pBstr); -void __RPC_STUB IOleUndoUnit_GetDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoUnit_GetUnitType_Proxy( - IOleUndoUnit* This, - CLSID* pClsid, - LONG* plID); -void __RPC_STUB IOleUndoUnit_GetUnitType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoUnit_OnNextAdd_Proxy( - IOleUndoUnit* This); -void __RPC_STUB IOleUndoUnit_OnNextAdd_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleUndoUnit_INTERFACE_DEFINED__ */ - -#ifndef __IOleParentUndoUnit_FWD_DEFINED__ -#define __IOleParentUndoUnit_FWD_DEFINED__ -typedef struct IOleParentUndoUnit IOleParentUndoUnit; -#endif - -typedef IOleParentUndoUnit *LPOLEPARENTUNDOUNIT; - -/***************************************************************************** - * IOleParentUndoUnit interface - */ -#ifndef __IOleParentUndoUnit_INTERFACE_DEFINED__ -#define __IOleParentUndoUnit_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleParentUndoUnit, 0xa1faf330, 0xef97, 0x11ce, 0x9b,0xc9, 0x00,0xaa,0x00,0x60,0x8e,0x01); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleParentUndoUnit : public IOleUndoUnit -{ - virtual HRESULT STDMETHODCALLTYPE Open( - IOleParentUndoUnit* pPUU) = 0; - - virtual HRESULT STDMETHODCALLTYPE Close( - IOleParentUndoUnit* pPUU, - BOOL fCommit) = 0; - - virtual HRESULT STDMETHODCALLTYPE Add( - IOleUndoUnit* pUU) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindUnit( - IOleUndoUnit* pUU) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetParentState( - DWORD* pdwState) = 0; - -}; -#else -typedef struct IOleParentUndoUnitVtbl IOleParentUndoUnitVtbl; -struct IOleParentUndoUnit { - const IOleParentUndoUnitVtbl* lpVtbl; -}; -struct IOleParentUndoUnitVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleParentUndoUnit* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleParentUndoUnit* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleParentUndoUnit* This); - - /*** IOleUndoUnit methods ***/ - HRESULT (STDMETHODCALLTYPE *Do)( - IOleParentUndoUnit* This, - IOleUndoManager* pUndoManager); - - HRESULT (STDMETHODCALLTYPE *GetDescription)( - IOleParentUndoUnit* This, - BSTR* pBstr); - - HRESULT (STDMETHODCALLTYPE *GetUnitType)( - IOleParentUndoUnit* This, - CLSID* pClsid, - LONG* plID); - - HRESULT (STDMETHODCALLTYPE *OnNextAdd)( - IOleParentUndoUnit* This); - - /*** IOleParentUndoUnit methods ***/ - HRESULT (STDMETHODCALLTYPE *Open)( - IOleParentUndoUnit* This, - IOleParentUndoUnit* pPUU); - - HRESULT (STDMETHODCALLTYPE *Close)( - IOleParentUndoUnit* This, - IOleParentUndoUnit* pPUU, - BOOL fCommit); - - HRESULT (STDMETHODCALLTYPE *Add)( - IOleParentUndoUnit* This, - IOleUndoUnit* pUU); - - HRESULT (STDMETHODCALLTYPE *FindUnit)( - IOleParentUndoUnit* This, - IOleUndoUnit* pUU); - - HRESULT (STDMETHODCALLTYPE *GetParentState)( - IOleParentUndoUnit* This, - DWORD* pdwState); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleParentUndoUnit_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleParentUndoUnit_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleParentUndoUnit_Release(p) (p)->lpVtbl->Release(p) -/*** IOleUndoUnit methods ***/ -#define IOleParentUndoUnit_Do(p,a) (p)->lpVtbl->Do(p,a) -#define IOleParentUndoUnit_GetDescription(p,a) (p)->lpVtbl->GetDescription(p,a) -#define IOleParentUndoUnit_GetUnitType(p,a,b) (p)->lpVtbl->GetUnitType(p,a,b) -#define IOleParentUndoUnit_OnNextAdd(p) (p)->lpVtbl->OnNextAdd(p) -/*** IOleParentUndoUnit methods ***/ -#define IOleParentUndoUnit_Open(p,a) (p)->lpVtbl->Open(p,a) -#define IOleParentUndoUnit_Close(p,a,b) (p)->lpVtbl->Close(p,a,b) -#define IOleParentUndoUnit_Add(p,a) (p)->lpVtbl->Add(p,a) -#define IOleParentUndoUnit_FindUnit(p,a) (p)->lpVtbl->FindUnit(p,a) -#define IOleParentUndoUnit_GetParentState(p,a) (p)->lpVtbl->GetParentState(p,a) -#endif - -#endif - -#define IOleParentUndoUnit_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleUndoUnit methods ***/ \ - STDMETHOD_(HRESULT,Do)(THIS_ IOleUndoManager* pUndoManager) PURE; \ - STDMETHOD_(HRESULT,GetDescription)(THIS_ BSTR* pBstr) PURE; \ - STDMETHOD_(HRESULT,GetUnitType)(THIS_ CLSID* pClsid, LONG* plID) PURE; \ - STDMETHOD_(HRESULT,OnNextAdd)(THIS) PURE; \ - /*** IOleParentUndoUnit methods ***/ \ - STDMETHOD_(HRESULT,Open)(THIS_ IOleParentUndoUnit* pPUU) PURE; \ - STDMETHOD_(HRESULT,Close)(THIS_ IOleParentUndoUnit* pPUU, BOOL fCommit) PURE; \ - STDMETHOD_(HRESULT,Add)(THIS_ IOleUndoUnit* pUU) PURE; \ - STDMETHOD_(HRESULT,FindUnit)(THIS_ IOleUndoUnit* pUU) PURE; \ - STDMETHOD_(HRESULT,GetParentState)(THIS_ DWORD* pdwState) PURE; - -HRESULT CALLBACK IOleParentUndoUnit_Open_Proxy( - IOleParentUndoUnit* This, - IOleParentUndoUnit* pPUU); -void __RPC_STUB IOleParentUndoUnit_Open_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleParentUndoUnit_Close_Proxy( - IOleParentUndoUnit* This, - IOleParentUndoUnit* pPUU, - BOOL fCommit); -void __RPC_STUB IOleParentUndoUnit_Close_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleParentUndoUnit_Add_Proxy( - IOleParentUndoUnit* This, - IOleUndoUnit* pUU); -void __RPC_STUB IOleParentUndoUnit_Add_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleParentUndoUnit_FindUnit_Proxy( - IOleParentUndoUnit* This, - IOleUndoUnit* pUU); -void __RPC_STUB IOleParentUndoUnit_FindUnit_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleParentUndoUnit_GetParentState_Proxy( - IOleParentUndoUnit* This, - DWORD* pdwState); -void __RPC_STUB IOleParentUndoUnit_GetParentState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleParentUndoUnit_INTERFACE_DEFINED__ */ - -#ifndef __IEnumOleUndoUnits_FWD_DEFINED__ -#define __IEnumOleUndoUnits_FWD_DEFINED__ -typedef struct IEnumOleUndoUnits IEnumOleUndoUnits; -#endif - -typedef IEnumOleUndoUnits *LPENUMOLEUNDOUNITS; - -/***************************************************************************** - * IEnumOleUndoUnits interface - */ -#ifndef __IEnumOleUndoUnits_INTERFACE_DEFINED__ -#define __IEnumOleUndoUnits_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumOleUndoUnits, 0xb3e7c340, 0xef97, 0x11ce, 0x9b,0xc9, 0x00,0xaa,0x00,0x60,0x8e,0x01); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumOleUndoUnits : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG cElt, - IOleUndoUnit** rgElt, - ULONG* pcEltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG cElt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumOleUndoUnits** ppEnum) = 0; - -}; -#else -typedef struct IEnumOleUndoUnitsVtbl IEnumOleUndoUnitsVtbl; -struct IEnumOleUndoUnits { - const IEnumOleUndoUnitsVtbl* lpVtbl; -}; -struct IEnumOleUndoUnitsVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumOleUndoUnits* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumOleUndoUnits* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumOleUndoUnits* This); - - /*** IEnumOleUndoUnits methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumOleUndoUnits* This, - ULONG cElt, - IOleUndoUnit** rgElt, - ULONG* pcEltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumOleUndoUnits* This, - ULONG cElt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumOleUndoUnits* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumOleUndoUnits* This, - IEnumOleUndoUnits** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumOleUndoUnits_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumOleUndoUnits_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumOleUndoUnits_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumOleUndoUnits methods ***/ -#define IEnumOleUndoUnits_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumOleUndoUnits_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumOleUndoUnits_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumOleUndoUnits_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumOleUndoUnits_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumOleUndoUnits methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG cElt, IOleUndoUnit** rgElt, ULONG* pcEltFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cElt) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumOleUndoUnits** ppEnum) PURE; - -HRESULT CALLBACK IEnumOleUndoUnits_RemoteNext_Proxy( - IEnumOleUndoUnits* This, - ULONG cElt, - IOleUndoUnit** rgElt, - ULONG* pcEltFetched); -void __RPC_STUB IEnumOleUndoUnits_RemoteNext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumOleUndoUnits_Next_Proxy( - IEnumOleUndoUnits* This, - ULONG cElt, - IOleUndoUnit** rgElt, - ULONG* pcEltFetched); -HRESULT __RPC_STUB IEnumOleUndoUnits_Next_Stub( - IEnumOleUndoUnits* This, - ULONG cElt, - IOleUndoUnit** rgElt, - ULONG* pcEltFetched); -HRESULT CALLBACK IEnumOleUndoUnits_Skip_Proxy( - IEnumOleUndoUnits* This, - ULONG cElt); -void __RPC_STUB IEnumOleUndoUnits_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumOleUndoUnits_Reset_Proxy( - IEnumOleUndoUnits* This); -void __RPC_STUB IEnumOleUndoUnits_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumOleUndoUnits_Clone_Proxy( - IEnumOleUndoUnits* This, - IEnumOleUndoUnits** ppEnum); -void __RPC_STUB IEnumOleUndoUnits_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumOleUndoUnits_INTERFACE_DEFINED__ */ - -typedef IOleUndoManager *LPOLEUNDOMANAGER; - -/***************************************************************************** - * IOleUndoManager interface - */ -#ifndef __IOleUndoManager_INTERFACE_DEFINED__ -#define __IOleUndoManager_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleUndoManager, 0xd001f200, 0xef97, 0x11ce, 0x9b,0xc9, 0x00,0xaa,0x00,0x60,0x8e,0x01); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleUndoManager : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Open( - IOleParentUndoUnit* pPUU) = 0; - - virtual HRESULT STDMETHODCALLTYPE Close( - IOleParentUndoUnit* pPUU, - BOOL fCommit) = 0; - - virtual HRESULT STDMETHODCALLTYPE Add( - IOleUndoUnit* pUU) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOpenParentState( - DWORD* pdwState) = 0; - - virtual HRESULT STDMETHODCALLTYPE DiscardFrom( - IOleUndoUnit* pUU) = 0; - - virtual HRESULT STDMETHODCALLTYPE UndoTo( - IOleUndoUnit* pUU) = 0; - - virtual HRESULT STDMETHODCALLTYPE RedoTo( - IOleUndoUnit* pUU) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumUndoable( - IEnumOleUndoUnits** ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumRedoable( - IEnumOleUndoUnits** ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLastUndoDescription( - BSTR* pBstr) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetLastRedoDescription( - BSTR* pBstr) = 0; - - virtual HRESULT STDMETHODCALLTYPE Enable( - BOOL fEnable) = 0; - -}; -#else -typedef struct IOleUndoManagerVtbl IOleUndoManagerVtbl; -struct IOleUndoManager { - const IOleUndoManagerVtbl* lpVtbl; -}; -struct IOleUndoManagerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleUndoManager* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleUndoManager* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleUndoManager* This); - - /*** IOleUndoManager methods ***/ - HRESULT (STDMETHODCALLTYPE *Open)( - IOleUndoManager* This, - IOleParentUndoUnit* pPUU); - - HRESULT (STDMETHODCALLTYPE *Close)( - IOleUndoManager* This, - IOleParentUndoUnit* pPUU, - BOOL fCommit); - - HRESULT (STDMETHODCALLTYPE *Add)( - IOleUndoManager* This, - IOleUndoUnit* pUU); - - HRESULT (STDMETHODCALLTYPE *GetOpenParentState)( - IOleUndoManager* This, - DWORD* pdwState); - - HRESULT (STDMETHODCALLTYPE *DiscardFrom)( - IOleUndoManager* This, - IOleUndoUnit* pUU); - - HRESULT (STDMETHODCALLTYPE *UndoTo)( - IOleUndoManager* This, - IOleUndoUnit* pUU); - - HRESULT (STDMETHODCALLTYPE *RedoTo)( - IOleUndoManager* This, - IOleUndoUnit* pUU); - - HRESULT (STDMETHODCALLTYPE *EnumUndoable)( - IOleUndoManager* This, - IEnumOleUndoUnits** ppEnum); - - HRESULT (STDMETHODCALLTYPE *EnumRedoable)( - IOleUndoManager* This, - IEnumOleUndoUnits** ppEnum); - - HRESULT (STDMETHODCALLTYPE *GetLastUndoDescription)( - IOleUndoManager* This, - BSTR* pBstr); - - HRESULT (STDMETHODCALLTYPE *GetLastRedoDescription)( - IOleUndoManager* This, - BSTR* pBstr); - - HRESULT (STDMETHODCALLTYPE *Enable)( - IOleUndoManager* This, - BOOL fEnable); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleUndoManager_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleUndoManager_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleUndoManager_Release(p) (p)->lpVtbl->Release(p) -/*** IOleUndoManager methods ***/ -#define IOleUndoManager_Open(p,a) (p)->lpVtbl->Open(p,a) -#define IOleUndoManager_Close(p,a,b) (p)->lpVtbl->Close(p,a,b) -#define IOleUndoManager_Add(p,a) (p)->lpVtbl->Add(p,a) -#define IOleUndoManager_GetOpenParentState(p,a) (p)->lpVtbl->GetOpenParentState(p,a) -#define IOleUndoManager_DiscardFrom(p,a) (p)->lpVtbl->DiscardFrom(p,a) -#define IOleUndoManager_UndoTo(p,a) (p)->lpVtbl->UndoTo(p,a) -#define IOleUndoManager_RedoTo(p,a) (p)->lpVtbl->RedoTo(p,a) -#define IOleUndoManager_EnumUndoable(p,a) (p)->lpVtbl->EnumUndoable(p,a) -#define IOleUndoManager_EnumRedoable(p,a) (p)->lpVtbl->EnumRedoable(p,a) -#define IOleUndoManager_GetLastUndoDescription(p,a) (p)->lpVtbl->GetLastUndoDescription(p,a) -#define IOleUndoManager_GetLastRedoDescription(p,a) (p)->lpVtbl->GetLastRedoDescription(p,a) -#define IOleUndoManager_Enable(p,a) (p)->lpVtbl->Enable(p,a) -#endif - -#endif - -#define IOleUndoManager_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleUndoManager methods ***/ \ - STDMETHOD_(HRESULT,Open)(THIS_ IOleParentUndoUnit* pPUU) PURE; \ - STDMETHOD_(HRESULT,Close)(THIS_ IOleParentUndoUnit* pPUU, BOOL fCommit) PURE; \ - STDMETHOD_(HRESULT,Add)(THIS_ IOleUndoUnit* pUU) PURE; \ - STDMETHOD_(HRESULT,GetOpenParentState)(THIS_ DWORD* pdwState) PURE; \ - STDMETHOD_(HRESULT,DiscardFrom)(THIS_ IOleUndoUnit* pUU) PURE; \ - STDMETHOD_(HRESULT,UndoTo)(THIS_ IOleUndoUnit* pUU) PURE; \ - STDMETHOD_(HRESULT,RedoTo)(THIS_ IOleUndoUnit* pUU) PURE; \ - STDMETHOD_(HRESULT,EnumUndoable)(THIS_ IEnumOleUndoUnits** ppEnum) PURE; \ - STDMETHOD_(HRESULT,EnumRedoable)(THIS_ IEnumOleUndoUnits** ppEnum) PURE; \ - STDMETHOD_(HRESULT,GetLastUndoDescription)(THIS_ BSTR* pBstr) PURE; \ - STDMETHOD_(HRESULT,GetLastRedoDescription)(THIS_ BSTR* pBstr) PURE; \ - STDMETHOD_(HRESULT,Enable)(THIS_ BOOL fEnable) PURE; - -HRESULT CALLBACK IOleUndoManager_Open_Proxy( - IOleUndoManager* This, - IOleParentUndoUnit* pPUU); -void __RPC_STUB IOleUndoManager_Open_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_Close_Proxy( - IOleUndoManager* This, - IOleParentUndoUnit* pPUU, - BOOL fCommit); -void __RPC_STUB IOleUndoManager_Close_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_Add_Proxy( - IOleUndoManager* This, - IOleUndoUnit* pUU); -void __RPC_STUB IOleUndoManager_Add_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_GetOpenParentState_Proxy( - IOleUndoManager* This, - DWORD* pdwState); -void __RPC_STUB IOleUndoManager_GetOpenParentState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_DiscardFrom_Proxy( - IOleUndoManager* This, - IOleUndoUnit* pUU); -void __RPC_STUB IOleUndoManager_DiscardFrom_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_UndoTo_Proxy( - IOleUndoManager* This, - IOleUndoUnit* pUU); -void __RPC_STUB IOleUndoManager_UndoTo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_RedoTo_Proxy( - IOleUndoManager* This, - IOleUndoUnit* pUU); -void __RPC_STUB IOleUndoManager_RedoTo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_EnumUndoable_Proxy( - IOleUndoManager* This, - IEnumOleUndoUnits** ppEnum); -void __RPC_STUB IOleUndoManager_EnumUndoable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_EnumRedoable_Proxy( - IOleUndoManager* This, - IEnumOleUndoUnits** ppEnum); -void __RPC_STUB IOleUndoManager_EnumRedoable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_GetLastUndoDescription_Proxy( - IOleUndoManager* This, - BSTR* pBstr); -void __RPC_STUB IOleUndoManager_GetLastUndoDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_GetLastRedoDescription_Proxy( - IOleUndoManager* This, - BSTR* pBstr); -void __RPC_STUB IOleUndoManager_GetLastRedoDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleUndoManager_Enable_Proxy( - IOleUndoManager* This, - BOOL fEnable); -void __RPC_STUB IOleUndoManager_Enable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleUndoManager_INTERFACE_DEFINED__ */ - -#ifndef __IQuickActivate_FWD_DEFINED__ -#define __IQuickActivate_FWD_DEFINED__ -typedef struct IQuickActivate IQuickActivate; -#endif - -typedef IQuickActivate *LPQUICKACTIVATE; - -typedef enum tagQACONTAINERFLAGS { - QACONTAINER_SHOWHATCHING = 0x1, - QACONTAINER_SHOWGRABHANDLES = 0x2, - QACONTAINER_USERMODE = 0x4, - QACONTAINER_DISPLAYASDEFAULT = 0x8, - QACONTAINER_UIDEAD = 0x10, - QACONTAINER_AUTOCLIP = 0x20, - QACONTAINER_MESSAGEREFLECT = 0x40, - QACONTAINER_SUPPORTSMNEMONICS = 0x80 -} QACONTAINERFLAGS; - -typedef DWORD OLE_COLOR; - -typedef struct tagQACONTAINER { - ULONG cbSize; - IOleClientSite *pClientSite; - IAdviseSinkEx *pAdviseSink; - IPropertyNotifySink *pPropertyNotifySink; - IUnknown *pUnkEventSink; - DWORD dwAmbientFlags; - OLE_COLOR colorFore; - OLE_COLOR colorBack; - IFont *pFont; - IOleUndoManager *pUndoMgr; - DWORD dwAppearance; - LONG lcid; - HPALETTE hpal; - IBindHost *pBindHost; - IOleControlSite *pOleControlSite; - IServiceProvider *pServiceProvider; -} QACONTAINER; - -typedef struct tagQACONTROL { - ULONG cbSize; - DWORD dwMiscStatus; - DWORD dwViewStatus; - DWORD dwEventCookie; - DWORD dwPropNotifyCookie; - DWORD dwPointerActivationPolicy; -} QACONTROL; - -/***************************************************************************** - * IQuickActivate interface - */ -#ifndef __IQuickActivate_INTERFACE_DEFINED__ -#define __IQuickActivate_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IQuickActivate, 0xcf51ed10, 0x62fe, 0x11cf, 0xbf,0x86, 0x00,0xa0,0xc9,0x03,0x48,0x36); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IQuickActivate : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QuickActivate( - QACONTAINER* pQaContainer, - QACONTROL* pQaControl) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetContentExtent( - LPSIZEL pSizel) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetContentExtent( - LPSIZEL pSizel) = 0; - -}; -#else -typedef struct IQuickActivateVtbl IQuickActivateVtbl; -struct IQuickActivate { - const IQuickActivateVtbl* lpVtbl; -}; -struct IQuickActivateVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IQuickActivate* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IQuickActivate* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IQuickActivate* This); - - /*** IQuickActivate methods ***/ - HRESULT (STDMETHODCALLTYPE *QuickActivate)( - IQuickActivate* This, - QACONTAINER* pQaContainer, - QACONTROL* pQaControl); - - HRESULT (STDMETHODCALLTYPE *SetContentExtent)( - IQuickActivate* This, - LPSIZEL pSizel); - - HRESULT (STDMETHODCALLTYPE *GetContentExtent)( - IQuickActivate* This, - LPSIZEL pSizel); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IQuickActivate_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IQuickActivate_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IQuickActivate_Release(p) (p)->lpVtbl->Release(p) -/*** IQuickActivate methods ***/ -#define IQuickActivate_QuickActivate(p,a,b) (p)->lpVtbl->QuickActivate(p,a,b) -#define IQuickActivate_SetContentExtent(p,a) (p)->lpVtbl->SetContentExtent(p,a) -#define IQuickActivate_GetContentExtent(p,a) (p)->lpVtbl->GetContentExtent(p,a) -#endif - -#endif - -#define IQuickActivate_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IQuickActivate methods ***/ \ - STDMETHOD_(HRESULT,QuickActivate)(THIS_ QACONTAINER* pQaContainer, QACONTROL* pQaControl) PURE; \ - STDMETHOD_(HRESULT,SetContentExtent)(THIS_ LPSIZEL pSizel) PURE; \ - STDMETHOD_(HRESULT,GetContentExtent)(THIS_ LPSIZEL pSizel) PURE; - -HRESULT CALLBACK IQuickActivate_RemoteQuickActivate_Proxy( - IQuickActivate* This, - QACONTAINER* pQaContainer, - QACONTROL* pQaControl); -void __RPC_STUB IQuickActivate_RemoteQuickActivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IQuickActivate_QuickActivate_Proxy( - IQuickActivate* This, - QACONTAINER* pQaContainer, - QACONTROL* pQaControl); -HRESULT __RPC_STUB IQuickActivate_QuickActivate_Stub( - IQuickActivate* This, - QACONTAINER* pQaContainer, - QACONTROL* pQaControl); -HRESULT CALLBACK IQuickActivate_SetContentExtent_Proxy( - IQuickActivate* This, - LPSIZEL pSizel); -void __RPC_STUB IQuickActivate_SetContentExtent_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IQuickActivate_GetContentExtent_Proxy( - IQuickActivate* This, - LPSIZEL pSizel); -void __RPC_STUB IQuickActivate_GetContentExtent_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IQuickActivate_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_OCIDL_H */ diff --git a/include/oleidl.h b/include/oleidl.h deleted file mode 100644 index 56ddb4a825b..00000000000 --- a/include/oleidl.h +++ /dev/null @@ -1,3936 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from oleidl.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_OLEIDL_H -#define __WIDL_OLEIDL_H -#ifdef __cplusplus -extern "C" { -#endif -#include -typedef enum tagOLERENDER { - OLERENDER_NONE = 0, - OLERENDER_DRAW = 1, - OLERENDER_FORMAT = 2, - OLERENDER_ASIS = 3 -} OLERENDER, *LPOLERENDER; - -typedef struct tagOBJECTDESCRIPTOR { - ULONG cbSize; - CLSID clsid; - DWORD dwDrawAspect; - SIZEL sizel; - POINTL pointl; - DWORD dwStatus; - DWORD dwFullUserTypeName; - DWORD dwSrcOfCopy; -} OBJECTDESCRIPTOR, *POBJECTDESCRIPTOR, *LPOBJECTDESCRIPTOR, LINKSRCDESCRIPTOR, *PLINKSRCDESCRIPTOR, *LPLINKSRCDESCRIPTOR; - -#ifndef __IOleWindow_FWD_DEFINED__ -#define __IOleWindow_FWD_DEFINED__ -typedef struct IOleWindow IOleWindow; -#endif - -typedef IOleWindow *LPOLEWINDOW; - -/***************************************************************************** - * IOleWindow interface - */ -#ifndef __IOleWindow_INTERFACE_DEFINED__ -#define __IOleWindow_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleWindow, 0x00000114, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleWindow : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetWindow( - HWND* phwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE ContextSensitiveHelp( - BOOL fEnterMode) = 0; - -}; -#else -typedef struct IOleWindowVtbl IOleWindowVtbl; -struct IOleWindow { - const IOleWindowVtbl* lpVtbl; -}; -struct IOleWindowVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleWindow* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleWindow* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleWindow* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IOleWindow* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IOleWindow* This, - BOOL fEnterMode); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleWindow_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleWindow_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleWindow_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IOleWindow_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IOleWindow_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -#endif - -#endif - -#define IOleWindow_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; - -HRESULT CALLBACK IOleWindow_GetWindow_Proxy( - IOleWindow* This, - HWND* phwnd); -void __RPC_STUB IOleWindow_GetWindow_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleWindow_ContextSensitiveHelp_Proxy( - IOleWindow* This, - BOOL fEnterMode); -void __RPC_STUB IOleWindow_ContextSensitiveHelp_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleWindow_INTERFACE_DEFINED__ */ - -#ifndef __IOleInPlaceObject_FWD_DEFINED__ -#define __IOleInPlaceObject_FWD_DEFINED__ -typedef struct IOleInPlaceObject IOleInPlaceObject; -#endif - -typedef IOleInPlaceObject *LPOLEINPLACEOBJECT; - -/***************************************************************************** - * IOleInPlaceObject interface - */ -#ifndef __IOleInPlaceObject_INTERFACE_DEFINED__ -#define __IOleInPlaceObject_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleInPlaceObject, 0x00000113, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleInPlaceObject : public IOleWindow -{ - virtual HRESULT STDMETHODCALLTYPE InPlaceDeactivate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE UIDeactivate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetObjectRects( - LPCRECT lprcPosRect, - LPCRECT lprcClipRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReactivateAndUndo( - ) = 0; - -}; -#else -typedef struct IOleInPlaceObjectVtbl IOleInPlaceObjectVtbl; -struct IOleInPlaceObject { - const IOleInPlaceObjectVtbl* lpVtbl; -}; -struct IOleInPlaceObjectVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleInPlaceObject* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleInPlaceObject* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleInPlaceObject* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IOleInPlaceObject* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IOleInPlaceObject* This, - BOOL fEnterMode); - - /*** IOleInPlaceObject methods ***/ - HRESULT (STDMETHODCALLTYPE *InPlaceDeactivate)( - IOleInPlaceObject* This); - - HRESULT (STDMETHODCALLTYPE *UIDeactivate)( - IOleInPlaceObject* This); - - HRESULT (STDMETHODCALLTYPE *SetObjectRects)( - IOleInPlaceObject* This, - LPCRECT lprcPosRect, - LPCRECT lprcClipRect); - - HRESULT (STDMETHODCALLTYPE *ReactivateAndUndo)( - IOleInPlaceObject* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleInPlaceObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleInPlaceObject_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleInPlaceObject_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IOleInPlaceObject_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IOleInPlaceObject_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IOleInPlaceObject methods ***/ -#define IOleInPlaceObject_InPlaceDeactivate(p) (p)->lpVtbl->InPlaceDeactivate(p) -#define IOleInPlaceObject_UIDeactivate(p) (p)->lpVtbl->UIDeactivate(p) -#define IOleInPlaceObject_SetObjectRects(p,a,b) (p)->lpVtbl->SetObjectRects(p,a,b) -#define IOleInPlaceObject_ReactivateAndUndo(p) (p)->lpVtbl->ReactivateAndUndo(p) -#endif - -#endif - -#define IOleInPlaceObject_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IOleInPlaceObject methods ***/ \ - STDMETHOD_(HRESULT,InPlaceDeactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,UIDeactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetObjectRects)(THIS_ LPCRECT lprcPosRect, LPCRECT lprcClipRect) PURE; \ - STDMETHOD_(HRESULT,ReactivateAndUndo)(THIS) PURE; - -HRESULT CALLBACK IOleInPlaceObject_InPlaceDeactivate_Proxy( - IOleInPlaceObject* This); -void __RPC_STUB IOleInPlaceObject_InPlaceDeactivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceObject_UIDeactivate_Proxy( - IOleInPlaceObject* This); -void __RPC_STUB IOleInPlaceObject_UIDeactivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceObject_SetObjectRects_Proxy( - IOleInPlaceObject* This, - LPCRECT lprcPosRect, - LPCRECT lprcClipRect); -void __RPC_STUB IOleInPlaceObject_SetObjectRects_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceObject_ReactivateAndUndo_Proxy( - IOleInPlaceObject* This); -void __RPC_STUB IOleInPlaceObject_ReactivateAndUndo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleInPlaceObject_INTERFACE_DEFINED__ */ - -#ifdef __WINESRC__ -#undef TranslateAccelerator -#endif -#ifndef __IOleInPlaceUIWindow_FWD_DEFINED__ -#define __IOleInPlaceUIWindow_FWD_DEFINED__ -typedef struct IOleInPlaceUIWindow IOleInPlaceUIWindow; -#endif - -#ifndef __IOleInPlaceActiveObject_FWD_DEFINED__ -#define __IOleInPlaceActiveObject_FWD_DEFINED__ -typedef struct IOleInPlaceActiveObject IOleInPlaceActiveObject; -#endif - -typedef IOleInPlaceActiveObject *LPOLEINPLACEACTIVEOBJECT; - -/***************************************************************************** - * IOleInPlaceActiveObject interface - */ -#ifndef __IOleInPlaceActiveObject_INTERFACE_DEFINED__ -#define __IOleInPlaceActiveObject_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleInPlaceActiveObject, 0x00000117, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleInPlaceActiveObject : public IOleWindow -{ - virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator( - LPMSG lpmsg) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnFrameWindowActivate( - BOOL fActivate) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnDocWindowActivate( - BOOL fActivate) = 0; - - virtual HRESULT STDMETHODCALLTYPE ResizeBorder( - LPCRECT prcBorder, - IOleInPlaceUIWindow* pUIWindow, - BOOL fFrameWindow) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnableModeless( - BOOL fEnable) = 0; - -}; -#else -typedef struct IOleInPlaceActiveObjectVtbl IOleInPlaceActiveObjectVtbl; -struct IOleInPlaceActiveObject { - const IOleInPlaceActiveObjectVtbl* lpVtbl; -}; -struct IOleInPlaceActiveObjectVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleInPlaceActiveObject* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleInPlaceActiveObject* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleInPlaceActiveObject* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IOleInPlaceActiveObject* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IOleInPlaceActiveObject* This, - BOOL fEnterMode); - - /*** IOleInPlaceActiveObject methods ***/ - HRESULT (STDMETHODCALLTYPE *TranslateAccelerator)( - IOleInPlaceActiveObject* This, - LPMSG lpmsg); - - HRESULT (STDMETHODCALLTYPE *OnFrameWindowActivate)( - IOleInPlaceActiveObject* This, - BOOL fActivate); - - HRESULT (STDMETHODCALLTYPE *OnDocWindowActivate)( - IOleInPlaceActiveObject* This, - BOOL fActivate); - - HRESULT (STDMETHODCALLTYPE *ResizeBorder)( - IOleInPlaceActiveObject* This, - LPCRECT prcBorder, - IOleInPlaceUIWindow* pUIWindow, - BOOL fFrameWindow); - - HRESULT (STDMETHODCALLTYPE *EnableModeless)( - IOleInPlaceActiveObject* This, - BOOL fEnable); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleInPlaceActiveObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleInPlaceActiveObject_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleInPlaceActiveObject_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IOleInPlaceActiveObject_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IOleInPlaceActiveObject_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IOleInPlaceActiveObject methods ***/ -#define IOleInPlaceActiveObject_TranslateAccelerator(p,a) (p)->lpVtbl->TranslateAccelerator(p,a) -#define IOleInPlaceActiveObject_OnFrameWindowActivate(p,a) (p)->lpVtbl->OnFrameWindowActivate(p,a) -#define IOleInPlaceActiveObject_OnDocWindowActivate(p,a) (p)->lpVtbl->OnDocWindowActivate(p,a) -#define IOleInPlaceActiveObject_ResizeBorder(p,a,b,c) (p)->lpVtbl->ResizeBorder(p,a,b,c) -#define IOleInPlaceActiveObject_EnableModeless(p,a) (p)->lpVtbl->EnableModeless(p,a) -#endif - -#endif - -#define IOleInPlaceActiveObject_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IOleInPlaceActiveObject methods ***/ \ - STDMETHOD_(HRESULT,TranslateAccelerator)(THIS_ LPMSG lpmsg) PURE; \ - STDMETHOD_(HRESULT,OnFrameWindowActivate)(THIS_ BOOL fActivate) PURE; \ - STDMETHOD_(HRESULT,OnDocWindowActivate)(THIS_ BOOL fActivate) PURE; \ - STDMETHOD_(HRESULT,ResizeBorder)(THIS_ LPCRECT prcBorder, IOleInPlaceUIWindow* pUIWindow, BOOL fFrameWindow) PURE; \ - STDMETHOD_(HRESULT,EnableModeless)(THIS_ BOOL fEnable) PURE; - -HRESULT CALLBACK IOleInPlaceActiveObject_RemoteTranslateAccelerator_Proxy( - IOleInPlaceActiveObject* This); -void __RPC_STUB IOleInPlaceActiveObject_RemoteTranslateAccelerator_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceActiveObject_TranslateAccelerator_Proxy( - IOleInPlaceActiveObject* This, - LPMSG lpmsg); -HRESULT __RPC_STUB IOleInPlaceActiveObject_TranslateAccelerator_Stub( - IOleInPlaceActiveObject* This); -HRESULT CALLBACK IOleInPlaceActiveObject_OnFrameWindowActivate_Proxy( - IOleInPlaceActiveObject* This, - BOOL fActivate); -void __RPC_STUB IOleInPlaceActiveObject_OnFrameWindowActivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceActiveObject_OnDocWindowActivate_Proxy( - IOleInPlaceActiveObject* This, - BOOL fActivate); -void __RPC_STUB IOleInPlaceActiveObject_OnDocWindowActivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceActiveObject_RemoteResizeBorder_Proxy( - IOleInPlaceActiveObject* This, - LPCRECT prcBorder, - REFIID riid, - IOleInPlaceUIWindow* pUIWindow, - BOOL fFrameWindow); -void __RPC_STUB IOleInPlaceActiveObject_RemoteResizeBorder_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceActiveObject_ResizeBorder_Proxy( - IOleInPlaceActiveObject* This, - LPCRECT prcBorder, - IOleInPlaceUIWindow* pUIWindow, - BOOL fFrameWindow); -HRESULT __RPC_STUB IOleInPlaceActiveObject_ResizeBorder_Stub( - IOleInPlaceActiveObject* This, - LPCRECT prcBorder, - REFIID riid, - IOleInPlaceUIWindow* pUIWindow, - BOOL fFrameWindow); -HRESULT CALLBACK IOleInPlaceActiveObject_EnableModeless_Proxy( - IOleInPlaceActiveObject* This, - BOOL fEnable); -void __RPC_STUB IOleInPlaceActiveObject_EnableModeless_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleInPlaceActiveObject_INTERFACE_DEFINED__ */ - -typedef IOleInPlaceUIWindow *LPOLEINPLACEUIWINDOW; - -typedef RECT BORDERWIDTHS; - -typedef LPRECT LPBORDERWIDTHS; - -typedef LPCRECT LPCBORDERWIDTHS; - -/***************************************************************************** - * IOleInPlaceUIWindow interface - */ -#ifndef __IOleInPlaceUIWindow_INTERFACE_DEFINED__ -#define __IOleInPlaceUIWindow_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleInPlaceUIWindow, 0x00000115, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleInPlaceUIWindow : public IOleWindow -{ - virtual HRESULT STDMETHODCALLTYPE GetBorder( - LPRECT lprectBorder) = 0; - - virtual HRESULT STDMETHODCALLTYPE RequestBorderSpace( - LPCBORDERWIDTHS pborderwidths) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetBorderSpace( - LPCBORDERWIDTHS pborderwidths) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetActiveObject( - IOleInPlaceActiveObject* pActiveObject, - LPCOLESTR pszObjName) = 0; - -}; -#else -typedef struct IOleInPlaceUIWindowVtbl IOleInPlaceUIWindowVtbl; -struct IOleInPlaceUIWindow { - const IOleInPlaceUIWindowVtbl* lpVtbl; -}; -struct IOleInPlaceUIWindowVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleInPlaceUIWindow* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleInPlaceUIWindow* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleInPlaceUIWindow* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IOleInPlaceUIWindow* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IOleInPlaceUIWindow* This, - BOOL fEnterMode); - - /*** IOleInPlaceUIWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetBorder)( - IOleInPlaceUIWindow* This, - LPRECT lprectBorder); - - HRESULT (STDMETHODCALLTYPE *RequestBorderSpace)( - IOleInPlaceUIWindow* This, - LPCBORDERWIDTHS pborderwidths); - - HRESULT (STDMETHODCALLTYPE *SetBorderSpace)( - IOleInPlaceUIWindow* This, - LPCBORDERWIDTHS pborderwidths); - - HRESULT (STDMETHODCALLTYPE *SetActiveObject)( - IOleInPlaceUIWindow* This, - IOleInPlaceActiveObject* pActiveObject, - LPCOLESTR pszObjName); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleInPlaceUIWindow_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleInPlaceUIWindow_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleInPlaceUIWindow_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IOleInPlaceUIWindow_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IOleInPlaceUIWindow_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IOleInPlaceUIWindow methods ***/ -#define IOleInPlaceUIWindow_GetBorder(p,a) (p)->lpVtbl->GetBorder(p,a) -#define IOleInPlaceUIWindow_RequestBorderSpace(p,a) (p)->lpVtbl->RequestBorderSpace(p,a) -#define IOleInPlaceUIWindow_SetBorderSpace(p,a) (p)->lpVtbl->SetBorderSpace(p,a) -#define IOleInPlaceUIWindow_SetActiveObject(p,a,b) (p)->lpVtbl->SetActiveObject(p,a,b) -#endif - -#endif - -#define IOleInPlaceUIWindow_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IOleInPlaceUIWindow methods ***/ \ - STDMETHOD_(HRESULT,GetBorder)(THIS_ LPRECT lprectBorder) PURE; \ - STDMETHOD_(HRESULT,RequestBorderSpace)(THIS_ LPCBORDERWIDTHS pborderwidths) PURE; \ - STDMETHOD_(HRESULT,SetBorderSpace)(THIS_ LPCBORDERWIDTHS pborderwidths) PURE; \ - STDMETHOD_(HRESULT,SetActiveObject)(THIS_ IOleInPlaceActiveObject* pActiveObject, LPCOLESTR pszObjName) PURE; - -HRESULT CALLBACK IOleInPlaceUIWindow_GetBorder_Proxy( - IOleInPlaceUIWindow* This, - LPRECT lprectBorder); -void __RPC_STUB IOleInPlaceUIWindow_GetBorder_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceUIWindow_RequestBorderSpace_Proxy( - IOleInPlaceUIWindow* This, - LPCBORDERWIDTHS pborderwidths); -void __RPC_STUB IOleInPlaceUIWindow_RequestBorderSpace_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceUIWindow_SetBorderSpace_Proxy( - IOleInPlaceUIWindow* This, - LPCBORDERWIDTHS pborderwidths); -void __RPC_STUB IOleInPlaceUIWindow_SetBorderSpace_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceUIWindow_SetActiveObject_Proxy( - IOleInPlaceUIWindow* This, - IOleInPlaceActiveObject* pActiveObject, - LPCOLESTR pszObjName); -void __RPC_STUB IOleInPlaceUIWindow_SetActiveObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleInPlaceUIWindow_INTERFACE_DEFINED__ */ - -#ifndef __IOleInPlaceFrame_FWD_DEFINED__ -#define __IOleInPlaceFrame_FWD_DEFINED__ -typedef struct IOleInPlaceFrame IOleInPlaceFrame; -#endif - -typedef IOleInPlaceFrame *LPOLEINPLACEFRAME; - -typedef struct tagOleInPlaceFrameInfo { - UINT cb; - BOOL fMDIApp; - HWND hwndFrame; - HACCEL haccel; - UINT cAccelEntries; -} OLEINPLACEFRAMEINFO, *LPOLEINPLACEFRAMEINFO; - -typedef struct tagOleMenuGroupWidths { - LONG width[6]; -} OLEMENUGROUPWIDTHS, *LPOLEMENUGROUPWIDTHS; - -typedef HGLOBAL HOLEMENU; - -/***************************************************************************** - * IOleInPlaceFrame interface - */ -#ifndef __IOleInPlaceFrame_INTERFACE_DEFINED__ -#define __IOleInPlaceFrame_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleInPlaceFrame, 0x00000116, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleInPlaceFrame : public IOleInPlaceUIWindow -{ - virtual HRESULT STDMETHODCALLTYPE InsertMenus( - HMENU hmenuShared, - LPOLEMENUGROUPWIDTHS lpMenuWidths) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMenu( - HMENU hmenuShared, - HOLEMENU holemenu, - HWND hwndActiveObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveMenus( - HMENU hmenuShared) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetStatusText( - LPCOLESTR pszStatusText) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnableModeless( - BOOL fEnable) = 0; - - virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator( - LPMSG lpmsg, - WORD wID) = 0; - -}; -#else -typedef struct IOleInPlaceFrameVtbl IOleInPlaceFrameVtbl; -struct IOleInPlaceFrame { - const IOleInPlaceFrameVtbl* lpVtbl; -}; -struct IOleInPlaceFrameVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleInPlaceFrame* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleInPlaceFrame* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleInPlaceFrame* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IOleInPlaceFrame* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IOleInPlaceFrame* This, - BOOL fEnterMode); - - /*** IOleInPlaceUIWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetBorder)( - IOleInPlaceFrame* This, - LPRECT lprectBorder); - - HRESULT (STDMETHODCALLTYPE *RequestBorderSpace)( - IOleInPlaceFrame* This, - LPCBORDERWIDTHS pborderwidths); - - HRESULT (STDMETHODCALLTYPE *SetBorderSpace)( - IOleInPlaceFrame* This, - LPCBORDERWIDTHS pborderwidths); - - HRESULT (STDMETHODCALLTYPE *SetActiveObject)( - IOleInPlaceFrame* This, - IOleInPlaceActiveObject* pActiveObject, - LPCOLESTR pszObjName); - - /*** IOleInPlaceFrame methods ***/ - HRESULT (STDMETHODCALLTYPE *InsertMenus)( - IOleInPlaceFrame* This, - HMENU hmenuShared, - LPOLEMENUGROUPWIDTHS lpMenuWidths); - - HRESULT (STDMETHODCALLTYPE *SetMenu)( - IOleInPlaceFrame* This, - HMENU hmenuShared, - HOLEMENU holemenu, - HWND hwndActiveObject); - - HRESULT (STDMETHODCALLTYPE *RemoveMenus)( - IOleInPlaceFrame* This, - HMENU hmenuShared); - - HRESULT (STDMETHODCALLTYPE *SetStatusText)( - IOleInPlaceFrame* This, - LPCOLESTR pszStatusText); - - HRESULT (STDMETHODCALLTYPE *EnableModeless)( - IOleInPlaceFrame* This, - BOOL fEnable); - - HRESULT (STDMETHODCALLTYPE *TranslateAccelerator)( - IOleInPlaceFrame* This, - LPMSG lpmsg, - WORD wID); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleInPlaceFrame_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleInPlaceFrame_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleInPlaceFrame_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IOleInPlaceFrame_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IOleInPlaceFrame_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IOleInPlaceUIWindow methods ***/ -#define IOleInPlaceFrame_GetBorder(p,a) (p)->lpVtbl->GetBorder(p,a) -#define IOleInPlaceFrame_RequestBorderSpace(p,a) (p)->lpVtbl->RequestBorderSpace(p,a) -#define IOleInPlaceFrame_SetBorderSpace(p,a) (p)->lpVtbl->SetBorderSpace(p,a) -#define IOleInPlaceFrame_SetActiveObject(p,a,b) (p)->lpVtbl->SetActiveObject(p,a,b) -/*** IOleInPlaceFrame methods ***/ -#define IOleInPlaceFrame_InsertMenus(p,a,b) (p)->lpVtbl->InsertMenus(p,a,b) -#define IOleInPlaceFrame_SetMenu(p,a,b,c) (p)->lpVtbl->SetMenu(p,a,b,c) -#define IOleInPlaceFrame_RemoveMenus(p,a) (p)->lpVtbl->RemoveMenus(p,a) -#define IOleInPlaceFrame_SetStatusText(p,a) (p)->lpVtbl->SetStatusText(p,a) -#define IOleInPlaceFrame_EnableModeless(p,a) (p)->lpVtbl->EnableModeless(p,a) -#define IOleInPlaceFrame_TranslateAccelerator(p,a,b) (p)->lpVtbl->TranslateAccelerator(p,a,b) -#endif - -#endif - -#define IOleInPlaceFrame_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IOleInPlaceUIWindow methods ***/ \ - STDMETHOD_(HRESULT,GetBorder)(THIS_ LPRECT lprectBorder) PURE; \ - STDMETHOD_(HRESULT,RequestBorderSpace)(THIS_ LPCBORDERWIDTHS pborderwidths) PURE; \ - STDMETHOD_(HRESULT,SetBorderSpace)(THIS_ LPCBORDERWIDTHS pborderwidths) PURE; \ - STDMETHOD_(HRESULT,SetActiveObject)(THIS_ IOleInPlaceActiveObject* pActiveObject, LPCOLESTR pszObjName) PURE; \ - /*** IOleInPlaceFrame methods ***/ \ - STDMETHOD_(HRESULT,InsertMenus)(THIS_ HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths) PURE; \ - STDMETHOD_(HRESULT,SetMenu)(THIS_ HMENU hmenuShared, HOLEMENU holemenu, HWND hwndActiveObject) PURE; \ - STDMETHOD_(HRESULT,RemoveMenus)(THIS_ HMENU hmenuShared) PURE; \ - STDMETHOD_(HRESULT,SetStatusText)(THIS_ LPCOLESTR pszStatusText) PURE; \ - STDMETHOD_(HRESULT,EnableModeless)(THIS_ BOOL fEnable) PURE; \ - STDMETHOD_(HRESULT,TranslateAccelerator)(THIS_ LPMSG lpmsg, WORD wID) PURE; - -HRESULT CALLBACK IOleInPlaceFrame_InsertMenus_Proxy( - IOleInPlaceFrame* This, - HMENU hmenuShared, - LPOLEMENUGROUPWIDTHS lpMenuWidths); -void __RPC_STUB IOleInPlaceFrame_InsertMenus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceFrame_SetMenu_Proxy( - IOleInPlaceFrame* This, - HMENU hmenuShared, - HOLEMENU holemenu, - HWND hwndActiveObject); -void __RPC_STUB IOleInPlaceFrame_SetMenu_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceFrame_RemoveMenus_Proxy( - IOleInPlaceFrame* This, - HMENU hmenuShared); -void __RPC_STUB IOleInPlaceFrame_RemoveMenus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceFrame_SetStatusText_Proxy( - IOleInPlaceFrame* This, - LPCOLESTR pszStatusText); -void __RPC_STUB IOleInPlaceFrame_SetStatusText_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceFrame_EnableModeless_Proxy( - IOleInPlaceFrame* This, - BOOL fEnable); -void __RPC_STUB IOleInPlaceFrame_EnableModeless_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceFrame_TranslateAccelerator_Proxy( - IOleInPlaceFrame* This, - LPMSG lpmsg, - WORD wID); -void __RPC_STUB IOleInPlaceFrame_TranslateAccelerator_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleInPlaceFrame_INTERFACE_DEFINED__ */ - -#ifndef __IOleInPlaceSite_FWD_DEFINED__ -#define __IOleInPlaceSite_FWD_DEFINED__ -typedef struct IOleInPlaceSite IOleInPlaceSite; -#endif - -typedef IOleInPlaceSite *LPOLEINPLACESITE; - -/***************************************************************************** - * IOleInPlaceSite interface - */ -#ifndef __IOleInPlaceSite_INTERFACE_DEFINED__ -#define __IOleInPlaceSite_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleInPlaceSite, 0x00000119, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleInPlaceSite : public IOleWindow -{ - virtual HRESULT STDMETHODCALLTYPE CanInPlaceActivate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnInPlaceActivate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnUIActivate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetWindowContext( - IOleInPlaceFrame** ppFrame, - IOleInPlaceUIWindow** ppDoc, - LPRECT lprcPosRect, - LPRECT lprcClipRect, - LPOLEINPLACEFRAMEINFO lpFrameInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE Scroll( - SIZE scrollExtant) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnUIDeactivate( - BOOL fUndoable) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnInPlaceDeactivate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE DiscardUndoState( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeactivateAndUndo( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnPosRectChange( - LPCRECT lprcPosRect) = 0; - -}; -#else -typedef struct IOleInPlaceSiteVtbl IOleInPlaceSiteVtbl; -struct IOleInPlaceSite { - const IOleInPlaceSiteVtbl* lpVtbl; -}; -struct IOleInPlaceSiteVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleInPlaceSite* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleInPlaceSite* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleInPlaceSite* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IOleInPlaceSite* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IOleInPlaceSite* This, - BOOL fEnterMode); - - /*** IOleInPlaceSite methods ***/ - HRESULT (STDMETHODCALLTYPE *CanInPlaceActivate)( - IOleInPlaceSite* This); - - HRESULT (STDMETHODCALLTYPE *OnInPlaceActivate)( - IOleInPlaceSite* This); - - HRESULT (STDMETHODCALLTYPE *OnUIActivate)( - IOleInPlaceSite* This); - - HRESULT (STDMETHODCALLTYPE *GetWindowContext)( - IOleInPlaceSite* This, - IOleInPlaceFrame** ppFrame, - IOleInPlaceUIWindow** ppDoc, - LPRECT lprcPosRect, - LPRECT lprcClipRect, - LPOLEINPLACEFRAMEINFO lpFrameInfo); - - HRESULT (STDMETHODCALLTYPE *Scroll)( - IOleInPlaceSite* This, - SIZE scrollExtant); - - HRESULT (STDMETHODCALLTYPE *OnUIDeactivate)( - IOleInPlaceSite* This, - BOOL fUndoable); - - HRESULT (STDMETHODCALLTYPE *OnInPlaceDeactivate)( - IOleInPlaceSite* This); - - HRESULT (STDMETHODCALLTYPE *DiscardUndoState)( - IOleInPlaceSite* This); - - HRESULT (STDMETHODCALLTYPE *DeactivateAndUndo)( - IOleInPlaceSite* This); - - HRESULT (STDMETHODCALLTYPE *OnPosRectChange)( - IOleInPlaceSite* This, - LPCRECT lprcPosRect); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleInPlaceSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleInPlaceSite_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleInPlaceSite_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IOleInPlaceSite_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IOleInPlaceSite_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IOleInPlaceSite methods ***/ -#define IOleInPlaceSite_CanInPlaceActivate(p) (p)->lpVtbl->CanInPlaceActivate(p) -#define IOleInPlaceSite_OnInPlaceActivate(p) (p)->lpVtbl->OnInPlaceActivate(p) -#define IOleInPlaceSite_OnUIActivate(p) (p)->lpVtbl->OnUIActivate(p) -#define IOleInPlaceSite_GetWindowContext(p,a,b,c,d,e) (p)->lpVtbl->GetWindowContext(p,a,b,c,d,e) -#define IOleInPlaceSite_Scroll(p,a) (p)->lpVtbl->Scroll(p,a) -#define IOleInPlaceSite_OnUIDeactivate(p,a) (p)->lpVtbl->OnUIDeactivate(p,a) -#define IOleInPlaceSite_OnInPlaceDeactivate(p) (p)->lpVtbl->OnInPlaceDeactivate(p) -#define IOleInPlaceSite_DiscardUndoState(p) (p)->lpVtbl->DiscardUndoState(p) -#define IOleInPlaceSite_DeactivateAndUndo(p) (p)->lpVtbl->DeactivateAndUndo(p) -#define IOleInPlaceSite_OnPosRectChange(p,a) (p)->lpVtbl->OnPosRectChange(p,a) -#endif - -#endif - -#define IOleInPlaceSite_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IOleInPlaceSite methods ***/ \ - STDMETHOD_(HRESULT,CanInPlaceActivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnInPlaceActivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnUIActivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetWindowContext)(THIS_ IOleInPlaceFrame** ppFrame, IOleInPlaceUIWindow** ppDoc, LPRECT lprcPosRect, LPRECT lprcClipRect, LPOLEINPLACEFRAMEINFO lpFrameInfo) PURE; \ - STDMETHOD_(HRESULT,Scroll)(THIS_ SIZE scrollExtant) PURE; \ - STDMETHOD_(HRESULT,OnUIDeactivate)(THIS_ BOOL fUndoable) PURE; \ - STDMETHOD_(HRESULT,OnInPlaceDeactivate)(THIS) PURE; \ - STDMETHOD_(HRESULT,DiscardUndoState)(THIS) PURE; \ - STDMETHOD_(HRESULT,DeactivateAndUndo)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnPosRectChange)(THIS_ LPCRECT lprcPosRect) PURE; - -HRESULT CALLBACK IOleInPlaceSite_CanInPlaceActivate_Proxy( - IOleInPlaceSite* This); -void __RPC_STUB IOleInPlaceSite_CanInPlaceActivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSite_OnInPlaceActivate_Proxy( - IOleInPlaceSite* This); -void __RPC_STUB IOleInPlaceSite_OnInPlaceActivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSite_OnUIActivate_Proxy( - IOleInPlaceSite* This); -void __RPC_STUB IOleInPlaceSite_OnUIActivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSite_GetWindowContext_Proxy( - IOleInPlaceSite* This, - IOleInPlaceFrame** ppFrame, - IOleInPlaceUIWindow** ppDoc, - LPRECT lprcPosRect, - LPRECT lprcClipRect, - LPOLEINPLACEFRAMEINFO lpFrameInfo); -void __RPC_STUB IOleInPlaceSite_GetWindowContext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSite_Scroll_Proxy( - IOleInPlaceSite* This, - SIZE scrollExtant); -void __RPC_STUB IOleInPlaceSite_Scroll_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSite_OnUIDeactivate_Proxy( - IOleInPlaceSite* This, - BOOL fUndoable); -void __RPC_STUB IOleInPlaceSite_OnUIDeactivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSite_OnInPlaceDeactivate_Proxy( - IOleInPlaceSite* This); -void __RPC_STUB IOleInPlaceSite_OnInPlaceDeactivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSite_DiscardUndoState_Proxy( - IOleInPlaceSite* This); -void __RPC_STUB IOleInPlaceSite_DiscardUndoState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSite_DeactivateAndUndo_Proxy( - IOleInPlaceSite* This); -void __RPC_STUB IOleInPlaceSite_DeactivateAndUndo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleInPlaceSite_OnPosRectChange_Proxy( - IOleInPlaceSite* This, - LPCRECT lprcPosRect); -void __RPC_STUB IOleInPlaceSite_OnPosRectChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleInPlaceSite_INTERFACE_DEFINED__ */ - -#ifndef __IParseDisplayName_FWD_DEFINED__ -#define __IParseDisplayName_FWD_DEFINED__ -typedef struct IParseDisplayName IParseDisplayName; -#endif - -typedef IParseDisplayName *LPPARSEDISPLAYNAME; - -/***************************************************************************** - * IParseDisplayName interface - */ -#ifndef __IParseDisplayName_INTERFACE_DEFINED__ -#define __IParseDisplayName_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IParseDisplayName, 0x0000011a, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IParseDisplayName : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE ParseDisplayName( - IBindCtx* pbc, - LPOLESTR pszDisplayName, - ULONG* pchEaten, - IMoniker** ppmkOut) = 0; - -}; -#else -typedef struct IParseDisplayNameVtbl IParseDisplayNameVtbl; -struct IParseDisplayName { - const IParseDisplayNameVtbl* lpVtbl; -}; -struct IParseDisplayNameVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IParseDisplayName* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IParseDisplayName* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IParseDisplayName* This); - - /*** IParseDisplayName methods ***/ - HRESULT (STDMETHODCALLTYPE *ParseDisplayName)( - IParseDisplayName* This, - IBindCtx* pbc, - LPOLESTR pszDisplayName, - ULONG* pchEaten, - IMoniker** ppmkOut); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IParseDisplayName_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IParseDisplayName_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IParseDisplayName_Release(p) (p)->lpVtbl->Release(p) -/*** IParseDisplayName methods ***/ -#define IParseDisplayName_ParseDisplayName(p,a,b,c,d) (p)->lpVtbl->ParseDisplayName(p,a,b,c,d) -#endif - -#endif - -#define IParseDisplayName_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IParseDisplayName methods ***/ \ - STDMETHOD_(HRESULT,ParseDisplayName)(THIS_ IBindCtx* pbc, LPOLESTR pszDisplayName, ULONG* pchEaten, IMoniker** ppmkOut) PURE; - -HRESULT CALLBACK IParseDisplayName_ParseDisplayName_Proxy( - IParseDisplayName* This, - IBindCtx* pbc, - LPOLESTR pszDisplayName, - ULONG* pchEaten, - IMoniker** ppmkOut); -void __RPC_STUB IParseDisplayName_ParseDisplayName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IParseDisplayName_INTERFACE_DEFINED__ */ - -#ifndef __IOleContainer_FWD_DEFINED__ -#define __IOleContainer_FWD_DEFINED__ -typedef struct IOleContainer IOleContainer; -#endif - -typedef IOleContainer *LPOLECONTAINER; - -/***************************************************************************** - * IOleContainer interface - */ -#ifndef __IOleContainer_INTERFACE_DEFINED__ -#define __IOleContainer_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleContainer, 0x0000011b, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleContainer : public IParseDisplayName -{ - virtual HRESULT STDMETHODCALLTYPE EnumObjects( - DWORD grfFlags, - IEnumUnknown** ppenum) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockContainer( - BOOL fLock) = 0; - -}; -#else -typedef struct IOleContainerVtbl IOleContainerVtbl; -struct IOleContainer { - const IOleContainerVtbl* lpVtbl; -}; -struct IOleContainerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleContainer* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleContainer* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleContainer* This); - - /*** IParseDisplayName methods ***/ - HRESULT (STDMETHODCALLTYPE *ParseDisplayName)( - IOleContainer* This, - IBindCtx* pbc, - LPOLESTR pszDisplayName, - ULONG* pchEaten, - IMoniker** ppmkOut); - - /*** IOleContainer methods ***/ - HRESULT (STDMETHODCALLTYPE *EnumObjects)( - IOleContainer* This, - DWORD grfFlags, - IEnumUnknown** ppenum); - - HRESULT (STDMETHODCALLTYPE *LockContainer)( - IOleContainer* This, - BOOL fLock); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleContainer_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleContainer_Release(p) (p)->lpVtbl->Release(p) -/*** IParseDisplayName methods ***/ -#define IOleContainer_ParseDisplayName(p,a,b,c,d) (p)->lpVtbl->ParseDisplayName(p,a,b,c,d) -/*** IOleContainer methods ***/ -#define IOleContainer_EnumObjects(p,a,b) (p)->lpVtbl->EnumObjects(p,a,b) -#define IOleContainer_LockContainer(p,a) (p)->lpVtbl->LockContainer(p,a) -#endif - -#endif - -#define IOleContainer_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IParseDisplayName methods ***/ \ - STDMETHOD_(HRESULT,ParseDisplayName)(THIS_ IBindCtx* pbc, LPOLESTR pszDisplayName, ULONG* pchEaten, IMoniker** ppmkOut) PURE; \ - /*** IOleContainer methods ***/ \ - STDMETHOD_(HRESULT,EnumObjects)(THIS_ DWORD grfFlags, IEnumUnknown** ppenum) PURE; \ - STDMETHOD_(HRESULT,LockContainer)(THIS_ BOOL fLock) PURE; - -HRESULT CALLBACK IOleContainer_EnumObjects_Proxy( - IOleContainer* This, - DWORD grfFlags, - IEnumUnknown** ppenum); -void __RPC_STUB IOleContainer_EnumObjects_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleContainer_LockContainer_Proxy( - IOleContainer* This, - BOOL fLock); -void __RPC_STUB IOleContainer_LockContainer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleContainer_INTERFACE_DEFINED__ */ - -#ifndef __IOleItemContainer_FWD_DEFINED__ -#define __IOleItemContainer_FWD_DEFINED__ -typedef struct IOleItemContainer IOleItemContainer; -#endif - -typedef IOleItemContainer *LPOLEITEMCONTAINER; - -typedef enum tagBINDSPEED { - BINDSPEED_INDEFINITE = 1, - BINDSPEED_MODERATE = 2, - BINDSPEED_IMMEDIATE = 3 -} BINDSPEED; - -typedef enum tagOLECONTF { - OLECONTF_EMBEDDINGS = 1, - OLECONTF_LINKS = 2, - OLECONTF_OTHERS = 4, - OLECONTF_OLNYUSER = 8, - OLECONTF_ONLYIFRUNNING = 16 -} OLECONTF; - -#ifdef __WINESRC__ -#undef GetObject -#endif -/***************************************************************************** - * IOleItemContainer interface - */ -#ifndef __IOleItemContainer_INTERFACE_DEFINED__ -#define __IOleItemContainer_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleItemContainer, 0x0000011c, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleItemContainer : public IOleContainer -{ - virtual HRESULT STDMETHODCALLTYPE GetObject( - LPOLESTR pszItem, - DWORD dwSpeedNeeded, - IBindCtx* pbc, - REFIID riid, - void** ppvObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetObjectStorage( - LPOLESTR pszItem, - IBindCtx* pbc, - REFIID riid, - void** ppvStorage) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsRunning( - LPOLESTR pszItem) = 0; - -}; -#else -typedef struct IOleItemContainerVtbl IOleItemContainerVtbl; -struct IOleItemContainer { - const IOleItemContainerVtbl* lpVtbl; -}; -struct IOleItemContainerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleItemContainer* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleItemContainer* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleItemContainer* This); - - /*** IParseDisplayName methods ***/ - HRESULT (STDMETHODCALLTYPE *ParseDisplayName)( - IOleItemContainer* This, - IBindCtx* pbc, - LPOLESTR pszDisplayName, - ULONG* pchEaten, - IMoniker** ppmkOut); - - /*** IOleContainer methods ***/ - HRESULT (STDMETHODCALLTYPE *EnumObjects)( - IOleItemContainer* This, - DWORD grfFlags, - IEnumUnknown** ppenum); - - HRESULT (STDMETHODCALLTYPE *LockContainer)( - IOleItemContainer* This, - BOOL fLock); - - /*** IOleItemContainer methods ***/ - HRESULT (STDMETHODCALLTYPE *GetObject)( - IOleItemContainer* This, - LPOLESTR pszItem, - DWORD dwSpeedNeeded, - IBindCtx* pbc, - REFIID riid, - void** ppvObject); - - HRESULT (STDMETHODCALLTYPE *GetObjectStorage)( - IOleItemContainer* This, - LPOLESTR pszItem, - IBindCtx* pbc, - REFIID riid, - void** ppvStorage); - - HRESULT (STDMETHODCALLTYPE *IsRunning)( - IOleItemContainer* This, - LPOLESTR pszItem); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleItemContainer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleItemContainer_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleItemContainer_Release(p) (p)->lpVtbl->Release(p) -/*** IParseDisplayName methods ***/ -#define IOleItemContainer_ParseDisplayName(p,a,b,c,d) (p)->lpVtbl->ParseDisplayName(p,a,b,c,d) -/*** IOleContainer methods ***/ -#define IOleItemContainer_EnumObjects(p,a,b) (p)->lpVtbl->EnumObjects(p,a,b) -#define IOleItemContainer_LockContainer(p,a) (p)->lpVtbl->LockContainer(p,a) -/*** IOleItemContainer methods ***/ -#define IOleItemContainer_GetObject(p,a,b,c,d,e) (p)->lpVtbl->GetObject(p,a,b,c,d,e) -#define IOleItemContainer_GetObjectStorage(p,a,b,c,d) (p)->lpVtbl->GetObjectStorage(p,a,b,c,d) -#define IOleItemContainer_IsRunning(p,a) (p)->lpVtbl->IsRunning(p,a) -#endif - -#endif - -#define IOleItemContainer_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IParseDisplayName methods ***/ \ - STDMETHOD_(HRESULT,ParseDisplayName)(THIS_ IBindCtx* pbc, LPOLESTR pszDisplayName, ULONG* pchEaten, IMoniker** ppmkOut) PURE; \ - /*** IOleContainer methods ***/ \ - STDMETHOD_(HRESULT,EnumObjects)(THIS_ DWORD grfFlags, IEnumUnknown** ppenum) PURE; \ - STDMETHOD_(HRESULT,LockContainer)(THIS_ BOOL fLock) PURE; \ - /*** IOleItemContainer methods ***/ \ - STDMETHOD_(HRESULT,GetObject)(THIS_ LPOLESTR pszItem, DWORD dwSpeedNeeded, IBindCtx* pbc, REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(HRESULT,GetObjectStorage)(THIS_ LPOLESTR pszItem, IBindCtx* pbc, REFIID riid, void** ppvStorage) PURE; \ - STDMETHOD_(HRESULT,IsRunning)(THIS_ LPOLESTR pszItem) PURE; - -HRESULT CALLBACK IOleItemContainer_GetObject_Proxy( - IOleItemContainer* This, - LPOLESTR pszItem, - DWORD dwSpeedNeeded, - IBindCtx* pbc, - REFIID riid, - void** ppvObject); -void __RPC_STUB IOleItemContainer_GetObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleItemContainer_GetObjectStorage_Proxy( - IOleItemContainer* This, - LPOLESTR pszItem, - IBindCtx* pbc, - REFIID riid, - void** ppvStorage); -void __RPC_STUB IOleItemContainer_GetObjectStorage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleItemContainer_IsRunning_Proxy( - IOleItemContainer* This, - LPOLESTR pszItem); -void __RPC_STUB IOleItemContainer_IsRunning_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleItemContainer_INTERFACE_DEFINED__ */ - -#ifndef __IOleLink_FWD_DEFINED__ -#define __IOleLink_FWD_DEFINED__ -typedef struct IOleLink IOleLink; -#endif - -typedef IOleLink *LPOLELINK; - -typedef enum tagOLEUPDATE { - OLEUPDATE_ALWAYS = 1, - OLEUPDATE_ONCALL = 3 -} OLEUPDATE, *POLEUPDATE, *LPOLEUPDATE; - -typedef enum tagOLELINKBIND { - OLELINKBIND_EVENIFCLASSDIFF = 1 -} OLELINKBIND; - -/***************************************************************************** - * IOleLink interface - */ -#ifndef __IOleLink_INTERFACE_DEFINED__ -#define __IOleLink_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleLink, 0x0000011d, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleLink : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetUpdateOptions( - DWORD dwUpdateOpt) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetUpdateOptions( - DWORD* pdwUpdateOpt) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSourceMoniker( - IMoniker* pmk, - REFCLSID rclsid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceMoniker( - IMoniker** ppmk) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSourceDisplayName( - LPCOLESTR pszStatusText) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSourceDisplayName( - LPOLESTR* ppszDisplayName) = 0; - - virtual HRESULT STDMETHODCALLTYPE BindToSource( - DWORD bindflags, - IBindCtx* pbc) = 0; - - virtual HRESULT STDMETHODCALLTYPE BindIfRunning( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBoundSource( - IUnknown** ppunk) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnbindSource( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Update( - IBindCtx* pbc) = 0; - -}; -#else -typedef struct IOleLinkVtbl IOleLinkVtbl; -struct IOleLink { - const IOleLinkVtbl* lpVtbl; -}; -struct IOleLinkVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleLink* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleLink* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleLink* This); - - /*** IOleLink methods ***/ - HRESULT (STDMETHODCALLTYPE *SetUpdateOptions)( - IOleLink* This, - DWORD dwUpdateOpt); - - HRESULT (STDMETHODCALLTYPE *GetUpdateOptions)( - IOleLink* This, - DWORD* pdwUpdateOpt); - - HRESULT (STDMETHODCALLTYPE *SetSourceMoniker)( - IOleLink* This, - IMoniker* pmk, - REFCLSID rclsid); - - HRESULT (STDMETHODCALLTYPE *GetSourceMoniker)( - IOleLink* This, - IMoniker** ppmk); - - HRESULT (STDMETHODCALLTYPE *SetSourceDisplayName)( - IOleLink* This, - LPCOLESTR pszStatusText); - - HRESULT (STDMETHODCALLTYPE *GetSourceDisplayName)( - IOleLink* This, - LPOLESTR* ppszDisplayName); - - HRESULT (STDMETHODCALLTYPE *BindToSource)( - IOleLink* This, - DWORD bindflags, - IBindCtx* pbc); - - HRESULT (STDMETHODCALLTYPE *BindIfRunning)( - IOleLink* This); - - HRESULT (STDMETHODCALLTYPE *GetBoundSource)( - IOleLink* This, - IUnknown** ppunk); - - HRESULT (STDMETHODCALLTYPE *UnbindSource)( - IOleLink* This); - - HRESULT (STDMETHODCALLTYPE *Update)( - IOleLink* This, - IBindCtx* pbc); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleLink_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleLink_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleLink_Release(p) (p)->lpVtbl->Release(p) -/*** IOleLink methods ***/ -#define IOleLink_SetUpdateOptions(p,a) (p)->lpVtbl->SetUpdateOptions(p,a) -#define IOleLink_GetUpdateOptions(p,a) (p)->lpVtbl->GetUpdateOptions(p,a) -#define IOleLink_SetSourceMoniker(p,a,b) (p)->lpVtbl->SetSourceMoniker(p,a,b) -#define IOleLink_GetSourceMoniker(p,a) (p)->lpVtbl->GetSourceMoniker(p,a) -#define IOleLink_SetSourceDisplayName(p,a) (p)->lpVtbl->SetSourceDisplayName(p,a) -#define IOleLink_GetSourceDisplayName(p,a) (p)->lpVtbl->GetSourceDisplayName(p,a) -#define IOleLink_BindToSource(p,a,b) (p)->lpVtbl->BindToSource(p,a,b) -#define IOleLink_BindIfRunning(p) (p)->lpVtbl->BindIfRunning(p) -#define IOleLink_GetBoundSource(p,a) (p)->lpVtbl->GetBoundSource(p,a) -#define IOleLink_UnbindSource(p) (p)->lpVtbl->UnbindSource(p) -#define IOleLink_Update(p,a) (p)->lpVtbl->Update(p,a) -#endif - -#endif - -#define IOleLink_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleLink methods ***/ \ - STDMETHOD_(HRESULT,SetUpdateOptions)(THIS_ DWORD dwUpdateOpt) PURE; \ - STDMETHOD_(HRESULT,GetUpdateOptions)(THIS_ DWORD* pdwUpdateOpt) PURE; \ - STDMETHOD_(HRESULT,SetSourceMoniker)(THIS_ IMoniker* pmk, REFCLSID rclsid) PURE; \ - STDMETHOD_(HRESULT,GetSourceMoniker)(THIS_ IMoniker** ppmk) PURE; \ - STDMETHOD_(HRESULT,SetSourceDisplayName)(THIS_ LPCOLESTR pszStatusText) PURE; \ - STDMETHOD_(HRESULT,GetSourceDisplayName)(THIS_ LPOLESTR* ppszDisplayName) PURE; \ - STDMETHOD_(HRESULT,BindToSource)(THIS_ DWORD bindflags, IBindCtx* pbc) PURE; \ - STDMETHOD_(HRESULT,BindIfRunning)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetBoundSource)(THIS_ IUnknown** ppunk) PURE; \ - STDMETHOD_(HRESULT,UnbindSource)(THIS) PURE; \ - STDMETHOD_(HRESULT,Update)(THIS_ IBindCtx* pbc) PURE; - -HRESULT CALLBACK IOleLink_SetUpdateOptions_Proxy( - IOleLink* This, - DWORD dwUpdateOpt); -void __RPC_STUB IOleLink_SetUpdateOptions_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleLink_GetUpdateOptions_Proxy( - IOleLink* This, - DWORD* pdwUpdateOpt); -void __RPC_STUB IOleLink_GetUpdateOptions_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleLink_SetSourceMoniker_Proxy( - IOleLink* This, - IMoniker* pmk, - REFCLSID rclsid); -void __RPC_STUB IOleLink_SetSourceMoniker_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleLink_GetSourceMoniker_Proxy( - IOleLink* This, - IMoniker** ppmk); -void __RPC_STUB IOleLink_GetSourceMoniker_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleLink_SetSourceDisplayName_Proxy( - IOleLink* This, - LPCOLESTR pszStatusText); -void __RPC_STUB IOleLink_SetSourceDisplayName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleLink_GetSourceDisplayName_Proxy( - IOleLink* This, - LPOLESTR* ppszDisplayName); -void __RPC_STUB IOleLink_GetSourceDisplayName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleLink_BindToSource_Proxy( - IOleLink* This, - DWORD bindflags, - IBindCtx* pbc); -void __RPC_STUB IOleLink_BindToSource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleLink_BindIfRunning_Proxy( - IOleLink* This); -void __RPC_STUB IOleLink_BindIfRunning_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleLink_GetBoundSource_Proxy( - IOleLink* This, - IUnknown** ppunk); -void __RPC_STUB IOleLink_GetBoundSource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleLink_UnbindSource_Proxy( - IOleLink* This); -void __RPC_STUB IOleLink_UnbindSource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleLink_Update_Proxy( - IOleLink* This, - IBindCtx* pbc); -void __RPC_STUB IOleLink_Update_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleLink_INTERFACE_DEFINED__ */ - -#ifndef __IOleClientSite_FWD_DEFINED__ -#define __IOleClientSite_FWD_DEFINED__ -typedef struct IOleClientSite IOleClientSite; -#endif - -typedef IOleClientSite *LPOLECLIENTSITE; - -/***************************************************************************** - * IOleClientSite interface - */ -#ifndef __IOleClientSite_INTERFACE_DEFINED__ -#define __IOleClientSite_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleClientSite, 0x00000118, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleClientSite : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SaveObject( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMoniker( - DWORD dwAssign, - DWORD dwWhichMoniker, - IMoniker** ppmk) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetContainer( - IOleContainer** ppContainer) = 0; - - virtual HRESULT STDMETHODCALLTYPE ShowObject( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnShowWindow( - BOOL fShow) = 0; - - virtual HRESULT STDMETHODCALLTYPE RequestNewObjectLayout( - ) = 0; - -}; -#else -typedef struct IOleClientSiteVtbl IOleClientSiteVtbl; -struct IOleClientSite { - const IOleClientSiteVtbl* lpVtbl; -}; -struct IOleClientSiteVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleClientSite* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleClientSite* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleClientSite* This); - - /*** IOleClientSite methods ***/ - HRESULT (STDMETHODCALLTYPE *SaveObject)( - IOleClientSite* This); - - HRESULT (STDMETHODCALLTYPE *GetMoniker)( - IOleClientSite* This, - DWORD dwAssign, - DWORD dwWhichMoniker, - IMoniker** ppmk); - - HRESULT (STDMETHODCALLTYPE *GetContainer)( - IOleClientSite* This, - IOleContainer** ppContainer); - - HRESULT (STDMETHODCALLTYPE *ShowObject)( - IOleClientSite* This); - - HRESULT (STDMETHODCALLTYPE *OnShowWindow)( - IOleClientSite* This, - BOOL fShow); - - HRESULT (STDMETHODCALLTYPE *RequestNewObjectLayout)( - IOleClientSite* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleClientSite_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleClientSite_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleClientSite_Release(p) (p)->lpVtbl->Release(p) -/*** IOleClientSite methods ***/ -#define IOleClientSite_SaveObject(p) (p)->lpVtbl->SaveObject(p) -#define IOleClientSite_GetMoniker(p,a,b,c) (p)->lpVtbl->GetMoniker(p,a,b,c) -#define IOleClientSite_GetContainer(p,a) (p)->lpVtbl->GetContainer(p,a) -#define IOleClientSite_ShowObject(p) (p)->lpVtbl->ShowObject(p) -#define IOleClientSite_OnShowWindow(p,a) (p)->lpVtbl->OnShowWindow(p,a) -#define IOleClientSite_RequestNewObjectLayout(p) (p)->lpVtbl->RequestNewObjectLayout(p) -#endif - -#endif - -#define IOleClientSite_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleClientSite methods ***/ \ - STDMETHOD_(HRESULT,SaveObject)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetMoniker)(THIS_ DWORD dwAssign, DWORD dwWhichMoniker, IMoniker** ppmk) PURE; \ - STDMETHOD_(HRESULT,GetContainer)(THIS_ IOleContainer** ppContainer) PURE; \ - STDMETHOD_(HRESULT,ShowObject)(THIS) PURE; \ - STDMETHOD_(HRESULT,OnShowWindow)(THIS_ BOOL fShow) PURE; \ - STDMETHOD_(HRESULT,RequestNewObjectLayout)(THIS) PURE; - -HRESULT CALLBACK IOleClientSite_SaveObject_Proxy( - IOleClientSite* This); -void __RPC_STUB IOleClientSite_SaveObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleClientSite_GetMoniker_Proxy( - IOleClientSite* This, - DWORD dwAssign, - DWORD dwWhichMoniker, - IMoniker** ppmk); -void __RPC_STUB IOleClientSite_GetMoniker_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleClientSite_GetContainer_Proxy( - IOleClientSite* This, - IOleContainer** ppContainer); -void __RPC_STUB IOleClientSite_GetContainer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleClientSite_ShowObject_Proxy( - IOleClientSite* This); -void __RPC_STUB IOleClientSite_ShowObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleClientSite_OnShowWindow_Proxy( - IOleClientSite* This, - BOOL fShow); -void __RPC_STUB IOleClientSite_OnShowWindow_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleClientSite_RequestNewObjectLayout_Proxy( - IOleClientSite* This); -void __RPC_STUB IOleClientSite_RequestNewObjectLayout_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleClientSite_INTERFACE_DEFINED__ */ - -#ifndef __IOleCache_FWD_DEFINED__ -#define __IOleCache_FWD_DEFINED__ -typedef struct IOleCache IOleCache; -#endif - -typedef IOleCache *LPOLECACHE; - -/***************************************************************************** - * IOleCache interface - */ -#ifndef __IOleCache_INTERFACE_DEFINED__ -#define __IOleCache_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleCache, 0x0000011e, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleCache : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Cache( - FORMATETC* pformatetc, - DWORD advf, - DWORD* pdwConnection) = 0; - - virtual HRESULT STDMETHODCALLTYPE Uncache( - DWORD dwConnection) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumCache( - IEnumSTATDATA** ppenumSTATDATA) = 0; - - virtual HRESULT STDMETHODCALLTYPE InitCache( - IDataObject* pDataObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetData( - FORMATETC* pformatetc, - STGMEDIUM* pmedium, - BOOL fRelease) = 0; - -}; -#else -typedef struct IOleCacheVtbl IOleCacheVtbl; -struct IOleCache { - const IOleCacheVtbl* lpVtbl; -}; -struct IOleCacheVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleCache* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleCache* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleCache* This); - - /*** IOleCache methods ***/ - HRESULT (STDMETHODCALLTYPE *Cache)( - IOleCache* This, - FORMATETC* pformatetc, - DWORD advf, - DWORD* pdwConnection); - - HRESULT (STDMETHODCALLTYPE *Uncache)( - IOleCache* This, - DWORD dwConnection); - - HRESULT (STDMETHODCALLTYPE *EnumCache)( - IOleCache* This, - IEnumSTATDATA** ppenumSTATDATA); - - HRESULT (STDMETHODCALLTYPE *InitCache)( - IOleCache* This, - IDataObject* pDataObject); - - HRESULT (STDMETHODCALLTYPE *SetData)( - IOleCache* This, - FORMATETC* pformatetc, - STGMEDIUM* pmedium, - BOOL fRelease); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleCache_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleCache_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleCache_Release(p) (p)->lpVtbl->Release(p) -/*** IOleCache methods ***/ -#define IOleCache_Cache(p,a,b,c) (p)->lpVtbl->Cache(p,a,b,c) -#define IOleCache_Uncache(p,a) (p)->lpVtbl->Uncache(p,a) -#define IOleCache_EnumCache(p,a) (p)->lpVtbl->EnumCache(p,a) -#define IOleCache_InitCache(p,a) (p)->lpVtbl->InitCache(p,a) -#define IOleCache_SetData(p,a,b,c) (p)->lpVtbl->SetData(p,a,b,c) -#endif - -#endif - -#define IOleCache_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleCache methods ***/ \ - STDMETHOD_(HRESULT,Cache)(THIS_ FORMATETC* pformatetc, DWORD advf, DWORD* pdwConnection) PURE; \ - STDMETHOD_(HRESULT,Uncache)(THIS_ DWORD dwConnection) PURE; \ - STDMETHOD_(HRESULT,EnumCache)(THIS_ IEnumSTATDATA** ppenumSTATDATA) PURE; \ - STDMETHOD_(HRESULT,InitCache)(THIS_ IDataObject* pDataObject) PURE; \ - STDMETHOD_(HRESULT,SetData)(THIS_ FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) PURE; - -HRESULT CALLBACK IOleCache_Cache_Proxy( - IOleCache* This, - FORMATETC* pformatetc, - DWORD advf, - DWORD* pdwConnection); -void __RPC_STUB IOleCache_Cache_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleCache_Uncache_Proxy( - IOleCache* This, - DWORD dwConnection); -void __RPC_STUB IOleCache_Uncache_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleCache_EnumCache_Proxy( - IOleCache* This, - IEnumSTATDATA** ppenumSTATDATA); -void __RPC_STUB IOleCache_EnumCache_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleCache_InitCache_Proxy( - IOleCache* This, - IDataObject* pDataObject); -void __RPC_STUB IOleCache_InitCache_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleCache_SetData_Proxy( - IOleCache* This, - FORMATETC* pformatetc, - STGMEDIUM* pmedium, - BOOL fRelease); -void __RPC_STUB IOleCache_SetData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleCache_INTERFACE_DEFINED__ */ - -#ifndef __IOleCache2_FWD_DEFINED__ -#define __IOleCache2_FWD_DEFINED__ -typedef struct IOleCache2 IOleCache2; -#endif - -typedef IOleCache2 *LPOLECACHE2; - -#define UPDFCACHE_NODATACACHE (0x1) - -#define UPDFCACHE_ONSAVECACHE (0x2) - -#define UPDFCACHE_ONSTOPCACHE (0x4) - -#define UPDFCACHE_NORMALCACHE (0x8) - -#define UPDFCACHE_IFBLANK (0x10) - -#define UPDFCACHE_ONLYIFBLANK (0x80000000) - -#define UPDFCACHE_IFBLANKORONSAVECACHE (UPDFCACHE_IFBLANK | UPDFCACHE_ONSAVECACHE) - -#define UPDFCACHE_ALL ((DWORD)~UPDFCACHE_ONLYIFBLANK) - -#define UPDFCACHE_ALLBUTNODATACACHE (UPDFCACHE_ALL & (DWORD)~UPDFCACHE_NODATACACHE) - -typedef enum tagDISCARDCACHE { - DISCARDCACHE_SAVEIFDIRTY = 0, - DISCARDCACHE_NOSAVE = 1 -} DISCARDCACHE; - -/***************************************************************************** - * IOleCache2 interface - */ -#ifndef __IOleCache2_INTERFACE_DEFINED__ -#define __IOleCache2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleCache2, 0x00000128, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleCache2 : public IOleCache -{ - virtual HRESULT STDMETHODCALLTYPE UpdateCache( - LPDATAOBJECT pDataObject, - DWORD grfUpdf, - LPVOID pReserved) = 0; - - virtual HRESULT STDMETHODCALLTYPE DiscardCache( - DWORD dwDiscardOptions) = 0; - -}; -#else -typedef struct IOleCache2Vtbl IOleCache2Vtbl; -struct IOleCache2 { - const IOleCache2Vtbl* lpVtbl; -}; -struct IOleCache2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleCache2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleCache2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleCache2* This); - - /*** IOleCache methods ***/ - HRESULT (STDMETHODCALLTYPE *Cache)( - IOleCache2* This, - FORMATETC* pformatetc, - DWORD advf, - DWORD* pdwConnection); - - HRESULT (STDMETHODCALLTYPE *Uncache)( - IOleCache2* This, - DWORD dwConnection); - - HRESULT (STDMETHODCALLTYPE *EnumCache)( - IOleCache2* This, - IEnumSTATDATA** ppenumSTATDATA); - - HRESULT (STDMETHODCALLTYPE *InitCache)( - IOleCache2* This, - IDataObject* pDataObject); - - HRESULT (STDMETHODCALLTYPE *SetData)( - IOleCache2* This, - FORMATETC* pformatetc, - STGMEDIUM* pmedium, - BOOL fRelease); - - /*** IOleCache2 methods ***/ - HRESULT (STDMETHODCALLTYPE *UpdateCache)( - IOleCache2* This, - LPDATAOBJECT pDataObject, - DWORD grfUpdf, - LPVOID pReserved); - - HRESULT (STDMETHODCALLTYPE *DiscardCache)( - IOleCache2* This, - DWORD dwDiscardOptions); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleCache2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleCache2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleCache2_Release(p) (p)->lpVtbl->Release(p) -/*** IOleCache methods ***/ -#define IOleCache2_Cache(p,a,b,c) (p)->lpVtbl->Cache(p,a,b,c) -#define IOleCache2_Uncache(p,a) (p)->lpVtbl->Uncache(p,a) -#define IOleCache2_EnumCache(p,a) (p)->lpVtbl->EnumCache(p,a) -#define IOleCache2_InitCache(p,a) (p)->lpVtbl->InitCache(p,a) -#define IOleCache2_SetData(p,a,b,c) (p)->lpVtbl->SetData(p,a,b,c) -/*** IOleCache2 methods ***/ -#define IOleCache2_UpdateCache(p,a,b,c) (p)->lpVtbl->UpdateCache(p,a,b,c) -#define IOleCache2_DiscardCache(p,a) (p)->lpVtbl->DiscardCache(p,a) -#endif - -#endif - -#define IOleCache2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleCache methods ***/ \ - STDMETHOD_(HRESULT,Cache)(THIS_ FORMATETC* pformatetc, DWORD advf, DWORD* pdwConnection) PURE; \ - STDMETHOD_(HRESULT,Uncache)(THIS_ DWORD dwConnection) PURE; \ - STDMETHOD_(HRESULT,EnumCache)(THIS_ IEnumSTATDATA** ppenumSTATDATA) PURE; \ - STDMETHOD_(HRESULT,InitCache)(THIS_ IDataObject* pDataObject) PURE; \ - STDMETHOD_(HRESULT,SetData)(THIS_ FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) PURE; \ - /*** IOleCache2 methods ***/ \ - STDMETHOD_(HRESULT,UpdateCache)(THIS_ LPDATAOBJECT pDataObject, DWORD grfUpdf, LPVOID pReserved) PURE; \ - STDMETHOD_(HRESULT,DiscardCache)(THIS_ DWORD dwDiscardOptions) PURE; - -HRESULT CALLBACK IOleCache2_RemoteUpdateCache_Proxy( - IOleCache2* This, - LPDATAOBJECT pDataObject, - DWORD grfUpdf, - LONG_PTR pReserved); -void __RPC_STUB IOleCache2_RemoteUpdateCache_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleCache2_UpdateCache_Proxy( - IOleCache2* This, - LPDATAOBJECT pDataObject, - DWORD grfUpdf, - LPVOID pReserved); -HRESULT __RPC_STUB IOleCache2_UpdateCache_Stub( - IOleCache2* This, - LPDATAOBJECT pDataObject, - DWORD grfUpdf, - LONG_PTR pReserved); -HRESULT CALLBACK IOleCache2_DiscardCache_Proxy( - IOleCache2* This, - DWORD dwDiscardOptions); -void __RPC_STUB IOleCache2_DiscardCache_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleCache2_INTERFACE_DEFINED__ */ - -#ifndef __IOleCacheControl_FWD_DEFINED__ -#define __IOleCacheControl_FWD_DEFINED__ -typedef struct IOleCacheControl IOleCacheControl; -#endif - -typedef IOleCacheControl *LPOLECACHECONTROL; - -/***************************************************************************** - * IOleCacheControl interface - */ -#ifndef __IOleCacheControl_INTERFACE_DEFINED__ -#define __IOleCacheControl_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleCacheControl, 0x00000129, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleCacheControl : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE OnRun( - LPDATAOBJECT pDataObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnStop( - ) = 0; - -}; -#else -typedef struct IOleCacheControlVtbl IOleCacheControlVtbl; -struct IOleCacheControl { - const IOleCacheControlVtbl* lpVtbl; -}; -struct IOleCacheControlVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleCacheControl* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleCacheControl* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleCacheControl* This); - - /*** IOleCacheControl methods ***/ - HRESULT (STDMETHODCALLTYPE *OnRun)( - IOleCacheControl* This, - LPDATAOBJECT pDataObject); - - HRESULT (STDMETHODCALLTYPE *OnStop)( - IOleCacheControl* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleCacheControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleCacheControl_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleCacheControl_Release(p) (p)->lpVtbl->Release(p) -/*** IOleCacheControl methods ***/ -#define IOleCacheControl_OnRun(p,a) (p)->lpVtbl->OnRun(p,a) -#define IOleCacheControl_OnStop(p) (p)->lpVtbl->OnStop(p) -#endif - -#endif - -#define IOleCacheControl_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleCacheControl methods ***/ \ - STDMETHOD_(HRESULT,OnRun)(THIS_ LPDATAOBJECT pDataObject) PURE; \ - STDMETHOD_(HRESULT,OnStop)(THIS) PURE; - -HRESULT CALLBACK IOleCacheControl_OnRun_Proxy( - IOleCacheControl* This, - LPDATAOBJECT pDataObject); -void __RPC_STUB IOleCacheControl_OnRun_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleCacheControl_OnStop_Proxy( - IOleCacheControl* This); -void __RPC_STUB IOleCacheControl_OnStop_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleCacheControl_INTERFACE_DEFINED__ */ - -#ifndef __IEnumOLEVERB_FWD_DEFINED__ -#define __IEnumOLEVERB_FWD_DEFINED__ -typedef struct IEnumOLEVERB IEnumOLEVERB; -#endif - -typedef IEnumOLEVERB *LPENUMOLEVERB; - -typedef struct tagOLEVERB { - LONG lVerb; - LPOLESTR lpszVerbName; - DWORD fuFlags; - DWORD grfAttribs; -} OLEVERB, *LPOLEVERB; - -typedef enum tagOLEVERBATTRIB { - OLEVERBATTRIB_NEVERDIRTIES = 1, - OLEVERBATTRIB_ONCONTAINERMENU = 2 -} OLEVERBATTRIB; - -/***************************************************************************** - * IEnumOLEVERB interface - */ -#ifndef __IEnumOLEVERB_INTERFACE_DEFINED__ -#define __IEnumOLEVERB_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumOLEVERB, 0x00000104, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumOLEVERB : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - LPOLEVERB rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumOLEVERB** ppenum) = 0; - -}; -#else -typedef struct IEnumOLEVERBVtbl IEnumOLEVERBVtbl; -struct IEnumOLEVERB { - const IEnumOLEVERBVtbl* lpVtbl; -}; -struct IEnumOLEVERBVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumOLEVERB* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumOLEVERB* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumOLEVERB* This); - - /*** IEnumOLEVERB methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumOLEVERB* This, - ULONG celt, - LPOLEVERB rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumOLEVERB* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumOLEVERB* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumOLEVERB* This, - IEnumOLEVERB** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumOLEVERB_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumOLEVERB_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumOLEVERB_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumOLEVERB methods ***/ -#define IEnumOLEVERB_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumOLEVERB_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumOLEVERB_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumOLEVERB_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumOLEVERB_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumOLEVERB methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, LPOLEVERB rgelt, ULONG* pceltFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumOLEVERB** ppenum) PURE; - -HRESULT CALLBACK IEnumOLEVERB_RemoteNext_Proxy( - IEnumOLEVERB* This, - ULONG celt, - LPOLEVERB rgelt, - ULONG* pceltFetched); -void __RPC_STUB IEnumOLEVERB_RemoteNext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumOLEVERB_Next_Proxy( - IEnumOLEVERB* This, - ULONG celt, - LPOLEVERB rgelt, - ULONG* pceltFetched); -HRESULT __RPC_STUB IEnumOLEVERB_Next_Stub( - IEnumOLEVERB* This, - ULONG celt, - LPOLEVERB rgelt, - ULONG* pceltFetched); -HRESULT CALLBACK IEnumOLEVERB_Skip_Proxy( - IEnumOLEVERB* This, - ULONG celt); -void __RPC_STUB IEnumOLEVERB_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumOLEVERB_Reset_Proxy( - IEnumOLEVERB* This); -void __RPC_STUB IEnumOLEVERB_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumOLEVERB_Clone_Proxy( - IEnumOLEVERB* This, - IEnumOLEVERB** ppenum); -void __RPC_STUB IEnumOLEVERB_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumOLEVERB_INTERFACE_DEFINED__ */ - -#ifndef __IOleObject_FWD_DEFINED__ -#define __IOleObject_FWD_DEFINED__ -typedef struct IOleObject IOleObject; -#endif - -typedef IOleObject *LPOLEOBJECT; - -typedef enum tagOLEGETMONIKER { - OLEGETMONIKER_ONLYIFTHERE = 1, - OLEGETMONIKER_FORCEASSIGN = 2, - OLEGETMONIKER_UNASSIGN = 3, - OLEGETMONIKER_TEMPFORUSER = 4 -} OLEGETMONIKER; - -typedef enum tagOLEWHICHMK { - OLEWHICHMK_CONTAINER = 1, - OLEWHICHMK_OBJREL = 2, - OLEWHICHMK_OBJFULL = 3 -} OLEWHICHMK; - -typedef enum tagUSERCLASSTYPE { - USERCLASSTYPE_FULL = 1, - USERCLASSTYPE_SHORT = 2, - USERCLASSTYPE_APPNAME = 3 -} USERCLASSTYPE; - -typedef enum tagOLEMISC { - OLEMISC_RECOMPOSEONRESIZE = 0x1, - OLEMISC_ONLYICONIC = 0x2, - OLEMISC_INSERTNOTREPLACE = 0x4, - OLEMISC_STATIC = 0x8, - OLEMISC_CANTLINKINSIDE = 0x10, - OLEMISC_CANLINKBYOLE1 = 0x20, - OLEMISC_ISLINKOBJECT = 0x40, - OLEMISC_INSIDEOUT = 0x80, - OLEMISC_ACTIVATEWHENVISIBLE = 0x100, - OLEMISC_RENDERINGISDEVICEINDEPENDENT = 0x200, - OLEMISC_INVISIBLEATRUNTIME = 0x400, - OLEMISC_ALWAYSRUN = 0x800, - OLEMISC_ACTSLIKEBUTTON = 0x1000, - OLEMISC_ACTSLIKELABEL = 0x2000, - OLEMISC_NOUIACTIVATE = 0x4000, - OLEMISC_ALIGNABLE = 0x8000, - OLEMISC_SIMPLEFRAME = 0x10000, - OLEMISC_SETCLIENTSITEFIRST = 0x20000, - OLEMISC_IMEMODE = 0x40000, - OLEMISC_IGNOREACTIVATEWHENVISIBLE = 0x80000, - OLEMISC_WANTSTOMENUMERGE = 0x100000, - OLEMISC_SUPPORTSMULTILEVELUNDO = 0x200000 -} OLEMISC; - -typedef enum tagOLECLOSE { - OLECLOSE_SAVEIFDIRTY = 0, - OLECLOSE_NOSAVE = 1, - OLECLOSE_PROMPTSAVE = 2 -} OLECLOSE; - -/***************************************************************************** - * IOleObject interface - */ -#ifndef __IOleObject_INTERFACE_DEFINED__ -#define __IOleObject_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleObject, 0x00000112, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleObject : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetClientSite( - IOleClientSite* pClientSite) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetClientSite( - IOleClientSite** ppClientSite) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHostNames( - LPCOLESTR szContainerApp, - LPCOLESTR szContainerObj) = 0; - - virtual HRESULT STDMETHODCALLTYPE Close( - DWORD dwSaveOption) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMoniker( - DWORD dwWhichMoniker, - IMoniker* pmk) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMoniker( - DWORD dwAssign, - DWORD dwWhichMoniker, - IMoniker** ppmk) = 0; - - virtual HRESULT STDMETHODCALLTYPE InitFromData( - IDataObject* pDataObject, - BOOL fCreation, - DWORD dwReserved) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetClipboardData( - DWORD dwReserved, - IDataObject** ppDataObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE DoVerb( - LONG iVerb, - LPMSG lpmsg, - IOleClientSite* pActiveSite, - LONG lindex, - HWND hwndParent, - LPCRECT lprcPosRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumVerbs( - IEnumOLEVERB** ppEnumOleVerb) = 0; - - virtual HRESULT STDMETHODCALLTYPE Update( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsUpToDate( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetUserClassID( - CLSID* pClsid) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetUserType( - DWORD dwFormOfType, - LPOLESTR* pszUserType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetExtent( - DWORD dwDrawAspect, - SIZEL* psizel) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetExtent( - DWORD dwDrawAspect, - SIZEL* psizel) = 0; - - virtual HRESULT STDMETHODCALLTYPE Advise( - IAdviseSink* pAdvSink, - DWORD* pdwConnection) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unadvise( - DWORD dwConnection) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumAdvise( - IEnumSTATDATA** ppenumAdvise) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMiscStatus( - DWORD dwAspect, - DWORD* pdwStatus) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetColorScheme( - LOGPALETTE* pLogpal) = 0; - -}; -#else -typedef struct IOleObjectVtbl IOleObjectVtbl; -struct IOleObject { - const IOleObjectVtbl* lpVtbl; -}; -struct IOleObjectVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleObject* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleObject* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleObject* This); - - /*** IOleObject methods ***/ - HRESULT (STDMETHODCALLTYPE *SetClientSite)( - IOleObject* This, - IOleClientSite* pClientSite); - - HRESULT (STDMETHODCALLTYPE *GetClientSite)( - IOleObject* This, - IOleClientSite** ppClientSite); - - HRESULT (STDMETHODCALLTYPE *SetHostNames)( - IOleObject* This, - LPCOLESTR szContainerApp, - LPCOLESTR szContainerObj); - - HRESULT (STDMETHODCALLTYPE *Close)( - IOleObject* This, - DWORD dwSaveOption); - - HRESULT (STDMETHODCALLTYPE *SetMoniker)( - IOleObject* This, - DWORD dwWhichMoniker, - IMoniker* pmk); - - HRESULT (STDMETHODCALLTYPE *GetMoniker)( - IOleObject* This, - DWORD dwAssign, - DWORD dwWhichMoniker, - IMoniker** ppmk); - - HRESULT (STDMETHODCALLTYPE *InitFromData)( - IOleObject* This, - IDataObject* pDataObject, - BOOL fCreation, - DWORD dwReserved); - - HRESULT (STDMETHODCALLTYPE *GetClipboardData)( - IOleObject* This, - DWORD dwReserved, - IDataObject** ppDataObject); - - HRESULT (STDMETHODCALLTYPE *DoVerb)( - IOleObject* This, - LONG iVerb, - LPMSG lpmsg, - IOleClientSite* pActiveSite, - LONG lindex, - HWND hwndParent, - LPCRECT lprcPosRect); - - HRESULT (STDMETHODCALLTYPE *EnumVerbs)( - IOleObject* This, - IEnumOLEVERB** ppEnumOleVerb); - - HRESULT (STDMETHODCALLTYPE *Update)( - IOleObject* This); - - HRESULT (STDMETHODCALLTYPE *IsUpToDate)( - IOleObject* This); - - HRESULT (STDMETHODCALLTYPE *GetUserClassID)( - IOleObject* This, - CLSID* pClsid); - - HRESULT (STDMETHODCALLTYPE *GetUserType)( - IOleObject* This, - DWORD dwFormOfType, - LPOLESTR* pszUserType); - - HRESULT (STDMETHODCALLTYPE *SetExtent)( - IOleObject* This, - DWORD dwDrawAspect, - SIZEL* psizel); - - HRESULT (STDMETHODCALLTYPE *GetExtent)( - IOleObject* This, - DWORD dwDrawAspect, - SIZEL* psizel); - - HRESULT (STDMETHODCALLTYPE *Advise)( - IOleObject* This, - IAdviseSink* pAdvSink, - DWORD* pdwConnection); - - HRESULT (STDMETHODCALLTYPE *Unadvise)( - IOleObject* This, - DWORD dwConnection); - - HRESULT (STDMETHODCALLTYPE *EnumAdvise)( - IOleObject* This, - IEnumSTATDATA** ppenumAdvise); - - HRESULT (STDMETHODCALLTYPE *GetMiscStatus)( - IOleObject* This, - DWORD dwAspect, - DWORD* pdwStatus); - - HRESULT (STDMETHODCALLTYPE *SetColorScheme)( - IOleObject* This, - LOGPALETTE* pLogpal); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleObject_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleObject_Release(p) (p)->lpVtbl->Release(p) -/*** IOleObject methods ***/ -#define IOleObject_SetClientSite(p,a) (p)->lpVtbl->SetClientSite(p,a) -#define IOleObject_GetClientSite(p,a) (p)->lpVtbl->GetClientSite(p,a) -#define IOleObject_SetHostNames(p,a,b) (p)->lpVtbl->SetHostNames(p,a,b) -#define IOleObject_Close(p,a) (p)->lpVtbl->Close(p,a) -#define IOleObject_SetMoniker(p,a,b) (p)->lpVtbl->SetMoniker(p,a,b) -#define IOleObject_GetMoniker(p,a,b,c) (p)->lpVtbl->GetMoniker(p,a,b,c) -#define IOleObject_InitFromData(p,a,b,c) (p)->lpVtbl->InitFromData(p,a,b,c) -#define IOleObject_GetClipboardData(p,a,b) (p)->lpVtbl->GetClipboardData(p,a,b) -#define IOleObject_DoVerb(p,a,b,c,d,e,f) (p)->lpVtbl->DoVerb(p,a,b,c,d,e,f) -#define IOleObject_EnumVerbs(p,a) (p)->lpVtbl->EnumVerbs(p,a) -#define IOleObject_Update(p) (p)->lpVtbl->Update(p) -#define IOleObject_IsUpToDate(p) (p)->lpVtbl->IsUpToDate(p) -#define IOleObject_GetUserClassID(p,a) (p)->lpVtbl->GetUserClassID(p,a) -#define IOleObject_GetUserType(p,a,b) (p)->lpVtbl->GetUserType(p,a,b) -#define IOleObject_SetExtent(p,a,b) (p)->lpVtbl->SetExtent(p,a,b) -#define IOleObject_GetExtent(p,a,b) (p)->lpVtbl->GetExtent(p,a,b) -#define IOleObject_Advise(p,a,b) (p)->lpVtbl->Advise(p,a,b) -#define IOleObject_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a) -#define IOleObject_EnumAdvise(p,a) (p)->lpVtbl->EnumAdvise(p,a) -#define IOleObject_GetMiscStatus(p,a,b) (p)->lpVtbl->GetMiscStatus(p,a,b) -#define IOleObject_SetColorScheme(p,a) (p)->lpVtbl->SetColorScheme(p,a) -#endif - -#endif - -#define IOleObject_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleObject methods ***/ \ - STDMETHOD_(HRESULT,SetClientSite)(THIS_ IOleClientSite* pClientSite) PURE; \ - STDMETHOD_(HRESULT,GetClientSite)(THIS_ IOleClientSite** ppClientSite) PURE; \ - STDMETHOD_(HRESULT,SetHostNames)(THIS_ LPCOLESTR szContainerApp, LPCOLESTR szContainerObj) PURE; \ - STDMETHOD_(HRESULT,Close)(THIS_ DWORD dwSaveOption) PURE; \ - STDMETHOD_(HRESULT,SetMoniker)(THIS_ DWORD dwWhichMoniker, IMoniker* pmk) PURE; \ - STDMETHOD_(HRESULT,GetMoniker)(THIS_ DWORD dwAssign, DWORD dwWhichMoniker, IMoniker** ppmk) PURE; \ - STDMETHOD_(HRESULT,InitFromData)(THIS_ IDataObject* pDataObject, BOOL fCreation, DWORD dwReserved) PURE; \ - STDMETHOD_(HRESULT,GetClipboardData)(THIS_ DWORD dwReserved, IDataObject** ppDataObject) PURE; \ - STDMETHOD_(HRESULT,DoVerb)(THIS_ LONG iVerb, LPMSG lpmsg, IOleClientSite* pActiveSite, LONG lindex, HWND hwndParent, LPCRECT lprcPosRect) PURE; \ - STDMETHOD_(HRESULT,EnumVerbs)(THIS_ IEnumOLEVERB** ppEnumOleVerb) PURE; \ - STDMETHOD_(HRESULT,Update)(THIS) PURE; \ - STDMETHOD_(HRESULT,IsUpToDate)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetUserClassID)(THIS_ CLSID* pClsid) PURE; \ - STDMETHOD_(HRESULT,GetUserType)(THIS_ DWORD dwFormOfType, LPOLESTR* pszUserType) PURE; \ - STDMETHOD_(HRESULT,SetExtent)(THIS_ DWORD dwDrawAspect, SIZEL* psizel) PURE; \ - STDMETHOD_(HRESULT,GetExtent)(THIS_ DWORD dwDrawAspect, SIZEL* psizel) PURE; \ - STDMETHOD_(HRESULT,Advise)(THIS_ IAdviseSink* pAdvSink, DWORD* pdwConnection) PURE; \ - STDMETHOD_(HRESULT,Unadvise)(THIS_ DWORD dwConnection) PURE; \ - STDMETHOD_(HRESULT,EnumAdvise)(THIS_ IEnumSTATDATA** ppenumAdvise) PURE; \ - STDMETHOD_(HRESULT,GetMiscStatus)(THIS_ DWORD dwAspect, DWORD* pdwStatus) PURE; \ - STDMETHOD_(HRESULT,SetColorScheme)(THIS_ LOGPALETTE* pLogpal) PURE; - -HRESULT CALLBACK IOleObject_SetClientSite_Proxy( - IOleObject* This, - IOleClientSite* pClientSite); -void __RPC_STUB IOleObject_SetClientSite_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_GetClientSite_Proxy( - IOleObject* This, - IOleClientSite** ppClientSite); -void __RPC_STUB IOleObject_GetClientSite_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_SetHostNames_Proxy( - IOleObject* This, - LPCOLESTR szContainerApp, - LPCOLESTR szContainerObj); -void __RPC_STUB IOleObject_SetHostNames_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_Close_Proxy( - IOleObject* This, - DWORD dwSaveOption); -void __RPC_STUB IOleObject_Close_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_SetMoniker_Proxy( - IOleObject* This, - DWORD dwWhichMoniker, - IMoniker* pmk); -void __RPC_STUB IOleObject_SetMoniker_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_GetMoniker_Proxy( - IOleObject* This, - DWORD dwAssign, - DWORD dwWhichMoniker, - IMoniker** ppmk); -void __RPC_STUB IOleObject_GetMoniker_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_InitFromData_Proxy( - IOleObject* This, - IDataObject* pDataObject, - BOOL fCreation, - DWORD dwReserved); -void __RPC_STUB IOleObject_InitFromData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_GetClipboardData_Proxy( - IOleObject* This, - DWORD dwReserved, - IDataObject** ppDataObject); -void __RPC_STUB IOleObject_GetClipboardData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_DoVerb_Proxy( - IOleObject* This, - LONG iVerb, - LPMSG lpmsg, - IOleClientSite* pActiveSite, - LONG lindex, - HWND hwndParent, - LPCRECT lprcPosRect); -void __RPC_STUB IOleObject_DoVerb_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_EnumVerbs_Proxy( - IOleObject* This, - IEnumOLEVERB** ppEnumOleVerb); -void __RPC_STUB IOleObject_EnumVerbs_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_Update_Proxy( - IOleObject* This); -void __RPC_STUB IOleObject_Update_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_IsUpToDate_Proxy( - IOleObject* This); -void __RPC_STUB IOleObject_IsUpToDate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_GetUserClassID_Proxy( - IOleObject* This, - CLSID* pClsid); -void __RPC_STUB IOleObject_GetUserClassID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_GetUserType_Proxy( - IOleObject* This, - DWORD dwFormOfType, - LPOLESTR* pszUserType); -void __RPC_STUB IOleObject_GetUserType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_SetExtent_Proxy( - IOleObject* This, - DWORD dwDrawAspect, - SIZEL* psizel); -void __RPC_STUB IOleObject_SetExtent_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_GetExtent_Proxy( - IOleObject* This, - DWORD dwDrawAspect, - SIZEL* psizel); -void __RPC_STUB IOleObject_GetExtent_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_Advise_Proxy( - IOleObject* This, - IAdviseSink* pAdvSink, - DWORD* pdwConnection); -void __RPC_STUB IOleObject_Advise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_Unadvise_Proxy( - IOleObject* This, - DWORD dwConnection); -void __RPC_STUB IOleObject_Unadvise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_EnumAdvise_Proxy( - IOleObject* This, - IEnumSTATDATA** ppenumAdvise); -void __RPC_STUB IOleObject_EnumAdvise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_GetMiscStatus_Proxy( - IOleObject* This, - DWORD dwAspect, - DWORD* pdwStatus); -void __RPC_STUB IOleObject_GetMiscStatus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleObject_SetColorScheme_Proxy( - IOleObject* This, - LOGPALETTE* pLogpal); -void __RPC_STUB IOleObject_SetColorScheme_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleObject_INTERFACE_DEFINED__ */ - -#ifndef __IOleAdviseHolder_FWD_DEFINED__ -#define __IOleAdviseHolder_FWD_DEFINED__ -typedef struct IOleAdviseHolder IOleAdviseHolder; -#endif - -typedef IOleAdviseHolder *LPOLEADVISEHOLDER; - -/***************************************************************************** - * IOleAdviseHolder interface - */ -#ifndef __IOleAdviseHolder_INTERFACE_DEFINED__ -#define __IOleAdviseHolder_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOleAdviseHolder, 0x00000111, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOleAdviseHolder : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Advise( - IAdviseSink* pAdvise, - DWORD* pdwConnection) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unadvise( - DWORD dwConnection) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumAdvise( - IEnumSTATDATA** ppenumAdvise) = 0; - - virtual HRESULT STDMETHODCALLTYPE SendOnRename( - IMoniker* pmk) = 0; - - virtual HRESULT STDMETHODCALLTYPE SendOnSave( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SendOnClose( - ) = 0; - -}; -#else -typedef struct IOleAdviseHolderVtbl IOleAdviseHolderVtbl; -struct IOleAdviseHolder { - const IOleAdviseHolderVtbl* lpVtbl; -}; -struct IOleAdviseHolderVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOleAdviseHolder* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOleAdviseHolder* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOleAdviseHolder* This); - - /*** IOleAdviseHolder methods ***/ - HRESULT (STDMETHODCALLTYPE *Advise)( - IOleAdviseHolder* This, - IAdviseSink* pAdvise, - DWORD* pdwConnection); - - HRESULT (STDMETHODCALLTYPE *Unadvise)( - IOleAdviseHolder* This, - DWORD dwConnection); - - HRESULT (STDMETHODCALLTYPE *EnumAdvise)( - IOleAdviseHolder* This, - IEnumSTATDATA** ppenumAdvise); - - HRESULT (STDMETHODCALLTYPE *SendOnRename)( - IOleAdviseHolder* This, - IMoniker* pmk); - - HRESULT (STDMETHODCALLTYPE *SendOnSave)( - IOleAdviseHolder* This); - - HRESULT (STDMETHODCALLTYPE *SendOnClose)( - IOleAdviseHolder* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOleAdviseHolder_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOleAdviseHolder_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOleAdviseHolder_Release(p) (p)->lpVtbl->Release(p) -/*** IOleAdviseHolder methods ***/ -#define IOleAdviseHolder_Advise(p,a,b) (p)->lpVtbl->Advise(p,a,b) -#define IOleAdviseHolder_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a) -#define IOleAdviseHolder_EnumAdvise(p,a) (p)->lpVtbl->EnumAdvise(p,a) -#define IOleAdviseHolder_SendOnRename(p,a) (p)->lpVtbl->SendOnRename(p,a) -#define IOleAdviseHolder_SendOnSave(p) (p)->lpVtbl->SendOnSave(p) -#define IOleAdviseHolder_SendOnClose(p) (p)->lpVtbl->SendOnClose(p) -#endif - -#endif - -#define IOleAdviseHolder_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleAdviseHolder methods ***/ \ - STDMETHOD_(HRESULT,Advise)(THIS_ IAdviseSink* pAdvise, DWORD* pdwConnection) PURE; \ - STDMETHOD_(HRESULT,Unadvise)(THIS_ DWORD dwConnection) PURE; \ - STDMETHOD_(HRESULT,EnumAdvise)(THIS_ IEnumSTATDATA** ppenumAdvise) PURE; \ - STDMETHOD_(HRESULT,SendOnRename)(THIS_ IMoniker* pmk) PURE; \ - STDMETHOD_(HRESULT,SendOnSave)(THIS) PURE; \ - STDMETHOD_(HRESULT,SendOnClose)(THIS) PURE; - -HRESULT CALLBACK IOleAdviseHolder_Advise_Proxy( - IOleAdviseHolder* This, - IAdviseSink* pAdvise, - DWORD* pdwConnection); -void __RPC_STUB IOleAdviseHolder_Advise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleAdviseHolder_Unadvise_Proxy( - IOleAdviseHolder* This, - DWORD dwConnection); -void __RPC_STUB IOleAdviseHolder_Unadvise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleAdviseHolder_EnumAdvise_Proxy( - IOleAdviseHolder* This, - IEnumSTATDATA** ppenumAdvise); -void __RPC_STUB IOleAdviseHolder_EnumAdvise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleAdviseHolder_SendOnRename_Proxy( - IOleAdviseHolder* This, - IMoniker* pmk); -void __RPC_STUB IOleAdviseHolder_SendOnRename_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleAdviseHolder_SendOnSave_Proxy( - IOleAdviseHolder* This); -void __RPC_STUB IOleAdviseHolder_SendOnSave_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOleAdviseHolder_SendOnClose_Proxy( - IOleAdviseHolder* This); -void __RPC_STUB IOleAdviseHolder_SendOnClose_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOleAdviseHolder_INTERFACE_DEFINED__ */ - -#ifndef __IContinue_FWD_DEFINED__ -#define __IContinue_FWD_DEFINED__ -typedef struct IContinue IContinue; -#endif - -/***************************************************************************** - * IContinue interface - */ -#ifndef __IContinue_INTERFACE_DEFINED__ -#define __IContinue_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IContinue, 0x0000012a, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IContinue : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE FContinue( - ) = 0; - -}; -#else -typedef struct IContinueVtbl IContinueVtbl; -struct IContinue { - const IContinueVtbl* lpVtbl; -}; -struct IContinueVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IContinue* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IContinue* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IContinue* This); - - /*** IContinue methods ***/ - HRESULT (STDMETHODCALLTYPE *FContinue)( - IContinue* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IContinue_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IContinue_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IContinue_Release(p) (p)->lpVtbl->Release(p) -/*** IContinue methods ***/ -#define IContinue_FContinue(p) (p)->lpVtbl->FContinue(p) -#endif - -#endif - -#define IContinue_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IContinue methods ***/ \ - STDMETHOD_(HRESULT,FContinue)(THIS) PURE; - -HRESULT CALLBACK IContinue_FContinue_Proxy( - IContinue* This); -void __RPC_STUB IContinue_FContinue_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IContinue_INTERFACE_DEFINED__ */ - -#ifndef __IViewObject_FWD_DEFINED__ -#define __IViewObject_FWD_DEFINED__ -typedef struct IViewObject IViewObject; -#endif - -typedef IViewObject *LPVIEWOBJECT; - -/***************************************************************************** - * IViewObject interface - */ -#ifndef __IViewObject_INTERFACE_DEFINED__ -#define __IViewObject_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IViewObject, 0x0000010d, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IViewObject : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Draw( - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DVTARGETDEVICE* ptd, - HDC hdcTargetDev, - HDC hdcDraw, - LPCRECTL lprcBounds, - LPCRECTL lprcWBounds, - BOOL (STDMETHODCALLTYPE *pfnContinue)(ULONG_PTR dwContinue), - ULONG_PTR dwContinue) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetColorSet( - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DVTARGETDEVICE* ptd, - HDC hicTargetDev, - LOGPALETTE** ppColorSet) = 0; - - virtual HRESULT STDMETHODCALLTYPE Freeze( - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DWORD* pdwFreeze) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unfreeze( - DWORD dwFreeze) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetAdvise( - DWORD aspects, - DWORD advf, - IAdviseSink* pAdvSink) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAdvise( - DWORD* pAspects, - DWORD* pAdvf, - IAdviseSink** ppAdvSink) = 0; - -}; -#else -typedef struct IViewObjectVtbl IViewObjectVtbl; -struct IViewObject { - const IViewObjectVtbl* lpVtbl; -}; -struct IViewObjectVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IViewObject* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IViewObject* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IViewObject* This); - - /*** IViewObject methods ***/ - HRESULT (STDMETHODCALLTYPE *Draw)( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DVTARGETDEVICE* ptd, - HDC hdcTargetDev, - HDC hdcDraw, - LPCRECTL lprcBounds, - LPCRECTL lprcWBounds, - BOOL (STDMETHODCALLTYPE *pfnContinue)(ULONG_PTR dwContinue), - ULONG_PTR dwContinue); - - HRESULT (STDMETHODCALLTYPE *GetColorSet)( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DVTARGETDEVICE* ptd, - HDC hicTargetDev, - LOGPALETTE** ppColorSet); - - HRESULT (STDMETHODCALLTYPE *Freeze)( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DWORD* pdwFreeze); - - HRESULT (STDMETHODCALLTYPE *Unfreeze)( - IViewObject* This, - DWORD dwFreeze); - - HRESULT (STDMETHODCALLTYPE *SetAdvise)( - IViewObject* This, - DWORD aspects, - DWORD advf, - IAdviseSink* pAdvSink); - - HRESULT (STDMETHODCALLTYPE *GetAdvise)( - IViewObject* This, - DWORD* pAspects, - DWORD* pAdvf, - IAdviseSink** ppAdvSink); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IViewObject_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IViewObject_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IViewObject_Release(p) (p)->lpVtbl->Release(p) -/*** IViewObject methods ***/ -#define IViewObject_Draw(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->Draw(p,a,b,c,d,e,f,g,h,i,j) -#define IViewObject_GetColorSet(p,a,b,c,d,e,f) (p)->lpVtbl->GetColorSet(p,a,b,c,d,e,f) -#define IViewObject_Freeze(p,a,b,c,d) (p)->lpVtbl->Freeze(p,a,b,c,d) -#define IViewObject_Unfreeze(p,a) (p)->lpVtbl->Unfreeze(p,a) -#define IViewObject_SetAdvise(p,a,b,c) (p)->lpVtbl->SetAdvise(p,a,b,c) -#define IViewObject_GetAdvise(p,a,b,c) (p)->lpVtbl->GetAdvise(p,a,b,c) -#endif - -#endif - -#define IViewObject_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IViewObject methods ***/ \ - STDMETHOD_(HRESULT,Draw)(THIS_ DWORD dwDrawAspect, LONG lindex, void* pvAspect, DVTARGETDEVICE* ptd, HDC hdcTargetDev, HDC hdcDraw, LPCRECTL lprcBounds, LPCRECTL lprcWBounds, BOOL (STDMETHODCALLTYPE *pfnContinue)(ULONG_PTR dwContinue), ULONG_PTR dwContinue) PURE; \ - STDMETHOD_(HRESULT,GetColorSet)(THIS_ DWORD dwDrawAspect, LONG lindex, void* pvAspect, DVTARGETDEVICE* ptd, HDC hicTargetDev, LOGPALETTE** ppColorSet) PURE; \ - STDMETHOD_(HRESULT,Freeze)(THIS_ DWORD dwDrawAspect, LONG lindex, void* pvAspect, DWORD* pdwFreeze) PURE; \ - STDMETHOD_(HRESULT,Unfreeze)(THIS_ DWORD dwFreeze) PURE; \ - STDMETHOD_(HRESULT,SetAdvise)(THIS_ DWORD aspects, DWORD advf, IAdviseSink* pAdvSink) PURE; \ - STDMETHOD_(HRESULT,GetAdvise)(THIS_ DWORD* pAspects, DWORD* pAdvf, IAdviseSink** ppAdvSink) PURE; - -HRESULT CALLBACK IViewObject_RemoteDraw_Proxy( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DVTARGETDEVICE* ptd, - ULONG_PTR hdcTargetDev, - ULONG_PTR hdcDraw, - LPCRECTL lprcBounds, - LPCRECTL lprcWBounds, - IContinue* pContinue); -void __RPC_STUB IViewObject_RemoteDraw_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IViewObject_Draw_Proxy( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DVTARGETDEVICE* ptd, - HDC hdcTargetDev, - HDC hdcDraw, - LPCRECTL lprcBounds, - LPCRECTL lprcWBounds, - BOOL (STDMETHODCALLTYPE *pfnContinue)(ULONG_PTR dwContinue), - ULONG_PTR dwContinue); -HRESULT __RPC_STUB IViewObject_Draw_Stub( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DVTARGETDEVICE* ptd, - ULONG_PTR hdcTargetDev, - ULONG_PTR hdcDraw, - LPCRECTL lprcBounds, - LPCRECTL lprcWBounds, - IContinue* pContinue); -HRESULT CALLBACK IViewObject_RemoteGetColorSet_Proxy( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DVTARGETDEVICE* ptd, - ULONG_PTR hicTargetDev, - LOGPALETTE** ppColorSet); -void __RPC_STUB IViewObject_RemoteGetColorSet_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IViewObject_GetColorSet_Proxy( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DVTARGETDEVICE* ptd, - HDC hicTargetDev, - LOGPALETTE** ppColorSet); -HRESULT __RPC_STUB IViewObject_GetColorSet_Stub( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DVTARGETDEVICE* ptd, - ULONG_PTR hicTargetDev, - LOGPALETTE** ppColorSet); -HRESULT CALLBACK IViewObject_RemoteFreeze_Proxy( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DWORD* pdwFreeze); -void __RPC_STUB IViewObject_RemoteFreeze_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IViewObject_Freeze_Proxy( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DWORD* pdwFreeze); -HRESULT __RPC_STUB IViewObject_Freeze_Stub( - IViewObject* This, - DWORD dwDrawAspect, - LONG lindex, - ULONG_PTR pvAspect, - DWORD* pdwFreeze); -HRESULT CALLBACK IViewObject_Unfreeze_Proxy( - IViewObject* This, - DWORD dwFreeze); -void __RPC_STUB IViewObject_Unfreeze_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IViewObject_SetAdvise_Proxy( - IViewObject* This, - DWORD aspects, - DWORD advf, - IAdviseSink* pAdvSink); -void __RPC_STUB IViewObject_SetAdvise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IViewObject_RemoteGetAdvise_Proxy( - IViewObject* This, - DWORD* pAspects, - DWORD* pAdvf, - IAdviseSink** ppAdvSink); -void __RPC_STUB IViewObject_RemoteGetAdvise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IViewObject_GetAdvise_Proxy( - IViewObject* This, - DWORD* pAspects, - DWORD* pAdvf, - IAdviseSink** ppAdvSink); -HRESULT __RPC_STUB IViewObject_GetAdvise_Stub( - IViewObject* This, - DWORD* pAspects, - DWORD* pAdvf, - IAdviseSink** ppAdvSink); - -#endif /* __IViewObject_INTERFACE_DEFINED__ */ - -#ifndef __IViewObject2_FWD_DEFINED__ -#define __IViewObject2_FWD_DEFINED__ -typedef struct IViewObject2 IViewObject2; -#endif - -typedef IViewObject2 *LPVIEWOBJECT2; - -/***************************************************************************** - * IViewObject2 interface - */ -#ifndef __IViewObject2_INTERFACE_DEFINED__ -#define __IViewObject2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IViewObject2, 0x00000127, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IViewObject2 : public IViewObject -{ - virtual HRESULT STDMETHODCALLTYPE GetExtent( - DWORD dwDrawAspect, - LONG lindex, - DVTARGETDEVICE* ptd, - LPSIZEL lpsizel) = 0; - -}; -#else -typedef struct IViewObject2Vtbl IViewObject2Vtbl; -struct IViewObject2 { - const IViewObject2Vtbl* lpVtbl; -}; -struct IViewObject2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IViewObject2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IViewObject2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IViewObject2* This); - - /*** IViewObject methods ***/ - HRESULT (STDMETHODCALLTYPE *Draw)( - IViewObject2* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DVTARGETDEVICE* ptd, - HDC hdcTargetDev, - HDC hdcDraw, - LPCRECTL lprcBounds, - LPCRECTL lprcWBounds, - BOOL (STDMETHODCALLTYPE *pfnContinue)(ULONG_PTR dwContinue), - ULONG_PTR dwContinue); - - HRESULT (STDMETHODCALLTYPE *GetColorSet)( - IViewObject2* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DVTARGETDEVICE* ptd, - HDC hicTargetDev, - LOGPALETTE** ppColorSet); - - HRESULT (STDMETHODCALLTYPE *Freeze)( - IViewObject2* This, - DWORD dwDrawAspect, - LONG lindex, - void* pvAspect, - DWORD* pdwFreeze); - - HRESULT (STDMETHODCALLTYPE *Unfreeze)( - IViewObject2* This, - DWORD dwFreeze); - - HRESULT (STDMETHODCALLTYPE *SetAdvise)( - IViewObject2* This, - DWORD aspects, - DWORD advf, - IAdviseSink* pAdvSink); - - HRESULT (STDMETHODCALLTYPE *GetAdvise)( - IViewObject2* This, - DWORD* pAspects, - DWORD* pAdvf, - IAdviseSink** ppAdvSink); - - /*** IViewObject2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetExtent)( - IViewObject2* This, - DWORD dwDrawAspect, - LONG lindex, - DVTARGETDEVICE* ptd, - LPSIZEL lpsizel); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IViewObject2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IViewObject2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IViewObject2_Release(p) (p)->lpVtbl->Release(p) -/*** IViewObject methods ***/ -#define IViewObject2_Draw(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->Draw(p,a,b,c,d,e,f,g,h,i,j) -#define IViewObject2_GetColorSet(p,a,b,c,d,e,f) (p)->lpVtbl->GetColorSet(p,a,b,c,d,e,f) -#define IViewObject2_Freeze(p,a,b,c,d) (p)->lpVtbl->Freeze(p,a,b,c,d) -#define IViewObject2_Unfreeze(p,a) (p)->lpVtbl->Unfreeze(p,a) -#define IViewObject2_SetAdvise(p,a,b,c) (p)->lpVtbl->SetAdvise(p,a,b,c) -#define IViewObject2_GetAdvise(p,a,b,c) (p)->lpVtbl->GetAdvise(p,a,b,c) -/*** IViewObject2 methods ***/ -#define IViewObject2_GetExtent(p,a,b,c,d) (p)->lpVtbl->GetExtent(p,a,b,c,d) -#endif - -#endif - -#define IViewObject2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IViewObject methods ***/ \ - STDMETHOD_(HRESULT,Draw)(THIS_ DWORD dwDrawAspect, LONG lindex, void* pvAspect, DVTARGETDEVICE* ptd, HDC hdcTargetDev, HDC hdcDraw, LPCRECTL lprcBounds, LPCRECTL lprcWBounds, BOOL (STDMETHODCALLTYPE *pfnContinue)(ULONG_PTR dwContinue), ULONG_PTR dwContinue) PURE; \ - STDMETHOD_(HRESULT,GetColorSet)(THIS_ DWORD dwDrawAspect, LONG lindex, void* pvAspect, DVTARGETDEVICE* ptd, HDC hicTargetDev, LOGPALETTE** ppColorSet) PURE; \ - STDMETHOD_(HRESULT,Freeze)(THIS_ DWORD dwDrawAspect, LONG lindex, void* pvAspect, DWORD* pdwFreeze) PURE; \ - STDMETHOD_(HRESULT,Unfreeze)(THIS_ DWORD dwFreeze) PURE; \ - STDMETHOD_(HRESULT,SetAdvise)(THIS_ DWORD aspects, DWORD advf, IAdviseSink* pAdvSink) PURE; \ - STDMETHOD_(HRESULT,GetAdvise)(THIS_ DWORD* pAspects, DWORD* pAdvf, IAdviseSink** ppAdvSink) PURE; \ - /*** IViewObject2 methods ***/ \ - STDMETHOD_(HRESULT,GetExtent)(THIS_ DWORD dwDrawAspect, LONG lindex, DVTARGETDEVICE* ptd, LPSIZEL lpsizel) PURE; - -HRESULT CALLBACK IViewObject2_GetExtent_Proxy( - IViewObject2* This, - DWORD dwDrawAspect, - LONG lindex, - DVTARGETDEVICE* ptd, - LPSIZEL lpsizel); -void __RPC_STUB IViewObject2_GetExtent_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IViewObject2_INTERFACE_DEFINED__ */ - -#ifndef __IDropSource_FWD_DEFINED__ -#define __IDropSource_FWD_DEFINED__ -typedef struct IDropSource IDropSource; -#endif - -typedef IDropSource *LPDROPSOURCE; - -/***************************************************************************** - * IDropSource interface - */ -#ifndef __IDropSource_INTERFACE_DEFINED__ -#define __IDropSource_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDropSource, 0x00000121, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDropSource : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryContinueDrag( - BOOL fEscapePressed, - DWORD grfKeyState) = 0; - - virtual HRESULT STDMETHODCALLTYPE GiveFeedback( - DWORD dwEffect) = 0; - -}; -#else -typedef struct IDropSourceVtbl IDropSourceVtbl; -struct IDropSource { - const IDropSourceVtbl* lpVtbl; -}; -struct IDropSourceVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDropSource* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDropSource* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDropSource* This); - - /*** IDropSource methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryContinueDrag)( - IDropSource* This, - BOOL fEscapePressed, - DWORD grfKeyState); - - HRESULT (STDMETHODCALLTYPE *GiveFeedback)( - IDropSource* This, - DWORD dwEffect); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDropSource_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDropSource_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDropSource_Release(p) (p)->lpVtbl->Release(p) -/*** IDropSource methods ***/ -#define IDropSource_QueryContinueDrag(p,a,b) (p)->lpVtbl->QueryContinueDrag(p,a,b) -#define IDropSource_GiveFeedback(p,a) (p)->lpVtbl->GiveFeedback(p,a) -#endif - -#endif - -#define IDropSource_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDropSource methods ***/ \ - STDMETHOD_(HRESULT,QueryContinueDrag)(THIS_ BOOL fEscapePressed, DWORD grfKeyState) PURE; \ - STDMETHOD_(HRESULT,GiveFeedback)(THIS_ DWORD dwEffect) PURE; - -HRESULT CALLBACK IDropSource_QueryContinueDrag_Proxy( - IDropSource* This, - BOOL fEscapePressed, - DWORD grfKeyState); -void __RPC_STUB IDropSource_QueryContinueDrag_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDropSource_GiveFeedback_Proxy( - IDropSource* This, - DWORD dwEffect); -void __RPC_STUB IDropSource_GiveFeedback_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDropSource_INTERFACE_DEFINED__ */ - -#ifndef __IDropTarget_FWD_DEFINED__ -#define __IDropTarget_FWD_DEFINED__ -typedef struct IDropTarget IDropTarget; -#endif - -typedef IDropTarget *LPDROPTARGET; - -#define MK_ALT (0x20) - -#define DROPEFFECT_NONE (0) - -#define DROPEFFECT_COPY (1) - -#define DROPEFFECT_MOVE (2) - -#define DROPEFFECT_LINK (4) - -#define DROPEFFECT_SCROLL (0x80000000) - -#define DD_DEFSCROLLINSET (11) - -#define DD_DEFSCROLLDELAY (50) - -#define DD_DEFSCROLLINTERVAL (50) - -#define DD_DEFDRAGDELAY (200) - -#define DD_DEFDRAGMINDIST (2) - -/***************************************************************************** - * IDropTarget interface - */ -#ifndef __IDropTarget_INTERFACE_DEFINED__ -#define __IDropTarget_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDropTarget, 0x00000122, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDropTarget : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE DragEnter( - IDataObject* pDataObj, - DWORD grfKeyState, - POINTL pt, - DWORD* pdwEffect) = 0; - - virtual HRESULT STDMETHODCALLTYPE DragOver( - DWORD grfKeyState, - POINTL pt, - DWORD* pdwEffect) = 0; - - virtual HRESULT STDMETHODCALLTYPE DragLeave( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Drop( - IDataObject* pDataObj, - DWORD grfKeyState, - POINTL pt, - DWORD* pdwEffect) = 0; - -}; -#else -typedef struct IDropTargetVtbl IDropTargetVtbl; -struct IDropTarget { - const IDropTargetVtbl* lpVtbl; -}; -struct IDropTargetVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDropTarget* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDropTarget* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDropTarget* This); - - /*** IDropTarget methods ***/ - HRESULT (STDMETHODCALLTYPE *DragEnter)( - IDropTarget* This, - IDataObject* pDataObj, - DWORD grfKeyState, - POINTL pt, - DWORD* pdwEffect); - - HRESULT (STDMETHODCALLTYPE *DragOver)( - IDropTarget* This, - DWORD grfKeyState, - POINTL pt, - DWORD* pdwEffect); - - HRESULT (STDMETHODCALLTYPE *DragLeave)( - IDropTarget* This); - - HRESULT (STDMETHODCALLTYPE *Drop)( - IDropTarget* This, - IDataObject* pDataObj, - DWORD grfKeyState, - POINTL pt, - DWORD* pdwEffect); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDropTarget_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDropTarget_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDropTarget_Release(p) (p)->lpVtbl->Release(p) -/*** IDropTarget methods ***/ -#define IDropTarget_DragEnter(p,a,b,c,d) (p)->lpVtbl->DragEnter(p,a,b,c,d) -#define IDropTarget_DragOver(p,a,b,c) (p)->lpVtbl->DragOver(p,a,b,c) -#define IDropTarget_DragLeave(p) (p)->lpVtbl->DragLeave(p) -#define IDropTarget_Drop(p,a,b,c,d) (p)->lpVtbl->Drop(p,a,b,c,d) -#endif - -#endif - -#define IDropTarget_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDropTarget methods ***/ \ - STDMETHOD_(HRESULT,DragEnter)(THIS_ IDataObject* pDataObj, DWORD grfKeyState, POINTL pt, DWORD* pdwEffect) PURE; \ - STDMETHOD_(HRESULT,DragOver)(THIS_ DWORD grfKeyState, POINTL pt, DWORD* pdwEffect) PURE; \ - STDMETHOD_(HRESULT,DragLeave)(THIS) PURE; \ - STDMETHOD_(HRESULT,Drop)(THIS_ IDataObject* pDataObj, DWORD grfKeyState, POINTL pt, DWORD* pdwEffect) PURE; - -HRESULT CALLBACK IDropTarget_DragEnter_Proxy( - IDropTarget* This, - IDataObject* pDataObj, - DWORD grfKeyState, - POINTL pt, - DWORD* pdwEffect); -void __RPC_STUB IDropTarget_DragEnter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDropTarget_DragOver_Proxy( - IDropTarget* This, - DWORD grfKeyState, - POINTL pt, - DWORD* pdwEffect); -void __RPC_STUB IDropTarget_DragOver_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDropTarget_DragLeave_Proxy( - IDropTarget* This); -void __RPC_STUB IDropTarget_DragLeave_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDropTarget_Drop_Proxy( - IDropTarget* This, - IDataObject* pDataObj, - DWORD grfKeyState, - POINTL pt, - DWORD* pdwEffect); -void __RPC_STUB IDropTarget_Drop_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDropTarget_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_OLEIDL_H */ diff --git a/include/propidl.h b/include/propidl.h deleted file mode 100644 index 3c77c2ad5a1..00000000000 --- a/include/propidl.h +++ /dev/null @@ -1,958 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from propidl.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_PROPIDL_H -#define __WIDL_PROPIDL_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#ifndef __IEnumSTATPROPSTG_FWD_DEFINED__ -#define __IEnumSTATPROPSTG_FWD_DEFINED__ -typedef struct IEnumSTATPROPSTG IEnumSTATPROPSTG; -#endif - -#ifndef __IEnumSTATPROPSETSTG_FWD_DEFINED__ -#define __IEnumSTATPROPSETSTG_FWD_DEFINED__ -typedef struct IEnumSTATPROPSETSTG IEnumSTATPROPSETSTG; -#endif - -#ifndef __IPropertyStorage_FWD_DEFINED__ -#define __IPropertyStorage_FWD_DEFINED__ -typedef struct IPropertyStorage IPropertyStorage; -#endif - -typedef IPropertyStorage *LPPROPERTYSTORAGE; - -#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 { - char cVal; - 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 (0xffffffff) - -#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 - */ -#ifndef __IPropertyStorage_INTERFACE_DEFINED__ -#define __IPropertyStorage_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPropertyStorage, 0x00000138, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPropertyStorage : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE ReadMultiple( - ULONG cpspec, - const PROPSPEC rgpspec[], - PROPVARIANT rgpropvar[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE WriteMultiple( - ULONG cpspec, - const PROPSPEC rgpspec[], - const PROPVARIANT rgpropvar[], - PROPID propidNameFirst) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteMultiple( - ULONG cpspec, - const PROPSPEC rgpspec[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReadPropertyNames( - ULONG cpropid, - const PROPID rgpropid[], - LPOLESTR rglpwstrName[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE WritePropertyNames( - ULONG cpropid, - const PROPID rgpropid[], - const LPOLESTR rglpwstrName[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeletePropertyNames( - ULONG cpropid, - const PROPID rgpropid[]) = 0; - - virtual HRESULT STDMETHODCALLTYPE Commit( - DWORD grfCommitFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Revert( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Enum( - IEnumSTATPROPSTG** ppenum) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTimes( - const FILETIME* pctime, - const FILETIME* patime, - const FILETIME* pmtime) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetClass( - REFCLSID clsid) = 0; - - virtual HRESULT STDMETHODCALLTYPE Stat( - STATPROPSETSTG* statpsstg) = 0; - -}; -#else -typedef struct IPropertyStorageVtbl IPropertyStorageVtbl; -struct IPropertyStorage { - const IPropertyStorageVtbl* lpVtbl; -}; -struct IPropertyStorageVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPropertyStorage* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPropertyStorage* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPropertyStorage* This); - - /*** IPropertyStorage methods ***/ - HRESULT (STDMETHODCALLTYPE *ReadMultiple)( - IPropertyStorage* This, - ULONG cpspec, - const PROPSPEC rgpspec[], - PROPVARIANT rgpropvar[]); - - HRESULT (STDMETHODCALLTYPE *WriteMultiple)( - IPropertyStorage* This, - ULONG cpspec, - const PROPSPEC rgpspec[], - const PROPVARIANT rgpropvar[], - PROPID propidNameFirst); - - HRESULT (STDMETHODCALLTYPE *DeleteMultiple)( - IPropertyStorage* This, - ULONG cpspec, - const PROPSPEC rgpspec[]); - - HRESULT (STDMETHODCALLTYPE *ReadPropertyNames)( - IPropertyStorage* This, - ULONG cpropid, - const PROPID rgpropid[], - LPOLESTR rglpwstrName[]); - - HRESULT (STDMETHODCALLTYPE *WritePropertyNames)( - IPropertyStorage* This, - ULONG cpropid, - const PROPID rgpropid[], - const LPOLESTR rglpwstrName[]); - - HRESULT (STDMETHODCALLTYPE *DeletePropertyNames)( - IPropertyStorage* This, - ULONG cpropid, - const PROPID rgpropid[]); - - HRESULT (STDMETHODCALLTYPE *Commit)( - IPropertyStorage* This, - DWORD grfCommitFlags); - - HRESULT (STDMETHODCALLTYPE *Revert)( - IPropertyStorage* This); - - HRESULT (STDMETHODCALLTYPE *Enum)( - IPropertyStorage* This, - IEnumSTATPROPSTG** ppenum); - - HRESULT (STDMETHODCALLTYPE *SetTimes)( - IPropertyStorage* This, - const FILETIME* pctime, - const FILETIME* patime, - const FILETIME* pmtime); - - HRESULT (STDMETHODCALLTYPE *SetClass)( - IPropertyStorage* This, - REFCLSID clsid); - - HRESULT (STDMETHODCALLTYPE *Stat)( - IPropertyStorage* This, - STATPROPSETSTG* statpsstg); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IPropertyStorage_METHODS \ - /*** 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; - -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); - -#endif /* __IPropertyStorage_INTERFACE_DEFINED__ */ - -#ifndef __IPropertySetStorage_FWD_DEFINED__ -#define __IPropertySetStorage_FWD_DEFINED__ -typedef struct IPropertySetStorage IPropertySetStorage; -#endif - -typedef IPropertySetStorage *LPPROPERTYSETSTORAGE; - -/***************************************************************************** - * IPropertySetStorage interface - */ -#ifndef __IPropertySetStorage_INTERFACE_DEFINED__ -#define __IPropertySetStorage_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPropertySetStorage, 0x0000013a, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPropertySetStorage : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Create( - REFFMTID rfmtid, - const CLSID* pclsid, - DWORD grfFlags, - DWORD grfMode, - IPropertyStorage** ppprstg) = 0; - - virtual HRESULT STDMETHODCALLTYPE Open( - REFFMTID rfmtid, - DWORD grfMode, - IPropertyStorage** ppprstg) = 0; - - virtual HRESULT STDMETHODCALLTYPE Delete( - REFFMTID rfmtid) = 0; - - virtual HRESULT STDMETHODCALLTYPE Enum( - IEnumSTATPROPSETSTG** ppenum) = 0; - -}; -#else -typedef struct IPropertySetStorageVtbl IPropertySetStorageVtbl; -struct IPropertySetStorage { - const IPropertySetStorageVtbl* lpVtbl; -}; -struct IPropertySetStorageVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPropertySetStorage* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPropertySetStorage* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPropertySetStorage* This); - - /*** IPropertySetStorage methods ***/ - HRESULT (STDMETHODCALLTYPE *Create)( - IPropertySetStorage* This, - REFFMTID rfmtid, - const CLSID* pclsid, - DWORD grfFlags, - DWORD grfMode, - IPropertyStorage** ppprstg); - - HRESULT (STDMETHODCALLTYPE *Open)( - IPropertySetStorage* This, - REFFMTID rfmtid, - DWORD grfMode, - IPropertyStorage** ppprstg); - - HRESULT (STDMETHODCALLTYPE *Delete)( - IPropertySetStorage* This, - REFFMTID rfmtid); - - HRESULT (STDMETHODCALLTYPE *Enum)( - IPropertySetStorage* This, - IEnumSTATPROPSETSTG** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IPropertySetStorage_METHODS \ - /*** 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; - -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); - -#endif /* __IPropertySetStorage_INTERFACE_DEFINED__ */ - -typedef IEnumSTATPROPSTG *LPENUMSTATPROPSTG; - -/***************************************************************************** - * IEnumSTATPROPSTG interface - */ -#ifndef __IEnumSTATPROPSTG_INTERFACE_DEFINED__ -#define __IEnumSTATPROPSTG_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumSTATPROPSTG, 0x00000139, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumSTATPROPSTG : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - STATPROPSTG* rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumSTATPROPSTG** ppenum) = 0; - -}; -#else -typedef struct IEnumSTATPROPSTGVtbl IEnumSTATPROPSTGVtbl; -struct IEnumSTATPROPSTG { - const IEnumSTATPROPSTGVtbl* lpVtbl; -}; -struct IEnumSTATPROPSTGVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumSTATPROPSTG* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumSTATPROPSTG* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumSTATPROPSTG* This); - - /*** IEnumSTATPROPSTG methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumSTATPROPSTG* This, - ULONG celt, - STATPROPSTG* rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumSTATPROPSTG* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumSTATPROPSTG* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumSTATPROPSTG* This, - IEnumSTATPROPSTG** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IEnumSTATPROPSTG_METHODS \ - /*** 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; - -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); - -#endif /* __IEnumSTATPROPSTG_INTERFACE_DEFINED__ */ - -typedef IEnumSTATPROPSETSTG *LPENUMSTATPROPSETSTG; - -/***************************************************************************** - * IEnumSTATPROPSETSTG interface - */ -#ifndef __IEnumSTATPROPSETSTG_INTERFACE_DEFINED__ -#define __IEnumSTATPROPSETSTG_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumSTATPROPSETSTG, 0x0000013b, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumSTATPROPSETSTG : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - STATPROPSETSTG* rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumSTATPROPSETSTG** ppenum) = 0; - -}; -#else -typedef struct IEnumSTATPROPSETSTGVtbl IEnumSTATPROPSETSTGVtbl; -struct IEnumSTATPROPSETSTG { - const IEnumSTATPROPSETSTGVtbl* lpVtbl; -}; -struct IEnumSTATPROPSETSTGVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumSTATPROPSETSTG* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumSTATPROPSETSTG* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumSTATPROPSETSTG* This); - - /*** IEnumSTATPROPSETSTG methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumSTATPROPSETSTG* This, - ULONG celt, - STATPROPSETSTG* rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumSTATPROPSETSTG* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumSTATPROPSETSTG* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumSTATPROPSETSTG* This, - IEnumSTATPROPSETSTG** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** 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 - -#endif - -#define IEnumSTATPROPSETSTG_METHODS \ - /*** 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; - -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); - -#endif /* __IEnumSTATPROPSETSTG_INTERFACE_DEFINED__ */ - -HRESULT WINAPI FreePropVariantArray(ULONG,PROPVARIANT*); -HRESULT WINAPI PropVariantClear(PROPVARIANT*); -HRESULT WINAPI PropVariantCopy(PROPVARIANT*,const PROPVARIANT*); -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_PROPIDL_H */ diff --git a/include/pstore.h b/include/pstore.h deleted file mode 100644 index 94793536047..00000000000 --- a/include/pstore.h +++ /dev/null @@ -1,941 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from pstore.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_PSTORE_H -#define __WIDL_PSTORE_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#define PST_KEY_CURRENT_USER 0 -#define PST_KEY_LOCAL_MACHINE 1 -#define PST_E_OK 0x00000000L -#define PST_E_TYPE_EXISTS 0x800C0004L -#define PST_AUTHENTICODE 1 -#define PST_BINARY_CHECK 2 -#define PST_SECURITY_DESCRIPTOR 4 -typedef DWORD PST_ACCESSMODE; - -typedef DWORD PST_ACCESSCLAUSETYPE; - -typedef DWORD PST_KEY; - -typedef DWORD PST_PROVIDERCAPABILITIES; - -typedef GUID PST_PROVIDERID, *PPST_PROVIDERID; - -typedef struct _PST_PROVIDERINFO { - DWORD cbSize; - PST_PROVIDERID ID; - PST_PROVIDERCAPABILITIES Capabilities; - LPWSTR szProviderName; -} PST_PROVIDERINFO, *PPST_PROVIDERINFO; - -typedef void *PPST_PROMPTIFO; - -typedef struct { - DWORD cbSize; - PST_ACCESSCLAUSETYPE ClauseType; - DWORD cbClauseData; - BYTE *pbClauseData; -} PST_ACCESSCLAUSE, *PPST_ACCESSCLAUSE; - -typedef struct { - DWORD cbSize; - PST_ACCESSMODE AccessModeFlags; - DWORD cClauses; - PST_ACCESSCLAUSE *rgClauses; -} PST_ACCESSRULE, *PPST_ACCESSRULE; - -typedef struct { - DWORD cbSize; - DWORD cClause; - PST_ACCESSRULE *rgRules; -} PST_ACCESSRULESET, *PPST_ACCESSRULESET; - -typedef struct { - DWORD cbSize; - LPWSTR szDisplayName; -} PST_TYPEINFO, *PPST_TYPEINFO; - -typedef struct { - DWORD cbSize; - DWORD dwPromptFlags; - DWORD_PTR hwndApp; - LPCWSTR szPrompt; -} PST_PROMPTINFO, *PPST_PROMPTINFO; - -#ifndef __IEnumPStoreItems_FWD_DEFINED__ -#define __IEnumPStoreItems_FWD_DEFINED__ -typedef struct IEnumPStoreItems IEnumPStoreItems; -#endif - -/***************************************************************************** - * IEnumPStoreItems interface - */ -#ifndef __IEnumPStoreItems_INTERFACE_DEFINED__ -#define __IEnumPStoreItems_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumPStoreItems : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumPStoreItems** ppenum) = 0; - - virtual HRESULT STDMETHODCALLTYPE Next( - DWORD celt, - LPWSTR* rgelt, - DWORD* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - DWORD celt) = 0; - -}; -#else -typedef struct IEnumPStoreItemsVtbl IEnumPStoreItemsVtbl; -struct IEnumPStoreItems { - const IEnumPStoreItemsVtbl* lpVtbl; -}; -struct IEnumPStoreItemsVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumPStoreItems* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumPStoreItems* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumPStoreItems* This); - - /*** IEnumPStoreItems methods ***/ - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumPStoreItems* This, - IEnumPStoreItems** ppenum); - - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumPStoreItems* This, - DWORD celt, - LPWSTR* rgelt, - DWORD* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumPStoreItems* This); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumPStoreItems* This, - DWORD celt); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumPStoreItems_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumPStoreItems_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumPStoreItems_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumPStoreItems methods ***/ -#define IEnumPStoreItems_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#define IEnumPStoreItems_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumPStoreItems_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumPStoreItems_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#endif - -#endif - -#define IEnumPStoreItems_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumPStoreItems methods ***/ \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumPStoreItems** ppenum) PURE; \ - STDMETHOD_(HRESULT,Next)(THIS_ DWORD celt, LPWSTR* rgelt, DWORD* pceltFetched) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ DWORD celt) PURE; - -HRESULT CALLBACK IEnumPStoreItems_Clone_Proxy( - IEnumPStoreItems* This, - IEnumPStoreItems** ppenum); -void __RPC_STUB IEnumPStoreItems_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumPStoreItems_Next_Proxy( - IEnumPStoreItems* This, - DWORD celt, - LPWSTR* rgelt, - DWORD* pceltFetched); -void __RPC_STUB IEnumPStoreItems_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumPStoreItems_Reset_Proxy( - IEnumPStoreItems* This); -void __RPC_STUB IEnumPStoreItems_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumPStoreItems_Skip_Proxy( - IEnumPStoreItems* This, - DWORD celt); -void __RPC_STUB IEnumPStoreItems_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumPStoreItems_INTERFACE_DEFINED__ */ - -#ifndef __IEnumPStoreTypes_FWD_DEFINED__ -#define __IEnumPStoreTypes_FWD_DEFINED__ -typedef struct IEnumPStoreTypes IEnumPStoreTypes; -#endif - -/***************************************************************************** - * IEnumPStoreTypes interface - */ -#ifndef __IEnumPStoreTypes_INTERFACE_DEFINED__ -#define __IEnumPStoreTypes_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumPStoreTypes : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumPStoreTypes** ppenum) = 0; - - virtual HRESULT STDMETHODCALLTYPE Next( - DWORD celt, - LPWSTR* rgelt, - DWORD* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - DWORD celt) = 0; - -}; -#else -typedef struct IEnumPStoreTypesVtbl IEnumPStoreTypesVtbl; -struct IEnumPStoreTypes { - const IEnumPStoreTypesVtbl* lpVtbl; -}; -struct IEnumPStoreTypesVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumPStoreTypes* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumPStoreTypes* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumPStoreTypes* This); - - /*** IEnumPStoreTypes methods ***/ - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumPStoreTypes* This, - IEnumPStoreTypes** ppenum); - - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumPStoreTypes* This, - DWORD celt, - LPWSTR* rgelt, - DWORD* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumPStoreTypes* This); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumPStoreTypes* This, - DWORD celt); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumPStoreTypes_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumPStoreTypes_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumPStoreTypes_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumPStoreTypes methods ***/ -#define IEnumPStoreTypes_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#define IEnumPStoreTypes_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumPStoreTypes_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumPStoreTypes_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#endif - -#endif - -#define IEnumPStoreTypes_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumPStoreTypes methods ***/ \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumPStoreTypes** ppenum) PURE; \ - STDMETHOD_(HRESULT,Next)(THIS_ DWORD celt, LPWSTR* rgelt, DWORD* pceltFetched) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ DWORD celt) PURE; - -HRESULT CALLBACK IEnumPStoreTypes_Clone_Proxy( - IEnumPStoreTypes* This, - IEnumPStoreTypes** ppenum); -void __RPC_STUB IEnumPStoreTypes_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumPStoreTypes_Next_Proxy( - IEnumPStoreTypes* This, - DWORD celt, - LPWSTR* rgelt, - DWORD* pceltFetched); -void __RPC_STUB IEnumPStoreTypes_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumPStoreTypes_Reset_Proxy( - IEnumPStoreTypes* This); -void __RPC_STUB IEnumPStoreTypes_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumPStoreTypes_Skip_Proxy( - IEnumPStoreTypes* This, - DWORD celt); -void __RPC_STUB IEnumPStoreTypes_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumPStoreTypes_INTERFACE_DEFINED__ */ - -#ifndef __IPStore_FWD_DEFINED__ -#define __IPStore_FWD_DEFINED__ -typedef struct IPStore IPStore; -#endif - -/***************************************************************************** - * IPStore interface - */ -#ifndef __IPStore_INTERFACE_DEFINED__ -#define __IPStore_INTERFACE_DEFINED__ - -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPStore : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetInfo( - PPST_PROVIDERINFO* ppProperties) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetProvParam( - DWORD dwParam, - DWORD* pcbData, - BYTE** ppbData, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetProvParam( - DWORD dwParam, - DWORD cbData, - BYTE* pbData, - DWORD* dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateType( - PST_KEY Key, - const GUID* pType, - PPST_TYPEINFO pInfo, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTypeInfo( - PST_KEY Key, - const GUID* pType, - PPST_TYPEINFO** ppInfo, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteType( - PST_KEY Key, - const GUID* pType, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateSubtype( - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO pInfo, - PPST_ACCESSRULESET pRules, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSubtypeInfo( - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO** ppInfo, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteSubtype( - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReadAccessRuleset( - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO pInfo, - PPST_ACCESSRULESET** ppRules, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE WriteAccessRuleset( - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO pInfo, - PPST_ACCESSRULESET pRules, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumTypes( - PST_KEY Key, - DWORD dwFlags, - IEnumPStoreTypes** ppenum) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumSubtypes( - PST_KEY Key, - const GUID* pType, - DWORD dwFlags, - IEnumPStoreTypes** ppenum) = 0; - - virtual HRESULT STDMETHODCALLTYPE DeleteItem( - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubType, - LPCWSTR szItemName, - PPST_PROMPTINFO pPromptInfo, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReadItem( - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR szItemName, - DWORD* cbData, - BYTE** pbData, - PPST_PROMPTIFO pPromptInfo, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE WriteItem( - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR szItemName, - DWORD cbData, - BYTE* ppbData, - PPST_PROMPTIFO pPromptInfo, - DWORD dwDefaultConfirmationStyle, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE OpenItem( - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR szItemName, - PST_ACCESSMODE ModeFlags, - PPST_PROMPTIFO pProomptInfo, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE CloseItem( - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR* szItemName, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumItems( - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - DWORD dwFlags, - IEnumPStoreItems** ppenum) = 0; - -}; -#else -typedef struct IPStoreVtbl IPStoreVtbl; -struct IPStore { - const IPStoreVtbl* lpVtbl; -}; -struct IPStoreVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPStore* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPStore* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPStore* This); - - /*** IPStore methods ***/ - HRESULT (STDMETHODCALLTYPE *GetInfo)( - IPStore* This, - PPST_PROVIDERINFO* ppProperties); - - HRESULT (STDMETHODCALLTYPE *GetProvParam)( - IPStore* This, - DWORD dwParam, - DWORD* pcbData, - BYTE** ppbData, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *SetProvParam)( - IPStore* This, - DWORD dwParam, - DWORD cbData, - BYTE* pbData, - DWORD* dwFlags); - - HRESULT (STDMETHODCALLTYPE *CreateType)( - IPStore* This, - PST_KEY Key, - const GUID* pType, - PPST_TYPEINFO pInfo, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - IPStore* This, - PST_KEY Key, - const GUID* pType, - PPST_TYPEINFO** ppInfo, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *DeleteType)( - IPStore* This, - PST_KEY Key, - const GUID* pType, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *CreateSubtype)( - IPStore* This, - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO pInfo, - PPST_ACCESSRULESET pRules, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *GetSubtypeInfo)( - IPStore* This, - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO** ppInfo, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *DeleteSubtype)( - IPStore* This, - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *ReadAccessRuleset)( - IPStore* This, - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO pInfo, - PPST_ACCESSRULESET** ppRules, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *WriteAccessRuleset)( - IPStore* This, - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO pInfo, - PPST_ACCESSRULESET pRules, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *EnumTypes)( - IPStore* This, - PST_KEY Key, - DWORD dwFlags, - IEnumPStoreTypes** ppenum); - - HRESULT (STDMETHODCALLTYPE *EnumSubtypes)( - IPStore* This, - PST_KEY Key, - const GUID* pType, - DWORD dwFlags, - IEnumPStoreTypes** ppenum); - - HRESULT (STDMETHODCALLTYPE *DeleteItem)( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubType, - LPCWSTR szItemName, - PPST_PROMPTINFO pPromptInfo, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *ReadItem)( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR szItemName, - DWORD* cbData, - BYTE** pbData, - PPST_PROMPTIFO pPromptInfo, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *WriteItem)( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR szItemName, - DWORD cbData, - BYTE* ppbData, - PPST_PROMPTIFO pPromptInfo, - DWORD dwDefaultConfirmationStyle, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *OpenItem)( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR szItemName, - PST_ACCESSMODE ModeFlags, - PPST_PROMPTIFO pProomptInfo, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *CloseItem)( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR* szItemName, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *EnumItems)( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - DWORD dwFlags, - IEnumPStoreItems** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPStore_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPStore_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPStore_Release(p) (p)->lpVtbl->Release(p) -/*** IPStore methods ***/ -#define IPStore_GetInfo(p,a) (p)->lpVtbl->GetInfo(p,a) -#define IPStore_GetProvParam(p,a,b,c,d) (p)->lpVtbl->GetProvParam(p,a,b,c,d) -#define IPStore_SetProvParam(p,a,b,c,d) (p)->lpVtbl->SetProvParam(p,a,b,c,d) -#define IPStore_CreateType(p,a,b,c,d) (p)->lpVtbl->CreateType(p,a,b,c,d) -#define IPStore_GetTypeInfo(p,a,b,c,d) (p)->lpVtbl->GetTypeInfo(p,a,b,c,d) -#define IPStore_DeleteType(p,a,b,c) (p)->lpVtbl->DeleteType(p,a,b,c) -#define IPStore_CreateSubtype(p,a,b,c,d,e,f) (p)->lpVtbl->CreateSubtype(p,a,b,c,d,e,f) -#define IPStore_GetSubtypeInfo(p,a,b,c,d,e) (p)->lpVtbl->GetSubtypeInfo(p,a,b,c,d,e) -#define IPStore_DeleteSubtype(p,a,b,c,d) (p)->lpVtbl->DeleteSubtype(p,a,b,c,d) -#define IPStore_ReadAccessRuleset(p,a,b,c,d,e,f) (p)->lpVtbl->ReadAccessRuleset(p,a,b,c,d,e,f) -#define IPStore_WriteAccessRuleset(p,a,b,c,d,e,f) (p)->lpVtbl->WriteAccessRuleset(p,a,b,c,d,e,f) -#define IPStore_EnumTypes(p,a,b,c) (p)->lpVtbl->EnumTypes(p,a,b,c) -#define IPStore_EnumSubtypes(p,a,b,c,d) (p)->lpVtbl->EnumSubtypes(p,a,b,c,d) -#define IPStore_DeleteItem(p,a,b,c,d,e,f) (p)->lpVtbl->DeleteItem(p,a,b,c,d,e,f) -#define IPStore_ReadItem(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->ReadItem(p,a,b,c,d,e,f,g,h) -#define IPStore_WriteItem(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->WriteItem(p,a,b,c,d,e,f,g,h,i) -#define IPStore_OpenItem(p,a,b,c,d,e,f,g) (p)->lpVtbl->OpenItem(p,a,b,c,d,e,f,g) -#define IPStore_CloseItem(p,a,b,c,d,e) (p)->lpVtbl->CloseItem(p,a,b,c,d,e) -#define IPStore_EnumItems(p,a,b,c,d,e) (p)->lpVtbl->EnumItems(p,a,b,c,d,e) -#endif - -#endif - -#define IPStore_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPStore methods ***/ \ - STDMETHOD_(HRESULT,GetInfo)(THIS_ PPST_PROVIDERINFO* ppProperties) PURE; \ - STDMETHOD_(HRESULT,GetProvParam)(THIS_ DWORD dwParam, DWORD* pcbData, BYTE** ppbData, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,SetProvParam)(THIS_ DWORD dwParam, DWORD cbData, BYTE* pbData, DWORD* dwFlags) PURE; \ - STDMETHOD_(HRESULT,CreateType)(THIS_ PST_KEY Key, const GUID* pType, PPST_TYPEINFO pInfo, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ PST_KEY Key, const GUID* pType, PPST_TYPEINFO** ppInfo, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,DeleteType)(THIS_ PST_KEY Key, const GUID* pType, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,CreateSubtype)(THIS_ PST_KEY Key, const GUID* pType, const GUID* pSubtype, PPST_TYPEINFO pInfo, PPST_ACCESSRULESET pRules, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,GetSubtypeInfo)(THIS_ PST_KEY Key, const GUID* pType, const GUID* pSubtype, PPST_TYPEINFO** ppInfo, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,DeleteSubtype)(THIS_ PST_KEY Key, const GUID* pType, const GUID* pSubtype, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,ReadAccessRuleset)(THIS_ PST_KEY Key, const GUID* pType, const GUID* pSubtype, PPST_TYPEINFO pInfo, PPST_ACCESSRULESET** ppRules, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,WriteAccessRuleset)(THIS_ PST_KEY Key, const GUID* pType, const GUID* pSubtype, PPST_TYPEINFO pInfo, PPST_ACCESSRULESET pRules, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,EnumTypes)(THIS_ PST_KEY Key, DWORD dwFlags, IEnumPStoreTypes** ppenum) PURE; \ - STDMETHOD_(HRESULT,EnumSubtypes)(THIS_ PST_KEY Key, const GUID* pType, DWORD dwFlags, IEnumPStoreTypes** ppenum) PURE; \ - STDMETHOD_(HRESULT,DeleteItem)(THIS_ PST_KEY Key, const GUID* pItemType, const GUID* pItemSubType, LPCWSTR szItemName, PPST_PROMPTINFO pPromptInfo, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,ReadItem)(THIS_ PST_KEY Key, const GUID* pItemType, const GUID* pItemSubtype, LPCWSTR szItemName, DWORD* cbData, BYTE** pbData, PPST_PROMPTIFO pPromptInfo, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,WriteItem)(THIS_ PST_KEY Key, const GUID* pItemType, const GUID* pItemSubtype, LPCWSTR szItemName, DWORD cbData, BYTE* ppbData, PPST_PROMPTIFO pPromptInfo, DWORD dwDefaultConfirmationStyle, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,OpenItem)(THIS_ PST_KEY Key, const GUID* pItemType, const GUID* pItemSubtype, LPCWSTR szItemName, PST_ACCESSMODE ModeFlags, PPST_PROMPTIFO pProomptInfo, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,CloseItem)(THIS_ PST_KEY Key, const GUID* pItemType, const GUID* pItemSubtype, LPCWSTR* szItemName, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,EnumItems)(THIS_ PST_KEY Key, const GUID* pItemType, const GUID* pItemSubtype, DWORD dwFlags, IEnumPStoreItems** ppenum) PURE; - -HRESULT CALLBACK IPStore_GetInfo_Proxy( - IPStore* This, - PPST_PROVIDERINFO* ppProperties); -void __RPC_STUB IPStore_GetInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_GetProvParam_Proxy( - IPStore* This, - DWORD dwParam, - DWORD* pcbData, - BYTE** ppbData, - DWORD dwFlags); -void __RPC_STUB IPStore_GetProvParam_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_SetProvParam_Proxy( - IPStore* This, - DWORD dwParam, - DWORD cbData, - BYTE* pbData, - DWORD* dwFlags); -void __RPC_STUB IPStore_SetProvParam_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_CreateType_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pType, - PPST_TYPEINFO pInfo, - DWORD dwFlags); -void __RPC_STUB IPStore_CreateType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_GetTypeInfo_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pType, - PPST_TYPEINFO** ppInfo, - DWORD dwFlags); -void __RPC_STUB IPStore_GetTypeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_DeleteType_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pType, - DWORD dwFlags); -void __RPC_STUB IPStore_DeleteType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_CreateSubtype_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO pInfo, - PPST_ACCESSRULESET pRules, - DWORD dwFlags); -void __RPC_STUB IPStore_CreateSubtype_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_GetSubtypeInfo_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO** ppInfo, - DWORD dwFlags); -void __RPC_STUB IPStore_GetSubtypeInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_DeleteSubtype_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - DWORD dwFlags); -void __RPC_STUB IPStore_DeleteSubtype_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_ReadAccessRuleset_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO pInfo, - PPST_ACCESSRULESET** ppRules, - DWORD dwFlags); -void __RPC_STUB IPStore_ReadAccessRuleset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_WriteAccessRuleset_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pType, - const GUID* pSubtype, - PPST_TYPEINFO pInfo, - PPST_ACCESSRULESET pRules, - DWORD dwFlags); -void __RPC_STUB IPStore_WriteAccessRuleset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_EnumTypes_Proxy( - IPStore* This, - PST_KEY Key, - DWORD dwFlags, - IEnumPStoreTypes** ppenum); -void __RPC_STUB IPStore_EnumTypes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_EnumSubtypes_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pType, - DWORD dwFlags, - IEnumPStoreTypes** ppenum); -void __RPC_STUB IPStore_EnumSubtypes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_DeleteItem_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubType, - LPCWSTR szItemName, - PPST_PROMPTINFO pPromptInfo, - DWORD dwFlags); -void __RPC_STUB IPStore_DeleteItem_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_ReadItem_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR szItemName, - DWORD* cbData, - BYTE** pbData, - PPST_PROMPTIFO pPromptInfo, - DWORD dwFlags); -void __RPC_STUB IPStore_ReadItem_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_WriteItem_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR szItemName, - DWORD cbData, - BYTE* ppbData, - PPST_PROMPTIFO pPromptInfo, - DWORD dwDefaultConfirmationStyle, - DWORD dwFlags); -void __RPC_STUB IPStore_WriteItem_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_OpenItem_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR szItemName, - PST_ACCESSMODE ModeFlags, - PPST_PROMPTIFO pProomptInfo, - DWORD dwFlags); -void __RPC_STUB IPStore_OpenItem_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_CloseItem_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - LPCWSTR* szItemName, - DWORD dwFlags); -void __RPC_STUB IPStore_CloseItem_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPStore_EnumItems_Proxy( - IPStore* This, - PST_KEY Key, - const GUID* pItemType, - const GUID* pItemSubtype, - DWORD dwFlags, - IEnumPStoreItems** ppenum); -void __RPC_STUB IPStore_EnumItems_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPStore_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_PSTORE_H */ diff --git a/include/servprov.h b/include/servprov.h deleted file mode 100644 index b525634d979..00000000000 --- a/include/servprov.h +++ /dev/null @@ -1,109 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from servprov.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_SERVPROV_H -#define __WIDL_SERVPROV_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#ifndef __IServiceProvider_FWD_DEFINED__ -#define __IServiceProvider_FWD_DEFINED__ -typedef struct IServiceProvider IServiceProvider; -#endif - -typedef IServiceProvider *LPSERVICEPROVIDER; - -/***************************************************************************** - * IServiceProvider interface - */ -#ifndef __IServiceProvider_INTERFACE_DEFINED__ -#define __IServiceProvider_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IServiceProvider, 0x6d5140c1, 0x7436, 0x11ce, 0x80,0x34, 0x00,0xaa,0x00,0x60,0x09,0xfa); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IServiceProvider : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryService( - REFGUID guidService, - REFIID riid, - void** ppvObject) = 0; - -}; -#else -typedef struct IServiceProviderVtbl IServiceProviderVtbl; -struct IServiceProvider { - const IServiceProviderVtbl* lpVtbl; -}; -struct IServiceProviderVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IServiceProvider* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IServiceProvider* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IServiceProvider* This); - - /*** IServiceProvider methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryService)( - IServiceProvider* This, - REFGUID guidService, - REFIID riid, - void** ppvObject); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IServiceProvider_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IServiceProvider_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IServiceProvider_Release(p) (p)->lpVtbl->Release(p) -/*** IServiceProvider methods ***/ -#define IServiceProvider_QueryService(p,a,b,c) (p)->lpVtbl->QueryService(p,a,b,c) -#endif - -#endif - -#define IServiceProvider_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IServiceProvider methods ***/ \ - STDMETHOD_(HRESULT,QueryService)(THIS_ REFGUID guidService, REFIID riid, void** ppvObject) PURE; - -HRESULT CALLBACK IServiceProvider_RemoteQueryService_Proxy( - IServiceProvider* This, - REFGUID guidService, - REFIID riid, - IUnknown** ppvObject); -void __RPC_STUB IServiceProvider_RemoteQueryService_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IServiceProvider_QueryService_Proxy( - IServiceProvider* This, - REFGUID guidService, - REFIID riid, - void** ppvObject); -HRESULT __RPC_STUB IServiceProvider_QueryService_Stub( - IServiceProvider* This, - REFGUID guidService, - REFIID riid, - IUnknown** ppvObject); - -#endif /* __IServiceProvider_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_SERVPROV_H */ diff --git a/include/shldisp.h b/include/shldisp.h deleted file mode 100644 index 0d0d86a2619..00000000000 --- a/include/shldisp.h +++ /dev/null @@ -1,366 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from shldisp.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_SHLDISP_H -#define __WIDL_SHLDISP_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#include -#include -#include -#include -#ifndef __IAutoComplete_FWD_DEFINED__ -#define __IAutoComplete_FWD_DEFINED__ -typedef struct IAutoComplete IAutoComplete; -#endif - -typedef IAutoComplete *LPAUTOCOMPLETE; - -/***************************************************************************** - * IAutoComplete interface - */ -#ifndef __IAutoComplete_INTERFACE_DEFINED__ -#define __IAutoComplete_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAutoComplete, 0x00bb2762, 0x6a77, 0x11d0, 0xa5,0x35, 0x00,0xc0,0x4f,0xd7,0xd0,0x62); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAutoComplete : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Init( - HWND hwndEdit, - IUnknown* punkACL, - LPCOLESTR pwszRegKeyPath, - LPCOLESTR pwszQuickComplete) = 0; - - virtual HRESULT STDMETHODCALLTYPE Enable( - BOOL fEnable) = 0; - -}; -#else -typedef struct IAutoCompleteVtbl IAutoCompleteVtbl; -struct IAutoComplete { - const IAutoCompleteVtbl* lpVtbl; -}; -struct IAutoCompleteVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAutoComplete* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAutoComplete* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAutoComplete* This); - - /*** IAutoComplete methods ***/ - HRESULT (STDMETHODCALLTYPE *Init)( - IAutoComplete* This, - HWND hwndEdit, - IUnknown* punkACL, - LPCOLESTR pwszRegKeyPath, - LPCOLESTR pwszQuickComplete); - - HRESULT (STDMETHODCALLTYPE *Enable)( - IAutoComplete* This, - BOOL fEnable); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAutoComplete_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAutoComplete_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAutoComplete_Release(p) (p)->lpVtbl->Release(p) -/*** IAutoComplete methods ***/ -#define IAutoComplete_Init(p,a,b,c,d) (p)->lpVtbl->Init(p,a,b,c,d) -#define IAutoComplete_Enable(p,a) (p)->lpVtbl->Enable(p,a) -#endif - -#endif - -#define IAutoComplete_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IAutoComplete methods ***/ \ - STDMETHOD_(HRESULT,Init)(THIS_ HWND hwndEdit, IUnknown* punkACL, LPCOLESTR pwszRegKeyPath, LPCOLESTR pwszQuickComplete) PURE; \ - STDMETHOD_(HRESULT,Enable)(THIS_ BOOL fEnable) PURE; - -HRESULT CALLBACK IAutoComplete_Init_Proxy( - IAutoComplete* This, - HWND hwndEdit, - IUnknown* punkACL, - LPCOLESTR pwszRegKeyPath, - LPCOLESTR pwszQuickComplete); -void __RPC_STUB IAutoComplete_Init_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAutoComplete_Enable_Proxy( - IAutoComplete* This, - BOOL fEnable); -void __RPC_STUB IAutoComplete_Enable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAutoComplete_INTERFACE_DEFINED__ */ - -#ifndef __IAutoComplete2_FWD_DEFINED__ -#define __IAutoComplete2_FWD_DEFINED__ -typedef struct IAutoComplete2 IAutoComplete2; -#endif - -typedef IAutoComplete2 *LPAUTOCOMPLETE2; - -typedef enum _tagAUTOCOMPLETEOPTIONS { - ACO_NONE = 0x0, - ACO_AUTOSUGGEST = 0x1, - ACO_AUTOAPPEND = 0x2, - ACO_SEARCH = 0x4, - ACO_FILTERPREFIXES = 0x8, - ACO_USETAB = 0x10, - ACO_UPDOWNKEYDROPSLIST = 0x20, - ACO_RTLREADING = 0x40 -} AUTOCOMPLETEOPTIONS; - -/***************************************************************************** - * IAutoComplete2 interface - */ -#ifndef __IAutoComplete2_INTERFACE_DEFINED__ -#define __IAutoComplete2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAutoComplete2, 0xeac04bc0, 0x3791, 0x11d2, 0xbb,0x95, 0x00,0x60,0x97,0x7b,0x46,0x4c); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAutoComplete2 : public IAutoComplete -{ - virtual HRESULT STDMETHODCALLTYPE SetOptions( - DWORD dwFlag) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetOptions( - DWORD* pdwFlag) = 0; - -}; -#else -typedef struct IAutoComplete2Vtbl IAutoComplete2Vtbl; -struct IAutoComplete2 { - const IAutoComplete2Vtbl* lpVtbl; -}; -struct IAutoComplete2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAutoComplete2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAutoComplete2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAutoComplete2* This); - - /*** IAutoComplete methods ***/ - HRESULT (STDMETHODCALLTYPE *Init)( - IAutoComplete2* This, - HWND hwndEdit, - IUnknown* punkACL, - LPCOLESTR pwszRegKeyPath, - LPCOLESTR pwszQuickComplete); - - HRESULT (STDMETHODCALLTYPE *Enable)( - IAutoComplete2* This, - BOOL fEnable); - - /*** IAutoComplete2 methods ***/ - HRESULT (STDMETHODCALLTYPE *SetOptions)( - IAutoComplete2* This, - DWORD dwFlag); - - HRESULT (STDMETHODCALLTYPE *GetOptions)( - IAutoComplete2* This, - DWORD* pdwFlag); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAutoComplete2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAutoComplete2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAutoComplete2_Release(p) (p)->lpVtbl->Release(p) -/*** IAutoComplete methods ***/ -#define IAutoComplete2_Init(p,a,b,c,d) (p)->lpVtbl->Init(p,a,b,c,d) -#define IAutoComplete2_Enable(p,a) (p)->lpVtbl->Enable(p,a) -/*** IAutoComplete2 methods ***/ -#define IAutoComplete2_SetOptions(p,a) (p)->lpVtbl->SetOptions(p,a) -#define IAutoComplete2_GetOptions(p,a) (p)->lpVtbl->GetOptions(p,a) -#endif - -#endif - -#define IAutoComplete2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IAutoComplete methods ***/ \ - STDMETHOD_(HRESULT,Init)(THIS_ HWND hwndEdit, IUnknown* punkACL, LPCOLESTR pwszRegKeyPath, LPCOLESTR pwszQuickComplete) PURE; \ - STDMETHOD_(HRESULT,Enable)(THIS_ BOOL fEnable) PURE; \ - /*** IAutoComplete2 methods ***/ \ - STDMETHOD_(HRESULT,SetOptions)(THIS_ DWORD dwFlag) PURE; \ - STDMETHOD_(HRESULT,GetOptions)(THIS_ DWORD* pdwFlag) PURE; - -HRESULT CALLBACK IAutoComplete2_SetOptions_Proxy( - IAutoComplete2* This, - DWORD dwFlag); -void __RPC_STUB IAutoComplete2_SetOptions_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAutoComplete2_GetOptions_Proxy( - IAutoComplete2* This, - DWORD* pdwFlag); -void __RPC_STUB IAutoComplete2_GetOptions_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAutoComplete2_INTERFACE_DEFINED__ */ - -#ifndef __IFolderViewOC_FWD_DEFINED__ -#define __IFolderViewOC_FWD_DEFINED__ -typedef struct IFolderViewOC IFolderViewOC; -#endif - -/***************************************************************************** - * IFolderViewOC interface - */ -#ifndef __IFolderViewOC_INTERFACE_DEFINED__ -#define __IFolderViewOC_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFolderViewOC, 0x9ba05970, 0xf6a8, 0x11cf, 0xa4,0x42, 0x00,0xa0,0xc9,0x0a,0x8f,0x39); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFolderViewOC : public IDispatch -{ - virtual HRESULT STDMETHODCALLTYPE SetFolderView( - IDispatch* pdisp) = 0; - -}; -#else -typedef struct IFolderViewOCVtbl IFolderViewOCVtbl; -struct IFolderViewOC { - const IFolderViewOCVtbl* lpVtbl; -}; -struct IFolderViewOCVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFolderViewOC* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFolderViewOC* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFolderViewOC* This); - - /*** IDispatch methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)( - IFolderViewOC* This, - UINT* pctinfo); - - HRESULT (STDMETHODCALLTYPE *GetTypeInfo)( - IFolderViewOC* This, - UINT iTInfo, - LCID lcid, - ITypeInfo** ppTInfo); - - HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)( - IFolderViewOC* This, - REFIID riid, - LPOLESTR* rgszNames, - UINT cNames, - LCID lcid, - DISPID* rgDispId); - - HRESULT (STDMETHODCALLTYPE *Invoke)( - IFolderViewOC* This, - DISPID dispIdMember, - REFIID riid, - LCID lcid, - WORD wFlags, - DISPPARAMS* pDispParams, - VARIANT* pVarResult, - EXCEPINFO* pExcepInfo, - UINT* puArgErr); - - /*** IFolderViewOC methods ***/ - HRESULT (STDMETHODCALLTYPE *SetFolderView)( - IFolderViewOC* This, - IDispatch* pdisp); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFolderViewOC_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFolderViewOC_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFolderViewOC_Release(p) (p)->lpVtbl->Release(p) -/*** IDispatch methods ***/ -#define IFolderViewOC_GetTypeInfoCount(p,a) (p)->lpVtbl->GetTypeInfoCount(p,a) -#define IFolderViewOC_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c) -#define IFolderViewOC_GetIDsOfNames(p,a,b,c,d,e) (p)->lpVtbl->GetIDsOfNames(p,a,b,c,d,e) -#define IFolderViewOC_Invoke(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->Invoke(p,a,b,c,d,e,f,g,h) -/*** IFolderViewOC methods ***/ -#define IFolderViewOC_SetFolderView(p,a) (p)->lpVtbl->SetFolderView(p,a) -#endif - -#endif - -#define IFolderViewOC_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDispatch methods ***/ \ - STDMETHOD_(HRESULT,GetTypeInfoCount)(THIS_ UINT* pctinfo) PURE; \ - STDMETHOD_(HRESULT,GetTypeInfo)(THIS_ UINT iTInfo, LCID lcid, ITypeInfo** ppTInfo) PURE; \ - STDMETHOD_(HRESULT,GetIDsOfNames)(THIS_ REFIID riid, LPOLESTR* rgszNames, UINT cNames, LCID lcid, DISPID* rgDispId) PURE; \ - STDMETHOD_(HRESULT,Invoke)(THIS_ DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, EXCEPINFO* pExcepInfo, UINT* puArgErr) PURE; \ - /*** IFolderViewOC methods ***/ \ - STDMETHOD_(HRESULT,SetFolderView)(THIS_ IDispatch* pdisp) PURE; - -HRESULT CALLBACK IFolderViewOC_SetFolderView_Proxy( - IFolderViewOC* This, - IDispatch* pdisp); -void __RPC_STUB IFolderViewOC_SetFolderView_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFolderViewOC_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_SHLDISP_H */ diff --git a/include/shobjidl.h b/include/shobjidl.h deleted file mode 100644 index 4266ef11871..00000000000 --- a/include/shobjidl.h +++ /dev/null @@ -1,4317 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from shobjidl.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_SHOBJIDL_H -#define __WIDL_SHOBJIDL_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#include -#include -#include -#include -#include -#ifndef __IPersistFolder_FWD_DEFINED__ -#define __IPersistFolder_FWD_DEFINED__ -typedef struct IPersistFolder IPersistFolder; -#endif - -typedef IPersistFolder *LPPERSISTFOLDER; - -/***************************************************************************** - * IPersistFolder interface - */ -#ifndef __IPersistFolder_INTERFACE_DEFINED__ -#define __IPersistFolder_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistFolder, 0x000214ea, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistFolder : public IPersist -{ - virtual HRESULT STDMETHODCALLTYPE Initialize( - LPCITEMIDLIST pidl) = 0; - -}; -#else -typedef struct IPersistFolderVtbl IPersistFolderVtbl; -struct IPersistFolder { - const IPersistFolderVtbl* lpVtbl; -}; -struct IPersistFolderVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistFolder* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistFolder* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistFolder* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistFolder* This, - CLSID* pClassID); - - /*** IPersistFolder methods ***/ - HRESULT (STDMETHODCALLTYPE *Initialize)( - IPersistFolder* This, - LPCITEMIDLIST pidl); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPersistFolder_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPersistFolder_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPersistFolder_Release(p) (p)->lpVtbl->Release(p) -/*** IPersist methods ***/ -#define IPersistFolder_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -/*** IPersistFolder methods ***/ -#define IPersistFolder_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) -#endif - -#endif - -#define IPersistFolder_METHODS \ - /*** 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; \ - /*** IPersistFolder methods ***/ \ - STDMETHOD_(HRESULT,Initialize)(THIS_ LPCITEMIDLIST pidl) PURE; - -HRESULT CALLBACK IPersistFolder_Initialize_Proxy( - IPersistFolder* This, - LPCITEMIDLIST pidl); -void __RPC_STUB IPersistFolder_Initialize_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPersistFolder_INTERFACE_DEFINED__ */ - -#ifndef __IPersistFolder2_FWD_DEFINED__ -#define __IPersistFolder2_FWD_DEFINED__ -typedef struct IPersistFolder2 IPersistFolder2; -#endif - -typedef IPersistFolder2 *LPPERSISTFOLDER2; - -/***************************************************************************** - * IPersistFolder2 interface - */ -#ifndef __IPersistFolder2_INTERFACE_DEFINED__ -#define __IPersistFolder2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistFolder2, 0x1ac3d9f0, 0x175c, 0x11d1, 0x95,0xbe, 0x00,0x60,0x97,0x97,0xea,0x4f); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistFolder2 : public IPersistFolder -{ - virtual HRESULT STDMETHODCALLTYPE GetCurFolder( - LPITEMIDLIST* ppidl) = 0; - -}; -#else -typedef struct IPersistFolder2Vtbl IPersistFolder2Vtbl; -struct IPersistFolder2 { - const IPersistFolder2Vtbl* lpVtbl; -}; -struct IPersistFolder2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistFolder2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistFolder2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistFolder2* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistFolder2* This, - CLSID* pClassID); - - /*** IPersistFolder methods ***/ - HRESULT (STDMETHODCALLTYPE *Initialize)( - IPersistFolder2* This, - LPCITEMIDLIST pidl); - - /*** IPersistFolder2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetCurFolder)( - IPersistFolder2* This, - LPITEMIDLIST* ppidl); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPersistFolder2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPersistFolder2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPersistFolder2_Release(p) (p)->lpVtbl->Release(p) -/*** IPersist methods ***/ -#define IPersistFolder2_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -/*** IPersistFolder methods ***/ -#define IPersistFolder2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) -/*** IPersistFolder2 methods ***/ -#define IPersistFolder2_GetCurFolder(p,a) (p)->lpVtbl->GetCurFolder(p,a) -#endif - -#endif - -#define IPersistFolder2_METHODS \ - /*** 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; \ - /*** IPersistFolder methods ***/ \ - STDMETHOD_(HRESULT,Initialize)(THIS_ LPCITEMIDLIST pidl) PURE; \ - /*** IPersistFolder2 methods ***/ \ - STDMETHOD_(HRESULT,GetCurFolder)(THIS_ LPITEMIDLIST* ppidl) PURE; - -HRESULT CALLBACK IPersistFolder2_GetCurFolder_Proxy( - IPersistFolder2* This, - LPITEMIDLIST* ppidl); -void __RPC_STUB IPersistFolder2_GetCurFolder_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPersistFolder2_INTERFACE_DEFINED__ */ - -#ifndef __IEnumIDList_FWD_DEFINED__ -#define __IEnumIDList_FWD_DEFINED__ -typedef struct IEnumIDList IEnumIDList; -#endif - -typedef IEnumIDList *LPENUMIDLIST; - -/***************************************************************************** - * IEnumIDList interface - */ -#ifndef __IEnumIDList_INTERFACE_DEFINED__ -#define __IEnumIDList_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumIDList, 0x000214f2, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumIDList : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - LPITEMIDLIST* rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumIDList** ppenum) = 0; - -}; -#else -typedef struct IEnumIDListVtbl IEnumIDListVtbl; -struct IEnumIDList { - const IEnumIDListVtbl* lpVtbl; -}; -struct IEnumIDListVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumIDList* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumIDList* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumIDList* This); - - /*** IEnumIDList methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumIDList* This, - ULONG celt, - LPITEMIDLIST* rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumIDList* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumIDList* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumIDList* This, - IEnumIDList** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumIDList_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumIDList_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumIDList_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumIDList methods ***/ -#define IEnumIDList_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumIDList_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumIDList_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumIDList_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumIDList_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumIDList methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, LPITEMIDLIST* rgelt, ULONG* pceltFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumIDList** ppenum) PURE; - -HRESULT CALLBACK IEnumIDList_Next_Proxy( - IEnumIDList* This, - ULONG celt, - LPITEMIDLIST* rgelt, - ULONG* pceltFetched); -void __RPC_STUB IEnumIDList_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumIDList_Skip_Proxy( - IEnumIDList* This, - ULONG celt); -void __RPC_STUB IEnumIDList_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumIDList_Reset_Proxy( - IEnumIDList* This); -void __RPC_STUB IEnumIDList_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumIDList_Clone_Proxy( - IEnumIDList* This, - IEnumIDList** ppenum); -void __RPC_STUB IEnumIDList_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumIDList_INTERFACE_DEFINED__ */ - -#ifndef __IShellFolder_FWD_DEFINED__ -#define __IShellFolder_FWD_DEFINED__ -typedef struct IShellFolder IShellFolder; -#endif - -typedef IShellFolder *LPSHELLFOLDER; - -typedef enum tagSHGDN { - SHGDN_NORMAL = 0, - SHGDN_INFOLDER = 1, - SHGDN_FOREDITING = 0x1000, - SHGDN_INCLUDE_NONFILESYS = 0x2000, - SHGDN_FORADDRESSBAR = 0x4000, - SHGDN_FORPARSING = 0x8000 -} SHGNO; - -typedef DWORD SHGDNF; - -enum tagSHCONTF { - SHCONTF_FOLDERS = 32, - SHCONTF_NONFOLDERS = 64, - SHCONTF_INCLUDEHIDDEN = 128, - SHCONTF_INIT_ON_FIRST_NEXT = 256, - SHCONTF_NETPRINTERSRCH = 512, - SHCONTF_SHAREABLE = 1024, - SHCONTF_STORAGE = 2048 -}; - -typedef DWORD SHCONTF; - -#define SFGAO_CANCOPY DROPEFFECT_COPY -#define SFGAO_CANMOVE DROPEFFECT_MOVE -#define SFGAO_CANLINK DROPEFFECT_LINK -#define SFGAO_CANRENAME 0x00000010L -#define SFGAO_CANDELETE 0x00000020L -#define SFGAO_HASPROPSHEET 0x00000040L -#define SFGAO_DROPTARGET 0x00000100L -#define SFGAO_CAPABILITYMASK 0x00000177L -#define SFGAO_LINK 0x00010000L -#define SFGAO_SHARE 0x00020000L -#define SFGAO_READONLY 0x00040000L -#define SFGAO_GHOSTED 0x00080000L -#define SFGAO_HIDDEN 0x00080000L -#define SFGAO_DISPLAYATTRMASK 0x000F0000L -#define SFGAO_FILESYSANCESTOR 0x10000000L -#define SFGAO_FOLDER 0x20000000L -#define SFGAO_FILESYSTEM 0x40000000L -#define SFGAO_HASSUBFOLDER 0x80000000L -#define SFGAO_CONTENTSMASK 0x80000000L -#define SFGAO_VALIDATE 0x01000000L -#define SFGAO_REMOVABLE 0x02000000L -#define SFGAO_COMPRESSED 0x04000000L -#define SFGAO_BROWSABLE 0x08000000L -#define SFGAO_NONENUMERATED 0x00100000L -#define SFGAO_NEWCONTENT 0x00200000L -typedef ULONG SFGAOF; - -/***************************************************************************** - * IShellFolder interface - */ -#ifndef __IShellFolder_INTERFACE_DEFINED__ -#define __IShellFolder_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IShellFolder, 0x000214e6, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IShellFolder : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE ParseDisplayName( - HWND hwndOwner, - LPBC pbcReserved, - LPOLESTR lpszDisplayName, - ULONG* pchEaten, - LPITEMIDLIST* ppidl, - ULONG* pdwAttributes) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumObjects( - HWND hwndOwner, - SHCONTF grfFlags, - IEnumIDList** ppenumIDList) = 0; - - virtual HRESULT STDMETHODCALLTYPE BindToObject( - LPCITEMIDLIST pidl, - LPBC pbcReserved, - REFIID riid, - void** ppvOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE BindToStorage( - LPCITEMIDLIST pidl, - LPBC pbcReserved, - REFIID riid, - void** ppvObj) = 0; - - virtual HRESULT STDMETHODCALLTYPE CompareIDs( - LPARAM lParam, - LPCITEMIDLIST pidl1, - LPCITEMIDLIST pidl2) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateViewObject( - HWND hwndOwner, - REFIID riid, - void** ppvOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAttributesOf( - UINT cidl, - LPCITEMIDLIST* apidl, - SFGAOF* rgfInOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetUIObjectOf( - HWND hwndOwner, - UINT cidl, - LPCITEMIDLIST* apidl, - REFIID riid, - UINT* prgfInOut, - void** ppvOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDisplayNameOf( - LPCITEMIDLIST pidl, - SHGDNF uFlags, - STRRET* lpName) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetNameOf( - HWND hwnd, - LPCITEMIDLIST pidl, - LPCOLESTR lpszName, - SHGDNF uFlags, - LPITEMIDLIST* ppidlOut) = 0; - -}; -#else -typedef struct IShellFolderVtbl IShellFolderVtbl; -struct IShellFolder { - const IShellFolderVtbl* lpVtbl; -}; -struct IShellFolderVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IShellFolder* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IShellFolder* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IShellFolder* This); - - /*** IShellFolder methods ***/ - HRESULT (STDMETHODCALLTYPE *ParseDisplayName)( - IShellFolder* This, - HWND hwndOwner, - LPBC pbcReserved, - LPOLESTR lpszDisplayName, - ULONG* pchEaten, - LPITEMIDLIST* ppidl, - ULONG* pdwAttributes); - - HRESULT (STDMETHODCALLTYPE *EnumObjects)( - IShellFolder* This, - HWND hwndOwner, - SHCONTF grfFlags, - IEnumIDList** ppenumIDList); - - HRESULT (STDMETHODCALLTYPE *BindToObject)( - IShellFolder* This, - LPCITEMIDLIST pidl, - LPBC pbcReserved, - REFIID riid, - void** ppvOut); - - HRESULT (STDMETHODCALLTYPE *BindToStorage)( - IShellFolder* This, - LPCITEMIDLIST pidl, - LPBC pbcReserved, - REFIID riid, - void** ppvObj); - - HRESULT (STDMETHODCALLTYPE *CompareIDs)( - IShellFolder* This, - LPARAM lParam, - LPCITEMIDLIST pidl1, - LPCITEMIDLIST pidl2); - - HRESULT (STDMETHODCALLTYPE *CreateViewObject)( - IShellFolder* This, - HWND hwndOwner, - REFIID riid, - void** ppvOut); - - HRESULT (STDMETHODCALLTYPE *GetAttributesOf)( - IShellFolder* This, - UINT cidl, - LPCITEMIDLIST* apidl, - SFGAOF* rgfInOut); - - HRESULT (STDMETHODCALLTYPE *GetUIObjectOf)( - IShellFolder* This, - HWND hwndOwner, - UINT cidl, - LPCITEMIDLIST* apidl, - REFIID riid, - UINT* prgfInOut, - void** ppvOut); - - HRESULT (STDMETHODCALLTYPE *GetDisplayNameOf)( - IShellFolder* This, - LPCITEMIDLIST pidl, - SHGDNF uFlags, - STRRET* lpName); - - HRESULT (STDMETHODCALLTYPE *SetNameOf)( - IShellFolder* This, - HWND hwnd, - LPCITEMIDLIST pidl, - LPCOLESTR lpszName, - SHGDNF uFlags, - LPITEMIDLIST* ppidlOut); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IShellFolder_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IShellFolder_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IShellFolder_Release(p) (p)->lpVtbl->Release(p) -/*** IShellFolder methods ***/ -#define IShellFolder_ParseDisplayName(p,a,b,c,d,e,f) (p)->lpVtbl->ParseDisplayName(p,a,b,c,d,e,f) -#define IShellFolder_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) -#define IShellFolder_BindToObject(p,a,b,c,d) (p)->lpVtbl->BindToObject(p,a,b,c,d) -#define IShellFolder_BindToStorage(p,a,b,c,d) (p)->lpVtbl->BindToStorage(p,a,b,c,d) -#define IShellFolder_CompareIDs(p,a,b,c) (p)->lpVtbl->CompareIDs(p,a,b,c) -#define IShellFolder_CreateViewObject(p,a,b,c) (p)->lpVtbl->CreateViewObject(p,a,b,c) -#define IShellFolder_GetAttributesOf(p,a,b,c) (p)->lpVtbl->GetAttributesOf(p,a,b,c) -#define IShellFolder_GetUIObjectOf(p,a,b,c,d,e,f) (p)->lpVtbl->GetUIObjectOf(p,a,b,c,d,e,f) -#define IShellFolder_GetDisplayNameOf(p,a,b,c) (p)->lpVtbl->GetDisplayNameOf(p,a,b,c) -#define IShellFolder_SetNameOf(p,a,b,c,d,e) (p)->lpVtbl->SetNameOf(p,a,b,c,d,e) -#endif - -#endif - -#define IShellFolder_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IShellFolder methods ***/ \ - STDMETHOD_(HRESULT,ParseDisplayName)(THIS_ HWND hwndOwner, LPBC pbcReserved, LPOLESTR lpszDisplayName, ULONG* pchEaten, LPITEMIDLIST* ppidl, ULONG* pdwAttributes) PURE; \ - STDMETHOD_(HRESULT,EnumObjects)(THIS_ HWND hwndOwner, SHCONTF grfFlags, IEnumIDList** ppenumIDList) PURE; \ - STDMETHOD_(HRESULT,BindToObject)(THIS_ LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, void** ppvOut) PURE; \ - STDMETHOD_(HRESULT,BindToStorage)(THIS_ LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, void** ppvObj) PURE; \ - STDMETHOD_(HRESULT,CompareIDs)(THIS_ LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2) PURE; \ - STDMETHOD_(HRESULT,CreateViewObject)(THIS_ HWND hwndOwner, REFIID riid, void** ppvOut) PURE; \ - STDMETHOD_(HRESULT,GetAttributesOf)(THIS_ UINT cidl, LPCITEMIDLIST* apidl, SFGAOF* rgfInOut) PURE; \ - STDMETHOD_(HRESULT,GetUIObjectOf)(THIS_ HWND hwndOwner, UINT cidl, LPCITEMIDLIST* apidl, REFIID riid, UINT* prgfInOut, void** ppvOut) PURE; \ - STDMETHOD_(HRESULT,GetDisplayNameOf)(THIS_ LPCITEMIDLIST pidl, SHGDNF uFlags, STRRET* lpName) PURE; \ - STDMETHOD_(HRESULT,SetNameOf)(THIS_ HWND hwnd, LPCITEMIDLIST pidl, LPCOLESTR lpszName, SHGDNF uFlags, LPITEMIDLIST* ppidlOut) PURE; - -HRESULT CALLBACK IShellFolder_ParseDisplayName_Proxy( - IShellFolder* This, - HWND hwndOwner, - LPBC pbcReserved, - LPOLESTR lpszDisplayName, - ULONG* pchEaten, - LPITEMIDLIST* ppidl, - ULONG* pdwAttributes); -void __RPC_STUB IShellFolder_ParseDisplayName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder_EnumObjects_Proxy( - IShellFolder* This, - HWND hwndOwner, - SHCONTF grfFlags, - IEnumIDList** ppenumIDList); -void __RPC_STUB IShellFolder_EnumObjects_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder_BindToObject_Proxy( - IShellFolder* This, - LPCITEMIDLIST pidl, - LPBC pbcReserved, - REFIID riid, - void** ppvOut); -void __RPC_STUB IShellFolder_BindToObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder_BindToStorage_Proxy( - IShellFolder* This, - LPCITEMIDLIST pidl, - LPBC pbcReserved, - REFIID riid, - void** ppvObj); -void __RPC_STUB IShellFolder_BindToStorage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder_CompareIDs_Proxy( - IShellFolder* This, - LPARAM lParam, - LPCITEMIDLIST pidl1, - LPCITEMIDLIST pidl2); -void __RPC_STUB IShellFolder_CompareIDs_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder_CreateViewObject_Proxy( - IShellFolder* This, - HWND hwndOwner, - REFIID riid, - void** ppvOut); -void __RPC_STUB IShellFolder_CreateViewObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder_GetAttributesOf_Proxy( - IShellFolder* This, - UINT cidl, - LPCITEMIDLIST* apidl, - SFGAOF* rgfInOut); -void __RPC_STUB IShellFolder_GetAttributesOf_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder_GetUIObjectOf_Proxy( - IShellFolder* This, - HWND hwndOwner, - UINT cidl, - LPCITEMIDLIST* apidl, - REFIID riid, - UINT* prgfInOut, - void** ppvOut); -void __RPC_STUB IShellFolder_GetUIObjectOf_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder_GetDisplayNameOf_Proxy( - IShellFolder* This, - LPCITEMIDLIST pidl, - SHGDNF uFlags, - STRRET* lpName); -void __RPC_STUB IShellFolder_GetDisplayNameOf_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder_SetNameOf_Proxy( - IShellFolder* This, - HWND hwnd, - LPCITEMIDLIST pidl, - LPCOLESTR lpszName, - SHGDNF uFlags, - LPITEMIDLIST* ppidlOut); -void __RPC_STUB IShellFolder_SetNameOf_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IShellFolder_INTERFACE_DEFINED__ */ - -#ifndef __IEnumExtraSearch_FWD_DEFINED__ -#define __IEnumExtraSearch_FWD_DEFINED__ -typedef struct IEnumExtraSearch IEnumExtraSearch; -#endif - -typedef IEnumExtraSearch *LPENUMEXTRASEARCH; - -typedef struct { - GUID guidSearch; - WCHAR wszFriendlyName[80]; - WCHAR wszUrl[2084]; -} EXTRASEARCH, *LPEXTRASEARCH; - -/***************************************************************************** - * IEnumExtraSearch interface - */ -#ifndef __IEnumExtraSearch_INTERFACE_DEFINED__ -#define __IEnumExtraSearch_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumExtraSearch, 0x0e700be1, 0x9db6, 0x11d1, 0xa1,0xce, 0x00,0xc0,0x4f,0xd7,0x5d,0x13); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumExtraSearch : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG celt, - EXTRASEARCH* rgelt, - ULONG* pceltFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG celt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumExtraSearch** ppenum) = 0; - -}; -#else -typedef struct IEnumExtraSearchVtbl IEnumExtraSearchVtbl; -struct IEnumExtraSearch { - const IEnumExtraSearchVtbl* lpVtbl; -}; -struct IEnumExtraSearchVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumExtraSearch* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumExtraSearch* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumExtraSearch* This); - - /*** IEnumExtraSearch methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumExtraSearch* This, - ULONG celt, - EXTRASEARCH* rgelt, - ULONG* pceltFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumExtraSearch* This, - ULONG celt); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumExtraSearch* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumExtraSearch* This, - IEnumExtraSearch** ppenum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumExtraSearch_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumExtraSearch_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumExtraSearch_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumExtraSearch methods ***/ -#define IEnumExtraSearch_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumExtraSearch_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumExtraSearch_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumExtraSearch_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumExtraSearch_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumExtraSearch methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG celt, EXTRASEARCH* rgelt, ULONG* pceltFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG celt) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumExtraSearch** ppenum) PURE; - -HRESULT CALLBACK IEnumExtraSearch_Next_Proxy( - IEnumExtraSearch* This, - ULONG celt, - EXTRASEARCH* rgelt, - ULONG* pceltFetched); -void __RPC_STUB IEnumExtraSearch_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumExtraSearch_Skip_Proxy( - IEnumExtraSearch* This, - ULONG celt); -void __RPC_STUB IEnumExtraSearch_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumExtraSearch_Reset_Proxy( - IEnumExtraSearch* This); -void __RPC_STUB IEnumExtraSearch_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumExtraSearch_Clone_Proxy( - IEnumExtraSearch* This, - IEnumExtraSearch** ppenum); -void __RPC_STUB IEnumExtraSearch_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumExtraSearch_INTERFACE_DEFINED__ */ - -#ifndef __IShellFolder2_FWD_DEFINED__ -#define __IShellFolder2_FWD_DEFINED__ -typedef struct IShellFolder2 IShellFolder2; -#endif - -typedef enum { - SHCOLSTATE_TYPE_STR = 0x1, - SHCOLSTATE_TYPE_INT = 0x2, - SHCOLSTATE_TYPE_DATE = 0x3, - SHCOLSTATE_TYPEMASK = 0xf, - SHCOLSTATE_ONBYDEFAULT = 0x10, - SHCOLSTATE_SLOW = 0x20, - SHCOLSTATE_EXTENDED = 0x40, - SHCOLSTATE_SECONDARYUI = 0x80, - SHCOLSTATE_HIDDEN = 0x100, - SHCOLSTATE_PREFER_VARCMP = 0x200 -} SHCOLSTATE; - -typedef DWORD SHCOLSTATEF; - -typedef struct { - GUID fmtid; - DWORD pid; -} SHCOLUMNID, *LPSHCOLUMNID; - -typedef const SHCOLUMNID *LPCSHCOLUMNID; - -/***************************************************************************** - * IShellFolder2 interface - */ -#ifndef __IShellFolder2_INTERFACE_DEFINED__ -#define __IShellFolder2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IShellFolder2, 0x93f2f68c, 0x1d1b, 0x11d3, 0xa3,0x0e, 0x00,0xc0,0x4f,0x79,0xab,0xd1); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IShellFolder2 : public IShellFolder -{ - virtual HRESULT STDMETHODCALLTYPE GetDefaultSearchGUID( - GUID* lpguid) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumSearches( - IEnumExtraSearch** ppenum) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultColumn( - DWORD dwReserved, - ULONG* pSort, - ULONG* pDisplay) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultColumnState( - UINT iColumn, - SHCOLSTATEF* pcsFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDetailsEx( - LPCITEMIDLIST pidl, - const SHCOLUMNID* pscid, - VARIANT* pv) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDetailsOf( - LPCITEMIDLIST pidl, - UINT iColumn, - SHELLDETAILS* psd) = 0; - - virtual HRESULT STDMETHODCALLTYPE MapColumnToSCID( - UINT iColumn, - SHCOLUMNID* pscid) = 0; - -}; -#else -typedef struct IShellFolder2Vtbl IShellFolder2Vtbl; -struct IShellFolder2 { - const IShellFolder2Vtbl* lpVtbl; -}; -struct IShellFolder2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IShellFolder2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IShellFolder2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IShellFolder2* This); - - /*** IShellFolder methods ***/ - HRESULT (STDMETHODCALLTYPE *ParseDisplayName)( - IShellFolder2* This, - HWND hwndOwner, - LPBC pbcReserved, - LPOLESTR lpszDisplayName, - ULONG* pchEaten, - LPITEMIDLIST* ppidl, - ULONG* pdwAttributes); - - HRESULT (STDMETHODCALLTYPE *EnumObjects)( - IShellFolder2* This, - HWND hwndOwner, - SHCONTF grfFlags, - IEnumIDList** ppenumIDList); - - HRESULT (STDMETHODCALLTYPE *BindToObject)( - IShellFolder2* This, - LPCITEMIDLIST pidl, - LPBC pbcReserved, - REFIID riid, - void** ppvOut); - - HRESULT (STDMETHODCALLTYPE *BindToStorage)( - IShellFolder2* This, - LPCITEMIDLIST pidl, - LPBC pbcReserved, - REFIID riid, - void** ppvObj); - - HRESULT (STDMETHODCALLTYPE *CompareIDs)( - IShellFolder2* This, - LPARAM lParam, - LPCITEMIDLIST pidl1, - LPCITEMIDLIST pidl2); - - HRESULT (STDMETHODCALLTYPE *CreateViewObject)( - IShellFolder2* This, - HWND hwndOwner, - REFIID riid, - void** ppvOut); - - HRESULT (STDMETHODCALLTYPE *GetAttributesOf)( - IShellFolder2* This, - UINT cidl, - LPCITEMIDLIST* apidl, - SFGAOF* rgfInOut); - - HRESULT (STDMETHODCALLTYPE *GetUIObjectOf)( - IShellFolder2* This, - HWND hwndOwner, - UINT cidl, - LPCITEMIDLIST* apidl, - REFIID riid, - UINT* prgfInOut, - void** ppvOut); - - HRESULT (STDMETHODCALLTYPE *GetDisplayNameOf)( - IShellFolder2* This, - LPCITEMIDLIST pidl, - SHGDNF uFlags, - STRRET* lpName); - - HRESULT (STDMETHODCALLTYPE *SetNameOf)( - IShellFolder2* This, - HWND hwnd, - LPCITEMIDLIST pidl, - LPCOLESTR lpszName, - SHGDNF uFlags, - LPITEMIDLIST* ppidlOut); - - /*** IShellFolder2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetDefaultSearchGUID)( - IShellFolder2* This, - GUID* lpguid); - - HRESULT (STDMETHODCALLTYPE *EnumSearches)( - IShellFolder2* This, - IEnumExtraSearch** ppenum); - - HRESULT (STDMETHODCALLTYPE *GetDefaultColumn)( - IShellFolder2* This, - DWORD dwReserved, - ULONG* pSort, - ULONG* pDisplay); - - HRESULT (STDMETHODCALLTYPE *GetDefaultColumnState)( - IShellFolder2* This, - UINT iColumn, - SHCOLSTATEF* pcsFlags); - - HRESULT (STDMETHODCALLTYPE *GetDetailsEx)( - IShellFolder2* This, - LPCITEMIDLIST pidl, - const SHCOLUMNID* pscid, - VARIANT* pv); - - HRESULT (STDMETHODCALLTYPE *GetDetailsOf)( - IShellFolder2* This, - LPCITEMIDLIST pidl, - UINT iColumn, - SHELLDETAILS* psd); - - HRESULT (STDMETHODCALLTYPE *MapColumnToSCID)( - IShellFolder2* This, - UINT iColumn, - SHCOLUMNID* pscid); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IShellFolder2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IShellFolder2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IShellFolder2_Release(p) (p)->lpVtbl->Release(p) -/*** IShellFolder methods ***/ -#define IShellFolder2_ParseDisplayName(p,a,b,c,d,e,f) (p)->lpVtbl->ParseDisplayName(p,a,b,c,d,e,f) -#define IShellFolder2_EnumObjects(p,a,b,c) (p)->lpVtbl->EnumObjects(p,a,b,c) -#define IShellFolder2_BindToObject(p,a,b,c,d) (p)->lpVtbl->BindToObject(p,a,b,c,d) -#define IShellFolder2_BindToStorage(p,a,b,c,d) (p)->lpVtbl->BindToStorage(p,a,b,c,d) -#define IShellFolder2_CompareIDs(p,a,b,c) (p)->lpVtbl->CompareIDs(p,a,b,c) -#define IShellFolder2_CreateViewObject(p,a,b,c) (p)->lpVtbl->CreateViewObject(p,a,b,c) -#define IShellFolder2_GetAttributesOf(p,a,b,c) (p)->lpVtbl->GetAttributesOf(p,a,b,c) -#define IShellFolder2_GetUIObjectOf(p,a,b,c,d,e,f) (p)->lpVtbl->GetUIObjectOf(p,a,b,c,d,e,f) -#define IShellFolder2_GetDisplayNameOf(p,a,b,c) (p)->lpVtbl->GetDisplayNameOf(p,a,b,c) -#define IShellFolder2_SetNameOf(p,a,b,c,d,e) (p)->lpVtbl->SetNameOf(p,a,b,c,d,e) -/*** IShellFolder2 methods ***/ -#define IShellFolder2_GetDefaultSearchGUID(p,a) (p)->lpVtbl->GetDefaultSearchGUID(p,a) -#define IShellFolder2_EnumSearches(p,a) (p)->lpVtbl->EnumSearches(p,a) -#define IShellFolder2_GetDefaultColumn(p,a,b,c) (p)->lpVtbl->GetDefaultColumn(p,a,b,c) -#define IShellFolder2_GetDefaultColumnState(p,a,b) (p)->lpVtbl->GetDefaultColumnState(p,a,b) -#define IShellFolder2_GetDetailsEx(p,a,b,c) (p)->lpVtbl->GetDetailsEx(p,a,b,c) -#define IShellFolder2_GetDetailsOf(p,a,b,c) (p)->lpVtbl->GetDetailsOf(p,a,b,c) -#define IShellFolder2_MapColumnToSCID(p,a,b) (p)->lpVtbl->MapColumnToSCID(p,a,b) -#endif - -#endif - -#define IShellFolder2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IShellFolder methods ***/ \ - STDMETHOD_(HRESULT,ParseDisplayName)(THIS_ HWND hwndOwner, LPBC pbcReserved, LPOLESTR lpszDisplayName, ULONG* pchEaten, LPITEMIDLIST* ppidl, ULONG* pdwAttributes) PURE; \ - STDMETHOD_(HRESULT,EnumObjects)(THIS_ HWND hwndOwner, SHCONTF grfFlags, IEnumIDList** ppenumIDList) PURE; \ - STDMETHOD_(HRESULT,BindToObject)(THIS_ LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, void** ppvOut) PURE; \ - STDMETHOD_(HRESULT,BindToStorage)(THIS_ LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, void** ppvObj) PURE; \ - STDMETHOD_(HRESULT,CompareIDs)(THIS_ LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2) PURE; \ - STDMETHOD_(HRESULT,CreateViewObject)(THIS_ HWND hwndOwner, REFIID riid, void** ppvOut) PURE; \ - STDMETHOD_(HRESULT,GetAttributesOf)(THIS_ UINT cidl, LPCITEMIDLIST* apidl, SFGAOF* rgfInOut) PURE; \ - STDMETHOD_(HRESULT,GetUIObjectOf)(THIS_ HWND hwndOwner, UINT cidl, LPCITEMIDLIST* apidl, REFIID riid, UINT* prgfInOut, void** ppvOut) PURE; \ - STDMETHOD_(HRESULT,GetDisplayNameOf)(THIS_ LPCITEMIDLIST pidl, SHGDNF uFlags, STRRET* lpName) PURE; \ - STDMETHOD_(HRESULT,SetNameOf)(THIS_ HWND hwnd, LPCITEMIDLIST pidl, LPCOLESTR lpszName, SHGDNF uFlags, LPITEMIDLIST* ppidlOut) PURE; \ - /*** IShellFolder2 methods ***/ \ - STDMETHOD_(HRESULT,GetDefaultSearchGUID)(THIS_ GUID* lpguid) PURE; \ - STDMETHOD_(HRESULT,EnumSearches)(THIS_ IEnumExtraSearch** ppenum) PURE; \ - STDMETHOD_(HRESULT,GetDefaultColumn)(THIS_ DWORD dwReserved, ULONG* pSort, ULONG* pDisplay) PURE; \ - STDMETHOD_(HRESULT,GetDefaultColumnState)(THIS_ UINT iColumn, SHCOLSTATEF* pcsFlags) PURE; \ - STDMETHOD_(HRESULT,GetDetailsEx)(THIS_ LPCITEMIDLIST pidl, const SHCOLUMNID* pscid, VARIANT* pv) PURE; \ - STDMETHOD_(HRESULT,GetDetailsOf)(THIS_ LPCITEMIDLIST pidl, UINT iColumn, SHELLDETAILS* psd) PURE; \ - STDMETHOD_(HRESULT,MapColumnToSCID)(THIS_ UINT iColumn, SHCOLUMNID* pscid) PURE; - -HRESULT CALLBACK IShellFolder2_GetDefaultSearchGUID_Proxy( - IShellFolder2* This, - GUID* lpguid); -void __RPC_STUB IShellFolder2_GetDefaultSearchGUID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder2_EnumSearches_Proxy( - IShellFolder2* This, - IEnumExtraSearch** ppenum); -void __RPC_STUB IShellFolder2_EnumSearches_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder2_GetDefaultColumn_Proxy( - IShellFolder2* This, - DWORD dwReserved, - ULONG* pSort, - ULONG* pDisplay); -void __RPC_STUB IShellFolder2_GetDefaultColumn_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder2_GetDefaultColumnState_Proxy( - IShellFolder2* This, - UINT iColumn, - SHCOLSTATEF* pcsFlags); -void __RPC_STUB IShellFolder2_GetDefaultColumnState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder2_GetDetailsEx_Proxy( - IShellFolder2* This, - LPCITEMIDLIST pidl, - const SHCOLUMNID* pscid, - VARIANT* pv); -void __RPC_STUB IShellFolder2_GetDetailsEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder2_GetDetailsOf_Proxy( - IShellFolder2* This, - LPCITEMIDLIST pidl, - UINT iColumn, - SHELLDETAILS* psd); -void __RPC_STUB IShellFolder2_GetDetailsOf_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellFolder2_MapColumnToSCID_Proxy( - IShellFolder2* This, - UINT iColumn, - SHCOLUMNID* pscid); -void __RPC_STUB IShellFolder2_MapColumnToSCID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IShellFolder2_INTERFACE_DEFINED__ */ - -typedef char *LPVIEWSETTINGS; - -typedef enum { - FWF_AUTOARRANGE = 0x1, - FWF_ABBREVIATEDNAMES = 0x2, - FWF_SNAPTOGRID = 0x4, - FWF_OWNERDATA = 0x8, - FWF_BESTFITWINDOW = 0x10, - FWF_DESKTOP = 0x20, - FWF_SINGLESEL = 0x40, - FWF_NOSUBFOLDERS = 0x80, - FWF_TRANSPARENT = 0x100, - FWF_NOCLIENTEDGE = 0x200, - FWF_NOSCROLL = 0x400, - FWF_ALIGNLEFT = 0x800, - FWF_NOICONS = 0x1000, - FWF_SHOWSELALWAYS = 0x2000, - FWF_NOVISIBLE = 0x4000, - FWF_SINGLECLICKACTIVATE = 0x8000, - FWF_NOWEBVIEW = 0x10000, - FWF_HIDEFILENAMES = 0x20000, - FWF_CHECKSELECT = 0x40000 -} FOLDERFLAGS; - -typedef enum { - FVM_ICON = 1, - FVM_FIRST = FVM_ICON, - FVM_SMALLICON = 2, - FVM_LIST = 3, - FVM_DETAILS = 4, - FVM_THUMBNAIL = 5, - FVM_TILE = 6, - FVM_THUMBSTRIP = 7, - FVM_LAST = FVM_THUMBSTRIP -} FOLDERVIEWMODE; - -typedef struct { - UINT ViewMode; - UINT fFlags; -} FOLDERSETTINGS, *PFOLDERSETTINGS, *LPFOLDERSETTINGS; - -typedef const FOLDERSETTINGS *LPCFOLDERSETTINGS; - -#ifndef __IShellBrowser_FWD_DEFINED__ -#define __IShellBrowser_FWD_DEFINED__ -typedef struct IShellBrowser IShellBrowser; -#endif - -#ifndef __IShellView_FWD_DEFINED__ -#define __IShellView_FWD_DEFINED__ -typedef struct IShellView IShellView; -#endif - -typedef IShellView *LPSHELLVIEW; - -#define SVSI_DESELECT 0x00000000 -#define SVSI_SELECT 0x00000001 -#define SVSI_EDIT 0x00000003 -#define SVSI_DESELECTOTHERS 0x00000004 -#define SVSI_ENSUREVISIBLE 0x00000008 -#define SVSI_FOCUSED 0x00000010 -#define SVSI_TRANSLATEPT 0x00000020 -#define SVSI_SELECTIONMARK 0x00000040 -#define SVSI_POSITIONITEM 0x00000080 -#define SVSI_CHECK 0x00000100 -#define SVSI_NOSTATECHANGE 0x80000000 -typedef UINT SVSIF; - -typedef enum { - SVGIO_BACKGROUND = 0x0, - SVGIO_SELECTION = 0x1, - SVGIO_ALLVIEW = 0x2, - SVGIO_CHECKED = 0x3, - SVGIO_TYPE_MASK = 0xf, - SVGIO_FLAG_VIEWORDER = 0x80000000 -} SVGIO; - -typedef enum { - SVUIA_DEACTIVATE = 0, - SVUIA_ACTIVATE_NOFOCUS = 1, - SVUIA_ACTIVATE_FOCUS = 2, - SVUIA_INPLACEACTIVATE = 3 -} SVUIA_STATUS; - -#if 0 -typedef LPARAM LPFNSVADDPROPSHEETPAGE; - -#else -#include -typedef LPFNADDPROPSHEETPAGE LPFNSVADDPROPSHEETPAGE; -#endif -/***************************************************************************** - * IShellView interface - */ -#ifndef __IShellView_INTERFACE_DEFINED__ -#define __IShellView_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IShellView, 0x000214e3, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IShellView : public IOleWindow -{ - virtual HRESULT STDMETHODCALLTYPE TranslateAccelerator( - MSG* pmsg) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnableModeless( - BOOL fEnable) = 0; - - virtual HRESULT STDMETHODCALLTYPE UIActivate( - UINT uState) = 0; - - virtual HRESULT STDMETHODCALLTYPE Refresh( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateViewWindow( - IShellView* psvPrevious, - LPCFOLDERSETTINGS lpfs, - IShellBrowser* psb, - RECT* prcView, - HWND* phWnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE DestroyViewWindow( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentInfo( - LPFOLDERSETTINGS lpfs) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddPropertySheetPages( - DWORD dwReserved, - LPFNSVADDPROPSHEETPAGE pfn, - LPARAM lparam) = 0; - - virtual HRESULT STDMETHODCALLTYPE SaveViewState( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SelectItem( - LPCITEMIDLIST pidlItem, - SVSIF uFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetItemObject( - UINT uItem, - REFIID riid, - void** ppv) = 0; - -}; -#else -typedef struct IShellViewVtbl IShellViewVtbl; -struct IShellView { - const IShellViewVtbl* lpVtbl; -}; -struct IShellViewVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IShellView* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IShellView* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IShellView* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IShellView* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IShellView* This, - BOOL fEnterMode); - - /*** IShellView methods ***/ - HRESULT (STDMETHODCALLTYPE *TranslateAccelerator)( - IShellView* This, - MSG* pmsg); - - HRESULT (STDMETHODCALLTYPE *EnableModeless)( - IShellView* This, - BOOL fEnable); - - HRESULT (STDMETHODCALLTYPE *UIActivate)( - IShellView* This, - UINT uState); - - HRESULT (STDMETHODCALLTYPE *Refresh)( - IShellView* This); - - HRESULT (STDMETHODCALLTYPE *CreateViewWindow)( - IShellView* This, - IShellView* psvPrevious, - LPCFOLDERSETTINGS lpfs, - IShellBrowser* psb, - RECT* prcView, - HWND* phWnd); - - HRESULT (STDMETHODCALLTYPE *DestroyViewWindow)( - IShellView* This); - - HRESULT (STDMETHODCALLTYPE *GetCurrentInfo)( - IShellView* This, - LPFOLDERSETTINGS lpfs); - - HRESULT (STDMETHODCALLTYPE *AddPropertySheetPages)( - IShellView* This, - DWORD dwReserved, - LPFNSVADDPROPSHEETPAGE pfn, - LPARAM lparam); - - HRESULT (STDMETHODCALLTYPE *SaveViewState)( - IShellView* This); - - HRESULT (STDMETHODCALLTYPE *SelectItem)( - IShellView* This, - LPCITEMIDLIST pidlItem, - SVSIF uFlags); - - HRESULT (STDMETHODCALLTYPE *GetItemObject)( - IShellView* This, - UINT uItem, - REFIID riid, - void** ppv); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IShellView_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IShellView_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IShellView_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IShellView_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IShellView_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IShellView methods ***/ -#define IShellView_TranslateAccelerator(p,a) (p)->lpVtbl->TranslateAccelerator(p,a) -#define IShellView_EnableModeless(p,a) (p)->lpVtbl->EnableModeless(p,a) -#define IShellView_UIActivate(p,a) (p)->lpVtbl->UIActivate(p,a) -#define IShellView_Refresh(p) (p)->lpVtbl->Refresh(p) -#define IShellView_CreateViewWindow(p,a,b,c,d,e) (p)->lpVtbl->CreateViewWindow(p,a,b,c,d,e) -#define IShellView_DestroyViewWindow(p) (p)->lpVtbl->DestroyViewWindow(p) -#define IShellView_GetCurrentInfo(p,a) (p)->lpVtbl->GetCurrentInfo(p,a) -#define IShellView_AddPropertySheetPages(p,a,b,c) (p)->lpVtbl->AddPropertySheetPages(p,a,b,c) -#define IShellView_SaveViewState(p) (p)->lpVtbl->SaveViewState(p) -#define IShellView_SelectItem(p,a,b) (p)->lpVtbl->SelectItem(p,a,b) -#define IShellView_GetItemObject(p,a,b,c) (p)->lpVtbl->GetItemObject(p,a,b,c) -#endif - -#endif - -#define IShellView_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IShellView methods ***/ \ - STDMETHOD_(HRESULT,TranslateAccelerator)(THIS_ MSG* pmsg) PURE; \ - STDMETHOD_(HRESULT,EnableModeless)(THIS_ BOOL fEnable) PURE; \ - STDMETHOD_(HRESULT,UIActivate)(THIS_ UINT uState) PURE; \ - STDMETHOD_(HRESULT,Refresh)(THIS) PURE; \ - STDMETHOD_(HRESULT,CreateViewWindow)(THIS_ IShellView* psvPrevious, LPCFOLDERSETTINGS lpfs, IShellBrowser* psb, RECT* prcView, HWND* phWnd) PURE; \ - STDMETHOD_(HRESULT,DestroyViewWindow)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetCurrentInfo)(THIS_ LPFOLDERSETTINGS lpfs) PURE; \ - STDMETHOD_(HRESULT,AddPropertySheetPages)(THIS_ DWORD dwReserved, LPFNSVADDPROPSHEETPAGE pfn, LPARAM lparam) PURE; \ - STDMETHOD_(HRESULT,SaveViewState)(THIS) PURE; \ - STDMETHOD_(HRESULT,SelectItem)(THIS_ LPCITEMIDLIST pidlItem, SVSIF uFlags) PURE; \ - STDMETHOD_(HRESULT,GetItemObject)(THIS_ UINT uItem, REFIID riid, void** ppv) PURE; - -HRESULT CALLBACK IShellView_TranslateAccelerator_Proxy( - IShellView* This, - MSG* pmsg); -void __RPC_STUB IShellView_TranslateAccelerator_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellView_EnableModeless_Proxy( - IShellView* This, - BOOL fEnable); -void __RPC_STUB IShellView_EnableModeless_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellView_UIActivate_Proxy( - IShellView* This, - UINT uState); -void __RPC_STUB IShellView_UIActivate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellView_Refresh_Proxy( - IShellView* This); -void __RPC_STUB IShellView_Refresh_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellView_CreateViewWindow_Proxy( - IShellView* This, - IShellView* psvPrevious, - LPCFOLDERSETTINGS lpfs, - IShellBrowser* psb, - RECT* prcView, - HWND* phWnd); -void __RPC_STUB IShellView_CreateViewWindow_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellView_DestroyViewWindow_Proxy( - IShellView* This); -void __RPC_STUB IShellView_DestroyViewWindow_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellView_GetCurrentInfo_Proxy( - IShellView* This, - LPFOLDERSETTINGS lpfs); -void __RPC_STUB IShellView_GetCurrentInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellView_SaveViewState_Proxy( - IShellView* This); -void __RPC_STUB IShellView_SaveViewState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellView_SelectItem_Proxy( - IShellView* This, - LPCITEMIDLIST pidlItem, - SVSIF uFlags); -void __RPC_STUB IShellView_SelectItem_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellView_GetItemObject_Proxy( - IShellView* This, - UINT uItem, - REFIID riid, - void** ppv); -void __RPC_STUB IShellView_GetItemObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IShellView_INTERFACE_DEFINED__ */ - -typedef IShellBrowser *LPSHELLBROWSER; - -#define SBSP_DEFBROWSER 0x00000000 -#define SBSP_SAMEBROWSER 0x00000001 -#define SBSP_NEWBROWSER 0x00000002 -#define SBSP_DEFMODE 0x00000000 -#define SBSP_OPENMODE 0x00000010 -#define SBSP_EXPLOREMODE 0x00000020 -#define SBSP_HELPMODE 0x00000040 -#define SBSP_NOTRANSFERHIST 0x00000080 -#define SBSP_ABSOLUTE 0x00000000 -#define SBSP_RELATIVE 0x00001000 -#define SBSP_PARENT 0x00002000 -#define SBSP_NAVIGATEBACK 0x00004000 -#define SBSP_NAVIGATEFORWARD 0x00008000 -#define SBSP_ALLOW_AUTONAVIGATE 0x00010000 -#define SBSP_NOAUTOSELECT 0x04000000 -#define SBSP_WRITENOHISTORY 0x08000000 -#define SBSP_REDIRECT 0x40000000 -#define SBSP_INITIATEDBYHLINKFRAME 0x80000000 -#define FCW_STATUS 0x0001 -#define FCW_TOOLBAR 0x0002 -#define FCW_TREE 0x0003 -#define FCW_INTERNETBAR 0x0006 -#define FCW_PROGRESS 0x0008 -#define FCT_MERGE 0x0001 -#define FCT_CONFIGABLE 0x0002 -#define FCT_ADDTOEND 0x0004 -#if 0 -typedef LPARAM LPTBBUTTONSB; - -#else -#include -typedef LPTBBUTTON LPTBBUTTONSB; -#endif -/***************************************************************************** - * IShellBrowser interface - */ -#ifndef __IShellBrowser_INTERFACE_DEFINED__ -#define __IShellBrowser_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IShellBrowser, 0x000214e2, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IShellBrowser : public IOleWindow -{ - virtual HRESULT STDMETHODCALLTYPE InsertMenusSB( - HMENU hmenuShared, - LPOLEMENUGROUPWIDTHS lpMenuWidths) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMenuSB( - HMENU hmenuShared, - HOLEMENU holemenuReserved, - HWND hwndActiveObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveMenusSB( - HMENU hmenuShared) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetStatusTextSB( - LPCOLESTR pszStatusText) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnableModelessSB( - BOOL fEnable) = 0; - - virtual HRESULT STDMETHODCALLTYPE TranslateAcceleratorSB( - MSG* pmsg, - WORD wID) = 0; - - virtual HRESULT STDMETHODCALLTYPE BrowseObject( - LPCITEMIDLIST pidl, - UINT wFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetViewStateStream( - DWORD grfMode, - IStream** ppStrm) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetControlWindow( - UINT id, - HWND* phwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SendControlMsg( - UINT id, - UINT uMsg, - WPARAM wParam, - LPARAM lParam, - LRESULT* pret) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryActiveShellView( - IShellView** ppshv) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnViewWindowActive( - IShellView* pshv) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetToolbarItems( - LPTBBUTTONSB lpButtons, - UINT nButtons, - UINT uFlags) = 0; - -}; -#else -typedef struct IShellBrowserVtbl IShellBrowserVtbl; -struct IShellBrowser { - const IShellBrowserVtbl* lpVtbl; -}; -struct IShellBrowserVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IShellBrowser* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IShellBrowser* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IShellBrowser* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IShellBrowser* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IShellBrowser* This, - BOOL fEnterMode); - - /*** IShellBrowser methods ***/ - HRESULT (STDMETHODCALLTYPE *InsertMenusSB)( - IShellBrowser* This, - HMENU hmenuShared, - LPOLEMENUGROUPWIDTHS lpMenuWidths); - - HRESULT (STDMETHODCALLTYPE *SetMenuSB)( - IShellBrowser* This, - HMENU hmenuShared, - HOLEMENU holemenuReserved, - HWND hwndActiveObject); - - HRESULT (STDMETHODCALLTYPE *RemoveMenusSB)( - IShellBrowser* This, - HMENU hmenuShared); - - HRESULT (STDMETHODCALLTYPE *SetStatusTextSB)( - IShellBrowser* This, - LPCOLESTR pszStatusText); - - HRESULT (STDMETHODCALLTYPE *EnableModelessSB)( - IShellBrowser* This, - BOOL fEnable); - - HRESULT (STDMETHODCALLTYPE *TranslateAcceleratorSB)( - IShellBrowser* This, - MSG* pmsg, - WORD wID); - - HRESULT (STDMETHODCALLTYPE *BrowseObject)( - IShellBrowser* This, - LPCITEMIDLIST pidl, - UINT wFlags); - - HRESULT (STDMETHODCALLTYPE *GetViewStateStream)( - IShellBrowser* This, - DWORD grfMode, - IStream** ppStrm); - - HRESULT (STDMETHODCALLTYPE *GetControlWindow)( - IShellBrowser* This, - UINT id, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *SendControlMsg)( - IShellBrowser* This, - UINT id, - UINT uMsg, - WPARAM wParam, - LPARAM lParam, - LRESULT* pret); - - HRESULT (STDMETHODCALLTYPE *QueryActiveShellView)( - IShellBrowser* This, - IShellView** ppshv); - - HRESULT (STDMETHODCALLTYPE *OnViewWindowActive)( - IShellBrowser* This, - IShellView* pshv); - - HRESULT (STDMETHODCALLTYPE *SetToolbarItems)( - IShellBrowser* This, - LPTBBUTTONSB lpButtons, - UINT nButtons, - UINT uFlags); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IShellBrowser_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IShellBrowser_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IShellBrowser_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IShellBrowser_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IShellBrowser_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IShellBrowser methods ***/ -#define IShellBrowser_InsertMenusSB(p,a,b) (p)->lpVtbl->InsertMenusSB(p,a,b) -#define IShellBrowser_SetMenuSB(p,a,b,c) (p)->lpVtbl->SetMenuSB(p,a,b,c) -#define IShellBrowser_RemoveMenusSB(p,a) (p)->lpVtbl->RemoveMenusSB(p,a) -#define IShellBrowser_SetStatusTextSB(p,a) (p)->lpVtbl->SetStatusTextSB(p,a) -#define IShellBrowser_EnableModelessSB(p,a) (p)->lpVtbl->EnableModelessSB(p,a) -#define IShellBrowser_TranslateAcceleratorSB(p,a,b) (p)->lpVtbl->TranslateAcceleratorSB(p,a,b) -#define IShellBrowser_BrowseObject(p,a,b) (p)->lpVtbl->BrowseObject(p,a,b) -#define IShellBrowser_GetViewStateStream(p,a,b) (p)->lpVtbl->GetViewStateStream(p,a,b) -#define IShellBrowser_GetControlWindow(p,a,b) (p)->lpVtbl->GetControlWindow(p,a,b) -#define IShellBrowser_SendControlMsg(p,a,b,c,d,e) (p)->lpVtbl->SendControlMsg(p,a,b,c,d,e) -#define IShellBrowser_QueryActiveShellView(p,a) (p)->lpVtbl->QueryActiveShellView(p,a) -#define IShellBrowser_OnViewWindowActive(p,a) (p)->lpVtbl->OnViewWindowActive(p,a) -#define IShellBrowser_SetToolbarItems(p,a,b,c) (p)->lpVtbl->SetToolbarItems(p,a,b,c) -#endif - -#endif - -#define IShellBrowser_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IShellBrowser methods ***/ \ - STDMETHOD_(HRESULT,InsertMenusSB)(THIS_ HMENU hmenuShared, LPOLEMENUGROUPWIDTHS lpMenuWidths) PURE; \ - STDMETHOD_(HRESULT,SetMenuSB)(THIS_ HMENU hmenuShared, HOLEMENU holemenuReserved, HWND hwndActiveObject) PURE; \ - STDMETHOD_(HRESULT,RemoveMenusSB)(THIS_ HMENU hmenuShared) PURE; \ - STDMETHOD_(HRESULT,SetStatusTextSB)(THIS_ LPCOLESTR pszStatusText) PURE; \ - STDMETHOD_(HRESULT,EnableModelessSB)(THIS_ BOOL fEnable) PURE; \ - STDMETHOD_(HRESULT,TranslateAcceleratorSB)(THIS_ MSG* pmsg, WORD wID) PURE; \ - STDMETHOD_(HRESULT,BrowseObject)(THIS_ LPCITEMIDLIST pidl, UINT wFlags) PURE; \ - STDMETHOD_(HRESULT,GetViewStateStream)(THIS_ DWORD grfMode, IStream** ppStrm) PURE; \ - STDMETHOD_(HRESULT,GetControlWindow)(THIS_ UINT id, HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,SendControlMsg)(THIS_ UINT id, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT* pret) PURE; \ - STDMETHOD_(HRESULT,QueryActiveShellView)(THIS_ IShellView** ppshv) PURE; \ - STDMETHOD_(HRESULT,OnViewWindowActive)(THIS_ IShellView* pshv) PURE; \ - STDMETHOD_(HRESULT,SetToolbarItems)(THIS_ LPTBBUTTONSB lpButtons, UINT nButtons, UINT uFlags) PURE; - -HRESULT CALLBACK IShellBrowser_InsertMenusSB_Proxy( - IShellBrowser* This, - HMENU hmenuShared, - LPOLEMENUGROUPWIDTHS lpMenuWidths); -void __RPC_STUB IShellBrowser_InsertMenusSB_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellBrowser_SetMenuSB_Proxy( - IShellBrowser* This, - HMENU hmenuShared, - HOLEMENU holemenuReserved, - HWND hwndActiveObject); -void __RPC_STUB IShellBrowser_SetMenuSB_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellBrowser_RemoveMenusSB_Proxy( - IShellBrowser* This, - HMENU hmenuShared); -void __RPC_STUB IShellBrowser_RemoveMenusSB_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellBrowser_SetStatusTextSB_Proxy( - IShellBrowser* This, - LPCOLESTR pszStatusText); -void __RPC_STUB IShellBrowser_SetStatusTextSB_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellBrowser_EnableModelessSB_Proxy( - IShellBrowser* This, - BOOL fEnable); -void __RPC_STUB IShellBrowser_EnableModelessSB_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellBrowser_TranslateAcceleratorSB_Proxy( - IShellBrowser* This, - MSG* pmsg, - WORD wID); -void __RPC_STUB IShellBrowser_TranslateAcceleratorSB_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellBrowser_BrowseObject_Proxy( - IShellBrowser* This, - LPCITEMIDLIST pidl, - UINT wFlags); -void __RPC_STUB IShellBrowser_BrowseObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellBrowser_GetViewStateStream_Proxy( - IShellBrowser* This, - DWORD grfMode, - IStream** ppStrm); -void __RPC_STUB IShellBrowser_GetViewStateStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellBrowser_GetControlWindow_Proxy( - IShellBrowser* This, - UINT id, - HWND* phwnd); -void __RPC_STUB IShellBrowser_GetControlWindow_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellBrowser_QueryActiveShellView_Proxy( - IShellBrowser* This, - IShellView** ppshv); -void __RPC_STUB IShellBrowser_QueryActiveShellView_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellBrowser_OnViewWindowActive_Proxy( - IShellBrowser* This, - IShellView* pshv); -void __RPC_STUB IShellBrowser_OnViewWindowActive_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IShellBrowser_INTERFACE_DEFINED__ */ - -#ifndef __IShellLinkA_FWD_DEFINED__ -#define __IShellLinkA_FWD_DEFINED__ -typedef struct IShellLinkA IShellLinkA; -#endif - -typedef enum { - SLR_NO_UI = 0x1, - SLR_ANY_MATCH = 0x2, - SLR_UPDATE = 0x4, - SLR_NOUPDATE = 0x8, - SLR_NOSEARCH = 0x10, - SLR_NOTRACK = 0x20, - SLR_NOLINKINFO = 0x40, - SLR_INVOKE_MSI = 0x80, - SLR_NO_UI_WITH_MSG_PUMP = 0x101 -} SLR_FLAGS; - -typedef enum { - SLGP_SHORTPATH = 0x1, - SLGP_UNCPRIORITY = 0x2, - SLGP_RAWPATH = 0x4 -} SLGP_FLAGS; - -/***************************************************************************** - * IShellLinkA interface - */ -#ifndef __IShellLinkA_INTERFACE_DEFINED__ -#define __IShellLinkA_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IShellLinkA, 0x000214ee, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IShellLinkA : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetPath( - LPSTR pszFile, - int cch, - WIN32_FIND_DATAA* pfd, - DWORD fFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetIDList( - LPITEMIDLIST* ppidl) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetIDList( - LPCITEMIDLIST pidl) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDescription( - LPSTR pszName, - int cch) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDescription( - LPCSTR pszName) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetWorkingDirectory( - LPSTR pszDir, - int cch) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetWorkingDirectory( - LPCSTR pszDir) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetArguments( - LPSTR pszArgs, - int cch) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetArguments( - LPCSTR pszArgs) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetHotkey( - WORD* pwHotkey) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHotkey( - WORD wHotkey) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetShowCmd( - int* piShowCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetShowCmd( - int iShowCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetIconLocation( - LPSTR pszIconPath, - int cch, - int* piIcon) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetIconLocation( - LPCSTR pszIconPath, - int iIcon) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRelativePath( - LPCSTR pszPathRel, - DWORD dwReserved) = 0; - - virtual HRESULT STDMETHODCALLTYPE Resolve( - HWND hwnd, - DWORD fFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetPath( - LPCSTR pszFile) = 0; - -}; -#else -typedef struct IShellLinkAVtbl IShellLinkAVtbl; -struct IShellLinkA { - const IShellLinkAVtbl* lpVtbl; -}; -struct IShellLinkAVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IShellLinkA* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IShellLinkA* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IShellLinkA* This); - - /*** IShellLinkA methods ***/ - HRESULT (STDMETHODCALLTYPE *GetPath)( - IShellLinkA* This, - LPSTR pszFile, - int cch, - WIN32_FIND_DATAA* pfd, - DWORD fFlags); - - HRESULT (STDMETHODCALLTYPE *GetIDList)( - IShellLinkA* This, - LPITEMIDLIST* ppidl); - - HRESULT (STDMETHODCALLTYPE *SetIDList)( - IShellLinkA* This, - LPCITEMIDLIST pidl); - - HRESULT (STDMETHODCALLTYPE *GetDescription)( - IShellLinkA* This, - LPSTR pszName, - int cch); - - HRESULT (STDMETHODCALLTYPE *SetDescription)( - IShellLinkA* This, - LPCSTR pszName); - - HRESULT (STDMETHODCALLTYPE *GetWorkingDirectory)( - IShellLinkA* This, - LPSTR pszDir, - int cch); - - HRESULT (STDMETHODCALLTYPE *SetWorkingDirectory)( - IShellLinkA* This, - LPCSTR pszDir); - - HRESULT (STDMETHODCALLTYPE *GetArguments)( - IShellLinkA* This, - LPSTR pszArgs, - int cch); - - HRESULT (STDMETHODCALLTYPE *SetArguments)( - IShellLinkA* This, - LPCSTR pszArgs); - - HRESULT (STDMETHODCALLTYPE *GetHotkey)( - IShellLinkA* This, - WORD* pwHotkey); - - HRESULT (STDMETHODCALLTYPE *SetHotkey)( - IShellLinkA* This, - WORD wHotkey); - - HRESULT (STDMETHODCALLTYPE *GetShowCmd)( - IShellLinkA* This, - int* piShowCmd); - - HRESULT (STDMETHODCALLTYPE *SetShowCmd)( - IShellLinkA* This, - int iShowCmd); - - HRESULT (STDMETHODCALLTYPE *GetIconLocation)( - IShellLinkA* This, - LPSTR pszIconPath, - int cch, - int* piIcon); - - HRESULT (STDMETHODCALLTYPE *SetIconLocation)( - IShellLinkA* This, - LPCSTR pszIconPath, - int iIcon); - - HRESULT (STDMETHODCALLTYPE *SetRelativePath)( - IShellLinkA* This, - LPCSTR pszPathRel, - DWORD dwReserved); - - HRESULT (STDMETHODCALLTYPE *Resolve)( - IShellLinkA* This, - HWND hwnd, - DWORD fFlags); - - HRESULT (STDMETHODCALLTYPE *SetPath)( - IShellLinkA* This, - LPCSTR pszFile); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IShellLinkA_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IShellLinkA_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IShellLinkA_Release(p) (p)->lpVtbl->Release(p) -/*** IShellLinkA methods ***/ -#define IShellLinkA_GetPath(p,a,b,c,d) (p)->lpVtbl->GetPath(p,a,b,c,d) -#define IShellLinkA_GetIDList(p,a) (p)->lpVtbl->GetIDList(p,a) -#define IShellLinkA_SetIDList(p,a) (p)->lpVtbl->SetIDList(p,a) -#define IShellLinkA_GetDescription(p,a,b) (p)->lpVtbl->GetDescription(p,a,b) -#define IShellLinkA_SetDescription(p,a) (p)->lpVtbl->SetDescription(p,a) -#define IShellLinkA_GetWorkingDirectory(p,a,b) (p)->lpVtbl->GetWorkingDirectory(p,a,b) -#define IShellLinkA_SetWorkingDirectory(p,a) (p)->lpVtbl->SetWorkingDirectory(p,a) -#define IShellLinkA_GetArguments(p,a,b) (p)->lpVtbl->GetArguments(p,a,b) -#define IShellLinkA_SetArguments(p,a) (p)->lpVtbl->SetArguments(p,a) -#define IShellLinkA_GetHotkey(p,a) (p)->lpVtbl->GetHotkey(p,a) -#define IShellLinkA_SetHotkey(p,a) (p)->lpVtbl->SetHotkey(p,a) -#define IShellLinkA_GetShowCmd(p,a) (p)->lpVtbl->GetShowCmd(p,a) -#define IShellLinkA_SetShowCmd(p,a) (p)->lpVtbl->SetShowCmd(p,a) -#define IShellLinkA_GetIconLocation(p,a,b,c) (p)->lpVtbl->GetIconLocation(p,a,b,c) -#define IShellLinkA_SetIconLocation(p,a,b) (p)->lpVtbl->SetIconLocation(p,a,b) -#define IShellLinkA_SetRelativePath(p,a,b) (p)->lpVtbl->SetRelativePath(p,a,b) -#define IShellLinkA_Resolve(p,a,b) (p)->lpVtbl->Resolve(p,a,b) -#define IShellLinkA_SetPath(p,a) (p)->lpVtbl->SetPath(p,a) -#endif - -#endif - -#define IShellLinkA_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IShellLinkA methods ***/ \ - STDMETHOD_(HRESULT,GetPath)(THIS_ LPSTR pszFile, int cch, WIN32_FIND_DATAA* pfd, DWORD fFlags) PURE; \ - STDMETHOD_(HRESULT,GetIDList)(THIS_ LPITEMIDLIST* ppidl) PURE; \ - STDMETHOD_(HRESULT,SetIDList)(THIS_ LPCITEMIDLIST pidl) PURE; \ - STDMETHOD_(HRESULT,GetDescription)(THIS_ LPSTR pszName, int cch) PURE; \ - STDMETHOD_(HRESULT,SetDescription)(THIS_ LPCSTR pszName) PURE; \ - STDMETHOD_(HRESULT,GetWorkingDirectory)(THIS_ LPSTR pszDir, int cch) PURE; \ - STDMETHOD_(HRESULT,SetWorkingDirectory)(THIS_ LPCSTR pszDir) PURE; \ - STDMETHOD_(HRESULT,GetArguments)(THIS_ LPSTR pszArgs, int cch) PURE; \ - STDMETHOD_(HRESULT,SetArguments)(THIS_ LPCSTR pszArgs) PURE; \ - STDMETHOD_(HRESULT,GetHotkey)(THIS_ WORD* pwHotkey) PURE; \ - STDMETHOD_(HRESULT,SetHotkey)(THIS_ WORD wHotkey) PURE; \ - STDMETHOD_(HRESULT,GetShowCmd)(THIS_ int* piShowCmd) PURE; \ - STDMETHOD_(HRESULT,SetShowCmd)(THIS_ int iShowCmd) PURE; \ - STDMETHOD_(HRESULT,GetIconLocation)(THIS_ LPSTR pszIconPath, int cch, int* piIcon) PURE; \ - STDMETHOD_(HRESULT,SetIconLocation)(THIS_ LPCSTR pszIconPath, int iIcon) PURE; \ - STDMETHOD_(HRESULT,SetRelativePath)(THIS_ LPCSTR pszPathRel, DWORD dwReserved) PURE; \ - STDMETHOD_(HRESULT,Resolve)(THIS_ HWND hwnd, DWORD fFlags) PURE; \ - STDMETHOD_(HRESULT,SetPath)(THIS_ LPCSTR pszFile) PURE; - -HRESULT CALLBACK IShellLinkA_GetPath_Proxy( - IShellLinkA* This, - LPSTR pszFile, - int cch, - WIN32_FIND_DATAA* pfd, - DWORD fFlags); -void __RPC_STUB IShellLinkA_GetPath_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_GetIDList_Proxy( - IShellLinkA* This, - LPITEMIDLIST* ppidl); -void __RPC_STUB IShellLinkA_GetIDList_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_SetIDList_Proxy( - IShellLinkA* This, - LPCITEMIDLIST pidl); -void __RPC_STUB IShellLinkA_SetIDList_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_GetDescription_Proxy( - IShellLinkA* This, - LPSTR pszName, - int cch); -void __RPC_STUB IShellLinkA_GetDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_SetDescription_Proxy( - IShellLinkA* This, - LPCSTR pszName); -void __RPC_STUB IShellLinkA_SetDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_GetWorkingDirectory_Proxy( - IShellLinkA* This, - LPSTR pszDir, - int cch); -void __RPC_STUB IShellLinkA_GetWorkingDirectory_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_SetWorkingDirectory_Proxy( - IShellLinkA* This, - LPCSTR pszDir); -void __RPC_STUB IShellLinkA_SetWorkingDirectory_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_GetArguments_Proxy( - IShellLinkA* This, - LPSTR pszArgs, - int cch); -void __RPC_STUB IShellLinkA_GetArguments_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_SetArguments_Proxy( - IShellLinkA* This, - LPCSTR pszArgs); -void __RPC_STUB IShellLinkA_SetArguments_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_GetHotkey_Proxy( - IShellLinkA* This, - WORD* pwHotkey); -void __RPC_STUB IShellLinkA_GetHotkey_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_SetHotkey_Proxy( - IShellLinkA* This, - WORD wHotkey); -void __RPC_STUB IShellLinkA_SetHotkey_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_GetShowCmd_Proxy( - IShellLinkA* This, - int* piShowCmd); -void __RPC_STUB IShellLinkA_GetShowCmd_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_SetShowCmd_Proxy( - IShellLinkA* This, - int iShowCmd); -void __RPC_STUB IShellLinkA_SetShowCmd_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_GetIconLocation_Proxy( - IShellLinkA* This, - LPSTR pszIconPath, - int cch, - int* piIcon); -void __RPC_STUB IShellLinkA_GetIconLocation_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_SetIconLocation_Proxy( - IShellLinkA* This, - LPCSTR pszIconPath, - int iIcon); -void __RPC_STUB IShellLinkA_SetIconLocation_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_SetRelativePath_Proxy( - IShellLinkA* This, - LPCSTR pszPathRel, - DWORD dwReserved); -void __RPC_STUB IShellLinkA_SetRelativePath_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_Resolve_Proxy( - IShellLinkA* This, - HWND hwnd, - DWORD fFlags); -void __RPC_STUB IShellLinkA_Resolve_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkA_SetPath_Proxy( - IShellLinkA* This, - LPCSTR pszFile); -void __RPC_STUB IShellLinkA_SetPath_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IShellLinkA_INTERFACE_DEFINED__ */ - -#ifndef __IShellLinkW_FWD_DEFINED__ -#define __IShellLinkW_FWD_DEFINED__ -typedef struct IShellLinkW IShellLinkW; -#endif - -/***************************************************************************** - * IShellLinkW interface - */ -#ifndef __IShellLinkW_INTERFACE_DEFINED__ -#define __IShellLinkW_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IShellLinkW, 0x000214f9, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IShellLinkW : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetPath( - LPWSTR pszFile, - int cch, - WIN32_FIND_DATAW* pfd, - DWORD fFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetIDList( - LPITEMIDLIST* ppidl) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetIDList( - LPCITEMIDLIST pidl) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDescription( - LPWSTR pszName, - int cch) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDescription( - LPCWSTR pszName) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetWorkingDirectory( - LPWSTR pszDir, - int cch) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetWorkingDirectory( - LPCWSTR pszDir) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetArguments( - LPWSTR pszArgs, - int cch) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetArguments( - LPCWSTR pszArgs) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetHotkey( - WORD* pwHotkey) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetHotkey( - WORD wHotkey) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetShowCmd( - int* piShowCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetShowCmd( - int iShowCmd) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetIconLocation( - LPWSTR pszIconPath, - int cch, - int* piIcon) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetIconLocation( - LPCWSTR pszIconPath, - int iIcon) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRelativePath( - LPCWSTR pszPathRel, - DWORD dwReserved) = 0; - - virtual HRESULT STDMETHODCALLTYPE Resolve( - HWND hwnd, - DWORD fFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetPath( - LPCWSTR pszFile) = 0; - -}; -#else -typedef struct IShellLinkWVtbl IShellLinkWVtbl; -struct IShellLinkW { - const IShellLinkWVtbl* lpVtbl; -}; -struct IShellLinkWVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IShellLinkW* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IShellLinkW* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IShellLinkW* This); - - /*** IShellLinkW methods ***/ - HRESULT (STDMETHODCALLTYPE *GetPath)( - IShellLinkW* This, - LPWSTR pszFile, - int cch, - WIN32_FIND_DATAW* pfd, - DWORD fFlags); - - HRESULT (STDMETHODCALLTYPE *GetIDList)( - IShellLinkW* This, - LPITEMIDLIST* ppidl); - - HRESULT (STDMETHODCALLTYPE *SetIDList)( - IShellLinkW* This, - LPCITEMIDLIST pidl); - - HRESULT (STDMETHODCALLTYPE *GetDescription)( - IShellLinkW* This, - LPWSTR pszName, - int cch); - - HRESULT (STDMETHODCALLTYPE *SetDescription)( - IShellLinkW* This, - LPCWSTR pszName); - - HRESULT (STDMETHODCALLTYPE *GetWorkingDirectory)( - IShellLinkW* This, - LPWSTR pszDir, - int cch); - - HRESULT (STDMETHODCALLTYPE *SetWorkingDirectory)( - IShellLinkW* This, - LPCWSTR pszDir); - - HRESULT (STDMETHODCALLTYPE *GetArguments)( - IShellLinkW* This, - LPWSTR pszArgs, - int cch); - - HRESULT (STDMETHODCALLTYPE *SetArguments)( - IShellLinkW* This, - LPCWSTR pszArgs); - - HRESULT (STDMETHODCALLTYPE *GetHotkey)( - IShellLinkW* This, - WORD* pwHotkey); - - HRESULT (STDMETHODCALLTYPE *SetHotkey)( - IShellLinkW* This, - WORD wHotkey); - - HRESULT (STDMETHODCALLTYPE *GetShowCmd)( - IShellLinkW* This, - int* piShowCmd); - - HRESULT (STDMETHODCALLTYPE *SetShowCmd)( - IShellLinkW* This, - int iShowCmd); - - HRESULT (STDMETHODCALLTYPE *GetIconLocation)( - IShellLinkW* This, - LPWSTR pszIconPath, - int cch, - int* piIcon); - - HRESULT (STDMETHODCALLTYPE *SetIconLocation)( - IShellLinkW* This, - LPCWSTR pszIconPath, - int iIcon); - - HRESULT (STDMETHODCALLTYPE *SetRelativePath)( - IShellLinkW* This, - LPCWSTR pszPathRel, - DWORD dwReserved); - - HRESULT (STDMETHODCALLTYPE *Resolve)( - IShellLinkW* This, - HWND hwnd, - DWORD fFlags); - - HRESULT (STDMETHODCALLTYPE *SetPath)( - IShellLinkW* This, - LPCWSTR pszFile); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IShellLinkW_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IShellLinkW_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IShellLinkW_Release(p) (p)->lpVtbl->Release(p) -/*** IShellLinkW methods ***/ -#define IShellLinkW_GetPath(p,a,b,c,d) (p)->lpVtbl->GetPath(p,a,b,c,d) -#define IShellLinkW_GetIDList(p,a) (p)->lpVtbl->GetIDList(p,a) -#define IShellLinkW_SetIDList(p,a) (p)->lpVtbl->SetIDList(p,a) -#define IShellLinkW_GetDescription(p,a,b) (p)->lpVtbl->GetDescription(p,a,b) -#define IShellLinkW_SetDescription(p,a) (p)->lpVtbl->SetDescription(p,a) -#define IShellLinkW_GetWorkingDirectory(p,a,b) (p)->lpVtbl->GetWorkingDirectory(p,a,b) -#define IShellLinkW_SetWorkingDirectory(p,a) (p)->lpVtbl->SetWorkingDirectory(p,a) -#define IShellLinkW_GetArguments(p,a,b) (p)->lpVtbl->GetArguments(p,a,b) -#define IShellLinkW_SetArguments(p,a) (p)->lpVtbl->SetArguments(p,a) -#define IShellLinkW_GetHotkey(p,a) (p)->lpVtbl->GetHotkey(p,a) -#define IShellLinkW_SetHotkey(p,a) (p)->lpVtbl->SetHotkey(p,a) -#define IShellLinkW_GetShowCmd(p,a) (p)->lpVtbl->GetShowCmd(p,a) -#define IShellLinkW_SetShowCmd(p,a) (p)->lpVtbl->SetShowCmd(p,a) -#define IShellLinkW_GetIconLocation(p,a,b,c) (p)->lpVtbl->GetIconLocation(p,a,b,c) -#define IShellLinkW_SetIconLocation(p,a,b) (p)->lpVtbl->SetIconLocation(p,a,b) -#define IShellLinkW_SetRelativePath(p,a,b) (p)->lpVtbl->SetRelativePath(p,a,b) -#define IShellLinkW_Resolve(p,a,b) (p)->lpVtbl->Resolve(p,a,b) -#define IShellLinkW_SetPath(p,a) (p)->lpVtbl->SetPath(p,a) -#endif - -#endif - -#define IShellLinkW_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IShellLinkW methods ***/ \ - STDMETHOD_(HRESULT,GetPath)(THIS_ LPWSTR pszFile, int cch, WIN32_FIND_DATAW* pfd, DWORD fFlags) PURE; \ - STDMETHOD_(HRESULT,GetIDList)(THIS_ LPITEMIDLIST* ppidl) PURE; \ - STDMETHOD_(HRESULT,SetIDList)(THIS_ LPCITEMIDLIST pidl) PURE; \ - STDMETHOD_(HRESULT,GetDescription)(THIS_ LPWSTR pszName, int cch) PURE; \ - STDMETHOD_(HRESULT,SetDescription)(THIS_ LPCWSTR pszName) PURE; \ - STDMETHOD_(HRESULT,GetWorkingDirectory)(THIS_ LPWSTR pszDir, int cch) PURE; \ - STDMETHOD_(HRESULT,SetWorkingDirectory)(THIS_ LPCWSTR pszDir) PURE; \ - STDMETHOD_(HRESULT,GetArguments)(THIS_ LPWSTR pszArgs, int cch) PURE; \ - STDMETHOD_(HRESULT,SetArguments)(THIS_ LPCWSTR pszArgs) PURE; \ - STDMETHOD_(HRESULT,GetHotkey)(THIS_ WORD* pwHotkey) PURE; \ - STDMETHOD_(HRESULT,SetHotkey)(THIS_ WORD wHotkey) PURE; \ - STDMETHOD_(HRESULT,GetShowCmd)(THIS_ int* piShowCmd) PURE; \ - STDMETHOD_(HRESULT,SetShowCmd)(THIS_ int iShowCmd) PURE; \ - STDMETHOD_(HRESULT,GetIconLocation)(THIS_ LPWSTR pszIconPath, int cch, int* piIcon) PURE; \ - STDMETHOD_(HRESULT,SetIconLocation)(THIS_ LPCWSTR pszIconPath, int iIcon) PURE; \ - STDMETHOD_(HRESULT,SetRelativePath)(THIS_ LPCWSTR pszPathRel, DWORD dwReserved) PURE; \ - STDMETHOD_(HRESULT,Resolve)(THIS_ HWND hwnd, DWORD fFlags) PURE; \ - STDMETHOD_(HRESULT,SetPath)(THIS_ LPCWSTR pszFile) PURE; - -HRESULT CALLBACK IShellLinkW_GetPath_Proxy( - IShellLinkW* This, - LPWSTR pszFile, - int cch, - WIN32_FIND_DATAW* pfd, - DWORD fFlags); -void __RPC_STUB IShellLinkW_GetPath_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_GetIDList_Proxy( - IShellLinkW* This, - LPITEMIDLIST* ppidl); -void __RPC_STUB IShellLinkW_GetIDList_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_SetIDList_Proxy( - IShellLinkW* This, - LPCITEMIDLIST pidl); -void __RPC_STUB IShellLinkW_SetIDList_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_GetDescription_Proxy( - IShellLinkW* This, - LPWSTR pszName, - int cch); -void __RPC_STUB IShellLinkW_GetDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_SetDescription_Proxy( - IShellLinkW* This, - LPCWSTR pszName); -void __RPC_STUB IShellLinkW_SetDescription_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_GetWorkingDirectory_Proxy( - IShellLinkW* This, - LPWSTR pszDir, - int cch); -void __RPC_STUB IShellLinkW_GetWorkingDirectory_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_SetWorkingDirectory_Proxy( - IShellLinkW* This, - LPCWSTR pszDir); -void __RPC_STUB IShellLinkW_SetWorkingDirectory_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_GetArguments_Proxy( - IShellLinkW* This, - LPWSTR pszArgs, - int cch); -void __RPC_STUB IShellLinkW_GetArguments_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_SetArguments_Proxy( - IShellLinkW* This, - LPCWSTR pszArgs); -void __RPC_STUB IShellLinkW_SetArguments_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_GetHotkey_Proxy( - IShellLinkW* This, - WORD* pwHotkey); -void __RPC_STUB IShellLinkW_GetHotkey_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_SetHotkey_Proxy( - IShellLinkW* This, - WORD wHotkey); -void __RPC_STUB IShellLinkW_SetHotkey_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_GetShowCmd_Proxy( - IShellLinkW* This, - int* piShowCmd); -void __RPC_STUB IShellLinkW_GetShowCmd_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_SetShowCmd_Proxy( - IShellLinkW* This, - int iShowCmd); -void __RPC_STUB IShellLinkW_SetShowCmd_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_GetIconLocation_Proxy( - IShellLinkW* This, - LPWSTR pszIconPath, - int cch, - int* piIcon); -void __RPC_STUB IShellLinkW_GetIconLocation_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_SetIconLocation_Proxy( - IShellLinkW* This, - LPCWSTR pszIconPath, - int iIcon); -void __RPC_STUB IShellLinkW_SetIconLocation_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_SetRelativePath_Proxy( - IShellLinkW* This, - LPCWSTR pszPathRel, - DWORD dwReserved); -void __RPC_STUB IShellLinkW_SetRelativePath_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_Resolve_Proxy( - IShellLinkW* This, - HWND hwnd, - DWORD fFlags); -void __RPC_STUB IShellLinkW_Resolve_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IShellLinkW_SetPath_Proxy( - IShellLinkW* This, - LPCWSTR pszFile); -void __RPC_STUB IShellLinkW_SetPath_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IShellLinkW_INTERFACE_DEFINED__ */ - -#define IShellLink WINELIB_NAME_AW(IShellLink) -#ifndef __IShellExtInit_FWD_DEFINED__ -#define __IShellExtInit_FWD_DEFINED__ -typedef struct IShellExtInit IShellExtInit; -#endif - -typedef IShellExtInit *LPSHELLEXTINIT; - -/***************************************************************************** - * IShellExtInit interface - */ -#ifndef __IShellExtInit_INTERFACE_DEFINED__ -#define __IShellExtInit_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IShellExtInit, 0x000214e8, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IShellExtInit : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Initialize( - LPCITEMIDLIST pidlFolder, - IDataObject* pdtobj, - HKEY hkeyProgID) = 0; - -}; -#else -typedef struct IShellExtInitVtbl IShellExtInitVtbl; -struct IShellExtInit { - const IShellExtInitVtbl* lpVtbl; -}; -struct IShellExtInitVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IShellExtInit* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IShellExtInit* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IShellExtInit* This); - - /*** IShellExtInit methods ***/ - HRESULT (STDMETHODCALLTYPE *Initialize)( - IShellExtInit* This, - LPCITEMIDLIST pidlFolder, - IDataObject* pdtobj, - HKEY hkeyProgID); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IShellExtInit_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IShellExtInit_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IShellExtInit_Release(p) (p)->lpVtbl->Release(p) -/*** IShellExtInit methods ***/ -#define IShellExtInit_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) -#endif - -#endif - -#define IShellExtInit_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IShellExtInit methods ***/ \ - STDMETHOD_(HRESULT,Initialize)(THIS_ LPCITEMIDLIST pidlFolder, IDataObject* pdtobj, HKEY hkeyProgID) PURE; - -HRESULT CALLBACK IShellExtInit_Initialize_Proxy( - IShellExtInit* This, - LPCITEMIDLIST pidlFolder, - IDataObject* pdtobj, - HKEY hkeyProgID); -void __RPC_STUB IShellExtInit_Initialize_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IShellExtInit_INTERFACE_DEFINED__ */ - -#ifndef __IPersistFolder3_FWD_DEFINED__ -#define __IPersistFolder3_FWD_DEFINED__ -typedef struct IPersistFolder3 IPersistFolder3; -#endif - -typedef struct { - LPITEMIDLIST pidlTargetFolder; - WCHAR szTargetParsingName[260]; - WCHAR szNetworkProvider[260]; - DWORD dwAttributes; - int csidl; -} PERSIST_FOLDER_TARGET_INFO; - -/***************************************************************************** - * IPersistFolder3 interface - */ -#ifndef __IPersistFolder3_INTERFACE_DEFINED__ -#define __IPersistFolder3_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistFolder3, 0xcef04fdf, 0xfe72, 0x11d2, 0x87,0xa5, 0x00,0xc0,0x4f,0x68,0x37,0xcf); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistFolder3 : public IPersistFolder2 -{ - virtual HRESULT STDMETHODCALLTYPE InitializeEx( - IBindCtx* pbc, - LPCITEMIDLIST pidlRoot, - const PERSIST_FOLDER_TARGET_INFO* ppfti) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFolderTargetInfo( - PERSIST_FOLDER_TARGET_INFO* ppfti) = 0; - -}; -#else -typedef struct IPersistFolder3Vtbl IPersistFolder3Vtbl; -struct IPersistFolder3 { - const IPersistFolder3Vtbl* lpVtbl; -}; -struct IPersistFolder3Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistFolder3* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistFolder3* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistFolder3* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistFolder3* This, - CLSID* pClassID); - - /*** IPersistFolder methods ***/ - HRESULT (STDMETHODCALLTYPE *Initialize)( - IPersistFolder3* This, - LPCITEMIDLIST pidl); - - /*** IPersistFolder2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetCurFolder)( - IPersistFolder3* This, - LPITEMIDLIST* ppidl); - - /*** IPersistFolder3 methods ***/ - HRESULT (STDMETHODCALLTYPE *InitializeEx)( - IPersistFolder3* This, - IBindCtx* pbc, - LPCITEMIDLIST pidlRoot, - const PERSIST_FOLDER_TARGET_INFO* ppfti); - - HRESULT (STDMETHODCALLTYPE *GetFolderTargetInfo)( - IPersistFolder3* This, - PERSIST_FOLDER_TARGET_INFO* ppfti); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPersistFolder3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPersistFolder3_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPersistFolder3_Release(p) (p)->lpVtbl->Release(p) -/*** IPersist methods ***/ -#define IPersistFolder3_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -/*** IPersistFolder methods ***/ -#define IPersistFolder3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) -/*** IPersistFolder2 methods ***/ -#define IPersistFolder3_GetCurFolder(p,a) (p)->lpVtbl->GetCurFolder(p,a) -/*** IPersistFolder3 methods ***/ -#define IPersistFolder3_InitializeEx(p,a,b,c) (p)->lpVtbl->InitializeEx(p,a,b,c) -#define IPersistFolder3_GetFolderTargetInfo(p,a) (p)->lpVtbl->GetFolderTargetInfo(p,a) -#endif - -#endif - -#define IPersistFolder3_METHODS \ - /*** 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; \ - /*** IPersistFolder methods ***/ \ - STDMETHOD_(HRESULT,Initialize)(THIS_ LPCITEMIDLIST pidl) PURE; \ - /*** IPersistFolder2 methods ***/ \ - STDMETHOD_(HRESULT,GetCurFolder)(THIS_ LPITEMIDLIST* ppidl) PURE; \ - /*** IPersistFolder3 methods ***/ \ - STDMETHOD_(HRESULT,InitializeEx)(THIS_ IBindCtx* pbc, LPCITEMIDLIST pidlRoot, const PERSIST_FOLDER_TARGET_INFO* ppfti) PURE; \ - STDMETHOD_(HRESULT,GetFolderTargetInfo)(THIS_ PERSIST_FOLDER_TARGET_INFO* ppfti) PURE; - -HRESULT CALLBACK IPersistFolder3_InitializeEx_Proxy( - IPersistFolder3* This, - IBindCtx* pbc, - LPCITEMIDLIST pidlRoot, - const PERSIST_FOLDER_TARGET_INFO* ppfti); -void __RPC_STUB IPersistFolder3_InitializeEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistFolder3_GetFolderTargetInfo_Proxy( - IPersistFolder3* This, - PERSIST_FOLDER_TARGET_INFO* ppfti); -void __RPC_STUB IPersistFolder3_GetFolderTargetInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPersistFolder3_INTERFACE_DEFINED__ */ - -#ifndef __IExtractIconA_FWD_DEFINED__ -#define __IExtractIconA_FWD_DEFINED__ -typedef struct IExtractIconA IExtractIconA; -#endif - -#define GIL_OPENICON 0x0001 -#define GIL_FORSHELL 0x0002 -#define GIL_ASYNC 0x0020 -#define GIL_DEFAULTICON 0x0040 -#define GIL_FORSHORTCUT 0x0080 -#define GIL_SIMULATEDOC 0x0001 -#define GIL_PERINSTANCE 0x0002 -#define GIL_PERCLASS 0x0004 -#define GIL_NOTFILENAME 0x0008 -#define GIL_DONTCACHE 0x0010 -typedef IExtractIconA *LPEXTRACTICONA; - -/***************************************************************************** - * IExtractIconA interface - */ -#ifndef __IExtractIconA_INTERFACE_DEFINED__ -#define __IExtractIconA_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IExtractIconA, 0x000214eb, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IExtractIconA : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetIconLocation( - UINT uFlags, - LPSTR szIconFile, - UINT cchMax, - INT* piIndex, - UINT* pwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Extract( - LPCSTR pszFile, - UINT nIconIndex, - HICON* phiconLarge, - HICON* phiconSmall, - UINT nIconSize) = 0; - -}; -#else -typedef struct IExtractIconAVtbl IExtractIconAVtbl; -struct IExtractIconA { - const IExtractIconAVtbl* lpVtbl; -}; -struct IExtractIconAVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IExtractIconA* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IExtractIconA* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IExtractIconA* This); - - /*** IExtractIconA methods ***/ - HRESULT (STDMETHODCALLTYPE *GetIconLocation)( - IExtractIconA* This, - UINT uFlags, - LPSTR szIconFile, - UINT cchMax, - INT* piIndex, - UINT* pwFlags); - - HRESULT (STDMETHODCALLTYPE *Extract)( - IExtractIconA* This, - LPCSTR pszFile, - UINT nIconIndex, - HICON* phiconLarge, - HICON* phiconSmall, - UINT nIconSize); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IExtractIconA_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IExtractIconA_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IExtractIconA_Release(p) (p)->lpVtbl->Release(p) -/*** IExtractIconA methods ***/ -#define IExtractIconA_GetIconLocation(p,a,b,c,d,e) (p)->lpVtbl->GetIconLocation(p,a,b,c,d,e) -#define IExtractIconA_Extract(p,a,b,c,d,e) (p)->lpVtbl->Extract(p,a,b,c,d,e) -#endif - -#endif - -#define IExtractIconA_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IExtractIconA methods ***/ \ - STDMETHOD_(HRESULT,GetIconLocation)(THIS_ UINT uFlags, LPSTR szIconFile, UINT cchMax, INT* piIndex, UINT* pwFlags) PURE; \ - STDMETHOD_(HRESULT,Extract)(THIS_ LPCSTR pszFile, UINT nIconIndex, HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize) PURE; - -HRESULT CALLBACK IExtractIconA_GetIconLocation_Proxy( - IExtractIconA* This, - UINT uFlags, - LPSTR szIconFile, - UINT cchMax, - INT* piIndex, - UINT* pwFlags); -void __RPC_STUB IExtractIconA_GetIconLocation_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IExtractIconA_Extract_Proxy( - IExtractIconA* This, - LPCSTR pszFile, - UINT nIconIndex, - HICON* phiconLarge, - HICON* phiconSmall, - UINT nIconSize); -void __RPC_STUB IExtractIconA_Extract_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IExtractIconA_INTERFACE_DEFINED__ */ - -#ifndef __IExtractIconW_FWD_DEFINED__ -#define __IExtractIconW_FWD_DEFINED__ -typedef struct IExtractIconW IExtractIconW; -#endif - -typedef IExtractIconW *LPEXTRACTICONW; - -/***************************************************************************** - * IExtractIconW interface - */ -#ifndef __IExtractIconW_INTERFACE_DEFINED__ -#define __IExtractIconW_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IExtractIconW, 0x000214fa, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IExtractIconW : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetIconLocation( - UINT uFlags, - LPWSTR szIconFile, - UINT cchMax, - INT* piIndex, - UINT* pwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Extract( - LPCWSTR pszFile, - UINT nIconIndex, - HICON* phiconLarge, - HICON* phiconSmall, - UINT nIconSize) = 0; - -}; -#else -typedef struct IExtractIconWVtbl IExtractIconWVtbl; -struct IExtractIconW { - const IExtractIconWVtbl* lpVtbl; -}; -struct IExtractIconWVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IExtractIconW* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IExtractIconW* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IExtractIconW* This); - - /*** IExtractIconW methods ***/ - HRESULT (STDMETHODCALLTYPE *GetIconLocation)( - IExtractIconW* This, - UINT uFlags, - LPWSTR szIconFile, - UINT cchMax, - INT* piIndex, - UINT* pwFlags); - - HRESULT (STDMETHODCALLTYPE *Extract)( - IExtractIconW* This, - LPCWSTR pszFile, - UINT nIconIndex, - HICON* phiconLarge, - HICON* phiconSmall, - UINT nIconSize); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IExtractIconW_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IExtractIconW_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IExtractIconW_Release(p) (p)->lpVtbl->Release(p) -/*** IExtractIconW methods ***/ -#define IExtractIconW_GetIconLocation(p,a,b,c,d,e) (p)->lpVtbl->GetIconLocation(p,a,b,c,d,e) -#define IExtractIconW_Extract(p,a,b,c,d,e) (p)->lpVtbl->Extract(p,a,b,c,d,e) -#endif - -#endif - -#define IExtractIconW_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IExtractIconW methods ***/ \ - STDMETHOD_(HRESULT,GetIconLocation)(THIS_ UINT uFlags, LPWSTR szIconFile, UINT cchMax, INT* piIndex, UINT* pwFlags) PURE; \ - STDMETHOD_(HRESULT,Extract)(THIS_ LPCWSTR pszFile, UINT nIconIndex, HICON* phiconLarge, HICON* phiconSmall, UINT nIconSize) PURE; - -HRESULT CALLBACK IExtractIconW_GetIconLocation_Proxy( - IExtractIconW* This, - UINT uFlags, - LPWSTR szIconFile, - UINT cchMax, - INT* piIndex, - UINT* pwFlags); -void __RPC_STUB IExtractIconW_GetIconLocation_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IExtractIconW_Extract_Proxy( - IExtractIconW* This, - LPCWSTR pszFile, - UINT nIconIndex, - HICON* phiconLarge, - HICON* phiconSmall, - UINT nIconSize); -void __RPC_STUB IExtractIconW_Extract_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IExtractIconW_INTERFACE_DEFINED__ */ - -#define LPEXTRACTICON WINELIB_NAME_AW(LPEXTRACTICON) -#define IExtractIcon WINELIB_NAME_AW(IExtractIcon) -#ifndef __ICommDlgBrowser_FWD_DEFINED__ -#define __ICommDlgBrowser_FWD_DEFINED__ -typedef struct ICommDlgBrowser ICommDlgBrowser; -#endif - -#define CDBOSC_SETFOCUS 0x00000000 -#define CDBOSC_KILLFOCUS 0x00000001 -#define CDBOSC_SELCHANGE 0x00000002 -#define CDBOSC_RENAME 0x00000003 -#define CDBOSC_STATECHANGE 0x00000004 -typedef ICommDlgBrowser *LPCOMMDLGBROWSER; - -/***************************************************************************** - * ICommDlgBrowser interface - */ -#ifndef __ICommDlgBrowser_INTERFACE_DEFINED__ -#define __ICommDlgBrowser_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICommDlgBrowser, 0x000214f1, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICommDlgBrowser : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE OnDefaultCommand( - IShellView* shv) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnStateChange( - IShellView* shv, - ULONG uChange) = 0; - - virtual HRESULT STDMETHODCALLTYPE IncludeObject( - IShellView* shv, - LPCITEMIDLIST pidl) = 0; - -}; -#else -typedef struct ICommDlgBrowserVtbl ICommDlgBrowserVtbl; -struct ICommDlgBrowser { - const ICommDlgBrowserVtbl* lpVtbl; -}; -struct ICommDlgBrowserVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICommDlgBrowser* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICommDlgBrowser* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICommDlgBrowser* This); - - /*** ICommDlgBrowser methods ***/ - HRESULT (STDMETHODCALLTYPE *OnDefaultCommand)( - ICommDlgBrowser* This, - IShellView* shv); - - HRESULT (STDMETHODCALLTYPE *OnStateChange)( - ICommDlgBrowser* This, - IShellView* shv, - ULONG uChange); - - HRESULT (STDMETHODCALLTYPE *IncludeObject)( - ICommDlgBrowser* This, - IShellView* shv, - LPCITEMIDLIST pidl); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICommDlgBrowser_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICommDlgBrowser_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICommDlgBrowser_Release(p) (p)->lpVtbl->Release(p) -/*** ICommDlgBrowser methods ***/ -#define ICommDlgBrowser_OnDefaultCommand(p,a) (p)->lpVtbl->OnDefaultCommand(p,a) -#define ICommDlgBrowser_OnStateChange(p,a,b) (p)->lpVtbl->OnStateChange(p,a,b) -#define ICommDlgBrowser_IncludeObject(p,a,b) (p)->lpVtbl->IncludeObject(p,a,b) -#endif - -#endif - -#define ICommDlgBrowser_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICommDlgBrowser methods ***/ \ - STDMETHOD_(HRESULT,OnDefaultCommand)(THIS_ IShellView* shv) PURE; \ - STDMETHOD_(HRESULT,OnStateChange)(THIS_ IShellView* shv, ULONG uChange) PURE; \ - STDMETHOD_(HRESULT,IncludeObject)(THIS_ IShellView* shv, LPCITEMIDLIST pidl) PURE; - -HRESULT CALLBACK ICommDlgBrowser_OnDefaultCommand_Proxy( - ICommDlgBrowser* This, - IShellView* shv); -void __RPC_STUB ICommDlgBrowser_OnDefaultCommand_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICommDlgBrowser_OnStateChange_Proxy( - ICommDlgBrowser* This, - IShellView* shv, - ULONG uChange); -void __RPC_STUB ICommDlgBrowser_OnStateChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICommDlgBrowser_IncludeObject_Proxy( - ICommDlgBrowser* This, - IShellView* shv, - LPCITEMIDLIST pidl); -void __RPC_STUB ICommDlgBrowser_IncludeObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICommDlgBrowser_INTERFACE_DEFINED__ */ - -#ifndef __IDockingWindowFrame_FWD_DEFINED__ -#define __IDockingWindowFrame_FWD_DEFINED__ -typedef struct IDockingWindowFrame IDockingWindowFrame; -#endif - -#define DWFRF_NORMAL 0x0000 -#define DWFRF_DELETECONFIGDATA 0x0001 -#define DWFAF_HIDDEN 0x0001 -/***************************************************************************** - * IDockingWindowFrame interface - */ -#ifndef __IDockingWindowFrame_INTERFACE_DEFINED__ -#define __IDockingWindowFrame_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDockingWindowFrame, 0x47d2657a, 0x7b27, 0x11d0, 0x8c,0xa9, 0x00,0xa0,0xc9,0x2d,0xbf,0xe8); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDockingWindowFrame : public IOleWindow -{ - virtual HRESULT STDMETHODCALLTYPE AddToolbar( - IUnknown* punkSrc, - LPCWSTR pwszItem, - DWORD dwAddFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveToolbar( - IUnknown* punkSrc, - DWORD dwRemoveFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindToolbar( - LPCWSTR pwszItem, - REFIID riid, - LPVOID* ppvObj) = 0; - -}; -#else -typedef struct IDockingWindowFrameVtbl IDockingWindowFrameVtbl; -struct IDockingWindowFrame { - const IDockingWindowFrameVtbl* lpVtbl; -}; -struct IDockingWindowFrameVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDockingWindowFrame* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDockingWindowFrame* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDockingWindowFrame* This); - - /*** IOleWindow methods ***/ - HRESULT (STDMETHODCALLTYPE *GetWindow)( - IDockingWindowFrame* This, - HWND* phwnd); - - HRESULT (STDMETHODCALLTYPE *ContextSensitiveHelp)( - IDockingWindowFrame* This, - BOOL fEnterMode); - - /*** IDockingWindowFrame methods ***/ - HRESULT (STDMETHODCALLTYPE *AddToolbar)( - IDockingWindowFrame* This, - IUnknown* punkSrc, - LPCWSTR pwszItem, - DWORD dwAddFlags); - - HRESULT (STDMETHODCALLTYPE *RemoveToolbar)( - IDockingWindowFrame* This, - IUnknown* punkSrc, - DWORD dwRemoveFlags); - - HRESULT (STDMETHODCALLTYPE *FindToolbar)( - IDockingWindowFrame* This, - LPCWSTR pwszItem, - REFIID riid, - LPVOID* ppvObj); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDockingWindowFrame_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDockingWindowFrame_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDockingWindowFrame_Release(p) (p)->lpVtbl->Release(p) -/*** IOleWindow methods ***/ -#define IDockingWindowFrame_GetWindow(p,a) (p)->lpVtbl->GetWindow(p,a) -#define IDockingWindowFrame_ContextSensitiveHelp(p,a) (p)->lpVtbl->ContextSensitiveHelp(p,a) -/*** IDockingWindowFrame methods ***/ -#define IDockingWindowFrame_AddToolbar(p,a,b,c) (p)->lpVtbl->AddToolbar(p,a,b,c) -#define IDockingWindowFrame_RemoveToolbar(p,a,b) (p)->lpVtbl->RemoveToolbar(p,a,b) -#define IDockingWindowFrame_FindToolbar(p,a,b,c) (p)->lpVtbl->FindToolbar(p,a,b,c) -#endif - -#endif - -#define IDockingWindowFrame_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOleWindow methods ***/ \ - STDMETHOD_(HRESULT,GetWindow)(THIS_ HWND* phwnd) PURE; \ - STDMETHOD_(HRESULT,ContextSensitiveHelp)(THIS_ BOOL fEnterMode) PURE; \ - /*** IDockingWindowFrame methods ***/ \ - STDMETHOD_(HRESULT,AddToolbar)(THIS_ IUnknown* punkSrc, LPCWSTR pwszItem, DWORD dwAddFlags) PURE; \ - STDMETHOD_(HRESULT,RemoveToolbar)(THIS_ IUnknown* punkSrc, DWORD dwRemoveFlags) PURE; \ - STDMETHOD_(HRESULT,FindToolbar)(THIS_ LPCWSTR pwszItem, REFIID riid, LPVOID* ppvObj) PURE; - -HRESULT CALLBACK IDockingWindowFrame_AddToolbar_Proxy( - IDockingWindowFrame* This, - IUnknown* punkSrc, - LPCWSTR pwszItem, - DWORD dwAddFlags); -void __RPC_STUB IDockingWindowFrame_AddToolbar_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDockingWindowFrame_RemoveToolbar_Proxy( - IDockingWindowFrame* This, - IUnknown* punkSrc, - DWORD dwRemoveFlags); -void __RPC_STUB IDockingWindowFrame_RemoveToolbar_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDockingWindowFrame_FindToolbar_Proxy( - IDockingWindowFrame* This, - LPCWSTR pwszItem, - REFIID riid, - LPVOID* ppvObj); -void __RPC_STUB IDockingWindowFrame_FindToolbar_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDockingWindowFrame_INTERFACE_DEFINED__ */ - -#ifndef __IDragSourceHelper_FWD_DEFINED__ -#define __IDragSourceHelper_FWD_DEFINED__ -typedef struct IDragSourceHelper IDragSourceHelper; -#endif - -typedef struct { - SIZE sizeDragImage; - POINT ptOffset; - HBITMAP hbmpDragImage; - COLORREF crColorKey; -} SHDRAGIMAGE, *LPSHDRAGIMAGE; - -/***************************************************************************** - * IDragSourceHelper interface - */ -#ifndef __IDragSourceHelper_INTERFACE_DEFINED__ -#define __IDragSourceHelper_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDragSourceHelper, 0xde5bf786, 0x477a, 0x11d2, 0x83,0x9d, 0x00,0xc0,0x4f,0xd9,0x18,0xd0); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDragSourceHelper : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE InitializeFromBitmap( - LPSHDRAGIMAGE pshdi, - IDataObject* pDataObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE InitializeFromWindow( - HWND hwnd, - POINT* ppt, - IDataObject* pDataObject) = 0; - -}; -#else -typedef struct IDragSourceHelperVtbl IDragSourceHelperVtbl; -struct IDragSourceHelper { - const IDragSourceHelperVtbl* lpVtbl; -}; -struct IDragSourceHelperVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDragSourceHelper* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDragSourceHelper* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDragSourceHelper* This); - - /*** IDragSourceHelper methods ***/ - HRESULT (STDMETHODCALLTYPE *InitializeFromBitmap)( - IDragSourceHelper* This, - LPSHDRAGIMAGE pshdi, - IDataObject* pDataObject); - - HRESULT (STDMETHODCALLTYPE *InitializeFromWindow)( - IDragSourceHelper* This, - HWND hwnd, - POINT* ppt, - IDataObject* pDataObject); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDragSourceHelper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDragSourceHelper_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDragSourceHelper_Release(p) (p)->lpVtbl->Release(p) -/*** IDragSourceHelper methods ***/ -#define IDragSourceHelper_InitializeFromBitmap(p,a,b) (p)->lpVtbl->InitializeFromBitmap(p,a,b) -#define IDragSourceHelper_InitializeFromWindow(p,a,b,c) (p)->lpVtbl->InitializeFromWindow(p,a,b,c) -#endif - -#endif - -#define IDragSourceHelper_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDragSourceHelper methods ***/ \ - STDMETHOD_(HRESULT,InitializeFromBitmap)(THIS_ LPSHDRAGIMAGE pshdi, IDataObject* pDataObject) PURE; \ - STDMETHOD_(HRESULT,InitializeFromWindow)(THIS_ HWND hwnd, POINT* ppt, IDataObject* pDataObject) PURE; - -HRESULT CALLBACK IDragSourceHelper_InitializeFromBitmap_Proxy( - IDragSourceHelper* This, - LPSHDRAGIMAGE pshdi, - IDataObject* pDataObject); -void __RPC_STUB IDragSourceHelper_InitializeFromBitmap_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDragSourceHelper_InitializeFromWindow_Proxy( - IDragSourceHelper* This, - HWND hwnd, - POINT* ppt, - IDataObject* pDataObject); -void __RPC_STUB IDragSourceHelper_InitializeFromWindow_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDragSourceHelper_INTERFACE_DEFINED__ */ - -#ifndef __IDropTargetHelper_FWD_DEFINED__ -#define __IDropTargetHelper_FWD_DEFINED__ -typedef struct IDropTargetHelper IDropTargetHelper; -#endif - -/***************************************************************************** - * IDropTargetHelper interface - */ -#ifndef __IDropTargetHelper_INTERFACE_DEFINED__ -#define __IDropTargetHelper_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IDropTargetHelper, 0x4657278b, 0x411b, 0x11d2, 0x83,0x9a, 0x00,0xc0,0x4f,0xd9,0x18,0xd0); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IDropTargetHelper : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE DragEnter( - HWND hwndTarget, - IDataObject* pDataObject, - POINT* ppt, - DWORD dwEffect) = 0; - - virtual HRESULT STDMETHODCALLTYPE DragLeave( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE DragOver( - POINT* ppt, - DWORD dwEffect) = 0; - - virtual HRESULT STDMETHODCALLTYPE Drop( - IDataObject* pDataObject, - POINT* ppt, - DWORD dwEffect) = 0; - - virtual HRESULT STDMETHODCALLTYPE Show( - BOOL fShow) = 0; - -}; -#else -typedef struct IDropTargetHelperVtbl IDropTargetHelperVtbl; -struct IDropTargetHelper { - const IDropTargetHelperVtbl* lpVtbl; -}; -struct IDropTargetHelperVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IDropTargetHelper* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IDropTargetHelper* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IDropTargetHelper* This); - - /*** IDropTargetHelper methods ***/ - HRESULT (STDMETHODCALLTYPE *DragEnter)( - IDropTargetHelper* This, - HWND hwndTarget, - IDataObject* pDataObject, - POINT* ppt, - DWORD dwEffect); - - HRESULT (STDMETHODCALLTYPE *DragLeave)( - IDropTargetHelper* This); - - HRESULT (STDMETHODCALLTYPE *DragOver)( - IDropTargetHelper* This, - POINT* ppt, - DWORD dwEffect); - - HRESULT (STDMETHODCALLTYPE *Drop)( - IDropTargetHelper* This, - IDataObject* pDataObject, - POINT* ppt, - DWORD dwEffect); - - HRESULT (STDMETHODCALLTYPE *Show)( - IDropTargetHelper* This, - BOOL fShow); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IDropTargetHelper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IDropTargetHelper_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IDropTargetHelper_Release(p) (p)->lpVtbl->Release(p) -/*** IDropTargetHelper methods ***/ -#define IDropTargetHelper_DragEnter(p,a,b,c,d) (p)->lpVtbl->DragEnter(p,a,b,c,d) -#define IDropTargetHelper_DragLeave(p) (p)->lpVtbl->DragLeave(p) -#define IDropTargetHelper_DragOver(p,a,b) (p)->lpVtbl->DragOver(p,a,b) -#define IDropTargetHelper_Drop(p,a,b,c) (p)->lpVtbl->Drop(p,a,b,c) -#define IDropTargetHelper_Show(p,a) (p)->lpVtbl->Show(p,a) -#endif - -#endif - -#define IDropTargetHelper_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IDropTargetHelper methods ***/ \ - STDMETHOD_(HRESULT,DragEnter)(THIS_ HWND hwndTarget, IDataObject* pDataObject, POINT* ppt, DWORD dwEffect) PURE; \ - STDMETHOD_(HRESULT,DragLeave)(THIS) PURE; \ - STDMETHOD_(HRESULT,DragOver)(THIS_ POINT* ppt, DWORD dwEffect) PURE; \ - STDMETHOD_(HRESULT,Drop)(THIS_ IDataObject* pDataObject, POINT* ppt, DWORD dwEffect) PURE; \ - STDMETHOD_(HRESULT,Show)(THIS_ BOOL fShow) PURE; - -HRESULT CALLBACK IDropTargetHelper_DragEnter_Proxy( - IDropTargetHelper* This, - HWND hwndTarget, - IDataObject* pDataObject, - POINT* ppt, - DWORD dwEffect); -void __RPC_STUB IDropTargetHelper_DragEnter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDropTargetHelper_DragLeave_Proxy( - IDropTargetHelper* This); -void __RPC_STUB IDropTargetHelper_DragLeave_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDropTargetHelper_DragOver_Proxy( - IDropTargetHelper* This, - POINT* ppt, - DWORD dwEffect); -void __RPC_STUB IDropTargetHelper_DragOver_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDropTargetHelper_Drop_Proxy( - IDropTargetHelper* This, - IDataObject* pDataObject, - POINT* ppt, - DWORD dwEffect); -void __RPC_STUB IDropTargetHelper_Drop_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IDropTargetHelper_Show_Proxy( - IDropTargetHelper* This, - BOOL fShow); -void __RPC_STUB IDropTargetHelper_Show_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IDropTargetHelper_INTERFACE_DEFINED__ */ - -#ifndef __IContextMenu_FWD_DEFINED__ -#define __IContextMenu_FWD_DEFINED__ -typedef struct IContextMenu IContextMenu; -#endif - -#define CMF_NORMAL 0x00000000 -#define CMF_DEFAULTONLY 0x00000001 -#define CMF_VERBSONLY 0x00000002 -#define CMF_EXPLORE 0x00000004 -#define CMF_NOVERBS 0x00000008 -#define CMF_CANRENAME 0x00000010 -#define CMF_NODEFAULT 0x00000020 -#define CMF_INCLUDESTATIC 0x00000040 -#define CMF_EXTENDEDVERBS 0x00000100 -#define CMF_RESERVED 0xffff0000 -#define GCS_VERBA 0x00000000 -#define GCS_HELPTEXTA 0x00000001 -#define GCS_VALIDATEA 0x00000002 -#define GCS_VERBW 0x00000004 -#define GCS_HELPTEXTW 0x00000005 -#define GCS_VALIDATEW 0x00000006 -#define GCS_UNICODE 0x00000004 -#define GCS_VERB WINELIB_NAME_AW(GCS_VERB) -#define GCS_HELPTEXT WINELIB_NAME_AW(GCS_HELPTEXT) -#define GCS_VALIDATE WINELIB_NAME_AW(GCS_VALIDATE) -#define CMDSTR_NEWFOLDERA "NewFolder" -#define CMDSTR_VIEWLISTA "ViewList" -#define CMDSTR_VIEWDETAILSA "ViewDetails" -#if defined(__GNUC__) -# define CMDSTR_NEWFOLDERW (const WCHAR []){ 'N','e','w','F','o','l','d','e','r',0 } -# define CMDSTR_VIEWLISTW (const WCHAR []){ 'V','i','e','w','L','i','s','t',0 } -# define CMDSTR_VIEWDETAILSW (const WCHAR []){ 'V','i','e','w','D','e','t','a','i','l','s',0 } -#elif defined(_MSC_VER) -# define CMDSTR_NEWFOLDERW L"NewFolder" -# define CMDSTR_VIEWLISTW L"ViewList" -# define CMDSTR_VIEWDETAILSW L"ViewDetails" -#else -static const WCHAR CMDSTR_NEWFOLDERW[] = {'N','e','w','F','o','l','d','e','r',0}; -static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0}; -static const WCHAR CMDSTR_VIEWDETAILSW[] = {'V','i','e','w','D','e','t','a','i','l','s',0}; -#endif -#define CMDSTR_NEWFOLDER WINELIB_NAME_AW(CMDSTR_NEWFOLDER) -#define CMDSTR_VIEWLIST WINELIB_NAME_AW(CMDSTR_VIEWLIST) -#define CMDSTR_VIEWDETAILS WINELIB_NAME_AW(CMDSTR_VIEWDETAILS) -#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY -#define CMIC_MASK_ICON SEE_MASK_ICON -#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI -#define CMIC_MASK_UNICODE SEE_MASK_UNICODE -#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE -#define CMIC_MASK_HASLINKNAME SEE_MASK_HASLINKNAME -#define CMIC_MASK_FLAG_SEP_VDM SEE_MASK_FLAG_SEPVDM -#define CMIC_MASK_HASTITLE SEE_MASK_HASTITLE -#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK -#define CMIC_MASK_SHIFT_DOWN 0x10000000 -#define CMIC_MASK_PTINVOKE 0x20000000 -#define CMIC_MASK_CONTROL_DOWN 0x40000000 -#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE -#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS -typedef IContextMenu *LPCONTEXTMENU; - -typedef struct tagCMINVOKECOMMANDINFO { - DWORD cbSize; - DWORD fMask; - HWND hwnd; - LPCSTR lpVerb; - LPCSTR lpParameters; - LPCSTR lpDirectory; - INT nShow; - DWORD dwHotKey; - HANDLE hIcon; -} CMINVOKECOMMANDINFO, *LPCMINVOKECOMMANDINFO; - -typedef struct tagCMInvokeCommandInfoEx { - DWORD cbSize; - DWORD fMask; - HWND hwnd; - LPCSTR lpVerb; - LPCSTR lpParameters; - LPCSTR lpDirectory; - INT nShow; - DWORD dwHotKey; - HANDLE hIcon; - LPCSTR lpTitle; - LPCWSTR lpVerbW; - LPCWSTR lpParametersW; - LPCWSTR lpDirectoryW; - LPCWSTR lpTitleW; - POINT ptInvoke; -} CMINVOKECOMMANDINFOEX, *LPCMINVOKECOMMANDINFOEX; - -/***************************************************************************** - * IContextMenu interface - */ -#ifndef __IContextMenu_INTERFACE_DEFINED__ -#define __IContextMenu_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IContextMenu, 0x000214e4, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IContextMenu : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryContextMenu( - HMENU hmenu, - UINT indexMenu, - UINT idCmdFirst, - UINT idCmdLast, - UINT uFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE InvokeCommand( - LPCMINVOKECOMMANDINFO lpici) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCommandString( - UINT idCmd, - UINT uType, - UINT* pwReserved, - LPSTR pszName, - UINT cchMax) = 0; - -}; -#else -typedef struct IContextMenuVtbl IContextMenuVtbl; -struct IContextMenu { - const IContextMenuVtbl* lpVtbl; -}; -struct IContextMenuVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IContextMenu* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IContextMenu* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IContextMenu* This); - - /*** IContextMenu methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryContextMenu)( - IContextMenu* This, - HMENU hmenu, - UINT indexMenu, - UINT idCmdFirst, - UINT idCmdLast, - UINT uFlags); - - HRESULT (STDMETHODCALLTYPE *InvokeCommand)( - IContextMenu* This, - LPCMINVOKECOMMANDINFO lpici); - - HRESULT (STDMETHODCALLTYPE *GetCommandString)( - IContextMenu* This, - UINT idCmd, - UINT uType, - UINT* pwReserved, - LPSTR pszName, - UINT cchMax); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IContextMenu_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IContextMenu_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IContextMenu_Release(p) (p)->lpVtbl->Release(p) -/*** IContextMenu methods ***/ -#define IContextMenu_QueryContextMenu(p,a,b,c,d,e) (p)->lpVtbl->QueryContextMenu(p,a,b,c,d,e) -#define IContextMenu_InvokeCommand(p,a) (p)->lpVtbl->InvokeCommand(p,a) -#define IContextMenu_GetCommandString(p,a,b,c,d,e) (p)->lpVtbl->GetCommandString(p,a,b,c,d,e) -#endif - -#endif - -#define IContextMenu_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IContextMenu methods ***/ \ - STDMETHOD_(HRESULT,QueryContextMenu)(THIS_ HMENU hmenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags) PURE; \ - STDMETHOD_(HRESULT,InvokeCommand)(THIS_ LPCMINVOKECOMMANDINFO lpici) PURE; \ - STDMETHOD_(HRESULT,GetCommandString)(THIS_ UINT idCmd, UINT uType, UINT* pwReserved, LPSTR pszName, UINT cchMax) PURE; - -HRESULT CALLBACK IContextMenu_QueryContextMenu_Proxy( - IContextMenu* This, - HMENU hmenu, - UINT indexMenu, - UINT idCmdFirst, - UINT idCmdLast, - UINT uFlags); -void __RPC_STUB IContextMenu_QueryContextMenu_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IContextMenu_InvokeCommand_Proxy( - IContextMenu* This, - LPCMINVOKECOMMANDINFO lpici); -void __RPC_STUB IContextMenu_InvokeCommand_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IContextMenu_GetCommandString_Proxy( - IContextMenu* This, - UINT idCmd, - UINT uType, - UINT* pwReserved, - LPSTR pszName, - UINT cchMax); -void __RPC_STUB IContextMenu_GetCommandString_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IContextMenu_INTERFACE_DEFINED__ */ - -#ifndef __IContextMenu2_FWD_DEFINED__ -#define __IContextMenu2_FWD_DEFINED__ -typedef struct IContextMenu2 IContextMenu2; -#endif - -typedef IContextMenu2 *LPCONTEXTMENU2; - -/***************************************************************************** - * IContextMenu2 interface - */ -#ifndef __IContextMenu2_INTERFACE_DEFINED__ -#define __IContextMenu2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IContextMenu2, 0x000214f4, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IContextMenu2 : public IContextMenu -{ - virtual HRESULT STDMETHODCALLTYPE HandleMenuMsg( - UINT uMsg, - WPARAM wParam, - LPARAM lParam) = 0; - -}; -#else -typedef struct IContextMenu2Vtbl IContextMenu2Vtbl; -struct IContextMenu2 { - const IContextMenu2Vtbl* lpVtbl; -}; -struct IContextMenu2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IContextMenu2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IContextMenu2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IContextMenu2* This); - - /*** IContextMenu methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryContextMenu)( - IContextMenu2* This, - HMENU hmenu, - UINT indexMenu, - UINT idCmdFirst, - UINT idCmdLast, - UINT uFlags); - - HRESULT (STDMETHODCALLTYPE *InvokeCommand)( - IContextMenu2* This, - LPCMINVOKECOMMANDINFO lpici); - - HRESULT (STDMETHODCALLTYPE *GetCommandString)( - IContextMenu2* This, - UINT idCmd, - UINT uType, - UINT* pwReserved, - LPSTR pszName, - UINT cchMax); - - /*** IContextMenu2 methods ***/ - HRESULT (STDMETHODCALLTYPE *HandleMenuMsg)( - IContextMenu2* This, - UINT uMsg, - WPARAM wParam, - LPARAM lParam); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IContextMenu2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IContextMenu2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IContextMenu2_Release(p) (p)->lpVtbl->Release(p) -/*** IContextMenu methods ***/ -#define IContextMenu2_QueryContextMenu(p,a,b,c,d,e) (p)->lpVtbl->QueryContextMenu(p,a,b,c,d,e) -#define IContextMenu2_InvokeCommand(p,a) (p)->lpVtbl->InvokeCommand(p,a) -#define IContextMenu2_GetCommandString(p,a,b,c,d,e) (p)->lpVtbl->GetCommandString(p,a,b,c,d,e) -/*** IContextMenu2 methods ***/ -#define IContextMenu2_HandleMenuMsg(p,a,b,c) (p)->lpVtbl->HandleMenuMsg(p,a,b,c) -#endif - -#endif - -#define IContextMenu2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IContextMenu methods ***/ \ - STDMETHOD_(HRESULT,QueryContextMenu)(THIS_ HMENU hmenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags) PURE; \ - STDMETHOD_(HRESULT,InvokeCommand)(THIS_ LPCMINVOKECOMMANDINFO lpici) PURE; \ - STDMETHOD_(HRESULT,GetCommandString)(THIS_ UINT idCmd, UINT uType, UINT* pwReserved, LPSTR pszName, UINT cchMax) PURE; \ - /*** IContextMenu2 methods ***/ \ - STDMETHOD_(HRESULT,HandleMenuMsg)(THIS_ UINT uMsg, WPARAM wParam, LPARAM lParam) PURE; - -HRESULT CALLBACK IContextMenu2_HandleMenuMsg_Proxy( - IContextMenu2* This, - UINT uMsg, - WPARAM wParam, - LPARAM lParam); -void __RPC_STUB IContextMenu2_HandleMenuMsg_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IContextMenu2_INTERFACE_DEFINED__ */ - -#ifndef __IContextMenu3_FWD_DEFINED__ -#define __IContextMenu3_FWD_DEFINED__ -typedef struct IContextMenu3 IContextMenu3; -#endif - -typedef IContextMenu3 *LPCONTEXTMENU3; - -/***************************************************************************** - * IContextMenu3 interface - */ -#ifndef __IContextMenu3_INTERFACE_DEFINED__ -#define __IContextMenu3_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IContextMenu3, 0xbcfce0a0, 0xec17, 0x11d0, 0x8d,0x10, 0x00,0xa0,0xc9,0x0f,0x27,0x19); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IContextMenu3 : public IContextMenu2 -{ - virtual HRESULT STDMETHODCALLTYPE HandleMenuMsg2( - UINT uMsg, - WPARAM wParam, - LPARAM lParam, - LRESULT* plResult) = 0; - -}; -#else -typedef struct IContextMenu3Vtbl IContextMenu3Vtbl; -struct IContextMenu3 { - const IContextMenu3Vtbl* lpVtbl; -}; -struct IContextMenu3Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IContextMenu3* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IContextMenu3* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IContextMenu3* This); - - /*** IContextMenu methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryContextMenu)( - IContextMenu3* This, - HMENU hmenu, - UINT indexMenu, - UINT idCmdFirst, - UINT idCmdLast, - UINT uFlags); - - HRESULT (STDMETHODCALLTYPE *InvokeCommand)( - IContextMenu3* This, - LPCMINVOKECOMMANDINFO lpici); - - HRESULT (STDMETHODCALLTYPE *GetCommandString)( - IContextMenu3* This, - UINT idCmd, - UINT uType, - UINT* pwReserved, - LPSTR pszName, - UINT cchMax); - - /*** IContextMenu2 methods ***/ - HRESULT (STDMETHODCALLTYPE *HandleMenuMsg)( - IContextMenu3* This, - UINT uMsg, - WPARAM wParam, - LPARAM lParam); - - /*** IContextMenu3 methods ***/ - HRESULT (STDMETHODCALLTYPE *HandleMenuMsg2)( - IContextMenu3* This, - UINT uMsg, - WPARAM wParam, - LPARAM lParam, - LRESULT* plResult); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IContextMenu3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IContextMenu3_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IContextMenu3_Release(p) (p)->lpVtbl->Release(p) -/*** IContextMenu methods ***/ -#define IContextMenu3_QueryContextMenu(p,a,b,c,d,e) (p)->lpVtbl->QueryContextMenu(p,a,b,c,d,e) -#define IContextMenu3_InvokeCommand(p,a) (p)->lpVtbl->InvokeCommand(p,a) -#define IContextMenu3_GetCommandString(p,a,b,c,d,e) (p)->lpVtbl->GetCommandString(p,a,b,c,d,e) -/*** IContextMenu2 methods ***/ -#define IContextMenu3_HandleMenuMsg(p,a,b,c) (p)->lpVtbl->HandleMenuMsg(p,a,b,c) -/*** IContextMenu3 methods ***/ -#define IContextMenu3_HandleMenuMsg2(p,a,b,c,d) (p)->lpVtbl->HandleMenuMsg2(p,a,b,c,d) -#endif - -#endif - -#define IContextMenu3_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IContextMenu methods ***/ \ - STDMETHOD_(HRESULT,QueryContextMenu)(THIS_ HMENU hmenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags) PURE; \ - STDMETHOD_(HRESULT,InvokeCommand)(THIS_ LPCMINVOKECOMMANDINFO lpici) PURE; \ - STDMETHOD_(HRESULT,GetCommandString)(THIS_ UINT idCmd, UINT uType, UINT* pwReserved, LPSTR pszName, UINT cchMax) PURE; \ - /*** IContextMenu2 methods ***/ \ - STDMETHOD_(HRESULT,HandleMenuMsg)(THIS_ UINT uMsg, WPARAM wParam, LPARAM lParam) PURE; \ - /*** IContextMenu3 methods ***/ \ - STDMETHOD_(HRESULT,HandleMenuMsg2)(THIS_ UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT* plResult) PURE; - -HRESULT CALLBACK IContextMenu3_HandleMenuMsg2_Proxy( - IContextMenu3* This, - UINT uMsg, - WPARAM wParam, - LPARAM lParam, - LRESULT* plResult); -void __RPC_STUB IContextMenu3_HandleMenuMsg2_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IContextMenu3_INTERFACE_DEFINED__ */ - -#ifndef __IShellExecuteHookA_FWD_DEFINED__ -#define __IShellExecuteHookA_FWD_DEFINED__ -typedef struct IShellExecuteHookA IShellExecuteHookA; -#endif - -struct _SHELLEXECUTEINFOA; -/***************************************************************************** - * IShellExecuteHookA interface - */ -#ifndef __IShellExecuteHookA_INTERFACE_DEFINED__ -#define __IShellExecuteHookA_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IShellExecuteHookA, 0x000214f5, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IShellExecuteHookA : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Execute( - struct _SHELLEXECUTEINFOA* pei) = 0; - -}; -#else -typedef struct IShellExecuteHookAVtbl IShellExecuteHookAVtbl; -struct IShellExecuteHookA { - const IShellExecuteHookAVtbl* lpVtbl; -}; -struct IShellExecuteHookAVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IShellExecuteHookA* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IShellExecuteHookA* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IShellExecuteHookA* This); - - /*** IShellExecuteHookA methods ***/ - HRESULT (STDMETHODCALLTYPE *Execute)( - IShellExecuteHookA* This, - struct _SHELLEXECUTEINFOA* pei); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IShellExecuteHookA_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IShellExecuteHookA_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IShellExecuteHookA_Release(p) (p)->lpVtbl->Release(p) -/*** IShellExecuteHookA methods ***/ -#define IShellExecuteHookA_Execute(p,a) (p)->lpVtbl->Execute(p,a) -#endif - -#endif - -#define IShellExecuteHookA_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IShellExecuteHookA methods ***/ \ - STDMETHOD_(HRESULT,Execute)(THIS_ struct _SHELLEXECUTEINFOA* pei) PURE; - -HRESULT CALLBACK IShellExecuteHookA_Execute_Proxy( - IShellExecuteHookA* This, - struct _SHELLEXECUTEINFOA* pei); -void __RPC_STUB IShellExecuteHookA_Execute_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IShellExecuteHookA_INTERFACE_DEFINED__ */ - -#ifndef __IShellExecuteHookW_FWD_DEFINED__ -#define __IShellExecuteHookW_FWD_DEFINED__ -typedef struct IShellExecuteHookW IShellExecuteHookW; -#endif - -struct _SHELLEXECUTEINFOW; -/***************************************************************************** - * IShellExecuteHookW interface - */ -#ifndef __IShellExecuteHookW_INTERFACE_DEFINED__ -#define __IShellExecuteHookW_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IShellExecuteHookW, 0x000214fb, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IShellExecuteHookW : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Execute( - struct _SHELLEXECUTEINFOW* pei) = 0; - -}; -#else -typedef struct IShellExecuteHookWVtbl IShellExecuteHookWVtbl; -struct IShellExecuteHookW { - const IShellExecuteHookWVtbl* lpVtbl; -}; -struct IShellExecuteHookWVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IShellExecuteHookW* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IShellExecuteHookW* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IShellExecuteHookW* This); - - /*** IShellExecuteHookW methods ***/ - HRESULT (STDMETHODCALLTYPE *Execute)( - IShellExecuteHookW* This, - struct _SHELLEXECUTEINFOW* pei); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IShellExecuteHookW_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IShellExecuteHookW_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IShellExecuteHookW_Release(p) (p)->lpVtbl->Release(p) -/*** IShellExecuteHookW methods ***/ -#define IShellExecuteHookW_Execute(p,a) (p)->lpVtbl->Execute(p,a) -#endif - -#endif - -#define IShellExecuteHookW_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IShellExecuteHookW methods ***/ \ - STDMETHOD_(HRESULT,Execute)(THIS_ struct _SHELLEXECUTEINFOW* pei) PURE; - -HRESULT CALLBACK IShellExecuteHookW_Execute_Proxy( - IShellExecuteHookW* This, - struct _SHELLEXECUTEINFOW* pei); -void __RPC_STUB IShellExecuteHookW_Execute_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IShellExecuteHookW_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_SHOBJIDL_H */ diff --git a/include/shtypes.h b/include/shtypes.h deleted file mode 100644 index 8946190cdd1..00000000000 --- a/include/shtypes.h +++ /dev/null @@ -1,60 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from shtypes.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_SHTYPES_H -#define __WIDL_SHTYPES_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -typedef struct { - WORD cb; - BYTE abID[1]; -} SHITEMID, *LPSHITEMID; - -typedef const SHITEMID *LPCSHITEMID; - -typedef struct _ITEMIDLIST { - SHITEMID mkid; -} ITEMIDLIST, *LPITEMIDLIST; - -typedef const ITEMIDLIST *LPCITEMIDLIST; - -#include -#if 0 -typedef struct { - int dummy; -} WIN32_FIND_DATAA, WIN32_FIND_DATAW; - -#endif -typedef enum tagSTRRET_TYPE { - STRRET_WSTR = 0, - STRRET_OFFSET = 1, - STRRET_CSTR = 2 -} STRRET_TYPE; - -#include -typedef struct _STRRET { - UINT uType; - union { - LPWSTR pOleStr; - UINT uOffset; - char cStr[260]; - } DUMMYUNIONNAME; -} STRRET, *LPSTRRET; - -#include -#include -typedef struct { - int fmt; - int cxChar; - STRRET str; -} SHELLDETAILS, *LPSHELLDETAILS; - -#include -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_SHTYPES_H */ diff --git a/include/strmif.h b/include/strmif.h deleted file mode 100644 index 382dc6ea9fb..00000000000 --- a/include/strmif.h +++ /dev/null @@ -1,7964 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from strmif.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_STRMIF_H -#define __WIDL_STRMIF_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#define CDEF_CLASS_DEFAULT 0x0001 -#define CDEF_BYPASS_CLASS_MANAGER 0x0002 -#define CDEF_CLASS_LEGACY 0x0004 -#define CDEF_MERIT_ABOVE_DO_NOT_USE 0x0008 -#ifndef __ICreateDevEnum_FWD_DEFINED__ -#define __ICreateDevEnum_FWD_DEFINED__ -typedef struct ICreateDevEnum ICreateDevEnum; -#endif - -/***************************************************************************** - * ICreateDevEnum interface - */ -#ifndef __ICreateDevEnum_INTERFACE_DEFINED__ -#define __ICreateDevEnum_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICreateDevEnum, 0x29840822, 0x5b84, 0x11d0, 0xbd,0x3b, 0x00,0xa0,0xc9,0x11,0xce,0x86); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICreateDevEnum : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CreateClassEnumerator( - REFCLSID clsidDeviceClass, - IEnumMoniker** ppEnumMoniker, - DWORD dwFlags) = 0; - -}; -#else -typedef struct ICreateDevEnumVtbl ICreateDevEnumVtbl; -struct ICreateDevEnum { - const ICreateDevEnumVtbl* lpVtbl; -}; -struct ICreateDevEnumVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICreateDevEnum* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICreateDevEnum* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICreateDevEnum* This); - - /*** ICreateDevEnum methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateClassEnumerator)( - ICreateDevEnum* This, - REFCLSID clsidDeviceClass, - IEnumMoniker** ppEnumMoniker, - DWORD dwFlags); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICreateDevEnum_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICreateDevEnum_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICreateDevEnum_Release(p) (p)->lpVtbl->Release(p) -/*** ICreateDevEnum methods ***/ -#define ICreateDevEnum_CreateClassEnumerator(p,a,b,c) (p)->lpVtbl->CreateClassEnumerator(p,a,b,c) -#endif - -#endif - -#define ICreateDevEnum_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICreateDevEnum methods ***/ \ - STDMETHOD_(HRESULT,CreateClassEnumerator)(THIS_ REFCLSID clsidDeviceClass, IEnumMoniker** ppEnumMoniker, DWORD dwFlags) PURE; - -HRESULT CALLBACK ICreateDevEnum_CreateClassEnumerator_Proxy( - ICreateDevEnum* This, - REFCLSID clsidDeviceClass, - IEnumMoniker** ppEnumMoniker, - DWORD dwFlags); -void __RPC_STUB ICreateDevEnum_CreateClassEnumerator_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICreateDevEnum_INTERFACE_DEFINED__ */ - -#define CHARS_IN_GUID 39 -#undef GetTimeFormat -typedef struct _AMMediaType { - GUID majortype; - GUID subtype; - BOOL bFixedSizeSamples; - BOOL bTemporalCompression; - ULONG lSampleSize; - GUID formattype; - IUnknown *pUnk; - ULONG cbFormat; - BYTE *pbFormat; -} AM_MEDIA_TYPE; - -typedef enum _PinDirection { - PINDIR_INPUT, - PINDIR_OUTPUT -} PIN_DIRECTION; - -#define MAX_PIN_NAME 128 -#define MAX_FILTER_NAME 128 -typedef LONGLONG REFERENCE_TIME; - -typedef DOUBLE REFTIME; - -typedef DWORD_PTR HSEMAPHORE; - -typedef DWORD_PTR HEVENT; - -typedef struct _AllocatorProperties { - long cBuffers; - long cbBuffer; - long cbAlign; - long cbPrefix; -} ALLOCATOR_PROPERTIES; - -#ifndef __IAMovieSetup_FWD_DEFINED__ -#define __IAMovieSetup_FWD_DEFINED__ -typedef struct IAMovieSetup IAMovieSetup; -#endif - -#ifndef __IEnumFilters_FWD_DEFINED__ -#define __IEnumFilters_FWD_DEFINED__ -typedef struct IEnumFilters IEnumFilters; -#endif - -#ifndef __IEnumMediaTypes_FWD_DEFINED__ -#define __IEnumMediaTypes_FWD_DEFINED__ -typedef struct IEnumMediaTypes IEnumMediaTypes; -#endif - -#ifndef __IEnumPins_FWD_DEFINED__ -#define __IEnumPins_FWD_DEFINED__ -typedef struct IEnumPins IEnumPins; -#endif - -#ifndef __IBaseFilter_FWD_DEFINED__ -#define __IBaseFilter_FWD_DEFINED__ -typedef struct IBaseFilter IBaseFilter; -#endif - -#ifndef __IFilterGraph_FWD_DEFINED__ -#define __IFilterGraph_FWD_DEFINED__ -typedef struct IFilterGraph IFilterGraph; -#endif - -#ifndef __IMediaFilter_FWD_DEFINED__ -#define __IMediaFilter_FWD_DEFINED__ -typedef struct IMediaFilter IMediaFilter; -#endif - -#ifndef __IMediaSample_FWD_DEFINED__ -#define __IMediaSample_FWD_DEFINED__ -typedef struct IMediaSample IMediaSample; -#endif - -#ifndef __IMemAllocator_FWD_DEFINED__ -#define __IMemAllocator_FWD_DEFINED__ -typedef struct IMemAllocator IMemAllocator; -#endif - -#ifndef __IMemAllocatorCallbackTemp_FWD_DEFINED__ -#define __IMemAllocatorCallbackTemp_FWD_DEFINED__ -typedef struct IMemAllocatorCallbackTemp IMemAllocatorCallbackTemp; -#endif - -#ifndef __IMemAllocatorNotifyCallbackTemp_FWD_DEFINED__ -#define __IMemAllocatorNotifyCallbackTemp_FWD_DEFINED__ -typedef struct IMemAllocatorNotifyCallbackTemp IMemAllocatorNotifyCallbackTemp; -#endif - -#ifndef __IMemInputPin_FWD_DEFINED__ -#define __IMemInputPin_FWD_DEFINED__ -typedef struct IMemInputPin IMemInputPin; -#endif - -#ifndef __IPin_FWD_DEFINED__ -#define __IPin_FWD_DEFINED__ -typedef struct IPin IPin; -#endif - -#ifndef __IReferenceClock_FWD_DEFINED__ -#define __IReferenceClock_FWD_DEFINED__ -typedef struct IReferenceClock IReferenceClock; -#endif - -typedef struct _PinInfo { - IBaseFilter *pFilter; - PIN_DIRECTION dir; - WCHAR achName[128]; -} PIN_INFO; - -/***************************************************************************** - * IPin interface - */ -#ifndef __IPin_INTERFACE_DEFINED__ -#define __IPin_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPin, 0x56a86891, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPin : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Connect( - IPin* pReceivePin, - const AM_MEDIA_TYPE* pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReceiveConnection( - IPin* pConnector, - const AM_MEDIA_TYPE* pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Disconnect( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConnectedTo( - IPin** pPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConnectionMediaType( - AM_MEDIA_TYPE* pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryPinInfo( - PIN_INFO* pInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryDirection( - PIN_DIRECTION* pPinDir) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryId( - LPWSTR* Id) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryAccept( - const AM_MEDIA_TYPE* pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumMediaTypes( - IEnumMediaTypes** ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryInternalConnections( - IPin** apPin, - ULONG* nPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE EndOfStream( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE BeginFlush( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE EndFlush( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE NewSegment( - REFERENCE_TIME tStart, - REFERENCE_TIME tStop, - double dRate) = 0; - -}; -#else -typedef struct IPinVtbl IPinVtbl; -struct IPin { - const IPinVtbl* lpVtbl; -}; -struct IPinVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPin* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPin* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPin* This); - - /*** IPin methods ***/ - HRESULT (STDMETHODCALLTYPE *Connect)( - IPin* This, - IPin* pReceivePin, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *ReceiveConnection)( - IPin* This, - IPin* pConnector, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *Disconnect)( - IPin* This); - - HRESULT (STDMETHODCALLTYPE *ConnectedTo)( - IPin* This, - IPin** pPin); - - HRESULT (STDMETHODCALLTYPE *ConnectionMediaType)( - IPin* This, - AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *QueryPinInfo)( - IPin* This, - PIN_INFO* pInfo); - - HRESULT (STDMETHODCALLTYPE *QueryDirection)( - IPin* This, - PIN_DIRECTION* pPinDir); - - HRESULT (STDMETHODCALLTYPE *QueryId)( - IPin* This, - LPWSTR* Id); - - HRESULT (STDMETHODCALLTYPE *QueryAccept)( - IPin* This, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *EnumMediaTypes)( - IPin* This, - IEnumMediaTypes** ppEnum); - - HRESULT (STDMETHODCALLTYPE *QueryInternalConnections)( - IPin* This, - IPin** apPin, - ULONG* nPin); - - HRESULT (STDMETHODCALLTYPE *EndOfStream)( - IPin* This); - - HRESULT (STDMETHODCALLTYPE *BeginFlush)( - IPin* This); - - HRESULT (STDMETHODCALLTYPE *EndFlush)( - IPin* This); - - HRESULT (STDMETHODCALLTYPE *NewSegment)( - IPin* This, - REFERENCE_TIME tStart, - REFERENCE_TIME tStop, - double dRate); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPin_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPin_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPin_Release(p) (p)->lpVtbl->Release(p) -/*** IPin methods ***/ -#define IPin_Connect(p,a,b) (p)->lpVtbl->Connect(p,a,b) -#define IPin_ReceiveConnection(p,a,b) (p)->lpVtbl->ReceiveConnection(p,a,b) -#define IPin_Disconnect(p) (p)->lpVtbl->Disconnect(p) -#define IPin_ConnectedTo(p,a) (p)->lpVtbl->ConnectedTo(p,a) -#define IPin_ConnectionMediaType(p,a) (p)->lpVtbl->ConnectionMediaType(p,a) -#define IPin_QueryPinInfo(p,a) (p)->lpVtbl->QueryPinInfo(p,a) -#define IPin_QueryDirection(p,a) (p)->lpVtbl->QueryDirection(p,a) -#define IPin_QueryId(p,a) (p)->lpVtbl->QueryId(p,a) -#define IPin_QueryAccept(p,a) (p)->lpVtbl->QueryAccept(p,a) -#define IPin_EnumMediaTypes(p,a) (p)->lpVtbl->EnumMediaTypes(p,a) -#define IPin_QueryInternalConnections(p,a,b) (p)->lpVtbl->QueryInternalConnections(p,a,b) -#define IPin_EndOfStream(p) (p)->lpVtbl->EndOfStream(p) -#define IPin_BeginFlush(p) (p)->lpVtbl->BeginFlush(p) -#define IPin_EndFlush(p) (p)->lpVtbl->EndFlush(p) -#define IPin_NewSegment(p,a,b,c) (p)->lpVtbl->NewSegment(p,a,b,c) -#endif - -#endif - -#define IPin_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPin methods ***/ \ - STDMETHOD_(HRESULT,Connect)(THIS_ IPin* pReceivePin, const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,ReceiveConnection)(THIS_ IPin* pConnector, const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,Disconnect)(THIS) PURE; \ - STDMETHOD_(HRESULT,ConnectedTo)(THIS_ IPin** pPin) PURE; \ - STDMETHOD_(HRESULT,ConnectionMediaType)(THIS_ AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,QueryPinInfo)(THIS_ PIN_INFO* pInfo) PURE; \ - STDMETHOD_(HRESULT,QueryDirection)(THIS_ PIN_DIRECTION* pPinDir) PURE; \ - STDMETHOD_(HRESULT,QueryId)(THIS_ LPWSTR* Id) PURE; \ - STDMETHOD_(HRESULT,QueryAccept)(THIS_ const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,EnumMediaTypes)(THIS_ IEnumMediaTypes** ppEnum) PURE; \ - STDMETHOD_(HRESULT,QueryInternalConnections)(THIS_ IPin** apPin, ULONG* nPin) PURE; \ - STDMETHOD_(HRESULT,EndOfStream)(THIS) PURE; \ - STDMETHOD_(HRESULT,BeginFlush)(THIS) PURE; \ - STDMETHOD_(HRESULT,EndFlush)(THIS) PURE; \ - STDMETHOD_(HRESULT,NewSegment)(THIS_ REFERENCE_TIME tStart, REFERENCE_TIME tStop, double dRate) PURE; - -HRESULT CALLBACK IPin_Connect_Proxy( - IPin* This, - IPin* pReceivePin, - const AM_MEDIA_TYPE* pmt); -void __RPC_STUB IPin_Connect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_ReceiveConnection_Proxy( - IPin* This, - IPin* pConnector, - const AM_MEDIA_TYPE* pmt); -void __RPC_STUB IPin_ReceiveConnection_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_Disconnect_Proxy( - IPin* This); -void __RPC_STUB IPin_Disconnect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_ConnectedTo_Proxy( - IPin* This, - IPin** pPin); -void __RPC_STUB IPin_ConnectedTo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_ConnectionMediaType_Proxy( - IPin* This, - AM_MEDIA_TYPE* pmt); -void __RPC_STUB IPin_ConnectionMediaType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_QueryPinInfo_Proxy( - IPin* This, - PIN_INFO* pInfo); -void __RPC_STUB IPin_QueryPinInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_QueryDirection_Proxy( - IPin* This, - PIN_DIRECTION* pPinDir); -void __RPC_STUB IPin_QueryDirection_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_QueryId_Proxy( - IPin* This, - LPWSTR* Id); -void __RPC_STUB IPin_QueryId_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_QueryAccept_Proxy( - IPin* This, - const AM_MEDIA_TYPE* pmt); -void __RPC_STUB IPin_QueryAccept_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_EnumMediaTypes_Proxy( - IPin* This, - IEnumMediaTypes** ppEnum); -void __RPC_STUB IPin_EnumMediaTypes_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_QueryInternalConnections_Proxy( - IPin* This, - IPin** apPin, - ULONG* nPin); -void __RPC_STUB IPin_QueryInternalConnections_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_EndOfStream_Proxy( - IPin* This); -void __RPC_STUB IPin_EndOfStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_BeginFlush_Proxy( - IPin* This); -void __RPC_STUB IPin_BeginFlush_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_EndFlush_Proxy( - IPin* This); -void __RPC_STUB IPin_EndFlush_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPin_NewSegment_Proxy( - IPin* This, - REFERENCE_TIME tStart, - REFERENCE_TIME tStop, - double dRate); -void __RPC_STUB IPin_NewSegment_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPin_INTERFACE_DEFINED__ */ - -typedef IPin *PPIN; - -/***************************************************************************** - * IEnumPins interface - */ -#ifndef __IEnumPins_INTERFACE_DEFINED__ -#define __IEnumPins_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumPins, 0x56a86892, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumPins : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG cPins, - IPin** ppPins, - ULONG* pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG cPins) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumPins** ppEnum) = 0; - -}; -#else -typedef struct IEnumPinsVtbl IEnumPinsVtbl; -struct IEnumPins { - const IEnumPinsVtbl* lpVtbl; -}; -struct IEnumPinsVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumPins* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumPins* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumPins* This); - - /*** IEnumPins methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumPins* This, - ULONG cPins, - IPin** ppPins, - ULONG* pcFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumPins* This, - ULONG cPins); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumPins* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumPins* This, - IEnumPins** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumPins_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumPins_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumPins_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumPins methods ***/ -#define IEnumPins_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumPins_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumPins_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumPins_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumPins_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumPins methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG cPins, IPin** ppPins, ULONG* pcFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cPins) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumPins** ppEnum) PURE; - -HRESULT CALLBACK IEnumPins_Next_Proxy( - IEnumPins* This, - ULONG cPins, - IPin** ppPins, - ULONG* pcFetched); -void __RPC_STUB IEnumPins_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumPins_Skip_Proxy( - IEnumPins* This, - ULONG cPins); -void __RPC_STUB IEnumPins_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumPins_Reset_Proxy( - IEnumPins* This); -void __RPC_STUB IEnumPins_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumPins_Clone_Proxy( - IEnumPins* This, - IEnumPins** ppEnum); -void __RPC_STUB IEnumPins_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumPins_INTERFACE_DEFINED__ */ - -typedef IEnumPins *PENUMPINS; - -/***************************************************************************** - * IEnumMediaTypes interface - */ -#ifndef __IEnumMediaTypes_INTERFACE_DEFINED__ -#define __IEnumMediaTypes_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumMediaTypes, 0x89c31040, 0x846b, 0x11ce, 0x97,0xd3, 0x00,0xaa,0x00,0x55,0x59,0x5a); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumMediaTypes : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG cMediaTypes, - AM_MEDIA_TYPE** ppMediaTypes, - ULONG* pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG cMediaTypes) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumMediaTypes** ppEnum) = 0; - -}; -#else -typedef struct IEnumMediaTypesVtbl IEnumMediaTypesVtbl; -struct IEnumMediaTypes { - const IEnumMediaTypesVtbl* lpVtbl; -}; -struct IEnumMediaTypesVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumMediaTypes* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumMediaTypes* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumMediaTypes* This); - - /*** IEnumMediaTypes methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumMediaTypes* This, - ULONG cMediaTypes, - AM_MEDIA_TYPE** ppMediaTypes, - ULONG* pcFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumMediaTypes* This, - ULONG cMediaTypes); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumMediaTypes* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumMediaTypes* This, - IEnumMediaTypes** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumMediaTypes_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumMediaTypes_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumMediaTypes_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumMediaTypes methods ***/ -#define IEnumMediaTypes_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumMediaTypes_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumMediaTypes_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumMediaTypes_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumMediaTypes_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumMediaTypes methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG cMediaTypes, AM_MEDIA_TYPE** ppMediaTypes, ULONG* pcFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cMediaTypes) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumMediaTypes** ppEnum) PURE; - -HRESULT CALLBACK IEnumMediaTypes_Next_Proxy( - IEnumMediaTypes* This, - ULONG cMediaTypes, - AM_MEDIA_TYPE** ppMediaTypes, - ULONG* pcFetched); -void __RPC_STUB IEnumMediaTypes_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumMediaTypes_Skip_Proxy( - IEnumMediaTypes* This, - ULONG cMediaTypes); -void __RPC_STUB IEnumMediaTypes_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumMediaTypes_Reset_Proxy( - IEnumMediaTypes* This); -void __RPC_STUB IEnumMediaTypes_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumMediaTypes_Clone_Proxy( - IEnumMediaTypes* This, - IEnumMediaTypes** ppEnum); -void __RPC_STUB IEnumMediaTypes_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumMediaTypes_INTERFACE_DEFINED__ */ - -typedef IEnumMediaTypes *PENUMMEDIATYPES; - -/***************************************************************************** - * IFilterGraph interface - */ -#ifndef __IFilterGraph_INTERFACE_DEFINED__ -#define __IFilterGraph_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFilterGraph, 0x56a8689f, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFilterGraph : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE AddFilter( - IBaseFilter* pFilter, - LPCWSTR pName) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveFilter( - IBaseFilter* pFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumFilters( - IEnumFilters** ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindFilterByName( - LPCWSTR pName, - IBaseFilter** ppFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConnectDirect( - IPin* ppinOut, - IPin* ppinIn, - const AM_MEDIA_TYPE* pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reconnect( - IPin* ppin) = 0; - - virtual HRESULT STDMETHODCALLTYPE Disconnect( - IPin* ppin) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDefaultSyncSource( - ) = 0; - -}; -#else -typedef struct IFilterGraphVtbl IFilterGraphVtbl; -struct IFilterGraph { - const IFilterGraphVtbl* lpVtbl; -}; -struct IFilterGraphVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFilterGraph* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFilterGraph* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFilterGraph* This); - - /*** IFilterGraph methods ***/ - HRESULT (STDMETHODCALLTYPE *AddFilter)( - IFilterGraph* This, - IBaseFilter* pFilter, - LPCWSTR pName); - - HRESULT (STDMETHODCALLTYPE *RemoveFilter)( - IFilterGraph* This, - IBaseFilter* pFilter); - - HRESULT (STDMETHODCALLTYPE *EnumFilters)( - IFilterGraph* This, - IEnumFilters** ppEnum); - - HRESULT (STDMETHODCALLTYPE *FindFilterByName)( - IFilterGraph* This, - LPCWSTR pName, - IBaseFilter** ppFilter); - - HRESULT (STDMETHODCALLTYPE *ConnectDirect)( - IFilterGraph* This, - IPin* ppinOut, - IPin* ppinIn, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *Reconnect)( - IFilterGraph* This, - IPin* ppin); - - HRESULT (STDMETHODCALLTYPE *Disconnect)( - IFilterGraph* This, - IPin* ppin); - - HRESULT (STDMETHODCALLTYPE *SetDefaultSyncSource)( - IFilterGraph* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFilterGraph_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFilterGraph_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFilterGraph_Release(p) (p)->lpVtbl->Release(p) -/*** IFilterGraph methods ***/ -#define IFilterGraph_AddFilter(p,a,b) (p)->lpVtbl->AddFilter(p,a,b) -#define IFilterGraph_RemoveFilter(p,a) (p)->lpVtbl->RemoveFilter(p,a) -#define IFilterGraph_EnumFilters(p,a) (p)->lpVtbl->EnumFilters(p,a) -#define IFilterGraph_FindFilterByName(p,a,b) (p)->lpVtbl->FindFilterByName(p,a,b) -#define IFilterGraph_ConnectDirect(p,a,b,c) (p)->lpVtbl->ConnectDirect(p,a,b,c) -#define IFilterGraph_Reconnect(p,a) (p)->lpVtbl->Reconnect(p,a) -#define IFilterGraph_Disconnect(p,a) (p)->lpVtbl->Disconnect(p,a) -#define IFilterGraph_SetDefaultSyncSource(p) (p)->lpVtbl->SetDefaultSyncSource(p) -#endif - -#endif - -#define IFilterGraph_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFilterGraph methods ***/ \ - STDMETHOD_(HRESULT,AddFilter)(THIS_ IBaseFilter* pFilter, LPCWSTR pName) PURE; \ - STDMETHOD_(HRESULT,RemoveFilter)(THIS_ IBaseFilter* pFilter) PURE; \ - STDMETHOD_(HRESULT,EnumFilters)(THIS_ IEnumFilters** ppEnum) PURE; \ - STDMETHOD_(HRESULT,FindFilterByName)(THIS_ LPCWSTR pName, IBaseFilter** ppFilter) PURE; \ - STDMETHOD_(HRESULT,ConnectDirect)(THIS_ IPin* ppinOut, IPin* ppinIn, const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,Reconnect)(THIS_ IPin* ppin) PURE; \ - STDMETHOD_(HRESULT,Disconnect)(THIS_ IPin* ppin) PURE; \ - STDMETHOD_(HRESULT,SetDefaultSyncSource)(THIS) PURE; - -HRESULT CALLBACK IFilterGraph_AddFilter_Proxy( - IFilterGraph* This, - IBaseFilter* pFilter, - LPCWSTR pName); -void __RPC_STUB IFilterGraph_AddFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterGraph_RemoveFilter_Proxy( - IFilterGraph* This, - IBaseFilter* pFilter); -void __RPC_STUB IFilterGraph_RemoveFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterGraph_EnumFilters_Proxy( - IFilterGraph* This, - IEnumFilters** ppEnum); -void __RPC_STUB IFilterGraph_EnumFilters_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterGraph_FindFilterByName_Proxy( - IFilterGraph* This, - LPCWSTR pName, - IBaseFilter** ppFilter); -void __RPC_STUB IFilterGraph_FindFilterByName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterGraph_ConnectDirect_Proxy( - IFilterGraph* This, - IPin* ppinOut, - IPin* ppinIn, - const AM_MEDIA_TYPE* pmt); -void __RPC_STUB IFilterGraph_ConnectDirect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterGraph_Reconnect_Proxy( - IFilterGraph* This, - IPin* ppin); -void __RPC_STUB IFilterGraph_Reconnect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterGraph_Disconnect_Proxy( - IFilterGraph* This, - IPin* ppin); -void __RPC_STUB IFilterGraph_Disconnect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterGraph_SetDefaultSyncSource_Proxy( - IFilterGraph* This); -void __RPC_STUB IFilterGraph_SetDefaultSyncSource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFilterGraph_INTERFACE_DEFINED__ */ - -typedef IFilterGraph *PFILTERGRAPH; - -/***************************************************************************** - * IEnumFilters interface - */ -#ifndef __IEnumFilters_INTERFACE_DEFINED__ -#define __IEnumFilters_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumFilters, 0x56a86893, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumFilters : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG cFilters, - IBaseFilter** ppFilter, - ULONG* pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG cFilters) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumFilters** ppEnum) = 0; - -}; -#else -typedef struct IEnumFiltersVtbl IEnumFiltersVtbl; -struct IEnumFilters { - const IEnumFiltersVtbl* lpVtbl; -}; -struct IEnumFiltersVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumFilters* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumFilters* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumFilters* This); - - /*** IEnumFilters methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumFilters* This, - ULONG cFilters, - IBaseFilter** ppFilter, - ULONG* pcFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumFilters* This, - ULONG cFilters); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumFilters* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumFilters* This, - IEnumFilters** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumFilters_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumFilters_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumFilters_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumFilters methods ***/ -#define IEnumFilters_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumFilters_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumFilters_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumFilters_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumFilters_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumFilters methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG cFilters, IBaseFilter** ppFilter, ULONG* pcFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cFilters) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumFilters** ppEnum) PURE; - -HRESULT CALLBACK IEnumFilters_Next_Proxy( - IEnumFilters* This, - ULONG cFilters, - IBaseFilter** ppFilter, - ULONG* pcFetched); -void __RPC_STUB IEnumFilters_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumFilters_Skip_Proxy( - IEnumFilters* This, - ULONG cFilters); -void __RPC_STUB IEnumFilters_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumFilters_Reset_Proxy( - IEnumFilters* This); -void __RPC_STUB IEnumFilters_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumFilters_Clone_Proxy( - IEnumFilters* This, - IEnumFilters** ppEnum); -void __RPC_STUB IEnumFilters_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumFilters_INTERFACE_DEFINED__ */ - -typedef IEnumFilters *PENUMFILTERS; - -typedef enum _FilterState { - State_Stopped, - State_Paused, - State_Running -} FILTER_STATE; - -/***************************************************************************** - * IMediaFilter interface - */ -#ifndef __IMediaFilter_INTERFACE_DEFINED__ -#define __IMediaFilter_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMediaFilter, 0x56a86899, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMediaFilter : public IPersist -{ - virtual HRESULT STDMETHODCALLTYPE Stop( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Pause( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Run( - REFERENCE_TIME tStart) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetState( - DWORD dwMilliSecsTimeout, - FILTER_STATE* State) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSyncSource( - IReferenceClock* pClock) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetSyncSource( - IReferenceClock** pClock) = 0; - -}; -#else -typedef struct IMediaFilterVtbl IMediaFilterVtbl; -struct IMediaFilter { - const IMediaFilterVtbl* lpVtbl; -}; -struct IMediaFilterVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMediaFilter* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMediaFilter* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMediaFilter* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IMediaFilter* This, - CLSID* pClassID); - - /*** IMediaFilter methods ***/ - HRESULT (STDMETHODCALLTYPE *Stop)( - IMediaFilter* This); - - HRESULT (STDMETHODCALLTYPE *Pause)( - IMediaFilter* This); - - HRESULT (STDMETHODCALLTYPE *Run)( - IMediaFilter* This, - REFERENCE_TIME tStart); - - HRESULT (STDMETHODCALLTYPE *GetState)( - IMediaFilter* This, - DWORD dwMilliSecsTimeout, - FILTER_STATE* State); - - HRESULT (STDMETHODCALLTYPE *SetSyncSource)( - IMediaFilter* This, - IReferenceClock* pClock); - - HRESULT (STDMETHODCALLTYPE *GetSyncSource)( - IMediaFilter* This, - IReferenceClock** pClock); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMediaFilter_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMediaFilter_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMediaFilter_Release(p) (p)->lpVtbl->Release(p) -/*** IPersist methods ***/ -#define IMediaFilter_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -/*** IMediaFilter methods ***/ -#define IMediaFilter_Stop(p) (p)->lpVtbl->Stop(p) -#define IMediaFilter_Pause(p) (p)->lpVtbl->Pause(p) -#define IMediaFilter_Run(p,a) (p)->lpVtbl->Run(p,a) -#define IMediaFilter_GetState(p,a,b) (p)->lpVtbl->GetState(p,a,b) -#define IMediaFilter_SetSyncSource(p,a) (p)->lpVtbl->SetSyncSource(p,a) -#define IMediaFilter_GetSyncSource(p,a) (p)->lpVtbl->GetSyncSource(p,a) -#endif - -#endif - -#define IMediaFilter_METHODS \ - /*** 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; \ - /*** IMediaFilter methods ***/ \ - STDMETHOD_(HRESULT,Stop)(THIS) PURE; \ - STDMETHOD_(HRESULT,Pause)(THIS) PURE; \ - STDMETHOD_(HRESULT,Run)(THIS_ REFERENCE_TIME tStart) PURE; \ - STDMETHOD_(HRESULT,GetState)(THIS_ DWORD dwMilliSecsTimeout, FILTER_STATE* State) PURE; \ - STDMETHOD_(HRESULT,SetSyncSource)(THIS_ IReferenceClock* pClock) PURE; \ - STDMETHOD_(HRESULT,GetSyncSource)(THIS_ IReferenceClock** pClock) PURE; - -HRESULT CALLBACK IMediaFilter_Stop_Proxy( - IMediaFilter* This); -void __RPC_STUB IMediaFilter_Stop_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaFilter_Pause_Proxy( - IMediaFilter* This); -void __RPC_STUB IMediaFilter_Pause_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaFilter_Run_Proxy( - IMediaFilter* This, - REFERENCE_TIME tStart); -void __RPC_STUB IMediaFilter_Run_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaFilter_GetState_Proxy( - IMediaFilter* This, - DWORD dwMilliSecsTimeout, - FILTER_STATE* State); -void __RPC_STUB IMediaFilter_GetState_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaFilter_SetSyncSource_Proxy( - IMediaFilter* This, - IReferenceClock* pClock); -void __RPC_STUB IMediaFilter_SetSyncSource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaFilter_GetSyncSource_Proxy( - IMediaFilter* This, - IReferenceClock** pClock); -void __RPC_STUB IMediaFilter_GetSyncSource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMediaFilter_INTERFACE_DEFINED__ */ - -typedef IMediaFilter *PMEDIAFILTER; - -typedef struct _FilterInfo { - WCHAR achName[128]; - IFilterGraph *pGraph; -} FILTER_INFO; - -/***************************************************************************** - * IBaseFilter interface - */ -#ifndef __IBaseFilter_INTERFACE_DEFINED__ -#define __IBaseFilter_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IBaseFilter, 0x56a86895, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IBaseFilter : public IMediaFilter -{ - virtual HRESULT STDMETHODCALLTYPE EnumPins( - IEnumPins** ppEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindPin( - LPCWSTR Id, - IPin** ppPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryFilterInfo( - FILTER_INFO* pInfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE JoinFilterGraph( - IFilterGraph* pGraph, - LPCWSTR pName) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryVendorInfo( - LPWSTR* pVendorInfo) = 0; - -}; -#else -typedef struct IBaseFilterVtbl IBaseFilterVtbl; -struct IBaseFilter { - const IBaseFilterVtbl* lpVtbl; -}; -struct IBaseFilterVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IBaseFilter* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IBaseFilter* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IBaseFilter* This); - - /*** IPersist methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IBaseFilter* This, - CLSID* pClassID); - - /*** IMediaFilter methods ***/ - HRESULT (STDMETHODCALLTYPE *Stop)( - IBaseFilter* This); - - HRESULT (STDMETHODCALLTYPE *Pause)( - IBaseFilter* This); - - HRESULT (STDMETHODCALLTYPE *Run)( - IBaseFilter* This, - REFERENCE_TIME tStart); - - HRESULT (STDMETHODCALLTYPE *GetState)( - IBaseFilter* This, - DWORD dwMilliSecsTimeout, - FILTER_STATE* State); - - HRESULT (STDMETHODCALLTYPE *SetSyncSource)( - IBaseFilter* This, - IReferenceClock* pClock); - - HRESULT (STDMETHODCALLTYPE *GetSyncSource)( - IBaseFilter* This, - IReferenceClock** pClock); - - /*** IBaseFilter methods ***/ - HRESULT (STDMETHODCALLTYPE *EnumPins)( - IBaseFilter* This, - IEnumPins** ppEnum); - - HRESULT (STDMETHODCALLTYPE *FindPin)( - IBaseFilter* This, - LPCWSTR Id, - IPin** ppPin); - - HRESULT (STDMETHODCALLTYPE *QueryFilterInfo)( - IBaseFilter* This, - FILTER_INFO* pInfo); - - HRESULT (STDMETHODCALLTYPE *JoinFilterGraph)( - IBaseFilter* This, - IFilterGraph* pGraph, - LPCWSTR pName); - - HRESULT (STDMETHODCALLTYPE *QueryVendorInfo)( - IBaseFilter* This, - LPWSTR* pVendorInfo); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IBaseFilter_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IBaseFilter_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IBaseFilter_Release(p) (p)->lpVtbl->Release(p) -/*** IPersist methods ***/ -#define IBaseFilter_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -/*** IMediaFilter methods ***/ -#define IBaseFilter_Stop(p) (p)->lpVtbl->Stop(p) -#define IBaseFilter_Pause(p) (p)->lpVtbl->Pause(p) -#define IBaseFilter_Run(p,a) (p)->lpVtbl->Run(p,a) -#define IBaseFilter_GetState(p,a,b) (p)->lpVtbl->GetState(p,a,b) -#define IBaseFilter_SetSyncSource(p,a) (p)->lpVtbl->SetSyncSource(p,a) -#define IBaseFilter_GetSyncSource(p,a) (p)->lpVtbl->GetSyncSource(p,a) -/*** IBaseFilter methods ***/ -#define IBaseFilter_EnumPins(p,a) (p)->lpVtbl->EnumPins(p,a) -#define IBaseFilter_FindPin(p,a,b) (p)->lpVtbl->FindPin(p,a,b) -#define IBaseFilter_QueryFilterInfo(p,a) (p)->lpVtbl->QueryFilterInfo(p,a) -#define IBaseFilter_JoinFilterGraph(p,a,b) (p)->lpVtbl->JoinFilterGraph(p,a,b) -#define IBaseFilter_QueryVendorInfo(p,a) (p)->lpVtbl->QueryVendorInfo(p,a) -#endif - -#endif - -#define IBaseFilter_METHODS \ - /*** 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; \ - /*** IMediaFilter methods ***/ \ - STDMETHOD_(HRESULT,Stop)(THIS) PURE; \ - STDMETHOD_(HRESULT,Pause)(THIS) PURE; \ - STDMETHOD_(HRESULT,Run)(THIS_ REFERENCE_TIME tStart) PURE; \ - STDMETHOD_(HRESULT,GetState)(THIS_ DWORD dwMilliSecsTimeout, FILTER_STATE* State) PURE; \ - STDMETHOD_(HRESULT,SetSyncSource)(THIS_ IReferenceClock* pClock) PURE; \ - STDMETHOD_(HRESULT,GetSyncSource)(THIS_ IReferenceClock** pClock) PURE; \ - /*** IBaseFilter methods ***/ \ - STDMETHOD_(HRESULT,EnumPins)(THIS_ IEnumPins** ppEnum) PURE; \ - STDMETHOD_(HRESULT,FindPin)(THIS_ LPCWSTR Id, IPin** ppPin) PURE; \ - STDMETHOD_(HRESULT,QueryFilterInfo)(THIS_ FILTER_INFO* pInfo) PURE; \ - STDMETHOD_(HRESULT,JoinFilterGraph)(THIS_ IFilterGraph* pGraph, LPCWSTR pName) PURE; \ - STDMETHOD_(HRESULT,QueryVendorInfo)(THIS_ LPWSTR* pVendorInfo) PURE; - -HRESULT CALLBACK IBaseFilter_EnumPins_Proxy( - IBaseFilter* This, - IEnumPins** ppEnum); -void __RPC_STUB IBaseFilter_EnumPins_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBaseFilter_FindPin_Proxy( - IBaseFilter* This, - LPCWSTR Id, - IPin** ppPin); -void __RPC_STUB IBaseFilter_FindPin_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBaseFilter_QueryFilterInfo_Proxy( - IBaseFilter* This, - FILTER_INFO* pInfo); -void __RPC_STUB IBaseFilter_QueryFilterInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBaseFilter_JoinFilterGraph_Proxy( - IBaseFilter* This, - IFilterGraph* pGraph, - LPCWSTR pName); -void __RPC_STUB IBaseFilter_JoinFilterGraph_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBaseFilter_QueryVendorInfo_Proxy( - IBaseFilter* This, - LPWSTR* pVendorInfo); -void __RPC_STUB IBaseFilter_QueryVendorInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IBaseFilter_INTERFACE_DEFINED__ */ - -typedef IBaseFilter *PFILTER; - -/***************************************************************************** - * IReferenceClock interface - */ -#ifndef __IReferenceClock_INTERFACE_DEFINED__ -#define __IReferenceClock_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IReferenceClock, 0x56a86897, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IReferenceClock : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetTime( - REFERENCE_TIME* pTime) = 0; - - virtual HRESULT STDMETHODCALLTYPE AdviseTime( - REFERENCE_TIME baseTime, - REFERENCE_TIME streamTime, - HEVENT hEvent, - DWORD_PTR* pdwAdviseCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE AdvisePeriodic( - REFERENCE_TIME startTime, - REFERENCE_TIME periodTime, - HSEMAPHORE hSemaphore, - DWORD_PTR* pdwAdviseCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unadvise( - DWORD_PTR dwAdviseCookie) = 0; - -}; -#else -typedef struct IReferenceClockVtbl IReferenceClockVtbl; -struct IReferenceClock { - const IReferenceClockVtbl* lpVtbl; -}; -struct IReferenceClockVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IReferenceClock* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IReferenceClock* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IReferenceClock* This); - - /*** IReferenceClock methods ***/ - HRESULT (STDMETHODCALLTYPE *GetTime)( - IReferenceClock* This, - REFERENCE_TIME* pTime); - - HRESULT (STDMETHODCALLTYPE *AdviseTime)( - IReferenceClock* This, - REFERENCE_TIME baseTime, - REFERENCE_TIME streamTime, - HEVENT hEvent, - DWORD_PTR* pdwAdviseCookie); - - HRESULT (STDMETHODCALLTYPE *AdvisePeriodic)( - IReferenceClock* This, - REFERENCE_TIME startTime, - REFERENCE_TIME periodTime, - HSEMAPHORE hSemaphore, - DWORD_PTR* pdwAdviseCookie); - - HRESULT (STDMETHODCALLTYPE *Unadvise)( - IReferenceClock* This, - DWORD_PTR dwAdviseCookie); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IReferenceClock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IReferenceClock_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IReferenceClock_Release(p) (p)->lpVtbl->Release(p) -/*** IReferenceClock methods ***/ -#define IReferenceClock_GetTime(p,a) (p)->lpVtbl->GetTime(p,a) -#define IReferenceClock_AdviseTime(p,a,b,c,d) (p)->lpVtbl->AdviseTime(p,a,b,c,d) -#define IReferenceClock_AdvisePeriodic(p,a,b,c,d) (p)->lpVtbl->AdvisePeriodic(p,a,b,c,d) -#define IReferenceClock_Unadvise(p,a) (p)->lpVtbl->Unadvise(p,a) -#endif - -#endif - -#define IReferenceClock_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IReferenceClock methods ***/ \ - STDMETHOD_(HRESULT,GetTime)(THIS_ REFERENCE_TIME* pTime) PURE; \ - STDMETHOD_(HRESULT,AdviseTime)(THIS_ REFERENCE_TIME baseTime, REFERENCE_TIME streamTime, HEVENT hEvent, DWORD_PTR* pdwAdviseCookie) PURE; \ - STDMETHOD_(HRESULT,AdvisePeriodic)(THIS_ REFERENCE_TIME startTime, REFERENCE_TIME periodTime, HSEMAPHORE hSemaphore, DWORD_PTR* pdwAdviseCookie) PURE; \ - STDMETHOD_(HRESULT,Unadvise)(THIS_ DWORD_PTR dwAdviseCookie) PURE; - -HRESULT CALLBACK IReferenceClock_GetTime_Proxy( - IReferenceClock* This, - REFERENCE_TIME* pTime); -void __RPC_STUB IReferenceClock_GetTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IReferenceClock_AdviseTime_Proxy( - IReferenceClock* This, - REFERENCE_TIME baseTime, - REFERENCE_TIME streamTime, - HEVENT hEvent, - DWORD_PTR* pdwAdviseCookie); -void __RPC_STUB IReferenceClock_AdviseTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IReferenceClock_AdvisePeriodic_Proxy( - IReferenceClock* This, - REFERENCE_TIME startTime, - REFERENCE_TIME periodTime, - HSEMAPHORE hSemaphore, - DWORD_PTR* pdwAdviseCookie); -void __RPC_STUB IReferenceClock_AdvisePeriodic_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IReferenceClock_Unadvise_Proxy( - IReferenceClock* This, - DWORD_PTR dwAdviseCookie); -void __RPC_STUB IReferenceClock_Unadvise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IReferenceClock_INTERFACE_DEFINED__ */ - -typedef IReferenceClock *PREFERENCECLOCK; - -/***************************************************************************** - * IMediaSample interface - */ -#ifndef __IMediaSample_INTERFACE_DEFINED__ -#define __IMediaSample_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMediaSample, 0x56a8689a, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMediaSample : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetPointer( - BYTE** ppBuffer) = 0; - - virtual long STDMETHODCALLTYPE GetSize( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTime( - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTime( - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsSyncPoint( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSyncPoint( - BOOL bIsSyncPoint) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsPreroll( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetPreroll( - BOOL bIsPreroll) = 0; - - virtual long STDMETHODCALLTYPE GetActualDataLength( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetActualDataLength( - long length) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMediaType( - AM_MEDIA_TYPE** ppMediaType) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMediaType( - AM_MEDIA_TYPE* pMediaType) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsDiscontinuity( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetDiscontinuity( - BOOL bDiscontinuity) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMediaTime( - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetMediaTime( - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd) = 0; - -}; -#else -typedef struct IMediaSampleVtbl IMediaSampleVtbl; -struct IMediaSample { - const IMediaSampleVtbl* lpVtbl; -}; -struct IMediaSampleVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMediaSample* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMediaSample* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMediaSample* This); - - /*** IMediaSample methods ***/ - HRESULT (STDMETHODCALLTYPE *GetPointer)( - IMediaSample* This, - BYTE** ppBuffer); - - long (STDMETHODCALLTYPE *GetSize)( - IMediaSample* This); - - HRESULT (STDMETHODCALLTYPE *GetTime)( - IMediaSample* This, - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd); - - HRESULT (STDMETHODCALLTYPE *SetTime)( - IMediaSample* This, - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd); - - HRESULT (STDMETHODCALLTYPE *IsSyncPoint)( - IMediaSample* This); - - HRESULT (STDMETHODCALLTYPE *SetSyncPoint)( - IMediaSample* This, - BOOL bIsSyncPoint); - - HRESULT (STDMETHODCALLTYPE *IsPreroll)( - IMediaSample* This); - - HRESULT (STDMETHODCALLTYPE *SetPreroll)( - IMediaSample* This, - BOOL bIsPreroll); - - long (STDMETHODCALLTYPE *GetActualDataLength)( - IMediaSample* This); - - HRESULT (STDMETHODCALLTYPE *SetActualDataLength)( - IMediaSample* This, - long length); - - HRESULT (STDMETHODCALLTYPE *GetMediaType)( - IMediaSample* This, - AM_MEDIA_TYPE** ppMediaType); - - HRESULT (STDMETHODCALLTYPE *SetMediaType)( - IMediaSample* This, - AM_MEDIA_TYPE* pMediaType); - - HRESULT (STDMETHODCALLTYPE *IsDiscontinuity)( - IMediaSample* This); - - HRESULT (STDMETHODCALLTYPE *SetDiscontinuity)( - IMediaSample* This, - BOOL bDiscontinuity); - - HRESULT (STDMETHODCALLTYPE *GetMediaTime)( - IMediaSample* This, - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd); - - HRESULT (STDMETHODCALLTYPE *SetMediaTime)( - IMediaSample* This, - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMediaSample_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMediaSample_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMediaSample_Release(p) (p)->lpVtbl->Release(p) -/*** IMediaSample methods ***/ -#define IMediaSample_GetPointer(p,a) (p)->lpVtbl->GetPointer(p,a) -#define IMediaSample_GetSize(p) (p)->lpVtbl->GetSize(p) -#define IMediaSample_GetTime(p,a,b) (p)->lpVtbl->GetTime(p,a,b) -#define IMediaSample_SetTime(p,a,b) (p)->lpVtbl->SetTime(p,a,b) -#define IMediaSample_IsSyncPoint(p) (p)->lpVtbl->IsSyncPoint(p) -#define IMediaSample_SetSyncPoint(p,a) (p)->lpVtbl->SetSyncPoint(p,a) -#define IMediaSample_IsPreroll(p) (p)->lpVtbl->IsPreroll(p) -#define IMediaSample_SetPreroll(p,a) (p)->lpVtbl->SetPreroll(p,a) -#define IMediaSample_GetActualDataLength(p) (p)->lpVtbl->GetActualDataLength(p) -#define IMediaSample_SetActualDataLength(p,a) (p)->lpVtbl->SetActualDataLength(p,a) -#define IMediaSample_GetMediaType(p,a) (p)->lpVtbl->GetMediaType(p,a) -#define IMediaSample_SetMediaType(p,a) (p)->lpVtbl->SetMediaType(p,a) -#define IMediaSample_IsDiscontinuity(p) (p)->lpVtbl->IsDiscontinuity(p) -#define IMediaSample_SetDiscontinuity(p,a) (p)->lpVtbl->SetDiscontinuity(p,a) -#define IMediaSample_GetMediaTime(p,a,b) (p)->lpVtbl->GetMediaTime(p,a,b) -#define IMediaSample_SetMediaTime(p,a,b) (p)->lpVtbl->SetMediaTime(p,a,b) -#endif - -#endif - -#define IMediaSample_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMediaSample methods ***/ \ - STDMETHOD_(HRESULT,GetPointer)(THIS_ BYTE** ppBuffer) PURE; \ - STDMETHOD_(long,GetSize)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetTime)(THIS_ REFERENCE_TIME* pTimeStart, REFERENCE_TIME* pTimeEnd) PURE; \ - STDMETHOD_(HRESULT,SetTime)(THIS_ REFERENCE_TIME* pTimeStart, REFERENCE_TIME* pTimeEnd) PURE; \ - STDMETHOD_(HRESULT,IsSyncPoint)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetSyncPoint)(THIS_ BOOL bIsSyncPoint) PURE; \ - STDMETHOD_(HRESULT,IsPreroll)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetPreroll)(THIS_ BOOL bIsPreroll) PURE; \ - STDMETHOD_(long,GetActualDataLength)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetActualDataLength)(THIS_ long length) PURE; \ - STDMETHOD_(HRESULT,GetMediaType)(THIS_ AM_MEDIA_TYPE** ppMediaType) PURE; \ - STDMETHOD_(HRESULT,SetMediaType)(THIS_ AM_MEDIA_TYPE* pMediaType) PURE; \ - STDMETHOD_(HRESULT,IsDiscontinuity)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetDiscontinuity)(THIS_ BOOL bDiscontinuity) PURE; \ - STDMETHOD_(HRESULT,GetMediaTime)(THIS_ LONGLONG* pTimeStart, LONGLONG* pTimeEnd) PURE; \ - STDMETHOD_(HRESULT,SetMediaTime)(THIS_ LONGLONG* pTimeStart, LONGLONG* pTimeEnd) PURE; - -HRESULT CALLBACK IMediaSample_GetPointer_Proxy( - IMediaSample* This, - BYTE** ppBuffer); -void __RPC_STUB IMediaSample_GetPointer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -long CALLBACK IMediaSample_GetSize_Proxy( - IMediaSample* This); -void __RPC_STUB IMediaSample_GetSize_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_GetTime_Proxy( - IMediaSample* This, - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd); -void __RPC_STUB IMediaSample_GetTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_SetTime_Proxy( - IMediaSample* This, - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd); -void __RPC_STUB IMediaSample_SetTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_IsSyncPoint_Proxy( - IMediaSample* This); -void __RPC_STUB IMediaSample_IsSyncPoint_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_SetSyncPoint_Proxy( - IMediaSample* This, - BOOL bIsSyncPoint); -void __RPC_STUB IMediaSample_SetSyncPoint_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_IsPreroll_Proxy( - IMediaSample* This); -void __RPC_STUB IMediaSample_IsPreroll_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_SetPreroll_Proxy( - IMediaSample* This, - BOOL bIsPreroll); -void __RPC_STUB IMediaSample_SetPreroll_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -long CALLBACK IMediaSample_GetActualDataLength_Proxy( - IMediaSample* This); -void __RPC_STUB IMediaSample_GetActualDataLength_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_SetActualDataLength_Proxy( - IMediaSample* This, - long length); -void __RPC_STUB IMediaSample_SetActualDataLength_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_GetMediaType_Proxy( - IMediaSample* This, - AM_MEDIA_TYPE** ppMediaType); -void __RPC_STUB IMediaSample_GetMediaType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_SetMediaType_Proxy( - IMediaSample* This, - AM_MEDIA_TYPE* pMediaType); -void __RPC_STUB IMediaSample_SetMediaType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_IsDiscontinuity_Proxy( - IMediaSample* This); -void __RPC_STUB IMediaSample_IsDiscontinuity_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_SetDiscontinuity_Proxy( - IMediaSample* This, - BOOL bDiscontinuity); -void __RPC_STUB IMediaSample_SetDiscontinuity_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_GetMediaTime_Proxy( - IMediaSample* This, - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd); -void __RPC_STUB IMediaSample_GetMediaTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample_SetMediaTime_Proxy( - IMediaSample* This, - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd); -void __RPC_STUB IMediaSample_SetMediaTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMediaSample_INTERFACE_DEFINED__ */ - -typedef IMediaSample *PMEDIASAMPLE; - -enum tagAM_SAMPLE_PROPERTY_FLAGS { - AM_SAMPLE_SPLICEPOINT = 0x1, - AM_SAMPLE_PREROLL = 0x2, - AM_SAMPLE_DATADISCONTINUITY = 0x4, - AM_SAMPLE_TYPECHANGED = 0x8, - AM_SAMPLE_TIMEVALID = 0x10, - AM_SAMPLE_TIMEDISCONTINUITY = 0x40, - AM_SAMPLE_FLUSH_ON_PAUSE = 0x80, - AM_SAMPLE_STOPVALID = 0x100, - AM_SAMPLE_ENDOFSTREAM = 0x200, - AM_STREAM_MEDIA = 0, - AM_STREAM_CONTROL = 1 -}; - -typedef struct tagAM_SAMPLE2_PROPERTIES { - DWORD cbData; - DWORD dwTypeSpecificFlags; - DWORD dwSampleFlags; - LONG lActual; - REFERENCE_TIME tStart; - REFERENCE_TIME tStop; - DWORD dwStreamId; - AM_MEDIA_TYPE *pMediaType; - BYTE *pbBuffer; - LONG cbBuffer; -} AM_SAMPLE2_PROPERTIES; - -#ifndef __IMediaSample2_FWD_DEFINED__ -#define __IMediaSample2_FWD_DEFINED__ -typedef struct IMediaSample2 IMediaSample2; -#endif - -/***************************************************************************** - * IMediaSample2 interface - */ -#ifndef __IMediaSample2_INTERFACE_DEFINED__ -#define __IMediaSample2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMediaSample2, 0x36b73884, 0xc2c8, 0x11cf, 0x8b,0x46, 0x00,0x80,0x5f,0x6c,0xef,0x60); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMediaSample2 : public IMediaSample -{ - virtual HRESULT STDMETHODCALLTYPE GetProperties( - DWORD cbProperties, - BYTE* pbProperties) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetProperties( - DWORD cbProperties, - const BYTE* pbProperties) = 0; - -}; -#else -typedef struct IMediaSample2Vtbl IMediaSample2Vtbl; -struct IMediaSample2 { - const IMediaSample2Vtbl* lpVtbl; -}; -struct IMediaSample2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMediaSample2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMediaSample2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMediaSample2* This); - - /*** IMediaSample methods ***/ - HRESULT (STDMETHODCALLTYPE *GetPointer)( - IMediaSample2* This, - BYTE** ppBuffer); - - long (STDMETHODCALLTYPE *GetSize)( - IMediaSample2* This); - - HRESULT (STDMETHODCALLTYPE *GetTime)( - IMediaSample2* This, - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd); - - HRESULT (STDMETHODCALLTYPE *SetTime)( - IMediaSample2* This, - REFERENCE_TIME* pTimeStart, - REFERENCE_TIME* pTimeEnd); - - HRESULT (STDMETHODCALLTYPE *IsSyncPoint)( - IMediaSample2* This); - - HRESULT (STDMETHODCALLTYPE *SetSyncPoint)( - IMediaSample2* This, - BOOL bIsSyncPoint); - - HRESULT (STDMETHODCALLTYPE *IsPreroll)( - IMediaSample2* This); - - HRESULT (STDMETHODCALLTYPE *SetPreroll)( - IMediaSample2* This, - BOOL bIsPreroll); - - long (STDMETHODCALLTYPE *GetActualDataLength)( - IMediaSample2* This); - - HRESULT (STDMETHODCALLTYPE *SetActualDataLength)( - IMediaSample2* This, - long length); - - HRESULT (STDMETHODCALLTYPE *GetMediaType)( - IMediaSample2* This, - AM_MEDIA_TYPE** ppMediaType); - - HRESULT (STDMETHODCALLTYPE *SetMediaType)( - IMediaSample2* This, - AM_MEDIA_TYPE* pMediaType); - - HRESULT (STDMETHODCALLTYPE *IsDiscontinuity)( - IMediaSample2* This); - - HRESULT (STDMETHODCALLTYPE *SetDiscontinuity)( - IMediaSample2* This, - BOOL bDiscontinuity); - - HRESULT (STDMETHODCALLTYPE *GetMediaTime)( - IMediaSample2* This, - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd); - - HRESULT (STDMETHODCALLTYPE *SetMediaTime)( - IMediaSample2* This, - LONGLONG* pTimeStart, - LONGLONG* pTimeEnd); - - /*** IMediaSample2 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetProperties)( - IMediaSample2* This, - DWORD cbProperties, - BYTE* pbProperties); - - HRESULT (STDMETHODCALLTYPE *SetProperties)( - IMediaSample2* This, - DWORD cbProperties, - const BYTE* pbProperties); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMediaSample2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMediaSample2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMediaSample2_Release(p) (p)->lpVtbl->Release(p) -/*** IMediaSample methods ***/ -#define IMediaSample2_GetPointer(p,a) (p)->lpVtbl->GetPointer(p,a) -#define IMediaSample2_GetSize(p) (p)->lpVtbl->GetSize(p) -#define IMediaSample2_GetTime(p,a,b) (p)->lpVtbl->GetTime(p,a,b) -#define IMediaSample2_SetTime(p,a,b) (p)->lpVtbl->SetTime(p,a,b) -#define IMediaSample2_IsSyncPoint(p) (p)->lpVtbl->IsSyncPoint(p) -#define IMediaSample2_SetSyncPoint(p,a) (p)->lpVtbl->SetSyncPoint(p,a) -#define IMediaSample2_IsPreroll(p) (p)->lpVtbl->IsPreroll(p) -#define IMediaSample2_SetPreroll(p,a) (p)->lpVtbl->SetPreroll(p,a) -#define IMediaSample2_GetActualDataLength(p) (p)->lpVtbl->GetActualDataLength(p) -#define IMediaSample2_SetActualDataLength(p,a) (p)->lpVtbl->SetActualDataLength(p,a) -#define IMediaSample2_GetMediaType(p,a) (p)->lpVtbl->GetMediaType(p,a) -#define IMediaSample2_SetMediaType(p,a) (p)->lpVtbl->SetMediaType(p,a) -#define IMediaSample2_IsDiscontinuity(p) (p)->lpVtbl->IsDiscontinuity(p) -#define IMediaSample2_SetDiscontinuity(p,a) (p)->lpVtbl->SetDiscontinuity(p,a) -#define IMediaSample2_GetMediaTime(p,a,b) (p)->lpVtbl->GetMediaTime(p,a,b) -#define IMediaSample2_SetMediaTime(p,a,b) (p)->lpVtbl->SetMediaTime(p,a,b) -/*** IMediaSample2 methods ***/ -#define IMediaSample2_GetProperties(p,a,b) (p)->lpVtbl->GetProperties(p,a,b) -#define IMediaSample2_SetProperties(p,a,b) (p)->lpVtbl->SetProperties(p,a,b) -#endif - -#endif - -#define IMediaSample2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMediaSample methods ***/ \ - STDMETHOD_(HRESULT,GetPointer)(THIS_ BYTE** ppBuffer) PURE; \ - STDMETHOD_(long,GetSize)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetTime)(THIS_ REFERENCE_TIME* pTimeStart, REFERENCE_TIME* pTimeEnd) PURE; \ - STDMETHOD_(HRESULT,SetTime)(THIS_ REFERENCE_TIME* pTimeStart, REFERENCE_TIME* pTimeEnd) PURE; \ - STDMETHOD_(HRESULT,IsSyncPoint)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetSyncPoint)(THIS_ BOOL bIsSyncPoint) PURE; \ - STDMETHOD_(HRESULT,IsPreroll)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetPreroll)(THIS_ BOOL bIsPreroll) PURE; \ - STDMETHOD_(long,GetActualDataLength)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetActualDataLength)(THIS_ long length) PURE; \ - STDMETHOD_(HRESULT,GetMediaType)(THIS_ AM_MEDIA_TYPE** ppMediaType) PURE; \ - STDMETHOD_(HRESULT,SetMediaType)(THIS_ AM_MEDIA_TYPE* pMediaType) PURE; \ - STDMETHOD_(HRESULT,IsDiscontinuity)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetDiscontinuity)(THIS_ BOOL bDiscontinuity) PURE; \ - STDMETHOD_(HRESULT,GetMediaTime)(THIS_ LONGLONG* pTimeStart, LONGLONG* pTimeEnd) PURE; \ - STDMETHOD_(HRESULT,SetMediaTime)(THIS_ LONGLONG* pTimeStart, LONGLONG* pTimeEnd) PURE; \ - /*** IMediaSample2 methods ***/ \ - STDMETHOD_(HRESULT,GetProperties)(THIS_ DWORD cbProperties, BYTE* pbProperties) PURE; \ - STDMETHOD_(HRESULT,SetProperties)(THIS_ DWORD cbProperties, const BYTE* pbProperties) PURE; - -HRESULT CALLBACK IMediaSample2_GetProperties_Proxy( - IMediaSample2* This, - DWORD cbProperties, - BYTE* pbProperties); -void __RPC_STUB IMediaSample2_GetProperties_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSample2_SetProperties_Proxy( - IMediaSample2* This, - DWORD cbProperties, - const BYTE* pbProperties); -void __RPC_STUB IMediaSample2_SetProperties_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMediaSample2_INTERFACE_DEFINED__ */ - -typedef IMediaSample2 *PMEDIASAMPLE2; - -#define AM_GBF_PREVFRAMESKIPPED 1 -#define AM_GBF_NOTASYNCPOINT 2 -#define AM_GBF_NOWAIT 4 -/***************************************************************************** - * IMemAllocator interface - */ -#ifndef __IMemAllocator_INTERFACE_DEFINED__ -#define __IMemAllocator_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMemAllocator, 0x56a8689c, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMemAllocator : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetProperties( - ALLOCATOR_PROPERTIES* pRequest, - ALLOCATOR_PROPERTIES* pActual) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetProperties( - ALLOCATOR_PROPERTIES* pProps) = 0; - - virtual HRESULT STDMETHODCALLTYPE Commit( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Decommit( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBuffer( - IMediaSample** ppBuffer, - REFERENCE_TIME* pStartTime, - REFERENCE_TIME* pEndTime, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseBuffer( - IMediaSample* pBuffer) = 0; - -}; -#else -typedef struct IMemAllocatorVtbl IMemAllocatorVtbl; -struct IMemAllocator { - const IMemAllocatorVtbl* lpVtbl; -}; -struct IMemAllocatorVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMemAllocator* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMemAllocator* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMemAllocator* This); - - /*** IMemAllocator methods ***/ - HRESULT (STDMETHODCALLTYPE *SetProperties)( - IMemAllocator* This, - ALLOCATOR_PROPERTIES* pRequest, - ALLOCATOR_PROPERTIES* pActual); - - HRESULT (STDMETHODCALLTYPE *GetProperties)( - IMemAllocator* This, - ALLOCATOR_PROPERTIES* pProps); - - HRESULT (STDMETHODCALLTYPE *Commit)( - IMemAllocator* This); - - HRESULT (STDMETHODCALLTYPE *Decommit)( - IMemAllocator* This); - - HRESULT (STDMETHODCALLTYPE *GetBuffer)( - IMemAllocator* This, - IMediaSample** ppBuffer, - REFERENCE_TIME* pStartTime, - REFERENCE_TIME* pEndTime, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *ReleaseBuffer)( - IMemAllocator* This, - IMediaSample* pBuffer); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMemAllocator_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMemAllocator_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMemAllocator_Release(p) (p)->lpVtbl->Release(p) -/*** IMemAllocator methods ***/ -#define IMemAllocator_SetProperties(p,a,b) (p)->lpVtbl->SetProperties(p,a,b) -#define IMemAllocator_GetProperties(p,a) (p)->lpVtbl->GetProperties(p,a) -#define IMemAllocator_Commit(p) (p)->lpVtbl->Commit(p) -#define IMemAllocator_Decommit(p) (p)->lpVtbl->Decommit(p) -#define IMemAllocator_GetBuffer(p,a,b,c,d) (p)->lpVtbl->GetBuffer(p,a,b,c,d) -#define IMemAllocator_ReleaseBuffer(p,a) (p)->lpVtbl->ReleaseBuffer(p,a) -#endif - -#endif - -#define IMemAllocator_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMemAllocator methods ***/ \ - STDMETHOD_(HRESULT,SetProperties)(THIS_ ALLOCATOR_PROPERTIES* pRequest, ALLOCATOR_PROPERTIES* pActual) PURE; \ - STDMETHOD_(HRESULT,GetProperties)(THIS_ ALLOCATOR_PROPERTIES* pProps) PURE; \ - STDMETHOD_(HRESULT,Commit)(THIS) PURE; \ - STDMETHOD_(HRESULT,Decommit)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetBuffer)(THIS_ IMediaSample** ppBuffer, REFERENCE_TIME* pStartTime, REFERENCE_TIME* pEndTime, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,ReleaseBuffer)(THIS_ IMediaSample* pBuffer) PURE; - -HRESULT CALLBACK IMemAllocator_SetProperties_Proxy( - IMemAllocator* This, - ALLOCATOR_PROPERTIES* pRequest, - ALLOCATOR_PROPERTIES* pActual); -void __RPC_STUB IMemAllocator_SetProperties_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemAllocator_GetProperties_Proxy( - IMemAllocator* This, - ALLOCATOR_PROPERTIES* pProps); -void __RPC_STUB IMemAllocator_GetProperties_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemAllocator_Commit_Proxy( - IMemAllocator* This); -void __RPC_STUB IMemAllocator_Commit_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemAllocator_Decommit_Proxy( - IMemAllocator* This); -void __RPC_STUB IMemAllocator_Decommit_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemAllocator_GetBuffer_Proxy( - IMemAllocator* This, - IMediaSample** ppBuffer, - REFERENCE_TIME* pStartTime, - REFERENCE_TIME* pEndTime, - DWORD dwFlags); -void __RPC_STUB IMemAllocator_GetBuffer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemAllocator_ReleaseBuffer_Proxy( - IMemAllocator* This, - IMediaSample* pBuffer); -void __RPC_STUB IMemAllocator_ReleaseBuffer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMemAllocator_INTERFACE_DEFINED__ */ - -typedef IMemAllocator *PMEMALLOCATOR; - -/***************************************************************************** - * IMemAllocatorCallbackTemp interface - */ -#ifndef __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__ -#define __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMemAllocatorCallbackTemp, 0x379a0cf0, 0xc1de, 0x11d2, 0xab,0xf5, 0x00,0xa0,0xc9,0x05,0xf3,0x75); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMemAllocatorCallbackTemp : public IMemAllocator -{ - virtual HRESULT STDMETHODCALLTYPE SetNotify( - IMemAllocatorNotifyCallbackTemp* pNotify) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFreeCount( - LONG* plBuffersFree) = 0; - -}; -#else -typedef struct IMemAllocatorCallbackTempVtbl IMemAllocatorCallbackTempVtbl; -struct IMemAllocatorCallbackTemp { - const IMemAllocatorCallbackTempVtbl* lpVtbl; -}; -struct IMemAllocatorCallbackTempVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMemAllocatorCallbackTemp* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMemAllocatorCallbackTemp* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMemAllocatorCallbackTemp* This); - - /*** IMemAllocator methods ***/ - HRESULT (STDMETHODCALLTYPE *SetProperties)( - IMemAllocatorCallbackTemp* This, - ALLOCATOR_PROPERTIES* pRequest, - ALLOCATOR_PROPERTIES* pActual); - - HRESULT (STDMETHODCALLTYPE *GetProperties)( - IMemAllocatorCallbackTemp* This, - ALLOCATOR_PROPERTIES* pProps); - - HRESULT (STDMETHODCALLTYPE *Commit)( - IMemAllocatorCallbackTemp* This); - - HRESULT (STDMETHODCALLTYPE *Decommit)( - IMemAllocatorCallbackTemp* This); - - HRESULT (STDMETHODCALLTYPE *GetBuffer)( - IMemAllocatorCallbackTemp* This, - IMediaSample** ppBuffer, - REFERENCE_TIME* pStartTime, - REFERENCE_TIME* pEndTime, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *ReleaseBuffer)( - IMemAllocatorCallbackTemp* This, - IMediaSample* pBuffer); - - /*** IMemAllocatorCallbackTemp methods ***/ - HRESULT (STDMETHODCALLTYPE *SetNotify)( - IMemAllocatorCallbackTemp* This, - IMemAllocatorNotifyCallbackTemp* pNotify); - - HRESULT (STDMETHODCALLTYPE *GetFreeCount)( - IMemAllocatorCallbackTemp* This, - LONG* plBuffersFree); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMemAllocatorCallbackTemp_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMemAllocatorCallbackTemp_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMemAllocatorCallbackTemp_Release(p) (p)->lpVtbl->Release(p) -/*** IMemAllocator methods ***/ -#define IMemAllocatorCallbackTemp_SetProperties(p,a,b) (p)->lpVtbl->SetProperties(p,a,b) -#define IMemAllocatorCallbackTemp_GetProperties(p,a) (p)->lpVtbl->GetProperties(p,a) -#define IMemAllocatorCallbackTemp_Commit(p) (p)->lpVtbl->Commit(p) -#define IMemAllocatorCallbackTemp_Decommit(p) (p)->lpVtbl->Decommit(p) -#define IMemAllocatorCallbackTemp_GetBuffer(p,a,b,c,d) (p)->lpVtbl->GetBuffer(p,a,b,c,d) -#define IMemAllocatorCallbackTemp_ReleaseBuffer(p,a) (p)->lpVtbl->ReleaseBuffer(p,a) -/*** IMemAllocatorCallbackTemp methods ***/ -#define IMemAllocatorCallbackTemp_SetNotify(p,a) (p)->lpVtbl->SetNotify(p,a) -#define IMemAllocatorCallbackTemp_GetFreeCount(p,a) (p)->lpVtbl->GetFreeCount(p,a) -#endif - -#endif - -#define IMemAllocatorCallbackTemp_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMemAllocator methods ***/ \ - STDMETHOD_(HRESULT,SetProperties)(THIS_ ALLOCATOR_PROPERTIES* pRequest, ALLOCATOR_PROPERTIES* pActual) PURE; \ - STDMETHOD_(HRESULT,GetProperties)(THIS_ ALLOCATOR_PROPERTIES* pProps) PURE; \ - STDMETHOD_(HRESULT,Commit)(THIS) PURE; \ - STDMETHOD_(HRESULT,Decommit)(THIS) PURE; \ - STDMETHOD_(HRESULT,GetBuffer)(THIS_ IMediaSample** ppBuffer, REFERENCE_TIME* pStartTime, REFERENCE_TIME* pEndTime, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,ReleaseBuffer)(THIS_ IMediaSample* pBuffer) PURE; \ - /*** IMemAllocatorCallbackTemp methods ***/ \ - STDMETHOD_(HRESULT,SetNotify)(THIS_ IMemAllocatorNotifyCallbackTemp* pNotify) PURE; \ - STDMETHOD_(HRESULT,GetFreeCount)(THIS_ LONG* plBuffersFree) PURE; - -HRESULT CALLBACK IMemAllocatorCallbackTemp_SetNotify_Proxy( - IMemAllocatorCallbackTemp* This, - IMemAllocatorNotifyCallbackTemp* pNotify); -void __RPC_STUB IMemAllocatorCallbackTemp_SetNotify_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemAllocatorCallbackTemp_GetFreeCount_Proxy( - IMemAllocatorCallbackTemp* This, - LONG* plBuffersFree); -void __RPC_STUB IMemAllocatorCallbackTemp_GetFreeCount_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMemAllocatorCallbackTemp_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IMemAllocatorNotifyCallbackTemp interface - */ -#ifndef __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__ -#define __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMemAllocatorNotifyCallbackTemp, 0x92980b30, 0xc1de, 0x11d2, 0xab,0xf5, 0x00,0xa0,0xc9,0x05,0xf3,0x75); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMemAllocatorNotifyCallbackTemp : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE NotifyRelease( - ) = 0; - -}; -#else -typedef struct IMemAllocatorNotifyCallbackTempVtbl IMemAllocatorNotifyCallbackTempVtbl; -struct IMemAllocatorNotifyCallbackTemp { - const IMemAllocatorNotifyCallbackTempVtbl* lpVtbl; -}; -struct IMemAllocatorNotifyCallbackTempVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMemAllocatorNotifyCallbackTemp* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMemAllocatorNotifyCallbackTemp* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMemAllocatorNotifyCallbackTemp* This); - - /*** IMemAllocatorNotifyCallbackTemp methods ***/ - HRESULT (STDMETHODCALLTYPE *NotifyRelease)( - IMemAllocatorNotifyCallbackTemp* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMemAllocatorNotifyCallbackTemp_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMemAllocatorNotifyCallbackTemp_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMemAllocatorNotifyCallbackTemp_Release(p) (p)->lpVtbl->Release(p) -/*** IMemAllocatorNotifyCallbackTemp methods ***/ -#define IMemAllocatorNotifyCallbackTemp_NotifyRelease(p) (p)->lpVtbl->NotifyRelease(p) -#endif - -#endif - -#define IMemAllocatorNotifyCallbackTemp_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMemAllocatorNotifyCallbackTemp methods ***/ \ - STDMETHOD_(HRESULT,NotifyRelease)(THIS) PURE; - -HRESULT CALLBACK IMemAllocatorNotifyCallbackTemp_NotifyRelease_Proxy( - IMemAllocatorNotifyCallbackTemp* This); -void __RPC_STUB IMemAllocatorNotifyCallbackTemp_NotifyRelease_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMemAllocatorNotifyCallbackTemp_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IMemInputPin interface - */ -#ifndef __IMemInputPin_INTERFACE_DEFINED__ -#define __IMemInputPin_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMemInputPin, 0x56a8689d, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMemInputPin : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetAllocator( - IMemAllocator** ppAllocator) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyAllocator( - IMemAllocator* pAllocator, - BOOL bReadOnly) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAllocatorRequirements( - ALLOCATOR_PROPERTIES* pProps) = 0; - - virtual HRESULT STDMETHODCALLTYPE Receive( - IMediaSample* pSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReceiveMultiple( - IMediaSample** pSamples, - long nSamples, - long* nSamplesProcessed) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReceiveCanBlock( - ) = 0; - -}; -#else -typedef struct IMemInputPinVtbl IMemInputPinVtbl; -struct IMemInputPin { - const IMemInputPinVtbl* lpVtbl; -}; -struct IMemInputPinVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMemInputPin* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMemInputPin* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMemInputPin* This); - - /*** IMemInputPin methods ***/ - HRESULT (STDMETHODCALLTYPE *GetAllocator)( - IMemInputPin* This, - IMemAllocator** ppAllocator); - - HRESULT (STDMETHODCALLTYPE *NotifyAllocator)( - IMemInputPin* This, - IMemAllocator* pAllocator, - BOOL bReadOnly); - - HRESULT (STDMETHODCALLTYPE *GetAllocatorRequirements)( - IMemInputPin* This, - ALLOCATOR_PROPERTIES* pProps); - - HRESULT (STDMETHODCALLTYPE *Receive)( - IMemInputPin* This, - IMediaSample* pSample); - - HRESULT (STDMETHODCALLTYPE *ReceiveMultiple)( - IMemInputPin* This, - IMediaSample** pSamples, - long nSamples, - long* nSamplesProcessed); - - HRESULT (STDMETHODCALLTYPE *ReceiveCanBlock)( - IMemInputPin* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMemInputPin_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMemInputPin_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMemInputPin_Release(p) (p)->lpVtbl->Release(p) -/*** IMemInputPin methods ***/ -#define IMemInputPin_GetAllocator(p,a) (p)->lpVtbl->GetAllocator(p,a) -#define IMemInputPin_NotifyAllocator(p,a,b) (p)->lpVtbl->NotifyAllocator(p,a,b) -#define IMemInputPin_GetAllocatorRequirements(p,a) (p)->lpVtbl->GetAllocatorRequirements(p,a) -#define IMemInputPin_Receive(p,a) (p)->lpVtbl->Receive(p,a) -#define IMemInputPin_ReceiveMultiple(p,a,b,c) (p)->lpVtbl->ReceiveMultiple(p,a,b,c) -#define IMemInputPin_ReceiveCanBlock(p) (p)->lpVtbl->ReceiveCanBlock(p) -#endif - -#endif - -#define IMemInputPin_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMemInputPin methods ***/ \ - STDMETHOD_(HRESULT,GetAllocator)(THIS_ IMemAllocator** ppAllocator) PURE; \ - STDMETHOD_(HRESULT,NotifyAllocator)(THIS_ IMemAllocator* pAllocator, BOOL bReadOnly) PURE; \ - STDMETHOD_(HRESULT,GetAllocatorRequirements)(THIS_ ALLOCATOR_PROPERTIES* pProps) PURE; \ - STDMETHOD_(HRESULT,Receive)(THIS_ IMediaSample* pSample) PURE; \ - STDMETHOD_(HRESULT,ReceiveMultiple)(THIS_ IMediaSample** pSamples, long nSamples, long* nSamplesProcessed) PURE; \ - STDMETHOD_(HRESULT,ReceiveCanBlock)(THIS) PURE; - -HRESULT CALLBACK IMemInputPin_GetAllocator_Proxy( - IMemInputPin* This, - IMemAllocator** ppAllocator); -void __RPC_STUB IMemInputPin_GetAllocator_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemInputPin_NotifyAllocator_Proxy( - IMemInputPin* This, - IMemAllocator* pAllocator, - BOOL bReadOnly); -void __RPC_STUB IMemInputPin_NotifyAllocator_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemInputPin_GetAllocatorRequirements_Proxy( - IMemInputPin* This, - ALLOCATOR_PROPERTIES* pProps); -void __RPC_STUB IMemInputPin_GetAllocatorRequirements_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemInputPin_Receive_Proxy( - IMemInputPin* This, - IMediaSample* pSample); -void __RPC_STUB IMemInputPin_Receive_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemInputPin_ReceiveMultiple_Proxy( - IMemInputPin* This, - IMediaSample** pSamples, - long nSamples, - long* nSamplesProcessed); -void __RPC_STUB IMemInputPin_ReceiveMultiple_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMemInputPin_ReceiveCanBlock_Proxy( - IMemInputPin* This); -void __RPC_STUB IMemInputPin_ReceiveCanBlock_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMemInputPin_INTERFACE_DEFINED__ */ - -typedef IMemInputPin *PMEMINPUTPIN; - -/***************************************************************************** - * IAMovieSetup interface - */ -#ifndef __IAMovieSetup_INTERFACE_DEFINED__ -#define __IAMovieSetup_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAMovieSetup, 0xa3d8cec0, 0x7e5a, 0x11cf, 0xbb,0xc5, 0x00,0x80,0x5f,0x6c,0xef,0x20); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAMovieSetup : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Register( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unregister( - ) = 0; - -}; -#else -typedef struct IAMovieSetupVtbl IAMovieSetupVtbl; -struct IAMovieSetup { - const IAMovieSetupVtbl* lpVtbl; -}; -struct IAMovieSetupVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAMovieSetup* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAMovieSetup* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAMovieSetup* This); - - /*** IAMovieSetup methods ***/ - HRESULT (STDMETHODCALLTYPE *Register)( - IAMovieSetup* This); - - HRESULT (STDMETHODCALLTYPE *Unregister)( - IAMovieSetup* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAMovieSetup_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAMovieSetup_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAMovieSetup_Release(p) (p)->lpVtbl->Release(p) -/*** IAMovieSetup methods ***/ -#define IAMovieSetup_Register(p) (p)->lpVtbl->Register(p) -#define IAMovieSetup_Unregister(p) (p)->lpVtbl->Unregister(p) -#endif - -#endif - -#define IAMovieSetup_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IAMovieSetup methods ***/ \ - STDMETHOD_(HRESULT,Register)(THIS) PURE; \ - STDMETHOD_(HRESULT,Unregister)(THIS) PURE; - -HRESULT CALLBACK IAMovieSetup_Register_Proxy( - IAMovieSetup* This); -void __RPC_STUB IAMovieSetup_Register_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAMovieSetup_Unregister_Proxy( - IAMovieSetup* This); -void __RPC_STUB IAMovieSetup_Unregister_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAMovieSetup_INTERFACE_DEFINED__ */ - -typedef IAMovieSetup *PAMOVIESETUP; - -typedef enum AM_SEEKING_SeekingFlags { - AM_SEEKING_NoPositioning = 0x0, - AM_SEEKING_AbsolutePositioning = 0x1, - AM_SEEKING_RelativePositioning = 0x2, - AM_SEEKING_IncrementalPositioning = 0x3, - AM_SEEKING_PositioningBitsMask = 0x3, - AM_SEEKING_SeekToKeyFrame = 0x4, - AM_SEEKING_ReturnTime = 0x8, - AM_SEEKING_Segment = 0x10, - AM_SEEKING_NoFlush = 0x20 -} AM_SEEKING_SEEKING_FLAGS; - -typedef enum AM_SEEKING_SeekingCapabilities { - AM_SEEKING_CanSeekAbsolute = 0x1, - AM_SEEKING_CanSeekForwards = 0x2, - AM_SEEKING_CanSeekBackwards = 0x4, - AM_SEEKING_CanGetCurrentPos = 0x8, - AM_SEEKING_CanGetStopPos = 0x10, - AM_SEEKING_CanGetDuration = 0x20, - AM_SEEKING_CanPlayBackwards = 0x40, - AM_SEEKING_CanDoSegments = 0x80, - AM_SEEKING_Source = 0x100 -} AM_SEEKING_SEEKING_CAPABILITIES; - -#ifndef __IMediaSeeking_FWD_DEFINED__ -#define __IMediaSeeking_FWD_DEFINED__ -typedef struct IMediaSeeking IMediaSeeking; -#endif - -/***************************************************************************** - * IMediaSeeking interface - */ -#ifndef __IMediaSeeking_INTERFACE_DEFINED__ -#define __IMediaSeeking_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMediaSeeking, 0x36b73880, 0xc2c8, 0x11cf, 0x8b,0x46, 0x00,0x80,0x5f,0x6c,0xef,0x60); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMediaSeeking : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetCapabilities( - DWORD* pCapabilities) = 0; - - virtual HRESULT STDMETHODCALLTYPE CheckCapabilities( - DWORD* pCapabilities) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsFormatSupported( - const GUID* pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryPreferredFormat( - GUID* pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetTimeFormat( - GUID* pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsUsingTimeFormat( - const GUID* pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetTimeFormat( - const GUID* pFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDuration( - LONGLONG* pDuration) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStopPosition( - LONGLONG* pStop) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurrentPosition( - LONGLONG* pCurrent) = 0; - - virtual HRESULT STDMETHODCALLTYPE ConvertTimeFormat( - LONGLONG* pTarget, - const GUID* pTargetFormat, - LONGLONG Source, - const GUID* pSourceFormat) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetPositions( - LONGLONG* pCurrent, - DWORD dwCurrentFlags, - LONGLONG* pStop, - DWORD dwStopFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPositions( - LONGLONG* pCurrent, - LONGLONG* pStop) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetAvailable( - LONGLONG* pEarliest, - LONGLONG* pLatest) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetRate( - double dRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetRate( - double* pdRate) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPreroll( - LONGLONG* pllPreroll) = 0; - -}; -#else -typedef struct IMediaSeekingVtbl IMediaSeekingVtbl; -struct IMediaSeeking { - const IMediaSeekingVtbl* lpVtbl; -}; -struct IMediaSeekingVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMediaSeeking* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMediaSeeking* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMediaSeeking* This); - - /*** IMediaSeeking methods ***/ - HRESULT (STDMETHODCALLTYPE *GetCapabilities)( - IMediaSeeking* This, - DWORD* pCapabilities); - - HRESULT (STDMETHODCALLTYPE *CheckCapabilities)( - IMediaSeeking* This, - DWORD* pCapabilities); - - HRESULT (STDMETHODCALLTYPE *IsFormatSupported)( - IMediaSeeking* This, - const GUID* pFormat); - - HRESULT (STDMETHODCALLTYPE *QueryPreferredFormat)( - IMediaSeeking* This, - GUID* pFormat); - - HRESULT (STDMETHODCALLTYPE *GetTimeFormat)( - IMediaSeeking* This, - GUID* pFormat); - - HRESULT (STDMETHODCALLTYPE *IsUsingTimeFormat)( - IMediaSeeking* This, - const GUID* pFormat); - - HRESULT (STDMETHODCALLTYPE *SetTimeFormat)( - IMediaSeeking* This, - const GUID* pFormat); - - HRESULT (STDMETHODCALLTYPE *GetDuration)( - IMediaSeeking* This, - LONGLONG* pDuration); - - HRESULT (STDMETHODCALLTYPE *GetStopPosition)( - IMediaSeeking* This, - LONGLONG* pStop); - - HRESULT (STDMETHODCALLTYPE *GetCurrentPosition)( - IMediaSeeking* This, - LONGLONG* pCurrent); - - HRESULT (STDMETHODCALLTYPE *ConvertTimeFormat)( - IMediaSeeking* This, - LONGLONG* pTarget, - const GUID* pTargetFormat, - LONGLONG Source, - const GUID* pSourceFormat); - - HRESULT (STDMETHODCALLTYPE *SetPositions)( - IMediaSeeking* This, - LONGLONG* pCurrent, - DWORD dwCurrentFlags, - LONGLONG* pStop, - DWORD dwStopFlags); - - HRESULT (STDMETHODCALLTYPE *GetPositions)( - IMediaSeeking* This, - LONGLONG* pCurrent, - LONGLONG* pStop); - - HRESULT (STDMETHODCALLTYPE *GetAvailable)( - IMediaSeeking* This, - LONGLONG* pEarliest, - LONGLONG* pLatest); - - HRESULT (STDMETHODCALLTYPE *SetRate)( - IMediaSeeking* This, - double dRate); - - HRESULT (STDMETHODCALLTYPE *GetRate)( - IMediaSeeking* This, - double* pdRate); - - HRESULT (STDMETHODCALLTYPE *GetPreroll)( - IMediaSeeking* This, - LONGLONG* pllPreroll); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMediaSeeking_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMediaSeeking_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMediaSeeking_Release(p) (p)->lpVtbl->Release(p) -/*** IMediaSeeking methods ***/ -#define IMediaSeeking_GetCapabilities(p,a) (p)->lpVtbl->GetCapabilities(p,a) -#define IMediaSeeking_CheckCapabilities(p,a) (p)->lpVtbl->CheckCapabilities(p,a) -#define IMediaSeeking_IsFormatSupported(p,a) (p)->lpVtbl->IsFormatSupported(p,a) -#define IMediaSeeking_QueryPreferredFormat(p,a) (p)->lpVtbl->QueryPreferredFormat(p,a) -#define IMediaSeeking_GetTimeFormat(p,a) (p)->lpVtbl->GetTimeFormat(p,a) -#define IMediaSeeking_IsUsingTimeFormat(p,a) (p)->lpVtbl->IsUsingTimeFormat(p,a) -#define IMediaSeeking_SetTimeFormat(p,a) (p)->lpVtbl->SetTimeFormat(p,a) -#define IMediaSeeking_GetDuration(p,a) (p)->lpVtbl->GetDuration(p,a) -#define IMediaSeeking_GetStopPosition(p,a) (p)->lpVtbl->GetStopPosition(p,a) -#define IMediaSeeking_GetCurrentPosition(p,a) (p)->lpVtbl->GetCurrentPosition(p,a) -#define IMediaSeeking_ConvertTimeFormat(p,a,b,c,d) (p)->lpVtbl->ConvertTimeFormat(p,a,b,c,d) -#define IMediaSeeking_SetPositions(p,a,b,c,d) (p)->lpVtbl->SetPositions(p,a,b,c,d) -#define IMediaSeeking_GetPositions(p,a,b) (p)->lpVtbl->GetPositions(p,a,b) -#define IMediaSeeking_GetAvailable(p,a,b) (p)->lpVtbl->GetAvailable(p,a,b) -#define IMediaSeeking_SetRate(p,a) (p)->lpVtbl->SetRate(p,a) -#define IMediaSeeking_GetRate(p,a) (p)->lpVtbl->GetRate(p,a) -#define IMediaSeeking_GetPreroll(p,a) (p)->lpVtbl->GetPreroll(p,a) -#endif - -#endif - -#define IMediaSeeking_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMediaSeeking methods ***/ \ - STDMETHOD_(HRESULT,GetCapabilities)(THIS_ DWORD* pCapabilities) PURE; \ - STDMETHOD_(HRESULT,CheckCapabilities)(THIS_ DWORD* pCapabilities) PURE; \ - STDMETHOD_(HRESULT,IsFormatSupported)(THIS_ const GUID* pFormat) PURE; \ - STDMETHOD_(HRESULT,QueryPreferredFormat)(THIS_ GUID* pFormat) PURE; \ - STDMETHOD_(HRESULT,GetTimeFormat)(THIS_ GUID* pFormat) PURE; \ - STDMETHOD_(HRESULT,IsUsingTimeFormat)(THIS_ const GUID* pFormat) PURE; \ - STDMETHOD_(HRESULT,SetTimeFormat)(THIS_ const GUID* pFormat) PURE; \ - STDMETHOD_(HRESULT,GetDuration)(THIS_ LONGLONG* pDuration) PURE; \ - STDMETHOD_(HRESULT,GetStopPosition)(THIS_ LONGLONG* pStop) PURE; \ - STDMETHOD_(HRESULT,GetCurrentPosition)(THIS_ LONGLONG* pCurrent) PURE; \ - STDMETHOD_(HRESULT,ConvertTimeFormat)(THIS_ LONGLONG* pTarget, const GUID* pTargetFormat, LONGLONG Source, const GUID* pSourceFormat) PURE; \ - STDMETHOD_(HRESULT,SetPositions)(THIS_ LONGLONG* pCurrent, DWORD dwCurrentFlags, LONGLONG* pStop, DWORD dwStopFlags) PURE; \ - STDMETHOD_(HRESULT,GetPositions)(THIS_ LONGLONG* pCurrent, LONGLONG* pStop) PURE; \ - STDMETHOD_(HRESULT,GetAvailable)(THIS_ LONGLONG* pEarliest, LONGLONG* pLatest) PURE; \ - STDMETHOD_(HRESULT,SetRate)(THIS_ double dRate) PURE; \ - STDMETHOD_(HRESULT,GetRate)(THIS_ double* pdRate) PURE; \ - STDMETHOD_(HRESULT,GetPreroll)(THIS_ LONGLONG* pllPreroll) PURE; - -HRESULT CALLBACK IMediaSeeking_GetCapabilities_Proxy( - IMediaSeeking* This, - DWORD* pCapabilities); -void __RPC_STUB IMediaSeeking_GetCapabilities_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_CheckCapabilities_Proxy( - IMediaSeeking* This, - DWORD* pCapabilities); -void __RPC_STUB IMediaSeeking_CheckCapabilities_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_IsFormatSupported_Proxy( - IMediaSeeking* This, - const GUID* pFormat); -void __RPC_STUB IMediaSeeking_IsFormatSupported_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_QueryPreferredFormat_Proxy( - IMediaSeeking* This, - GUID* pFormat); -void __RPC_STUB IMediaSeeking_QueryPreferredFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_GetTimeFormat_Proxy( - IMediaSeeking* This, - GUID* pFormat); -void __RPC_STUB IMediaSeeking_GetTimeFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_IsUsingTimeFormat_Proxy( - IMediaSeeking* This, - const GUID* pFormat); -void __RPC_STUB IMediaSeeking_IsUsingTimeFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_SetTimeFormat_Proxy( - IMediaSeeking* This, - const GUID* pFormat); -void __RPC_STUB IMediaSeeking_SetTimeFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_GetDuration_Proxy( - IMediaSeeking* This, - LONGLONG* pDuration); -void __RPC_STUB IMediaSeeking_GetDuration_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_GetStopPosition_Proxy( - IMediaSeeking* This, - LONGLONG* pStop); -void __RPC_STUB IMediaSeeking_GetStopPosition_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_GetCurrentPosition_Proxy( - IMediaSeeking* This, - LONGLONG* pCurrent); -void __RPC_STUB IMediaSeeking_GetCurrentPosition_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_ConvertTimeFormat_Proxy( - IMediaSeeking* This, - LONGLONG* pTarget, - const GUID* pTargetFormat, - LONGLONG Source, - const GUID* pSourceFormat); -void __RPC_STUB IMediaSeeking_ConvertTimeFormat_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_SetPositions_Proxy( - IMediaSeeking* This, - LONGLONG* pCurrent, - DWORD dwCurrentFlags, - LONGLONG* pStop, - DWORD dwStopFlags); -void __RPC_STUB IMediaSeeking_SetPositions_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_GetPositions_Proxy( - IMediaSeeking* This, - LONGLONG* pCurrent, - LONGLONG* pStop); -void __RPC_STUB IMediaSeeking_GetPositions_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_GetAvailable_Proxy( - IMediaSeeking* This, - LONGLONG* pEarliest, - LONGLONG* pLatest); -void __RPC_STUB IMediaSeeking_GetAvailable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_SetRate_Proxy( - IMediaSeeking* This, - double dRate); -void __RPC_STUB IMediaSeeking_SetRate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_GetRate_Proxy( - IMediaSeeking* This, - double* pdRate); -void __RPC_STUB IMediaSeeking_GetRate_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IMediaSeeking_GetPreroll_Proxy( - IMediaSeeking* This, - LONGLONG* pllPreroll); -void __RPC_STUB IMediaSeeking_GetPreroll_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMediaSeeking_INTERFACE_DEFINED__ */ - -typedef IMediaSeeking *PMEDIASEEKING; - -enum tagAM_MEDIAEVENT_FLAGS { - AM_MEDIAEVENT_NONOTIFY = 0x1 -}; - -#ifndef __IAMAnalogVideoDecoder_FWD_DEFINED__ -#define __IAMAnalogVideoDecoder_FWD_DEFINED__ -typedef struct IAMAnalogVideoDecoder IAMAnalogVideoDecoder; -#endif - -#ifndef __IAMAnalogVideoEncoder_FWD_DEFINED__ -#define __IAMAnalogVideoEncoder_FWD_DEFINED__ -typedef struct IAMAnalogVideoEncoder IAMAnalogVideoEncoder; -#endif - -#ifndef __IAMAudioInputMixer_FWD_DEFINED__ -#define __IAMAudioInputMixer_FWD_DEFINED__ -typedef struct IAMAudioInputMixer IAMAudioInputMixer; -#endif - -#ifndef __IAMAudioRendererStats_FWD_DEFINED__ -#define __IAMAudioRendererStats_FWD_DEFINED__ -typedef struct IAMAudioRendererStats IAMAudioRendererStats; -#endif - -#ifndef __IAMBufferNegotiation_FWD_DEFINED__ -#define __IAMBufferNegotiation_FWD_DEFINED__ -typedef struct IAMBufferNegotiation IAMBufferNegotiation; -#endif - -#ifndef __IAMCameraControl_FWD_DEFINED__ -#define __IAMCameraControl_FWD_DEFINED__ -typedef struct IAMCameraControl IAMCameraControl; -#endif - -#ifndef __IAMCopyCaptureFileProgress_FWD_DEFINED__ -#define __IAMCopyCaptureFileProgress_FWD_DEFINED__ -typedef struct IAMCopyCaptureFileProgress IAMCopyCaptureFileProgress; -#endif - -#ifndef __IAMCrossbar_FWD_DEFINED__ -#define __IAMCrossbar_FWD_DEFINED__ -typedef struct IAMCrossbar IAMCrossbar; -#endif - -#ifndef __IAMDevMemoryAllocator_FWD_DEFINED__ -#define __IAMDevMemoryAllocator_FWD_DEFINED__ -typedef struct IAMDevMemoryAllocator IAMDevMemoryAllocator; -#endif - -#ifndef __IAMDevMemoryControl_FWD_DEFINED__ -#define __IAMDevMemoryControl_FWD_DEFINED__ -typedef struct IAMDevMemoryControl IAMDevMemoryControl; -#endif - -#ifndef __IAMDroppedFrames_FWD_DEFINED__ -#define __IAMDroppedFrames_FWD_DEFINED__ -typedef struct IAMDroppedFrames IAMDroppedFrames; -#endif - -#ifndef __IAMExtDevice_FWD_DEFINED__ -#define __IAMExtDevice_FWD_DEFINED__ -typedef struct IAMExtDevice IAMExtDevice; -#endif - -#ifndef __IAMExtTransport_FWD_DEFINED__ -#define __IAMExtTransport_FWD_DEFINED__ -typedef struct IAMExtTransport IAMExtTransport; -#endif - -#ifndef __IAMGraphStreams_FWD_DEFINED__ -#define __IAMGraphStreams_FWD_DEFINED__ -typedef struct IAMGraphStreams IAMGraphStreams; -#endif - -#ifndef __IAMLatency_FWD_DEFINED__ -#define __IAMLatency_FWD_DEFINED__ -typedef struct IAMLatency IAMLatency; -#endif - -#ifndef __IAMOpenProgress_FWD_DEFINED__ -#define __IAMOpenProgress_FWD_DEFINED__ -typedef struct IAMOpenProgress IAMOpenProgress; -#endif - -#ifndef __IAMOverlayFX_FWD_DEFINED__ -#define __IAMOverlayFX_FWD_DEFINED__ -typedef struct IAMOverlayFX IAMOverlayFX; -#endif - -#ifndef __IAMPhysicalPinInfo_FWD_DEFINED__ -#define __IAMPhysicalPinInfo_FWD_DEFINED__ -typedef struct IAMPhysicalPinInfo IAMPhysicalPinInfo; -#endif - -#ifndef __IAMPushSource_FWD_DEFINED__ -#define __IAMPushSource_FWD_DEFINED__ -typedef struct IAMPushSource IAMPushSource; -#endif - -#ifndef __IAMStreamConfig_FWD_DEFINED__ -#define __IAMStreamConfig_FWD_DEFINED__ -typedef struct IAMStreamConfig IAMStreamConfig; -#endif - -#ifndef __IAMTimecodeDisplay_FWD_DEFINED__ -#define __IAMTimecodeDisplay_FWD_DEFINED__ -typedef struct IAMTimecodeDisplay IAMTimecodeDisplay; -#endif - -#ifndef __IAMTimecodeGenerator_FWD_DEFINED__ -#define __IAMTimecodeGenerator_FWD_DEFINED__ -typedef struct IAMTimecodeGenerator IAMTimecodeGenerator; -#endif - -#ifndef __IAMTimecodeReader_FWD_DEFINED__ -#define __IAMTimecodeReader_FWD_DEFINED__ -typedef struct IAMTimecodeReader IAMTimecodeReader; -#endif - -#ifndef __IAMTVTuner_FWD_DEFINED__ -#define __IAMTVTuner_FWD_DEFINED__ -typedef struct IAMTVTuner IAMTVTuner; -#endif - -#ifndef __IAMVfwCaptureDialogs_FWD_DEFINED__ -#define __IAMVfwCaptureDialogs_FWD_DEFINED__ -typedef struct IAMVfwCaptureDialogs IAMVfwCaptureDialogs; -#endif - -#ifndef __IAMVfwCompressDialogs_FWD_DEFINED__ -#define __IAMVfwCompressDialogs_FWD_DEFINED__ -typedef struct IAMVfwCompressDialogs IAMVfwCompressDialogs; -#endif - -#ifndef __IAMVideoCompression_FWD_DEFINED__ -#define __IAMVideoCompression_FWD_DEFINED__ -typedef struct IAMVideoCompression IAMVideoCompression; -#endif - -#ifndef __IAMVideoDecimationProperties_FWD_DEFINED__ -#define __IAMVideoDecimationProperties_FWD_DEFINED__ -typedef struct IAMVideoDecimationProperties IAMVideoDecimationProperties; -#endif - -#ifndef __IAMVideoProcAmp_FWD_DEFINED__ -#define __IAMVideoProcAmp_FWD_DEFINED__ -typedef struct IAMVideoProcAmp IAMVideoProcAmp; -#endif - -#ifndef __ICaptureGraphBuilder_FWD_DEFINED__ -#define __ICaptureGraphBuilder_FWD_DEFINED__ -typedef struct ICaptureGraphBuilder ICaptureGraphBuilder; -#endif - -#ifndef __ICaptureGraphBuilder2_FWD_DEFINED__ -#define __ICaptureGraphBuilder2_FWD_DEFINED__ -typedef struct ICaptureGraphBuilder2 ICaptureGraphBuilder2; -#endif - -#ifndef __IConfigAviMux_FWD_DEFINED__ -#define __IConfigAviMux_FWD_DEFINED__ -typedef struct IConfigAviMux IConfigAviMux; -#endif - -#ifndef __IConfigInterleaving_FWD_DEFINED__ -#define __IConfigInterleaving_FWD_DEFINED__ -typedef struct IConfigInterleaving IConfigInterleaving; -#endif - -#ifndef __IDecimateVideoImage_FWD_DEFINED__ -#define __IDecimateVideoImage_FWD_DEFINED__ -typedef struct IDecimateVideoImage IDecimateVideoImage; -#endif - -#ifndef __IDrawVideoImage_FWD_DEFINED__ -#define __IDrawVideoImage_FWD_DEFINED__ -typedef struct IDrawVideoImage IDrawVideoImage; -#endif - -#ifndef __IEnumRegFilters_FWD_DEFINED__ -#define __IEnumRegFilters_FWD_DEFINED__ -typedef struct IEnumRegFilters IEnumRegFilters; -#endif - -#ifndef __IEnumStreamIdMap_FWD_DEFINED__ -#define __IEnumStreamIdMap_FWD_DEFINED__ -typedef struct IEnumStreamIdMap IEnumStreamIdMap; -#endif - -#ifndef __IFileSourceFilter_FWD_DEFINED__ -#define __IFileSourceFilter_FWD_DEFINED__ -typedef struct IFileSourceFilter IFileSourceFilter; -#endif - -#ifndef __IFileSinkFilter_FWD_DEFINED__ -#define __IFileSinkFilter_FWD_DEFINED__ -typedef struct IFileSinkFilter IFileSinkFilter; -#endif - -#ifndef __IFileSinkFilter2_FWD_DEFINED__ -#define __IFileSinkFilter2_FWD_DEFINED__ -typedef struct IFileSinkFilter2 IFileSinkFilter2; -#endif - -#ifndef __IFilterMapper_FWD_DEFINED__ -#define __IFilterMapper_FWD_DEFINED__ -typedef struct IFilterMapper IFilterMapper; -#endif - -#ifndef __IFilterMapper2_FWD_DEFINED__ -#define __IFilterMapper2_FWD_DEFINED__ -typedef struct IFilterMapper2 IFilterMapper2; -#endif - -#ifndef __IGraphBuilder_FWD_DEFINED__ -#define __IGraphBuilder_FWD_DEFINED__ -typedef struct IGraphBuilder IGraphBuilder; -#endif - -#ifndef __IKsPropertySet_FWD_DEFINED__ -#define __IKsPropertySet_FWD_DEFINED__ -typedef struct IKsPropertySet IKsPropertySet; -#endif - -#ifndef __IMediaEventSink_FWD_DEFINED__ -#define __IMediaEventSink_FWD_DEFINED__ -typedef struct IMediaEventSink IMediaEventSink; -#endif - -#ifndef __IMpeg2Demultiplexer_FWD_DEFINED__ -#define __IMpeg2Demultiplexer_FWD_DEFINED__ -typedef struct IMpeg2Demultiplexer IMpeg2Demultiplexer; -#endif - -#ifndef __IMPEG2StreamIdMap_FWD_DEFINED__ -#define __IMPEG2StreamIdMap_FWD_DEFINED__ -typedef struct IMPEG2StreamIdMap IMPEG2StreamIdMap; -#endif - -#ifndef __IOverlay_FWD_DEFINED__ -#define __IOverlay_FWD_DEFINED__ -typedef struct IOverlay IOverlay; -#endif - -#ifndef __IOverlayNotify_FWD_DEFINED__ -#define __IOverlayNotify_FWD_DEFINED__ -typedef struct IOverlayNotify IOverlayNotify; -#endif - -#ifndef __IOverlayNotify2_FWD_DEFINED__ -#define __IOverlayNotify2_FWD_DEFINED__ -typedef struct IOverlayNotify2 IOverlayNotify2; -#endif - -#ifndef __IQualityControl_FWD_DEFINED__ -#define __IQualityControl_FWD_DEFINED__ -typedef struct IQualityControl IQualityControl; -#endif - -#ifndef __ISeekingPassThru_FWD_DEFINED__ -#define __ISeekingPassThru_FWD_DEFINED__ -typedef struct ISeekingPassThru ISeekingPassThru; -#endif - -typedef struct { - CLSID Clsid; - LPWSTR Name; -} REGFILTER; - -/***************************************************************************** - * IEnumRegFilters interface - */ -#ifndef __IEnumRegFilters_INTERFACE_DEFINED__ -#define __IEnumRegFilters_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IEnumRegFilters, 0x56a868a4, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IEnumRegFilters : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Next( - ULONG cFilters, - REGFILTER** apRegFilter, - ULONG* pcFetched) = 0; - - virtual HRESULT STDMETHODCALLTYPE Skip( - ULONG cFilters) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reset( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Clone( - IEnumRegFilters** ppEnum) = 0; - -}; -#else -typedef struct IEnumRegFiltersVtbl IEnumRegFiltersVtbl; -struct IEnumRegFilters { - const IEnumRegFiltersVtbl* lpVtbl; -}; -struct IEnumRegFiltersVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IEnumRegFilters* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IEnumRegFilters* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IEnumRegFilters* This); - - /*** IEnumRegFilters methods ***/ - HRESULT (STDMETHODCALLTYPE *Next)( - IEnumRegFilters* This, - ULONG cFilters, - REGFILTER** apRegFilter, - ULONG* pcFetched); - - HRESULT (STDMETHODCALLTYPE *Skip)( - IEnumRegFilters* This, - ULONG cFilters); - - HRESULT (STDMETHODCALLTYPE *Reset)( - IEnumRegFilters* This); - - HRESULT (STDMETHODCALLTYPE *Clone)( - IEnumRegFilters* This, - IEnumRegFilters** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IEnumRegFilters_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IEnumRegFilters_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IEnumRegFilters_Release(p) (p)->lpVtbl->Release(p) -/*** IEnumRegFilters methods ***/ -#define IEnumRegFilters_Next(p,a,b,c) (p)->lpVtbl->Next(p,a,b,c) -#define IEnumRegFilters_Skip(p,a) (p)->lpVtbl->Skip(p,a) -#define IEnumRegFilters_Reset(p) (p)->lpVtbl->Reset(p) -#define IEnumRegFilters_Clone(p,a) (p)->lpVtbl->Clone(p,a) -#endif - -#endif - -#define IEnumRegFilters_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IEnumRegFilters methods ***/ \ - STDMETHOD_(HRESULT,Next)(THIS_ ULONG cFilters, REGFILTER** apRegFilter, ULONG* pcFetched) PURE; \ - STDMETHOD_(HRESULT,Skip)(THIS_ ULONG cFilters) PURE; \ - STDMETHOD_(HRESULT,Reset)(THIS) PURE; \ - STDMETHOD_(HRESULT,Clone)(THIS_ IEnumRegFilters** ppEnum) PURE; - -HRESULT CALLBACK IEnumRegFilters_Next_Proxy( - IEnumRegFilters* This, - ULONG cFilters, - REGFILTER** apRegFilter, - ULONG* pcFetched); -void __RPC_STUB IEnumRegFilters_Next_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumRegFilters_Skip_Proxy( - IEnumRegFilters* This, - ULONG cFilters); -void __RPC_STUB IEnumRegFilters_Skip_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumRegFilters_Reset_Proxy( - IEnumRegFilters* This); -void __RPC_STUB IEnumRegFilters_Reset_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IEnumRegFilters_Clone_Proxy( - IEnumRegFilters* This, - IEnumRegFilters** ppEnum); -void __RPC_STUB IEnumRegFilters_Clone_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IEnumRegFilters_INTERFACE_DEFINED__ */ - -typedef IEnumRegFilters *PENUMREGFILTERS; - -enum { - MERIT_PREFERRED = 0x800000, - MERIT_NORMAL = 0x600000, - MERIT_UNLIKELY = 0x400000, - MERIT_DO_NOT_USE = 0x200000, - MERIT_SW_COMPRESSOR = 0x100000, - MERIT_HW_COMPRESSOR = 0x100050 -}; - -/***************************************************************************** - * IFilterMapper interface - */ -#ifndef __IFilterMapper_INTERFACE_DEFINED__ -#define __IFilterMapper_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFilterMapper, 0x56a868a3, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFilterMapper : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE RegisterFilter( - CLSID clsid, - LPCWSTR Name, - DWORD dwMerit) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterFilterInstance( - CLSID clsid, - LPCWSTR Name, - CLSID* MRId) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterPin( - CLSID Filter, - LPCWSTR Name, - BOOL bRendered, - BOOL bOutput, - BOOL bZero, - BOOL bMany, - CLSID ConnectsToFilter, - LPCWSTR ConnectsToPin) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterPinType( - CLSID clsFilter, - LPCWSTR strName, - CLSID clsMajorType, - CLSID clsSubType) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnregisterFilter( - CLSID Filter) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnregisterFilterInstance( - CLSID MRId) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnregisterPin( - CLSID Filter, - LPCWSTR Name) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumMatchingFilters( - IEnumRegFilters** ppEnum, - DWORD dwMerit, - BOOL bInputNeeded, - CLSID clsInMaj, - CLSID clsInSub, - BOOL bRender, - BOOL bOututNeeded, - CLSID clsOutMaj, - CLSID clsOutSub) = 0; - -}; -#else -typedef struct IFilterMapperVtbl IFilterMapperVtbl; -struct IFilterMapper { - const IFilterMapperVtbl* lpVtbl; -}; -struct IFilterMapperVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFilterMapper* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFilterMapper* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFilterMapper* This); - - /*** IFilterMapper methods ***/ - HRESULT (STDMETHODCALLTYPE *RegisterFilter)( - IFilterMapper* This, - CLSID clsid, - LPCWSTR Name, - DWORD dwMerit); - - HRESULT (STDMETHODCALLTYPE *RegisterFilterInstance)( - IFilterMapper* This, - CLSID clsid, - LPCWSTR Name, - CLSID* MRId); - - HRESULT (STDMETHODCALLTYPE *RegisterPin)( - IFilterMapper* This, - CLSID Filter, - LPCWSTR Name, - BOOL bRendered, - BOOL bOutput, - BOOL bZero, - BOOL bMany, - CLSID ConnectsToFilter, - LPCWSTR ConnectsToPin); - - HRESULT (STDMETHODCALLTYPE *RegisterPinType)( - IFilterMapper* This, - CLSID clsFilter, - LPCWSTR strName, - CLSID clsMajorType, - CLSID clsSubType); - - HRESULT (STDMETHODCALLTYPE *UnregisterFilter)( - IFilterMapper* This, - CLSID Filter); - - HRESULT (STDMETHODCALLTYPE *UnregisterFilterInstance)( - IFilterMapper* This, - CLSID MRId); - - HRESULT (STDMETHODCALLTYPE *UnregisterPin)( - IFilterMapper* This, - CLSID Filter, - LPCWSTR Name); - - HRESULT (STDMETHODCALLTYPE *EnumMatchingFilters)( - IFilterMapper* This, - IEnumRegFilters** ppEnum, - DWORD dwMerit, - BOOL bInputNeeded, - CLSID clsInMaj, - CLSID clsInSub, - BOOL bRender, - BOOL bOututNeeded, - CLSID clsOutMaj, - CLSID clsOutSub); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFilterMapper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFilterMapper_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFilterMapper_Release(p) (p)->lpVtbl->Release(p) -/*** IFilterMapper methods ***/ -#define IFilterMapper_RegisterFilter(p,a,b,c) (p)->lpVtbl->RegisterFilter(p,a,b,c) -#define IFilterMapper_RegisterFilterInstance(p,a,b,c) (p)->lpVtbl->RegisterFilterInstance(p,a,b,c) -#define IFilterMapper_RegisterPin(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->RegisterPin(p,a,b,c,d,e,f,g,h) -#define IFilterMapper_RegisterPinType(p,a,b,c,d) (p)->lpVtbl->RegisterPinType(p,a,b,c,d) -#define IFilterMapper_UnregisterFilter(p,a) (p)->lpVtbl->UnregisterFilter(p,a) -#define IFilterMapper_UnregisterFilterInstance(p,a) (p)->lpVtbl->UnregisterFilterInstance(p,a) -#define IFilterMapper_UnregisterPin(p,a,b) (p)->lpVtbl->UnregisterPin(p,a,b) -#define IFilterMapper_EnumMatchingFilters(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->EnumMatchingFilters(p,a,b,c,d,e,f,g,h,i) -#endif - -#endif - -#define IFilterMapper_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFilterMapper methods ***/ \ - STDMETHOD_(HRESULT,RegisterFilter)(THIS_ CLSID clsid, LPCWSTR Name, DWORD dwMerit) PURE; \ - STDMETHOD_(HRESULT,RegisterFilterInstance)(THIS_ CLSID clsid, LPCWSTR Name, CLSID* MRId) PURE; \ - STDMETHOD_(HRESULT,RegisterPin)(THIS_ CLSID Filter, LPCWSTR Name, BOOL bRendered, BOOL bOutput, BOOL bZero, BOOL bMany, CLSID ConnectsToFilter, LPCWSTR ConnectsToPin) PURE; \ - STDMETHOD_(HRESULT,RegisterPinType)(THIS_ CLSID clsFilter, LPCWSTR strName, CLSID clsMajorType, CLSID clsSubType) PURE; \ - STDMETHOD_(HRESULT,UnregisterFilter)(THIS_ CLSID Filter) PURE; \ - STDMETHOD_(HRESULT,UnregisterFilterInstance)(THIS_ CLSID MRId) PURE; \ - STDMETHOD_(HRESULT,UnregisterPin)(THIS_ CLSID Filter, LPCWSTR Name) PURE; \ - STDMETHOD_(HRESULT,EnumMatchingFilters)(THIS_ IEnumRegFilters** ppEnum, DWORD dwMerit, BOOL bInputNeeded, CLSID clsInMaj, CLSID clsInSub, BOOL bRender, BOOL bOututNeeded, CLSID clsOutMaj, CLSID clsOutSub) PURE; - -HRESULT CALLBACK IFilterMapper_RegisterFilter_Proxy( - IFilterMapper* This, - CLSID clsid, - LPCWSTR Name, - DWORD dwMerit); -void __RPC_STUB IFilterMapper_RegisterFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterMapper_RegisterFilterInstance_Proxy( - IFilterMapper* This, - CLSID clsid, - LPCWSTR Name, - CLSID* MRId); -void __RPC_STUB IFilterMapper_RegisterFilterInstance_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterMapper_RegisterPin_Proxy( - IFilterMapper* This, - CLSID Filter, - LPCWSTR Name, - BOOL bRendered, - BOOL bOutput, - BOOL bZero, - BOOL bMany, - CLSID ConnectsToFilter, - LPCWSTR ConnectsToPin); -void __RPC_STUB IFilterMapper_RegisterPin_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterMapper_RegisterPinType_Proxy( - IFilterMapper* This, - CLSID clsFilter, - LPCWSTR strName, - CLSID clsMajorType, - CLSID clsSubType); -void __RPC_STUB IFilterMapper_RegisterPinType_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterMapper_UnregisterFilter_Proxy( - IFilterMapper* This, - CLSID Filter); -void __RPC_STUB IFilterMapper_UnregisterFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterMapper_UnregisterFilterInstance_Proxy( - IFilterMapper* This, - CLSID MRId); -void __RPC_STUB IFilterMapper_UnregisterFilterInstance_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterMapper_UnregisterPin_Proxy( - IFilterMapper* This, - CLSID Filter, - LPCWSTR Name); -void __RPC_STUB IFilterMapper_UnregisterPin_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterMapper_EnumMatchingFilters_Proxy( - IFilterMapper* This, - IEnumRegFilters** ppEnum, - DWORD dwMerit, - BOOL bInputNeeded, - CLSID clsInMaj, - CLSID clsInSub, - BOOL bRender, - BOOL bOututNeeded, - CLSID clsOutMaj, - CLSID clsOutSub); -void __RPC_STUB IFilterMapper_EnumMatchingFilters_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFilterMapper_INTERFACE_DEFINED__ */ - -typedef struct { - const CLSID *clsMajorType; - const CLSID *clsMinorType; -} REGPINTYPES; - -typedef struct { - LPWSTR strName; - BOOL bRendered; - BOOL bOutput; - BOOL bZero; - BOOL bMany; - const CLSID *clsConnectsToFilter; - const WCHAR *strConnectsToPin; - UINT nMediaTypes; - const REGPINTYPES *lpMediaType; -} REGFILTERPINS; - -typedef struct { - CLSID clsMedium; - DWORD dw1; - DWORD dw2; -} REGPINMEDIUM; - -enum { - REG_PINFLAG_B_ZERO = 0x1, - REG_PINFLAG_B_RENDERER = 0x2, - REG_PINFLAG_B_MANY = 0x4, - REG_PINFLAG_B_OUTPUT = 0x8 -}; - -typedef struct { - DWORD dwFlags; - UINT cInstances; - UINT nMediaTypes; - const REGPINTYPES *lpMediaType; - UINT nMediums; - const REGPINMEDIUM *lpMedium; - const CLSID *clsPinCategory; -} REGFILTERPINS2; - -typedef struct { - DWORD dwVersion; - DWORD dwMerit; - union { - struct { - ULONG cPins; - const REGFILTERPINS *rgPins; - } DUMMYSTRUCTNAME; - struct { - ULONG cPins2; - const REGFILTERPINS2 *rgPins2; - } DUMMYSTRUCTNAME1; - } DUMMYUNIONNAME; -} REGFILTER2; - -/***************************************************************************** - * IFilterMapper2 interface - */ -#ifndef __IFilterMapper2_INTERFACE_DEFINED__ -#define __IFilterMapper2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFilterMapper2, 0xb79bb0b0, 0x33c1, 0x11d1, 0xab,0xe1, 0x00,0xa0,0xc9,0x05,0xf3,0x75); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFilterMapper2 : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CreateCategory( - REFCLSID clsidCategory, - DWORD dwCategoryMerit, - LPCWSTR Description) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnregisterFilter( - const CLSID* pclsidCategory, - const OLECHAR* szInstance, - REFCLSID Filter) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterFilter( - REFCLSID clsidFilter, - LPCWSTR Name, - IMoniker** ppMoniker, - const CLSID* pclsidCategory, - const OLECHAR* szInstance, - const REGFILTER2* prf2) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumMatchingFilters( - IEnumMoniker** ppEnum, - DWORD dwFlags, - BOOL bExactMatch, - DWORD dwMerit, - BOOL bInputNeeded, - DWORD cInputTypes, - const GUID* pInputTypes, - const REGPINMEDIUM* pMedIn, - const CLSID* pPinCategoryIn, - BOOL bRender, - BOOL bOutputNeeded, - DWORD cOutputTypes, - const GUID* pOutputTypes, - const REGPINMEDIUM* pMedOut, - const CLSID* pPinCategoryOut) = 0; - -}; -#else -typedef struct IFilterMapper2Vtbl IFilterMapper2Vtbl; -struct IFilterMapper2 { - const IFilterMapper2Vtbl* lpVtbl; -}; -struct IFilterMapper2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFilterMapper2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFilterMapper2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFilterMapper2* This); - - /*** IFilterMapper2 methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateCategory)( - IFilterMapper2* This, - REFCLSID clsidCategory, - DWORD dwCategoryMerit, - LPCWSTR Description); - - HRESULT (STDMETHODCALLTYPE *UnregisterFilter)( - IFilterMapper2* This, - const CLSID* pclsidCategory, - const OLECHAR* szInstance, - REFCLSID Filter); - - HRESULT (STDMETHODCALLTYPE *RegisterFilter)( - IFilterMapper2* This, - REFCLSID clsidFilter, - LPCWSTR Name, - IMoniker** ppMoniker, - const CLSID* pclsidCategory, - const OLECHAR* szInstance, - const REGFILTER2* prf2); - - HRESULT (STDMETHODCALLTYPE *EnumMatchingFilters)( - IFilterMapper2* This, - IEnumMoniker** ppEnum, - DWORD dwFlags, - BOOL bExactMatch, - DWORD dwMerit, - BOOL bInputNeeded, - DWORD cInputTypes, - const GUID* pInputTypes, - const REGPINMEDIUM* pMedIn, - const CLSID* pPinCategoryIn, - BOOL bRender, - BOOL bOutputNeeded, - DWORD cOutputTypes, - const GUID* pOutputTypes, - const REGPINMEDIUM* pMedOut, - const CLSID* pPinCategoryOut); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFilterMapper2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFilterMapper2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFilterMapper2_Release(p) (p)->lpVtbl->Release(p) -/*** IFilterMapper2 methods ***/ -#define IFilterMapper2_CreateCategory(p,a,b,c) (p)->lpVtbl->CreateCategory(p,a,b,c) -#define IFilterMapper2_UnregisterFilter(p,a,b,c) (p)->lpVtbl->UnregisterFilter(p,a,b,c) -#define IFilterMapper2_RegisterFilter(p,a,b,c,d,e,f) (p)->lpVtbl->RegisterFilter(p,a,b,c,d,e,f) -#define IFilterMapper2_EnumMatchingFilters(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) (p)->lpVtbl->EnumMatchingFilters(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) -#endif - -#endif - -#define IFilterMapper2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFilterMapper2 methods ***/ \ - STDMETHOD_(HRESULT,CreateCategory)(THIS_ REFCLSID clsidCategory, DWORD dwCategoryMerit, LPCWSTR Description) PURE; \ - STDMETHOD_(HRESULT,UnregisterFilter)(THIS_ const CLSID* pclsidCategory, const OLECHAR* szInstance, REFCLSID Filter) PURE; \ - STDMETHOD_(HRESULT,RegisterFilter)(THIS_ REFCLSID clsidFilter, LPCWSTR Name, IMoniker** ppMoniker, const CLSID* pclsidCategory, const OLECHAR* szInstance, const REGFILTER2* prf2) PURE; \ - STDMETHOD_(HRESULT,EnumMatchingFilters)(THIS_ IEnumMoniker** ppEnum, DWORD dwFlags, BOOL bExactMatch, DWORD dwMerit, BOOL bInputNeeded, DWORD cInputTypes, const GUID* pInputTypes, const REGPINMEDIUM* pMedIn, const CLSID* pPinCategoryIn, BOOL bRender, BOOL bOutputNeeded, DWORD cOutputTypes, const GUID* pOutputTypes, const REGPINMEDIUM* pMedOut, const CLSID* pPinCategoryOut) PURE; - -HRESULT CALLBACK IFilterMapper2_CreateCategory_Proxy( - IFilterMapper2* This, - REFCLSID clsidCategory, - DWORD dwCategoryMerit, - LPCWSTR Description); -void __RPC_STUB IFilterMapper2_CreateCategory_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterMapper2_UnregisterFilter_Proxy( - IFilterMapper2* This, - const CLSID* pclsidCategory, - const OLECHAR* szInstance, - REFCLSID Filter); -void __RPC_STUB IFilterMapper2_UnregisterFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterMapper2_RegisterFilter_Proxy( - IFilterMapper2* This, - REFCLSID clsidFilter, - LPCWSTR Name, - IMoniker** ppMoniker, - const CLSID* pclsidCategory, - const OLECHAR* szInstance, - const REGFILTER2* prf2); -void __RPC_STUB IFilterMapper2_RegisterFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterMapper2_EnumMatchingFilters_Proxy( - IFilterMapper2* This, - IEnumMoniker** ppEnum, - DWORD dwFlags, - BOOL bExactMatch, - DWORD dwMerit, - BOOL bInputNeeded, - DWORD cInputTypes, - const GUID* pInputTypes, - const REGPINMEDIUM* pMedIn, - const CLSID* pPinCategoryIn, - BOOL bRender, - BOOL bOutputNeeded, - DWORD cOutputTypes, - const GUID* pOutputTypes, - const REGPINMEDIUM* pMedOut, - const CLSID* pPinCategoryOut); -void __RPC_STUB IFilterMapper2_EnumMatchingFilters_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFilterMapper2_INTERFACE_DEFINED__ */ - -#ifndef __IFilterMapper3_FWD_DEFINED__ -#define __IFilterMapper3_FWD_DEFINED__ -typedef struct IFilterMapper3 IFilterMapper3; -#endif - -/***************************************************************************** - * IFilterMapper3 interface - */ -#ifndef __IFilterMapper3_INTERFACE_DEFINED__ -#define __IFilterMapper3_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFilterMapper3, 0xb79bb0b1, 0x33c1, 0x11d1, 0xab,0xe1, 0x00,0xa0,0xc9,0x05,0xf3,0x75); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFilterMapper3 : public IFilterMapper2 -{ - virtual HRESULT STDMETHODCALLTYPE GetICreateDevEnum( - ICreateDevEnum** ppEnum) = 0; - -}; -#else -typedef struct IFilterMapper3Vtbl IFilterMapper3Vtbl; -struct IFilterMapper3 { - const IFilterMapper3Vtbl* lpVtbl; -}; -struct IFilterMapper3Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFilterMapper3* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFilterMapper3* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFilterMapper3* This); - - /*** IFilterMapper2 methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateCategory)( - IFilterMapper3* This, - REFCLSID clsidCategory, - DWORD dwCategoryMerit, - LPCWSTR Description); - - HRESULT (STDMETHODCALLTYPE *UnregisterFilter)( - IFilterMapper3* This, - const CLSID* pclsidCategory, - const OLECHAR* szInstance, - REFCLSID Filter); - - HRESULT (STDMETHODCALLTYPE *RegisterFilter)( - IFilterMapper3* This, - REFCLSID clsidFilter, - LPCWSTR Name, - IMoniker** ppMoniker, - const CLSID* pclsidCategory, - const OLECHAR* szInstance, - const REGFILTER2* prf2); - - HRESULT (STDMETHODCALLTYPE *EnumMatchingFilters)( - IFilterMapper3* This, - IEnumMoniker** ppEnum, - DWORD dwFlags, - BOOL bExactMatch, - DWORD dwMerit, - BOOL bInputNeeded, - DWORD cInputTypes, - const GUID* pInputTypes, - const REGPINMEDIUM* pMedIn, - const CLSID* pPinCategoryIn, - BOOL bRender, - BOOL bOutputNeeded, - DWORD cOutputTypes, - const GUID* pOutputTypes, - const REGPINMEDIUM* pMedOut, - const CLSID* pPinCategoryOut); - - /*** IFilterMapper3 methods ***/ - HRESULT (STDMETHODCALLTYPE *GetICreateDevEnum)( - IFilterMapper3* This, - ICreateDevEnum** ppEnum); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFilterMapper3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFilterMapper3_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFilterMapper3_Release(p) (p)->lpVtbl->Release(p) -/*** IFilterMapper2 methods ***/ -#define IFilterMapper3_CreateCategory(p,a,b,c) (p)->lpVtbl->CreateCategory(p,a,b,c) -#define IFilterMapper3_UnregisterFilter(p,a,b,c) (p)->lpVtbl->UnregisterFilter(p,a,b,c) -#define IFilterMapper3_RegisterFilter(p,a,b,c,d,e,f) (p)->lpVtbl->RegisterFilter(p,a,b,c,d,e,f) -#define IFilterMapper3_EnumMatchingFilters(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) (p)->lpVtbl->EnumMatchingFilters(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) -/*** IFilterMapper3 methods ***/ -#define IFilterMapper3_GetICreateDevEnum(p,a) (p)->lpVtbl->GetICreateDevEnum(p,a) -#endif - -#endif - -#define IFilterMapper3_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFilterMapper2 methods ***/ \ - STDMETHOD_(HRESULT,CreateCategory)(THIS_ REFCLSID clsidCategory, DWORD dwCategoryMerit, LPCWSTR Description) PURE; \ - STDMETHOD_(HRESULT,UnregisterFilter)(THIS_ const CLSID* pclsidCategory, const OLECHAR* szInstance, REFCLSID Filter) PURE; \ - STDMETHOD_(HRESULT,RegisterFilter)(THIS_ REFCLSID clsidFilter, LPCWSTR Name, IMoniker** ppMoniker, const CLSID* pclsidCategory, const OLECHAR* szInstance, const REGFILTER2* prf2) PURE; \ - STDMETHOD_(HRESULT,EnumMatchingFilters)(THIS_ IEnumMoniker** ppEnum, DWORD dwFlags, BOOL bExactMatch, DWORD dwMerit, BOOL bInputNeeded, DWORD cInputTypes, const GUID* pInputTypes, const REGPINMEDIUM* pMedIn, const CLSID* pPinCategoryIn, BOOL bRender, BOOL bOutputNeeded, DWORD cOutputTypes, const GUID* pOutputTypes, const REGPINMEDIUM* pMedOut, const CLSID* pPinCategoryOut) PURE; \ - /*** IFilterMapper3 methods ***/ \ - STDMETHOD_(HRESULT,GetICreateDevEnum)(THIS_ ICreateDevEnum** ppEnum) PURE; - -HRESULT CALLBACK IFilterMapper3_GetICreateDevEnum_Proxy( - IFilterMapper3* This, - ICreateDevEnum** ppEnum); -void __RPC_STUB IFilterMapper3_GetICreateDevEnum_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFilterMapper3_INTERFACE_DEFINED__ */ - -typedef enum tagQualityMessageType { - Famine, - Flood -} QualityMessageType; - -typedef struct tagQuality { - QualityMessageType Type; - long Proportion; - REFERENCE_TIME Late; - REFERENCE_TIME TimeStamp; -} Quality; - -typedef IQualityControl *PQUALITYCONTROL; - -/***************************************************************************** - * IQualityControl interface - */ -#ifndef __IQualityControl_INTERFACE_DEFINED__ -#define __IQualityControl_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IQualityControl, 0x56a868a5, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IQualityControl : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Notify( - IBaseFilter* pSelf, - Quality q) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSink( - IQualityControl* piqc) = 0; - -}; -#else -typedef struct IQualityControlVtbl IQualityControlVtbl; -struct IQualityControl { - const IQualityControlVtbl* lpVtbl; -}; -struct IQualityControlVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IQualityControl* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IQualityControl* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IQualityControl* This); - - /*** IQualityControl methods ***/ - HRESULT (STDMETHODCALLTYPE *Notify)( - IQualityControl* This, - IBaseFilter* pSelf, - Quality q); - - HRESULT (STDMETHODCALLTYPE *SetSink)( - IQualityControl* This, - IQualityControl* piqc); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IQualityControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IQualityControl_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IQualityControl_Release(p) (p)->lpVtbl->Release(p) -/*** IQualityControl methods ***/ -#define IQualityControl_Notify(p,a,b) (p)->lpVtbl->Notify(p,a,b) -#define IQualityControl_SetSink(p,a) (p)->lpVtbl->SetSink(p,a) -#endif - -#endif - -#define IQualityControl_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IQualityControl methods ***/ \ - STDMETHOD_(HRESULT,Notify)(THIS_ IBaseFilter* pSelf, Quality q) PURE; \ - STDMETHOD_(HRESULT,SetSink)(THIS_ IQualityControl* piqc) PURE; - -HRESULT CALLBACK IQualityControl_Notify_Proxy( - IQualityControl* This, - IBaseFilter* pSelf, - Quality q); -void __RPC_STUB IQualityControl_Notify_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IQualityControl_SetSink_Proxy( - IQualityControl* This, - IQualityControl* piqc); -void __RPC_STUB IQualityControl_SetSink_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IQualityControl_INTERFACE_DEFINED__ */ - -enum { - CK_NOCOLORKEY = 0x0, - CK_INDEX = 0x1, - CK_RGB = 0x2 -}; - -typedef struct tagCOLORKEY { - DWORD KeyType; - DWORD PaletteIndex; - COLORREF LowColorValue; - COLORREF HighColorValue; -} COLORKEY; - -enum { - ADVISE_NONE = 0x0, - ADVISE_CLIPPING = 0x1, - ADVISE_PALETTE = 0x2, - ADVISE_COLORKEY = 0x4, - ADVISE_POSITION = 0x8, - ADVISE_DISPLAY_CHANGE = 0x10 -}; - -#define ADVISE_ALL (((ADVISE_CLIPPING | ADVISE_PALETTE) | ADVISE_COLORKEY) | ADVISE_POSITION) - -#define ADVISE_ALL2 (ADVISE_ALL | ADVISE_DISPLAY_CHANGE) - -#ifndef _WINGDI_ -typedef struct _RGNDATAHEADER { - DWORD dwSize; - DWORD iType; - DWORD nCount; - DWORD nRgnSize; - RECT rcBound; -} RGNDATAHEADER; - -typedef struct _RGNDATA { - RGNDATAHEADER rdh; - char Buffer[1]; -} RGNDATA; - -#endif /* _WINGDI_ */ -/***************************************************************************** - * IOverlayNotify interface - */ -#ifndef __IOverlayNotify_INTERFACE_DEFINED__ -#define __IOverlayNotify_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOverlayNotify, 0x56a868a0, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOverlayNotify : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE OnPaletteChange( - DWORD dwColors, - const PALETTEENTRY* pPalette) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnClipChange( - const RECT* pSourceRect, - const RECT* pDestinationRect, - const RGNDATA* pRgnData) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnColorKeyChange( - const COLORKEY* pColorKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnPositionChange( - const RECT* pSourceRect, - const RECT* pDestinationRect) = 0; - -}; -#else -typedef struct IOverlayNotifyVtbl IOverlayNotifyVtbl; -struct IOverlayNotify { - const IOverlayNotifyVtbl* lpVtbl; -}; -struct IOverlayNotifyVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOverlayNotify* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOverlayNotify* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOverlayNotify* This); - - /*** IOverlayNotify methods ***/ - HRESULT (STDMETHODCALLTYPE *OnPaletteChange)( - IOverlayNotify* This, - DWORD dwColors, - const PALETTEENTRY* pPalette); - - HRESULT (STDMETHODCALLTYPE *OnClipChange)( - IOverlayNotify* This, - const RECT* pSourceRect, - const RECT* pDestinationRect, - const RGNDATA* pRgnData); - - HRESULT (STDMETHODCALLTYPE *OnColorKeyChange)( - IOverlayNotify* This, - const COLORKEY* pColorKey); - - HRESULT (STDMETHODCALLTYPE *OnPositionChange)( - IOverlayNotify* This, - const RECT* pSourceRect, - const RECT* pDestinationRect); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOverlayNotify_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOverlayNotify_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOverlayNotify_Release(p) (p)->lpVtbl->Release(p) -/*** IOverlayNotify methods ***/ -#define IOverlayNotify_OnPaletteChange(p,a,b) (p)->lpVtbl->OnPaletteChange(p,a,b) -#define IOverlayNotify_OnClipChange(p,a,b,c) (p)->lpVtbl->OnClipChange(p,a,b,c) -#define IOverlayNotify_OnColorKeyChange(p,a) (p)->lpVtbl->OnColorKeyChange(p,a) -#define IOverlayNotify_OnPositionChange(p,a,b) (p)->lpVtbl->OnPositionChange(p,a,b) -#endif - -#endif - -#define IOverlayNotify_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOverlayNotify methods ***/ \ - STDMETHOD_(HRESULT,OnPaletteChange)(THIS_ DWORD dwColors, const PALETTEENTRY* pPalette) PURE; \ - STDMETHOD_(HRESULT,OnClipChange)(THIS_ const RECT* pSourceRect, const RECT* pDestinationRect, const RGNDATA* pRgnData) PURE; \ - STDMETHOD_(HRESULT,OnColorKeyChange)(THIS_ const COLORKEY* pColorKey) PURE; \ - STDMETHOD_(HRESULT,OnPositionChange)(THIS_ const RECT* pSourceRect, const RECT* pDestinationRect) PURE; - -HRESULT CALLBACK IOverlayNotify_OnPaletteChange_Proxy( - IOverlayNotify* This, - DWORD dwColors, - const PALETTEENTRY* pPalette); -void __RPC_STUB IOverlayNotify_OnPaletteChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlayNotify_OnClipChange_Proxy( - IOverlayNotify* This, - const RECT* pSourceRect, - const RECT* pDestinationRect, - const RGNDATA* pRgnData); -void __RPC_STUB IOverlayNotify_OnClipChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlayNotify_OnColorKeyChange_Proxy( - IOverlayNotify* This, - const COLORKEY* pColorKey); -void __RPC_STUB IOverlayNotify_OnColorKeyChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlayNotify_OnPositionChange_Proxy( - IOverlayNotify* This, - const RECT* pSourceRect, - const RECT* pDestinationRect); -void __RPC_STUB IOverlayNotify_OnPositionChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOverlayNotify_INTERFACE_DEFINED__ */ - -typedef IOverlayNotify *POVERLAYNOTIFY; - -#if 0 -typedef HANDLE HMONITOR; - -#endif /* 0 */ -/***************************************************************************** - * IOverlayNotify2 interface - */ -#ifndef __IOverlayNotify2_INTERFACE_DEFINED__ -#define __IOverlayNotify2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOverlayNotify2, 0x680efa10, 0xd535, 0x11d1, 0x87,0xc8, 0x00,0xa0,0xc9,0x22,0x31,0x96); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOverlayNotify2 : public IOverlayNotify -{ - virtual HRESULT STDMETHODCALLTYPE OnDisplayChange( - HMONITOR hMonitor) = 0; - -}; -#else -typedef struct IOverlayNotify2Vtbl IOverlayNotify2Vtbl; -struct IOverlayNotify2 { - const IOverlayNotify2Vtbl* lpVtbl; -}; -struct IOverlayNotify2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOverlayNotify2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOverlayNotify2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOverlayNotify2* This); - - /*** IOverlayNotify methods ***/ - HRESULT (STDMETHODCALLTYPE *OnPaletteChange)( - IOverlayNotify2* This, - DWORD dwColors, - const PALETTEENTRY* pPalette); - - HRESULT (STDMETHODCALLTYPE *OnClipChange)( - IOverlayNotify2* This, - const RECT* pSourceRect, - const RECT* pDestinationRect, - const RGNDATA* pRgnData); - - HRESULT (STDMETHODCALLTYPE *OnColorKeyChange)( - IOverlayNotify2* This, - const COLORKEY* pColorKey); - - HRESULT (STDMETHODCALLTYPE *OnPositionChange)( - IOverlayNotify2* This, - const RECT* pSourceRect, - const RECT* pDestinationRect); - - /*** IOverlayNotify2 methods ***/ - HRESULT (STDMETHODCALLTYPE *OnDisplayChange)( - IOverlayNotify2* This, - HMONITOR hMonitor); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOverlayNotify2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOverlayNotify2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOverlayNotify2_Release(p) (p)->lpVtbl->Release(p) -/*** IOverlayNotify methods ***/ -#define IOverlayNotify2_OnPaletteChange(p,a,b) (p)->lpVtbl->OnPaletteChange(p,a,b) -#define IOverlayNotify2_OnClipChange(p,a,b,c) (p)->lpVtbl->OnClipChange(p,a,b,c) -#define IOverlayNotify2_OnColorKeyChange(p,a) (p)->lpVtbl->OnColorKeyChange(p,a) -#define IOverlayNotify2_OnPositionChange(p,a,b) (p)->lpVtbl->OnPositionChange(p,a,b) -/*** IOverlayNotify2 methods ***/ -#define IOverlayNotify2_OnDisplayChange(p,a) (p)->lpVtbl->OnDisplayChange(p,a) -#endif - -#endif - -#define IOverlayNotify2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOverlayNotify methods ***/ \ - STDMETHOD_(HRESULT,OnPaletteChange)(THIS_ DWORD dwColors, const PALETTEENTRY* pPalette) PURE; \ - STDMETHOD_(HRESULT,OnClipChange)(THIS_ const RECT* pSourceRect, const RECT* pDestinationRect, const RGNDATA* pRgnData) PURE; \ - STDMETHOD_(HRESULT,OnColorKeyChange)(THIS_ const COLORKEY* pColorKey) PURE; \ - STDMETHOD_(HRESULT,OnPositionChange)(THIS_ const RECT* pSourceRect, const RECT* pDestinationRect) PURE; \ - /*** IOverlayNotify2 methods ***/ \ - STDMETHOD_(HRESULT,OnDisplayChange)(THIS_ HMONITOR hMonitor) PURE; - -HRESULT CALLBACK IOverlayNotify2_OnDisplayChange_Proxy( - IOverlayNotify2* This, - HMONITOR hMonitor); -void __RPC_STUB IOverlayNotify2_OnDisplayChange_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOverlayNotify2_INTERFACE_DEFINED__ */ - -typedef IOverlayNotify2 *POVERLAYNOTIFY2; - -/***************************************************************************** - * IOverlay interface - */ -#ifndef __IOverlay_INTERFACE_DEFINED__ -#define __IOverlay_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IOverlay, 0x56a868a1, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IOverlay : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetPalette( - DWORD* pdwColors, - PALETTEENTRY** ppPalette) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetPalette( - DWORD dwColors, - PALETTEENTRY* pPalette) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetDefaultColorKey( - COLORKEY* pColorKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetColorKey( - COLORKEY* pColorKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetColorKey( - COLORKEY* pColorKey) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetWindowHandle( - HWND* pHwnd) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetClipList( - RECT* pSourceRect, - RECT* pDestinationRect, - RGNDATA** ppRgnData) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetVideoPosition( - RECT* pSourceRect, - RECT* pDestinationRect) = 0; - - virtual HRESULT STDMETHODCALLTYPE Advise( - IOverlayNotify* pOverlayNotify, - DWORD dwInterests) = 0; - - virtual HRESULT STDMETHODCALLTYPE Unadvise( - ) = 0; - -}; -#else -typedef struct IOverlayVtbl IOverlayVtbl; -struct IOverlay { - const IOverlayVtbl* lpVtbl; -}; -struct IOverlayVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IOverlay* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IOverlay* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IOverlay* This); - - /*** IOverlay methods ***/ - HRESULT (STDMETHODCALLTYPE *GetPalette)( - IOverlay* This, - DWORD* pdwColors, - PALETTEENTRY** ppPalette); - - HRESULT (STDMETHODCALLTYPE *SetPalette)( - IOverlay* This, - DWORD dwColors, - PALETTEENTRY* pPalette); - - HRESULT (STDMETHODCALLTYPE *GetDefaultColorKey)( - IOverlay* This, - COLORKEY* pColorKey); - - HRESULT (STDMETHODCALLTYPE *GetColorKey)( - IOverlay* This, - COLORKEY* pColorKey); - - HRESULT (STDMETHODCALLTYPE *SetColorKey)( - IOverlay* This, - COLORKEY* pColorKey); - - HRESULT (STDMETHODCALLTYPE *GetWindowHandle)( - IOverlay* This, - HWND* pHwnd); - - HRESULT (STDMETHODCALLTYPE *GetClipList)( - IOverlay* This, - RECT* pSourceRect, - RECT* pDestinationRect, - RGNDATA** ppRgnData); - - HRESULT (STDMETHODCALLTYPE *GetVideoPosition)( - IOverlay* This, - RECT* pSourceRect, - RECT* pDestinationRect); - - HRESULT (STDMETHODCALLTYPE *Advise)( - IOverlay* This, - IOverlayNotify* pOverlayNotify, - DWORD dwInterests); - - HRESULT (STDMETHODCALLTYPE *Unadvise)( - IOverlay* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IOverlay_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IOverlay_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IOverlay_Release(p) (p)->lpVtbl->Release(p) -/*** IOverlay methods ***/ -#define IOverlay_GetPalette(p,a,b) (p)->lpVtbl->GetPalette(p,a,b) -#define IOverlay_SetPalette(p,a,b) (p)->lpVtbl->SetPalette(p,a,b) -#define IOverlay_GetDefaultColorKey(p,a) (p)->lpVtbl->GetDefaultColorKey(p,a) -#define IOverlay_GetColorKey(p,a) (p)->lpVtbl->GetColorKey(p,a) -#define IOverlay_SetColorKey(p,a) (p)->lpVtbl->SetColorKey(p,a) -#define IOverlay_GetWindowHandle(p,a) (p)->lpVtbl->GetWindowHandle(p,a) -#define IOverlay_GetClipList(p,a,b,c) (p)->lpVtbl->GetClipList(p,a,b,c) -#define IOverlay_GetVideoPosition(p,a,b) (p)->lpVtbl->GetVideoPosition(p,a,b) -#define IOverlay_Advise(p,a,b) (p)->lpVtbl->Advise(p,a,b) -#define IOverlay_Unadvise(p) (p)->lpVtbl->Unadvise(p) -#endif - -#endif - -#define IOverlay_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IOverlay methods ***/ \ - STDMETHOD_(HRESULT,GetPalette)(THIS_ DWORD* pdwColors, PALETTEENTRY** ppPalette) PURE; \ - STDMETHOD_(HRESULT,SetPalette)(THIS_ DWORD dwColors, PALETTEENTRY* pPalette) PURE; \ - STDMETHOD_(HRESULT,GetDefaultColorKey)(THIS_ COLORKEY* pColorKey) PURE; \ - STDMETHOD_(HRESULT,GetColorKey)(THIS_ COLORKEY* pColorKey) PURE; \ - STDMETHOD_(HRESULT,SetColorKey)(THIS_ COLORKEY* pColorKey) PURE; \ - STDMETHOD_(HRESULT,GetWindowHandle)(THIS_ HWND* pHwnd) PURE; \ - STDMETHOD_(HRESULT,GetClipList)(THIS_ RECT* pSourceRect, RECT* pDestinationRect, RGNDATA** ppRgnData) PURE; \ - STDMETHOD_(HRESULT,GetVideoPosition)(THIS_ RECT* pSourceRect, RECT* pDestinationRect) PURE; \ - STDMETHOD_(HRESULT,Advise)(THIS_ IOverlayNotify* pOverlayNotify, DWORD dwInterests) PURE; \ - STDMETHOD_(HRESULT,Unadvise)(THIS) PURE; - -HRESULT CALLBACK IOverlay_GetPalette_Proxy( - IOverlay* This, - DWORD* pdwColors, - PALETTEENTRY** ppPalette); -void __RPC_STUB IOverlay_GetPalette_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlay_SetPalette_Proxy( - IOverlay* This, - DWORD dwColors, - PALETTEENTRY* pPalette); -void __RPC_STUB IOverlay_SetPalette_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlay_GetDefaultColorKey_Proxy( - IOverlay* This, - COLORKEY* pColorKey); -void __RPC_STUB IOverlay_GetDefaultColorKey_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlay_GetColorKey_Proxy( - IOverlay* This, - COLORKEY* pColorKey); -void __RPC_STUB IOverlay_GetColorKey_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlay_SetColorKey_Proxy( - IOverlay* This, - COLORKEY* pColorKey); -void __RPC_STUB IOverlay_SetColorKey_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlay_GetWindowHandle_Proxy( - IOverlay* This, - HWND* pHwnd); -void __RPC_STUB IOverlay_GetWindowHandle_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlay_GetClipList_Proxy( - IOverlay* This, - RECT* pSourceRect, - RECT* pDestinationRect, - RGNDATA** ppRgnData); -void __RPC_STUB IOverlay_GetClipList_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlay_GetVideoPosition_Proxy( - IOverlay* This, - RECT* pSourceRect, - RECT* pDestinationRect); -void __RPC_STUB IOverlay_GetVideoPosition_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlay_Advise_Proxy( - IOverlay* This, - IOverlayNotify* pOverlayNotify, - DWORD dwInterests); -void __RPC_STUB IOverlay_Advise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IOverlay_Unadvise_Proxy( - IOverlay* This); -void __RPC_STUB IOverlay_Unadvise_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IOverlay_INTERFACE_DEFINED__ */ - -typedef IOverlay *POVERLAY; - -/***************************************************************************** - * IMediaEventSink interface - */ -#ifndef __IMediaEventSink_INTERFACE_DEFINED__ -#define __IMediaEventSink_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IMediaEventSink, 0x56a868a2, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IMediaEventSink : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Notify( - long EventCode, - LONG_PTR EventParam1, - LONG_PTR EventParam2) = 0; - -}; -#else -typedef struct IMediaEventSinkVtbl IMediaEventSinkVtbl; -struct IMediaEventSink { - const IMediaEventSinkVtbl* lpVtbl; -}; -struct IMediaEventSinkVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IMediaEventSink* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IMediaEventSink* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IMediaEventSink* This); - - /*** IMediaEventSink methods ***/ - HRESULT (STDMETHODCALLTYPE *Notify)( - IMediaEventSink* This, - long EventCode, - LONG_PTR EventParam1, - LONG_PTR EventParam2); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IMediaEventSink_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IMediaEventSink_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IMediaEventSink_Release(p) (p)->lpVtbl->Release(p) -/*** IMediaEventSink methods ***/ -#define IMediaEventSink_Notify(p,a,b,c) (p)->lpVtbl->Notify(p,a,b,c) -#endif - -#endif - -#define IMediaEventSink_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IMediaEventSink methods ***/ \ - STDMETHOD_(HRESULT,Notify)(THIS_ long EventCode, LONG_PTR EventParam1, LONG_PTR EventParam2) PURE; - -HRESULT CALLBACK IMediaEventSink_Notify_Proxy( - IMediaEventSink* This, - long EventCode, - LONG_PTR EventParam1, - LONG_PTR EventParam2); -void __RPC_STUB IMediaEventSink_Notify_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IMediaEventSink_INTERFACE_DEFINED__ */ - -typedef IMediaEventSink *PMEDIAEVENTSINK; - -/***************************************************************************** - * IFileSourceFilter interface - */ -#ifndef __IFileSourceFilter_INTERFACE_DEFINED__ -#define __IFileSourceFilter_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFileSourceFilter, 0x56a868a6, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFileSourceFilter : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Load( - LPCOLESTR pszFileName, - const AM_MEDIA_TYPE* pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurFile( - LPOLESTR* ppszFileName, - AM_MEDIA_TYPE* pmt) = 0; - -}; -#else -typedef struct IFileSourceFilterVtbl IFileSourceFilterVtbl; -struct IFileSourceFilter { - const IFileSourceFilterVtbl* lpVtbl; -}; -struct IFileSourceFilterVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFileSourceFilter* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFileSourceFilter* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFileSourceFilter* This); - - /*** IFileSourceFilter methods ***/ - HRESULT (STDMETHODCALLTYPE *Load)( - IFileSourceFilter* This, - LPCOLESTR pszFileName, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *GetCurFile)( - IFileSourceFilter* This, - LPOLESTR* ppszFileName, - AM_MEDIA_TYPE* pmt); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFileSourceFilter_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFileSourceFilter_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFileSourceFilter_Release(p) (p)->lpVtbl->Release(p) -/*** IFileSourceFilter methods ***/ -#define IFileSourceFilter_Load(p,a,b) (p)->lpVtbl->Load(p,a,b) -#define IFileSourceFilter_GetCurFile(p,a,b) (p)->lpVtbl->GetCurFile(p,a,b) -#endif - -#endif - -#define IFileSourceFilter_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFileSourceFilter methods ***/ \ - STDMETHOD_(HRESULT,Load)(THIS_ LPCOLESTR pszFileName, const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,GetCurFile)(THIS_ LPOLESTR* ppszFileName, AM_MEDIA_TYPE* pmt) PURE; - -HRESULT CALLBACK IFileSourceFilter_Load_Proxy( - IFileSourceFilter* This, - LPCOLESTR pszFileName, - const AM_MEDIA_TYPE* pmt); -void __RPC_STUB IFileSourceFilter_Load_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFileSourceFilter_GetCurFile_Proxy( - IFileSourceFilter* This, - LPOLESTR* ppszFileName, - AM_MEDIA_TYPE* pmt); -void __RPC_STUB IFileSourceFilter_GetCurFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFileSourceFilter_INTERFACE_DEFINED__ */ - -typedef IFileSourceFilter *PFILTERFILESOURCE; - -/***************************************************************************** - * IFileSinkFilter interface - */ -#ifndef __IFileSinkFilter_INTERFACE_DEFINED__ -#define __IFileSinkFilter_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFileSinkFilter, 0xa2104830, 0x7c70, 0x11cf, 0x8b,0xce, 0x00,0xaa,0x00,0xa3,0xf1,0xa6); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFileSinkFilter : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetFileName( - LPCOLESTR pszFileName, - const AM_MEDIA_TYPE* pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurFile( - LPOLESTR* ppszFileName, - AM_MEDIA_TYPE* pmt) = 0; - -}; -#else -typedef struct IFileSinkFilterVtbl IFileSinkFilterVtbl; -struct IFileSinkFilter { - const IFileSinkFilterVtbl* lpVtbl; -}; -struct IFileSinkFilterVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFileSinkFilter* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFileSinkFilter* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFileSinkFilter* This); - - /*** IFileSinkFilter methods ***/ - HRESULT (STDMETHODCALLTYPE *SetFileName)( - IFileSinkFilter* This, - LPCOLESTR pszFileName, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *GetCurFile)( - IFileSinkFilter* This, - LPOLESTR* ppszFileName, - AM_MEDIA_TYPE* pmt); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFileSinkFilter_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFileSinkFilter_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFileSinkFilter_Release(p) (p)->lpVtbl->Release(p) -/*** IFileSinkFilter methods ***/ -#define IFileSinkFilter_SetFileName(p,a,b) (p)->lpVtbl->SetFileName(p,a,b) -#define IFileSinkFilter_GetCurFile(p,a,b) (p)->lpVtbl->GetCurFile(p,a,b) -#endif - -#endif - -#define IFileSinkFilter_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFileSinkFilter methods ***/ \ - STDMETHOD_(HRESULT,SetFileName)(THIS_ LPCOLESTR pszFileName, const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,GetCurFile)(THIS_ LPOLESTR* ppszFileName, AM_MEDIA_TYPE* pmt) PURE; - -HRESULT CALLBACK IFileSinkFilter_SetFileName_Proxy( - IFileSinkFilter* This, - LPCOLESTR pszFileName, - const AM_MEDIA_TYPE* pmt); -void __RPC_STUB IFileSinkFilter_SetFileName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFileSinkFilter_GetCurFile_Proxy( - IFileSinkFilter* This, - LPOLESTR* ppszFileName, - AM_MEDIA_TYPE* pmt); -void __RPC_STUB IFileSinkFilter_GetCurFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFileSinkFilter_INTERFACE_DEFINED__ */ - -typedef IFileSinkFilter *PFILTERFILESINK; - -/***************************************************************************** - * IFileSinkFilter2 interface - */ -#ifndef __IFileSinkFilter2_INTERFACE_DEFINED__ -#define __IFileSinkFilter2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFileSinkFilter2, 0x00855b90, 0xce1b, 0x11d0, 0xbd,0x4f, 0x00,0xa0,0xc9,0x11,0xce,0x86); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFileSinkFilter2 : public IFileSinkFilter -{ - virtual HRESULT STDMETHODCALLTYPE SetMode( - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetMode( - DWORD* pdwFlags) = 0; - -}; -#else -typedef struct IFileSinkFilter2Vtbl IFileSinkFilter2Vtbl; -struct IFileSinkFilter2 { - const IFileSinkFilter2Vtbl* lpVtbl; -}; -struct IFileSinkFilter2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFileSinkFilter2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFileSinkFilter2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFileSinkFilter2* This); - - /*** IFileSinkFilter methods ***/ - HRESULT (STDMETHODCALLTYPE *SetFileName)( - IFileSinkFilter2* This, - LPCOLESTR pszFileName, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *GetCurFile)( - IFileSinkFilter2* This, - LPOLESTR* ppszFileName, - AM_MEDIA_TYPE* pmt); - - /*** IFileSinkFilter2 methods ***/ - HRESULT (STDMETHODCALLTYPE *SetMode)( - IFileSinkFilter2* This, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *GetMode)( - IFileSinkFilter2* This, - DWORD* pdwFlags); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFileSinkFilter2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFileSinkFilter2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFileSinkFilter2_Release(p) (p)->lpVtbl->Release(p) -/*** IFileSinkFilter methods ***/ -#define IFileSinkFilter2_SetFileName(p,a,b) (p)->lpVtbl->SetFileName(p,a,b) -#define IFileSinkFilter2_GetCurFile(p,a,b) (p)->lpVtbl->GetCurFile(p,a,b) -/*** IFileSinkFilter2 methods ***/ -#define IFileSinkFilter2_SetMode(p,a) (p)->lpVtbl->SetMode(p,a) -#define IFileSinkFilter2_GetMode(p,a) (p)->lpVtbl->GetMode(p,a) -#endif - -#endif - -#define IFileSinkFilter2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFileSinkFilter methods ***/ \ - STDMETHOD_(HRESULT,SetFileName)(THIS_ LPCOLESTR pszFileName, const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,GetCurFile)(THIS_ LPOLESTR* ppszFileName, AM_MEDIA_TYPE* pmt) PURE; \ - /*** IFileSinkFilter2 methods ***/ \ - STDMETHOD_(HRESULT,SetMode)(THIS_ DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,GetMode)(THIS_ DWORD* pdwFlags) PURE; - -HRESULT CALLBACK IFileSinkFilter2_SetMode_Proxy( - IFileSinkFilter2* This, - DWORD dwFlags); -void __RPC_STUB IFileSinkFilter2_SetMode_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFileSinkFilter2_GetMode_Proxy( - IFileSinkFilter2* This, - DWORD* pdwFlags); -void __RPC_STUB IFileSinkFilter2_GetMode_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFileSinkFilter2_INTERFACE_DEFINED__ */ - -typedef IFileSinkFilter2 *PFILESINKFILTER2; - -typedef enum { - AM_FILE_OVERWRITE = 0x1 -} AM_FILESINK_FLAGS; - -/***************************************************************************** - * IGraphBuilder interface - */ -#ifndef __IGraphBuilder_INTERFACE_DEFINED__ -#define __IGraphBuilder_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IGraphBuilder, 0x56a868a9, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IGraphBuilder : public IFilterGraph -{ - virtual HRESULT STDMETHODCALLTYPE Connect( - IPin* ppinOut, - IPin* ppinIn) = 0; - - virtual HRESULT STDMETHODCALLTYPE Render( - IPin* ppinOut) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderFile( - LPCWSTR lpcwstrFile, - LPCWSTR lpcwstrPlayList) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddSourceFilter( - LPCWSTR lpcwstrFileName, - LPCWSTR lpcwstrFilterName, - IBaseFilter** ppFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetLogFile( - DWORD_PTR hFile) = 0; - - virtual HRESULT STDMETHODCALLTYPE Abort( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE ShouldOperationContinue( - ) = 0; - -}; -#else -typedef struct IGraphBuilderVtbl IGraphBuilderVtbl; -struct IGraphBuilder { - const IGraphBuilderVtbl* lpVtbl; -}; -struct IGraphBuilderVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IGraphBuilder* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IGraphBuilder* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IGraphBuilder* This); - - /*** IFilterGraph methods ***/ - HRESULT (STDMETHODCALLTYPE *AddFilter)( - IGraphBuilder* This, - IBaseFilter* pFilter, - LPCWSTR pName); - - HRESULT (STDMETHODCALLTYPE *RemoveFilter)( - IGraphBuilder* This, - IBaseFilter* pFilter); - - HRESULT (STDMETHODCALLTYPE *EnumFilters)( - IGraphBuilder* This, - IEnumFilters** ppEnum); - - HRESULT (STDMETHODCALLTYPE *FindFilterByName)( - IGraphBuilder* This, - LPCWSTR pName, - IBaseFilter** ppFilter); - - HRESULT (STDMETHODCALLTYPE *ConnectDirect)( - IGraphBuilder* This, - IPin* ppinOut, - IPin* ppinIn, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *Reconnect)( - IGraphBuilder* This, - IPin* ppin); - - HRESULT (STDMETHODCALLTYPE *Disconnect)( - IGraphBuilder* This, - IPin* ppin); - - HRESULT (STDMETHODCALLTYPE *SetDefaultSyncSource)( - IGraphBuilder* This); - - /*** IGraphBuilder methods ***/ - HRESULT (STDMETHODCALLTYPE *Connect)( - IGraphBuilder* This, - IPin* ppinOut, - IPin* ppinIn); - - HRESULT (STDMETHODCALLTYPE *Render)( - IGraphBuilder* This, - IPin* ppinOut); - - HRESULT (STDMETHODCALLTYPE *RenderFile)( - IGraphBuilder* This, - LPCWSTR lpcwstrFile, - LPCWSTR lpcwstrPlayList); - - HRESULT (STDMETHODCALLTYPE *AddSourceFilter)( - IGraphBuilder* This, - LPCWSTR lpcwstrFileName, - LPCWSTR lpcwstrFilterName, - IBaseFilter** ppFilter); - - HRESULT (STDMETHODCALLTYPE *SetLogFile)( - IGraphBuilder* This, - DWORD_PTR hFile); - - HRESULT (STDMETHODCALLTYPE *Abort)( - IGraphBuilder* This); - - HRESULT (STDMETHODCALLTYPE *ShouldOperationContinue)( - IGraphBuilder* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IGraphBuilder_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IGraphBuilder_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IGraphBuilder_Release(p) (p)->lpVtbl->Release(p) -/*** IFilterGraph methods ***/ -#define IGraphBuilder_AddFilter(p,a,b) (p)->lpVtbl->AddFilter(p,a,b) -#define IGraphBuilder_RemoveFilter(p,a) (p)->lpVtbl->RemoveFilter(p,a) -#define IGraphBuilder_EnumFilters(p,a) (p)->lpVtbl->EnumFilters(p,a) -#define IGraphBuilder_FindFilterByName(p,a,b) (p)->lpVtbl->FindFilterByName(p,a,b) -#define IGraphBuilder_ConnectDirect(p,a,b,c) (p)->lpVtbl->ConnectDirect(p,a,b,c) -#define IGraphBuilder_Reconnect(p,a) (p)->lpVtbl->Reconnect(p,a) -#define IGraphBuilder_Disconnect(p,a) (p)->lpVtbl->Disconnect(p,a) -#define IGraphBuilder_SetDefaultSyncSource(p) (p)->lpVtbl->SetDefaultSyncSource(p) -/*** IGraphBuilder methods ***/ -#define IGraphBuilder_Connect(p,a,b) (p)->lpVtbl->Connect(p,a,b) -#define IGraphBuilder_Render(p,a) (p)->lpVtbl->Render(p,a) -#define IGraphBuilder_RenderFile(p,a,b) (p)->lpVtbl->RenderFile(p,a,b) -#define IGraphBuilder_AddSourceFilter(p,a,b,c) (p)->lpVtbl->AddSourceFilter(p,a,b,c) -#define IGraphBuilder_SetLogFile(p,a) (p)->lpVtbl->SetLogFile(p,a) -#define IGraphBuilder_Abort(p) (p)->lpVtbl->Abort(p) -#define IGraphBuilder_ShouldOperationContinue(p) (p)->lpVtbl->ShouldOperationContinue(p) -#endif - -#endif - -#define IGraphBuilder_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFilterGraph methods ***/ \ - STDMETHOD_(HRESULT,AddFilter)(THIS_ IBaseFilter* pFilter, LPCWSTR pName) PURE; \ - STDMETHOD_(HRESULT,RemoveFilter)(THIS_ IBaseFilter* pFilter) PURE; \ - STDMETHOD_(HRESULT,EnumFilters)(THIS_ IEnumFilters** ppEnum) PURE; \ - STDMETHOD_(HRESULT,FindFilterByName)(THIS_ LPCWSTR pName, IBaseFilter** ppFilter) PURE; \ - STDMETHOD_(HRESULT,ConnectDirect)(THIS_ IPin* ppinOut, IPin* ppinIn, const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,Reconnect)(THIS_ IPin* ppin) PURE; \ - STDMETHOD_(HRESULT,Disconnect)(THIS_ IPin* ppin) PURE; \ - STDMETHOD_(HRESULT,SetDefaultSyncSource)(THIS) PURE; \ - /*** IGraphBuilder methods ***/ \ - STDMETHOD_(HRESULT,Connect)(THIS_ IPin* ppinOut, IPin* ppinIn) PURE; \ - STDMETHOD_(HRESULT,Render)(THIS_ IPin* ppinOut) PURE; \ - STDMETHOD_(HRESULT,RenderFile)(THIS_ LPCWSTR lpcwstrFile, LPCWSTR lpcwstrPlayList) PURE; \ - STDMETHOD_(HRESULT,AddSourceFilter)(THIS_ LPCWSTR lpcwstrFileName, LPCWSTR lpcwstrFilterName, IBaseFilter** ppFilter) PURE; \ - STDMETHOD_(HRESULT,SetLogFile)(THIS_ DWORD_PTR hFile) PURE; \ - STDMETHOD_(HRESULT,Abort)(THIS) PURE; \ - STDMETHOD_(HRESULT,ShouldOperationContinue)(THIS) PURE; - -HRESULT CALLBACK IGraphBuilder_Connect_Proxy( - IGraphBuilder* This, - IPin* ppinOut, - IPin* ppinIn); -void __RPC_STUB IGraphBuilder_Connect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphBuilder_Render_Proxy( - IGraphBuilder* This, - IPin* ppinOut); -void __RPC_STUB IGraphBuilder_Render_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphBuilder_RenderFile_Proxy( - IGraphBuilder* This, - LPCWSTR lpcwstrFile, - LPCWSTR lpcwstrPlayList); -void __RPC_STUB IGraphBuilder_RenderFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphBuilder_AddSourceFilter_Proxy( - IGraphBuilder* This, - LPCWSTR lpcwstrFileName, - LPCWSTR lpcwstrFilterName, - IBaseFilter** ppFilter); -void __RPC_STUB IGraphBuilder_AddSourceFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphBuilder_SetLogFile_Proxy( - IGraphBuilder* This, - DWORD_PTR hFile); -void __RPC_STUB IGraphBuilder_SetLogFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphBuilder_Abort_Proxy( - IGraphBuilder* This); -void __RPC_STUB IGraphBuilder_Abort_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphBuilder_ShouldOperationContinue_Proxy( - IGraphBuilder* This); -void __RPC_STUB IGraphBuilder_ShouldOperationContinue_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IGraphBuilder_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * ICaptureGraphBuilder interface - */ -#ifndef __ICaptureGraphBuilder_INTERFACE_DEFINED__ -#define __ICaptureGraphBuilder_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICaptureGraphBuilder, 0xbf87b6e0, 0x8c27, 0x11d0, 0xb3,0xf0, 0x00,0xaa,0x00,0x37,0x61,0xc5); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICaptureGraphBuilder : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetFiltergraph( - IGraphBuilder* pfg) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFiltergraph( - IGraphBuilder** ppfg) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOutputFileName( - const GUID* pType, - LPCOLESTR lpstrFile, - IBaseFilter** ppf, - IFileSinkFilter** ppSink) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindInterface( - const GUID* pCategory, - IBaseFilter* pf, - REFIID riid, - void** ppint) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderStream( - const GUID* pCategory, - IUnknown* pSource, - IBaseFilter* pfCompressor, - IBaseFilter* pfRenderer) = 0; - - virtual HRESULT STDMETHODCALLTYPE ControlStream( - const GUID* pCategory, - IBaseFilter* pFilter, - REFERENCE_TIME* pstart, - REFERENCE_TIME* pstop, - WORD wStartCookie, - WORD wStopCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE AllocCapFile( - LPCOLESTR lpstr, - DWORDLONG dwlSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE CopyCaptureFile( - LPOLESTR lpwstrOld, - LPOLESTR lpwstrNew, - int fAllowEscAbort, - IAMCopyCaptureFileProgress* pCallback) = 0; - -}; -#else -typedef struct ICaptureGraphBuilderVtbl ICaptureGraphBuilderVtbl; -struct ICaptureGraphBuilder { - const ICaptureGraphBuilderVtbl* lpVtbl; -}; -struct ICaptureGraphBuilderVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICaptureGraphBuilder* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICaptureGraphBuilder* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICaptureGraphBuilder* This); - - /*** ICaptureGraphBuilder methods ***/ - HRESULT (STDMETHODCALLTYPE *SetFiltergraph)( - ICaptureGraphBuilder* This, - IGraphBuilder* pfg); - - HRESULT (STDMETHODCALLTYPE *GetFiltergraph)( - ICaptureGraphBuilder* This, - IGraphBuilder** ppfg); - - HRESULT (STDMETHODCALLTYPE *SetOutputFileName)( - ICaptureGraphBuilder* This, - const GUID* pType, - LPCOLESTR lpstrFile, - IBaseFilter** ppf, - IFileSinkFilter** ppSink); - - HRESULT (STDMETHODCALLTYPE *FindInterface)( - ICaptureGraphBuilder* This, - const GUID* pCategory, - IBaseFilter* pf, - REFIID riid, - void** ppint); - - HRESULT (STDMETHODCALLTYPE *RenderStream)( - ICaptureGraphBuilder* This, - const GUID* pCategory, - IUnknown* pSource, - IBaseFilter* pfCompressor, - IBaseFilter* pfRenderer); - - HRESULT (STDMETHODCALLTYPE *ControlStream)( - ICaptureGraphBuilder* This, - const GUID* pCategory, - IBaseFilter* pFilter, - REFERENCE_TIME* pstart, - REFERENCE_TIME* pstop, - WORD wStartCookie, - WORD wStopCookie); - - HRESULT (STDMETHODCALLTYPE *AllocCapFile)( - ICaptureGraphBuilder* This, - LPCOLESTR lpstr, - DWORDLONG dwlSize); - - HRESULT (STDMETHODCALLTYPE *CopyCaptureFile)( - ICaptureGraphBuilder* This, - LPOLESTR lpwstrOld, - LPOLESTR lpwstrNew, - int fAllowEscAbort, - IAMCopyCaptureFileProgress* pCallback); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICaptureGraphBuilder_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICaptureGraphBuilder_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICaptureGraphBuilder_Release(p) (p)->lpVtbl->Release(p) -/*** ICaptureGraphBuilder methods ***/ -#define ICaptureGraphBuilder_SetFiltergraph(p,a) (p)->lpVtbl->SetFiltergraph(p,a) -#define ICaptureGraphBuilder_GetFiltergraph(p,a) (p)->lpVtbl->GetFiltergraph(p,a) -#define ICaptureGraphBuilder_SetOutputFileName(p,a,b,c,d) (p)->lpVtbl->SetOutputFileName(p,a,b,c,d) -#define ICaptureGraphBuilder_FindInterface(p,a,b,c,d) (p)->lpVtbl->FindInterface(p,a,b,c,d) -#define ICaptureGraphBuilder_RenderStream(p,a,b,c,d) (p)->lpVtbl->RenderStream(p,a,b,c,d) -#define ICaptureGraphBuilder_ControlStream(p,a,b,c,d,e,f) (p)->lpVtbl->ControlStream(p,a,b,c,d,e,f) -#define ICaptureGraphBuilder_AllocCapFile(p,a,b) (p)->lpVtbl->AllocCapFile(p,a,b) -#define ICaptureGraphBuilder_CopyCaptureFile(p,a,b,c,d) (p)->lpVtbl->CopyCaptureFile(p,a,b,c,d) -#endif - -#endif - -#define ICaptureGraphBuilder_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICaptureGraphBuilder methods ***/ \ - STDMETHOD_(HRESULT,SetFiltergraph)(THIS_ IGraphBuilder* pfg) PURE; \ - STDMETHOD_(HRESULT,GetFiltergraph)(THIS_ IGraphBuilder** ppfg) PURE; \ - STDMETHOD_(HRESULT,SetOutputFileName)(THIS_ const GUID* pType, LPCOLESTR lpstrFile, IBaseFilter** ppf, IFileSinkFilter** ppSink) PURE; \ - STDMETHOD_(HRESULT,FindInterface)(THIS_ const GUID* pCategory, IBaseFilter* pf, REFIID riid, void** ppint) PURE; \ - STDMETHOD_(HRESULT,RenderStream)(THIS_ const GUID* pCategory, IUnknown* pSource, IBaseFilter* pfCompressor, IBaseFilter* pfRenderer) PURE; \ - STDMETHOD_(HRESULT,ControlStream)(THIS_ const GUID* pCategory, IBaseFilter* pFilter, REFERENCE_TIME* pstart, REFERENCE_TIME* pstop, WORD wStartCookie, WORD wStopCookie) PURE; \ - STDMETHOD_(HRESULT,AllocCapFile)(THIS_ LPCOLESTR lpstr, DWORDLONG dwlSize) PURE; \ - STDMETHOD_(HRESULT,CopyCaptureFile)(THIS_ LPOLESTR lpwstrOld, LPOLESTR lpwstrNew, int fAllowEscAbort, IAMCopyCaptureFileProgress* pCallback) PURE; - -HRESULT CALLBACK ICaptureGraphBuilder_SetFiltergraph_Proxy( - ICaptureGraphBuilder* This, - IGraphBuilder* pfg); -void __RPC_STUB ICaptureGraphBuilder_SetFiltergraph_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder_GetFiltergraph_Proxy( - ICaptureGraphBuilder* This, - IGraphBuilder** ppfg); -void __RPC_STUB ICaptureGraphBuilder_GetFiltergraph_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder_SetOutputFileName_Proxy( - ICaptureGraphBuilder* This, - const GUID* pType, - LPCOLESTR lpstrFile, - IBaseFilter** ppf, - IFileSinkFilter** ppSink); -void __RPC_STUB ICaptureGraphBuilder_SetOutputFileName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder_RemoteFindInterface_Proxy( - ICaptureGraphBuilder* This, - const GUID* pCategory, - IBaseFilter* pf, - REFIID riid, - IUnknown** ppint); -void __RPC_STUB ICaptureGraphBuilder_RemoteFindInterface_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder_FindInterface_Proxy( - ICaptureGraphBuilder* This, - const GUID* pCategory, - IBaseFilter* pf, - REFIID riid, - void** ppint); -HRESULT __RPC_STUB ICaptureGraphBuilder_FindInterface_Stub( - ICaptureGraphBuilder* This, - const GUID* pCategory, - IBaseFilter* pf, - REFIID riid, - IUnknown** ppint); -HRESULT CALLBACK ICaptureGraphBuilder_RenderStream_Proxy( - ICaptureGraphBuilder* This, - const GUID* pCategory, - IUnknown* pSource, - IBaseFilter* pfCompressor, - IBaseFilter* pfRenderer); -void __RPC_STUB ICaptureGraphBuilder_RenderStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder_ControlStream_Proxy( - ICaptureGraphBuilder* This, - const GUID* pCategory, - IBaseFilter* pFilter, - REFERENCE_TIME* pstart, - REFERENCE_TIME* pstop, - WORD wStartCookie, - WORD wStopCookie); -void __RPC_STUB ICaptureGraphBuilder_ControlStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder_AllocCapFile_Proxy( - ICaptureGraphBuilder* This, - LPCOLESTR lpstr, - DWORDLONG dwlSize); -void __RPC_STUB ICaptureGraphBuilder_AllocCapFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder_CopyCaptureFile_Proxy( - ICaptureGraphBuilder* This, - LPOLESTR lpwstrOld, - LPOLESTR lpwstrNew, - int fAllowEscAbort, - IAMCopyCaptureFileProgress* pCallback); -void __RPC_STUB ICaptureGraphBuilder_CopyCaptureFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICaptureGraphBuilder_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IAMCopyCaptureFileProgress interface - */ -#ifndef __IAMCopyCaptureFileProgress_INTERFACE_DEFINED__ -#define __IAMCopyCaptureFileProgress_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAMCopyCaptureFileProgress, 0x670d1d20, 0xa068, 0x11d0, 0xb3,0xf0, 0x00,0xaa,0x00,0x37,0x61,0xc5); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAMCopyCaptureFileProgress : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Progress( - int iProgress) = 0; - -}; -#else -typedef struct IAMCopyCaptureFileProgressVtbl IAMCopyCaptureFileProgressVtbl; -struct IAMCopyCaptureFileProgress { - const IAMCopyCaptureFileProgressVtbl* lpVtbl; -}; -struct IAMCopyCaptureFileProgressVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAMCopyCaptureFileProgress* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAMCopyCaptureFileProgress* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAMCopyCaptureFileProgress* This); - - /*** IAMCopyCaptureFileProgress methods ***/ - HRESULT (STDMETHODCALLTYPE *Progress)( - IAMCopyCaptureFileProgress* This, - int iProgress); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAMCopyCaptureFileProgress_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAMCopyCaptureFileProgress_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAMCopyCaptureFileProgress_Release(p) (p)->lpVtbl->Release(p) -/*** IAMCopyCaptureFileProgress methods ***/ -#define IAMCopyCaptureFileProgress_Progress(p,a) (p)->lpVtbl->Progress(p,a) -#endif - -#endif - -#define IAMCopyCaptureFileProgress_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IAMCopyCaptureFileProgress methods ***/ \ - STDMETHOD_(HRESULT,Progress)(THIS_ int iProgress) PURE; - -HRESULT CALLBACK IAMCopyCaptureFileProgress_Progress_Proxy( - IAMCopyCaptureFileProgress* This, - int iProgress); -void __RPC_STUB IAMCopyCaptureFileProgress_Progress_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAMCopyCaptureFileProgress_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * ICaptureGraphBuilder2 interface - */ -#ifndef __ICaptureGraphBuilder2_INTERFACE_DEFINED__ -#define __ICaptureGraphBuilder2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_ICaptureGraphBuilder2, 0x93e5a4e0, 0x2d50, 0x11d2, 0xab,0xfa, 0x00,0xa0,0xc9,0xc6,0xe3,0x8d); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct ICaptureGraphBuilder2 : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE SetFiltergraph( - IGraphBuilder* pfg) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFiltergraph( - IGraphBuilder** ppfg) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetOutputFileName( - const GUID* pType, - LPCOLESTR lpstrFile, - IBaseFilter** ppf, - IFileSinkFilter** ppSink) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindInterface( - const GUID* pCategory, - const GUID* pType, - IBaseFilter* pf, - REFIID riid, - void** ppint) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderStream( - const GUID* pCategory, - const GUID* pType, - IUnknown* pSource, - IBaseFilter* pfCompressor, - IBaseFilter* pfRenderer) = 0; - - virtual HRESULT STDMETHODCALLTYPE ControlStream( - const GUID* pCategory, - const GUID* pType, - IBaseFilter* pFilter, - REFERENCE_TIME* pstart, - REFERENCE_TIME* pstop, - WORD wStartCookie, - WORD wStopCookie) = 0; - - virtual HRESULT STDMETHODCALLTYPE AllocCapFile( - LPCOLESTR lpstr, - DWORDLONG dwlSize) = 0; - - virtual HRESULT STDMETHODCALLTYPE CopyCaptureFile( - LPOLESTR lpwstrOld, - LPOLESTR lpwstrNew, - int fAllowEscAbort, - IAMCopyCaptureFileProgress* pCallback) = 0; - - virtual HRESULT STDMETHODCALLTYPE FindPin( - IUnknown* pSource, - PIN_DIRECTION pindir, - const GUID* pCategory, - const GUID* pType, - BOOL fUnconnected, - int num, - IPin** ppPin) = 0; - -}; -#else -typedef struct ICaptureGraphBuilder2Vtbl ICaptureGraphBuilder2Vtbl; -struct ICaptureGraphBuilder2 { - const ICaptureGraphBuilder2Vtbl* lpVtbl; -}; -struct ICaptureGraphBuilder2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - ICaptureGraphBuilder2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - ICaptureGraphBuilder2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - ICaptureGraphBuilder2* This); - - /*** ICaptureGraphBuilder2 methods ***/ - HRESULT (STDMETHODCALLTYPE *SetFiltergraph)( - ICaptureGraphBuilder2* This, - IGraphBuilder* pfg); - - HRESULT (STDMETHODCALLTYPE *GetFiltergraph)( - ICaptureGraphBuilder2* This, - IGraphBuilder** ppfg); - - HRESULT (STDMETHODCALLTYPE *SetOutputFileName)( - ICaptureGraphBuilder2* This, - const GUID* pType, - LPCOLESTR lpstrFile, - IBaseFilter** ppf, - IFileSinkFilter** ppSink); - - HRESULT (STDMETHODCALLTYPE *FindInterface)( - ICaptureGraphBuilder2* This, - const GUID* pCategory, - const GUID* pType, - IBaseFilter* pf, - REFIID riid, - void** ppint); - - HRESULT (STDMETHODCALLTYPE *RenderStream)( - ICaptureGraphBuilder2* This, - const GUID* pCategory, - const GUID* pType, - IUnknown* pSource, - IBaseFilter* pfCompressor, - IBaseFilter* pfRenderer); - - HRESULT (STDMETHODCALLTYPE *ControlStream)( - ICaptureGraphBuilder2* This, - const GUID* pCategory, - const GUID* pType, - IBaseFilter* pFilter, - REFERENCE_TIME* pstart, - REFERENCE_TIME* pstop, - WORD wStartCookie, - WORD wStopCookie); - - HRESULT (STDMETHODCALLTYPE *AllocCapFile)( - ICaptureGraphBuilder2* This, - LPCOLESTR lpstr, - DWORDLONG dwlSize); - - HRESULT (STDMETHODCALLTYPE *CopyCaptureFile)( - ICaptureGraphBuilder2* This, - LPOLESTR lpwstrOld, - LPOLESTR lpwstrNew, - int fAllowEscAbort, - IAMCopyCaptureFileProgress* pCallback); - - HRESULT (STDMETHODCALLTYPE *FindPin)( - ICaptureGraphBuilder2* This, - IUnknown* pSource, - PIN_DIRECTION pindir, - const GUID* pCategory, - const GUID* pType, - BOOL fUnconnected, - int num, - IPin** ppPin); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define ICaptureGraphBuilder2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define ICaptureGraphBuilder2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define ICaptureGraphBuilder2_Release(p) (p)->lpVtbl->Release(p) -/*** ICaptureGraphBuilder2 methods ***/ -#define ICaptureGraphBuilder2_SetFiltergraph(p,a) (p)->lpVtbl->SetFiltergraph(p,a) -#define ICaptureGraphBuilder2_GetFiltergraph(p,a) (p)->lpVtbl->GetFiltergraph(p,a) -#define ICaptureGraphBuilder2_SetOutputFileName(p,a,b,c,d) (p)->lpVtbl->SetOutputFileName(p,a,b,c,d) -#define ICaptureGraphBuilder2_FindInterface(p,a,b,c,d,e) (p)->lpVtbl->FindInterface(p,a,b,c,d,e) -#define ICaptureGraphBuilder2_RenderStream(p,a,b,c,d,e) (p)->lpVtbl->RenderStream(p,a,b,c,d,e) -#define ICaptureGraphBuilder2_ControlStream(p,a,b,c,d,e,f,g) (p)->lpVtbl->ControlStream(p,a,b,c,d,e,f,g) -#define ICaptureGraphBuilder2_AllocCapFile(p,a,b) (p)->lpVtbl->AllocCapFile(p,a,b) -#define ICaptureGraphBuilder2_CopyCaptureFile(p,a,b,c,d) (p)->lpVtbl->CopyCaptureFile(p,a,b,c,d) -#define ICaptureGraphBuilder2_FindPin(p,a,b,c,d,e,f,g) (p)->lpVtbl->FindPin(p,a,b,c,d,e,f,g) -#endif - -#endif - -#define ICaptureGraphBuilder2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** ICaptureGraphBuilder2 methods ***/ \ - STDMETHOD_(HRESULT,SetFiltergraph)(THIS_ IGraphBuilder* pfg) PURE; \ - STDMETHOD_(HRESULT,GetFiltergraph)(THIS_ IGraphBuilder** ppfg) PURE; \ - STDMETHOD_(HRESULT,SetOutputFileName)(THIS_ const GUID* pType, LPCOLESTR lpstrFile, IBaseFilter** ppf, IFileSinkFilter** ppSink) PURE; \ - STDMETHOD_(HRESULT,FindInterface)(THIS_ const GUID* pCategory, const GUID* pType, IBaseFilter* pf, REFIID riid, void** ppint) PURE; \ - STDMETHOD_(HRESULT,RenderStream)(THIS_ const GUID* pCategory, const GUID* pType, IUnknown* pSource, IBaseFilter* pfCompressor, IBaseFilter* pfRenderer) PURE; \ - STDMETHOD_(HRESULT,ControlStream)(THIS_ const GUID* pCategory, const GUID* pType, IBaseFilter* pFilter, REFERENCE_TIME* pstart, REFERENCE_TIME* pstop, WORD wStartCookie, WORD wStopCookie) PURE; \ - STDMETHOD_(HRESULT,AllocCapFile)(THIS_ LPCOLESTR lpstr, DWORDLONG dwlSize) PURE; \ - STDMETHOD_(HRESULT,CopyCaptureFile)(THIS_ LPOLESTR lpwstrOld, LPOLESTR lpwstrNew, int fAllowEscAbort, IAMCopyCaptureFileProgress* pCallback) PURE; \ - STDMETHOD_(HRESULT,FindPin)(THIS_ IUnknown* pSource, PIN_DIRECTION pindir, const GUID* pCategory, const GUID* pType, BOOL fUnconnected, int num, IPin** ppPin) PURE; - -HRESULT CALLBACK ICaptureGraphBuilder2_SetFiltergraph_Proxy( - ICaptureGraphBuilder2* This, - IGraphBuilder* pfg); -void __RPC_STUB ICaptureGraphBuilder2_SetFiltergraph_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder2_GetFiltergraph_Proxy( - ICaptureGraphBuilder2* This, - IGraphBuilder** ppfg); -void __RPC_STUB ICaptureGraphBuilder2_GetFiltergraph_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder2_SetOutputFileName_Proxy( - ICaptureGraphBuilder2* This, - const GUID* pType, - LPCOLESTR lpstrFile, - IBaseFilter** ppf, - IFileSinkFilter** ppSink); -void __RPC_STUB ICaptureGraphBuilder2_SetOutputFileName_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder2_RemoteFindInterface_Proxy( - ICaptureGraphBuilder2* This, - const GUID* pCategory, - const GUID* pType, - IBaseFilter* pf, - REFIID riid, - IUnknown** ppint); -void __RPC_STUB ICaptureGraphBuilder2_RemoteFindInterface_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder2_FindInterface_Proxy( - ICaptureGraphBuilder2* This, - const GUID* pCategory, - const GUID* pType, - IBaseFilter* pf, - REFIID riid, - void** ppint); -HRESULT __RPC_STUB ICaptureGraphBuilder2_FindInterface_Stub( - ICaptureGraphBuilder2* This, - const GUID* pCategory, - const GUID* pType, - IBaseFilter* pf, - REFIID riid, - IUnknown** ppint); -HRESULT CALLBACK ICaptureGraphBuilder2_RenderStream_Proxy( - ICaptureGraphBuilder2* This, - const GUID* pCategory, - const GUID* pType, - IUnknown* pSource, - IBaseFilter* pfCompressor, - IBaseFilter* pfRenderer); -void __RPC_STUB ICaptureGraphBuilder2_RenderStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder2_ControlStream_Proxy( - ICaptureGraphBuilder2* This, - const GUID* pCategory, - const GUID* pType, - IBaseFilter* pFilter, - REFERENCE_TIME* pstart, - REFERENCE_TIME* pstop, - WORD wStartCookie, - WORD wStopCookie); -void __RPC_STUB ICaptureGraphBuilder2_ControlStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder2_AllocCapFile_Proxy( - ICaptureGraphBuilder2* This, - LPCOLESTR lpstr, - DWORDLONG dwlSize); -void __RPC_STUB ICaptureGraphBuilder2_AllocCapFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder2_CopyCaptureFile_Proxy( - ICaptureGraphBuilder2* This, - LPOLESTR lpwstrOld, - LPOLESTR lpwstrNew, - int fAllowEscAbort, - IAMCopyCaptureFileProgress* pCallback); -void __RPC_STUB ICaptureGraphBuilder2_CopyCaptureFile_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK ICaptureGraphBuilder2_FindPin_Proxy( - ICaptureGraphBuilder2* This, - IUnknown* pSource, - PIN_DIRECTION pindir, - const GUID* pCategory, - const GUID* pType, - BOOL fUnconnected, - int num, - IPin** ppPin); -void __RPC_STUB ICaptureGraphBuilder2_FindPin_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __ICaptureGraphBuilder2_INTERFACE_DEFINED__ */ - -enum _AM_RENSDEREXFLAGS { - AM_RENDEREX_RENDERTOEXISTINGRENDERERS = 0x1 -}; - -#ifndef __IFilterGraph2_FWD_DEFINED__ -#define __IFilterGraph2_FWD_DEFINED__ -typedef struct IFilterGraph2 IFilterGraph2; -#endif - -/***************************************************************************** - * IFilterGraph2 interface - */ -#ifndef __IFilterGraph2_INTERFACE_DEFINED__ -#define __IFilterGraph2_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFilterGraph2, 0x36b73882, 0xc2c8, 0x11cf, 0x8b,0x46, 0x00,0x80,0x5f,0x6c,0xef,0x60); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFilterGraph2 : public IGraphBuilder -{ - virtual HRESULT STDMETHODCALLTYPE AddSourceFilterForMoniker( - IMoniker* pMoniker, - IBindCtx* pCtx, - LPCWSTR lpcwstrFilterName, - IBaseFilter** ppFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReconnectEx( - IPin* ppin, - const AM_MEDIA_TYPE* pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE RenderEx( - IPin* pPinOut, - DWORD dwFlags, - DWORD* pvContext) = 0; - -}; -#else -typedef struct IFilterGraph2Vtbl IFilterGraph2Vtbl; -struct IFilterGraph2 { - const IFilterGraph2Vtbl* lpVtbl; -}; -struct IFilterGraph2Vtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFilterGraph2* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFilterGraph2* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFilterGraph2* This); - - /*** IFilterGraph methods ***/ - HRESULT (STDMETHODCALLTYPE *AddFilter)( - IFilterGraph2* This, - IBaseFilter* pFilter, - LPCWSTR pName); - - HRESULT (STDMETHODCALLTYPE *RemoveFilter)( - IFilterGraph2* This, - IBaseFilter* pFilter); - - HRESULT (STDMETHODCALLTYPE *EnumFilters)( - IFilterGraph2* This, - IEnumFilters** ppEnum); - - HRESULT (STDMETHODCALLTYPE *FindFilterByName)( - IFilterGraph2* This, - LPCWSTR pName, - IBaseFilter** ppFilter); - - HRESULT (STDMETHODCALLTYPE *ConnectDirect)( - IFilterGraph2* This, - IPin* ppinOut, - IPin* ppinIn, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *Reconnect)( - IFilterGraph2* This, - IPin* ppin); - - HRESULT (STDMETHODCALLTYPE *Disconnect)( - IFilterGraph2* This, - IPin* ppin); - - HRESULT (STDMETHODCALLTYPE *SetDefaultSyncSource)( - IFilterGraph2* This); - - /*** IGraphBuilder methods ***/ - HRESULT (STDMETHODCALLTYPE *Connect)( - IFilterGraph2* This, - IPin* ppinOut, - IPin* ppinIn); - - HRESULT (STDMETHODCALLTYPE *Render)( - IFilterGraph2* This, - IPin* ppinOut); - - HRESULT (STDMETHODCALLTYPE *RenderFile)( - IFilterGraph2* This, - LPCWSTR lpcwstrFile, - LPCWSTR lpcwstrPlayList); - - HRESULT (STDMETHODCALLTYPE *AddSourceFilter)( - IFilterGraph2* This, - LPCWSTR lpcwstrFileName, - LPCWSTR lpcwstrFilterName, - IBaseFilter** ppFilter); - - HRESULT (STDMETHODCALLTYPE *SetLogFile)( - IFilterGraph2* This, - DWORD_PTR hFile); - - HRESULT (STDMETHODCALLTYPE *Abort)( - IFilterGraph2* This); - - HRESULT (STDMETHODCALLTYPE *ShouldOperationContinue)( - IFilterGraph2* This); - - /*** IFilterGraph2 methods ***/ - HRESULT (STDMETHODCALLTYPE *AddSourceFilterForMoniker)( - IFilterGraph2* This, - IMoniker* pMoniker, - IBindCtx* pCtx, - LPCWSTR lpcwstrFilterName, - IBaseFilter** ppFilter); - - HRESULT (STDMETHODCALLTYPE *ReconnectEx)( - IFilterGraph2* This, - IPin* ppin, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *RenderEx)( - IFilterGraph2* This, - IPin* pPinOut, - DWORD dwFlags, - DWORD* pvContext); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFilterGraph2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFilterGraph2_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFilterGraph2_Release(p) (p)->lpVtbl->Release(p) -/*** IFilterGraph methods ***/ -#define IFilterGraph2_AddFilter(p,a,b) (p)->lpVtbl->AddFilter(p,a,b) -#define IFilterGraph2_RemoveFilter(p,a) (p)->lpVtbl->RemoveFilter(p,a) -#define IFilterGraph2_EnumFilters(p,a) (p)->lpVtbl->EnumFilters(p,a) -#define IFilterGraph2_FindFilterByName(p,a,b) (p)->lpVtbl->FindFilterByName(p,a,b) -#define IFilterGraph2_ConnectDirect(p,a,b,c) (p)->lpVtbl->ConnectDirect(p,a,b,c) -#define IFilterGraph2_Reconnect(p,a) (p)->lpVtbl->Reconnect(p,a) -#define IFilterGraph2_Disconnect(p,a) (p)->lpVtbl->Disconnect(p,a) -#define IFilterGraph2_SetDefaultSyncSource(p) (p)->lpVtbl->SetDefaultSyncSource(p) -/*** IGraphBuilder methods ***/ -#define IFilterGraph2_Connect(p,a,b) (p)->lpVtbl->Connect(p,a,b) -#define IFilterGraph2_Render(p,a) (p)->lpVtbl->Render(p,a) -#define IFilterGraph2_RenderFile(p,a,b) (p)->lpVtbl->RenderFile(p,a,b) -#define IFilterGraph2_AddSourceFilter(p,a,b,c) (p)->lpVtbl->AddSourceFilter(p,a,b,c) -#define IFilterGraph2_SetLogFile(p,a) (p)->lpVtbl->SetLogFile(p,a) -#define IFilterGraph2_Abort(p) (p)->lpVtbl->Abort(p) -#define IFilterGraph2_ShouldOperationContinue(p) (p)->lpVtbl->ShouldOperationContinue(p) -/*** IFilterGraph2 methods ***/ -#define IFilterGraph2_AddSourceFilterForMoniker(p,a,b,c,d) (p)->lpVtbl->AddSourceFilterForMoniker(p,a,b,c,d) -#define IFilterGraph2_ReconnectEx(p,a,b) (p)->lpVtbl->ReconnectEx(p,a,b) -#define IFilterGraph2_RenderEx(p,a,b,c) (p)->lpVtbl->RenderEx(p,a,b,c) -#endif - -#endif - -#define IFilterGraph2_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFilterGraph methods ***/ \ - STDMETHOD_(HRESULT,AddFilter)(THIS_ IBaseFilter* pFilter, LPCWSTR pName) PURE; \ - STDMETHOD_(HRESULT,RemoveFilter)(THIS_ IBaseFilter* pFilter) PURE; \ - STDMETHOD_(HRESULT,EnumFilters)(THIS_ IEnumFilters** ppEnum) PURE; \ - STDMETHOD_(HRESULT,FindFilterByName)(THIS_ LPCWSTR pName, IBaseFilter** ppFilter) PURE; \ - STDMETHOD_(HRESULT,ConnectDirect)(THIS_ IPin* ppinOut, IPin* ppinIn, const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,Reconnect)(THIS_ IPin* ppin) PURE; \ - STDMETHOD_(HRESULT,Disconnect)(THIS_ IPin* ppin) PURE; \ - STDMETHOD_(HRESULT,SetDefaultSyncSource)(THIS) PURE; \ - /*** IGraphBuilder methods ***/ \ - STDMETHOD_(HRESULT,Connect)(THIS_ IPin* ppinOut, IPin* ppinIn) PURE; \ - STDMETHOD_(HRESULT,Render)(THIS_ IPin* ppinOut) PURE; \ - STDMETHOD_(HRESULT,RenderFile)(THIS_ LPCWSTR lpcwstrFile, LPCWSTR lpcwstrPlayList) PURE; \ - STDMETHOD_(HRESULT,AddSourceFilter)(THIS_ LPCWSTR lpcwstrFileName, LPCWSTR lpcwstrFilterName, IBaseFilter** ppFilter) PURE; \ - STDMETHOD_(HRESULT,SetLogFile)(THIS_ DWORD_PTR hFile) PURE; \ - STDMETHOD_(HRESULT,Abort)(THIS) PURE; \ - STDMETHOD_(HRESULT,ShouldOperationContinue)(THIS) PURE; \ - /*** IFilterGraph2 methods ***/ \ - STDMETHOD_(HRESULT,AddSourceFilterForMoniker)(THIS_ IMoniker* pMoniker, IBindCtx* pCtx, LPCWSTR lpcwstrFilterName, IBaseFilter** ppFilter) PURE; \ - STDMETHOD_(HRESULT,ReconnectEx)(THIS_ IPin* ppin, const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,RenderEx)(THIS_ IPin* pPinOut, DWORD dwFlags, DWORD* pvContext) PURE; - -HRESULT CALLBACK IFilterGraph2_AddSourceFilterForMoniker_Proxy( - IFilterGraph2* This, - IMoniker* pMoniker, - IBindCtx* pCtx, - LPCWSTR lpcwstrFilterName, - IBaseFilter** ppFilter); -void __RPC_STUB IFilterGraph2_AddSourceFilterForMoniker_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterGraph2_ReconnectEx_Proxy( - IFilterGraph2* This, - IPin* ppin, - const AM_MEDIA_TYPE* pmt); -void __RPC_STUB IFilterGraph2_ReconnectEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterGraph2_RenderEx_Proxy( - IFilterGraph2* This, - IPin* pPinOut, - DWORD dwFlags, - DWORD* pvContext); -void __RPC_STUB IFilterGraph2_RenderEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFilterGraph2_INTERFACE_DEFINED__ */ - -#ifndef __IStreamBuilder_FWD_DEFINED__ -#define __IStreamBuilder_FWD_DEFINED__ -typedef struct IStreamBuilder IStreamBuilder; -#endif - -/***************************************************************************** - * IStreamBuilder interface - */ -#ifndef __IStreamBuilder_INTERFACE_DEFINED__ -#define __IStreamBuilder_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IStreamBuilder, 0x56a868bf, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IStreamBuilder : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Render( - IPin* ppinOut, - IGraphBuilder* pGraph) = 0; - - virtual HRESULT STDMETHODCALLTYPE Backout( - IPin* ppinOut, - IGraphBuilder* pGraph) = 0; - -}; -#else -typedef struct IStreamBuilderVtbl IStreamBuilderVtbl; -struct IStreamBuilder { - const IStreamBuilderVtbl* lpVtbl; -}; -struct IStreamBuilderVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IStreamBuilder* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IStreamBuilder* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IStreamBuilder* This); - - /*** IStreamBuilder methods ***/ - HRESULT (STDMETHODCALLTYPE *Render)( - IStreamBuilder* This, - IPin* ppinOut, - IGraphBuilder* pGraph); - - HRESULT (STDMETHODCALLTYPE *Backout)( - IStreamBuilder* This, - IPin* ppinOut, - IGraphBuilder* pGraph); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IStreamBuilder_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IStreamBuilder_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IStreamBuilder_Release(p) (p)->lpVtbl->Release(p) -/*** IStreamBuilder methods ***/ -#define IStreamBuilder_Render(p,a,b) (p)->lpVtbl->Render(p,a,b) -#define IStreamBuilder_Backout(p,a,b) (p)->lpVtbl->Backout(p,a,b) -#endif - -#endif - -#define IStreamBuilder_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IStreamBuilder methods ***/ \ - STDMETHOD_(HRESULT,Render)(THIS_ IPin* ppinOut, IGraphBuilder* pGraph) PURE; \ - STDMETHOD_(HRESULT,Backout)(THIS_ IPin* ppinOut, IGraphBuilder* pGraph) PURE; - -HRESULT CALLBACK IStreamBuilder_Render_Proxy( - IStreamBuilder* This, - IPin* ppinOut, - IGraphBuilder* pGraph); -void __RPC_STUB IStreamBuilder_Render_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IStreamBuilder_Backout_Proxy( - IStreamBuilder* This, - IPin* ppinOut, - IGraphBuilder* pGraph); -void __RPC_STUB IStreamBuilder_Backout_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IStreamBuilder_INTERFACE_DEFINED__ */ - -#ifndef __IAsyncReader_FWD_DEFINED__ -#define __IAsyncReader_FWD_DEFINED__ -typedef struct IAsyncReader IAsyncReader; -#endif - -/***************************************************************************** - * IAsyncReader interface - */ -#ifndef __IAsyncReader_INTERFACE_DEFINED__ -#define __IAsyncReader_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IAsyncReader, 0x56a868aa, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IAsyncReader : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE RequestAllocator( - IMemAllocator* pPreferred, - ALLOCATOR_PROPERTIES* pProps, - IMemAllocator** ppActual) = 0; - - virtual HRESULT STDMETHODCALLTYPE Request( - IMediaSample* pSample, - DWORD_PTR dwUser) = 0; - - virtual HRESULT STDMETHODCALLTYPE WaitForNext( - DWORD dwTimeout, - IMediaSample** ppSample, - DWORD_PTR* pdwUser) = 0; - - virtual HRESULT STDMETHODCALLTYPE SyncReadAligned( - IMediaSample* pSample) = 0; - - virtual HRESULT STDMETHODCALLTYPE SyncRead( - LONGLONG llPosition, - LONG lLength, - BYTE* pBuffer) = 0; - - virtual HRESULT STDMETHODCALLTYPE Length( - LONGLONG* pTotal, - LONGLONG* pAvailable) = 0; - - virtual HRESULT STDMETHODCALLTYPE BeginFlush( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE EndFlush( - ) = 0; - -}; -#else -typedef struct IAsyncReaderVtbl IAsyncReaderVtbl; -struct IAsyncReader { - const IAsyncReaderVtbl* lpVtbl; -}; -struct IAsyncReaderVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IAsyncReader* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IAsyncReader* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IAsyncReader* This); - - /*** IAsyncReader methods ***/ - HRESULT (STDMETHODCALLTYPE *RequestAllocator)( - IAsyncReader* This, - IMemAllocator* pPreferred, - ALLOCATOR_PROPERTIES* pProps, - IMemAllocator** ppActual); - - HRESULT (STDMETHODCALLTYPE *Request)( - IAsyncReader* This, - IMediaSample* pSample, - DWORD_PTR dwUser); - - HRESULT (STDMETHODCALLTYPE *WaitForNext)( - IAsyncReader* This, - DWORD dwTimeout, - IMediaSample** ppSample, - DWORD_PTR* pdwUser); - - HRESULT (STDMETHODCALLTYPE *SyncReadAligned)( - IAsyncReader* This, - IMediaSample* pSample); - - HRESULT (STDMETHODCALLTYPE *SyncRead)( - IAsyncReader* This, - LONGLONG llPosition, - LONG lLength, - BYTE* pBuffer); - - HRESULT (STDMETHODCALLTYPE *Length)( - IAsyncReader* This, - LONGLONG* pTotal, - LONGLONG* pAvailable); - - HRESULT (STDMETHODCALLTYPE *BeginFlush)( - IAsyncReader* This); - - HRESULT (STDMETHODCALLTYPE *EndFlush)( - IAsyncReader* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IAsyncReader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IAsyncReader_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IAsyncReader_Release(p) (p)->lpVtbl->Release(p) -/*** IAsyncReader methods ***/ -#define IAsyncReader_RequestAllocator(p,a,b,c) (p)->lpVtbl->RequestAllocator(p,a,b,c) -#define IAsyncReader_Request(p,a,b) (p)->lpVtbl->Request(p,a,b) -#define IAsyncReader_WaitForNext(p,a,b,c) (p)->lpVtbl->WaitForNext(p,a,b,c) -#define IAsyncReader_SyncReadAligned(p,a) (p)->lpVtbl->SyncReadAligned(p,a) -#define IAsyncReader_SyncRead(p,a,b,c) (p)->lpVtbl->SyncRead(p,a,b,c) -#define IAsyncReader_Length(p,a,b) (p)->lpVtbl->Length(p,a,b) -#define IAsyncReader_BeginFlush(p) (p)->lpVtbl->BeginFlush(p) -#define IAsyncReader_EndFlush(p) (p)->lpVtbl->EndFlush(p) -#endif - -#endif - -#define IAsyncReader_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IAsyncReader methods ***/ \ - STDMETHOD_(HRESULT,RequestAllocator)(THIS_ IMemAllocator* pPreferred, ALLOCATOR_PROPERTIES* pProps, IMemAllocator** ppActual) PURE; \ - STDMETHOD_(HRESULT,Request)(THIS_ IMediaSample* pSample, DWORD_PTR dwUser) PURE; \ - STDMETHOD_(HRESULT,WaitForNext)(THIS_ DWORD dwTimeout, IMediaSample** ppSample, DWORD_PTR* pdwUser) PURE; \ - STDMETHOD_(HRESULT,SyncReadAligned)(THIS_ IMediaSample* pSample) PURE; \ - STDMETHOD_(HRESULT,SyncRead)(THIS_ LONGLONG llPosition, LONG lLength, BYTE* pBuffer) PURE; \ - STDMETHOD_(HRESULT,Length)(THIS_ LONGLONG* pTotal, LONGLONG* pAvailable) PURE; \ - STDMETHOD_(HRESULT,BeginFlush)(THIS) PURE; \ - STDMETHOD_(HRESULT,EndFlush)(THIS) PURE; - -HRESULT CALLBACK IAsyncReader_RequestAllocator_Proxy( - IAsyncReader* This, - IMemAllocator* pPreferred, - ALLOCATOR_PROPERTIES* pProps, - IMemAllocator** ppActual); -void __RPC_STUB IAsyncReader_RequestAllocator_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAsyncReader_Request_Proxy( - IAsyncReader* This, - IMediaSample* pSample, - DWORD_PTR dwUser); -void __RPC_STUB IAsyncReader_Request_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAsyncReader_WaitForNext_Proxy( - IAsyncReader* This, - DWORD dwTimeout, - IMediaSample** ppSample, - DWORD_PTR* pdwUser); -void __RPC_STUB IAsyncReader_WaitForNext_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAsyncReader_SyncReadAligned_Proxy( - IAsyncReader* This, - IMediaSample* pSample); -void __RPC_STUB IAsyncReader_SyncReadAligned_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAsyncReader_SyncRead_Proxy( - IAsyncReader* This, - LONGLONG llPosition, - LONG lLength, - BYTE* pBuffer); -void __RPC_STUB IAsyncReader_SyncRead_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAsyncReader_Length_Proxy( - IAsyncReader* This, - LONGLONG* pTotal, - LONGLONG* pAvailable); -void __RPC_STUB IAsyncReader_Length_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAsyncReader_BeginFlush_Proxy( - IAsyncReader* This); -void __RPC_STUB IAsyncReader_BeginFlush_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IAsyncReader_EndFlush_Proxy( - IAsyncReader* This); -void __RPC_STUB IAsyncReader_EndFlush_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IAsyncReader_INTERFACE_DEFINED__ */ - -#ifndef __IGraphVersion_FWD_DEFINED__ -#define __IGraphVersion_FWD_DEFINED__ -typedef struct IGraphVersion IGraphVersion; -#endif - -/***************************************************************************** - * IGraphVersion interface - */ -#ifndef __IGraphVersion_INTERFACE_DEFINED__ -#define __IGraphVersion_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IGraphVersion, 0x56a868ab, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IGraphVersion : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryVersion( - LONG* pVersion) = 0; - -}; -#else -typedef struct IGraphVersionVtbl IGraphVersionVtbl; -struct IGraphVersion { - const IGraphVersionVtbl* lpVtbl; -}; -struct IGraphVersionVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IGraphVersion* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IGraphVersion* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IGraphVersion* This); - - /*** IGraphVersion methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryVersion)( - IGraphVersion* This, - LONG* pVersion); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IGraphVersion_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IGraphVersion_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IGraphVersion_Release(p) (p)->lpVtbl->Release(p) -/*** IGraphVersion methods ***/ -#define IGraphVersion_QueryVersion(p,a) (p)->lpVtbl->QueryVersion(p,a) -#endif - -#endif - -#define IGraphVersion_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IGraphVersion methods ***/ \ - STDMETHOD_(HRESULT,QueryVersion)(THIS_ LONG* pVersion) PURE; - -HRESULT CALLBACK IGraphVersion_QueryVersion_Proxy( - IGraphVersion* This, - LONG* pVersion); -void __RPC_STUB IGraphVersion_QueryVersion_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IGraphVersion_INTERFACE_DEFINED__ */ - -#ifndef __IResourceConsumer_FWD_DEFINED__ -#define __IResourceConsumer_FWD_DEFINED__ -typedef struct IResourceConsumer IResourceConsumer; -#endif - -/***************************************************************************** - * IResourceConsumer interface - */ -#ifndef __IResourceConsumer_INTERFACE_DEFINED__ -#define __IResourceConsumer_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IResourceConsumer, 0x56a868ad, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IResourceConsumer : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE AcquireResource( - LONG idResource) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseResource( - LONG idResource) = 0; - -}; -#else -typedef struct IResourceConsumerVtbl IResourceConsumerVtbl; -struct IResourceConsumer { - const IResourceConsumerVtbl* lpVtbl; -}; -struct IResourceConsumerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IResourceConsumer* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IResourceConsumer* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IResourceConsumer* This); - - /*** IResourceConsumer methods ***/ - HRESULT (STDMETHODCALLTYPE *AcquireResource)( - IResourceConsumer* This, - LONG idResource); - - HRESULT (STDMETHODCALLTYPE *ReleaseResource)( - IResourceConsumer* This, - LONG idResource); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IResourceConsumer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IResourceConsumer_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IResourceConsumer_Release(p) (p)->lpVtbl->Release(p) -/*** IResourceConsumer methods ***/ -#define IResourceConsumer_AcquireResource(p,a) (p)->lpVtbl->AcquireResource(p,a) -#define IResourceConsumer_ReleaseResource(p,a) (p)->lpVtbl->ReleaseResource(p,a) -#endif - -#endif - -#define IResourceConsumer_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IResourceConsumer methods ***/ \ - STDMETHOD_(HRESULT,AcquireResource)(THIS_ LONG idResource) PURE; \ - STDMETHOD_(HRESULT,ReleaseResource)(THIS_ LONG idResource) PURE; - -HRESULT CALLBACK IResourceConsumer_AcquireResource_Proxy( - IResourceConsumer* This, - LONG idResource); -void __RPC_STUB IResourceConsumer_AcquireResource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IResourceConsumer_ReleaseResource_Proxy( - IResourceConsumer* This, - LONG idResource); -void __RPC_STUB IResourceConsumer_ReleaseResource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IResourceConsumer_INTERFACE_DEFINED__ */ - -#ifndef __IResourceManager_FWD_DEFINED__ -#define __IResourceManager_FWD_DEFINED__ -typedef struct IResourceManager IResourceManager; -#endif - -/***************************************************************************** - * IResourceManager interface - */ -#ifndef __IResourceManager_INTERFACE_DEFINED__ -#define __IResourceManager_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IResourceManager, 0x56a868ac, 0x0ad4, 0x11ce, 0xb0,0x3a, 0x00,0x20,0xaf,0x0b,0xa7,0x70); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IResourceManager : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Register( - LPCWSTR pName, - LONG cResource, - LONG* plToken) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterGroup( - LPCWSTR pName, - LONG cResource, - LONG* palTokens, - LONG* plToken) = 0; - - virtual HRESULT STDMETHODCALLTYPE RequestResource( - LONG idResource, - IUnknown* pFocusObject, - IResourceConsumer* pConsumer) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyAcquire( - LONG idResource, - IResourceConsumer* pConsumer, - HRESULT hr) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyRelease( - LONG idResource, - IResourceConsumer* pConsumer, - BOOL bStillWant) = 0; - - virtual HRESULT STDMETHODCALLTYPE CancelRequest( - LONG idResource, - IResourceConsumer* pConsumer) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFocus( - IUnknown* pFocusObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE ReleaseFocus( - IUnknown* pFocusObject) = 0; - -}; -#else -typedef struct IResourceManagerVtbl IResourceManagerVtbl; -struct IResourceManager { - const IResourceManagerVtbl* lpVtbl; -}; -struct IResourceManagerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IResourceManager* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IResourceManager* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IResourceManager* This); - - /*** IResourceManager methods ***/ - HRESULT (STDMETHODCALLTYPE *Register)( - IResourceManager* This, - LPCWSTR pName, - LONG cResource, - LONG* plToken); - - HRESULT (STDMETHODCALLTYPE *RegisterGroup)( - IResourceManager* This, - LPCWSTR pName, - LONG cResource, - LONG* palTokens, - LONG* plToken); - - HRESULT (STDMETHODCALLTYPE *RequestResource)( - IResourceManager* This, - LONG idResource, - IUnknown* pFocusObject, - IResourceConsumer* pConsumer); - - HRESULT (STDMETHODCALLTYPE *NotifyAcquire)( - IResourceManager* This, - LONG idResource, - IResourceConsumer* pConsumer, - HRESULT hr); - - HRESULT (STDMETHODCALLTYPE *NotifyRelease)( - IResourceManager* This, - LONG idResource, - IResourceConsumer* pConsumer, - BOOL bStillWant); - - HRESULT (STDMETHODCALLTYPE *CancelRequest)( - IResourceManager* This, - LONG idResource, - IResourceConsumer* pConsumer); - - HRESULT (STDMETHODCALLTYPE *SetFocus)( - IResourceManager* This, - IUnknown* pFocusObject); - - HRESULT (STDMETHODCALLTYPE *ReleaseFocus)( - IResourceManager* This, - IUnknown* pFocusObject); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IResourceManager_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IResourceManager_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IResourceManager_Release(p) (p)->lpVtbl->Release(p) -/*** IResourceManager methods ***/ -#define IResourceManager_Register(p,a,b,c) (p)->lpVtbl->Register(p,a,b,c) -#define IResourceManager_RegisterGroup(p,a,b,c,d) (p)->lpVtbl->RegisterGroup(p,a,b,c,d) -#define IResourceManager_RequestResource(p,a,b,c) (p)->lpVtbl->RequestResource(p,a,b,c) -#define IResourceManager_NotifyAcquire(p,a,b,c) (p)->lpVtbl->NotifyAcquire(p,a,b,c) -#define IResourceManager_NotifyRelease(p,a,b,c) (p)->lpVtbl->NotifyRelease(p,a,b,c) -#define IResourceManager_CancelRequest(p,a,b) (p)->lpVtbl->CancelRequest(p,a,b) -#define IResourceManager_SetFocus(p,a) (p)->lpVtbl->SetFocus(p,a) -#define IResourceManager_ReleaseFocus(p,a) (p)->lpVtbl->ReleaseFocus(p,a) -#endif - -#endif - -#define IResourceManager_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IResourceManager methods ***/ \ - STDMETHOD_(HRESULT,Register)(THIS_ LPCWSTR pName, LONG cResource, LONG* plToken) PURE; \ - STDMETHOD_(HRESULT,RegisterGroup)(THIS_ LPCWSTR pName, LONG cResource, LONG* palTokens, LONG* plToken) PURE; \ - STDMETHOD_(HRESULT,RequestResource)(THIS_ LONG idResource, IUnknown* pFocusObject, IResourceConsumer* pConsumer) PURE; \ - STDMETHOD_(HRESULT,NotifyAcquire)(THIS_ LONG idResource, IResourceConsumer* pConsumer, HRESULT hr) PURE; \ - STDMETHOD_(HRESULT,NotifyRelease)(THIS_ LONG idResource, IResourceConsumer* pConsumer, BOOL bStillWant) PURE; \ - STDMETHOD_(HRESULT,CancelRequest)(THIS_ LONG idResource, IResourceConsumer* pConsumer) PURE; \ - STDMETHOD_(HRESULT,SetFocus)(THIS_ IUnknown* pFocusObject) PURE; \ - STDMETHOD_(HRESULT,ReleaseFocus)(THIS_ IUnknown* pFocusObject) PURE; - -HRESULT CALLBACK IResourceManager_Register_Proxy( - IResourceManager* This, - LPCWSTR pName, - LONG cResource, - LONG* plToken); -void __RPC_STUB IResourceManager_Register_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IResourceManager_RegisterGroup_Proxy( - IResourceManager* This, - LPCWSTR pName, - LONG cResource, - LONG* palTokens, - LONG* plToken); -void __RPC_STUB IResourceManager_RegisterGroup_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IResourceManager_RequestResource_Proxy( - IResourceManager* This, - LONG idResource, - IUnknown* pFocusObject, - IResourceConsumer* pConsumer); -void __RPC_STUB IResourceManager_RequestResource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IResourceManager_NotifyAcquire_Proxy( - IResourceManager* This, - LONG idResource, - IResourceConsumer* pConsumer, - HRESULT hr); -void __RPC_STUB IResourceManager_NotifyAcquire_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IResourceManager_NotifyRelease_Proxy( - IResourceManager* This, - LONG idResource, - IResourceConsumer* pConsumer, - BOOL bStillWant); -void __RPC_STUB IResourceManager_NotifyRelease_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IResourceManager_CancelRequest_Proxy( - IResourceManager* This, - LONG idResource, - IResourceConsumer* pConsumer); -void __RPC_STUB IResourceManager_CancelRequest_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IResourceManager_SetFocus_Proxy( - IResourceManager* This, - IUnknown* pFocusObject); -void __RPC_STUB IResourceManager_SetFocus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IResourceManager_ReleaseFocus_Proxy( - IResourceManager* This, - IUnknown* pFocusObject); -void __RPC_STUB IResourceManager_ReleaseFocus_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IResourceManager_INTERFACE_DEFINED__ */ - -#ifndef _IKsPropertySet_ -#define _IKsPropertySet_ -#define KSPROPERTY_SUPPORT_GET 1 -#define KSPROPERTY_SUPPORT_SET 2 -/***************************************************************************** - * IKsPropertySet interface - */ -#ifndef __IKsPropertySet_INTERFACE_DEFINED__ -#define __IKsPropertySet_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IKsPropertySet, 0x31efac30, 0x515c, 0x11d0, 0xa9,0xaa, 0x00,0xaa,0x00,0x61,0xbe,0x93); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IKsPropertySet : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Set( - REFGUID guidPropSet, - DWORD dwPropID, - LPVOID pInstanceData, - DWORD cbInstanceData, - LPVOID pPropData, - DWORD cbPropData) = 0; - - virtual HRESULT STDMETHODCALLTYPE Get( - REFGUID guidPropSet, - DWORD dwPropID, - LPVOID pInstanceData, - DWORD cbInstanceData, - LPVOID pPropData, - DWORD cbPropData, - DWORD* pcbReturned) = 0; - - virtual HRESULT STDMETHODCALLTYPE QuerySupported( - REFGUID guidPropSet, - DWORD dwPropID, - DWORD* pTypeSupport) = 0; - -}; -#else -typedef struct IKsPropertySetVtbl IKsPropertySetVtbl; -struct IKsPropertySet { - const IKsPropertySetVtbl* lpVtbl; -}; -struct IKsPropertySetVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IKsPropertySet* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IKsPropertySet* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IKsPropertySet* This); - - /*** IKsPropertySet methods ***/ - HRESULT (STDMETHODCALLTYPE *Set)( - IKsPropertySet* This, - REFGUID guidPropSet, - DWORD dwPropID, - LPVOID pInstanceData, - DWORD cbInstanceData, - LPVOID pPropData, - DWORD cbPropData); - - HRESULT (STDMETHODCALLTYPE *Get)( - IKsPropertySet* This, - REFGUID guidPropSet, - DWORD dwPropID, - LPVOID pInstanceData, - DWORD cbInstanceData, - LPVOID pPropData, - DWORD cbPropData, - DWORD* pcbReturned); - - HRESULT (STDMETHODCALLTYPE *QuerySupported)( - IKsPropertySet* This, - REFGUID guidPropSet, - DWORD dwPropID, - DWORD* pTypeSupport); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IKsPropertySet_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IKsPropertySet_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IKsPropertySet_Release(p) (p)->lpVtbl->Release(p) -/*** IKsPropertySet methods ***/ -#define IKsPropertySet_Set(p,a,b,c,d,e,f) (p)->lpVtbl->Set(p,a,b,c,d,e,f) -#define IKsPropertySet_Get(p,a,b,c,d,e,f,g) (p)->lpVtbl->Get(p,a,b,c,d,e,f,g) -#define IKsPropertySet_QuerySupported(p,a,b,c) (p)->lpVtbl->QuerySupported(p,a,b,c) -#endif - -#endif - -#define IKsPropertySet_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IKsPropertySet methods ***/ \ - STDMETHOD_(HRESULT,Set)(THIS_ REFGUID guidPropSet, DWORD dwPropID, LPVOID pInstanceData, DWORD cbInstanceData, LPVOID pPropData, DWORD cbPropData) PURE; \ - STDMETHOD_(HRESULT,Get)(THIS_ REFGUID guidPropSet, DWORD dwPropID, LPVOID pInstanceData, DWORD cbInstanceData, LPVOID pPropData, DWORD cbPropData, DWORD* pcbReturned) PURE; \ - STDMETHOD_(HRESULT,QuerySupported)(THIS_ REFGUID guidPropSet, DWORD dwPropID, DWORD* pTypeSupport) PURE; - -HRESULT CALLBACK IKsPropertySet_Set_Proxy( - IKsPropertySet* This, - REFGUID guidPropSet, - DWORD dwPropID, - LPVOID pInstanceData, - DWORD cbInstanceData, - LPVOID pPropData, - DWORD cbPropData); -void __RPC_STUB IKsPropertySet_Set_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IKsPropertySet_Get_Proxy( - IKsPropertySet* This, - REFGUID guidPropSet, - DWORD dwPropID, - LPVOID pInstanceData, - DWORD cbInstanceData, - LPVOID pPropData, - DWORD cbPropData, - DWORD* pcbReturned); -void __RPC_STUB IKsPropertySet_Get_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IKsPropertySet_QuerySupported_Proxy( - IKsPropertySet* This, - REFGUID guidPropSet, - DWORD dwPropID, - DWORD* pTypeSupport); -void __RPC_STUB IKsPropertySet_QuerySupported_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IKsPropertySet_INTERFACE_DEFINED__ */ - -#endif /* _IKsPropertySet_ */ -#ifndef __IPinConnection_FWD_DEFINED__ -#define __IPinConnection_FWD_DEFINED__ -typedef struct IPinConnection IPinConnection; -#endif - -#ifndef __IPinFlowControl_FWD_DEFINED__ -#define __IPinFlowControl_FWD_DEFINED__ -typedef struct IPinFlowControl IPinFlowControl; -#endif - -#ifndef __IGraphConfig_FWD_DEFINED__ -#define __IGraphConfig_FWD_DEFINED__ -typedef struct IGraphConfig IGraphConfig; -#endif - -#ifndef __IGraphConfigCallback_FWD_DEFINED__ -#define __IGraphConfigCallback_FWD_DEFINED__ -typedef struct IGraphConfigCallback IGraphConfigCallback; -#endif - -/***************************************************************************** - * IPinConnection interface - */ -#ifndef __IPinConnection_INTERFACE_DEFINED__ -#define __IPinConnection_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPinConnection, 0x4a9a62d3, 0x27d4, 0x403d, 0x91,0xe9, 0x89,0xf5,0x40,0xe5,0x55,0x34); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPinConnection : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE DynamicQueryAccept( - const AM_MEDIA_TYPE* pmt) = 0; - - virtual HRESULT STDMETHODCALLTYPE NotifyEndOfStream( - HANDLE hNotifyEvent) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsEndPin( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE DynamicDisconnect( - ) = 0; - -}; -#else -typedef struct IPinConnectionVtbl IPinConnectionVtbl; -struct IPinConnection { - const IPinConnectionVtbl* lpVtbl; -}; -struct IPinConnectionVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPinConnection* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPinConnection* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPinConnection* This); - - /*** IPinConnection methods ***/ - HRESULT (STDMETHODCALLTYPE *DynamicQueryAccept)( - IPinConnection* This, - const AM_MEDIA_TYPE* pmt); - - HRESULT (STDMETHODCALLTYPE *NotifyEndOfStream)( - IPinConnection* This, - HANDLE hNotifyEvent); - - HRESULT (STDMETHODCALLTYPE *IsEndPin)( - IPinConnection* This); - - HRESULT (STDMETHODCALLTYPE *DynamicDisconnect)( - IPinConnection* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPinConnection_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPinConnection_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPinConnection_Release(p) (p)->lpVtbl->Release(p) -/*** IPinConnection methods ***/ -#define IPinConnection_DynamicQueryAccept(p,a) (p)->lpVtbl->DynamicQueryAccept(p,a) -#define IPinConnection_NotifyEndOfStream(p,a) (p)->lpVtbl->NotifyEndOfStream(p,a) -#define IPinConnection_IsEndPin(p) (p)->lpVtbl->IsEndPin(p) -#define IPinConnection_DynamicDisconnect(p) (p)->lpVtbl->DynamicDisconnect(p) -#endif - -#endif - -#define IPinConnection_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPinConnection methods ***/ \ - STDMETHOD_(HRESULT,DynamicQueryAccept)(THIS_ const AM_MEDIA_TYPE* pmt) PURE; \ - STDMETHOD_(HRESULT,NotifyEndOfStream)(THIS_ HANDLE hNotifyEvent) PURE; \ - STDMETHOD_(HRESULT,IsEndPin)(THIS) PURE; \ - STDMETHOD_(HRESULT,DynamicDisconnect)(THIS) PURE; - -HRESULT CALLBACK IPinConnection_DynamicQueryAccept_Proxy( - IPinConnection* This, - const AM_MEDIA_TYPE* pmt); -void __RPC_STUB IPinConnection_DynamicQueryAccept_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPinConnection_NotifyEndOfStream_Proxy( - IPinConnection* This, - HANDLE hNotifyEvent); -void __RPC_STUB IPinConnection_NotifyEndOfStream_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPinConnection_IsEndPin_Proxy( - IPinConnection* This); -void __RPC_STUB IPinConnection_IsEndPin_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPinConnection_DynamicDisconnect_Proxy( - IPinConnection* This); -void __RPC_STUB IPinConnection_DynamicDisconnect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPinConnection_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IPinFlowControl interface - */ -#ifndef __IPinFlowControl_INTERFACE_DEFINED__ -#define __IPinFlowControl_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPinFlowControl, 0xc56e9858, 0xdbf3, 0x4f6b, 0x81,0x19, 0x38,0x4a,0xf2,0x06,0x0d,0xeb); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPinFlowControl : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Block( - DWORD dwBlockFlags, - HANDLE hEvent) = 0; - -}; -#else -typedef struct IPinFlowControlVtbl IPinFlowControlVtbl; -struct IPinFlowControl { - const IPinFlowControlVtbl* lpVtbl; -}; -struct IPinFlowControlVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPinFlowControl* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPinFlowControl* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPinFlowControl* This); - - /*** IPinFlowControl methods ***/ - HRESULT (STDMETHODCALLTYPE *Block)( - IPinFlowControl* This, - DWORD dwBlockFlags, - HANDLE hEvent); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPinFlowControl_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPinFlowControl_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPinFlowControl_Release(p) (p)->lpVtbl->Release(p) -/*** IPinFlowControl methods ***/ -#define IPinFlowControl_Block(p,a,b) (p)->lpVtbl->Block(p,a,b) -#endif - -#endif - -#define IPinFlowControl_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPinFlowControl methods ***/ \ - STDMETHOD_(HRESULT,Block)(THIS_ DWORD dwBlockFlags, HANDLE hEvent) PURE; - -HRESULT CALLBACK IPinFlowControl_Block_Proxy( - IPinFlowControl* This, - DWORD dwBlockFlags, - HANDLE hEvent); -void __RPC_STUB IPinFlowControl_Block_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPinFlowControl_INTERFACE_DEFINED__ */ - -enum _AM_PIN_FLOW_CONTROL_BLOCK_FLAGS { - AM_PIN_FLOW_CONTROL_BLOCK = 0x1 -}; - -typedef enum _AM_GRAPH_CONFIG_RECONNECT_FLAGS { - AM_GRAPH_CONFIG_RECONNECT_DIRECTCONNECT = 0x1, - AM_GRAPH_CONFIG_RECONNECT_CACHE_REMOVED_FILTERS = 0x2, - AM_GRAPH_CONFIG_RECONNECT_USE_ONLY_CACHED_FILTERS = 0x4 -} AM_GRAPH_CONFIG_RECONNECT_FLAGS; - -enum _REM_FILTER_FLAGS { - REMFILTERF_LEAVECONNECTED = 0x1 -}; - -typedef enum _AM_FILTER_FLAGS { - AM_FILTER_FLAGS_REMOVABLE = 0x1 -} AM_FILTER_FLAGS; - -/***************************************************************************** - * IGraphConfig interface - */ -#ifndef __IGraphConfig_INTERFACE_DEFINED__ -#define __IGraphConfig_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IGraphConfig, 0x03a1eb8e, 0x32bf, 0x4245, 0x85,0x02, 0x11,0x4d,0x08,0xa9,0xcb,0x88); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IGraphConfig : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Reconnect( - IPin* pOutputPin, - IPin* pInputPin, - const AM_MEDIA_TYPE* pmtFirstConnection, - IBaseFilter* pUsingFilter, - HANDLE hAbortEvent, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE Reconfigure( - IGraphConfigCallback* pCallback, - PVOID pvContext, - DWORD dwFlags, - HANDLE hAbortEvent) = 0; - - virtual HRESULT STDMETHODCALLTYPE AddFilterToCache( - IBaseFilter* pFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE EnumCacheFilter( - IEnumFilters** pEnum) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveFilterFromCache( - IBaseFilter* pFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetStartTime( - REFERENCE_TIME* prtStart) = 0; - - virtual HRESULT STDMETHODCALLTYPE PushThroughData( - IPin* pOutputPin, - IPinConnection* pConnection, - HANDLE hEventAbort) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetFilterFlags( - IBaseFilter* pFilter, - DWORD dwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetFilterFlags( - IBaseFilter* pFilter, - DWORD* pdwFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveFilterEx( - IBaseFilter* pFilter, - DWORD Flags) = 0; - -}; -#else -typedef struct IGraphConfigVtbl IGraphConfigVtbl; -struct IGraphConfig { - const IGraphConfigVtbl* lpVtbl; -}; -struct IGraphConfigVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IGraphConfig* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IGraphConfig* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IGraphConfig* This); - - /*** IGraphConfig methods ***/ - HRESULT (STDMETHODCALLTYPE *Reconnect)( - IGraphConfig* This, - IPin* pOutputPin, - IPin* pInputPin, - const AM_MEDIA_TYPE* pmtFirstConnection, - IBaseFilter* pUsingFilter, - HANDLE hAbortEvent, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *Reconfigure)( - IGraphConfig* This, - IGraphConfigCallback* pCallback, - PVOID pvContext, - DWORD dwFlags, - HANDLE hAbortEvent); - - HRESULT (STDMETHODCALLTYPE *AddFilterToCache)( - IGraphConfig* This, - IBaseFilter* pFilter); - - HRESULT (STDMETHODCALLTYPE *EnumCacheFilter)( - IGraphConfig* This, - IEnumFilters** pEnum); - - HRESULT (STDMETHODCALLTYPE *RemoveFilterFromCache)( - IGraphConfig* This, - IBaseFilter* pFilter); - - HRESULT (STDMETHODCALLTYPE *GetStartTime)( - IGraphConfig* This, - REFERENCE_TIME* prtStart); - - HRESULT (STDMETHODCALLTYPE *PushThroughData)( - IGraphConfig* This, - IPin* pOutputPin, - IPinConnection* pConnection, - HANDLE hEventAbort); - - HRESULT (STDMETHODCALLTYPE *SetFilterFlags)( - IGraphConfig* This, - IBaseFilter* pFilter, - DWORD dwFlags); - - HRESULT (STDMETHODCALLTYPE *GetFilterFlags)( - IGraphConfig* This, - IBaseFilter* pFilter, - DWORD* pdwFlags); - - HRESULT (STDMETHODCALLTYPE *RemoveFilterEx)( - IGraphConfig* This, - IBaseFilter* pFilter, - DWORD Flags); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IGraphConfig_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IGraphConfig_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IGraphConfig_Release(p) (p)->lpVtbl->Release(p) -/*** IGraphConfig methods ***/ -#define IGraphConfig_Reconnect(p,a,b,c,d,e,f) (p)->lpVtbl->Reconnect(p,a,b,c,d,e,f) -#define IGraphConfig_Reconfigure(p,a,b,c,d) (p)->lpVtbl->Reconfigure(p,a,b,c,d) -#define IGraphConfig_AddFilterToCache(p,a) (p)->lpVtbl->AddFilterToCache(p,a) -#define IGraphConfig_EnumCacheFilter(p,a) (p)->lpVtbl->EnumCacheFilter(p,a) -#define IGraphConfig_RemoveFilterFromCache(p,a) (p)->lpVtbl->RemoveFilterFromCache(p,a) -#define IGraphConfig_GetStartTime(p,a) (p)->lpVtbl->GetStartTime(p,a) -#define IGraphConfig_PushThroughData(p,a,b,c) (p)->lpVtbl->PushThroughData(p,a,b,c) -#define IGraphConfig_SetFilterFlags(p,a,b) (p)->lpVtbl->SetFilterFlags(p,a,b) -#define IGraphConfig_GetFilterFlags(p,a,b) (p)->lpVtbl->GetFilterFlags(p,a,b) -#define IGraphConfig_RemoveFilterEx(p,a,b) (p)->lpVtbl->RemoveFilterEx(p,a,b) -#endif - -#endif - -#define IGraphConfig_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IGraphConfig methods ***/ \ - STDMETHOD_(HRESULT,Reconnect)(THIS_ IPin* pOutputPin, IPin* pInputPin, const AM_MEDIA_TYPE* pmtFirstConnection, IBaseFilter* pUsingFilter, HANDLE hAbortEvent, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,Reconfigure)(THIS_ IGraphConfigCallback* pCallback, PVOID pvContext, DWORD dwFlags, HANDLE hAbortEvent) PURE; \ - STDMETHOD_(HRESULT,AddFilterToCache)(THIS_ IBaseFilter* pFilter) PURE; \ - STDMETHOD_(HRESULT,EnumCacheFilter)(THIS_ IEnumFilters** pEnum) PURE; \ - STDMETHOD_(HRESULT,RemoveFilterFromCache)(THIS_ IBaseFilter* pFilter) PURE; \ - STDMETHOD_(HRESULT,GetStartTime)(THIS_ REFERENCE_TIME* prtStart) PURE; \ - STDMETHOD_(HRESULT,PushThroughData)(THIS_ IPin* pOutputPin, IPinConnection* pConnection, HANDLE hEventAbort) PURE; \ - STDMETHOD_(HRESULT,SetFilterFlags)(THIS_ IBaseFilter* pFilter, DWORD dwFlags) PURE; \ - STDMETHOD_(HRESULT,GetFilterFlags)(THIS_ IBaseFilter* pFilter, DWORD* pdwFlags) PURE; \ - STDMETHOD_(HRESULT,RemoveFilterEx)(THIS_ IBaseFilter* pFilter, DWORD Flags) PURE; - -HRESULT CALLBACK IGraphConfig_Reconnect_Proxy( - IGraphConfig* This, - IPin* pOutputPin, - IPin* pInputPin, - const AM_MEDIA_TYPE* pmtFirstConnection, - IBaseFilter* pUsingFilter, - HANDLE hAbortEvent, - DWORD dwFlags); -void __RPC_STUB IGraphConfig_Reconnect_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphConfig_Reconfigure_Proxy( - IGraphConfig* This, - IGraphConfigCallback* pCallback, - PVOID pvContext, - DWORD dwFlags, - HANDLE hAbortEvent); -void __RPC_STUB IGraphConfig_Reconfigure_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphConfig_AddFilterToCache_Proxy( - IGraphConfig* This, - IBaseFilter* pFilter); -void __RPC_STUB IGraphConfig_AddFilterToCache_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphConfig_EnumCacheFilter_Proxy( - IGraphConfig* This, - IEnumFilters** pEnum); -void __RPC_STUB IGraphConfig_EnumCacheFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphConfig_RemoveFilterFromCache_Proxy( - IGraphConfig* This, - IBaseFilter* pFilter); -void __RPC_STUB IGraphConfig_RemoveFilterFromCache_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphConfig_GetStartTime_Proxy( - IGraphConfig* This, - REFERENCE_TIME* prtStart); -void __RPC_STUB IGraphConfig_GetStartTime_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphConfig_PushThroughData_Proxy( - IGraphConfig* This, - IPin* pOutputPin, - IPinConnection* pConnection, - HANDLE hEventAbort); -void __RPC_STUB IGraphConfig_PushThroughData_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphConfig_SetFilterFlags_Proxy( - IGraphConfig* This, - IBaseFilter* pFilter, - DWORD dwFlags); -void __RPC_STUB IGraphConfig_SetFilterFlags_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphConfig_GetFilterFlags_Proxy( - IGraphConfig* This, - IBaseFilter* pFilter, - DWORD* pdwFlags); -void __RPC_STUB IGraphConfig_GetFilterFlags_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IGraphConfig_RemoveFilterEx_Proxy( - IGraphConfig* This, - IBaseFilter* pFilter, - DWORD Flags); -void __RPC_STUB IGraphConfig_RemoveFilterEx_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IGraphConfig_INTERFACE_DEFINED__ */ - -/***************************************************************************** - * IGraphConfigCallback interface - */ -#ifndef __IGraphConfigCallback_INTERFACE_DEFINED__ -#define __IGraphConfigCallback_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IGraphConfigCallback, 0xade0fd60, 0xd19d, 0x11d2, 0xab,0xf6, 0x00,0xa0,0xc9,0x05,0xf3,0x75); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IGraphConfigCallback : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Reconfigure( - PVOID pvContext, - DWORD dwFlags) = 0; - -}; -#else -typedef struct IGraphConfigCallbackVtbl IGraphConfigCallbackVtbl; -struct IGraphConfigCallback { - const IGraphConfigCallbackVtbl* lpVtbl; -}; -struct IGraphConfigCallbackVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IGraphConfigCallback* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IGraphConfigCallback* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IGraphConfigCallback* This); - - /*** IGraphConfigCallback methods ***/ - HRESULT (STDMETHODCALLTYPE *Reconfigure)( - IGraphConfigCallback* This, - PVOID pvContext, - DWORD dwFlags); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IGraphConfigCallback_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IGraphConfigCallback_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IGraphConfigCallback_Release(p) (p)->lpVtbl->Release(p) -/*** IGraphConfigCallback methods ***/ -#define IGraphConfigCallback_Reconfigure(p,a,b) (p)->lpVtbl->Reconfigure(p,a,b) -#endif - -#endif - -#define IGraphConfigCallback_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IGraphConfigCallback methods ***/ \ - STDMETHOD_(HRESULT,Reconfigure)(THIS_ PVOID pvContext, DWORD dwFlags) PURE; - -HRESULT CALLBACK IGraphConfigCallback_Reconfigure_Proxy( - IGraphConfigCallback* This, - PVOID pvContext, - DWORD dwFlags); -void __RPC_STUB IGraphConfigCallback_Reconfigure_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IGraphConfigCallback_INTERFACE_DEFINED__ */ - -#ifndef __IFilterChain_FWD_DEFINED__ -#define __IFilterChain_FWD_DEFINED__ -typedef struct IFilterChain IFilterChain; -#endif - -/***************************************************************************** - * IFilterChain interface - */ -#ifndef __IFilterChain_INTERFACE_DEFINED__ -#define __IFilterChain_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IFilterChain, 0xdcfbdcf6, 0x0dc2, 0x45f5, 0x9a,0xb2, 0x7c,0x33,0x0e,0xa0,0x9c,0x29); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IFilterChain : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE StartChain( - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE PauseChain( - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE StopChain( - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter) = 0; - - virtual HRESULT STDMETHODCALLTYPE RemoveChain( - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter) = 0; - -}; -#else -typedef struct IFilterChainVtbl IFilterChainVtbl; -struct IFilterChain { - const IFilterChainVtbl* lpVtbl; -}; -struct IFilterChainVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IFilterChain* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IFilterChain* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IFilterChain* This); - - /*** IFilterChain methods ***/ - HRESULT (STDMETHODCALLTYPE *StartChain)( - IFilterChain* This, - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter); - - HRESULT (STDMETHODCALLTYPE *PauseChain)( - IFilterChain* This, - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter); - - HRESULT (STDMETHODCALLTYPE *StopChain)( - IFilterChain* This, - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter); - - HRESULT (STDMETHODCALLTYPE *RemoveChain)( - IFilterChain* This, - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IFilterChain_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IFilterChain_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IFilterChain_Release(p) (p)->lpVtbl->Release(p) -/*** IFilterChain methods ***/ -#define IFilterChain_StartChain(p,a,b) (p)->lpVtbl->StartChain(p,a,b) -#define IFilterChain_PauseChain(p,a,b) (p)->lpVtbl->PauseChain(p,a,b) -#define IFilterChain_StopChain(p,a,b) (p)->lpVtbl->StopChain(p,a,b) -#define IFilterChain_RemoveChain(p,a,b) (p)->lpVtbl->RemoveChain(p,a,b) -#endif - -#endif - -#define IFilterChain_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IFilterChain methods ***/ \ - STDMETHOD_(HRESULT,StartChain)(THIS_ IBaseFilter* pStartFilter, IBaseFilter* pEndFilter) PURE; \ - STDMETHOD_(HRESULT,PauseChain)(THIS_ IBaseFilter* pStartFilter, IBaseFilter* pEndFilter) PURE; \ - STDMETHOD_(HRESULT,StopChain)(THIS_ IBaseFilter* pStartFilter, IBaseFilter* pEndFilter) PURE; \ - STDMETHOD_(HRESULT,RemoveChain)(THIS_ IBaseFilter* pStartFilter, IBaseFilter* pEndFilter) PURE; - -HRESULT CALLBACK IFilterChain_StartChain_Proxy( - IFilterChain* This, - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter); -void __RPC_STUB IFilterChain_StartChain_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterChain_PauseChain_Proxy( - IFilterChain* This, - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter); -void __RPC_STUB IFilterChain_PauseChain_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterChain_StopChain_Proxy( - IFilterChain* This, - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter); -void __RPC_STUB IFilterChain_StopChain_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IFilterChain_RemoveChain_Proxy( - IFilterChain* This, - IBaseFilter* pStartFilter, - IBaseFilter* pEndFilter); -void __RPC_STUB IFilterChain_RemoveChain_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IFilterChain_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_STRMIF_H */ diff --git a/include/unknwn.h b/include/unknwn.h deleted file mode 100644 index f06747b59cb..00000000000 --- a/include/unknwn.h +++ /dev/null @@ -1,225 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from unknwn.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_UNKNWN_H -#define __WIDL_UNKNWN_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#ifndef __IUnknown_FWD_DEFINED__ -#define __IUnknown_FWD_DEFINED__ -typedef struct IUnknown IUnknown; -#endif - -typedef IUnknown *LPUNKNOWN; - -/***************************************************************************** - * IUnknown interface - */ -#ifndef __IUnknown_INTERFACE_DEFINED__ -#define __IUnknown_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IUnknown, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IUnknown -{ - BEGIN_INTERFACE - - virtual HRESULT STDMETHODCALLTYPE QueryInterface( - REFIID riid, - void** ppvObject) = 0; - - virtual ULONG STDMETHODCALLTYPE AddRef( - ) = 0; - - virtual ULONG STDMETHODCALLTYPE Release( - ) = 0; - - END_INTERFACE -}; -#else -typedef struct IUnknownVtbl IUnknownVtbl; -struct IUnknown { - const IUnknownVtbl* lpVtbl; -}; -struct IUnknownVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IUnknown* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IUnknown* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IUnknown* This); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IUnknown_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IUnknown_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IUnknown_Release(p) (p)->lpVtbl->Release(p) -#endif - -#endif - -#define IUnknown_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; - -HRESULT CALLBACK IUnknown_QueryInterface_Proxy( - IUnknown* This, - REFIID riid, - void** ppvObject); -void __RPC_STUB IUnknown_QueryInterface_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -ULONG CALLBACK IUnknown_AddRef_Proxy( - IUnknown* This); -void __RPC_STUB IUnknown_AddRef_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -ULONG CALLBACK IUnknown_Release_Proxy( - IUnknown* This); -void __RPC_STUB IUnknown_Release_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IUnknown_INTERFACE_DEFINED__ */ - -#ifndef __IClassFactory_FWD_DEFINED__ -#define __IClassFactory_FWD_DEFINED__ -typedef struct IClassFactory IClassFactory; -#endif - -typedef IClassFactory *LPCLASSFACTORY; - -/***************************************************************************** - * IClassFactory interface - */ -#ifndef __IClassFactory_INTERFACE_DEFINED__ -#define __IClassFactory_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IClassFactory, 0x00000001, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IClassFactory : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CreateInstance( - IUnknown* pUnkOuter, - REFIID riid, - void** ppvObject) = 0; - - virtual HRESULT STDMETHODCALLTYPE LockServer( - BOOL fLock) = 0; - -}; -#else -typedef struct IClassFactoryVtbl IClassFactoryVtbl; -struct IClassFactory { - const IClassFactoryVtbl* lpVtbl; -}; -struct IClassFactoryVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IClassFactory* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IClassFactory* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IClassFactory* This); - - /*** IClassFactory methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateInstance)( - IClassFactory* This, - IUnknown* pUnkOuter, - REFIID riid, - void** ppvObject); - - HRESULT (STDMETHODCALLTYPE *LockServer)( - IClassFactory* This, - BOOL fLock); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IClassFactory_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IClassFactory_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IClassFactory_Release(p) (p)->lpVtbl->Release(p) -/*** IClassFactory methods ***/ -#define IClassFactory_CreateInstance(p,a,b,c) (p)->lpVtbl->CreateInstance(p,a,b,c) -#define IClassFactory_LockServer(p,a) (p)->lpVtbl->LockServer(p,a) -#endif - -#endif - -#define IClassFactory_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IClassFactory methods ***/ \ - STDMETHOD_(HRESULT,CreateInstance)(THIS_ IUnknown* pUnkOuter, REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(HRESULT,LockServer)(THIS_ BOOL fLock) PURE; - -HRESULT CALLBACK IClassFactory_RemoteCreateInstance_Proxy( - IClassFactory* This, - REFIID riid, - IUnknown** ppvObject); -void __RPC_STUB IClassFactory_RemoteCreateInstance_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IClassFactory_CreateInstance_Proxy( - IClassFactory* This, - IUnknown* pUnkOuter, - REFIID riid, - void** ppvObject); -HRESULT __RPC_STUB IClassFactory_CreateInstance_Stub( - IClassFactory* This, - REFIID riid, - IUnknown** ppvObject); -HRESULT CALLBACK IClassFactory_RemoteLockServer_Proxy( - IClassFactory* This, - BOOL fLock); -void __RPC_STUB IClassFactory_RemoteLockServer_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IClassFactory_LockServer_Proxy( - IClassFactory* This, - BOOL fLock); -HRESULT __RPC_STUB IClassFactory_LockServer_Stub( - IClassFactory* This, - BOOL fLock); - -#endif /* __IClassFactory_INTERFACE_DEFINED__ */ - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_UNKNWN_H */ diff --git a/include/urlmon.h b/include/urlmon.h deleted file mode 100644 index 4b1c681e91c..00000000000 --- a/include/urlmon.h +++ /dev/null @@ -1,1639 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from urlmon.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_URLMON_H -#define __WIDL_URLMON_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#include -#ifndef __IBinding_FWD_DEFINED__ -#define __IBinding_FWD_DEFINED__ -typedef struct IBinding IBinding; -#endif - -typedef IBinding *LPBINDING; - -/***************************************************************************** - * IBinding interface - */ -#ifndef __IBinding_INTERFACE_DEFINED__ -#define __IBinding_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IBinding, 0x79eac9c0, 0xbaf9, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IBinding : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE Abort( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Suspend( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Resume( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetPriority( - LONG nPriority) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPriority( - LONG* pnPriority) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBindResult( - CLSID* pclsidProtocol, - DWORD* pdwResult, - LPOLESTR* pszResult, - DWORD* pdwReserved) = 0; - -}; -#else -typedef struct IBindingVtbl IBindingVtbl; -struct IBinding { - const IBindingVtbl* lpVtbl; -}; -struct IBindingVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IBinding* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IBinding* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IBinding* This); - - /*** IBinding methods ***/ - HRESULT (STDMETHODCALLTYPE *Abort)( - IBinding* This); - - HRESULT (STDMETHODCALLTYPE *Suspend)( - IBinding* This); - - HRESULT (STDMETHODCALLTYPE *Resume)( - IBinding* This); - - HRESULT (STDMETHODCALLTYPE *SetPriority)( - IBinding* This, - LONG nPriority); - - HRESULT (STDMETHODCALLTYPE *GetPriority)( - IBinding* This, - LONG* pnPriority); - - HRESULT (STDMETHODCALLTYPE *GetBindResult)( - IBinding* This, - CLSID* pclsidProtocol, - DWORD* pdwResult, - LPOLESTR* pszResult, - DWORD* pdwReserved); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IBinding_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IBinding_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IBinding_Release(p) (p)->lpVtbl->Release(p) -/*** IBinding methods ***/ -#define IBinding_Abort(p) (p)->lpVtbl->Abort(p) -#define IBinding_Suspend(p) (p)->lpVtbl->Suspend(p) -#define IBinding_Resume(p) (p)->lpVtbl->Resume(p) -#define IBinding_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a) -#define IBinding_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a) -#define IBinding_GetBindResult(p,a,b,c,d) (p)->lpVtbl->GetBindResult(p,a,b,c,d) -#endif - -#endif - -#define IBinding_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IBinding methods ***/ \ - STDMETHOD_(HRESULT,Abort)(THIS) PURE; \ - STDMETHOD_(HRESULT,Suspend)(THIS) PURE; \ - STDMETHOD_(HRESULT,Resume)(THIS) PURE; \ - STDMETHOD_(HRESULT,SetPriority)(THIS_ LONG nPriority) PURE; \ - STDMETHOD_(HRESULT,GetPriority)(THIS_ LONG* pnPriority) PURE; \ - STDMETHOD_(HRESULT,GetBindResult)(THIS_ CLSID* pclsidProtocol, DWORD* pdwResult, LPOLESTR* pszResult, DWORD* pdwReserved) PURE; - -HRESULT CALLBACK IBinding_Abort_Proxy( - IBinding* This); -void __RPC_STUB IBinding_Abort_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBinding_Suspend_Proxy( - IBinding* This); -void __RPC_STUB IBinding_Suspend_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBinding_Resume_Proxy( - IBinding* This); -void __RPC_STUB IBinding_Resume_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBinding_SetPriority_Proxy( - IBinding* This, - LONG nPriority); -void __RPC_STUB IBinding_SetPriority_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBinding_GetPriority_Proxy( - IBinding* This, - LONG* pnPriority); -void __RPC_STUB IBinding_GetPriority_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBinding_RemoteGetBindResult_Proxy( - IBinding* This, - CLSID* pclsidProtocol, - DWORD* pdwResult, - LPOLESTR* pszResult, - DWORD dwReserved); -void __RPC_STUB IBinding_RemoteGetBindResult_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBinding_GetBindResult_Proxy( - IBinding* This, - CLSID* pclsidProtocol, - DWORD* pdwResult, - LPOLESTR* pszResult, - DWORD* pdwReserved); -HRESULT __RPC_STUB IBinding_GetBindResult_Stub( - IBinding* This, - CLSID* pclsidProtocol, - DWORD* pdwResult, - LPOLESTR* pszResult, - DWORD dwReserved); - -#endif /* __IBinding_INTERFACE_DEFINED__ */ - -#ifndef __IBindStatusCallback_FWD_DEFINED__ -#define __IBindStatusCallback_FWD_DEFINED__ -typedef struct IBindStatusCallback IBindStatusCallback; -#endif - -typedef IBindStatusCallback *LPBINDSTATUSCALLBACK; - -typedef enum { - BINDF_ASYNCHRONOUS = 0x1, - BINDF_ASYNCSTORAGE = 0x2, - BINDF_NOPROGRESSIVERENDERING = 0x4, - BINDF_OFFLINEOPERATION = 0x8, - BINDF_GETNEWESTVERSION = 0x10, - BINDF_NOWRITECACHE = 0x20, - BINDF_NEEDFILE = 0x40, - BINDF_PULLDATA = 0x80, - BINDF_IGNORESECURITYPROBLEM = 0x100, - BINDF_RESYNCHRONIZE = 0x200, - BINDF_HYPERLINK = 0x400, - BINDF_NO_UI = 0x800, - BINDF_SILENTOPERATION = 0x1000, - BINDF_PRAGMA_NO_CACHE = 0x2000, - BINDF_GETCLASSOBJECT = 0x4000, - BINDF_RESERVED_1 = 0x8000, - BINDF_FREE_THREADED = 0x10000, - BINDF_DIRECT_READ = 0x20000, - BINDF_FORMS_SUBMIT = 0x40000, - BINDF_GETFROMCACHE_IF_NET_FAIL = 0x80000, - BINDF_FROMURLMON = 0x100000, - BINDF_FWD_BACK = 0x200000, - BINDF_PREFERDEFAULTHANDLER = 0x400000, - BINDF_ENFORCERESTRICTED = 0x800000 -} BINDF; - -typedef struct _tagBINDINFO { - ULONG cbSize; - LPWSTR szExtraInfo; - STGMEDIUM stgmedData; - DWORD grfBindInfoF; - DWORD dwBindVerb; - LPWSTR szCustomVerb; - DWORD cbStgmedData; - DWORD dwOptions; - DWORD dwOptionsFlags; - DWORD dwCodePage; - SECURITY_ATTRIBUTES securityAttributes; - IID iid; - IUnknown *pUnk; - DWORD dwReserved; -} BINDINFO; - -typedef struct _REMSECURITY_ATTRIBUTES { - DWORD nLength; - DWORD lpSecurityDescriptor; - BOOL bInheritHandle; -} REMSECURITY_ATTRIBUTES, *PREMSECURITY_ATTRIBUTES, *LPREMSECURITY_ATTRIBUTES; - -typedef struct _tagRemBINDINFO { - ULONG cbSize; - LPWSTR szExtraInfo; - DWORD grfBindInfoF; - DWORD dwBindVerb; - LPWSTR szCustomVerb; - DWORD cbstgmedData; - DWORD dwOptions; - DWORD dwOptionsFlags; - DWORD dwCodePage; - REMSECURITY_ATTRIBUTES securityAttributes; - IID iid; - IUnknown *pUnk; - DWORD dwReserved; -} RemBINDINFO; - -typedef struct tagRemFORMATETC { - DWORD cfFormat; - DWORD ptd; - DWORD dwAspect; - LONG lindex; - DWORD tymed; -} RemFORMATETC, *LPREMFORMATETC; - -typedef enum { - BSCF_FIRSTDATANOTIFICATION = 0x1, - BSCF_INTERMEDIATEDATANOTIFICATION = 0x2, - BSCF_LASTDATANOTIFICATION = 0x4, - BSCF_DATAFULLYAVAILABLE = 0x8, - BSCF_AVAILABLEDATASIZEUNKNOWN = 0x10 -} BSCF; - -typedef enum BINDSTATUS { - BINDSTATUS_FINDINGRESOURCE = 1, - BINDSTATUS_CONNECTING, - BINDSTATUS_REDIRECTING, - BINDSTATUS_BEGINDOWNLOADDATA, - BINDSTATUS_DOWNLOADINGDATA, - BINDSTATUS_ENDDOWNLOADDATA, - BINDSTATUS_BEGINDOWNLOADCOMPONENTS, - BINDSTATUS_INSTALLINGCOMPONENTS, - BINDSTATUS_ENDDOWNLOADCOMPONENTS, - BINDSTATUS_USINGCACHEDCOPY, - BINDSTATUS_SENDINGREQUEST, - BINDSTATUS_CLASSIDAVAILABLE, - BINDSTATUS_MIMETYPEAVAILABLE, - BINDSTATUS_CACHEFILENAMEAVAILABLE, - BINDSTATUS_BEGINSYNCOPERATION, - BINDSTATUS_ENDSYNCOPERATION, - BINDSTATUS_BEGINUPLOADDATA, - BINDSTATUS_UPLOADINGDATA, - BINDSTATUS_ENDUPLOADINGDATA, - BINDSTATUS_PROTOCOLCLASSID, - BINDSTATUS_ENCODING, - BINDSTATUS_VERFIEDMIMETYPEAVAILABLE, - BINDSTATUS_CLASSINSTALLLOCATION, - BINDSTATUS_DECODING, - BINDSTATUS_LOADINGMIMEHANDLER, - BINDSTATUS_CONTENTDISPOSITIONATTACH, - BINDSTATUS_FILTERREPORTMIMETYPE, - BINDSTATUS_CLSIDCANINSTANTIATE, - BINDSTATUS_IUNKNOWNAVAILABLE, - BINDSTATUS_DIRECTBIND, - BINDSTATUS_RAWMIMETYPE, - BINDSTATUS_PROXYDETECTING, - BINDSTATUS_ACCEPTRANGES, - BINDSTATUS_COOKIE_SENT, - BINDSTATUS_COMPACT_POLICY_RECEIVED, - BINDSTATUS_COOKIE_SUPPRESSED, - BINDSTATUS_COOKIE_STATE_UNKNOWN, - BINDSTATUS_COOKIE_STATE_ACCEPT, - BINDSTATUS_COOKIE_STATE_REJECT, - BINDSTATUS_COOKIE_STATE_PROMPT, - BINDSTATUS_COOKIE_STATE_LEASH, - BINDSTATUS_COOKIE_STATE_DOWNGRADE, - BINDSTATUS_POLICY_HREF, - BINDSTATUS_P3P_HEADER, - BINDSTATUS_SESSION_COOKIE_RECEIVED, - BINDSTATUS_PERSISTENT_COOKIE_RECEIVED, - BINDSTATUS_SESSION_COOKIES_ALLOWED, - BINDSTATUS_CACHECONTROL -} BINDSTATUS; - -/***************************************************************************** - * IBindStatusCallback interface - */ -#ifndef __IBindStatusCallback_INTERFACE_DEFINED__ -#define __IBindStatusCallback_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IBindStatusCallback, 0x79eac9c1, 0xbaf9, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IBindStatusCallback : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE OnStartBinding( - DWORD dwReserved, - IBinding* pib) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetPriority( - LONG* pnPriority) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnLowResource( - DWORD reserved) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnProgress( - ULONG ulProgress, - ULONG ulProgressMax, - ULONG ulStatusCode, - LPCWSTR szStatusText) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnStopBinding( - HRESULT hresult, - LPCWSTR szError) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetBindInfo( - DWORD* grfBINDF, - BINDINFO* pbindinfo) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnDataAvailable( - DWORD grfBSCF, - DWORD dwSize, - FORMATETC* pformatetc, - STGMEDIUM* pstgmed) = 0; - - virtual HRESULT STDMETHODCALLTYPE OnObjectAvailable( - REFIID riid, - IUnknown* punk) = 0; - -}; -#else -typedef struct IBindStatusCallbackVtbl IBindStatusCallbackVtbl; -struct IBindStatusCallback { - const IBindStatusCallbackVtbl* lpVtbl; -}; -struct IBindStatusCallbackVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IBindStatusCallback* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IBindStatusCallback* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IBindStatusCallback* This); - - /*** IBindStatusCallback methods ***/ - HRESULT (STDMETHODCALLTYPE *OnStartBinding)( - IBindStatusCallback* This, - DWORD dwReserved, - IBinding* pib); - - HRESULT (STDMETHODCALLTYPE *GetPriority)( - IBindStatusCallback* This, - LONG* pnPriority); - - HRESULT (STDMETHODCALLTYPE *OnLowResource)( - IBindStatusCallback* This, - DWORD reserved); - - HRESULT (STDMETHODCALLTYPE *OnProgress)( - IBindStatusCallback* This, - ULONG ulProgress, - ULONG ulProgressMax, - ULONG ulStatusCode, - LPCWSTR szStatusText); - - HRESULT (STDMETHODCALLTYPE *OnStopBinding)( - IBindStatusCallback* This, - HRESULT hresult, - LPCWSTR szError); - - HRESULT (STDMETHODCALLTYPE *GetBindInfo)( - IBindStatusCallback* This, - DWORD* grfBINDF, - BINDINFO* pbindinfo); - - HRESULT (STDMETHODCALLTYPE *OnDataAvailable)( - IBindStatusCallback* This, - DWORD grfBSCF, - DWORD dwSize, - FORMATETC* pformatetc, - STGMEDIUM* pstgmed); - - HRESULT (STDMETHODCALLTYPE *OnObjectAvailable)( - IBindStatusCallback* This, - REFIID riid, - IUnknown* punk); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IBindStatusCallback_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IBindStatusCallback_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IBindStatusCallback_Release(p) (p)->lpVtbl->Release(p) -/*** IBindStatusCallback methods ***/ -#define IBindStatusCallback_OnStartBinding(p,a,b) (p)->lpVtbl->OnStartBinding(p,a,b) -#define IBindStatusCallback_GetPriority(p,a) (p)->lpVtbl->GetPriority(p,a) -#define IBindStatusCallback_OnLowResource(p,a) (p)->lpVtbl->OnLowResource(p,a) -#define IBindStatusCallback_OnProgress(p,a,b,c,d) (p)->lpVtbl->OnProgress(p,a,b,c,d) -#define IBindStatusCallback_OnStopBinding(p,a,b) (p)->lpVtbl->OnStopBinding(p,a,b) -#define IBindStatusCallback_GetBindInfo(p,a,b) (p)->lpVtbl->GetBindInfo(p,a,b) -#define IBindStatusCallback_OnDataAvailable(p,a,b,c,d) (p)->lpVtbl->OnDataAvailable(p,a,b,c,d) -#define IBindStatusCallback_OnObjectAvailable(p,a,b) (p)->lpVtbl->OnObjectAvailable(p,a,b) -#endif - -#endif - -#define IBindStatusCallback_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IBindStatusCallback methods ***/ \ - STDMETHOD_(HRESULT,OnStartBinding)(THIS_ DWORD dwReserved, IBinding* pib) PURE; \ - STDMETHOD_(HRESULT,GetPriority)(THIS_ LONG* pnPriority) PURE; \ - STDMETHOD_(HRESULT,OnLowResource)(THIS_ DWORD reserved) PURE; \ - STDMETHOD_(HRESULT,OnProgress)(THIS_ ULONG ulProgress, ULONG ulProgressMax, ULONG ulStatusCode, LPCWSTR szStatusText) PURE; \ - STDMETHOD_(HRESULT,OnStopBinding)(THIS_ HRESULT hresult, LPCWSTR szError) PURE; \ - STDMETHOD_(HRESULT,GetBindInfo)(THIS_ DWORD* grfBINDF, BINDINFO* pbindinfo) PURE; \ - STDMETHOD_(HRESULT,OnDataAvailable)(THIS_ DWORD grfBSCF, DWORD dwSize, FORMATETC* pformatetc, STGMEDIUM* pstgmed) PURE; \ - STDMETHOD_(HRESULT,OnObjectAvailable)(THIS_ REFIID riid, IUnknown* punk) PURE; - -HRESULT CALLBACK IBindStatusCallback_OnStartBinding_Proxy( - IBindStatusCallback* This, - DWORD dwReserved, - IBinding* pib); -void __RPC_STUB IBindStatusCallback_OnStartBinding_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBindStatusCallback_GetPriority_Proxy( - IBindStatusCallback* This, - LONG* pnPriority); -void __RPC_STUB IBindStatusCallback_GetPriority_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBindStatusCallback_OnLowResource_Proxy( - IBindStatusCallback* This, - DWORD reserved); -void __RPC_STUB IBindStatusCallback_OnLowResource_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBindStatusCallback_OnProgress_Proxy( - IBindStatusCallback* This, - ULONG ulProgress, - ULONG ulProgressMax, - ULONG ulStatusCode, - LPCWSTR szStatusText); -void __RPC_STUB IBindStatusCallback_OnProgress_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBindStatusCallback_OnStopBinding_Proxy( - IBindStatusCallback* This, - HRESULT hresult, - LPCWSTR szError); -void __RPC_STUB IBindStatusCallback_OnStopBinding_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBindStatusCallback_RemoteGetBindInfo_Proxy( - IBindStatusCallback* This, - DWORD* grfBINDF, - RemBINDINFO* pbindinfo, - RemSTGMEDIUM* pstgmed); -void __RPC_STUB IBindStatusCallback_RemoteGetBindInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBindStatusCallback_GetBindInfo_Proxy( - IBindStatusCallback* This, - DWORD* grfBINDF, - BINDINFO* pbindinfo); -HRESULT __RPC_STUB IBindStatusCallback_GetBindInfo_Stub( - IBindStatusCallback* This, - DWORD* grfBINDF, - RemBINDINFO* pbindinfo, - RemSTGMEDIUM* pstgmed); -HRESULT CALLBACK IBindStatusCallback_RemoteOnDataAvailable_Proxy( - IBindStatusCallback* This, - DWORD grfBSCF, - DWORD dwSize, - RemFORMATETC* pformatetc, - RemSTGMEDIUM* pstgmed); -void __RPC_STUB IBindStatusCallback_RemoteOnDataAvailable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBindStatusCallback_OnDataAvailable_Proxy( - IBindStatusCallback* This, - DWORD grfBSCF, - DWORD dwSize, - FORMATETC* pformatetc, - STGMEDIUM* pstgmed); -HRESULT __RPC_STUB IBindStatusCallback_OnDataAvailable_Stub( - IBindStatusCallback* This, - DWORD grfBSCF, - DWORD dwSize, - RemFORMATETC* pformatetc, - RemSTGMEDIUM* pstgmed); -HRESULT CALLBACK IBindStatusCallback_OnObjectAvailable_Proxy( - IBindStatusCallback* This, - REFIID riid, - IUnknown* punk); -void __RPC_STUB IBindStatusCallback_OnObjectAvailable_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IBindStatusCallback_INTERFACE_DEFINED__ */ - -#define SID_IBindHost IID_IBindHost -#define SID_SBindHost IID_IBindHost -#ifndef __IBindHost_FWD_DEFINED__ -#define __IBindHost_FWD_DEFINED__ -typedef struct IBindHost IBindHost; -#endif - -typedef IBindHost *LPBINDHOST; - -/***************************************************************************** - * IBindHost interface - */ -#ifndef __IBindHost_INTERFACE_DEFINED__ -#define __IBindHost_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IBindHost, 0xfc4801a1, 0x2ba9, 0x11cf, 0xa2,0x29, 0x00,0xaa,0x00,0x3d,0x73,0x52); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IBindHost : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE CreateMoniker( - LPOLESTR szName, - IBindCtx* pBC, - IMoniker** ppmk, - DWORD dwReserved) = 0; - - virtual HRESULT STDMETHODCALLTYPE MonikerBindToStorage( - IMoniker* pMk, - IBindCtx* pBC, - IBindStatusCallback* pBSC, - REFIID riid, - void** ppvObj) = 0; - - virtual HRESULT STDMETHODCALLTYPE MonikerBindToObject( - IMoniker* pMk, - IBindCtx* pBC, - IBindStatusCallback* pBSC, - REFIID riid, - void** ppvObj) = 0; - -}; -#else -typedef struct IBindHostVtbl IBindHostVtbl; -struct IBindHost { - const IBindHostVtbl* lpVtbl; -}; -struct IBindHostVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IBindHost* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IBindHost* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IBindHost* This); - - /*** IBindHost methods ***/ - HRESULT (STDMETHODCALLTYPE *CreateMoniker)( - IBindHost* This, - LPOLESTR szName, - IBindCtx* pBC, - IMoniker** ppmk, - DWORD dwReserved); - - HRESULT (STDMETHODCALLTYPE *MonikerBindToStorage)( - IBindHost* This, - IMoniker* pMk, - IBindCtx* pBC, - IBindStatusCallback* pBSC, - REFIID riid, - void** ppvObj); - - HRESULT (STDMETHODCALLTYPE *MonikerBindToObject)( - IBindHost* This, - IMoniker* pMk, - IBindCtx* pBC, - IBindStatusCallback* pBSC, - REFIID riid, - void** ppvObj); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IBindHost_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IBindHost_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IBindHost_Release(p) (p)->lpVtbl->Release(p) -/*** IBindHost methods ***/ -#define IBindHost_CreateMoniker(p,a,b,c,d) (p)->lpVtbl->CreateMoniker(p,a,b,c,d) -#define IBindHost_MonikerBindToStorage(p,a,b,c,d,e) (p)->lpVtbl->MonikerBindToStorage(p,a,b,c,d,e) -#define IBindHost_MonikerBindToObject(p,a,b,c,d,e) (p)->lpVtbl->MonikerBindToObject(p,a,b,c,d,e) -#endif - -#endif - -#define IBindHost_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IBindHost methods ***/ \ - STDMETHOD_(HRESULT,CreateMoniker)(THIS_ LPOLESTR szName, IBindCtx* pBC, IMoniker** ppmk, DWORD dwReserved) PURE; \ - STDMETHOD_(HRESULT,MonikerBindToStorage)(THIS_ IMoniker* pMk, IBindCtx* pBC, IBindStatusCallback* pBSC, REFIID riid, void** ppvObj) PURE; \ - STDMETHOD_(HRESULT,MonikerBindToObject)(THIS_ IMoniker* pMk, IBindCtx* pBC, IBindStatusCallback* pBSC, REFIID riid, void** ppvObj) PURE; - -HRESULT CALLBACK IBindHost_CreateMoniker_Proxy( - IBindHost* This, - LPOLESTR szName, - IBindCtx* pBC, - IMoniker** ppmk, - DWORD dwReserved); -void __RPC_STUB IBindHost_CreateMoniker_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBindHost_RemoteMonikerBindToStorage_Proxy( - IBindHost* This, - IMoniker* pMk, - IBindCtx* pBC, - IBindStatusCallback* pBSC, - REFIID riid, - IUnknown** ppvObj); -void __RPC_STUB IBindHost_RemoteMonikerBindToStorage_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBindHost_MonikerBindToStorage_Proxy( - IBindHost* This, - IMoniker* pMk, - IBindCtx* pBC, - IBindStatusCallback* pBSC, - REFIID riid, - void** ppvObj); -HRESULT __RPC_STUB IBindHost_MonikerBindToStorage_Stub( - IBindHost* This, - IMoniker* pMk, - IBindCtx* pBC, - IBindStatusCallback* pBSC, - REFIID riid, - IUnknown** ppvObj); -HRESULT CALLBACK IBindHost_RemoteMonikerBindToObject_Proxy( - IBindHost* This, - IMoniker* pMk, - IBindCtx* pBC, - IBindStatusCallback* pBSC, - REFIID riid, - IUnknown** ppvObj); -void __RPC_STUB IBindHost_RemoteMonikerBindToObject_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IBindHost_MonikerBindToObject_Proxy( - IBindHost* This, - IMoniker* pMk, - IBindCtx* pBC, - IBindStatusCallback* pBSC, - REFIID riid, - void** ppvObj); -HRESULT __RPC_STUB IBindHost_MonikerBindToObject_Stub( - IBindHost* This, - IMoniker* pMk, - IBindCtx* pBC, - IBindStatusCallback* pBSC, - REFIID riid, - IUnknown** ppvObj); - -#endif /* __IBindHost_INTERFACE_DEFINED__ */ - -#ifndef __IWinInetInfo_FWD_DEFINED__ -#define __IWinInetInfo_FWD_DEFINED__ -typedef struct IWinInetInfo IWinInetInfo; -#endif - -typedef IWinInetInfo *LPWININETINFO; - -/***************************************************************************** - * IWinInetInfo interface - */ -#ifndef __IWinInetInfo_INTERFACE_DEFINED__ -#define __IWinInetInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IWinInetInfo, 0x79eac9d6, 0xbafa, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IWinInetInfo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE QueryOption( - DWORD dwOption, - LPVOID pBuffer, - DWORD* pcbBuf) = 0; - -}; -#else -typedef struct IWinInetInfoVtbl IWinInetInfoVtbl; -struct IWinInetInfo { - const IWinInetInfoVtbl* lpVtbl; -}; -struct IWinInetInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IWinInetInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IWinInetInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IWinInetInfo* This); - - /*** IWinInetInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryOption)( - IWinInetInfo* This, - DWORD dwOption, - LPVOID pBuffer, - DWORD* pcbBuf); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IWinInetInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IWinInetInfo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IWinInetInfo_Release(p) (p)->lpVtbl->Release(p) -/*** IWinInetInfo methods ***/ -#define IWinInetInfo_QueryOption(p,a,b,c) (p)->lpVtbl->QueryOption(p,a,b,c) -#endif - -#endif - -#define IWinInetInfo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IWinInetInfo methods ***/ \ - STDMETHOD_(HRESULT,QueryOption)(THIS_ DWORD dwOption, LPVOID pBuffer, DWORD* pcbBuf) PURE; - -HRESULT CALLBACK IWinInetInfo_RemoteQueryOption_Proxy( - IWinInetInfo* This, - DWORD dwOption, - BYTE* pBuffer, - DWORD* pcbBuf); -void __RPC_STUB IWinInetInfo_RemoteQueryOption_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWinInetInfo_QueryOption_Proxy( - IWinInetInfo* This, - DWORD dwOption, - LPVOID pBuffer, - DWORD* pcbBuf); -HRESULT __RPC_STUB IWinInetInfo_QueryOption_Stub( - IWinInetInfo* This, - DWORD dwOption, - BYTE* pBuffer, - DWORD* pcbBuf); - -#endif /* __IWinInetInfo_INTERFACE_DEFINED__ */ - -#ifndef __IWinInetHttpInfo_FWD_DEFINED__ -#define __IWinInetHttpInfo_FWD_DEFINED__ -typedef struct IWinInetHttpInfo IWinInetHttpInfo; -#endif - -typedef IWinInetHttpInfo *LPWININETHTTPINFO; - -/***************************************************************************** - * IWinInetHttpInfo interface - */ -#ifndef __IWinInetHttpInfo_INTERFACE_DEFINED__ -#define __IWinInetHttpInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IWinInetHttpInfo, 0x79eac9d8, 0xbafa, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IWinInetHttpInfo : public IWinInetInfo -{ - virtual HRESULT STDMETHODCALLTYPE QueryInfo( - DWORD dwOption, - LPVOID pBuffer, - DWORD* pcbBuf, - DWORD* pdwFlags, - DWORD* pdwReserved) = 0; - -}; -#else -typedef struct IWinInetHttpInfoVtbl IWinInetHttpInfoVtbl; -struct IWinInetHttpInfo { - const IWinInetHttpInfoVtbl* lpVtbl; -}; -struct IWinInetHttpInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IWinInetHttpInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IWinInetHttpInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IWinInetHttpInfo* This); - - /*** IWinInetInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryOption)( - IWinInetHttpInfo* This, - DWORD dwOption, - LPVOID pBuffer, - DWORD* pcbBuf); - - /*** IWinInetHttpInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInfo)( - IWinInetHttpInfo* This, - DWORD dwOption, - LPVOID pBuffer, - DWORD* pcbBuf, - DWORD* pdwFlags, - DWORD* pdwReserved); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IWinInetHttpInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IWinInetHttpInfo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IWinInetHttpInfo_Release(p) (p)->lpVtbl->Release(p) -/*** IWinInetInfo methods ***/ -#define IWinInetHttpInfo_QueryOption(p,a,b,c) (p)->lpVtbl->QueryOption(p,a,b,c) -/*** IWinInetHttpInfo methods ***/ -#define IWinInetHttpInfo_QueryInfo(p,a,b,c,d,e) (p)->lpVtbl->QueryInfo(p,a,b,c,d,e) -#endif - -#endif - -#define IWinInetHttpInfo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IWinInetInfo methods ***/ \ - STDMETHOD_(HRESULT,QueryOption)(THIS_ DWORD dwOption, LPVOID pBuffer, DWORD* pcbBuf) PURE; \ - /*** IWinInetHttpInfo methods ***/ \ - STDMETHOD_(HRESULT,QueryInfo)(THIS_ DWORD dwOption, LPVOID pBuffer, DWORD* pcbBuf, DWORD* pdwFlags, DWORD* pdwReserved) PURE; - -HRESULT CALLBACK IWinInetHttpInfo_RemoteQueryInfo_Proxy( - IWinInetHttpInfo* This, - DWORD dwOption, - BYTE* pBuffer, - DWORD* pcbBuf, - DWORD* pdwFlags, - DWORD* pdwReserved); -void __RPC_STUB IWinInetHttpInfo_RemoteQueryInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IWinInetHttpInfo_QueryInfo_Proxy( - IWinInetHttpInfo* This, - DWORD dwOption, - LPVOID pBuffer, - DWORD* pcbBuf, - DWORD* pdwFlags, - DWORD* pdwReserved); -HRESULT __RPC_STUB IWinInetHttpInfo_QueryInfo_Stub( - IWinInetHttpInfo* This, - DWORD dwOption, - BYTE* pBuffer, - DWORD* pcbBuf, - DWORD* pdwFlags, - DWORD* pdwReserved); - -#endif /* __IWinInetHttpInfo_INTERFACE_DEFINED__ */ - -#ifndef __IPersistMoniker_FWD_DEFINED__ -#define __IPersistMoniker_FWD_DEFINED__ -typedef struct IPersistMoniker IPersistMoniker; -#endif - -typedef IPersistMoniker *LPPERSISTMONIKER; - -/***************************************************************************** - * IPersistMoniker interface - */ -#ifndef __IPersistMoniker_INTERFACE_DEFINED__ -#define __IPersistMoniker_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IPersistMoniker, 0x79eac9c9, 0xbaf9, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IPersistMoniker : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE GetClassID( - CLSID* pClassID) = 0; - - virtual HRESULT STDMETHODCALLTYPE IsDirty( - ) = 0; - - virtual HRESULT STDMETHODCALLTYPE Load( - BOOL fFullyAvailable, - IMoniker* pimkName, - LPBC pibc, - DWORD grfMode) = 0; - - virtual HRESULT STDMETHODCALLTYPE Save( - IMoniker* pimkName, - LPBC pbc, - BOOL fRemember) = 0; - - virtual HRESULT STDMETHODCALLTYPE SaveCompleted( - IMoniker* pimkName, - LPBC pibc) = 0; - - virtual HRESULT STDMETHODCALLTYPE GetCurMoniker( - IMoniker** ppimkName) = 0; - -}; -#else -typedef struct IPersistMonikerVtbl IPersistMonikerVtbl; -struct IPersistMoniker { - const IPersistMonikerVtbl* lpVtbl; -}; -struct IPersistMonikerVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IPersistMoniker* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IPersistMoniker* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IPersistMoniker* This); - - /*** IPersistMoniker methods ***/ - HRESULT (STDMETHODCALLTYPE *GetClassID)( - IPersistMoniker* This, - CLSID* pClassID); - - HRESULT (STDMETHODCALLTYPE *IsDirty)( - IPersistMoniker* This); - - HRESULT (STDMETHODCALLTYPE *Load)( - IPersistMoniker* This, - BOOL fFullyAvailable, - IMoniker* pimkName, - LPBC pibc, - DWORD grfMode); - - HRESULT (STDMETHODCALLTYPE *Save)( - IPersistMoniker* This, - IMoniker* pimkName, - LPBC pbc, - BOOL fRemember); - - HRESULT (STDMETHODCALLTYPE *SaveCompleted)( - IPersistMoniker* This, - IMoniker* pimkName, - LPBC pibc); - - HRESULT (STDMETHODCALLTYPE *GetCurMoniker)( - IPersistMoniker* This, - IMoniker** ppimkName); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IPersistMoniker_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IPersistMoniker_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IPersistMoniker_Release(p) (p)->lpVtbl->Release(p) -/*** IPersistMoniker methods ***/ -#define IPersistMoniker_GetClassID(p,a) (p)->lpVtbl->GetClassID(p,a) -#define IPersistMoniker_IsDirty(p) (p)->lpVtbl->IsDirty(p) -#define IPersistMoniker_Load(p,a,b,c,d) (p)->lpVtbl->Load(p,a,b,c,d) -#define IPersistMoniker_Save(p,a,b,c) (p)->lpVtbl->Save(p,a,b,c) -#define IPersistMoniker_SaveCompleted(p,a,b) (p)->lpVtbl->SaveCompleted(p,a,b) -#define IPersistMoniker_GetCurMoniker(p,a) (p)->lpVtbl->GetCurMoniker(p,a) -#endif - -#endif - -#define IPersistMoniker_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IPersistMoniker methods ***/ \ - STDMETHOD_(HRESULT,GetClassID)(THIS_ CLSID* pClassID) PURE; \ - STDMETHOD_(HRESULT,IsDirty)(THIS) PURE; \ - STDMETHOD_(HRESULT,Load)(THIS_ BOOL fFullyAvailable, IMoniker* pimkName, LPBC pibc, DWORD grfMode) PURE; \ - STDMETHOD_(HRESULT,Save)(THIS_ IMoniker* pimkName, LPBC pbc, BOOL fRemember) PURE; \ - STDMETHOD_(HRESULT,SaveCompleted)(THIS_ IMoniker* pimkName, LPBC pibc) PURE; \ - STDMETHOD_(HRESULT,GetCurMoniker)(THIS_ IMoniker** ppimkName) PURE; - -HRESULT CALLBACK IPersistMoniker_GetClassID_Proxy( - IPersistMoniker* This, - CLSID* pClassID); -void __RPC_STUB IPersistMoniker_GetClassID_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistMoniker_IsDirty_Proxy( - IPersistMoniker* This); -void __RPC_STUB IPersistMoniker_IsDirty_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistMoniker_Load_Proxy( - IPersistMoniker* This, - BOOL fFullyAvailable, - IMoniker* pimkName, - LPBC pibc, - DWORD grfMode); -void __RPC_STUB IPersistMoniker_Load_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistMoniker_Save_Proxy( - IPersistMoniker* This, - IMoniker* pimkName, - LPBC pbc, - BOOL fRemember); -void __RPC_STUB IPersistMoniker_Save_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistMoniker_SaveCompleted_Proxy( - IPersistMoniker* This, - IMoniker* pimkName, - LPBC pibc); -void __RPC_STUB IPersistMoniker_SaveCompleted_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IPersistMoniker_GetCurMoniker_Proxy( - IPersistMoniker* This, - IMoniker** ppimkName); -void __RPC_STUB IPersistMoniker_GetCurMoniker_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IPersistMoniker_INTERFACE_DEFINED__ */ - -#ifndef __IInternetProtocolInfo_FWD_DEFINED__ -#define __IInternetProtocolInfo_FWD_DEFINED__ -typedef struct IInternetProtocolInfo IInternetProtocolInfo; -#endif - -typedef IInternetProtocolInfo *LPIINTERNETPROTOCOLINFO; - -typedef enum _tagPARSEACTION { - PARSE_CANONICALIZE = 1, - PARSE_FRIENDLY, - PARSE_SECURITY_URL, - PARSE_ROOTDOCUMENT, - PARSE_DOCUMENT, - PARSE_ANCHOR, - PARSE_ENCODE, - PARSE_DECODE, - PARSE_PATH_FROM_URL, - PARSE_URL_FROM_PATH, - PARSE_MIME, - PARSE_SERVER, - PARSE_SCHEMA, - PARSE_SITE, - PARSE_DOMAIN, - PARSE_LOCATION, - PARSE_SECURITY_DOMAIN, - PARSE_ESCAPE, - PARSE_UNESCAPE -} PARSEACTION; - -typedef enum _tagPSUACTION { - PSU_DEFAULT = 1, - PSU_SECURITY_URL_ONLY -} PSUACTION; - -typedef enum _tagQUERYOPTION { - QUERY_EXPIRATION_DATE = 1, - QUERY_TIME_OF_LAST_CHANGE, - QUERY_CONTENT_ENCODING, - QUERY_CONTENT_TYPE, - QUERY_REFRESH, - QUERY_RECOMBINE, - QUERY_CAN_NAVIGATE, - QUERY_USES_NETWORK, - QUERY_IS_CACHED, - QUERY_IS_INSTALLEDENTRY, - QUERY_IS_CACHED_OR_MAPPED, - QUERY_USES_CACHE, - QUERY_IS_SECURE, - QUERY_IS_SAFE -} QUERYOPTION; - -/***************************************************************************** - * IInternetProtocolInfo interface - */ -#ifndef __IInternetProtocolInfo_INTERFACE_DEFINED__ -#define __IInternetProtocolInfo_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IInternetProtocolInfo, 0x79eac9ec, 0xbaf9, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IInternetProtocolInfo : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE ParseUrl( - LPCWSTR pwzUrl, - PARSEACTION ParseAction, - DWORD dwParseFlags, - LPWSTR pwzResult, - DWORD cchResult, - DWORD* pcchResult, - DWORD dwReserved) = 0; - - virtual HRESULT STDMETHODCALLTYPE CombineUrl( - LPCWSTR pwzBaseUrl, - LPCWSTR pwzRelativeUrl, - DWORD dwCombineFlags, - LPWSTR pwzResult, - DWORD cchResult, - DWORD* pcchResult, - DWORD dwReserved) = 0; - - virtual HRESULT STDMETHODCALLTYPE CompareUrl( - LPCWSTR pwzUrl1, - LPCWSTR pwzUrl2, - DWORD dwCompareFlags) = 0; - - virtual HRESULT STDMETHODCALLTYPE QueryInfo( - LPCWSTR pwzUrl, - QUERYOPTION OueryOption, - DWORD dwQueryFlags, - LPVOID pBuffer, - DWORD cbBuffer, - DWORD* pcbBuf, - DWORD dwReserved) = 0; - -}; -#else -typedef struct IInternetProtocolInfoVtbl IInternetProtocolInfoVtbl; -struct IInternetProtocolInfo { - const IInternetProtocolInfoVtbl* lpVtbl; -}; -struct IInternetProtocolInfoVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IInternetProtocolInfo* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IInternetProtocolInfo* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IInternetProtocolInfo* This); - - /*** IInternetProtocolInfo methods ***/ - HRESULT (STDMETHODCALLTYPE *ParseUrl)( - IInternetProtocolInfo* This, - LPCWSTR pwzUrl, - PARSEACTION ParseAction, - DWORD dwParseFlags, - LPWSTR pwzResult, - DWORD cchResult, - DWORD* pcchResult, - DWORD dwReserved); - - HRESULT (STDMETHODCALLTYPE *CombineUrl)( - IInternetProtocolInfo* This, - LPCWSTR pwzBaseUrl, - LPCWSTR pwzRelativeUrl, - DWORD dwCombineFlags, - LPWSTR pwzResult, - DWORD cchResult, - DWORD* pcchResult, - DWORD dwReserved); - - HRESULT (STDMETHODCALLTYPE *CompareUrl)( - IInternetProtocolInfo* This, - LPCWSTR pwzUrl1, - LPCWSTR pwzUrl2, - DWORD dwCompareFlags); - - HRESULT (STDMETHODCALLTYPE *QueryInfo)( - IInternetProtocolInfo* This, - LPCWSTR pwzUrl, - QUERYOPTION OueryOption, - DWORD dwQueryFlags, - LPVOID pBuffer, - DWORD cbBuffer, - DWORD* pcbBuf, - DWORD dwReserved); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IInternetProtocolInfo_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IInternetProtocolInfo_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IInternetProtocolInfo_Release(p) (p)->lpVtbl->Release(p) -/*** IInternetProtocolInfo methods ***/ -#define IInternetProtocolInfo_ParseUrl(p,a,b,c,d,e,f,g) (p)->lpVtbl->ParseUrl(p,a,b,c,d,e,f,g) -#define IInternetProtocolInfo_CombineUrl(p,a,b,c,d,e,f,g) (p)->lpVtbl->CombineUrl(p,a,b,c,d,e,f,g) -#define IInternetProtocolInfo_CompareUrl(p,a,b,c) (p)->lpVtbl->CompareUrl(p,a,b,c) -#define IInternetProtocolInfo_QueryInfo(p,a,b,c,d,e,f,g) (p)->lpVtbl->QueryInfo(p,a,b,c,d,e,f,g) -#endif - -#endif - -#define IInternetProtocolInfo_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IInternetProtocolInfo methods ***/ \ - STDMETHOD_(HRESULT,ParseUrl)(THIS_ LPCWSTR pwzUrl, PARSEACTION ParseAction, DWORD dwParseFlags, LPWSTR pwzResult, DWORD cchResult, DWORD* pcchResult, DWORD dwReserved) PURE; \ - STDMETHOD_(HRESULT,CombineUrl)(THIS_ LPCWSTR pwzBaseUrl, LPCWSTR pwzRelativeUrl, DWORD dwCombineFlags, LPWSTR pwzResult, DWORD cchResult, DWORD* pcchResult, DWORD dwReserved) PURE; \ - STDMETHOD_(HRESULT,CompareUrl)(THIS_ LPCWSTR pwzUrl1, LPCWSTR pwzUrl2, DWORD dwCompareFlags) PURE; \ - STDMETHOD_(HRESULT,QueryInfo)(THIS_ LPCWSTR pwzUrl, QUERYOPTION OueryOption, DWORD dwQueryFlags, LPVOID pBuffer, DWORD cbBuffer, DWORD* pcbBuf, DWORD dwReserved) PURE; - -HRESULT CALLBACK IInternetProtocolInfo_ParseUrl_Proxy( - IInternetProtocolInfo* This, - LPCWSTR pwzUrl, - PARSEACTION ParseAction, - DWORD dwParseFlags, - LPWSTR pwzResult, - DWORD cchResult, - DWORD* pcchResult, - DWORD dwReserved); -void __RPC_STUB IInternetProtocolInfo_ParseUrl_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IInternetProtocolInfo_CombineUrl_Proxy( - IInternetProtocolInfo* This, - LPCWSTR pwzBaseUrl, - LPCWSTR pwzRelativeUrl, - DWORD dwCombineFlags, - LPWSTR pwzResult, - DWORD cchResult, - DWORD* pcchResult, - DWORD dwReserved); -void __RPC_STUB IInternetProtocolInfo_CombineUrl_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IInternetProtocolInfo_CompareUrl_Proxy( - IInternetProtocolInfo* This, - LPCWSTR pwzUrl1, - LPCWSTR pwzUrl2, - DWORD dwCompareFlags); -void __RPC_STUB IInternetProtocolInfo_CompareUrl_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IInternetProtocolInfo_QueryInfo_Proxy( - IInternetProtocolInfo* This, - LPCWSTR pwzUrl, - QUERYOPTION OueryOption, - DWORD dwQueryFlags, - LPVOID pBuffer, - DWORD cbBuffer, - DWORD* pcbBuf, - DWORD dwReserved); -void __RPC_STUB IInternetProtocolInfo_QueryInfo_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IInternetProtocolInfo_INTERFACE_DEFINED__ */ - -#ifndef __IInternetSession_FWD_DEFINED__ -#define __IInternetSession_FWD_DEFINED__ -typedef struct IInternetSession IInternetSession; -#endif - -typedef IInternetSession *LPIINTERNETSESSION; - -typedef enum _tagOIBDG_FLAGS { - OIBDG_APARTMENTTHREADED = 0x100, - OIBDG_DATAONLY = 0x1000 -} OIBDG_FLAGS; - -/***************************************************************************** - * IInternetSession interface - */ -#ifndef __IInternetSession_INTERFACE_DEFINED__ -#define __IInternetSession_INTERFACE_DEFINED__ - -DEFINE_GUID(IID_IInternetSession, 0x79eac9e7, 0xbaf9, 0x11ce, 0x8c,0x82, 0x00,0xaa,0x00,0x4b,0xa9,0x0b); -#if defined(__cplusplus) && !defined(CINTERFACE) -struct IInternetSession : public IUnknown -{ - virtual HRESULT STDMETHODCALLTYPE RegisterNameSpace( - IClassFactory* pCF, - REFCLSID rclsid, - LPCWSTR pwzProtocol, - ULONG cPatterns, - const LPCWSTR* ppwzPatterns, - DWORD dwReserved) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnregisterNameSpace( - IClassFactory* pCF, - LPCWSTR pszProtocol) = 0; - - virtual HRESULT STDMETHODCALLTYPE RegisterMimeFilter( - IClassFactory* pCF, - REFCLSID rclsid, - LPCWSTR pwzType) = 0; - - virtual HRESULT STDMETHODCALLTYPE UnregisterMimeFilter( - IClassFactory* pCF, - LPCWSTR pwzType) = 0; - - virtual HRESULT STDMETHODCALLTYPE CreateBinding( - LPBC pBC, - LPCWSTR szUrl, - IUnknown* pUnkOuter, - IUnknown** ppUnk, - void** ppOInetProt, - DWORD dwOption) = 0; - - virtual HRESULT STDMETHODCALLTYPE SetSessionOption( - DWORD dwOption, - LPVOID pBuffer, - DWORD dwBufferLength, - DWORD dwReserved) = 0; - -}; -#else -typedef struct IInternetSessionVtbl IInternetSessionVtbl; -struct IInternetSession { - const IInternetSessionVtbl* lpVtbl; -}; -struct IInternetSessionVtbl { - BEGIN_INTERFACE - - /*** IUnknown methods ***/ - HRESULT (STDMETHODCALLTYPE *QueryInterface)( - IInternetSession* This, - REFIID riid, - void** ppvObject); - - ULONG (STDMETHODCALLTYPE *AddRef)( - IInternetSession* This); - - ULONG (STDMETHODCALLTYPE *Release)( - IInternetSession* This); - - /*** IInternetSession methods ***/ - HRESULT (STDMETHODCALLTYPE *RegisterNameSpace)( - IInternetSession* This, - IClassFactory* pCF, - REFCLSID rclsid, - LPCWSTR pwzProtocol, - ULONG cPatterns, - const LPCWSTR* ppwzPatterns, - DWORD dwReserved); - - HRESULT (STDMETHODCALLTYPE *UnregisterNameSpace)( - IInternetSession* This, - IClassFactory* pCF, - LPCWSTR pszProtocol); - - HRESULT (STDMETHODCALLTYPE *RegisterMimeFilter)( - IInternetSession* This, - IClassFactory* pCF, - REFCLSID rclsid, - LPCWSTR pwzType); - - HRESULT (STDMETHODCALLTYPE *UnregisterMimeFilter)( - IInternetSession* This, - IClassFactory* pCF, - LPCWSTR pwzType); - - HRESULT (STDMETHODCALLTYPE *CreateBinding)( - IInternetSession* This, - LPBC pBC, - LPCWSTR szUrl, - IUnknown* pUnkOuter, - IUnknown** ppUnk, - void** ppOInetProt, - DWORD dwOption); - - HRESULT (STDMETHODCALLTYPE *SetSessionOption)( - IInternetSession* This, - DWORD dwOption, - LPVOID pBuffer, - DWORD dwBufferLength, - DWORD dwReserved); - - END_INTERFACE -}; - -#ifdef COBJMACROS -/*** IUnknown methods ***/ -#define IInternetSession_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) -#define IInternetSession_AddRef(p) (p)->lpVtbl->AddRef(p) -#define IInternetSession_Release(p) (p)->lpVtbl->Release(p) -/*** IInternetSession methods ***/ -#define IInternetSession_RegisterNameSpace(p,a,b,c,d,e,f) (p)->lpVtbl->RegisterNameSpace(p,a,b,c,d,e,f) -#define IInternetSession_UnregisterNameSpace(p,a,b) (p)->lpVtbl->UnregisterNameSpace(p,a,b) -#define IInternetSession_RegisterMimeFilter(p,a,b,c) (p)->lpVtbl->RegisterMimeFilter(p,a,b,c) -#define IInternetSession_UnregisterMimeFilter(p,a,b) (p)->lpVtbl->UnregisterMimeFilter(p,a,b) -#define IInternetSession_CreateBinding(p,a,b,c,d,e,f) (p)->lpVtbl->CreateBinding(p,a,b,c,d,e,f) -#define IInternetSession_SetSessionOption(p,a,b,c,d) (p)->lpVtbl->SetSessionOption(p,a,b,c,d) -#endif - -#endif - -#define IInternetSession_METHODS \ - /*** IUnknown methods ***/ \ - STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE; \ - STDMETHOD_(ULONG,AddRef)(THIS) PURE; \ - STDMETHOD_(ULONG,Release)(THIS) PURE; \ - /*** IInternetSession methods ***/ \ - STDMETHOD_(HRESULT,RegisterNameSpace)(THIS_ IClassFactory* pCF, REFCLSID rclsid, LPCWSTR pwzProtocol, ULONG cPatterns, const LPCWSTR* ppwzPatterns, DWORD dwReserved) PURE; \ - STDMETHOD_(HRESULT,UnregisterNameSpace)(THIS_ IClassFactory* pCF, LPCWSTR pszProtocol) PURE; \ - STDMETHOD_(HRESULT,RegisterMimeFilter)(THIS_ IClassFactory* pCF, REFCLSID rclsid, LPCWSTR pwzType) PURE; \ - STDMETHOD_(HRESULT,UnregisterMimeFilter)(THIS_ IClassFactory* pCF, LPCWSTR pwzType) PURE; \ - STDMETHOD_(HRESULT,CreateBinding)(THIS_ LPBC pBC, LPCWSTR szUrl, IUnknown* pUnkOuter, IUnknown** ppUnk, void** ppOInetProt, DWORD dwOption) PURE; \ - STDMETHOD_(HRESULT,SetSessionOption)(THIS_ DWORD dwOption, LPVOID pBuffer, DWORD dwBufferLength, DWORD dwReserved) PURE; - -HRESULT CALLBACK IInternetSession_RegisterNameSpace_Proxy( - IInternetSession* This, - IClassFactory* pCF, - REFCLSID rclsid, - LPCWSTR pwzProtocol, - ULONG cPatterns, - const LPCWSTR* ppwzPatterns, - DWORD dwReserved); -void __RPC_STUB IInternetSession_RegisterNameSpace_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IInternetSession_UnregisterNameSpace_Proxy( - IInternetSession* This, - IClassFactory* pCF, - LPCWSTR pszProtocol); -void __RPC_STUB IInternetSession_UnregisterNameSpace_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IInternetSession_RegisterMimeFilter_Proxy( - IInternetSession* This, - IClassFactory* pCF, - REFCLSID rclsid, - LPCWSTR pwzType); -void __RPC_STUB IInternetSession_RegisterMimeFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IInternetSession_UnregisterMimeFilter_Proxy( - IInternetSession* This, - IClassFactory* pCF, - LPCWSTR pwzType); -void __RPC_STUB IInternetSession_UnregisterMimeFilter_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IInternetSession_CreateBinding_Proxy( - IInternetSession* This, - LPBC pBC, - LPCWSTR szUrl, - IUnknown* pUnkOuter, - IUnknown** ppUnk, - void** ppOInetProt, - DWORD dwOption); -void __RPC_STUB IInternetSession_CreateBinding_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); -HRESULT CALLBACK IInternetSession_SetSessionOption_Proxy( - IInternetSession* This, - DWORD dwOption, - LPVOID pBuffer, - DWORD dwBufferLength, - DWORD dwReserved); -void __RPC_STUB IInternetSession_SetSessionOption_Stub( - struct IRpcStubBuffer* This, - struct IRpcChannelBuffer* pRpcChannelBuffer, - PRPC_MESSAGE pRpcMessage, - DWORD* pdwStubPhase); - -#endif /* __IInternetSession_INTERFACE_DEFINED__ */ - -DEFINE_GUID(IID_IAsyncMoniker, 0x79EAC9D3, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B); -DEFINE_GUID(CLSID_StdURLMoniker, 0x79EAC9E0, 0xBAF9, 0x11CE, 0x8C, 0x82, 0x00, 0xAA, 0x00, 0x4B, 0xA9, 0x0B); -#define MK_S_ASYNCHRONOUS 0x000401E8 -#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS -#define INET_E_ERROR_FIRST 0x800C0002L -#define INET_E_INVALID_URL 0x800C0002L -#define INET_E_NO_SESSION 0x800C0003L -#define INET_E_CANNOT_CONNECT 0x800C0004L -#define INET_E_RESOURCE_NOT_FOUND 0x800C0005L -#define INET_E_OBJECT_NOT_FOUND 0x800C0006L -#define INET_E_DATA_NOT_AVAILABLE 0x800C0007L -#define INET_E_DOWNLOAD_FAILURE 0x800C0008L -#define INET_E_AUTHENTICATION_REQUIRED 0x800C0009L -#define INET_E_NO_VALID_MEDIA 0x800C000AL -#define INET_E_CONNECTION_TIMEOUT 0x800C000BL -#define INET_E_INVALID_REQUEST 0x800C000CL -#define INET_E_UNKNOWN_PROTOCOL 0x800C000DL -#define INET_E_SECURITY_PROBLEM 0x800C000EL -#define INET_E_CANNOT_LOAD_DATA 0x800C000FL -#define INET_E_CANNOT_INSTANTIATE_OBJECT 0x800C0010L -#define INET_E_QUERYOPTION_UNKNOWN 0x800C0013L -#define INET_E_REDIRECT_FAILED 0x800C0014L -#define INET_E_REDIRECT_TO_DIR 0x800C0015L -#define INET_E_CANNOT_LOCK_REQUEST 0x800C0016L -#define INET_E_ERROR_LAST INET_E_REDIRECT_TO_DIR -HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk); -HRESULT WINAPI RegisterBindStatusCallback(IBindCtx *pbc, IBindStatusCallback *pbsc, IBindStatusCallback **ppbsc, DWORD dwReserved); -HRESULT WINAPI CompareSecurityIds(BYTE*,DWORD,BYTE*,DWORD,DWORD); -HRESULT WINAPI URLDownloadToFileA(LPUNKNOWN pCaller, LPCSTR szURL, LPCSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB); -HRESULT WINAPI URLDownloadToFileW(LPUNKNOWN pCaller, LPCWSTR szURL, LPCWSTR szFileName, DWORD dwReserved, LPBINDSTATUSCALLBACK lpfnCB); -HRESULT WINAPI CoInternetGetSession(DWORD,IInternetSession**,DWORD); -HRESULT WINAPI MkParseDisplayNameEx(IBindCtx*,LPCWSTR,ULONG*,IMoniker**); -HRESULT WINAPI IsAsyncMoniker(IMoniker* pmk); -HRESULT WINAPI CreateAsyncBindCtx(DWORD, IBindStatusCallback*, IEnumFORMATETC*, IBindCtx**); -HRESULT WINAPI CoInternetCombineUrl(LPCWSTR,LPCWSTR,DWORD,LPWSTR,DWORD,DWORD*,DWORD); -HRESULT WINAPI CoInternetCompareUrl(LPCWSTR,LPCWSTR,DWORD); -#define OInetCombineUrl CoInternetCombineUrl -#define OInetCompareUrl CoInternetCompareUrl -#define OInetGetSession CoInternetGetSession -#define MKSYS_URLMONIKER 6 -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_URLMON_H */ diff --git a/include/wtypes.h b/include/wtypes.h deleted file mode 100644 index f7212677915..00000000000 --- a/include/wtypes.h +++ /dev/null @@ -1,783 +0,0 @@ -/*** Autogenerated by WIDL 0.1 from wtypes.idl - Do not edit ***/ -#include -#include - -#ifndef __WIDL_WTYPES_H -#define __WIDL_WTYPES_H -#ifdef __cplusplus -extern "C" { -#endif -#include -#include -#if 0 /* winnt.h */ -typedef unsigned char BYTE; - -typedef unsigned short WORD; - -typedef unsigned long DWORD; - -typedef long BOOL; - -typedef unsigned char UCHAR; - -typedef int INT; - -typedef unsigned int UINT; - -typedef short SHORT; - -typedef unsigned short USHORT; - -typedef long LONG; - -typedef unsigned long ULONG; - -typedef float FLOAT; - -typedef void *PVOID, *LPVOID; - -typedef char CHAR; - -typedef CHAR *LPSTR; - -typedef const CHAR *LPCSTR; - -typedef wchar_t WCHAR; - -typedef WCHAR *LPWSTR; - -typedef const WCHAR *LPCWSTR; - -typedef boolean BOOLEAN; - -typedef DWORD COLORREF; - -typedef void *HANDLE; - -typedef void *HACCEL; - -typedef void *HDC; - -typedef void *HFONT; - -typedef void *HWND; - -typedef void *HMENU; - -typedef void *HMODULE; - -typedef void *HINSTANCE; - -typedef void *HRGN; - -typedef void *HTASK; - -typedef void *HKEY; - -typedef void *HICON; - -typedef LONG_PTR LRESULT; - -typedef LONG HRESULT; - -typedef DWORD LCID; - -typedef unsigned __int64 DWORDLONG; - -typedef __int64 LONGLONG; - -typedef unsigned __int64 ULONGLONG; - -typedef struct _LARGE_INTEGER { - LONGLONG QuadPart; -} LARGE_INTEGER; - -typedef struct _ULARGE_INTEGER { - ULONGLONG QuadPart; -} ULARGE_INTEGER; - -typedef struct _SID_IDENTIFIER_AUTHORITY { - UCHAR Value[6]; -} SID_IDENTIFIER_AUTHORITY, *PSID_IDENTIFIER_AUTHORITY; - -typedef struct _SID { - UCHAR Revision; - UCHAR SubAuthorityCount; - SID_IDENTIFIER_AUTHORITY IdentifierAuthority; - ULONG SubAuthority[1]; -} SID, *PSID; - -typedef USHORT SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL; - -typedef struct _ACL { - UCHAR AclRevision; - UCHAR Sbz1; - USHORT AclSize; - USHORT AceCount; - USHORT Sbz2; -} ACL; - -typedef ACL *PACL; - -typedef struct _SECURITY_DESCRIPTOR { - UCHAR Revision; - UCHAR Sbz1; - SECURITY_DESCRIPTOR_CONTROL Control; - PSID Owner; - PSID Group; - PACL Sacl; - PACL Dacl; -} SECURITY_DESCRIPTOR, *PSECURITY_DESCRIPTOR; - -typedef struct _SECURITY_ATTRIBUTES { - DWORD nLength; - LPVOID lpSecurityDescriptor; - BOOL bInheritHandle; -} SECURITY_ATTRIBUTES, *PSECURITY_ATTRIBUTES, *LPSECURITY_ATTRIBUTES; - -typedef struct tagSIZE { - LONG cx; - LONG cy; -} SIZE, *PSIZE, *LPSIZE; - -typedef SIZE SIZEL, *PSIZEL, *LPSIZEL; - -typedef struct tagPOINT { - LONG x; - LONG y; -} POINT, *PPOINT, *LPPOINT; - -typedef struct _POINTL { - LONG x; - LONG y; -} POINTL, *PPOINTL; - -typedef struct tagRECT { - LONG left; - LONG top; - LONG right; - LONG bottom; -} RECT, *PRECT, *LPRECT; - -typedef const RECT *LPCRECT; - -typedef struct _RECTL { - LONG left; - LONG top; - LONG right; - LONG bottom; -} RECTL, *PRECTL, *LPRECTL; - -typedef const RECTL *LPCRECTL; - -typedef UINT_PTR WPARAM; - -typedef LONG_PTR LPARAM; - -typedef struct tagMSG { - HWND hwnd; - UINT message; - WPARAM wParam; - LPARAM lParam; - DWORD time; - POINT pt; -} MSG, *PMSG, *NPMSG, *LPMSG; - -#endif /* winnt.h */ -#if 0 -typedef double DOUBLE; - -#else -typedef double DECLSPEC_ALIGN(8) DOUBLE; -#endif -#ifndef _PALETTEENTRY_DEFINED -#define _PALETTEENTRY_DEFINED -typedef struct tagPALETTEENTRY { - BYTE peRed; - BYTE peGreen; - BYTE peBlue; - BYTE peFlags; -} PALETTEENTRY, *PPALETTEENTRY, *LPPALETTEENTRY; - -#endif -#ifndef _LOGPALETTE_DEFINED -#define _LOGPALETTE_DEFINED -typedef struct tagLOGPALETTE { - WORD palVersion; - WORD palNumEntries; - PALETTEENTRY palPalEntry[1]; -} LOGPALETTE, *PLOGPALETTE, *LPLOGPALETTE; - -#endif -#ifndef _FILETIME_ -#define _FILETIME_ -typedef struct _FILETIME { - DWORD dwLowDateTime; - DWORD dwHighDateTime; -} FILETIME, *PFILETIME, *LPFILETIME; - -#endif -#ifndef _TEXTMETRIC_DEFINED -#define _TEXTMETRIC_DEFINED -typedef struct tagTEXTMETRICA { - LONG tmHeight; - LONG tmAscent; - LONG tmDescent; - LONG tmInternalLeading; - LONG tmExternalLeading; - LONG tmAveCharWidth; - LONG tmMaxCharWidth; - LONG tmWeight; - LONG tmOverhang; - LONG tmDigitizedAspectX; - LONG tmDigitizedAspectY; - BYTE tmFirstChar; - BYTE tmLastChar; - BYTE tmDefaultChar; - BYTE tmBreakChar; - BYTE tmItalic; - BYTE tmUnderlined; - BYTE tmStruckOut; - BYTE tmPitchAndFamily; - BYTE tmCharSet; -} TEXTMETRICA, *LPTEXTMETRICA, *PTEXTMETRICA; - -typedef struct tagTEXTMETRICW { - LONG tmHeight; - LONG tmAscent; - LONG tmDescent; - LONG tmInternalLeading; - LONG tmExternalLeading; - LONG tmAveCharWidth; - LONG tmMaxCharWidth; - LONG tmWeight; - LONG tmOverhang; - LONG tmDigitizedAspectX; - LONG tmDigitizedAspectY; - WCHAR tmFirstChar; - WCHAR tmLastChar; - WCHAR tmDefaultChar; - WCHAR tmBreakChar; - BYTE tmItalic; - BYTE tmUnderlined; - BYTE tmStruckOut; - BYTE tmPitchAndFamily; - BYTE tmCharSet; -} TEXTMETRICW, *LPTEXTMETRICW, *PTEXTMETRICW; - -#endif -typedef WCHAR OLECHAR; - -typedef OLECHAR *LPOLESTR; - -typedef const OLECHAR *LPCOLESTR; - -#ifndef __WINESRC__ -#define OLESTR(str) L##str -#endif -typedef LONG SCODE; - -typedef struct _COAUTHIDENTITY { - USHORT *User; - ULONG UserLength; - USHORT *Domain; - ULONG DomainLength; - USHORT *Password; - ULONG PasswordLength; - ULONG Flags; -} COAUTHIDENTITY; - -typedef struct _COAUTHINFO { - DWORD dwAuthnSvc; - DWORD dwAuthzSvc; - LPWSTR pwszServerPrincName; - DWORD dwAuthnLevel; - DWORD dwImpersonationLevel; - COAUTHIDENTITY *pAuthIdentityData; - DWORD dwCapabilities; -} COAUTHINFO; - -typedef struct _COSERVERINFO { - DWORD dwReserved1; - LPWSTR pwszName; - COAUTHINFO *pAuthInfo; - DWORD dwReserved2; -} COSERVERINFO; - -typedef enum tagMEMCTX { - MEMCTX_TASK = 1, - MEMCTX_SHARED = 2, - MEMCTX_MACSYSTEM = 3, - MEMCTX_UNKNOWN = -1, - MEMCTX_SAME = -2 -} MEMCTX; - -#ifndef _ROTFLAGS_DEFINED -#define _ROTFLAGS_DEFINED -#define ROTFLAGS_REGISTRATIONKEEPSALIVE 0x1 -#define ROTFLAGS_ALLOWANYCLIENT 0x2 -#endif -typedef enum tagCLSCTX { - CLSCTX_INPROC_SERVER = 0x1, - CLSCTX_INPROC_HANDLER = 0x2, - CLSCTX_LOCAL_SERVER = 0x4, - CLSCTX_INPROC_SERVER16 = 0x8, - CLSCTX_REMOTE_SERVER = 0x10, - CLSCTX_INPROC_HANDLER16 = 0x20, - CLSCTX_INPROC_SERVERX86 = 0x40, - CLSCTX_INPROC_HANDLERX86 = 0x80, - CLSCTX_ESERVER_HANDLER = 0x100, - CLSCTX_NO_CODE_DOWNLOAD = 0x400, - CLSCTX_NO_CUSTOM_MARSHAL = 0x1000, - CLSCTX_ENABLE_CODE_DOWNLOAD = 0x2000, - CLSCTX_NO_FAILURE_LOG = 0x4000, - CLSCTX_DISABLE_AAA = 0x8000, - CLSCTX_ENABLE_AAA = 0x10000, - CLSCTX_FROM_DEFAULT_CONTEXT = 0x20000 -} CLSCTX; - -#define CLSCTX_INPROC (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER) -#define CLSCTX_ALL (CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER) -#define CLSCTX_SERVER (CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER | CLSCTX_REMOTE_SERVER) -typedef enum tagMSHLFLAGS { - MSHLFLAGS_NORMAL = 0, - MSHLFLAGS_TABLESTRONG = 1, - MSHLFLAGS_TABLEWEAK = 2, - MSHLFLAGS_NOPING = 4 -} MSHLFLAGS; - -typedef enum tagMSHCTX { - MSHCTX_LOCAL = 0, - MSHCTX_NOSHAREDMEM = 1, - MSHCTX_DIFFERENTMACHINE = 2, - MSHCTX_INPROC = 3, - MSHCTX_CROSSCTX = 4 -} MSHCTX; - -typedef struct _BYTE_BLOB { - unsigned long clSize; - byte abData[1]; -} BYTE_BLOB; - -typedef BYTE_BLOB *UP_BYTE_BLOB; - -typedef struct _FLAGGED_BYTE_BLOB { - unsigned long fFlags; - unsigned long clSize; - byte abData[1]; -} FLAGGED_BYTE_BLOB; - -typedef FLAGGED_BYTE_BLOB *UP_FLAGGED_BYTE_BLOB; - -typedef struct _FLAGGED_WORD_BLOB { - unsigned long fFlags; - unsigned long clSize; - unsigned short asData[1]; -} FLAGGED_WORD_BLOB; - -typedef FLAGGED_WORD_BLOB *UP_FLAGGED_WORD_BLOB; - -typedef struct _BYTE_SIZEDARR { - unsigned long clSize; - byte *pData; -} BYTE_SIZEDARR; - -typedef struct _SHORT_SIZEDARR { - unsigned long clSize; - unsigned short *pData; -} WORD_SIZEDARR; - -typedef struct _LONG_SIZEDARR { - unsigned long clSize; - unsigned long *pData; -} DWORD_SIZEDARR; - -typedef struct _HYPER_SIZEDARR { - unsigned long clSize; - hyper *pData; -} HYPER_SIZEDARR; - -#define WDT_INPROC_CALL (0x48746457) - -#define WDT_REMOTE_CALL (0x52746457) - -typedef struct _userCLIPFORMAT { - long fContext; - union { - DWORD dwValue; - LPWSTR pwszName; - } u; -} userCLIPFORMAT; - -typedef userCLIPFORMAT *wireCLIPFORMAT; - -typedef WORD CLIPFORMAT; -unsigned long __RPC_USER CLIPFORMAT_UserSize (unsigned long *, unsigned long, CLIPFORMAT *); -unsigned char * __RPC_USER CLIPFORMAT_UserMarshal (unsigned long *, unsigned char *, CLIPFORMAT *); -unsigned char * __RPC_USER CLIPFORMAT_UserUnmarshal(unsigned long *, unsigned char *, CLIPFORMAT *); -void __RPC_USER CLIPFORMAT_UserFree (unsigned long *, CLIPFORMAT *); - -typedef struct tagRemHGLOBAL { - long fNullHGlobal; - unsigned long cbData; - byte data[1]; -} RemHGLOBAL; - -typedef struct _userHGLOBAL { - long fContext; - union { - long hInproc; - FLAGGED_BYTE_BLOB *hRemote; - long hGlobal; - } u; -} userHGLOBAL; - -typedef userHGLOBAL *wireHGLOBAL; - -typedef struct tagRemHMETAFILEPICT { - long mm; - long xExt; - long yExt; - unsigned long cbData; - byte data[1]; -} RemHMETAFILEPICT; - -typedef struct _userHMETAFILE { - long fContext; - union { - long hInproc; - BYTE_BLOB *hRemote; - long hGlobal; - } u; -} userHMETAFILE; - -typedef userHMETAFILE *wireHMETAFILE; - -typedef struct _remoteMETAFILEPICT { - long mm; - long xExt; - long yExt; - userHMETAFILE *hMF; -} remoteMETAFILEPICT; - -typedef struct _userHMETAFILEPICT { - long fContext; - union { - long hInproc; - remoteMETAFILEPICT *hRemote; - long hGlobal; - } u; -} userHMETAFILEPICT; - -typedef userHMETAFILEPICT *wireHMETAFILEPICT; - -typedef struct tagRemHENHMETAFILE { - unsigned long cbData; - byte data[1]; -} RemHENHMETAFILE; - -typedef struct _userHENHMETAFILE { - long fContext; - union { - long hInproc; - BYTE_BLOB *hRemote; - long hGlobal; - } u; -} userHENHMETAFILE; - -typedef userHENHMETAFILE *wireHENHMETAFILE; - -typedef struct tagRemHBITMAP { - unsigned long cbData; - byte data[1]; -} RemHBITMAP; - -typedef struct _userBITMAP { - LONG bmType; - LONG bmWidth; - LONG bmHeight; - LONG bmWidthBytes; - WORD bmPlanes; - WORD bmBitsPixel; - ULONG cbSize; - byte pBuffer[1]; -} userBITMAP; - -typedef struct _userHBITMAP { - long fContext; - union { - long hInproc; - userBITMAP *hRemote; - long hGlobal; - } u; -} userHBITMAP; - -typedef userHBITMAP *wireHBITMAP; - -typedef struct tagRemHPALETTE { - unsigned long cbData; - byte data[1]; -} RemHPALETTE; - -typedef struct tagrpcLOGPALETTE { - WORD palVersion; - WORD palNumEntries; - PALETTEENTRY palPalEntry[1]; -} rpcLOGPALETTE; - -typedef struct _userHPALETTE { - long fContext; - union { - long hInproc; - rpcLOGPALETTE *hRemote; - long hGlobal; - } u; -} userHPALETTE; - -typedef userHPALETTE *wireHPALETTE; - -#if 0 -typedef void *HGLOBAL; -unsigned long __RPC_USER HGLOBAL_UserSize (unsigned long *, unsigned long, HGLOBAL *); -unsigned char * __RPC_USER HGLOBAL_UserMarshal (unsigned long *, unsigned char *, HGLOBAL *); -unsigned char * __RPC_USER HGLOBAL_UserUnmarshal(unsigned long *, unsigned char *, HGLOBAL *); -void __RPC_USER HGLOBAL_UserFree (unsigned long *, HGLOBAL *); - -typedef HGLOBAL HLOCAL; - -typedef void *HBITMAP; -unsigned long __RPC_USER HBITMAP_UserSize (unsigned long *, unsigned long, HBITMAP *); -unsigned char * __RPC_USER HBITMAP_UserMarshal (unsigned long *, unsigned char *, HBITMAP *); -unsigned char * __RPC_USER HBITMAP_UserUnmarshal(unsigned long *, unsigned char *, HBITMAP *); -void __RPC_USER HBITMAP_UserFree (unsigned long *, HBITMAP *); - -typedef void *HPALETTE; -unsigned long __RPC_USER HPALETTE_UserSize (unsigned long *, unsigned long, HPALETTE *); -unsigned char * __RPC_USER HPALETTE_UserMarshal (unsigned long *, unsigned char *, HPALETTE *); -unsigned char * __RPC_USER HPALETTE_UserUnmarshal(unsigned long *, unsigned char *, HPALETTE *); -void __RPC_USER HPALETTE_UserFree (unsigned long *, HPALETTE *); - -typedef void *HENHMETAFILE; -unsigned long __RPC_USER HENHMETAFILE_UserSize (unsigned long *, unsigned long, HENHMETAFILE *); -unsigned char * __RPC_USER HENHMETAFILE_UserMarshal (unsigned long *, unsigned char *, HENHMETAFILE *); -unsigned char * __RPC_USER HENHMETAFILE_UserUnmarshal(unsigned long *, unsigned char *, HENHMETAFILE *); -void __RPC_USER HENHMETAFILE_UserFree (unsigned long *, HENHMETAFILE *); - -typedef void *HMETAFILE; -unsigned long __RPC_USER HMETAFILE_UserSize (unsigned long *, unsigned long, HMETAFILE *); -unsigned char * __RPC_USER HMETAFILE_UserMarshal (unsigned long *, unsigned char *, HMETAFILE *); -unsigned char * __RPC_USER HMETAFILE_UserUnmarshal(unsigned long *, unsigned char *, HMETAFILE *); -void __RPC_USER HMETAFILE_UserFree (unsigned long *, HMETAFILE *); - -#endif -typedef void *HMETAFILEPICT; -unsigned long __RPC_USER HMETAFILEPICT_UserSize (unsigned long *, unsigned long, HMETAFILEPICT *); -unsigned char * __RPC_USER HMETAFILEPICT_UserMarshal (unsigned long *, unsigned char *, HMETAFILEPICT *); -unsigned char * __RPC_USER HMETAFILEPICT_UserUnmarshal(unsigned long *, unsigned char *, HMETAFILEPICT *); -void __RPC_USER HMETAFILEPICT_UserFree (unsigned long *, HMETAFILEPICT *); - -#if 0 -typedef GUID *REFGUID; - -typedef IID *REFIID; - -typedef CLSID *REFCLSID; - -typedef FMTID *REFFMTID; - -#endif -typedef enum tagDVASPECT { - DVASPECT_CONTENT = 1, - DVASPECT_THUMBNAIL = 2, - DVASPECT_ICON = 4, - DVASPECT_DOCPRINT = 8 -} DVASPECT; - -typedef enum tagSTGC { - STGC_DEFAULT = 0, - STGC_OVERWRITE = 1, - STGC_ONLYIFCURRENT = 2, - STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = 4, - STGC_CONSOLIDATE = 8 -} STGC; - -typedef enum tagSTGMOVE { - STGMOVE_MOVE = 0, - STGMOVE_COPY = 1, - STGMOVE_SHALLOWCOPY = 2 -} STGMOVE; - -typedef enum tagSTATFLAG { - STATFLAG_DEFAULT = 0, - STATFLAG_NONAME = 1, - STATFLAG_NOOPEN = 2 -} STATFLAG; - -#if 0 -typedef double DATE; - -#else -typedef double DECLSPEC_ALIGN(8) DATE; -#endif -#if 0 -typedef struct tagCY { - LONGLONG int64; -} CY; - -#else -#ifndef _tagCY_DEFINED -#define _tagCY_DEFINED -typedef union tagCY { - struct { -#ifdef WORDS_BIGENDIAN - LONG Hi; - ULONG Lo; -#else - ULONG Lo; - LONG Hi; -#endif - } DUMMYSTRUCTNAME; - LONGLONG int64; -} CY; -#endif -#endif -typedef CY *LPCY; - -#if 0 -typedef struct tagDEC { - USHORT wReserved; - BYTE scale; - BYTE sign; - ULONG Hi32; - ULONGLONG Lo64; -} DECIMAL; - -#else -typedef struct tagDEC { - USHORT wReserved; - union { - struct { - BYTE scale; - BYTE sign; - } DUMMYSTRUCTNAME; - USHORT signscale; - } DUMMYUNIONNAME; - ULONG Hi32; - union { - struct { -#ifdef WORDS_BIGENDIAN - ULONG Mid32; - ULONG Lo32; -#else - ULONG Lo32; - ULONG Mid32; -#endif - } DUMMYSTRUCTNAME1; - ULONGLONG Lo64; - } DUMMYUNIONNAME1; -} DECIMAL; -#endif -#define DECIMAL_NEG ((BYTE)0x80) -#define DECIMAL_SETZERO(d) do{ memset(((char*)(d)) + sizeof(USHORT), 0, sizeof(ULONG) * 3u + sizeof(USHORT)); }while (0) -typedef DECIMAL *LPDECIMAL; - -typedef FLAGGED_WORD_BLOB *wireBSTR; - -typedef OLECHAR *BSTR; -unsigned long __RPC_USER BSTR_UserSize (unsigned long *, unsigned long, BSTR *); -unsigned char * __RPC_USER BSTR_UserMarshal (unsigned long *, unsigned char *, BSTR *); -unsigned char * __RPC_USER BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR *); -void __RPC_USER BSTR_UserFree (unsigned long *, BSTR *); - -typedef BSTR *LPBSTR; - -typedef short VARIANT_BOOL; - -typedef VARIANT_BOOL _VARIANT_BOOL; - -#define VARIANT_TRUE ((VARIANT_BOOL)0xFFFF) -#define VARIANT_FALSE ((VARIANT_BOOL)0x0000) -typedef struct tagBSTRBLOB { - ULONG cbSize; - BYTE *pData; -} BSTRBLOB, *LPBSTRBLOB; - -#ifndef _tagBLOB_DEFINED -#define _tagBLOB_DEFINED -#define _BLOB_DEFINED -#define _LPBLOB_DEFINED -typedef struct tagBLOB { - ULONG cbSize; - BYTE *pBlobData; -} BLOB, *LPBLOB; - -#endif -typedef struct tagCLIPDATA { - ULONG cbSize; - long ulClipFmt; - BYTE *pClipData; -} CLIPDATA; - -#define CBPCLIPDATA(cb) ((cb).cbSize - sizeof((cb).ulClipFmt)) -typedef ULONG PROPID; - -typedef unsigned short VARTYPE; - -enum VARENUM { - VT_EMPTY = 0, - VT_NULL = 1, - VT_I2 = 2, - VT_I4 = 3, - VT_R4 = 4, - VT_R8 = 5, - VT_CY = 6, - VT_DATE = 7, - VT_BSTR = 8, - VT_DISPATCH = 9, - VT_ERROR = 10, - VT_BOOL = 11, - VT_VARIANT = 12, - VT_UNKNOWN = 13, - VT_DECIMAL = 14, - VT_I1 = 16, - VT_UI1 = 17, - VT_UI2 = 18, - VT_UI4 = 19, - VT_I8 = 20, - VT_UI8 = 21, - VT_INT = 22, - VT_UINT = 23, - VT_VOID = 24, - VT_HRESULT = 25, - VT_PTR = 26, - VT_SAFEARRAY = 27, - VT_CARRAY = 28, - VT_USERDEFINED = 29, - VT_LPSTR = 30, - VT_LPWSTR = 31, - VT_RECORD = 36, - VT_INT_PTR = 37, - VT_UINT_PTR = 38, - VT_FILETIME = 64, - VT_BLOB = 65, - VT_STREAM = 66, - VT_STORAGE = 67, - VT_STREAMED_OBJECT = 68, - VT_STORED_OBJECT = 69, - VT_BLOB_OBJECT = 70, - VT_CF = 71, - VT_CLSID = 72, - VT_BSTR_BLOB = 0xfff, - VT_VECTOR = 0x1000, - VT_ARRAY = 0x2000, - VT_BYREF = 0x4000, - VT_RESERVED = 0x8000, - VT_ILLEGAL = 0xffff, - VT_ILLEGALMASKED = 0xfff, - VT_TYPEMASK = 0xfff -}; - -#ifdef __cplusplus -} -#endif -#endif /* __WIDL_WTYPES_H */