home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c13 / atltrigarc / atltrig_p.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  12.2 KB  |  545 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 Fri Feb 07 11:06:43 1997
  6.  */
  7. /* Compiler settings for ATLtrig.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 "ATLtrig.h"
  17.  
  18. #define TYPE_FORMAT_STRING_SIZE   5                                 
  19. #define PROC_FORMAT_STRING_SIZE   91                                
  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: Itrig, ver. 0.0,
  47.    GUID={0x2C74048D,0x80D3,0x11D0,{0x89,0xAB,0x00,0xC0,0x4F,0xC2,0xAA,0x17}} */
  48.  
  49.  
  50. extern const MIDL_STUB_DESC Object_StubDesc;
  51.  
  52.  
  53. extern const MIDL_SERVER_INFO Itrig_ServerInfo;
  54.  
  55. #pragma code_seg(".orpc")
  56. static const unsigned short Itrig_FormatStringOffsetTable[] = 
  57.     {
  58.     (unsigned short) -1,
  59.     (unsigned short) -1,
  60.     (unsigned short) -1,
  61.     (unsigned short) -1,
  62.     0,
  63.     30,
  64.     60
  65.     };
  66.  
  67. static const MIDL_SERVER_INFO Itrig_ServerInfo = 
  68.     {
  69.     &Object_StubDesc,
  70.     0,
  71.     __MIDL_ProcFormatString.Format,
  72.     &Itrig_FormatStringOffsetTable[-3],
  73.     0,
  74.     0,
  75.     0,
  76.     0
  77.     };
  78.  
  79. static const MIDL_STUBLESS_PROXY_INFO Itrig_ProxyInfo =
  80.     {
  81.     &Object_StubDesc,
  82.     __MIDL_ProcFormatString.Format,
  83.     &Itrig_FormatStringOffsetTable[-3],
  84.     0,
  85.     0,
  86.     0
  87.     };
  88.  
  89. CINTERFACE_PROXY_VTABLE(10) _ItrigProxyVtbl = 
  90. {
  91.     &Itrig_ProxyInfo,
  92.     &IID_Itrig,
  93.     IUnknown_QueryInterface_Proxy,
  94.     IUnknown_AddRef_Proxy,
  95.     IUnknown_Release_Proxy ,
  96.     0 /* (void *)-1 /* IDispatch::GetTypeInfoCount */ ,
  97.     0 /* (void *)-1 /* IDispatch::GetTypeInfo */ ,
  98.     0 /* (void *)-1 /* IDispatch::GetIDsOfNames */ ,
  99.     0 /* IDispatch_Invoke_Proxy */ ,
  100.     (void *)-1 /* Itrig::ATLsin */ ,
  101.     (void *)-1 /* Itrig::ATLcos */ ,
  102.     (void *)-1 /* Itrig::ATLtan */
  103. };
  104.  
  105.  
  106. static const PRPC_STUB_FUNCTION Itrig_table[] =
  107. {
  108.     STUB_FORWARDING_FUNCTION,
  109.     STUB_FORWARDING_FUNCTION,
  110.     STUB_FORWARDING_FUNCTION,
  111.     STUB_FORWARDING_FUNCTION,
  112.     NdrStubCall2,
  113.     NdrStubCall2,
  114.     NdrStubCall2
  115. };
  116.  
  117. CInterfaceStubVtbl _ItrigStubVtbl =
  118. {
  119.     &IID_Itrig,
  120.     &Itrig_ServerInfo,
  121.     10,
  122.     &Itrig_table[-3],
  123.     CStdStubBuffer_DELEGATING_METHODS
  124. };
  125.  
  126.  
  127. /* Object interface: Iarc, ver. 0.0,
  128.    GUID={0x7162F200,0x7849,0x11d0,{0x98,0xAB,0x00,0xA0,0xD1,0x00,0xE3,0xC8}} */
  129.  
  130.  
  131. extern const MIDL_STUB_DESC Object_StubDesc;
  132.  
  133.  
  134. extern const MIDL_SERVER_INFO Iarc_ServerInfo;
  135.  
  136. #pragma code_seg(".orpc")
  137.  
  138. static const MIDL_STUB_DESC Object_StubDesc = 
  139.     {
  140.     0,
  141.     NdrOleAllocate,
  142.     NdrOleFree,
  143.     0,
  144.     0,
  145.     0,
  146.     0,
  147.     0,
  148.     __MIDL_TypeFormatString.Format,
  149.     0, /* -error bounds_check flag */
  150.     0x20000, /* Ndr library version */
  151.     0,
  152.     0x301004b, /* MIDL Version 3.1.75 */
  153.     0,
  154.     0,
  155.     0,  /* Reserved1 */
  156.     0,  /* Reserved2 */
  157.     0,  /* Reserved3 */
  158.     0,  /* Reserved4 */
  159.     0   /* Reserved5 */
  160.     };
  161.  
  162. static const unsigned short Iarc_FormatStringOffsetTable[] = 
  163.     {
  164.     (unsigned short) -1,
  165.     (unsigned short) -1,
  166.     (unsigned short) -1,
  167.     (unsigned short) -1,
  168.     0,
  169.     30,
  170.     60
  171.     };
  172.  
  173. static const MIDL_SERVER_INFO Iarc_ServerInfo = 
  174.     {
  175.     &Object_StubDesc,
  176.     0,
  177.     __MIDL_ProcFormatString.Format,
  178.     &Iarc_FormatStringOffsetTable[-3],
  179.     0,
  180.     0,
  181.     0,
  182.     0
  183.     };
  184.  
  185. static const MIDL_STUBLESS_PROXY_INFO Iarc_ProxyInfo =
  186.     {
  187.     &Object_StubDesc,
  188.     __MIDL_ProcFormatString.Format,
  189.     &Iarc_FormatStringOffsetTable[-3],
  190.     0,
  191.     0,
  192.     0
  193.     };
  194.  
  195. CINTERFACE_PROXY_VTABLE(10) _IarcProxyVtbl = 
  196. {
  197.     &Iarc_ProxyInfo,
  198.     &IID_Iarc,
  199.     IUnknown_QueryInterface_Proxy,
  200.     IUnknown_AddRef_Proxy,
  201.     IUnknown_Release_Proxy ,
  202.     0 /* (void *)-1 /* IDispatch::GetTypeInfoCount */ ,
  203.     0 /* (void *)-1 /* IDispatch::GetTypeInfo */ ,
  204.     0 /* (void *)-1 /* IDispatch::GetIDsOfNames */ ,
  205.     0 /* IDispatch_Invoke_Proxy */ ,
  206.     (void *)-1 /* Iarc::ATLasin */ ,
  207.     (void *)-1 /* Iarc::ATLacos */ ,
  208.     (void *)-1 /* Iarc::ATLatan */
  209. };
  210.  
  211.  
  212. static const PRPC_STUB_FUNCTION Iarc_table[] =
  213. {
  214.     STUB_FORWARDING_FUNCTION,
  215.     STUB_FORWARDING_FUNCTION,
  216.     STUB_FORWARDING_FUNCTION,
  217.     STUB_FORWARDING_FUNCTION,
  218.     NdrStubCall2,
  219.     NdrStubCall2,
  220.     NdrStubCall2
  221. };
  222.  
  223. CInterfaceStubVtbl _IarcStubVtbl =
  224. {
  225.     &IID_Iarc,
  226.     &Iarc_ServerInfo,
  227.     10,
  228.     &Iarc_table[-3],
  229.     CStdStubBuffer_DELEGATING_METHODS
  230. };
  231.  
  232. #pragma data_seg(".rdata")
  233.  
  234. #if !defined(__RPC_WIN32__)
  235. #error  Invalid build platform for this stub.
  236. #endif
  237.  
  238. #if !(TARGET_IS_NT40_OR_LATER)
  239. #error You need a Windows NT 4.0 or later to run this stub because it uses these features:
  240. #error   -Oif or -Oicf, float, double or hyper in -Oif or -Oicf.
  241. #error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
  242. #error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
  243. #endif
  244.  
  245.  
  246. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  247.     {
  248.         0,
  249.         {
  250.  
  251.     /* Procedure ATLasin */
  252.  
  253.  
  254.     /* Procedure ATLsin */
  255.  
  256.             0x33,        /* FC_AUTO_HANDLE */
  257.             0x64,        /* 100 */
  258. /*  2 */    NdrFcShort( 0x7 ),    /* 7 */
  259. #ifndef _ALPHA_
  260. #if !defined(_MIPS_) && !defined(_PPC_)
  261. /*  4 */    NdrFcShort( 0x14 ),    /* x86 Stack size/offset = 20 */
  262. #else
  263.             NdrFcShort( 0x18 ),    /* MIPS & PPC Stack size/offset = 24 */
  264. #endif
  265. #else
  266.             NdrFcShort( 0x18 ),    /* Alpha Stack size/offset = 24 */
  267. #endif
  268. /*  6 */    NdrFcShort( 0x20 ),    /* 32 */
  269. /*  8 */    NdrFcShort( 0x8 ),    /* 8 */
  270. /* 10 */    0x4,        /* 4 */
  271.             0x3,        /* 3 */
  272.  
  273.     /* Parameter x */
  274.  
  275.  
  276.     /* Parameter x */
  277.  
  278. /* 12 */    NdrFcShort( 0x48 ),    /* 72 */
  279. #ifndef _ALPHA_
  280. #if !defined(_MIPS_) && !defined(_PPC_)
  281. /* 14 */    NdrFcShort( 0x4 ),    /* x86 Stack size/offset = 4 */
  282. #else
  283.             NdrFcShort( 0x8 ),    /* MIPS & PPC Stack size/offset = 8 */
  284. #endif
  285. #else
  286.             NdrFcShort( 0x8 ),    /* Alpha Stack size/offset = 8 */
  287. #endif
  288. /* 16 */    0xc,        /* FC_DOUBLE */
  289.             0x0,        /* 0 */
  290.  
  291.     /* Parameter r */
  292.  
  293.  
  294.     /* Parameter r */
  295.  
  296. /* 18 */    NdrFcShort( 0x148 ),    /* 328 */
  297. #ifndef _ALPHA_
  298. #if !defined(_MIPS_) && !defined(_PPC_)
  299. /* 20 */    NdrFcShort( 0xc ),    /* x86 Stack size/offset = 12 */
  300. #else
  301.             NdrFcShort( 0x10 ),    /* MIPS & PPC Stack size/offset = 16 */
  302. #endif
  303. #else
  304.             NdrFcShort( 0x8 ),    /* Alpha Stack size/offset = 8 */
  305. #endif
  306. /* 22 */    0xc,        /* FC_DOUBLE */
  307.             0x0,        /* 0 */
  308.  
  309.     /* Return value */
  310.  
  311.  
  312.     /* Return value */
  313.  
  314. /* 24 */    NdrFcShort( 0x70 ),    /* 112 */
  315. #ifndef _ALPHA_
  316. #if !defined(_MIPS_) && !defined(_PPC_)
  317. /* 26 */    NdrFcShort( 0x10 ),    /* x86 Stack size/offset = 16 */
  318. #else
  319.             NdrFcShort( 0x14 ),    /* MIPS & PPC Stack size/offset = 20 */
  320. #endif
  321. #else
  322.             NdrFcShort( 0x10 ),    /* Alpha Stack size/offset = 16 */
  323. #endif
  324. /* 28 */    0x8,        /* FC_LONG */
  325.             0x0,        /* 0 */
  326.  
  327.     /* Procedure ATLacos */
  328.  
  329.  
  330.     /* Procedure ATLcos */
  331.  
  332. /* 30 */    0x33,        /* FC_AUTO_HANDLE */
  333.             0x64,        /* 100 */
  334. /* 32 */    NdrFcShort( 0x8 ),    /* 8 */
  335. #ifndef _ALPHA_
  336. #if !defined(_MIPS_) && !defined(_PPC_)
  337. /* 34 */    NdrFcShort( 0x14 ),    /* x86 Stack size/offset = 20 */
  338. #else
  339.             NdrFcShort( 0x18 ),    /* MIPS & PPC Stack size/offset = 24 */
  340. #endif
  341. #else
  342.             NdrFcShort( 0x18 ),    /* Alpha Stack size/offset = 24 */
  343. #endif
  344. /* 36 */    NdrFcShort( 0x20 ),    /* 32 */
  345. /* 38 */    NdrFcShort( 0x8 ),    /* 8 */
  346. /* 40 */    0x4,        /* 4 */
  347.             0x3,        /* 3 */
  348.  
  349.     /* Parameter x */
  350.  
  351.  
  352.     /* Parameter x */
  353.  
  354. /* 42 */    NdrFcShort( 0x48 ),    /* 72 */
  355. #ifndef _ALPHA_
  356. #if !defined(_MIPS_) && !defined(_PPC_)
  357. /* 44 */    NdrFcShort( 0x4 ),    /* x86 Stack size/offset = 4 */
  358. #else
  359.             NdrFcShort( 0x8 ),    /* MIPS & PPC Stack size/offset = 8 */
  360. #endif
  361. #else
  362.             NdrFcShort( 0x8 ),    /* Alpha Stack size/offset = 8 */
  363. #endif
  364. /* 46 */    0xc,        /* FC_DOUBLE */
  365.             0x0,        /* 0 */
  366.  
  367.     /* Parameter r */
  368.  
  369.  
  370.     /* Parameter r */
  371.  
  372. /* 48 */    NdrFcShort( 0x148 ),    /* 328 */
  373. #ifndef _ALPHA_
  374. #if !defined(_MIPS_) && !defined(_PPC_)
  375. /* 50 */    NdrFcShort( 0xc ),    /* x86 Stack size/offset = 12 */
  376. #else
  377.             NdrFcShort( 0x10 ),    /* MIPS & PPC Stack size/offset = 16 */
  378. #endif
  379. #else
  380.             NdrFcShort( 0x8 ),    /* Alpha Stack size/offset = 8 */
  381. #endif
  382. /* 52 */    0xc,        /* FC_DOUBLE */
  383.             0x0,        /* 0 */
  384.  
  385.     /* Return value */
  386.  
  387.  
  388.     /* Return value */
  389.  
  390. /* 54 */    NdrFcShort( 0x70 ),    /* 112 */
  391. #ifndef _ALPHA_
  392. #if !defined(_MIPS_) && !defined(_PPC_)
  393. /* 56 */    NdrFcShort( 0x10 ),    /* x86 Stack size/offset = 16 */
  394. #else
  395.             NdrFcShort( 0x14 ),    /* MIPS & PPC Stack size/offset = 20 */
  396. #endif
  397. #else
  398.             NdrFcShort( 0x10 ),    /* Alpha Stack size/offset = 16 */
  399. #endif
  400. /* 58 */    0x8,        /* FC_LONG */
  401.             0x0,        /* 0 */
  402.  
  403.     /* Procedure ATLatan */
  404.  
  405.  
  406.     /* Procedure ATLtan */
  407.  
  408. /* 60 */    0x33,        /* FC_AUTO_HANDLE */
  409.             0x64,        /* 100 */
  410. /* 62 */    NdrFcShort( 0x9 ),    /* 9 */
  411. #ifndef _ALPHA_
  412. #if !defined(_MIPS_) && !defined(_PPC_)
  413. /* 64 */    NdrFcShort( 0x14 ),    /* x86 Stack size/offset = 20 */
  414. #else
  415.             NdrFcShort( 0x18 ),    /* MIPS & PPC Stack size/offset = 24 */
  416. #endif
  417. #else
  418.             NdrFcShort( 0x18 ),    /* Alpha Stack size/offset = 24 */
  419. #endif
  420. /* 66 */    NdrFcShort( 0x20 ),    /* 32 */
  421. /* 68 */    NdrFcShort( 0x8 ),    /* 8 */
  422. /* 70 */    0x4,        /* 4 */
  423.             0x3,        /* 3 */
  424.  
  425.     /* Parameter x */
  426.  
  427.  
  428.     /* Parameter x */
  429.  
  430. /* 72 */    NdrFcShort( 0x48 ),    /* 72 */
  431. #ifndef _ALPHA_
  432. #if !defined(_MIPS_) && !defined(_PPC_)
  433. /* 74 */    NdrFcShort( 0x4 ),    /* x86 Stack size/offset = 4 */
  434. #else
  435.             NdrFcShort( 0x8 ),    /* MIPS & PPC Stack size/offset = 8 */
  436. #endif
  437. #else
  438.             NdrFcShort( 0x8 ),    /* Alpha Stack size/offset = 8 */
  439. #endif
  440. /* 76 */    0xc,        /* FC_DOUBLE */
  441.             0x0,        /* 0 */
  442.  
  443.     /* Parameter r */
  444.  
  445.  
  446.     /* Parameter r */
  447.  
  448. /* 78 */    NdrFcShort( 0x148 ),    /* 328 */
  449. #ifndef _ALPHA_
  450. #if !defined(_MIPS_) && !defined(_PPC_)
  451. /* 80 */    NdrFcShort( 0xc ),    /* x86 Stack size/offset = 12 */
  452. #else
  453.             NdrFcShort( 0x10 ),    /* MIPS & PPC Stack size/offset = 16 */
  454. #endif
  455. #else
  456.             NdrFcShort( 0x8 ),    /* Alpha Stack size/offset = 8 */
  457. #endif
  458. /* 82 */    0xc,        /* FC_DOUBLE */
  459.             0x0,        /* 0 */
  460.  
  461.     /* Return value */
  462.  
  463.  
  464.     /* Return value */
  465.  
  466. /* 84 */    NdrFcShort( 0x70 ),    /* 112 */
  467. #ifndef _ALPHA_
  468. #if !defined(_MIPS_) && !defined(_PPC_)
  469. /* 86 */    NdrFcShort( 0x10 ),    /* x86 Stack size/offset = 16 */
  470. #else
  471.             NdrFcShort( 0x14 ),    /* MIPS & PPC Stack size/offset = 20 */
  472. #endif
  473. #else
  474.             NdrFcShort( 0x10 ),    /* Alpha Stack size/offset = 16 */
  475. #endif
  476. /* 88 */    0x8,        /* FC_LONG */
  477.             0x0,        /* 0 */
  478.  
  479.             0x0
  480.         }
  481.     };
  482.  
  483. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  484.     {
  485.         0,
  486.         {
  487.             0x11, 0x8,    /* FC_RP [simple_pointer] */
  488. /*  2 */    0xc,        /* FC_DOUBLE */
  489.             0x5c,        /* FC_PAD */
  490.  
  491.             0x0
  492.         }
  493.     };
  494.  
  495. const CInterfaceProxyVtbl * _ATLtrig_ProxyVtblList[] = 
  496. {
  497.     ( CInterfaceProxyVtbl *) &_IarcProxyVtbl,
  498.     ( CInterfaceProxyVtbl *) &_ItrigProxyVtbl,
  499.     0
  500. };
  501.  
  502. const CInterfaceStubVtbl * _ATLtrig_StubVtblList[] = 
  503. {
  504.     ( CInterfaceStubVtbl *) &_IarcStubVtbl,
  505.     ( CInterfaceStubVtbl *) &_ItrigStubVtbl,
  506.     0
  507. };
  508.  
  509. PCInterfaceName const _ATLtrig_InterfaceNamesList[] = 
  510. {
  511.     "Iarc",
  512.     "Itrig",
  513.     0
  514. };
  515.  
  516. const IID *  _ATLtrig_BaseIIDList[] = 
  517. {
  518.     &IID_IDispatch,
  519.     &IID_IDispatch,
  520.     0
  521. };
  522.  
  523.  
  524. #define _ATLtrig_CHECK_IID(n)    IID_GENERIC_CHECK_IID( _ATLtrig, pIID, n)
  525.  
  526. int __stdcall _ATLtrig_IID_Lookup( const IID * pIID, int * pIndex )
  527. {
  528.     IID_BS_LOOKUP_SETUP
  529.  
  530.     IID_BS_LOOKUP_INITIAL_TEST( _ATLtrig, 2, 1 )
  531.     IID_BS_LOOKUP_RETURN_RESULT( _ATLtrig, 2, *pIndex )
  532.     
  533. }
  534.  
  535. const ExtendedProxyFileInfo ATLtrig_ProxyFileInfo = 
  536. {
  537.     (PCInterfaceProxyVtblList *) & _ATLtrig_ProxyVtblList,
  538.     (PCInterfaceStubVtblList *) & _ATLtrig_StubVtblList,
  539.     (const PCInterfaceName * ) & _ATLtrig_InterfaceNamesList,
  540.     (const IID ** ) & _ATLtrig_BaseIIDList,
  541.     & _ATLtrig_IID_Lookup, 
  542.     2,
  543.     2
  544. };
  545.