home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / MSGTRACE.ZIP / MyProjects / MsgTrace / MsgTracerPS / MsgTracer_p.c < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-30  |  8.5 KB  |  353 lines

  1. /* this ALWAYS GENERATED file contains the proxy stub code */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.01.75 */
  5. /* at Sat May 30 14:21:32 1998
  6.  */
  7. /* Compiler settings for MsgTracer.idl:
  8.     Oicf (OptLev=i2), 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. #include "rpcproxy.h"
  16. #include "MsgTracer.h"
  17.  
  18. #define TYPE_FORMAT_STRING_SIZE   35                                
  19. #define PROC_FORMAT_STRING_SIZE   55                                
  20.  
  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.  
  27. typedef struct _MIDL_PROC_FORMAT_STRING
  28.     {
  29.     short          Pad;
  30.     unsigned char  Format[ PROC_FORMAT_STRING_SIZE ];
  31.     } MIDL_PROC_FORMAT_STRING;
  32.  
  33.  
  34. extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
  35. extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
  36.  
  37.  
  38. /* Object interface: IUnknown, ver. 0.0,
  39.    GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
  40.  
  41.  
  42. /* Object interface: IDispatch, ver. 0.0,
  43.    GUID={0x00020400,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
  44.  
  45.  
  46. /* Object interface: IMsgTracerComp, ver. 0.0,
  47.    GUID={0x17CE1960,0x567E,0x11D1,{0xAF,0x10,0x00,0x60,0x97,0x23,0xD0,0xBD}} */
  48.  
  49.  
  50. extern const MIDL_STUB_DESC Object_StubDesc;
  51.  
  52.  
  53. extern const MIDL_SERVER_INFO IMsgTracerComp_ServerInfo;
  54.  
  55. #pragma code_seg(".orpc")
  56. extern const USER_MARSHAL_ROUTINE_QUADRUPLE UserMarshalRoutines[1];
  57.  
  58. static const MIDL_STUB_DESC Object_StubDesc = 
  59.     {
  60.     0,
  61.     NdrOleAllocate,
  62.     NdrOleFree,
  63.     0,
  64.     0,
  65.     0,
  66.     0,
  67.     0,
  68.     __MIDL_TypeFormatString.Format,
  69.     0, /* -error bounds_check flag */
  70.     0x20000, /* Ndr library version */
  71.     0,
  72.     0x301004b, /* MIDL Version 3.1.75 */
  73.     0,
  74.     UserMarshalRoutines,
  75.     0,  /* Reserved1 */
  76.     0,  /* Reserved2 */
  77.     0,  /* Reserved3 */
  78.     0,  /* Reserved4 */
  79.     0   /* Reserved5 */
  80.     };
  81.  
  82. static const unsigned short IMsgTracerComp_FormatStringOffsetTable[] = 
  83.     {
  84.     (unsigned short) -1,
  85.     (unsigned short) -1,
  86.     (unsigned short) -1,
  87.     (unsigned short) -1,
  88.     0,
  89.     30
  90.     };
  91.  
  92. static const MIDL_SERVER_INFO IMsgTracerComp_ServerInfo = 
  93.     {
  94.     &Object_StubDesc,
  95.     0,
  96.     __MIDL_ProcFormatString.Format,
  97.     &IMsgTracerComp_FormatStringOffsetTable[-3],
  98.     0,
  99.     0,
  100.     0,
  101.     0
  102.     };
  103.  
  104. static const MIDL_STUBLESS_PROXY_INFO IMsgTracerComp_ProxyInfo =
  105.     {
  106.     &Object_StubDesc,
  107.     __MIDL_ProcFormatString.Format,
  108.     &IMsgTracerComp_FormatStringOffsetTable[-3],
  109.     0,
  110.     0,
  111.     0
  112.     };
  113.  
  114. CINTERFACE_PROXY_VTABLE(9) _IMsgTracerCompProxyVtbl = 
  115. {
  116.     &IMsgTracerComp_ProxyInfo,
  117.     &IID_IMsgTracerComp,
  118.     IUnknown_QueryInterface_Proxy,
  119.     IUnknown_AddRef_Proxy,
  120.     IUnknown_Release_Proxy ,
  121.     0 /* (void *)-1 /* IDispatch::GetTypeInfoCount */ ,
  122.     0 /* (void *)-1 /* IDispatch::GetTypeInfo */ ,
  123.     0 /* (void *)-1 /* IDispatch::GetIDsOfNames */ ,
  124.     0 /* IDispatch_Invoke_Proxy */ ,
  125.     (void *)-1 /* IMsgTracerComp::AttachProcess */ ,
  126.     (void *)-1 /* IMsgTracerComp::Write */
  127. };
  128.  
  129.  
  130. static const PRPC_STUB_FUNCTION IMsgTracerComp_table[] =
  131. {
  132.     STUB_FORWARDING_FUNCTION,
  133.     STUB_FORWARDING_FUNCTION,
  134.     STUB_FORWARDING_FUNCTION,
  135.     STUB_FORWARDING_FUNCTION,
  136.     NdrStubCall2,
  137.     NdrStubCall2
  138. };
  139.  
  140. CInterfaceStubVtbl _IMsgTracerCompStubVtbl =
  141. {
  142.     &IID_IMsgTracerComp,
  143.     &IMsgTracerComp_ServerInfo,
  144.     9,
  145.     &IMsgTracerComp_table[-3],
  146.     CStdStubBuffer_DELEGATING_METHODS
  147. };
  148.  
  149. #pragma data_seg(".rdata")
  150.  
  151. static const USER_MARSHAL_ROUTINE_QUADRUPLE UserMarshalRoutines[1] = 
  152.         {
  153.             
  154.             {
  155.             BSTR_UserSize
  156.             ,BSTR_UserMarshal
  157.             ,BSTR_UserUnmarshal
  158.             ,BSTR_UserFree
  159.             }
  160.  
  161.         };
  162.  
  163.  
  164. #if !defined(__RPC_WIN32__)
  165. #error  Invalid build platform for this stub.
  166. #endif
  167.  
  168. #if !(TARGET_IS_NT40_OR_LATER)
  169. #error You need a Windows NT 4.0 or later to run this stub because it uses these features:
  170. #error   -Oif or -Oicf, [wire_marshal] or [user_marshal] attribute.
  171. #error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
  172. #error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
  173. #endif
  174.  
  175.  
  176. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  177.     {
  178.         0,
  179.         {
  180.  
  181.     /* Procedure AttachProcess */
  182.  
  183.             0x33,        /* FC_AUTO_HANDLE */
  184.             0x64,        /* 100 */
  185. /*  2 */    NdrFcShort( 0x7 ),    /* 7 */
  186. #ifndef _ALPHA_
  187. /*  4 */    NdrFcShort( 0x10 ),    /* x86, MIPS, PPC Stack size/offset = 16 */
  188. #else
  189.             NdrFcShort( 0x20 ),    /* Alpha Stack size/offset = 32 */
  190. #endif
  191. /*  6 */    NdrFcShort( 0x10 ),    /* 16 */
  192. /*  8 */    NdrFcShort( 0x8 ),    /* 8 */
  193. /* 10 */    0x4,        /* 4 */
  194.             0x3,        /* 3 */
  195.  
  196.     /* Parameter ProcessId */
  197.  
  198. /* 12 */    NdrFcShort( 0x48 ),    /* 72 */
  199. #ifndef _ALPHA_
  200. /* 14 */    NdrFcShort( 0x4 ),    /* x86, MIPS, PPC Stack size/offset = 4 */
  201. #else
  202.             NdrFcShort( 0x8 ),    /* Alpha Stack size/offset = 8 */
  203. #endif
  204. /* 16 */    0x8,        /* FC_LONG */
  205.             0x0,        /* 0 */
  206.  
  207.     /* Parameter Wait */
  208.  
  209. /* 18 */    NdrFcShort( 0x48 ),    /* 72 */
  210. #ifndef _ALPHA_
  211. /* 20 */    NdrFcShort( 0x8 ),    /* x86, MIPS, PPC Stack size/offset = 8 */
  212. #else
  213.             NdrFcShort( 0x10 ),    /* Alpha Stack size/offset = 16 */
  214. #endif
  215. /* 22 */    0x8,        /* FC_LONG */
  216.             0x0,        /* 0 */
  217.  
  218.     /* Return value */
  219.  
  220. /* 24 */    NdrFcShort( 0x70 ),    /* 112 */
  221. #ifndef _ALPHA_
  222. /* 26 */    NdrFcShort( 0xc ),    /* x86, MIPS, PPC Stack size/offset = 12 */
  223. #else
  224.             NdrFcShort( 0x18 ),    /* Alpha Stack size/offset = 24 */
  225. #endif
  226. /* 28 */    0x8,        /* FC_LONG */
  227.             0x0,        /* 0 */
  228.  
  229.     /* Procedure Write */
  230.  
  231. /* 30 */    0x33,        /* FC_AUTO_HANDLE */
  232.             0x64,        /* 100 */
  233. /* 32 */    NdrFcShort( 0x8 ),    /* 8 */
  234. #ifndef _ALPHA_
  235. /* 34 */    NdrFcShort( 0xc ),    /* x86, MIPS, PPC Stack size/offset = 12 */
  236. #else
  237.             NdrFcShort( 0x18 ),    /* Alpha Stack size/offset = 24 */
  238. #endif
  239. /* 36 */    NdrFcShort( 0x0 ),    /* 0 */
  240. /* 38 */    NdrFcShort( 0x8 ),    /* 8 */
  241. /* 40 */    0x6,        /* 6 */
  242.             0x2,        /* 2 */
  243.  
  244.     /* Parameter Message */
  245.  
  246. /* 42 */    NdrFcShort( 0x8b ),    /* 139 */
  247. #ifndef _ALPHA_
  248. /* 44 */    NdrFcShort( 0x4 ),    /* x86, MIPS, PPC Stack size/offset = 4 */
  249. #else
  250.             NdrFcShort( 0x8 ),    /* Alpha Stack size/offset = 8 */
  251. #endif
  252. /* 46 */    NdrFcShort( 0x18 ),    /* Type Offset=24 */
  253.  
  254.     /* Return value */
  255.  
  256. /* 48 */    NdrFcShort( 0x70 ),    /* 112 */
  257. #ifndef _ALPHA_
  258. /* 50 */    NdrFcShort( 0x8 ),    /* x86, MIPS, PPC Stack size/offset = 8 */
  259. #else
  260.             NdrFcShort( 0x10 ),    /* Alpha Stack size/offset = 16 */
  261. #endif
  262. /* 52 */    0x8,        /* FC_LONG */
  263.             0x0,        /* 0 */
  264.  
  265.             0x0
  266.         }
  267.     };
  268.  
  269. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  270.     {
  271.         0,
  272.         {
  273.             0x12, 0x0,    /* FC_UP */
  274. /*  2 */    NdrFcShort( 0xc ),    /* Offset= 12 (14) */
  275. /*  4 */    
  276.             0x1b,        /* FC_CARRAY */
  277.             0x1,        /* 1 */
  278. /*  6 */    NdrFcShort( 0x2 ),    /* 2 */
  279. /*  8 */    0x9,        /* 9 */
  280.             0x0,        /*  */
  281. /* 10 */    NdrFcShort( 0xfffffffc ),    /* -4 */
  282. /* 12 */    0x6,        /* FC_SHORT */
  283.             0x5b,        /* FC_END */
  284. /* 14 */    
  285.             0x17,        /* FC_CSTRUCT */
  286.             0x3,        /* 3 */
  287. /* 16 */    NdrFcShort( 0x8 ),    /* 8 */
  288. /* 18 */    NdrFcShort( 0xfffffff2 ),    /* Offset= -14 (4) */
  289. /* 20 */    0x8,        /* FC_LONG */
  290.             0x8,        /* FC_LONG */
  291. /* 22 */    0x5c,        /* FC_PAD */
  292.             0x5b,        /* FC_END */
  293. /* 24 */    0xb4,        /* FC_USER_MARSHAL */
  294.             0x83,        /* 131 */
  295. /* 26 */    NdrFcShort( 0x0 ),    /* 0 */
  296. /* 28 */    NdrFcShort( 0x4 ),    /* 4 */
  297. /* 30 */    NdrFcShort( 0x0 ),    /* 0 */
  298. /* 32 */    NdrFcShort( 0xffffffe0 ),    /* Offset= -32 (0) */
  299.  
  300.             0x0
  301.         }
  302.     };
  303.  
  304. const CInterfaceProxyVtbl * _MsgTracer_ProxyVtblList[] = 
  305. {
  306.     ( CInterfaceProxyVtbl *) &_IMsgTracerCompProxyVtbl,
  307.     0
  308. };
  309.  
  310. const CInterfaceStubVtbl * _MsgTracer_StubVtblList[] = 
  311. {
  312.     ( CInterfaceStubVtbl *) &_IMsgTracerCompStubVtbl,
  313.     0
  314. };
  315.  
  316. PCInterfaceName const _MsgTracer_InterfaceNamesList[] = 
  317. {
  318.     "IMsgTracerComp",
  319.     0
  320. };
  321.  
  322. const IID *  _MsgTracer_BaseIIDList[] = 
  323. {
  324.     &IID_IDispatch,
  325.     0
  326. };
  327.  
  328.  
  329. #define _MsgTracer_CHECK_IID(n)    IID_GENERIC_CHECK_IID( _MsgTracer, pIID, n)
  330.  
  331. int __stdcall _MsgTracer_IID_Lookup( const IID * pIID, int * pIndex )
  332. {
  333.     
  334.     if(!_MsgTracer_CHECK_IID(0))
  335.         {
  336.         *pIndex = 0;
  337.         return 1;
  338.         }
  339.  
  340.     return 0;
  341. }
  342.  
  343. const ExtendedProxyFileInfo MsgTracer_ProxyFileInfo = 
  344. {
  345.     (PCInterfaceProxyVtblList *) & _MsgTracer_ProxyVtblList,
  346.     (PCInterfaceStubVtblList *) & _MsgTracer_StubVtblList,
  347.     (const PCInterfaceName * ) & _MsgTracer_InterfaceNamesList,
  348.     (const IID ** ) & _MsgTracer_BaseIIDList,
  349.     & _MsgTracer_IID_Lookup, 
  350.     1,
  351.     2
  352. };
  353.