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

VxWorks

开发平台:

C/C++

  1. /* OxidResolver_ps.cpp generated by WIDL Version 2.2.1 on 06-Dec-01 at 11:54:48 AM */
  2. #define __WIDL_PROXY_STUB 0x0200
  3. #include "dcomProxy.h"
  4. #include "OxidResolver.h"
  5. #include <string.h>
  6. extern "C" int include_OxidResolver () {return 0;}
  7. NdrTypeDesc StructDesc_tagDUALSTRINGARRAY(NDRTYPES&);
  8. NdrTypeDesc StructDesc__GUID(NDRTYPES&);
  9. NdrTypeDesc StructDesc_tagDUALSTRINGARRAY(NDRTYPES&);
  10. NdrTypeDesc StructDesc__GUID(NDRTYPES&);
  11. NdrTypeDesc StructDesc_tagCOMVERSION(NDRTYPES&);
  12. HRESULT STDMETHODCALLTYPE IOXIDResolver_ResolveOxid_vxproxy (void* pvRpcChannel, OXID* pOxid, unsigned short cRequestedProtseqs, unsigned short* arRequestedProtseqs, DUALSTRINGARRAY** ppdsaOxidBindings, IPID* pipidRemUnknown, DWORD* pAuthnHint)
  13.     {
  14.     RPC_PROXY_MSG msg (IID_IOXIDResolver, RpcMode::DCE, 0, pvRpcChannel);
  15.     NDRTYPES ndrtypes;
  16.     HRESULT hrMethod;
  17.     HRESULT hr;
  18.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  19.     hr=widlMarshal (&pOxid, pms, ndrtypes.refptr_t(ndrtypes.hyper_t ())); if (FAILED(hr)) return hr;
  20.     hr=widlMarshal (&cRequestedProtseqs, pms, ndrtypes.ushort_t ()); if (FAILED(hr)) return hr;
  21.     hr=widlMarshal (&arRequestedProtseqs, pms, ndrtypes.refptr_t(ndrtypes.carray_t(ndrtypes.ushort_t (), NDR_SIZEOF(unsigned short), cRequestedProtseqs))); if (FAILED(hr)) return hr;
  22.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  23.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  24.     hr=widlUnmarshal (&ppdsaOxidBindings, pus, ndrtypes.refptr_t(ndrtypes.pointer_t(StructDesc_tagDUALSTRINGARRAY (ndrtypes)))); if (FAILED(hr)) return hr;
  25.     hr=widlUnmarshal (&pipidRemUnknown, pus, ndrtypes.refptr_t(StructDesc__GUID (ndrtypes))); if (FAILED(hr)) return hr;
  26.     hr=widlUnmarshal (&pAuthnHint, pus, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr;
  27.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  28.     if (FAILED(hr))
  29.         return hr;
  30.     return hrMethod;
  31.     }
  32. HRESULT STDMETHODCALLTYPE IOXIDResolver_ResolveOxid_vxstub (IOXIDResolver* pitf, RPC_STUB_MSG& msg)
  33.     {
  34.     NDRTYPES ndrtypes;
  35.     HRESULT hr;
  36.     HRESULT hrMethod;
  37.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  38.     OXID* pOxid;
  39.     hr=widlUnmarshal (&pOxid, pus, ndrtypes.refptr_t(ndrtypes.hyper_t ())); if (FAILED(hr)) return hr;
  40.     unsigned short cRequestedProtseqs;
  41.     hr=widlUnmarshal (&cRequestedProtseqs, pus, ndrtypes.ushort_t ()); if (FAILED(hr)) return hr;
  42.     unsigned short* arRequestedProtseqs;
  43.     hr=widlUnmarshal (&arRequestedProtseqs, pus, ndrtypes.refptr_t(ndrtypes.carray_t(ndrtypes.ushort_t (), NDR_SIZEOF(unsigned short)))); if (FAILED(hr)) return hr;
  44.     DUALSTRINGARRAY* ppdsaOxidBindings_tmp;
  45.     DUALSTRINGARRAY** ppdsaOxidBindings = &ppdsaOxidBindings_tmp;
  46.     IPID pipidRemUnknown_tmp;
  47.     IPID* pipidRemUnknown = &pipidRemUnknown_tmp;
  48.     DWORD pAuthnHint_tmp;
  49.     DWORD* pAuthnHint = &pAuthnHint_tmp;
  50.     hrMethod = ResolveOxid ((void*) msg.channelIdGet (), pOxid, cRequestedProtseqs, arRequestedProtseqs, ppdsaOxidBindings, pipidRemUnknown, pAuthnHint);
  51.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  52.     hr=widlMarshal (&ppdsaOxidBindings, pms, ndrtypes.refptr_t(ndrtypes.pointer_t(StructDesc_tagDUALSTRINGARRAY (ndrtypes)))); if (FAILED(hr)) return hr;
  53.     hr=widlMarshal (&pipidRemUnknown, pms, ndrtypes.refptr_t(StructDesc__GUID (ndrtypes))); if (FAILED(hr)) return hr;
  54.     hr=widlMarshal (&pAuthnHint, pms, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr;
  55.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  56.     if (FAILED(hr))
  57.         return hr;
  58.     if ((*ppdsaOxidBindings)) {CoTaskMemFree ((*ppdsaOxidBindings));};
  59.     return S_OK;
  60.     }
  61. HRESULT STDMETHODCALLTYPE IOXIDResolver_SimplePing_vxproxy (void* pvRpcChannel, SETID* pSetId)
  62.     {
  63.     RPC_PROXY_MSG msg (IID_IOXIDResolver, RpcMode::DCE, 1, pvRpcChannel);
  64.     NDRTYPES ndrtypes;
  65.     HRESULT hrMethod;
  66.     HRESULT hr;
  67.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  68.     hr=widlMarshal (&pSetId, pms, ndrtypes.refptr_t(ndrtypes.hyper_t ())); if (FAILED(hr)) return hr;
  69.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  70.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  71.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  72.     if (FAILED(hr))
  73.         return hr;
  74.     return hrMethod;
  75.     }
  76. HRESULT STDMETHODCALLTYPE IOXIDResolver_SimplePing_vxstub (IOXIDResolver* pitf, RPC_STUB_MSG& msg)
  77.     {
  78.     NDRTYPES ndrtypes;
  79.     HRESULT hr;
  80.     HRESULT hrMethod;
  81.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  82.     SETID* pSetId;
  83.     hr=widlUnmarshal (&pSetId, pus, ndrtypes.refptr_t(ndrtypes.hyper_t ())); if (FAILED(hr)) return hr;
  84.     hrMethod = SimplePing ((void*) msg.channelIdGet (), pSetId);
  85.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  86.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  87.     if (FAILED(hr))
  88.         return hr;
  89.     return S_OK;
  90.     }
  91. HRESULT STDMETHODCALLTYPE IOXIDResolver_ComplexPing_vxproxy (void* pvRpcChannel, SETID* pSetId, unsigned short SequenceNum, unsigned short cAddToSet, unsigned short cDelFromSet, OID* AddToSet, OID* DelFromSet, unsigned short* pPingBackoffFactor)
  92.     {
  93.     RPC_PROXY_MSG msg (IID_IOXIDResolver, RpcMode::DCE, 2, pvRpcChannel);
  94.     NDRTYPES ndrtypes;
  95.     HRESULT hrMethod;
  96.     HRESULT hr;
  97.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  98.     hr=widlMarshal (&pSetId, pms, ndrtypes.refptr_t(ndrtypes.hyper_t ())); if (FAILED(hr)) return hr;
  99.     hr=widlMarshal (&SequenceNum, pms, ndrtypes.ushort_t ()); if (FAILED(hr)) return hr;
  100.     hr=widlMarshal (&cAddToSet, pms, ndrtypes.ushort_t ()); if (FAILED(hr)) return hr;
  101.     hr=widlMarshal (&cDelFromSet, pms, ndrtypes.ushort_t ()); if (FAILED(hr)) return hr;
  102.     hr=widlMarshal (&AddToSet, pms, ndrtypes.pointer_t(ndrtypes.carray_t(ndrtypes.hyper_t (), NDR_SIZEOF(OID), cAddToSet))); if (FAILED(hr)) return hr;
  103.     hr=widlMarshal (&DelFromSet, pms, ndrtypes.pointer_t(ndrtypes.carray_t(ndrtypes.hyper_t (), NDR_SIZEOF(OID), cDelFromSet))); if (FAILED(hr)) return hr;
  104.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  105.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  106.     hr=widlUnmarshal (&pSetId, pus, ndrtypes.refptr_t(ndrtypes.hyper_t ())); if (FAILED(hr)) return hr;
  107.     hr=widlUnmarshal (&pPingBackoffFactor, pus, ndrtypes.refptr_t(ndrtypes.ushort_t ())); if (FAILED(hr)) return hr;
  108.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  109.     if (FAILED(hr))
  110.         return hr;
  111.     return hrMethod;
  112.     }
  113. HRESULT STDMETHODCALLTYPE IOXIDResolver_ComplexPing_vxstub (IOXIDResolver* pitf, RPC_STUB_MSG& msg)
  114.     {
  115.     NDRTYPES ndrtypes;
  116.     HRESULT hr;
  117.     HRESULT hrMethod;
  118.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  119.     SETID pSetId_tmp;
  120.     SETID* pSetId = &pSetId_tmp;
  121.     hr=widlUnmarshal (&pSetId, pus, ndrtypes.refptr_t(ndrtypes.hyper_t ())); if (FAILED(hr)) return hr;
  122.     unsigned short SequenceNum;
  123.     hr=widlUnmarshal (&SequenceNum, pus, ndrtypes.ushort_t ()); if (FAILED(hr)) return hr;
  124.     unsigned short cAddToSet;
  125.     hr=widlUnmarshal (&cAddToSet, pus, ndrtypes.ushort_t ()); if (FAILED(hr)) return hr;
  126.     unsigned short cDelFromSet;
  127.     hr=widlUnmarshal (&cDelFromSet, pus, ndrtypes.ushort_t ()); if (FAILED(hr)) return hr;
  128.     OID* AddToSet;
  129.     hr=widlUnmarshal (&AddToSet, pus, ndrtypes.pointer_t(ndrtypes.carray_t(ndrtypes.hyper_t (), NDR_SIZEOF(OID)))); if (FAILED(hr)) return hr;
  130.     OID* DelFromSet;
  131.     hr=widlUnmarshal (&DelFromSet, pus, ndrtypes.pointer_t(ndrtypes.carray_t(ndrtypes.hyper_t (), NDR_SIZEOF(OID)))); if (FAILED(hr)) return hr;
  132.     unsigned short pPingBackoffFactor_tmp;
  133.     unsigned short* pPingBackoffFactor = &pPingBackoffFactor_tmp;
  134.     hrMethod = ComplexPing ((void*) msg.channelIdGet (), pSetId, SequenceNum, cAddToSet, cDelFromSet, AddToSet, DelFromSet, pPingBackoffFactor);
  135.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  136.     hr=widlMarshal (&pSetId, pms, ndrtypes.refptr_t(ndrtypes.hyper_t ())); if (FAILED(hr)) return hr;
  137.     hr=widlMarshal (&pPingBackoffFactor, pms, ndrtypes.refptr_t(ndrtypes.ushort_t ())); if (FAILED(hr)) return hr;
  138.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  139.     if (FAILED(hr))
  140.         return hr;
  141.     return S_OK;
  142.     }
  143. HRESULT STDMETHODCALLTYPE IOXIDResolver_ServerAlive_vxproxy (void* pvRpcChannel)
  144.     {
  145.     RPC_PROXY_MSG msg (IID_IOXIDResolver, RpcMode::DCE, 3, pvRpcChannel);
  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 (&hrMethod, pus, ndrtypes.hresult_t());
  152.     if (FAILED(hr))
  153.         return hr;
  154.     return hrMethod;
  155.     }
  156. HRESULT STDMETHODCALLTYPE IOXIDResolver_ServerAlive_vxstub (IOXIDResolver* pitf, RPC_STUB_MSG& msg)
  157.     {
  158.     NDRTYPES ndrtypes;
  159.     HRESULT hr;
  160.     HRESULT hrMethod;
  161.     hrMethod = ServerAlive ((void*) msg.channelIdGet ());
  162.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  163.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  164.     if (FAILED(hr))
  165.         return hr;
  166.     return S_OK;
  167.     }
  168. HRESULT STDMETHODCALLTYPE IOXIDResolver_ResolveOxid2_vxproxy (void* pvRpcChannel, OXID* pOxid, unsigned short cRequestedProtseqs, unsigned short* arRequestedProtseqs, DUALSTRINGARRAY** ppdsaOxidBindings, IPID* pipidRemUnknown, DWORD* pAuthnHint, COMVERSION* pComVersion)
  169.     {
  170.     RPC_PROXY_MSG msg (IID_IOXIDResolver, RpcMode::DCE, 4, pvRpcChannel);
  171.     NDRTYPES ndrtypes;
  172.     HRESULT hrMethod;
  173.     HRESULT hr;
  174.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  175.     hr=widlMarshal (&pOxid, pms, ndrtypes.refptr_t(ndrtypes.hyper_t ())); if (FAILED(hr)) return hr;
  176.     hr=widlMarshal (&cRequestedProtseqs, pms, ndrtypes.ushort_t ()); if (FAILED(hr)) return hr;
  177.     hr=widlMarshal (&arRequestedProtseqs, pms, ndrtypes.refptr_t(ndrtypes.carray_t(ndrtypes.ushort_t (), NDR_SIZEOF(unsigned short), cRequestedProtseqs))); if (FAILED(hr)) return hr;
  178.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  179.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  180.     hr=widlUnmarshal (&ppdsaOxidBindings, pus, ndrtypes.refptr_t(ndrtypes.pointer_t(StructDesc_tagDUALSTRINGARRAY (ndrtypes)))); if (FAILED(hr)) return hr;
  181.     hr=widlUnmarshal (&pipidRemUnknown, pus, ndrtypes.refptr_t(StructDesc__GUID (ndrtypes))); if (FAILED(hr)) return hr;
  182.     hr=widlUnmarshal (&pAuthnHint, pus, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr;
  183.     hr=widlUnmarshal (&pComVersion, pus, ndrtypes.refptr_t(StructDesc_tagCOMVERSION (ndrtypes))); if (FAILED(hr)) return hr;
  184.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  185.     if (FAILED(hr))
  186.         return hr;
  187.     return hrMethod;
  188.     }
  189. HRESULT STDMETHODCALLTYPE IOXIDResolver_ResolveOxid2_vxstub (IOXIDResolver* pitf, RPC_STUB_MSG& msg)
  190.     {
  191.     NDRTYPES ndrtypes;
  192.     HRESULT hr;
  193.     HRESULT hrMethod;
  194.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  195.     OXID* pOxid;
  196.     hr=widlUnmarshal (&pOxid, pus, ndrtypes.refptr_t(ndrtypes.hyper_t ())); if (FAILED(hr)) return hr;
  197.     unsigned short cRequestedProtseqs;
  198.     hr=widlUnmarshal (&cRequestedProtseqs, pus, ndrtypes.ushort_t ()); if (FAILED(hr)) return hr;
  199.     unsigned short* arRequestedProtseqs;
  200.     hr=widlUnmarshal (&arRequestedProtseqs, pus, ndrtypes.refptr_t(ndrtypes.carray_t(ndrtypes.ushort_t (), NDR_SIZEOF(unsigned short)))); if (FAILED(hr)) return hr;
  201.     DUALSTRINGARRAY* ppdsaOxidBindings_tmp;
  202.     DUALSTRINGARRAY** ppdsaOxidBindings = &ppdsaOxidBindings_tmp;
  203.     IPID pipidRemUnknown_tmp;
  204.     IPID* pipidRemUnknown = &pipidRemUnknown_tmp;
  205.     DWORD pAuthnHint_tmp;
  206.     DWORD* pAuthnHint = &pAuthnHint_tmp;
  207.     COMVERSION pComVersion_tmp;
  208.     COMVERSION* pComVersion = &pComVersion_tmp;
  209.     hrMethod = ResolveOxid2 ((void*) msg.channelIdGet (), pOxid, cRequestedProtseqs, arRequestedProtseqs, ppdsaOxidBindings, pipidRemUnknown, pAuthnHint, pComVersion);
  210.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  211.     hr=widlMarshal (&ppdsaOxidBindings, pms, ndrtypes.refptr_t(ndrtypes.pointer_t(StructDesc_tagDUALSTRINGARRAY (ndrtypes)))); if (FAILED(hr)) return hr;
  212.     hr=widlMarshal (&pipidRemUnknown, pms, ndrtypes.refptr_t(StructDesc__GUID (ndrtypes))); if (FAILED(hr)) return hr;
  213.     hr=widlMarshal (&pAuthnHint, pms, ndrtypes.refptr_t(ndrtypes.ulong_t ())); if (FAILED(hr)) return hr;
  214.     hr=widlMarshal (&pComVersion, pms, ndrtypes.refptr_t(StructDesc_tagCOMVERSION (ndrtypes))); if (FAILED(hr)) return hr;
  215.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  216.     if (FAILED(hr))
  217.         return hr;
  218.     if ((*ppdsaOxidBindings)) {CoTaskMemFree ((*ppdsaOxidBindings));};
  219.     return S_OK;
  220.     }
  221. const PFN_ORPC_STUB stub_functbl_IOXIDResolver [] =
  222.     {
  223.     (PFN_ORPC_STUB) IOXIDResolver_ResolveOxid_vxstub,
  224.     (PFN_ORPC_STUB) IOXIDResolver_SimplePing_vxstub,
  225.     (PFN_ORPC_STUB) IOXIDResolver_ComplexPing_vxstub,
  226.     (PFN_ORPC_STUB) IOXIDResolver_ServerAlive_vxstub,
  227.     (PFN_ORPC_STUB) IOXIDResolver_ResolveOxid2_vxstub,
  228.     };
  229. EXTERN_C const VXDCOM_STUB_DISPTBL IOXIDResolver_vxstub_disptbl =
  230.     {
  231.     5,
  232.     stub_functbl_IOXIDResolver
  233.     };
  234. HRESULT STDMETHODCALLTYPE ISystemActivator_ADummyMethod_vxproxy (void* pvRpcChannel)
  235.     {
  236.     RPC_PROXY_MSG msg (IID_ISystemActivator, RpcMode::DCE, 0, pvRpcChannel);
  237.     NDRTYPES ndrtypes;
  238.     HRESULT hrMethod;
  239.     HRESULT hr;
  240.     hr = msg.SendReceive (); if (FAILED (hr)) return hr;
  241.     NdrUnmarshalStream* pus = msg.unmarshalStreamGet ();
  242.     hr = widlUnmarshal (&hrMethod, pus, ndrtypes.hresult_t());
  243.     if (FAILED(hr))
  244.         return hr;
  245.     return hrMethod;
  246.     }
  247. HRESULT STDMETHODCALLTYPE ISystemActivator_ADummyMethod_vxstub (ISystemActivator* pitf, RPC_STUB_MSG& msg)
  248.     {
  249.     NDRTYPES ndrtypes;
  250.     HRESULT hr;
  251.     HRESULT hrMethod;
  252.     hrMethod = ADummyMethod ((void*) msg.channelIdGet ());
  253.     NdrMarshalStream* pms = msg.marshalStreamGet ();
  254.     hr = widlMarshal (&hrMethod, pms, ndrtypes.hresult_t());
  255.     if (FAILED(hr))
  256.         return hr;
  257.     return S_OK;
  258.     }
  259. const PFN_ORPC_STUB stub_functbl_ISystemActivator [] =
  260.     {
  261.     (PFN_ORPC_STUB) ISystemActivator_ADummyMethod_vxstub,
  262.     };
  263. EXTERN_C const VXDCOM_STUB_DISPTBL ISystemActivator_vxstub_disptbl =
  264.     {
  265.     1,
  266.     stub_functbl_ISystemActivator
  267.     };