msado15.tli 73 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126
  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8168.0 (ea61aaa1).
  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 08/12/10 at 16:49:18 - 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, ADO_LONGPTR 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 PositionEnum_Param Recordset15::GetAbsolutePosition ( ) {
  400. PositionEnum_Param _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 ( PositionEnum_Param 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::GetadoEOF ( ) {
  462. VARIANT_BOOL _result;
  463. HRESULT _hr = get_adoEOF(&_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 ADO_LONGPTR Recordset15::GetMaxRecords ( ) {
  484. ADO_LONGPTR _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 ( ADO_LONGPTR plMaxRecords ) {
  490. HRESULT _hr = put_MaxRecords(plMaxRecords);
  491. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  492. }
  493. inline ADO_LONGPTR Recordset15::GetRecordCount ( ) {
  494. ADO_LONGPTR _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 ( ADO_LONGPTR 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 PositionEnum_Param Recordset15::GetAbsolutePage ( ) {
  587. PositionEnum_Param _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 ( PositionEnum_Param 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 ADO_LONGPTR Recordset15::GetPageCount ( ) {
  614. ADO_LONGPTR _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, ADO_LONGPTR 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, ADO_LONGPTR 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, ADO_LONGPTR 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 ADO_LONGPTR Field20::GetActualSize ( ) {
  862. ADO_LONGPTR _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 ADO_LONGPTR Field20::GetDefinedSize ( ) {
  874. ADO_LONGPTR _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 ( ADO_LONGPTR 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 ( ADO_LONGPTR pl ) {
  1044. HRESULT _hr = put_Size(pl);
  1045. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1046. }
  1047. inline ADO_LONGPTR _Parameter::GetSize ( ) {
  1048. ADO_LONGPTR _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 Command25 wrapper method implementations
  1079. //
  1080. inline long Command25::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 Command25::Cancel ( ) {
  1087. HRESULT _hr = raw_Cancel();
  1088. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1089. return _hr;
  1090. }
  1091. //
  1092. // interface _Command wrapper method implementations
  1093. //
  1094. inline void _Command::PutRefCommandStream ( IUnknown * pvStream ) {
  1095. HRESULT _hr = putref_CommandStream(pvStream);
  1096. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1097. }
  1098. inline _variant_t _Command::GetCommandStream ( ) {
  1099. VARIANT _result;
  1100. VariantInit(&_result);
  1101. HRESULT _hr = get_CommandStream(&_result);
  1102. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1103. return _variant_t(_result, false);
  1104. }
  1105. inline void _Command::PutDialect ( _bstr_t pbstrDialect ) {
  1106. HRESULT _hr = put_Dialect(pbstrDialect);
  1107. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1108. }
  1109. inline _bstr_t _Command::GetDialect ( ) {
  1110. BSTR _result;
  1111. HRESULT _hr = get_Dialect(&_result);
  1112. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1113. return _bstr_t(_result, false);
  1114. }
  1115. inline void _Command::PutNamedParameters ( VARIANT_BOOL pfNamedParameters ) {
  1116. HRESULT _hr = put_NamedParameters(pfNamedParameters);
  1117. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1118. }
  1119. inline VARIANT_BOOL _Command::GetNamedParameters ( ) {
  1120. VARIANT_BOOL _result;
  1121. HRESULT _hr = get_NamedParameters(&_result);
  1122. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1123. return _result;
  1124. }
  1125. //
  1126. // interface ConnectionEventsVt wrapper method implementations
  1127. //
  1128. inline HRESULT ConnectionEventsVt::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1129. HRESULT _hr = raw_InfoMessage(pError, adStatus, pConnection);
  1130. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1131. return _hr;
  1132. }
  1133. inline HRESULT ConnectionEventsVt::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1134. HRESULT _hr = raw_BeginTransComplete(TransactionLevel, pError, adStatus, pConnection);
  1135. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1136. return _hr;
  1137. }
  1138. inline HRESULT ConnectionEventsVt::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1139. HRESULT _hr = raw_CommitTransComplete(pError, adStatus, pConnection);
  1140. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1141. return _hr;
  1142. }
  1143. inline HRESULT ConnectionEventsVt::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1144. HRESULT _hr = raw_RollbackTransComplete(pError, adStatus, pConnection);
  1145. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1146. return _hr;
  1147. }
  1148. 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 ) {
  1149. HRESULT _hr = raw_WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
  1150. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1151. return _hr;
  1152. }
  1153. inline HRESULT ConnectionEventsVt::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  1154. HRESULT _hr = raw_ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
  1155. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1156. return _hr;
  1157. }
  1158. inline HRESULT ConnectionEventsVt::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1159. HRESULT _hr = raw_WillConnect(ConnectionString, UserID, Password, Options, adStatus, pConnection);
  1160. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1161. return _hr;
  1162. }
  1163. inline HRESULT ConnectionEventsVt::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1164. HRESULT _hr = raw_ConnectComplete(pError, adStatus, pConnection);
  1165. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1166. return _hr;
  1167. }
  1168. inline HRESULT ConnectionEventsVt::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1169. HRESULT _hr = raw_Disconnect(adStatus, pConnection);
  1170. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1171. return _hr;
  1172. }
  1173. //
  1174. // interface RecordsetEventsVt wrapper method implementations
  1175. //
  1176. inline HRESULT RecordsetEventsVt::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1177. HRESULT _hr = raw_WillChangeField(cFields, Fields, adStatus, pRecordset);
  1178. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1179. return _hr;
  1180. }
  1181. inline HRESULT RecordsetEventsVt::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1182. HRESULT _hr = raw_FieldChangeComplete(cFields, Fields, pError, adStatus, pRecordset);
  1183. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1184. return _hr;
  1185. }
  1186. inline HRESULT RecordsetEventsVt::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1187. HRESULT _hr = raw_WillChangeRecord(adReason, cRecords, adStatus, pRecordset);
  1188. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1189. return _hr;
  1190. }
  1191. inline HRESULT RecordsetEventsVt::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1192. HRESULT _hr = raw_RecordChangeComplete(adReason, cRecords, pError, adStatus, pRecordset);
  1193. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1194. return _hr;
  1195. }
  1196. inline HRESULT RecordsetEventsVt::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1197. HRESULT _hr = raw_WillChangeRecordset(adReason, adStatus, pRecordset);
  1198. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1199. return _hr;
  1200. }
  1201. inline HRESULT RecordsetEventsVt::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1202. HRESULT _hr = raw_RecordsetChangeComplete(adReason, pError, adStatus, pRecordset);
  1203. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1204. return _hr;
  1205. }
  1206. inline HRESULT RecordsetEventsVt::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1207. HRESULT _hr = raw_WillMove(adReason, adStatus, pRecordset);
  1208. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1209. return _hr;
  1210. }
  1211. inline HRESULT RecordsetEventsVt::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1212. HRESULT _hr = raw_MoveComplete(adReason, pError, adStatus, pRecordset);
  1213. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1214. return _hr;
  1215. }
  1216. inline HRESULT RecordsetEventsVt::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1217. HRESULT _hr = raw_EndOfRecordset(fMoreData, adStatus, pRecordset);
  1218. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1219. return _hr;
  1220. }
  1221. inline HRESULT RecordsetEventsVt::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1222. HRESULT _hr = raw_FetchProgress(Progress, MaxProgress, adStatus, pRecordset);
  1223. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1224. return _hr;
  1225. }
  1226. inline HRESULT RecordsetEventsVt::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1227. HRESULT _hr = raw_FetchComplete(pError, adStatus, pRecordset);
  1228. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1229. return _hr;
  1230. }
  1231. //
  1232. // dispinterface ConnectionEvents wrapper method implementations
  1233. //
  1234. inline HRESULT ConnectionEvents::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1235. HRESULT _result;
  1236. _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1237. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1238. return _result;
  1239. }
  1240. inline HRESULT ConnectionEvents::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1241. HRESULT _result;
  1242. _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1243. L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection);
  1244. return _result;
  1245. }
  1246. inline HRESULT ConnectionEvents::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1247. HRESULT _result;
  1248. _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1249. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1250. return _result;
  1251. }
  1252. inline HRESULT ConnectionEvents::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1253. HRESULT _result;
  1254. _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1255. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1256. return _result;
  1257. }
  1258. 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 ) {
  1259. HRESULT _result;
  1260. _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1261. L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
  1262. return _result;
  1263. }
  1264. inline HRESULT ConnectionEvents::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  1265. HRESULT _result;
  1266. _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1267. L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
  1268. return _result;
  1269. }
  1270. inline HRESULT ConnectionEvents::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1271. HRESULT _result;
  1272. _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1273. L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection);
  1274. return _result;
  1275. }
  1276. inline HRESULT ConnectionEvents::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1277. HRESULT _result;
  1278. _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1279. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1280. return _result;
  1281. }
  1282. inline HRESULT ConnectionEvents::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  1283. HRESULT _result;
  1284. _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1285. L"\x4003\x0009", adStatus, pConnection);
  1286. return _result;
  1287. }
  1288. //
  1289. // dispinterface RecordsetEvents wrapper method implementations
  1290. //
  1291. inline HRESULT RecordsetEvents::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1292. HRESULT _result;
  1293. _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1294. L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset);
  1295. return _result;
  1296. }
  1297. inline HRESULT RecordsetEvents::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1298. HRESULT _result;
  1299. _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1300. L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset);
  1301. return _result;
  1302. }
  1303. inline HRESULT RecordsetEvents::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1304. HRESULT _result;
  1305. _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1306. L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset);
  1307. return _result;
  1308. }
  1309. inline HRESULT RecordsetEvents::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1310. HRESULT _result;
  1311. _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1312. L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset);
  1313. return _result;
  1314. }
  1315. inline HRESULT RecordsetEvents::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1316. HRESULT _result;
  1317. _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1318. L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
  1319. return _result;
  1320. }
  1321. inline HRESULT RecordsetEvents::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1322. HRESULT _result;
  1323. _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1324. L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
  1325. return _result;
  1326. }
  1327. inline HRESULT RecordsetEvents::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1328. HRESULT _result;
  1329. _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1330. L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
  1331. return _result;
  1332. }
  1333. inline HRESULT RecordsetEvents::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1334. HRESULT _result;
  1335. _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1336. L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
  1337. return _result;
  1338. }
  1339. inline HRESULT RecordsetEvents::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1340. HRESULT _result;
  1341. _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1342. L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset);
  1343. return _result;
  1344. }
  1345. inline HRESULT RecordsetEvents::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1346. HRESULT _result;
  1347. _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1348. L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset);
  1349. return _result;
  1350. }
  1351. inline HRESULT RecordsetEvents::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  1352. HRESULT _result;
  1353. _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1354. L"\x0009\x4003\x0009", pError, adStatus, pRecordset);
  1355. return _result;
  1356. }
  1357. //
  1358. // interface ADOConnectionConstruction15 wrapper method implementations
  1359. //
  1360. inline IUnknownPtr ADOConnectionConstruction15::GetDSO ( ) {
  1361. IUnknown * _result;
  1362. HRESULT _hr = get_DSO(&_result);
  1363. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1364. return IUnknownPtr(_result, false);
  1365. }
  1366. inline IUnknownPtr ADOConnectionConstruction15::GetSession ( ) {
  1367. IUnknown * _result;
  1368. HRESULT _hr = get_Session(&_result);
  1369. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1370. return IUnknownPtr(_result, false);
  1371. }
  1372. inline HRESULT ADOConnectionConstruction15::WrapDSOandSession ( IUnknown * pDSO, IUnknown * pSession ) {
  1373. HRESULT _hr = raw_WrapDSOandSession(pDSO, pSession);
  1374. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1375. return _hr;
  1376. }
  1377. //
  1378. // interface _Record wrapper method implementations
  1379. //
  1380. inline _variant_t _Record::GetActiveConnection ( ) {
  1381. VARIANT _result;
  1382. VariantInit(&_result);
  1383. HRESULT _hr = get_ActiveConnection(&_result);
  1384. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1385. return _variant_t(_result, false);
  1386. }
  1387. inline void _Record::PutActiveConnection ( _bstr_t pvar ) {
  1388. HRESULT _hr = put_ActiveConnection(pvar);
  1389. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1390. }
  1391. inline void _Record::PutRefActiveConnection ( struct _Connection * pvar ) {
  1392. HRESULT _hr = putref_ActiveConnection(pvar);
  1393. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1394. }
  1395. inline enum ObjectStateEnum _Record::GetState ( ) {
  1396. enum ObjectStateEnum _result;
  1397. HRESULT _hr = get_State(&_result);
  1398. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1399. return _result;
  1400. }
  1401. inline _variant_t _Record::GetSource ( ) {
  1402. VARIANT _result;
  1403. VariantInit(&_result);
  1404. HRESULT _hr = get_Source(&_result);
  1405. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1406. return _variant_t(_result, false);
  1407. }
  1408. inline void _Record::PutSource ( _bstr_t pvar ) {
  1409. HRESULT _hr = put_Source(pvar);
  1410. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1411. }
  1412. inline void _Record::PutRefSource ( IDispatch * pvar ) {
  1413. HRESULT _hr = putref_Source(pvar);
  1414. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1415. }
  1416. inline enum ConnectModeEnum _Record::GetMode ( ) {
  1417. enum ConnectModeEnum _result;
  1418. HRESULT _hr = get_Mode(&_result);
  1419. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1420. return _result;
  1421. }
  1422. inline void _Record::PutMode ( enum ConnectModeEnum pMode ) {
  1423. HRESULT _hr = put_Mode(pMode);
  1424. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1425. }
  1426. inline _bstr_t _Record::GetParentURL ( ) {
  1427. BSTR _result;
  1428. HRESULT _hr = get_ParentURL(&_result);
  1429. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1430. return _bstr_t(_result, false);
  1431. }
  1432. inline _bstr_t _Record::MoveRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum MoveRecordOptionsEnum Options, VARIANT_BOOL Async ) {
  1433. BSTR _result;
  1434. HRESULT _hr = raw_MoveRecord(Source, Destination, UserName, Password, Options, Async, &_result);
  1435. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1436. return _bstr_t(_result, false);
  1437. }
  1438. inline _bstr_t _Record::CopyRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum CopyRecordOptionsEnum Options, VARIANT_BOOL Async ) {
  1439. BSTR _result;
  1440. HRESULT _hr = raw_CopyRecord(Source, Destination, UserName, Password, Options, Async, &_result);
  1441. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1442. return _bstr_t(_result, false);
  1443. }
  1444. inline HRESULT _Record::DeleteRecord ( _bstr_t Source, VARIANT_BOOL Async ) {
  1445. HRESULT _hr = raw_DeleteRecord(Source, Async);
  1446. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1447. return _hr;
  1448. }
  1449. 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 ) {
  1450. HRESULT _hr = raw_Open(Source, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  1451. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1452. return _hr;
  1453. }
  1454. inline HRESULT _Record::Close ( ) {
  1455. HRESULT _hr = raw_Close();
  1456. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1457. return _hr;
  1458. }
  1459. inline FieldsPtr _Record::GetFields ( ) {
  1460. struct Fields * _result;
  1461. HRESULT _hr = get_Fields(&_result);
  1462. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1463. return FieldsPtr(_result, false);
  1464. }
  1465. inline enum RecordTypeEnum _Record::GetRecordType ( ) {
  1466. enum RecordTypeEnum _result;
  1467. HRESULT _hr = get_RecordType(&_result);
  1468. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1469. return _result;
  1470. }
  1471. inline _RecordsetPtr _Record::GetChildren ( ) {
  1472. struct _Recordset * _result;
  1473. HRESULT _hr = raw_GetChildren(&_result);
  1474. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1475. return _RecordsetPtr(_result, false);
  1476. }
  1477. inline HRESULT _Record::Cancel ( ) {
  1478. HRESULT _hr = raw_Cancel();
  1479. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1480. return _hr;
  1481. }
  1482. //
  1483. // interface _Stream wrapper method implementations
  1484. //
  1485. inline ADO_LONGPTR _Stream::GetSize ( ) {
  1486. ADO_LONGPTR _result;
  1487. HRESULT _hr = get_Size(&_result);
  1488. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1489. return _result;
  1490. }
  1491. inline VARIANT_BOOL _Stream::GetEOS ( ) {
  1492. VARIANT_BOOL _result;
  1493. HRESULT _hr = get_EOS(&_result);
  1494. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1495. return _result;
  1496. }
  1497. inline ADO_LONGPTR _Stream::GetPosition ( ) {
  1498. ADO_LONGPTR _result;
  1499. HRESULT _hr = get_Position(&_result);
  1500. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1501. return _result;
  1502. }
  1503. inline void _Stream::PutPosition ( ADO_LONGPTR pPos ) {
  1504. HRESULT _hr = put_Position(pPos);
  1505. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1506. }
  1507. inline enum StreamTypeEnum _Stream::GetType ( ) {
  1508. enum StreamTypeEnum _result;
  1509. HRESULT _hr = get_Type(&_result);
  1510. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1511. return _result;
  1512. }
  1513. inline void _Stream::PutType ( enum StreamTypeEnum ptype ) {
  1514. HRESULT _hr = put_Type(ptype);
  1515. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1516. }
  1517. inline enum LineSeparatorEnum _Stream::GetLineSeparator ( ) {
  1518. enum LineSeparatorEnum _result;
  1519. HRESULT _hr = get_LineSeparator(&_result);
  1520. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1521. return _result;
  1522. }
  1523. inline void _Stream::PutLineSeparator ( enum LineSeparatorEnum pLS ) {
  1524. HRESULT _hr = put_LineSeparator(pLS);
  1525. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1526. }
  1527. inline enum ObjectStateEnum _Stream::GetState ( ) {
  1528. enum ObjectStateEnum _result;
  1529. HRESULT _hr = get_State(&_result);
  1530. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1531. return _result;
  1532. }
  1533. inline enum ConnectModeEnum _Stream::GetMode ( ) {
  1534. enum ConnectModeEnum _result;
  1535. HRESULT _hr = get_Mode(&_result);
  1536. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1537. return _result;
  1538. }
  1539. inline void _Stream::PutMode ( enum ConnectModeEnum pMode ) {
  1540. HRESULT _hr = put_Mode(pMode);
  1541. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1542. }
  1543. inline _bstr_t _Stream::GetCharset ( ) {
  1544. BSTR _result;
  1545. HRESULT _hr = get_Charset(&_result);
  1546. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1547. return _bstr_t(_result, false);
  1548. }
  1549. inline void _Stream::PutCharset ( _bstr_t pbstrCharset ) {
  1550. HRESULT _hr = put_Charset(pbstrCharset);
  1551. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1552. }
  1553. inline _variant_t _Stream::Read ( long NumBytes ) {
  1554. VARIANT _result;
  1555. VariantInit(&_result);
  1556. HRESULT _hr = raw_Read(NumBytes, &_result);
  1557. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1558. return _variant_t(_result, false);
  1559. }
  1560. inline HRESULT _Stream::Open ( const _variant_t & Source, enum ConnectModeEnum Mode, enum StreamOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  1561. HRESULT _hr = raw_Open(Source, Mode, Options, UserName, Password);
  1562. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1563. return _hr;
  1564. }
  1565. inline HRESULT _Stream::Close ( ) {
  1566. HRESULT _hr = raw_Close();
  1567. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1568. return _hr;
  1569. }
  1570. inline HRESULT _Stream::SkipLine ( ) {
  1571. HRESULT _hr = raw_SkipLine();
  1572. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1573. return _hr;
  1574. }
  1575. inline HRESULT _Stream::Write ( const _variant_t & Buffer ) {
  1576. HRESULT _hr = raw_Write(Buffer);
  1577. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1578. return _hr;
  1579. }
  1580. inline HRESULT _Stream::SetEOS ( ) {
  1581. HRESULT _hr = raw_SetEOS();
  1582. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1583. return _hr;
  1584. }
  1585. inline HRESULT _Stream::CopyTo ( struct _Stream * DestStream, ADO_LONGPTR CharNumber ) {
  1586. HRESULT _hr = raw_CopyTo(DestStream, CharNumber);
  1587. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1588. return _hr;
  1589. }
  1590. inline HRESULT _Stream::Flush ( ) {
  1591. HRESULT _hr = raw_Flush();
  1592. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1593. return _hr;
  1594. }
  1595. inline HRESULT _Stream::SaveToFile ( _bstr_t FileName, enum SaveOptionsEnum Options ) {
  1596. HRESULT _hr = raw_SaveToFile(FileName, Options);
  1597. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1598. return _hr;
  1599. }
  1600. inline HRESULT _Stream::LoadFromFile ( _bstr_t FileName ) {
  1601. HRESULT _hr = raw_LoadFromFile(FileName);
  1602. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1603. return _hr;
  1604. }
  1605. inline _bstr_t _Stream::ReadText ( long NumChars ) {
  1606. BSTR _result;
  1607. HRESULT _hr = raw_ReadText(NumChars, &_result);
  1608. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1609. return _bstr_t(_result, false);
  1610. }
  1611. inline HRESULT _Stream::WriteText ( _bstr_t Data, enum StreamWriteEnum Options ) {
  1612. HRESULT _hr = raw_WriteText(Data, Options);
  1613. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1614. return _hr;
  1615. }
  1616. inline HRESULT _Stream::Cancel ( ) {
  1617. HRESULT _hr = raw_Cancel();
  1618. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1619. return _hr;
  1620. }
  1621. //
  1622. // interface ADORecordConstruction wrapper method implementations
  1623. //
  1624. inline IUnknownPtr ADORecordConstruction::GetRow ( ) {
  1625. IUnknown * _result;
  1626. HRESULT _hr = get_Row(&_result);
  1627. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1628. return IUnknownPtr(_result, false);
  1629. }
  1630. inline void ADORecordConstruction::PutRow ( IUnknown * ppRow ) {
  1631. HRESULT _hr = put_Row(ppRow);
  1632. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1633. }
  1634. inline void ADORecordConstruction::PutParentRow ( IUnknown * _arg1 ) {
  1635. HRESULT _hr = put_ParentRow(_arg1);
  1636. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1637. }
  1638. //
  1639. // interface ADOStreamConstruction wrapper method implementations
  1640. //
  1641. inline IUnknownPtr ADOStreamConstruction::GetStream ( ) {
  1642. IUnknown * _result;
  1643. HRESULT _hr = get_Stream(&_result);
  1644. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1645. return IUnknownPtr(_result, false);
  1646. }
  1647. inline void ADOStreamConstruction::PutStream ( IUnknown * ppStm ) {
  1648. HRESULT _hr = put_Stream(ppStm);
  1649. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1650. }
  1651. //
  1652. // interface ADOCommandConstruction wrapper method implementations
  1653. //
  1654. inline IUnknownPtr ADOCommandConstruction::GetOLEDBCommand ( ) {
  1655. IUnknown * _result;
  1656. HRESULT _hr = get_OLEDBCommand(&_result);
  1657. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1658. return IUnknownPtr(_result, false);
  1659. }
  1660. inline void ADOCommandConstruction::PutOLEDBCommand ( IUnknown * ppOLEDBCommand ) {
  1661. HRESULT _hr = put_OLEDBCommand(ppOLEDBCommand);
  1662. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1663. }
  1664. //
  1665. // interface ADORecordsetConstruction wrapper method implementations
  1666. //
  1667. inline IUnknownPtr ADORecordsetConstruction::GetRowset ( ) {
  1668. IUnknown * _result;
  1669. HRESULT _hr = get_Rowset(&_result);
  1670. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1671. return IUnknownPtr(_result, false);
  1672. }
  1673. inline void ADORecordsetConstruction::PutRowset ( IUnknown * ppRowset ) {
  1674. HRESULT _hr = put_Rowset(ppRowset);
  1675. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1676. }
  1677. inline ADO_LONGPTR ADORecordsetConstruction::GetChapter ( ) {
  1678. ADO_LONGPTR _result;
  1679. HRESULT _hr = get_Chapter(&_result);
  1680. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1681. return _result;
  1682. }
  1683. inline void ADORecordsetConstruction::PutChapter ( ADO_LONGPTR plChapter ) {
  1684. HRESULT _hr = put_Chapter(plChapter);
  1685. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1686. }
  1687. inline IUnknownPtr ADORecordsetConstruction::GetRowPosition ( ) {
  1688. IUnknown * _result;
  1689. HRESULT _hr = get_RowPosition(&_result);
  1690. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1691. return IUnknownPtr(_result, false);
  1692. }
  1693. inline void ADORecordsetConstruction::PutRowPosition ( IUnknown * ppRowPos ) {
  1694. HRESULT _hr = put_RowPosition(ppRowPos);
  1695. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1696. }
  1697. //
  1698. // interface Field15 wrapper method implementations
  1699. //
  1700. inline ADO_LONGPTR Field15::GetActualSize ( ) {
  1701. ADO_LONGPTR _result;
  1702. HRESULT _hr = get_ActualSize(&_result);
  1703. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1704. return _result;
  1705. }
  1706. inline long Field15::GetAttributes ( ) {
  1707. long _result;
  1708. HRESULT _hr = get_Attributes(&_result);
  1709. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1710. return _result;
  1711. }
  1712. inline ADO_LONGPTR Field15::GetDefinedSize ( ) {
  1713. ADO_LONGPTR _result;
  1714. HRESULT _hr = get_DefinedSize(&_result);
  1715. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1716. return _result;
  1717. }
  1718. inline _bstr_t Field15::GetName ( ) {
  1719. BSTR _result;
  1720. HRESULT _hr = get_Name(&_result);
  1721. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1722. return _bstr_t(_result, false);
  1723. }
  1724. inline enum DataTypeEnum Field15::GetType ( ) {
  1725. enum DataTypeEnum _result;
  1726. HRESULT _hr = get_Type(&_result);
  1727. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1728. return _result;
  1729. }
  1730. inline _variant_t Field15::GetValue ( ) {
  1731. VARIANT _result;
  1732. VariantInit(&_result);
  1733. HRESULT _hr = get_Value(&_result);
  1734. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1735. return _variant_t(_result, false);
  1736. }
  1737. inline void Field15::PutValue ( const _variant_t & pvar ) {
  1738. HRESULT _hr = put_Value(pvar);
  1739. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1740. }
  1741. inline unsigned char Field15::GetPrecision ( ) {
  1742. unsigned char _result;
  1743. HRESULT _hr = get_Precision(&_result);
  1744. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1745. return _result;
  1746. }
  1747. inline unsigned char Field15::GetNumericScale ( ) {
  1748. unsigned char _result;
  1749. HRESULT _hr = get_NumericScale(&_result);
  1750. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1751. return _result;
  1752. }
  1753. inline HRESULT Field15::AppendChunk ( const _variant_t & Data ) {
  1754. HRESULT _hr = raw_AppendChunk(Data);
  1755. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1756. return _hr;
  1757. }
  1758. inline _variant_t Field15::GetChunk ( long Length ) {
  1759. VARIANT _result;
  1760. VariantInit(&_result);
  1761. HRESULT _hr = raw_GetChunk(Length, &_result);
  1762. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1763. return _variant_t(_result, false);
  1764. }
  1765. inline _variant_t Field15::GetOriginalValue ( ) {
  1766. VARIANT _result;
  1767. VariantInit(&_result);
  1768. HRESULT _hr = get_OriginalValue(&_result);
  1769. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1770. return _variant_t(_result, false);
  1771. }
  1772. inline _variant_t Field15::GetUnderlyingValue ( ) {
  1773. VARIANT _result;
  1774. VariantInit(&_result);
  1775. HRESULT _hr = get_UnderlyingValue(&_result);
  1776. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1777. return _variant_t(_result, false);
  1778. }