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

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