home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / msdasc.h < prev    next >
C/C++ Source or Header  |  2000-02-01  |  32KB  |  944 lines

  1. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  2.  
  3. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  4.  
  5. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  6.  
  7.  
  8.  /* File created by MIDL compiler version 5.03.0266 */
  9. /* at Mon May 24 02:08:53 1999
  10.  */
  11. /* Compiler settings for msdasc.idl:
  12.     Oicf (OptLev=i2), W1, Zp8, env=Win32 (32b run), ms_ext, c_ext
  13.     error checks: allocation ref bounds_check enum stub_data 
  14.     VC __declspec() decoration level: 
  15.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  16.          DECLSPEC_UUID(), MIDL_INTERFACE()
  17. */
  18. //@@MIDL_FILE_HEADING(  )
  19.  
  20.  
  21. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  22. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  23. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  24. #endif
  25.  
  26. #include "rpc.h"
  27. #include "rpcndr.h"
  28.  
  29. #ifndef __RPCNDR_H_VERSION__
  30. #error this stub requires an updated version of <rpcndr.h>
  31. #endif // __RPCNDR_H_VERSION__
  32.  
  33. #ifndef COM_NO_WINDOWS_H
  34. #include "windows.h"
  35. #include "ole2.h"
  36. #endif /*COM_NO_WINDOWS_H*/
  37.  
  38. #ifndef __msdasc_h__
  39. #define __msdasc_h__
  40.  
  41. /* Forward Declarations */ 
  42.  
  43. #ifndef __IService_FWD_DEFINED__
  44. #define __IService_FWD_DEFINED__
  45. typedef interface IService IService;
  46. #endif     /* __IService_FWD_DEFINED__ */
  47.  
  48.  
  49. #ifndef __IDBPromptInitialize_FWD_DEFINED__
  50. #define __IDBPromptInitialize_FWD_DEFINED__
  51. typedef interface IDBPromptInitialize IDBPromptInitialize;
  52. #endif     /* __IDBPromptInitialize_FWD_DEFINED__ */
  53.  
  54.  
  55. #ifndef __IDataInitialize_FWD_DEFINED__
  56. #define __IDataInitialize_FWD_DEFINED__
  57. typedef interface IDataInitialize IDataInitialize;
  58. #endif     /* __IDataInitialize_FWD_DEFINED__ */
  59.  
  60.  
  61. #ifndef __IDataSourceLocator_FWD_DEFINED__
  62. #define __IDataSourceLocator_FWD_DEFINED__
  63. typedef interface IDataSourceLocator IDataSourceLocator;
  64. #endif     /* __IDataSourceLocator_FWD_DEFINED__ */
  65.  
  66.  
  67. #ifndef __DataLinks_FWD_DEFINED__
  68. #define __DataLinks_FWD_DEFINED__
  69.  
  70. #ifdef __cplusplus
  71. typedef class DataLinks DataLinks;
  72. #else
  73. typedef struct DataLinks DataLinks;
  74. #endif /* __cplusplus */
  75.  
  76. #endif     /* __DataLinks_FWD_DEFINED__ */
  77.  
  78.  
  79. #ifndef __MSDAINITIALIZE_FWD_DEFINED__
  80. #define __MSDAINITIALIZE_FWD_DEFINED__
  81.  
  82. #ifdef __cplusplus
  83. typedef class MSDAINITIALIZE MSDAINITIALIZE;
  84. #else
  85. typedef struct MSDAINITIALIZE MSDAINITIALIZE;
  86. #endif /* __cplusplus */
  87.  
  88. #endif     /* __MSDAINITIALIZE_FWD_DEFINED__ */
  89.  
  90.  
  91. #ifndef __PDPO_FWD_DEFINED__
  92. #define __PDPO_FWD_DEFINED__
  93.  
  94. #ifdef __cplusplus
  95. typedef class PDPO PDPO;
  96. #else
  97. typedef struct PDPO PDPO;
  98. #endif /* __cplusplus */
  99.  
  100. #endif     /* __PDPO_FWD_DEFINED__ */
  101.  
  102.  
  103. #ifndef __RootBinder_FWD_DEFINED__
  104. #define __RootBinder_FWD_DEFINED__
  105.  
  106. #ifdef __cplusplus
  107. typedef class RootBinder RootBinder;
  108. #else
  109. typedef struct RootBinder RootBinder;
  110. #endif /* __cplusplus */
  111.  
  112. #endif     /* __RootBinder_FWD_DEFINED__ */
  113.  
  114.  
  115. /* header files for imported files */
  116. #include "oaidl.h"
  117. #include "ocidl.h"
  118. #include "oledb.h"
  119.  
  120. #ifdef __cplusplus
  121. extern "C"{
  122. #endif 
  123.  
  124. void __RPC_FAR * __RPC_USER MIDL_user_allocate(size_t);
  125. void __RPC_USER MIDL_user_free( void __RPC_FAR * ); 
  126.  
  127. /* interface __MIDL_itf_msdasc_0000 */
  128. /* [local] */ 
  129.  
  130. typedef 
  131. enum tagEBindInfoOptions
  132.     {    BIO_BINDER    = 0x1
  133.     }    EBindInfoOptions;
  134.  
  135. #define STGM_COLLECTION        0x00002000L
  136. #define STGM_OUTPUT            0x00008000L
  137. #define STGM_OPEN            0x80000000L
  138. #define STGM_RECURSIVE        0x01000000L
  139. #define STGM_STRICTOPEN        0x40000000L
  140.  
  141.  
  142. extern RPC_IF_HANDLE __MIDL_itf_msdasc_0000_v0_0_c_ifspec;
  143. extern RPC_IF_HANDLE __MIDL_itf_msdasc_0000_v0_0_s_ifspec;
  144.  
  145. #ifndef __IService_INTERFACE_DEFINED__
  146. #define __IService_INTERFACE_DEFINED__
  147.  
  148. /* interface IService */
  149. /* [object][unique][helpstring][uuid] */ 
  150.  
  151.  
  152. EXTERN_C const IID IID_IService;
  153.  
  154. #if defined(__cplusplus) && !defined(CINTERFACE)
  155.     
  156.     MIDL_INTERFACE("06210E88-01F5-11D1-B512-0080C781C384")
  157.     IService : public IUnknown
  158.     {
  159.     public:
  160.         virtual /* [local] */ HRESULT STDMETHODCALLTYPE InvokeService( 
  161.             /* [in] */ IUnknown __RPC_FAR *pUnkInner) = 0;
  162.         
  163.     };
  164.     
  165. #else     /* C style interface */
  166.  
  167.     typedef struct IServiceVtbl
  168.     {
  169.         BEGIN_INTERFACE
  170.         
  171.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  172.             IService __RPC_FAR * This,
  173.             /* [in] */ REFIID riid,
  174.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  175.         
  176.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  177.             IService __RPC_FAR * This);
  178.         
  179.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  180.             IService __RPC_FAR * This);
  181.         
  182.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *InvokeService )( 
  183.             IService __RPC_FAR * This,
  184.             /* [in] */ IUnknown __RPC_FAR *pUnkInner);
  185.         
  186.         END_INTERFACE
  187.     } IServiceVtbl;
  188.  
  189.     interface IService
  190.     {
  191.         CONST_VTBL struct IServiceVtbl __RPC_FAR *lpVtbl;
  192.     };
  193.  
  194.     
  195.  
  196. #ifdef COBJMACROS
  197.  
  198.  
  199. #define IService_QueryInterface(This,riid,ppvObject)    \
  200.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  201.  
  202. #define IService_AddRef(This)    \
  203.     (This)->lpVtbl -> AddRef(This)
  204.  
  205. #define IService_Release(This)    \
  206.     (This)->lpVtbl -> Release(This)
  207.  
  208.  
  209. #define IService_InvokeService(This,pUnkInner)    \
  210.     (This)->lpVtbl -> InvokeService(This,pUnkInner)
  211.  
  212. #endif /* COBJMACROS */
  213.  
  214.  
  215. #endif     /* C style interface */
  216.  
  217.  
  218.  
  219. /* [local] */ HRESULT STDMETHODCALLTYPE IService_InvokeService_Proxy( 
  220.     IService __RPC_FAR * This,
  221.     /* [in] */ IUnknown __RPC_FAR *pUnkInner);
  222.  
  223.  
  224. void __RPC_STUB IService_InvokeService_Stub(
  225.     IRpcStubBuffer *This,
  226.     IRpcChannelBuffer *_pRpcChannelBuffer,
  227.     PRPC_MESSAGE _pRpcMessage,
  228.     DWORD *_pdwStubPhase);
  229.  
  230.  
  231.  
  232. #endif     /* __IService_INTERFACE_DEFINED__ */
  233.  
  234.  
  235. /* interface __MIDL_itf_msdasc_0347 */
  236. /* [local] */ 
  237.  
  238. typedef DWORD DBPROMPTOPTIONS;
  239.  
  240. typedef 
  241. enum tagDBPROMPTOPTIONSENUM
  242.     {    DBPROMPTOPTIONS_NONE    = 0,
  243.     DBPROMPTOPTIONS_WIZARDSHEET    = 0x1,
  244.     DBPROMPTOPTIONS_PROPERTYSHEET    = 0x2,
  245.     DBPROMPTOPTIONS_BROWSEONLY    = 0x8,
  246.     DBPROMPTOPTIONS_DISABLE_PROVIDER_SELECTION    = 0x10,
  247.     DBPROMPTOPTIONS_DISABLESAVEPASSWORD    = 0x20
  248.     }    DBPROMPTOPTIONSENUM;
  249.  
  250.  
  251.  
  252. extern RPC_IF_HANDLE __MIDL_itf_msdasc_0347_v0_0_c_ifspec;
  253. extern RPC_IF_HANDLE __MIDL_itf_msdasc_0347_v0_0_s_ifspec;
  254.  
  255. #ifndef __IDBPromptInitialize_INTERFACE_DEFINED__
  256. #define __IDBPromptInitialize_INTERFACE_DEFINED__
  257.  
  258. /* interface IDBPromptInitialize */
  259. /* [restricted][local][unique][helpstring][uuid][object] */ 
  260.  
  261.  
  262. EXTERN_C const IID IID_IDBPromptInitialize;
  263.  
  264. #if defined(__cplusplus) && !defined(CINTERFACE)
  265.     
  266.     MIDL_INTERFACE("2206CCB0-19C1-11D1-89E0-00C04FD7A829")
  267.     IDBPromptInitialize : public IUnknown
  268.     {
  269.     public:
  270.         virtual /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE PromptDataSource( 
  271.             /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  272.             /* [in] */ HWND hWndParent,
  273.             /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  274.             /* [in] */ ULONG cSourceTypeFilter,
  275.             /* [size_is][in] */ DBSOURCETYPE __RPC_FAR *rgSourceTypeFilter,
  276.             /* [in] */ LPCOLESTR pwszszzProviderFilter,
  277.             /* [in] */ REFIID riid,
  278.             /* [iid_is][out][in] */ IUnknown __RPC_FAR *__RPC_FAR *ppDataSource) = 0;
  279.         
  280.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PromptFileName( 
  281.             /* [in] */ HWND hWndParent,
  282.             /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  283.             /* [in] */ LPCOLESTR pwszInitialDirectory,
  284.             /* [in] */ LPCOLESTR pwszInitialFile,
  285.             /* [out] */ LPOLESTR __RPC_FAR *ppwszSelectedFile) = 0;
  286.         
  287.     };
  288.     
  289. #else     /* C style interface */
  290.  
  291.     typedef struct IDBPromptInitializeVtbl
  292.     {
  293.         BEGIN_INTERFACE
  294.         
  295.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  296.             IDBPromptInitialize __RPC_FAR * This,
  297.             /* [in] */ REFIID riid,
  298.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  299.         
  300.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  301.             IDBPromptInitialize __RPC_FAR * This);
  302.         
  303.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  304.             IDBPromptInitialize __RPC_FAR * This);
  305.         
  306.         /* [local][helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *PromptDataSource )( 
  307.             IDBPromptInitialize __RPC_FAR * This,
  308.             /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  309.             /* [in] */ HWND hWndParent,
  310.             /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  311.             /* [in] */ ULONG cSourceTypeFilter,
  312.             /* [size_is][in] */ DBSOURCETYPE __RPC_FAR *rgSourceTypeFilter,
  313.             /* [in] */ LPCOLESTR pwszszzProviderFilter,
  314.             /* [in] */ REFIID riid,
  315.             /* [iid_is][out][in] */ IUnknown __RPC_FAR *__RPC_FAR *ppDataSource);
  316.         
  317.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *PromptFileName )( 
  318.             IDBPromptInitialize __RPC_FAR * This,
  319.             /* [in] */ HWND hWndParent,
  320.             /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  321.             /* [in] */ LPCOLESTR pwszInitialDirectory,
  322.             /* [in] */ LPCOLESTR pwszInitialFile,
  323.             /* [out] */ LPOLESTR __RPC_FAR *ppwszSelectedFile);
  324.         
  325.         END_INTERFACE
  326.     } IDBPromptInitializeVtbl;
  327.  
  328.     interface IDBPromptInitialize
  329.     {
  330.         CONST_VTBL struct IDBPromptInitializeVtbl __RPC_FAR *lpVtbl;
  331.     };
  332.  
  333.     
  334.  
  335. #ifdef COBJMACROS
  336.  
  337.  
  338. #define IDBPromptInitialize_QueryInterface(This,riid,ppvObject)    \
  339.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  340.  
  341. #define IDBPromptInitialize_AddRef(This)    \
  342.     (This)->lpVtbl -> AddRef(This)
  343.  
  344. #define IDBPromptInitialize_Release(This)    \
  345.     (This)->lpVtbl -> Release(This)
  346.  
  347.  
  348. #define IDBPromptInitialize_PromptDataSource(This,pUnkOuter,hWndParent,dwPromptOptions,cSourceTypeFilter,rgSourceTypeFilter,pwszszzProviderFilter,riid,ppDataSource)    \
  349.     (This)->lpVtbl -> PromptDataSource(This,pUnkOuter,hWndParent,dwPromptOptions,cSourceTypeFilter,rgSourceTypeFilter,pwszszzProviderFilter,riid,ppDataSource)
  350.  
  351. #define IDBPromptInitialize_PromptFileName(This,hWndParent,dwPromptOptions,pwszInitialDirectory,pwszInitialFile,ppwszSelectedFile)    \
  352.     (This)->lpVtbl -> PromptFileName(This,hWndParent,dwPromptOptions,pwszInitialDirectory,pwszInitialFile,ppwszSelectedFile)
  353.  
  354. #endif /* COBJMACROS */
  355.  
  356.  
  357. #endif     /* C style interface */
  358.  
  359.  
  360.  
  361. /* [call_as] */ HRESULT STDMETHODCALLTYPE IDBPromptInitialize_RemotePromptDataSource_Proxy( 
  362.     IDBPromptInitialize __RPC_FAR * This,
  363.     /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  364.     /* [in] */ HWND hWndParent,
  365.     /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  366.     /* [in] */ ULONG cSourceTypeFilter,
  367.     /* [size_is][in] */ DBSOURCETYPE __RPC_FAR *rgSourceTypeFilter,
  368.     /* [in] */ ULONG cchProviderFilter,
  369.     /* [size_is][in] */ const OLECHAR __RPC_FAR *pwszszzProviderFilter,
  370.     /* [in] */ REFIID riid,
  371.     /* [iid_is][out][in] */ IUnknown __RPC_FAR *__RPC_FAR *ppDataSource);
  372.  
  373.  
  374. void __RPC_STUB IDBPromptInitialize_RemotePromptDataSource_Stub(
  375.     IRpcStubBuffer *This,
  376.     IRpcChannelBuffer *_pRpcChannelBuffer,
  377.     PRPC_MESSAGE _pRpcMessage,
  378.     DWORD *_pdwStubPhase);
  379.  
  380.  
  381. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDBPromptInitialize_PromptFileName_Proxy( 
  382.     IDBPromptInitialize __RPC_FAR * This,
  383.     /* [in] */ HWND hWndParent,
  384.     /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  385.     /* [in] */ LPCOLESTR pwszInitialDirectory,
  386.     /* [in] */ LPCOLESTR pwszInitialFile,
  387.     /* [out] */ LPOLESTR __RPC_FAR *ppwszSelectedFile);
  388.  
  389.  
  390. void __RPC_STUB IDBPromptInitialize_PromptFileName_Stub(
  391.     IRpcStubBuffer *This,
  392.     IRpcChannelBuffer *_pRpcChannelBuffer,
  393.     PRPC_MESSAGE _pRpcMessage,
  394.     DWORD *_pdwStubPhase);
  395.  
  396.  
  397.  
  398. #endif     /* __IDBPromptInitialize_INTERFACE_DEFINED__ */
  399.  
  400.  
  401. #ifndef __IDataInitialize_INTERFACE_DEFINED__
  402. #define __IDataInitialize_INTERFACE_DEFINED__
  403.  
  404. /* interface IDataInitialize */
  405. /* [unique][helpstring][uuid][object] */ 
  406.  
  407.  
  408. EXTERN_C const IID IID_IDataInitialize;
  409.  
  410. #if defined(__cplusplus) && !defined(CINTERFACE)
  411.     
  412.     MIDL_INTERFACE("2206CCB1-19C1-11D1-89E0-00C04FD7A829")
  413.     IDataInitialize : public IUnknown
  414.     {
  415.     public:
  416.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDataSource( 
  417.             /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  418.             /* [in] */ DWORD dwClsCtx,
  419.             /* [unique][in] */ LPCOLESTR pwszInitializationString,
  420.             /* [in] */ REFIID riid,
  421.             /* [iid_is][out][in] */ IUnknown __RPC_FAR *__RPC_FAR *ppDataSource) = 0;
  422.         
  423.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetInitializationString( 
  424.             /* [in] */ IUnknown __RPC_FAR *pDataSource,
  425.             /* [in] */ boolean fIncludePassword,
  426.             /* [out] */ LPOLESTR __RPC_FAR *ppwszInitString) = 0;
  427.         
  428.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateDBInstance( 
  429.             /* [in] */ REFCLSID clsidProvider,
  430.             /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  431.             /* [in] */ DWORD dwClsCtx,
  432.             /* [unique][in] */ LPOLESTR pwszReserved,
  433.             /* [in] */ REFIID riid,
  434.             /* [iid_is][out] */ IUnknown __RPC_FAR *__RPC_FAR *ppDataSource) = 0;
  435.         
  436.         virtual /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE CreateDBInstanceEx( 
  437.             /* [in] */ REFCLSID clsidProvider,
  438.             /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  439.             /* [in] */ DWORD dwClsCtx,
  440.             /* [unique][in] */ LPOLESTR pwszReserved,
  441.             /* [unique][in] */ COSERVERINFO __RPC_FAR *pServerInfo,
  442.             /* [in] */ ULONG cmq,
  443.             /* [size_is][out][in] */ MULTI_QI __RPC_FAR *rgmqResults) = 0;
  444.         
  445.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE LoadStringFromStorage( 
  446.             /* [unique][in] */ LPCOLESTR pwszFileName,
  447.             /* [out] */ LPOLESTR __RPC_FAR *ppwszInitializationString) = 0;
  448.         
  449.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE WriteStringToStorage( 
  450.             /* [unique][in] */ LPCOLESTR pwszFileName,
  451.             /* [unique][in] */ LPCOLESTR pwszInitializationString,
  452.             /* [in] */ DWORD dwCreationDisposition) = 0;
  453.         
  454.     };
  455.     
  456. #else     /* C style interface */
  457.  
  458.     typedef struct IDataInitializeVtbl
  459.     {
  460.         BEGIN_INTERFACE
  461.         
  462.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  463.             IDataInitialize __RPC_FAR * This,
  464.             /* [in] */ REFIID riid,
  465.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  466.         
  467.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  468.             IDataInitialize __RPC_FAR * This);
  469.         
  470.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  471.             IDataInitialize __RPC_FAR * This);
  472.         
  473.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetDataSource )( 
  474.             IDataInitialize __RPC_FAR * This,
  475.             /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  476.             /* [in] */ DWORD dwClsCtx,
  477.             /* [unique][in] */ LPCOLESTR pwszInitializationString,
  478.             /* [in] */ REFIID riid,
  479.             /* [iid_is][out][in] */ IUnknown __RPC_FAR *__RPC_FAR *ppDataSource);
  480.         
  481.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetInitializationString )( 
  482.             IDataInitialize __RPC_FAR * This,
  483.             /* [in] */ IUnknown __RPC_FAR *pDataSource,
  484.             /* [in] */ boolean fIncludePassword,
  485.             /* [out] */ LPOLESTR __RPC_FAR *ppwszInitString);
  486.         
  487.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *CreateDBInstance )( 
  488.             IDataInitialize __RPC_FAR * This,
  489.             /* [in] */ REFCLSID clsidProvider,
  490.             /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  491.             /* [in] */ DWORD dwClsCtx,
  492.             /* [unique][in] */ LPOLESTR pwszReserved,
  493.             /* [in] */ REFIID riid,
  494.             /* [iid_is][out] */ IUnknown __RPC_FAR *__RPC_FAR *ppDataSource);
  495.         
  496.         /* [local][helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *CreateDBInstanceEx )( 
  497.             IDataInitialize __RPC_FAR * This,
  498.             /* [in] */ REFCLSID clsidProvider,
  499.             /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  500.             /* [in] */ DWORD dwClsCtx,
  501.             /* [unique][in] */ LPOLESTR pwszReserved,
  502.             /* [unique][in] */ COSERVERINFO __RPC_FAR *pServerInfo,
  503.             /* [in] */ ULONG cmq,
  504.             /* [size_is][out][in] */ MULTI_QI __RPC_FAR *rgmqResults);
  505.         
  506.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *LoadStringFromStorage )( 
  507.             IDataInitialize __RPC_FAR * This,
  508.             /* [unique][in] */ LPCOLESTR pwszFileName,
  509.             /* [out] */ LPOLESTR __RPC_FAR *ppwszInitializationString);
  510.         
  511.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *WriteStringToStorage )( 
  512.             IDataInitialize __RPC_FAR * This,
  513.             /* [unique][in] */ LPCOLESTR pwszFileName,
  514.             /* [unique][in] */ LPCOLESTR pwszInitializationString,
  515.             /* [in] */ DWORD dwCreationDisposition);
  516.         
  517.         END_INTERFACE
  518.     } IDataInitializeVtbl;
  519.  
  520.     interface IDataInitialize
  521.     {
  522.         CONST_VTBL struct IDataInitializeVtbl __RPC_FAR *lpVtbl;
  523.     };
  524.  
  525.     
  526.  
  527. #ifdef COBJMACROS
  528.  
  529.  
  530. #define IDataInitialize_QueryInterface(This,riid,ppvObject)    \
  531.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  532.  
  533. #define IDataInitialize_AddRef(This)    \
  534.     (This)->lpVtbl -> AddRef(This)
  535.  
  536. #define IDataInitialize_Release(This)    \
  537.     (This)->lpVtbl -> Release(This)
  538.  
  539.  
  540. #define IDataInitialize_GetDataSource(This,pUnkOuter,dwClsCtx,pwszInitializationString,riid,ppDataSource)    \
  541.     (This)->lpVtbl -> GetDataSource(This,pUnkOuter,dwClsCtx,pwszInitializationString,riid,ppDataSource)
  542.  
  543. #define IDataInitialize_GetInitializationString(This,pDataSource,fIncludePassword,ppwszInitString)    \
  544.     (This)->lpVtbl -> GetInitializationString(This,pDataSource,fIncludePassword,ppwszInitString)
  545.  
  546. #define IDataInitialize_CreateDBInstance(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,riid,ppDataSource)    \
  547.     (This)->lpVtbl -> CreateDBInstance(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,riid,ppDataSource)
  548.  
  549. #define IDataInitialize_CreateDBInstanceEx(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,pServerInfo,cmq,rgmqResults)    \
  550.     (This)->lpVtbl -> CreateDBInstanceEx(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,pServerInfo,cmq,rgmqResults)
  551.  
  552. #define IDataInitialize_LoadStringFromStorage(This,pwszFileName,ppwszInitializationString)    \
  553.     (This)->lpVtbl -> LoadStringFromStorage(This,pwszFileName,ppwszInitializationString)
  554.  
  555. #define IDataInitialize_WriteStringToStorage(This,pwszFileName,pwszInitializationString,dwCreationDisposition)    \
  556.     (This)->lpVtbl -> WriteStringToStorage(This,pwszFileName,pwszInitializationString,dwCreationDisposition)
  557.  
  558. #endif /* COBJMACROS */
  559.  
  560.  
  561. #endif     /* C style interface */
  562.  
  563.  
  564.  
  565. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_GetDataSource_Proxy( 
  566.     IDataInitialize __RPC_FAR * This,
  567.     /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  568.     /* [in] */ DWORD dwClsCtx,
  569.     /* [unique][in] */ LPCOLESTR pwszInitializationString,
  570.     /* [in] */ REFIID riid,
  571.     /* [iid_is][out][in] */ IUnknown __RPC_FAR *__RPC_FAR *ppDataSource);
  572.  
  573.  
  574. void __RPC_STUB IDataInitialize_GetDataSource_Stub(
  575.     IRpcStubBuffer *This,
  576.     IRpcChannelBuffer *_pRpcChannelBuffer,
  577.     PRPC_MESSAGE _pRpcMessage,
  578.     DWORD *_pdwStubPhase);
  579.  
  580.  
  581. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_GetInitializationString_Proxy( 
  582.     IDataInitialize __RPC_FAR * This,
  583.     /* [in] */ IUnknown __RPC_FAR *pDataSource,
  584.     /* [in] */ boolean fIncludePassword,
  585.     /* [out] */ LPOLESTR __RPC_FAR *ppwszInitString);
  586.  
  587.  
  588. void __RPC_STUB IDataInitialize_GetInitializationString_Stub(
  589.     IRpcStubBuffer *This,
  590.     IRpcChannelBuffer *_pRpcChannelBuffer,
  591.     PRPC_MESSAGE _pRpcMessage,
  592.     DWORD *_pdwStubPhase);
  593.  
  594.  
  595. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_CreateDBInstance_Proxy( 
  596.     IDataInitialize __RPC_FAR * This,
  597.     /* [in] */ REFCLSID clsidProvider,
  598.     /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  599.     /* [in] */ DWORD dwClsCtx,
  600.     /* [unique][in] */ LPOLESTR pwszReserved,
  601.     /* [in] */ REFIID riid,
  602.     /* [iid_is][out] */ IUnknown __RPC_FAR *__RPC_FAR *ppDataSource);
  603.  
  604.  
  605. void __RPC_STUB IDataInitialize_CreateDBInstance_Stub(
  606.     IRpcStubBuffer *This,
  607.     IRpcChannelBuffer *_pRpcChannelBuffer,
  608.     PRPC_MESSAGE _pRpcMessage,
  609.     DWORD *_pdwStubPhase);
  610.  
  611.  
  612. /* [call_as] */ HRESULT STDMETHODCALLTYPE IDataInitialize_RemoteCreateDBInstanceEx_Proxy( 
  613.     IDataInitialize __RPC_FAR * This,
  614.     /* [in] */ REFCLSID clsidProvider,
  615.     /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  616.     /* [in] */ DWORD dwClsCtx,
  617.     /* [unique][in] */ LPOLESTR pwszReserved,
  618.     /* [unique][in] */ COSERVERINFO __RPC_FAR *pServerInfo,
  619.     /* [in] */ ULONG cmq,
  620.     /* [size_is][size_is][in] */ const IID __RPC_FAR *__RPC_FAR *rgpIID,
  621.     /* [size_is][size_is][out] */ IUnknown __RPC_FAR *__RPC_FAR *rgpItf,
  622.     /* [size_is][out] */ HRESULT __RPC_FAR *rghr);
  623.  
  624.  
  625. void __RPC_STUB IDataInitialize_RemoteCreateDBInstanceEx_Stub(
  626.     IRpcStubBuffer *This,
  627.     IRpcChannelBuffer *_pRpcChannelBuffer,
  628.     PRPC_MESSAGE _pRpcMessage,
  629.     DWORD *_pdwStubPhase);
  630.  
  631.  
  632. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_LoadStringFromStorage_Proxy( 
  633.     IDataInitialize __RPC_FAR * This,
  634.     /* [unique][in] */ LPCOLESTR pwszFileName,
  635.     /* [out] */ LPOLESTR __RPC_FAR *ppwszInitializationString);
  636.  
  637.  
  638. void __RPC_STUB IDataInitialize_LoadStringFromStorage_Stub(
  639.     IRpcStubBuffer *This,
  640.     IRpcChannelBuffer *_pRpcChannelBuffer,
  641.     PRPC_MESSAGE _pRpcMessage,
  642.     DWORD *_pdwStubPhase);
  643.  
  644.  
  645. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_WriteStringToStorage_Proxy( 
  646.     IDataInitialize __RPC_FAR * This,
  647.     /* [unique][in] */ LPCOLESTR pwszFileName,
  648.     /* [unique][in] */ LPCOLESTR pwszInitializationString,
  649.     /* [in] */ DWORD dwCreationDisposition);
  650.  
  651.  
  652. void __RPC_STUB IDataInitialize_WriteStringToStorage_Stub(
  653.     IRpcStubBuffer *This,
  654.     IRpcChannelBuffer *_pRpcChannelBuffer,
  655.     PRPC_MESSAGE _pRpcMessage,
  656.     DWORD *_pdwStubPhase);
  657.  
  658.  
  659.  
  660. #endif     /* __IDataInitialize_INTERFACE_DEFINED__ */
  661.  
  662.  
  663.  
  664. #ifndef __MSDASC_LIBRARY_DEFINED__
  665. #define __MSDASC_LIBRARY_DEFINED__
  666.  
  667. /* library MSDASC */
  668. /* [helpstring][version][uuid] */ 
  669.  
  670.  
  671. EXTERN_C const IID LIBID_MSDASC;
  672.  
  673. #ifndef __IDataSourceLocator_INTERFACE_DEFINED__
  674. #define __IDataSourceLocator_INTERFACE_DEFINED__
  675.  
  676. /* interface IDataSourceLocator */
  677. /* [unique][helpstring][dual][uuid][object] */ 
  678.  
  679.  
  680. EXTERN_C const IID IID_IDataSourceLocator;
  681.  
  682. #if defined(__cplusplus) && !defined(CINTERFACE)
  683.     
  684.     MIDL_INTERFACE("2206CCB2-19C1-11D1-89E0-00C04FD7A829")
  685.     IDataSourceLocator : public IDispatch
  686.     {
  687.     public:
  688.         virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_hWnd( 
  689.             /* [retval][out] */ LONG_PTR __RPC_FAR *phwndParent) = 0;
  690.         
  691.         virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_hWnd( 
  692.             /* [in] */ LONG_PTR hwndParent) = 0;
  693.         
  694.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PromptNew( 
  695.             /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *ppADOConnection) = 0;
  696.         
  697.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PromptEdit( 
  698.             /* [out][in] */ IDispatch __RPC_FAR *__RPC_FAR *ppADOConnection,
  699.             /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pbSuccess) = 0;
  700.         
  701.     };
  702.     
  703. #else     /* C style interface */
  704.  
  705.     typedef struct IDataSourceLocatorVtbl
  706.     {
  707.         BEGIN_INTERFACE
  708.         
  709.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *QueryInterface )( 
  710.             IDataSourceLocator __RPC_FAR * This,
  711.             /* [in] */ REFIID riid,
  712.             /* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject);
  713.         
  714.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *AddRef )( 
  715.             IDataSourceLocator __RPC_FAR * This);
  716.         
  717.         ULONG ( STDMETHODCALLTYPE __RPC_FAR *Release )( 
  718.             IDataSourceLocator __RPC_FAR * This);
  719.         
  720.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfoCount )( 
  721.             IDataSourceLocator __RPC_FAR * This,
  722.             /* [out] */ UINT __RPC_FAR *pctinfo);
  723.         
  724.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetTypeInfo )( 
  725.             IDataSourceLocator __RPC_FAR * This,
  726.             /* [in] */ UINT iTInfo,
  727.             /* [in] */ LCID lcid,
  728.             /* [out] */ ITypeInfo __RPC_FAR *__RPC_FAR *ppTInfo);
  729.         
  730.         HRESULT ( STDMETHODCALLTYPE __RPC_FAR *GetIDsOfNames )( 
  731.             IDataSourceLocator __RPC_FAR * This,
  732.             /* [in] */ REFIID riid,
  733.             /* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
  734.             /* [in] */ UINT cNames,
  735.             /* [in] */ LCID lcid,
  736.             /* [size_is][out] */ DISPID __RPC_FAR *rgDispId);
  737.         
  738.         /* [local] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *Invoke )( 
  739.             IDataSourceLocator __RPC_FAR * This,
  740.             /* [in] */ DISPID dispIdMember,
  741.             /* [in] */ REFIID riid,
  742.             /* [in] */ LCID lcid,
  743.             /* [in] */ WORD wFlags,
  744.             /* [out][in] */ DISPPARAMS __RPC_FAR *pDispParams,
  745.             /* [out] */ VARIANT __RPC_FAR *pVarResult,
  746.             /* [out] */ EXCEPINFO __RPC_FAR *pExcepInfo,
  747.             /* [out] */ UINT __RPC_FAR *puArgErr);
  748.         
  749.         /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *get_hWnd )( 
  750.             IDataSourceLocator __RPC_FAR * This,
  751.             /* [retval][out] */ LONG_PTR __RPC_FAR *phwndParent);
  752.         
  753.         /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *put_hWnd )( 
  754.             IDataSourceLocator __RPC_FAR * This,
  755.             /* [in] */ LONG_PTR hwndParent);
  756.         
  757.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *PromptNew )( 
  758.             IDataSourceLocator __RPC_FAR * This,
  759.             /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *ppADOConnection);
  760.         
  761.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE __RPC_FAR *PromptEdit )( 
  762.             IDataSourceLocator __RPC_FAR * This,
  763.             /* [out][in] */ IDispatch __RPC_FAR *__RPC_FAR *ppADOConnection,
  764.             /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pbSuccess);
  765.         
  766.         END_INTERFACE
  767.     } IDataSourceLocatorVtbl;
  768.  
  769.     interface IDataSourceLocator
  770.     {
  771.         CONST_VTBL struct IDataSourceLocatorVtbl __RPC_FAR *lpVtbl;
  772.     };
  773.  
  774.     
  775.  
  776. #ifdef COBJMACROS
  777.  
  778.  
  779. #define IDataSourceLocator_QueryInterface(This,riid,ppvObject)    \
  780.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  781.  
  782. #define IDataSourceLocator_AddRef(This)    \
  783.     (This)->lpVtbl -> AddRef(This)
  784.  
  785. #define IDataSourceLocator_Release(This)    \
  786.     (This)->lpVtbl -> Release(This)
  787.  
  788.  
  789. #define IDataSourceLocator_GetTypeInfoCount(This,pctinfo)    \
  790.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  791.  
  792. #define IDataSourceLocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo)    \
  793.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  794.  
  795. #define IDataSourceLocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)    \
  796.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  797.  
  798. #define IDataSourceLocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)    \
  799.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  800.  
  801.  
  802. #define IDataSourceLocator_get_hWnd(This,phwndParent)    \
  803.     (This)->lpVtbl -> get_hWnd(This,phwndParent)
  804.  
  805. #define IDataSourceLocator_put_hWnd(This,hwndParent)    \
  806.     (This)->lpVtbl -> put_hWnd(This,hwndParent)
  807.  
  808. #define IDataSourceLocator_PromptNew(This,ppADOConnection)    \
  809.     (This)->lpVtbl -> PromptNew(This,ppADOConnection)
  810.  
  811. #define IDataSourceLocator_PromptEdit(This,ppADOConnection,pbSuccess)    \
  812.     (This)->lpVtbl -> PromptEdit(This,ppADOConnection,pbSuccess)
  813.  
  814. #endif /* COBJMACROS */
  815.  
  816.  
  817. #endif     /* C style interface */
  818.  
  819.  
  820.  
  821. /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_get_hWnd_Proxy( 
  822.     IDataSourceLocator __RPC_FAR * This,
  823.     /* [retval][out] */ LONG_PTR __RPC_FAR *phwndParent);
  824.  
  825.  
  826. void __RPC_STUB IDataSourceLocator_get_hWnd_Stub(
  827.     IRpcStubBuffer *This,
  828.     IRpcChannelBuffer *_pRpcChannelBuffer,
  829.     PRPC_MESSAGE _pRpcMessage,
  830.     DWORD *_pdwStubPhase);
  831.  
  832.  
  833. /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_put_hWnd_Proxy( 
  834.     IDataSourceLocator __RPC_FAR * This,
  835.     /* [in] */ LONG_PTR hwndParent);
  836.  
  837.  
  838. void __RPC_STUB IDataSourceLocator_put_hWnd_Stub(
  839.     IRpcStubBuffer *This,
  840.     IRpcChannelBuffer *_pRpcChannelBuffer,
  841.     PRPC_MESSAGE _pRpcMessage,
  842.     DWORD *_pdwStubPhase);
  843.  
  844.  
  845. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_PromptNew_Proxy( 
  846.     IDataSourceLocator __RPC_FAR * This,
  847.     /* [retval][out] */ IDispatch __RPC_FAR *__RPC_FAR *ppADOConnection);
  848.  
  849.  
  850. void __RPC_STUB IDataSourceLocator_PromptNew_Stub(
  851.     IRpcStubBuffer *This,
  852.     IRpcChannelBuffer *_pRpcChannelBuffer,
  853.     PRPC_MESSAGE _pRpcMessage,
  854.     DWORD *_pdwStubPhase);
  855.  
  856.  
  857. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_PromptEdit_Proxy( 
  858.     IDataSourceLocator __RPC_FAR * This,
  859.     /* [out][in] */ IDispatch __RPC_FAR *__RPC_FAR *ppADOConnection,
  860.     /* [retval][out] */ VARIANT_BOOL __RPC_FAR *pbSuccess);
  861.  
  862.  
  863. void __RPC_STUB IDataSourceLocator_PromptEdit_Stub(
  864.     IRpcStubBuffer *This,
  865.     IRpcChannelBuffer *_pRpcChannelBuffer,
  866.     PRPC_MESSAGE _pRpcMessage,
  867.     DWORD *_pdwStubPhase);
  868.  
  869.  
  870.  
  871. #endif     /* __IDataSourceLocator_INTERFACE_DEFINED__ */
  872.  
  873.  
  874. EXTERN_C const CLSID CLSID_DataLinks;
  875.  
  876. #ifdef __cplusplus
  877.  
  878. class DECLSPEC_UUID("2206CDB2-19C1-11D1-89E0-00C04FD7A829")
  879. DataLinks;
  880. #endif
  881.  
  882. EXTERN_C const CLSID CLSID_MSDAINITIALIZE;
  883.  
  884. #ifdef __cplusplus
  885.  
  886. class DECLSPEC_UUID("2206CDB0-19C1-11D1-89E0-00C04FD7A829")
  887. MSDAINITIALIZE;
  888. #endif
  889.  
  890. EXTERN_C const CLSID CLSID_PDPO;
  891.  
  892. #ifdef __cplusplus
  893.  
  894. class DECLSPEC_UUID("CCB4EC60-B9DC-11D1-AC80-00A0C9034873")
  895. PDPO;
  896. #endif
  897.  
  898. EXTERN_C const CLSID CLSID_RootBinder;
  899.  
  900. #ifdef __cplusplus
  901.  
  902. class DECLSPEC_UUID("FF151822-B0BF-11D1-A80D-000000000000")
  903. RootBinder;
  904. #endif
  905. #endif /* __MSDASC_LIBRARY_DEFINED__ */
  906.  
  907. /* Additional Prototypes for ALL interfaces */
  908.  
  909. /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_CreateDBInstanceEx_Proxy( 
  910.     IDataInitialize __RPC_FAR * This,
  911.     /* [in] */ REFCLSID clsidProvider,
  912.     /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  913.     /* [in] */ DWORD dwClsCtx,
  914.     /* [unique][in] */ LPOLESTR pwszReserved,
  915.     /* [unique][in] */ COSERVERINFO __RPC_FAR *pServerInfo,
  916.     /* [in] */ ULONG cmq,
  917.     /* [size_is][out][in] */ MULTI_QI __RPC_FAR *rgmqResults);
  918.  
  919.  
  920. /* [call_as] */ HRESULT STDMETHODCALLTYPE IDataInitialize_CreateDBInstanceEx_Stub( 
  921.     IDataInitialize __RPC_FAR * This,
  922.     /* [in] */ REFCLSID clsidProvider,
  923.     /* [in] */ IUnknown __RPC_FAR *pUnkOuter,
  924.     /* [in] */ DWORD dwClsCtx,
  925.     /* [unique][in] */ LPOLESTR pwszReserved,
  926.     /* [unique][in] */ COSERVERINFO __RPC_FAR *pServerInfo,
  927.     /* [in] */ ULONG cmq,
  928.     /* [size_is][size_is][in] */ const IID __RPC_FAR *__RPC_FAR *rgpIID,
  929.     /* [size_is][size_is][out] */ IUnknown __RPC_FAR *__RPC_FAR *rgpItf,
  930.     /* [size_is][out] */ HRESULT __RPC_FAR *rghr);
  931.  
  932.  
  933.  
  934. /* end of Additional Prototypes */
  935.  
  936. #ifdef __cplusplus
  937. }
  938. #endif
  939.  
  940. #endif
  941.  
  942.  
  943. #pragma option pop /*P_O_Pop*/
  944.