msjro.tlh 9.2 KB

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