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.

2095 lines
74 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (f291607b).
  2. //
  3. // msado15.tli
  4. //
  5. // Wrapper implementations for Win32 type library c:\Program Files\Common Files\System\ADO\msado15.dll
  6. // compiler-generated file created 03/27/00 at 08:12:15 - DO NOT EDIT!
  7. #pragma once
  8. //
  9. // interface _Collection wrapper method implementations
  10. //
  11. inline long _Collection::GetCount ( ) {
  12. long _result;
  13. HRESULT _hr = get_Count(&_result);
  14. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  15. return _result;
  16. }
  17. inline IUnknownPtr _Collection::_NewEnum ( ) {
  18. IUnknown * _result;
  19. HRESULT _hr = raw__NewEnum(&_result);
  20. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  21. return IUnknownPtr(_result, false);
  22. }
  23. inline HRESULT _Collection::Refresh ( ) {
  24. HRESULT _hr = raw_Refresh();
  25. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  26. return _hr;
  27. }
  28. //
  29. // interface _DynaCollection wrapper method implementations
  30. //
  31. inline HRESULT _DynaCollection::Append ( IDispatch * Object ) {
  32. HRESULT _hr = raw_Append(Object);
  33. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  34. return _hr;
  35. }
  36. inline HRESULT _DynaCollection::Delete ( const _variant_t & Index ) {
  37. HRESULT _hr = raw_Delete(Index);
  38. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  39. return _hr;
  40. }
  41. //
  42. // interface _ADO wrapper method implementations
  43. //
  44. inline PropertiesPtr _ADO::GetProperties ( ) {
  45. struct Properties * _result;
  46. HRESULT _hr = get_Properties(&_result);
  47. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  48. return PropertiesPtr(_result, false);
  49. }
  50. //
  51. // interface Properties wrapper method implementations
  52. //
  53. inline PropertyPtr Properties::GetItem ( const _variant_t & Index ) {
  54. struct Property * _result;
  55. HRESULT _hr = get_Item(Index, &_result);
  56. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  57. return PropertyPtr(_result, false);
  58. }
  59. //
  60. // interface Property wrapper method implementations
  61. //
  62. inline _variant_t Property::GetValue ( ) {
  63. VARIANT _result;
  64. VariantInit(&_result);
  65. HRESULT _hr = get_Value(&_result);
  66. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  67. return _variant_t(_result, false);
  68. }
  69. inline void Property::PutValue ( const _variant_t & pval ) {
  70. HRESULT _hr = put_Value(pval);
  71. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  72. }
  73. inline _bstr_t Property::GetName ( ) {
  74. BSTR _result;
  75. HRESULT _hr = get_Name(&_result);
  76. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  77. return _bstr_t(_result, false);
  78. }
  79. inline enum DataTypeEnum Property::GetType ( ) {
  80. enum DataTypeEnum _result;
  81. HRESULT _hr = get_Type(&_result);
  82. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  83. return _result;
  84. }
  85. inline long Property::GetAttributes ( ) {
  86. long _result;
  87. HRESULT _hr = get_Attributes(&_result);
  88. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  89. return _result;
  90. }
  91. inline void Property::PutAttributes ( long plAttributes ) {
  92. HRESULT _hr = put_Attributes(plAttributes);
  93. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  94. }
  95. //
  96. // interface Error wrapper method implementations
  97. //
  98. inline long Error::GetNumber ( ) {
  99. long _result;
  100. HRESULT _hr = get_Number(&_result);
  101. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  102. return _result;
  103. }
  104. inline _bstr_t Error::GetSource ( ) {
  105. BSTR _result;
  106. HRESULT _hr = get_Source(&_result);
  107. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  108. return _bstr_t(_result, false);
  109. }
  110. inline _bstr_t Error::GetDescription ( ) {
  111. BSTR _result;
  112. HRESULT _hr = get_Description(&_result);
  113. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  114. return _bstr_t(_result, false);
  115. }
  116. inline _bstr_t Error::GetHelpFile ( ) {
  117. BSTR _result;
  118. HRESULT _hr = get_HelpFile(&_result);
  119. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  120. return _bstr_t(_result, false);
  121. }
  122. inline long Error::GetHelpContext ( ) {
  123. long _result;
  124. HRESULT _hr = get_HelpContext(&_result);
  125. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  126. return _result;
  127. }
  128. inline _bstr_t Error::GetSQLState ( ) {
  129. BSTR _result;
  130. HRESULT _hr = get_SQLState(&_result);
  131. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  132. return _bstr_t(_result, false);
  133. }
  134. inline long Error::GetNativeError ( ) {
  135. long _result;
  136. HRESULT _hr = get_NativeError(&_result);
  137. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  138. return _result;
  139. }
  140. //
  141. // interface Errors wrapper method implementations
  142. //
  143. inline ErrorPtr Errors::GetItem ( const _variant_t & Index ) {
  144. struct Error * _result;
  145. HRESULT _hr = get_Item(Index, &_result);
  146. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  147. return ErrorPtr(_result, false);
  148. }
  149. inline HRESULT Errors::Clear ( ) {
  150. HRESULT _hr = raw_Clear();
  151. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  152. return _hr;
  153. }
  154. //
  155. // interface Command15 wrapper method implementations
  156. //
  157. inline _ConnectionPtr Command15::GetActiveConnection ( ) {
  158. struct _Connection * _result;
  159. HRESULT _hr = get_ActiveConnection(&_result);
  160. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  161. return _ConnectionPtr(_result, false);
  162. }
  163. inline void Command15::PutRefActiveConnection ( struct _Connection * ppvObject ) {
  164. HRESULT _hr = putref_ActiveConnection(ppvObject);
  165. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  166. }
  167. inline void Command15::PutActiveConnection ( const _variant_t & ppvObject ) {
  168. HRESULT _hr = put_ActiveConnection(ppvObject);
  169. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  170. }
  171. inline _bstr_t Command15::GetCommandText ( ) {
  172. BSTR _result;
  173. HRESULT _hr = get_CommandText(&_result);
  174. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  175. return _bstr_t(_result, false);
  176. }
  177. inline void Command15::PutCommandText ( _bstr_t pbstr ) {
  178. HRESULT _hr = put_CommandText(pbstr);
  179. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  180. }
  181. inline long Command15::GetCommandTimeout ( ) {
  182. long _result;
  183. HRESULT _hr = get_CommandTimeout(&_result);
  184. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  185. return _result;
  186. }
  187. inline void Command15::PutCommandTimeout ( long pl ) {
  188. HRESULT _hr = put_CommandTimeout(pl);
  189. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  190. }
  191. inline VARIANT_BOOL Command15::GetPrepared ( ) {
  192. VARIANT_BOOL _result;
  193. HRESULT _hr = get_Prepared(&_result);
  194. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  195. return _result;
  196. }
  197. inline void Command15::PutPrepared ( VARIANT_BOOL pfPrepared ) {
  198. HRESULT _hr = put_Prepared(pfPrepared);
  199. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  200. }
  201. inline _RecordsetPtr Command15::Execute ( VARIANT * RecordsAffected, VARIANT * Parameters, long Options ) {
  202. struct _Recordset * _result;
  203. HRESULT _hr = raw_Execute(RecordsAffected, Parameters, Options, &_result);
  204. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  205. return _RecordsetPtr(_result, false);
  206. }
  207. inline _ParameterPtr Command15::CreateParameter ( _bstr_t Name, enum DataTypeEnum Type, enum ParameterDirectionEnum Direction, long Size, const _variant_t & Value ) {
  208. struct _Parameter * _result;
  209. HRESULT _hr = raw_CreateParameter(Name, Type, Direction, Size, Value, &_result);
  210. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  211. return _ParameterPtr(_result, false);
  212. }
  213. inline ParametersPtr Command15::GetParameters ( ) {
  214. struct Parameters * _result;
  215. HRESULT _hr = get_Parameters(&_result);
  216. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  217. return ParametersPtr(_result, false);
  218. }
  219. inline void Command15::PutCommandType ( enum CommandTypeEnum plCmdType ) {
  220. HRESULT _hr = put_CommandType(plCmdType);
  221. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  222. }
  223. inline enum CommandTypeEnum Command15::GetCommandType ( ) {
  224. enum CommandTypeEnum _result;
  225. HRESULT _hr = get_CommandType(&_result);
  226. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  227. return _result;
  228. }
  229. inline _bstr_t Command15::GetName ( ) {
  230. BSTR _result;
  231. HRESULT _hr = get_Name(&_result);
  232. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  233. return _bstr_t(_result, false);
  234. }
  235. inline void Command15::PutName ( _bstr_t pbstrName ) {
  236. HRESULT _hr = put_Name(pbstrName);
  237. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  238. }
  239. //
  240. // interface Connection15 wrapper method implementations
  241. //
  242. inline _bstr_t Connection15::GetConnectionString ( ) {
  243. BSTR _result;
  244. HRESULT _hr = get_ConnectionString(&_result);
  245. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  246. return _bstr_t(_result, false);
  247. }
  248. inline void Connection15::PutConnectionString ( _bstr_t pbstr ) {
  249. HRESULT _hr = put_ConnectionString(pbstr);
  250. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  251. }
  252. inline long Connection15::GetCommandTimeout ( ) {
  253. long _result;
  254. HRESULT _hr = get_CommandTimeout(&_result);
  255. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  256. return _result;
  257. }
  258. inline void Connection15::PutCommandTimeout ( long plTimeout ) {
  259. HRESULT _hr = put_CommandTimeout(plTimeout);
  260. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  261. }
  262. inline long Connection15::GetConnectionTimeout ( ) {
  263. long _result;
  264. HRESULT _hr = get_ConnectionTimeout(&_result);
  265. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  266. return _result;
  267. }
  268. inline void Connection15::PutConnectionTimeout ( long plTimeout ) {
  269. HRESULT _hr = put_ConnectionTimeout(plTimeout);
  270. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  271. }
  272. inline _bstr_t Connection15::GetVersion ( ) {
  273. BSTR _result;
  274. HRESULT _hr = get_Version(&_result);
  275. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  276. return _bstr_t(_result, false);
  277. }
  278. inline HRESULT Connection15::Close ( ) {
  279. HRESULT _hr = raw_Close();
  280. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  281. return _hr;
  282. }
  283. inline _RecordsetPtr Connection15::Execute ( _bstr_t CommandText, VARIANT * RecordsAffected, long Options ) {
  284. struct _Recordset * _result;
  285. HRESULT _hr = raw_Execute(CommandText, RecordsAffected, Options, &_result);
  286. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  287. return _RecordsetPtr(_result, false);
  288. }
  289. inline long Connection15::BeginTrans ( ) {
  290. long _result;
  291. HRESULT _hr = raw_BeginTrans(&_result);
  292. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  293. return _result;
  294. }
  295. inline HRESULT Connection15::CommitTrans ( ) {
  296. HRESULT _hr = raw_CommitTrans();
  297. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  298. return _hr;
  299. }
  300. inline HRESULT Connection15::RollbackTrans ( ) {
  301. HRESULT _hr = raw_RollbackTrans();
  302. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  303. return _hr;
  304. }
  305. inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
  306. HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
  307. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  308. return _hr;
  309. }
  310. inline ErrorsPtr Connection15::GetErrors ( ) {
  311. struct Errors * _result;
  312. HRESULT _hr = get_Errors(&_result);
  313. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  314. return ErrorsPtr(_result, false);
  315. }
  316. inline _bstr_t Connection15::GetDefaultDatabase ( ) {
  317. BSTR _result;
  318. HRESULT _hr = get_DefaultDatabase(&_result);
  319. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  320. return _bstr_t(_result, false);
  321. }
  322. inline void Connection15::PutDefaultDatabase ( _bstr_t pbstr ) {
  323. HRESULT _hr = put_DefaultDatabase(pbstr);
  324. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  325. }
  326. inline enum IsolationLevelEnum Connection15::GetIsolationLevel ( ) {
  327. enum IsolationLevelEnum _result;
  328. HRESULT _hr = get_IsolationLevel(&_result);
  329. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  330. return _result;
  331. }
  332. inline void Connection15::PutIsolationLevel ( enum IsolationLevelEnum Level ) {
  333. HRESULT _hr = put_IsolationLevel(Level);
  334. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  335. }
  336. inline long Connection15::GetAttributes ( ) {
  337. long _result;
  338. HRESULT _hr = get_Attributes(&_result);
  339. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  340. return _result;
  341. }
  342. inline void Connection15::PutAttributes ( long plAttr ) {
  343. HRESULT _hr = put_Attributes(plAttr);
  344. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  345. }
  346. inline enum CursorLocationEnum Connection15::GetCursorLocation ( ) {
  347. enum CursorLocationEnum _result;
  348. HRESULT _hr = get_CursorLocation(&_result);
  349. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  350. return _result;
  351. }
  352. inline void Connection15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
  353. HRESULT _hr = put_CursorLocation(plCursorLoc);
  354. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  355. }
  356. inline enum ConnectModeEnum Connection15::GetMode ( ) {
  357. enum ConnectModeEnum _result;
  358. HRESULT _hr = get_Mode(&_result);
  359. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  360. return _result;
  361. }
  362. inline void Connection15::PutMode ( enum ConnectModeEnum plMode ) {
  363. HRESULT _hr = put_Mode(plMode);
  364. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  365. }
  366. inline _bstr_t Connection15::GetProvider ( ) {
  367. BSTR _result;
  368. HRESULT _hr = get_Provider(&_result);
  369. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  370. return _bstr_t(_result, false);
  371. }
  372. inline void Connection15::PutProvider ( _bstr_t pbstr ) {
  373. HRESULT _hr = put_Provider(pbstr);
  374. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  375. }
  376. inline long Connection15::GetState ( ) {
  377. long _result;
  378. HRESULT _hr = get_State(&_result);
  379. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  380. return _result;
  381. }
  382. inline _RecordsetPtr Connection15::OpenSchema ( enum SchemaEnum Schema, const _variant_t & Restrictions, const _variant_t & SchemaID ) {
  383. struct _Recordset * _result;
  384. HRESULT _hr = raw_OpenSchema(Schema, Restrictions, SchemaID, &_result);
  385. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  386. return _RecordsetPtr(_result, false);
  387. }
  388. //
  389. // interface _Connection wrapper method implementations
  390. //
  391. inline HRESULT _Connection::Cancel ( ) {
  392. HRESULT _hr = raw_Cancel();
  393. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  394. return _hr;
  395. }
  396. //
  397. // interface Recordset15 wrapper method implementations
  398. //
  399. inline enum PositionEnum Recordset15::GetAbsolutePosition ( ) {
  400. enum PositionEnum _result;
  401. HRESULT _hr = get_AbsolutePosition(&_result);
  402. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  403. return _result;
  404. }
  405. inline void Recordset15::PutAbsolutePosition ( enum PositionEnum pl ) {
  406. HRESULT _hr = put_AbsolutePosition(pl);
  407. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  408. }
  409. inline void Recordset15::PutRefActiveConnection ( IDispatch * pvar ) {
  410. HRESULT _hr = putref_ActiveConnection(pvar);
  411. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  412. }
  413. inline void Recordset15::PutActiveConnection ( const _variant_t & pvar ) {
  414. HRESULT _hr = put_ActiveConnection(pvar);
  415. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  416. }
  417. inline _variant_t Recordset15::GetActiveConnection ( ) {
  418. VARIANT _result;
  419. VariantInit(&_result);
  420. HRESULT _hr = get_ActiveConnection(&_result);
  421. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  422. return _variant_t(_result, false);
  423. }
  424. inline VARIANT_BOOL Recordset15::GetBOF ( ) {
  425. VARIANT_BOOL _result;
  426. HRESULT _hr = get_BOF(&_result);
  427. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  428. return _result;
  429. }
  430. inline _variant_t Recordset15::GetBookmark ( ) {
  431. VARIANT _result;
  432. VariantInit(&_result);
  433. HRESULT _hr = get_Bookmark(&_result);
  434. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  435. return _variant_t(_result, false);
  436. }
  437. inline void Recordset15::PutBookmark ( const _variant_t & pvBookmark ) {
  438. HRESULT _hr = put_Bookmark(pvBookmark);
  439. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  440. }
  441. inline long Recordset15::GetCacheSize ( ) {
  442. long _result;
  443. HRESULT _hr = get_CacheSize(&_result);
  444. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  445. return _result;
  446. }
  447. inline void Recordset15::PutCacheSize ( long pl ) {
  448. HRESULT _hr = put_CacheSize(pl);
  449. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  450. }
  451. inline enum CursorTypeEnum Recordset15::GetCursorType ( ) {
  452. enum CursorTypeEnum _result;
  453. HRESULT _hr = get_CursorType(&_result);
  454. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  455. return _result;
  456. }
  457. inline void Recordset15::PutCursorType ( enum CursorTypeEnum plCursorType ) {
  458. HRESULT _hr = put_CursorType(plCursorType);
  459. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  460. }
  461. inline VARIANT_BOOL Recordset15::GetEndOfFile ( ) {
  462. VARIANT_BOOL _result;
  463. HRESULT _hr = get_EndOfFile(&_result);
  464. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  465. return _result;
  466. }
  467. inline FieldsPtr Recordset15::GetFields ( ) {
  468. struct Fields * _result;
  469. HRESULT _hr = get_Fields(&_result);
  470. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  471. return FieldsPtr(_result, false);
  472. }
  473. inline enum LockTypeEnum Recordset15::GetLockType ( ) {
  474. enum LockTypeEnum _result;
  475. HRESULT _hr = get_LockType(&_result);
  476. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  477. return _result;
  478. }
  479. inline void Recordset15::PutLockType ( enum LockTypeEnum plLockType ) {
  480. HRESULT _hr = put_LockType(plLockType);
  481. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  482. }
  483. inline long Recordset15::GetMaxRecords ( ) {
  484. long _result;
  485. HRESULT _hr = get_MaxRecords(&_result);
  486. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  487. return _result;
  488. }
  489. inline void Recordset15::PutMaxRecords ( long plMaxRecords ) {
  490. HRESULT _hr = put_MaxRecords(plMaxRecords);
  491. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  492. }
  493. inline long Recordset15::GetRecordCount ( ) {
  494. long _result;
  495. HRESULT _hr = get_RecordCount(&_result);
  496. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  497. return _result;
  498. }
  499. inline void Recordset15::PutRefSource ( IDispatch * pvSource ) {
  500. HRESULT _hr = putref_Source(pvSource);
  501. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  502. }
  503. inline void Recordset15::PutSource ( _bstr_t pvSource ) {
  504. HRESULT _hr = put_Source(pvSource);
  505. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  506. }
  507. inline _variant_t Recordset15::GetSource ( ) {
  508. VARIANT _result;
  509. VariantInit(&_result);
  510. HRESULT _hr = get_Source(&_result);
  511. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  512. return _variant_t(_result, false);
  513. }
  514. inline HRESULT Recordset15::AddNew ( const _variant_t & FieldList, const _variant_t & Values ) {
  515. HRESULT _hr = raw_AddNew(FieldList, Values);
  516. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  517. return _hr;
  518. }
  519. inline HRESULT Recordset15::CancelUpdate ( ) {
  520. HRESULT _hr = raw_CancelUpdate();
  521. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  522. return _hr;
  523. }
  524. inline HRESULT Recordset15::Close ( ) {
  525. HRESULT _hr = raw_Close();
  526. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  527. return _hr;
  528. }
  529. inline HRESULT Recordset15::Delete ( enum AffectEnum AffectRecords ) {
  530. HRESULT _hr = raw_Delete(AffectRecords);
  531. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  532. return _hr;
  533. }
  534. inline _variant_t Recordset15::GetRows ( long Rows, const _variant_t & Start, const _variant_t & Fields ) {
  535. VARIANT _result;
  536. VariantInit(&_result);
  537. HRESULT _hr = raw_GetRows(Rows, Start, Fields, &_result);
  538. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  539. return _variant_t(_result, false);
  540. }
  541. inline HRESULT Recordset15::Move ( long NumRecords, const _variant_t & Start ) {
  542. HRESULT _hr = raw_Move(NumRecords, Start);
  543. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  544. return _hr;
  545. }
  546. inline HRESULT Recordset15::MoveNext ( ) {
  547. HRESULT _hr = raw_MoveNext();
  548. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  549. return _hr;
  550. }
  551. inline HRESULT Recordset15::MovePrevious ( ) {
  552. HRESULT _hr = raw_MovePrevious();
  553. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  554. return _hr;
  555. }
  556. inline HRESULT Recordset15::MoveFirst ( ) {
  557. HRESULT _hr = raw_MoveFirst();
  558. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  559. return _hr;
  560. }
  561. inline HRESULT Recordset15::MoveLast ( ) {
  562. HRESULT _hr = raw_MoveLast();
  563. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  564. return _hr;
  565. }
  566. inline HRESULT Recordset15::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) {
  567. HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options);
  568. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  569. return _hr;
  570. }
  571. inline HRESULT Recordset15::Requery ( long Options ) {
  572. HRESULT _hr = raw_Requery(Options);
  573. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  574. return _hr;
  575. }
  576. inline HRESULT Recordset15::_xResync ( enum AffectEnum AffectRecords ) {
  577. HRESULT _hr = raw__xResync(AffectRecords);
  578. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  579. return _hr;
  580. }
  581. inline HRESULT Recordset15::Update ( const _variant_t & Fields, const _variant_t & Values ) {
  582. HRESULT _hr = raw_Update(Fields, Values);
  583. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  584. return _hr;
  585. }
  586. inline enum PositionEnum Recordset15::GetAbsolutePage ( ) {
  587. enum PositionEnum _result;
  588. HRESULT _hr = get_AbsolutePage(&_result);
  589. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  590. return _result;
  591. }
  592. inline void Recordset15::PutAbsolutePage ( enum PositionEnum pl ) {
  593. HRESULT _hr = put_AbsolutePage(pl);
  594. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  595. }
  596. inline enum EditModeEnum Recordset15::GetEditMode ( ) {
  597. enum EditModeEnum _result;
  598. HRESULT _hr = get_EditMode(&_result);
  599. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  600. return _result;
  601. }
  602. inline _variant_t Recordset15::GetFilter ( ) {
  603. VARIANT _result;
  604. VariantInit(&_result);
  605. HRESULT _hr = get_Filter(&_result);
  606. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  607. return _variant_t(_result, false);
  608. }
  609. inline void Recordset15::PutFilter ( const _variant_t & Criteria ) {
  610. HRESULT _hr = put_Filter(Criteria);
  611. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  612. }
  613. inline long Recordset15::GetPageCount ( ) {
  614. long _result;
  615. HRESULT _hr = get_PageCount(&_result);
  616. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  617. return _result;
  618. }
  619. inline long Recordset15::GetPageSize ( ) {
  620. long _result;
  621. HRESULT _hr = get_PageSize(&_result);
  622. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  623. return _result;
  624. }
  625. inline void Recordset15::PutPageSize ( long pl ) {
  626. HRESULT _hr = put_PageSize(pl);
  627. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  628. }
  629. inline _bstr_t Recordset15::GetSort ( ) {
  630. BSTR _result;
  631. HRESULT _hr = get_Sort(&_result);
  632. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  633. return _bstr_t(_result, false);
  634. }
  635. inline void Recordset15::PutSort ( _bstr_t Criteria ) {
  636. HRESULT _hr = put_Sort(Criteria);
  637. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  638. }
  639. inline long Recordset15::GetStatus ( ) {
  640. long _result;
  641. HRESULT _hr = get_Status(&_result);
  642. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  643. return _result;
  644. }
  645. inline long Recordset15::GetState ( ) {
  646. long _result;
  647. HRESULT _hr = get_State(&_result);
  648. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  649. return _result;
  650. }
  651. inline _RecordsetPtr Recordset15::_xClone ( ) {
  652. struct _Recordset * _result;
  653. HRESULT _hr = raw__xClone(&_result);
  654. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  655. return _RecordsetPtr(_result, false);
  656. }
  657. inline HRESULT Recordset15::UpdateBatch ( enum AffectEnum AffectRecords ) {
  658. HRESULT _hr = raw_UpdateBatch(AffectRecords);
  659. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  660. return _hr;
  661. }
  662. inline HRESULT Recordset15::CancelBatch ( enum AffectEnum AffectRecords ) {
  663. HRESULT _hr = raw_CancelBatch(AffectRecords);
  664. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  665. return _hr;
  666. }
  667. inline enum CursorLocationEnum Recordset15::GetCursorLocation ( ) {
  668. enum CursorLocationEnum _result;
  669. HRESULT _hr = get_CursorLocation(&_result);
  670. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  671. return _result;
  672. }
  673. inline void Recordset15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
  674. HRESULT _hr = put_CursorLocation(plCursorLoc);
  675. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  676. }
  677. inline _RecordsetPtr Recordset15::NextRecordset ( VARIANT * RecordsAffected ) {
  678. struct _Recordset * _result;
  679. HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result);
  680. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  681. return _RecordsetPtr(_result, false);
  682. }
  683. inline VARIANT_BOOL Recordset15::Supports ( enum CursorOptionEnum CursorOptions ) {
  684. VARIANT_BOOL _result;
  685. HRESULT _hr = raw_Supports(CursorOptions, &_result);
  686. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  687. return _result;
  688. }
  689. inline _variant_t Recordset15::GetCollect ( const _variant_t & Index ) {
  690. VARIANT _result;
  691. VariantInit(&_result);
  692. HRESULT _hr = get_Collect(Index, &_result);
  693. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  694. return _variant_t(_result, false);
  695. }
  696. inline void Recordset15::PutCollect ( const _variant_t & Index, const _variant_t & pvar ) {
  697. HRESULT _hr = put_Collect(Index, pvar);
  698. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  699. }
  700. inline enum MarshalOptionsEnum Recordset15::GetMarshalOptions ( ) {
  701. enum MarshalOptionsEnum _result;
  702. HRESULT _hr = get_MarshalOptions(&_result);
  703. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  704. return _result;
  705. }
  706. inline void Recordset15::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) {
  707. HRESULT _hr = put_MarshalOptions(peMarshal);
  708. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  709. }
  710. inline HRESULT Recordset15::Find ( _bstr_t Criteria, long SkipRecords, enum SearchDirectionEnum SearchDirection, const _variant_t & Start ) {
  711. HRESULT _hr = raw_Find(Criteria, SkipRecords, SearchDirection, Start);
  712. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  713. return _hr;
  714. }
  715. //
  716. // interface Recordset20 wrapper method implementations
  717. //
  718. inline HRESULT Recordset20::Cancel ( ) {
  719. HRESULT _hr = raw_Cancel();
  720. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  721. return _hr;
  722. }
  723. inline IUnknownPtr Recordset20::GetDataSource ( ) {
  724. IUnknown * _result;
  725. HRESULT _hr = get_DataSource(&_result);
  726. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  727. return IUnknownPtr(_result, false);
  728. }
  729. inline void Recordset20::PutRefDataSource ( IUnknown * ppunkDataSource ) {
  730. HRESULT _hr = putref_DataSource(ppunkDataSource);
  731. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  732. }
  733. inline HRESULT Recordset20::_xSave ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) {
  734. HRESULT _hr = raw__xSave(FileName, PersistFormat);
  735. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  736. return _hr;
  737. }
  738. inline IDispatchPtr Recordset20::GetActiveCommand ( ) {
  739. IDispatch * _result;
  740. HRESULT _hr = get_ActiveCommand(&_result);
  741. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  742. return IDispatchPtr(_result, false);
  743. }
  744. inline void Recordset20::PutStayInSync ( VARIANT_BOOL pbStayInSync ) {
  745. HRESULT _hr = put_StayInSync(pbStayInSync);
  746. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  747. }
  748. inline VARIANT_BOOL Recordset20::GetStayInSync ( ) {
  749. VARIANT_BOOL _result;
  750. HRESULT _hr = get_StayInSync(&_result);
  751. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  752. return _result;
  753. }
  754. inline _bstr_t Recordset20::GetString ( enum StringFormatEnum StringFormat, long NumRows, _bstr_t ColumnDelimeter, _bstr_t RowDelimeter, _bstr_t NullExpr ) {
  755. BSTR _result;
  756. HRESULT _hr = raw_GetString(StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr, &_result);
  757. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  758. return _bstr_t(_result, false);
  759. }
  760. inline _bstr_t Recordset20::GetDataMember ( ) {
  761. BSTR _result;
  762. HRESULT _hr = get_DataMember(&_result);
  763. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  764. return _bstr_t(_result, false);
  765. }
  766. inline void Recordset20::PutDataMember ( _bstr_t pbstrDataMember ) {
  767. HRESULT _hr = put_DataMember(pbstrDataMember);
  768. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  769. }
  770. inline enum CompareEnum Recordset20::CompareBookmarks ( const _variant_t & Bookmark1, const _variant_t & Bookmark2 ) {
  771. enum CompareEnum _result;
  772. HRESULT _hr = raw_CompareBookmarks(Bookmark1, Bookmark2, &_result);
  773. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  774. return _result;
  775. }
  776. inline _RecordsetPtr Recordset20::Clone ( enum LockTypeEnum LockType ) {
  777. struct _Recordset * _result;
  778. HRESULT _hr = raw_Clone(LockType, &_result);
  779. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  780. return _RecordsetPtr(_result, false);
  781. }
  782. inline HRESULT Recordset20::Resync ( enum AffectEnum AffectRecords, enum ResyncEnum ResyncValues ) {
  783. HRESULT _hr = raw_Resync(AffectRecords, ResyncValues);
  784. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  785. return _hr;
  786. }
  787. //
  788. // interface Recordset21 wrapper method implementations
  789. //
  790. inline HRESULT Recordset21::Seek ( const _variant_t & KeyValues, enum SeekEnum SeekOption ) {
  791. HRESULT _hr = raw_Seek(KeyValues, SeekOption);
  792. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  793. return _hr;
  794. }
  795. inline void Recordset21::PutIndex ( _bstr_t pbstrIndex ) {
  796. HRESULT _hr = put_Index(pbstrIndex);
  797. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  798. }
  799. inline _bstr_t Recordset21::GetIndex ( ) {
  800. BSTR _result;
  801. HRESULT _hr = get_Index(&_result);
  802. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  803. return _bstr_t(_result, false);
  804. }
  805. //
  806. // interface _Recordset wrapper method implementations
  807. //
  808. inline HRESULT _Recordset::Save ( const _variant_t & Destination, enum PersistFormatEnum PersistFormat ) {
  809. HRESULT _hr = raw_Save(Destination, PersistFormat);
  810. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  811. return _hr;
  812. }
  813. //
  814. // interface Fields15 wrapper method implementations
  815. //
  816. inline FieldPtr Fields15::GetItem ( const _variant_t & Index ) {
  817. struct Field * _result;
  818. HRESULT _hr = get_Item(Index, &_result);
  819. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  820. return FieldPtr(_result, false);
  821. }
  822. //
  823. // interface Fields20 wrapper method implementations
  824. //
  825. inline HRESULT Fields20::_Append ( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib ) {
  826. HRESULT _hr = raw__Append(Name, Type, DefinedSize, Attrib);
  827. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  828. return _hr;
  829. }
  830. inline HRESULT Fields20::Delete ( const _variant_t & Index ) {
  831. HRESULT _hr = raw_Delete(Index);
  832. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  833. return _hr;
  834. }
  835. //
  836. // interface Fields wrapper method implementations
  837. //
  838. inline HRESULT Fields::Append ( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue ) {
  839. HRESULT _hr = raw_Append(Name, Type, DefinedSize, Attrib, FieldValue);
  840. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  841. return _hr;
  842. }
  843. inline HRESULT Fields::Update ( ) {
  844. HRESULT _hr = raw_Update();
  845. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  846. return _hr;
  847. }
  848. inline HRESULT Fields::Resync ( enum ResyncEnum ResyncValues ) {
  849. HRESULT _hr = raw_Resync(ResyncValues);
  850. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  851. return _hr;
  852. }
  853. inline HRESULT Fields::CancelUpdate ( ) {
  854. HRESULT _hr = raw_CancelUpdate();
  855. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  856. return _hr;
  857. }
  858. //
  859. // interface Field20 wrapper method implementations
  860. //
  861. inline long Field20::GetActualSize ( ) {
  862. long _result;
  863. HRESULT _hr = get_ActualSize(&_result);
  864. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  865. return _result;
  866. }
  867. inline long Field20::GetAttributes ( ) {
  868. long _result;
  869. HRESULT _hr = get_Attributes(&_result);
  870. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  871. return _result;
  872. }
  873. inline long Field20::GetDefinedSize ( ) {
  874. long _result;
  875. HRESULT _hr = get_DefinedSize(&_result);
  876. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  877. return _result;
  878. }
  879. inline _bstr_t Field20::GetName ( ) {
  880. BSTR _result;
  881. HRESULT _hr = get_Name(&_result);
  882. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  883. return _bstr_t(_result, false);
  884. }
  885. inline enum DataTypeEnum Field20::GetType ( ) {
  886. enum DataTypeEnum _result;
  887. HRESULT _hr = get_Type(&_result);
  888. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  889. return _result;
  890. }
  891. inline _variant_t Field20::GetValue ( ) {
  892. VARIANT _result;
  893. VariantInit(&_result);
  894. HRESULT _hr = get_Value(&_result);
  895. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  896. return _variant_t(_result, false);
  897. }
  898. inline void Field20::PutValue ( const _variant_t & pvar ) {
  899. HRESULT _hr = put_Value(pvar);
  900. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  901. }
  902. inline unsigned char Field20::GetPrecision ( ) {
  903. unsigned char _result;
  904. HRESULT _hr = get_Precision(&_result);
  905. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  906. return _result;
  907. }
  908. inline unsigned char Field20::GetNumericScale ( ) {
  909. unsigned char _result;
  910. HRESULT _hr = get_NumericScale(&_result);
  911. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  912. return _result;
  913. }
  914. inline HRESULT Field20::AppendChunk ( const _variant_t & Data ) {
  915. HRESULT _hr = raw_AppendChunk(Data);
  916. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  917. return _hr;
  918. }
  919. inline _variant_t Field20::GetChunk ( long Length ) {
  920. VARIANT _result;
  921. VariantInit(&_result);
  922. HRESULT _hr = raw_GetChunk(Length, &_result);
  923. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  924. return _variant_t(_result, false);
  925. }
  926. inline _variant_t Field20::GetOriginalValue ( ) {
  927. VARIANT _result;
  928. VariantInit(&_result);
  929. HRESULT _hr = get_OriginalValue(&_result);
  930. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  931. return _variant_t(_result, false);
  932. }
  933. inline _variant_t Field20::GetUnderlyingValue ( ) {
  934. VARIANT _result;
  935. VariantInit(&_result);
  936. HRESULT _hr = get_UnderlyingValue(&_result);
  937. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  938. return _variant_t(_result, false);
  939. }
  940. inline IUnknownPtr Field20::GetDataFormat ( ) {
  941. IUnknown * _result;
  942. HRESULT _hr = get_DataFormat(&_result);
  943. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  944. return IUnknownPtr(_result, false);
  945. }
  946. inline void Field20::PutRefDataFormat ( IUnknown * ppiDF ) {
  947. HRESULT _hr = putref_DataFormat(ppiDF);
  948. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  949. }
  950. inline void Field20::PutPrecision ( unsigned char pbPrecision ) {
  951. HRESULT _hr = put_Precision(pbPrecision);
  952. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  953. }
  954. inline void Field20::PutNumericScale ( unsigned char pbNumericScale ) {
  955. HRESULT _hr = put_NumericScale(pbNumericScale);
  956. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  957. }
  958. inline void Field20::PutType ( enum DataTypeEnum pDataType ) {
  959. HRESULT _hr = put_Type(pDataType);
  960. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  961. }
  962. inline void Field20::PutDefinedSize ( long pl ) {
  963. HRESULT _hr = put_DefinedSize(pl);
  964. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  965. }
  966. inline void Field20::PutAttributes ( long pl ) {
  967. HRESULT _hr = put_Attributes(pl);
  968. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  969. }
  970. //
  971. // interface Field wrapper method implementations
  972. //
  973. inline long Field::GetStatus ( ) {
  974. long _result;
  975. HRESULT _hr = get_Status(&_result);
  976. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  977. return _result;
  978. }
  979. //
  980. // interface _Parameter wrapper method implementations
  981. //
  982. inline _bstr_t _Parameter::GetName ( ) {
  983. BSTR _result;
  984. HRESULT _hr = get_Name(&_result);
  985. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  986. return _bstr_t(_result, false);
  987. }
  988. inline void _Parameter::PutName ( _bstr_t pbstr ) {
  989. HRESULT _hr = put_Name(pbstr);
  990. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  991. }
  992. inline _variant_t _Parameter::GetValue ( ) {
  993. VARIANT _result;
  994. VariantInit(&_result);
  995. HRESULT _hr = get_Value(&_result);
  996. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  997. return _variant_t(_result, false);
  998. }
  999. inline void _Parameter::PutValue ( const _variant_t & pvar ) {
  1000. HRESULT _hr = put_Value(pvar);
  1001. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1002. }
  1003. inline enum DataTypeEnum _Parameter::GetType ( ) {
  1004. enum DataTypeEnum _result;
  1005. HRESULT _hr = get_Type(&_result);
  1006. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1007. return _result;
  1008. }
  1009. inline void _Parameter::PutType ( enum DataTypeEnum psDataType ) {
  1010. HRESULT _hr = put_Type(psDataType);
  1011. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1012. }
  1013. inline void _Parameter::PutDirection ( enum ParameterDirectionEnum plParmDirection ) {
  1014. HRESULT _hr = put_Direction(plParmDirection);
  1015. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1016. }
  1017. inline enum ParameterDirectionEnum _Parameter::GetDirection ( ) {
  1018. enum ParameterDirectionEnum _result;
  1019. HRESULT _hr = get_Direction(&_result);
  1020. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1021. return _result;
  1022. }
  1023. inline void _Parameter::PutPrecision ( unsigned char pbPrecision ) {
  1024. HRESULT _hr = put_Precision(pbPrecision);
  1025. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1026. }
  1027. inline unsigned char _Parameter::GetPrecision ( ) {
  1028. unsigned char _result;
  1029. HRESULT _hr = get_Precision(&_result);
  1030. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1031. return _result;
  1032. }
  1033. inline void _Parameter::PutNumericScale ( unsigned char pbScale ) {
  1034. HRESULT _hr = put_NumericScale(pbScale);
  1035. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1036. }
  1037. inline unsigned char _Parameter::GetNumericScale ( ) {
  1038. unsigned char _result;
  1039. HRESULT _hr = get_NumericScale(&_result);
  1040. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1041. return _result;
  1042. }
  1043. inline void _Parameter::PutSize ( long pl ) {
  1044. HRESULT _hr = put_Size(pl);
  1045. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1046. }
  1047. inline long _Parameter::GetSize ( ) {
  1048. long _result;
  1049. HRESULT _hr = get_Size(&_result);
  1050. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1051. return _result;
  1052. }
  1053. inline HRESULT _Parameter::AppendChunk ( const _variant_t & Val ) {
  1054. HRESULT _hr = raw_AppendChunk(Val);
  1055. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1056. return _hr;
  1057. }
  1058. inline long _Parameter::GetAttributes ( ) {
  1059. long _result;
  1060. HRESULT _hr = get_Attributes(&_result);
  1061. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1062. return _result;
  1063. }
  1064. inline void _Parameter::PutAttributes ( long plParmAttribs ) {
  1065. HRESULT _hr = put_Attributes(plParmAttribs);
  1066. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1067. }
  1068. //
  1069. // interface Parameters wrapper method implementations
  1070. //
  1071. inline _ParameterPtr Parameters::GetItem ( const _variant_t & Index ) {
  1072. struct _Parameter * _result;
  1073. HRESULT _hr = get_Item(Index, &_result);
  1074. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1075. return _ParameterPtr(_result, false);
  1076. }
  1077. //
  1078. // interface _Command wrapper method implementations
  1079. //
  1080. inline long _Command::GetState ( ) {
  1081. long _result;
  1082. HRESULT _hr = get_State(&_result);
  1083. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1084. return _result;
  1085. }
  1086. inline HRESULT _Command::Cancel ( ) {
  1087. HRESULT _hr = raw_Cancel();
  1088. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1089. return _hr;
  1090. }
  1091. //
  1092. // interface ConnectionEventsVt wrapper method implementations
  1093. //
  1094. inline HRESULT ConnectionEventsVt::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1095. HRESULT _hr = raw_InfoMessage(pError, adStatus, pConnection);
  1096. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1097. return _hr;
  1098. }
  1099. inline HRESULT ConnectionEventsVt::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1100. HRESULT _hr = raw_BeginTransComplete(TransactionLevel, pError, adStatus, pConnection);
  1101. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1102. return _hr;
  1103. }
  1104. inline HRESULT ConnectionEventsVt::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1105. HRESULT _hr = raw_CommitTransComplete(pError, adStatus, pConnection);
  1106. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1107. return _hr;
  1108. }
  1109. inline HRESULT ConnectionEventsVt::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1110. HRESULT _hr = raw_RollbackTransComplete(pError, adStatus, pConnection);
  1111. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1112. return _hr;
  1113. }
  1114. inline HRESULT ConnectionEventsVt::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  1115. HRESULT _hr = raw_WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
  1116. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1117. return _hr;
  1118. }
  1119. inline HRESULT ConnectionEventsVt::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  1120. HRESULT _hr = raw_ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
  1121. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1122. return _hr;
  1123. }
  1124. inline HRESULT ConnectionEventsVt::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1125. HRESULT _hr = raw_WillConnect(ConnectionString, UserID, Password, Options, adStatus, pConnection);
  1126. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1127. return _hr;
  1128. }
  1129. inline HRESULT ConnectionEventsVt::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1130. HRESULT _hr = raw_ConnectComplete(pError, adStatus, pConnection);
  1131. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1132. return _hr;
  1133. }
  1134. inline HRESULT ConnectionEventsVt::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1135. HRESULT _hr = raw_Disconnect(adStatus, pConnection);
  1136. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1137. return _hr;
  1138. }
  1139. //
  1140. // interface RecordsetEventsVt wrapper method implementations
  1141. //
  1142. inline HRESULT RecordsetEventsVt::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1143. HRESULT _hr = raw_WillChangeField(cFields, Fields, adStatus, pRecordset);
  1144. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1145. return _hr;
  1146. }
  1147. inline HRESULT RecordsetEventsVt::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1148. HRESULT _hr = raw_FieldChangeComplete(cFields, Fields, pError, adStatus, pRecordset);
  1149. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1150. return _hr;
  1151. }
  1152. inline HRESULT RecordsetEventsVt::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1153. HRESULT _hr = raw_WillChangeRecord(adReason, cRecords, adStatus, pRecordset);
  1154. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1155. return _hr;
  1156. }
  1157. inline HRESULT RecordsetEventsVt::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1158. HRESULT _hr = raw_RecordChangeComplete(adReason, cRecords, pError, adStatus, pRecordset);
  1159. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1160. return _hr;
  1161. }
  1162. inline HRESULT RecordsetEventsVt::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1163. HRESULT _hr = raw_WillChangeRecordset(adReason, adStatus, pRecordset);
  1164. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1165. return _hr;
  1166. }
  1167. inline HRESULT RecordsetEventsVt::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1168. HRESULT _hr = raw_RecordsetChangeComplete(adReason, pError, adStatus, pRecordset);
  1169. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1170. return _hr;
  1171. }
  1172. inline HRESULT RecordsetEventsVt::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1173. HRESULT _hr = raw_WillMove(adReason, adStatus, pRecordset);
  1174. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1175. return _hr;
  1176. }
  1177. inline HRESULT RecordsetEventsVt::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1178. HRESULT _hr = raw_MoveComplete(adReason, pError, adStatus, pRecordset);
  1179. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1180. return _hr;
  1181. }
  1182. inline HRESULT RecordsetEventsVt::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1183. HRESULT _hr = raw_EndOfRecordset(fMoreData, adStatus, pRecordset);
  1184. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1185. return _hr;
  1186. }
  1187. inline HRESULT RecordsetEventsVt::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1188. HRESULT _hr = raw_FetchProgress(Progress, MaxProgress, adStatus, pRecordset);
  1189. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1190. return _hr;
  1191. }
  1192. inline HRESULT RecordsetEventsVt::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1193. HRESULT _hr = raw_FetchComplete(pError, adStatus, pRecordset);
  1194. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1195. return _hr;
  1196. }
  1197. //
  1198. // dispinterface ConnectionEvents wrapper method implementations
  1199. //
  1200. inline HRESULT ConnectionEvents::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1201. HRESULT _result;
  1202. _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1203. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1204. return _result;
  1205. }
  1206. inline HRESULT ConnectionEvents::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1207. HRESULT _result;
  1208. _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1209. L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection);
  1210. return _result;
  1211. }
  1212. inline HRESULT ConnectionEvents::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1213. HRESULT _result;
  1214. _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1215. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1216. return _result;
  1217. }
  1218. inline HRESULT ConnectionEvents::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1219. HRESULT _result;
  1220. _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1221. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1222. return _result;
  1223. }
  1224. inline HRESULT ConnectionEvents::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  1225. HRESULT _result;
  1226. _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1227. L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
  1228. return _result;
  1229. }
  1230. inline HRESULT ConnectionEvents::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  1231. HRESULT _result;
  1232. _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1233. L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
  1234. return _result;
  1235. }
  1236. inline HRESULT ConnectionEvents::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1237. HRESULT _result;
  1238. _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1239. L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection);
  1240. return _result;
  1241. }
  1242. inline HRESULT ConnectionEvents::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1243. HRESULT _result;
  1244. _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1245. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1246. return _result;
  1247. }
  1248. inline HRESULT ConnectionEvents::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1249. HRESULT _result;
  1250. _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1251. L"\x4003\x0009", adStatus, pConnection);
  1252. return _result;
  1253. }
  1254. //
  1255. // dispinterface RecordsetEvents wrapper method implementations
  1256. //
  1257. inline HRESULT RecordsetEvents::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1258. HRESULT _result;
  1259. _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1260. L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset);
  1261. return _result;
  1262. }
  1263. inline HRESULT RecordsetEvents::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1264. HRESULT _result;
  1265. _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1266. L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset);
  1267. return _result;
  1268. }
  1269. inline HRESULT RecordsetEvents::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1270. HRESULT _result;
  1271. _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1272. L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset);
  1273. return _result;
  1274. }
  1275. inline HRESULT RecordsetEvents::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1276. HRESULT _result;
  1277. _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1278. L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset);
  1279. return _result;
  1280. }
  1281. inline HRESULT RecordsetEvents::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1282. HRESULT _result;
  1283. _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1284. L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
  1285. return _result;
  1286. }
  1287. inline HRESULT RecordsetEvents::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1288. HRESULT _result;
  1289. _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1290. L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
  1291. return _result;
  1292. }
  1293. inline HRESULT RecordsetEvents::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1294. HRESULT _result;
  1295. _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1296. L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
  1297. return _result;
  1298. }
  1299. inline HRESULT RecordsetEvents::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1300. HRESULT _result;
  1301. _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1302. L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
  1303. return _result;
  1304. }
  1305. inline HRESULT RecordsetEvents::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1306. HRESULT _result;
  1307. _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1308. L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset);
  1309. return _result;
  1310. }
  1311. inline HRESULT RecordsetEvents::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1312. HRESULT _result;
  1313. _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1314. L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset);
  1315. return _result;
  1316. }
  1317. inline HRESULT RecordsetEvents::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1318. HRESULT _result;
  1319. _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1320. L"\x0009\x4003\x0009", pError, adStatus, pRecordset);
  1321. return _result;
  1322. }
  1323. //
  1324. // interface ADOConnectionConstruction15 wrapper method implementations
  1325. //
  1326. inline IUnknownPtr ADOConnectionConstruction15::GetDSO ( ) {
  1327. IUnknown * _result;
  1328. HRESULT _hr = get_DSO(&_result);
  1329. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1330. return IUnknownPtr(_result, false);
  1331. }
  1332. inline IUnknownPtr ADOConnectionConstruction15::GetSession ( ) {
  1333. IUnknown * _result;
  1334. HRESULT _hr = get_Session(&_result);
  1335. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1336. return IUnknownPtr(_result, false);
  1337. }
  1338. inline HRESULT ADOConnectionConstruction15::WrapDSOandSession ( IUnknown * pDSO, IUnknown * pSession ) {
  1339. HRESULT _hr = raw_WrapDSOandSession(pDSO, pSession);
  1340. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1341. return _hr;
  1342. }
  1343. //
  1344. // interface _Record wrapper method implementations
  1345. //
  1346. inline _variant_t _Record::GetActiveConnection ( ) {
  1347. VARIANT _result;
  1348. VariantInit(&_result);
  1349. HRESULT _hr = get_ActiveConnection(&_result);
  1350. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1351. return _variant_t(_result, false);
  1352. }
  1353. inline void _Record::PutActiveConnection ( _bstr_t pvar ) {
  1354. HRESULT _hr = put_ActiveConnection(pvar);
  1355. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1356. }
  1357. inline void _Record::PutRefActiveConnection ( struct _Connection * pvar ) {
  1358. HRESULT _hr = putref_ActiveConnection(pvar);
  1359. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1360. }
  1361. inline enum ObjectStateEnum _Record::GetState ( ) {
  1362. enum ObjectStateEnum _result;
  1363. HRESULT _hr = get_State(&_result);
  1364. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1365. return _result;
  1366. }
  1367. inline _variant_t _Record::GetSource ( ) {
  1368. VARIANT _result;
  1369. VariantInit(&_result);
  1370. HRESULT _hr = get_Source(&_result);
  1371. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1372. return _variant_t(_result, false);
  1373. }
  1374. inline void _Record::PutSource ( _bstr_t pvar ) {
  1375. HRESULT _hr = put_Source(pvar);
  1376. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1377. }
  1378. inline void _Record::PutRefSource ( IDispatch * pvar ) {
  1379. HRESULT _hr = putref_Source(pvar);
  1380. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1381. }
  1382. inline enum ConnectModeEnum _Record::GetMode ( ) {
  1383. enum ConnectModeEnum _result;
  1384. HRESULT _hr = get_Mode(&_result);
  1385. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1386. return _result;
  1387. }
  1388. inline void _Record::PutMode ( enum ConnectModeEnum pMode ) {
  1389. HRESULT _hr = put_Mode(pMode);
  1390. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1391. }
  1392. inline _bstr_t _Record::GetParentURL ( ) {
  1393. BSTR _result;
  1394. HRESULT _hr = get_ParentURL(&_result);
  1395. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1396. return _bstr_t(_result, false);
  1397. }
  1398. inline _bstr_t _Record::MoveRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum MoveRecordOptionsEnum Options, VARIANT_BOOL Async ) {
  1399. BSTR _result;
  1400. HRESULT _hr = raw_MoveRecord(Source, Destination, UserName, Password, Options, Async, &_result);
  1401. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1402. return _bstr_t(_result, false);
  1403. }
  1404. inline _bstr_t _Record::CopyRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum CopyRecordOptionsEnum Options, VARIANT_BOOL Async ) {
  1405. BSTR _result;
  1406. HRESULT _hr = raw_CopyRecord(Source, Destination, UserName, Password, Options, Async, &_result);
  1407. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1408. return _bstr_t(_result, false);
  1409. }
  1410. inline HRESULT _Record::DeleteRecord ( _bstr_t Source, VARIANT_BOOL Async ) {
  1411. HRESULT _hr = raw_DeleteRecord(Source, Async);
  1412. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1413. return _hr;
  1414. }
  1415. inline HRESULT _Record::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  1416. HRESULT _hr = raw_Open(Source, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  1417. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1418. return _hr;
  1419. }
  1420. inline HRESULT _Record::Close ( ) {
  1421. HRESULT _hr = raw_Close();
  1422. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1423. return _hr;
  1424. }
  1425. inline FieldsPtr _Record::GetFields ( ) {
  1426. struct Fields * _result;
  1427. HRESULT _hr = get_Fields(&_result);
  1428. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1429. return FieldsPtr(_result, false);
  1430. }
  1431. inline enum RecordTypeEnum _Record::GetRecordType ( ) {
  1432. enum RecordTypeEnum _result;
  1433. HRESULT _hr = get_RecordType(&_result);
  1434. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1435. return _result;
  1436. }
  1437. inline _RecordsetPtr _Record::GetChildren ( ) {
  1438. struct _Recordset * _result;
  1439. HRESULT _hr = raw_GetChildren(&_result);
  1440. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1441. return _RecordsetPtr(_result, false);
  1442. }
  1443. inline HRESULT _Record::Cancel ( ) {
  1444. HRESULT _hr = raw_Cancel();
  1445. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1446. return _hr;
  1447. }
  1448. //
  1449. // interface IRecFields wrapper method implementations
  1450. //
  1451. inline HRESULT IRecFields::ADOCheck ( ) {
  1452. HRESULT _hr = raw_ADOCheck();
  1453. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1454. return _hr;
  1455. }
  1456. //
  1457. // interface _Stream wrapper method implementations
  1458. //
  1459. inline long _Stream::GetSize ( ) {
  1460. long _result;
  1461. HRESULT _hr = get_Size(&_result);
  1462. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1463. return _result;
  1464. }
  1465. inline VARIANT_BOOL _Stream::GetEOS ( ) {
  1466. VARIANT_BOOL _result;
  1467. HRESULT _hr = get_EOS(&_result);
  1468. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1469. return _result;
  1470. }
  1471. inline long _Stream::GetPosition ( ) {
  1472. long _result;
  1473. HRESULT _hr = get_Position(&_result);
  1474. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1475. return _result;
  1476. }
  1477. inline void _Stream::PutPosition ( long pPos ) {
  1478. HRESULT _hr = put_Position(pPos);
  1479. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1480. }
  1481. inline enum StreamTypeEnum _Stream::GetType ( ) {
  1482. enum StreamTypeEnum _result;
  1483. HRESULT _hr = get_Type(&_result);
  1484. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1485. return _result;
  1486. }
  1487. inline void _Stream::PutType ( enum StreamTypeEnum ptype ) {
  1488. HRESULT _hr = put_Type(ptype);
  1489. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1490. }
  1491. inline enum LineSeparatorEnum _Stream::GetLineSeparator ( ) {
  1492. enum LineSeparatorEnum _result;
  1493. HRESULT _hr = get_LineSeparator(&_result);
  1494. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1495. return _result;
  1496. }
  1497. inline void _Stream::PutLineSeparator ( enum LineSeparatorEnum pLS ) {
  1498. HRESULT _hr = put_LineSeparator(pLS);
  1499. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1500. }
  1501. inline enum ObjectStateEnum _Stream::GetState ( ) {
  1502. enum ObjectStateEnum _result;
  1503. HRESULT _hr = get_State(&_result);
  1504. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1505. return _result;
  1506. }
  1507. inline enum ConnectModeEnum _Stream::GetMode ( ) {
  1508. enum ConnectModeEnum _result;
  1509. HRESULT _hr = get_Mode(&_result);
  1510. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1511. return _result;
  1512. }
  1513. inline void _Stream::PutMode ( enum ConnectModeEnum pMode ) {
  1514. HRESULT _hr = put_Mode(pMode);
  1515. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1516. }
  1517. inline _bstr_t _Stream::GetCharset ( ) {
  1518. BSTR _result;
  1519. HRESULT _hr = get_Charset(&_result);
  1520. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1521. return _bstr_t(_result, false);
  1522. }
  1523. inline void _Stream::PutCharset ( _bstr_t pbstrCharset ) {
  1524. HRESULT _hr = put_Charset(pbstrCharset);
  1525. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1526. }
  1527. inline _variant_t _Stream::Read ( long NumBytes ) {
  1528. VARIANT _result;
  1529. VariantInit(&_result);
  1530. HRESULT _hr = raw_Read(NumBytes, &_result);
  1531. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1532. return _variant_t(_result, false);
  1533. }
  1534. inline HRESULT _Stream::Open ( const _variant_t & Source, enum ConnectModeEnum Mode, enum StreamOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  1535. HRESULT _hr = raw_Open(Source, Mode, Options, UserName, Password);
  1536. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1537. return _hr;
  1538. }
  1539. inline HRESULT _Stream::Close ( ) {
  1540. HRESULT _hr = raw_Close();
  1541. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1542. return _hr;
  1543. }
  1544. inline HRESULT _Stream::SkipLine ( ) {
  1545. HRESULT _hr = raw_SkipLine();
  1546. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1547. return _hr;
  1548. }
  1549. inline HRESULT _Stream::Write ( const _variant_t & Buffer ) {
  1550. HRESULT _hr = raw_Write(Buffer);
  1551. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1552. return _hr;
  1553. }
  1554. inline HRESULT _Stream::SetEOS ( ) {
  1555. HRESULT _hr = raw_SetEOS();
  1556. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1557. return _hr;
  1558. }
  1559. inline HRESULT _Stream::CopyTo ( struct _Stream * DestStream, long CharNumber ) {
  1560. HRESULT _hr = raw_CopyTo(DestStream, CharNumber);
  1561. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1562. return _hr;
  1563. }
  1564. inline HRESULT _Stream::Flush ( ) {
  1565. HRESULT _hr = raw_Flush();
  1566. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1567. return _hr;
  1568. }
  1569. inline HRESULT _Stream::SaveToFile ( _bstr_t FileName, enum SaveOptionsEnum Options ) {
  1570. HRESULT _hr = raw_SaveToFile(FileName, Options);
  1571. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1572. return _hr;
  1573. }
  1574. inline HRESULT _Stream::LoadFromFile ( _bstr_t FileName ) {
  1575. HRESULT _hr = raw_LoadFromFile(FileName);
  1576. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1577. return _hr;
  1578. }
  1579. inline _bstr_t _Stream::ReadText ( long NumChars ) {
  1580. BSTR _result;
  1581. HRESULT _hr = raw_ReadText(NumChars, &_result);
  1582. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1583. return _bstr_t(_result, false);
  1584. }
  1585. inline HRESULT _Stream::WriteText ( _bstr_t Data, enum StreamWriteEnum Options ) {
  1586. HRESULT _hr = raw_WriteText(Data, Options);
  1587. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1588. return _hr;
  1589. }
  1590. inline HRESULT _Stream::Cancel ( ) {
  1591. HRESULT _hr = raw_Cancel();
  1592. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1593. return _hr;
  1594. }
  1595. //
  1596. // interface ADORecordConstruction wrapper method implementations
  1597. //
  1598. inline IUnknownPtr ADORecordConstruction::GetRow ( ) {
  1599. IUnknown * _result;
  1600. HRESULT _hr = get_Row(&_result);
  1601. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1602. return IUnknownPtr(_result, false);
  1603. }
  1604. inline void ADORecordConstruction::PutRow ( IUnknown * ppRow ) {
  1605. HRESULT _hr = put_Row(ppRow);
  1606. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1607. }
  1608. inline void ADORecordConstruction::PutParentRow ( IUnknown * _arg1 ) {
  1609. HRESULT _hr = put_ParentRow(_arg1);
  1610. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1611. }
  1612. //
  1613. // interface ADOStreamConstruction wrapper method implementations
  1614. //
  1615. inline IUnknownPtr ADOStreamConstruction::GetStream ( ) {
  1616. IUnknown * _result;
  1617. HRESULT _hr = get_Stream(&_result);
  1618. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1619. return IUnknownPtr(_result, false);
  1620. }
  1621. inline void ADOStreamConstruction::PutStream ( IUnknown * ppStm ) {
  1622. HRESULT _hr = put_Stream(ppStm);
  1623. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1624. }
  1625. //
  1626. // interface ADOCommandConstruction wrapper method implementations
  1627. //
  1628. inline IUnknownPtr ADOCommandConstruction::GetOLEDBCommand ( ) {
  1629. IUnknown * _result;
  1630. HRESULT _hr = get_OLEDBCommand(&_result);
  1631. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1632. return IUnknownPtr(_result, false);
  1633. }
  1634. inline void ADOCommandConstruction::PutOLEDBCommand ( IUnknown * ppOLEDBCommand ) {
  1635. HRESULT _hr = put_OLEDBCommand(ppOLEDBCommand);
  1636. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1637. }
  1638. //
  1639. // interface ADORecordsetConstruction wrapper method implementations
  1640. //
  1641. inline IUnknownPtr ADORecordsetConstruction::GetRowset ( ) {
  1642. IUnknown * _result;
  1643. HRESULT _hr = get_Rowset(&_result);
  1644. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1645. return IUnknownPtr(_result, false);
  1646. }
  1647. inline void ADORecordsetConstruction::PutRowset ( IUnknown * ppRowset ) {
  1648. HRESULT _hr = put_Rowset(ppRowset);
  1649. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1650. }
  1651. inline long ADORecordsetConstruction::GetChapter ( ) {
  1652. long _result;
  1653. HRESULT _hr = get_Chapter(&_result);
  1654. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1655. return _result;
  1656. }
  1657. inline void ADORecordsetConstruction::PutChapter ( long plChapter ) {
  1658. HRESULT _hr = put_Chapter(plChapter);
  1659. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1660. }
  1661. inline IUnknownPtr ADORecordsetConstruction::GetRowPosition ( ) {
  1662. IUnknown * _result;
  1663. HRESULT _hr = get_RowPosition(&_result);
  1664. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1665. return IUnknownPtr(_result, false);
  1666. }
  1667. inline void ADORecordsetConstruction::PutRowPosition ( IUnknown * ppRowPos ) {
  1668. HRESULT _hr = put_RowPosition(ppRowPos);
  1669. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1670. }
  1671. //
  1672. // interface Field15 wrapper method implementations
  1673. //
  1674. inline long Field15::GetActualSize ( ) {
  1675. long _result;
  1676. HRESULT _hr = get_ActualSize(&_result);
  1677. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1678. return _result;
  1679. }
  1680. inline long Field15::GetAttributes ( ) {
  1681. long _result;
  1682. HRESULT _hr = get_Attributes(&_result);
  1683. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1684. return _result;
  1685. }
  1686. inline long Field15::GetDefinedSize ( ) {
  1687. long _result;
  1688. HRESULT _hr = get_DefinedSize(&_result);
  1689. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1690. return _result;
  1691. }
  1692. inline _bstr_t Field15::GetName ( ) {
  1693. BSTR _result;
  1694. HRESULT _hr = get_Name(&_result);
  1695. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1696. return _bstr_t(_result, false);
  1697. }
  1698. inline enum DataTypeEnum Field15::GetType ( ) {
  1699. enum DataTypeEnum _result;
  1700. HRESULT _hr = get_Type(&_result);
  1701. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1702. return _result;
  1703. }
  1704. inline _variant_t Field15::GetValue ( ) {
  1705. VARIANT _result;
  1706. VariantInit(&_result);
  1707. HRESULT _hr = get_Value(&_result);
  1708. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1709. return _variant_t(_result, false);
  1710. }
  1711. inline void Field15::PutValue ( const _variant_t & pvar ) {
  1712. HRESULT _hr = put_Value(pvar);
  1713. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1714. }
  1715. inline unsigned char Field15::GetPrecision ( ) {
  1716. unsigned char _result;
  1717. HRESULT _hr = get_Precision(&_result);
  1718. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1719. return _result;
  1720. }
  1721. inline unsigned char Field15::GetNumericScale ( ) {
  1722. unsigned char _result;
  1723. HRESULT _hr = get_NumericScale(&_result);
  1724. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1725. return _result;
  1726. }
  1727. inline HRESULT Field15::AppendChunk ( const _variant_t & Data ) {
  1728. HRESULT _hr = raw_AppendChunk(Data);
  1729. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1730. return _hr;
  1731. }
  1732. inline _variant_t Field15::GetChunk ( long Length ) {
  1733. VARIANT _result;
  1734. VariantInit(&_result);
  1735. HRESULT _hr = raw_GetChunk(Length, &_result);
  1736. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1737. return _variant_t(_result, false);
  1738. }
  1739. inline _variant_t Field15::GetOriginalValue ( ) {
  1740. VARIANT _result;
  1741. VariantInit(&_result);
  1742. HRESULT _hr = get_OriginalValue(&_result);
  1743. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1744. return _variant_t(_result, false);
  1745. }
  1746. inline _variant_t Field15::GetUnderlyingValue ( ) {
  1747. VARIANT _result;
  1748. VariantInit(&_result);
  1749. HRESULT _hr = get_UnderlyingValue(&_result);
  1750. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1751. return _variant_t(_result, false);
  1752. }