home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow_WinXP / VideoControl / CPP / CPPVideoControl_p.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-08  |  5.1 KB  |  208 lines

  1. /* this ALWAYS GENERATED file contains the proxy stub code */
  2.  
  3.  
  4. /* File created by MIDL compiler version 5.01.0164 */
  5. /* at Mon Jul 23 18:31:14 2001
  6.  */
  7. /* Compiler settings for D:\DXSDK\samples\Multimedia\DirectShowXP\VideoControl\CPPVideoControl\CPPVideoControl.idl:
  8.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: allocation ref bounds_check enum stub_data 
  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 "CPPVideoControl.h"
  29.  
  30. #define TYPE_FORMAT_STRING_SIZE   3                                 
  31. #define PROC_FORMAT_STRING_SIZE   1                                 
  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: IDispatch, ver. 0.0,
  55.    GUID={0x00020400,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
  56.  
  57.  
  58. /* Object interface: ICompositeControl, ver. 0.0,
  59.    GUID={0x3E119535,0xD5AB,0x4520,{0xB0,0xE1,0x49,0x5B,0x32,0x2E,0x2A,0x1A}} */
  60.  
  61.  
  62. extern const MIDL_STUB_DESC Object_StubDesc;
  63.  
  64.  
  65. #pragma code_seg(".orpc")
  66.  
  67. static const MIDL_STUB_DESC Object_StubDesc = 
  68.     {
  69.     0,
  70.     NdrOleAllocate,
  71.     NdrOleFree,
  72.     0,
  73.     0,
  74.     0,
  75.     0,
  76.     0,
  77.     __MIDL_TypeFormatString.Format,
  78.     1, /* -error bounds_check flag */
  79.     0x20000, /* Ndr library version */
  80.     0,
  81.     0x50100a4, /* MIDL Version 5.1.164 */
  82.     0,
  83.     0,
  84.     0,  /* notify & notify_flag routine table */
  85.     1,  /* Flags */
  86.     0,  /* Reserved3 */
  87.     0,  /* Reserved4 */
  88.     0   /* Reserved5 */
  89.     };
  90.  
  91. CINTERFACE_PROXY_VTABLE(7) _ICompositeControlProxyVtbl = 
  92. {
  93.     0,
  94.     &IID_ICompositeControl,
  95.     IUnknown_QueryInterface_Proxy,
  96.     IUnknown_AddRef_Proxy,
  97.     IUnknown_Release_Proxy ,
  98.     0 /* (void *)-1 /* IDispatch::GetTypeInfoCount */ ,
  99.     0 /* (void *)-1 /* IDispatch::GetTypeInfo */ ,
  100.     0 /* (void *)-1 /* IDispatch::GetIDsOfNames */ ,
  101.     0 /* IDispatch_Invoke_Proxy */
  102. };
  103.  
  104.  
  105. static const PRPC_STUB_FUNCTION ICompositeControl_table[] =
  106. {
  107.     STUB_FORWARDING_FUNCTION,
  108.     STUB_FORWARDING_FUNCTION,
  109.     STUB_FORWARDING_FUNCTION,
  110.     STUB_FORWARDING_FUNCTION
  111. };
  112.  
  113. CInterfaceStubVtbl _ICompositeControlStubVtbl =
  114. {
  115.     &IID_ICompositeControl,
  116.     0,
  117.     7,
  118.     &ICompositeControl_table[-3],
  119.     CStdStubBuffer_DELEGATING_METHODS
  120. };
  121.  
  122. #pragma data_seg(".rdata")
  123.  
  124. #if !defined(__RPC_WIN32__)
  125. #error  Invalid build platform for this stub.
  126. #endif
  127.  
  128. #if !(TARGET_IS_NT40_OR_LATER)
  129. #error You need a Windows NT 4.0 or later to run this stub because it uses these features:
  130. #error   -Oif or -Oicf, more than 32 methods in the interface.
  131. #error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
  132. #error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
  133. #endif
  134.  
  135.  
  136. static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
  137.     {
  138.         0,
  139.         {
  140.  
  141.             0x0
  142.         }
  143.     };
  144.  
  145. static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
  146.     {
  147.         0,
  148.         {
  149.             NdrFcShort( 0x0 ),    /* 0 */
  150.  
  151.             0x0
  152.         }
  153.     };
  154.  
  155. const CInterfaceProxyVtbl * _CPPVideoControl_ProxyVtblList[] = 
  156. {
  157.     ( CInterfaceProxyVtbl *) &_ICompositeControlProxyVtbl,
  158.     0
  159. };
  160.  
  161. const CInterfaceStubVtbl * _CPPVideoControl_StubVtblList[] = 
  162. {
  163.     ( CInterfaceStubVtbl *) &_ICompositeControlStubVtbl,
  164.     0
  165. };
  166.  
  167. PCInterfaceName const _CPPVideoControl_InterfaceNamesList[] = 
  168. {
  169.     "ICompositeControl",
  170.     0
  171. };
  172.  
  173. const IID *  _CPPVideoControl_BaseIIDList[] = 
  174. {
  175.     &IID_IDispatch,
  176.     0
  177. };
  178.  
  179.  
  180. #define _CPPVideoControl_CHECK_IID(n)    IID_GENERIC_CHECK_IID( _CPPVideoControl, pIID, n)
  181.  
  182. int __stdcall _CPPVideoControl_IID_Lookup( const IID * pIID, int * pIndex )
  183. {
  184.     
  185.     if(!_CPPVideoControl_CHECK_IID(0))
  186.         {
  187.         *pIndex = 0;
  188.         return 1;
  189.         }
  190.  
  191.     return 0;
  192. }
  193.  
  194. const ExtendedProxyFileInfo CPPVideoControl_ProxyFileInfo = 
  195. {
  196.     (PCInterfaceProxyVtblList *) & _CPPVideoControl_ProxyVtblList,
  197.     (PCInterfaceStubVtblList *) & _CPPVideoControl_StubVtblList,
  198.     (const PCInterfaceName * ) & _CPPVideoControl_InterfaceNamesList,
  199.     (const IID ** ) & _CPPVideoControl_BaseIIDList,
  200.     & _CPPVideoControl_IID_Lookup, 
  201.     1,
  202.     2,
  203.     0, /* table of [async_uuid] interfaces */
  204.     0, /* Filler1 */
  205.     0, /* Filler2 */
  206.     0  /* Filler3 */
  207. };
  208.