home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / FL_proxy_c________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Text File  |  2002-08-28  |  26.3 KB  |  936 lines

  1.  
  2. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  3.  
  4. /* this ALWAYS GENERATED file contains the proxy stub code */
  5.  
  6.  
  7.  /* File created by MIDL compiler version 6.00.0347 */
  8. /* at Wed Aug 28 15:16:22 2002
  9.  */
  10. /* Compiler settings for .\CMPNT.idl:
  11.     Os, W1, Zp8, env=Win32 (32b run)
  12.     protocol : dce , ms_ext, c_ext
  13.     error checks: allocation ref bounds_check enum stub_data 
  14.     VC __declspec() decoration level: 
  15.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  16.          DECLSPEC_UUID(), MIDL_INTERFACE()
  17. */
  18. //@@MIDL_FILE_HEADING(  )
  19.  
  20. #if !defined(_M_IA64) && !defined(_M_AMD64)
  21.  
  22. /* verify that the <rpcproxy.h> version is high enough to compile this file*/
  23. #ifndef __REDQ_RPCPROXY_H_VERSION__
  24. #define __REQUIRED_RPCPROXY_H_VERSION__ 440
  25. #endif
  26.  
  27.  
  28. #include "rpcproxy.h"
  29. #ifndef __RPCPROXY_H_VERSION__
  30. #error this stub requires an updated version of <rpcproxy.h>
  31. #endif // __RPCPROXY_H_VERSION__
  32.  
  33.  
  34. #include "iface.h"
  35.  
  36. #define TYPE_FORMAT_STRING_SIZE   7                                 
  37. #define PROC_FORMAT_STRING_SIZE   13                                
  38. #define TRANSMIT_AS_TABLE_SIZE    0            
  39. #define WIRE_MARSHAL_TABLE_SIZE   0            
  40.  
  41. typedef struct _MIDL_TYPE_FORMAT_STRING
  42.     {
  43.     short          Pad;
  44.     unsigned char  Format[ TYPE_FORMAT_STRING_SIZE ];
  45.     } MIDL_TYPE_FORMAT_STRING;
  46.  
  47. typedef struct _MIDL_PROC_FORMAT_STRING
  48.     {
  49.     short          Pad;
  50.     unsigned char  Format[ PROC_FORMAT_STRING_SIZE ];
  51.     } MIDL_PROC_FORMAT_STRING;
  52.  
  53.  
  54. static RPC_SYNTAX_IDENTIFIER  _RpcTransferSyntax = 
  55. {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}};
  56.  
  57.  
  58. extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
  59. extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
  60.  
  61.  
  62. extern const MIDL_STUB_DESC Object_StubDesc;
  63.  
  64.  
  65. extern const MIDL_SERVER_INFO ICDPTests_ServerInfo;
  66. extern const MIDL_STUBLESS_PROXY_INFO ICDPTests_ProxyInfo;
  67.  
  68.  
  69. /* [propget] */ HRESULT STDMETHODCALLTYPE ICDPTests_get_AllowQIOfBrokenIMarshal_Proxy( 
  70.     ICDPTests * This,
  71.     /* [retval][out] */ BOOL *pRetVal)
  72. {
  73.  
  74.     HRESULT _RetVal;
  75.     
  76.     RPC_MESSAGE _RpcMessage;
  77.     
  78.     MIDL_STUB_MESSAGE _StubMsg;
  79.     
  80.     RpcTryExcept
  81.         {
  82.         NdrProxyInitialize(
  83.                       ( void *  )This,
  84.                       ( PRPC_MESSAGE  )&_RpcMessage,
  85.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  86.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  87.                       3);
  88.         
  89.         
  90.         
  91.         if(!pRetVal)
  92.             {
  93.             RpcRaiseException(RPC_X_NULL_REF_POINTER);
  94.             }
  95.         RpcTryFinally
  96.             {
  97.             
  98.             _StubMsg.BufferLength = 0;
  99.             NdrProxyGetBuffer(This, &_StubMsg);
  100.             NdrProxySendReceive(This, &_StubMsg);
  101.             
  102.             _StubMsg.BufferStart = (unsigned char *) _RpcMessage.Buffer; 
  103.             _StubMsg.BufferEnd   = _StubMsg.BufferStart + _RpcMessage.BufferLength;
  104.             
  105.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  106.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  107.             
  108.             _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  109.             *pRetVal = *(( BOOL * )_StubMsg.Buffer)++;
  110.             
  111.             _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  112.             
  113.             if(_StubMsg.Buffer + 4 > _StubMsg.BufferEnd)
  114.                 {
  115.                 RpcRaiseException(RPC_X_BAD_STUB_DATA);
  116.                 }
  117.             _RetVal = *(( HRESULT * )_StubMsg.Buffer)++;
  118.             
  119.             }
  120.         RpcFinally
  121.             {
  122.             NdrProxyFreeBuffer(This, &_StubMsg);
  123.             
  124.             }
  125.         RpcEndFinally
  126.         
  127.         }
  128.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  129.         {
  130.         NdrClearOutParameters(
  131.                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  132.                          ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[2],
  133.                          ( void * )pRetVal);
  134.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  135.         }
  136.     RpcEndExcept
  137.     return _RetVal;
  138. }
  139.  
  140. void __RPC_STUB ICDPTests_get_AllowQIOfBrokenIMarshal_Stub(
  141.     IRpcStubBuffer *This,
  142.     IRpcChannelBuffer *_pRpcChannelBuffer,
  143.     PRPC_MESSAGE _pRpcMessage,
  144.     DWORD *_pdwStubPhase)
  145. {
  146.     BOOL _M0    =    0;
  147.     HRESULT _RetVal;
  148.     MIDL_STUB_MESSAGE _StubMsg;
  149.     BOOL *pRetVal;
  150.     
  151. NdrStubInitialize(
  152.                      _pRpcMessage,
  153.                      &_StubMsg,
  154.                      &Object_StubDesc,
  155.                      _pRpcChannelBuffer);
  156.     ( BOOL * )pRetVal = 0;
  157.     RpcTryFinally
  158.         {
  159.         pRetVal = &_M0;
  160.         
  161.         *_pdwStubPhase = STUB_CALL_SERVER;
  162.         _RetVal = (((ICDPTests*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> get_AllowQIOfBrokenIMarshal((ICDPTests *) ((CStdStubBuffer *)This)->pvServerObject,pRetVal);
  163.         
  164.         *_pdwStubPhase = STUB_MARSHAL;
  165.         
  166.         _StubMsg.BufferLength = 36;
  167.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  168.         _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  169.         *(( BOOL * )_StubMsg.Buffer)++ = *pRetVal;
  170.         
  171.         _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  172.         *(( HRESULT * )_StubMsg.Buffer)++ = _RetVal;
  173.         
  174.         }
  175.     RpcFinally
  176.         {
  177.         }
  178.     RpcEndFinally
  179.     _pRpcMessage->BufferLength = 
  180.         (unsigned int)(_StubMsg.Buffer - (unsigned char *)_pRpcMessage->Buffer);
  181.     
  182. }
  183.  
  184.  
  185. /* [propput] */ HRESULT STDMETHODCALLTYPE ICDPTests_put_AllowQIOfBrokenIMarshal_Proxy( 
  186.     ICDPTests * This,
  187.     /* [in] */ BOOL NewVal)
  188. {
  189.  
  190.     HRESULT _RetVal;
  191.     
  192.     RPC_MESSAGE _RpcMessage;
  193.     
  194.     MIDL_STUB_MESSAGE _StubMsg;
  195.     
  196.     RpcTryExcept
  197.         {
  198.         NdrProxyInitialize(
  199.                       ( void *  )This,
  200.                       ( PRPC_MESSAGE  )&_RpcMessage,
  201.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  202.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  203.                       4);
  204.         
  205.         
  206.         
  207.         RpcTryFinally
  208.             {
  209.             
  210.             _StubMsg.BufferLength = 8;
  211.             NdrProxyGetBuffer(This, &_StubMsg);
  212.             _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  213.             *(( BOOL * )_StubMsg.Buffer)++ = NewVal;
  214.             
  215.             NdrProxySendReceive(This, &_StubMsg);
  216.             
  217.             _StubMsg.BufferStart = (unsigned char *) _RpcMessage.Buffer; 
  218.             _StubMsg.BufferEnd   = _StubMsg.BufferStart + _RpcMessage.BufferLength;
  219.             
  220.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  221.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[6] );
  222.             
  223.             _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  224.             
  225.             if(_StubMsg.Buffer + 4 > _StubMsg.BufferEnd)
  226.                 {
  227.                 RpcRaiseException(RPC_X_BAD_STUB_DATA);
  228.                 }
  229.             _RetVal = *(( HRESULT * )_StubMsg.Buffer)++;
  230.             
  231.             }
  232.         RpcFinally
  233.             {
  234.             NdrProxyFreeBuffer(This, &_StubMsg);
  235.             
  236.             }
  237.         RpcEndFinally
  238.         
  239.         }
  240.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  241.         {
  242.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  243.         }
  244.     RpcEndExcept
  245.     return _RetVal;
  246. }
  247.  
  248. void __RPC_STUB ICDPTests_put_AllowQIOfBrokenIMarshal_Stub(
  249.     IRpcStubBuffer *This,
  250.     IRpcChannelBuffer *_pRpcChannelBuffer,
  251.     PRPC_MESSAGE _pRpcMessage,
  252.     DWORD *_pdwStubPhase)
  253. {
  254.     BOOL NewVal;
  255.     HRESULT _RetVal;
  256.     MIDL_STUB_MESSAGE _StubMsg;
  257.     
  258. NdrStubInitialize(
  259.                      _pRpcMessage,
  260.                      &_StubMsg,
  261.                      &Object_StubDesc,
  262.                      _pRpcChannelBuffer);
  263.     NewVal = 0;
  264.     RpcTryFinally
  265.         {
  266.         if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  267.             NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[6] );
  268.         
  269.         _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  270.         
  271.         if(_StubMsg.Buffer + 4 > _StubMsg.BufferEnd)
  272.             {
  273.             RpcRaiseException(RPC_X_BAD_STUB_DATA);
  274.             }
  275.         NewVal = *(( BOOL * )_StubMsg.Buffer)++;
  276.         
  277.         
  278.         *_pdwStubPhase = STUB_CALL_SERVER;
  279.         _RetVal = (((ICDPTests*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> put_AllowQIOfBrokenIMarshal((ICDPTests *) ((CStdStubBuffer *)This)->pvServerObject,NewVal);
  280.         
  281.         *_pdwStubPhase = STUB_MARSHAL;
  282.         
  283.         _StubMsg.BufferLength = 8;
  284.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  285.         _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  286.         *(( HRESULT * )_StubMsg.Buffer)++ = _RetVal;
  287.         
  288.         }
  289.     RpcFinally
  290.         {
  291.         }
  292.     RpcEndFinally
  293.     _pRpcMessage->BufferLength = 
  294.         (unsigned int)(_StubMsg.Buffer - (unsigned char *)_pRpcMessage->Buffer);
  295.     
  296. }
  297.  
  298.  
  299. /* [propget] */ HRESULT STDMETHODCALLTYPE ICDPTests_get_FailAllQIs_Proxy( 
  300.     ICDPTests * This,
  301.     /* [retval][out] */ BOOL *pRetVal)
  302. {
  303.  
  304.     HRESULT _RetVal;
  305.     
  306.     RPC_MESSAGE _RpcMessage;
  307.     
  308.     MIDL_STUB_MESSAGE _StubMsg;
  309.     
  310.     RpcTryExcept
  311.         {
  312.         NdrProxyInitialize(
  313.                       ( void *  )This,
  314.                       ( PRPC_MESSAGE  )&_RpcMessage,
  315.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  316.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  317.                       5);
  318.         
  319.         
  320.         
  321.         if(!pRetVal)
  322.             {
  323.             RpcRaiseException(RPC_X_NULL_REF_POINTER);
  324.             }
  325.         RpcTryFinally
  326.             {
  327.             
  328.             _StubMsg.BufferLength = 0;
  329.             NdrProxyGetBuffer(This, &_StubMsg);
  330.             NdrProxySendReceive(This, &_StubMsg);
  331.             
  332.             _StubMsg.BufferStart = (unsigned char *) _RpcMessage.Buffer; 
  333.             _StubMsg.BufferEnd   = _StubMsg.BufferStart + _RpcMessage.BufferLength;
  334.             
  335.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  336.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  337.             
  338.             _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  339.             *pRetVal = *(( BOOL * )_StubMsg.Buffer)++;
  340.             
  341.             _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  342.             
  343.             if(_StubMsg.Buffer + 4 > _StubMsg.BufferEnd)
  344.                 {
  345.                 RpcRaiseException(RPC_X_BAD_STUB_DATA);
  346.                 }
  347.             _RetVal = *(( HRESULT * )_StubMsg.Buffer)++;
  348.             
  349.             }
  350.         RpcFinally
  351.             {
  352.             NdrProxyFreeBuffer(This, &_StubMsg);
  353.             
  354.             }
  355.         RpcEndFinally
  356.         
  357.         }
  358.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  359.         {
  360.         NdrClearOutParameters(
  361.                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  362.                          ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[2],
  363.                          ( void * )pRetVal);
  364.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  365.         }
  366.     RpcEndExcept
  367.     return _RetVal;
  368. }
  369.  
  370. void __RPC_STUB ICDPTests_get_FailAllQIs_Stub(
  371.     IRpcStubBuffer *This,
  372.     IRpcChannelBuffer *_pRpcChannelBuffer,
  373.     PRPC_MESSAGE _pRpcMessage,
  374.     DWORD *_pdwStubPhase)
  375. {
  376.     BOOL _M1    =    0;
  377.     HRESULT _RetVal;
  378.     MIDL_STUB_MESSAGE _StubMsg;
  379.     BOOL *pRetVal;
  380.     
  381. NdrStubInitialize(
  382.                      _pRpcMessage,
  383.                      &_StubMsg,
  384.                      &Object_StubDesc,
  385.                      _pRpcChannelBuffer);
  386.     ( BOOL * )pRetVal = 0;
  387.     RpcTryFinally
  388.         {
  389.         pRetVal = &_M1;
  390.         
  391.         *_pdwStubPhase = STUB_CALL_SERVER;
  392.         _RetVal = (((ICDPTests*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> get_FailAllQIs((ICDPTests *) ((CStdStubBuffer *)This)->pvServerObject,pRetVal);
  393.         
  394.         *_pdwStubPhase = STUB_MARSHAL;
  395.         
  396.         _StubMsg.BufferLength = 36;
  397.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  398.         _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  399.         *(( BOOL * )_StubMsg.Buffer)++ = *pRetVal;
  400.         
  401.         _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  402.         *(( HRESULT * )_StubMsg.Buffer)++ = _RetVal;
  403.         
  404.         }
  405.     RpcFinally
  406.         {
  407.         }
  408.     RpcEndFinally
  409.     _pRpcMessage->BufferLength = 
  410.         (unsigned int)(_StubMsg.Buffer - (unsigned char *)_pRpcMessage->Buffer);
  411.     
  412. }
  413.  
  414.  
  415. /* [propput] */ HRESULT STDMETHODCALLTYPE ICDPTests_put_FailAllQIs_Proxy( 
  416.     ICDPTests * This,
  417.     /* [in] */ BOOL NewVal)
  418. {
  419.  
  420.     HRESULT _RetVal;
  421.     
  422.     RPC_MESSAGE _RpcMessage;
  423.     
  424.     MIDL_STUB_MESSAGE _StubMsg;
  425.     
  426.     RpcTryExcept
  427.         {
  428.         NdrProxyInitialize(
  429.                       ( void *  )This,
  430.                       ( PRPC_MESSAGE  )&_RpcMessage,
  431.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  432.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  433.                       6);
  434.         
  435.         
  436.         
  437.         RpcTryFinally
  438.             {
  439.             
  440.             _StubMsg.BufferLength = 8;
  441.             NdrProxyGetBuffer(This, &_StubMsg);
  442.             _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  443.             *(( BOOL * )_StubMsg.Buffer)++ = NewVal;
  444.             
  445.             NdrProxySendReceive(This, &_StubMsg);
  446.             
  447.             _StubMsg.BufferStart = (unsigned char *) _RpcMessage.Buffer; 
  448.             _StubMsg.BufferEnd   = _StubMsg.BufferStart + _RpcMessage.BufferLength;
  449.             
  450.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  451.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[6] );
  452.             
  453.             _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  454.             
  455.             if(_StubMsg.Buffer + 4 > _StubMsg.BufferEnd)
  456.                 {
  457.                 RpcRaiseException(RPC_X_BAD_STUB_DATA);
  458.                 }
  459.             _RetVal = *(( HRESULT * )_StubMsg.Buffer)++;
  460.             
  461.             }
  462.         RpcFinally
  463.             {
  464.             NdrProxyFreeBuffer(This, &_StubMsg);
  465.             
  466.             }
  467.         RpcEndFinally
  468.         
  469.         }
  470.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  471.         {
  472.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  473.         }
  474.     RpcEndExcept
  475.     return _RetVal;
  476. }
  477.  
  478. void __RPC_STUB ICDPTests_put_FailAllQIs_Stub(
  479.     IRpcStubBuffer *This,
  480.     IRpcChannelBuffer *_pRpcChannelBuffer,
  481.     PRPC_MESSAGE _pRpcMessage,
  482.     DWORD *_pdwStubPhase)
  483. {
  484.     BOOL NewVal;
  485.     HRESULT _RetVal;
  486.     MIDL_STUB_MESSAGE _StubMsg;
  487.     
  488. NdrStubInitialize(
  489.                      _pRpcMessage,
  490.                      &_StubMsg,
  491.                      &Object_StubDesc,
  492.                      _pRpcChannelBuffer);
  493.     NewVal = 0;
  494.     RpcTryFinally
  495.         {
  496.         if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  497.             NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[6] );
  498.         
  499.         _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  500.         
  501.         if(_StubMsg.Buffer + 4 > _StubMsg.BufferEnd)
  502.             {
  503.             RpcRaiseException(RPC_X_BAD_STUB_DATA);
  504.             }
  505.         NewVal = *(( BOOL * )_StubMsg.Buffer)++;
  506.         
  507.         
  508.         *_pdwStubPhase = STUB_CALL_SERVER;
  509.         _RetVal = (((ICDPTests*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> put_FailAllQIs((ICDPTests *) ((CStdStubBuffer *)This)->pvServerObject,NewVal);
  510.         
  511.         *_pdwStubPhase = STUB_MARSHAL;
  512.         
  513.         _StubMsg.BufferLength = 8;
  514.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  515.         _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  516.         *(( HRESULT * )_StubMsg.Buffer)++ = _RetVal;
  517.         
  518.         }
  519.     RpcFinally
  520.         {
  521.         }
  522.     RpcEndFinally
  523.     _pRpcMessage->BufferLength = 
  524.         (unsigned int)(_StubMsg.Buffer - (unsigned char *)_pRpcMessage->Buffer);
  525.     
  526. }
  527.  
  528.  
  529. extern const MIDL_STUB_DESC Object_StubDesc;
  530.  
  531.  
  532. extern const MIDL_SERVER_INFO IFoo_ServerInfo;
  533. extern const MIDL_STUBLESS_PROXY_INFO IFoo_ProxyInfo;
  534.  
  535.  
  536. HRESULT STDMETHODCALLTYPE IFoo_Foo_Proxy( 
  537.     IFoo * This)
  538. {
  539.  
  540.     HRESULT _RetVal;
  541.     
  542.     RPC_MESSAGE _RpcMessage;
  543.     
  544.     MIDL_STUB_MESSAGE _StubMsg;
  545.     
  546.     RpcTryExcept
  547.         {
  548.         NdrProxyInitialize(
  549.                       ( void *  )This,
  550.                       ( PRPC_MESSAGE  )&_RpcMessage,
  551.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  552.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  553.                       3);
  554.         
  555.         
  556.         
  557.         RpcTryFinally
  558.             {
  559.             
  560.             _StubMsg.BufferLength = 0;
  561.             NdrProxyGetBuffer(This, &_StubMsg);
  562.             NdrProxySendReceive(This, &_StubMsg);
  563.             
  564.             _StubMsg.BufferStart = (unsigned char *) _RpcMessage.Buffer; 
  565.             _StubMsg.BufferEnd   = _StubMsg.BufferStart + _RpcMessage.BufferLength;
  566.             
  567.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  568.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[10] );
  569.             
  570.             _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  571.             
  572.             if(_StubMsg.Buffer + 4 > _StubMsg.BufferEnd)
  573.                 {
  574.                 RpcRaiseException(RPC_X_BAD_STUB_DATA);
  575.                 }
  576.             _RetVal = *(( HRESULT * )_StubMsg.Buffer)++;
  577.             
  578.             }
  579.         RpcFinally
  580.             {
  581.             NdrProxyFreeBuffer(This, &_StubMsg);
  582.             
  583.             }
  584.         RpcEndFinally
  585.         
  586.         }
  587.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  588.         {
  589.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  590.         }
  591.     RpcEndExcept
  592.     return _RetVal;
  593. }
  594.  
  595. void __RPC_STUB IFoo_Foo_Stub(
  596.     IRpcStubBuffer *This,
  597.     IRpcChannelBuffer *_pRpcChannelBuffer,
  598.     PRPC_MESSAGE _pRpcMessage,
  599.     DWORD *_pdwStubPhase)
  600. {
  601.     HRESULT _RetVal;
  602.     MIDL_STUB_MESSAGE _StubMsg;
  603.     
  604. NdrStubInitialize(
  605.                      _pRpcMessage,
  606.                      &_StubMsg,
  607.                      &Object_StubDesc,
  608.                      _pRpcChannelBuffer);
  609.     RpcTryFinally
  610.         {
  611.         
  612.         *_pdwStubPhase = STUB_CALL_SERVER;
  613.         _RetVal = (((IFoo*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> Foo((IFoo *) ((CStdStubBuffer *)This)->pvServerObject);
  614.         
  615.         *_pdwStubPhase = STUB_MARSHAL;
  616.         
  617.         _StubMsg.BufferLength = 8;
  618.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  619.         _StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  620.         *(( HRESULT * )_StubMsg.Buffer)++ = _RetVal;
  621.         
  622.         }
  623.     RpcFinally
  624.         {
  625.         }
  626.     RpcEndFinally
  627.     _pRpcMessage->BufferLength = 
  628.         (unsigned int)(_StubMsg.Buffer - (unsigned char *)_pRpcMessage->Buffer);
  629.     
  630. }
  631.  
  632.  
  633. extern const MIDL_STUB_DESC Object_StubDesc;
  634.  
  635.  
  636. extern const MIDL_SERVER_INFO IUniversalMarshaler_ServerInfo;
  637. extern const MIDL_STUBLESS_PROXY_INFO IUniversalMarshaler_ProxyInfo;
  638.  
  639.  
  640.  
  641. #if !defined(__RPC_WIN32__)
  642. #error  Invalid build platform for this stub.
  643. #endif
  644.  
  645. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  646.     {
  647.         0,
  648.         {
  649.             
  650.             0x51,        /* FC_OUT_PARAM */
  651.             0x1,        /* x86 stack size = 1 */
  652. /*  2 */    NdrFcShort( 0x2 ),    /* Type Offset=2 */
  653. /*  4 */    0x53,        /* FC_RETURN_PARAM_BASETYPE */
  654.             0x8,        /* FC_LONG */
  655. /*  6 */    0x4e,        /* FC_IN_PARAM_BASETYPE */
  656.             0x8,        /* FC_LONG */
  657. /*  8 */    0x53,        /* FC_RETURN_PARAM_BASETYPE */
  658.             0x8,        /* FC_LONG */
  659. /* 10 */    0x53,        /* FC_RETURN_PARAM_BASETYPE */
  660.             0x8,        /* FC_LONG */
  661.  
  662.             0x0
  663.         }
  664.     };
  665.  
  666. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  667.     {
  668.         0,
  669.         {
  670.             NdrFcShort( 0x0 ),    /* 0 */
  671. /*  2 */    
  672.             0x11, 0xc,    /* FC_RP [alloced_on_stack] [simple_pointer] */
  673. /*  4 */    0x8,        /* FC_LONG */
  674.             0x5c,        /* FC_PAD */
  675.  
  676.             0x0
  677.         }
  678.     };
  679.  
  680.  
  681. /* Object interface: IUnknown, ver. 0.0,
  682.    GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
  683.  
  684.  
  685. /* Object interface: ICDPTests, ver. 0.0,
  686.    GUID={0x00000abc,0xb41b,0x11cf,{0xa6,0xbb,0x00,0x80,0xc7,0xb2,0xd6,0x82}} */
  687.  
  688. #pragma code_seg(".orpc")
  689. static const unsigned short ICDPTests_FormatStringOffsetTable[] =
  690.     {
  691.     0,
  692.     6,
  693.     0,
  694.     6
  695.     };
  696.  
  697. static const MIDL_STUBLESS_PROXY_INFO ICDPTests_ProxyInfo =
  698.     {
  699.     &Object_StubDesc,
  700.     __MIDL_ProcFormatString.Format,
  701.     &ICDPTests_FormatStringOffsetTable[-3],
  702.     0,
  703.     0,
  704.     0
  705.     };
  706.  
  707.  
  708. static const MIDL_SERVER_INFO ICDPTests_ServerInfo = 
  709.     {
  710.     &Object_StubDesc,
  711.     0,
  712.     __MIDL_ProcFormatString.Format,
  713.     &ICDPTests_FormatStringOffsetTable[-3],
  714.     0,
  715.     0,
  716.     0,
  717.     0};
  718. const CINTERFACE_PROXY_VTABLE(7) _ICDPTestsProxyVtbl = 
  719. {
  720.     &IID_ICDPTests,
  721.     IUnknown_QueryInterface_Proxy,
  722.     IUnknown_AddRef_Proxy,
  723.     IUnknown_Release_Proxy ,
  724.     ICDPTests_get_AllowQIOfBrokenIMarshal_Proxy ,
  725.     ICDPTests_put_AllowQIOfBrokenIMarshal_Proxy ,
  726.     ICDPTests_get_FailAllQIs_Proxy ,
  727.     ICDPTests_put_FailAllQIs_Proxy
  728. };
  729.  
  730.  
  731. static const PRPC_STUB_FUNCTION ICDPTests_table[] =
  732. {
  733.     ICDPTests_get_AllowQIOfBrokenIMarshal_Stub,
  734.     ICDPTests_put_AllowQIOfBrokenIMarshal_Stub,
  735.     ICDPTests_get_FailAllQIs_Stub,
  736.     ICDPTests_put_FailAllQIs_Stub
  737. };
  738.  
  739. const CInterfaceStubVtbl _ICDPTestsStubVtbl =
  740. {
  741.     &IID_ICDPTests,
  742.     &ICDPTests_ServerInfo,
  743.     7,
  744.     &ICDPTests_table[-3],
  745.     CStdStubBuffer_METHODS
  746. };
  747.  
  748.  
  749. /* Object interface: IFoo, ver. 0.0,
  750.    GUID={0x000F00F0,0x0F00,0x11cf,{0xa6,0xbb,0x00,0x80,0xc7,0xb2,0xd6,0x84}} */
  751.  
  752. #pragma code_seg(".orpc")
  753. static const unsigned short IFoo_FormatStringOffsetTable[] =
  754.     {
  755.     10
  756.     };
  757.  
  758. static const MIDL_STUBLESS_PROXY_INFO IFoo_ProxyInfo =
  759.     {
  760.     &Object_StubDesc,
  761.     __MIDL_ProcFormatString.Format,
  762.     &IFoo_FormatStringOffsetTable[-3],
  763.     0,
  764.     0,
  765.     0
  766.     };
  767.  
  768.  
  769. static const MIDL_SERVER_INFO IFoo_ServerInfo = 
  770.     {
  771.     &Object_StubDesc,
  772.     0,
  773.     __MIDL_ProcFormatString.Format,
  774.     &IFoo_FormatStringOffsetTable[-3],
  775.     0,
  776.     0,
  777.     0,
  778.     0};
  779. const CINTERFACE_PROXY_VTABLE(4) _IFooProxyVtbl = 
  780. {
  781.     &IID_IFoo,
  782.     IUnknown_QueryInterface_Proxy,
  783.     IUnknown_AddRef_Proxy,
  784.     IUnknown_Release_Proxy ,
  785.     IFoo_Foo_Proxy
  786. };
  787.  
  788.  
  789. static const PRPC_STUB_FUNCTION IFoo_table[] =
  790. {
  791.     IFoo_Foo_Stub
  792. };
  793.  
  794. const CInterfaceStubVtbl _IFooStubVtbl =
  795. {
  796.     &IID_IFoo,
  797.     &IFoo_ServerInfo,
  798.     4,
  799.     &IFoo_table[-3],
  800.     CStdStubBuffer_METHODS
  801. };
  802.  
  803.  
  804. /* Object interface: IUniversalMarshaler, ver. 0.0,
  805.    GUID={0x56823962,0x6326,0x3651,{0xa6,0x32,0x62,0x66,0x90,0x87,0x32,0x84}} */
  806.  
  807. #pragma code_seg(".orpc")
  808. static const unsigned short IUniversalMarshaler_FormatStringOffsetTable[] =
  809.     {
  810.     0
  811.     };
  812.  
  813. static const MIDL_STUBLESS_PROXY_INFO IUniversalMarshaler_ProxyInfo =
  814.     {
  815.     &Object_StubDesc,
  816.     __MIDL_ProcFormatString.Format,
  817.     &IUniversalMarshaler_FormatStringOffsetTable[-3],
  818.     0,
  819.     0,
  820.     0
  821.     };
  822.  
  823.  
  824. static const MIDL_SERVER_INFO IUniversalMarshaler_ServerInfo = 
  825.     {
  826.     &Object_StubDesc,
  827.     0,
  828.     __MIDL_ProcFormatString.Format,
  829.     &IUniversalMarshaler_FormatStringOffsetTable[-3],
  830.     0,
  831.     0,
  832.     0,
  833.     0};
  834. const CINTERFACE_PROXY_VTABLE(3) _IUniversalMarshalerProxyVtbl = 
  835. {
  836.     &IID_IUniversalMarshaler,
  837.     IUnknown_QueryInterface_Proxy,
  838.     IUnknown_AddRef_Proxy,
  839.     IUnknown_Release_Proxy
  840. };
  841.  
  842.  
  843. static const PRPC_STUB_FUNCTION IUniversalMarshaler_table[] =
  844. {
  845.     0    /* a dummy for an empty interface */
  846. };
  847.  
  848. const CInterfaceStubVtbl _IUniversalMarshalerStubVtbl =
  849. {
  850.     &IID_IUniversalMarshaler,
  851.     &IUniversalMarshaler_ServerInfo,
  852.     3,
  853.     &IUniversalMarshaler_table[-3],
  854.     CStdStubBuffer_METHODS
  855. };
  856.  
  857. static const MIDL_STUB_DESC Object_StubDesc = 
  858.     {
  859.     0,
  860.     NdrOleAllocate,
  861.     NdrOleFree,
  862.     0,
  863.     0,
  864.     0,
  865.     0,
  866.     0,
  867.     __MIDL_TypeFormatString.Format,
  868.     1, /* -error bounds_check flag */
  869.     0x10001, /* Ndr library version */
  870.     0,
  871.     0x600015b, /* MIDL Version 6.0.347 */
  872.     0,
  873.     0,
  874.     0,  /* notify & notify_flag routine table */
  875.     0x1, /* MIDL flag */
  876.     0, /* cs routines */
  877.     0,   /* proxy/server info */
  878.     0   /* Reserved5 */
  879.     };
  880.  
  881. const CInterfaceProxyVtbl * _CMPNT_ProxyVtblList[] = 
  882. {
  883.     ( CInterfaceProxyVtbl *) &_IUniversalMarshalerProxyVtbl,
  884.     ( CInterfaceProxyVtbl *) &_ICDPTestsProxyVtbl,
  885.     ( CInterfaceProxyVtbl *) &_IFooProxyVtbl,
  886.     0
  887. };
  888.  
  889. const CInterfaceStubVtbl * _CMPNT_StubVtblList[] = 
  890. {
  891.     ( CInterfaceStubVtbl *) &_IUniversalMarshalerStubVtbl,
  892.     ( CInterfaceStubVtbl *) &_ICDPTestsStubVtbl,
  893.     ( CInterfaceStubVtbl *) &_IFooStubVtbl,
  894.     0
  895. };
  896.  
  897. PCInterfaceName const _CMPNT_InterfaceNamesList[] = 
  898. {
  899.     "IUniversalMarshaler",
  900.     "ICDPTests",
  901.     "IFoo",
  902.     0
  903. };
  904.  
  905.  
  906. #define _CMPNT_CHECK_IID(n)    IID_GENERIC_CHECK_IID( _CMPNT, pIID, n)
  907.  
  908. int __stdcall _CMPNT_IID_Lookup( const IID * pIID, int * pIndex )
  909. {
  910.     IID_BS_LOOKUP_SETUP
  911.  
  912.     IID_BS_LOOKUP_INITIAL_TEST( _CMPNT, 3, 2 )
  913.     IID_BS_LOOKUP_NEXT_TEST( _CMPNT, 1 )
  914.     IID_BS_LOOKUP_RETURN_RESULT( _CMPNT, 3, *pIndex )
  915.     
  916. }
  917.  
  918. const ExtendedProxyFileInfo CMPNT_ProxyFileInfo = 
  919. {
  920.     (PCInterfaceProxyVtblList *) & _CMPNT_ProxyVtblList,
  921.     (PCInterfaceStubVtblList *) & _CMPNT_StubVtblList,
  922.     (const PCInterfaceName * ) & _CMPNT_InterfaceNamesList,
  923.     0, // no delegation
  924.     & _CMPNT_IID_Lookup, 
  925.     3,
  926.     1,
  927.     0, /* table of [async_uuid] interfaces */
  928.     0, /* Filler1 */
  929.     0, /* Filler2 */
  930.     0  /* Filler3 */
  931. };
  932.  
  933.  
  934. #endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/
  935.  
  936.