home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / ADSDK.ZIP / ResourceKit / SDK / ADsError.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-13  |  6.7 KB  |  233 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 Tue Apr 13 15:05:07 1999
  6.  */
  7. /* Compiler settings for C:\projects\RTK\ADsError\ADsError.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 __ADsError_h__
  32. #define __ADsError_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IADsError_FWD_DEFINED__
  41. #define __IADsError_FWD_DEFINED__
  42. typedef interface IADsError IADsError;
  43. #endif     /* __IADsError_FWD_DEFINED__ */
  44.  
  45.  
  46. #ifndef __ADsError_FWD_DEFINED__
  47. #define __ADsError_FWD_DEFINED__
  48.  
  49. #ifdef __cplusplus
  50. typedef class ADsError ADsError;
  51. #else
  52. typedef struct ADsError ADsError;
  53. #endif /* __cplusplus */
  54.  
  55. #endif     /* __ADsError_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 __IADsError_INTERFACE_DEFINED__
  66. #define __IADsError_INTERFACE_DEFINED__
  67.  
  68. /* interface IADsError */
  69. /* [unique][helpstring][dual][uuid][object] */ 
  70.  
  71.  
  72. EXTERN_C const IID IID_IADsError;
  73.  
  74. #if defined(__cplusplus) && !defined(CINTERFACE)
  75.     
  76.     MIDL_INTERFACE("417D01DF-F1C6-11D2-BC88-00C04FD430AF")
  77.     IADsError : public IDispatch
  78.     {
  79.     public:
  80.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetErrorMessage( 
  81.             /* [in] */ long hResult,
  82.             /* [retval][out] */ BSTR __RPC_FAR *pbMsg) = 0;
  83.         
  84.     };
  85.     
  86. #else     /* C style interface */
  87.  
  88.     typedef struct IADsErrorVtbl
  89.     {
  90.         BEGIN_INTERFACE
  91.         
  92.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  93.             IADsError __RPC_FAR * This,
  94.             /* [in] */ REFIID riid,
  95.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  96.         
  97.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  98.             IADsError __RPC_FAR * This);
  99.         
  100.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  101.             IADsError __RPC_FAR * This);
  102.         
  103.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  104.             IADsError __RPC_FAR * This,
  105.             /* [out] */ UINT __RPC_FAR *pctinfo);
  106.         
  107.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  108.             IADsError __RPC_FAR * This,
  109.             /* [in] */ UINT iTInfo,
  110.             /* [in] */ LCID lcid,
  111.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  112.         
  113.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  114.             IADsError __RPC_FAR * This,
  115.             /* [in] */ REFIID riid,
  116.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  117.             /* [in] */ UINT cNames,
  118.             /* [in] */ LCID lcid,
  119.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  120.         
  121.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  122.             IADsError __RPC_FAR * This,
  123.             /* [in] */ DISPID dispIdMember,
  124.             /* [in] */ REFIID riid,
  125.             /* [in] */ LCID lcid,
  126.             /* [in] */ WORD wFlags,
  127.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  128.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  129.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  130.             /* [out] */ UINT __RPC_FAR *puArgErr);
  131.         
  132.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetErrorMessage )( 
  133.             IADsError __RPC_FAR * This,
  134.             /* [in] */ long hResult,
  135.             /* [retval][out] */ BSTR __RPC_FAR *pbMsg);
  136.         
  137.         END_INTERFACE
  138.     } IADsErrorVtbl;
  139.  
  140.     interface IADsError
  141.     {
  142.         CONST_VTBL struct IADsErrorVtbl __RPC_FAR *lpVtbl;
  143.     };
  144.  
  145.     
  146.  
  147. #ifdef COBJMACROS
  148.  
  149.  
  150. #define IADsError_QueryInterface(This,riid,ppvObject)    \
  151.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  152.  
  153. #define IADsError_AddRef(This)    \
  154.     (This)->lpVtbl -> AddRef(This)
  155.  
  156. #define IADsError_Release(This)    \
  157.     (This)->lpVtbl -> Release(This)
  158.  
  159.  
  160. #define IADsError_GetTypeInfoCount(This,pctinfo)    \
  161.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  162.  
  163. #define IADsError_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  164.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  165.  
  166. #define IADsError_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  167.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  168.  
  169. #define IADsError_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  170.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  171.  
  172.  
  173. #define IADsError_GetErrorMessage(This,hResult,pbMsg)    \
  174.     (This)->lpVtbl -> GetErrorMessage(This,hResult,pbMsg)
  175.  
  176. #endif /* COBJMACROS */
  177.  
  178.  
  179. #endif     /* C style interface */
  180.  
  181.  
  182.  
  183. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IADsError_GetErrorMessage_Proxy( 
  184.     IADsError __RPC_FAR * This,
  185.     /* [in] */ long hResult,
  186.     /* [retval][out] */ BSTR __RPC_FAR *pbMsg);
  187.  
  188.  
  189. void __RPC_STUB IADsError_GetErrorMessage_Stub(
  190.     IRpcStubBuffer *This,
  191.     IRpcChannelBuffer *_pRpcChannelBuffer,
  192.     PRPC_MESSAGE _pRpcMessage,
  193.     DWORD *_pdwStubPhase);
  194.  
  195.  
  196.  
  197. #endif     /* __IADsError_INTERFACE_DEFINED__ */
  198.  
  199.  
  200.  
  201. #ifndef __ADSERRORLib_LIBRARY_DEFINED__
  202. #define __ADSERRORLib_LIBRARY_DEFINED__
  203.  
  204. /* library ADSERRORLib */
  205. /* [helpstring][version][uuid] */ 
  206.  
  207.  
  208. EXTERN_C const IID LIBID_ADSERRORLib;
  209.  
  210. EXTERN_C const CLSID CLSID_ADsError;
  211.  
  212. #ifdef __cplusplus
  213.  
  214. class DECLSPEC_UUID("417D01E0-F1C6-11D2-BC88-00C04FD430AF")
  215. ADsError;
  216. #endif
  217. #endif /* __ADSERRORLib_LIBRARY_DEFINED__ */
  218.  
  219. /* Additional Prototypes for ALL interfaces */
  220.  
  221. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
  222. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  223. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  224. void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 
  225.  
  226. /* end of Additional Prototypes */
  227.  
  228. #ifdef __cplusplus
  229. }
  230. #endif
  231.  
  232. #endif
  233.