📄 connectionpoint_ps.cpp
字号:
/* ConnectionPoint_ps.cpp generated by WIDL Version 2.2.1 on 06-Dec-01 at 11:53:37 AM */#define __WIDL_PROXY_STUB 0x0200#include "dcomProxy.h"#include "ConnectionPoint.h"#include <string.h>extern "C" int include_ConnectionPoint () {return 0;}NdrTypeDesc StructDesc__GUID(NDRTYPES&);NdrTypeDesc StructDesc__GUID(NDRTYPES&);NdrTypeDesc StructDesc_tagCONNECTDATA (NDRTYPES& ndrtypes) { NdrMemberInfo m [] = { NDR_MEMBER(tagCONNECTDATA, pUnk, ndrtypes.interfaceptr_t (IID_IUnknown)), NDR_MEMBER(tagCONNECTDATA, dwCookie, ndrtypes.ulong_t ()), }; return ndrtypes.struct_t (2, m); }NdrTypeDesc StructDesc_tagCONNECTDATA(NDRTYPES&);HRESULT STDMETHODCALLTYPE IConnectionPoint_GetConnectionInterface_vxproxy (IConnectionPoint* pThis, IID* piid) { RPC_PROXY_MSG msg (IID_IConnectionPoint, RpcMode::OBJECT, 3, pThis); NDRTYPES ndrtypes; HRESULT hrMethod; HRESULT hr; hr = msg.SendReceive (); if (FAILED (hr)) return hr; NdrUnmarshalStream* pus = msg.unmarshalStreamGet (); hr=widlUnmarshal (&piid, pus, ndrtypes.refptr_t(StructDesc__GUID (ndrtypes))); if (FAILED(hr)) return hr; hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; return hrMethod; }HRESULT STDMETHODCALLTYPE IConnectionPoint_GetConnectionInterface_vxstub (IConnectionPoint* pitf, RPC_STUB_MSG& msg) { NDRTYPES ndrtypes; HRESULT hr; HRESULT hrMethod; IID piid_tmp; IID* piid = &piid_tmp; hrMethod = pitf->GetConnectionInterface (piid); NdrMarshalStream* pms = msg.marshalStreamGet (); hr=widlMarshal (&piid, pms, ndrtypes.refptr_t(StructDesc__GUID (ndrtypes))); if (FAILED(hr)) return hr; hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; return S_OK; }HRESULT STDMETHODCALLTYPE IConnectionPoint_GetConnectionPointContainer_vxproxy (IConnectionPoint* pThis, IConnectionPointContainer** ppCPC) { RPC_PROXY_MSG msg (IID_IConnectionPoint, RpcMode::OBJECT, 4, pThis); NDRTYPES ndrtypes; HRESULT hrMethod; HRESULT hr; hr = msg.SendReceive (); if (FAILED (hr)) return hr; NdrUnmarshalStream* pus = msg.unmarshalStreamGet (); hr=widlUnmarshal (&ppCPC, pus, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IConnectionPointContainer))); if (FAILED(hr)) return hr; hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; return hrMethod; }HRESULT STDMETHODCALLTYPE IConnectionPoint_GetConnectionPointContainer_vxstub (IConnectionPoint* pitf, RPC_STUB_MSG& msg) { NDRTYPES ndrtypes; HRESULT hr; HRESULT hrMethod; IConnectionPointContainer* ppCPC_tmp = 0; IConnectionPointContainer** ppCPC = &ppCPC_tmp; hrMethod = pitf->GetConnectionPointContainer (ppCPC); NdrMarshalStream* pms = msg.marshalStreamGet (); hr=widlMarshal (&ppCPC, pms, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IConnectionPointContainer))); if (FAILED(hr)) return hr; hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; if ((*ppCPC)) {((*ppCPC))->Release ();}; return S_OK; }HRESULT STDMETHODCALLTYPE IConnectionPoint_Advise_vxproxy (IConnectionPoint* pThis, IUnknown* pUnkSink, DWORD* pdwCookie) { RPC_PROXY_MSG msg (IID_IConnectionPoint, RpcMode::OBJECT, 5, pThis); NDRTYPES ndrtypes; HRESULT hrMethod; HRESULT hr; NdrMarshalStream* pms = msg.marshalStreamGet (); hr=widlMarshal (&pUnkSink, pms, ndrtypes.interfaceptr_t (IID_IUnknown)); if (FAILED(hr)) return hr; hr = msg.SendReceive (); if (FAILED (hr)) return hr; NdrUnmarshalStream* pus = msg.unmarshalStreamGet (); hr=widlUnmarshal (&pdwCookie, pus, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr; hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; return hrMethod; }HRESULT STDMETHODCALLTYPE IConnectionPoint_Advise_vxstub (IConnectionPoint* pitf, RPC_STUB_MSG& msg) { NDRTYPES ndrtypes; HRESULT hr; HRESULT hrMethod; NdrUnmarshalStream* pus = msg.unmarshalStreamGet (); IUnknown* pUnkSink; hr=widlUnmarshal (&pUnkSink, pus, ndrtypes.interfaceptr_t (IID_IUnknown)); if (FAILED(hr)) return hr; DWORD pdwCookie_tmp; DWORD* pdwCookie = &pdwCookie_tmp; hrMethod = pitf->Advise (pUnkSink, pdwCookie); NdrMarshalStream* pms = msg.marshalStreamGet (); hr=widlMarshal (&pdwCookie, pms, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr; hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; (pUnkSink)->Release ();; return S_OK; }HRESULT STDMETHODCALLTYPE IConnectionPoint_Unadvise_vxproxy (IConnectionPoint* pThis, DWORD dwCookie) { RPC_PROXY_MSG msg (IID_IConnectionPoint, RpcMode::OBJECT, 6, pThis); NDRTYPES ndrtypes; HRESULT hrMethod; HRESULT hr; NdrMarshalStream* pms = msg.marshalStreamGet (); hr=widlMarshal (&dwCookie, pms, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr; hr = msg.SendReceive (); if (FAILED (hr)) return hr; NdrUnmarshalStream* pus = msg.unmarshalStreamGet (); hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; return hrMethod; }HRESULT STDMETHODCALLTYPE IConnectionPoint_Unadvise_vxstub (IConnectionPoint* pitf, RPC_STUB_MSG& msg) { NDRTYPES ndrtypes; HRESULT hr; HRESULT hrMethod; NdrUnmarshalStream* pus = msg.unmarshalStreamGet (); DWORD dwCookie; hr=widlUnmarshal (&dwCookie, pus, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr; hrMethod = pitf->Unadvise (dwCookie); NdrMarshalStream* pms = msg.marshalStreamGet (); hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; return S_OK; }HRESULT STDMETHODCALLTYPE IConnectionPoint_EnumConnections_vxproxy (IConnectionPoint* pThis, IEnumConnections** ppEnum) { RPC_PROXY_MSG msg (IID_IConnectionPoint, RpcMode::OBJECT, 7, pThis); NDRTYPES ndrtypes; HRESULT hrMethod; HRESULT hr; hr = msg.SendReceive (); if (FAILED (hr)) return hr; NdrUnmarshalStream* pus = msg.unmarshalStreamGet (); hr=widlUnmarshal (&ppEnum, pus, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnections))); if (FAILED(hr)) return hr; hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; return hrMethod; }HRESULT STDMETHODCALLTYPE IConnectionPoint_EnumConnections_vxstub (IConnectionPoint* pitf, RPC_STUB_MSG& msg) { NDRTYPES ndrtypes; HRESULT hr; HRESULT hrMethod; IEnumConnections* ppEnum_tmp = 0; IEnumConnections** ppEnum = &ppEnum_tmp; hrMethod = pitf->EnumConnections (ppEnum); NdrMarshalStream* pms = msg.marshalStreamGet (); hr=widlMarshal (&ppEnum, pms, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnections))); if (FAILED(hr)) return hr; hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; if ((*ppEnum)) {((*ppEnum))->Release ();}; return S_OK; }COM_VTABLE(IConnectionPoint) IConnectionPoint_vxproxy_vtbl = { COM_VTBL_HEADER COM_VTBL_METHOD(&IUnknown_QueryInterface_vxproxy), COM_VTBL_METHOD(&IUnknown_AddRef_vxproxy), COM_VTBL_METHOD(&IUnknown_Release_vxproxy), COM_VTBL_METHOD(&IConnectionPoint_GetConnectionInterface_vxproxy), COM_VTBL_METHOD(&IConnectionPoint_GetConnectionPointContainer_vxproxy), COM_VTBL_METHOD(&IConnectionPoint_Advise_vxproxy), COM_VTBL_METHOD(&IConnectionPoint_Unadvise_vxproxy), COM_VTBL_METHOD(&IConnectionPoint_EnumConnections_vxproxy), };const PFN_ORPC_STUB stub_functbl_IConnectionPoint [] = { 0,0,0, (PFN_ORPC_STUB) IConnectionPoint_GetConnectionInterface_vxstub, (PFN_ORPC_STUB) IConnectionPoint_GetConnectionPointContainer_vxstub, (PFN_ORPC_STUB) IConnectionPoint_Advise_vxstub, (PFN_ORPC_STUB) IConnectionPoint_Unadvise_vxstub, (PFN_ORPC_STUB) IConnectionPoint_EnumConnections_vxstub, };EXTERN_C const VXDCOM_STUB_DISPTBL IConnectionPoint_vxstub_disptbl = { 8, stub_functbl_IConnectionPoint };VXDCOM_PS_AUTOREGISTER(IConnectionPoint);HRESULT STDMETHODCALLTYPE IConnectionPointContainer_EnumConnectionPoints_vxproxy (IConnectionPointContainer* pThis, IEnumConnectionPoints** ppEnum) { RPC_PROXY_MSG msg (IID_IConnectionPointContainer, RpcMode::OBJECT, 3, pThis); NDRTYPES ndrtypes; HRESULT hrMethod; HRESULT hr; hr = msg.SendReceive (); if (FAILED (hr)) return hr; NdrUnmarshalStream* pus = msg.unmarshalStreamGet (); hr=widlUnmarshal (&ppEnum, pus, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnectionPoints))); if (FAILED(hr)) return hr; hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; return hrMethod; }HRESULT STDMETHODCALLTYPE IConnectionPointContainer_EnumConnectionPoints_vxstub (IConnectionPointContainer* pitf, RPC_STUB_MSG& msg) { NDRTYPES ndrtypes; HRESULT hr; HRESULT hrMethod; IEnumConnectionPoints* ppEnum_tmp = 0; IEnumConnectionPoints** ppEnum = &ppEnum_tmp; hrMethod = pitf->EnumConnectionPoints (ppEnum); NdrMarshalStream* pms = msg.marshalStreamGet (); hr=widlMarshal (&ppEnum, pms, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnectionPoints))); if (FAILED(hr)) return hr; hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; if ((*ppEnum)) {((*ppEnum))->Release ();}; return S_OK; }HRESULT STDMETHODCALLTYPE IConnectionPointContainer_FindConnectionPoint_vxproxy (IConnectionPointContainer* pThis, REFIID riid, IConnectionPoint** ppCP) { RPC_PROXY_MSG msg (IID_IConnectionPointContainer, RpcMode::OBJECT, 4, pThis); NDRTYPES ndrtypes; HRESULT hrMethod; HRESULT hr; NdrMarshalStream* pms = msg.marshalStreamGet (); hr=widlMarshal (&riid, pms, StructDesc__GUID (ndrtypes)); if (FAILED(hr)) return hr; hr = msg.SendReceive (); if (FAILED (hr)) return hr; NdrUnmarshalStream* pus = msg.unmarshalStreamGet (); hr=widlUnmarshal (&ppCP, pus, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IConnectionPoint))); if (FAILED(hr)) return hr; hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; return hrMethod; }HRESULT STDMETHODCALLTYPE IConnectionPointContainer_FindConnectionPoint_vxstub (IConnectionPointContainer* pitf, RPC_STUB_MSG& msg) { NDRTYPES ndrtypes; HRESULT hr; HRESULT hrMethod; NdrUnmarshalStream* pus = msg.unmarshalStreamGet (); IID riid; hr=widlUnmarshal (&riid, pus, StructDesc__GUID (ndrtypes)); if (FAILED(hr)) return hr; IConnectionPoint* ppCP_tmp = 0; IConnectionPoint** ppCP = &ppCP_tmp; hrMethod = pitf->FindConnectionPoint (riid, ppCP); NdrMarshalStream* pms = msg.marshalStreamGet (); hr=widlMarshal (&ppCP, pms, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IConnectionPoint))); if (FAILED(hr)) return hr; hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t()); if (FAILED(hr)) return hr; if ((*ppCP)) {((*ppCP))->Release ();}; return S_OK; }COM_VTABLE(IConnectionPointContainer) IConnectionPointContainer_vxproxy_vtbl = { COM_VTBL_HEADER COM_VTBL_METHOD(&IUnknown_QueryInterface_vxproxy), COM_VTBL_METHOD(&IUnknown_AddRef_vxproxy), COM_VTBL_METHOD(&IUnknown_Release_vxproxy), COM_VTBL_METHOD(&IConnectionPointContainer_EnumConnectionPoints_vxproxy), COM_VTBL_METHOD(&IConnectionPointContainer_FindConnectionPoint_vxproxy), };const PFN_ORPC_STUB stub_functbl_IConnectionPointContainer [] = { 0,0,0, (PFN_ORPC_STUB) IConnectionPointContainer_EnumConnectionPoints_vxstub, (PFN_ORPC_STUB) IConnectionPointContainer_FindConnectionPoint_vxstub, };EXTERN_C const VXDCOM_STUB_DISPTBL IConnectionPointContainer_vxstub_disptbl = { 5, stub_functbl_IConnectionPointContainer };VXDCOM_PS_AUTOREGISTER(IConnectionPointContainer);HRESULT STDMETHODCALLTYPE IEnumConnections_Next_vxproxy (IEnumConnections* pThis, ULONG cConnections, CONNECTDATA* rgcd, ULONG* lpcFetched) { RPC_PROXY_MSG msg (IID_IEnumConnections, RpcMode::OBJECT, 3, pThis); NDRTYPES ndrtypes; HRESULT hrMethod; HRESULT hr;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -