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.

230 lines
7.7 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8867.0 (31ae8eb7).
  2. //
  3. // c:\dev\admt\dbmgr\debug\msjro.tli
  4. //
  5. // Wrapper implementations for Win32 type library msjro.dll
  6. // compiler-generated file created 02/13/01 at 16:18:05 - DO NOT EDIT!
  7. #pragma once
  8. //
  9. // interface IReplica wrapper method implementations
  10. //
  11. void IReplica::PutRefActiveConnection ( IDispatch * ppconn ) {
  12. HRESULT _hr = putref_ActiveConnection(ppconn);
  13. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  14. }
  15. 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. 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. _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. 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. _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. _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. 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. 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. _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. 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. 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. void IReplica::PutRetentionPeriod ( long pl ) {
  78. HRESULT _hr = put_RetentionPeriod(pl);
  79. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  80. }
  81. 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. 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. 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. 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. 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. 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. 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. 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. HRESULT Filters::Refresh ( ) {
  128. HRESULT _hr = raw_Refresh();
  129. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  130. return _hr;
  131. }
  132. 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. 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. 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. 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. 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. _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. 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. _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. 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. 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. }