home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / dcom / atlcont / atlcont_p.c < prev    next >
C/C++ Source or Header  |  1998-04-02  |  5KB  |  232 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 Wed Feb 11 11:57:34 1998
  6.  */
  7. /* Compiler settings for AtlCont.idl:
  8.     Oic (OptLev=i1), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: none
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12.  
  13. #define USE_STUBLESS_PROXY
  14.  
  15.  
  16. /* verify that the <rpcproxy.h> version is high enough to compile this file*/
  17. #ifndef __REDQ_RPCPROXY_H_VERSION__
  18. #define __REQUIRED_RPCPROXY_H_VERSION__ 440
  19. #endif
  20.  
  21.  
  22. #include "rpcproxy.h"
  23. #ifndef __RPCPROXY_H_VERSION__
  24. #error this stub requires an updated version of <rpcproxy.h>
  25. #endif // __RPCPROXY_H_VERSION__
  26.  
  27.  
  28. #include "AtlCont.h"
  29.  
  30. #define TYPE_FORMAT_STRING_SIZE   1                                 
  31. #define PROC_FORMAT_STRING_SIZE   17                                
  32.  
  33. typedef struct _MIDL_TYPE_FORMAT_STRING
  34.     {
  35.     short          Pad;
  36.     unsigned char  Format[ TYPE_FORMAT_STRING_SIZE ];
  37.     } MIDL_TYPE_FORMAT_STRING;
  38.  
  39. typedef struct _MIDL_PROC_FORMAT_STRING
  40.     {
  41.     short          Pad;
  42.     unsigned char  Format[ PROC_FORMAT_STRING_SIZE ];
  43.     } MIDL_PROC_FORMAT_STRING;
  44.  
  45.  
  46. extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
  47. extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
  48.  
  49.  
  50. /* Object interface: IUnknown, ver. 0.0,
  51.    GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
  52.  
  53.  
  54. /* Object interface: IAtlCont, ver. 0.0,
  55.    GUID={0xBFD466C3,0x376C,0x11D0,{0x96,0xB5,0x00,0xA0,0xC9,0x0D,0xC9,0x4B}} */
  56.  
  57.  
  58. extern const MIDL_STUB_DESC Object_StubDesc;
  59.  
  60.  
  61. extern const MIDL_SERVER_INFO IAtlCont_ServerInfo;
  62.  
  63. #pragma code_seg(".orpc")
  64.  
  65. static const MIDL_STUB_DESC Object_StubDesc = 
  66.     {
  67.     0,
  68.     NdrOleAllocate,
  69.     NdrOleFree,
  70.     0,
  71.     0,
  72.     0,
  73.     0,
  74.     0,
  75.     __MIDL_TypeFormatString.Format,
  76.     0, /* -error bounds_check flag */
  77.     0x20000, /* Ndr library version */
  78.     0,
  79.     0x303006e, /* MIDL Version 3.3.110 */
  80.     0,
  81.     0,
  82.     0,  /* Reserved1 */
  83.     0,  /* Reserved2 */
  84.     0,  /* Reserved3 */
  85.     0,  /* Reserved4 */
  86.     0   /* Reserved5 */
  87.     };
  88.  
  89. static const unsigned short IAtlCont_FormatStringOffsetTable[] = 
  90.     {
  91.     0,
  92.     8
  93.     };
  94.  
  95. static const MIDL_SERVER_INFO IAtlCont_ServerInfo = 
  96.     {
  97.     &Object_StubDesc,
  98.     0,
  99.     __MIDL_ProcFormatString.Format,
  100.     &IAtlCont_FormatStringOffsetTable[-3],
  101.     0,
  102.     0,
  103.     0,
  104.     0
  105.     };
  106.  
  107. static const MIDL_STUBLESS_PROXY_INFO IAtlCont_ProxyInfo =
  108.     {
  109.     &Object_StubDesc,
  110.     __MIDL_ProcFormatString.Format,
  111.     &IAtlCont_FormatStringOffsetTable[-3],
  112.     0,
  113.     0,
  114.     0
  115.     };
  116.  
  117. CINTERFACE_PROXY_VTABLE(5) _IAtlContProxyVtbl = 
  118. {
  119.     &IAtlCont_ProxyInfo,
  120.     &IID_IAtlCont,
  121.     IUnknown_QueryInterface_Proxy,
  122.     IUnknown_AddRef_Proxy,
  123.     IUnknown_Release_Proxy ,
  124.     (void *)-1 /* IAtlCont::Run */ ,
  125.     (void *)-1 /* IAtlCont::Stop */
  126. };
  127.  
  128. const CInterfaceStubVtbl _IAtlContStubVtbl =
  129. {
  130.     &IID_IAtlCont,
  131.     &IAtlCont_ServerInfo,
  132.     5,
  133.     0, /* pure interpreted */
  134.     CStdStubBuffer_METHODS
  135. };
  136.  
  137. #pragma data_seg(".rdata")
  138.  
  139. #if !defined(__RPC_WIN32__)
  140. #error  Invalid build platform for this stub.
  141. #endif
  142.  
  143. #if !(TARGET_IS_NT40_OR_LATER)
  144. #error You need a Windows NT 4.0 or later to run this stub because it uses these features:
  145. #error   more than 32 methods in the interface.
  146. #error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
  147. #error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
  148. #endif
  149.  
  150.  
  151. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  152.     {
  153.         0,
  154.         {
  155.             0x33,        /* FC_AUTO_HANDLE */
  156.             0x44,        /* 68 */
  157. /*  2 */    NdrFcShort( 0x3 ),    /* 3 */
  158. #ifndef _ALPHA_
  159. /*  4 */    NdrFcShort( 0x8 ),    /* x86, MIPS, PPC Stack size/offset = 8 */
  160. #else
  161.             NdrFcShort( 0x10 ),    /* Alpha Stack size/offset = 16 */
  162. #endif
  163. /*  6 */    0x53,        /* FC_RETURN_PARAM_BASETYPE */
  164.             0x8,        /* FC_LONG */
  165. /*  8 */    0x33,        /* FC_AUTO_HANDLE */
  166.             0x44,        /* 68 */
  167. /* 10 */    NdrFcShort( 0x4 ),    /* 4 */
  168. #ifndef _ALPHA_
  169. /* 12 */    NdrFcShort( 0x8 ),    /* x86, MIPS, PPC Stack size/offset = 8 */
  170. #else
  171.             NdrFcShort( 0x10 ),    /* Alpha Stack size/offset = 16 */
  172. #endif
  173. /* 14 */    0x53,        /* FC_RETURN_PARAM_BASETYPE */
  174.             0x8,        /* FC_LONG */
  175.  
  176.             0x0
  177.         }
  178.     };
  179.  
  180. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  181.     {
  182.         0,
  183.         {
  184.  
  185.             0x0
  186.         }
  187.     };
  188.  
  189. const CInterfaceProxyVtbl * _AtlCont_ProxyVtblList[] = 
  190. {
  191.     ( CInterfaceProxyVtbl *) &_IAtlContProxyVtbl,
  192.     0
  193. };
  194.  
  195. const CInterfaceStubVtbl * _AtlCont_StubVtblList[] = 
  196. {
  197.     ( CInterfaceStubVtbl *) &_IAtlContStubVtbl,
  198.     0
  199. };
  200.  
  201. PCInterfaceName const _AtlCont_InterfaceNamesList[] = 
  202. {
  203.     "IAtlCont",
  204.     0
  205. };
  206.  
  207.  
  208. #define _AtlCont_CHECK_IID(n)    IID_GENERIC_CHECK_IID( _AtlCont, pIID, n)
  209.  
  210. int __stdcall _AtlCont_IID_Lookup( const IID * pIID, int * pIndex )
  211. {
  212.     
  213.     if(!_AtlCont_CHECK_IID(0))
  214.         {
  215.         *pIndex = 0;
  216.         return 1;
  217.         }
  218.  
  219.     return 0;
  220. }
  221.  
  222. const ExtendedProxyFileInfo AtlCont_ProxyFileInfo = 
  223. {
  224.     (PCInterfaceProxyVtblList *) & _AtlCont_ProxyVtblList,
  225.     (PCInterfaceStubVtblList *) & _AtlCont_StubVtblList,
  226.     (const PCInterfaceName * ) & _AtlCont_InterfaceNamesList,
  227.     0, // no delegation
  228.     & _AtlCont_IID_Lookup, 
  229.     1,
  230.     2
  231. };
  232.