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

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 3.00.44 */
  5. /* at Wed Nov 06 19:30:10 1996
  6.  */
  7. /* Compiler settings for iball.idl:
  8.     Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: none
  10. */
  11. //@@MIDL_FILE_HEADING(  )
  12. #include "rpc.h"
  13. #include "rpcndr.h"
  14. #ifndef COM_NO_WINDOWS_H
  15. #include "windows.h"
  16. #include "ole2.h"
  17. #endif /*COM_NO_WINDOWS_H*/
  18.  
  19. #ifndef __iball_h__
  20. #define __iball_h__
  21.  
  22. #ifdef __cplusplus
  23. extern "C"{
  24. #endif 
  25.  
  26. /* Forward Declarations */ 
  27.  
  28. #ifndef __IBall_FWD_DEFINED__
  29. #define __IBall_FWD_DEFINED__
  30. typedef interface IBall IBall;
  31. #endif  /* __IBall_FWD_DEFINED__ */
  32.  
  33.  
  34. /* header files for imported files */
  35. #include "unknwn.h"
  36. #include "oaidl.h"
  37.  
  38. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  39. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  40.  
  41. #ifndef __IBall_INTERFACE_DEFINED__
  42. #define __IBall_INTERFACE_DEFINED__
  43.  
  44. /****************************************
  45.  * Generated header for interface: IBall
  46.  * at Wed Nov 06 19:30:10 1996
  47.  * using MIDL 3.00.44
  48.  ****************************************/
  49. /* [unique][helpstring][uuid][object] */ 
  50.  
  51.  
  52.  
  53. EXTERN_C const IID IID_IBall;
  54.  
  55. #if defined(__cplusplus) && !defined(CINTERFACE)
  56.     
  57.     interface IBall : public IUnknown
  58.     {
  59.     public:
  60.         virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_Ball( 
  61.             /* [out] */ POINT __RPC_FAR *pOrg,
  62.             /* [out] */ POINT __RPC_FAR *pExt,
  63.             /* [retval][out] */ COLORREF __RPC_FAR *pcrColor) = 0;
  64.         
  65.         virtual /* [id] */ HRESULT STDMETHODCALLTYPE Reset( 
  66.             /* [in] */ RECT __RPC_FAR *pNewRect,
  67.             /* [in] */ short nBallSize) = 0;
  68.         
  69.         virtual /* [id] */ HRESULT STDMETHODCALLTYPE Move( 
  70.             /* [in] */ BOOL bAlive,
  71.             /* [retval][out] */ BOOL __RPC_FAR *bRet) = 0;
  72.         
  73.     };
  74.     
  75. #else   /* C style interface */
  76.  
  77.     typedef struct IBallVtbl
  78.     {
  79.         BEGIN_INTERFACE
  80.         
  81.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  82.             IBall __RPC_FAR * This,
  83.             /* [in] */ REFIID riid,
  84.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  85.         
  86.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  87.             IBall __RPC_FAR * This);
  88.         
  89.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  90.             IBall __RPC_FAR * This);
  91.         
  92.         /* [propget][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_Ball )( 
  93.             IBall __RPC_FAR * This,
  94.             /* [out] */ POINT __RPC_FAR *pOrg,
  95.             /* [out] */ POINT __RPC_FAR *pExt,
  96.             /* [retval][out] */ COLORREF __RPC_FAR *pcrColor);
  97.         
  98.         /* [id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Reset )( 
  99.             IBall __RPC_FAR * This,
  100.             /* [in] */ RECT __RPC_FAR *pNewRect,
  101.             /* [in] */ short nBallSize);
  102.         
  103.         /* [id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Move )( 
  104.             IBall __RPC_FAR * This,
  105.             /* [in] */ BOOL bAlive,
  106.             /* [retval][out] */ BOOL __RPC_FAR *bRet);
  107.         
  108.         END_INTERFACE
  109.     } IBallVtbl;
  110.  
  111.     interface IBall
  112.     {
  113.         CONST_VTBL struct IBallVtbl __RPC_FAR *lpVtbl;
  114.     };
  115.  
  116.     
  117.  
  118. #ifdef COBJMACROS
  119.  
  120.  
  121. #define IBall_QueryInterface(This,riid,ppvObject)   \
  122.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  123.  
  124. #define IBall_AddRef(This)  \
  125.     (This)->lpVtbl -> AddRef(This)
  126.  
  127. #define IBall_Release(This) \
  128.     (This)->lpVtbl -> Release(This)
  129.  
  130.  
  131. #define IBall_get_Ball(This,pOrg,pExt,pcrColor) \
  132.     (This)->lpVtbl -> get_Ball(This,pOrg,pExt,pcrColor)
  133.  
  134. #define IBall_Reset(This,pNewRect,nBallSize)    \
  135.     (This)->lpVtbl -> Reset(This,pNewRect,nBallSize)
  136.  
  137. #define IBall_Move(This,bAlive,bRet)    \
  138.     (This)->lpVtbl -> Move(This,bAlive,bRet)
  139.  
  140. #endif /* COBJMACROS */
  141.  
  142.  
  143. #endif  /* C style interface */
  144.  
  145.  
  146.  
  147. /* [propget][id] */ HRESULT STDMETHODCALLTYPE IBall_get_Ball_Proxy( 
  148.     IBall __RPC_FAR * This,
  149.     /* [out] */ POINT __RPC_FAR *pOrg,
  150.     /* [out] */ POINT __RPC_FAR *pExt,
  151.     /* [retval][out] */ COLORREF __RPC_FAR *pcrColor);
  152.  
  153.  
  154. void __RPC_STUB IBall_get_Ball_Stub(
  155.     IRpcStubBuffer *This,
  156.     IRpcChannelBuffer *_pRpcChannelBuffer,
  157.     PRPC_MESSAGE _pRpcMessage,
  158.     DWORD *_pdwStubPhase);
  159.  
  160.  
  161. /* [id] */ HRESULT STDMETHODCALLTYPE IBall_Reset_Proxy( 
  162.     IBall __RPC_FAR * This,
  163.     /* [in] */ RECT __RPC_FAR *pNewRect,
  164.     /* [in] */ short nBallSize);
  165.  
  166.  
  167. void __RPC_STUB IBall_Reset_Stub(
  168.     IRpcStubBuffer *This,
  169.     IRpcChannelBuffer *_pRpcChannelBuffer,
  170.     PRPC_MESSAGE _pRpcMessage,
  171.     DWORD *_pdwStubPhase);
  172.  
  173.  
  174. /* [id] */ HRESULT STDMETHODCALLTYPE IBall_Move_Proxy( 
  175.     IBall __RPC_FAR * This,
  176.     /* [in] */ BOOL bAlive,
  177.     /* [retval][out] */ BOOL __RPC_FAR *bRet);
  178.  
  179.  
  180. void __RPC_STUB IBall_Move_Stub(
  181.     IRpcStubBuffer *This,
  182.     IRpcChannelBuffer *_pRpcChannelBuffer,
  183.     PRPC_MESSAGE _pRpcMessage,
  184.     DWORD *_pdwStubPhase);
  185.  
  186.  
  187.  
  188. #endif  /* __IBall_INTERFACE_DEFINED__ */
  189.  
  190.  
  191.  
  192. #ifndef __BallLib_LIBRARY_DEFINED__
  193. #define __BallLib_LIBRARY_DEFINED__
  194.  
  195. /****************************************
  196.  * Generated header for library: BallLib
  197.  * at Wed Nov 06 19:30:10 1996
  198.  * using MIDL 3.00.44
  199.  ****************************************/
  200. /* [helpstring][version][uuid] */ 
  201.  
  202.  
  203.  
  204. EXTERN_C const IID LIBID_BallLib;
  205.  
  206. #ifdef __cplusplus
  207. EXTERN_C const CLSID CLSID_Ball;
  208.  
  209. class Ball;
  210. #endif
  211. #endif /* __BallLib_LIBRARY_DEFINED__ */
  212.  
  213. /* Additional Prototypes for ALL interfaces */
  214.  
  215. /* end of Additional Prototypes */
  216.  
  217. #ifdef __cplusplus
  218. }
  219. #endif
  220.  
  221. #endif
  222.