msjro.tli 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (d497bd66).
  2. //
  3. // msjro.tli
  4. //
  5. // Wrapper implementations for 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. #pragma once
  8. //
  9. // interface IReplica wrapper method implementations
  10. //
  11. inline void IReplica::PutRefActiveConnection ( IDispatch * ppconn ) {
  12. HRESULT _hr = putref_ActiveConnection(ppconn);
  13. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  14. }
  15. inline void IReplica::PutActiveConnection ( const _variant_t & ppconn ) {
  16. HRESULT _hr = put_ActiveConnection(ppconn);
  17. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  18. }
  19. inline IDispatchPtr IReplica::GetActiveConnection ( ) {
  20. IDispatch * _result;
  21. HRESULT _hr = get_ActiveConnection(&_result);
  22. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  23. return IDispatchPtr(_result, false);
  24. }
  25. inline _bstr_t IReplica::GetConflictFunction ( ) {
  26. BSTR _result;
  27. HRESULT _hr = get_ConflictFunction(&_result);
  28. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  29. return _bstr_t(_result, false);
  30. }
  31. inline void IReplica::PutConflictFunction ( _bstr_t pbstr ) {
  32. HRESULT _hr = put_ConflictFunction(pbstr);
  33. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  34. }
  35. inline _RecordsetPtr IReplica::GetConflictTables ( ) {
  36. struct _Recordset * _result;
  37. HRESULT _hr = get_ConflictTables(&_result);
  38. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  39. return _RecordsetPtr(_result, false);
  40. }
  41. inline _variant_t IReplica::GetDesignMasterId ( ) {
  42. VARIANT _result;
  43. VariantInit(&_result);
  44. HRESULT _hr = get_DesignMasterId(&_result);
  45. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  46. return _variant_t(_result, false);
  47. }
  48. inline void IReplica::PutDesignMasterId ( const _variant_t & pvar ) {
  49. HRESULT _hr = put_DesignMasterId(pvar);
  50. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  51. }
  52. inline long IReplica::GetPriority ( ) {
  53. long _result;
  54. HRESULT _hr = get_Priority(&_result);
  55. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  56. return _result;
  57. }
  58. inline _variant_t IReplica::GetReplicaId ( ) {
  59. VARIANT _result;
  60. VariantInit(&_result);
  61. HRESULT _hr = get_ReplicaId(&_result);
  62. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  63. return _variant_t(_result, false);
  64. }
  65. inline enum ReplicaTypeEnum IReplica::GetReplicaType ( ) {
  66. enum ReplicaTypeEnum _result;
  67. HRESULT _hr = get_ReplicaType(&_result);
  68. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  69. return _result;
  70. }
  71. inline long IReplica::GetRetentionPeriod ( ) {
  72. long _result;
  73. HRESULT _hr = get_RetentionPeriod(&_result);
  74. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  75. return _result;
  76. }
  77. inline void IReplica::PutRetentionPeriod ( long pl ) {
  78. HRESULT _hr = put_RetentionPeriod(pl);
  79. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  80. }
  81. inline enum VisibilityEnum IReplica::GetVisibility ( ) {
  82. enum VisibilityEnum _result;
  83. HRESULT _hr = get_Visibility(&_result);
  84. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  85. return _result;
  86. }
  87. inline HRESULT IReplica::CreateReplica ( _bstr_t replicaName, _bstr_t description, enum ReplicaTypeEnum ReplicaType, enum VisibilityEnum Visibility, long Priority, enum UpdatabilityEnum updatability ) {
  88. HRESULT _hr = raw_CreateReplica(replicaName, description, ReplicaType, Visibility, Priority, updatability);
  89. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  90. return _hr;
  91. }
  92. inline VARIANT_BOOL IReplica::GetObjectReplicability ( _bstr_t objectName, _bstr_t objectType ) {
  93. VARIANT_BOOL _result;
  94. HRESULT _hr = raw_GetObjectReplicability(objectName, objectType, &_result);
  95. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  96. return _result;
  97. }
  98. inline HRESULT IReplica::SetObjectReplicability ( _bstr_t objectName, _bstr_t objectType, VARIANT_BOOL replicability ) {
  99. HRESULT _hr = raw_SetObjectReplicability(objectName, objectType, replicability);
  100. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  101. return _hr;
  102. }
  103. inline HRESULT IReplica::MakeReplicable ( _bstr_t connectionString, VARIANT_BOOL columnTracking ) {
  104. HRESULT _hr = raw_MakeReplicable(connectionString, columnTracking);
  105. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  106. return _hr;
  107. }
  108. inline HRESULT IReplica::PopulatePartial ( _bstr_t FullReplica ) {
  109. HRESULT _hr = raw_PopulatePartial(FullReplica);
  110. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  111. return _hr;
  112. }
  113. inline HRESULT IReplica::Synchronize ( _bstr_t target, enum SyncTypeEnum syncType, enum SyncModeEnum syncMode ) {
  114. HRESULT _hr = raw_Synchronize(target, syncType, syncMode);
  115. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  116. return _hr;
  117. }
  118. inline FiltersPtr IReplica::GetFilters ( ) {
  119. struct Filters * _result;
  120. HRESULT _hr = get_Filters(&_result);
  121. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  122. return FiltersPtr(_result, false);
  123. }
  124. //
  125. // interface Filters wrapper method implementations
  126. //
  127. inline HRESULT Filters::Refresh ( ) {
  128. HRESULT _hr = raw_Refresh();
  129. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  130. return _hr;
  131. }
  132. inline IUnknownPtr Filters::_NewEnum ( ) {
  133. IUnknown * _result;
  134. HRESULT _hr = raw__NewEnum(&_result);
  135. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  136. return IUnknownPtr(_result, false);
  137. }
  138. inline long Filters::GetCount ( ) {
  139. long _result;
  140. HRESULT _hr = get_Count(&_result);
  141. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  142. return _result;
  143. }
  144. inline FilterPtr Filters::GetItem ( const _variant_t & Index ) {
  145. struct Filter * _result;
  146. HRESULT _hr = get_Item(Index, &_result);
  147. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  148. return FilterPtr(_result, false);
  149. }
  150. inline HRESULT Filters::Append ( _bstr_t TableName, enum FilterTypeEnum FilterType, _bstr_t FilterCriteria ) {
  151. HRESULT _hr = raw_Append(TableName, FilterType, FilterCriteria);
  152. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  153. return _hr;
  154. }
  155. inline HRESULT Filters::Delete ( const _variant_t & Index ) {
  156. HRESULT _hr = raw_Delete(Index);
  157. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  158. return _hr;
  159. }
  160. //
  161. // interface Filter wrapper method implementations
  162. //
  163. inline _bstr_t Filter::GetTableName ( ) {
  164. BSTR _result;
  165. HRESULT _hr = get_TableName(&_result);
  166. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  167. return _bstr_t(_result, false);
  168. }
  169. inline enum FilterTypeEnum Filter::GetFilterType ( ) {
  170. enum FilterTypeEnum _result;
  171. HRESULT _hr = get_FilterType(&_result);
  172. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  173. return _result;
  174. }
  175. inline _bstr_t Filter::GetFilterCriteria ( ) {
  176. BSTR _result;
  177. HRESULT _hr = get_FilterCriteria(&_result);
  178. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  179. return _bstr_t(_result, false);
  180. }
  181. //
  182. // interface IJetEngine wrapper method implementations
  183. //
  184. inline HRESULT IJetEngine::CompactDatabase ( _bstr_t SourceConnection, _bstr_t Destconnection ) {
  185. HRESULT _hr = raw_CompactDatabase(SourceConnection, Destconnection);
  186. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  187. return _hr;
  188. }
  189. inline HRESULT IJetEngine::RefreshCache ( struct _Connection * Connection ) {
  190. HRESULT _hr = raw_RefreshCache(Connection);
  191. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  192. return _hr;
  193. }