home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 40 / IOPROG_40.ISO / SOFT / NETFrameworkSDK.exe / comsdk.cab / ivehandler.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  6.3 KB  |  239 lines

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2.  
  3.  
  4. /* File created by MIDL compiler version 5.01.0164 */
  5. /* at Fri Jun 23 00:40:18 2000
  6.  */
  7. /* Compiler settings for ivehandler.idl:
  8.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: allocation ref bounds_check enum stub_data , no_format_optimization
  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 __ivehandler_h__
  32. #define __ivehandler_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __VEHandlerClass_FWD_DEFINED__
  41. #define __VEHandlerClass_FWD_DEFINED__
  42.  
  43. #ifdef __cplusplus
  44. typedef class VEHandlerClass VEHandlerClass;
  45. #else
  46. typedef struct VEHandlerClass VEHandlerClass;
  47. #endif /* __cplusplus */
  48.  
  49. #endif     /* __VEHandlerClass_FWD_DEFINED__ */
  50.  
  51.  
  52. #ifndef __IVEHandler_FWD_DEFINED__
  53. #define __IVEHandler_FWD_DEFINED__
  54. typedef interface IVEHandler IVEHandler;
  55. #endif     /* __IVEHandler_FWD_DEFINED__ */
  56.  
  57.  
  58. /* header files for imported files */
  59. #include "unknwn.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. /* interface __MIDL_itf_ivehandler_0000 */
  65. /* [local] */ 
  66.  
  67. #pragma once
  68. typedef /* [public][public][public] */ struct  __MIDL___MIDL_itf_ivehandler_0000_0001
  69.     {
  70.     unsigned long flags;
  71.     unsigned long opcode;
  72.     unsigned long uOffset;
  73.     unsigned long Token;
  74.     unsigned long item1_flags;
  75.     int __RPC_FAR *item1_data;
  76.     unsigned long item2_flags;
  77.     int __RPC_FAR *item2_data;
  78.     }    _VerError;
  79.  
  80. typedef _VerError VEContext;
  81.  
  82.  
  83.  
  84.  
  85. extern RPC_IF_HANDLE __MIDL_itf_ivehandler_0000_v0_0_c_ifspec;
  86. extern RPC_IF_HANDLE __MIDL_itf_ivehandler_0000_v0_0_s_ifspec;
  87.  
  88.  
  89. #ifndef __VEHandlerLib_LIBRARY_DEFINED__
  90. #define __VEHandlerLib_LIBRARY_DEFINED__
  91.  
  92. /* library VEHandlerLib */
  93. /* [helpstring][version][uuid] */ 
  94.  
  95.  
  96. EXTERN_C const IID LIBID_VEHandlerLib;
  97.  
  98. EXTERN_C const CLSID CLSID_VEHandlerClass;
  99.  
  100. #ifdef __cplusplus
  101.  
  102. class DECLSPEC_UUID("856CA1B1-7DAB-11d3-ACEC-00C04F86C309")
  103. VEHandlerClass;
  104. #endif
  105. #endif /* __VEHandlerLib_LIBRARY_DEFINED__ */
  106.  
  107. #ifndef __IVEHandler_INTERFACE_DEFINED__
  108. #define __IVEHandler_INTERFACE_DEFINED__
  109.  
  110. /* interface IVEHandler */
  111. /* [unique][uuid][object] */ 
  112.  
  113.  
  114. EXTERN_C const IID IID_IVEHandler;
  115.  
  116. #if defined(__cplusplus) && !defined(CINTERFACE)
  117.     
  118.     MIDL_INTERFACE("856CA1B2-7DAB-11d3-ACEC-00C04F86C309")
  119.     IVEHandler : public IUnknown
  120.     {
  121.     public:
  122.         virtual HRESULT STDMETHODCALLTYPE VEHandler( 
  123.             /* [in] */ HRESULT VECode,
  124.             /* [in] */ VEContext Context,
  125.             /* [in] */ SAFEARRAY __RPC_FAR * psa) = 0;
  126.         
  127.         virtual HRESULT STDMETHODCALLTYPE SetReporterFtn( 
  128.             /* [in] */ long lFnPtr) = 0;
  129.         
  130.     };
  131.     
  132. #else     /* C style interface */
  133.  
  134.     typedef struct IVEHandlerVtbl
  135.     {
  136.         BEGIN_INTERFACE
  137.         
  138.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  139.             IVEHandler __RPC_FAR * This,
  140.             /* [in] */ REFIID riid,
  141.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  142.         
  143.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  144.             IVEHandler __RPC_FAR * This);
  145.         
  146.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  147.             IVEHandler __RPC_FAR * This);
  148.         
  149.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *VEHandler )( 
  150.             IVEHandler __RPC_FAR * This,
  151.             /* [in] */ HRESULT VECode,
  152.             /* [in] */ VEContext Context,
  153.             /* [in] */ SAFEARRAY __RPC_FAR * psa);
  154.         
  155.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *SetReporterFtn )( 
  156.             IVEHandler __RPC_FAR * This,
  157.             /* [in] */ long lFnPtr);
  158.         
  159.         END_INTERFACE
  160.     } IVEHandlerVtbl;
  161.  
  162.     interface IVEHandler
  163.     {
  164.         CONST_VTBL struct IVEHandlerVtbl __RPC_FAR *lpVtbl;
  165.     };
  166.  
  167.     
  168.  
  169. #ifdef COBJMACROS
  170.  
  171.  
  172. #define IVEHandler_QueryInterface(This,riid,ppvObject)    \
  173.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  174.  
  175. #define IVEHandler_AddRef(This)    \
  176.     (This)->lpVtbl -> AddRef(This)
  177.  
  178. #define IVEHandler_Release(This)    \
  179.     (This)->lpVtbl -> Release(This)
  180.  
  181.  
  182. #define IVEHandler_VEHandler(This,VECode,Context,psa)    \
  183.     (This)->lpVtbl -> VEHandler(This,VECode,Context,psa)
  184.  
  185. #define IVEHandler_SetReporterFtn(This,lFnPtr)    \
  186.     (This)->lpVtbl -> SetReporterFtn(This,lFnPtr)
  187.  
  188. #endif /* COBJMACROS */
  189.  
  190.  
  191. #endif     /* C style interface */
  192.  
  193.  
  194.  
  195. HRESULT STDMETHODCALLTYPE IVEHandler_VEHandler_Proxy( 
  196.     IVEHandler __RPC_FAR * This,
  197.     /* [in] */ HRESULT VECode,
  198.     /* [in] */ VEContext Context,
  199.     /* [in] */ SAFEARRAY __RPC_FAR * psa);
  200.  
  201.  
  202. void __RPC_STUB IVEHandler_VEHandler_Stub(
  203.     IRpcStubBuffer *This,
  204.     IRpcChannelBuffer *_pRpcChannelBuffer,
  205.     PRPC_MESSAGE _pRpcMessage,
  206.     DWORD *_pdwStubPhase);
  207.  
  208.  
  209. HRESULT STDMETHODCALLTYPE IVEHandler_SetReporterFtn_Proxy( 
  210.     IVEHandler __RPC_FAR * This,
  211.     /* [in] */ long lFnPtr);
  212.  
  213.  
  214. void __RPC_STUB IVEHandler_SetReporterFtn_Stub(
  215.     IRpcStubBuffer *This,
  216.     IRpcChannelBuffer *_pRpcChannelBuffer,
  217.     PRPC_MESSAGE _pRpcMessage,
  218.     DWORD *_pdwStubPhase);
  219.  
  220.  
  221.  
  222. #endif     /* __IVEHandler_INTERFACE_DEFINED__ */
  223.  
  224.  
  225. /* Additional Prototypes for ALL interfaces */
  226.  
  227. unsigned long             __RPC_USER  LPSAFEARRAY_UserSize(     unsigned long __RPC_FAR *, unsigned long            , LPSAFEARRAY __RPC_FAR * ); 
  228. unsigned char __RPC_FAR * __RPC_USER  LPSAFEARRAY_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, LPSAFEARRAY __RPC_FAR * ); 
  229. unsigned char __RPC_FAR * __RPC_USER  LPSAFEARRAY_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, LPSAFEARRAY __RPC_FAR * ); 
  230. void                      __RPC_USER  LPSAFEARRAY_UserFree(     unsigned long __RPC_FAR *, LPSAFEARRAY __RPC_FAR * ); 
  231.  
  232. /* end of Additional Prototypes */
  233.  
  234. #ifdef __cplusplus
  235. }
  236. #endif
  237.  
  238. #endif
  239.