home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / dcom / atlcont / atlcont.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  5KB  |  208 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:57:34 1998
  6.  */
  7. /* Compiler settings for AtlCont.idl:
  8.     Oic (OptLev=i1), 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 __AtlCont_h__
  32. #define __AtlCont_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IAtlCont_FWD_DEFINED__
  41. #define __IAtlCont_FWD_DEFINED__
  42. typedef interface IAtlCont IAtlCont;
  43. #endif     /* __IAtlCont_FWD_DEFINED__ */
  44.  
  45.  
  46. #ifndef __CAtlCont_FWD_DEFINED__
  47. #define __CAtlCont_FWD_DEFINED__
  48.  
  49. #ifdef __cplusplus
  50. typedef class CAtlCont CAtlCont;
  51. #else
  52. typedef struct CAtlCont CAtlCont;
  53. #endif /* __cplusplus */
  54.  
  55. #endif     /* __CAtlCont_FWD_DEFINED__ */
  56.  
  57.  
  58. /* header files for imported files */
  59. #include "oaidl.h"
  60.  
  61. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  62. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  63.  
  64. #ifndef __IAtlCont_INTERFACE_DEFINED__
  65. #define __IAtlCont_INTERFACE_DEFINED__
  66.  
  67. /****************************************
  68.  * Generated header for interface: IAtlCont
  69.  * at Wed Feb 11 11:57:34 1998
  70.  * using MIDL 3.03.0110
  71.  ****************************************/
  72. /* [unique][helpstring][uuid][object] */ 
  73.  
  74.  
  75.  
  76. EXTERN_C const IID IID_IAtlCont;
  77.  
  78. #if defined(__cplusplus) && !defined(CINTERFACE)
  79.     
  80.     MIDL_INTERFACE("BFD466C3-376C-11D0-96B5-00A0C90DC94B")
  81.     IAtlCont : public IUnknown
  82.     {
  83.     public:
  84.         virtual HRESULT STDMETHODCALLTYPE Run( void) = 0;
  85.         
  86.         virtual HRESULT STDMETHODCALLTYPE Stop( void) = 0;
  87.         
  88.     };
  89.     
  90. #else     /* C style interface */
  91.  
  92.     typedef struct IAtlContVtbl
  93.     {
  94.         BEGIN_INTERFACE
  95.         
  96.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  97.             IAtlCont __RPC_FAR * This,
  98.             /* [in] */ REFIID riid,
  99.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  100.         
  101.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  102.             IAtlCont __RPC_FAR * This);
  103.         
  104.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  105.             IAtlCont __RPC_FAR * This);
  106.         
  107.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Run )( 
  108.             IAtlCont __RPC_FAR * This);
  109.         
  110.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Stop )( 
  111.             IAtlCont __RPC_FAR * This);
  112.         
  113.         END_INTERFACE
  114.     } IAtlContVtbl;
  115.  
  116.     interface IAtlCont
  117.     {
  118.         CONST_VTBL struct IAtlContVtbl __RPC_FAR *lpVtbl;
  119.     };
  120.  
  121.     
  122.  
  123. #ifdef COBJMACROS
  124.  
  125.  
  126. #define IAtlCont_QueryInterface(This,riid,ppvObject)    \
  127.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  128.  
  129. #define IAtlCont_AddRef(This)    \
  130.     (This)->lpVtbl -> AddRef(This)
  131.  
  132. #define IAtlCont_Release(This)    \
  133.     (This)->lpVtbl -> Release(This)
  134.  
  135.  
  136. #define IAtlCont_Run(This)    \
  137.     (This)->lpVtbl -> Run(This)
  138.  
  139. #define IAtlCont_Stop(This)    \
  140.     (This)->lpVtbl -> Stop(This)
  141.  
  142. #endif /* COBJMACROS */
  143.  
  144.  
  145. #endif     /* C style interface */
  146.  
  147.  
  148.  
  149. HRESULT STDMETHODCALLTYPE IAtlCont_Run_Proxy( 
  150.     IAtlCont __RPC_FAR * This);
  151.  
  152.  
  153. void __RPC_STUB IAtlCont_Run_Stub(
  154.     IRpcStubBuffer *This,
  155.     IRpcChannelBuffer *_pRpcChannelBuffer,
  156.     PRPC_MESSAGE _pRpcMessage,
  157.     DWORD *_pdwStubPhase);
  158.  
  159.  
  160. HRESULT STDMETHODCALLTYPE IAtlCont_Stop_Proxy( 
  161.     IAtlCont __RPC_FAR * This);
  162.  
  163.  
  164. void __RPC_STUB IAtlCont_Stop_Stub(
  165.     IRpcStubBuffer *This,
  166.     IRpcChannelBuffer *_pRpcChannelBuffer,
  167.     PRPC_MESSAGE _pRpcMessage,
  168.     DWORD *_pdwStubPhase);
  169.  
  170.  
  171.  
  172. #endif     /* __IAtlCont_INTERFACE_DEFINED__ */
  173.  
  174.  
  175.  
  176. #ifndef __ATLCONTLib_LIBRARY_DEFINED__
  177. #define __ATLCONTLib_LIBRARY_DEFINED__
  178.  
  179. /****************************************
  180.  * Generated header for library: ATLCONTLib
  181.  * at Wed Feb 11 11:57:34 1998
  182.  * using MIDL 3.03.0110
  183.  ****************************************/
  184. /* [helpstring][version][uuid] */ 
  185.  
  186.  
  187.  
  188. EXTERN_C const IID LIBID_ATLCONTLib;
  189.  
  190. EXTERN_C const CLSID CLSID_CAtlCont;
  191.  
  192. #ifdef __cplusplus
  193.  
  194. class DECLSPEC_UUID("BFD466C2-376C-11D0-96B5-00A0C90DC94B")
  195. CAtlCont;
  196. #endif
  197. #endif /* __ATLCONTLib_LIBRARY_DEFINED__ */
  198.  
  199. /* Additional Prototypes for ALL interfaces */
  200.  
  201. /* end of Additional Prototypes */
  202.  
  203. #ifdef __cplusplus
  204. }
  205. #endif
  206.  
  207. #endif
  208.