MSDasc.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:30k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #pragma warning( disable: 4049 )  /* more than 64k source lines */
  2. /* this ALWAYS GENERATED file contains the definitions for the interfaces */
  3.  /* File created by MIDL compiler version 6.00.0347 */
  4. /* Compiler settings for msdasc.idl:
  5.     Oicf, W1, Zp8, env=Win32 (32b run)
  6.     protocol : dce , ms_ext, c_ext
  7.     error checks: allocation ref bounds_check enum stub_data 
  8.     VC __declspec() decoration level: 
  9.          __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  10.          DECLSPEC_UUID(), MIDL_INTERFACE()
  11. */
  12. //@@MIDL_FILE_HEADING(  )
  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__ 440
  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.     
  124.     MIDL_INTERFACE("06210E88-01F5-11D1-B512-0080C781C384")
  125.     IService : public IUnknown
  126.     {
  127.     public:
  128.         virtual /* [local] */ HRESULT STDMETHODCALLTYPE InvokeService( 
  129.             /* [in] */ IUnknown *pUnkInner) = 0;
  130.         
  131.     };
  132.     
  133. #else  /* C style interface */
  134.     typedef struct IServiceVtbl
  135.     {
  136.         BEGIN_INTERFACE
  137.         
  138.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  139.             IService * This,
  140.             /* [in] */ REFIID riid,
  141.             /* [iid_is][out] */ void **ppvObject);
  142.         
  143.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  144.             IService * This);
  145.         
  146.         ULONG ( STDMETHODCALLTYPE *Release )( 
  147.             IService * This);
  148.         
  149.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *InvokeService )( 
  150.             IService * This,
  151.             /* [in] */ IUnknown *pUnkInner);
  152.         
  153.         END_INTERFACE
  154.     } IServiceVtbl;
  155.     interface IService
  156.     {
  157.         CONST_VTBL struct IServiceVtbl *lpVtbl;
  158.     };
  159.     
  160. #ifdef COBJMACROS
  161. #define IService_QueryInterface(This,riid,ppvObject)
  162.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  163. #define IService_AddRef(This)
  164.     (This)->lpVtbl -> AddRef(This)
  165. #define IService_Release(This)
  166.     (This)->lpVtbl -> Release(This)
  167. #define IService_InvokeService(This,pUnkInner)
  168.     (This)->lpVtbl -> InvokeService(This,pUnkInner)
  169. #endif /* COBJMACROS */
  170. #endif  /* C style interface */
  171. /* [local] */ HRESULT STDMETHODCALLTYPE IService_InvokeService_Proxy( 
  172.     IService * This,
  173.     /* [in] */ IUnknown *pUnkInner);
  174. void __RPC_STUB IService_InvokeService_Stub(
  175.     IRpcStubBuffer *This,
  176.     IRpcChannelBuffer *_pRpcChannelBuffer,
  177.     PRPC_MESSAGE _pRpcMessage,
  178.     DWORD *_pdwStubPhase);
  179. #endif  /* __IService_INTERFACE_DEFINED__ */
  180. /* interface __MIDL_itf_msdasc_0353 */
  181. /* [local] */ 
  182. typedef DWORD DBPROMPTOPTIONS;
  183. typedef 
  184. enum tagDBPROMPTOPTIONSENUM
  185.     { DBPROMPTOPTIONS_NONE = 0,
  186. DBPROMPTOPTIONS_WIZARDSHEET = 0x1,
  187. DBPROMPTOPTIONS_PROPERTYSHEET = 0x2,
  188. DBPROMPTOPTIONS_BROWSEONLY = 0x8,
  189. DBPROMPTOPTIONS_DISABLE_PROVIDER_SELECTION = 0x10,
  190. DBPROMPTOPTIONS_DISABLESAVEPASSWORD = 0x20
  191.     }  DBPROMPTOPTIONSENUM;
  192. extern RPC_IF_HANDLE __MIDL_itf_msdasc_0353_v0_0_c_ifspec;
  193. extern RPC_IF_HANDLE __MIDL_itf_msdasc_0353_v0_0_s_ifspec;
  194. #ifndef __IDBPromptInitialize_INTERFACE_DEFINED__
  195. #define __IDBPromptInitialize_INTERFACE_DEFINED__
  196. /* interface IDBPromptInitialize */
  197. /* [restricted][local][unique][helpstring][uuid][object] */ 
  198. EXTERN_C const IID IID_IDBPromptInitialize;
  199. #if defined(__cplusplus) && !defined(CINTERFACE)
  200.     
  201.     MIDL_INTERFACE("2206CCB0-19C1-11D1-89E0-00C04FD7A829")
  202.     IDBPromptInitialize : public IUnknown
  203.     {
  204.     public:
  205.         virtual /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE PromptDataSource( 
  206.             /* [in] */ IUnknown *pUnkOuter,
  207.             /* [in] */ HWND hWndParent,
  208.             /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  209.             /* [in] */ ULONG cSourceTypeFilter,
  210.             /* [size_is][in] */ DBSOURCETYPE *rgSourceTypeFilter,
  211.             /* [in] */ LPCOLESTR pwszszzProviderFilter,
  212.             /* [in] */ REFIID riid,
  213.             /* [iid_is][out][in] */ IUnknown **ppDataSource) = 0;
  214.         
  215.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PromptFileName( 
  216.             /* [in] */ HWND hWndParent,
  217.             /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  218.             /* [in] */ LPCOLESTR pwszInitialDirectory,
  219.             /* [in] */ LPCOLESTR pwszInitialFile,
  220.             /* [out] */ LPOLESTR *ppwszSelectedFile) = 0;
  221.         
  222.     };
  223.     
  224. #else  /* C style interface */
  225.     typedef struct IDBPromptInitializeVtbl
  226.     {
  227.         BEGIN_INTERFACE
  228.         
  229.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  230.             IDBPromptInitialize * This,
  231.             /* [in] */ REFIID riid,
  232.             /* [iid_is][out] */ void **ppvObject);
  233.         
  234.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  235.             IDBPromptInitialize * This);
  236.         
  237.         ULONG ( STDMETHODCALLTYPE *Release )( 
  238.             IDBPromptInitialize * This);
  239.         
  240.         /* [local][helpstring] */ HRESULT ( STDMETHODCALLTYPE *PromptDataSource )( 
  241.             IDBPromptInitialize * This,
  242.             /* [in] */ IUnknown *pUnkOuter,
  243.             /* [in] */ HWND hWndParent,
  244.             /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  245.             /* [in] */ ULONG cSourceTypeFilter,
  246.             /* [size_is][in] */ DBSOURCETYPE *rgSourceTypeFilter,
  247.             /* [in] */ LPCOLESTR pwszszzProviderFilter,
  248.             /* [in] */ REFIID riid,
  249.             /* [iid_is][out][in] */ IUnknown **ppDataSource);
  250.         
  251.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *PromptFileName )( 
  252.             IDBPromptInitialize * This,
  253.             /* [in] */ HWND hWndParent,
  254.             /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  255.             /* [in] */ LPCOLESTR pwszInitialDirectory,
  256.             /* [in] */ LPCOLESTR pwszInitialFile,
  257.             /* [out] */ LPOLESTR *ppwszSelectedFile);
  258.         
  259.         END_INTERFACE
  260.     } IDBPromptInitializeVtbl;
  261.     interface IDBPromptInitialize
  262.     {
  263.         CONST_VTBL struct IDBPromptInitializeVtbl *lpVtbl;
  264.     };
  265.     
  266. #ifdef COBJMACROS
  267. #define IDBPromptInitialize_QueryInterface(This,riid,ppvObject)
  268.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  269. #define IDBPromptInitialize_AddRef(This)
  270.     (This)->lpVtbl -> AddRef(This)
  271. #define IDBPromptInitialize_Release(This)
  272.     (This)->lpVtbl -> Release(This)
  273. #define IDBPromptInitialize_PromptDataSource(This,pUnkOuter,hWndParent,dwPromptOptions,cSourceTypeFilter,rgSourceTypeFilter,pwszszzProviderFilter,riid,ppDataSource)
  274.     (This)->lpVtbl -> PromptDataSource(This,pUnkOuter,hWndParent,dwPromptOptions,cSourceTypeFilter,rgSourceTypeFilter,pwszszzProviderFilter,riid,ppDataSource)
  275. #define IDBPromptInitialize_PromptFileName(This,hWndParent,dwPromptOptions,pwszInitialDirectory,pwszInitialFile,ppwszSelectedFile)
  276.     (This)->lpVtbl -> PromptFileName(This,hWndParent,dwPromptOptions,pwszInitialDirectory,pwszInitialFile,ppwszSelectedFile)
  277. #endif /* COBJMACROS */
  278. #endif  /* C style interface */
  279. /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE IDBPromptInitialize_PromptDataSource_Proxy( 
  280.     IDBPromptInitialize * This,
  281.     /* [in] */ IUnknown *pUnkOuter,
  282.     /* [in] */ HWND hWndParent,
  283.     /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  284.     /* [in] */ ULONG cSourceTypeFilter,
  285.     /* [size_is][in] */ DBSOURCETYPE *rgSourceTypeFilter,
  286.     /* [in] */ LPCOLESTR pwszszzProviderFilter,
  287.     /* [in] */ REFIID riid,
  288.     /* [iid_is][out][in] */ IUnknown **ppDataSource);
  289. void __RPC_STUB IDBPromptInitialize_PromptDataSource_Stub(
  290.     IRpcStubBuffer *This,
  291.     IRpcChannelBuffer *_pRpcChannelBuffer,
  292.     PRPC_MESSAGE _pRpcMessage,
  293.     DWORD *_pdwStubPhase);
  294. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDBPromptInitialize_PromptFileName_Proxy( 
  295.     IDBPromptInitialize * This,
  296.     /* [in] */ HWND hWndParent,
  297.     /* [in] */ DBPROMPTOPTIONS dwPromptOptions,
  298.     /* [in] */ LPCOLESTR pwszInitialDirectory,
  299.     /* [in] */ LPCOLESTR pwszInitialFile,
  300.     /* [out] */ LPOLESTR *ppwszSelectedFile);
  301. void __RPC_STUB IDBPromptInitialize_PromptFileName_Stub(
  302.     IRpcStubBuffer *This,
  303.     IRpcChannelBuffer *_pRpcChannelBuffer,
  304.     PRPC_MESSAGE _pRpcMessage,
  305.     DWORD *_pdwStubPhase);
  306. #endif  /* __IDBPromptInitialize_INTERFACE_DEFINED__ */
  307. #ifndef __IDataInitialize_INTERFACE_DEFINED__
  308. #define __IDataInitialize_INTERFACE_DEFINED__
  309. /* interface IDataInitialize */
  310. /* [unique][helpstring][uuid][object] */ 
  311. EXTERN_C const IID IID_IDataInitialize;
  312. #if defined(__cplusplus) && !defined(CINTERFACE)
  313.     
  314.     MIDL_INTERFACE("2206CCB1-19C1-11D1-89E0-00C04FD7A829")
  315.     IDataInitialize : public IUnknown
  316.     {
  317.     public:
  318.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetDataSource( 
  319.             /* [in] */ IUnknown *pUnkOuter,
  320.             /* [in] */ DWORD dwClsCtx,
  321.             /* [unique][in] */ LPCOLESTR pwszInitializationString,
  322.             /* [in] */ REFIID riid,
  323.             /* [iid_is][out][in] */ IUnknown **ppDataSource) = 0;
  324.         
  325.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE GetInitializationString( 
  326.             /* [in] */ IUnknown *pDataSource,
  327.             /* [in] */ boolean fIncludePassword,
  328.             /* [out] */ LPOLESTR *ppwszInitString) = 0;
  329.         
  330.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE CreateDBInstance( 
  331.             /* [in] */ REFCLSID clsidProvider,
  332.             /* [in] */ IUnknown *pUnkOuter,
  333.             /* [in] */ DWORD dwClsCtx,
  334.             /* [unique][in] */ LPOLESTR pwszReserved,
  335.             /* [in] */ REFIID riid,
  336.             /* [iid_is][out] */ IUnknown **ppDataSource) = 0;
  337.         
  338.         virtual /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE CreateDBInstanceEx( 
  339.             /* [in] */ REFCLSID clsidProvider,
  340.             /* [in] */ IUnknown *pUnkOuter,
  341.             /* [in] */ DWORD dwClsCtx,
  342.             /* [unique][in] */ LPOLESTR pwszReserved,
  343.             /* [unique][in] */ COSERVERINFO *pServerInfo,
  344.             /* [in] */ ULONG cmq,
  345.             /* [size_is][out][in] */ MULTI_QI *rgmqResults) = 0;
  346.         
  347.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE LoadStringFromStorage( 
  348.             /* [unique][in] */ LPCOLESTR pwszFileName,
  349.             /* [out] */ LPOLESTR *ppwszInitializationString) = 0;
  350.         
  351.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE WriteStringToStorage( 
  352.             /* [unique][in] */ LPCOLESTR pwszFileName,
  353.             /* [unique][in] */ LPCOLESTR pwszInitializationString,
  354.             /* [in] */ DWORD dwCreationDisposition) = 0;
  355.         
  356.     };
  357.     
  358. #else  /* C style interface */
  359.     typedef struct IDataInitializeVtbl
  360.     {
  361.         BEGIN_INTERFACE
  362.         
  363.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  364.             IDataInitialize * This,
  365.             /* [in] */ REFIID riid,
  366.             /* [iid_is][out] */ void **ppvObject);
  367.         
  368.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  369.             IDataInitialize * This);
  370.         
  371.         ULONG ( STDMETHODCALLTYPE *Release )( 
  372.             IDataInitialize * This);
  373.         
  374.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetDataSource )( 
  375.             IDataInitialize * This,
  376.             /* [in] */ IUnknown *pUnkOuter,
  377.             /* [in] */ DWORD dwClsCtx,
  378.             /* [unique][in] */ LPCOLESTR pwszInitializationString,
  379.             /* [in] */ REFIID riid,
  380.             /* [iid_is][out][in] */ IUnknown **ppDataSource);
  381.         
  382.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *GetInitializationString )( 
  383.             IDataInitialize * This,
  384.             /* [in] */ IUnknown *pDataSource,
  385.             /* [in] */ boolean fIncludePassword,
  386.             /* [out] */ LPOLESTR *ppwszInitString);
  387.         
  388.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateDBInstance )( 
  389.             IDataInitialize * This,
  390.             /* [in] */ REFCLSID clsidProvider,
  391.             /* [in] */ IUnknown *pUnkOuter,
  392.             /* [in] */ DWORD dwClsCtx,
  393.             /* [unique][in] */ LPOLESTR pwszReserved,
  394.             /* [in] */ REFIID riid,
  395.             /* [iid_is][out] */ IUnknown **ppDataSource);
  396.         
  397.         /* [local][helpstring] */ HRESULT ( STDMETHODCALLTYPE *CreateDBInstanceEx )( 
  398.             IDataInitialize * This,
  399.             /* [in] */ REFCLSID clsidProvider,
  400.             /* [in] */ IUnknown *pUnkOuter,
  401.             /* [in] */ DWORD dwClsCtx,
  402.             /* [unique][in] */ LPOLESTR pwszReserved,
  403.             /* [unique][in] */ COSERVERINFO *pServerInfo,
  404.             /* [in] */ ULONG cmq,
  405.             /* [size_is][out][in] */ MULTI_QI *rgmqResults);
  406.         
  407.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *LoadStringFromStorage )( 
  408.             IDataInitialize * This,
  409.             /* [unique][in] */ LPCOLESTR pwszFileName,
  410.             /* [out] */ LPOLESTR *ppwszInitializationString);
  411.         
  412.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *WriteStringToStorage )( 
  413.             IDataInitialize * This,
  414.             /* [unique][in] */ LPCOLESTR pwszFileName,
  415.             /* [unique][in] */ LPCOLESTR pwszInitializationString,
  416.             /* [in] */ DWORD dwCreationDisposition);
  417.         
  418.         END_INTERFACE
  419.     } IDataInitializeVtbl;
  420.     interface IDataInitialize
  421.     {
  422.         CONST_VTBL struct IDataInitializeVtbl *lpVtbl;
  423.     };
  424.     
  425. #ifdef COBJMACROS
  426. #define IDataInitialize_QueryInterface(This,riid,ppvObject)
  427.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  428. #define IDataInitialize_AddRef(This)
  429.     (This)->lpVtbl -> AddRef(This)
  430. #define IDataInitialize_Release(This)
  431.     (This)->lpVtbl -> Release(This)
  432. #define IDataInitialize_GetDataSource(This,pUnkOuter,dwClsCtx,pwszInitializationString,riid,ppDataSource)
  433.     (This)->lpVtbl -> GetDataSource(This,pUnkOuter,dwClsCtx,pwszInitializationString,riid,ppDataSource)
  434. #define IDataInitialize_GetInitializationString(This,pDataSource,fIncludePassword,ppwszInitString)
  435.     (This)->lpVtbl -> GetInitializationString(This,pDataSource,fIncludePassword,ppwszInitString)
  436. #define IDataInitialize_CreateDBInstance(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,riid,ppDataSource)
  437.     (This)->lpVtbl -> CreateDBInstance(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,riid,ppDataSource)
  438. #define IDataInitialize_CreateDBInstanceEx(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,pServerInfo,cmq,rgmqResults)
  439.     (This)->lpVtbl -> CreateDBInstanceEx(This,clsidProvider,pUnkOuter,dwClsCtx,pwszReserved,pServerInfo,cmq,rgmqResults)
  440. #define IDataInitialize_LoadStringFromStorage(This,pwszFileName,ppwszInitializationString)
  441.     (This)->lpVtbl -> LoadStringFromStorage(This,pwszFileName,ppwszInitializationString)
  442. #define IDataInitialize_WriteStringToStorage(This,pwszFileName,pwszInitializationString,dwCreationDisposition)
  443.     (This)->lpVtbl -> WriteStringToStorage(This,pwszFileName,pwszInitializationString,dwCreationDisposition)
  444. #endif /* COBJMACROS */
  445. #endif  /* C style interface */
  446. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_GetDataSource_Proxy( 
  447.     IDataInitialize * This,
  448.     /* [in] */ IUnknown *pUnkOuter,
  449.     /* [in] */ DWORD dwClsCtx,
  450.     /* [unique][in] */ LPCOLESTR pwszInitializationString,
  451.     /* [in] */ REFIID riid,
  452.     /* [iid_is][out][in] */ IUnknown **ppDataSource);
  453. void __RPC_STUB IDataInitialize_GetDataSource_Stub(
  454.     IRpcStubBuffer *This,
  455.     IRpcChannelBuffer *_pRpcChannelBuffer,
  456.     PRPC_MESSAGE _pRpcMessage,
  457.     DWORD *_pdwStubPhase);
  458. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_GetInitializationString_Proxy( 
  459.     IDataInitialize * This,
  460.     /* [in] */ IUnknown *pDataSource,
  461.     /* [in] */ boolean fIncludePassword,
  462.     /* [out] */ LPOLESTR *ppwszInitString);
  463. void __RPC_STUB IDataInitialize_GetInitializationString_Stub(
  464.     IRpcStubBuffer *This,
  465.     IRpcChannelBuffer *_pRpcChannelBuffer,
  466.     PRPC_MESSAGE _pRpcMessage,
  467.     DWORD *_pdwStubPhase);
  468. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_CreateDBInstance_Proxy( 
  469.     IDataInitialize * This,
  470.     /* [in] */ REFCLSID clsidProvider,
  471.     /* [in] */ IUnknown *pUnkOuter,
  472.     /* [in] */ DWORD dwClsCtx,
  473.     /* [unique][in] */ LPOLESTR pwszReserved,
  474.     /* [in] */ REFIID riid,
  475.     /* [iid_is][out] */ IUnknown **ppDataSource);
  476. void __RPC_STUB IDataInitialize_CreateDBInstance_Stub(
  477.     IRpcStubBuffer *This,
  478.     IRpcChannelBuffer *_pRpcChannelBuffer,
  479.     PRPC_MESSAGE _pRpcMessage,
  480.     DWORD *_pdwStubPhase);
  481. /* [call_as] */ HRESULT STDMETHODCALLTYPE IDataInitialize_RemoteCreateDBInstanceEx_Proxy( 
  482.     IDataInitialize * This,
  483.     /* [in] */ REFCLSID clsidProvider,
  484.     /* [in] */ IUnknown *pUnkOuter,
  485.     /* [in] */ DWORD dwClsCtx,
  486.     /* [unique][in] */ LPOLESTR pwszReserved,
  487.     /* [unique][in] */ COSERVERINFO *pServerInfo,
  488.     /* [in] */ ULONG cmq,
  489.     /* [size_is][size_is][in] */ const IID **rgpIID,
  490.     /* [size_is][size_is][out] */ IUnknown **rgpItf,
  491.     /* [size_is][out] */ HRESULT *rghr);
  492. void __RPC_STUB IDataInitialize_RemoteCreateDBInstanceEx_Stub(
  493.     IRpcStubBuffer *This,
  494.     IRpcChannelBuffer *_pRpcChannelBuffer,
  495.     PRPC_MESSAGE _pRpcMessage,
  496.     DWORD *_pdwStubPhase);
  497. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_LoadStringFromStorage_Proxy( 
  498.     IDataInitialize * This,
  499.     /* [unique][in] */ LPCOLESTR pwszFileName,
  500.     /* [out] */ LPOLESTR *ppwszInitializationString);
  501. void __RPC_STUB IDataInitialize_LoadStringFromStorage_Stub(
  502.     IRpcStubBuffer *This,
  503.     IRpcChannelBuffer *_pRpcChannelBuffer,
  504.     PRPC_MESSAGE _pRpcMessage,
  505.     DWORD *_pdwStubPhase);
  506. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_WriteStringToStorage_Proxy( 
  507.     IDataInitialize * This,
  508.     /* [unique][in] */ LPCOLESTR pwszFileName,
  509.     /* [unique][in] */ LPCOLESTR pwszInitializationString,
  510.     /* [in] */ DWORD dwCreationDisposition);
  511. void __RPC_STUB IDataInitialize_WriteStringToStorage_Stub(
  512.     IRpcStubBuffer *This,
  513.     IRpcChannelBuffer *_pRpcChannelBuffer,
  514.     PRPC_MESSAGE _pRpcMessage,
  515.     DWORD *_pdwStubPhase);
  516. #endif  /* __IDataInitialize_INTERFACE_DEFINED__ */
  517. #ifndef __MSDASC_LIBRARY_DEFINED__
  518. #define __MSDASC_LIBRARY_DEFINED__
  519. /* library MSDASC */
  520. /* [helpstring][version][uuid] */ 
  521. EXTERN_C const IID LIBID_MSDASC;
  522. #ifndef __IDataSourceLocator_INTERFACE_DEFINED__
  523. #define __IDataSourceLocator_INTERFACE_DEFINED__
  524. /* interface IDataSourceLocator */
  525. /* [unique][helpstring][dual][uuid][object] */ 
  526. EXTERN_C const IID IID_IDataSourceLocator;
  527. #if defined(__cplusplus) && !defined(CINTERFACE)
  528.     
  529.     MIDL_INTERFACE("2206CCB2-19C1-11D1-89E0-00C04FD7A829")
  530.     IDataSourceLocator : public IDispatch
  531.     {
  532.     public:
  533.         virtual /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE get_hWnd( 
  534.             /* [retval][out] */ COMPATIBLE_LONG *phwndParent) = 0;
  535.         
  536.         virtual /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE put_hWnd( 
  537.             /* [in] */ COMPATIBLE_LONG hwndParent) = 0;
  538.         
  539.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PromptNew( 
  540.             /* [retval][out] */ IDispatch **ppADOConnection) = 0;
  541.         
  542.         virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE PromptEdit( 
  543.             /* [out][in] */ IDispatch **ppADOConnection,
  544.             /* [retval][out] */ VARIANT_BOOL *pbSuccess) = 0;
  545.         
  546.     };
  547.     
  548. #else  /* C style interface */
  549.     typedef struct IDataSourceLocatorVtbl
  550.     {
  551.         BEGIN_INTERFACE
  552.         
  553.         HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
  554.             IDataSourceLocator * This,
  555.             /* [in] */ REFIID riid,
  556.             /* [iid_is][out] */ void **ppvObject);
  557.         
  558.         ULONG ( STDMETHODCALLTYPE *AddRef )( 
  559.             IDataSourceLocator * This);
  560.         
  561.         ULONG ( STDMETHODCALLTYPE *Release )( 
  562.             IDataSourceLocator * This);
  563.         
  564.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
  565.             IDataSourceLocator * This,
  566.             /* [out] */ UINT *pctinfo);
  567.         
  568.         HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
  569.             IDataSourceLocator * This,
  570.             /* [in] */ UINT iTInfo,
  571.             /* [in] */ LCID lcid,
  572.             /* [out] */ ITypeInfo **ppTInfo);
  573.         
  574.         HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
  575.             IDataSourceLocator * This,
  576.             /* [in] */ REFIID riid,
  577.             /* [size_is][in] */ LPOLESTR *rgszNames,
  578.             /* [in] */ UINT cNames,
  579.             /* [in] */ LCID lcid,
  580.             /* [size_is][out] */ DISPID *rgDispId);
  581.         
  582.         /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
  583.             IDataSourceLocator * This,
  584.             /* [in] */ DISPID dispIdMember,
  585.             /* [in] */ REFIID riid,
  586.             /* [in] */ LCID lcid,
  587.             /* [in] */ WORD wFlags,
  588.             /* [out][in] */ DISPPARAMS *pDispParams,
  589.             /* [out] */ VARIANT *pVarResult,
  590.             /* [out] */ EXCEPINFO *pExcepInfo,
  591.             /* [out] */ UINT *puArgErr);
  592.         
  593.         /* [helpstring][propget] */ HRESULT ( STDMETHODCALLTYPE *get_hWnd )( 
  594.             IDataSourceLocator * This,
  595.             /* [retval][out] */ COMPATIBLE_LONG *phwndParent);
  596.         
  597.         /* [helpstring][propput] */ HRESULT ( STDMETHODCALLTYPE *put_hWnd )( 
  598.             IDataSourceLocator * This,
  599.             /* [in] */ COMPATIBLE_LONG hwndParent);
  600.         
  601.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *PromptNew )( 
  602.             IDataSourceLocator * This,
  603.             /* [retval][out] */ IDispatch **ppADOConnection);
  604.         
  605.         /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *PromptEdit )( 
  606.             IDataSourceLocator * This,
  607.             /* [out][in] */ IDispatch **ppADOConnection,
  608.             /* [retval][out] */ VARIANT_BOOL *pbSuccess);
  609.         
  610.         END_INTERFACE
  611.     } IDataSourceLocatorVtbl;
  612.     interface IDataSourceLocator
  613.     {
  614.         CONST_VTBL struct IDataSourceLocatorVtbl *lpVtbl;
  615.     };
  616.     
  617. #ifdef COBJMACROS
  618. #define IDataSourceLocator_QueryInterface(This,riid,ppvObject)
  619.     (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)
  620. #define IDataSourceLocator_AddRef(This)
  621.     (This)->lpVtbl -> AddRef(This)
  622. #define IDataSourceLocator_Release(This)
  623.     (This)->lpVtbl -> Release(This)
  624. #define IDataSourceLocator_GetTypeInfoCount(This,pctinfo)
  625.     (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo)
  626. #define IDataSourceLocator_GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  627.     (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  628. #define IDataSourceLocator_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  629.     (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  630. #define IDataSourceLocator_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  631.     (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  632. #define IDataSourceLocator_get_hWnd(This,phwndParent)
  633.     (This)->lpVtbl -> get_hWnd(This,phwndParent)
  634. #define IDataSourceLocator_put_hWnd(This,hwndParent)
  635.     (This)->lpVtbl -> put_hWnd(This,hwndParent)
  636. #define IDataSourceLocator_PromptNew(This,ppADOConnection)
  637.     (This)->lpVtbl -> PromptNew(This,ppADOConnection)
  638. #define IDataSourceLocator_PromptEdit(This,ppADOConnection,pbSuccess)
  639.     (This)->lpVtbl -> PromptEdit(This,ppADOConnection,pbSuccess)
  640. #endif /* COBJMACROS */
  641. #endif  /* C style interface */
  642. /* [helpstring][propget] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_get_hWnd_Proxy( 
  643.     IDataSourceLocator * This,
  644.     /* [retval][out] */ COMPATIBLE_LONG *phwndParent);
  645. void __RPC_STUB IDataSourceLocator_get_hWnd_Stub(
  646.     IRpcStubBuffer *This,
  647.     IRpcChannelBuffer *_pRpcChannelBuffer,
  648.     PRPC_MESSAGE _pRpcMessage,
  649.     DWORD *_pdwStubPhase);
  650. /* [helpstring][propput] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_put_hWnd_Proxy( 
  651.     IDataSourceLocator * This,
  652.     /* [in] */ COMPATIBLE_LONG hwndParent);
  653. void __RPC_STUB IDataSourceLocator_put_hWnd_Stub(
  654.     IRpcStubBuffer *This,
  655.     IRpcChannelBuffer *_pRpcChannelBuffer,
  656.     PRPC_MESSAGE _pRpcMessage,
  657.     DWORD *_pdwStubPhase);
  658. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_PromptNew_Proxy( 
  659.     IDataSourceLocator * This,
  660.     /* [retval][out] */ IDispatch **ppADOConnection);
  661. void __RPC_STUB IDataSourceLocator_PromptNew_Stub(
  662.     IRpcStubBuffer *This,
  663.     IRpcChannelBuffer *_pRpcChannelBuffer,
  664.     PRPC_MESSAGE _pRpcMessage,
  665.     DWORD *_pdwStubPhase);
  666. /* [helpstring] */ HRESULT STDMETHODCALLTYPE IDataSourceLocator_PromptEdit_Proxy( 
  667.     IDataSourceLocator * This,
  668.     /* [out][in] */ IDispatch **ppADOConnection,
  669.     /* [retval][out] */ VARIANT_BOOL *pbSuccess);
  670. void __RPC_STUB IDataSourceLocator_PromptEdit_Stub(
  671.     IRpcStubBuffer *This,
  672.     IRpcChannelBuffer *_pRpcChannelBuffer,
  673.     PRPC_MESSAGE _pRpcMessage,
  674.     DWORD *_pdwStubPhase);
  675. #endif  /* __IDataSourceLocator_INTERFACE_DEFINED__ */
  676. EXTERN_C const CLSID CLSID_DataLinks;
  677. #ifdef __cplusplus
  678. class DECLSPEC_UUID("2206CDB2-19C1-11D1-89E0-00C04FD7A829")
  679. DataLinks;
  680. #endif
  681. EXTERN_C const CLSID CLSID_MSDAINITIALIZE;
  682. #ifdef __cplusplus
  683. class DECLSPEC_UUID("2206CDB0-19C1-11D1-89E0-00C04FD7A829")
  684. MSDAINITIALIZE;
  685. #endif
  686. EXTERN_C const CLSID CLSID_PDPO;
  687. #ifdef __cplusplus
  688. class DECLSPEC_UUID("CCB4EC60-B9DC-11D1-AC80-00A0C9034873")
  689. PDPO;
  690. #endif
  691. EXTERN_C const CLSID CLSID_RootBinder;
  692. #ifdef __cplusplus
  693. class DECLSPEC_UUID("FF151822-B0BF-11D1-A80D-000000000000")
  694. RootBinder;
  695. #endif
  696. #endif /* __MSDASC_LIBRARY_DEFINED__ */
  697. /* Additional Prototypes for ALL interfaces */
  698. /* [local][helpstring] */ HRESULT STDMETHODCALLTYPE IDataInitialize_CreateDBInstanceEx_Proxy( 
  699.     IDataInitialize * This,
  700.     /* [in] */ REFCLSID clsidProvider,
  701.     /* [in] */ IUnknown *pUnkOuter,
  702.     /* [in] */ DWORD dwClsCtx,
  703.     /* [unique][in] */ LPOLESTR pwszReserved,
  704.     /* [unique][in] */ COSERVERINFO *pServerInfo,
  705.     /* [in] */ ULONG cmq,
  706.     /* [size_is][out][in] */ MULTI_QI *rgmqResults);
  707. /* [call_as] */ HRESULT STDMETHODCALLTYPE IDataInitialize_CreateDBInstanceEx_Stub( 
  708.     IDataInitialize * This,
  709.     /* [in] */ REFCLSID clsidProvider,
  710.     /* [in] */ IUnknown *pUnkOuter,
  711.     /* [in] */ DWORD dwClsCtx,
  712.     /* [unique][in] */ LPOLESTR pwszReserved,
  713.     /* [unique][in] */ COSERVERINFO *pServerInfo,
  714.     /* [in] */ ULONG cmq,
  715.     /* [size_is][size_is][in] */ const IID **rgpIID,
  716.     /* [size_is][size_is][out] */ IUnknown **rgpItf,
  717.     /* [size_is][out] */ HRESULT *rghr);
  718. /* end of Additional Prototypes */
  719. #ifdef __cplusplus
  720. }
  721. #endif
  722. #endif