home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / connect / server / connect.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  13KB  |  440 lines

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.03.0110 */
  5. /* at Wed Feb 11 11:48:29 1998
  6.  */
  7. /* Compiler settings for Connect.idl:
  8.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: none
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12.  
  13.  
  14. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  15. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  16. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  17. #endif
  18.  
  19. #include "rpc.h"
  20. #include "rpcndr.h"
  21.  
  22. #ifndef __RPCNDR_H_VERSION__
  23. #error this stub requires an updated version of <rpcndr.h>
  24. #endif // __RPCNDR_H_VERSION__
  25.  
  26. #ifndef COM_NO_WINDOWS_H
  27. #include "windows.h"
  28. #include "ole2.h"
  29. #endif /*COM_NO_WINDOWS_H*/
  30.  
  31. #ifndef __Connect_h__
  32. #define __Connect_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IRandom_FWD_DEFINED__
  41. #define __IRandom_FWD_DEFINED__
  42. typedef interface IRandom IRandom;
  43. #endif     /* __IRandom_FWD_DEFINED__ */
  44.  
  45.  
  46. #ifndef __IRandomEvent_FWD_DEFINED__
  47. #define __IRandomEvent_FWD_DEFINED__
  48. typedef interface IRandomEvent IRandomEvent;
  49. #endif     /* __IRandomEvent_FWD_DEFINED__ */
  50.  
  51.  
  52. #ifndef __CoRandom_FWD_DEFINED__
  53. #define __CoRandom_FWD_DEFINED__
  54.  
  55. #ifdef __cplusplus
  56. typedef class CoRandom CoRandom;
  57. #else
  58. typedef struct CoRandom CoRandom;
  59. #endif /* __cplusplus */
  60.  
  61. #endif     /* __CoRandom_FWD_DEFINED__ */
  62.  
  63.  
  64. /* header files for imported files */
  65. #include "oaidl.h"
  66.  
  67. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  68. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  69.  
  70. #ifndef __IRandom_INTERFACE_DEFINED__
  71. #define __IRandom_INTERFACE_DEFINED__
  72.  
  73. /****************************************
  74.  * Generated header for interface: IRandom
  75.  * at Wed Feb 11 11:48:29 1998
  76.  * using MIDL 3.03.0110
  77.  ****************************************/
  78. /* [unique][helpstring][dual][uuid][object] */ 
  79.  
  80.  
  81.  
  82. EXTERN_C const IID IID_IRandom;
  83.  
  84. #if defined(__cplusplus) && !defined(CINTERFACE)
  85.     
  86.     MIDL_INTERFACE("CCE84211-DB31-11CF-9D75-00A0C90391D3")
  87.     IRandom : public IDispatch
  88.     {
  89.     public:
  90.         virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Start( 
  91.             /* [retval][out] */ long __RPC_FAR *pnID) = 0;
  92.         
  93.         virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Stop( 
  94.             /* [in] */ long nID) = 0;
  95.         
  96.         virtual /* [id] */ HRESULT STDMETHODCALLTYPE StopAll( void) = 0;
  97.         
  98.     };
  99.     
  100. #else     /* C style interface */
  101.  
  102.     typedef struct IRandomVtbl
  103.     {
  104.         BEGIN_INTERFACE
  105.         
  106.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  107.             IRandom __RPC_FAR * This,
  108.             /* [in] */ REFIID riid,
  109.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  110.         
  111.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  112.             IRandom __RPC_FAR * This);
  113.         
  114.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  115.             IRandom __RPC_FAR * This);
  116.         
  117.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  118.             IRandom __RPC_FAR * This,
  119.             /* [out] */ UINT __RPC_FAR *pctinfo);
  120.         
  121.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  122.             IRandom __RPC_FAR * This,
  123.             /* [in] */ UINT iTInfo,
  124.             /* [in] */ LCID lcid,
  125.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  126.         
  127.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  128.             IRandom __RPC_FAR * This,
  129.             /* [in] */ REFIID riid,
  130.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  131.             /* [in] */ UINT cNames,
  132.             /* [in] */ LCID lcid,
  133.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  134.         
  135.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  136.             IRandom __RPC_FAR * This,
  137.             /* [in] */ DISPID dispIdMember,
  138.             /* [in] */ REFIID riid,
  139.             /* [in] */ LCID lcid,
  140.             /* [in] */ WORD wFlags,
  141.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  142.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  143.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  144.             /* [out] */ UINT __RPC_FAR *puArgErr);
  145.         
  146.         /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_Start )( 
  147.             IRandom __RPC_FAR * This,
  148.             /* [retval][out] */ long __RPC_FAR *pnID);
  149.         
  150.         /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_Stop )( 
  151.             IRandom __RPC_FAR * This,
  152.             /* [in] */ long nID);
  153.         
  154.         /* [id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *StopAll )( 
  155.             IRandom __RPC_FAR * This);
  156.         
  157.         END_INTERFACE
  158.     } IRandomVtbl;
  159.  
  160.     interface IRandom
  161.     {
  162.         CONST_VTBL struct IRandomVtbl __RPC_FAR *lpVtbl;
  163.     };
  164.  
  165.     
  166.  
  167. #ifdef COBJMACROS
  168.  
  169.  
  170. #define IRandom_QueryInterface(This,riid,ppvObject)    \
  171.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  172.  
  173. #define IRandom_AddRef(This)    \
  174.     (This)->lpVtbl -> AddRef(This)
  175.  
  176. #define IRandom_Release(This)    \
  177.     (This)->lpVtbl -> Release(This)
  178.  
  179.  
  180. #define IRandom_GetTypeInfoCount(This,pctinfo)    \
  181.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  182.  
  183. #define IRandom_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  184.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  185.  
  186. #define IRandom_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  187.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  188.  
  189. #define IRandom_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  190.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  191.  
  192.  
  193. #define IRandom_get_Start(This,pnID)    \
  194.     (This)->lpVtbl -> get_Start(This,pnID)
  195.  
  196. #define IRandom_put_Stop(This,nID)    \
  197.     (This)->lpVtbl -> put_Stop(This,nID)
  198.  
  199. #define IRandom_StopAll(This)    \
  200.     (This)->lpVtbl -> StopAll(This)
  201.  
  202. #endif /* COBJMACROS */
  203.  
  204.  
  205. #endif     /* C style interface */
  206.  
  207.  
  208.  
  209. /* [propget][id] */ HRESULT STDMETHODCALLTYPE IRandom_get_Start_Proxy( 
  210.     IRandom __RPC_FAR * This,
  211.     /* [retval][out] */ long __RPC_FAR *pnID);
  212.  
  213.  
  214. void __RPC_STUB IRandom_get_Start_Stub(
  215.     IRpcStubBuffer *This,
  216.     IRpcChannelBuffer *_pRpcChannelBuffer,
  217.     PRPC_MESSAGE _pRpcMessage,
  218.     DWORD *_pdwStubPhase);
  219.  
  220.  
  221. /* [propput][id] */ HRESULT STDMETHODCALLTYPE IRandom_put_Stop_Proxy( 
  222.     IRandom __RPC_FAR * This,
  223.     /* [in] */ long nID);
  224.  
  225.  
  226. void __RPC_STUB IRandom_put_Stop_Stub(
  227.     IRpcStubBuffer *This,
  228.     IRpcChannelBuffer *_pRpcChannelBuffer,
  229.     PRPC_MESSAGE _pRpcMessage,
  230.     DWORD *_pdwStubPhase);
  231.  
  232.  
  233. /* [id] */ HRESULT STDMETHODCALLTYPE IRandom_StopAll_Proxy( 
  234.     IRandom __RPC_FAR * This);
  235.  
  236.  
  237. void __RPC_STUB IRandom_StopAll_Stub(
  238.     IRpcStubBuffer *This,
  239.     IRpcChannelBuffer *_pRpcChannelBuffer,
  240.     PRPC_MESSAGE _pRpcMessage,
  241.     DWORD *_pdwStubPhase);
  242.  
  243.  
  244.  
  245. #endif     /* __IRandom_INTERFACE_DEFINED__ */
  246.  
  247.  
  248. #ifndef __IRandomEvent_INTERFACE_DEFINED__
  249. #define __IRandomEvent_INTERFACE_DEFINED__
  250.  
  251. /****************************************
  252.  * Generated header for interface: IRandomEvent
  253.  * at Wed Feb 11 11:48:29 1998
  254.  * using MIDL 3.03.0110
  255.  ****************************************/
  256. /* [unique][helpstring][dual][uuid][object] */ 
  257.  
  258.  
  259.  
  260. EXTERN_C const IID IID_IRandomEvent;
  261.  
  262. #if defined(__cplusplus) && !defined(CINTERFACE)
  263.     
  264.     MIDL_INTERFACE("CCE84212-DB31-11CF-9D75-00A0C90391D3")
  265.     IRandomEvent : public IDispatch
  266.     {
  267.     public:
  268.         virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_Fire( 
  269.             /* [in] */ long nID) = 0;
  270.         
  271.         virtual /* [propput][id] */ HRESULT STDMETHODCALLTYPE put_ID( 
  272.             /* [in] */ int n) = 0;
  273.         
  274.     };
  275.     
  276. #else     /* C style interface */
  277.  
  278.     typedef struct IRandomEventVtbl
  279.     {
  280.         BEGIN_INTERFACE
  281.         
  282.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  283.             IRandomEvent __RPC_FAR * This,
  284.             /* [in] */ REFIID riid,
  285.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  286.         
  287.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  288.             IRandomEvent __RPC_FAR * This);
  289.         
  290.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  291.             IRandomEvent __RPC_FAR * This);
  292.         
  293.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  294.             IRandomEvent __RPC_FAR * This,
  295.             /* [out] */ UINT __RPC_FAR *pctinfo);
  296.         
  297.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  298.             IRandomEvent __RPC_FAR * This,
  299.             /* [in] */ UINT iTInfo,
  300.             /* [in] */ LCID lcid,
  301.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  302.         
  303.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  304.             IRandomEvent __RPC_FAR * This,
  305.             /* [in] */ REFIID riid,
  306.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  307.             /* [in] */ UINT cNames,
  308.             /* [in] */ LCID lcid,
  309.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  310.         
  311.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  312.             IRandomEvent __RPC_FAR * This,
  313.             /* [in] */ DISPID dispIdMember,
  314.             /* [in] */ REFIID riid,
  315.             /* [in] */ LCID lcid,
  316.             /* [in] */ WORD wFlags,
  317.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  318.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  319.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  320.             /* [out] */ UINT __RPC_FAR *puArgErr);
  321.         
  322.         /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_Fire )( 
  323.             IRandomEvent __RPC_FAR * This,
  324.             /* [in] */ long nID);
  325.         
  326.         /* [propput][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_ID )( 
  327.             IRandomEvent __RPC_FAR * This,
  328.             /* [in] */ int n);
  329.         
  330.         END_INTERFACE
  331.     } IRandomEventVtbl;
  332.  
  333.     interface IRandomEvent
  334.     {
  335.         CONST_VTBL struct IRandomEventVtbl __RPC_FAR *lpVtbl;
  336.     };
  337.  
  338.     
  339.  
  340. #ifdef COBJMACROS
  341.  
  342.  
  343. #define IRandomEvent_QueryInterface(This,riid,ppvObject)    \
  344.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  345.  
  346. #define IRandomEvent_AddRef(This)    \
  347.     (This)->lpVtbl -> AddRef(This)
  348.  
  349. #define IRandomEvent_Release(This)    \
  350.     (This)->lpVtbl -> Release(This)
  351.  
  352.  
  353. #define IRandomEvent_GetTypeInfoCount(This,pctinfo)    \
  354.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  355.  
  356. #define IRandomEvent_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  357.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  358.  
  359. #define IRandomEvent_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  360.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  361.  
  362. #define IRandomEvent_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  363.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  364.  
  365.  
  366. #define IRandomEvent_put_Fire(This,nID)    \
  367.     (This)->lpVtbl -> put_Fire(This,nID)
  368.  
  369. #define IRandomEvent_put_ID(This,n)    \
  370.     (This)->lpVtbl -> put_ID(This,n)
  371.  
  372. #endif /* COBJMACROS */
  373.  
  374.  
  375. #endif     /* C style interface */
  376.  
  377.  
  378.  
  379. /* [propput][id] */ HRESULT STDMETHODCALLTYPE IRandomEvent_put_Fire_Proxy( 
  380.     IRandomEvent __RPC_FAR * This,
  381.     /* [in] */ long nID);
  382.  
  383.  
  384. void __RPC_STUB IRandomEvent_put_Fire_Stub(
  385.     IRpcStubBuffer *This,
  386.     IRpcChannelBuffer *_pRpcChannelBuffer,
  387.     PRPC_MESSAGE _pRpcMessage,
  388.     DWORD *_pdwStubPhase);
  389.  
  390.  
  391. /* [propput][id] */ HRESULT STDMETHODCALLTYPE IRandomEvent_put_ID_Proxy( 
  392.     IRandomEvent __RPC_FAR * This,
  393.     /* [in] */ int n);
  394.  
  395.  
  396. void __RPC_STUB IRandomEvent_put_ID_Stub(
  397.     IRpcStubBuffer *This,
  398.     IRpcChannelBuffer *_pRpcChannelBuffer,
  399.     PRPC_MESSAGE _pRpcMessage,
  400.     DWORD *_pdwStubPhase);
  401.  
  402.  
  403.  
  404. #endif     /* __IRandomEvent_INTERFACE_DEFINED__ */
  405.  
  406.  
  407.  
  408. #ifndef __CONNECTLib_LIBRARY_DEFINED__
  409. #define __CONNECTLib_LIBRARY_DEFINED__
  410.  
  411. /****************************************
  412.  * Generated header for library: CONNECTLib
  413.  * at Wed Feb 11 11:48:29 1998
  414.  * using MIDL 3.03.0110
  415.  ****************************************/
  416. /* [helpstring][version][uuid] */ 
  417.  
  418.  
  419.  
  420. EXTERN_C const IID LIBID_CONNECTLib;
  421.  
  422. EXTERN_C const CLSID CLSID_CoRandom;
  423.  
  424. #ifdef __cplusplus
  425.  
  426. class DECLSPEC_UUID("CCE84215-DB31-11CF-9D75-00A0C90391D3")
  427. CoRandom;
  428. #endif
  429. #endif /* __CONNECTLib_LIBRARY_DEFINED__ */
  430.  
  431. /* Additional Prototypes for ALL interfaces */
  432.  
  433. /* end of Additional Prototypes */
  434.  
  435. #ifdef __cplusplus
  436. }
  437. #endif
  438.  
  439. #endif
  440.