home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / commap / aggreg / aggreg_p.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-03  |  28.0 KB  |  945 lines

  1. /* this ALWAYS GENERATED file contains the proxy stub code */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.03.0110 */
  5. /* at Wed Feb 25 10:33:18 1998
  6.  */
  7. /* Compiler settings for Aggreg.idl:
  8.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: none
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12.  
  13.  
  14. /* verify that the <rpcproxy.h> version is high enough to compile this file*/
  15. #ifndef __REDQ_RPCPROXY_H_VERSION__
  16. #define __REQUIRED_RPCPROXY_H_VERSION__ 440
  17. #endif
  18.  
  19.  
  20. #include "rpcproxy.h"
  21. #ifndef __RPCPROXY_H_VERSION__
  22. #error this stub requires an updated version of <rpcproxy.h>
  23. #endif // __RPCPROXY_H_VERSION__
  24.  
  25.  
  26. #include "Aggreg.h"
  27.  
  28. #define TYPE_FORMAT_STRING_SIZE   81                                
  29. #define PROC_FORMAT_STRING_SIZE   25                                
  30.  
  31. typedef struct _MIDL_TYPE_FORMAT_STRING
  32.     {
  33.     short          Pad;
  34.     unsigned char  Format[ TYPE_FORMAT_STRING_SIZE ];
  35.     } MIDL_TYPE_FORMAT_STRING;
  36.  
  37. typedef struct _MIDL_PROC_FORMAT_STRING
  38.     {
  39.     short          Pad;
  40.     unsigned char  Format[ PROC_FORMAT_STRING_SIZE ];
  41.     } MIDL_PROC_FORMAT_STRING;
  42.  
  43.  
  44. extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
  45. extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
  46.  
  47.  
  48. /* Object interface: IUnknown, ver. 0.0,
  49.    GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
  50.  
  51.  
  52. /* Object interface: IDispatch, ver. 0.0,
  53.    GUID={0x00020400,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
  54.  
  55.  
  56. /* Object interface: IAgg, ver. 0.0,
  57.    GUID={0x4F9A68FD,0xDD9D,0x11CF,{0x94,0x62,0x00,0xAA,0x00,0xBB,0xAD,0x7F}} */
  58.  
  59.  
  60. extern const MIDL_STUB_DESC Object_StubDesc;
  61.  
  62.  
  63. #pragma code_seg(".orpc")
  64.  
  65. /* [id][propget] */ HRESULT STDMETHODCALLTYPE IAgg_get_Name_Proxy( 
  66.     IAgg __RPC_FAR * This,
  67.     /* [retval][out] */ BSTR __RPC_FAR *pbstrName)
  68. {
  69.  
  70.     HRESULT _RetVal;
  71.     
  72.     RPC_MESSAGE _RpcMessage;
  73.     
  74.     MIDL_STUB_MESSAGE _StubMsg;
  75.     
  76.     MIDL_memset(
  77.                pbstrName,
  78.                0,
  79.                sizeof( BSTR  ));
  80.     RpcTryExcept
  81.         {
  82.         NdrProxyInitialize(
  83.                       ( void __RPC_FAR *  )This,
  84.                       ( PRPC_MESSAGE  )&_RpcMessage,
  85.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  86.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  87.                       7);
  88.         
  89.         
  90.         
  91.         RpcTryFinally
  92.             {
  93.             
  94.             _StubMsg.BufferLength = 0U;
  95.             NdrProxyGetBuffer(This, &_StubMsg);
  96.             NdrProxySendReceive(This, &_StubMsg);
  97.             
  98.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  99.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  100.             
  101.             NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
  102.                                       (unsigned char __RPC_FAR * __RPC_FAR *)&pbstrName,
  103.                                       (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[28],
  104.                                       (unsigned char)0 );
  105.             
  106.             _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  107.             _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
  108.             
  109.             }
  110.         RpcFinally
  111.             {
  112.             NdrProxyFreeBuffer(This, &_StubMsg);
  113.             
  114.             }
  115.         RpcEndFinally
  116.         
  117.         }
  118.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  119.         {
  120.         NdrClearOutParameters(
  121.                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  122.                          ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[0],
  123.                          ( void __RPC_FAR * )pbstrName);
  124.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  125.         }
  126.     RpcEndExcept
  127.     return _RetVal;
  128. }
  129.  
  130. void __RPC_STUB IAgg_get_Name_Stub(
  131.     IRpcStubBuffer *This,
  132.     IRpcChannelBuffer *_pRpcChannelBuffer,
  133.     PRPC_MESSAGE _pRpcMessage,
  134.     DWORD *_pdwStubPhase)
  135. {
  136.     BSTR _M0;
  137.     HRESULT _RetVal;
  138.     MIDL_STUB_MESSAGE _StubMsg;
  139.     BSTR __RPC_FAR *pbstrName;
  140.     
  141. NdrStubInitialize(
  142.                      _pRpcMessage,
  143.                      &_StubMsg,
  144.                      &Object_StubDesc,
  145.                      _pRpcChannelBuffer);
  146.     ( BSTR __RPC_FAR * )pbstrName = 0;
  147.     RpcTryFinally
  148.         {
  149.         pbstrName = &_M0;
  150.         MIDL_memset(
  151.                pbstrName,
  152.                0,
  153.                sizeof( BSTR  ));
  154.         
  155.         *_pdwStubPhase = STUB_CALL_SERVER;
  156.         _RetVal = (((IAgg *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> get_Name((IAgg *) ((CStdStubBuffer *)This)->pvServerObject,pbstrName);
  157.         
  158.         *_pdwStubPhase = STUB_MARSHAL;
  159.         
  160.         _StubMsg.BufferLength = 4U + 11U;
  161.         NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
  162.                                   (unsigned char __RPC_FAR *)pbstrName,
  163.                                   (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[28] );
  164.         
  165.         _StubMsg.BufferLength += 16;
  166.         
  167.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  168.         NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
  169.                                 (unsigned char __RPC_FAR *)pbstrName,
  170.                                 (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[28] );
  171.         
  172.         _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  173.         *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
  174.         
  175.         }
  176.     RpcFinally
  177.         {
  178.         NdrPointerFree( &_StubMsg,
  179.                         (unsigned char __RPC_FAR *)pbstrName,
  180.                         &__MIDL_TypeFormatString.Format[0] );
  181.         
  182.         }
  183.     RpcEndFinally
  184.     _pRpcMessage->BufferLength = 
  185.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  186.     
  187. }
  188.  
  189. CINTERFACE_PROXY_VTABLE(8) _IAggProxyVtbl = 
  190. {
  191.     &IID_IAgg,
  192.     IUnknown_QueryInterface_Proxy,
  193.     IUnknown_AddRef_Proxy,
  194.     IUnknown_Release_Proxy ,
  195.     0 /* IDispatch_GetTypeInfoCount_Proxy */ ,
  196.     0 /* IDispatch_GetTypeInfo_Proxy */ ,
  197.     0 /* IDispatch_GetIDsOfNames_Proxy */ ,
  198.     0 /* IDispatch_Invoke_Proxy */ ,
  199.     IAgg_get_Name_Proxy
  200. };
  201.  
  202.  
  203. static const PRPC_STUB_FUNCTION IAgg_table[] =
  204. {
  205.     STUB_FORWARDING_FUNCTION,
  206.     STUB_FORWARDING_FUNCTION,
  207.     STUB_FORWARDING_FUNCTION,
  208.     STUB_FORWARDING_FUNCTION,
  209.     IAgg_get_Name_Stub
  210. };
  211.  
  212. CInterfaceStubVtbl _IAggStubVtbl =
  213. {
  214.     &IID_IAgg,
  215.     0,
  216.     8,
  217.     &IAgg_table[-3],
  218.     CStdStubBuffer_DELEGATING_METHODS
  219. };
  220.  
  221.  
  222. /* Object interface: IAggBlind, ver. 0.0,
  223.    GUID={0x4F9A6812,0xDD9D,0x11CF,{0x94,0x62,0x00,0xAA,0x00,0xBB,0xAD,0x7F}} */
  224.  
  225.  
  226. extern const MIDL_STUB_DESC Object_StubDesc;
  227.  
  228.  
  229. #pragma code_seg(".orpc")
  230.  
  231. /* [id][propget] */ HRESULT STDMETHODCALLTYPE IAggBlind_get_Name_Proxy( 
  232.     IAggBlind __RPC_FAR * This,
  233.     /* [retval][out] */ BSTR __RPC_FAR *pbstrName)
  234. {
  235.  
  236.     HRESULT _RetVal;
  237.     
  238.     RPC_MESSAGE _RpcMessage;
  239.     
  240.     MIDL_STUB_MESSAGE _StubMsg;
  241.     
  242.     MIDL_memset(
  243.                pbstrName,
  244.                0,
  245.                sizeof( BSTR  ));
  246.     RpcTryExcept
  247.         {
  248.         NdrProxyInitialize(
  249.                       ( void __RPC_FAR *  )This,
  250.                       ( PRPC_MESSAGE  )&_RpcMessage,
  251.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  252.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  253.                       7);
  254.         
  255.         
  256.         
  257.         RpcTryFinally
  258.             {
  259.             
  260.             _StubMsg.BufferLength = 0U;
  261.             NdrProxyGetBuffer(This, &_StubMsg);
  262.             NdrProxySendReceive(This, &_StubMsg);
  263.             
  264.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  265.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[6] );
  266.             
  267.             NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
  268.                                       (unsigned char __RPC_FAR * __RPC_FAR *)&pbstrName,
  269.                                       (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[42],
  270.                                       (unsigned char)0 );
  271.             
  272.             _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  273.             _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
  274.             
  275.             }
  276.         RpcFinally
  277.             {
  278.             NdrProxyFreeBuffer(This, &_StubMsg);
  279.             
  280.             }
  281.         RpcEndFinally
  282.         
  283.         }
  284.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  285.         {
  286.         NdrClearOutParameters(
  287.                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  288.                          ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[38],
  289.                          ( void __RPC_FAR * )pbstrName);
  290.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  291.         }
  292.     RpcEndExcept
  293.     return _RetVal;
  294. }
  295.  
  296. void __RPC_STUB IAggBlind_get_Name_Stub(
  297.     IRpcStubBuffer *This,
  298.     IRpcChannelBuffer *_pRpcChannelBuffer,
  299.     PRPC_MESSAGE _pRpcMessage,
  300.     DWORD *_pdwStubPhase)
  301. {
  302.     BSTR _M1;
  303.     HRESULT _RetVal;
  304.     MIDL_STUB_MESSAGE _StubMsg;
  305.     BSTR __RPC_FAR *pbstrName;
  306.     
  307. NdrStubInitialize(
  308.                      _pRpcMessage,
  309.                      &_StubMsg,
  310.                      &Object_StubDesc,
  311.                      _pRpcChannelBuffer);
  312.     ( BSTR __RPC_FAR * )pbstrName = 0;
  313.     RpcTryFinally
  314.         {
  315.         pbstrName = &_M1;
  316.         MIDL_memset(
  317.                pbstrName,
  318.                0,
  319.                sizeof( BSTR  ));
  320.         
  321.         *_pdwStubPhase = STUB_CALL_SERVER;
  322.         _RetVal = (((IAggBlind *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> get_Name((IAggBlind *) ((CStdStubBuffer *)This)->pvServerObject,pbstrName);
  323.         
  324.         *_pdwStubPhase = STUB_MARSHAL;
  325.         
  326.         _StubMsg.BufferLength = 4U + 11U;
  327.         NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
  328.                                   (unsigned char __RPC_FAR *)pbstrName,
  329.                                   (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[42] );
  330.         
  331.         _StubMsg.BufferLength += 16;
  332.         
  333.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  334.         NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
  335.                                 (unsigned char __RPC_FAR *)pbstrName,
  336.                                 (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[42] );
  337.         
  338.         _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  339.         *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
  340.         
  341.         }
  342.     RpcFinally
  343.         {
  344.         NdrPointerFree( &_StubMsg,
  345.                         (unsigned char __RPC_FAR *)pbstrName,
  346.                         &__MIDL_TypeFormatString.Format[38] );
  347.         
  348.         }
  349.     RpcEndFinally
  350.     _pRpcMessage->BufferLength = 
  351.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  352.     
  353. }
  354.  
  355. CINTERFACE_PROXY_VTABLE(8) _IAggBlindProxyVtbl = 
  356. {
  357.     &IID_IAggBlind,
  358.     IUnknown_QueryInterface_Proxy,
  359.     IUnknown_AddRef_Proxy,
  360.     IUnknown_Release_Proxy ,
  361.     0 /* IDispatch_GetTypeInfoCount_Proxy */ ,
  362.     0 /* IDispatch_GetTypeInfo_Proxy */ ,
  363.     0 /* IDispatch_GetIDsOfNames_Proxy */ ,
  364.     0 /* IDispatch_Invoke_Proxy */ ,
  365.     IAggBlind_get_Name_Proxy
  366. };
  367.  
  368.  
  369. static const PRPC_STUB_FUNCTION IAggBlind_table[] =
  370. {
  371.     STUB_FORWARDING_FUNCTION,
  372.     STUB_FORWARDING_FUNCTION,
  373.     STUB_FORWARDING_FUNCTION,
  374.     STUB_FORWARDING_FUNCTION,
  375.     IAggBlind_get_Name_Stub
  376. };
  377.  
  378. CInterfaceStubVtbl _IAggBlindStubVtbl =
  379. {
  380.     &IID_IAggBlind,
  381.     0,
  382.     8,
  383.     &IAggBlind_table[-3],
  384.     CStdStubBuffer_DELEGATING_METHODS
  385. };
  386.  
  387.  
  388. /* Object interface: IAutoAgg, ver. 0.0,
  389.    GUID={0x4F9A6817,0xDD9D,0x11CF,{0x94,0x62,0x00,0xAA,0x00,0xBB,0xAD,0x7F}} */
  390.  
  391.  
  392. extern const MIDL_STUB_DESC Object_StubDesc;
  393.  
  394.  
  395. #pragma code_seg(".orpc")
  396.  
  397. /* [id][propget] */ HRESULT STDMETHODCALLTYPE IAutoAgg_get_Name_Proxy( 
  398.     IAutoAgg __RPC_FAR * This,
  399.     /* [retval][out] */ BSTR __RPC_FAR *pbstrName)
  400. {
  401.  
  402.     HRESULT _RetVal;
  403.     
  404.     RPC_MESSAGE _RpcMessage;
  405.     
  406.     MIDL_STUB_MESSAGE _StubMsg;
  407.     
  408.     MIDL_memset(
  409.                pbstrName,
  410.                0,
  411.                sizeof( BSTR  ));
  412.     RpcTryExcept
  413.         {
  414.         NdrProxyInitialize(
  415.                       ( void __RPC_FAR *  )This,
  416.                       ( PRPC_MESSAGE  )&_RpcMessage,
  417.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  418.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  419.                       7);
  420.         
  421.         
  422.         
  423.         RpcTryFinally
  424.             {
  425.             
  426.             _StubMsg.BufferLength = 0U;
  427.             NdrProxyGetBuffer(This, &_StubMsg);
  428.             NdrProxySendReceive(This, &_StubMsg);
  429.             
  430.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  431.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[12] );
  432.             
  433.             NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
  434.                                       (unsigned char __RPC_FAR * __RPC_FAR *)&pbstrName,
  435.                                       (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[56],
  436.                                       (unsigned char)0 );
  437.             
  438.             _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  439.             _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
  440.             
  441.             }
  442.         RpcFinally
  443.             {
  444.             NdrProxyFreeBuffer(This, &_StubMsg);
  445.             
  446.             }
  447.         RpcEndFinally
  448.         
  449.         }
  450.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  451.         {
  452.         NdrClearOutParameters(
  453.                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  454.                          ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[52],
  455.                          ( void __RPC_FAR * )pbstrName);
  456.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  457.         }
  458.     RpcEndExcept
  459.     return _RetVal;
  460. }
  461.  
  462. void __RPC_STUB IAutoAgg_get_Name_Stub(
  463.     IRpcStubBuffer *This,
  464.     IRpcChannelBuffer *_pRpcChannelBuffer,
  465.     PRPC_MESSAGE _pRpcMessage,
  466.     DWORD *_pdwStubPhase)
  467. {
  468.     BSTR _M2;
  469.     HRESULT _RetVal;
  470.     MIDL_STUB_MESSAGE _StubMsg;
  471.     BSTR __RPC_FAR *pbstrName;
  472.     
  473. NdrStubInitialize(
  474.                      _pRpcMessage,
  475.                      &_StubMsg,
  476.                      &Object_StubDesc,
  477.                      _pRpcChannelBuffer);
  478.     ( BSTR __RPC_FAR * )pbstrName = 0;
  479.     RpcTryFinally
  480.         {
  481.         pbstrName = &_M2;
  482.         MIDL_memset(
  483.                pbstrName,
  484.                0,
  485.                sizeof( BSTR  ));
  486.         
  487.         *_pdwStubPhase = STUB_CALL_SERVER;
  488.         _RetVal = (((IAutoAgg *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> get_Name((IAutoAgg *) ((CStdStubBuffer *)This)->pvServerObject,pbstrName);
  489.         
  490.         *_pdwStubPhase = STUB_MARSHAL;
  491.         
  492.         _StubMsg.BufferLength = 4U + 11U;
  493.         NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
  494.                                   (unsigned char __RPC_FAR *)pbstrName,
  495.                                   (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[56] );
  496.         
  497.         _StubMsg.BufferLength += 16;
  498.         
  499.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  500.         NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
  501.                                 (unsigned char __RPC_FAR *)pbstrName,
  502.                                 (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[56] );
  503.         
  504.         _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  505.         *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
  506.         
  507.         }
  508.     RpcFinally
  509.         {
  510.         NdrPointerFree( &_StubMsg,
  511.                         (unsigned char __RPC_FAR *)pbstrName,
  512.                         &__MIDL_TypeFormatString.Format[52] );
  513.         
  514.         }
  515.     RpcEndFinally
  516.     _pRpcMessage->BufferLength = 
  517.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  518.     
  519. }
  520.  
  521. CINTERFACE_PROXY_VTABLE(8) _IAutoAggProxyVtbl = 
  522. {
  523.     &IID_IAutoAgg,
  524.     IUnknown_QueryInterface_Proxy,
  525.     IUnknown_AddRef_Proxy,
  526.     IUnknown_Release_Proxy ,
  527.     0 /* IDispatch_GetTypeInfoCount_Proxy */ ,
  528.     0 /* IDispatch_GetTypeInfo_Proxy */ ,
  529.     0 /* IDispatch_GetIDsOfNames_Proxy */ ,
  530.     0 /* IDispatch_Invoke_Proxy */ ,
  531.     IAutoAgg_get_Name_Proxy
  532. };
  533.  
  534.  
  535. static const PRPC_STUB_FUNCTION IAutoAgg_table[] =
  536. {
  537.     STUB_FORWARDING_FUNCTION,
  538.     STUB_FORWARDING_FUNCTION,
  539.     STUB_FORWARDING_FUNCTION,
  540.     STUB_FORWARDING_FUNCTION,
  541.     IAutoAgg_get_Name_Stub
  542. };
  543.  
  544. CInterfaceStubVtbl _IAutoAggStubVtbl =
  545. {
  546.     &IID_IAutoAgg,
  547.     0,
  548.     8,
  549.     &IAutoAgg_table[-3],
  550.     CStdStubBuffer_DELEGATING_METHODS
  551. };
  552.  
  553.  
  554. /* Object interface: IAutoAggB, ver. 0.0,
  555.    GUID={0x4F9A681C,0xDD9D,0x11CF,{0x94,0x62,0x00,0xAA,0x00,0xBB,0xAD,0x7F}} */
  556.  
  557.  
  558. extern const MIDL_STUB_DESC Object_StubDesc;
  559.  
  560.  
  561. #pragma code_seg(".orpc")
  562.  
  563. /* [id][propget] */ HRESULT STDMETHODCALLTYPE IAutoAggB_get_Name_Proxy( 
  564.     IAutoAggB __RPC_FAR * This,
  565.     /* [retval][out] */ BSTR __RPC_FAR *pbstrName)
  566. {
  567.  
  568.     HRESULT _RetVal;
  569.     
  570.     RPC_MESSAGE _RpcMessage;
  571.     
  572.     MIDL_STUB_MESSAGE _StubMsg;
  573.     
  574.     MIDL_memset(
  575.                pbstrName,
  576.                0,
  577.                sizeof( BSTR  ));
  578.     RpcTryExcept
  579.         {
  580.         NdrProxyInitialize(
  581.                       ( void __RPC_FAR *  )This,
  582.                       ( PRPC_MESSAGE  )&_RpcMessage,
  583.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  584.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  585.                       7);
  586.         
  587.         
  588.         
  589.         RpcTryFinally
  590.             {
  591.             
  592.             _StubMsg.BufferLength = 0U;
  593.             NdrProxyGetBuffer(This, &_StubMsg);
  594.             NdrProxySendReceive(This, &_StubMsg);
  595.             
  596.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  597.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[18] );
  598.             
  599.             NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
  600.                                       (unsigned char __RPC_FAR * __RPC_FAR *)&pbstrName,
  601.                                       (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[70],
  602.                                       (unsigned char)0 );
  603.             
  604.             _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  605.             _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
  606.             
  607.             }
  608.         RpcFinally
  609.             {
  610.             NdrProxyFreeBuffer(This, &_StubMsg);
  611.             
  612.             }
  613.         RpcEndFinally
  614.         
  615.         }
  616.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  617.         {
  618.         NdrClearOutParameters(
  619.                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  620.                          ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[66],
  621.                          ( void __RPC_FAR * )pbstrName);
  622.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  623.         }
  624.     RpcEndExcept
  625.     return _RetVal;
  626. }
  627.  
  628. void __RPC_STUB IAutoAggB_get_Name_Stub(
  629.     IRpcStubBuffer *This,
  630.     IRpcChannelBuffer *_pRpcChannelBuffer,
  631.     PRPC_MESSAGE _pRpcMessage,
  632.     DWORD *_pdwStubPhase)
  633. {
  634.     BSTR _M3;
  635.     HRESULT _RetVal;
  636.     MIDL_STUB_MESSAGE _StubMsg;
  637.     BSTR __RPC_FAR *pbstrName;
  638.     
  639. NdrStubInitialize(
  640.                      _pRpcMessage,
  641.                      &_StubMsg,
  642.                      &Object_StubDesc,
  643.                      _pRpcChannelBuffer);
  644.     ( BSTR __RPC_FAR * )pbstrName = 0;
  645.     RpcTryFinally
  646.         {
  647.         pbstrName = &_M3;
  648.         MIDL_memset(
  649.                pbstrName,
  650.                0,
  651.                sizeof( BSTR  ));
  652.         
  653.         *_pdwStubPhase = STUB_CALL_SERVER;
  654.         _RetVal = (((IAutoAggB *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> get_Name((IAutoAggB *) ((CStdStubBuffer *)This)->pvServerObject,pbstrName);
  655.         
  656.         *_pdwStubPhase = STUB_MARSHAL;
  657.         
  658.         _StubMsg.BufferLength = 4U + 11U;
  659.         NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
  660.                                   (unsigned char __RPC_FAR *)pbstrName,
  661.                                   (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[70] );
  662.         
  663.         _StubMsg.BufferLength += 16;
  664.         
  665.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  666.         NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
  667.                                 (unsigned char __RPC_FAR *)pbstrName,
  668.                                 (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[70] );
  669.         
  670.         _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
  671.         *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
  672.         
  673.         }
  674.     RpcFinally
  675.         {
  676.         NdrPointerFree( &_StubMsg,
  677.                         (unsigned char __RPC_FAR *)pbstrName,
  678.                         &__MIDL_TypeFormatString.Format[66] );
  679.         
  680.         }
  681.     RpcEndFinally
  682.     _pRpcMessage->BufferLength = 
  683.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  684.     
  685. }
  686.  
  687. extern const USER_MARSHAL_ROUTINE_QUADRUPLE UserMarshalRoutines[1];
  688.  
  689. static const MIDL_STUB_DESC Object_StubDesc = 
  690.     {
  691.     0,
  692.     NdrOleAllocate,
  693.     NdrOleFree,
  694.     0,
  695.     0,
  696.     0,
  697.     0,
  698.     0,
  699.     __MIDL_TypeFormatString.Format,
  700.     0, /* -error bounds_check flag */
  701.     0x20000, /* Ndr library version */
  702.     0,
  703.     0x303006e, /* MIDL Version 3.3.110 */
  704.     0,
  705.     UserMarshalRoutines,
  706.     0,  /* Reserved1 */
  707.     0,  /* Reserved2 */
  708.     0,  /* Reserved3 */
  709.     0,  /* Reserved4 */
  710.     0   /* Reserved5 */
  711.     };
  712.  
  713. CINTERFACE_PROXY_VTABLE(8) _IAutoAggBProxyVtbl = 
  714. {
  715.     &IID_IAutoAggB,
  716.     IUnknown_QueryInterface_Proxy,
  717.     IUnknown_AddRef_Proxy,
  718.     IUnknown_Release_Proxy ,
  719.     0 /* IDispatch_GetTypeInfoCount_Proxy */ ,
  720.     0 /* IDispatch_GetTypeInfo_Proxy */ ,
  721.     0 /* IDispatch_GetIDsOfNames_Proxy */ ,
  722.     0 /* IDispatch_Invoke_Proxy */ ,
  723.     IAutoAggB_get_Name_Proxy
  724. };
  725.  
  726.  
  727. static const PRPC_STUB_FUNCTION IAutoAggB_table[] =
  728. {
  729.     STUB_FORWARDING_FUNCTION,
  730.     STUB_FORWARDING_FUNCTION,
  731.     STUB_FORWARDING_FUNCTION,
  732.     STUB_FORWARDING_FUNCTION,
  733.     IAutoAggB_get_Name_Stub
  734. };
  735.  
  736. CInterfaceStubVtbl _IAutoAggBStubVtbl =
  737. {
  738.     &IID_IAutoAggB,
  739.     0,
  740.     8,
  741.     &IAutoAggB_table[-3],
  742.     CStdStubBuffer_DELEGATING_METHODS
  743. };
  744.  
  745. #pragma data_seg(".rdata")
  746.  
  747. static const USER_MARSHAL_ROUTINE_QUADRUPLE UserMarshalRoutines[1] = 
  748.         {
  749.             
  750.             {
  751.             BSTR_UserSize
  752.             ,BSTR_UserMarshal
  753.             ,BSTR_UserUnmarshal
  754.             ,BSTR_UserFree
  755.             }
  756.  
  757.         };
  758.  
  759.  
  760. #if !defined(__RPC_WIN32__)
  761. #error  Invalid build platform for this stub.
  762. #endif
  763.  
  764. #if !(TARGET_IS_NT40_OR_LATER)
  765. #error You need a Windows NT 4.0 or later to run this stub because it uses these features:
  766. #error   [wire_marshal] or [user_marshal] attribute, more than 32 methods in the interface.
  767. #error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
  768. #error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
  769. #endif
  770.  
  771.  
  772. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  773.     {
  774.         0,
  775.         {
  776.             
  777.             0x51,        /* FC_OUT_PARAM */
  778. #ifndef _ALPHA_
  779.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  780. #else
  781.             0x2,        /* Alpha Stack size = 2 */
  782. #endif
  783. /*  2 */    NdrFcShort( 0x0 ),    /* Type Offset=0 */
  784. /*  4 */    0x53,        /* FC_RETURN_PARAM_BASETYPE */
  785.             0x8,        /* FC_LONG */
  786. /*  6 */    
  787.             0x51,        /* FC_OUT_PARAM */
  788. #ifndef _ALPHA_
  789.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  790. #else
  791.             0x2,        /* Alpha Stack size = 2 */
  792. #endif
  793. /*  8 */    NdrFcShort( 0x26 ),    /* Type Offset=38 */
  794. /* 10 */    0x53,        /* FC_RETURN_PARAM_BASETYPE */
  795.             0x8,        /* FC_LONG */
  796. /* 12 */    
  797.             0x51,        /* FC_OUT_PARAM */
  798. #ifndef _ALPHA_
  799.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  800. #else
  801.             0x2,        /* Alpha Stack size = 2 */
  802. #endif
  803. /* 14 */    NdrFcShort( 0x34 ),    /* Type Offset=52 */
  804. /* 16 */    0x53,        /* FC_RETURN_PARAM_BASETYPE */
  805.             0x8,        /* FC_LONG */
  806. /* 18 */    
  807.             0x51,        /* FC_OUT_PARAM */
  808. #ifndef _ALPHA_
  809.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  810. #else
  811.             0x2,        /* Alpha Stack size = 2 */
  812. #endif
  813. /* 20 */    NdrFcShort( 0x42 ),    /* Type Offset=66 */
  814. /* 22 */    0x53,        /* FC_RETURN_PARAM_BASETYPE */
  815.             0x8,        /* FC_LONG */
  816.  
  817.             0x0
  818.         }
  819.     };
  820.  
  821. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  822.     {
  823.         0,
  824.         {
  825.             0x11, 0x4,    /* FC_RP [alloced_on_stack] */
  826. /*  2 */    NdrFcShort( 0x1a ),    /* Offset= 26 (28) */
  827. /*  4 */    
  828.             0x13, 0x0,    /* FC_OP */
  829. /*  6 */    NdrFcShort( 0xc ),    /* Offset= 12 (18) */
  830. /*  8 */    
  831.             0x1b,        /* FC_CARRAY */
  832.             0x1,        /* 1 */
  833. /* 10 */    NdrFcShort( 0x2 ),    /* 2 */
  834. /* 12 */    0x9,        /* 9 */
  835.             0x0,        /*  */
  836. /* 14 */    NdrFcShort( 0xfffffffc ),    /* -4 */
  837. /* 16 */    0x6,        /* FC_SHORT */
  838.             0x5b,        /* FC_END */
  839. /* 18 */    
  840.             0x17,        /* FC_CSTRUCT */
  841.             0x3,        /* 3 */
  842. /* 20 */    NdrFcShort( 0x8 ),    /* 8 */
  843. /* 22 */    NdrFcShort( 0xfffffff2 ),    /* Offset= -14 (8) */
  844. /* 24 */    0x8,        /* FC_LONG */
  845.             0x8,        /* FC_LONG */
  846. /* 26 */    0x5c,        /* FC_PAD */
  847.             0x5b,        /* FC_END */
  848. /* 28 */    0xb4,        /* FC_USER_MARSHAL */
  849.             0x83,        /* 131 */
  850. /* 30 */    NdrFcShort( 0x0 ),    /* 0 */
  851. /* 32 */    NdrFcShort( 0x4 ),    /* 4 */
  852. /* 34 */    NdrFcShort( 0x0 ),    /* 0 */
  853. /* 36 */    NdrFcShort( 0xffffffe0 ),    /* Offset= -32 (4) */
  854. /* 38 */    
  855.             0x11, 0x4,    /* FC_RP [alloced_on_stack] */
  856. /* 40 */    NdrFcShort( 0x2 ),    /* Offset= 2 (42) */
  857. /* 42 */    0xb4,        /* FC_USER_MARSHAL */
  858.             0x83,        /* 131 */
  859. /* 44 */    NdrFcShort( 0x0 ),    /* 0 */
  860. /* 46 */    NdrFcShort( 0x4 ),    /* 4 */
  861. /* 48 */    NdrFcShort( 0x0 ),    /* 0 */
  862. /* 50 */    NdrFcShort( 0xffffffd2 ),    /* Offset= -46 (4) */
  863. /* 52 */    
  864.             0x11, 0x4,    /* FC_RP [alloced_on_stack] */
  865. /* 54 */    NdrFcShort( 0x2 ),    /* Offset= 2 (56) */
  866. /* 56 */    0xb4,        /* FC_USER_MARSHAL */
  867.             0x83,        /* 131 */
  868. /* 58 */    NdrFcShort( 0x0 ),    /* 0 */
  869. /* 60 */    NdrFcShort( 0x4 ),    /* 4 */
  870. /* 62 */    NdrFcShort( 0x0 ),    /* 0 */
  871. /* 64 */    NdrFcShort( 0xffffffc4 ),    /* Offset= -60 (4) */
  872. /* 66 */    
  873.             0x11, 0x4,    /* FC_RP [alloced_on_stack] */
  874. /* 68 */    NdrFcShort( 0x2 ),    /* Offset= 2 (70) */
  875. /* 70 */    0xb4,        /* FC_USER_MARSHAL */
  876.             0x83,        /* 131 */
  877. /* 72 */    NdrFcShort( 0x0 ),    /* 0 */
  878. /* 74 */    NdrFcShort( 0x4 ),    /* 4 */
  879. /* 76 */    NdrFcShort( 0x0 ),    /* 0 */
  880. /* 78 */    NdrFcShort( 0xffffffb6 ),    /* Offset= -74 (4) */
  881.  
  882.             0x0
  883.         }
  884.     };
  885.  
  886. const CInterfaceProxyVtbl * _Aggreg_ProxyVtblList[] = 
  887. {
  888.     ( CInterfaceProxyVtbl *) &_IAggBlindProxyVtbl,
  889.     ( CInterfaceProxyVtbl *) &_IAutoAggProxyVtbl,
  890.     ( CInterfaceProxyVtbl *) &_IAutoAggBProxyVtbl,
  891.     ( CInterfaceProxyVtbl *) &_IAggProxyVtbl,
  892.     0
  893. };
  894.  
  895. const CInterfaceStubVtbl * _Aggreg_StubVtblList[] = 
  896. {
  897.     ( CInterfaceStubVtbl *) &_IAggBlindStubVtbl,
  898.     ( CInterfaceStubVtbl *) &_IAutoAggStubVtbl,
  899.     ( CInterfaceStubVtbl *) &_IAutoAggBStubVtbl,
  900.     ( CInterfaceStubVtbl *) &_IAggStubVtbl,
  901.     0
  902. };
  903.  
  904. PCInterfaceName const _Aggreg_InterfaceNamesList[] = 
  905. {
  906.     "IAggBlind",
  907.     "IAutoAgg",
  908.     "IAutoAggB",
  909.     "IAgg",
  910.     0
  911. };
  912.  
  913. const IID *  _Aggreg_BaseIIDList[] = 
  914. {
  915.     &IID_IDispatch,
  916.     &IID_IDispatch,
  917.     &IID_IDispatch,
  918.     &IID_IDispatch,
  919.     0
  920. };
  921.  
  922.  
  923. #define _Aggreg_CHECK_IID(n)    IID_GENERIC_CHECK_IID( _Aggreg, pIID, n)
  924.  
  925. int __stdcall _Aggreg_IID_Lookup( const IID * pIID, int * pIndex )
  926. {
  927.     IID_BS_LOOKUP_SETUP
  928.  
  929.     IID_BS_LOOKUP_INITIAL_TEST( _Aggreg, 4, 2 )
  930.     IID_BS_LOOKUP_NEXT_TEST( _Aggreg, 1 )
  931.     IID_BS_LOOKUP_RETURN_RESULT( _Aggreg, 4, *pIndex )
  932.     
  933. }
  934.  
  935. const ExtendedProxyFileInfo Aggreg_ProxyFileInfo = 
  936. {
  937.     (PCInterfaceProxyVtblList *) & _Aggreg_ProxyVtblList,
  938.     (PCInterfaceStubVtblList *) & _Aggreg_StubVtblList,
  939.     (const PCInterfaceName * ) & _Aggreg_InterfaceNamesList,
  940.     (const IID ** ) & _Aggreg_BaseIIDList,
  941.     & _Aggreg_IID_Lookup, 
  942.     4,
  943.     1
  944. };
  945.