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

Windows编程

开发平台:

Visual C++

  1. /* this ALWAYS GENERATED file contains the proxy stub code */
  2. /* File created by MIDL compiler version 3.00.44 */
  3. /* at Wed Nov 06 19:30:10 1996
  4.  */
  5. /* Compiler settings for iball.idl:
  6.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
  7.     error checks: none
  8. */
  9. //@@MIDL_FILE_HEADING(  )
  10. #include "rpcproxy.h"
  11. #include "iball.h"
  12. #define TYPE_FORMAT_STRING_SIZE   31                                
  13. #define PROC_FORMAT_STRING_SIZE   31                                
  14. typedef struct _MIDL_TYPE_FORMAT_STRING
  15.     {
  16.     short          Pad;
  17.     unsigned char  Format[ TYPE_FORMAT_STRING_SIZE ];
  18.     } MIDL_TYPE_FORMAT_STRING;
  19. typedef struct _MIDL_PROC_FORMAT_STRING
  20.     {
  21.     short          Pad;
  22.     unsigned char  Format[ PROC_FORMAT_STRING_SIZE ];
  23.     } MIDL_PROC_FORMAT_STRING;
  24. extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
  25. extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
  26. /* Object interface: IUnknown, ver. 0.0,
  27.    GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
  28. /* Object interface: IBall, ver. 0.0,
  29.    GUID={0xF002da32,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
  30. extern const MIDL_STUB_DESC Object_StubDesc;
  31. #pragma code_seg(".orpc")
  32. /* [propget][id] */ HRESULT STDMETHODCALLTYPE IBall_get_Ball_Proxy( 
  33.     IBall __RPC_FAR * This,
  34.     /* [out] */ POINT __RPC_FAR *pOrg,
  35.     /* [out] */ POINT __RPC_FAR *pExt,
  36.     /* [retval][out] */ COLORREF __RPC_FAR *pcrColor)
  37. {
  38.     HRESULT _RetVal;
  39.     
  40.     RPC_MESSAGE _RpcMessage;
  41.     
  42.     MIDL_STUB_MESSAGE _StubMsg;
  43.     
  44.     MIDL_memset(
  45.                pOrg,
  46.                0,
  47.                sizeof( POINT  ));
  48.     MIDL_memset(
  49.                pExt,
  50.                0,
  51.                sizeof( POINT  ));
  52.     RpcTryExcept
  53.         {
  54.         NdrProxyInitialize(
  55.                       ( void __RPC_FAR *  )This,
  56.                       ( PRPC_MESSAGE  )&_RpcMessage,
  57.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  58.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  59.                       3);
  60.         
  61.         
  62.         
  63.         RpcTryFinally
  64.             {
  65.             
  66.             _StubMsg.BufferLength = 0U;
  67.             NdrProxyGetBuffer(This, &_StubMsg);
  68.             NdrProxySendReceive(This, &_StubMsg);
  69.             
  70.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  71.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
  72.             
  73.             NdrSimpleStructUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
  74.                                        (unsigned char __RPC_FAR * __RPC_FAR *)&pOrg,
  75.                                        (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4],
  76.                                        (unsigned char)0 );
  77.             
  78.             NdrSimpleStructUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
  79.                                        (unsigned char __RPC_FAR * __RPC_FAR *)&pExt,
  80.                                        (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4],
  81.                                        (unsigned char)0 );
  82.             
  83.             *pcrColor = *(( COLORREF __RPC_FAR * )_StubMsg.Buffer)++;
  84.             
  85.             _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
  86.             
  87.             }
  88.         RpcFinally
  89.             {
  90.             NdrProxyFreeBuffer(This, &_StubMsg);
  91.             
  92.             }
  93.         RpcEndFinally
  94.         
  95.         }
  96.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  97.         {
  98.         NdrClearOutParameters(
  99.                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  100.                          ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[0],
  101.                          ( void __RPC_FAR * )pOrg);
  102.         NdrClearOutParameters(
  103.                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  104.                          ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[0],
  105.                          ( void __RPC_FAR * )pExt);
  106.         NdrClearOutParameters(
  107.                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  108.                          ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[12],
  109.                          ( void __RPC_FAR * )pcrColor);
  110.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  111.         }
  112.     RpcEndExcept
  113.     return _RetVal;
  114. }
  115. void __RPC_STUB IBall_get_Ball_Stub(
  116.     IRpcStubBuffer *This,
  117.     IRpcChannelBuffer *_pRpcChannelBuffer,
  118.     PRPC_MESSAGE _pRpcMessage,
  119.     DWORD *_pdwStubPhase)
  120. {
  121.     COLORREF _M0;
  122.     HRESULT _RetVal;
  123.     MIDL_STUB_MESSAGE _StubMsg;
  124.     POINT _pExtM;
  125.     POINT _pOrgM;
  126.     POINT __RPC_FAR *pExt;
  127.     POINT __RPC_FAR *pOrg;
  128.     COLORREF __RPC_FAR *pcrColor;
  129.     
  130. NdrStubInitialize(
  131.                      _pRpcMessage,
  132.                      &_StubMsg,
  133.                      &Object_StubDesc,
  134.                      _pRpcChannelBuffer);
  135.     pOrg = 0;
  136.     pExt = 0;
  137.     pcrColor = 0;
  138.     RpcTryFinally
  139.         {
  140.         pOrg = &_pOrgM;
  141.         pExt = &_pExtM;
  142.         pcrColor = &_M0;
  143.         
  144.         *_pdwStubPhase = STUB_CALL_SERVER;
  145.         _RetVal = (((IBall *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> get_Ball(
  146.             (IBall *) ((CStdStubBuffer *)This)->pvServerObject,
  147.             pOrg,
  148.             pExt,
  149.             pcrColor);
  150.         
  151.         *_pdwStubPhase = STUB_MARSHAL;
  152.         
  153.         _StubMsg.BufferLength = 0U + 0U + 11U + 7U;
  154.         NdrSimpleStructBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
  155.                                    (unsigned char __RPC_FAR *)pOrg,
  156.                                    (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4] );
  157.         
  158.         NdrSimpleStructBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
  159.                                    (unsigned char __RPC_FAR *)pExt,
  160.                                    (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4] );
  161.         
  162.         _StubMsg.BufferLength += 16;
  163.         
  164.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  165.         NdrSimpleStructMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
  166.                                  (unsigned char __RPC_FAR *)pOrg,
  167.                                  (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4] );
  168.         
  169.         NdrSimpleStructMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
  170.                                  (unsigned char __RPC_FAR *)pExt,
  171.                                  (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4] );
  172.         
  173.         *(( COLORREF __RPC_FAR * )_StubMsg.Buffer)++ = *pcrColor;
  174.         
  175.         *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
  176.         
  177.         }
  178.     RpcFinally
  179.         {
  180.         }
  181.     RpcEndFinally
  182.     _pRpcMessage->BufferLength = 
  183.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  184.     
  185. }
  186. /* [id] */ HRESULT STDMETHODCALLTYPE IBall_Reset_Proxy( 
  187.     IBall __RPC_FAR * This,
  188.     /* [in] */ RECT __RPC_FAR *pNewRect,
  189.     /* [in] */ short nBallSize)
  190. {
  191.     HRESULT _RetVal;
  192.     
  193.     RPC_MESSAGE _RpcMessage;
  194.     
  195.     MIDL_STUB_MESSAGE _StubMsg;
  196.     
  197.     RpcTryExcept
  198.         {
  199.         NdrProxyInitialize(
  200.                       ( void __RPC_FAR *  )This,
  201.                       ( PRPC_MESSAGE  )&_RpcMessage,
  202.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  203.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  204.                       4);
  205.         
  206.         
  207.         
  208.         RpcTryFinally
  209.             {
  210.             
  211.             _StubMsg.BufferLength = 0U + 5U;
  212.             NdrSimpleStructBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
  213.                                        (unsigned char __RPC_FAR *)pNewRect,
  214.                                        (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[20] );
  215.             
  216.             NdrProxyGetBuffer(This, &_StubMsg);
  217.             NdrSimpleStructMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
  218.                                      (unsigned char __RPC_FAR *)pNewRect,
  219.                                      (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[20] );
  220.             
  221.             *(( short __RPC_FAR * )_StubMsg.Buffer)++ = nBallSize;
  222.             
  223.             NdrProxySendReceive(This, &_StubMsg);
  224.             
  225.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  226.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[14] );
  227.             
  228.             _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
  229.             
  230.             }
  231.         RpcFinally
  232.             {
  233.             NdrProxyFreeBuffer(This, &_StubMsg);
  234.             
  235.             }
  236.         RpcEndFinally
  237.         
  238.         }
  239.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  240.         {
  241.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  242.         }
  243.     RpcEndExcept
  244.     return _RetVal;
  245. }
  246. void __RPC_STUB IBall_Reset_Stub(
  247.     IRpcStubBuffer *This,
  248.     IRpcChannelBuffer *_pRpcChannelBuffer,
  249.     PRPC_MESSAGE _pRpcMessage,
  250.     DWORD *_pdwStubPhase)
  251. {
  252.     HRESULT _RetVal;
  253.     MIDL_STUB_MESSAGE _StubMsg;
  254.     short nBallSize;
  255.     RECT __RPC_FAR *pNewRect;
  256.     
  257. NdrStubInitialize(
  258.                      _pRpcMessage,
  259.                      &_StubMsg,
  260.                      &Object_StubDesc,
  261.                      _pRpcChannelBuffer);
  262.     pNewRect = 0;
  263.     RpcTryFinally
  264.         {
  265.         if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  266.             NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[14] );
  267.         
  268.         NdrSimpleStructUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
  269.                                    (unsigned char __RPC_FAR * __RPC_FAR *)&pNewRect,
  270.                                    (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[20],
  271.                                    (unsigned char)0 );
  272.         
  273.         nBallSize = *(( short __RPC_FAR * )_StubMsg.Buffer)++;
  274.         
  275.         
  276.         *_pdwStubPhase = STUB_CALL_SERVER;
  277.         _RetVal = (((IBall *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> Reset(
  278.          (IBall *) ((CStdStubBuffer *)This)->pvServerObject,
  279.          pNewRect,
  280.          nBallSize);
  281.         
  282.         *_pdwStubPhase = STUB_MARSHAL;
  283.         
  284.         _StubMsg.BufferLength = 4U;
  285.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  286.         *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
  287.         
  288.         }
  289.     RpcFinally
  290.         {
  291.         }
  292.     RpcEndFinally
  293.     _pRpcMessage->BufferLength = 
  294.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  295.     
  296. }
  297. /* [id] */ HRESULT STDMETHODCALLTYPE IBall_Move_Proxy( 
  298.     IBall __RPC_FAR * This,
  299.     /* [in] */ BOOL bAlive,
  300.     /* [retval][out] */ BOOL __RPC_FAR *bRet)
  301. {
  302.     HRESULT _RetVal;
  303.     
  304.     RPC_MESSAGE _RpcMessage;
  305.     
  306.     MIDL_STUB_MESSAGE _StubMsg;
  307.     
  308.     RpcTryExcept
  309.         {
  310.         NdrProxyInitialize(
  311.                       ( void __RPC_FAR *  )This,
  312.                       ( PRPC_MESSAGE  )&_RpcMessage,
  313.                       ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  314.                       ( PMIDL_STUB_DESC  )&Object_StubDesc,
  315.                       5);
  316.         
  317.         
  318.         
  319.         RpcTryFinally
  320.             {
  321.             
  322.             _StubMsg.BufferLength = 4U;
  323.             NdrProxyGetBuffer(This, &_StubMsg);
  324.             *(( BOOL __RPC_FAR * )_StubMsg.Buffer)++ = bAlive;
  325.             
  326.             NdrProxySendReceive(This, &_StubMsg);
  327.             
  328.             if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  329.                 NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[22] );
  330.             
  331.             *bRet = *(( BOOL __RPC_FAR * )_StubMsg.Buffer)++;
  332.             
  333.             _RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
  334.             
  335.             }
  336.         RpcFinally
  337.             {
  338.             NdrProxyFreeBuffer(This, &_StubMsg);
  339.             
  340.             }
  341.         RpcEndFinally
  342.         
  343.         }
  344.     RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
  345.         {
  346.         NdrClearOutParameters(
  347.                          ( PMIDL_STUB_MESSAGE  )&_StubMsg,
  348.                          ( PFORMAT_STRING  )&__MIDL_TypeFormatString.Format[12],
  349.                          ( void __RPC_FAR * )bRet);
  350.         _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
  351.         }
  352.     RpcEndExcept
  353.     return _RetVal;
  354. }
  355. void __RPC_STUB IBall_Move_Stub(
  356.     IRpcStubBuffer *This,
  357.     IRpcChannelBuffer *_pRpcChannelBuffer,
  358.     PRPC_MESSAGE _pRpcMessage,
  359.     DWORD *_pdwStubPhase)
  360. {
  361.     BOOL _M1;
  362.     HRESULT _RetVal;
  363.     MIDL_STUB_MESSAGE _StubMsg;
  364.     BOOL bAlive;
  365.     BOOL __RPC_FAR *bRet;
  366.     
  367. NdrStubInitialize(
  368.                      _pRpcMessage,
  369.                      &_StubMsg,
  370.                      &Object_StubDesc,
  371.                      _pRpcChannelBuffer);
  372.     bRet = 0;
  373.     RpcTryFinally
  374.         {
  375.         if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
  376.             NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[22] );
  377.         
  378.         bAlive = *(( BOOL __RPC_FAR * )_StubMsg.Buffer)++;
  379.         
  380.         bRet = &_M1;
  381.         
  382.         *_pdwStubPhase = STUB_CALL_SERVER;
  383.         _RetVal = (((IBall *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> Move(
  384.         (IBall *) ((CStdStubBuffer *)This)->pvServerObject,
  385.         bAlive,
  386.         bRet);
  387.         
  388.         *_pdwStubPhase = STUB_MARSHAL;
  389.         
  390.         _StubMsg.BufferLength = 4U + 4U;
  391.         NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
  392.         *(( BOOL __RPC_FAR * )_StubMsg.Buffer)++ = *bRet;
  393.         
  394.         *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
  395.         
  396.         }
  397.     RpcFinally
  398.         {
  399.         }
  400.     RpcEndFinally
  401.     _pRpcMessage->BufferLength = 
  402.         (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
  403.     
  404. }
  405. static const MIDL_STUB_DESC Object_StubDesc = 
  406.     {
  407.     0,
  408.     NdrOleAllocate,
  409.     NdrOleFree,
  410.     0,
  411.     0,
  412.     0,
  413.     0,
  414.     0,
  415.     __MIDL_TypeFormatString.Format,
  416.     0, /* -error bounds_check flag */
  417.     0x10001, /* Ndr library version */
  418.     0,
  419.     0x300002c, /* MIDL Version 3.0.44 */
  420.     0,
  421.     0,
  422.     0,  /* Reserved1 */
  423.     0,  /* Reserved2 */
  424.     0,  /* Reserved3 */
  425.     0,  /* Reserved4 */
  426.     0   /* Reserved5 */
  427.     };
  428. const CINTERFACE_PROXY_VTABLE(6) _IBallProxyVtbl = 
  429. {
  430.     &IID_IBall,
  431.     IUnknown_QueryInterface_Proxy,
  432.     IUnknown_AddRef_Proxy,
  433.     IUnknown_Release_Proxy ,
  434.     IBall_get_Ball_Proxy ,
  435.     IBall_Reset_Proxy ,
  436.     IBall_Move_Proxy
  437. };
  438. static const PRPC_STUB_FUNCTION IBall_table[] =
  439. {
  440.     IBall_get_Ball_Stub,
  441.     IBall_Reset_Stub,
  442.     IBall_Move_Stub
  443. };
  444. const CInterfaceStubVtbl _IBallStubVtbl =
  445. {
  446.     &IID_IBall,
  447.     0,
  448.     6,
  449.     &IBall_table[-3],
  450.     CStdStubBuffer_METHODS
  451. };
  452. #pragma data_seg(".rdata")
  453. #if !defined(__RPC_WIN32__)
  454. #error  Invalid build platform for this stub.
  455. #endif
  456. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  457.     {
  458.         0,
  459.         {
  460.             
  461.             0x51,       /* FC_OUT_PARAM */
  462. #ifndef _ALPHA_
  463.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  464. #else
  465.             0x2,        /* Alpha Stack size = 2 */
  466. #endif
  467. /*  2 */    NdrFcShort( 0x0 ),  /* Type Offset=0 */
  468. /*  4 */    
  469.             0x51,       /* FC_OUT_PARAM */
  470. #ifndef _ALPHA_
  471.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  472. #else
  473.             0x2,        /* Alpha Stack size = 2 */
  474. #endif
  475. /*  6 */    NdrFcShort( 0x0 ),  /* Type Offset=0 */
  476. /*  8 */    
  477.             0x51,       /* FC_OUT_PARAM */
  478. #ifndef _ALPHA_
  479.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  480. #else
  481.             0x2,        /* Alpha Stack size = 2 */
  482. #endif
  483. /* 10 */    NdrFcShort( 0xc ),  /* Type Offset=12 */
  484. /* 12 */    0x53,       /* FC_RETURN_PARAM_BASETYPE */
  485.             0x8,        /* FC_LONG */
  486. /* 14 */    
  487.             0x4d,       /* FC_IN_PARAM */
  488. #ifndef _ALPHA_
  489.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  490. #else
  491.             0x2,        /* Alpha Stack size = 2 */
  492. #endif
  493. /* 16 */    NdrFcShort( 0x10 ), /* Type Offset=16 */
  494. /* 18 */    0x4e,       /* FC_IN_PARAM_BASETYPE */
  495.             0x6,        /* FC_SHORT */
  496. /* 20 */    0x53,       /* FC_RETURN_PARAM_BASETYPE */
  497.             0x8,        /* FC_LONG */
  498. /* 22 */    0x4e,       /* FC_IN_PARAM_BASETYPE */
  499.             0x8,        /* FC_LONG */
  500. /* 24 */    
  501.             0x51,       /* FC_OUT_PARAM */
  502. #ifndef _ALPHA_
  503.             0x1,        /* x86, MIPS & PPC Stack size = 1 */
  504. #else
  505.             0x2,        /* Alpha Stack size = 2 */
  506. #endif
  507. /* 26 */    NdrFcShort( 0xc ),  /* Type Offset=12 */
  508. /* 28 */    0x53,       /* FC_RETURN_PARAM_BASETYPE */
  509.             0x8,        /* FC_LONG */
  510.             0x0
  511.         }
  512.     };
  513. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  514.     {
  515.         0,
  516.         {
  517.             0x11, 0x4,  /* FC_RP [alloced_on_stack] */
  518. /*  2 */    NdrFcShort( 0x2 ),  /* Offset= 2 (4) */
  519. /*  4 */    
  520.             0x15,       /* FC_STRUCT */
  521.             0x3,        /* 3 */
  522. /*  6 */    NdrFcShort( 0x8 ),  /* 8 */
  523. /*  8 */    0x8,        /* FC_LONG */
  524.             0x8,        /* FC_LONG */
  525. /* 10 */    0x5c,       /* FC_PAD */
  526.             0x5b,       /* FC_END */
  527. /* 12 */    
  528.             0x11, 0xc,  /* FC_RP [alloced_on_stack] [simple_pointer] */
  529. /* 14 */    0x8,        /* FC_LONG */
  530.             0x5c,       /* FC_PAD */
  531. /* 16 */    
  532.             0x11, 0x0,  /* FC_RP */
  533. /* 18 */    NdrFcShort( 0x2 ),  /* Offset= 2 (20) */
  534. /* 20 */    
  535.             0x15,       /* FC_STRUCT */
  536.             0x3,        /* 3 */
  537. /* 22 */    NdrFcShort( 0x10 ), /* 16 */
  538. /* 24 */    0x8,        /* FC_LONG */
  539.             0x8,        /* FC_LONG */
  540. /* 26 */    0x8,        /* FC_LONG */
  541.             0x8,        /* FC_LONG */
  542. /* 28 */    0x5c,       /* FC_PAD */
  543.             0x5b,       /* FC_END */
  544.             0x0
  545.         }
  546.     };
  547. const CInterfaceProxyVtbl * _iball_ProxyVtblList[] = 
  548. {
  549.     ( CInterfaceProxyVtbl *) &_IBallProxyVtbl,
  550.     0
  551. };
  552. const CInterfaceStubVtbl * _iball_StubVtblList[] = 
  553. {
  554.     ( CInterfaceStubVtbl *) &_IBallStubVtbl,
  555.     0
  556. };
  557. PCInterfaceName const _iball_InterfaceNamesList[] = 
  558. {
  559.     "IBall",
  560.     0
  561. };
  562. #define _iball_CHECK_IID(n) IID_GENERIC_CHECK_IID( _iball, pIID, n)
  563. int __stdcall _iball_IID_Lookup( const IID * pIID, int * pIndex )
  564. {
  565.     
  566.     if(!_iball_CHECK_IID(0))
  567.         {
  568.         *pIndex = 0;
  569.         return 1;
  570.         }
  571.     return 0;
  572. }
  573. const ExtendedProxyFileInfo iball_ProxyFileInfo = 
  574. {
  575.     (PCInterfaceProxyVtblList *) & _iball_ProxyVtblList,
  576.     (PCInterfaceStubVtblList *) & _iball_StubVtblList,
  577.     (const PCInterfaceName * ) & _iball_InterfaceNamesList,
  578.     0, // no delegation
  579.     & _iball_IID_Lookup, 
  580.     1,
  581.     1
  582. };