home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / dcom / drawserv / drawserv.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  7KB  |  246 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:54:06 1998
  6.  */
  7. /* Compiler settings for DrawServ.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 __DrawServ_h__
  32. #define __DrawServ_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IDrawServ_FWD_DEFINED__
  41. #define __IDrawServ_FWD_DEFINED__
  42. typedef interface IDrawServ IDrawServ;
  43. #endif     /* __IDrawServ_FWD_DEFINED__ */
  44.  
  45.  
  46. #ifndef __CDrawServ_FWD_DEFINED__
  47. #define __CDrawServ_FWD_DEFINED__
  48.  
  49. #ifdef __cplusplus
  50. typedef class CDrawServ CDrawServ;
  51. #else
  52. typedef struct CDrawServ CDrawServ;
  53. #endif /* __cplusplus */
  54.  
  55. #endif     /* __CDrawServ_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 __IDrawServ_INTERFACE_DEFINED__
  65. #define __IDrawServ_INTERFACE_DEFINED__
  66.  
  67. /****************************************
  68.  * Generated header for interface: IDrawServ
  69.  * at Wed Feb 11 11:54:06 1998
  70.  * using MIDL 3.03.0110
  71.  ****************************************/
  72. /* [unique][helpstring][dual][uuid][object] */ 
  73.  
  74.  
  75.  
  76. EXTERN_C const IID IID_IDrawServ;
  77.  
  78. #if defined(__cplusplus) && !defined(CINTERFACE)
  79.     
  80.     MIDL_INTERFACE("330E9E75-DF48-11CF-8E2C-00A0C90DC94B")
  81.     IDrawServ : public IDispatch
  82.     {
  83.     public:
  84.         virtual HRESULT STDMETHODCALLTYPE Draw( 
  85.             /* [in] */ long x1,
  86.             /* [in] */ long y1,
  87.             /* [in] */ long x2,
  88.             /* [in] */ long y2,
  89.             /* [in] */ unsigned long col) = 0;
  90.         
  91.     };
  92.     
  93. #else     /* C style interface */
  94.  
  95.     typedef struct IDrawServVtbl
  96.     {
  97.         BEGIN_INTERFACE
  98.         
  99.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  100.             IDrawServ __RPC_FAR * This,
  101.             /* [in] */ REFIID riid,
  102.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  103.         
  104.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  105.             IDrawServ __RPC_FAR * This);
  106.         
  107.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  108.             IDrawServ __RPC_FAR * This);
  109.         
  110.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  111.             IDrawServ __RPC_FAR * This,
  112.             /* [out] */ UINT __RPC_FAR *pctinfo);
  113.         
  114.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  115.             IDrawServ __RPC_FAR * This,
  116.             /* [in] */ UINT iTInfo,
  117.             /* [in] */ LCID lcid,
  118.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  119.         
  120.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  121.             IDrawServ __RPC_FAR * This,
  122.             /* [in] */ REFIID riid,
  123.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  124.             /* [in] */ UINT cNames,
  125.             /* [in] */ LCID lcid,
  126.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  127.         
  128.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  129.             IDrawServ __RPC_FAR * This,
  130.             /* [in] */ DISPID dispIdMember,
  131.             /* [in] */ REFIID riid,
  132.             /* [in] */ LCID lcid,
  133.             /* [in] */ WORD wFlags,
  134.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  135.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  136.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  137.             /* [out] */ UINT __RPC_FAR *puArgErr);
  138.         
  139.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Draw )( 
  140.             IDrawServ __RPC_FAR * This,
  141.             /* [in] */ long x1,
  142.             /* [in] */ long y1,
  143.             /* [in] */ long x2,
  144.             /* [in] */ long y2,
  145.             /* [in] */ unsigned long col);
  146.         
  147.         END_INTERFACE
  148.     } IDrawServVtbl;
  149.  
  150.     interface IDrawServ
  151.     {
  152.         CONST_VTBL struct IDrawServVtbl __RPC_FAR *lpVtbl;
  153.     };
  154.  
  155.     
  156.  
  157. #ifdef COBJMACROS
  158.  
  159.  
  160. #define IDrawServ_QueryInterface(This,riid,ppvObject)    \
  161.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  162.  
  163. #define IDrawServ_AddRef(This)    \
  164.     (This)->lpVtbl -> AddRef(This)
  165.  
  166. #define IDrawServ_Release(This)    \
  167.     (This)->lpVtbl -> Release(This)
  168.  
  169.  
  170. #define IDrawServ_GetTypeInfoCount(This,pctinfo)    \
  171.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  172.  
  173. #define IDrawServ_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  174.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  175.  
  176. #define IDrawServ_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  177.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  178.  
  179. #define IDrawServ_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  180.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  181.  
  182.  
  183. #define IDrawServ_Draw(This,x1,y1,x2,y2,col)    \
  184.     (This)->lpVtbl -> Draw(This,x1,y1,x2,y2,col)
  185.  
  186. #endif /* COBJMACROS */
  187.  
  188.  
  189. #endif     /* C style interface */
  190.  
  191.  
  192.  
  193. HRESULT STDMETHODCALLTYPE IDrawServ_Draw_Proxy( 
  194.     IDrawServ __RPC_FAR * This,
  195.     /* [in] */ long x1,
  196.     /* [in] */ long y1,
  197.     /* [in] */ long x2,
  198.     /* [in] */ long y2,
  199.     /* [in] */ unsigned long col);
  200.  
  201.  
  202. void __RPC_STUB IDrawServ_Draw_Stub(
  203.     IRpcStubBuffer *This,
  204.     IRpcChannelBuffer *_pRpcChannelBuffer,
  205.     PRPC_MESSAGE _pRpcMessage,
  206.     DWORD *_pdwStubPhase);
  207.  
  208.  
  209.  
  210. #endif     /* __IDrawServ_INTERFACE_DEFINED__ */
  211.  
  212.  
  213.  
  214. #ifndef __DRAWSERVLib_LIBRARY_DEFINED__
  215. #define __DRAWSERVLib_LIBRARY_DEFINED__
  216.  
  217. /****************************************
  218.  * Generated header for library: DRAWSERVLib
  219.  * at Wed Feb 11 11:54:06 1998
  220.  * using MIDL 3.03.0110
  221.  ****************************************/
  222. /* [helpstring][version][uuid] */ 
  223.  
  224.  
  225.  
  226. EXTERN_C const IID LIBID_DRAWSERVLib;
  227.  
  228. EXTERN_C const CLSID CLSID_CDrawServ;
  229.  
  230. #ifdef __cplusplus
  231.  
  232. class DECLSPEC_UUID("330E9E79-DF48-11CF-8E2C-00A0C90DC94B")
  233. CDrawServ;
  234. #endif
  235. #endif /* __DRAWSERVLib_LIBRARY_DEFINED__ */
  236.  
  237. /* Additional Prototypes for ALL interfaces */
  238.  
  239. /* end of Additional Prototypes */
  240.  
  241. #ifdef __cplusplus
  242. }
  243. #endif
  244.  
  245. #endif
  246.