home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / dcom / drawctl / drawctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-03  |  12.3 KB  |  432 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 13:35:04 1998
  6.  */
  7. /* Compiler settings for DrawCtl.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 __DrawCtl_h__
  32. #define __DrawCtl_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IDrawCtl_FWD_DEFINED__
  41. #define __IDrawCtl_FWD_DEFINED__
  42. typedef interface IDrawCtl IDrawCtl;
  43. #endif     /* __IDrawCtl_FWD_DEFINED__ */
  44.  
  45.  
  46. #ifndef __CDrawCtl_FWD_DEFINED__
  47. #define __CDrawCtl_FWD_DEFINED__
  48.  
  49. #ifdef __cplusplus
  50. typedef class CDrawCtl CDrawCtl;
  51. #else
  52. typedef struct CDrawCtl CDrawCtl;
  53. #endif /* __cplusplus */
  54.  
  55. #endif     /* __CDrawCtl_FWD_DEFINED__ */
  56.  
  57.  
  58. #ifndef __IDrawServ_FWD_DEFINED__
  59. #define __IDrawServ_FWD_DEFINED__
  60. typedef interface IDrawServ IDrawServ;
  61. #endif     /* __IDrawServ_FWD_DEFINED__ */
  62.  
  63.  
  64. /* header files for imported files */
  65. #include "oaidl.h"
  66.  
  67. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  68. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  69.  
  70. #ifndef __IDrawCtl_INTERFACE_DEFINED__
  71. #define __IDrawCtl_INTERFACE_DEFINED__
  72.  
  73. /****************************************
  74.  * Generated header for interface: IDrawCtl
  75.  * at Wed Feb 11 13:35:04 1998
  76.  * using MIDL 3.03.0110
  77.  ****************************************/
  78. /* [unique][helpstring][dual][uuid][object] */ 
  79.  
  80.  
  81.  
  82. EXTERN_C const IID IID_IDrawCtl;
  83.  
  84. #if defined(__cplusplus) && !defined(CINTERFACE)
  85.     
  86.     MIDL_INTERFACE("48DDCC1E-1FE0-11D0-B91B-000000000000")
  87.     IDrawCtl : public IDispatch
  88.     {
  89.     public:
  90.         virtual HRESULT STDMETHODCALLTYPE Connect( 
  91.             /* [in] */ BSTR pMachineName) = 0;
  92.         
  93.         virtual HRESULT STDMETHODCALLTYPE Disconnect( void) = 0;
  94.         
  95.         virtual HRESULT STDMETHODCALLTYPE Clear( void) = 0;
  96.         
  97.     };
  98.     
  99. #else     /* C style interface */
  100.  
  101.     typedef struct IDrawCtlVtbl
  102.     {
  103.         BEGIN_INTERFACE
  104.         
  105.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  106.             IDrawCtl __RPC_FAR * This,
  107.             /* [in] */ REFIID riid,
  108.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  109.         
  110.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  111.             IDrawCtl __RPC_FAR * This);
  112.         
  113.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  114.             IDrawCtl __RPC_FAR * This);
  115.         
  116.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  117.             IDrawCtl __RPC_FAR * This,
  118.             /* [out] */ UINT __RPC_FAR *pctinfo);
  119.         
  120.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  121.             IDrawCtl __RPC_FAR * This,
  122.             /* [in] */ UINT iTInfo,
  123.             /* [in] */ LCID lcid,
  124.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  125.         
  126.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  127.             IDrawCtl __RPC_FAR * This,
  128.             /* [in] */ REFIID riid,
  129.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  130.             /* [in] */ UINT cNames,
  131.             /* [in] */ LCID lcid,
  132.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  133.         
  134.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  135.             IDrawCtl __RPC_FAR * This,
  136.             /* [in] */ DISPID dispIdMember,
  137.             /* [in] */ REFIID riid,
  138.             /* [in] */ LCID lcid,
  139.             /* [in] */ WORD wFlags,
  140.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  141.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  142.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  143.             /* [out] */ UINT __RPC_FAR *puArgErr);
  144.         
  145.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Connect )( 
  146.             IDrawCtl __RPC_FAR * This,
  147.             /* [in] */ BSTR pMachineName);
  148.         
  149.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Disconnect )( 
  150.             IDrawCtl __RPC_FAR * This);
  151.         
  152.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Clear )( 
  153.             IDrawCtl __RPC_FAR * This);
  154.         
  155.         END_INTERFACE
  156.     } IDrawCtlVtbl;
  157.  
  158.     interface IDrawCtl
  159.     {
  160.         CONST_VTBL struct IDrawCtlVtbl __RPC_FAR *lpVtbl;
  161.     };
  162.  
  163.     
  164.  
  165. #ifdef COBJMACROS
  166.  
  167.  
  168. #define IDrawCtl_QueryInterface(This,riid,ppvObject)    \
  169.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  170.  
  171. #define IDrawCtl_AddRef(This)    \
  172.     (This)->lpVtbl -> AddRef(This)
  173.  
  174. #define IDrawCtl_Release(This)    \
  175.     (This)->lpVtbl -> Release(This)
  176.  
  177.  
  178. #define IDrawCtl_GetTypeInfoCount(This,pctinfo)    \
  179.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  180.  
  181. #define IDrawCtl_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  182.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  183.  
  184. #define IDrawCtl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  185.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  186.  
  187. #define IDrawCtl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  188.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  189.  
  190.  
  191. #define IDrawCtl_Connect(This,pMachineName)    \
  192.     (This)->lpVtbl -> Connect(This,pMachineName)
  193.  
  194. #define IDrawCtl_Disconnect(This)    \
  195.     (This)->lpVtbl -> Disconnect(This)
  196.  
  197. #define IDrawCtl_Clear(This)    \
  198.     (This)->lpVtbl -> Clear(This)
  199.  
  200. #endif /* COBJMACROS */
  201.  
  202.  
  203. #endif     /* C style interface */
  204.  
  205.  
  206.  
  207. HRESULT STDMETHODCALLTYPE IDrawCtl_Connect_Proxy( 
  208.     IDrawCtl __RPC_FAR * This,
  209.     /* [in] */ BSTR pMachineName);
  210.  
  211.  
  212. void __RPC_STUB IDrawCtl_Connect_Stub(
  213.     IRpcStubBuffer *This,
  214.     IRpcChannelBuffer *_pRpcChannelBuffer,
  215.     PRPC_MESSAGE _pRpcMessage,
  216.     DWORD *_pdwStubPhase);
  217.  
  218.  
  219. HRESULT STDMETHODCALLTYPE IDrawCtl_Disconnect_Proxy( 
  220.     IDrawCtl __RPC_FAR * This);
  221.  
  222.  
  223. void __RPC_STUB IDrawCtl_Disconnect_Stub(
  224.     IRpcStubBuffer *This,
  225.     IRpcChannelBuffer *_pRpcChannelBuffer,
  226.     PRPC_MESSAGE _pRpcMessage,
  227.     DWORD *_pdwStubPhase);
  228.  
  229.  
  230. HRESULT STDMETHODCALLTYPE IDrawCtl_Clear_Proxy( 
  231.     IDrawCtl __RPC_FAR * This);
  232.  
  233.  
  234. void __RPC_STUB IDrawCtl_Clear_Stub(
  235.     IRpcStubBuffer *This,
  236.     IRpcChannelBuffer *_pRpcChannelBuffer,
  237.     PRPC_MESSAGE _pRpcMessage,
  238.     DWORD *_pdwStubPhase);
  239.  
  240.  
  241.  
  242. #endif     /* __IDrawCtl_INTERFACE_DEFINED__ */
  243.  
  244.  
  245.  
  246. #ifndef __DRAWCTLLib_LIBRARY_DEFINED__
  247. #define __DRAWCTLLib_LIBRARY_DEFINED__
  248.  
  249. /****************************************
  250.  * Generated header for library: DRAWCTLLib
  251.  * at Wed Feb 11 13:35:04 1998
  252.  * using MIDL 3.03.0110
  253.  ****************************************/
  254. /* [helpstring][version][uuid] */ 
  255.  
  256.  
  257.  
  258. EXTERN_C const IID LIBID_DRAWCTLLib;
  259.  
  260. EXTERN_C const CLSID CLSID_CDrawCtl;
  261.  
  262. #ifdef __cplusplus
  263.  
  264. class DECLSPEC_UUID("48DDCC1D-1FE0-11D0-B91B-000000000000")
  265. CDrawCtl;
  266. #endif
  267.  
  268. #ifndef __IDrawServ_INTERFACE_DEFINED__
  269. #define __IDrawServ_INTERFACE_DEFINED__
  270.  
  271. /****************************************
  272.  * Generated header for interface: IDrawServ
  273.  * at Wed Feb 11 13:35:04 1998
  274.  * using MIDL 3.03.0110
  275.  ****************************************/
  276. /* [unique][helpstring][dual][uuid][object] */ 
  277.  
  278.  
  279.  
  280. EXTERN_C const IID IID_IDrawServ;
  281.  
  282. #if defined(__cplusplus) && !defined(CINTERFACE)
  283.     
  284.     MIDL_INTERFACE("330E9E75-DF48-11CF-8E2C-00A0C90DC94B")
  285.     IDrawServ : public IDispatch
  286.     {
  287.     public:
  288.         virtual HRESULT STDMETHODCALLTYPE Draw( 
  289.             /* [in] */ long x1,
  290.             /* [in] */ long y1,
  291.             /* [in] */ long x2,
  292.             /* [in] */ long y2,
  293.             /* [in] */ unsigned long col) = 0;
  294.         
  295.     };
  296.     
  297. #else     /* C style interface */
  298.  
  299.     typedef struct IDrawServVtbl
  300.     {
  301.         BEGIN_INTERFACE
  302.         
  303.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  304.             IDrawServ __RPC_FAR * This,
  305.             /* [in] */ REFIID riid,
  306.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  307.         
  308.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  309.             IDrawServ __RPC_FAR * This);
  310.         
  311.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  312.             IDrawServ __RPC_FAR * This);
  313.         
  314.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  315.             IDrawServ __RPC_FAR * This,
  316.             /* [out] */ UINT __RPC_FAR *pctinfo);
  317.         
  318.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  319.             IDrawServ __RPC_FAR * This,
  320.             /* [in] */ UINT iTInfo,
  321.             /* [in] */ LCID lcid,
  322.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  323.         
  324.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  325.             IDrawServ __RPC_FAR * This,
  326.             /* [in] */ REFIID riid,
  327.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  328.             /* [in] */ UINT cNames,
  329.             /* [in] */ LCID lcid,
  330.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  331.         
  332.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  333.             IDrawServ __RPC_FAR * This,
  334.             /* [in] */ DISPID dispIdMember,
  335.             /* [in] */ REFIID riid,
  336.             /* [in] */ LCID lcid,
  337.             /* [in] */ WORD wFlags,
  338.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  339.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  340.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  341.             /* [out] */ UINT __RPC_FAR *puArgErr);
  342.         
  343.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Draw )( 
  344.             IDrawServ __RPC_FAR * This,
  345.             /* [in] */ long x1,
  346.             /* [in] */ long y1,
  347.             /* [in] */ long x2,
  348.             /* [in] */ long y2,
  349.             /* [in] */ unsigned long col);
  350.         
  351.         END_INTERFACE
  352.     } IDrawServVtbl;
  353.  
  354.     interface IDrawServ
  355.     {
  356.         CONST_VTBL struct IDrawServVtbl __RPC_FAR *lpVtbl;
  357.     };
  358.  
  359.     
  360.  
  361. #ifdef COBJMACROS
  362.  
  363.  
  364. #define IDrawServ_QueryInterface(This,riid,ppvObject)    \
  365.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  366.  
  367. #define IDrawServ_AddRef(This)    \
  368.     (This)->lpVtbl -> AddRef(This)
  369.  
  370. #define IDrawServ_Release(This)    \
  371.     (This)->lpVtbl -> Release(This)
  372.  
  373.  
  374. #define IDrawServ_GetTypeInfoCount(This,pctinfo)    \
  375.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  376.  
  377. #define IDrawServ_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  378.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  379.  
  380. #define IDrawServ_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  381.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  382.  
  383. #define IDrawServ_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  384.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  385.  
  386.  
  387. #define IDrawServ_Draw(This,x1,y1,x2,y2,col)    \
  388.     (This)->lpVtbl -> Draw(This,x1,y1,x2,y2,col)
  389.  
  390. #endif /* COBJMACROS */
  391.  
  392.  
  393. #endif     /* C style interface */
  394.  
  395.  
  396.  
  397. HRESULT STDMETHODCALLTYPE IDrawServ_Draw_Proxy( 
  398.     IDrawServ __RPC_FAR * This,
  399.     /* [in] */ long x1,
  400.     /* [in] */ long y1,
  401.     /* [in] */ long x2,
  402.     /* [in] */ long y2,
  403.     /* [in] */ unsigned long col);
  404.  
  405.  
  406. void __RPC_STUB IDrawServ_Draw_Stub(
  407.     IRpcStubBuffer *This,
  408.     IRpcChannelBuffer *_pRpcChannelBuffer,
  409.     PRPC_MESSAGE _pRpcMessage,
  410.     DWORD *_pdwStubPhase);
  411.  
  412.  
  413.  
  414. #endif     /* __IDrawServ_INTERFACE_DEFINED__ */
  415.  
  416. #endif /* __DRAWCTLLib_LIBRARY_DEFINED__ */
  417.  
  418. /* Additional Prototypes for ALL interfaces */
  419.  
  420. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
  421. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  422. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  423. void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 
  424.  
  425. /* end of Additional Prototypes */
  426.  
  427. #ifdef __cplusplus
  428. }
  429. #endif
  430.  
  431. #endif
  432.