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 / inc / ikoala.h < prev    next >
C/C++ Source or Header  |  1995-05-03  |  4KB  |  165 lines

  1. #include "rpc.h"
  2. #include "rpcndr.h"
  3.  
  4. #ifndef __ikoala_h__
  5. #define __ikoala_h__
  6.  
  7. #ifdef __cplusplus
  8. extern "C"{
  9. #endif 
  10.  
  11. /* Forward Declarations */ 
  12.  
  13. #ifndef __IKoala_FWD_DEFINED__
  14. #define __IKoala_FWD_DEFINED__
  15. typedef interface IKoala IKoala;
  16. #endif     /* __IKoala_FWD_DEFINED__ */
  17.  
  18.  
  19. #include "unknwn.h"
  20. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  21. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  22.  
  23. #ifndef __IKoala_INTERFACE_DEFINED__
  24. #define __IKoala_INTERFACE_DEFINED__
  25.  
  26. /****************************************
  27.  * Generated header for interface: IKoala
  28.  * at Mon May 01 08:28:33 1995
  29.  * using MIDL 2.00.72
  30.  ****************************************/
  31. /* [object][uuid] */ 
  32.  
  33.  
  34.  
  35. EXTERN_C const IID IID_IKoala;
  36.  
  37. #if defined(__cplusplus) && !defined(CINTERFACE)
  38.     
  39.     interface IKoala : public IUnknown
  40.     {
  41.     public:
  42.         virtual HRESULT __stdcall ClimbEucalyptusTree( 
  43.             /* [in] */ short iTree) = 0;
  44.         
  45.         virtual HRESULT __stdcall PouchOpensDown( void) = 0;
  46.         
  47.         virtual HRESULT __stdcall SleepAfterEating( 
  48.             /* [in] */ short cMinutes) = 0;
  49.         
  50.     };
  51.     
  52. #else     /* C style interface */
  53.     
  54.     typedef struct IKoalaVtbl
  55.     {
  56.         
  57.         HRESULT ( __stdcall __RPC_FAR *QueryInterface )( 
  58.             IKoala __RPC_FAR * This,
  59.             /* [in] */ REFIID riid,
  60.             /* [out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  61.         
  62.         ULONG ( __stdcall __RPC_FAR *AddRef )( 
  63.             IKoala __RPC_FAR * This);
  64.         
  65.         ULONG ( __stdcall __RPC_FAR *Release )( 
  66.             IKoala __RPC_FAR * This);
  67.         
  68.         HRESULT ( __stdcall __RPC_FAR *ClimbEucalyptusTree )( 
  69.             IKoala __RPC_FAR * This,
  70.             /* [in] */ short iTree);
  71.         
  72.         HRESULT ( __stdcall __RPC_FAR *PouchOpensDown )( 
  73.             IKoala __RPC_FAR * This);
  74.         
  75.         HRESULT ( __stdcall __RPC_FAR *SleepAfterEating )( 
  76.             IKoala __RPC_FAR * This,
  77.             /* [in] */ short cMinutes);
  78.         
  79.     } IKoalaVtbl;
  80.     
  81.     interface IKoala
  82.     {
  83.         CONST_VTBL struct IKoalaVtbl __RPC_FAR *lpVtbl;
  84.     };
  85.     
  86.     
  87.  
  88. #ifdef COBJMACROS
  89.  
  90.  
  91. #define IKoala_QueryInterface(This,riid,ppvObject)    \
  92.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  93.  
  94. #define IKoala_AddRef(This)    \
  95.     (This)->lpVtbl -> AddRef(This)
  96.  
  97. #define IKoala_Release(This)    \
  98.     (This)->lpVtbl -> Release(This)
  99.  
  100.  
  101. #define IKoala_ClimbEucalyptusTree(This,iTree)    \
  102.     (This)->lpVtbl -> ClimbEucalyptusTree(This,iTree)
  103.  
  104. #define IKoala_PouchOpensDown(This)    \
  105.     (This)->lpVtbl -> PouchOpensDown(This)
  106.  
  107. #define IKoala_SleepAfterEating(This,cMinutes)    \
  108.     (This)->lpVtbl -> SleepAfterEating(This,cMinutes)
  109.  
  110. #endif /* COBJMACROS */
  111.  
  112.  
  113. #endif     /* C style interface */
  114.  
  115.  
  116.  
  117. HRESULT __stdcall IKoala_ClimbEucalyptusTree_Proxy( 
  118.     IKoala __RPC_FAR * This,
  119.     /* [in] */ short iTree);
  120.  
  121.  
  122. void __RPC_STUB IKoala_ClimbEucalyptusTree_Stub(
  123.     IRpcStubBuffer *This,
  124.     IRpcChannelBuffer *_pRpcChannelBuffer,
  125.     PRPC_MESSAGE _pRpcMessage,
  126.     DWORD *_pdwStubPhase);
  127.  
  128.  
  129. HRESULT __stdcall IKoala_PouchOpensDown_Proxy( 
  130.     IKoala __RPC_FAR * This);
  131.  
  132.  
  133. void __RPC_STUB IKoala_PouchOpensDown_Stub(
  134.     IRpcStubBuffer *This,
  135.     IRpcChannelBuffer *_pRpcChannelBuffer,
  136.     PRPC_MESSAGE _pRpcMessage,
  137.     DWORD *_pdwStubPhase);
  138.  
  139.  
  140. HRESULT __stdcall IKoala_SleepAfterEating_Proxy( 
  141.     IKoala __RPC_FAR * This,
  142.     /* [in] */ short cMinutes);
  143.  
  144.  
  145. void __RPC_STUB IKoala_SleepAfterEating_Stub(
  146.     IRpcStubBuffer *This,
  147.     IRpcChannelBuffer *_pRpcChannelBuffer,
  148.     PRPC_MESSAGE _pRpcMessage,
  149.     DWORD *_pdwStubPhase);
  150.  
  151.  
  152.  
  153. #endif     /* __IKoala_INTERFACE_DEFINED__ */
  154.  
  155.  
  156. /* Additional Prototypes for ALL interfaces */
  157.  
  158. /* end of Additional Prototypes */
  159.  
  160. #ifdef __cplusplus
  161. }
  162. #endif
  163.  
  164. #endif
  165.