home *** CD-ROM | disk | FTP | other *** search
/ BUG 15 / BUGCD1998_06.ISO / aplic / recent / recent.exe / Recent_p.c < prev    next >
C/C++ Source or Header  |  1998-04-13  |  7KB  |  281 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 Mon Apr 13 19:55:03 1998
  6.  */
  7. /* Compiler settings for Recent.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 "Recent.h"
  17.  
  18. #define TYPE_FORMAT_STRING_SIZE   1                                 
  19. #define PROC_FORMAT_STRING_SIZE   37                                
  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: IChooser, ver. 0.0,
  47.    GUID={0x89D32CC7,0x93FA,0x11D1,{0x9E,0xBC,0x00,0xC0,0xDF,0x4A,0x4F,0xA9}} */
  48.  
  49.  
  50. extern const MIDL_STUB_DESC Object_StubDesc;
  51.  
  52.  
  53. extern const MIDL_SERVER_INFO IChooser_ServerInfo;
  54.  
  55. #pragma code_seg(".orpc")
  56.  
  57. static const MIDL_STUB_DESC Object_StubDesc = 
  58.     {
  59.     0,
  60.     NdrOleAllocate,
  61.     NdrOleFree,
  62.     0,
  63.     0,
  64.     0,
  65.     0,
  66.     0,
  67.     __MIDL_TypeFormatString.Format,
  68.     0, /* -error bounds_check flag */
  69.     0x20000, /* Ndr library version */
  70.     0,
  71.     0x301004b, /* MIDL Version 3.1.75 */
  72.     0,
  73.     0,
  74.     0,  /* Reserved1 */
  75.     0,  /* Reserved2 */
  76.     0,  /* Reserved3 */
  77.     0,  /* Reserved4 */
  78.     0   /* Reserved5 */
  79.     };
  80.  
  81. static const unsigned short IChooser_FormatStringOffsetTable[] = 
  82.     {
  83.     (unsigned short) -1,
  84.     (unsigned short) -1,
  85.     (unsigned short) -1,
  86.     (unsigned short) -1,
  87.     0,
  88.     18
  89.     };
  90.  
  91. static const MIDL_SERVER_INFO IChooser_ServerInfo = 
  92.     {
  93.     &Object_StubDesc,
  94.     0,
  95.     __MIDL_ProcFormatString.Format,
  96.     &IChooser_FormatStringOffsetTable[-3],
  97.     0,
  98.     0,
  99.     0,
  100.     0
  101.     };
  102.  
  103. static const MIDL_STUBLESS_PROXY_INFO IChooser_ProxyInfo =
  104.     {
  105.     &Object_StubDesc,
  106.     __MIDL_ProcFormatString.Format,
  107.     &IChooser_FormatStringOffsetTable[-3],
  108.     0,
  109.     0,
  110.     0
  111.     };
  112.  
  113. CINTERFACE_PROXY_VTABLE(9) _IChooserProxyVtbl = 
  114. {
  115.     &IChooser_ProxyInfo,
  116.     &IID_IChooser,
  117.     IUnknown_QueryInterface_Proxy,
  118.     IUnknown_AddRef_Proxy,
  119.     IUnknown_Release_Proxy ,
  120.     0 /* (void *)-1 /* IDispatch::GetTypeInfoCount */ ,
  121.     0 /* (void *)-1 /* IDispatch::GetTypeInfo */ ,
  122.     0 /* (void *)-1 /* IDispatch::GetIDsOfNames */ ,
  123.     0 /* IDispatch_Invoke_Proxy */ ,
  124.     (void *)-1 /* IChooser::ChooseRecentFile */ ,
  125.     (void *)-1 /* IChooser::ChooseRecentWorkspace */
  126. };
  127.  
  128.  
  129. static const PRPC_STUB_FUNCTION IChooser_table[] =
  130. {
  131.     STUB_FORWARDING_FUNCTION,
  132.     STUB_FORWARDING_FUNCTION,
  133.     STUB_FORWARDING_FUNCTION,
  134.     STUB_FORWARDING_FUNCTION,
  135.     NdrStubCall2,
  136.     NdrStubCall2
  137. };
  138.  
  139. CInterfaceStubVtbl _IChooserStubVtbl =
  140. {
  141.     &IID_IChooser,
  142.     &IChooser_ServerInfo,
  143.     9,
  144.     &IChooser_table[-3],
  145.     CStdStubBuffer_DELEGATING_METHODS
  146. };
  147.  
  148. #pragma data_seg(".rdata")
  149.  
  150. #if !defined(__RPC_WIN32__)
  151. #error  Invalid build platform for this stub.
  152. #endif
  153.  
  154. #if !(TARGET_IS_NT40_OR_LATER)
  155. #error You need a Windows NT 4.0 or later to run this stub because it uses these features:
  156. #error   -Oif or -Oicf.
  157. #error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
  158. #error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
  159. #endif
  160.  
  161.  
  162. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  163.     {
  164.         0,
  165.         {
  166.  
  167.     /* Procedure ChooseRecentFile */
  168.  
  169.             0x33,        /* FC_AUTO_HANDLE */
  170.             0x64,        /* 100 */
  171. /*  2 */    NdrFcShort( 0x7 ),    /* 7 */
  172. #ifndef _ALPHA_
  173. /*  4 */    NdrFcShort( 0x8 ),    /* x86, MIPS, PPC Stack size/offset = 8 */
  174. #else
  175.             NdrFcShort( 0x10 ),    /* Alpha Stack size/offset = 16 */
  176. #endif
  177. /*  6 */    NdrFcShort( 0x0 ),    /* 0 */
  178. /*  8 */    NdrFcShort( 0x8 ),    /* 8 */
  179. /* 10 */    0x4,        /* 4 */
  180.             0x1,        /* 1 */
  181.  
  182.     /* Return value */
  183.  
  184. /* 12 */    NdrFcShort( 0x70 ),    /* 112 */
  185. #ifndef _ALPHA_
  186. /* 14 */    NdrFcShort( 0x4 ),    /* x86, MIPS, PPC Stack size/offset = 4 */
  187. #else
  188.             NdrFcShort( 0x8 ),    /* Alpha Stack size/offset = 8 */
  189. #endif
  190. /* 16 */    0x8,        /* FC_LONG */
  191.             0x0,        /* 0 */
  192.  
  193.     /* Procedure ChooseRecentWorkspace */
  194.  
  195. /* 18 */    0x33,        /* FC_AUTO_HANDLE */
  196.             0x64,        /* 100 */
  197. /* 20 */    NdrFcShort( 0x8 ),    /* 8 */
  198. #ifndef _ALPHA_
  199. /* 22 */    NdrFcShort( 0x8 ),    /* x86, MIPS, PPC Stack size/offset = 8 */
  200. #else
  201.             NdrFcShort( 0x10 ),    /* Alpha Stack size/offset = 16 */
  202. #endif
  203. /* 24 */    NdrFcShort( 0x0 ),    /* 0 */
  204. /* 26 */    NdrFcShort( 0x8 ),    /* 8 */
  205. /* 28 */    0x4,        /* 4 */
  206.             0x1,        /* 1 */
  207.  
  208.     /* Return value */
  209.  
  210. /* 30 */    NdrFcShort( 0x70 ),    /* 112 */
  211. #ifndef _ALPHA_
  212. /* 32 */    NdrFcShort( 0x4 ),    /* x86, MIPS, PPC Stack size/offset = 4 */
  213. #else
  214.             NdrFcShort( 0x8 ),    /* Alpha Stack size/offset = 8 */
  215. #endif
  216. /* 34 */    0x8,        /* FC_LONG */
  217.             0x0,        /* 0 */
  218.  
  219.             0x0
  220.         }
  221.     };
  222.  
  223. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  224.     {
  225.         0,
  226.         {
  227.  
  228.             0x0
  229.         }
  230.     };
  231.  
  232. const CInterfaceProxyVtbl * _Recent_ProxyVtblList[] = 
  233. {
  234.     ( CInterfaceProxyVtbl *) &_IChooserProxyVtbl,
  235.     0
  236. };
  237.  
  238. const CInterfaceStubVtbl * _Recent_StubVtblList[] = 
  239. {
  240.     ( CInterfaceStubVtbl *) &_IChooserStubVtbl,
  241.     0
  242. };
  243.  
  244. PCInterfaceName const _Recent_InterfaceNamesList[] = 
  245. {
  246.     "IChooser",
  247.     0
  248. };
  249.  
  250. const IID *  _Recent_BaseIIDList[] = 
  251. {
  252.     &IID_IDispatch,
  253.     0
  254. };
  255.  
  256.  
  257. #define _Recent_CHECK_IID(n)    IID_GENERIC_CHECK_IID( _Recent, pIID, n)
  258.  
  259. int __stdcall _Recent_IID_Lookup( const IID * pIID, int * pIndex )
  260. {
  261.     
  262.     if(!_Recent_CHECK_IID(0))
  263.         {
  264.         *pIndex = 0;
  265.         return 1;
  266.         }
  267.  
  268.     return 0;
  269. }
  270.  
  271. const ExtendedProxyFileInfo Recent_ProxyFileInfo = 
  272. {
  273.     (PCInterfaceProxyVtblList *) & _Recent_ProxyVtblList,
  274.     (PCInterfaceStubVtblList *) & _Recent_StubVtblList,
  275.     (const PCInterfaceName * ) & _Recent_InterfaceNamesList,
  276.     (const IID ** ) & _Recent_BaseIIDList,
  277.     & _Recent_IID_Lookup, 
  278.     1,
  279.     2
  280. };
  281.