home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / ADSDK.ZIP / Samples / Extension / Tutorial / step1 / ADsFirstExt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-03-12  |  6.0 KB  |  222 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 Mar 12 18:52:58 1999
  6.  */
  7. /* Compiler settings for C:\Content\sdk\samples\Extension\Tutorial\step1\ADsFirstExt.idl:
  8.     Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
  9.     error checks: allocation ref bounds_check enum stub_data 
  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 __ADsFirstExt_h__
  32. #define __ADsFirstExt_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IHelloWorld_FWD_DEFINED__
  41. #define __IHelloWorld_FWD_DEFINED__
  42. typedef interface IHelloWorld IHelloWorld;
  43. #endif     /* __IHelloWorld_FWD_DEFINED__ */
  44.  
  45.  
  46. #ifndef __HelloWorld_FWD_DEFINED__
  47. #define __HelloWorld_FWD_DEFINED__
  48.  
  49. #ifdef __cplusplus
  50. typedef class HelloWorld HelloWorld;
  51. #else
  52. typedef struct HelloWorld HelloWorld;
  53. #endif /* __cplusplus */
  54.  
  55. #endif     /* __HelloWorld_FWD_DEFINED__ */
  56.  
  57.  
  58. /* header files for imported files */
  59. #include "oaidl.h"
  60. #include "ocidl.h"
  61.  
  62. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  63. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  64.  
  65. #ifndef __IHelloWorld_INTERFACE_DEFINED__
  66. #define __IHelloWorld_INTERFACE_DEFINED__
  67.  
  68. /* interface IHelloWorld */
  69. /* [unique][helpstring][dual][uuid][object] */ 
  70.  
  71.  
  72. EXTERN_C const IID IID_IHelloWorld;
  73.  
  74. #if defined(__cplusplus) && !defined(CINTERFACE)
  75.     
  76.     MIDL_INTERFACE("E1E3EDF7-48D1-11D2-B22B-0000F87A6B50")
  77.     IHelloWorld : public IDispatch
  78.     {
  79.     public:
  80.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Say( void) = 0;
  81.         
  82.     };
  83.     
  84. #else     /* C style interface */
  85.  
  86.     typedef struct IHelloWorldVtbl
  87.     {
  88.         BEGIN_INTERFACE
  89.         
  90.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  91.             IHelloWorld __RPC_FAR * This,
  92.             /* [in] */ REFIID riid,
  93.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  94.         
  95.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  96.             IHelloWorld __RPC_FAR * This);
  97.         
  98.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  99.             IHelloWorld __RPC_FAR * This);
  100.         
  101.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  102.             IHelloWorld __RPC_FAR * This,
  103.             /* [out] */ UINT __RPC_FAR *pctinfo);
  104.         
  105.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  106.             IHelloWorld __RPC_FAR * This,
  107.             /* [in] */ UINT iTInfo,
  108.             /* [in] */ LCID lcid,
  109.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  110.         
  111.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  112.             IHelloWorld __RPC_FAR * This,
  113.             /* [in] */ REFIID riid,
  114.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  115.             /* [in] */ UINT cNames,
  116.             /* [in] */ LCID lcid,
  117.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  118.         
  119.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  120.             IHelloWorld __RPC_FAR * This,
  121.             /* [in] */ DISPID dispIdMember,
  122.             /* [in] */ REFIID riid,
  123.             /* [in] */ LCID lcid,
  124.             /* [in] */ WORD wFlags,
  125.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  126.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  127.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  128.             /* [out] */ UINT __RPC_FAR *puArgErr);
  129.         
  130.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Say )( 
  131.             IHelloWorld __RPC_FAR * This);
  132.         
  133.         END_INTERFACE
  134.     } IHelloWorldVtbl;
  135.  
  136.     interface IHelloWorld
  137.     {
  138.         CONST_VTBL struct IHelloWorldVtbl __RPC_FAR *lpVtbl;
  139.     };
  140.  
  141.     
  142.  
  143. #ifdef COBJMACROS
  144.  
  145.  
  146. #define IHelloWorld_QueryInterface(This,riid,ppvObject)    \
  147.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  148.  
  149. #define IHelloWorld_AddRef(This)    \
  150.     (This)->lpVtbl -> AddRef(This)
  151.  
  152. #define IHelloWorld_Release(This)    \
  153.     (This)->lpVtbl -> Release(This)
  154.  
  155.  
  156. #define IHelloWorld_GetTypeInfoCount(This,pctinfo)    \
  157.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  158.  
  159. #define IHelloWorld_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  160.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  161.  
  162. #define IHelloWorld_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  163.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  164.  
  165. #define IHelloWorld_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  166.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  167.  
  168.  
  169. #define IHelloWorld_Say(This)    \
  170.     (This)->lpVtbl -> Say(This)
  171.  
  172. #endif /* COBJMACROS */
  173.  
  174.  
  175. #endif     /* C style interface */
  176.  
  177.  
  178.  
  179. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IHelloWorld_Say_Proxy( 
  180.     IHelloWorld __RPC_FAR * This);
  181.  
  182.  
  183. void __RPC_STUB IHelloWorld_Say_Stub(
  184.     IRpcStubBuffer *This,
  185.     IRpcChannelBuffer *_pRpcChannelBuffer,
  186.     PRPC_MESSAGE _pRpcMessage,
  187.     DWORD *_pdwStubPhase);
  188.  
  189.  
  190.  
  191. #endif     /* __IHelloWorld_INTERFACE_DEFINED__ */
  192.  
  193.  
  194.  
  195. #ifndef __ADSFIRSTEXTLib_LIBRARY_DEFINED__
  196. #define __ADSFIRSTEXTLib_LIBRARY_DEFINED__
  197.  
  198. /* library ADSFIRSTEXTLib */
  199. /* [helpstring][version][uuid] */ 
  200.  
  201.  
  202. EXTERN_C const IID LIBID_ADSFIRSTEXTLib;
  203.  
  204. EXTERN_C const CLSID CLSID_HelloWorld;
  205.  
  206. #ifdef __cplusplus
  207.  
  208. class DECLSPEC_UUID("E1E3EDF8-48D1-11D2-B22B-0000F87A6B50")
  209. HelloWorld;
  210. #endif
  211. #endif /* __ADSFIRSTEXTLib_LIBRARY_DEFINED__ */
  212.  
  213. /* Additional Prototypes for ALL interfaces */
  214.  
  215. /* end of Additional Prototypes */
  216.  
  217. #ifdef __cplusplus
  218. }
  219. #endif
  220.  
  221. #endif
  222.