升龙物业 老版本 ocx IPO, 加密狗 转值班电话

msado15.tli 142KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953
  1. // Created by Microsoft (R) C/C++ Compiler Version 10.00.30319.01 (3ba8f9c2).
  2. //
  3. // e:\zproject\code\middleware-slwy\ivr\debug\msado15.tli
  4. //
  5. // Wrapper implementations for type library C:\Program Files\Common Files\System\ado\msado15.dll
  6. // compiler-generated file created 07/03/17 at 17:15:28 - DO NOT EDIT!
  7. #pragma once
  8. //
  9. // interface _Collection wrapper method implementations
  10. //
  11. inline long _Collection::GetCount ( ) {
  12. long _result = 0;
  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 = 0;
  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 Property wrapper method implementations
  43. //
  44. inline _variant_t Property::GetValue ( ) {
  45. VARIANT _result;
  46. VariantInit(&_result);
  47. HRESULT _hr = get_Value(&_result);
  48. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  49. return _variant_t(_result, false);
  50. }
  51. inline void Property::PutValue ( const _variant_t & pval ) {
  52. HRESULT _hr = put_Value(pval);
  53. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  54. }
  55. inline _bstr_t Property::GetName ( ) {
  56. BSTR _result = 0;
  57. HRESULT _hr = get_Name(&_result);
  58. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  59. return _bstr_t(_result, false);
  60. }
  61. inline enum DataTypeEnum Property::GetType ( ) {
  62. enum DataTypeEnum _result;
  63. HRESULT _hr = get_Type(&_result);
  64. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  65. return _result;
  66. }
  67. inline long Property::GetAttributes ( ) {
  68. long _result = 0;
  69. HRESULT _hr = get_Attributes(&_result);
  70. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  71. return _result;
  72. }
  73. inline void Property::PutAttributes ( long plAttributes ) {
  74. HRESULT _hr = put_Attributes(plAttributes);
  75. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  76. }
  77. //
  78. // interface Properties wrapper method implementations
  79. //
  80. inline PropertyPtr Properties::GetItem ( const _variant_t & Index ) {
  81. struct Property * _result = 0;
  82. HRESULT _hr = get_Item(Index, &_result);
  83. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  84. return PropertyPtr(_result, false);
  85. }
  86. //
  87. // interface _ADO wrapper method implementations
  88. //
  89. inline PropertiesPtr _ADO::GetProperties ( ) {
  90. struct Properties * _result = 0;
  91. HRESULT _hr = get_Properties(&_result);
  92. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  93. return PropertiesPtr(_result, false);
  94. }
  95. //
  96. // interface Error wrapper method implementations
  97. //
  98. inline long Error::GetNumber ( ) {
  99. long _result = 0;
  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 = 0;
  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 = 0;
  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 = 0;
  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 = 0;
  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 = 0;
  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 = 0;
  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 = 0;
  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 Field20 wrapper method implementations
  156. //
  157. inline long Field20::GetActualSize ( ) {
  158. long _result = 0;
  159. HRESULT _hr = get_ActualSize(&_result);
  160. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  161. return _result;
  162. }
  163. inline long Field20::GetAttributes ( ) {
  164. long _result = 0;
  165. HRESULT _hr = get_Attributes(&_result);
  166. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  167. return _result;
  168. }
  169. inline long Field20::GetDefinedSize ( ) {
  170. long _result = 0;
  171. HRESULT _hr = get_DefinedSize(&_result);
  172. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  173. return _result;
  174. }
  175. inline _bstr_t Field20::GetName ( ) {
  176. BSTR _result = 0;
  177. HRESULT _hr = get_Name(&_result);
  178. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  179. return _bstr_t(_result, false);
  180. }
  181. inline enum DataTypeEnum Field20::GetType ( ) {
  182. enum DataTypeEnum _result;
  183. HRESULT _hr = get_Type(&_result);
  184. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  185. return _result;
  186. }
  187. inline _variant_t Field20::GetValue ( ) {
  188. VARIANT _result;
  189. VariantInit(&_result);
  190. HRESULT _hr = get_Value(&_result);
  191. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  192. return _variant_t(_result, false);
  193. }
  194. inline void Field20::PutValue ( const _variant_t & pvar ) {
  195. HRESULT _hr = put_Value(pvar);
  196. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  197. }
  198. inline unsigned char Field20::GetPrecision ( ) {
  199. unsigned char _result = 0;
  200. HRESULT _hr = get_Precision(&_result);
  201. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  202. return _result;
  203. }
  204. inline unsigned char Field20::GetNumericScale ( ) {
  205. unsigned char _result = 0;
  206. HRESULT _hr = get_NumericScale(&_result);
  207. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  208. return _result;
  209. }
  210. inline HRESULT Field20::AppendChunk ( const _variant_t & Data ) {
  211. HRESULT _hr = raw_AppendChunk(Data);
  212. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  213. return _hr;
  214. }
  215. inline _variant_t Field20::GetChunk ( long Length ) {
  216. VARIANT _result;
  217. VariantInit(&_result);
  218. HRESULT _hr = raw_GetChunk(Length, &_result);
  219. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  220. return _variant_t(_result, false);
  221. }
  222. inline _variant_t Field20::GetOriginalValue ( ) {
  223. VARIANT _result;
  224. VariantInit(&_result);
  225. HRESULT _hr = get_OriginalValue(&_result);
  226. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  227. return _variant_t(_result, false);
  228. }
  229. inline _variant_t Field20::GetUnderlyingValue ( ) {
  230. VARIANT _result;
  231. VariantInit(&_result);
  232. HRESULT _hr = get_UnderlyingValue(&_result);
  233. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  234. return _variant_t(_result, false);
  235. }
  236. inline IUnknownPtr Field20::GetDataFormat ( ) {
  237. IUnknown * _result = 0;
  238. HRESULT _hr = get_DataFormat(&_result);
  239. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  240. return IUnknownPtr(_result, false);
  241. }
  242. inline void Field20::PutRefDataFormat ( IUnknown * ppiDF ) {
  243. HRESULT _hr = putref_DataFormat(ppiDF);
  244. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  245. }
  246. inline void Field20::PutPrecision ( unsigned char pbPrecision ) {
  247. HRESULT _hr = put_Precision(pbPrecision);
  248. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  249. }
  250. inline void Field20::PutNumericScale ( unsigned char pbNumericScale ) {
  251. HRESULT _hr = put_NumericScale(pbNumericScale);
  252. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  253. }
  254. inline void Field20::PutType ( enum DataTypeEnum pDataType ) {
  255. HRESULT _hr = put_Type(pDataType);
  256. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  257. }
  258. inline void Field20::PutDefinedSize ( long pl ) {
  259. HRESULT _hr = put_DefinedSize(pl);
  260. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  261. }
  262. inline void Field20::PutAttributes ( long pl ) {
  263. HRESULT _hr = put_Attributes(pl);
  264. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  265. }
  266. //
  267. // interface Field wrapper method implementations
  268. //
  269. inline long Field::GetStatus ( ) {
  270. long _result = 0;
  271. HRESULT _hr = get_Status(&_result);
  272. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  273. return _result;
  274. }
  275. //
  276. // interface Fields15 wrapper method implementations
  277. //
  278. inline FieldPtr Fields15::GetItem ( const _variant_t & Index ) {
  279. struct Field * _result = 0;
  280. HRESULT _hr = get_Item(Index, &_result);
  281. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  282. return FieldPtr(_result, false);
  283. }
  284. //
  285. // interface Fields20 wrapper method implementations
  286. //
  287. inline HRESULT Fields20::_Append ( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib ) {
  288. HRESULT _hr = raw__Append(Name, Type, DefinedSize, Attrib);
  289. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  290. return _hr;
  291. }
  292. inline HRESULT Fields20::Delete ( const _variant_t & Index ) {
  293. HRESULT _hr = raw_Delete(Index);
  294. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  295. return _hr;
  296. }
  297. //
  298. // interface Fields wrapper method implementations
  299. //
  300. inline HRESULT Fields::Append ( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue ) {
  301. HRESULT _hr = raw_Append(Name, Type, DefinedSize, Attrib, FieldValue);
  302. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  303. return _hr;
  304. }
  305. inline HRESULT Fields::Update ( ) {
  306. HRESULT _hr = raw_Update();
  307. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  308. return _hr;
  309. }
  310. inline HRESULT Fields::Resync ( enum ResyncEnum ResyncValues ) {
  311. HRESULT _hr = raw_Resync(ResyncValues);
  312. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  313. return _hr;
  314. }
  315. inline HRESULT Fields::CancelUpdate ( ) {
  316. HRESULT _hr = raw_CancelUpdate();
  317. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  318. return _hr;
  319. }
  320. //
  321. // interface _Parameter wrapper method implementations
  322. //
  323. inline _bstr_t _Parameter::GetName ( ) {
  324. BSTR _result = 0;
  325. HRESULT _hr = get_Name(&_result);
  326. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  327. return _bstr_t(_result, false);
  328. }
  329. inline void _Parameter::PutName ( _bstr_t pbstr ) {
  330. HRESULT _hr = put_Name(pbstr);
  331. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  332. }
  333. inline _variant_t _Parameter::GetValue ( ) {
  334. VARIANT _result;
  335. VariantInit(&_result);
  336. HRESULT _hr = get_Value(&_result);
  337. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  338. return _variant_t(_result, false);
  339. }
  340. inline void _Parameter::PutValue ( const _variant_t & pvar ) {
  341. HRESULT _hr = put_Value(pvar);
  342. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  343. }
  344. inline enum DataTypeEnum _Parameter::GetType ( ) {
  345. enum DataTypeEnum _result;
  346. HRESULT _hr = get_Type(&_result);
  347. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  348. return _result;
  349. }
  350. inline void _Parameter::PutType ( enum DataTypeEnum psDataType ) {
  351. HRESULT _hr = put_Type(psDataType);
  352. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  353. }
  354. inline void _Parameter::PutDirection ( enum ParameterDirectionEnum plParmDirection ) {
  355. HRESULT _hr = put_Direction(plParmDirection);
  356. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  357. }
  358. inline enum ParameterDirectionEnum _Parameter::GetDirection ( ) {
  359. enum ParameterDirectionEnum _result;
  360. HRESULT _hr = get_Direction(&_result);
  361. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  362. return _result;
  363. }
  364. inline void _Parameter::PutPrecision ( unsigned char pbPrecision ) {
  365. HRESULT _hr = put_Precision(pbPrecision);
  366. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  367. }
  368. inline unsigned char _Parameter::GetPrecision ( ) {
  369. unsigned char _result = 0;
  370. HRESULT _hr = get_Precision(&_result);
  371. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  372. return _result;
  373. }
  374. inline void _Parameter::PutNumericScale ( unsigned char pbScale ) {
  375. HRESULT _hr = put_NumericScale(pbScale);
  376. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  377. }
  378. inline unsigned char _Parameter::GetNumericScale ( ) {
  379. unsigned char _result = 0;
  380. HRESULT _hr = get_NumericScale(&_result);
  381. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  382. return _result;
  383. }
  384. inline void _Parameter::PutSize ( long pl ) {
  385. HRESULT _hr = put_Size(pl);
  386. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  387. }
  388. inline long _Parameter::GetSize ( ) {
  389. long _result = 0;
  390. HRESULT _hr = get_Size(&_result);
  391. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  392. return _result;
  393. }
  394. inline HRESULT _Parameter::AppendChunk ( const _variant_t & Val ) {
  395. HRESULT _hr = raw_AppendChunk(Val);
  396. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  397. return _hr;
  398. }
  399. inline long _Parameter::GetAttributes ( ) {
  400. long _result = 0;
  401. HRESULT _hr = get_Attributes(&_result);
  402. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  403. return _result;
  404. }
  405. inline void _Parameter::PutAttributes ( long plParmAttribs ) {
  406. HRESULT _hr = put_Attributes(plParmAttribs);
  407. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  408. }
  409. //
  410. // interface Parameters wrapper method implementations
  411. //
  412. inline _ParameterPtr Parameters::GetItem ( const _variant_t & Index ) {
  413. struct _Parameter * _result = 0;
  414. HRESULT _hr = get_Item(Index, &_result);
  415. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  416. return _ParameterPtr(_result, false);
  417. }
  418. //
  419. // dispinterface ConnectionEvents wrapper method implementations
  420. //
  421. inline HRESULT ConnectionEvents::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  422. HRESULT _result = 0;
  423. _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  424. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  425. return _result;
  426. }
  427. inline HRESULT ConnectionEvents::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  428. HRESULT _result = 0;
  429. _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  430. L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection);
  431. return _result;
  432. }
  433. inline HRESULT ConnectionEvents::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  434. HRESULT _result = 0;
  435. _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  436. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  437. return _result;
  438. }
  439. inline HRESULT ConnectionEvents::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  440. HRESULT _result = 0;
  441. _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  442. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  443. return _result;
  444. }
  445. 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 ) {
  446. HRESULT _result = 0;
  447. _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  448. L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
  449. return _result;
  450. }
  451. inline HRESULT ConnectionEvents::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  452. HRESULT _result = 0;
  453. _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  454. L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
  455. return _result;
  456. }
  457. inline HRESULT ConnectionEvents::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  458. HRESULT _result = 0;
  459. _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  460. L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection);
  461. return _result;
  462. }
  463. inline HRESULT ConnectionEvents::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  464. HRESULT _result = 0;
  465. _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  466. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  467. return _result;
  468. }
  469. inline HRESULT ConnectionEvents::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  470. HRESULT _result = 0;
  471. _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  472. L"\x4003\x0009", adStatus, pConnection);
  473. return _result;
  474. }
  475. //
  476. // dispinterface RecordsetEvents wrapper method implementations
  477. //
  478. inline HRESULT RecordsetEvents::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  479. HRESULT _result = 0;
  480. _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  481. L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset);
  482. return _result;
  483. }
  484. inline HRESULT RecordsetEvents::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  485. HRESULT _result = 0;
  486. _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  487. L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset);
  488. return _result;
  489. }
  490. inline HRESULT RecordsetEvents::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  491. HRESULT _result = 0;
  492. _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  493. L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset);
  494. return _result;
  495. }
  496. inline HRESULT RecordsetEvents::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  497. HRESULT _result = 0;
  498. _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  499. L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset);
  500. return _result;
  501. }
  502. inline HRESULT RecordsetEvents::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  503. HRESULT _result = 0;
  504. _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  505. L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
  506. return _result;
  507. }
  508. inline HRESULT RecordsetEvents::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  509. HRESULT _result = 0;
  510. _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  511. L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
  512. return _result;
  513. }
  514. inline HRESULT RecordsetEvents::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  515. HRESULT _result = 0;
  516. _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  517. L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
  518. return _result;
  519. }
  520. inline HRESULT RecordsetEvents::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  521. HRESULT _result = 0;
  522. _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  523. L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
  524. return _result;
  525. }
  526. inline HRESULT RecordsetEvents::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  527. HRESULT _result = 0;
  528. _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  529. L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset);
  530. return _result;
  531. }
  532. inline HRESULT RecordsetEvents::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  533. HRESULT _result = 0;
  534. _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  535. L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset);
  536. return _result;
  537. }
  538. inline HRESULT RecordsetEvents::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  539. HRESULT _result = 0;
  540. _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  541. L"\x0009\x4003\x0009", pError, adStatus, pRecordset);
  542. return _result;
  543. }
  544. //
  545. // interface ADOConnectionConstruction15 wrapper method implementations
  546. //
  547. inline IUnknownPtr ADOConnectionConstruction15::GetDSO ( ) {
  548. IUnknown * _result = 0;
  549. HRESULT _hr = get_DSO(&_result);
  550. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  551. return IUnknownPtr(_result, false);
  552. }
  553. inline IUnknownPtr ADOConnectionConstruction15::GetSession ( ) {
  554. IUnknown * _result = 0;
  555. HRESULT _hr = get_Session(&_result);
  556. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  557. return IUnknownPtr(_result, false);
  558. }
  559. inline HRESULT ADOConnectionConstruction15::WrapDSOandSession ( IUnknown * pDSO, IUnknown * pSession ) {
  560. HRESULT _hr = raw_WrapDSOandSession(pDSO, pSession);
  561. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  562. return _hr;
  563. }
  564. //
  565. // interface _Stream wrapper method implementations
  566. //
  567. inline long _Stream::GetSize ( ) {
  568. long _result = 0;
  569. HRESULT _hr = get_Size(&_result);
  570. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  571. return _result;
  572. }
  573. inline VARIANT_BOOL _Stream::GetEOS ( ) {
  574. VARIANT_BOOL _result = 0;
  575. HRESULT _hr = get_EOS(&_result);
  576. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  577. return _result;
  578. }
  579. inline long _Stream::GetPosition ( ) {
  580. long _result = 0;
  581. HRESULT _hr = get_Position(&_result);
  582. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  583. return _result;
  584. }
  585. inline void _Stream::PutPosition ( long pPos ) {
  586. HRESULT _hr = put_Position(pPos);
  587. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  588. }
  589. inline enum StreamTypeEnum _Stream::GetType ( ) {
  590. enum StreamTypeEnum _result;
  591. HRESULT _hr = get_Type(&_result);
  592. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  593. return _result;
  594. }
  595. inline void _Stream::PutType ( enum StreamTypeEnum ptype ) {
  596. HRESULT _hr = put_Type(ptype);
  597. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  598. }
  599. inline enum LineSeparatorEnum _Stream::GetLineSeparator ( ) {
  600. enum LineSeparatorEnum _result;
  601. HRESULT _hr = get_LineSeparator(&_result);
  602. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  603. return _result;
  604. }
  605. inline void _Stream::PutLineSeparator ( enum LineSeparatorEnum pLS ) {
  606. HRESULT _hr = put_LineSeparator(pLS);
  607. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  608. }
  609. inline enum ObjectStateEnum _Stream::GetState ( ) {
  610. enum ObjectStateEnum _result;
  611. HRESULT _hr = get_State(&_result);
  612. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  613. return _result;
  614. }
  615. inline enum ConnectModeEnum _Stream::GetMode ( ) {
  616. enum ConnectModeEnum _result;
  617. HRESULT _hr = get_Mode(&_result);
  618. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  619. return _result;
  620. }
  621. inline void _Stream::PutMode ( enum ConnectModeEnum pMode ) {
  622. HRESULT _hr = put_Mode(pMode);
  623. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  624. }
  625. inline _bstr_t _Stream::GetCharset ( ) {
  626. BSTR _result = 0;
  627. HRESULT _hr = get_Charset(&_result);
  628. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  629. return _bstr_t(_result, false);
  630. }
  631. inline void _Stream::PutCharset ( _bstr_t pbstrCharset ) {
  632. HRESULT _hr = put_Charset(pbstrCharset);
  633. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  634. }
  635. inline _variant_t _Stream::Read ( long NumBytes ) {
  636. VARIANT _result;
  637. VariantInit(&_result);
  638. HRESULT _hr = raw_Read(NumBytes, &_result);
  639. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  640. return _variant_t(_result, false);
  641. }
  642. inline HRESULT _Stream::Open ( const _variant_t & Source, enum ConnectModeEnum Mode, enum StreamOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  643. HRESULT _hr = raw_Open(Source, Mode, Options, UserName, Password);
  644. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  645. return _hr;
  646. }
  647. inline HRESULT _Stream::Close ( ) {
  648. HRESULT _hr = raw_Close();
  649. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  650. return _hr;
  651. }
  652. inline HRESULT _Stream::SkipLine ( ) {
  653. HRESULT _hr = raw_SkipLine();
  654. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  655. return _hr;
  656. }
  657. inline HRESULT _Stream::Write ( const _variant_t & Buffer ) {
  658. HRESULT _hr = raw_Write(Buffer);
  659. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  660. return _hr;
  661. }
  662. inline HRESULT _Stream::SetEOS ( ) {
  663. HRESULT _hr = raw_SetEOS();
  664. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  665. return _hr;
  666. }
  667. inline HRESULT _Stream::CopyTo ( struct _Stream * DestStream, long CharNumber ) {
  668. HRESULT _hr = raw_CopyTo(DestStream, CharNumber);
  669. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  670. return _hr;
  671. }
  672. inline HRESULT _Stream::Flush ( ) {
  673. HRESULT _hr = raw_Flush();
  674. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  675. return _hr;
  676. }
  677. inline HRESULT _Stream::SaveToFile ( _bstr_t FileName, enum SaveOptionsEnum Options ) {
  678. HRESULT _hr = raw_SaveToFile(FileName, Options);
  679. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  680. return _hr;
  681. }
  682. inline HRESULT _Stream::LoadFromFile ( _bstr_t FileName ) {
  683. HRESULT _hr = raw_LoadFromFile(FileName);
  684. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  685. return _hr;
  686. }
  687. inline _bstr_t _Stream::ReadText ( long NumChars ) {
  688. BSTR _result = 0;
  689. HRESULT _hr = raw_ReadText(NumChars, &_result);
  690. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  691. return _bstr_t(_result, false);
  692. }
  693. inline HRESULT _Stream::WriteText ( _bstr_t Data, enum StreamWriteEnum Options ) {
  694. HRESULT _hr = raw_WriteText(Data, Options);
  695. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  696. return _hr;
  697. }
  698. inline HRESULT _Stream::Cancel ( ) {
  699. HRESULT _hr = raw_Cancel();
  700. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  701. return _hr;
  702. }
  703. //
  704. // interface ADORecordConstruction wrapper method implementations
  705. //
  706. inline IUnknownPtr ADORecordConstruction::GetRow ( ) {
  707. IUnknown * _result = 0;
  708. HRESULT _hr = get_Row(&_result);
  709. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  710. return IUnknownPtr(_result, false);
  711. }
  712. inline void ADORecordConstruction::PutRow ( IUnknown * ppRow ) {
  713. HRESULT _hr = put_Row(ppRow);
  714. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  715. }
  716. inline void ADORecordConstruction::PutParentRow ( IUnknown * _arg1 ) {
  717. HRESULT _hr = put_ParentRow(_arg1);
  718. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  719. }
  720. //
  721. // interface ADOStreamConstruction wrapper method implementations
  722. //
  723. inline IUnknownPtr ADOStreamConstruction::GetStream ( ) {
  724. IUnknown * _result = 0;
  725. HRESULT _hr = get_Stream(&_result);
  726. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  727. return IUnknownPtr(_result, false);
  728. }
  729. inline void ADOStreamConstruction::PutStream ( IUnknown * ppStm ) {
  730. HRESULT _hr = put_Stream(ppStm);
  731. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  732. }
  733. //
  734. // interface ADOCommandConstruction wrapper method implementations
  735. //
  736. inline IUnknownPtr ADOCommandConstruction::GetOLEDBCommand ( ) {
  737. IUnknown * _result = 0;
  738. HRESULT _hr = get_OLEDBCommand(&_result);
  739. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  740. return IUnknownPtr(_result, false);
  741. }
  742. inline void ADOCommandConstruction::PutOLEDBCommand ( IUnknown * ppOLEDBCommand ) {
  743. HRESULT _hr = put_OLEDBCommand(ppOLEDBCommand);
  744. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  745. }
  746. //
  747. // interface ADORecordsetConstruction wrapper method implementations
  748. //
  749. inline IUnknownPtr ADORecordsetConstruction::GetRowset ( ) {
  750. IUnknown * _result = 0;
  751. HRESULT _hr = get_Rowset(&_result);
  752. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  753. return IUnknownPtr(_result, false);
  754. }
  755. inline void ADORecordsetConstruction::PutRowset ( IUnknown * ppRowset ) {
  756. HRESULT _hr = put_Rowset(ppRowset);
  757. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  758. }
  759. inline ADO_LONGPTR ADORecordsetConstruction::GetChapter ( ) {
  760. ADO_LONGPTR _result;
  761. HRESULT _hr = get_Chapter(&_result);
  762. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  763. return _result;
  764. }
  765. inline void ADORecordsetConstruction::PutChapter ( ADO_LONGPTR plChapter ) {
  766. HRESULT _hr = put_Chapter(plChapter);
  767. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  768. }
  769. inline IUnknownPtr ADORecordsetConstruction::GetRowPosition ( ) {
  770. IUnknown * _result = 0;
  771. HRESULT _hr = get_RowPosition(&_result);
  772. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  773. return IUnknownPtr(_result, false);
  774. }
  775. inline void ADORecordsetConstruction::PutRowPosition ( IUnknown * ppRowPos ) {
  776. HRESULT _hr = put_RowPosition(ppRowPos);
  777. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  778. }
  779. //
  780. // interface Field15 wrapper method implementations
  781. //
  782. inline long Field15::GetActualSize ( ) {
  783. long _result = 0;
  784. HRESULT _hr = get_ActualSize(&_result);
  785. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  786. return _result;
  787. }
  788. inline long Field15::GetAttributes ( ) {
  789. long _result = 0;
  790. HRESULT _hr = get_Attributes(&_result);
  791. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  792. return _result;
  793. }
  794. inline long Field15::GetDefinedSize ( ) {
  795. long _result = 0;
  796. HRESULT _hr = get_DefinedSize(&_result);
  797. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  798. return _result;
  799. }
  800. inline _bstr_t Field15::GetName ( ) {
  801. BSTR _result = 0;
  802. HRESULT _hr = get_Name(&_result);
  803. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  804. return _bstr_t(_result, false);
  805. }
  806. inline enum DataTypeEnum Field15::GetType ( ) {
  807. enum DataTypeEnum _result;
  808. HRESULT _hr = get_Type(&_result);
  809. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  810. return _result;
  811. }
  812. inline _variant_t Field15::GetValue ( ) {
  813. VARIANT _result;
  814. VariantInit(&_result);
  815. HRESULT _hr = get_Value(&_result);
  816. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  817. return _variant_t(_result, false);
  818. }
  819. inline void Field15::PutValue ( const _variant_t & pvar ) {
  820. HRESULT _hr = put_Value(pvar);
  821. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  822. }
  823. inline unsigned char Field15::GetPrecision ( ) {
  824. unsigned char _result = 0;
  825. HRESULT _hr = get_Precision(&_result);
  826. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  827. return _result;
  828. }
  829. inline unsigned char Field15::GetNumericScale ( ) {
  830. unsigned char _result = 0;
  831. HRESULT _hr = get_NumericScale(&_result);
  832. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  833. return _result;
  834. }
  835. inline HRESULT Field15::AppendChunk ( const _variant_t & Data ) {
  836. HRESULT _hr = raw_AppendChunk(Data);
  837. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  838. return _hr;
  839. }
  840. inline _variant_t Field15::GetChunk ( long Length ) {
  841. VARIANT _result;
  842. VariantInit(&_result);
  843. HRESULT _hr = raw_GetChunk(Length, &_result);
  844. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  845. return _variant_t(_result, false);
  846. }
  847. inline _variant_t Field15::GetOriginalValue ( ) {
  848. VARIANT _result;
  849. VariantInit(&_result);
  850. HRESULT _hr = get_OriginalValue(&_result);
  851. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  852. return _variant_t(_result, false);
  853. }
  854. inline _variant_t Field15::GetUnderlyingValue ( ) {
  855. VARIANT _result;
  856. VariantInit(&_result);
  857. HRESULT _hr = get_UnderlyingValue(&_result);
  858. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  859. return _variant_t(_result, false);
  860. }
  861. //
  862. // interface Field20_Deprecated wrapper method implementations
  863. //
  864. inline ADO_LONGPTR Field20_Deprecated::GetActualSize ( ) {
  865. ADO_LONGPTR _result;
  866. HRESULT _hr = get_ActualSize(&_result);
  867. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  868. return _result;
  869. }
  870. inline long Field20_Deprecated::GetAttributes ( ) {
  871. long _result = 0;
  872. HRESULT _hr = get_Attributes(&_result);
  873. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  874. return _result;
  875. }
  876. inline ADO_LONGPTR Field20_Deprecated::GetDefinedSize ( ) {
  877. ADO_LONGPTR _result;
  878. HRESULT _hr = get_DefinedSize(&_result);
  879. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  880. return _result;
  881. }
  882. inline _bstr_t Field20_Deprecated::GetName ( ) {
  883. BSTR _result = 0;
  884. HRESULT _hr = get_Name(&_result);
  885. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  886. return _bstr_t(_result, false);
  887. }
  888. inline enum DataTypeEnum Field20_Deprecated::GetType ( ) {
  889. enum DataTypeEnum _result;
  890. HRESULT _hr = get_Type(&_result);
  891. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  892. return _result;
  893. }
  894. inline _variant_t Field20_Deprecated::GetValue ( ) {
  895. VARIANT _result;
  896. VariantInit(&_result);
  897. HRESULT _hr = get_Value(&_result);
  898. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  899. return _variant_t(_result, false);
  900. }
  901. inline void Field20_Deprecated::PutValue ( const _variant_t & pvar ) {
  902. HRESULT _hr = put_Value(pvar);
  903. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  904. }
  905. inline unsigned char Field20_Deprecated::GetPrecision ( ) {
  906. unsigned char _result = 0;
  907. HRESULT _hr = get_Precision(&_result);
  908. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  909. return _result;
  910. }
  911. inline unsigned char Field20_Deprecated::GetNumericScale ( ) {
  912. unsigned char _result = 0;
  913. HRESULT _hr = get_NumericScale(&_result);
  914. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  915. return _result;
  916. }
  917. inline HRESULT Field20_Deprecated::AppendChunk ( const _variant_t & Data ) {
  918. HRESULT _hr = raw_AppendChunk(Data);
  919. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  920. return _hr;
  921. }
  922. inline _variant_t Field20_Deprecated::GetChunk ( long Length ) {
  923. VARIANT _result;
  924. VariantInit(&_result);
  925. HRESULT _hr = raw_GetChunk(Length, &_result);
  926. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  927. return _variant_t(_result, false);
  928. }
  929. inline _variant_t Field20_Deprecated::GetOriginalValue ( ) {
  930. VARIANT _result;
  931. VariantInit(&_result);
  932. HRESULT _hr = get_OriginalValue(&_result);
  933. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  934. return _variant_t(_result, false);
  935. }
  936. inline _variant_t Field20_Deprecated::GetUnderlyingValue ( ) {
  937. VARIANT _result;
  938. VariantInit(&_result);
  939. HRESULT _hr = get_UnderlyingValue(&_result);
  940. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  941. return _variant_t(_result, false);
  942. }
  943. inline IUnknownPtr Field20_Deprecated::GetDataFormat ( ) {
  944. IUnknown * _result = 0;
  945. HRESULT _hr = get_DataFormat(&_result);
  946. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  947. return IUnknownPtr(_result, false);
  948. }
  949. inline void Field20_Deprecated::PutRefDataFormat ( IUnknown * ppiDF ) {
  950. HRESULT _hr = putref_DataFormat(ppiDF);
  951. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  952. }
  953. inline void Field20_Deprecated::PutPrecision ( unsigned char pbPrecision ) {
  954. HRESULT _hr = put_Precision(pbPrecision);
  955. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  956. }
  957. inline void Field20_Deprecated::PutNumericScale ( unsigned char pbNumericScale ) {
  958. HRESULT _hr = put_NumericScale(pbNumericScale);
  959. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  960. }
  961. inline void Field20_Deprecated::PutType ( enum DataTypeEnum pDataType ) {
  962. HRESULT _hr = put_Type(pDataType);
  963. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  964. }
  965. inline void Field20_Deprecated::PutDefinedSize ( ADO_LONGPTR pl ) {
  966. HRESULT _hr = put_DefinedSize(pl);
  967. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  968. }
  969. inline void Field20_Deprecated::PutAttributes ( long pl ) {
  970. HRESULT _hr = put_Attributes(pl);
  971. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  972. }
  973. //
  974. // interface Field_Deprecated wrapper method implementations
  975. //
  976. inline long Field_Deprecated::GetStatus ( ) {
  977. long _result = 0;
  978. HRESULT _hr = get_Status(&_result);
  979. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  980. return _result;
  981. }
  982. //
  983. // interface Fields15_Deprecated wrapper method implementations
  984. //
  985. inline Field_DeprecatedPtr Fields15_Deprecated::GetItem ( const _variant_t & Index ) {
  986. struct Field_Deprecated * _result = 0;
  987. HRESULT _hr = get_Item(Index, &_result);
  988. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  989. return Field_DeprecatedPtr(_result, false);
  990. }
  991. //
  992. // interface Fields20_Deprecated wrapper method implementations
  993. //
  994. inline HRESULT Fields20_Deprecated::_Append ( _bstr_t Name, enum DataTypeEnum Type, ADO_LONGPTR DefinedSize, enum FieldAttributeEnum Attrib ) {
  995. HRESULT _hr = raw__Append(Name, Type, DefinedSize, Attrib);
  996. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  997. return _hr;
  998. }
  999. inline HRESULT Fields20_Deprecated::Delete ( const _variant_t & Index ) {
  1000. HRESULT _hr = raw_Delete(Index);
  1001. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1002. return _hr;
  1003. }
  1004. //
  1005. // interface Fields_Deprecated wrapper method implementations
  1006. //
  1007. inline HRESULT Fields_Deprecated::Append ( _bstr_t Name, enum DataTypeEnum Type, ADO_LONGPTR DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue ) {
  1008. HRESULT _hr = raw_Append(Name, Type, DefinedSize, Attrib, FieldValue);
  1009. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1010. return _hr;
  1011. }
  1012. inline HRESULT Fields_Deprecated::Update ( ) {
  1013. HRESULT _hr = raw_Update();
  1014. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1015. return _hr;
  1016. }
  1017. inline HRESULT Fields_Deprecated::Resync ( enum ResyncEnum ResyncValues ) {
  1018. HRESULT _hr = raw_Resync(ResyncValues);
  1019. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1020. return _hr;
  1021. }
  1022. inline HRESULT Fields_Deprecated::CancelUpdate ( ) {
  1023. HRESULT _hr = raw_CancelUpdate();
  1024. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1025. return _hr;
  1026. }
  1027. //
  1028. // interface _Parameter_Deprecated wrapper method implementations
  1029. //
  1030. inline _bstr_t _Parameter_Deprecated::GetName ( ) {
  1031. BSTR _result = 0;
  1032. HRESULT _hr = get_Name(&_result);
  1033. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1034. return _bstr_t(_result, false);
  1035. }
  1036. inline void _Parameter_Deprecated::PutName ( _bstr_t pbstr ) {
  1037. HRESULT _hr = put_Name(pbstr);
  1038. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1039. }
  1040. inline _variant_t _Parameter_Deprecated::GetValue ( ) {
  1041. VARIANT _result;
  1042. VariantInit(&_result);
  1043. HRESULT _hr = get_Value(&_result);
  1044. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1045. return _variant_t(_result, false);
  1046. }
  1047. inline void _Parameter_Deprecated::PutValue ( const _variant_t & pvar ) {
  1048. HRESULT _hr = put_Value(pvar);
  1049. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1050. }
  1051. inline enum DataTypeEnum _Parameter_Deprecated::GetType ( ) {
  1052. enum DataTypeEnum _result;
  1053. HRESULT _hr = get_Type(&_result);
  1054. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1055. return _result;
  1056. }
  1057. inline void _Parameter_Deprecated::PutType ( enum DataTypeEnum psDataType ) {
  1058. HRESULT _hr = put_Type(psDataType);
  1059. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1060. }
  1061. inline void _Parameter_Deprecated::PutDirection ( enum ParameterDirectionEnum plParmDirection ) {
  1062. HRESULT _hr = put_Direction(plParmDirection);
  1063. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1064. }
  1065. inline enum ParameterDirectionEnum _Parameter_Deprecated::GetDirection ( ) {
  1066. enum ParameterDirectionEnum _result;
  1067. HRESULT _hr = get_Direction(&_result);
  1068. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1069. return _result;
  1070. }
  1071. inline void _Parameter_Deprecated::PutPrecision ( unsigned char pbPrecision ) {
  1072. HRESULT _hr = put_Precision(pbPrecision);
  1073. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1074. }
  1075. inline unsigned char _Parameter_Deprecated::GetPrecision ( ) {
  1076. unsigned char _result = 0;
  1077. HRESULT _hr = get_Precision(&_result);
  1078. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1079. return _result;
  1080. }
  1081. inline void _Parameter_Deprecated::PutNumericScale ( unsigned char pbScale ) {
  1082. HRESULT _hr = put_NumericScale(pbScale);
  1083. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1084. }
  1085. inline unsigned char _Parameter_Deprecated::GetNumericScale ( ) {
  1086. unsigned char _result = 0;
  1087. HRESULT _hr = get_NumericScale(&_result);
  1088. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1089. return _result;
  1090. }
  1091. inline void _Parameter_Deprecated::PutSize ( ADO_LONGPTR pl ) {
  1092. HRESULT _hr = put_Size(pl);
  1093. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1094. }
  1095. inline ADO_LONGPTR _Parameter_Deprecated::GetSize ( ) {
  1096. ADO_LONGPTR _result;
  1097. HRESULT _hr = get_Size(&_result);
  1098. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1099. return _result;
  1100. }
  1101. inline HRESULT _Parameter_Deprecated::AppendChunk ( const _variant_t & Val ) {
  1102. HRESULT _hr = raw_AppendChunk(Val);
  1103. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1104. return _hr;
  1105. }
  1106. inline long _Parameter_Deprecated::GetAttributes ( ) {
  1107. long _result = 0;
  1108. HRESULT _hr = get_Attributes(&_result);
  1109. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1110. return _result;
  1111. }
  1112. inline void _Parameter_Deprecated::PutAttributes ( long plParmAttribs ) {
  1113. HRESULT _hr = put_Attributes(plParmAttribs);
  1114. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1115. }
  1116. //
  1117. // interface Parameters_Deprecated wrapper method implementations
  1118. //
  1119. inline _Parameter_DeprecatedPtr Parameters_Deprecated::GetItem ( const _variant_t & Index ) {
  1120. struct _Parameter_Deprecated * _result = 0;
  1121. HRESULT _hr = get_Item(Index, &_result);
  1122. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1123. return _Parameter_DeprecatedPtr(_result, false);
  1124. }
  1125. //
  1126. // dispinterface ConnectionEvents_Deprecated wrapper method implementations
  1127. //
  1128. inline HRESULT ConnectionEvents_Deprecated::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  1129. HRESULT _result = 0;
  1130. _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1131. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1132. return _result;
  1133. }
  1134. inline HRESULT ConnectionEvents_Deprecated::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  1135. HRESULT _result = 0;
  1136. _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1137. L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection);
  1138. return _result;
  1139. }
  1140. inline HRESULT ConnectionEvents_Deprecated::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  1141. HRESULT _result = 0;
  1142. _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1143. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1144. return _result;
  1145. }
  1146. inline HRESULT ConnectionEvents_Deprecated::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  1147. HRESULT _result = 0;
  1148. _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1149. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1150. return _result;
  1151. }
  1152. inline HRESULT ConnectionEvents_Deprecated::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) {
  1153. HRESULT _result = 0;
  1154. _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1155. L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
  1156. return _result;
  1157. }
  1158. inline HRESULT ConnectionEvents_Deprecated::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) {
  1159. HRESULT _result = 0;
  1160. _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1161. L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
  1162. return _result;
  1163. }
  1164. inline HRESULT ConnectionEvents_Deprecated::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  1165. HRESULT _result = 0;
  1166. _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1167. L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection);
  1168. return _result;
  1169. }
  1170. inline HRESULT ConnectionEvents_Deprecated::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  1171. HRESULT _result = 0;
  1172. _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1173. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  1174. return _result;
  1175. }
  1176. inline HRESULT ConnectionEvents_Deprecated::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  1177. HRESULT _result = 0;
  1178. _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1179. L"\x4003\x0009", adStatus, pConnection);
  1180. return _result;
  1181. }
  1182. //
  1183. // dispinterface RecordsetEvents_Deprecated wrapper method implementations
  1184. //
  1185. inline HRESULT RecordsetEvents_Deprecated::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1186. HRESULT _result = 0;
  1187. _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1188. L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset);
  1189. return _result;
  1190. }
  1191. inline HRESULT RecordsetEvents_Deprecated::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1192. HRESULT _result = 0;
  1193. _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1194. L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset);
  1195. return _result;
  1196. }
  1197. inline HRESULT RecordsetEvents_Deprecated::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1198. HRESULT _result = 0;
  1199. _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1200. L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset);
  1201. return _result;
  1202. }
  1203. inline HRESULT RecordsetEvents_Deprecated::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1204. HRESULT _result = 0;
  1205. _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1206. L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset);
  1207. return _result;
  1208. }
  1209. inline HRESULT RecordsetEvents_Deprecated::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1210. HRESULT _result = 0;
  1211. _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1212. L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
  1213. return _result;
  1214. }
  1215. inline HRESULT RecordsetEvents_Deprecated::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1216. HRESULT _result = 0;
  1217. _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1218. L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
  1219. return _result;
  1220. }
  1221. inline HRESULT RecordsetEvents_Deprecated::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1222. HRESULT _result = 0;
  1223. _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1224. L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
  1225. return _result;
  1226. }
  1227. inline HRESULT RecordsetEvents_Deprecated::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1228. HRESULT _result = 0;
  1229. _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1230. L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
  1231. return _result;
  1232. }
  1233. inline HRESULT RecordsetEvents_Deprecated::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1234. HRESULT _result = 0;
  1235. _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1236. L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset);
  1237. return _result;
  1238. }
  1239. inline HRESULT RecordsetEvents_Deprecated::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1240. HRESULT _result = 0;
  1241. _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1242. L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset);
  1243. return _result;
  1244. }
  1245. inline HRESULT RecordsetEvents_Deprecated::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  1246. HRESULT _result = 0;
  1247. _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  1248. L"\x0009\x4003\x0009", pError, adStatus, pRecordset);
  1249. return _result;
  1250. }
  1251. //
  1252. // interface _Stream_Deprecated wrapper method implementations
  1253. //
  1254. inline ADO_LONGPTR _Stream_Deprecated::GetSize ( ) {
  1255. ADO_LONGPTR _result;
  1256. HRESULT _hr = get_Size(&_result);
  1257. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1258. return _result;
  1259. }
  1260. inline VARIANT_BOOL _Stream_Deprecated::GetEOS ( ) {
  1261. VARIANT_BOOL _result = 0;
  1262. HRESULT _hr = get_EOS(&_result);
  1263. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1264. return _result;
  1265. }
  1266. inline ADO_LONGPTR _Stream_Deprecated::GetPosition ( ) {
  1267. ADO_LONGPTR _result;
  1268. HRESULT _hr = get_Position(&_result);
  1269. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1270. return _result;
  1271. }
  1272. inline void _Stream_Deprecated::PutPosition ( ADO_LONGPTR pPos ) {
  1273. HRESULT _hr = put_Position(pPos);
  1274. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1275. }
  1276. inline enum StreamTypeEnum _Stream_Deprecated::GetType ( ) {
  1277. enum StreamTypeEnum _result;
  1278. HRESULT _hr = get_Type(&_result);
  1279. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1280. return _result;
  1281. }
  1282. inline void _Stream_Deprecated::PutType ( enum StreamTypeEnum ptype ) {
  1283. HRESULT _hr = put_Type(ptype);
  1284. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1285. }
  1286. inline enum LineSeparatorEnum _Stream_Deprecated::GetLineSeparator ( ) {
  1287. enum LineSeparatorEnum _result;
  1288. HRESULT _hr = get_LineSeparator(&_result);
  1289. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1290. return _result;
  1291. }
  1292. inline void _Stream_Deprecated::PutLineSeparator ( enum LineSeparatorEnum pLS ) {
  1293. HRESULT _hr = put_LineSeparator(pLS);
  1294. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1295. }
  1296. inline enum ObjectStateEnum _Stream_Deprecated::GetState ( ) {
  1297. enum ObjectStateEnum _result;
  1298. HRESULT _hr = get_State(&_result);
  1299. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1300. return _result;
  1301. }
  1302. inline enum ConnectModeEnum _Stream_Deprecated::GetMode ( ) {
  1303. enum ConnectModeEnum _result;
  1304. HRESULT _hr = get_Mode(&_result);
  1305. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1306. return _result;
  1307. }
  1308. inline void _Stream_Deprecated::PutMode ( enum ConnectModeEnum pMode ) {
  1309. HRESULT _hr = put_Mode(pMode);
  1310. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1311. }
  1312. inline _bstr_t _Stream_Deprecated::GetCharset ( ) {
  1313. BSTR _result = 0;
  1314. HRESULT _hr = get_Charset(&_result);
  1315. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1316. return _bstr_t(_result, false);
  1317. }
  1318. inline void _Stream_Deprecated::PutCharset ( _bstr_t pbstrCharset ) {
  1319. HRESULT _hr = put_Charset(pbstrCharset);
  1320. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1321. }
  1322. inline _variant_t _Stream_Deprecated::Read ( long NumBytes ) {
  1323. VARIANT _result;
  1324. VariantInit(&_result);
  1325. HRESULT _hr = raw_Read(NumBytes, &_result);
  1326. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1327. return _variant_t(_result, false);
  1328. }
  1329. inline HRESULT _Stream_Deprecated::Open ( const _variant_t & Source, enum ConnectModeEnum Mode, enum StreamOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  1330. HRESULT _hr = raw_Open(Source, Mode, Options, UserName, Password);
  1331. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1332. return _hr;
  1333. }
  1334. inline HRESULT _Stream_Deprecated::Close ( ) {
  1335. HRESULT _hr = raw_Close();
  1336. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1337. return _hr;
  1338. }
  1339. inline HRESULT _Stream_Deprecated::SkipLine ( ) {
  1340. HRESULT _hr = raw_SkipLine();
  1341. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1342. return _hr;
  1343. }
  1344. inline HRESULT _Stream_Deprecated::Write ( const _variant_t & Buffer ) {
  1345. HRESULT _hr = raw_Write(Buffer);
  1346. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1347. return _hr;
  1348. }
  1349. inline HRESULT _Stream_Deprecated::SetEOS ( ) {
  1350. HRESULT _hr = raw_SetEOS();
  1351. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1352. return _hr;
  1353. }
  1354. inline HRESULT _Stream_Deprecated::CopyTo ( struct _Stream_Deprecated * DestStream, ADO_LONGPTR CharNumber ) {
  1355. HRESULT _hr = raw_CopyTo(DestStream, CharNumber);
  1356. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1357. return _hr;
  1358. }
  1359. inline HRESULT _Stream_Deprecated::Flush ( ) {
  1360. HRESULT _hr = raw_Flush();
  1361. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1362. return _hr;
  1363. }
  1364. inline HRESULT _Stream_Deprecated::SaveToFile ( _bstr_t FileName, enum SaveOptionsEnum Options ) {
  1365. HRESULT _hr = raw_SaveToFile(FileName, Options);
  1366. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1367. return _hr;
  1368. }
  1369. inline HRESULT _Stream_Deprecated::LoadFromFile ( _bstr_t FileName ) {
  1370. HRESULT _hr = raw_LoadFromFile(FileName);
  1371. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1372. return _hr;
  1373. }
  1374. inline _bstr_t _Stream_Deprecated::ReadText ( long NumChars ) {
  1375. BSTR _result = 0;
  1376. HRESULT _hr = raw_ReadText(NumChars, &_result);
  1377. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1378. return _bstr_t(_result, false);
  1379. }
  1380. inline HRESULT _Stream_Deprecated::WriteText ( _bstr_t Data, enum StreamWriteEnum Options ) {
  1381. HRESULT _hr = raw_WriteText(Data, Options);
  1382. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1383. return _hr;
  1384. }
  1385. inline HRESULT _Stream_Deprecated::Cancel ( ) {
  1386. HRESULT _hr = raw_Cancel();
  1387. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1388. return _hr;
  1389. }
  1390. //
  1391. // interface Field15_Deprecated wrapper method implementations
  1392. //
  1393. inline ADO_LONGPTR Field15_Deprecated::GetActualSize ( ) {
  1394. ADO_LONGPTR _result;
  1395. HRESULT _hr = get_ActualSize(&_result);
  1396. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1397. return _result;
  1398. }
  1399. inline long Field15_Deprecated::GetAttributes ( ) {
  1400. long _result = 0;
  1401. HRESULT _hr = get_Attributes(&_result);
  1402. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1403. return _result;
  1404. }
  1405. inline ADO_LONGPTR Field15_Deprecated::GetDefinedSize ( ) {
  1406. ADO_LONGPTR _result;
  1407. HRESULT _hr = get_DefinedSize(&_result);
  1408. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1409. return _result;
  1410. }
  1411. inline _bstr_t Field15_Deprecated::GetName ( ) {
  1412. BSTR _result = 0;
  1413. HRESULT _hr = get_Name(&_result);
  1414. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1415. return _bstr_t(_result, false);
  1416. }
  1417. inline enum DataTypeEnum Field15_Deprecated::GetType ( ) {
  1418. enum DataTypeEnum _result;
  1419. HRESULT _hr = get_Type(&_result);
  1420. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1421. return _result;
  1422. }
  1423. inline _variant_t Field15_Deprecated::GetValue ( ) {
  1424. VARIANT _result;
  1425. VariantInit(&_result);
  1426. HRESULT _hr = get_Value(&_result);
  1427. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1428. return _variant_t(_result, false);
  1429. }
  1430. inline void Field15_Deprecated::PutValue ( const _variant_t & pvar ) {
  1431. HRESULT _hr = put_Value(pvar);
  1432. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1433. }
  1434. inline unsigned char Field15_Deprecated::GetPrecision ( ) {
  1435. unsigned char _result = 0;
  1436. HRESULT _hr = get_Precision(&_result);
  1437. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1438. return _result;
  1439. }
  1440. inline unsigned char Field15_Deprecated::GetNumericScale ( ) {
  1441. unsigned char _result = 0;
  1442. HRESULT _hr = get_NumericScale(&_result);
  1443. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1444. return _result;
  1445. }
  1446. inline HRESULT Field15_Deprecated::AppendChunk ( const _variant_t & Data ) {
  1447. HRESULT _hr = raw_AppendChunk(Data);
  1448. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1449. return _hr;
  1450. }
  1451. inline _variant_t Field15_Deprecated::GetChunk ( long Length ) {
  1452. VARIANT _result;
  1453. VariantInit(&_result);
  1454. HRESULT _hr = raw_GetChunk(Length, &_result);
  1455. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1456. return _variant_t(_result, false);
  1457. }
  1458. inline _variant_t Field15_Deprecated::GetOriginalValue ( ) {
  1459. VARIANT _result;
  1460. VariantInit(&_result);
  1461. HRESULT _hr = get_OriginalValue(&_result);
  1462. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1463. return _variant_t(_result, false);
  1464. }
  1465. inline _variant_t Field15_Deprecated::GetUnderlyingValue ( ) {
  1466. VARIANT _result;
  1467. VariantInit(&_result);
  1468. HRESULT _hr = get_UnderlyingValue(&_result);
  1469. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1470. return _variant_t(_result, false);
  1471. }
  1472. //
  1473. // interface Command15 wrapper method implementations
  1474. //
  1475. inline _ConnectionPtr Command15::GetActiveConnection ( ) {
  1476. struct _Connection * _result = 0;
  1477. HRESULT _hr = get_ActiveConnection(&_result);
  1478. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1479. return _ConnectionPtr(_result, false);
  1480. }
  1481. inline void Command15::PutRefActiveConnection ( struct _Connection * ppvObject ) {
  1482. HRESULT _hr = putref_ActiveConnection(ppvObject);
  1483. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1484. }
  1485. inline void Command15::PutActiveConnection ( const _variant_t & ppvObject ) {
  1486. HRESULT _hr = put_ActiveConnection(ppvObject);
  1487. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1488. }
  1489. inline _bstr_t Command15::GetCommandText ( ) {
  1490. BSTR _result = 0;
  1491. HRESULT _hr = get_CommandText(&_result);
  1492. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1493. return _bstr_t(_result, false);
  1494. }
  1495. inline void Command15::PutCommandText ( _bstr_t pbstr ) {
  1496. HRESULT _hr = put_CommandText(pbstr);
  1497. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1498. }
  1499. inline long Command15::GetCommandTimeout ( ) {
  1500. long _result = 0;
  1501. HRESULT _hr = get_CommandTimeout(&_result);
  1502. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1503. return _result;
  1504. }
  1505. inline void Command15::PutCommandTimeout ( long pl ) {
  1506. HRESULT _hr = put_CommandTimeout(pl);
  1507. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1508. }
  1509. inline VARIANT_BOOL Command15::GetPrepared ( ) {
  1510. VARIANT_BOOL _result = 0;
  1511. HRESULT _hr = get_Prepared(&_result);
  1512. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1513. return _result;
  1514. }
  1515. inline void Command15::PutPrepared ( VARIANT_BOOL pfPrepared ) {
  1516. HRESULT _hr = put_Prepared(pfPrepared);
  1517. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1518. }
  1519. inline _RecordsetPtr Command15::Execute ( VARIANT * RecordsAffected, VARIANT * Parameters, long Options ) {
  1520. struct _Recordset * _result = 0;
  1521. HRESULT _hr = raw_Execute(RecordsAffected, Parameters, Options, &_result);
  1522. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1523. return _RecordsetPtr(_result, false);
  1524. }
  1525. inline _ParameterPtr Command15::CreateParameter ( _bstr_t Name, enum DataTypeEnum Type, enum ParameterDirectionEnum Direction, long Size, const _variant_t & Value ) {
  1526. struct _Parameter * _result = 0;
  1527. HRESULT _hr = raw_CreateParameter(Name, Type, Direction, Size, Value, &_result);
  1528. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1529. return _ParameterPtr(_result, false);
  1530. }
  1531. inline ParametersPtr Command15::GetParameters ( ) {
  1532. struct Parameters * _result = 0;
  1533. HRESULT _hr = get_Parameters(&_result);
  1534. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1535. return ParametersPtr(_result, false);
  1536. }
  1537. inline void Command15::PutCommandType ( enum CommandTypeEnum plCmdType ) {
  1538. HRESULT _hr = put_CommandType(plCmdType);
  1539. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1540. }
  1541. inline enum CommandTypeEnum Command15::GetCommandType ( ) {
  1542. enum CommandTypeEnum _result;
  1543. HRESULT _hr = get_CommandType(&_result);
  1544. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1545. return _result;
  1546. }
  1547. inline _bstr_t Command15::GetName ( ) {
  1548. BSTR _result = 0;
  1549. HRESULT _hr = get_Name(&_result);
  1550. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1551. return _bstr_t(_result, false);
  1552. }
  1553. inline void Command15::PutName ( _bstr_t pbstrName ) {
  1554. HRESULT _hr = put_Name(pbstrName);
  1555. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1556. }
  1557. //
  1558. // interface Command25 wrapper method implementations
  1559. //
  1560. inline long Command25::GetState ( ) {
  1561. long _result = 0;
  1562. HRESULT _hr = get_State(&_result);
  1563. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1564. return _result;
  1565. }
  1566. inline HRESULT Command25::Cancel ( ) {
  1567. HRESULT _hr = raw_Cancel();
  1568. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1569. return _hr;
  1570. }
  1571. //
  1572. // interface _Command wrapper method implementations
  1573. //
  1574. inline void _Command::PutRefCommandStream ( IUnknown * pvStream ) {
  1575. HRESULT _hr = putref_CommandStream(pvStream);
  1576. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1577. }
  1578. inline _variant_t _Command::GetCommandStream ( ) {
  1579. VARIANT _result;
  1580. VariantInit(&_result);
  1581. HRESULT _hr = get_CommandStream(&_result);
  1582. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1583. return _variant_t(_result, false);
  1584. }
  1585. inline void _Command::PutDialect ( _bstr_t pbstrDialect ) {
  1586. HRESULT _hr = put_Dialect(pbstrDialect);
  1587. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1588. }
  1589. inline _bstr_t _Command::GetDialect ( ) {
  1590. BSTR _result = 0;
  1591. HRESULT _hr = get_Dialect(&_result);
  1592. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1593. return _bstr_t(_result, false);
  1594. }
  1595. inline void _Command::PutNamedParameters ( VARIANT_BOOL pfNamedParameters ) {
  1596. HRESULT _hr = put_NamedParameters(pfNamedParameters);
  1597. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1598. }
  1599. inline VARIANT_BOOL _Command::GetNamedParameters ( ) {
  1600. VARIANT_BOOL _result = 0;
  1601. HRESULT _hr = get_NamedParameters(&_result);
  1602. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1603. return _result;
  1604. }
  1605. //
  1606. // interface Connection15 wrapper method implementations
  1607. //
  1608. inline _bstr_t Connection15::GetConnectionString ( ) {
  1609. BSTR _result = 0;
  1610. HRESULT _hr = get_ConnectionString(&_result);
  1611. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1612. return _bstr_t(_result, false);
  1613. }
  1614. inline void Connection15::PutConnectionString ( _bstr_t pbstr ) {
  1615. HRESULT _hr = put_ConnectionString(pbstr);
  1616. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1617. }
  1618. inline long Connection15::GetCommandTimeout ( ) {
  1619. long _result = 0;
  1620. HRESULT _hr = get_CommandTimeout(&_result);
  1621. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1622. return _result;
  1623. }
  1624. inline void Connection15::PutCommandTimeout ( long plTimeout ) {
  1625. HRESULT _hr = put_CommandTimeout(plTimeout);
  1626. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1627. }
  1628. inline long Connection15::GetConnectionTimeout ( ) {
  1629. long _result = 0;
  1630. HRESULT _hr = get_ConnectionTimeout(&_result);
  1631. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1632. return _result;
  1633. }
  1634. inline void Connection15::PutConnectionTimeout ( long plTimeout ) {
  1635. HRESULT _hr = put_ConnectionTimeout(plTimeout);
  1636. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1637. }
  1638. inline _bstr_t Connection15::GetVersion ( ) {
  1639. BSTR _result = 0;
  1640. HRESULT _hr = get_Version(&_result);
  1641. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1642. return _bstr_t(_result, false);
  1643. }
  1644. inline HRESULT Connection15::Close ( ) {
  1645. HRESULT _hr = raw_Close();
  1646. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1647. return _hr;
  1648. }
  1649. inline _RecordsetPtr Connection15::Execute ( _bstr_t CommandText, VARIANT * RecordsAffected, long Options ) {
  1650. struct _Recordset * _result = 0;
  1651. HRESULT _hr = raw_Execute(CommandText, RecordsAffected, Options, &_result);
  1652. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1653. return _RecordsetPtr(_result, false);
  1654. }
  1655. inline long Connection15::BeginTrans ( ) {
  1656. long _result = 0;
  1657. HRESULT _hr = raw_BeginTrans(&_result);
  1658. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1659. return _result;
  1660. }
  1661. inline HRESULT Connection15::CommitTrans ( ) {
  1662. HRESULT _hr = raw_CommitTrans();
  1663. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1664. return _hr;
  1665. }
  1666. inline HRESULT Connection15::RollbackTrans ( ) {
  1667. HRESULT _hr = raw_RollbackTrans();
  1668. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1669. return _hr;
  1670. }
  1671. inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
  1672. HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
  1673. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1674. return _hr;
  1675. }
  1676. inline ErrorsPtr Connection15::GetErrors ( ) {
  1677. struct Errors * _result = 0;
  1678. HRESULT _hr = get_Errors(&_result);
  1679. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1680. return ErrorsPtr(_result, false);
  1681. }
  1682. inline _bstr_t Connection15::GetDefaultDatabase ( ) {
  1683. BSTR _result = 0;
  1684. HRESULT _hr = get_DefaultDatabase(&_result);
  1685. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1686. return _bstr_t(_result, false);
  1687. }
  1688. inline void Connection15::PutDefaultDatabase ( _bstr_t pbstr ) {
  1689. HRESULT _hr = put_DefaultDatabase(pbstr);
  1690. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1691. }
  1692. inline enum IsolationLevelEnum Connection15::GetIsolationLevel ( ) {
  1693. enum IsolationLevelEnum _result;
  1694. HRESULT _hr = get_IsolationLevel(&_result);
  1695. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1696. return _result;
  1697. }
  1698. inline void Connection15::PutIsolationLevel ( enum IsolationLevelEnum Level ) {
  1699. HRESULT _hr = put_IsolationLevel(Level);
  1700. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1701. }
  1702. inline long Connection15::GetAttributes ( ) {
  1703. long _result = 0;
  1704. HRESULT _hr = get_Attributes(&_result);
  1705. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1706. return _result;
  1707. }
  1708. inline void Connection15::PutAttributes ( long plAttr ) {
  1709. HRESULT _hr = put_Attributes(plAttr);
  1710. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1711. }
  1712. inline enum CursorLocationEnum Connection15::GetCursorLocation ( ) {
  1713. enum CursorLocationEnum _result;
  1714. HRESULT _hr = get_CursorLocation(&_result);
  1715. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1716. return _result;
  1717. }
  1718. inline void Connection15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
  1719. HRESULT _hr = put_CursorLocation(plCursorLoc);
  1720. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1721. }
  1722. inline enum ConnectModeEnum Connection15::GetMode ( ) {
  1723. enum ConnectModeEnum _result;
  1724. HRESULT _hr = get_Mode(&_result);
  1725. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1726. return _result;
  1727. }
  1728. inline void Connection15::PutMode ( enum ConnectModeEnum plMode ) {
  1729. HRESULT _hr = put_Mode(plMode);
  1730. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1731. }
  1732. inline _bstr_t Connection15::GetProvider ( ) {
  1733. BSTR _result = 0;
  1734. HRESULT _hr = get_Provider(&_result);
  1735. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1736. return _bstr_t(_result, false);
  1737. }
  1738. inline void Connection15::PutProvider ( _bstr_t pbstr ) {
  1739. HRESULT _hr = put_Provider(pbstr);
  1740. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1741. }
  1742. inline long Connection15::GetState ( ) {
  1743. long _result = 0;
  1744. HRESULT _hr = get_State(&_result);
  1745. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1746. return _result;
  1747. }
  1748. inline _RecordsetPtr Connection15::OpenSchema ( enum SchemaEnum Schema, const _variant_t & Restrictions, const _variant_t & SchemaID ) {
  1749. struct _Recordset * _result = 0;
  1750. HRESULT _hr = raw_OpenSchema(Schema, Restrictions, SchemaID, &_result);
  1751. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1752. return _RecordsetPtr(_result, false);
  1753. }
  1754. //
  1755. // interface _Connection wrapper method implementations
  1756. //
  1757. inline HRESULT _Connection::Cancel ( ) {
  1758. HRESULT _hr = raw_Cancel();
  1759. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1760. return _hr;
  1761. }
  1762. //
  1763. // interface Recordset15 wrapper method implementations
  1764. //
  1765. inline enum PositionEnum Recordset15::GetAbsolutePosition ( ) {
  1766. enum PositionEnum _result;
  1767. HRESULT _hr = get_AbsolutePosition(&_result);
  1768. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1769. return _result;
  1770. }
  1771. inline void Recordset15::PutAbsolutePosition ( enum PositionEnum pl ) {
  1772. HRESULT _hr = put_AbsolutePosition(pl);
  1773. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1774. }
  1775. inline void Recordset15::PutRefActiveConnection ( IDispatch * pvar ) {
  1776. HRESULT _hr = putref_ActiveConnection(pvar);
  1777. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1778. }
  1779. inline void Recordset15::PutActiveConnection ( const _variant_t & pvar ) {
  1780. HRESULT _hr = put_ActiveConnection(pvar);
  1781. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1782. }
  1783. inline _variant_t Recordset15::GetActiveConnection ( ) {
  1784. VARIANT _result;
  1785. VariantInit(&_result);
  1786. HRESULT _hr = get_ActiveConnection(&_result);
  1787. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1788. return _variant_t(_result, false);
  1789. }
  1790. inline VARIANT_BOOL Recordset15::GetadoBOF ( ) {
  1791. VARIANT_BOOL _result = 0;
  1792. HRESULT _hr = get_adoBOF(&_result);
  1793. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1794. return _result;
  1795. }
  1796. inline _variant_t Recordset15::GetBookmark ( ) {
  1797. VARIANT _result;
  1798. VariantInit(&_result);
  1799. HRESULT _hr = get_Bookmark(&_result);
  1800. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1801. return _variant_t(_result, false);
  1802. }
  1803. inline void Recordset15::PutBookmark ( const _variant_t & pvBookmark ) {
  1804. HRESULT _hr = put_Bookmark(pvBookmark);
  1805. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1806. }
  1807. inline long Recordset15::GetCacheSize ( ) {
  1808. long _result = 0;
  1809. HRESULT _hr = get_CacheSize(&_result);
  1810. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1811. return _result;
  1812. }
  1813. inline void Recordset15::PutCacheSize ( long pl ) {
  1814. HRESULT _hr = put_CacheSize(pl);
  1815. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1816. }
  1817. inline enum CursorTypeEnum Recordset15::GetCursorType ( ) {
  1818. enum CursorTypeEnum _result;
  1819. HRESULT _hr = get_CursorType(&_result);
  1820. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1821. return _result;
  1822. }
  1823. inline void Recordset15::PutCursorType ( enum CursorTypeEnum plCursorType ) {
  1824. HRESULT _hr = put_CursorType(plCursorType);
  1825. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1826. }
  1827. inline VARIANT_BOOL Recordset15::GetadoEOF ( ) {
  1828. VARIANT_BOOL _result = 0;
  1829. HRESULT _hr = get_adoEOF(&_result);
  1830. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1831. return _result;
  1832. }
  1833. inline FieldsPtr Recordset15::GetFields ( ) {
  1834. struct Fields * _result = 0;
  1835. HRESULT _hr = get_Fields(&_result);
  1836. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1837. return FieldsPtr(_result, false);
  1838. }
  1839. inline enum LockTypeEnum Recordset15::GetLockType ( ) {
  1840. enum LockTypeEnum _result;
  1841. HRESULT _hr = get_LockType(&_result);
  1842. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1843. return _result;
  1844. }
  1845. inline void Recordset15::PutLockType ( enum LockTypeEnum plLockType ) {
  1846. HRESULT _hr = put_LockType(plLockType);
  1847. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1848. }
  1849. inline long Recordset15::GetMaxRecords ( ) {
  1850. long _result = 0;
  1851. HRESULT _hr = get_MaxRecords(&_result);
  1852. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1853. return _result;
  1854. }
  1855. inline void Recordset15::PutMaxRecords ( long plMaxRecords ) {
  1856. HRESULT _hr = put_MaxRecords(plMaxRecords);
  1857. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1858. }
  1859. inline long Recordset15::GetRecordCount ( ) {
  1860. long _result = 0;
  1861. HRESULT _hr = get_RecordCount(&_result);
  1862. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1863. return _result;
  1864. }
  1865. inline void Recordset15::PutRefSource ( IDispatch * pvSource ) {
  1866. HRESULT _hr = putref_Source(pvSource);
  1867. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1868. }
  1869. inline void Recordset15::PutSource ( _bstr_t pvSource ) {
  1870. HRESULT _hr = put_Source(pvSource);
  1871. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1872. }
  1873. inline _variant_t Recordset15::GetSource ( ) {
  1874. VARIANT _result;
  1875. VariantInit(&_result);
  1876. HRESULT _hr = get_Source(&_result);
  1877. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1878. return _variant_t(_result, false);
  1879. }
  1880. inline HRESULT Recordset15::AddNew ( const _variant_t & FieldList, const _variant_t & Values ) {
  1881. HRESULT _hr = raw_AddNew(FieldList, Values);
  1882. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1883. return _hr;
  1884. }
  1885. inline HRESULT Recordset15::CancelUpdate ( ) {
  1886. HRESULT _hr = raw_CancelUpdate();
  1887. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1888. return _hr;
  1889. }
  1890. inline HRESULT Recordset15::Close ( ) {
  1891. HRESULT _hr = raw_Close();
  1892. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1893. return _hr;
  1894. }
  1895. inline HRESULT Recordset15::Delete ( enum AffectEnum AffectRecords ) {
  1896. HRESULT _hr = raw_Delete(AffectRecords);
  1897. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1898. return _hr;
  1899. }
  1900. inline _variant_t Recordset15::GetRows ( long Rows, const _variant_t & Start, const _variant_t & Fields ) {
  1901. VARIANT _result;
  1902. VariantInit(&_result);
  1903. HRESULT _hr = raw_GetRows(Rows, Start, Fields, &_result);
  1904. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1905. return _variant_t(_result, false);
  1906. }
  1907. inline HRESULT Recordset15::Move ( long NumRecords, const _variant_t & Start ) {
  1908. HRESULT _hr = raw_Move(NumRecords, Start);
  1909. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1910. return _hr;
  1911. }
  1912. inline HRESULT Recordset15::MoveNext ( ) {
  1913. HRESULT _hr = raw_MoveNext();
  1914. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1915. return _hr;
  1916. }
  1917. inline HRESULT Recordset15::MovePrevious ( ) {
  1918. HRESULT _hr = raw_MovePrevious();
  1919. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1920. return _hr;
  1921. }
  1922. inline HRESULT Recordset15::MoveFirst ( ) {
  1923. HRESULT _hr = raw_MoveFirst();
  1924. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1925. return _hr;
  1926. }
  1927. inline HRESULT Recordset15::MoveLast ( ) {
  1928. HRESULT _hr = raw_MoveLast();
  1929. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1930. return _hr;
  1931. }
  1932. inline HRESULT Recordset15::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) {
  1933. HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options);
  1934. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1935. return _hr;
  1936. }
  1937. inline HRESULT Recordset15::Requery ( long Options ) {
  1938. HRESULT _hr = raw_Requery(Options);
  1939. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1940. return _hr;
  1941. }
  1942. inline HRESULT Recordset15::_xResync ( enum AffectEnum AffectRecords ) {
  1943. HRESULT _hr = raw__xResync(AffectRecords);
  1944. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1945. return _hr;
  1946. }
  1947. inline HRESULT Recordset15::Update ( const _variant_t & Fields, const _variant_t & Values ) {
  1948. HRESULT _hr = raw_Update(Fields, Values);
  1949. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1950. return _hr;
  1951. }
  1952. inline enum PositionEnum Recordset15::GetAbsolutePage ( ) {
  1953. enum PositionEnum _result;
  1954. HRESULT _hr = get_AbsolutePage(&_result);
  1955. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1956. return _result;
  1957. }
  1958. inline void Recordset15::PutAbsolutePage ( enum PositionEnum pl ) {
  1959. HRESULT _hr = put_AbsolutePage(pl);
  1960. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1961. }
  1962. inline enum EditModeEnum Recordset15::GetEditMode ( ) {
  1963. enum EditModeEnum _result;
  1964. HRESULT _hr = get_EditMode(&_result);
  1965. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1966. return _result;
  1967. }
  1968. inline _variant_t Recordset15::GetFilter ( ) {
  1969. VARIANT _result;
  1970. VariantInit(&_result);
  1971. HRESULT _hr = get_Filter(&_result);
  1972. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1973. return _variant_t(_result, false);
  1974. }
  1975. inline void Recordset15::PutFilter ( const _variant_t & Criteria ) {
  1976. HRESULT _hr = put_Filter(Criteria);
  1977. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1978. }
  1979. inline long Recordset15::GetPageCount ( ) {
  1980. long _result = 0;
  1981. HRESULT _hr = get_PageCount(&_result);
  1982. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1983. return _result;
  1984. }
  1985. inline long Recordset15::GetPageSize ( ) {
  1986. long _result = 0;
  1987. HRESULT _hr = get_PageSize(&_result);
  1988. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1989. return _result;
  1990. }
  1991. inline void Recordset15::PutPageSize ( long pl ) {
  1992. HRESULT _hr = put_PageSize(pl);
  1993. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1994. }
  1995. inline _bstr_t Recordset15::GetSort ( ) {
  1996. BSTR _result = 0;
  1997. HRESULT _hr = get_Sort(&_result);
  1998. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1999. return _bstr_t(_result, false);
  2000. }
  2001. inline void Recordset15::PutSort ( _bstr_t Criteria ) {
  2002. HRESULT _hr = put_Sort(Criteria);
  2003. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2004. }
  2005. inline long Recordset15::GetStatus ( ) {
  2006. long _result = 0;
  2007. HRESULT _hr = get_Status(&_result);
  2008. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2009. return _result;
  2010. }
  2011. inline long Recordset15::GetState ( ) {
  2012. long _result = 0;
  2013. HRESULT _hr = get_State(&_result);
  2014. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2015. return _result;
  2016. }
  2017. inline _RecordsetPtr Recordset15::_xClone ( ) {
  2018. struct _Recordset * _result = 0;
  2019. HRESULT _hr = raw__xClone(&_result);
  2020. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2021. return _RecordsetPtr(_result, false);
  2022. }
  2023. inline HRESULT Recordset15::UpdateBatch ( enum AffectEnum AffectRecords ) {
  2024. HRESULT _hr = raw_UpdateBatch(AffectRecords);
  2025. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2026. return _hr;
  2027. }
  2028. inline HRESULT Recordset15::CancelBatch ( enum AffectEnum AffectRecords ) {
  2029. HRESULT _hr = raw_CancelBatch(AffectRecords);
  2030. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2031. return _hr;
  2032. }
  2033. inline enum CursorLocationEnum Recordset15::GetCursorLocation ( ) {
  2034. enum CursorLocationEnum _result;
  2035. HRESULT _hr = get_CursorLocation(&_result);
  2036. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2037. return _result;
  2038. }
  2039. inline void Recordset15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
  2040. HRESULT _hr = put_CursorLocation(plCursorLoc);
  2041. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2042. }
  2043. inline _RecordsetPtr Recordset15::NextRecordset ( VARIANT * RecordsAffected ) {
  2044. struct _Recordset * _result = 0;
  2045. HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result);
  2046. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2047. return _RecordsetPtr(_result, false);
  2048. }
  2049. inline VARIANT_BOOL Recordset15::Supports ( enum CursorOptionEnum CursorOptions ) {
  2050. VARIANT_BOOL _result = 0;
  2051. HRESULT _hr = raw_Supports(CursorOptions, &_result);
  2052. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2053. return _result;
  2054. }
  2055. inline _variant_t Recordset15::GetCollect ( const _variant_t & Index ) {
  2056. VARIANT _result;
  2057. VariantInit(&_result);
  2058. HRESULT _hr = get_Collect(Index, &_result);
  2059. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2060. return _variant_t(_result, false);
  2061. }
  2062. inline void Recordset15::PutCollect ( const _variant_t & Index, const _variant_t & pvar ) {
  2063. HRESULT _hr = put_Collect(Index, pvar);
  2064. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2065. }
  2066. inline enum MarshalOptionsEnum Recordset15::GetMarshalOptions ( ) {
  2067. enum MarshalOptionsEnum _result;
  2068. HRESULT _hr = get_MarshalOptions(&_result);
  2069. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2070. return _result;
  2071. }
  2072. inline void Recordset15::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) {
  2073. HRESULT _hr = put_MarshalOptions(peMarshal);
  2074. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2075. }
  2076. inline HRESULT Recordset15::Find ( _bstr_t Criteria, long SkipRecords, enum SearchDirectionEnum SearchDirection, const _variant_t & Start ) {
  2077. HRESULT _hr = raw_Find(Criteria, SkipRecords, SearchDirection, Start);
  2078. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2079. return _hr;
  2080. }
  2081. //
  2082. // interface Recordset20 wrapper method implementations
  2083. //
  2084. inline HRESULT Recordset20::Cancel ( ) {
  2085. HRESULT _hr = raw_Cancel();
  2086. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2087. return _hr;
  2088. }
  2089. inline IUnknownPtr Recordset20::GetDataSource ( ) {
  2090. IUnknown * _result = 0;
  2091. HRESULT _hr = get_DataSource(&_result);
  2092. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2093. return IUnknownPtr(_result, false);
  2094. }
  2095. inline void Recordset20::PutRefDataSource ( IUnknown * ppunkDataSource ) {
  2096. HRESULT _hr = putref_DataSource(ppunkDataSource);
  2097. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2098. }
  2099. inline HRESULT Recordset20::_xSave ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) {
  2100. HRESULT _hr = raw__xSave(FileName, PersistFormat);
  2101. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2102. return _hr;
  2103. }
  2104. inline IDispatchPtr Recordset20::GetActiveCommand ( ) {
  2105. IDispatch * _result = 0;
  2106. HRESULT _hr = get_ActiveCommand(&_result);
  2107. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2108. return IDispatchPtr(_result, false);
  2109. }
  2110. inline void Recordset20::PutStayInSync ( VARIANT_BOOL pbStayInSync ) {
  2111. HRESULT _hr = put_StayInSync(pbStayInSync);
  2112. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2113. }
  2114. inline VARIANT_BOOL Recordset20::GetStayInSync ( ) {
  2115. VARIANT_BOOL _result = 0;
  2116. HRESULT _hr = get_StayInSync(&_result);
  2117. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2118. return _result;
  2119. }
  2120. inline _bstr_t Recordset20::GetString ( enum StringFormatEnum StringFormat, long NumRows, _bstr_t ColumnDelimeter, _bstr_t RowDelimeter, _bstr_t NullExpr ) {
  2121. BSTR _result = 0;
  2122. HRESULT _hr = raw_GetString(StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr, &_result);
  2123. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2124. return _bstr_t(_result, false);
  2125. }
  2126. inline _bstr_t Recordset20::GetDataMember ( ) {
  2127. BSTR _result = 0;
  2128. HRESULT _hr = get_DataMember(&_result);
  2129. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2130. return _bstr_t(_result, false);
  2131. }
  2132. inline void Recordset20::PutDataMember ( _bstr_t pbstrDataMember ) {
  2133. HRESULT _hr = put_DataMember(pbstrDataMember);
  2134. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2135. }
  2136. inline enum CompareEnum Recordset20::CompareBookmarks ( const _variant_t & Bookmark1, const _variant_t & Bookmark2 ) {
  2137. enum CompareEnum _result;
  2138. HRESULT _hr = raw_CompareBookmarks(Bookmark1, Bookmark2, &_result);
  2139. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2140. return _result;
  2141. }
  2142. inline _RecordsetPtr Recordset20::Clone ( enum LockTypeEnum LockType ) {
  2143. struct _Recordset * _result = 0;
  2144. HRESULT _hr = raw_Clone(LockType, &_result);
  2145. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2146. return _RecordsetPtr(_result, false);
  2147. }
  2148. inline HRESULT Recordset20::Resync ( enum AffectEnum AffectRecords, enum ResyncEnum ResyncValues ) {
  2149. HRESULT _hr = raw_Resync(AffectRecords, ResyncValues);
  2150. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2151. return _hr;
  2152. }
  2153. //
  2154. // interface Recordset21 wrapper method implementations
  2155. //
  2156. inline HRESULT Recordset21::Seek ( const _variant_t & KeyValues, enum SeekEnum SeekOption ) {
  2157. HRESULT _hr = raw_Seek(KeyValues, SeekOption);
  2158. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2159. return _hr;
  2160. }
  2161. inline void Recordset21::PutIndex ( _bstr_t pbstrIndex ) {
  2162. HRESULT _hr = put_Index(pbstrIndex);
  2163. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2164. }
  2165. inline _bstr_t Recordset21::GetIndex ( ) {
  2166. BSTR _result = 0;
  2167. HRESULT _hr = get_Index(&_result);
  2168. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2169. return _bstr_t(_result, false);
  2170. }
  2171. //
  2172. // interface _Recordset wrapper method implementations
  2173. //
  2174. inline HRESULT _Recordset::Save ( const _variant_t & Destination, enum PersistFormatEnum PersistFormat ) {
  2175. HRESULT _hr = raw_Save(Destination, PersistFormat);
  2176. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2177. return _hr;
  2178. }
  2179. //
  2180. // interface ConnectionEventsVt wrapper method implementations
  2181. //
  2182. inline HRESULT ConnectionEventsVt::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  2183. HRESULT _hr = raw_InfoMessage(pError, adStatus, pConnection);
  2184. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2185. return _hr;
  2186. }
  2187. inline HRESULT ConnectionEventsVt::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  2188. HRESULT _hr = raw_BeginTransComplete(TransactionLevel, pError, adStatus, pConnection);
  2189. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2190. return _hr;
  2191. }
  2192. inline HRESULT ConnectionEventsVt::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  2193. HRESULT _hr = raw_CommitTransComplete(pError, adStatus, pConnection);
  2194. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2195. return _hr;
  2196. }
  2197. inline HRESULT ConnectionEventsVt::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  2198. HRESULT _hr = raw_RollbackTransComplete(pError, adStatus, pConnection);
  2199. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2200. return _hr;
  2201. }
  2202. 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 ) {
  2203. HRESULT _hr = raw_WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
  2204. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2205. return _hr;
  2206. }
  2207. inline HRESULT ConnectionEventsVt::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  2208. HRESULT _hr = raw_ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
  2209. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2210. return _hr;
  2211. }
  2212. inline HRESULT ConnectionEventsVt::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  2213. HRESULT _hr = raw_WillConnect(ConnectionString, UserID, Password, Options, adStatus, pConnection);
  2214. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2215. return _hr;
  2216. }
  2217. inline HRESULT ConnectionEventsVt::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  2218. HRESULT _hr = raw_ConnectComplete(pError, adStatus, pConnection);
  2219. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2220. return _hr;
  2221. }
  2222. inline HRESULT ConnectionEventsVt::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  2223. HRESULT _hr = raw_Disconnect(adStatus, pConnection);
  2224. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2225. return _hr;
  2226. }
  2227. //
  2228. // interface RecordsetEventsVt wrapper method implementations
  2229. //
  2230. inline HRESULT RecordsetEventsVt::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2231. HRESULT _hr = raw_WillChangeField(cFields, Fields, adStatus, pRecordset);
  2232. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2233. return _hr;
  2234. }
  2235. inline HRESULT RecordsetEventsVt::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2236. HRESULT _hr = raw_FieldChangeComplete(cFields, Fields, pError, adStatus, pRecordset);
  2237. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2238. return _hr;
  2239. }
  2240. inline HRESULT RecordsetEventsVt::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2241. HRESULT _hr = raw_WillChangeRecord(adReason, cRecords, adStatus, pRecordset);
  2242. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2243. return _hr;
  2244. }
  2245. inline HRESULT RecordsetEventsVt::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2246. HRESULT _hr = raw_RecordChangeComplete(adReason, cRecords, pError, adStatus, pRecordset);
  2247. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2248. return _hr;
  2249. }
  2250. inline HRESULT RecordsetEventsVt::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2251. HRESULT _hr = raw_WillChangeRecordset(adReason, adStatus, pRecordset);
  2252. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2253. return _hr;
  2254. }
  2255. inline HRESULT RecordsetEventsVt::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2256. HRESULT _hr = raw_RecordsetChangeComplete(adReason, pError, adStatus, pRecordset);
  2257. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2258. return _hr;
  2259. }
  2260. inline HRESULT RecordsetEventsVt::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2261. HRESULT _hr = raw_WillMove(adReason, adStatus, pRecordset);
  2262. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2263. return _hr;
  2264. }
  2265. inline HRESULT RecordsetEventsVt::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2266. HRESULT _hr = raw_MoveComplete(adReason, pError, adStatus, pRecordset);
  2267. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2268. return _hr;
  2269. }
  2270. inline HRESULT RecordsetEventsVt::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2271. HRESULT _hr = raw_EndOfRecordset(fMoreData, adStatus, pRecordset);
  2272. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2273. return _hr;
  2274. }
  2275. inline HRESULT RecordsetEventsVt::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2276. HRESULT _hr = raw_FetchProgress(Progress, MaxProgress, adStatus, pRecordset);
  2277. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2278. return _hr;
  2279. }
  2280. inline HRESULT RecordsetEventsVt::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  2281. HRESULT _hr = raw_FetchComplete(pError, adStatus, pRecordset);
  2282. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2283. return _hr;
  2284. }
  2285. //
  2286. // interface _Record wrapper method implementations
  2287. //
  2288. inline _variant_t _Record::GetActiveConnection ( ) {
  2289. VARIANT _result;
  2290. VariantInit(&_result);
  2291. HRESULT _hr = get_ActiveConnection(&_result);
  2292. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2293. return _variant_t(_result, false);
  2294. }
  2295. inline void _Record::PutActiveConnection ( _bstr_t pvar ) {
  2296. HRESULT _hr = put_ActiveConnection(pvar);
  2297. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2298. }
  2299. inline void _Record::PutRefActiveConnection ( struct _Connection * pvar ) {
  2300. HRESULT _hr = putref_ActiveConnection(pvar);
  2301. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2302. }
  2303. inline enum ObjectStateEnum _Record::GetState ( ) {
  2304. enum ObjectStateEnum _result;
  2305. HRESULT _hr = get_State(&_result);
  2306. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2307. return _result;
  2308. }
  2309. inline _variant_t _Record::GetSource ( ) {
  2310. VARIANT _result;
  2311. VariantInit(&_result);
  2312. HRESULT _hr = get_Source(&_result);
  2313. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2314. return _variant_t(_result, false);
  2315. }
  2316. inline void _Record::PutSource ( _bstr_t pvar ) {
  2317. HRESULT _hr = put_Source(pvar);
  2318. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2319. }
  2320. inline void _Record::PutRefSource ( IDispatch * pvar ) {
  2321. HRESULT _hr = putref_Source(pvar);
  2322. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2323. }
  2324. inline enum ConnectModeEnum _Record::GetMode ( ) {
  2325. enum ConnectModeEnum _result;
  2326. HRESULT _hr = get_Mode(&_result);
  2327. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2328. return _result;
  2329. }
  2330. inline void _Record::PutMode ( enum ConnectModeEnum pMode ) {
  2331. HRESULT _hr = put_Mode(pMode);
  2332. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2333. }
  2334. inline _bstr_t _Record::GetParentURL ( ) {
  2335. BSTR _result = 0;
  2336. HRESULT _hr = get_ParentURL(&_result);
  2337. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2338. return _bstr_t(_result, false);
  2339. }
  2340. inline _bstr_t _Record::MoveRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum MoveRecordOptionsEnum Options, VARIANT_BOOL Async ) {
  2341. BSTR _result = 0;
  2342. HRESULT _hr = raw_MoveRecord(Source, Destination, UserName, Password, Options, Async, &_result);
  2343. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2344. return _bstr_t(_result, false);
  2345. }
  2346. inline _bstr_t _Record::CopyRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum CopyRecordOptionsEnum Options, VARIANT_BOOL Async ) {
  2347. BSTR _result = 0;
  2348. HRESULT _hr = raw_CopyRecord(Source, Destination, UserName, Password, Options, Async, &_result);
  2349. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2350. return _bstr_t(_result, false);
  2351. }
  2352. inline HRESULT _Record::DeleteRecord ( _bstr_t Source, VARIANT_BOOL Async ) {
  2353. HRESULT _hr = raw_DeleteRecord(Source, Async);
  2354. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2355. return _hr;
  2356. }
  2357. 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 ) {
  2358. HRESULT _hr = raw_Open(Source, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  2359. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2360. return _hr;
  2361. }
  2362. inline HRESULT _Record::Close ( ) {
  2363. HRESULT _hr = raw_Close();
  2364. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2365. return _hr;
  2366. }
  2367. inline FieldsPtr _Record::GetFields ( ) {
  2368. struct Fields * _result = 0;
  2369. HRESULT _hr = get_Fields(&_result);
  2370. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2371. return FieldsPtr(_result, false);
  2372. }
  2373. inline enum RecordTypeEnum _Record::GetRecordType ( ) {
  2374. enum RecordTypeEnum _result;
  2375. HRESULT _hr = get_RecordType(&_result);
  2376. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2377. return _result;
  2378. }
  2379. inline _RecordsetPtr _Record::GetChildren ( ) {
  2380. struct _Recordset * _result = 0;
  2381. HRESULT _hr = raw_GetChildren(&_result);
  2382. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2383. return _RecordsetPtr(_result, false);
  2384. }
  2385. inline HRESULT _Record::Cancel ( ) {
  2386. HRESULT _hr = raw_Cancel();
  2387. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2388. return _hr;
  2389. }
  2390. //
  2391. // interface ConnectionEventsVt_Deprecated wrapper method implementations
  2392. //
  2393. inline HRESULT ConnectionEventsVt_Deprecated::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  2394. HRESULT _hr = raw_InfoMessage(pError, adStatus, pConnection);
  2395. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2396. return _hr;
  2397. }
  2398. inline HRESULT ConnectionEventsVt_Deprecated::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  2399. HRESULT _hr = raw_BeginTransComplete(TransactionLevel, pError, adStatus, pConnection);
  2400. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2401. return _hr;
  2402. }
  2403. inline HRESULT ConnectionEventsVt_Deprecated::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  2404. HRESULT _hr = raw_CommitTransComplete(pError, adStatus, pConnection);
  2405. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2406. return _hr;
  2407. }
  2408. inline HRESULT ConnectionEventsVt_Deprecated::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  2409. HRESULT _hr = raw_RollbackTransComplete(pError, adStatus, pConnection);
  2410. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2411. return _hr;
  2412. }
  2413. inline HRESULT ConnectionEventsVt_Deprecated::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) {
  2414. HRESULT _hr = raw_WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
  2415. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2416. return _hr;
  2417. }
  2418. inline HRESULT ConnectionEventsVt_Deprecated::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command_Deprecated * pCommand, struct _Recordset_Deprecated * pRecordset, struct _Connection_Deprecated * pConnection ) {
  2419. HRESULT _hr = raw_ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
  2420. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2421. return _hr;
  2422. }
  2423. inline HRESULT ConnectionEventsVt_Deprecated::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  2424. HRESULT _hr = raw_WillConnect(ConnectionString, UserID, Password, Options, adStatus, pConnection);
  2425. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2426. return _hr;
  2427. }
  2428. inline HRESULT ConnectionEventsVt_Deprecated::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  2429. HRESULT _hr = raw_ConnectComplete(pError, adStatus, pConnection);
  2430. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2431. return _hr;
  2432. }
  2433. inline HRESULT ConnectionEventsVt_Deprecated::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection_Deprecated * pConnection ) {
  2434. HRESULT _hr = raw_Disconnect(adStatus, pConnection);
  2435. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2436. return _hr;
  2437. }
  2438. //
  2439. // interface Connection15_Deprecated wrapper method implementations
  2440. //
  2441. inline _bstr_t Connection15_Deprecated::GetConnectionString ( ) {
  2442. BSTR _result = 0;
  2443. HRESULT _hr = get_ConnectionString(&_result);
  2444. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2445. return _bstr_t(_result, false);
  2446. }
  2447. inline void Connection15_Deprecated::PutConnectionString ( _bstr_t pbstr ) {
  2448. HRESULT _hr = put_ConnectionString(pbstr);
  2449. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2450. }
  2451. inline long Connection15_Deprecated::GetCommandTimeout ( ) {
  2452. long _result = 0;
  2453. HRESULT _hr = get_CommandTimeout(&_result);
  2454. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2455. return _result;
  2456. }
  2457. inline void Connection15_Deprecated::PutCommandTimeout ( long plTimeout ) {
  2458. HRESULT _hr = put_CommandTimeout(plTimeout);
  2459. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2460. }
  2461. inline long Connection15_Deprecated::GetConnectionTimeout ( ) {
  2462. long _result = 0;
  2463. HRESULT _hr = get_ConnectionTimeout(&_result);
  2464. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2465. return _result;
  2466. }
  2467. inline void Connection15_Deprecated::PutConnectionTimeout ( long plTimeout ) {
  2468. HRESULT _hr = put_ConnectionTimeout(plTimeout);
  2469. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2470. }
  2471. inline _bstr_t Connection15_Deprecated::GetVersion ( ) {
  2472. BSTR _result = 0;
  2473. HRESULT _hr = get_Version(&_result);
  2474. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2475. return _bstr_t(_result, false);
  2476. }
  2477. inline HRESULT Connection15_Deprecated::Close ( ) {
  2478. HRESULT _hr = raw_Close();
  2479. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2480. return _hr;
  2481. }
  2482. inline _Recordset_DeprecatedPtr Connection15_Deprecated::Execute ( _bstr_t CommandText, VARIANT * RecordsAffected, long Options ) {
  2483. struct _Recordset_Deprecated * _result = 0;
  2484. HRESULT _hr = raw_Execute(CommandText, RecordsAffected, Options, &_result);
  2485. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2486. return _Recordset_DeprecatedPtr(_result, false);
  2487. }
  2488. inline long Connection15_Deprecated::BeginTrans ( ) {
  2489. long _result = 0;
  2490. HRESULT _hr = raw_BeginTrans(&_result);
  2491. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2492. return _result;
  2493. }
  2494. inline HRESULT Connection15_Deprecated::CommitTrans ( ) {
  2495. HRESULT _hr = raw_CommitTrans();
  2496. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2497. return _hr;
  2498. }
  2499. inline HRESULT Connection15_Deprecated::RollbackTrans ( ) {
  2500. HRESULT _hr = raw_RollbackTrans();
  2501. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2502. return _hr;
  2503. }
  2504. inline HRESULT Connection15_Deprecated::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
  2505. HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
  2506. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2507. return _hr;
  2508. }
  2509. inline ErrorsPtr Connection15_Deprecated::GetErrors ( ) {
  2510. struct Errors * _result = 0;
  2511. HRESULT _hr = get_Errors(&_result);
  2512. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2513. return ErrorsPtr(_result, false);
  2514. }
  2515. inline _bstr_t Connection15_Deprecated::GetDefaultDatabase ( ) {
  2516. BSTR _result = 0;
  2517. HRESULT _hr = get_DefaultDatabase(&_result);
  2518. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2519. return _bstr_t(_result, false);
  2520. }
  2521. inline void Connection15_Deprecated::PutDefaultDatabase ( _bstr_t pbstr ) {
  2522. HRESULT _hr = put_DefaultDatabase(pbstr);
  2523. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2524. }
  2525. inline enum IsolationLevelEnum Connection15_Deprecated::GetIsolationLevel ( ) {
  2526. enum IsolationLevelEnum _result;
  2527. HRESULT _hr = get_IsolationLevel(&_result);
  2528. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2529. return _result;
  2530. }
  2531. inline void Connection15_Deprecated::PutIsolationLevel ( enum IsolationLevelEnum Level ) {
  2532. HRESULT _hr = put_IsolationLevel(Level);
  2533. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2534. }
  2535. inline long Connection15_Deprecated::GetAttributes ( ) {
  2536. long _result = 0;
  2537. HRESULT _hr = get_Attributes(&_result);
  2538. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2539. return _result;
  2540. }
  2541. inline void Connection15_Deprecated::PutAttributes ( long plAttr ) {
  2542. HRESULT _hr = put_Attributes(plAttr);
  2543. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2544. }
  2545. inline enum CursorLocationEnum Connection15_Deprecated::GetCursorLocation ( ) {
  2546. enum CursorLocationEnum _result;
  2547. HRESULT _hr = get_CursorLocation(&_result);
  2548. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2549. return _result;
  2550. }
  2551. inline void Connection15_Deprecated::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
  2552. HRESULT _hr = put_CursorLocation(plCursorLoc);
  2553. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2554. }
  2555. inline enum ConnectModeEnum Connection15_Deprecated::GetMode ( ) {
  2556. enum ConnectModeEnum _result;
  2557. HRESULT _hr = get_Mode(&_result);
  2558. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2559. return _result;
  2560. }
  2561. inline void Connection15_Deprecated::PutMode ( enum ConnectModeEnum plMode ) {
  2562. HRESULT _hr = put_Mode(plMode);
  2563. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2564. }
  2565. inline _bstr_t Connection15_Deprecated::GetProvider ( ) {
  2566. BSTR _result = 0;
  2567. HRESULT _hr = get_Provider(&_result);
  2568. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2569. return _bstr_t(_result, false);
  2570. }
  2571. inline void Connection15_Deprecated::PutProvider ( _bstr_t pbstr ) {
  2572. HRESULT _hr = put_Provider(pbstr);
  2573. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2574. }
  2575. inline long Connection15_Deprecated::GetState ( ) {
  2576. long _result = 0;
  2577. HRESULT _hr = get_State(&_result);
  2578. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2579. return _result;
  2580. }
  2581. inline _Recordset_DeprecatedPtr Connection15_Deprecated::OpenSchema ( enum SchemaEnum Schema, const _variant_t & Restrictions, const _variant_t & SchemaID ) {
  2582. struct _Recordset_Deprecated * _result = 0;
  2583. HRESULT _hr = raw_OpenSchema(Schema, Restrictions, SchemaID, &_result);
  2584. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2585. return _Recordset_DeprecatedPtr(_result, false);
  2586. }
  2587. //
  2588. // interface _Connection_Deprecated wrapper method implementations
  2589. //
  2590. inline HRESULT _Connection_Deprecated::Cancel ( ) {
  2591. HRESULT _hr = raw_Cancel();
  2592. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2593. return _hr;
  2594. }
  2595. //
  2596. // interface Recordset15_Deprecated wrapper method implementations
  2597. //
  2598. inline PositionEnum_Param Recordset15_Deprecated::GetAbsolutePosition ( ) {
  2599. PositionEnum_Param _result;
  2600. HRESULT _hr = get_AbsolutePosition(&_result);
  2601. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2602. return _result;
  2603. }
  2604. inline void Recordset15_Deprecated::PutAbsolutePosition ( PositionEnum_Param pl ) {
  2605. HRESULT _hr = put_AbsolutePosition(pl);
  2606. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2607. }
  2608. inline void Recordset15_Deprecated::PutRefActiveConnection ( IDispatch * pvar ) {
  2609. HRESULT _hr = putref_ActiveConnection(pvar);
  2610. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2611. }
  2612. inline void Recordset15_Deprecated::PutActiveConnection ( const _variant_t & pvar ) {
  2613. HRESULT _hr = put_ActiveConnection(pvar);
  2614. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2615. }
  2616. inline _variant_t Recordset15_Deprecated::GetActiveConnection ( ) {
  2617. VARIANT _result;
  2618. VariantInit(&_result);
  2619. HRESULT _hr = get_ActiveConnection(&_result);
  2620. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2621. return _variant_t(_result, false);
  2622. }
  2623. inline VARIANT_BOOL Recordset15_Deprecated::GetadoBOF ( ) {
  2624. VARIANT_BOOL _result = 0;
  2625. HRESULT _hr = get_adoBOF(&_result);
  2626. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2627. return _result;
  2628. }
  2629. inline _variant_t Recordset15_Deprecated::GetBookmark ( ) {
  2630. VARIANT _result;
  2631. VariantInit(&_result);
  2632. HRESULT _hr = get_Bookmark(&_result);
  2633. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2634. return _variant_t(_result, false);
  2635. }
  2636. inline void Recordset15_Deprecated::PutBookmark ( const _variant_t & pvBookmark ) {
  2637. HRESULT _hr = put_Bookmark(pvBookmark);
  2638. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2639. }
  2640. inline long Recordset15_Deprecated::GetCacheSize ( ) {
  2641. long _result = 0;
  2642. HRESULT _hr = get_CacheSize(&_result);
  2643. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2644. return _result;
  2645. }
  2646. inline void Recordset15_Deprecated::PutCacheSize ( long pl ) {
  2647. HRESULT _hr = put_CacheSize(pl);
  2648. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2649. }
  2650. inline enum CursorTypeEnum Recordset15_Deprecated::GetCursorType ( ) {
  2651. enum CursorTypeEnum _result;
  2652. HRESULT _hr = get_CursorType(&_result);
  2653. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2654. return _result;
  2655. }
  2656. inline void Recordset15_Deprecated::PutCursorType ( enum CursorTypeEnum plCursorType ) {
  2657. HRESULT _hr = put_CursorType(plCursorType);
  2658. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2659. }
  2660. inline VARIANT_BOOL Recordset15_Deprecated::GetadoEOF ( ) {
  2661. VARIANT_BOOL _result = 0;
  2662. HRESULT _hr = get_adoEOF(&_result);
  2663. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2664. return _result;
  2665. }
  2666. inline Fields_DeprecatedPtr Recordset15_Deprecated::GetFields ( ) {
  2667. struct Fields_Deprecated * _result = 0;
  2668. HRESULT _hr = get_Fields(&_result);
  2669. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2670. return Fields_DeprecatedPtr(_result, false);
  2671. }
  2672. inline enum LockTypeEnum Recordset15_Deprecated::GetLockType ( ) {
  2673. enum LockTypeEnum _result;
  2674. HRESULT _hr = get_LockType(&_result);
  2675. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2676. return _result;
  2677. }
  2678. inline void Recordset15_Deprecated::PutLockType ( enum LockTypeEnum plLockType ) {
  2679. HRESULT _hr = put_LockType(plLockType);
  2680. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2681. }
  2682. inline ADO_LONGPTR Recordset15_Deprecated::GetMaxRecords ( ) {
  2683. ADO_LONGPTR _result;
  2684. HRESULT _hr = get_MaxRecords(&_result);
  2685. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2686. return _result;
  2687. }
  2688. inline void Recordset15_Deprecated::PutMaxRecords ( ADO_LONGPTR plMaxRecords ) {
  2689. HRESULT _hr = put_MaxRecords(plMaxRecords);
  2690. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2691. }
  2692. inline ADO_LONGPTR Recordset15_Deprecated::GetRecordCount ( ) {
  2693. ADO_LONGPTR _result;
  2694. HRESULT _hr = get_RecordCount(&_result);
  2695. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2696. return _result;
  2697. }
  2698. inline void Recordset15_Deprecated::PutRefSource ( IDispatch * pvSource ) {
  2699. HRESULT _hr = putref_Source(pvSource);
  2700. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2701. }
  2702. inline void Recordset15_Deprecated::PutSource ( _bstr_t pvSource ) {
  2703. HRESULT _hr = put_Source(pvSource);
  2704. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2705. }
  2706. inline _variant_t Recordset15_Deprecated::GetSource ( ) {
  2707. VARIANT _result;
  2708. VariantInit(&_result);
  2709. HRESULT _hr = get_Source(&_result);
  2710. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2711. return _variant_t(_result, false);
  2712. }
  2713. inline HRESULT Recordset15_Deprecated::AddNew ( const _variant_t & FieldList, const _variant_t & Values ) {
  2714. HRESULT _hr = raw_AddNew(FieldList, Values);
  2715. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2716. return _hr;
  2717. }
  2718. inline HRESULT Recordset15_Deprecated::CancelUpdate ( ) {
  2719. HRESULT _hr = raw_CancelUpdate();
  2720. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2721. return _hr;
  2722. }
  2723. inline HRESULT Recordset15_Deprecated::Close ( ) {
  2724. HRESULT _hr = raw_Close();
  2725. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2726. return _hr;
  2727. }
  2728. inline HRESULT Recordset15_Deprecated::Delete ( enum AffectEnum AffectRecords ) {
  2729. HRESULT _hr = raw_Delete(AffectRecords);
  2730. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2731. return _hr;
  2732. }
  2733. inline _variant_t Recordset15_Deprecated::GetRows ( long Rows, const _variant_t & Start, const _variant_t & Fields ) {
  2734. VARIANT _result;
  2735. VariantInit(&_result);
  2736. HRESULT _hr = raw_GetRows(Rows, Start, Fields, &_result);
  2737. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2738. return _variant_t(_result, false);
  2739. }
  2740. inline HRESULT Recordset15_Deprecated::Move ( ADO_LONGPTR NumRecords, const _variant_t & Start ) {
  2741. HRESULT _hr = raw_Move(NumRecords, Start);
  2742. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2743. return _hr;
  2744. }
  2745. inline HRESULT Recordset15_Deprecated::MoveNext ( ) {
  2746. HRESULT _hr = raw_MoveNext();
  2747. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2748. return _hr;
  2749. }
  2750. inline HRESULT Recordset15_Deprecated::MovePrevious ( ) {
  2751. HRESULT _hr = raw_MovePrevious();
  2752. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2753. return _hr;
  2754. }
  2755. inline HRESULT Recordset15_Deprecated::MoveFirst ( ) {
  2756. HRESULT _hr = raw_MoveFirst();
  2757. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2758. return _hr;
  2759. }
  2760. inline HRESULT Recordset15_Deprecated::MoveLast ( ) {
  2761. HRESULT _hr = raw_MoveLast();
  2762. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2763. return _hr;
  2764. }
  2765. inline HRESULT Recordset15_Deprecated::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) {
  2766. HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options);
  2767. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2768. return _hr;
  2769. }
  2770. inline HRESULT Recordset15_Deprecated::Requery ( long Options ) {
  2771. HRESULT _hr = raw_Requery(Options);
  2772. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2773. return _hr;
  2774. }
  2775. inline HRESULT Recordset15_Deprecated::_xResync ( enum AffectEnum AffectRecords ) {
  2776. HRESULT _hr = raw__xResync(AffectRecords);
  2777. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2778. return _hr;
  2779. }
  2780. inline HRESULT Recordset15_Deprecated::Update ( const _variant_t & Fields, const _variant_t & Values ) {
  2781. HRESULT _hr = raw_Update(Fields, Values);
  2782. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2783. return _hr;
  2784. }
  2785. inline PositionEnum_Param Recordset15_Deprecated::GetAbsolutePage ( ) {
  2786. PositionEnum_Param _result;
  2787. HRESULT _hr = get_AbsolutePage(&_result);
  2788. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2789. return _result;
  2790. }
  2791. inline void Recordset15_Deprecated::PutAbsolutePage ( PositionEnum_Param pl ) {
  2792. HRESULT _hr = put_AbsolutePage(pl);
  2793. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2794. }
  2795. inline enum EditModeEnum Recordset15_Deprecated::GetEditMode ( ) {
  2796. enum EditModeEnum _result;
  2797. HRESULT _hr = get_EditMode(&_result);
  2798. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2799. return _result;
  2800. }
  2801. inline _variant_t Recordset15_Deprecated::GetFilter ( ) {
  2802. VARIANT _result;
  2803. VariantInit(&_result);
  2804. HRESULT _hr = get_Filter(&_result);
  2805. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2806. return _variant_t(_result, false);
  2807. }
  2808. inline void Recordset15_Deprecated::PutFilter ( const _variant_t & Criteria ) {
  2809. HRESULT _hr = put_Filter(Criteria);
  2810. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2811. }
  2812. inline ADO_LONGPTR Recordset15_Deprecated::GetPageCount ( ) {
  2813. ADO_LONGPTR _result;
  2814. HRESULT _hr = get_PageCount(&_result);
  2815. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2816. return _result;
  2817. }
  2818. inline long Recordset15_Deprecated::GetPageSize ( ) {
  2819. long _result = 0;
  2820. HRESULT _hr = get_PageSize(&_result);
  2821. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2822. return _result;
  2823. }
  2824. inline void Recordset15_Deprecated::PutPageSize ( long pl ) {
  2825. HRESULT _hr = put_PageSize(pl);
  2826. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2827. }
  2828. inline _bstr_t Recordset15_Deprecated::GetSort ( ) {
  2829. BSTR _result = 0;
  2830. HRESULT _hr = get_Sort(&_result);
  2831. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2832. return _bstr_t(_result, false);
  2833. }
  2834. inline void Recordset15_Deprecated::PutSort ( _bstr_t Criteria ) {
  2835. HRESULT _hr = put_Sort(Criteria);
  2836. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2837. }
  2838. inline long Recordset15_Deprecated::GetStatus ( ) {
  2839. long _result = 0;
  2840. HRESULT _hr = get_Status(&_result);
  2841. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2842. return _result;
  2843. }
  2844. inline long Recordset15_Deprecated::GetState ( ) {
  2845. long _result = 0;
  2846. HRESULT _hr = get_State(&_result);
  2847. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2848. return _result;
  2849. }
  2850. inline _Recordset_DeprecatedPtr Recordset15_Deprecated::_xClone ( ) {
  2851. struct _Recordset_Deprecated * _result = 0;
  2852. HRESULT _hr = raw__xClone(&_result);
  2853. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2854. return _Recordset_DeprecatedPtr(_result, false);
  2855. }
  2856. inline HRESULT Recordset15_Deprecated::UpdateBatch ( enum AffectEnum AffectRecords ) {
  2857. HRESULT _hr = raw_UpdateBatch(AffectRecords);
  2858. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2859. return _hr;
  2860. }
  2861. inline HRESULT Recordset15_Deprecated::CancelBatch ( enum AffectEnum AffectRecords ) {
  2862. HRESULT _hr = raw_CancelBatch(AffectRecords);
  2863. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2864. return _hr;
  2865. }
  2866. inline enum CursorLocationEnum Recordset15_Deprecated::GetCursorLocation ( ) {
  2867. enum CursorLocationEnum _result;
  2868. HRESULT _hr = get_CursorLocation(&_result);
  2869. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2870. return _result;
  2871. }
  2872. inline void Recordset15_Deprecated::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
  2873. HRESULT _hr = put_CursorLocation(plCursorLoc);
  2874. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2875. }
  2876. inline _Recordset_DeprecatedPtr Recordset15_Deprecated::NextRecordset ( VARIANT * RecordsAffected ) {
  2877. struct _Recordset_Deprecated * _result = 0;
  2878. HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result);
  2879. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2880. return _Recordset_DeprecatedPtr(_result, false);
  2881. }
  2882. inline VARIANT_BOOL Recordset15_Deprecated::Supports ( enum CursorOptionEnum CursorOptions ) {
  2883. VARIANT_BOOL _result = 0;
  2884. HRESULT _hr = raw_Supports(CursorOptions, &_result);
  2885. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2886. return _result;
  2887. }
  2888. inline _variant_t Recordset15_Deprecated::GetCollect ( const _variant_t & Index ) {
  2889. VARIANT _result;
  2890. VariantInit(&_result);
  2891. HRESULT _hr = get_Collect(Index, &_result);
  2892. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2893. return _variant_t(_result, false);
  2894. }
  2895. inline void Recordset15_Deprecated::PutCollect ( const _variant_t & Index, const _variant_t & pvar ) {
  2896. HRESULT _hr = put_Collect(Index, pvar);
  2897. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2898. }
  2899. inline enum MarshalOptionsEnum Recordset15_Deprecated::GetMarshalOptions ( ) {
  2900. enum MarshalOptionsEnum _result;
  2901. HRESULT _hr = get_MarshalOptions(&_result);
  2902. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2903. return _result;
  2904. }
  2905. inline void Recordset15_Deprecated::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) {
  2906. HRESULT _hr = put_MarshalOptions(peMarshal);
  2907. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2908. }
  2909. inline HRESULT Recordset15_Deprecated::Find ( _bstr_t Criteria, ADO_LONGPTR SkipRecords, enum SearchDirectionEnum SearchDirection, const _variant_t & Start ) {
  2910. HRESULT _hr = raw_Find(Criteria, SkipRecords, SearchDirection, Start);
  2911. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2912. return _hr;
  2913. }
  2914. //
  2915. // interface Recordset20_Deprecated wrapper method implementations
  2916. //
  2917. inline HRESULT Recordset20_Deprecated::Cancel ( ) {
  2918. HRESULT _hr = raw_Cancel();
  2919. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2920. return _hr;
  2921. }
  2922. inline IUnknownPtr Recordset20_Deprecated::GetDataSource ( ) {
  2923. IUnknown * _result = 0;
  2924. HRESULT _hr = get_DataSource(&_result);
  2925. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2926. return IUnknownPtr(_result, false);
  2927. }
  2928. inline void Recordset20_Deprecated::PutRefDataSource ( IUnknown * ppunkDataSource ) {
  2929. HRESULT _hr = putref_DataSource(ppunkDataSource);
  2930. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2931. }
  2932. inline HRESULT Recordset20_Deprecated::_xSave ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) {
  2933. HRESULT _hr = raw__xSave(FileName, PersistFormat);
  2934. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2935. return _hr;
  2936. }
  2937. inline IDispatchPtr Recordset20_Deprecated::GetActiveCommand ( ) {
  2938. IDispatch * _result = 0;
  2939. HRESULT _hr = get_ActiveCommand(&_result);
  2940. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2941. return IDispatchPtr(_result, false);
  2942. }
  2943. inline void Recordset20_Deprecated::PutStayInSync ( VARIANT_BOOL pbStayInSync ) {
  2944. HRESULT _hr = put_StayInSync(pbStayInSync);
  2945. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2946. }
  2947. inline VARIANT_BOOL Recordset20_Deprecated::GetStayInSync ( ) {
  2948. VARIANT_BOOL _result = 0;
  2949. HRESULT _hr = get_StayInSync(&_result);
  2950. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2951. return _result;
  2952. }
  2953. inline _bstr_t Recordset20_Deprecated::GetString ( enum StringFormatEnum StringFormat, long NumRows, _bstr_t ColumnDelimeter, _bstr_t RowDelimeter, _bstr_t NullExpr ) {
  2954. BSTR _result = 0;
  2955. HRESULT _hr = raw_GetString(StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr, &_result);
  2956. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2957. return _bstr_t(_result, false);
  2958. }
  2959. inline _bstr_t Recordset20_Deprecated::GetDataMember ( ) {
  2960. BSTR _result = 0;
  2961. HRESULT _hr = get_DataMember(&_result);
  2962. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2963. return _bstr_t(_result, false);
  2964. }
  2965. inline void Recordset20_Deprecated::PutDataMember ( _bstr_t pbstrDataMember ) {
  2966. HRESULT _hr = put_DataMember(pbstrDataMember);
  2967. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2968. }
  2969. inline enum CompareEnum Recordset20_Deprecated::CompareBookmarks ( const _variant_t & Bookmark1, const _variant_t & Bookmark2 ) {
  2970. enum CompareEnum _result;
  2971. HRESULT _hr = raw_CompareBookmarks(Bookmark1, Bookmark2, &_result);
  2972. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2973. return _result;
  2974. }
  2975. inline _Recordset_DeprecatedPtr Recordset20_Deprecated::Clone ( enum LockTypeEnum LockType ) {
  2976. struct _Recordset_Deprecated * _result = 0;
  2977. HRESULT _hr = raw_Clone(LockType, &_result);
  2978. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2979. return _Recordset_DeprecatedPtr(_result, false);
  2980. }
  2981. inline HRESULT Recordset20_Deprecated::Resync ( enum AffectEnum AffectRecords, enum ResyncEnum ResyncValues ) {
  2982. HRESULT _hr = raw_Resync(AffectRecords, ResyncValues);
  2983. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2984. return _hr;
  2985. }
  2986. //
  2987. // interface Recordset21_Deprecated wrapper method implementations
  2988. //
  2989. inline HRESULT Recordset21_Deprecated::Seek ( const _variant_t & KeyValues, enum SeekEnum SeekOption ) {
  2990. HRESULT _hr = raw_Seek(KeyValues, SeekOption);
  2991. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2992. return _hr;
  2993. }
  2994. inline void Recordset21_Deprecated::PutIndex ( _bstr_t pbstrIndex ) {
  2995. HRESULT _hr = put_Index(pbstrIndex);
  2996. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2997. }
  2998. inline _bstr_t Recordset21_Deprecated::GetIndex ( ) {
  2999. BSTR _result = 0;
  3000. HRESULT _hr = get_Index(&_result);
  3001. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3002. return _bstr_t(_result, false);
  3003. }
  3004. //
  3005. // interface _Recordset_Deprecated wrapper method implementations
  3006. //
  3007. inline HRESULT _Recordset_Deprecated::Save ( const _variant_t & Destination, enum PersistFormatEnum PersistFormat ) {
  3008. HRESULT _hr = raw_Save(Destination, PersistFormat);
  3009. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3010. return _hr;
  3011. }
  3012. //
  3013. // interface Command15_Deprecated wrapper method implementations
  3014. //
  3015. inline _Connection_DeprecatedPtr Command15_Deprecated::GetActiveConnection ( ) {
  3016. struct _Connection_Deprecated * _result = 0;
  3017. HRESULT _hr = get_ActiveConnection(&_result);
  3018. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3019. return _Connection_DeprecatedPtr(_result, false);
  3020. }
  3021. inline void Command15_Deprecated::PutRefActiveConnection ( struct _Connection_Deprecated * ppvObject ) {
  3022. HRESULT _hr = putref_ActiveConnection(ppvObject);
  3023. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3024. }
  3025. inline void Command15_Deprecated::PutActiveConnection ( const _variant_t & ppvObject ) {
  3026. HRESULT _hr = put_ActiveConnection(ppvObject);
  3027. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3028. }
  3029. inline _bstr_t Command15_Deprecated::GetCommandText ( ) {
  3030. BSTR _result = 0;
  3031. HRESULT _hr = get_CommandText(&_result);
  3032. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3033. return _bstr_t(_result, false);
  3034. }
  3035. inline void Command15_Deprecated::PutCommandText ( _bstr_t pbstr ) {
  3036. HRESULT _hr = put_CommandText(pbstr);
  3037. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3038. }
  3039. inline long Command15_Deprecated::GetCommandTimeout ( ) {
  3040. long _result = 0;
  3041. HRESULT _hr = get_CommandTimeout(&_result);
  3042. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3043. return _result;
  3044. }
  3045. inline void Command15_Deprecated::PutCommandTimeout ( long pl ) {
  3046. HRESULT _hr = put_CommandTimeout(pl);
  3047. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3048. }
  3049. inline VARIANT_BOOL Command15_Deprecated::GetPrepared ( ) {
  3050. VARIANT_BOOL _result = 0;
  3051. HRESULT _hr = get_Prepared(&_result);
  3052. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3053. return _result;
  3054. }
  3055. inline void Command15_Deprecated::PutPrepared ( VARIANT_BOOL pfPrepared ) {
  3056. HRESULT _hr = put_Prepared(pfPrepared);
  3057. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3058. }
  3059. inline _Recordset_DeprecatedPtr Command15_Deprecated::Execute ( VARIANT * RecordsAffected, VARIANT * Parameters, long Options ) {
  3060. struct _Recordset_Deprecated * _result = 0;
  3061. HRESULT _hr = raw_Execute(RecordsAffected, Parameters, Options, &_result);
  3062. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3063. return _Recordset_DeprecatedPtr(_result, false);
  3064. }
  3065. inline _Parameter_DeprecatedPtr Command15_Deprecated::CreateParameter ( _bstr_t Name, enum DataTypeEnum Type, enum ParameterDirectionEnum Direction, ADO_LONGPTR Size, const _variant_t & Value ) {
  3066. struct _Parameter_Deprecated * _result = 0;
  3067. HRESULT _hr = raw_CreateParameter(Name, Type, Direction, Size, Value, &_result);
  3068. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3069. return _Parameter_DeprecatedPtr(_result, false);
  3070. }
  3071. inline Parameters_DeprecatedPtr Command15_Deprecated::GetParameters ( ) {
  3072. struct Parameters_Deprecated * _result = 0;
  3073. HRESULT _hr = get_Parameters(&_result);
  3074. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3075. return Parameters_DeprecatedPtr(_result, false);
  3076. }
  3077. inline void Command15_Deprecated::PutCommandType ( enum CommandTypeEnum plCmdType ) {
  3078. HRESULT _hr = put_CommandType(plCmdType);
  3079. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3080. }
  3081. inline enum CommandTypeEnum Command15_Deprecated::GetCommandType ( ) {
  3082. enum CommandTypeEnum _result;
  3083. HRESULT _hr = get_CommandType(&_result);
  3084. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3085. return _result;
  3086. }
  3087. inline _bstr_t Command15_Deprecated::GetName ( ) {
  3088. BSTR _result = 0;
  3089. HRESULT _hr = get_Name(&_result);
  3090. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3091. return _bstr_t(_result, false);
  3092. }
  3093. inline void Command15_Deprecated::PutName ( _bstr_t pbstrName ) {
  3094. HRESULT _hr = put_Name(pbstrName);
  3095. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3096. }
  3097. //
  3098. // interface Command25_Deprecated wrapper method implementations
  3099. //
  3100. inline long Command25_Deprecated::GetState ( ) {
  3101. long _result = 0;
  3102. HRESULT _hr = get_State(&_result);
  3103. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3104. return _result;
  3105. }
  3106. inline HRESULT Command25_Deprecated::Cancel ( ) {
  3107. HRESULT _hr = raw_Cancel();
  3108. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3109. return _hr;
  3110. }
  3111. //
  3112. // interface _Command_Deprecated wrapper method implementations
  3113. //
  3114. inline void _Command_Deprecated::PutRefCommandStream ( IUnknown * pvStream ) {
  3115. HRESULT _hr = putref_CommandStream(pvStream);
  3116. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3117. }
  3118. inline _variant_t _Command_Deprecated::GetCommandStream ( ) {
  3119. VARIANT _result;
  3120. VariantInit(&_result);
  3121. HRESULT _hr = get_CommandStream(&_result);
  3122. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3123. return _variant_t(_result, false);
  3124. }
  3125. inline void _Command_Deprecated::PutDialect ( _bstr_t pbstrDialect ) {
  3126. HRESULT _hr = put_Dialect(pbstrDialect);
  3127. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3128. }
  3129. inline _bstr_t _Command_Deprecated::GetDialect ( ) {
  3130. BSTR _result = 0;
  3131. HRESULT _hr = get_Dialect(&_result);
  3132. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3133. return _bstr_t(_result, false);
  3134. }
  3135. inline void _Command_Deprecated::PutNamedParameters ( VARIANT_BOOL pfNamedParameters ) {
  3136. HRESULT _hr = put_NamedParameters(pfNamedParameters);
  3137. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3138. }
  3139. inline VARIANT_BOOL _Command_Deprecated::GetNamedParameters ( ) {
  3140. VARIANT_BOOL _result = 0;
  3141. HRESULT _hr = get_NamedParameters(&_result);
  3142. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3143. return _result;
  3144. }
  3145. //
  3146. // interface RecordsetEventsVt_Deprecated wrapper method implementations
  3147. //
  3148. inline HRESULT RecordsetEventsVt_Deprecated::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3149. HRESULT _hr = raw_WillChangeField(cFields, Fields, adStatus, pRecordset);
  3150. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3151. return _hr;
  3152. }
  3153. inline HRESULT RecordsetEventsVt_Deprecated::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3154. HRESULT _hr = raw_FieldChangeComplete(cFields, Fields, pError, adStatus, pRecordset);
  3155. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3156. return _hr;
  3157. }
  3158. inline HRESULT RecordsetEventsVt_Deprecated::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3159. HRESULT _hr = raw_WillChangeRecord(adReason, cRecords, adStatus, pRecordset);
  3160. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3161. return _hr;
  3162. }
  3163. inline HRESULT RecordsetEventsVt_Deprecated::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3164. HRESULT _hr = raw_RecordChangeComplete(adReason, cRecords, pError, adStatus, pRecordset);
  3165. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3166. return _hr;
  3167. }
  3168. inline HRESULT RecordsetEventsVt_Deprecated::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3169. HRESULT _hr = raw_WillChangeRecordset(adReason, adStatus, pRecordset);
  3170. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3171. return _hr;
  3172. }
  3173. inline HRESULT RecordsetEventsVt_Deprecated::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3174. HRESULT _hr = raw_RecordsetChangeComplete(adReason, pError, adStatus, pRecordset);
  3175. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3176. return _hr;
  3177. }
  3178. inline HRESULT RecordsetEventsVt_Deprecated::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3179. HRESULT _hr = raw_WillMove(adReason, adStatus, pRecordset);
  3180. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3181. return _hr;
  3182. }
  3183. inline HRESULT RecordsetEventsVt_Deprecated::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3184. HRESULT _hr = raw_MoveComplete(adReason, pError, adStatus, pRecordset);
  3185. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3186. return _hr;
  3187. }
  3188. inline HRESULT RecordsetEventsVt_Deprecated::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3189. HRESULT _hr = raw_EndOfRecordset(fMoreData, adStatus, pRecordset);
  3190. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3191. return _hr;
  3192. }
  3193. inline HRESULT RecordsetEventsVt_Deprecated::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3194. HRESULT _hr = raw_FetchProgress(Progress, MaxProgress, adStatus, pRecordset);
  3195. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3196. return _hr;
  3197. }
  3198. inline HRESULT RecordsetEventsVt_Deprecated::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset_Deprecated * pRecordset ) {
  3199. HRESULT _hr = raw_FetchComplete(pError, adStatus, pRecordset);
  3200. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3201. return _hr;
  3202. }
  3203. //
  3204. // interface _Record_Deprecated wrapper method implementations
  3205. //
  3206. inline _variant_t _Record_Deprecated::GetActiveConnection ( ) {
  3207. VARIANT _result;
  3208. VariantInit(&_result);
  3209. HRESULT _hr = get_ActiveConnection(&_result);
  3210. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3211. return _variant_t(_result, false);
  3212. }
  3213. inline void _Record_Deprecated::PutActiveConnection ( _bstr_t pvar ) {
  3214. HRESULT _hr = put_ActiveConnection(pvar);
  3215. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3216. }
  3217. inline void _Record_Deprecated::PutRefActiveConnection ( struct _Connection_Deprecated * pvar ) {
  3218. HRESULT _hr = putref_ActiveConnection(pvar);
  3219. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3220. }
  3221. inline enum ObjectStateEnum _Record_Deprecated::GetState ( ) {
  3222. enum ObjectStateEnum _result;
  3223. HRESULT _hr = get_State(&_result);
  3224. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3225. return _result;
  3226. }
  3227. inline _variant_t _Record_Deprecated::GetSource ( ) {
  3228. VARIANT _result;
  3229. VariantInit(&_result);
  3230. HRESULT _hr = get_Source(&_result);
  3231. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3232. return _variant_t(_result, false);
  3233. }
  3234. inline void _Record_Deprecated::PutSource ( _bstr_t pvar ) {
  3235. HRESULT _hr = put_Source(pvar);
  3236. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3237. }
  3238. inline void _Record_Deprecated::PutRefSource ( IDispatch * pvar ) {
  3239. HRESULT _hr = putref_Source(pvar);
  3240. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3241. }
  3242. inline enum ConnectModeEnum _Record_Deprecated::GetMode ( ) {
  3243. enum ConnectModeEnum _result;
  3244. HRESULT _hr = get_Mode(&_result);
  3245. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3246. return _result;
  3247. }
  3248. inline void _Record_Deprecated::PutMode ( enum ConnectModeEnum pMode ) {
  3249. HRESULT _hr = put_Mode(pMode);
  3250. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3251. }
  3252. inline _bstr_t _Record_Deprecated::GetParentURL ( ) {
  3253. BSTR _result = 0;
  3254. HRESULT _hr = get_ParentURL(&_result);
  3255. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3256. return _bstr_t(_result, false);
  3257. }
  3258. inline _bstr_t _Record_Deprecated::MoveRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum MoveRecordOptionsEnum Options, VARIANT_BOOL Async ) {
  3259. BSTR _result = 0;
  3260. HRESULT _hr = raw_MoveRecord(Source, Destination, UserName, Password, Options, Async, &_result);
  3261. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3262. return _bstr_t(_result, false);
  3263. }
  3264. inline _bstr_t _Record_Deprecated::CopyRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum CopyRecordOptionsEnum Options, VARIANT_BOOL Async ) {
  3265. BSTR _result = 0;
  3266. HRESULT _hr = raw_CopyRecord(Source, Destination, UserName, Password, Options, Async, &_result);
  3267. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3268. return _bstr_t(_result, false);
  3269. }
  3270. inline HRESULT _Record_Deprecated::DeleteRecord ( _bstr_t Source, VARIANT_BOOL Async ) {
  3271. HRESULT _hr = raw_DeleteRecord(Source, Async);
  3272. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3273. return _hr;
  3274. }
  3275. inline HRESULT _Record_Deprecated::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  3276. HRESULT _hr = raw_Open(Source, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  3277. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3278. return _hr;
  3279. }
  3280. inline HRESULT _Record_Deprecated::Close ( ) {
  3281. HRESULT _hr = raw_Close();
  3282. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3283. return _hr;
  3284. }
  3285. inline Fields_DeprecatedPtr _Record_Deprecated::GetFields ( ) {
  3286. struct Fields_Deprecated * _result = 0;
  3287. HRESULT _hr = get_Fields(&_result);
  3288. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3289. return Fields_DeprecatedPtr(_result, false);
  3290. }
  3291. inline enum RecordTypeEnum _Record_Deprecated::GetRecordType ( ) {
  3292. enum RecordTypeEnum _result;
  3293. HRESULT _hr = get_RecordType(&_result);
  3294. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3295. return _result;
  3296. }
  3297. inline _Recordset_DeprecatedPtr _Record_Deprecated::GetChildren ( ) {
  3298. struct _Recordset_Deprecated * _result = 0;
  3299. HRESULT _hr = raw_GetChildren(&_result);
  3300. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3301. return _Recordset_DeprecatedPtr(_result, false);
  3302. }
  3303. inline HRESULT _Record_Deprecated::Cancel ( ) {
  3304. HRESULT _hr = raw_Cancel();
  3305. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3306. return _hr;
  3307. }