AGGREG_P.C
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:28k
源码类别:

Windows编程

开发平台:

Visual C++

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