_COMServer.h
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:15k
源码类别:

C#编程

开发平台:

Others

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  /* File created by MIDL compiler version 6.00.0361 */
  3. /* at Sun Aug 24 11:58:32 2003
  4.  */
  5. /* Compiler settings for _COMServer.idl:
  6.     Oicf, W1, Zp8, env=Win32 (32b run)
  7.     protocol : dce , ms_ext, c_ext, robust
  8.     error checks: allocation ref bounds_check enum stub_data 
  9.     VC __declspec() decoration level: 
  10.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  11.          DECLSPEC_UUID(), MIDL_INTERFACE()
  12. */
  13. //@@MIDL_FILE_HEADING(  )
  14. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  15. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  16. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  17. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  18. #endif
  19. #include "rpc.h"
  20. #include "rpcndr.h"
  21. #ifndef __RPCNDR_H_VERSION__
  22. #error this stub requires an updated version of <rpcndr.h>
  23. #endif // __RPCNDR_H_VERSION__
  24. #ifndef COM_NO_WINDOWS_H
  25. #include "windows.h"
  26. #include "ole2.h"
  27. #endif /*COM_NO_WINDOWS_H*/
  28. #ifndef ___COMServer_h__
  29. #define ___COMServer_h__
  30. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  31. #pragma once
  32. #endif
  33. /* Forward Declarations */ 
  34. #ifndef __IMath_FWD_DEFINED__
  35. #define __IMath_FWD_DEFINED__
  36. typedef interface IMath IMath;
  37. #endif  /* __IMath_FWD_DEFINED__ */
  38. #ifndef __IWelcome_FWD_DEFINED__
  39. #define __IWelcome_FWD_DEFINED__
  40. typedef interface IWelcome IWelcome;
  41. #endif  /* __IWelcome_FWD_DEFINED__ */
  42. #ifndef ___ICompletedEvents_FWD_DEFINED__
  43. #define ___ICompletedEvents_FWD_DEFINED__
  44. typedef interface _ICompletedEvents _ICompletedEvents;
  45. #endif  /* ___ICompletedEvents_FWD_DEFINED__ */
  46. #ifndef __CCOMDemo_FWD_DEFINED__
  47. #define __CCOMDemo_FWD_DEFINED__
  48. #ifdef __cplusplus
  49. typedef class CCOMDemo CCOMDemo;
  50. #else
  51. typedef struct CCOMDemo CCOMDemo;
  52. #endif /* __cplusplus */
  53. #endif  /* __CCOMDemo_FWD_DEFINED__ */
  54. /* header files for imported files */
  55. #include "prsht.h"
  56. #include "mshtml.h"
  57. #include "mshtmhst.h"
  58. #include "exdisp.h"
  59. #include "objsafe.h"
  60. #ifdef __cplusplus
  61. extern "C"{
  62. #endif 
  63. void * __RPC_USER MIDL_user_allocate(size_t);
  64. void __RPC_USER MIDL_user_free( void * ); 
  65. #ifndef __IMath_INTERFACE_DEFINED__
  66. #define __IMath_INTERFACE_DEFINED__
  67. /* interface IMath */
  68. /* [custom][unique][helpstring][dual][uuid][object] */ 
  69. EXTERN_C const IID IID_IMath;
  70. #if defined(__cplusplus) && !defined(CINTERFACE)
  71.     
  72.     MIDL_INTERFACE("2158751B-896E-461d-9012-EF1680BE0628")
  73.     IMath : public IDispatch
  74.     {
  75.     public:
  76.         virtual /* [id] */ HRESULT STDMETHODCALLTYPE Add( 
  77.             /* [in] */ LONG val1,
  78.             /* [in] */ LONG val2,
  79.             /* [retval][out] */ LONG *result) = 0;
  80.         
  81.         virtual /* [id] */ HRESULT STDMETHODCALLTYPE Sub( 
  82.             /* [in] */ LONG val1,
  83.             /* [in] */ LONG val2,
  84.             /* [retval][out] */ LONG *result) = 0;
  85.         
  86.     };
  87.     
  88. #else  /* C style interface */
  89.     typedef struct IMathVtbl
  90.     {
  91.         BEGIN_INTERFACE
  92.         
  93.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  94.             IMath * This,
  95.             /* [in] */ REFIID riid,
  96.             /* [iid_is][out] */ void **ppvObject);
  97.         
  98.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  99.             IMath * This);
  100.         
  101.         ULONG ( STDMETHODCALLTYPE *Release )( 
  102.             IMath * This);
  103.         
  104.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  105.             IMath * This,
  106.             /* [out] */ UINT *pctinfo);
  107.         
  108.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  109.             IMath * This,
  110.             /* [in] */ UINT iTInfo,
  111.             /* [in] */ LCID lcid,
  112.             /* [out] */ ITypeInfo **ppTInfo);
  113.         
  114.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  115.             IMath * This,
  116.             /* [in] */ REFIID riid,
  117.             /* [size_is][in] */ LPOLESTR *rgszNames,
  118.             /* [in] */ UINT cNames,
  119.             /* [in] */ LCID lcid,
  120.             /* [size_is][out] */ DISPID *rgDispId);
  121.         
  122.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  123.             IMath * This,
  124.             /* [in] */ DISPID dispIdMember,
  125.             /* [in] */ REFIID riid,
  126.             /* [in] */ LCID lcid,
  127.             /* [in] */ WORD wFlags,
  128.             /* [out][in] */ DISPPARAMS *pDispParams,
  129.             /* [out] */ VARIANT *pVarResult,
  130.             /* [out] */ EXCEPINFO *pExcepInfo,
  131.             /* [out] */ UINT *puArgErr);
  132.         
  133.         /* [id] */ HRESULT ( STDMETHODCALLTYPE *Add )( 
  134.             IMath * This,
  135.             /* [in] */ LONG val1,
  136.             /* [in] */ LONG val2,
  137.             /* [retval][out] */ LONG *result);
  138.         
  139.         /* [id] */ HRESULT ( STDMETHODCALLTYPE *Sub )( 
  140.             IMath * This,
  141.             /* [in] */ LONG val1,
  142.             /* [in] */ LONG val2,
  143.             /* [retval][out] */ LONG *result);
  144.         
  145.         END_INTERFACE
  146.     } IMathVtbl;
  147.     interface IMath
  148.     {
  149.         CONST_VTBL struct IMathVtbl *lpVtbl;
  150.     };
  151.     
  152. #ifdef COBJMACROS
  153. #define IMath_QueryInterface(This,riid,ppvObject)
  154.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  155. #define IMath_AddRef(This)
  156.     (This)->lpVtbl -> AddRef(This)
  157. #define IMath_Release(This)
  158.     (This)->lpVtbl -> Release(This)
  159. #define IMath_GetTypeInfoCount(This,pctinfo)
  160.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  161. #define IMath_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  162.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  163. #define IMath_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  164.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  165. #define IMath_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  166.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  167. #define IMath_Add(This,val1,val2,result)
  168.     (This)->lpVtbl -> Add(This,val1,val2,result)
  169. #define IMath_Sub(This,val1,val2,result)
  170.     (This)->lpVtbl -> Sub(This,val1,val2,result)
  171. #endif /* COBJMACROS */
  172. #endif  /* C style interface */
  173. /* [id] */ HRESULT STDMETHODCALLTYPE IMath_Add_Proxy( 
  174.     IMath * This,
  175.     /* [in] */ LONG val1,
  176.     /* [in] */ LONG val2,
  177.     /* [retval][out] */ LONG *result);
  178. void __RPC_STUB IMath_Add_Stub(
  179.     IRpcStubBuffer *This,
  180.     IRpcChannelBuffer *_pRpcChannelBuffer,
  181.     PRPC_MESSAGE _pRpcMessage,
  182.     DWORD *_pdwStubPhase);
  183. /* [id] */ HRESULT STDMETHODCALLTYPE IMath_Sub_Proxy( 
  184.     IMath * This,
  185.     /* [in] */ LONG val1,
  186.     /* [in] */ LONG val2,
  187.     /* [retval][out] */ LONG *result);
  188. void __RPC_STUB IMath_Sub_Stub(
  189.     IRpcStubBuffer *This,
  190.     IRpcChannelBuffer *_pRpcChannelBuffer,
  191.     PRPC_MESSAGE _pRpcMessage,
  192.     DWORD *_pdwStubPhase);
  193. #endif  /* __IMath_INTERFACE_DEFINED__ */
  194. #ifndef __IWelcome_INTERFACE_DEFINED__
  195. #define __IWelcome_INTERFACE_DEFINED__
  196. /* interface IWelcome */
  197. /* [custom][unique][helpstring][dual][uuid][object] */ 
  198. EXTERN_C const IID IID_IWelcome;
  199. #if defined(__cplusplus) && !defined(CINTERFACE)
  200.     
  201.     MIDL_INTERFACE("015ED275-3DE6-4716-A6FA-4EBC71E4A8EA")
  202.     IWelcome : public IDispatch
  203.     {
  204.     public:
  205.         virtual /* [id] */ HRESULT STDMETHODCALLTYPE Greeting( 
  206.             /* [in] */ BSTR name,
  207.             /* [retval][out] */ BSTR *message) = 0;
  208.         
  209.     };
  210.     
  211. #else  /* C style interface */
  212.     typedef struct IWelcomeVtbl
  213.     {
  214.         BEGIN_INTERFACE
  215.         
  216.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  217.             IWelcome * This,
  218.             /* [in] */ REFIID riid,
  219.             /* [iid_is][out] */ void **ppvObject);
  220.         
  221.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  222.             IWelcome * This);
  223.         
  224.         ULONG ( STDMETHODCALLTYPE *Release )( 
  225.             IWelcome * This);
  226.         
  227.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  228.             IWelcome * This,
  229.             /* [out] */ UINT *pctinfo);
  230.         
  231.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  232.             IWelcome * This,
  233.             /* [in] */ UINT iTInfo,
  234.             /* [in] */ LCID lcid,
  235.             /* [out] */ ITypeInfo **ppTInfo);
  236.         
  237.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  238.             IWelcome * This,
  239.             /* [in] */ REFIID riid,
  240.             /* [size_is][in] */ LPOLESTR *rgszNames,
  241.             /* [in] */ UINT cNames,
  242.             /* [in] */ LCID lcid,
  243.             /* [size_is][out] */ DISPID *rgDispId);
  244.         
  245.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  246.             IWelcome * This,
  247.             /* [in] */ DISPID dispIdMember,
  248.             /* [in] */ REFIID riid,
  249.             /* [in] */ LCID lcid,
  250.             /* [in] */ WORD wFlags,
  251.             /* [out][in] */ DISPPARAMS *pDispParams,
  252.             /* [out] */ VARIANT *pVarResult,
  253.             /* [out] */ EXCEPINFO *pExcepInfo,
  254.             /* [out] */ UINT *puArgErr);
  255.         
  256.         /* [id] */ HRESULT ( STDMETHODCALLTYPE *Greeting )( 
  257.             IWelcome * This,
  258.             /* [in] */ BSTR name,
  259.             /* [retval][out] */ BSTR *message);
  260.         
  261.         END_INTERFACE
  262.     } IWelcomeVtbl;
  263.     interface IWelcome
  264.     {
  265.         CONST_VTBL struct IWelcomeVtbl *lpVtbl;
  266.     };
  267.     
  268. #ifdef COBJMACROS
  269. #define IWelcome_QueryInterface(This,riid,ppvObject)
  270.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  271. #define IWelcome_AddRef(This)
  272.     (This)->lpVtbl -> AddRef(This)
  273. #define IWelcome_Release(This)
  274.     (This)->lpVtbl -> Release(This)
  275. #define IWelcome_GetTypeInfoCount(This,pctinfo)
  276.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  277. #define IWelcome_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  278.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  279. #define IWelcome_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  280.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  281. #define IWelcome_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  282.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  283. #define IWelcome_Greeting(This,name,message)
  284.     (This)->lpVtbl -> Greeting(This,name,message)
  285. #endif /* COBJMACROS */
  286. #endif  /* C style interface */
  287. /* [id] */ HRESULT STDMETHODCALLTYPE IWelcome_Greeting_Proxy( 
  288.     IWelcome * This,
  289.     /* [in] */ BSTR name,
  290.     /* [retval][out] */ BSTR *message);
  291. void __RPC_STUB IWelcome_Greeting_Stub(
  292.     IRpcStubBuffer *This,
  293.     IRpcChannelBuffer *_pRpcChannelBuffer,
  294.     PRPC_MESSAGE _pRpcMessage,
  295.     DWORD *_pdwStubPhase);
  296. #endif  /* __IWelcome_INTERFACE_DEFINED__ */
  297. #ifndef __COMServer_LIBRARY_DEFINED__
  298. #define __COMServer_LIBRARY_DEFINED__
  299. /* library COMServer */
  300. /* [helpstring][uuid][version] */ 
  301. EXTERN_C const IID LIBID_COMServer;
  302. #ifndef ___ICompletedEvents_DISPINTERFACE_DEFINED__
  303. #define ___ICompletedEvents_DISPINTERFACE_DEFINED__
  304. /* dispinterface _ICompletedEvents */
  305. /* [helpstring][custom][uuid] */ 
  306. EXTERN_C const IID DIID__ICompletedEvents;
  307. #if defined(__cplusplus) && !defined(CINTERFACE)
  308.     MIDL_INTERFACE("B2CBBCD3-2993-4148-8EF4-356EACFD834B")
  309.     _ICompletedEvents : public IDispatch
  310.     {
  311.     };
  312.     
  313. #else  /* C style interface */
  314.     typedef struct _ICompletedEventsVtbl
  315.     {
  316.         BEGIN_INTERFACE
  317.         
  318.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  319.             _ICompletedEvents * This,
  320.             /* [in] */ REFIID riid,
  321.             /* [iid_is][out] */ void **ppvObject);
  322.         
  323.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  324.             _ICompletedEvents * This);
  325.         
  326.         ULONG ( STDMETHODCALLTYPE *Release )( 
  327.             _ICompletedEvents * This);
  328.         
  329.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  330.             _ICompletedEvents * This,
  331.             /* [out] */ UINT *pctinfo);
  332.         
  333.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  334.             _ICompletedEvents * This,
  335.             /* [in] */ UINT iTInfo,
  336.             /* [in] */ LCID lcid,
  337.             /* [out] */ ITypeInfo **ppTInfo);
  338.         
  339.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  340.             _ICompletedEvents * This,
  341.             /* [in] */ REFIID riid,
  342.             /* [size_is][in] */ LPOLESTR *rgszNames,
  343.             /* [in] */ UINT cNames,
  344.             /* [in] */ LCID lcid,
  345.             /* [size_is][out] */ DISPID *rgDispId);
  346.         
  347.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  348.             _ICompletedEvents * This,
  349.             /* [in] */ DISPID dispIdMember,
  350.             /* [in] */ REFIID riid,
  351.             /* [in] */ LCID lcid,
  352.             /* [in] */ WORD wFlags,
  353.             /* [out][in] */ DISPPARAMS *pDispParams,
  354.             /* [out] */ VARIANT *pVarResult,
  355.             /* [out] */ EXCEPINFO *pExcepInfo,
  356.             /* [out] */ UINT *puArgErr);
  357.         
  358.         END_INTERFACE
  359.     } _ICompletedEventsVtbl;
  360.     interface _ICompletedEvents
  361.     {
  362.         CONST_VTBL struct _ICompletedEventsVtbl *lpVtbl;
  363.     };
  364.     
  365. #ifdef COBJMACROS
  366. #define _ICompletedEvents_QueryInterface(This,riid,ppvObject)
  367.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  368. #define _ICompletedEvents_AddRef(This)
  369.     (This)->lpVtbl -> AddRef(This)
  370. #define _ICompletedEvents_Release(This)
  371.     (This)->lpVtbl -> Release(This)
  372. #define _ICompletedEvents_GetTypeInfoCount(This,pctinfo)
  373.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  374. #define _ICompletedEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  375.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  376. #define _ICompletedEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  377.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  378. #define _ICompletedEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  379.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  380. #endif /* COBJMACROS */
  381. #endif  /* C style interface */
  382. #endif  /* ___ICompletedEvents_DISPINTERFACE_DEFINED__ */
  383. EXTERN_C const CLSID CLSID_CCOMDemo;
  384. #ifdef __cplusplus
  385. class DECLSPEC_UUID("2388AAA8-AD72-4022-948D-555316F708E8")
  386. CCOMDemo;
  387. #endif
  388. #endif /* __COMServer_LIBRARY_DEFINED__ */
  389. /* Additional Prototypes for ALL interfaces */
  390. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
  391. unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
  392. unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
  393. void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 
  394. /* end of Additional Prototypes */
  395. #ifdef __cplusplus
  396. }
  397. #endif
  398. #endif