home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / inole2 / chap06 / ikoala / ikoala.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-30  |  4.8 KB  |  197 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 Mon Mar 30 03:48:23 1998
  6.  */
  7. /* Compiler settings for ikoala.idl:
  8.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, app_config, 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 __ikoala_h__
  32. #define __ikoala_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IKoala_FWD_DEFINED__
  41. #define __IKoala_FWD_DEFINED__
  42. typedef interface IKoala IKoala;
  43. #endif     /* __IKoala_FWD_DEFINED__ */
  44.  
  45.  
  46. /* header files for imported files */
  47. #include "unknwn.h"
  48.  
  49. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  50. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  51.  
  52. #ifndef __IKoala_INTERFACE_DEFINED__
  53. #define __IKoala_INTERFACE_DEFINED__
  54.  
  55. /****************************************
  56.  * Generated header for interface: IKoala
  57.  * at Mon Mar 30 03:48:23 1998
  58.  * using MIDL 3.03.0110
  59.  ****************************************/
  60. /* [object][uuid] */ 
  61.  
  62.  
  63.  
  64. EXTERN_C const IID IID_IKoala;
  65.  
  66. #if defined(__cplusplus) && !defined(CINTERFACE)
  67.     
  68.     MIDL_INTERFACE("0002114b-0000-0000-c000-000000000046")
  69.     IKoala : public IUnknown
  70.     {
  71.     public:
  72.         virtual HRESULT STDMETHODCALLTYPE ClimbEucalyptusTree( 
  73.             /* [in] */ short iTree) = 0;
  74.         
  75.         virtual HRESULT STDMETHODCALLTYPE PouchOpensDown( void) = 0;
  76.         
  77.         virtual HRESULT STDMETHODCALLTYPE SleepAfterEating( 
  78.             /* [in] */ short cMinutes) = 0;
  79.         
  80.     };
  81.     
  82. #else     /* C style interface */
  83.  
  84.     typedef struct IKoalaVtbl
  85.     {
  86.         BEGIN_INTERFACE
  87.         
  88.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  89.             IKoala __RPC_FAR * This,
  90.             /* [in] */ REFIID riid,
  91.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  92.         
  93.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  94.             IKoala __RPC_FAR * This);
  95.         
  96.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  97.             IKoala __RPC_FAR * This);
  98.         
  99.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *ClimbEucalyptusTree )( 
  100.             IKoala __RPC_FAR * This,
  101.             /* [in] */ short iTree);
  102.         
  103.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *PouchOpensDown )( 
  104.             IKoala __RPC_FAR * This);
  105.         
  106.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SleepAfterEating )( 
  107.             IKoala __RPC_FAR * This,
  108.             /* [in] */ short cMinutes);
  109.         
  110.         END_INTERFACE
  111.     } IKoalaVtbl;
  112.  
  113.     interface IKoala
  114.     {
  115.         CONST_VTBL struct IKoalaVtbl __RPC_FAR *lpVtbl;
  116.     };
  117.  
  118.     
  119.  
  120. #ifdef COBJMACROS
  121.  
  122.  
  123. #define IKoala_QueryInterface(This,riid,ppvObject)    \
  124.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  125.  
  126. #define IKoala_AddRef(This)    \
  127.     (This)->lpVtbl -> AddRef(This)
  128.  
  129. #define IKoala_Release(This)    \
  130.     (This)->lpVtbl -> Release(This)
  131.  
  132.  
  133. #define IKoala_ClimbEucalyptusTree(This,iTree)    \
  134.     (This)->lpVtbl -> ClimbEucalyptusTree(This,iTree)
  135.  
  136. #define IKoala_PouchOpensDown(This)    \
  137.     (This)->lpVtbl -> PouchOpensDown(This)
  138.  
  139. #define IKoala_SleepAfterEating(This,cMinutes)    \
  140.     (This)->lpVtbl -> SleepAfterEating(This,cMinutes)
  141.  
  142. #endif /* COBJMACROS */
  143.  
  144.  
  145. #endif     /* C style interface */
  146.  
  147.  
  148.  
  149. HRESULT STDMETHODCALLTYPE IKoala_ClimbEucalyptusTree_Proxy( 
  150.     IKoala __RPC_FAR * This,
  151.     /* [in] */ short iTree);
  152.  
  153.  
  154. void __RPC_STUB IKoala_ClimbEucalyptusTree_Stub(
  155.     IRpcStubBuffer *This,
  156.     IRpcChannelBuffer *_pRpcChannelBuffer,
  157.     PRPC_MESSAGE _pRpcMessage,
  158.     DWORD *_pdwStubPhase);
  159.  
  160.  
  161. HRESULT STDMETHODCALLTYPE IKoala_PouchOpensDown_Proxy( 
  162.     IKoala __RPC_FAR * This);
  163.  
  164.  
  165. void __RPC_STUB IKoala_PouchOpensDown_Stub(
  166.     IRpcStubBuffer *This,
  167.     IRpcChannelBuffer *_pRpcChannelBuffer,
  168.     PRPC_MESSAGE _pRpcMessage,
  169.     DWORD *_pdwStubPhase);
  170.  
  171.  
  172. HRESULT STDMETHODCALLTYPE IKoala_SleepAfterEating_Proxy( 
  173.     IKoala __RPC_FAR * This,
  174.     /* [in] */ short cMinutes);
  175.  
  176.  
  177. void __RPC_STUB IKoala_SleepAfterEating_Stub(
  178.     IRpcStubBuffer *This,
  179.     IRpcChannelBuffer *_pRpcChannelBuffer,
  180.     PRPC_MESSAGE _pRpcMessage,
  181.     DWORD *_pdwStubPhase);
  182.  
  183.  
  184.  
  185. #endif     /* __IKoala_INTERFACE_DEFINED__ */
  186.  
  187.  
  188. /* Additional Prototypes for ALL interfaces */
  189.  
  190. /* end of Additional Prototypes */
  191.  
  192. #ifdef __cplusplus
  193. }
  194. #endif
  195.  
  196. #endif
  197.