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

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 Mon Mar 30 03:48:23 1998
  4.  */
  5. /* Compiler settings for ikoala.idl:
  6.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, app_config, 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 "ikoala.h"
  19. #define TYPE_FORMAT_STRING_SIZE   1                                 
  20. #define PROC_FORMAT_STRING_SIZE   7                                 
  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: IKoala, ver. 0.0,
  36.    GUID={0x0002114b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
  37. extern const MIDL_STUB_DESC Object_StubDesc;
  38. #pragma code_seg(".orpc")
  39. HRESULT STDMETHODCALLTYPE IKoala_ClimbEucalyptusTree_Proxy( 
  40.     IKoala __RPC_FAR * This,
  41.     /* [in] */ short iTree)
  42. {
  43.     HRESULT _RetVal;
  44.     
  45.     RPC_MESSAGE _RpcMessage;
  46.     
  47.     MIDL_STUB_MESSAGE _StubMsg;
  48.     
  49.     RpcTryExcept
  50.         {
  51.         NdrProxyInitialize(
  52.                       ( void __RPC_FAR *  )This,
  53.                       ( PRPC_MESSAGE  )&_RpcMessage,
  54.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  55.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  56.                       3);
  57.         
  58.         
  59.         
  60.         RpcTryFinally
  61.             {
  62.             
  63.             _StubMsg.BufferLength = 2U;
  64.             NdrProxyGetBuffer(This, &_StubMsg);
  65.             *(( short __RPC_FAR * )_StubMsg.Buffer)++ = iTree;
  66.             
  67.             NdrProxySendReceive(This, &_StubMsg);
  68.             
  69.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  70.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  71.             
  72.             _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
  73.             
  74.             }
  75.         RpcFinally
  76.             {
  77.             NdrProxyFreeBuffer(This, &_StubMsg);
  78.             
  79.             }
  80.         RpcEndFinally
  81.         
  82.         }
  83.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  84.         {
  85.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  86.         }
  87.     RpcEndExcept
  88.     return _RetVal;
  89. }
  90. void __RPC_STUB IKoala_ClimbEucalyptusTree_Stub(
  91.     IRpcStubBuffer *This,
  92.     IRpcChannelBuffer *_pRpcChannelBuffer,
  93.     PRPC_MESSAGE _pRpcMessage,
  94.     DWORD *_pdwStubPhase)
  95. {
  96.     HRESULT _RetVal;
  97.     MIDL_STUB_MESSAGE _StubMsg;
  98.     short iTree;
  99.     
  100. NdrStubInitialize(
  101.                      _pRpcMessage,
  102.                      &_StubMsg,
  103.                      &Object_StubDesc,
  104.                      _pRpcChannelBuffer);
  105.     RpcTryFinally
  106.         {
  107.         if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  108.             NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  109.         
  110.         iTree = *(( short __RPC_FAR * )_StubMsg.Buffer)++;
  111.         
  112.         
  113.         *_pdwStubPhase = STUB_CALL_SERVER;
  114.         _RetVal = (((IKoala *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> ClimbEucalyptusTree((IKoala *) ((CStdStubBuffer *)This)->pvServerObject,iTree);
  115.         
  116.         *_pdwStubPhase = STUB_MARSHAL;
  117.         
  118.         _StubMsg.BufferLength = 4U;
  119.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  120.         *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
  121.         
  122.         }
  123.     RpcFinally
  124.         {
  125.         }
  126.     RpcEndFinally
  127.     _pRpcMessage->BufferLength = 
  128.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  129.     
  130. }
  131. HRESULT STDMETHODCALLTYPE IKoala_PouchOpensDown_Proxy( 
  132.     IKoala __RPC_FAR * This)
  133. {
  134.     HRESULT _RetVal;
  135.     
  136.     RPC_MESSAGE _RpcMessage;
  137.     
  138.     MIDL_STUB_MESSAGE _StubMsg;
  139.     
  140.     RpcTryExcept
  141.         {
  142.         NdrProxyInitialize(
  143.                       ( void __RPC_FAR *  )This,
  144.                       ( PRPC_MESSAGE  )&_RpcMessage,
  145.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  146.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  147.                       4);
  148.         
  149.         
  150.         
  151.         RpcTryFinally
  152.             {
  153.             
  154.             _StubMsg.BufferLength = 0U;
  155.             NdrProxyGetBuffer(This, &_StubMsg);
  156.             NdrProxySendReceive(This, &_StubMsg);
  157.             
  158.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  159.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[4] );
  160.             
  161.             _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
  162.             
  163.             }
  164.         RpcFinally
  165.             {
  166.             NdrProxyFreeBuffer(This, &_StubMsg);
  167.             
  168.             }
  169.         RpcEndFinally
  170.         
  171.         }
  172.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  173.         {
  174.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  175.         }
  176.     RpcEndExcept
  177.     return _RetVal;
  178. }
  179. void __RPC_STUB IKoala_PouchOpensDown_Stub(
  180.     IRpcStubBuffer *This,
  181.     IRpcChannelBuffer *_pRpcChannelBuffer,
  182.     PRPC_MESSAGE _pRpcMessage,
  183.     DWORD *_pdwStubPhase)
  184. {
  185.     HRESULT _RetVal;
  186.     MIDL_STUB_MESSAGE _StubMsg;
  187.     
  188. NdrStubInitialize(
  189.                      _pRpcMessage,
  190.                      &_StubMsg,
  191.                      &Object_StubDesc,
  192.                      _pRpcChannelBuffer);
  193.     RpcTryFinally
  194.         {
  195.         
  196.         *_pdwStubPhase = STUB_CALL_SERVER;
  197.         _RetVal = (((IKoala *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> PouchOpensDown((IKoala *) ((CStdStubBuffer *)This)->pvServerObject);
  198.         
  199.         *_pdwStubPhase = STUB_MARSHAL;
  200.         
  201.         _StubMsg.BufferLength = 4U;
  202.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  203.         *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
  204.         
  205.         }
  206.     RpcFinally
  207.         {
  208.         }
  209.     RpcEndFinally
  210.     _pRpcMessage->BufferLength = 
  211.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  212.     
  213. }
  214. HRESULT STDMETHODCALLTYPE IKoala_SleepAfterEating_Proxy( 
  215.     IKoala __RPC_FAR * This,
  216.     /* [in] */ short cMinutes)
  217. {
  218.     HRESULT _RetVal;
  219.     
  220.     RPC_MESSAGE _RpcMessage;
  221.     
  222.     MIDL_STUB_MESSAGE _StubMsg;
  223.     
  224.     RpcTryExcept
  225.         {
  226.         NdrProxyInitialize(
  227.                       ( void __RPC_FAR *  )This,
  228.                       ( PRPC_MESSAGE  )&_RpcMessage,
  229.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  230.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  231.                       5);
  232.         
  233.         
  234.         
  235.         RpcTryFinally
  236.             {
  237.             
  238.             _StubMsg.BufferLength = 2U;
  239.             NdrProxyGetBuffer(This, &_StubMsg);
  240.             *(( short __RPC_FAR * )_StubMsg.Buffer)++ = cMinutes;
  241.             
  242.             NdrProxySendReceive(This, &_StubMsg);
  243.             
  244.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  245.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  246.             
  247.             _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
  248.             
  249.             }
  250.         RpcFinally
  251.             {
  252.             NdrProxyFreeBuffer(This, &_StubMsg);
  253.             
  254.             }
  255.         RpcEndFinally
  256.         
  257.         }
  258.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  259.         {
  260.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  261.         }
  262.     RpcEndExcept
  263.     return _RetVal;
  264. }
  265. void __RPC_STUB IKoala_SleepAfterEating_Stub(
  266.     IRpcStubBuffer *This,
  267.     IRpcChannelBuffer *_pRpcChannelBuffer,
  268.     PRPC_MESSAGE _pRpcMessage,
  269.     DWORD *_pdwStubPhase)
  270. {
  271.     HRESULT _RetVal;
  272.     MIDL_STUB_MESSAGE _StubMsg;
  273.     short cMinutes;
  274.     
  275. NdrStubInitialize(
  276.                      _pRpcMessage,
  277.                      &_StubMsg,
  278.                      &Object_StubDesc,
  279.                      _pRpcChannelBuffer);
  280.     RpcTryFinally
  281.         {
  282.         if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  283.             NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  284.         
  285.         cMinutes = *(( short __RPC_FAR * )_StubMsg.Buffer)++;
  286.         
  287.         
  288.         *_pdwStubPhase = STUB_CALL_SERVER;
  289.         _RetVal = (((IKoala *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> SleepAfterEating((IKoala *) ((CStdStubBuffer *)This)->pvServerObject,cMinutes);
  290.         
  291.         *_pdwStubPhase = STUB_MARSHAL;
  292.         
  293.         _StubMsg.BufferLength = 4U;
  294.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  295.         *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
  296.         
  297.         }
  298.     RpcFinally
  299.         {
  300.         }
  301.     RpcEndFinally
  302.     _pRpcMessage->BufferLength = 
  303.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  304.     
  305. }
  306. static const MIDL_STUB_DESC Object_StubDesc = 
  307.     {
  308.     0,
  309.     NdrOleAllocate,
  310.     NdrOleFree,
  311.     0,
  312.     0,
  313.     0,
  314.     0,
  315.     0,
  316.     __MIDL_TypeFormatString.Format,
  317.     0, /* -error bounds_check flag */
  318.     0x10001, /* Ndr library version */
  319.     0,
  320.     0x303006e, /* MIDL Version 3.3.110 */
  321.     0,
  322.     0,
  323.     0,  /* Reserved1 */
  324.     0,  /* Reserved2 */
  325.     0,  /* Reserved3 */
  326.     0,  /* Reserved4 */
  327.     0   /* Reserved5 */
  328.     };
  329. const CINTERFACE_PROXY_VTABLE(6) _IKoalaProxyVtbl = 
  330. {
  331.     &IID_IKoala,
  332.     IUnknown_QueryInterface_Proxy,
  333.     IUnknown_AddRef_Proxy,
  334.     IUnknown_Release_Proxy ,
  335.     IKoala_ClimbEucalyptusTree_Proxy ,
  336.     IKoala_PouchOpensDown_Proxy ,
  337.     IKoala_SleepAfterEating_Proxy
  338. };
  339. static const PRPC_STUB_FUNCTION IKoala_table[] =
  340. {
  341.     IKoala_ClimbEucalyptusTree_Stub,
  342.     IKoala_PouchOpensDown_Stub,
  343.     IKoala_SleepAfterEating_Stub
  344. };
  345. const CInterfaceStubVtbl _IKoalaStubVtbl =
  346. {
  347.     &IID_IKoala,
  348.     0,
  349.     6,
  350.     &IKoala_table[-3],
  351.     CStdStubBuffer_METHODS
  352. };
  353. #pragma data_seg(".rdata")
  354. #if !defined(__RPC_WIN32__)
  355. #error  Invalid build platform for this stub.
  356. #endif
  357. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  358.     {
  359.         0,
  360.         {
  361. 0x4e, /* FC_IN_PARAM_BASETYPE */
  362. 0x6, /* FC_SHORT */
  363. /*  2 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
  364. 0x8, /* FC_LONG */
  365. /*  4 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
  366. 0x8, /* FC_LONG */
  367. 0x0
  368.         }
  369.     };
  370. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  371.     {
  372.         0,
  373.         {
  374. 0x0
  375.         }
  376.     };
  377. const CInterfaceProxyVtbl * _ikoala_ProxyVtblList[] = 
  378. {
  379.     ( CInterfaceProxyVtbl *) &_IKoalaProxyVtbl,
  380.     0
  381. };
  382. const CInterfaceStubVtbl * _ikoala_StubVtblList[] = 
  383. {
  384.     ( CInterfaceStubVtbl *) &_IKoalaStubVtbl,
  385.     0
  386. };
  387. PCInterfaceName const _ikoala_InterfaceNamesList[] = 
  388. {
  389.     "IKoala",
  390.     0
  391. };
  392. #define _ikoala_CHECK_IID(n) IID_GENERIC_CHECK_IID( _ikoala, pIID, n)
  393. int __stdcall _ikoala_IID_Lookup( const IID * pIID, int * pIndex )
  394. {
  395.     
  396.     if(!_ikoala_CHECK_IID(0))
  397.         {
  398.         *pIndex = 0;
  399.         return 1;
  400.         }
  401.     return 0;
  402. }
  403. const ExtendedProxyFileInfo ikoala_ProxyFileInfo = 
  404. {
  405.     (PCInterfaceProxyVtblList *) & _ikoala_ProxyVtblList,
  406.     (PCInterfaceStubVtblList *) & _ikoala_StubVtblList,
  407.     (const PCInterfaceName * ) & _ikoala_InterfaceNamesList,
  408.     0, // no delegation
  409.     & _ikoala_IID_Lookup, 
  410.     1,
  411.     1
  412. };