Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

964 lines
30 KiB

  1. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  2. /* File created by MIDL compiler version 6.00.0361 */
  3. /* Compiler settings for msdasc.idl:
  4. Oicf, W1, Zp8, env=Win32 (32b run)
  5. protocol : dce , ms_ext, c_ext, robust
  6. error checks: allocation ref bounds_check enum stub_data
  7. VC __declspec() decoration level:
  8. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  9. DECLSPEC_UUID(), MIDL_INTERFACE()
  10. */
  11. //@@MIDL_FILE_HEADING( )
  12. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  13. /* verify that the <rpcndr.h> version is high enough to compile this file*/
  14. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  15. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  16. #endif
  17. #include "rpc.h"
  18. #include "rpcndr.h"
  19. #ifndef __RPCNDR_H_VERSION__
  20. #error this stub requires an updated version of <rpcndr.h>
  21. #endif // __RPCNDR_H_VERSION__
  22. #ifndef COM_NO_WINDOWS_H
  23. #include "windows.h"
  24. #include "ole2.h"
  25. #endif /*COM_NO_WINDOWS_H*/
  26. #ifndef __msdasc_h__
  27. #define __msdasc_h__
  28. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  29. #pragma once
  30. #endif
  31. /* Forward Declarations */
  32. #ifndef __IService_FWD_DEFINED__
  33. #define __IService_FWD_DEFINED__
  34. typedef interface IService IService;
  35. #endif /* __IService_FWD_DEFINED__ */
  36. #ifndef __IDBPromptInitialize_FWD_DEFINED__
  37. #define __IDBPromptInitialize_FWD_DEFINED__
  38. typedef interface IDBPromptInitialize IDBPromptInitialize;
  39. #endif /* __IDBPromptInitialize_FWD_DEFINED__ */
  40. #ifndef __IDataInitialize_FWD_DEFINED__
  41. #define __IDataInitialize_FWD_DEFINED__
  42. typedef interface IDataInitialize IDataInitialize;
  43. #endif /* __IDataInitialize_FWD_DEFINED__ */
  44. #ifndef __IDataSourceLocator_FWD_DEFINED__
  45. #define __IDataSourceLocator_FWD_DEFINED__
  46. typedef interface IDataSourceLocator IDataSourceLocator;
  47. #endif /* __IDataSourceLocator_FWD_DEFINED__ */
  48. #ifndef __DataLinks_FWD_DEFINED__
  49. #define __DataLinks_FWD_DEFINED__
  50. #ifdef __cplusplus
  51. typedef class DataLinks DataLinks;
  52. #else
  53. typedef struct DataLinks DataLinks;
  54. #endif /* __cplusplus */
  55. #endif /* __DataLinks_FWD_DEFINED__ */
  56. #ifndef __MSDAINITIALIZE_FWD_DEFINED__
  57. #define __MSDAINITIALIZE_FWD_DEFINED__
  58. #ifdef __cplusplus
  59. typedef class MSDAINITIALIZE MSDAINITIALIZE;
  60. #else
  61. typedef struct MSDAINITIALIZE MSDAINITIALIZE;
  62. #endif /* __cplusplus */
  63. #endif /* __MSDAINITIALIZE_FWD_DEFINED__ */
  64. #ifndef __PDPO_FWD_DEFINED__
  65. #define __PDPO_FWD_DEFINED__
  66. #ifdef __cplusplus
  67. typedef class PDPO PDPO;
  68. #else
  69. typedef struct PDPO PDPO;
  70. #endif /* __cplusplus */
  71. #endif /* __PDPO_FWD_DEFINED__ */
  72. #ifndef __RootBinder_FWD_DEFINED__
  73. #define __RootBinder_FWD_DEFINED__
  74. #ifdef __cplusplus
  75. typedef class RootBinder RootBinder;
  76. #else
  77. typedef struct RootBinder RootBinder;
  78. #endif /* __cplusplus */
  79. #endif /* __RootBinder_FWD_DEFINED__ */
  80. /* header files for imported files */
  81. #include "oaidl.h"
  82. #include "ocidl.h"
  83. #include "oledb.h"
  84. #ifdef __cplusplus
  85. extern "C"{
  86. #endif
  87. void * __RPC_USER MIDL_user_allocate(size_t);
  88. void __RPC_USER MIDL_user_free( void * );
  89. /* interface __MIDL_itf_msdasc_0000 */
  90. /* [local] */
  91. //-----------------------------------------------------------------------------
  92. // File: .C or .H file generated by msdasc.idl
  93. //
  94. // Copyright: Copyright (c) 1998-1999 Microsoft Corporation
  95. //
  96. // Contents: .C or .H file generated by msdasc.idl
  97. //
  98. // Comments:
  99. //
  100. //-----------------------------------------------------------------------------
  101. #ifdef _WIN64
  102. typedef LONGLONG COMPATIBLE_LONG;
  103. #else
  104. typedef LONG COMPATIBLE_LONG;
  105. #endif // _WIN64
  106. typedef
  107. enum tagEBindInfoOptions
  108. { BIO_BINDER = 0x1
  109. } EBindInfoOptions;
  110. #define STGM_COLLECTION 0x00002000L
  111. #define STGM_OUTPUT 0x00008000L
  112. #define STGM_OPEN 0x80000000L
  113. #define STGM_RECURSIVE 0x01000000L
  114. #define STGM_STRICTOPEN 0x40000000L
  115. extern RPC_IF_HANDLE __MIDL_itf_msdasc_0000_v0_0_c_ifspec;
  116. extern RPC_IF_HANDLE __MIDL_itf_msdasc_0000_v0_0_s_ifspec;
  117. #ifndef __IService_INTERFACE_DEFINED__
  118. #define __IService_INTERFACE_DEFINED__
  119. /* interface IService */
  120. /* [object][unique][helpstring][uuid] */
  121. EXTERN_C const IID IID_IService;
  122. #if defined(__cplusplus) && !defined(CINTERFACE)
  123. MIDL_INTERFACE("06210E88-01F5-11D1-B512-0080C781C384")
  124. IService : public IUnknown
  125. {
  126. public:
  127. virtual /* [local] */ HRESULT STDMETHODCALLTYPE InvokeService(
  128. /* [in] */ IUnknown *pUnkInner) = 0;
  129. };
  130. #else /* C style interface */
  131. typedef struct IServiceVtbl
  132. {
  133. BEGIN_INTERFACE
  134. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  135. IService * This,
  136. /* [in] */ REFIID riid,
  137. /* [iid_is][out] */ void **ppvObject);
  138. ULONG ( STDMETHODCALLTYPE *AddRef )(
  139. IService * This);
  140. ULONG ( STDMETHODCALLTYPE *Release )(
  141. IService * This);
  142. /* [local] */ HRESULT ( STDMETHODCALLTYPE *InvokeService )(
  143. IService * This,
  144. /* [in] */ IUnknown *pUnkInner);
  145. END_INTERFACE
  146. } IServiceVtbl;
  147. interface IService
  148. {
  149. CONST_VTBL struct IServiceVtbl *lpVtbl;
  150. };
  151. #ifdef COBJMACROS
  152. #define IService_QueryInterface(This,riid,ppvObject) \
  153. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  154. #define IService_AddRef(This) \
  155. (This)->lpVtbl -> AddRef(This)
  156. #define IService_Release(This) \
  157. (This)->lpVtbl -> Release(This)
  158. #define IService_InvokeService(This,pUnkInner) \
  159. (This)->lpVtbl -> InvokeService(This,pUnkInner)
  160. #endif /* COBJMACROS */
  161. #endif /* C style interface */
  162. /* [local] */ HRESULT STDMETHODCALLTYPE IService_InvokeService_Proxy(
  163. IService * This,
  164. /* [in] */ IUnknown *pUnkInner);
  165. void __RPC_STUB IService_InvokeService_Stub(
  166. IRpcStubBuffer *This,
  167. IRpcChannelBuffer *_pRpcChannelBuffer,
  168. PRPC_MESSAGE _pRpcMessage,
  169. DWORD *_pdwStubPhase);
  170. #endif /* __IService_INTERFACE_DEFINED__ */
  171. /* interface __MIDL_itf_msdasc_0359 */
  172. /* [local] */
  173. typedef DWORD DBPROMPTOPTIONS;
  174. typedef
  175. enum tagDBPROMPTOPTIONSENUM
  176. { DBPROMPTOPTIONS_NONE = 0,
  177. DBPROMPTOPTIONS_WIZARDSHEET = 0x1,
  178. DBPROMPTOPTIONS_PROPERTYSHEET = 0x2,
  179. DBPROMPTOPTIONS_BROWSEONLY = 0x8,
  180. DBPROMPTOPTIONS_DISABLE_PROVIDER_SELECTION = 0x10,
  181. DBPROMPTOPTIONS_DISABLESAVEPASSWORD = 0x20
  182. } DBPROMPTOPTIONSENUM;
  183. extern RPC_IF_HANDLE __MIDL_itf_msdasc_0359_v0_0_c_ifspec;
  184. extern RPC_IF_HANDLE __MIDL_itf_msdasc_0359_v0_0_s_ifspec;
  185. #ifndef __IDBPromptInitialize_INTERFACE_DEFINED__
  186. #define __IDBPromptInitialize_INTERFACE_DEFINED__
  187. /* interface IDBPromptInitialize */
  188. /* [restricted][local][unique][helpstring][uuid][object] */
  189. EXTERN_C const IID IID_IDBPromptInitialize;
  190. #if defined(__cplusplus) && !defined(CINTERFACE)
  191. MIDL_INTERFACE("2206CCB0-19C1-11D1-89E0-00C04FD7A829")
  192. IDBPromptInitialize : public IUnknown
  193. {
  194. public:
  195. virtual /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE PromptDataSource(
  196. /* [in] */ IUnknown *pUnkOuter,
  197. /* [in] */ HWND hWndParent,
  198. /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  199. /* [in] */ ULONG cSourceTypeFilter,
  200. /* [size_is][in] */ DBSOURCETYPE *rgSourceTypeFilter,
  201. /* [in] */ LPCOLESTR pwszszzProviderFilter,
  202. /* [in] */ REFIID riid,
  203. /* [iid_is][out][in] */ IUnknown **ppDataSource) = 0;
  204. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PromptFileName(
  205. /* [in] */ HWND hWndParent,
  206. /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  207. /* [in] */ LPCOLESTR pwszInitialDirectory,
  208. /* [in] */ LPCOLESTR pwszInitialFile,
  209. /* [out] */ LPOLESTR *ppwszSelectedFile) = 0;
  210. };
  211. #else /* C style interface */
  212. typedef struct IDBPromptInitializeVtbl
  213. {
  214. BEGIN_INTERFACE
  215. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  216. IDBPromptInitialize * This,
  217. /* [in] */ REFIID riid,
  218. /* [iid_is][out] */ void **ppvObject);
  219. ULONG ( STDMETHODCALLTYPE *AddRef )(
  220. IDBPromptInitialize * This);
  221. ULONG ( STDMETHODCALLTYPE *Release )(
  222. IDBPromptInitialize * This);
  223. /* [local][helpstring] */ HRESULT ( STDMETHODCALLTYPE *PromptDataSource )(
  224. IDBPromptInitialize * This,
  225. /* [in] */ IUnknown *pUnkOuter,
  226. /* [in] */ HWND hWndParent,
  227. /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  228. /* [in] */ ULONG cSourceTypeFilter,
  229. /* [size_is][in] */ DBSOURCETYPE *rgSourceTypeFilter,
  230. /* [in] */ LPCOLESTR pwszszzProviderFilter,
  231. /* [in] */ REFIID riid,
  232. /* [iid_is][out][in] */ IUnknown **ppDataSource);
  233. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *PromptFileName )(
  234. IDBPromptInitialize * This,
  235. /* [in] */ HWND hWndParent,
  236. /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  237. /* [in] */ LPCOLESTR pwszInitialDirectory,
  238. /* [in] */ LPCOLESTR pwszInitialFile,
  239. /* [out] */ LPOLESTR *ppwszSelectedFile);
  240. END_INTERFACE
  241. } IDBPromptInitializeVtbl;
  242. interface IDBPromptInitialize
  243. {
  244. CONST_VTBL struct IDBPromptInitializeVtbl *lpVtbl;
  245. };
  246. #ifdef COBJMACROS
  247. #define IDBPromptInitialize_QueryInterface(This,riid,ppvObject) \
  248. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  249. #define IDBPromptInitialize_AddRef(This) \
  250. (This)->lpVtbl -> AddRef(This)
  251. #define IDBPromptInitialize_Release(This) \
  252. (This)->lpVtbl -> Release(This)
  253. #define IDBPromptInitialize_PromptDataSource(This,pUnkOuter,hWndParent,dwPromptOptions,cSourceTypeFilter,rgSourceTypeFilter,pwszszzProviderFilter,riid,ppDataSource) \
  254. (This)->lpVtbl -> PromptDataSource(This,pUnkOuter,hWndParent,dwPromptOptions,cSourceTypeFilter,rgSourceTypeFilter,pwszszzProviderFilter,riid,ppDataSource)
  255. #define IDBPromptInitialize_PromptFileName(This,hWndParent,dwPromptOptions,pwszInitialDirectory,pwszInitialFile,ppwszSelectedFile) \
  256. (This)->lpVtbl -> PromptFileName(This,hWndParent,dwPromptOptions,pwszInitialDirectory,pwszInitialFile,ppwszSelectedFile)
  257. #endif /* COBJMACROS */
  258. #endif /* C style interface */
  259. /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE IDBPromptInitialize_PromptDataSource_Proxy(
  260. IDBPromptInitialize * This,
  261. /* [in] */ IUnknown *pUnkOuter,
  262. /* [in] */ HWND hWndParent,
  263. /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  264. /* [in] */ ULONG cSourceTypeFilter,
  265. /* [size_is][in] */ DBSOURCETYPE *rgSourceTypeFilter,
  266. /* [in] */ LPCOLESTR pwszszzProviderFilter,
  267. /* [in] */ REFIID riid,
  268. /* [iid_is][out][in] */ IUnknown **ppDataSource);
  269. void __RPC_STUB IDBPromptInitialize_PromptDataSource_Stub(
  270. IRpcStubBuffer *This,
  271. IRpcChannelBuffer *_pRpcChannelBuffer,
  272. PRPC_MESSAGE _pRpcMessage,
  273. DWORD *_pdwStubPhase);
  274. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDBPromptInitialize_PromptFileName_Proxy(
  275. IDBPromptInitialize * This,
  276. /* [in] */ HWND hWndParent,
  277. /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  278. /* [in] */ LPCOLESTR pwszInitialDirectory,
  279. /* [in] */ LPCOLESTR pwszInitialFile,
  280. /* [out] */ LPOLESTR *ppwszSelectedFile);
  281. void __RPC_STUB IDBPromptInitialize_PromptFileName_Stub(
  282. IRpcStubBuffer *This,
  283. IRpcChannelBuffer *_pRpcChannelBuffer,
  284. PRPC_MESSAGE _pRpcMessage,
  285. DWORD *_pdwStubPhase);
  286. #endif /* __IDBPromptInitialize_INTERFACE_DEFINED__ */
  287. #ifndef __IDataInitialize_INTERFACE_DEFINED__
  288. #define __IDataInitialize_INTERFACE_DEFINED__
  289. /* interface IDataInitialize */
  290. /* [unique][helpstring][uuid][object] */
  291. EXTERN_C const IID IID_IDataInitialize;
  292. #if defined(__cplusplus) && !defined(CINTERFACE)
  293. MIDL_INTERFACE("2206CCB1-19C1-11D1-89E0-00C04FD7A829")
  294. IDataInitialize : public IUnknown
  295. {
  296. public:
  297. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDataSource(
  298. /* [in] */ IUnknown *pUnkOuter,
  299. /* [in] */ DWORD dwClsCtx,
  300. /* [unique][in] */ LPCOLESTR pwszInitializationString,
  301. /* [in] */ REFIID riid,
  302. /* [iid_is][out][in] */ IUnknown **ppDataSource) = 0;
  303. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetInitializationString(
  304. /* [in] */ IUnknown *pDataSource,
  305. /* [in] */ boolean fIncludePassword,
  306. /* [out] */ LPOLESTR *ppwszInitString) = 0;
  307. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateDBInstance(
  308. /* [in] */ REFCLSID clsidProvider,
  309. /* [in] */ IUnknown *pUnkOuter,
  310. /* [in] */ DWORD dwClsCtx,
  311. /* [unique][in] */ LPOLESTR pwszReserved,
  312. /* [in] */ REFIID riid,
  313. /* [iid_is][out] */ IUnknown **ppDataSource) = 0;
  314. virtual /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE CreateDBInstanceEx(
  315. /* [in] */ REFCLSID clsidProvider,
  316. /* [in] */ IUnknown *pUnkOuter,
  317. /* [in] */ DWORD dwClsCtx,
  318. /* [unique][in] */ LPOLESTR pwszReserved,
  319. /* [unique][in] */ COSERVERINFO *pServerInfo,
  320. /* [in] */ ULONG cmq,
  321. /* [size_is][out][in] */ MULTI_QI *rgmqResults) = 0;
  322. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE LoadStringFromStorage(
  323. /* [unique][in] */ LPCOLESTR pwszFileName,
  324. /* [out] */ LPOLESTR *ppwszInitializationString) = 0;
  325. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE WriteStringToStorage(
  326. /* [unique][in] */ LPCOLESTR pwszFileName,
  327. /* [unique][in] */ LPCOLESTR pwszInitializationString,
  328. /* [in] */ DWORD dwCreationDisposition) = 0;
  329. };
  330. #else /* C style interface */
  331. typedef struct IDataInitializeVtbl
  332. {
  333. BEGIN_INTERFACE
  334. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  335. IDataInitialize * This,
  336. /* [in] */ REFIID riid,
  337. /* [iid_is][out] */ void **ppvObject);
  338. ULONG ( STDMETHODCALLTYPE *AddRef )(
  339. IDataInitialize * This);
  340. ULONG ( STDMETHODCALLTYPE *Release )(
  341. IDataInitialize * This);
  342. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDataSource )(
  343. IDataInitialize * This,
  344. /* [in] */ IUnknown *pUnkOuter,
  345. /* [in] */ DWORD dwClsCtx,
  346. /* [unique][in] */ LPCOLESTR pwszInitializationString,
  347. /* [in] */ REFIID riid,
  348. /* [iid_is][out][in] */ IUnknown **ppDataSource);
  349. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetInitializationString )(
  350. IDataInitialize * This,
  351. /* [in] */ IUnknown *pDataSource,
  352. /* [in] */ boolean fIncludePassword,
  353. /* [out] */ LPOLESTR *ppwszInitString);
  354. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateDBInstance )(
  355. IDataInitialize * This,
  356. /* [in] */ REFCLSID clsidProvider,
  357. /* [in] */ IUnknown *pUnkOuter,
  358. /* [in] */ DWORD dwClsCtx,
  359. /* [unique][in] */ LPOLESTR pwszReserved,
  360. /* [in] */ REFIID riid,
  361. /* [iid_is][out] */ IUnknown **ppDataSource);
  362. /* [local][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateDBInstanceEx )(
  363. IDataInitialize * This,
  364. /* [in] */ REFCLSID clsidProvider,
  365. /* [in] */ IUnknown *pUnkOuter,
  366. /* [in] */ DWORD dwClsCtx,
  367. /* [unique][in] */ LPOLESTR pwszReserved,
  368. /* [unique][in] */ COSERVERINFO *pServerInfo,
  369. /* [in] */ ULONG cmq,
  370. /* [size_is][out][in] */ MULTI_QI *rgmqResults);
  371. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *LoadStringFromStorage )(
  372. IDataInitialize * This,
  373. /* [unique][in] */ LPCOLESTR pwszFileName,
  374. /* [out] */ LPOLESTR *ppwszInitializationString);
  375. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *WriteStringToStorage )(
  376. IDataInitialize * This,
  377. /* [unique][in] */ LPCOLESTR pwszFileName,
  378. /* [unique][in] */ LPCOLESTR pwszInitializationString,
  379. /* [in] */ DWORD dwCreationDisposition);
  380. END_INTERFACE
  381. } IDataInitializeVtbl;
  382. interface IDataInitialize
  383. {
  384. CONST_VTBL struct IDataInitializeVtbl *lpVtbl;
  385. };
  386. #ifdef COBJMACROS
  387. #define IDataInitialize_QueryInterface(This,riid,ppvObject) \
  388. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  389. #define IDataInitialize_AddRef(This) \
  390. (This)->lpVtbl -> AddRef(This)
  391. #define IDataInitialize_Release(This) \
  392. (This)->lpVtbl -> Release(This)
  393. #define IDataInitialize_GetDataSource(This,pUnkOuter,dwClsCtx,pwszInitializationString,riid,ppDataSource) \
  394. (This)->lpVtbl -> GetDataSource(This,pUnkOuter,dwClsCtx,pwszInitializationString,riid,ppDataSource)
  395. #define IDataInitialize_GetInitializationString(This,pDataSource,fIncludePassword,ppwszInitString) \
  396. (This)->lpVtbl -> GetInitializationString(This,pDataSource,fIncludePassword,ppwszInitString)
  397. #define IDataInitialize_CreateDBInstance(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,riid,ppDataSource) \
  398. (This)->lpVtbl -> CreateDBInstance(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,riid,ppDataSource)
  399. #define IDataInitialize_CreateDBInstanceEx(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,pServerInfo,cmq,rgmqResults) \
  400. (This)->lpVtbl -> CreateDBInstanceEx(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,pServerInfo,cmq,rgmqResults)
  401. #define IDataInitialize_LoadStringFromStorage(This,pwszFileName,ppwszInitializationString) \
  402. (This)->lpVtbl -> LoadStringFromStorage(This,pwszFileName,ppwszInitializationString)
  403. #define IDataInitialize_WriteStringToStorage(This,pwszFileName,pwszInitializationString,dwCreationDisposition) \
  404. (This)->lpVtbl -> WriteStringToStorage(This,pwszFileName,pwszInitializationString,dwCreationDisposition)
  405. #endif /* COBJMACROS */
  406. #endif /* C style interface */
  407. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_GetDataSource_Proxy(
  408. IDataInitialize * This,
  409. /* [in] */ IUnknown *pUnkOuter,
  410. /* [in] */ DWORD dwClsCtx,
  411. /* [unique][in] */ LPCOLESTR pwszInitializationString,
  412. /* [in] */ REFIID riid,
  413. /* [iid_is][out][in] */ IUnknown **ppDataSource);
  414. void __RPC_STUB IDataInitialize_GetDataSource_Stub(
  415. IRpcStubBuffer *This,
  416. IRpcChannelBuffer *_pRpcChannelBuffer,
  417. PRPC_MESSAGE _pRpcMessage,
  418. DWORD *_pdwStubPhase);
  419. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_GetInitializationString_Proxy(
  420. IDataInitialize * This,
  421. /* [in] */ IUnknown *pDataSource,
  422. /* [in] */ boolean fIncludePassword,
  423. /* [out] */ LPOLESTR *ppwszInitString);
  424. void __RPC_STUB IDataInitialize_GetInitializationString_Stub(
  425. IRpcStubBuffer *This,
  426. IRpcChannelBuffer *_pRpcChannelBuffer,
  427. PRPC_MESSAGE _pRpcMessage,
  428. DWORD *_pdwStubPhase);
  429. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_CreateDBInstance_Proxy(
  430. IDataInitialize * This,
  431. /* [in] */ REFCLSID clsidProvider,
  432. /* [in] */ IUnknown *pUnkOuter,
  433. /* [in] */ DWORD dwClsCtx,
  434. /* [unique][in] */ LPOLESTR pwszReserved,
  435. /* [in] */ REFIID riid,
  436. /* [iid_is][out] */ IUnknown **ppDataSource);
  437. void __RPC_STUB IDataInitialize_CreateDBInstance_Stub(
  438. IRpcStubBuffer *This,
  439. IRpcChannelBuffer *_pRpcChannelBuffer,
  440. PRPC_MESSAGE _pRpcMessage,
  441. DWORD *_pdwStubPhase);
  442. /* [call_as] */ HRESULT STDMETHODCALLTYPE IDataInitialize_RemoteCreateDBInstanceEx_Proxy(
  443. IDataInitialize * This,
  444. /* [in] */ REFCLSID clsidProvider,
  445. /* [in] */ IUnknown *pUnkOuter,
  446. /* [in] */ DWORD dwClsCtx,
  447. /* [unique][in] */ LPOLESTR pwszReserved,
  448. /* [unique][in] */ COSERVERINFO *pServerInfo,
  449. /* [in] */ ULONG cmq,
  450. /* [size_is][size_is][in] */ const IID **rgpIID,
  451. /* [size_is][size_is][out] */ IUnknown **rgpItf,
  452. /* [size_is][out] */ HRESULT *rghr);
  453. void __RPC_STUB IDataInitialize_RemoteCreateDBInstanceEx_Stub(
  454. IRpcStubBuffer *This,
  455. IRpcChannelBuffer *_pRpcChannelBuffer,
  456. PRPC_MESSAGE _pRpcMessage,
  457. DWORD *_pdwStubPhase);
  458. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_LoadStringFromStorage_Proxy(
  459. IDataInitialize * This,
  460. /* [unique][in] */ LPCOLESTR pwszFileName,
  461. /* [out] */ LPOLESTR *ppwszInitializationString);
  462. void __RPC_STUB IDataInitialize_LoadStringFromStorage_Stub(
  463. IRpcStubBuffer *This,
  464. IRpcChannelBuffer *_pRpcChannelBuffer,
  465. PRPC_MESSAGE _pRpcMessage,
  466. DWORD *_pdwStubPhase);
  467. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_WriteStringToStorage_Proxy(
  468. IDataInitialize * This,
  469. /* [unique][in] */ LPCOLESTR pwszFileName,
  470. /* [unique][in] */ LPCOLESTR pwszInitializationString,
  471. /* [in] */ DWORD dwCreationDisposition);
  472. void __RPC_STUB IDataInitialize_WriteStringToStorage_Stub(
  473. IRpcStubBuffer *This,
  474. IRpcChannelBuffer *_pRpcChannelBuffer,
  475. PRPC_MESSAGE _pRpcMessage,
  476. DWORD *_pdwStubPhase);
  477. #endif /* __IDataInitialize_INTERFACE_DEFINED__ */
  478. #ifndef __MSDASC_LIBRARY_DEFINED__
  479. #define __MSDASC_LIBRARY_DEFINED__
  480. /* library MSDASC */
  481. /* [helpstring][version][uuid] */
  482. EXTERN_C const IID LIBID_MSDASC;
  483. #ifndef __IDataSourceLocator_INTERFACE_DEFINED__
  484. #define __IDataSourceLocator_INTERFACE_DEFINED__
  485. /* interface IDataSourceLocator */
  486. /* [unique][helpstring][dual][uuid][object] */
  487. EXTERN_C const IID IID_IDataSourceLocator;
  488. #if defined(__cplusplus) && !defined(CINTERFACE)
  489. MIDL_INTERFACE("2206CCB2-19C1-11D1-89E0-00C04FD7A829")
  490. IDataSourceLocator : public IDispatch
  491. {
  492. public:
  493. virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_hWnd(
  494. /* [retval][out] */ COMPATIBLE_LONG *phwndParent) = 0;
  495. virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_hWnd(
  496. /* [in] */ COMPATIBLE_LONG hwndParent) = 0;
  497. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PromptNew(
  498. /* [retval][out] */ IDispatch **ppADOConnection) = 0;
  499. virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PromptEdit(
  500. /* [out][in] */ IDispatch **ppADOConnection,
  501. /* [retval][out] */ VARIANT_BOOL *pbSuccess) = 0;
  502. };
  503. #else /* C style interface */
  504. typedef struct IDataSourceLocatorVtbl
  505. {
  506. BEGIN_INTERFACE
  507. HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
  508. IDataSourceLocator * This,
  509. /* [in] */ REFIID riid,
  510. /* [iid_is][out] */ void **ppvObject);
  511. ULONG ( STDMETHODCALLTYPE *AddRef )(
  512. IDataSourceLocator * This);
  513. ULONG ( STDMETHODCALLTYPE *Release )(
  514. IDataSourceLocator * This);
  515. HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )(
  516. IDataSourceLocator * This,
  517. /* [out] */ UINT *pctinfo);
  518. HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )(
  519. IDataSourceLocator * This,
  520. /* [in] */ UINT iTInfo,
  521. /* [in] */ LCID lcid,
  522. /* [out] */ ITypeInfo **ppTInfo);
  523. HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )(
  524. IDataSourceLocator * This,
  525. /* [in] */ REFIID riid,
  526. /* [size_is][in] */ LPOLESTR *rgszNames,
  527. /* [in] */ UINT cNames,
  528. /* [in] */ LCID lcid,
  529. /* [size_is][out] */ DISPID *rgDispId);
  530. /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )(
  531. IDataSourceLocator * This,
  532. /* [in] */ DISPID dispIdMember,
  533. /* [in] */ REFIID riid,
  534. /* [in] */ LCID lcid,
  535. /* [in] */ WORD wFlags,
  536. /* [out][in] */ DISPPARAMS *pDispParams,
  537. /* [out] */ VARIANT *pVarResult,
  538. /* [out] */ EXCEPINFO *pExcepInfo,
  539. /* [out] */ UINT *puArgErr);
  540. /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_hWnd )(
  541. IDataSourceLocator * This,
  542. /* [retval][out] */ COMPATIBLE_LONG *phwndParent);
  543. /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_hWnd )(
  544. IDataSourceLocator * This,
  545. /* [in] */ COMPATIBLE_LONG hwndParent);
  546. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *PromptNew )(
  547. IDataSourceLocator * This,
  548. /* [retval][out] */ IDispatch **ppADOConnection);
  549. /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *PromptEdit )(
  550. IDataSourceLocator * This,
  551. /* [out][in] */ IDispatch **ppADOConnection,
  552. /* [retval][out] */ VARIANT_BOOL *pbSuccess);
  553. END_INTERFACE
  554. } IDataSourceLocatorVtbl;
  555. interface IDataSourceLocator
  556. {
  557. CONST_VTBL struct IDataSourceLocatorVtbl *lpVtbl;
  558. };
  559. #ifdef COBJMACROS
  560. #define IDataSourceLocator_QueryInterface(This,riid,ppvObject) \
  561. (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  562. #define IDataSourceLocator_AddRef(This) \
  563. (This)->lpVtbl -> AddRef(This)
  564. #define IDataSourceLocator_Release(This) \
  565. (This)->lpVtbl -> Release(This)
  566. #define IDataSourceLocator_GetTypeInfoCount(This,pctinfo) \
  567. (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  568. #define IDataSourceLocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \
  569. (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  570. #define IDataSourceLocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \
  571. (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  572. #define IDataSourceLocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \
  573. (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  574. #define IDataSourceLocator_get_hWnd(This,phwndParent) \
  575. (This)->lpVtbl -> get_hWnd(This,phwndParent)
  576. #define IDataSourceLocator_put_hWnd(This,hwndParent) \
  577. (This)->lpVtbl -> put_hWnd(This,hwndParent)
  578. #define IDataSourceLocator_PromptNew(This,ppADOConnection) \
  579. (This)->lpVtbl -> PromptNew(This,ppADOConnection)
  580. #define IDataSourceLocator_PromptEdit(This,ppADOConnection,pbSuccess) \
  581. (This)->lpVtbl -> PromptEdit(This,ppADOConnection,pbSuccess)
  582. #endif /* COBJMACROS */
  583. #endif /* C style interface */
  584. /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_get_hWnd_Proxy(
  585. IDataSourceLocator * This,
  586. /* [retval][out] */ COMPATIBLE_LONG *phwndParent);
  587. void __RPC_STUB IDataSourceLocator_get_hWnd_Stub(
  588. IRpcStubBuffer *This,
  589. IRpcChannelBuffer *_pRpcChannelBuffer,
  590. PRPC_MESSAGE _pRpcMessage,
  591. DWORD *_pdwStubPhase);
  592. /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_put_hWnd_Proxy(
  593. IDataSourceLocator * This,
  594. /* [in] */ COMPATIBLE_LONG hwndParent);
  595. void __RPC_STUB IDataSourceLocator_put_hWnd_Stub(
  596. IRpcStubBuffer *This,
  597. IRpcChannelBuffer *_pRpcChannelBuffer,
  598. PRPC_MESSAGE _pRpcMessage,
  599. DWORD *_pdwStubPhase);
  600. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_PromptNew_Proxy(
  601. IDataSourceLocator * This,
  602. /* [retval][out] */ IDispatch **ppADOConnection);
  603. void __RPC_STUB IDataSourceLocator_PromptNew_Stub(
  604. IRpcStubBuffer *This,
  605. IRpcChannelBuffer *_pRpcChannelBuffer,
  606. PRPC_MESSAGE _pRpcMessage,
  607. DWORD *_pdwStubPhase);
  608. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_PromptEdit_Proxy(
  609. IDataSourceLocator * This,
  610. /* [out][in] */ IDispatch **ppADOConnection,
  611. /* [retval][out] */ VARIANT_BOOL *pbSuccess);
  612. void __RPC_STUB IDataSourceLocator_PromptEdit_Stub(
  613. IRpcStubBuffer *This,
  614. IRpcChannelBuffer *_pRpcChannelBuffer,
  615. PRPC_MESSAGE _pRpcMessage,
  616. DWORD *_pdwStubPhase);
  617. #endif /* __IDataSourceLocator_INTERFACE_DEFINED__ */
  618. EXTERN_C const CLSID CLSID_DataLinks;
  619. #ifdef __cplusplus
  620. class DECLSPEC_UUID("2206CDB2-19C1-11D1-89E0-00C04FD7A829")
  621. DataLinks;
  622. #endif
  623. EXTERN_C const CLSID CLSID_MSDAINITIALIZE;
  624. #ifdef __cplusplus
  625. class DECLSPEC_UUID("2206CDB0-19C1-11D1-89E0-00C04FD7A829")
  626. MSDAINITIALIZE;
  627. #endif
  628. EXTERN_C const CLSID CLSID_PDPO;
  629. #ifdef __cplusplus
  630. class DECLSPEC_UUID("CCB4EC60-B9DC-11D1-AC80-00A0C9034873")
  631. PDPO;
  632. #endif
  633. EXTERN_C const CLSID CLSID_RootBinder;
  634. #ifdef __cplusplus
  635. class DECLSPEC_UUID("FF151822-B0BF-11D1-A80D-000000000000")
  636. RootBinder;
  637. #endif
  638. #endif /* __MSDASC_LIBRARY_DEFINED__ */
  639. /* Additional Prototypes for ALL interfaces */
  640. /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_CreateDBInstanceEx_Proxy(
  641. IDataInitialize * This,
  642. /* [in] */ REFCLSID clsidProvider,
  643. /* [in] */ IUnknown *pUnkOuter,
  644. /* [in] */ DWORD dwClsCtx,
  645. /* [unique][in] */ LPOLESTR pwszReserved,
  646. /* [unique][in] */ COSERVERINFO *pServerInfo,
  647. /* [in] */ ULONG cmq,
  648. /* [size_is][out][in] */ MULTI_QI *rgmqResults);
  649. /* [call_as] */ HRESULT STDMETHODCALLTYPE IDataInitialize_CreateDBInstanceEx_Stub(
  650. IDataInitialize * This,
  651. /* [in] */ REFCLSID clsidProvider,
  652. /* [in] */ IUnknown *pUnkOuter,
  653. /* [in] */ DWORD dwClsCtx,
  654. /* [unique][in] */ LPOLESTR pwszReserved,
  655. /* [unique][in] */ COSERVERINFO *pServerInfo,
  656. /* [in] */ ULONG cmq,
  657. /* [size_is][size_is][in] */ const IID **rgpIID,
  658. /* [size_is][size_is][out] */ IUnknown **rgpItf,
  659. /* [size_is][out] */ HRESULT *rghr);
  660. /* end of Additional Prototypes */
  661. #ifdef __cplusplus
  662. }
  663. #endif
  664. #endif