Simple1.h
上传用户:sz6275
上传日期:2022-06-17
资源大小:80k
文件大小:6k
源码类别:

ActiveX/DCOM/ATL

开发平台:

Visual C++

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 5.01.0164 */
  3. /* at Fri Jul 08 08:17:45 2005
  4.  */
  5. /* Compiler settings for E:ComP5Simple1Simple1.idl:
  6.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  7.     error checks: allocation ref bounds_check enum stub_data 
  8. */
  9. //@@MIDL_FILE_HEADING(  )
  10. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  11. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  12. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  13. #endif
  14. #include "rpc.h"
  15. #include "rpcndr.h"
  16. #ifndef __RPCNDR_H_VERSION__
  17. #error this stub requires an updated version of <rpcndr.h>
  18. #endif // __RPCNDR_H_VERSION__
  19. #ifndef COM_NO_WINDOWS_H
  20. #include "windows.h"
  21. #include "ole2.h"
  22. #endif /*COM_NO_WINDOWS_H*/
  23. #ifndef __Simple1_h__
  24. #define __Simple1_h__
  25. #ifdef __cplusplus
  26. extern "C"{
  27. #endif 
  28. /* Forward Declarations */ 
  29. #ifndef __IFun_FWD_DEFINED__
  30. #define __IFun_FWD_DEFINED__
  31. typedef interface IFun IFun;
  32. #endif  /* __IFun_FWD_DEFINED__ */
  33. #ifndef __Fun_FWD_DEFINED__
  34. #define __Fun_FWD_DEFINED__
  35. #ifdef __cplusplus
  36. typedef class Fun Fun;
  37. #else
  38. typedef struct Fun Fun;
  39. #endif /* __cplusplus */
  40. #endif  /* __Fun_FWD_DEFINED__ */
  41. /* header files for imported files */
  42. #include "oaidl.h"
  43. #include "ocidl.h"
  44. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  45. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  46. #ifndef __IFun_INTERFACE_DEFINED__
  47. #define __IFun_INTERFACE_DEFINED__
  48. /* interface IFun */
  49. /* [unique][helpstring][uuid][object] */ 
  50. EXTERN_C const IID IID_IFun;
  51. #if defined(__cplusplus) && !defined(CINTERFACE)
  52.     
  53.     MIDL_INTERFACE("1F0BD295-9A78-42A4-9256-D7F45C7E4551")
  54.     IFun : public IUnknown
  55.     {
  56.     public:
  57.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Add( 
  58.             /* [in] */ long n1,
  59.             /* [in] */ long n2,
  60.             /* [retval][out] */ long __RPC_FAR *pVal) = 0;
  61.         
  62.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE Cat( 
  63.             /* [in] */ BSTR s1,
  64.             /* [in] */ BSTR s2,
  65.             /* [retval][out] */ BSTR __RPC_FAR *pVal) = 0;
  66.         
  67.     };
  68.     
  69. #else  /* C style interface */
  70.     typedef struct IFunVtbl
  71.     {
  72.         BEGIN_INTERFACE
  73.         
  74.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  75.             IFun __RPC_FAR * This,
  76.             /* [in] */ REFIID riid,
  77.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  78.         
  79.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  80.             IFun __RPC_FAR * This);
  81.         
  82.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  83.             IFun __RPC_FAR * This);
  84.         
  85.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Add )( 
  86.             IFun __RPC_FAR * This,
  87.             /* [in] */ long n1,
  88.             /* [in] */ long n2,
  89.             /* [retval][out] */ long __RPC_FAR *pVal);
  90.         
  91.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Cat )( 
  92.             IFun __RPC_FAR * This,
  93.             /* [in] */ BSTR s1,
  94.             /* [in] */ BSTR s2,
  95.             /* [retval][out] */ BSTR __RPC_FAR *pVal);
  96.         
  97.         END_INTERFACE
  98.     } IFunVtbl;
  99.     interface IFun
  100.     {
  101.         CONST_VTBL struct IFunVtbl __RPC_FAR *lpVtbl;
  102.     };
  103.     
  104. #ifdef COBJMACROS
  105. #define IFun_QueryInterface(This,riid,ppvObject)
  106.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  107. #define IFun_AddRef(This)
  108.     (This)->lpVtbl -> AddRef(This)
  109. #define IFun_Release(This)
  110.     (This)->lpVtbl -> Release(This)
  111. #define IFun_Add(This,n1,n2,pVal)
  112.     (This)->lpVtbl -> Add(This,n1,n2,pVal)
  113. #define IFun_Cat(This,s1,s2,pVal)
  114.     (This)->lpVtbl -> Cat(This,s1,s2,pVal)
  115. #endif /* COBJMACROS */
  116. #endif  /* C style interface */
  117. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IFun_Add_Proxy( 
  118.     IFun __RPC_FAR * This,
  119.     /* [in] */ long n1,
  120.     /* [in] */ long n2,
  121.     /* [retval][out] */ long __RPC_FAR *pVal);
  122. void __RPC_STUB IFun_Add_Stub(
  123.     IRpcStubBuffer *This,
  124.     IRpcChannelBuffer *_pRpcChannelBuffer,
  125.     PRPC_MESSAGE _pRpcMessage,
  126.     DWORD *_pdwStubPhase);
  127. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IFun_Cat_Proxy( 
  128.     IFun __RPC_FAR * This,
  129.     /* [in] */ BSTR s1,
  130.     /* [in] */ BSTR s2,
  131.     /* [retval][out] */ BSTR __RPC_FAR *pVal);
  132. void __RPC_STUB IFun_Cat_Stub(
  133.     IRpcStubBuffer *This,
  134.     IRpcChannelBuffer *_pRpcChannelBuffer,
  135.     PRPC_MESSAGE _pRpcMessage,
  136.     DWORD *_pdwStubPhase);
  137. #endif  /* __IFun_INTERFACE_DEFINED__ */
  138. #ifndef __SIMPLE1Lib_LIBRARY_DEFINED__
  139. #define __SIMPLE1Lib_LIBRARY_DEFINED__
  140. /* library SIMPLE1Lib */
  141. /* [helpstring][version][uuid] */ 
  142. EXTERN_C const IID LIBID_SIMPLE1Lib;
  143. EXTERN_C const CLSID CLSID_Fun;
  144. #ifdef __cplusplus
  145. class DECLSPEC_UUID("F8B8DEEC-9428-4C85-A4C2-301DF8AB0A9A")
  146. Fun;
  147. #endif
  148. #endif /* __SIMPLE1Lib_LIBRARY_DEFINED__ */
  149. /* Additional Prototypes for ALL interfaces */
  150. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
  151. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  152. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  153. void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 
  154. /* end of Additional Prototypes */
  155. #ifdef __cplusplus
  156. }
  157. #endif
  158. #endif