home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / ADSDK.ZIP / ResourceKit / SDK / ADsFactr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-17  |  8.0 KB  |  267 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 Nov 17 15:13:27 1998
  6.  */
  7. /* Compiler settings for C:\projects\ADsFactr\ADsFactr.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 __ADsFactr_h__
  32. #define __ADsFactr_h__
  33.  
  34. #ifdef __cplusplus
  35. extern "C"{
  36. #endif 
  37.  
  38. /* Forward Declarations */ 
  39.  
  40. #ifndef __IADsFactory_FWD_DEFINED__
  41. #define __IADsFactory_FWD_DEFINED__
  42. typedef interface IADsFactory IADsFactory;
  43. #endif     /* __IADsFactory_FWD_DEFINED__ */
  44.  
  45.  
  46. #ifndef __ADsFactory_FWD_DEFINED__
  47. #define __ADsFactory_FWD_DEFINED__
  48.  
  49. #ifdef __cplusplus
  50. typedef class ADsFactory ADsFactory;
  51. #else
  52. typedef struct ADsFactory ADsFactory;
  53. #endif /* __cplusplus */
  54.  
  55. #endif     /* __ADsFactory_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 __IADsFactory_INTERFACE_DEFINED__
  66. #define __IADsFactory_INTERFACE_DEFINED__
  67.  
  68. /* interface IADsFactory */
  69. /* [unique][helpstring][dual][uuid][object] */ 
  70.  
  71.  
  72. EXTERN_C const IID IID_IADsFactory;
  73.  
  74. #if defined(__cplusplus) && !defined(CINTERFACE)
  75.     
  76.     MIDL_INTERFACE("BACFDB72-7E23-11D2-B447-0080C7D071BF")
  77.     IADsFactory : public IDispatch
  78.     {
  79.     public:
  80.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE GetObject( 
  81.             BSTR bstrADsPath,
  82.             /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *pDisp) = 0;
  83.         
  84.         virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE OpenDSObject( 
  85.             BSTR bstrADsPath,
  86.             BSTR bstrUser,
  87.             BSTR bstrPassword,
  88.             LONG lFlag,
  89.             /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *pDisp) = 0;
  90.         
  91.     };
  92.     
  93. #else     /* C style interface */
  94.  
  95.     typedef struct IADsFactoryVtbl
  96.     {
  97.         BEGIN_INTERFACE
  98.         
  99.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  100.             IADsFactory __RPC_FAR * This,
  101.             /* [in] */ REFIID riid,
  102.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  103.         
  104.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  105.             IADsFactory __RPC_FAR * This);
  106.         
  107.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  108.             IADsFactory __RPC_FAR * This);
  109.         
  110.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  111.             IADsFactory __RPC_FAR * This,
  112.             /* [out] */ UINT __RPC_FAR *pctinfo);
  113.         
  114.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  115.             IADsFactory __RPC_FAR * This,
  116.             /* [in] */ UINT iTInfo,
  117.             /* [in] */ LCID lcid,
  118.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  119.         
  120.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  121.             IADsFactory __RPC_FAR * This,
  122.             /* [in] */ REFIID riid,
  123.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  124.             /* [in] */ UINT cNames,
  125.             /* [in] */ LCID lcid,
  126.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  127.         
  128.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  129.             IADsFactory __RPC_FAR * This,
  130.             /* [in] */ DISPID dispIdMember,
  131.             /* [in] */ REFIID riid,
  132.             /* [in] */ LCID lcid,
  133.             /* [in] */ WORD wFlags,
  134.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  135.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  136.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  137.             /* [out] */ UINT __RPC_FAR *puArgErr);
  138.         
  139.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetObject )( 
  140.             IADsFactory __RPC_FAR * This,
  141.             BSTR bstrADsPath,
  142.             /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *pDisp);
  143.         
  144.         /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *OpenDSObject )( 
  145.             IADsFactory __RPC_FAR * This,
  146.             BSTR bstrADsPath,
  147.             BSTR bstrUser,
  148.             BSTR bstrPassword,
  149.             LONG lFlag,
  150.             /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *pDisp);
  151.         
  152.         END_INTERFACE
  153.     } IADsFactoryVtbl;
  154.  
  155.     interface IADsFactory
  156.     {
  157.         CONST_VTBL struct IADsFactoryVtbl __RPC_FAR *lpVtbl;
  158.     };
  159.  
  160.     
  161.  
  162. #ifdef COBJMACROS
  163.  
  164.  
  165. #define IADsFactory_QueryInterface(This,riid,ppvObject)    \
  166.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  167.  
  168. #define IADsFactory_AddRef(This)    \
  169.     (This)->lpVtbl -> AddRef(This)
  170.  
  171. #define IADsFactory_Release(This)    \
  172.     (This)->lpVtbl -> Release(This)
  173.  
  174.  
  175. #define IADsFactory_GetTypeInfoCount(This,pctinfo)    \
  176.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  177.  
  178. #define IADsFactory_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  179.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  180.  
  181. #define IADsFactory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  182.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  183.  
  184. #define IADsFactory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  185.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  186.  
  187.  
  188. #define IADsFactory_GetObject(This,bstrADsPath,pDisp)    \
  189.     (This)->lpVtbl -> GetObject(This,bstrADsPath,pDisp)
  190.  
  191. #define IADsFactory_OpenDSObject(This,bstrADsPath,bstrUser,bstrPassword,lFlag,pDisp)    \
  192.     (This)->lpVtbl -> OpenDSObject(This,bstrADsPath,bstrUser,bstrPassword,lFlag,pDisp)
  193.  
  194. #endif /* COBJMACROS */
  195.  
  196.  
  197. #endif     /* C style interface */
  198.  
  199.  
  200.  
  201. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IADsFactory_GetObject_Proxy( 
  202.     IADsFactory __RPC_FAR * This,
  203.     BSTR bstrADsPath,
  204.     /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *pDisp);
  205.  
  206.  
  207. void __RPC_STUB IADsFactory_GetObject_Stub(
  208.     IRpcStubBuffer *This,
  209.     IRpcChannelBuffer *_pRpcChannelBuffer,
  210.     PRPC_MESSAGE _pRpcMessage,
  211.     DWORD *_pdwStubPhase);
  212.  
  213.  
  214. /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IADsFactory_OpenDSObject_Proxy( 
  215.     IADsFactory __RPC_FAR * This,
  216.     BSTR bstrADsPath,
  217.     BSTR bstrUser,
  218.     BSTR bstrPassword,
  219.     LONG lFlag,
  220.     /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *pDisp);
  221.  
  222.  
  223. void __RPC_STUB IADsFactory_OpenDSObject_Stub(
  224.     IRpcStubBuffer *This,
  225.     IRpcChannelBuffer *_pRpcChannelBuffer,
  226.     PRPC_MESSAGE _pRpcMessage,
  227.     DWORD *_pdwStubPhase);
  228.  
  229.  
  230.  
  231. #endif     /* __IADsFactory_INTERFACE_DEFINED__ */
  232.  
  233.  
  234.  
  235. #ifndef __ADSFACTRLib_LIBRARY_DEFINED__
  236. #define __ADSFACTRLib_LIBRARY_DEFINED__
  237.  
  238. /* library ADSFACTRLib */
  239. /* [helpstring][version][uuid] */ 
  240.  
  241.  
  242. EXTERN_C const IID LIBID_ADSFACTRLib;
  243.  
  244. EXTERN_C const CLSID CLSID_ADsFactory;
  245.  
  246. #ifdef __cplusplus
  247.  
  248. class DECLSPEC_UUID("BACFDB73-7E23-11D2-B447-0080C7D071BF")
  249. ADsFactory;
  250. #endif
  251. #endif /* __ADSFACTRLib_LIBRARY_DEFINED__ */
  252.  
  253. /* Additional Prototypes for ALL interfaces */
  254.  
  255. unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long __RPC_FAR *, unsigned long            , BSTR __RPC_FAR * ); 
  256. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserMarshal(  unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  257. unsigned char __RPC_FAR * __RPC_USER  BSTR_UserUnmarshal(unsigned long __RPC_FAR *, unsigned char __RPC_FAR *, BSTR __RPC_FAR * ); 
  258. void                      __RPC_USER  BSTR_UserFree(     unsigned long __RPC_FAR *, BSTR __RPC_FAR * ); 
  259.  
  260. /* end of Additional Prototypes */
  261.  
  262. #ifdef __cplusplus
  263. }
  264. #endif
  265.  
  266. #endif
  267.