home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / dcom / secure / myprop_p.c < prev    next >
C/C++ Source or Header  |  1998-03-30  |  19KB  |  642 lines

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