ConnectionPoint_ps.cpp
上传用户:nvosite88
上传日期:2007-01-17
资源大小:4983k
文件大小:25k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* ConnectionPoint_ps.cpp generated by WIDL Version 2.2.1 on 06-Dec-01 at 11:53:37 AM */
  2. #define __WIDL_PROXY_STUB 0x0200
  3. #include "dcomProxy.h"
  4. #include "ConnectionPoint.h"
  5. #include <string.h>
  6. extern "C" int include_ConnectionPoint () {return 0;}
  7. NdrTypeDesc StructDesc__GUID(NDRTYPES&);
  8. NdrTypeDesc StructDesc__GUID(NDRTYPES&);
  9. NdrTypeDesc StructDesc_tagCONNECTDATA (NDRTYPES& ndrtypes)
  10.     {
  11.     NdrMemberInfo m [] =
  12.         {
  13.         NDR_MEMBER(tagCONNECTDATA, pUnk, ndrtypes.interfaceptr_t (IID_IUnknown)),
  14.         NDR_MEMBER(tagCONNECTDATA, dwCookie, ndrtypes.ulong_t ()),
  15.         };
  16.     return ndrtypes.struct_t (2, m);
  17.     }
  18. NdrTypeDesc StructDesc_tagCONNECTDATA(NDRTYPES&);
  19. HRESULT STDMETHODCALLTYPE IConnectionPoint_GetConnectionInterface_vxproxy (IConnectionPoint* pThis, IID* piid)
  20.     {
  21.     RPC_PROXY_MSG msg (IID_IConnectionPoint, RpcMode::OBJECT, 3, pThis);
  22.     NDRTYPES ndrtypes;
  23.     HRESULT hrMethod;
  24.     HRESULT hr;
  25.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  26.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  27.     hr=widlUnmarshal (&piid, pus, ndrtypes.refptr_t(StructDesc__GUID (ndrtypes))); if (FAILED(hr)) return hr;
  28.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  29.     if (FAILED(hr))
  30.         return hr;
  31.     return hrMethod;
  32.     }
  33. HRESULT STDMETHODCALLTYPE IConnectionPoint_GetConnectionInterface_vxstub (IConnectionPoint* pitf, RPC_STUB_MSG& msg)
  34.     {
  35.     NDRTYPES ndrtypes;
  36.     HRESULT hr;
  37.     HRESULT hrMethod;
  38.     IID piid_tmp;
  39.     IID* piid = &piid_tmp;
  40.     hrMethod = pitf->GetConnectionInterface (piid);
  41.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  42.     hr=widlMarshal (&piid, pms, ndrtypes.refptr_t(StructDesc__GUID (ndrtypes))); if (FAILED(hr)) return hr;
  43.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  44.     if (FAILED(hr))
  45.         return hr;
  46.     return S_OK;
  47.     }
  48. HRESULT STDMETHODCALLTYPE IConnectionPoint_GetConnectionPointContainer_vxproxy (IConnectionPoint* pThis, IConnectionPointContainer** ppCPC)
  49.     {
  50.     RPC_PROXY_MSG msg (IID_IConnectionPoint, RpcMode::OBJECT, 4, pThis);
  51.     NDRTYPES ndrtypes;
  52.     HRESULT hrMethod;
  53.     HRESULT hr;
  54.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  55.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  56.     hr=widlUnmarshal (&ppCPC, pus, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IConnectionPointContainer))); if (FAILED(hr)) return hr;
  57.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  58.     if (FAILED(hr))
  59.         return hr;
  60.     return hrMethod;
  61.     }
  62. HRESULT STDMETHODCALLTYPE IConnectionPoint_GetConnectionPointContainer_vxstub (IConnectionPoint* pitf, RPC_STUB_MSG& msg)
  63.     {
  64.     NDRTYPES ndrtypes;
  65.     HRESULT hr;
  66.     HRESULT hrMethod;
  67.     IConnectionPointContainer* ppCPC_tmp = 0;
  68.     IConnectionPointContainer** ppCPC = &ppCPC_tmp;
  69.     hrMethod = pitf->GetConnectionPointContainer (ppCPC);
  70.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  71.     hr=widlMarshal (&ppCPC, pms, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IConnectionPointContainer))); if (FAILED(hr)) return hr;
  72.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  73.     if (FAILED(hr))
  74.         return hr;
  75.     if ((*ppCPC)) {((*ppCPC))->Release ();};
  76.     return S_OK;
  77.     }
  78. HRESULT STDMETHODCALLTYPE IConnectionPoint_Advise_vxproxy (IConnectionPoint* pThis, IUnknown* pUnkSink, DWORD* pdwCookie)
  79.     {
  80.     RPC_PROXY_MSG msg (IID_IConnectionPoint, RpcMode::OBJECT, 5, pThis);
  81.     NDRTYPES ndrtypes;
  82.     HRESULT hrMethod;
  83.     HRESULT hr;
  84.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  85.     hr=widlMarshal (&pUnkSink, pms, ndrtypes.interfaceptr_t (IID_IUnknown)); if (FAILED(hr)) return hr;
  86.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  87.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  88.     hr=widlUnmarshal (&pdwCookie, pus, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr;
  89.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  90.     if (FAILED(hr))
  91.         return hr;
  92.     return hrMethod;
  93.     }
  94. HRESULT STDMETHODCALLTYPE IConnectionPoint_Advise_vxstub (IConnectionPoint* pitf, RPC_STUB_MSG& msg)
  95.     {
  96.     NDRTYPES ndrtypes;
  97.     HRESULT hr;
  98.     HRESULT hrMethod;
  99.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  100.     IUnknown* pUnkSink;
  101.     hr=widlUnmarshal (&pUnkSink, pus, ndrtypes.interfaceptr_t (IID_IUnknown)); if (FAILED(hr)) return hr;
  102.     DWORD pdwCookie_tmp;
  103.     DWORD* pdwCookie = &pdwCookie_tmp;
  104.     hrMethod = pitf->Advise (pUnkSink, pdwCookie);
  105.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  106.     hr=widlMarshal (&pdwCookie, pms, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr;
  107.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  108.     if (FAILED(hr))
  109.         return hr;
  110.     (pUnkSink)->Release ();;
  111.     return S_OK;
  112.     }
  113. HRESULT STDMETHODCALLTYPE IConnectionPoint_Unadvise_vxproxy (IConnectionPoint* pThis, DWORD dwCookie)
  114.     {
  115.     RPC_PROXY_MSG msg (IID_IConnectionPoint, RpcMode::OBJECT, 6, pThis);
  116.     NDRTYPES ndrtypes;
  117.     HRESULT hrMethod;
  118.     HRESULT hr;
  119.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  120.     hr=widlMarshal (&dwCookie, pms, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr;
  121.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  122.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  123.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  124.     if (FAILED(hr))
  125.         return hr;
  126.     return hrMethod;
  127.     }
  128. HRESULT STDMETHODCALLTYPE IConnectionPoint_Unadvise_vxstub (IConnectionPoint* pitf, RPC_STUB_MSG& msg)
  129.     {
  130.     NDRTYPES ndrtypes;
  131.     HRESULT hr;
  132.     HRESULT hrMethod;
  133.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  134.     DWORD dwCookie;
  135.     hr=widlUnmarshal (&dwCookie, pus, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr;
  136.     hrMethod = pitf->Unadvise (dwCookie);
  137.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  138.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  139.     if (FAILED(hr))
  140.         return hr;
  141.     return S_OK;
  142.     }
  143. HRESULT STDMETHODCALLTYPE IConnectionPoint_EnumConnections_vxproxy (IConnectionPoint* pThis, IEnumConnections** ppEnum)
  144.     {
  145.     RPC_PROXY_MSG msg (IID_IConnectionPoint, RpcMode::OBJECT, 7, pThis);
  146.     NDRTYPES ndrtypes;
  147.     HRESULT hrMethod;
  148.     HRESULT hr;
  149.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  150.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  151.     hr=widlUnmarshal (&ppEnum, pus, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnections))); if (FAILED(hr)) return hr;
  152.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  153.     if (FAILED(hr))
  154.         return hr;
  155.     return hrMethod;
  156.     }
  157. HRESULT STDMETHODCALLTYPE IConnectionPoint_EnumConnections_vxstub (IConnectionPoint* pitf, RPC_STUB_MSG& msg)
  158.     {
  159.     NDRTYPES ndrtypes;
  160.     HRESULT hr;
  161.     HRESULT hrMethod;
  162.     IEnumConnections* ppEnum_tmp = 0;
  163.     IEnumConnections** ppEnum = &ppEnum_tmp;
  164.     hrMethod = pitf->EnumConnections (ppEnum);
  165.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  166.     hr=widlMarshal (&ppEnum, pms, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnections))); if (FAILED(hr)) return hr;
  167.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  168.     if (FAILED(hr))
  169.         return hr;
  170.     if ((*ppEnum)) {((*ppEnum))->Release ();};
  171.     return S_OK;
  172.     }
  173. COM_VTABLE(IConnectionPoint) IConnectionPoint_vxproxy_vtbl = {
  174.     COM_VTBL_HEADER
  175.     COM_VTBL_METHOD(&IUnknown_QueryInterface_vxproxy),
  176.     COM_VTBL_METHOD(&IUnknown_AddRef_vxproxy),
  177.     COM_VTBL_METHOD(&IUnknown_Release_vxproxy),
  178.     COM_VTBL_METHOD(&IConnectionPoint_GetConnectionInterface_vxproxy),
  179.     COM_VTBL_METHOD(&IConnectionPoint_GetConnectionPointContainer_vxproxy),
  180.     COM_VTBL_METHOD(&IConnectionPoint_Advise_vxproxy),
  181.     COM_VTBL_METHOD(&IConnectionPoint_Unadvise_vxproxy),
  182.     COM_VTBL_METHOD(&IConnectionPoint_EnumConnections_vxproxy),
  183.     };
  184. const PFN_ORPC_STUB stub_functbl_IConnectionPoint [] =
  185.     {
  186.     0,0,0,
  187.     (PFN_ORPC_STUB) IConnectionPoint_GetConnectionInterface_vxstub,
  188.     (PFN_ORPC_STUB) IConnectionPoint_GetConnectionPointContainer_vxstub,
  189.     (PFN_ORPC_STUB) IConnectionPoint_Advise_vxstub,
  190.     (PFN_ORPC_STUB) IConnectionPoint_Unadvise_vxstub,
  191.     (PFN_ORPC_STUB) IConnectionPoint_EnumConnections_vxstub,
  192.     };
  193. EXTERN_C const VXDCOM_STUB_DISPTBL IConnectionPoint_vxstub_disptbl =
  194.     {
  195.     8,
  196.     stub_functbl_IConnectionPoint
  197.     };
  198. VXDCOM_PS_AUTOREGISTER(IConnectionPoint);
  199. HRESULT STDMETHODCALLTYPE IConnectionPointContainer_EnumConnectionPoints_vxproxy (IConnectionPointContainer* pThis, IEnumConnectionPoints** ppEnum)
  200.     {
  201.     RPC_PROXY_MSG msg (IID_IConnectionPointContainer, RpcMode::OBJECT, 3, pThis);
  202.     NDRTYPES ndrtypes;
  203.     HRESULT hrMethod;
  204.     HRESULT hr;
  205.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  206.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  207.     hr=widlUnmarshal (&ppEnum, pus, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnectionPoints))); if (FAILED(hr)) return hr;
  208.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  209.     if (FAILED(hr))
  210.         return hr;
  211.     return hrMethod;
  212.     }
  213. HRESULT STDMETHODCALLTYPE IConnectionPointContainer_EnumConnectionPoints_vxstub (IConnectionPointContainer* pitf, RPC_STUB_MSG& msg)
  214.     {
  215.     NDRTYPES ndrtypes;
  216.     HRESULT hr;
  217.     HRESULT hrMethod;
  218.     IEnumConnectionPoints* ppEnum_tmp = 0;
  219.     IEnumConnectionPoints** ppEnum = &ppEnum_tmp;
  220.     hrMethod = pitf->EnumConnectionPoints (ppEnum);
  221.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  222.     hr=widlMarshal (&ppEnum, pms, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnectionPoints))); if (FAILED(hr)) return hr;
  223.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  224.     if (FAILED(hr))
  225.         return hr;
  226.     if ((*ppEnum)) {((*ppEnum))->Release ();};
  227.     return S_OK;
  228.     }
  229. HRESULT STDMETHODCALLTYPE IConnectionPointContainer_FindConnectionPoint_vxproxy (IConnectionPointContainer* pThis, REFIID riid, IConnectionPoint** ppCP)
  230.     {
  231.     RPC_PROXY_MSG msg (IID_IConnectionPointContainer, RpcMode::OBJECT, 4, pThis);
  232.     NDRTYPES ndrtypes;
  233.     HRESULT hrMethod;
  234.     HRESULT hr;
  235.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  236.     hr=widlMarshal (&riid, pms, StructDesc__GUID (ndrtypes)); if (FAILED(hr)) return hr;
  237.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  238.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  239.     hr=widlUnmarshal (&ppCP, pus, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IConnectionPoint))); if (FAILED(hr)) return hr;
  240.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  241.     if (FAILED(hr))
  242.         return hr;
  243.     return hrMethod;
  244.     }
  245. HRESULT STDMETHODCALLTYPE IConnectionPointContainer_FindConnectionPoint_vxstub (IConnectionPointContainer* pitf, RPC_STUB_MSG& msg)
  246.     {
  247.     NDRTYPES ndrtypes;
  248.     HRESULT hr;
  249.     HRESULT hrMethod;
  250.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  251.     IID riid;
  252.     hr=widlUnmarshal (&riid, pus, StructDesc__GUID (ndrtypes)); if (FAILED(hr)) return hr;
  253.     IConnectionPoint* ppCP_tmp = 0;
  254.     IConnectionPoint** ppCP = &ppCP_tmp;
  255.     hrMethod = pitf->FindConnectionPoint (riid, ppCP);
  256.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  257.     hr=widlMarshal (&ppCP, pms, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IConnectionPoint))); if (FAILED(hr)) return hr;
  258.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  259.     if (FAILED(hr))
  260.         return hr;
  261.     if ((*ppCP)) {((*ppCP))->Release ();};
  262.     return S_OK;
  263.     }
  264. COM_VTABLE(IConnectionPointContainer) IConnectionPointContainer_vxproxy_vtbl = {
  265.     COM_VTBL_HEADER
  266.     COM_VTBL_METHOD(&IUnknown_QueryInterface_vxproxy),
  267.     COM_VTBL_METHOD(&IUnknown_AddRef_vxproxy),
  268.     COM_VTBL_METHOD(&IUnknown_Release_vxproxy),
  269.     COM_VTBL_METHOD(&IConnectionPointContainer_EnumConnectionPoints_vxproxy),
  270.     COM_VTBL_METHOD(&IConnectionPointContainer_FindConnectionPoint_vxproxy),
  271.     };
  272. const PFN_ORPC_STUB stub_functbl_IConnectionPointContainer [] =
  273.     {
  274.     0,0,0,
  275.     (PFN_ORPC_STUB) IConnectionPointContainer_EnumConnectionPoints_vxstub,
  276.     (PFN_ORPC_STUB) IConnectionPointContainer_FindConnectionPoint_vxstub,
  277.     };
  278. EXTERN_C const VXDCOM_STUB_DISPTBL IConnectionPointContainer_vxstub_disptbl =
  279.     {
  280.     5,
  281.     stub_functbl_IConnectionPointContainer
  282.     };
  283. VXDCOM_PS_AUTOREGISTER(IConnectionPointContainer);
  284. HRESULT STDMETHODCALLTYPE IEnumConnections_Next_vxproxy (IEnumConnections* pThis, ULONG cConnections, CONNECTDATA* rgcd, ULONG* lpcFetched)
  285.     {
  286.     RPC_PROXY_MSG msg (IID_IEnumConnections, RpcMode::OBJECT, 3, pThis);
  287.     NDRTYPES ndrtypes;
  288.     HRESULT hrMethod;
  289.     HRESULT hr;
  290.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  291.     hr=widlMarshal (&cConnections, pms, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr;
  292.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  293.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  294.     hr=widlUnmarshal (&rgcd, pus, ndrtypes.refptr_t(ndrtypes.cvarray_t(StructDesc_tagCONNECTDATA (ndrtypes), NDR_SIZEOF(CONNECTDATA)))); if (FAILED(hr)) return hr;
  295.     hr=widlUnmarshal (&lpcFetched, pus, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr;
  296.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  297.     if (FAILED(hr))
  298.         return hr;
  299.     return hrMethod;
  300.     }
  301. HRESULT STDMETHODCALLTYPE IEnumConnections_Next_vxstub (IEnumConnections* pitf, RPC_STUB_MSG& msg)
  302.     {
  303.     NDRTYPES ndrtypes;
  304.     HRESULT hr;
  305.     HRESULT hrMethod;
  306.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  307.     ULONG cConnections;
  308.     hr=widlUnmarshal (&cConnections, pus, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr;
  309.     CONNECTDATA* rgcd = (CONNECTDATA*) CoTaskMemAlloc (NDR_SIZEOF(CONNECTDATA) * cConnections);
  310.     ULONG lpcFetched_tmp;
  311.     ULONG* lpcFetched = &lpcFetched_tmp;
  312.     hrMethod = pitf->Next (cConnections, rgcd, lpcFetched);
  313.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  314.     hr=widlMarshal (&rgcd, pms, ndrtypes.refptr_t(ndrtypes.cvarray_t(StructDesc_tagCONNECTDATA (ndrtypes), NDR_SIZEOF(CONNECTDATA), *lpcFetched, cConnections))); if (FAILED(hr)) return hr;
  315.     hr=widlMarshal (&lpcFetched, pms, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr;
  316.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  317.     if (FAILED(hr))
  318.         return hr;
  319.     {for (DWORD __ix=0; __ix < *lpcFetched; ++__ix) {if ((rgcd[__ix]).pUnk) {((rgcd[__ix]).pUnk)->Release ();}}};
  320.     CoTaskMemFree (rgcd);
  321.     return S_OK;
  322.     }
  323. HRESULT STDMETHODCALLTYPE IEnumConnections_Skip_vxproxy (IEnumConnections* pThis, ULONG cConnections)
  324.     {
  325.     RPC_PROXY_MSG msg (IID_IEnumConnections, RpcMode::OBJECT, 4, pThis);
  326.     NDRTYPES ndrtypes;
  327.     HRESULT hrMethod;
  328.     HRESULT hr;
  329.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  330.     hr=widlMarshal (&cConnections, pms, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr;
  331.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  332.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  333.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  334.     if (FAILED(hr))
  335.         return hr;
  336.     return hrMethod;
  337.     }
  338. HRESULT STDMETHODCALLTYPE IEnumConnections_Skip_vxstub (IEnumConnections* pitf, RPC_STUB_MSG& msg)
  339.     {
  340.     NDRTYPES ndrtypes;
  341.     HRESULT hr;
  342.     HRESULT hrMethod;
  343.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  344.     ULONG cConnections;
  345.     hr=widlUnmarshal (&cConnections, pus, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr;
  346.     hrMethod = pitf->Skip (cConnections);
  347.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  348.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  349.     if (FAILED(hr))
  350.         return hr;
  351.     return S_OK;
  352.     }
  353. HRESULT STDMETHODCALLTYPE IEnumConnections_Reset_vxproxy (IEnumConnections* pThis)
  354.     {
  355.     RPC_PROXY_MSG msg (IID_IEnumConnections, RpcMode::OBJECT, 5, pThis);
  356.     NDRTYPES ndrtypes;
  357.     HRESULT hrMethod;
  358.     HRESULT hr;
  359.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  360.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  361.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  362.     if (FAILED(hr))
  363.         return hr;
  364.     return hrMethod;
  365.     }
  366. HRESULT STDMETHODCALLTYPE IEnumConnections_Reset_vxstub (IEnumConnections* pitf, RPC_STUB_MSG& msg)
  367.     {
  368.     NDRTYPES ndrtypes;
  369.     HRESULT hr;
  370.     HRESULT hrMethod;
  371.     hrMethod = pitf->Reset ();
  372.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  373.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  374.     if (FAILED(hr))
  375.         return hr;
  376.     return S_OK;
  377.     }
  378. HRESULT STDMETHODCALLTYPE IEnumConnections_Clone_vxproxy (IEnumConnections* pThis, IEnumConnections** ppEnum)
  379.     {
  380.     RPC_PROXY_MSG msg (IID_IEnumConnections, RpcMode::OBJECT, 6, pThis);
  381.     NDRTYPES ndrtypes;
  382.     HRESULT hrMethod;
  383.     HRESULT hr;
  384.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  385.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  386.     hr=widlUnmarshal (&ppEnum, pus, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnections))); if (FAILED(hr)) return hr;
  387.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  388.     if (FAILED(hr))
  389.         return hr;
  390.     return hrMethod;
  391.     }
  392. HRESULT STDMETHODCALLTYPE IEnumConnections_Clone_vxstub (IEnumConnections* pitf, RPC_STUB_MSG& msg)
  393.     {
  394.     NDRTYPES ndrtypes;
  395.     HRESULT hr;
  396.     HRESULT hrMethod;
  397.     IEnumConnections* ppEnum_tmp = 0;
  398.     IEnumConnections** ppEnum = &ppEnum_tmp;
  399.     hrMethod = pitf->Clone (ppEnum);
  400.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  401.     hr=widlMarshal (&ppEnum, pms, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnections))); if (FAILED(hr)) return hr;
  402.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  403.     if (FAILED(hr))
  404.         return hr;
  405.     if ((*ppEnum)) {((*ppEnum))->Release ();};
  406.     return S_OK;
  407.     }
  408. COM_VTABLE(IEnumConnections) IEnumConnections_vxproxy_vtbl = {
  409.     COM_VTBL_HEADER
  410.     COM_VTBL_METHOD(&IUnknown_QueryInterface_vxproxy),
  411.     COM_VTBL_METHOD(&IUnknown_AddRef_vxproxy),
  412.     COM_VTBL_METHOD(&IUnknown_Release_vxproxy),
  413.     COM_VTBL_METHOD(&IEnumConnections_Next_vxproxy),
  414.     COM_VTBL_METHOD(&IEnumConnections_Skip_vxproxy),
  415.     COM_VTBL_METHOD(&IEnumConnections_Reset_vxproxy),
  416.     COM_VTBL_METHOD(&IEnumConnections_Clone_vxproxy),
  417.     };
  418. const PFN_ORPC_STUB stub_functbl_IEnumConnections [] =
  419.     {
  420.     0,0,0,
  421.     (PFN_ORPC_STUB) IEnumConnections_Next_vxstub,
  422.     (PFN_ORPC_STUB) IEnumConnections_Skip_vxstub,
  423.     (PFN_ORPC_STUB) IEnumConnections_Reset_vxstub,
  424.     (PFN_ORPC_STUB) IEnumConnections_Clone_vxstub,
  425.     };
  426. EXTERN_C const VXDCOM_STUB_DISPTBL IEnumConnections_vxstub_disptbl =
  427.     {
  428.     7,
  429.     stub_functbl_IEnumConnections
  430.     };
  431. VXDCOM_PS_AUTOREGISTER(IEnumConnections);
  432. HRESULT STDMETHODCALLTYPE IEnumConnectionPoints_Next_vxproxy (IEnumConnectionPoints* pThis, ULONG cConnections, IConnectionPoint** rgpcn, ULONG* lpcFetched)
  433.     {
  434.     RPC_PROXY_MSG msg (IID_IEnumConnectionPoints, RpcMode::OBJECT, 3, pThis);
  435.     NDRTYPES ndrtypes;
  436.     HRESULT hrMethod;
  437.     HRESULT hr;
  438.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  439.     hr=widlMarshal (&cConnections, pms, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr;
  440.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  441.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  442.     hr=widlUnmarshal (&rgpcn, pus, ndrtypes.refptr_t(ndrtypes.cvarray_t(ndrtypes.interfaceptr_t (IID_IConnectionPoint), NDR_SIZEOF(IConnectionPoint*)))); if (FAILED(hr)) return hr;
  443.     hr=widlUnmarshal (&lpcFetched, pus, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr;
  444.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  445.     if (FAILED(hr))
  446.         return hr;
  447.     return hrMethod;
  448.     }
  449. HRESULT STDMETHODCALLTYPE IEnumConnectionPoints_Next_vxstub (IEnumConnectionPoints* pitf, RPC_STUB_MSG& msg)
  450.     {
  451.     NDRTYPES ndrtypes;
  452.     HRESULT hr;
  453.     HRESULT hrMethod;
  454.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  455.     ULONG cConnections;
  456.     hr=widlUnmarshal (&cConnections, pus, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr;
  457.     IConnectionPoint** rgpcn = (IConnectionPoint**) CoTaskMemAlloc (NDR_SIZEOF(IConnectionPoint*) * cConnections);
  458.     ULONG lpcFetched_tmp;
  459.     ULONG* lpcFetched = &lpcFetched_tmp;
  460.     hrMethod = pitf->Next (cConnections, rgpcn, lpcFetched);
  461.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  462.     hr=widlMarshal (&rgpcn, pms, ndrtypes.refptr_t(ndrtypes.cvarray_t(ndrtypes.interfaceptr_t (IID_IConnectionPoint), NDR_SIZEOF(IConnectionPoint*), *lpcFetched, cConnections))); if (FAILED(hr)) return hr;
  463.     hr=widlMarshal (&lpcFetched, pms, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr;
  464.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  465.     if (FAILED(hr))
  466.         return hr;
  467.     {for (DWORD __ix=0; __ix < *lpcFetched; ++__ix) {if ((rgpcn[__ix])) {((rgpcn[__ix]))->Release ();}}};
  468.     CoTaskMemFree (rgpcn);
  469.     return S_OK;
  470.     }
  471. HRESULT STDMETHODCALLTYPE IEnumConnectionPoints_Skip_vxproxy (IEnumConnectionPoints* pThis, ULONG cConnections)
  472.     {
  473.     RPC_PROXY_MSG msg (IID_IEnumConnectionPoints, RpcMode::OBJECT, 4, pThis);
  474.     NDRTYPES ndrtypes;
  475.     HRESULT hrMethod;
  476.     HRESULT hr;
  477.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  478.     hr=widlMarshal (&cConnections, pms, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr;
  479.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  480.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  481.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  482.     if (FAILED(hr))
  483.         return hr;
  484.     return hrMethod;
  485.     }
  486. HRESULT STDMETHODCALLTYPE IEnumConnectionPoints_Skip_vxstub (IEnumConnectionPoints* pitf, RPC_STUB_MSG& msg)
  487.     {
  488.     NDRTYPES ndrtypes;
  489.     HRESULT hr;
  490.     HRESULT hrMethod;
  491.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  492.     ULONG cConnections;
  493.     hr=widlUnmarshal (&cConnections, pus, ndrtypes.ulong_t ()); if (FAILED(hr)) return hr;
  494.     hrMethod = pitf->Skip (cConnections);
  495.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  496.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  497.     if (FAILED(hr))
  498.         return hr;
  499.     return S_OK;
  500.     }
  501. HRESULT STDMETHODCALLTYPE IEnumConnectionPoints_Reset_vxproxy (IEnumConnectionPoints* pThis)
  502.     {
  503.     RPC_PROXY_MSG msg (IID_IEnumConnectionPoints, RpcMode::OBJECT, 5, pThis);
  504.     NDRTYPES ndrtypes;
  505.     HRESULT hrMethod;
  506.     HRESULT hr;
  507.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  508.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  509.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  510.     if (FAILED(hr))
  511.         return hr;
  512.     return hrMethod;
  513.     }
  514. HRESULT STDMETHODCALLTYPE IEnumConnectionPoints_Reset_vxstub (IEnumConnectionPoints* pitf, RPC_STUB_MSG& msg)
  515.     {
  516.     NDRTYPES ndrtypes;
  517.     HRESULT hr;
  518.     HRESULT hrMethod;
  519.     hrMethod = pitf->Reset ();
  520.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  521.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  522.     if (FAILED(hr))
  523.         return hr;
  524.     return S_OK;
  525.     }
  526. HRESULT STDMETHODCALLTYPE IEnumConnectionPoints_Clone_vxproxy (IEnumConnectionPoints* pThis, IEnumConnectionPoints** ppEnum)
  527.     {
  528.     RPC_PROXY_MSG msg (IID_IEnumConnectionPoints, RpcMode::OBJECT, 6, pThis);
  529.     NDRTYPES ndrtypes;
  530.     HRESULT hrMethod;
  531.     HRESULT hr;
  532.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  533.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  534.     hr=widlUnmarshal (&ppEnum, pus, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnectionPoints))); if (FAILED(hr)) return hr;
  535.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  536.     if (FAILED(hr))
  537.         return hr;
  538.     return hrMethod;
  539.     }
  540. HRESULT STDMETHODCALLTYPE IEnumConnectionPoints_Clone_vxstub (IEnumConnectionPoints* pitf, RPC_STUB_MSG& msg)
  541.     {
  542.     NDRTYPES ndrtypes;
  543.     HRESULT hr;
  544.     HRESULT hrMethod;
  545.     IEnumConnectionPoints* ppEnum_tmp = 0;
  546.     IEnumConnectionPoints** ppEnum = &ppEnum_tmp;
  547.     hrMethod = pitf->Clone (ppEnum);
  548.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  549.     hr=widlMarshal (&ppEnum, pms, ndrtypes.refptr_t(ndrtypes.interfaceptr_t (IID_IEnumConnectionPoints))); if (FAILED(hr)) return hr;
  550.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  551.     if (FAILED(hr))
  552.         return hr;
  553.     if ((*ppEnum)) {((*ppEnum))->Release ();};
  554.     return S_OK;
  555.     }
  556. COM_VTABLE(IEnumConnectionPoints) IEnumConnectionPoints_vxproxy_vtbl = {
  557.     COM_VTBL_HEADER
  558.     COM_VTBL_METHOD(&IUnknown_QueryInterface_vxproxy),
  559.     COM_VTBL_METHOD(&IUnknown_AddRef_vxproxy),
  560.     COM_VTBL_METHOD(&IUnknown_Release_vxproxy),
  561.     COM_VTBL_METHOD(&IEnumConnectionPoints_Next_vxproxy),
  562.     COM_VTBL_METHOD(&IEnumConnectionPoints_Skip_vxproxy),
  563.     COM_VTBL_METHOD(&IEnumConnectionPoints_Reset_vxproxy),
  564.     COM_VTBL_METHOD(&IEnumConnectionPoints_Clone_vxproxy),
  565.     };
  566. const PFN_ORPC_STUB stub_functbl_IEnumConnectionPoints [] =
  567.     {
  568.     0,0,0,
  569.     (PFN_ORPC_STUB) IEnumConnectionPoints_Next_vxstub,
  570.     (PFN_ORPC_STUB) IEnumConnectionPoints_Skip_vxstub,
  571.     (PFN_ORPC_STUB) IEnumConnectionPoints_Reset_vxstub,
  572.     (PFN_ORPC_STUB) IEnumConnectionPoints_Clone_vxstub,
  573.     };
  574. EXTERN_C const VXDCOM_STUB_DISPTBL IEnumConnectionPoints_vxstub_disptbl =
  575.     {
  576.     7,
  577.     stub_functbl_IEnumConnectionPoints
  578.     };
  579. VXDCOM_PS_AUTOREGISTER(IEnumConnectionPoints);