Source code of Windows XP (NT5)
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.

338 lines
9.1 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8867.0 (6a2c11fd).
  2. //
  3. // c:\dev\admt\dbmgr\debug\msjro.tlh
  4. //
  5. // C++ source equivalent of Win32 type library msjro.dll
  6. // compiler-generated file created 02/13/01 at 16:18:03 - DO NOT EDIT!
  7. //
  8. // Cross-referenced type libraries:
  9. //
  10. // #import "C:\Program Files\Common Files\System\ado\msado15.dll"
  11. //
  12. #pragma once
  13. #pragma pack(push, 8)
  14. #include <comdef.h>
  15. //
  16. // Forward references and typedefs
  17. //
  18. struct __declspec(uuid("d2d139e0-b6ca-11d1-9f31-00c04fc29d52"))
  19. /* dual interface */ IReplica;
  20. struct __declspec(uuid("d2d139e2-b6ca-11d1-9f31-00c04fc29d52"))
  21. /* dual interface */ Filters;
  22. struct __declspec(uuid("d2d139e1-b6ca-11d1-9f31-00c04fc29d52"))
  23. /* dual interface */ Filter;
  24. struct __declspec(uuid("9f63d980-ff25-11d1-bb6f-00c04fae22da"))
  25. /* dual interface */ IJetEngine;
  26. struct /* coclass */ Replica;
  27. struct /* coclass */ JetEngine;
  28. //
  29. // Smart pointer typedef declarations
  30. //
  31. _COM_SMARTPTR_TYPEDEF(IReplica, __uuidof(IReplica));
  32. _COM_SMARTPTR_TYPEDEF(Filters, __uuidof(Filters));
  33. _COM_SMARTPTR_TYPEDEF(Filter, __uuidof(Filter));
  34. _COM_SMARTPTR_TYPEDEF(IJetEngine, __uuidof(IJetEngine));
  35. //
  36. // Type library items
  37. //
  38. enum ReplicaTypeEnum
  39. {
  40. jrRepTypeNotReplicable = 0,
  41. jrRepTypeDesignMaster = 1,
  42. jrRepTypeFull = 2,
  43. jrRepTypePartial = 3
  44. };
  45. enum VisibilityEnum
  46. {
  47. jrRepVisibilityGlobal = 1,
  48. jrRepVisibilityLocal = 2,
  49. jrRepVisibilityAnon = 4
  50. };
  51. enum UpdatabilityEnum
  52. {
  53. jrRepUpdFull = 0,
  54. jrRepUpdReadOnly = 2
  55. };
  56. enum SyncTypeEnum
  57. {
  58. jrSyncTypeExport = 1,
  59. jrSyncTypeImport = 2,
  60. jrSyncTypeImpExp = 3
  61. };
  62. enum SyncModeEnum
  63. {
  64. jrSyncModeIndirect = 1,
  65. jrSyncModeDirect = 2,
  66. jrSyncModeInternet = 3
  67. };
  68. enum FilterTypeEnum
  69. {
  70. jrFilterTypeTable = 1,
  71. jrFilterTypeRelationship = 2
  72. };
  73. struct __declspec(uuid("d2d139e0-b6ca-11d1-9f31-00c04fc29d52"))
  74. IReplica : IDispatch
  75. {
  76. //
  77. // Property data
  78. //
  79. __declspec(property(get=GetActiveConnection,put=PutRefActiveConnection))
  80. IDispatchPtr ActiveConnection;
  81. __declspec(property(get=GetConflictFunction,put=PutConflictFunction))
  82. _bstr_t ConflictFunction;
  83. __declspec(property(get=GetConflictTables))
  84. _RecordsetPtr ConflictTables;
  85. __declspec(property(get=GetDesignMasterId,put=PutDesignMasterId))
  86. _variant_t DesignMasterId;
  87. __declspec(property(get=GetPriority))
  88. long Priority;
  89. __declspec(property(get=GetReplicaId))
  90. _variant_t ReplicaId;
  91. __declspec(property(get=GetReplicaType))
  92. enum ReplicaTypeEnum ReplicaType;
  93. __declspec(property(get=GetRetentionPeriod,put=PutRetentionPeriod))
  94. long RetentionPeriod;
  95. __declspec(property(get=GetVisibility))
  96. enum VisibilityEnum Visibility;
  97. __declspec(property(get=GetFilters))
  98. FiltersPtr Filters;
  99. //
  100. // Wrapper methods for error-handling
  101. //
  102. void PutRefActiveConnection (
  103. IDispatch * ppconn );
  104. void PutActiveConnection (
  105. const _variant_t & ppconn );
  106. IDispatchPtr GetActiveConnection ( );
  107. _bstr_t GetConflictFunction ( );
  108. void PutConflictFunction (
  109. _bstr_t pbstr );
  110. _RecordsetPtr GetConflictTables ( );
  111. _variant_t GetDesignMasterId ( );
  112. void PutDesignMasterId (
  113. const _variant_t & pvar );
  114. long GetPriority ( );
  115. _variant_t GetReplicaId ( );
  116. enum ReplicaTypeEnum GetReplicaType ( );
  117. long GetRetentionPeriod ( );
  118. void PutRetentionPeriod (
  119. long pl );
  120. enum VisibilityEnum GetVisibility ( );
  121. HRESULT CreateReplica (
  122. _bstr_t replicaName,
  123. _bstr_t description,
  124. enum ReplicaTypeEnum ReplicaType,
  125. enum VisibilityEnum Visibility,
  126. long Priority,
  127. enum UpdatabilityEnum updatability );
  128. VARIANT_BOOL GetObjectReplicability (
  129. _bstr_t objectName,
  130. _bstr_t objectType );
  131. HRESULT SetObjectReplicability (
  132. _bstr_t objectName,
  133. _bstr_t objectType,
  134. VARIANT_BOOL replicability );
  135. HRESULT MakeReplicable (
  136. _bstr_t connectionString,
  137. VARIANT_BOOL columnTracking );
  138. HRESULT PopulatePartial (
  139. _bstr_t FullReplica );
  140. HRESULT Synchronize (
  141. _bstr_t target,
  142. enum SyncTypeEnum syncType,
  143. enum SyncModeEnum syncMode );
  144. FiltersPtr GetFilters ( );
  145. //
  146. // Raw methods provided by interface
  147. //
  148. virtual HRESULT __stdcall putref_ActiveConnection (
  149. IDispatch * ppconn ) = 0;
  150. virtual HRESULT __stdcall put_ActiveConnection (
  151. VARIANT ppconn ) = 0;
  152. virtual HRESULT __stdcall get_ActiveConnection (
  153. IDispatch * * ppconn ) = 0;
  154. virtual HRESULT __stdcall get_ConflictFunction (
  155. BSTR * pbstr ) = 0;
  156. virtual HRESULT __stdcall put_ConflictFunction (
  157. BSTR pbstr ) = 0;
  158. virtual HRESULT __stdcall get_ConflictTables (
  159. struct _Recordset * * pprset ) = 0;
  160. virtual HRESULT __stdcall get_DesignMasterId (
  161. VARIANT * pvar ) = 0;
  162. virtual HRESULT __stdcall put_DesignMasterId (
  163. VARIANT pvar ) = 0;
  164. virtual HRESULT __stdcall get_Priority (
  165. long * pl ) = 0;
  166. virtual HRESULT __stdcall get_ReplicaId (
  167. VARIANT * pvar ) = 0;
  168. virtual HRESULT __stdcall get_ReplicaType (
  169. enum ReplicaTypeEnum * pl ) = 0;
  170. virtual HRESULT __stdcall get_RetentionPeriod (
  171. long * pl ) = 0;
  172. virtual HRESULT __stdcall put_RetentionPeriod (
  173. long pl ) = 0;
  174. virtual HRESULT __stdcall get_Visibility (
  175. enum VisibilityEnum * pl ) = 0;
  176. virtual HRESULT __stdcall raw_CreateReplica (
  177. BSTR replicaName,
  178. BSTR description,
  179. enum ReplicaTypeEnum ReplicaType,
  180. enum VisibilityEnum Visibility,
  181. long Priority,
  182. enum UpdatabilityEnum updatability ) = 0;
  183. virtual HRESULT __stdcall raw_GetObjectReplicability (
  184. BSTR objectName,
  185. BSTR objectType,
  186. VARIANT_BOOL * replicability ) = 0;
  187. virtual HRESULT __stdcall raw_SetObjectReplicability (
  188. BSTR objectName,
  189. BSTR objectType,
  190. VARIANT_BOOL replicability ) = 0;
  191. virtual HRESULT __stdcall raw_MakeReplicable (
  192. BSTR connectionString,
  193. VARIANT_BOOL columnTracking ) = 0;
  194. virtual HRESULT __stdcall raw_PopulatePartial (
  195. BSTR FullReplica ) = 0;
  196. virtual HRESULT __stdcall raw_Synchronize (
  197. BSTR target,
  198. enum SyncTypeEnum syncType,
  199. enum SyncModeEnum syncMode ) = 0;
  200. virtual HRESULT __stdcall get_Filters (
  201. struct Filters * * ppFilters ) = 0;
  202. };
  203. struct __declspec(uuid("d2d139e2-b6ca-11d1-9f31-00c04fc29d52"))
  204. Filters : IDispatch
  205. {
  206. //
  207. // Property data
  208. //
  209. __declspec(property(get=GetItem))
  210. FilterPtr Item[];
  211. __declspec(property(get=GetCount))
  212. long Count;
  213. //
  214. // Wrapper methods for error-handling
  215. //
  216. HRESULT Refresh ( );
  217. IUnknownPtr _NewEnum ( );
  218. long GetCount ( );
  219. FilterPtr GetItem (
  220. const _variant_t & Index );
  221. HRESULT Append (
  222. _bstr_t TableName,
  223. enum FilterTypeEnum FilterType,
  224. _bstr_t FilterCriteria );
  225. HRESULT Delete (
  226. const _variant_t & Index );
  227. //
  228. // Raw methods provided by interface
  229. //
  230. virtual HRESULT __stdcall raw_Refresh ( ) = 0;
  231. virtual HRESULT __stdcall raw__NewEnum (
  232. IUnknown * * ppvObject ) = 0;
  233. virtual HRESULT __stdcall get_Count (
  234. long * c ) = 0;
  235. virtual HRESULT __stdcall get_Item (
  236. VARIANT Index,
  237. struct Filter * * ppvObject ) = 0;
  238. virtual HRESULT __stdcall raw_Append (
  239. BSTR TableName,
  240. enum FilterTypeEnum FilterType,
  241. BSTR FilterCriteria ) = 0;
  242. virtual HRESULT __stdcall raw_Delete (
  243. VARIANT Index ) = 0;
  244. };
  245. struct __declspec(uuid("d2d139e1-b6ca-11d1-9f31-00c04fc29d52"))
  246. Filter : IDispatch
  247. {
  248. //
  249. // Property data
  250. //
  251. __declspec(property(get=GetTableName))
  252. _bstr_t TableName;
  253. __declspec(property(get=GetFilterType))
  254. enum FilterTypeEnum FilterType;
  255. __declspec(property(get=GetFilterCriteria))
  256. _bstr_t FilterCriteria;
  257. //
  258. // Wrapper methods for error-handling
  259. //
  260. _bstr_t GetTableName ( );
  261. enum FilterTypeEnum GetFilterType ( );
  262. _bstr_t GetFilterCriteria ( );
  263. //
  264. // Raw methods provided by interface
  265. //
  266. virtual HRESULT __stdcall get_TableName (
  267. BSTR * pbstr ) = 0;
  268. virtual HRESULT __stdcall get_FilterType (
  269. enum FilterTypeEnum * ptype ) = 0;
  270. virtual HRESULT __stdcall get_FilterCriteria (
  271. BSTR * pbstr ) = 0;
  272. };
  273. struct __declspec(uuid("9f63d980-ff25-11d1-bb6f-00c04fae22da"))
  274. IJetEngine : IDispatch
  275. {
  276. //
  277. // Wrapper methods for error-handling
  278. //
  279. HRESULT CompactDatabase (
  280. _bstr_t SourceConnection,
  281. _bstr_t Destconnection );
  282. HRESULT RefreshCache (
  283. struct _Connection * Connection );
  284. //
  285. // Raw methods provided by interface
  286. //
  287. virtual HRESULT __stdcall raw_CompactDatabase (
  288. BSTR SourceConnection,
  289. BSTR Destconnection ) = 0;
  290. virtual HRESULT __stdcall raw_RefreshCache (
  291. struct _Connection * Connection ) = 0;
  292. };
  293. struct __declspec(uuid("d2d139e3-b6ca-11d1-9f31-00c04fc29d52"))
  294. Replica;
  295. // [ default ] interface IReplica
  296. struct __declspec(uuid("de88c160-ff2c-11d1-bb6f-00c04fae22da"))
  297. JetEngine;
  298. // [ default ] interface IJetEngine
  299. #pragma pack(pop)