sapi54.h 903 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245
  1. /*** Autogenerated by WIDL 7.7 from include/sapi54.idl - Do not edit ***/
  2. #ifdef _WIN32
  3. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  4. #define __REQUIRED_RPCNDR_H_VERSION__ 475
  5. #endif
  6. #include <rpc.h>
  7. #include <rpcndr.h>
  8. #endif
  9. #ifndef COM_NO_WINDOWS_H
  10. #include <windows.h>
  11. #include <ole2.h>
  12. #endif
  13. #ifndef __sapi54_h__
  14. #define __sapi54_h__
  15. /* Forward declarations */
  16. #ifndef __ISpNotifySource_FWD_DEFINED__
  17. #define __ISpNotifySource_FWD_DEFINED__
  18. typedef interface ISpNotifySource ISpNotifySource;
  19. #ifdef __cplusplus
  20. interface ISpNotifySource;
  21. #endif /* __cplusplus */
  22. #endif
  23. #ifndef __ISpNotifySink_FWD_DEFINED__
  24. #define __ISpNotifySink_FWD_DEFINED__
  25. typedef interface ISpNotifySink ISpNotifySink;
  26. #ifdef __cplusplus
  27. interface ISpNotifySink;
  28. #endif /* __cplusplus */
  29. #endif
  30. #ifndef __ISpNotifyTranslator_FWD_DEFINED__
  31. #define __ISpNotifyTranslator_FWD_DEFINED__
  32. typedef interface ISpNotifyTranslator ISpNotifyTranslator;
  33. #ifdef __cplusplus
  34. interface ISpNotifyTranslator;
  35. #endif /* __cplusplus */
  36. #endif
  37. #ifndef __ISpDataKey_FWD_DEFINED__
  38. #define __ISpDataKey_FWD_DEFINED__
  39. typedef interface ISpDataKey ISpDataKey;
  40. #ifdef __cplusplus
  41. interface ISpDataKey;
  42. #endif /* __cplusplus */
  43. #endif
  44. #ifndef __ISpObjectWithToken_FWD_DEFINED__
  45. #define __ISpObjectWithToken_FWD_DEFINED__
  46. typedef interface ISpObjectWithToken ISpObjectWithToken;
  47. #ifdef __cplusplus
  48. interface ISpObjectWithToken;
  49. #endif /* __cplusplus */
  50. #endif
  51. #ifndef __IEnumSpObjectTokens_FWD_DEFINED__
  52. #define __IEnumSpObjectTokens_FWD_DEFINED__
  53. typedef interface IEnumSpObjectTokens IEnumSpObjectTokens;
  54. #ifdef __cplusplus
  55. interface IEnumSpObjectTokens;
  56. #endif /* __cplusplus */
  57. #endif
  58. #ifndef __ISpRegDataKey_FWD_DEFINED__
  59. #define __ISpRegDataKey_FWD_DEFINED__
  60. typedef interface ISpRegDataKey ISpRegDataKey;
  61. #ifdef __cplusplus
  62. interface ISpRegDataKey;
  63. #endif /* __cplusplus */
  64. #endif
  65. #ifndef __ISpObjectTokenCategory_FWD_DEFINED__
  66. #define __ISpObjectTokenCategory_FWD_DEFINED__
  67. typedef interface ISpObjectTokenCategory ISpObjectTokenCategory;
  68. #ifdef __cplusplus
  69. interface ISpObjectTokenCategory;
  70. #endif /* __cplusplus */
  71. #endif
  72. #ifndef __ISpObjectToken_FWD_DEFINED__
  73. #define __ISpObjectToken_FWD_DEFINED__
  74. typedef interface ISpObjectToken ISpObjectToken;
  75. #ifdef __cplusplus
  76. interface ISpObjectToken;
  77. #endif /* __cplusplus */
  78. #endif
  79. #ifndef __ISpObjectTokenInit_FWD_DEFINED__
  80. #define __ISpObjectTokenInit_FWD_DEFINED__
  81. typedef interface ISpObjectTokenInit ISpObjectTokenInit;
  82. #ifdef __cplusplus
  83. interface ISpObjectTokenInit;
  84. #endif /* __cplusplus */
  85. #endif
  86. #ifndef __ISpResourceManager_FWD_DEFINED__
  87. #define __ISpResourceManager_FWD_DEFINED__
  88. typedef interface ISpResourceManager ISpResourceManager;
  89. #ifdef __cplusplus
  90. interface ISpResourceManager;
  91. #endif /* __cplusplus */
  92. #endif
  93. #ifndef __ISpEventSource_FWD_DEFINED__
  94. #define __ISpEventSource_FWD_DEFINED__
  95. typedef interface ISpEventSource ISpEventSource;
  96. #ifdef __cplusplus
  97. interface ISpEventSource;
  98. #endif /* __cplusplus */
  99. #endif
  100. #ifndef __ISpEventSource2_FWD_DEFINED__
  101. #define __ISpEventSource2_FWD_DEFINED__
  102. typedef interface ISpEventSource2 ISpEventSource2;
  103. #ifdef __cplusplus
  104. interface ISpEventSource2;
  105. #endif /* __cplusplus */
  106. #endif
  107. #ifndef __ISpEventSink_FWD_DEFINED__
  108. #define __ISpEventSink_FWD_DEFINED__
  109. typedef interface ISpEventSink ISpEventSink;
  110. #ifdef __cplusplus
  111. interface ISpEventSink;
  112. #endif /* __cplusplus */
  113. #endif
  114. #ifndef __ISpStreamFormat_FWD_DEFINED__
  115. #define __ISpStreamFormat_FWD_DEFINED__
  116. typedef interface ISpStreamFormat ISpStreamFormat;
  117. #ifdef __cplusplus
  118. interface ISpStreamFormat;
  119. #endif /* __cplusplus */
  120. #endif
  121. #ifndef __ISpStream_FWD_DEFINED__
  122. #define __ISpStream_FWD_DEFINED__
  123. typedef interface ISpStream ISpStream;
  124. #ifdef __cplusplus
  125. interface ISpStream;
  126. #endif /* __cplusplus */
  127. #endif
  128. #ifndef __ISpStreamFormatConverter_FWD_DEFINED__
  129. #define __ISpStreamFormatConverter_FWD_DEFINED__
  130. typedef interface ISpStreamFormatConverter ISpStreamFormatConverter;
  131. #ifdef __cplusplus
  132. interface ISpStreamFormatConverter;
  133. #endif /* __cplusplus */
  134. #endif
  135. #ifndef __ISpAudio_FWD_DEFINED__
  136. #define __ISpAudio_FWD_DEFINED__
  137. typedef interface ISpAudio ISpAudio;
  138. #ifdef __cplusplus
  139. interface ISpAudio;
  140. #endif /* __cplusplus */
  141. #endif
  142. #ifndef __ISpMMSysAudio_FWD_DEFINED__
  143. #define __ISpMMSysAudio_FWD_DEFINED__
  144. typedef interface ISpMMSysAudio ISpMMSysAudio;
  145. #ifdef __cplusplus
  146. interface ISpMMSysAudio;
  147. #endif /* __cplusplus */
  148. #endif
  149. #ifndef __ISpTranscript_FWD_DEFINED__
  150. #define __ISpTranscript_FWD_DEFINED__
  151. typedef interface ISpTranscript ISpTranscript;
  152. #ifdef __cplusplus
  153. interface ISpTranscript;
  154. #endif /* __cplusplus */
  155. #endif
  156. #ifndef __ISpLexicon_FWD_DEFINED__
  157. #define __ISpLexicon_FWD_DEFINED__
  158. typedef interface ISpLexicon ISpLexicon;
  159. #ifdef __cplusplus
  160. interface ISpLexicon;
  161. #endif /* __cplusplus */
  162. #endif
  163. #ifndef __ISpContainerLexicon_FWD_DEFINED__
  164. #define __ISpContainerLexicon_FWD_DEFINED__
  165. typedef interface ISpContainerLexicon ISpContainerLexicon;
  166. #ifdef __cplusplus
  167. interface ISpContainerLexicon;
  168. #endif /* __cplusplus */
  169. #endif
  170. #ifndef __ISpShortcut_FWD_DEFINED__
  171. #define __ISpShortcut_FWD_DEFINED__
  172. typedef interface ISpShortcut ISpShortcut;
  173. #ifdef __cplusplus
  174. interface ISpShortcut;
  175. #endif /* __cplusplus */
  176. #endif
  177. #ifndef __ISpPhoneConverter_FWD_DEFINED__
  178. #define __ISpPhoneConverter_FWD_DEFINED__
  179. typedef interface ISpPhoneConverter ISpPhoneConverter;
  180. #ifdef __cplusplus
  181. interface ISpPhoneConverter;
  182. #endif /* __cplusplus */
  183. #endif
  184. #ifndef __ISpPhoneticAlphabetConverter_FWD_DEFINED__
  185. #define __ISpPhoneticAlphabetConverter_FWD_DEFINED__
  186. typedef interface ISpPhoneticAlphabetConverter ISpPhoneticAlphabetConverter;
  187. #ifdef __cplusplus
  188. interface ISpPhoneticAlphabetConverter;
  189. #endif /* __cplusplus */
  190. #endif
  191. #ifndef __ISpPhoneticAlphabetSelection_FWD_DEFINED__
  192. #define __ISpPhoneticAlphabetSelection_FWD_DEFINED__
  193. typedef interface ISpPhoneticAlphabetSelection ISpPhoneticAlphabetSelection;
  194. #ifdef __cplusplus
  195. interface ISpPhoneticAlphabetSelection;
  196. #endif /* __cplusplus */
  197. #endif
  198. #ifndef __ISpVoice_FWD_DEFINED__
  199. #define __ISpVoice_FWD_DEFINED__
  200. typedef interface ISpVoice ISpVoice;
  201. #ifdef __cplusplus
  202. interface ISpVoice;
  203. #endif /* __cplusplus */
  204. #endif
  205. #ifndef __ISpPhrase_FWD_DEFINED__
  206. #define __ISpPhrase_FWD_DEFINED__
  207. typedef interface ISpPhrase ISpPhrase;
  208. #ifdef __cplusplus
  209. interface ISpPhrase;
  210. #endif /* __cplusplus */
  211. #endif
  212. #ifndef __ISpPhraseAlt_FWD_DEFINED__
  213. #define __ISpPhraseAlt_FWD_DEFINED__
  214. typedef interface ISpPhraseAlt ISpPhraseAlt;
  215. #ifdef __cplusplus
  216. interface ISpPhraseAlt;
  217. #endif /* __cplusplus */
  218. #endif
  219. #ifndef __ISpPhrase2_FWD_DEFINED__
  220. #define __ISpPhrase2_FWD_DEFINED__
  221. typedef interface ISpPhrase2 ISpPhrase2;
  222. #ifdef __cplusplus
  223. interface ISpPhrase2;
  224. #endif /* __cplusplus */
  225. #endif
  226. #ifndef __ISpRecoResult_FWD_DEFINED__
  227. #define __ISpRecoResult_FWD_DEFINED__
  228. typedef interface ISpRecoResult ISpRecoResult;
  229. #ifdef __cplusplus
  230. interface ISpRecoResult;
  231. #endif /* __cplusplus */
  232. #endif
  233. #ifndef __ISpRecoResult2_FWD_DEFINED__
  234. #define __ISpRecoResult2_FWD_DEFINED__
  235. typedef interface ISpRecoResult2 ISpRecoResult2;
  236. #ifdef __cplusplus
  237. interface ISpRecoResult2;
  238. #endif /* __cplusplus */
  239. #endif
  240. #ifndef __ISpXMLRecoResult_FWD_DEFINED__
  241. #define __ISpXMLRecoResult_FWD_DEFINED__
  242. typedef interface ISpXMLRecoResult ISpXMLRecoResult;
  243. #ifdef __cplusplus
  244. interface ISpXMLRecoResult;
  245. #endif /* __cplusplus */
  246. #endif
  247. #ifndef __ISpGrammarBuilder_FWD_DEFINED__
  248. #define __ISpGrammarBuilder_FWD_DEFINED__
  249. typedef interface ISpGrammarBuilder ISpGrammarBuilder;
  250. #ifdef __cplusplus
  251. interface ISpGrammarBuilder;
  252. #endif /* __cplusplus */
  253. #endif
  254. #ifndef __ISpRecoGrammar_FWD_DEFINED__
  255. #define __ISpRecoGrammar_FWD_DEFINED__
  256. typedef interface ISpRecoGrammar ISpRecoGrammar;
  257. #ifdef __cplusplus
  258. interface ISpRecoGrammar;
  259. #endif /* __cplusplus */
  260. #endif
  261. #ifndef __ISpGrammarBuilder2_FWD_DEFINED__
  262. #define __ISpGrammarBuilder2_FWD_DEFINED__
  263. typedef interface ISpGrammarBuilder2 ISpGrammarBuilder2;
  264. #ifdef __cplusplus
  265. interface ISpGrammarBuilder2;
  266. #endif /* __cplusplus */
  267. #endif
  268. #ifndef __ISpRecoGrammar2_FWD_DEFINED__
  269. #define __ISpRecoGrammar2_FWD_DEFINED__
  270. typedef interface ISpRecoGrammar2 ISpRecoGrammar2;
  271. #ifdef __cplusplus
  272. interface ISpRecoGrammar2;
  273. #endif /* __cplusplus */
  274. #endif
  275. #ifndef __ISpeechResourceLoader_FWD_DEFINED__
  276. #define __ISpeechResourceLoader_FWD_DEFINED__
  277. typedef interface ISpeechResourceLoader ISpeechResourceLoader;
  278. #ifdef __cplusplus
  279. interface ISpeechResourceLoader;
  280. #endif /* __cplusplus */
  281. #endif
  282. #ifndef __ISpRecoContext_FWD_DEFINED__
  283. #define __ISpRecoContext_FWD_DEFINED__
  284. typedef interface ISpRecoContext ISpRecoContext;
  285. #ifdef __cplusplus
  286. interface ISpRecoContext;
  287. #endif /* __cplusplus */
  288. #endif
  289. #ifndef __ISpRecoContext2_FWD_DEFINED__
  290. #define __ISpRecoContext2_FWD_DEFINED__
  291. typedef interface ISpRecoContext2 ISpRecoContext2;
  292. #ifdef __cplusplus
  293. interface ISpRecoContext2;
  294. #endif /* __cplusplus */
  295. #endif
  296. #ifndef __ISpProperties_FWD_DEFINED__
  297. #define __ISpProperties_FWD_DEFINED__
  298. typedef interface ISpProperties ISpProperties;
  299. #ifdef __cplusplus
  300. interface ISpProperties;
  301. #endif /* __cplusplus */
  302. #endif
  303. #ifndef __ISpRecognizer_FWD_DEFINED__
  304. #define __ISpRecognizer_FWD_DEFINED__
  305. typedef interface ISpRecognizer ISpRecognizer;
  306. #ifdef __cplusplus
  307. interface ISpRecognizer;
  308. #endif /* __cplusplus */
  309. #endif
  310. #ifndef __ISpSerializeState_FWD_DEFINED__
  311. #define __ISpSerializeState_FWD_DEFINED__
  312. typedef interface ISpSerializeState ISpSerializeState;
  313. #ifdef __cplusplus
  314. interface ISpSerializeState;
  315. #endif /* __cplusplus */
  316. #endif
  317. #ifndef __ISpRecognizer2_FWD_DEFINED__
  318. #define __ISpRecognizer2_FWD_DEFINED__
  319. typedef interface ISpRecognizer2 ISpRecognizer2;
  320. #ifdef __cplusplus
  321. interface ISpRecognizer2;
  322. #endif /* __cplusplus */
  323. #endif
  324. #ifndef __ISpRecoCategory_FWD_DEFINED__
  325. #define __ISpRecoCategory_FWD_DEFINED__
  326. typedef interface ISpRecoCategory ISpRecoCategory;
  327. #ifdef __cplusplus
  328. interface ISpRecoCategory;
  329. #endif /* __cplusplus */
  330. #endif
  331. #ifndef __ISpRecognizer3_FWD_DEFINED__
  332. #define __ISpRecognizer3_FWD_DEFINED__
  333. typedef interface ISpRecognizer3 ISpRecognizer3;
  334. #ifdef __cplusplus
  335. interface ISpRecognizer3;
  336. #endif /* __cplusplus */
  337. #endif
  338. #ifndef __ISpEnginePronunciation_FWD_DEFINED__
  339. #define __ISpEnginePronunciation_FWD_DEFINED__
  340. typedef interface ISpEnginePronunciation ISpEnginePronunciation;
  341. #ifdef __cplusplus
  342. interface ISpEnginePronunciation;
  343. #endif /* __cplusplus */
  344. #endif
  345. #ifndef __ISpDisplayAlternates_FWD_DEFINED__
  346. #define __ISpDisplayAlternates_FWD_DEFINED__
  347. typedef interface ISpDisplayAlternates ISpDisplayAlternates;
  348. #ifdef __cplusplus
  349. interface ISpDisplayAlternates;
  350. #endif /* __cplusplus */
  351. #endif
  352. #ifndef __ISpeechDataKey_FWD_DEFINED__
  353. #define __ISpeechDataKey_FWD_DEFINED__
  354. typedef interface ISpeechDataKey ISpeechDataKey;
  355. #ifdef __cplusplus
  356. interface ISpeechDataKey;
  357. #endif /* __cplusplus */
  358. #endif
  359. #ifndef __ISpeechObjectToken_FWD_DEFINED__
  360. #define __ISpeechObjectToken_FWD_DEFINED__
  361. typedef interface ISpeechObjectToken ISpeechObjectToken;
  362. #ifdef __cplusplus
  363. interface ISpeechObjectToken;
  364. #endif /* __cplusplus */
  365. #endif
  366. #ifndef __ISpeechObjectTokens_FWD_DEFINED__
  367. #define __ISpeechObjectTokens_FWD_DEFINED__
  368. typedef interface ISpeechObjectTokens ISpeechObjectTokens;
  369. #ifdef __cplusplus
  370. interface ISpeechObjectTokens;
  371. #endif /* __cplusplus */
  372. #endif
  373. #ifndef __ISpeechObjectTokenCategory_FWD_DEFINED__
  374. #define __ISpeechObjectTokenCategory_FWD_DEFINED__
  375. typedef interface ISpeechObjectTokenCategory ISpeechObjectTokenCategory;
  376. #ifdef __cplusplus
  377. interface ISpeechObjectTokenCategory;
  378. #endif /* __cplusplus */
  379. #endif
  380. #ifndef __ISpeechAudioFormat_FWD_DEFINED__
  381. #define __ISpeechAudioFormat_FWD_DEFINED__
  382. typedef interface ISpeechAudioFormat ISpeechAudioFormat;
  383. #ifdef __cplusplus
  384. interface ISpeechAudioFormat;
  385. #endif /* __cplusplus */
  386. #endif
  387. #ifndef __ISpeechBaseStream_FWD_DEFINED__
  388. #define __ISpeechBaseStream_FWD_DEFINED__
  389. typedef interface ISpeechBaseStream ISpeechBaseStream;
  390. #ifdef __cplusplus
  391. interface ISpeechBaseStream;
  392. #endif /* __cplusplus */
  393. #endif
  394. #ifndef __ISpeechAudio_FWD_DEFINED__
  395. #define __ISpeechAudio_FWD_DEFINED__
  396. typedef interface ISpeechAudio ISpeechAudio;
  397. #ifdef __cplusplus
  398. interface ISpeechAudio;
  399. #endif /* __cplusplus */
  400. #endif
  401. #ifndef __ISpeechMMSysAudio_FWD_DEFINED__
  402. #define __ISpeechMMSysAudio_FWD_DEFINED__
  403. typedef interface ISpeechMMSysAudio ISpeechMMSysAudio;
  404. #ifdef __cplusplus
  405. interface ISpeechMMSysAudio;
  406. #endif /* __cplusplus */
  407. #endif
  408. #ifndef __ISpeechFileStream_FWD_DEFINED__
  409. #define __ISpeechFileStream_FWD_DEFINED__
  410. typedef interface ISpeechFileStream ISpeechFileStream;
  411. #ifdef __cplusplus
  412. interface ISpeechFileStream;
  413. #endif /* __cplusplus */
  414. #endif
  415. #ifndef __ISpeechCustomStream_FWD_DEFINED__
  416. #define __ISpeechCustomStream_FWD_DEFINED__
  417. typedef interface ISpeechCustomStream ISpeechCustomStream;
  418. #ifdef __cplusplus
  419. interface ISpeechCustomStream;
  420. #endif /* __cplusplus */
  421. #endif
  422. #ifndef __ISpeechMemoryStream_FWD_DEFINED__
  423. #define __ISpeechMemoryStream_FWD_DEFINED__
  424. typedef interface ISpeechMemoryStream ISpeechMemoryStream;
  425. #ifdef __cplusplus
  426. interface ISpeechMemoryStream;
  427. #endif /* __cplusplus */
  428. #endif
  429. #ifndef __ISpeechAudioStatus_FWD_DEFINED__
  430. #define __ISpeechAudioStatus_FWD_DEFINED__
  431. typedef interface ISpeechAudioStatus ISpeechAudioStatus;
  432. #ifdef __cplusplus
  433. interface ISpeechAudioStatus;
  434. #endif /* __cplusplus */
  435. #endif
  436. #ifndef __ISpeechAudioBufferInfo_FWD_DEFINED__
  437. #define __ISpeechAudioBufferInfo_FWD_DEFINED__
  438. typedef interface ISpeechAudioBufferInfo ISpeechAudioBufferInfo;
  439. #ifdef __cplusplus
  440. interface ISpeechAudioBufferInfo;
  441. #endif /* __cplusplus */
  442. #endif
  443. #ifndef __ISpeechWaveFormatEx_FWD_DEFINED__
  444. #define __ISpeechWaveFormatEx_FWD_DEFINED__
  445. typedef interface ISpeechWaveFormatEx ISpeechWaveFormatEx;
  446. #ifdef __cplusplus
  447. interface ISpeechWaveFormatEx;
  448. #endif /* __cplusplus */
  449. #endif
  450. #ifndef __ISpeechVoice_FWD_DEFINED__
  451. #define __ISpeechVoice_FWD_DEFINED__
  452. typedef interface ISpeechVoice ISpeechVoice;
  453. #ifdef __cplusplus
  454. interface ISpeechVoice;
  455. #endif /* __cplusplus */
  456. #endif
  457. #ifndef __ISpeechVoiceStatus_FWD_DEFINED__
  458. #define __ISpeechVoiceStatus_FWD_DEFINED__
  459. typedef interface ISpeechVoiceStatus ISpeechVoiceStatus;
  460. #ifdef __cplusplus
  461. interface ISpeechVoiceStatus;
  462. #endif /* __cplusplus */
  463. #endif
  464. #ifndef ___ISpeechVoiceEvents_FWD_DEFINED__
  465. #define ___ISpeechVoiceEvents_FWD_DEFINED__
  466. typedef interface _ISpeechVoiceEvents _ISpeechVoiceEvents;
  467. #ifdef __cplusplus
  468. interface _ISpeechVoiceEvents;
  469. #endif /* __cplusplus */
  470. #endif
  471. #ifndef __ISpeechRecognizer_FWD_DEFINED__
  472. #define __ISpeechRecognizer_FWD_DEFINED__
  473. typedef interface ISpeechRecognizer ISpeechRecognizer;
  474. #ifdef __cplusplus
  475. interface ISpeechRecognizer;
  476. #endif /* __cplusplus */
  477. #endif
  478. #ifndef __ISpeechRecognizerStatus_FWD_DEFINED__
  479. #define __ISpeechRecognizerStatus_FWD_DEFINED__
  480. typedef interface ISpeechRecognizerStatus ISpeechRecognizerStatus;
  481. #ifdef __cplusplus
  482. interface ISpeechRecognizerStatus;
  483. #endif /* __cplusplus */
  484. #endif
  485. #ifndef __ISpeechRecoContext_FWD_DEFINED__
  486. #define __ISpeechRecoContext_FWD_DEFINED__
  487. typedef interface ISpeechRecoContext ISpeechRecoContext;
  488. #ifdef __cplusplus
  489. interface ISpeechRecoContext;
  490. #endif /* __cplusplus */
  491. #endif
  492. #ifndef __ISpeechRecoGrammar_FWD_DEFINED__
  493. #define __ISpeechRecoGrammar_FWD_DEFINED__
  494. typedef interface ISpeechRecoGrammar ISpeechRecoGrammar;
  495. #ifdef __cplusplus
  496. interface ISpeechRecoGrammar;
  497. #endif /* __cplusplus */
  498. #endif
  499. #ifndef ___ISpeechRecoContextEvents_FWD_DEFINED__
  500. #define ___ISpeechRecoContextEvents_FWD_DEFINED__
  501. typedef interface _ISpeechRecoContextEvents _ISpeechRecoContextEvents;
  502. #ifdef __cplusplus
  503. interface _ISpeechRecoContextEvents;
  504. #endif /* __cplusplus */
  505. #endif
  506. #ifndef __ISpeechGrammarRule_FWD_DEFINED__
  507. #define __ISpeechGrammarRule_FWD_DEFINED__
  508. typedef interface ISpeechGrammarRule ISpeechGrammarRule;
  509. #ifdef __cplusplus
  510. interface ISpeechGrammarRule;
  511. #endif /* __cplusplus */
  512. #endif
  513. #ifndef __ISpeechGrammarRules_FWD_DEFINED__
  514. #define __ISpeechGrammarRules_FWD_DEFINED__
  515. typedef interface ISpeechGrammarRules ISpeechGrammarRules;
  516. #ifdef __cplusplus
  517. interface ISpeechGrammarRules;
  518. #endif /* __cplusplus */
  519. #endif
  520. #ifndef __ISpeechGrammarRuleState_FWD_DEFINED__
  521. #define __ISpeechGrammarRuleState_FWD_DEFINED__
  522. typedef interface ISpeechGrammarRuleState ISpeechGrammarRuleState;
  523. #ifdef __cplusplus
  524. interface ISpeechGrammarRuleState;
  525. #endif /* __cplusplus */
  526. #endif
  527. #ifndef __ISpeechGrammarRuleStateTransitions_FWD_DEFINED__
  528. #define __ISpeechGrammarRuleStateTransitions_FWD_DEFINED__
  529. typedef interface ISpeechGrammarRuleStateTransitions ISpeechGrammarRuleStateTransitions;
  530. #ifdef __cplusplus
  531. interface ISpeechGrammarRuleStateTransitions;
  532. #endif /* __cplusplus */
  533. #endif
  534. #ifndef __ISpeechGrammarRuleStateTransition_FWD_DEFINED__
  535. #define __ISpeechGrammarRuleStateTransition_FWD_DEFINED__
  536. typedef interface ISpeechGrammarRuleStateTransition ISpeechGrammarRuleStateTransition;
  537. #ifdef __cplusplus
  538. interface ISpeechGrammarRuleStateTransition;
  539. #endif /* __cplusplus */
  540. #endif
  541. #ifndef __ISpeechTextSelectionInformation_FWD_DEFINED__
  542. #define __ISpeechTextSelectionInformation_FWD_DEFINED__
  543. typedef interface ISpeechTextSelectionInformation ISpeechTextSelectionInformation;
  544. #ifdef __cplusplus
  545. interface ISpeechTextSelectionInformation;
  546. #endif /* __cplusplus */
  547. #endif
  548. #ifndef __ISpeechRecoResult_FWD_DEFINED__
  549. #define __ISpeechRecoResult_FWD_DEFINED__
  550. typedef interface ISpeechRecoResult ISpeechRecoResult;
  551. #ifdef __cplusplus
  552. interface ISpeechRecoResult;
  553. #endif /* __cplusplus */
  554. #endif
  555. #ifndef __ISpeechXMLRecoResult_FWD_DEFINED__
  556. #define __ISpeechXMLRecoResult_FWD_DEFINED__
  557. typedef interface ISpeechXMLRecoResult ISpeechXMLRecoResult;
  558. #ifdef __cplusplus
  559. interface ISpeechXMLRecoResult;
  560. #endif /* __cplusplus */
  561. #endif
  562. #ifndef __ISpeechRecoResult2_FWD_DEFINED__
  563. #define __ISpeechRecoResult2_FWD_DEFINED__
  564. typedef interface ISpeechRecoResult2 ISpeechRecoResult2;
  565. #ifdef __cplusplus
  566. interface ISpeechRecoResult2;
  567. #endif /* __cplusplus */
  568. #endif
  569. #ifndef __ISpeechRecoResultDispatch_FWD_DEFINED__
  570. #define __ISpeechRecoResultDispatch_FWD_DEFINED__
  571. typedef interface ISpeechRecoResultDispatch ISpeechRecoResultDispatch;
  572. #ifdef __cplusplus
  573. interface ISpeechRecoResultDispatch;
  574. #endif /* __cplusplus */
  575. #endif
  576. #ifndef __ISpeechPhraseInfoBuilder_FWD_DEFINED__
  577. #define __ISpeechPhraseInfoBuilder_FWD_DEFINED__
  578. typedef interface ISpeechPhraseInfoBuilder ISpeechPhraseInfoBuilder;
  579. #ifdef __cplusplus
  580. interface ISpeechPhraseInfoBuilder;
  581. #endif /* __cplusplus */
  582. #endif
  583. #ifndef __ISpeechRecoResultTimes_FWD_DEFINED__
  584. #define __ISpeechRecoResultTimes_FWD_DEFINED__
  585. typedef interface ISpeechRecoResultTimes ISpeechRecoResultTimes;
  586. #ifdef __cplusplus
  587. interface ISpeechRecoResultTimes;
  588. #endif /* __cplusplus */
  589. #endif
  590. #ifndef __ISpeechPhraseAlternate_FWD_DEFINED__
  591. #define __ISpeechPhraseAlternate_FWD_DEFINED__
  592. typedef interface ISpeechPhraseAlternate ISpeechPhraseAlternate;
  593. #ifdef __cplusplus
  594. interface ISpeechPhraseAlternate;
  595. #endif /* __cplusplus */
  596. #endif
  597. #ifndef __ISpeechPhraseAlternates_FWD_DEFINED__
  598. #define __ISpeechPhraseAlternates_FWD_DEFINED__
  599. typedef interface ISpeechPhraseAlternates ISpeechPhraseAlternates;
  600. #ifdef __cplusplus
  601. interface ISpeechPhraseAlternates;
  602. #endif /* __cplusplus */
  603. #endif
  604. #ifndef __ISpeechPhraseInfo_FWD_DEFINED__
  605. #define __ISpeechPhraseInfo_FWD_DEFINED__
  606. typedef interface ISpeechPhraseInfo ISpeechPhraseInfo;
  607. #ifdef __cplusplus
  608. interface ISpeechPhraseInfo;
  609. #endif /* __cplusplus */
  610. #endif
  611. #ifndef __ISpeechPhraseElement_FWD_DEFINED__
  612. #define __ISpeechPhraseElement_FWD_DEFINED__
  613. typedef interface ISpeechPhraseElement ISpeechPhraseElement;
  614. #ifdef __cplusplus
  615. interface ISpeechPhraseElement;
  616. #endif /* __cplusplus */
  617. #endif
  618. #ifndef __ISpeechPhraseElements_FWD_DEFINED__
  619. #define __ISpeechPhraseElements_FWD_DEFINED__
  620. typedef interface ISpeechPhraseElements ISpeechPhraseElements;
  621. #ifdef __cplusplus
  622. interface ISpeechPhraseElements;
  623. #endif /* __cplusplus */
  624. #endif
  625. #ifndef __ISpeechPhraseReplacement_FWD_DEFINED__
  626. #define __ISpeechPhraseReplacement_FWD_DEFINED__
  627. typedef interface ISpeechPhraseReplacement ISpeechPhraseReplacement;
  628. #ifdef __cplusplus
  629. interface ISpeechPhraseReplacement;
  630. #endif /* __cplusplus */
  631. #endif
  632. #ifndef __ISpeechPhraseReplacements_FWD_DEFINED__
  633. #define __ISpeechPhraseReplacements_FWD_DEFINED__
  634. typedef interface ISpeechPhraseReplacements ISpeechPhraseReplacements;
  635. #ifdef __cplusplus
  636. interface ISpeechPhraseReplacements;
  637. #endif /* __cplusplus */
  638. #endif
  639. #ifndef __ISpeechPhraseProperty_FWD_DEFINED__
  640. #define __ISpeechPhraseProperty_FWD_DEFINED__
  641. typedef interface ISpeechPhraseProperty ISpeechPhraseProperty;
  642. #ifdef __cplusplus
  643. interface ISpeechPhraseProperty;
  644. #endif /* __cplusplus */
  645. #endif
  646. #ifndef __ISpeechPhraseProperties_FWD_DEFINED__
  647. #define __ISpeechPhraseProperties_FWD_DEFINED__
  648. typedef interface ISpeechPhraseProperties ISpeechPhraseProperties;
  649. #ifdef __cplusplus
  650. interface ISpeechPhraseProperties;
  651. #endif /* __cplusplus */
  652. #endif
  653. #ifndef __ISpeechPhraseRule_FWD_DEFINED__
  654. #define __ISpeechPhraseRule_FWD_DEFINED__
  655. typedef interface ISpeechPhraseRule ISpeechPhraseRule;
  656. #ifdef __cplusplus
  657. interface ISpeechPhraseRule;
  658. #endif /* __cplusplus */
  659. #endif
  660. #ifndef __ISpeechPhraseRules_FWD_DEFINED__
  661. #define __ISpeechPhraseRules_FWD_DEFINED__
  662. typedef interface ISpeechPhraseRules ISpeechPhraseRules;
  663. #ifdef __cplusplus
  664. interface ISpeechPhraseRules;
  665. #endif /* __cplusplus */
  666. #endif
  667. #ifndef __ISpeechLexiconWords_FWD_DEFINED__
  668. #define __ISpeechLexiconWords_FWD_DEFINED__
  669. typedef interface ISpeechLexiconWords ISpeechLexiconWords;
  670. #ifdef __cplusplus
  671. interface ISpeechLexiconWords;
  672. #endif /* __cplusplus */
  673. #endif
  674. #ifndef __ISpeechLexicon_FWD_DEFINED__
  675. #define __ISpeechLexicon_FWD_DEFINED__
  676. typedef interface ISpeechLexicon ISpeechLexicon;
  677. #ifdef __cplusplus
  678. interface ISpeechLexicon;
  679. #endif /* __cplusplus */
  680. #endif
  681. #ifndef __ISpeechLexiconWord_FWD_DEFINED__
  682. #define __ISpeechLexiconWord_FWD_DEFINED__
  683. typedef interface ISpeechLexiconWord ISpeechLexiconWord;
  684. #ifdef __cplusplus
  685. interface ISpeechLexiconWord;
  686. #endif /* __cplusplus */
  687. #endif
  688. #ifndef __ISpeechLexiconPronunciations_FWD_DEFINED__
  689. #define __ISpeechLexiconPronunciations_FWD_DEFINED__
  690. typedef interface ISpeechLexiconPronunciations ISpeechLexiconPronunciations;
  691. #ifdef __cplusplus
  692. interface ISpeechLexiconPronunciations;
  693. #endif /* __cplusplus */
  694. #endif
  695. #ifndef __ISpeechLexiconPronunciation_FWD_DEFINED__
  696. #define __ISpeechLexiconPronunciation_FWD_DEFINED__
  697. typedef interface ISpeechLexiconPronunciation ISpeechLexiconPronunciation;
  698. #ifdef __cplusplus
  699. interface ISpeechLexiconPronunciation;
  700. #endif /* __cplusplus */
  701. #endif
  702. #ifndef __ISpeechPhoneConverter_FWD_DEFINED__
  703. #define __ISpeechPhoneConverter_FWD_DEFINED__
  704. typedef interface ISpeechPhoneConverter ISpeechPhoneConverter;
  705. #ifdef __cplusplus
  706. interface ISpeechPhoneConverter;
  707. #endif /* __cplusplus */
  708. #endif
  709. #ifndef __SpNotifyTranslator_FWD_DEFINED__
  710. #define __SpNotifyTranslator_FWD_DEFINED__
  711. #ifdef __cplusplus
  712. typedef class SpNotifyTranslator SpNotifyTranslator;
  713. #else
  714. typedef struct SpNotifyTranslator SpNotifyTranslator;
  715. #endif /* defined __cplusplus */
  716. #endif /* defined __SpNotifyTranslator_FWD_DEFINED__ */
  717. #ifndef __SpObjectTokenCategory_FWD_DEFINED__
  718. #define __SpObjectTokenCategory_FWD_DEFINED__
  719. #ifdef __cplusplus
  720. typedef class SpObjectTokenCategory SpObjectTokenCategory;
  721. #else
  722. typedef struct SpObjectTokenCategory SpObjectTokenCategory;
  723. #endif /* defined __cplusplus */
  724. #endif /* defined __SpObjectTokenCategory_FWD_DEFINED__ */
  725. #ifndef __SpObjectToken_FWD_DEFINED__
  726. #define __SpObjectToken_FWD_DEFINED__
  727. #ifdef __cplusplus
  728. typedef class SpObjectToken SpObjectToken;
  729. #else
  730. typedef struct SpObjectToken SpObjectToken;
  731. #endif /* defined __cplusplus */
  732. #endif /* defined __SpObjectToken_FWD_DEFINED__ */
  733. #ifndef __SpResourceManager_FWD_DEFINED__
  734. #define __SpResourceManager_FWD_DEFINED__
  735. #ifdef __cplusplus
  736. typedef class SpResourceManager SpResourceManager;
  737. #else
  738. typedef struct SpResourceManager SpResourceManager;
  739. #endif /* defined __cplusplus */
  740. #endif /* defined __SpResourceManager_FWD_DEFINED__ */
  741. #ifndef __SpStreamFormatConverter_FWD_DEFINED__
  742. #define __SpStreamFormatConverter_FWD_DEFINED__
  743. #ifdef __cplusplus
  744. typedef class SpStreamFormatConverter SpStreamFormatConverter;
  745. #else
  746. typedef struct SpStreamFormatConverter SpStreamFormatConverter;
  747. #endif /* defined __cplusplus */
  748. #endif /* defined __SpStreamFormatConverter_FWD_DEFINED__ */
  749. #ifndef __SpMMAudioEnum_FWD_DEFINED__
  750. #define __SpMMAudioEnum_FWD_DEFINED__
  751. #ifdef __cplusplus
  752. typedef class SpMMAudioEnum SpMMAudioEnum;
  753. #else
  754. typedef struct SpMMAudioEnum SpMMAudioEnum;
  755. #endif /* defined __cplusplus */
  756. #endif /* defined __SpMMAudioEnum_FWD_DEFINED__ */
  757. #ifndef __SpMMAudioIn_FWD_DEFINED__
  758. #define __SpMMAudioIn_FWD_DEFINED__
  759. #ifdef __cplusplus
  760. typedef class SpMMAudioIn SpMMAudioIn;
  761. #else
  762. typedef struct SpMMAudioIn SpMMAudioIn;
  763. #endif /* defined __cplusplus */
  764. #endif /* defined __SpMMAudioIn_FWD_DEFINED__ */
  765. #ifndef __SpMMAudioOut_FWD_DEFINED__
  766. #define __SpMMAudioOut_FWD_DEFINED__
  767. #ifdef __cplusplus
  768. typedef class SpMMAudioOut SpMMAudioOut;
  769. #else
  770. typedef struct SpMMAudioOut SpMMAudioOut;
  771. #endif /* defined __cplusplus */
  772. #endif /* defined __SpMMAudioOut_FWD_DEFINED__ */
  773. #ifndef __SpStream_FWD_DEFINED__
  774. #define __SpStream_FWD_DEFINED__
  775. #ifdef __cplusplus
  776. typedef class SpStream SpStream;
  777. #else
  778. typedef struct SpStream SpStream;
  779. #endif /* defined __cplusplus */
  780. #endif /* defined __SpStream_FWD_DEFINED__ */
  781. #ifndef __SpVoice_FWD_DEFINED__
  782. #define __SpVoice_FWD_DEFINED__
  783. #ifdef __cplusplus
  784. typedef class SpVoice SpVoice;
  785. #else
  786. typedef struct SpVoice SpVoice;
  787. #endif /* defined __cplusplus */
  788. #endif /* defined __SpVoice_FWD_DEFINED__ */
  789. #ifndef __SpSharedRecoContext_FWD_DEFINED__
  790. #define __SpSharedRecoContext_FWD_DEFINED__
  791. #ifdef __cplusplus
  792. typedef class SpSharedRecoContext SpSharedRecoContext;
  793. #else
  794. typedef struct SpSharedRecoContext SpSharedRecoContext;
  795. #endif /* defined __cplusplus */
  796. #endif /* defined __SpSharedRecoContext_FWD_DEFINED__ */
  797. #ifndef __SpInprocRecognizer_FWD_DEFINED__
  798. #define __SpInprocRecognizer_FWD_DEFINED__
  799. #ifdef __cplusplus
  800. typedef class SpInprocRecognizer SpInprocRecognizer;
  801. #else
  802. typedef struct SpInprocRecognizer SpInprocRecognizer;
  803. #endif /* defined __cplusplus */
  804. #endif /* defined __SpInprocRecognizer_FWD_DEFINED__ */
  805. #ifndef __SpSharedRecognizer_FWD_DEFINED__
  806. #define __SpSharedRecognizer_FWD_DEFINED__
  807. #ifdef __cplusplus
  808. typedef class SpSharedRecognizer SpSharedRecognizer;
  809. #else
  810. typedef struct SpSharedRecognizer SpSharedRecognizer;
  811. #endif /* defined __cplusplus */
  812. #endif /* defined __SpSharedRecognizer_FWD_DEFINED__ */
  813. #ifndef __SpLexicon_FWD_DEFINED__
  814. #define __SpLexicon_FWD_DEFINED__
  815. #ifdef __cplusplus
  816. typedef class SpLexicon SpLexicon;
  817. #else
  818. typedef struct SpLexicon SpLexicon;
  819. #endif /* defined __cplusplus */
  820. #endif /* defined __SpLexicon_FWD_DEFINED__ */
  821. #ifndef __SpUnCompressedLexicon_FWD_DEFINED__
  822. #define __SpUnCompressedLexicon_FWD_DEFINED__
  823. #ifdef __cplusplus
  824. typedef class SpUnCompressedLexicon SpUnCompressedLexicon;
  825. #else
  826. typedef struct SpUnCompressedLexicon SpUnCompressedLexicon;
  827. #endif /* defined __cplusplus */
  828. #endif /* defined __SpUnCompressedLexicon_FWD_DEFINED__ */
  829. #ifndef __SpCompressedLexicon_FWD_DEFINED__
  830. #define __SpCompressedLexicon_FWD_DEFINED__
  831. #ifdef __cplusplus
  832. typedef class SpCompressedLexicon SpCompressedLexicon;
  833. #else
  834. typedef struct SpCompressedLexicon SpCompressedLexicon;
  835. #endif /* defined __cplusplus */
  836. #endif /* defined __SpCompressedLexicon_FWD_DEFINED__ */
  837. #ifndef __SpShortcut_FWD_DEFINED__
  838. #define __SpShortcut_FWD_DEFINED__
  839. #ifdef __cplusplus
  840. typedef class SpShortcut SpShortcut;
  841. #else
  842. typedef struct SpShortcut SpShortcut;
  843. #endif /* defined __cplusplus */
  844. #endif /* defined __SpShortcut_FWD_DEFINED__ */
  845. #ifndef __SpPhoneConverter_FWD_DEFINED__
  846. #define __SpPhoneConverter_FWD_DEFINED__
  847. #ifdef __cplusplus
  848. typedef class SpPhoneConverter SpPhoneConverter;
  849. #else
  850. typedef struct SpPhoneConverter SpPhoneConverter;
  851. #endif /* defined __cplusplus */
  852. #endif /* defined __SpPhoneConverter_FWD_DEFINED__ */
  853. #ifndef __SpPhoneticAlphabetConverter_FWD_DEFINED__
  854. #define __SpPhoneticAlphabetConverter_FWD_DEFINED__
  855. #ifdef __cplusplus
  856. typedef class SpPhoneticAlphabetConverter SpPhoneticAlphabetConverter;
  857. #else
  858. typedef struct SpPhoneticAlphabetConverter SpPhoneticAlphabetConverter;
  859. #endif /* defined __cplusplus */
  860. #endif /* defined __SpPhoneticAlphabetConverter_FWD_DEFINED__ */
  861. #ifndef __SpNullPhoneConverter_FWD_DEFINED__
  862. #define __SpNullPhoneConverter_FWD_DEFINED__
  863. #ifdef __cplusplus
  864. typedef class SpNullPhoneConverter SpNullPhoneConverter;
  865. #else
  866. typedef struct SpNullPhoneConverter SpNullPhoneConverter;
  867. #endif /* defined __cplusplus */
  868. #endif /* defined __SpNullPhoneConverter_FWD_DEFINED__ */
  869. #ifndef __SpTextSelectionInformation_FWD_DEFINED__
  870. #define __SpTextSelectionInformation_FWD_DEFINED__
  871. #ifdef __cplusplus
  872. typedef class SpTextSelectionInformation SpTextSelectionInformation;
  873. #else
  874. typedef struct SpTextSelectionInformation SpTextSelectionInformation;
  875. #endif /* defined __cplusplus */
  876. #endif /* defined __SpTextSelectionInformation_FWD_DEFINED__ */
  877. #ifndef __SpPhraseInfoBuilder_FWD_DEFINED__
  878. #define __SpPhraseInfoBuilder_FWD_DEFINED__
  879. #ifdef __cplusplus
  880. typedef class SpPhraseInfoBuilder SpPhraseInfoBuilder;
  881. #else
  882. typedef struct SpPhraseInfoBuilder SpPhraseInfoBuilder;
  883. #endif /* defined __cplusplus */
  884. #endif /* defined __SpPhraseInfoBuilder_FWD_DEFINED__ */
  885. #ifndef __SpAudioFormat_FWD_DEFINED__
  886. #define __SpAudioFormat_FWD_DEFINED__
  887. #ifdef __cplusplus
  888. typedef class SpAudioFormat SpAudioFormat;
  889. #else
  890. typedef struct SpAudioFormat SpAudioFormat;
  891. #endif /* defined __cplusplus */
  892. #endif /* defined __SpAudioFormat_FWD_DEFINED__ */
  893. #ifndef __SpWaveFormatEx_FWD_DEFINED__
  894. #define __SpWaveFormatEx_FWD_DEFINED__
  895. #ifdef __cplusplus
  896. typedef class SpWaveFormatEx SpWaveFormatEx;
  897. #else
  898. typedef struct SpWaveFormatEx SpWaveFormatEx;
  899. #endif /* defined __cplusplus */
  900. #endif /* defined __SpWaveFormatEx_FWD_DEFINED__ */
  901. #ifndef __SpInProcRecoContext_FWD_DEFINED__
  902. #define __SpInProcRecoContext_FWD_DEFINED__
  903. #ifdef __cplusplus
  904. typedef class SpInProcRecoContext SpInProcRecoContext;
  905. #else
  906. typedef struct SpInProcRecoContext SpInProcRecoContext;
  907. #endif /* defined __cplusplus */
  908. #endif /* defined __SpInProcRecoContext_FWD_DEFINED__ */
  909. #ifndef __SpCustomStream_FWD_DEFINED__
  910. #define __SpCustomStream_FWD_DEFINED__
  911. #ifdef __cplusplus
  912. typedef class SpCustomStream SpCustomStream;
  913. #else
  914. typedef struct SpCustomStream SpCustomStream;
  915. #endif /* defined __cplusplus */
  916. #endif /* defined __SpCustomStream_FWD_DEFINED__ */
  917. #ifndef __SpFileStream_FWD_DEFINED__
  918. #define __SpFileStream_FWD_DEFINED__
  919. #ifdef __cplusplus
  920. typedef class SpFileStream SpFileStream;
  921. #else
  922. typedef struct SpFileStream SpFileStream;
  923. #endif /* defined __cplusplus */
  924. #endif /* defined __SpFileStream_FWD_DEFINED__ */
  925. #ifndef __SpMemoryStream_FWD_DEFINED__
  926. #define __SpMemoryStream_FWD_DEFINED__
  927. #ifdef __cplusplus
  928. typedef class SpMemoryStream SpMemoryStream;
  929. #else
  930. typedef struct SpMemoryStream SpMemoryStream;
  931. #endif /* defined __cplusplus */
  932. #endif /* defined __SpMemoryStream_FWD_DEFINED__ */
  933. /* Headers for imported files */
  934. #include <oaidl.h>
  935. #include <ocidl.h>
  936. #ifdef __cplusplus
  937. extern "C" {
  938. #endif
  939. #ifndef _SAPI_VER
  940. #error "you have to include <sapi.h> header before this."
  941. #endif
  942. #if 0
  943. typedef struct WAVEFORMATEX {
  944. WORD wFormatTag;
  945. WORD nChannels;
  946. DWORD nSamplesPerSec;
  947. DWORD nAvgBytesPerSec;
  948. WORD nBlockAlign;
  949. WORD wBitsPerSample;
  950. WORD cbSize;
  951. } WAVEFORMATEX;
  952. #endif
  953. #ifndef __ISpNotifySource_FWD_DEFINED__
  954. #define __ISpNotifySource_FWD_DEFINED__
  955. typedef interface ISpNotifySource ISpNotifySource;
  956. #ifdef __cplusplus
  957. interface ISpNotifySource;
  958. #endif /* __cplusplus */
  959. #endif
  960. #ifndef __ISpNotifySink_FWD_DEFINED__
  961. #define __ISpNotifySink_FWD_DEFINED__
  962. typedef interface ISpNotifySink ISpNotifySink;
  963. #ifdef __cplusplus
  964. interface ISpNotifySink;
  965. #endif /* __cplusplus */
  966. #endif
  967. #ifndef __ISpNotifyTranslator_FWD_DEFINED__
  968. #define __ISpNotifyTranslator_FWD_DEFINED__
  969. typedef interface ISpNotifyTranslator ISpNotifyTranslator;
  970. #ifdef __cplusplus
  971. interface ISpNotifyTranslator;
  972. #endif /* __cplusplus */
  973. #endif
  974. #ifndef __ISpDataKey_FWD_DEFINED__
  975. #define __ISpDataKey_FWD_DEFINED__
  976. typedef interface ISpDataKey ISpDataKey;
  977. #ifdef __cplusplus
  978. interface ISpDataKey;
  979. #endif /* __cplusplus */
  980. #endif
  981. #ifndef __ISpObjectTokenCategory_FWD_DEFINED__
  982. #define __ISpObjectTokenCategory_FWD_DEFINED__
  983. typedef interface ISpObjectTokenCategory ISpObjectTokenCategory;
  984. #ifdef __cplusplus
  985. interface ISpObjectTokenCategory;
  986. #endif /* __cplusplus */
  987. #endif
  988. #ifndef __ISpObjectToken_FWD_DEFINED__
  989. #define __ISpObjectToken_FWD_DEFINED__
  990. typedef interface ISpObjectToken ISpObjectToken;
  991. #ifdef __cplusplus
  992. interface ISpObjectToken;
  993. #endif /* __cplusplus */
  994. #endif
  995. #ifndef __IEnumSpObjectTokens_FWD_DEFINED__
  996. #define __IEnumSpObjectTokens_FWD_DEFINED__
  997. typedef interface IEnumSpObjectTokens IEnumSpObjectTokens;
  998. #ifdef __cplusplus
  999. interface IEnumSpObjectTokens;
  1000. #endif /* __cplusplus */
  1001. #endif
  1002. #ifndef __ISpObjectWithToken_FWD_DEFINED__
  1003. #define __ISpObjectWithToken_FWD_DEFINED__
  1004. typedef interface ISpObjectWithToken ISpObjectWithToken;
  1005. #ifdef __cplusplus
  1006. interface ISpObjectWithToken;
  1007. #endif /* __cplusplus */
  1008. #endif
  1009. #ifndef __ISpResourceManager_FWD_DEFINED__
  1010. #define __ISpResourceManager_FWD_DEFINED__
  1011. typedef interface ISpResourceManager ISpResourceManager;
  1012. #ifdef __cplusplus
  1013. interface ISpResourceManager;
  1014. #endif /* __cplusplus */
  1015. #endif
  1016. #ifndef __ISpEventSource_FWD_DEFINED__
  1017. #define __ISpEventSource_FWD_DEFINED__
  1018. typedef interface ISpEventSource ISpEventSource;
  1019. #ifdef __cplusplus
  1020. interface ISpEventSource;
  1021. #endif /* __cplusplus */
  1022. #endif
  1023. #ifndef __ISpEventSink_FWD_DEFINED__
  1024. #define __ISpEventSink_FWD_DEFINED__
  1025. typedef interface ISpEventSink ISpEventSink;
  1026. #ifdef __cplusplus
  1027. interface ISpEventSink;
  1028. #endif /* __cplusplus */
  1029. #endif
  1030. #ifndef __ISpStreamFormat_FWD_DEFINED__
  1031. #define __ISpStreamFormat_FWD_DEFINED__
  1032. typedef interface ISpStreamFormat ISpStreamFormat;
  1033. #ifdef __cplusplus
  1034. interface ISpStreamFormat;
  1035. #endif /* __cplusplus */
  1036. #endif
  1037. #ifndef __ISpStream_FWD_DEFINED__
  1038. #define __ISpStream_FWD_DEFINED__
  1039. typedef interface ISpStream ISpStream;
  1040. #ifdef __cplusplus
  1041. interface ISpStream;
  1042. #endif /* __cplusplus */
  1043. #endif
  1044. #ifndef __ISpStreamFormatConverter_FWD_DEFINED__
  1045. #define __ISpStreamFormatConverter_FWD_DEFINED__
  1046. typedef interface ISpStreamFormatConverter ISpStreamFormatConverter;
  1047. #ifdef __cplusplus
  1048. interface ISpStreamFormatConverter;
  1049. #endif /* __cplusplus */
  1050. #endif
  1051. #ifndef __ISpAudio_FWD_DEFINED__
  1052. #define __ISpAudio_FWD_DEFINED__
  1053. typedef interface ISpAudio ISpAudio;
  1054. #ifdef __cplusplus
  1055. interface ISpAudio;
  1056. #endif /* __cplusplus */
  1057. #endif
  1058. #ifndef __ISpMMSysAudio_FWD_DEFINED__
  1059. #define __ISpMMSysAudio_FWD_DEFINED__
  1060. typedef interface ISpMMSysAudio ISpMMSysAudio;
  1061. #ifdef __cplusplus
  1062. interface ISpMMSysAudio;
  1063. #endif /* __cplusplus */
  1064. #endif
  1065. #ifndef __ISpTranscript_FWD_DEFINED__
  1066. #define __ISpTranscript_FWD_DEFINED__
  1067. typedef interface ISpTranscript ISpTranscript;
  1068. #ifdef __cplusplus
  1069. interface ISpTranscript;
  1070. #endif /* __cplusplus */
  1071. #endif
  1072. #ifndef __ISpVoice_FWD_DEFINED__
  1073. #define __ISpVoice_FWD_DEFINED__
  1074. typedef interface ISpVoice ISpVoice;
  1075. #ifdef __cplusplus
  1076. interface ISpVoice;
  1077. #endif /* __cplusplus */
  1078. #endif
  1079. #ifndef __ISpRecoResult_FWD_DEFINED__
  1080. #define __ISpRecoResult_FWD_DEFINED__
  1081. typedef interface ISpRecoResult ISpRecoResult;
  1082. #ifdef __cplusplus
  1083. interface ISpRecoResult;
  1084. #endif /* __cplusplus */
  1085. #endif
  1086. #ifndef __ISpRecoContext_FWD_DEFINED__
  1087. #define __ISpRecoContext_FWD_DEFINED__
  1088. typedef interface ISpRecoContext ISpRecoContext;
  1089. #ifdef __cplusplus
  1090. interface ISpRecoContext;
  1091. #endif /* __cplusplus */
  1092. #endif
  1093. #ifndef __ISpRecognizer_FWD_DEFINED__
  1094. #define __ISpRecognizer_FWD_DEFINED__
  1095. typedef interface ISpRecognizer ISpRecognizer;
  1096. #ifdef __cplusplus
  1097. interface ISpRecognizer;
  1098. #endif /* __cplusplus */
  1099. #endif
  1100. #ifndef __ISpProperties_FWD_DEFINED__
  1101. #define __ISpProperties_FWD_DEFINED__
  1102. typedef interface ISpProperties ISpProperties;
  1103. #ifdef __cplusplus
  1104. interface ISpProperties;
  1105. #endif /* __cplusplus */
  1106. #endif
  1107. #ifndef __ISpLexicon_FWD_DEFINED__
  1108. #define __ISpLexicon_FWD_DEFINED__
  1109. typedef interface ISpLexicon ISpLexicon;
  1110. #ifdef __cplusplus
  1111. interface ISpLexicon;
  1112. #endif /* __cplusplus */
  1113. #endif
  1114. #ifndef __ISpPhoneConverter_FWD_DEFINED__
  1115. #define __ISpPhoneConverter_FWD_DEFINED__
  1116. typedef interface ISpPhoneConverter ISpPhoneConverter;
  1117. #ifdef __cplusplus
  1118. interface ISpPhoneConverter;
  1119. #endif /* __cplusplus */
  1120. #endif
  1121. #ifndef __ISpPhrase_FWD_DEFINED__
  1122. #define __ISpPhrase_FWD_DEFINED__
  1123. typedef interface ISpPhrase ISpPhrase;
  1124. #ifdef __cplusplus
  1125. interface ISpPhrase;
  1126. #endif /* __cplusplus */
  1127. #endif
  1128. #ifndef __ISpRecoContext2_FWD_DEFINED__
  1129. #define __ISpRecoContext2_FWD_DEFINED__
  1130. typedef interface ISpRecoContext2 ISpRecoContext2;
  1131. #ifdef __cplusplus
  1132. interface ISpRecoContext2;
  1133. #endif /* __cplusplus */
  1134. #endif
  1135. #ifndef __ISpRecognizer2_FWD_DEFINED__
  1136. #define __ISpRecognizer2_FWD_DEFINED__
  1137. typedef interface ISpRecognizer2 ISpRecognizer2;
  1138. #ifdef __cplusplus
  1139. interface ISpRecognizer2;
  1140. #endif /* __cplusplus */
  1141. #endif
  1142. #ifndef __ISpShortcut_FWD_DEFINED__
  1143. #define __ISpShortcut_FWD_DEFINED__
  1144. typedef interface ISpShortcut ISpShortcut;
  1145. #ifdef __cplusplus
  1146. interface ISpShortcut;
  1147. #endif /* __cplusplus */
  1148. #endif
  1149. #ifndef __ISpPhoneticAlphabetConverter_FWD_DEFINED__
  1150. #define __ISpPhoneticAlphabetConverter_FWD_DEFINED__
  1151. typedef interface ISpPhoneticAlphabetConverter ISpPhoneticAlphabetConverter;
  1152. #ifdef __cplusplus
  1153. interface ISpPhoneticAlphabetConverter;
  1154. #endif /* __cplusplus */
  1155. #endif
  1156. #ifndef __ISpPhoneticAlphabetSelection_FWD_DEFINED__
  1157. #define __ISpPhoneticAlphabetSelection_FWD_DEFINED__
  1158. typedef interface ISpPhoneticAlphabetSelection ISpPhoneticAlphabetSelection;
  1159. #ifdef __cplusplus
  1160. interface ISpPhoneticAlphabetSelection;
  1161. #endif /* __cplusplus */
  1162. #endif
  1163. #ifndef __ISpRecoGrammar2_FWD_DEFINED__
  1164. #define __ISpRecoGrammar2_FWD_DEFINED__
  1165. typedef interface ISpRecoGrammar2 ISpRecoGrammar2;
  1166. #ifdef __cplusplus
  1167. interface ISpRecoGrammar2;
  1168. #endif /* __cplusplus */
  1169. #endif
  1170. #ifndef __ISpeechResourceLoader_FWD_DEFINED__
  1171. #define __ISpeechResourceLoader_FWD_DEFINED__
  1172. typedef interface ISpeechResourceLoader ISpeechResourceLoader;
  1173. #ifdef __cplusplus
  1174. interface ISpeechResourceLoader;
  1175. #endif /* __cplusplus */
  1176. #endif
  1177. #ifndef __ISpRecognizer3_FWD_DEFINED__
  1178. #define __ISpRecognizer3_FWD_DEFINED__
  1179. typedef interface ISpRecognizer3 ISpRecognizer3;
  1180. #ifdef __cplusplus
  1181. interface ISpRecognizer3;
  1182. #endif /* __cplusplus */
  1183. #endif
  1184. typedef enum SPDATAKEYLOCATION {
  1185. SPDKL_DefaultLocation = 0,
  1186. SPDKL_CurrentUser = 1,
  1187. SPDKL_LocalMachine = 2,
  1188. SPDKL_CurrentConfig = 5
  1189. } SPDATAKEYLOCATION;
  1190. typedef enum SPSTREAMFORMAT {
  1191. SPSF_Default = -1,
  1192. SPSF_NoAssignedFormat = 0,
  1193. SPSF_Text = 1,
  1194. SPSF_NonStandardFormat = 2,
  1195. SPSF_ExtendedAudioFormat = 3,
  1196. SPSF_8kHz8BitMono = 4,
  1197. SPSF_8kHz8BitStereo = 5,
  1198. SPSF_8kHz16BitMono = 6,
  1199. SPSF_8kHz16BitStereo = 7,
  1200. SPSF_11kHz8BitMono = 8,
  1201. SPSF_11kHz8BitStereo = 9,
  1202. SPSF_11kHz16BitMono = 10,
  1203. SPSF_11kHz16BitStereo = 11,
  1204. SPSF_12kHz8BitMono = 12,
  1205. SPSF_12kHz8BitStereo = 13,
  1206. SPSF_12kHz16BitMono = 14,
  1207. SPSF_12kHz16BitStereo = 15,
  1208. SPSF_16kHz8BitMono = 16,
  1209. SPSF_16kHz8BitStereo = 17,
  1210. SPSF_16kHz16BitMono = 18,
  1211. SPSF_16kHz16BitStereo = 19,
  1212. SPSF_22kHz8BitMono = 20,
  1213. SPSF_22kHz8BitStereo = 21,
  1214. SPSF_22kHz16BitMono = 22,
  1215. SPSF_22kHz16BitStereo = 23,
  1216. SPSF_24kHz8BitMono = 24,
  1217. SPSF_24kHz8BitStereo = 25,
  1218. SPSF_24kHz16BitMono = 26,
  1219. SPSF_24kHz16BitStereo = 27,
  1220. SPSF_32kHz8BitMono = 28,
  1221. SPSF_32kHz8BitStereo = 29,
  1222. SPSF_32kHz16BitMono = 30,
  1223. SPSF_32kHz16BitStereo = 31,
  1224. SPSF_44kHz8BitMono = 32,
  1225. SPSF_44kHz8BitStereo = 33,
  1226. SPSF_44kHz16BitMono = 34,
  1227. SPSF_44kHz16BitStereo = 35,
  1228. SPSF_48kHz8BitMono = 36,
  1229. SPSF_48kHz8BitStereo = 37,
  1230. SPSF_48kHz16BitMono = 38,
  1231. SPSF_48kHz16BitStereo = 39,
  1232. SPSF_TrueSpeech_8kHz1BitMono = 40,
  1233. SPSF_CCITT_ALaw_8kHzMono = 41,
  1234. SPSF_CCITT_ALaw_8kHzStereo = 42,
  1235. SPSF_CCITT_ALaw_11kHzMono = 43,
  1236. SPSF_CCITT_ALaw_11kHzStereo = 44,
  1237. SPSF_CCITT_ALaw_22kHzMono = 45,
  1238. SPSF_CCITT_ALaw_22kHzStereo = 46,
  1239. SPSF_CCITT_ALaw_44kHzMono = 47,
  1240. SPSF_CCITT_ALaw_44kHzStereo = 48,
  1241. SPSF_CCITT_uLaw_8kHzMono = 49,
  1242. SPSF_CCITT_uLaw_8kHzStereo = 50,
  1243. SPSF_CCITT_uLaw_11kHzMono = 51,
  1244. SPSF_CCITT_uLaw_11kHzStereo = 52,
  1245. SPSF_CCITT_uLaw_22kHzMono = 53,
  1246. SPSF_CCITT_uLaw_22kHzStereo = 54,
  1247. SPSF_CCITT_uLaw_44kHzMono = 55,
  1248. SPSF_CCITT_uLaw_44kHzStereo = 56,
  1249. SPSF_ADPCM_8kHzMono = 57,
  1250. SPSF_ADPCM_8kHzStereo = 58,
  1251. SPSF_ADPCM_11kHzMono = 59,
  1252. SPSF_ADPCM_11kHzStereo = 60,
  1253. SPSF_ADPCM_22kHzMono = 61,
  1254. SPSF_ADPCM_22kHzStereo = 62,
  1255. SPSF_ADPCM_44kHzMono = 63,
  1256. SPSF_ADPCM_44kHzStereo = 64,
  1257. SPSF_GSM610_8kHzMono = 65,
  1258. SPSF_GSM610_11kHzMono = 66,
  1259. SPSF_GSM610_22kHzMono = 67,
  1260. SPSF_GSM610_44kHzMono = 68,
  1261. SPSF_NUM_FORMATS = 69
  1262. } SPSTREAMFORMAT;
  1263. typedef enum SPEVENTLPARAMTYPE {
  1264. SPET_LPARAM_IS_UNDEFINED = 0,
  1265. SPET_LPARAM_IS_TOKEN = 1,
  1266. SPET_LPARAM_IS_OBJECT = 2,
  1267. SPET_LPARAM_IS_POINTER = 3,
  1268. SPET_LPARAM_IS_STRING = 4
  1269. } SPEVENTLPARAMTYPE;
  1270. typedef enum SPEVENTENUM {
  1271. SPEI_UNDEFINED = 0,
  1272. SPEI_START_INPUT_STREAM = 1,
  1273. SPEI_END_INPUT_STREAM = 2,
  1274. SPEI_VOICE_CHANGE = 3,
  1275. SPEI_TTS_BOOKMARK = 4,
  1276. SPEI_WORD_BOUNDARY = 5,
  1277. SPEI_PHONEME = 6,
  1278. SPEI_SENTENCE_BOUNDARY = 7,
  1279. SPEI_VISEME = 8,
  1280. SPEI_TTS_AUDIO_LEVEL = 9,
  1281. SPEI_TTS_PRIVATE = 15,
  1282. SPEI_MIN_TTS = 1,
  1283. SPEI_MAX_TTS = 15,
  1284. SPEI_END_SR_STREAM = 34,
  1285. SPEI_SOUND_START = 35,
  1286. SPEI_SOUND_END = 36,
  1287. SPEI_PHRASE_START = 37,
  1288. SPEI_RECOGNITION = 38,
  1289. SPEI_HYPOTHESIS = 39,
  1290. SPEI_SR_BOOKMARK = 40,
  1291. SPEI_PROPERTY_NUM_CHANGE = 41,
  1292. SPEI_PROPERTY_STRING_CHANGE = 42,
  1293. SPEI_FALSE_RECOGNITION = 43,
  1294. SPEI_INTERFERENCE = 44,
  1295. SPEI_REQUEST_UI = 45,
  1296. SPEI_RECO_STATE_CHANGE = 46,
  1297. SPEI_ADAPTATION = 47,
  1298. SPEI_START_SR_STREAM = 48,
  1299. SPEI_RECO_OTHER_CONTEXT = 49,
  1300. SPEI_SR_AUDIO_LEVEL = 50,
  1301. SPEI_SR_RETAINEDAUDIO = 51,
  1302. SPEI_SR_PRIVATE = 52,
  1303. SPEI_ACTIVE_CATEGORY_CHANGED = 53,
  1304. SPEI_RESERVED5 = 54,
  1305. SPEI_RESERVED6 = 55,
  1306. SPEI_MIN_SR = 34,
  1307. SPEI_MAX_SR = 55,
  1308. SPEI_RESERVED1 = 30,
  1309. SPEI_RESERVED2 = 33,
  1310. SPEI_RESERVED3 = 63
  1311. } SPEVENTENUM;
  1312. typedef enum SPINTERFERENCE {
  1313. SPINTERFERENCE_NONE = 0,
  1314. SPINTERFERENCE_NOISE = 1,
  1315. SPINTERFERENCE_NOSIGNAL = 2,
  1316. SPINTERFERENCE_TOOLOUD = 3,
  1317. SPINTERFERENCE_TOOQUIET = 4,
  1318. SPINTERFERENCE_TOOFAST = 5,
  1319. SPINTERFERENCE_TOOSLOW = 6,
  1320. SPINTERFERENCE_LATENCY_WARNING = 7,
  1321. SPINTERFERENCE_LATENCY_TRUNCATE_BEGIN = 8,
  1322. SPINTERFERENCE_LATENCY_TRUNCATE_END = 9
  1323. } SPINTERFERENCE;
  1324. typedef enum SPENDSRSTREAMFLAGS {
  1325. SPESF_NONE = 0,
  1326. SPESF_STREAM_RELEASED = 1,
  1327. SPESF_EMULATED = 2
  1328. } SPENDSRSTREAMFLAGS;
  1329. typedef enum SPVFEATURE {
  1330. SPVFEATURE_STRESSED = 1,
  1331. SPVFEATURE_EMPHASIS = 2
  1332. } SPVFEATURE;
  1333. typedef enum SPVISEMES {
  1334. SP_VISEME_0 = 0,
  1335. SP_VISEME_1 = 1,
  1336. SP_VISEME_2 = 2,
  1337. SP_VISEME_3 = 3,
  1338. SP_VISEME_4 = 4,
  1339. SP_VISEME_5 = 5,
  1340. SP_VISEME_6 = 6,
  1341. SP_VISEME_7 = 7,
  1342. SP_VISEME_8 = 8,
  1343. SP_VISEME_9 = 9,
  1344. SP_VISEME_10 = 10,
  1345. SP_VISEME_11 = 11,
  1346. SP_VISEME_12 = 12,
  1347. SP_VISEME_13 = 13,
  1348. SP_VISEME_14 = 14,
  1349. SP_VISEME_15 = 15,
  1350. SP_VISEME_16 = 16,
  1351. SP_VISEME_17 = 17,
  1352. SP_VISEME_18 = 18,
  1353. SP_VISEME_19 = 19,
  1354. SP_VISEME_20 = 20,
  1355. SP_VISEME_21 = 21
  1356. } SPVISEMES;
  1357. typedef enum SPFILEMODE {
  1358. SPFM_OPEN_READONLY = 0,
  1359. SPFM_OPEN_READWRITE = 1,
  1360. SPFM_CREATE = 2,
  1361. SPFM_CREATE_ALWAYS = 3,
  1362. SPFM_NUM_MODES = 4
  1363. } SPFILEMODE;
  1364. typedef enum _SPAUDIOSTATE {
  1365. SPAS_CLOSED = 0,
  1366. SPAS_STOP = 1,
  1367. SPAS_PAUSE = 2,
  1368. SPAS_RUN = 3
  1369. } SPAUDIOSTATE;
  1370. typedef enum SPDISPLYATTRIBUTES {
  1371. SPAF_ONE_TRAILING_SPACE = 0x2,
  1372. SPAF_TWO_TRAILING_SPACES = 0x4,
  1373. SPAF_CONSUME_LEADING_SPACES = 0x8,
  1374. SPAF_BUFFER_POSITION = 0x10,
  1375. SPAF_ALL = 0x1f,
  1376. SPAF_USER_SPECIFIED = 0x80
  1377. } SPDISPLAYATTRIBUTES;
  1378. typedef enum SPPHRASEPROPERTYUNIONTYPE {
  1379. SPPPUT_UNUSED = 0,
  1380. SPPPUT_ARRAY_INDEX = 1
  1381. } SPPHRASEPROPERTYUNIONTYPE;
  1382. typedef enum SPSEMANTICFORMAT {
  1383. SPSMF_SAPI_PROPERTIES = 0,
  1384. SPSMF_SRGS_SEMANTICINTERPRETATION_MS = 1,
  1385. SPSMF_SRGS_SAPIPROPERTIES = 2,
  1386. SPSMF_UPS = 4,
  1387. SPSMF_SRGS_SEMANTICINTERPRETATION_W3C = 8
  1388. } SPSEMANTICFORMAT;
  1389. typedef enum SPRECOEVENTFLAGS {
  1390. SPREF_AutoPause = 0x1,
  1391. SPREF_Emulated = 0x2,
  1392. SPREF_SMLTimeout = 0x4,
  1393. SPREF_ExtendableParse = 0x8,
  1394. SPREF_ReSent = 0x10,
  1395. SPREF_Hypothesis = 0x20,
  1396. SPREF_FalseRecognition = 0x40
  1397. } SPRECOEVENTFLAGS;
  1398. typedef enum SPPARTOFSPEECH {
  1399. SPPS_NotOverriden = -1,
  1400. SPPS_Unknown = 0,
  1401. SPPS_Noun = 0x1000,
  1402. SPPS_Verb = 0x2000,
  1403. SPPS_Modifier = 0x3000,
  1404. SPPS_Function = 0x4000,
  1405. SPPS_Interjection = 0x5000,
  1406. SPPS_Noncontent = 0x6000,
  1407. SPPS_LMA = 0x7000,
  1408. SPPS_SuppressWord = 0xf000
  1409. } SPPARTOFSPEECH;
  1410. typedef enum SPLEXICONTYPE {
  1411. eLEXTYPE_USER = 0x1,
  1412. eLEXTYPE_APP = 0x2,
  1413. eLEXTYPE_VENDORLEXICON = 0x4,
  1414. eLEXTYPE_LETTERTOSOUND = 0x8,
  1415. eLEXTYPE_MORPHOLOGY = 0x10,
  1416. eLEXTYPE_RESERVED4 = 0x20,
  1417. eLEXTYPE_USER_SHORTCUT = 0x40,
  1418. eLEXTYPE_RESERVED6 = 0x80,
  1419. eLEXTYPE_RESERVED7 = 0x100,
  1420. eLEXTYPE_RESERVED8 = 0x200,
  1421. eLEXTYPE_RESERVED9 = 0x400,
  1422. eLEXTYPE_RESERVED10 = 0x800,
  1423. eLEXTYPE_PRIVATE1 = 0x1000,
  1424. eLEXTYPE_PRIVATE2 = 0x2000,
  1425. eLEXTYPE_PRIVATE3 = 0x4000,
  1426. eLEXTYPE_PRIVATE4 = 0x8000,
  1427. eLEXTYPE_PRIVATE5 = 0x10000,
  1428. eLEXTYPE_PRIVATE6 = 0x20000,
  1429. eLEXTYPE_PRIVATE7 = 0x40000,
  1430. eLEXTYPE_PRIVATE8 = 0x80000,
  1431. eLEXTYPE_PRIVATE9 = 0x100000,
  1432. eLEXTYPE_PRIVATE10 = 0x200000,
  1433. eLEXTYPE_PRIVATE11 = 0x400000,
  1434. eLEXTYPE_PRIVATE12 = 0x800000,
  1435. eLEXTYPE_PRIVATE13 = 0x1000000,
  1436. eLEXTYPE_PRIVATE14 = 0x2000000,
  1437. eLEXTYPE_PRIVATE15 = 0x4000000,
  1438. eLEXTYPE_PRIVATE16 = 0x8000000,
  1439. eLEXTYPE_PRIVATE17 = 0x10000000,
  1440. eLEXTYPE_PRIVATE18 = 0x20000000,
  1441. eLEXTYPE_PRIVATE19 = 0x40000000,
  1442. eLEXTYPE_PRIVATE20 = 0x80000000
  1443. } SPLEXICONTYPE;
  1444. typedef enum SPWORDTYPE {
  1445. eWORDTYPE_ADDED = 1,
  1446. eWORDTYPE_DELETED = 2
  1447. } SPWORDTYPE;
  1448. typedef enum SPPRONUNCIATIONFLAGS {
  1449. ePRONFLAG_USED = 1
  1450. } SPPRONUNCIATIONFLAGS;
  1451. typedef enum SPSHORTCUTTYPE {
  1452. SPSHT_NotOverriden = -1,
  1453. SPSHT_Unknown = 0,
  1454. SPSHT_EMAIL = 0x1000,
  1455. SPSHT_OTHER = 0x2000,
  1456. SPPS_RESERVED1 = 0x3000,
  1457. SPPS_RESERVED2 = 0x4000,
  1458. SPPS_RESERVED3 = 0x5000,
  1459. SPPS_RESERVED4 = 0xf000
  1460. } SPSHORTCUTTYPE;
  1461. typedef enum SPVALUETYPE {
  1462. SPDF_PROPERTY = 0x1,
  1463. SPDF_REPLACEMENT = 0x2,
  1464. SPDF_RULE = 0x4,
  1465. SPDF_DISPLAYTEXT = 0x8,
  1466. SPDF_LEXICALFORM = 0x10,
  1467. SPDF_PRONUNCIATION = 0x20,
  1468. SPDF_AUDIO = 0x40,
  1469. SPDF_ALTERNATES = 0x80,
  1470. SPDF_ALL = 0xff
  1471. } SPVALUETYPE;
  1472. typedef enum SPPHRASERNG {
  1473. SPPR_ALL_ELEMENTS = -1
  1474. } SPPHRASERNG;
  1475. typedef enum SPVACTIONS {
  1476. SPVA_Speak = 0,
  1477. SPVA_Silence = 1,
  1478. SPVA_Pronounce = 2,
  1479. SPVA_Bookmark = 3,
  1480. SPVA_SpellOut = 4,
  1481. SPVA_Section = 5,
  1482. SPVA_ParseUnknownTag = 6
  1483. } SPVACTIONS;
  1484. typedef enum SPRUNSTATE {
  1485. SPRS_DONE = 1,
  1486. SPRS_IS_SPEAKING = 2
  1487. } SPRUNSTATE;
  1488. typedef enum SPVLIMITS {
  1489. SPMIN_VOLUME = 0,
  1490. SPMAX_VOLUME = 100,
  1491. SPMIN_RATE = -10,
  1492. SPMAX_RATE = 10
  1493. } SPVLIMITS;
  1494. typedef enum SPVPRIORITY {
  1495. SPVPRI_NORMAL = 0,
  1496. SPVPRI_ALERT = 1,
  1497. SPVPRI_OVER = 2
  1498. } SPVPRIORITY;
  1499. EXTERN_C const GUID SPDFID_Text;
  1500. EXTERN_C const GUID SPDFID_WaveFormatEx;
  1501. #define SP_LOW_CONFIDENCE (-1)
  1502. #define SP_NORMAL_CONFIDENCE (0)
  1503. #define SP_HIGH_CONFIDENCE (+1)
  1504. #define DEFAULT_WEIGHT (1)
  1505. #define SP_MAX_WORD_LENGTH (128)
  1506. #define SP_MAX_PRON_LENGTH (384)
  1507. #define SP_EMULATE_RESULT (0x40000000)
  1508. #ifdef __cplusplus
  1509. interface ISpNotifyCallback {
  1510. virtual HRESULT STDMETHODCALLTYPE NotifyCallback(WPARAM wParam, LPARAM lParam) = 0;
  1511. };
  1512. #else
  1513. typedef void *ISpNotifyCallback;
  1514. #endif
  1515. #if 0
  1516. typedef void *SPNOTIFYCALLBACK;
  1517. #else
  1518. typedef void __stdcall SPNOTIFYCALLBACK(WPARAM wParam, LPARAM lParam);
  1519. #endif
  1520. /*****************************************************************************
  1521. * ISpNotifySource interface
  1522. */
  1523. #ifndef __ISpNotifySource_INTERFACE_DEFINED__
  1524. #define __ISpNotifySource_INTERFACE_DEFINED__
  1525. DEFINE_GUID(IID_ISpNotifySource, 0x5eff4aef, 0x8487, 0x11d2, 0x96,0x1c, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  1526. #if defined(__cplusplus) && !defined(CINTERFACE)
  1527. MIDL_INTERFACE("5eff4aef-8487-11d2-961c-00c04f8ee628")
  1528. ISpNotifySource : public IUnknown
  1529. {
  1530. virtual HRESULT STDMETHODCALLTYPE SetNotifySink(
  1531. ISpNotifySink *pNotifySink) = 0;
  1532. virtual HRESULT STDMETHODCALLTYPE SetNotifyWindowMessage(
  1533. HWND hWnd,
  1534. UINT Msg,
  1535. WPARAM wParam,
  1536. LPARAM lParam) = 0;
  1537. virtual HRESULT STDMETHODCALLTYPE SetNotifyCallbackFunction(
  1538. SPNOTIFYCALLBACK *pfnCallback,
  1539. WPARAM wParam,
  1540. LPARAM lParam) = 0;
  1541. virtual HRESULT STDMETHODCALLTYPE SetNotifyCallbackInterface(
  1542. ISpNotifyCallback *pSpCallback,
  1543. WPARAM wParam,
  1544. LPARAM lParam) = 0;
  1545. virtual HRESULT STDMETHODCALLTYPE SetNotifyWin32Event(
  1546. ) = 0;
  1547. virtual HRESULT STDMETHODCALLTYPE WaitForNotifyEvent(
  1548. DWORD dwMilliseconds) = 0;
  1549. virtual HANDLE STDMETHODCALLTYPE GetNotifyEventHandle(
  1550. ) = 0;
  1551. };
  1552. #ifdef __CRT_UUID_DECL
  1553. __CRT_UUID_DECL(ISpNotifySource, 0x5eff4aef, 0x8487, 0x11d2, 0x96,0x1c, 0x00,0xc0,0x4f,0x8e,0xe6,0x28)
  1554. #endif
  1555. #else
  1556. typedef struct ISpNotifySourceVtbl {
  1557. BEGIN_INTERFACE
  1558. /*** IUnknown methods ***/
  1559. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1560. ISpNotifySource *This,
  1561. REFIID riid,
  1562. void **ppvObject);
  1563. ULONG (STDMETHODCALLTYPE *AddRef)(
  1564. ISpNotifySource *This);
  1565. ULONG (STDMETHODCALLTYPE *Release)(
  1566. ISpNotifySource *This);
  1567. /*** ISpNotifySource methods ***/
  1568. HRESULT (STDMETHODCALLTYPE *SetNotifySink)(
  1569. ISpNotifySource *This,
  1570. ISpNotifySink *pNotifySink);
  1571. HRESULT (STDMETHODCALLTYPE *SetNotifyWindowMessage)(
  1572. ISpNotifySource *This,
  1573. HWND hWnd,
  1574. UINT Msg,
  1575. WPARAM wParam,
  1576. LPARAM lParam);
  1577. HRESULT (STDMETHODCALLTYPE *SetNotifyCallbackFunction)(
  1578. ISpNotifySource *This,
  1579. SPNOTIFYCALLBACK *pfnCallback,
  1580. WPARAM wParam,
  1581. LPARAM lParam);
  1582. HRESULT (STDMETHODCALLTYPE *SetNotifyCallbackInterface)(
  1583. ISpNotifySource *This,
  1584. ISpNotifyCallback *pSpCallback,
  1585. WPARAM wParam,
  1586. LPARAM lParam);
  1587. HRESULT (STDMETHODCALLTYPE *SetNotifyWin32Event)(
  1588. ISpNotifySource *This);
  1589. HRESULT (STDMETHODCALLTYPE *WaitForNotifyEvent)(
  1590. ISpNotifySource *This,
  1591. DWORD dwMilliseconds);
  1592. HANDLE (STDMETHODCALLTYPE *GetNotifyEventHandle)(
  1593. ISpNotifySource *This);
  1594. END_INTERFACE
  1595. } ISpNotifySourceVtbl;
  1596. interface ISpNotifySource {
  1597. CONST_VTBL ISpNotifySourceVtbl* lpVtbl;
  1598. };
  1599. #ifdef COBJMACROS
  1600. #ifndef WIDL_C_INLINE_WRAPPERS
  1601. /*** IUnknown methods ***/
  1602. #define ISpNotifySource_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1603. #define ISpNotifySource_AddRef(This) (This)->lpVtbl->AddRef(This)
  1604. #define ISpNotifySource_Release(This) (This)->lpVtbl->Release(This)
  1605. /*** ISpNotifySource methods ***/
  1606. #define ISpNotifySource_SetNotifySink(This,pNotifySink) (This)->lpVtbl->SetNotifySink(This,pNotifySink)
  1607. #define ISpNotifySource_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) (This)->lpVtbl->SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  1608. #define ISpNotifySource_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) (This)->lpVtbl->SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  1609. #define ISpNotifySource_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) (This)->lpVtbl->SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  1610. #define ISpNotifySource_SetNotifyWin32Event(This) (This)->lpVtbl->SetNotifyWin32Event(This)
  1611. #define ISpNotifySource_WaitForNotifyEvent(This,dwMilliseconds) (This)->lpVtbl->WaitForNotifyEvent(This,dwMilliseconds)
  1612. #define ISpNotifySource_GetNotifyEventHandle(This) (This)->lpVtbl->GetNotifyEventHandle(This)
  1613. #else
  1614. /*** IUnknown methods ***/
  1615. static FORCEINLINE HRESULT ISpNotifySource_QueryInterface(ISpNotifySource* This,REFIID riid,void **ppvObject) {
  1616. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1617. }
  1618. static FORCEINLINE ULONG ISpNotifySource_AddRef(ISpNotifySource* This) {
  1619. return This->lpVtbl->AddRef(This);
  1620. }
  1621. static FORCEINLINE ULONG ISpNotifySource_Release(ISpNotifySource* This) {
  1622. return This->lpVtbl->Release(This);
  1623. }
  1624. /*** ISpNotifySource methods ***/
  1625. static FORCEINLINE HRESULT ISpNotifySource_SetNotifySink(ISpNotifySource* This,ISpNotifySink *pNotifySink) {
  1626. return This->lpVtbl->SetNotifySink(This,pNotifySink);
  1627. }
  1628. static FORCEINLINE HRESULT ISpNotifySource_SetNotifyWindowMessage(ISpNotifySource* This,HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) {
  1629. return This->lpVtbl->SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam);
  1630. }
  1631. static FORCEINLINE HRESULT ISpNotifySource_SetNotifyCallbackFunction(ISpNotifySource* This,SPNOTIFYCALLBACK *pfnCallback,WPARAM wParam,LPARAM lParam) {
  1632. return This->lpVtbl->SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam);
  1633. }
  1634. static FORCEINLINE HRESULT ISpNotifySource_SetNotifyCallbackInterface(ISpNotifySource* This,ISpNotifyCallback *pSpCallback,WPARAM wParam,LPARAM lParam) {
  1635. return This->lpVtbl->SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam);
  1636. }
  1637. static FORCEINLINE HRESULT ISpNotifySource_SetNotifyWin32Event(ISpNotifySource* This) {
  1638. return This->lpVtbl->SetNotifyWin32Event(This);
  1639. }
  1640. static FORCEINLINE HRESULT ISpNotifySource_WaitForNotifyEvent(ISpNotifySource* This,DWORD dwMilliseconds) {
  1641. return This->lpVtbl->WaitForNotifyEvent(This,dwMilliseconds);
  1642. }
  1643. static FORCEINLINE HANDLE ISpNotifySource_GetNotifyEventHandle(ISpNotifySource* This) {
  1644. return This->lpVtbl->GetNotifyEventHandle(This);
  1645. }
  1646. #endif
  1647. #endif
  1648. #endif
  1649. #endif /* __ISpNotifySource_INTERFACE_DEFINED__ */
  1650. /*****************************************************************************
  1651. * ISpNotifySink interface
  1652. */
  1653. #ifndef __ISpNotifySink_INTERFACE_DEFINED__
  1654. #define __ISpNotifySink_INTERFACE_DEFINED__
  1655. DEFINE_GUID(IID_ISpNotifySink, 0x259684dc, 0x37c3, 0x11d2, 0x96,0x03, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  1656. #if defined(__cplusplus) && !defined(CINTERFACE)
  1657. MIDL_INTERFACE("259684dc-37c3-11d2-9603-00c04f8ee628")
  1658. ISpNotifySink : public IUnknown
  1659. {
  1660. virtual HRESULT STDMETHODCALLTYPE Notify(
  1661. ) = 0;
  1662. };
  1663. #ifdef __CRT_UUID_DECL
  1664. __CRT_UUID_DECL(ISpNotifySink, 0x259684dc, 0x37c3, 0x11d2, 0x96,0x03, 0x00,0xc0,0x4f,0x8e,0xe6,0x28)
  1665. #endif
  1666. #else
  1667. typedef struct ISpNotifySinkVtbl {
  1668. BEGIN_INTERFACE
  1669. /*** IUnknown methods ***/
  1670. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1671. ISpNotifySink *This,
  1672. REFIID riid,
  1673. void **ppvObject);
  1674. ULONG (STDMETHODCALLTYPE *AddRef)(
  1675. ISpNotifySink *This);
  1676. ULONG (STDMETHODCALLTYPE *Release)(
  1677. ISpNotifySink *This);
  1678. /*** ISpNotifySink methods ***/
  1679. HRESULT (STDMETHODCALLTYPE *Notify)(
  1680. ISpNotifySink *This);
  1681. END_INTERFACE
  1682. } ISpNotifySinkVtbl;
  1683. interface ISpNotifySink {
  1684. CONST_VTBL ISpNotifySinkVtbl* lpVtbl;
  1685. };
  1686. #ifdef COBJMACROS
  1687. #ifndef WIDL_C_INLINE_WRAPPERS
  1688. /*** IUnknown methods ***/
  1689. #define ISpNotifySink_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1690. #define ISpNotifySink_AddRef(This) (This)->lpVtbl->AddRef(This)
  1691. #define ISpNotifySink_Release(This) (This)->lpVtbl->Release(This)
  1692. /*** ISpNotifySink methods ***/
  1693. #define ISpNotifySink_Notify(This) (This)->lpVtbl->Notify(This)
  1694. #else
  1695. /*** IUnknown methods ***/
  1696. static FORCEINLINE HRESULT ISpNotifySink_QueryInterface(ISpNotifySink* This,REFIID riid,void **ppvObject) {
  1697. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1698. }
  1699. static FORCEINLINE ULONG ISpNotifySink_AddRef(ISpNotifySink* This) {
  1700. return This->lpVtbl->AddRef(This);
  1701. }
  1702. static FORCEINLINE ULONG ISpNotifySink_Release(ISpNotifySink* This) {
  1703. return This->lpVtbl->Release(This);
  1704. }
  1705. /*** ISpNotifySink methods ***/
  1706. static FORCEINLINE HRESULT ISpNotifySink_Notify(ISpNotifySink* This) {
  1707. return This->lpVtbl->Notify(This);
  1708. }
  1709. #endif
  1710. #endif
  1711. #endif
  1712. #endif /* __ISpNotifySink_INTERFACE_DEFINED__ */
  1713. /*****************************************************************************
  1714. * ISpNotifyTranslator interface
  1715. */
  1716. #ifndef __ISpNotifyTranslator_INTERFACE_DEFINED__
  1717. #define __ISpNotifyTranslator_INTERFACE_DEFINED__
  1718. DEFINE_GUID(IID_ISpNotifyTranslator, 0xaca16614, 0x5d3d, 0x11d2, 0x96,0x0e, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  1719. #if defined(__cplusplus) && !defined(CINTERFACE)
  1720. MIDL_INTERFACE("aca16614-5d3d-11d2-960e-00c04f8ee628")
  1721. ISpNotifyTranslator : public ISpNotifySink
  1722. {
  1723. virtual HRESULT STDMETHODCALLTYPE InitWindowMessage(
  1724. HWND hWnd,
  1725. UINT Msg,
  1726. WPARAM wParam,
  1727. LPARAM lParam) = 0;
  1728. virtual HRESULT STDMETHODCALLTYPE InitCallback(
  1729. SPNOTIFYCALLBACK *pfnCallback,
  1730. WPARAM wParam,
  1731. LPARAM lParam) = 0;
  1732. virtual HRESULT STDMETHODCALLTYPE InitSpNotifyCallback(
  1733. ISpNotifyCallback *pSpCallback,
  1734. WPARAM wParam,
  1735. LPARAM lParam) = 0;
  1736. virtual HRESULT STDMETHODCALLTYPE InitWin32Event(
  1737. HANDLE hEvent,
  1738. WINBOOL fCloseHandleOnRelease) = 0;
  1739. virtual HRESULT STDMETHODCALLTYPE Wait(
  1740. DWORD dwMilliseconds) = 0;
  1741. virtual HANDLE STDMETHODCALLTYPE GetEventHandle(
  1742. ) = 0;
  1743. };
  1744. #ifdef __CRT_UUID_DECL
  1745. __CRT_UUID_DECL(ISpNotifyTranslator, 0xaca16614, 0x5d3d, 0x11d2, 0x96,0x0e, 0x00,0xc0,0x4f,0x8e,0xe6,0x28)
  1746. #endif
  1747. #else
  1748. typedef struct ISpNotifyTranslatorVtbl {
  1749. BEGIN_INTERFACE
  1750. /*** IUnknown methods ***/
  1751. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1752. ISpNotifyTranslator *This,
  1753. REFIID riid,
  1754. void **ppvObject);
  1755. ULONG (STDMETHODCALLTYPE *AddRef)(
  1756. ISpNotifyTranslator *This);
  1757. ULONG (STDMETHODCALLTYPE *Release)(
  1758. ISpNotifyTranslator *This);
  1759. /*** ISpNotifySink methods ***/
  1760. HRESULT (STDMETHODCALLTYPE *Notify)(
  1761. ISpNotifyTranslator *This);
  1762. /*** ISpNotifyTranslator methods ***/
  1763. HRESULT (STDMETHODCALLTYPE *InitWindowMessage)(
  1764. ISpNotifyTranslator *This,
  1765. HWND hWnd,
  1766. UINT Msg,
  1767. WPARAM wParam,
  1768. LPARAM lParam);
  1769. HRESULT (STDMETHODCALLTYPE *InitCallback)(
  1770. ISpNotifyTranslator *This,
  1771. SPNOTIFYCALLBACK *pfnCallback,
  1772. WPARAM wParam,
  1773. LPARAM lParam);
  1774. HRESULT (STDMETHODCALLTYPE *InitSpNotifyCallback)(
  1775. ISpNotifyTranslator *This,
  1776. ISpNotifyCallback *pSpCallback,
  1777. WPARAM wParam,
  1778. LPARAM lParam);
  1779. HRESULT (STDMETHODCALLTYPE *InitWin32Event)(
  1780. ISpNotifyTranslator *This,
  1781. HANDLE hEvent,
  1782. WINBOOL fCloseHandleOnRelease);
  1783. HRESULT (STDMETHODCALLTYPE *Wait)(
  1784. ISpNotifyTranslator *This,
  1785. DWORD dwMilliseconds);
  1786. HANDLE (STDMETHODCALLTYPE *GetEventHandle)(
  1787. ISpNotifyTranslator *This);
  1788. END_INTERFACE
  1789. } ISpNotifyTranslatorVtbl;
  1790. interface ISpNotifyTranslator {
  1791. CONST_VTBL ISpNotifyTranslatorVtbl* lpVtbl;
  1792. };
  1793. #ifdef COBJMACROS
  1794. #ifndef WIDL_C_INLINE_WRAPPERS
  1795. /*** IUnknown methods ***/
  1796. #define ISpNotifyTranslator_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1797. #define ISpNotifyTranslator_AddRef(This) (This)->lpVtbl->AddRef(This)
  1798. #define ISpNotifyTranslator_Release(This) (This)->lpVtbl->Release(This)
  1799. /*** ISpNotifySink methods ***/
  1800. #define ISpNotifyTranslator_Notify(This) (This)->lpVtbl->Notify(This)
  1801. /*** ISpNotifyTranslator methods ***/
  1802. #define ISpNotifyTranslator_InitWindowMessage(This,hWnd,Msg,wParam,lParam) (This)->lpVtbl->InitWindowMessage(This,hWnd,Msg,wParam,lParam)
  1803. #define ISpNotifyTranslator_InitCallback(This,pfnCallback,wParam,lParam) (This)->lpVtbl->InitCallback(This,pfnCallback,wParam,lParam)
  1804. #define ISpNotifyTranslator_InitSpNotifyCallback(This,pSpCallback,wParam,lParam) (This)->lpVtbl->InitSpNotifyCallback(This,pSpCallback,wParam,lParam)
  1805. #define ISpNotifyTranslator_InitWin32Event(This,hEvent,fCloseHandleOnRelease) (This)->lpVtbl->InitWin32Event(This,hEvent,fCloseHandleOnRelease)
  1806. #define ISpNotifyTranslator_Wait(This,dwMilliseconds) (This)->lpVtbl->Wait(This,dwMilliseconds)
  1807. #define ISpNotifyTranslator_GetEventHandle(This) (This)->lpVtbl->GetEventHandle(This)
  1808. #else
  1809. /*** IUnknown methods ***/
  1810. static FORCEINLINE HRESULT ISpNotifyTranslator_QueryInterface(ISpNotifyTranslator* This,REFIID riid,void **ppvObject) {
  1811. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1812. }
  1813. static FORCEINLINE ULONG ISpNotifyTranslator_AddRef(ISpNotifyTranslator* This) {
  1814. return This->lpVtbl->AddRef(This);
  1815. }
  1816. static FORCEINLINE ULONG ISpNotifyTranslator_Release(ISpNotifyTranslator* This) {
  1817. return This->lpVtbl->Release(This);
  1818. }
  1819. /*** ISpNotifySink methods ***/
  1820. static FORCEINLINE HRESULT ISpNotifyTranslator_Notify(ISpNotifyTranslator* This) {
  1821. return This->lpVtbl->Notify(This);
  1822. }
  1823. /*** ISpNotifyTranslator methods ***/
  1824. static FORCEINLINE HRESULT ISpNotifyTranslator_InitWindowMessage(ISpNotifyTranslator* This,HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) {
  1825. return This->lpVtbl->InitWindowMessage(This,hWnd,Msg,wParam,lParam);
  1826. }
  1827. static FORCEINLINE HRESULT ISpNotifyTranslator_InitCallback(ISpNotifyTranslator* This,SPNOTIFYCALLBACK *pfnCallback,WPARAM wParam,LPARAM lParam) {
  1828. return This->lpVtbl->InitCallback(This,pfnCallback,wParam,lParam);
  1829. }
  1830. static FORCEINLINE HRESULT ISpNotifyTranslator_InitSpNotifyCallback(ISpNotifyTranslator* This,ISpNotifyCallback *pSpCallback,WPARAM wParam,LPARAM lParam) {
  1831. return This->lpVtbl->InitSpNotifyCallback(This,pSpCallback,wParam,lParam);
  1832. }
  1833. static FORCEINLINE HRESULT ISpNotifyTranslator_InitWin32Event(ISpNotifyTranslator* This,HANDLE hEvent,WINBOOL fCloseHandleOnRelease) {
  1834. return This->lpVtbl->InitWin32Event(This,hEvent,fCloseHandleOnRelease);
  1835. }
  1836. static FORCEINLINE HRESULT ISpNotifyTranslator_Wait(ISpNotifyTranslator* This,DWORD dwMilliseconds) {
  1837. return This->lpVtbl->Wait(This,dwMilliseconds);
  1838. }
  1839. static FORCEINLINE HANDLE ISpNotifyTranslator_GetEventHandle(ISpNotifyTranslator* This) {
  1840. return This->lpVtbl->GetEventHandle(This);
  1841. }
  1842. #endif
  1843. #endif
  1844. #endif
  1845. #endif /* __ISpNotifyTranslator_INTERFACE_DEFINED__ */
  1846. /*****************************************************************************
  1847. * ISpDataKey interface
  1848. */
  1849. #ifndef __ISpDataKey_INTERFACE_DEFINED__
  1850. #define __ISpDataKey_INTERFACE_DEFINED__
  1851. DEFINE_GUID(IID_ISpDataKey, 0x14056581, 0xe16c, 0x11d2, 0xbb,0x90, 0x00,0xc0,0x4f,0x8e,0xe6,0xc0);
  1852. #if defined(__cplusplus) && !defined(CINTERFACE)
  1853. MIDL_INTERFACE("14056581-e16c-11d2-bb90-00c04f8ee6c0")
  1854. ISpDataKey : public IUnknown
  1855. {
  1856. virtual HRESULT STDMETHODCALLTYPE SetData(
  1857. LPCWSTR pszValueName,
  1858. ULONG cbData,
  1859. const BYTE *pData) = 0;
  1860. virtual HRESULT STDMETHODCALLTYPE GetData(
  1861. LPCWSTR pszValueName,
  1862. ULONG *pcbData,
  1863. BYTE *pData) = 0;
  1864. virtual HRESULT STDMETHODCALLTYPE SetStringValue(
  1865. LPCWSTR pszValueName,
  1866. LPCWSTR pszValue) = 0;
  1867. virtual HRESULT STDMETHODCALLTYPE GetStringValue(
  1868. LPCWSTR pszValueName,
  1869. LPWSTR *ppszValue) = 0;
  1870. virtual HRESULT STDMETHODCALLTYPE SetDWORD(
  1871. LPCWSTR pszValueName,
  1872. DWORD dwValue) = 0;
  1873. virtual HRESULT STDMETHODCALLTYPE GetDWORD(
  1874. LPCWSTR pszValueName,
  1875. DWORD *pdwValue) = 0;
  1876. virtual HRESULT STDMETHODCALLTYPE OpenKey(
  1877. LPCWSTR pszSubKeyName,
  1878. ISpDataKey **ppSubKey) = 0;
  1879. virtual HRESULT STDMETHODCALLTYPE CreateKey(
  1880. LPCWSTR pszSubKey,
  1881. ISpDataKey **ppSubKey) = 0;
  1882. virtual HRESULT STDMETHODCALLTYPE DeleteKey(
  1883. LPCWSTR pszSubKey) = 0;
  1884. virtual HRESULT STDMETHODCALLTYPE DeleteValue(
  1885. LPCWSTR pszValueName) = 0;
  1886. virtual HRESULT STDMETHODCALLTYPE EnumKeys(
  1887. ULONG Index,
  1888. LPWSTR *ppszSubKeyName) = 0;
  1889. virtual HRESULT STDMETHODCALLTYPE EnumValues(
  1890. ULONG Index,
  1891. LPWSTR *ppszValueName) = 0;
  1892. };
  1893. #ifdef __CRT_UUID_DECL
  1894. __CRT_UUID_DECL(ISpDataKey, 0x14056581, 0xe16c, 0x11d2, 0xbb,0x90, 0x00,0xc0,0x4f,0x8e,0xe6,0xc0)
  1895. #endif
  1896. #else
  1897. typedef struct ISpDataKeyVtbl {
  1898. BEGIN_INTERFACE
  1899. /*** IUnknown methods ***/
  1900. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  1901. ISpDataKey *This,
  1902. REFIID riid,
  1903. void **ppvObject);
  1904. ULONG (STDMETHODCALLTYPE *AddRef)(
  1905. ISpDataKey *This);
  1906. ULONG (STDMETHODCALLTYPE *Release)(
  1907. ISpDataKey *This);
  1908. /*** ISpDataKey methods ***/
  1909. HRESULT (STDMETHODCALLTYPE *SetData)(
  1910. ISpDataKey *This,
  1911. LPCWSTR pszValueName,
  1912. ULONG cbData,
  1913. const BYTE *pData);
  1914. HRESULT (STDMETHODCALLTYPE *GetData)(
  1915. ISpDataKey *This,
  1916. LPCWSTR pszValueName,
  1917. ULONG *pcbData,
  1918. BYTE *pData);
  1919. HRESULT (STDMETHODCALLTYPE *SetStringValue)(
  1920. ISpDataKey *This,
  1921. LPCWSTR pszValueName,
  1922. LPCWSTR pszValue);
  1923. HRESULT (STDMETHODCALLTYPE *GetStringValue)(
  1924. ISpDataKey *This,
  1925. LPCWSTR pszValueName,
  1926. LPWSTR *ppszValue);
  1927. HRESULT (STDMETHODCALLTYPE *SetDWORD)(
  1928. ISpDataKey *This,
  1929. LPCWSTR pszValueName,
  1930. DWORD dwValue);
  1931. HRESULT (STDMETHODCALLTYPE *GetDWORD)(
  1932. ISpDataKey *This,
  1933. LPCWSTR pszValueName,
  1934. DWORD *pdwValue);
  1935. HRESULT (STDMETHODCALLTYPE *OpenKey)(
  1936. ISpDataKey *This,
  1937. LPCWSTR pszSubKeyName,
  1938. ISpDataKey **ppSubKey);
  1939. HRESULT (STDMETHODCALLTYPE *CreateKey)(
  1940. ISpDataKey *This,
  1941. LPCWSTR pszSubKey,
  1942. ISpDataKey **ppSubKey);
  1943. HRESULT (STDMETHODCALLTYPE *DeleteKey)(
  1944. ISpDataKey *This,
  1945. LPCWSTR pszSubKey);
  1946. HRESULT (STDMETHODCALLTYPE *DeleteValue)(
  1947. ISpDataKey *This,
  1948. LPCWSTR pszValueName);
  1949. HRESULT (STDMETHODCALLTYPE *EnumKeys)(
  1950. ISpDataKey *This,
  1951. ULONG Index,
  1952. LPWSTR *ppszSubKeyName);
  1953. HRESULT (STDMETHODCALLTYPE *EnumValues)(
  1954. ISpDataKey *This,
  1955. ULONG Index,
  1956. LPWSTR *ppszValueName);
  1957. END_INTERFACE
  1958. } ISpDataKeyVtbl;
  1959. interface ISpDataKey {
  1960. CONST_VTBL ISpDataKeyVtbl* lpVtbl;
  1961. };
  1962. #ifdef COBJMACROS
  1963. #ifndef WIDL_C_INLINE_WRAPPERS
  1964. /*** IUnknown methods ***/
  1965. #define ISpDataKey_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1966. #define ISpDataKey_AddRef(This) (This)->lpVtbl->AddRef(This)
  1967. #define ISpDataKey_Release(This) (This)->lpVtbl->Release(This)
  1968. /*** ISpDataKey methods ***/
  1969. #define ISpDataKey_SetData(This,pszValueName,cbData,pData) (This)->lpVtbl->SetData(This,pszValueName,cbData,pData)
  1970. #define ISpDataKey_GetData(This,pszValueName,pcbData,pData) (This)->lpVtbl->GetData(This,pszValueName,pcbData,pData)
  1971. #define ISpDataKey_SetStringValue(This,pszValueName,pszValue) (This)->lpVtbl->SetStringValue(This,pszValueName,pszValue)
  1972. #define ISpDataKey_GetStringValue(This,pszValueName,ppszValue) (This)->lpVtbl->GetStringValue(This,pszValueName,ppszValue)
  1973. #define ISpDataKey_SetDWORD(This,pszValueName,dwValue) (This)->lpVtbl->SetDWORD(This,pszValueName,dwValue)
  1974. #define ISpDataKey_GetDWORD(This,pszValueName,pdwValue) (This)->lpVtbl->GetDWORD(This,pszValueName,pdwValue)
  1975. #define ISpDataKey_OpenKey(This,pszSubKeyName,ppSubKey) (This)->lpVtbl->OpenKey(This,pszSubKeyName,ppSubKey)
  1976. #define ISpDataKey_CreateKey(This,pszSubKey,ppSubKey) (This)->lpVtbl->CreateKey(This,pszSubKey,ppSubKey)
  1977. #define ISpDataKey_DeleteKey(This,pszSubKey) (This)->lpVtbl->DeleteKey(This,pszSubKey)
  1978. #define ISpDataKey_DeleteValue(This,pszValueName) (This)->lpVtbl->DeleteValue(This,pszValueName)
  1979. #define ISpDataKey_EnumKeys(This,Index,ppszSubKeyName) (This)->lpVtbl->EnumKeys(This,Index,ppszSubKeyName)
  1980. #define ISpDataKey_EnumValues(This,Index,ppszValueName) (This)->lpVtbl->EnumValues(This,Index,ppszValueName)
  1981. #else
  1982. /*** IUnknown methods ***/
  1983. static FORCEINLINE HRESULT ISpDataKey_QueryInterface(ISpDataKey* This,REFIID riid,void **ppvObject) {
  1984. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  1985. }
  1986. static FORCEINLINE ULONG ISpDataKey_AddRef(ISpDataKey* This) {
  1987. return This->lpVtbl->AddRef(This);
  1988. }
  1989. static FORCEINLINE ULONG ISpDataKey_Release(ISpDataKey* This) {
  1990. return This->lpVtbl->Release(This);
  1991. }
  1992. /*** ISpDataKey methods ***/
  1993. static FORCEINLINE HRESULT ISpDataKey_SetData(ISpDataKey* This,LPCWSTR pszValueName,ULONG cbData,const BYTE *pData) {
  1994. return This->lpVtbl->SetData(This,pszValueName,cbData,pData);
  1995. }
  1996. static FORCEINLINE HRESULT ISpDataKey_GetData(ISpDataKey* This,LPCWSTR pszValueName,ULONG *pcbData,BYTE *pData) {
  1997. return This->lpVtbl->GetData(This,pszValueName,pcbData,pData);
  1998. }
  1999. static FORCEINLINE HRESULT ISpDataKey_SetStringValue(ISpDataKey* This,LPCWSTR pszValueName,LPCWSTR pszValue) {
  2000. return This->lpVtbl->SetStringValue(This,pszValueName,pszValue);
  2001. }
  2002. static FORCEINLINE HRESULT ISpDataKey_GetStringValue(ISpDataKey* This,LPCWSTR pszValueName,LPWSTR *ppszValue) {
  2003. return This->lpVtbl->GetStringValue(This,pszValueName,ppszValue);
  2004. }
  2005. static FORCEINLINE HRESULT ISpDataKey_SetDWORD(ISpDataKey* This,LPCWSTR pszValueName,DWORD dwValue) {
  2006. return This->lpVtbl->SetDWORD(This,pszValueName,dwValue);
  2007. }
  2008. static FORCEINLINE HRESULT ISpDataKey_GetDWORD(ISpDataKey* This,LPCWSTR pszValueName,DWORD *pdwValue) {
  2009. return This->lpVtbl->GetDWORD(This,pszValueName,pdwValue);
  2010. }
  2011. static FORCEINLINE HRESULT ISpDataKey_OpenKey(ISpDataKey* This,LPCWSTR pszSubKeyName,ISpDataKey **ppSubKey) {
  2012. return This->lpVtbl->OpenKey(This,pszSubKeyName,ppSubKey);
  2013. }
  2014. static FORCEINLINE HRESULT ISpDataKey_CreateKey(ISpDataKey* This,LPCWSTR pszSubKey,ISpDataKey **ppSubKey) {
  2015. return This->lpVtbl->CreateKey(This,pszSubKey,ppSubKey);
  2016. }
  2017. static FORCEINLINE HRESULT ISpDataKey_DeleteKey(ISpDataKey* This,LPCWSTR pszSubKey) {
  2018. return This->lpVtbl->DeleteKey(This,pszSubKey);
  2019. }
  2020. static FORCEINLINE HRESULT ISpDataKey_DeleteValue(ISpDataKey* This,LPCWSTR pszValueName) {
  2021. return This->lpVtbl->DeleteValue(This,pszValueName);
  2022. }
  2023. static FORCEINLINE HRESULT ISpDataKey_EnumKeys(ISpDataKey* This,ULONG Index,LPWSTR *ppszSubKeyName) {
  2024. return This->lpVtbl->EnumKeys(This,Index,ppszSubKeyName);
  2025. }
  2026. static FORCEINLINE HRESULT ISpDataKey_EnumValues(ISpDataKey* This,ULONG Index,LPWSTR *ppszValueName) {
  2027. return This->lpVtbl->EnumValues(This,Index,ppszValueName);
  2028. }
  2029. #endif
  2030. #endif
  2031. #endif
  2032. #endif /* __ISpDataKey_INTERFACE_DEFINED__ */
  2033. /*****************************************************************************
  2034. * ISpObjectWithToken interface
  2035. */
  2036. #ifndef __ISpObjectWithToken_INTERFACE_DEFINED__
  2037. #define __ISpObjectWithToken_INTERFACE_DEFINED__
  2038. DEFINE_GUID(IID_ISpObjectWithToken, 0x5b559f40, 0xe952, 0x11d2, 0xbb,0x91, 0x00,0xc0,0x4f,0x8e,0xe6,0xc0);
  2039. #if defined(__cplusplus) && !defined(CINTERFACE)
  2040. MIDL_INTERFACE("5b559f40-e952-11d2-bb91-00c04f8ee6c0")
  2041. ISpObjectWithToken : public IUnknown
  2042. {
  2043. virtual HRESULT STDMETHODCALLTYPE SetObjectToken(
  2044. ISpObjectToken *pToken) = 0;
  2045. virtual HRESULT STDMETHODCALLTYPE GetObjectToken(
  2046. ISpObjectToken **ppToken) = 0;
  2047. };
  2048. #ifdef __CRT_UUID_DECL
  2049. __CRT_UUID_DECL(ISpObjectWithToken, 0x5b559f40, 0xe952, 0x11d2, 0xbb,0x91, 0x00,0xc0,0x4f,0x8e,0xe6,0xc0)
  2050. #endif
  2051. #else
  2052. typedef struct ISpObjectWithTokenVtbl {
  2053. BEGIN_INTERFACE
  2054. /*** IUnknown methods ***/
  2055. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2056. ISpObjectWithToken *This,
  2057. REFIID riid,
  2058. void **ppvObject);
  2059. ULONG (STDMETHODCALLTYPE *AddRef)(
  2060. ISpObjectWithToken *This);
  2061. ULONG (STDMETHODCALLTYPE *Release)(
  2062. ISpObjectWithToken *This);
  2063. /*** ISpObjectWithToken methods ***/
  2064. HRESULT (STDMETHODCALLTYPE *SetObjectToken)(
  2065. ISpObjectWithToken *This,
  2066. ISpObjectToken *pToken);
  2067. HRESULT (STDMETHODCALLTYPE *GetObjectToken)(
  2068. ISpObjectWithToken *This,
  2069. ISpObjectToken **ppToken);
  2070. END_INTERFACE
  2071. } ISpObjectWithTokenVtbl;
  2072. interface ISpObjectWithToken {
  2073. CONST_VTBL ISpObjectWithTokenVtbl* lpVtbl;
  2074. };
  2075. #ifdef COBJMACROS
  2076. #ifndef WIDL_C_INLINE_WRAPPERS
  2077. /*** IUnknown methods ***/
  2078. #define ISpObjectWithToken_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2079. #define ISpObjectWithToken_AddRef(This) (This)->lpVtbl->AddRef(This)
  2080. #define ISpObjectWithToken_Release(This) (This)->lpVtbl->Release(This)
  2081. /*** ISpObjectWithToken methods ***/
  2082. #define ISpObjectWithToken_SetObjectToken(This,pToken) (This)->lpVtbl->SetObjectToken(This,pToken)
  2083. #define ISpObjectWithToken_GetObjectToken(This,ppToken) (This)->lpVtbl->GetObjectToken(This,ppToken)
  2084. #else
  2085. /*** IUnknown methods ***/
  2086. static FORCEINLINE HRESULT ISpObjectWithToken_QueryInterface(ISpObjectWithToken* This,REFIID riid,void **ppvObject) {
  2087. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2088. }
  2089. static FORCEINLINE ULONG ISpObjectWithToken_AddRef(ISpObjectWithToken* This) {
  2090. return This->lpVtbl->AddRef(This);
  2091. }
  2092. static FORCEINLINE ULONG ISpObjectWithToken_Release(ISpObjectWithToken* This) {
  2093. return This->lpVtbl->Release(This);
  2094. }
  2095. /*** ISpObjectWithToken methods ***/
  2096. static FORCEINLINE HRESULT ISpObjectWithToken_SetObjectToken(ISpObjectWithToken* This,ISpObjectToken *pToken) {
  2097. return This->lpVtbl->SetObjectToken(This,pToken);
  2098. }
  2099. static FORCEINLINE HRESULT ISpObjectWithToken_GetObjectToken(ISpObjectWithToken* This,ISpObjectToken **ppToken) {
  2100. return This->lpVtbl->GetObjectToken(This,ppToken);
  2101. }
  2102. #endif
  2103. #endif
  2104. #endif
  2105. #endif /* __ISpObjectWithToken_INTERFACE_DEFINED__ */
  2106. /*****************************************************************************
  2107. * IEnumSpObjectTokens interface
  2108. */
  2109. #ifndef __IEnumSpObjectTokens_INTERFACE_DEFINED__
  2110. #define __IEnumSpObjectTokens_INTERFACE_DEFINED__
  2111. DEFINE_GUID(IID_IEnumSpObjectTokens, 0x06b64f9e, 0x7fda, 0x11d2, 0xb4,0xf2, 0x00,0xc0,0x4f,0x79,0x73,0x96);
  2112. #if defined(__cplusplus) && !defined(CINTERFACE)
  2113. MIDL_INTERFACE("06b64f9e-7fda-11d2-b4f2-00c04f797396")
  2114. IEnumSpObjectTokens : public IUnknown
  2115. {
  2116. virtual HRESULT STDMETHODCALLTYPE Next(
  2117. ULONG celt,
  2118. ISpObjectToken **pelt,
  2119. ULONG *pceltFetched) = 0;
  2120. virtual HRESULT STDMETHODCALLTYPE Skip(
  2121. ULONG celt) = 0;
  2122. virtual HRESULT STDMETHODCALLTYPE Reset(
  2123. ) = 0;
  2124. virtual HRESULT STDMETHODCALLTYPE Clone(
  2125. IEnumSpObjectTokens **ppEnum) = 0;
  2126. virtual HRESULT STDMETHODCALLTYPE Item(
  2127. ULONG Index,
  2128. ISpObjectToken **ppToken) = 0;
  2129. virtual HRESULT STDMETHODCALLTYPE GetCount(
  2130. ULONG *pCount) = 0;
  2131. };
  2132. #ifdef __CRT_UUID_DECL
  2133. __CRT_UUID_DECL(IEnumSpObjectTokens, 0x06b64f9e, 0x7fda, 0x11d2, 0xb4,0xf2, 0x00,0xc0,0x4f,0x79,0x73,0x96)
  2134. #endif
  2135. #else
  2136. typedef struct IEnumSpObjectTokensVtbl {
  2137. BEGIN_INTERFACE
  2138. /*** IUnknown methods ***/
  2139. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2140. IEnumSpObjectTokens *This,
  2141. REFIID riid,
  2142. void **ppvObject);
  2143. ULONG (STDMETHODCALLTYPE *AddRef)(
  2144. IEnumSpObjectTokens *This);
  2145. ULONG (STDMETHODCALLTYPE *Release)(
  2146. IEnumSpObjectTokens *This);
  2147. /*** IEnumSpObjectTokens methods ***/
  2148. HRESULT (STDMETHODCALLTYPE *Next)(
  2149. IEnumSpObjectTokens *This,
  2150. ULONG celt,
  2151. ISpObjectToken **pelt,
  2152. ULONG *pceltFetched);
  2153. HRESULT (STDMETHODCALLTYPE *Skip)(
  2154. IEnumSpObjectTokens *This,
  2155. ULONG celt);
  2156. HRESULT (STDMETHODCALLTYPE *Reset)(
  2157. IEnumSpObjectTokens *This);
  2158. HRESULT (STDMETHODCALLTYPE *Clone)(
  2159. IEnumSpObjectTokens *This,
  2160. IEnumSpObjectTokens **ppEnum);
  2161. HRESULT (STDMETHODCALLTYPE *Item)(
  2162. IEnumSpObjectTokens *This,
  2163. ULONG Index,
  2164. ISpObjectToken **ppToken);
  2165. HRESULT (STDMETHODCALLTYPE *GetCount)(
  2166. IEnumSpObjectTokens *This,
  2167. ULONG *pCount);
  2168. END_INTERFACE
  2169. } IEnumSpObjectTokensVtbl;
  2170. interface IEnumSpObjectTokens {
  2171. CONST_VTBL IEnumSpObjectTokensVtbl* lpVtbl;
  2172. };
  2173. #ifdef COBJMACROS
  2174. #ifndef WIDL_C_INLINE_WRAPPERS
  2175. /*** IUnknown methods ***/
  2176. #define IEnumSpObjectTokens_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2177. #define IEnumSpObjectTokens_AddRef(This) (This)->lpVtbl->AddRef(This)
  2178. #define IEnumSpObjectTokens_Release(This) (This)->lpVtbl->Release(This)
  2179. /*** IEnumSpObjectTokens methods ***/
  2180. #define IEnumSpObjectTokens_Next(This,celt,pelt,pceltFetched) (This)->lpVtbl->Next(This,celt,pelt,pceltFetched)
  2181. #define IEnumSpObjectTokens_Skip(This,celt) (This)->lpVtbl->Skip(This,celt)
  2182. #define IEnumSpObjectTokens_Reset(This) (This)->lpVtbl->Reset(This)
  2183. #define IEnumSpObjectTokens_Clone(This,ppEnum) (This)->lpVtbl->Clone(This,ppEnum)
  2184. #define IEnumSpObjectTokens_Item(This,Index,ppToken) (This)->lpVtbl->Item(This,Index,ppToken)
  2185. #define IEnumSpObjectTokens_GetCount(This,pCount) (This)->lpVtbl->GetCount(This,pCount)
  2186. #else
  2187. /*** IUnknown methods ***/
  2188. static FORCEINLINE HRESULT IEnumSpObjectTokens_QueryInterface(IEnumSpObjectTokens* This,REFIID riid,void **ppvObject) {
  2189. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2190. }
  2191. static FORCEINLINE ULONG IEnumSpObjectTokens_AddRef(IEnumSpObjectTokens* This) {
  2192. return This->lpVtbl->AddRef(This);
  2193. }
  2194. static FORCEINLINE ULONG IEnumSpObjectTokens_Release(IEnumSpObjectTokens* This) {
  2195. return This->lpVtbl->Release(This);
  2196. }
  2197. /*** IEnumSpObjectTokens methods ***/
  2198. static FORCEINLINE HRESULT IEnumSpObjectTokens_Next(IEnumSpObjectTokens* This,ULONG celt,ISpObjectToken **pelt,ULONG *pceltFetched) {
  2199. return This->lpVtbl->Next(This,celt,pelt,pceltFetched);
  2200. }
  2201. static FORCEINLINE HRESULT IEnumSpObjectTokens_Skip(IEnumSpObjectTokens* This,ULONG celt) {
  2202. return This->lpVtbl->Skip(This,celt);
  2203. }
  2204. static FORCEINLINE HRESULT IEnumSpObjectTokens_Reset(IEnumSpObjectTokens* This) {
  2205. return This->lpVtbl->Reset(This);
  2206. }
  2207. static FORCEINLINE HRESULT IEnumSpObjectTokens_Clone(IEnumSpObjectTokens* This,IEnumSpObjectTokens **ppEnum) {
  2208. return This->lpVtbl->Clone(This,ppEnum);
  2209. }
  2210. static FORCEINLINE HRESULT IEnumSpObjectTokens_Item(IEnumSpObjectTokens* This,ULONG Index,ISpObjectToken **ppToken) {
  2211. return This->lpVtbl->Item(This,Index,ppToken);
  2212. }
  2213. static FORCEINLINE HRESULT IEnumSpObjectTokens_GetCount(IEnumSpObjectTokens* This,ULONG *pCount) {
  2214. return This->lpVtbl->GetCount(This,pCount);
  2215. }
  2216. #endif
  2217. #endif
  2218. #endif
  2219. #endif /* __IEnumSpObjectTokens_INTERFACE_DEFINED__ */
  2220. /*****************************************************************************
  2221. * ISpRegDataKey interface
  2222. */
  2223. #ifndef __ISpRegDataKey_INTERFACE_DEFINED__
  2224. #define __ISpRegDataKey_INTERFACE_DEFINED__
  2225. DEFINE_GUID(IID_ISpRegDataKey, 0x92a66e2b, 0xc830, 0x4149, 0x83,0xdf, 0x6f,0xc2,0xba,0x1e,0x7a,0x5b);
  2226. #if defined(__cplusplus) && !defined(CINTERFACE)
  2227. MIDL_INTERFACE("92a66e2b-c830-4149-83df-6fc2ba1e7a5b")
  2228. ISpRegDataKey : public ISpDataKey
  2229. {
  2230. virtual HRESULT STDMETHODCALLTYPE SetKey(
  2231. HKEY hkey,
  2232. WINBOOL fReadOnly) = 0;
  2233. };
  2234. #ifdef __CRT_UUID_DECL
  2235. __CRT_UUID_DECL(ISpRegDataKey, 0x92a66e2b, 0xc830, 0x4149, 0x83,0xdf, 0x6f,0xc2,0xba,0x1e,0x7a,0x5b)
  2236. #endif
  2237. #else
  2238. typedef struct ISpRegDataKeyVtbl {
  2239. BEGIN_INTERFACE
  2240. /*** IUnknown methods ***/
  2241. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2242. ISpRegDataKey *This,
  2243. REFIID riid,
  2244. void **ppvObject);
  2245. ULONG (STDMETHODCALLTYPE *AddRef)(
  2246. ISpRegDataKey *This);
  2247. ULONG (STDMETHODCALLTYPE *Release)(
  2248. ISpRegDataKey *This);
  2249. /*** ISpDataKey methods ***/
  2250. HRESULT (STDMETHODCALLTYPE *SetData)(
  2251. ISpRegDataKey *This,
  2252. LPCWSTR pszValueName,
  2253. ULONG cbData,
  2254. const BYTE *pData);
  2255. HRESULT (STDMETHODCALLTYPE *GetData)(
  2256. ISpRegDataKey *This,
  2257. LPCWSTR pszValueName,
  2258. ULONG *pcbData,
  2259. BYTE *pData);
  2260. HRESULT (STDMETHODCALLTYPE *SetStringValue)(
  2261. ISpRegDataKey *This,
  2262. LPCWSTR pszValueName,
  2263. LPCWSTR pszValue);
  2264. HRESULT (STDMETHODCALLTYPE *GetStringValue)(
  2265. ISpRegDataKey *This,
  2266. LPCWSTR pszValueName,
  2267. LPWSTR *ppszValue);
  2268. HRESULT (STDMETHODCALLTYPE *SetDWORD)(
  2269. ISpRegDataKey *This,
  2270. LPCWSTR pszValueName,
  2271. DWORD dwValue);
  2272. HRESULT (STDMETHODCALLTYPE *GetDWORD)(
  2273. ISpRegDataKey *This,
  2274. LPCWSTR pszValueName,
  2275. DWORD *pdwValue);
  2276. HRESULT (STDMETHODCALLTYPE *OpenKey)(
  2277. ISpRegDataKey *This,
  2278. LPCWSTR pszSubKeyName,
  2279. ISpDataKey **ppSubKey);
  2280. HRESULT (STDMETHODCALLTYPE *CreateKey)(
  2281. ISpRegDataKey *This,
  2282. LPCWSTR pszSubKey,
  2283. ISpDataKey **ppSubKey);
  2284. HRESULT (STDMETHODCALLTYPE *DeleteKey)(
  2285. ISpRegDataKey *This,
  2286. LPCWSTR pszSubKey);
  2287. HRESULT (STDMETHODCALLTYPE *DeleteValue)(
  2288. ISpRegDataKey *This,
  2289. LPCWSTR pszValueName);
  2290. HRESULT (STDMETHODCALLTYPE *EnumKeys)(
  2291. ISpRegDataKey *This,
  2292. ULONG Index,
  2293. LPWSTR *ppszSubKeyName);
  2294. HRESULT (STDMETHODCALLTYPE *EnumValues)(
  2295. ISpRegDataKey *This,
  2296. ULONG Index,
  2297. LPWSTR *ppszValueName);
  2298. /*** ISpRegDataKey methods ***/
  2299. HRESULT (STDMETHODCALLTYPE *SetKey)(
  2300. ISpRegDataKey *This,
  2301. HKEY hkey,
  2302. WINBOOL fReadOnly);
  2303. END_INTERFACE
  2304. } ISpRegDataKeyVtbl;
  2305. interface ISpRegDataKey {
  2306. CONST_VTBL ISpRegDataKeyVtbl* lpVtbl;
  2307. };
  2308. #ifdef COBJMACROS
  2309. #ifndef WIDL_C_INLINE_WRAPPERS
  2310. /*** IUnknown methods ***/
  2311. #define ISpRegDataKey_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2312. #define ISpRegDataKey_AddRef(This) (This)->lpVtbl->AddRef(This)
  2313. #define ISpRegDataKey_Release(This) (This)->lpVtbl->Release(This)
  2314. /*** ISpDataKey methods ***/
  2315. #define ISpRegDataKey_SetData(This,pszValueName,cbData,pData) (This)->lpVtbl->SetData(This,pszValueName,cbData,pData)
  2316. #define ISpRegDataKey_GetData(This,pszValueName,pcbData,pData) (This)->lpVtbl->GetData(This,pszValueName,pcbData,pData)
  2317. #define ISpRegDataKey_SetStringValue(This,pszValueName,pszValue) (This)->lpVtbl->SetStringValue(This,pszValueName,pszValue)
  2318. #define ISpRegDataKey_GetStringValue(This,pszValueName,ppszValue) (This)->lpVtbl->GetStringValue(This,pszValueName,ppszValue)
  2319. #define ISpRegDataKey_SetDWORD(This,pszValueName,dwValue) (This)->lpVtbl->SetDWORD(This,pszValueName,dwValue)
  2320. #define ISpRegDataKey_GetDWORD(This,pszValueName,pdwValue) (This)->lpVtbl->GetDWORD(This,pszValueName,pdwValue)
  2321. #define ISpRegDataKey_OpenKey(This,pszSubKeyName,ppSubKey) (This)->lpVtbl->OpenKey(This,pszSubKeyName,ppSubKey)
  2322. #define ISpRegDataKey_CreateKey(This,pszSubKey,ppSubKey) (This)->lpVtbl->CreateKey(This,pszSubKey,ppSubKey)
  2323. #define ISpRegDataKey_DeleteKey(This,pszSubKey) (This)->lpVtbl->DeleteKey(This,pszSubKey)
  2324. #define ISpRegDataKey_DeleteValue(This,pszValueName) (This)->lpVtbl->DeleteValue(This,pszValueName)
  2325. #define ISpRegDataKey_EnumKeys(This,Index,ppszSubKeyName) (This)->lpVtbl->EnumKeys(This,Index,ppszSubKeyName)
  2326. #define ISpRegDataKey_EnumValues(This,Index,ppszValueName) (This)->lpVtbl->EnumValues(This,Index,ppszValueName)
  2327. /*** ISpRegDataKey methods ***/
  2328. #define ISpRegDataKey_SetKey(This,hkey,fReadOnly) (This)->lpVtbl->SetKey(This,hkey,fReadOnly)
  2329. #else
  2330. /*** IUnknown methods ***/
  2331. static FORCEINLINE HRESULT ISpRegDataKey_QueryInterface(ISpRegDataKey* This,REFIID riid,void **ppvObject) {
  2332. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2333. }
  2334. static FORCEINLINE ULONG ISpRegDataKey_AddRef(ISpRegDataKey* This) {
  2335. return This->lpVtbl->AddRef(This);
  2336. }
  2337. static FORCEINLINE ULONG ISpRegDataKey_Release(ISpRegDataKey* This) {
  2338. return This->lpVtbl->Release(This);
  2339. }
  2340. /*** ISpDataKey methods ***/
  2341. static FORCEINLINE HRESULT ISpRegDataKey_SetData(ISpRegDataKey* This,LPCWSTR pszValueName,ULONG cbData,const BYTE *pData) {
  2342. return This->lpVtbl->SetData(This,pszValueName,cbData,pData);
  2343. }
  2344. static FORCEINLINE HRESULT ISpRegDataKey_GetData(ISpRegDataKey* This,LPCWSTR pszValueName,ULONG *pcbData,BYTE *pData) {
  2345. return This->lpVtbl->GetData(This,pszValueName,pcbData,pData);
  2346. }
  2347. static FORCEINLINE HRESULT ISpRegDataKey_SetStringValue(ISpRegDataKey* This,LPCWSTR pszValueName,LPCWSTR pszValue) {
  2348. return This->lpVtbl->SetStringValue(This,pszValueName,pszValue);
  2349. }
  2350. static FORCEINLINE HRESULT ISpRegDataKey_GetStringValue(ISpRegDataKey* This,LPCWSTR pszValueName,LPWSTR *ppszValue) {
  2351. return This->lpVtbl->GetStringValue(This,pszValueName,ppszValue);
  2352. }
  2353. static FORCEINLINE HRESULT ISpRegDataKey_SetDWORD(ISpRegDataKey* This,LPCWSTR pszValueName,DWORD dwValue) {
  2354. return This->lpVtbl->SetDWORD(This,pszValueName,dwValue);
  2355. }
  2356. static FORCEINLINE HRESULT ISpRegDataKey_GetDWORD(ISpRegDataKey* This,LPCWSTR pszValueName,DWORD *pdwValue) {
  2357. return This->lpVtbl->GetDWORD(This,pszValueName,pdwValue);
  2358. }
  2359. static FORCEINLINE HRESULT ISpRegDataKey_OpenKey(ISpRegDataKey* This,LPCWSTR pszSubKeyName,ISpDataKey **ppSubKey) {
  2360. return This->lpVtbl->OpenKey(This,pszSubKeyName,ppSubKey);
  2361. }
  2362. static FORCEINLINE HRESULT ISpRegDataKey_CreateKey(ISpRegDataKey* This,LPCWSTR pszSubKey,ISpDataKey **ppSubKey) {
  2363. return This->lpVtbl->CreateKey(This,pszSubKey,ppSubKey);
  2364. }
  2365. static FORCEINLINE HRESULT ISpRegDataKey_DeleteKey(ISpRegDataKey* This,LPCWSTR pszSubKey) {
  2366. return This->lpVtbl->DeleteKey(This,pszSubKey);
  2367. }
  2368. static FORCEINLINE HRESULT ISpRegDataKey_DeleteValue(ISpRegDataKey* This,LPCWSTR pszValueName) {
  2369. return This->lpVtbl->DeleteValue(This,pszValueName);
  2370. }
  2371. static FORCEINLINE HRESULT ISpRegDataKey_EnumKeys(ISpRegDataKey* This,ULONG Index,LPWSTR *ppszSubKeyName) {
  2372. return This->lpVtbl->EnumKeys(This,Index,ppszSubKeyName);
  2373. }
  2374. static FORCEINLINE HRESULT ISpRegDataKey_EnumValues(ISpRegDataKey* This,ULONG Index,LPWSTR *ppszValueName) {
  2375. return This->lpVtbl->EnumValues(This,Index,ppszValueName);
  2376. }
  2377. /*** ISpRegDataKey methods ***/
  2378. static FORCEINLINE HRESULT ISpRegDataKey_SetKey(ISpRegDataKey* This,HKEY hkey,WINBOOL fReadOnly) {
  2379. return This->lpVtbl->SetKey(This,hkey,fReadOnly);
  2380. }
  2381. #endif
  2382. #endif
  2383. #endif
  2384. #endif /* __ISpRegDataKey_INTERFACE_DEFINED__ */
  2385. /*****************************************************************************
  2386. * ISpObjectTokenCategory interface
  2387. */
  2388. #ifndef __ISpObjectTokenCategory_INTERFACE_DEFINED__
  2389. #define __ISpObjectTokenCategory_INTERFACE_DEFINED__
  2390. DEFINE_GUID(IID_ISpObjectTokenCategory, 0x2d3d3845, 0x39af, 0x4850, 0xbb,0xf9, 0x40,0xb4,0x97,0x80,0x01,0x1d);
  2391. #if defined(__cplusplus) && !defined(CINTERFACE)
  2392. MIDL_INTERFACE("2d3d3845-39af-4850-bbf9-40b49780011d")
  2393. ISpObjectTokenCategory : public ISpDataKey
  2394. {
  2395. virtual HRESULT STDMETHODCALLTYPE SetId(
  2396. LPCWSTR pszCategoryId,
  2397. WINBOOL fCreateIfNotExist) = 0;
  2398. virtual HRESULT STDMETHODCALLTYPE GetId(
  2399. LPWSTR *ppszCoMemCategoryId) = 0;
  2400. virtual HRESULT STDMETHODCALLTYPE GetDataKey(
  2401. SPDATAKEYLOCATION spdkl,
  2402. ISpDataKey **ppDataKey) = 0;
  2403. virtual HRESULT STDMETHODCALLTYPE EnumTokens(
  2404. LPCWSTR pzsReqAttribs,
  2405. LPCWSTR pszOptAttribs,
  2406. IEnumSpObjectTokens **ppEnum) = 0;
  2407. virtual HRESULT STDMETHODCALLTYPE SetDefaultTokenId(
  2408. LPCWSTR pszTokenId) = 0;
  2409. virtual HRESULT STDMETHODCALLTYPE GetDefaultTokenId(
  2410. LPWSTR *ppszCoMemTokenId) = 0;
  2411. };
  2412. #ifdef __CRT_UUID_DECL
  2413. __CRT_UUID_DECL(ISpObjectTokenCategory, 0x2d3d3845, 0x39af, 0x4850, 0xbb,0xf9, 0x40,0xb4,0x97,0x80,0x01,0x1d)
  2414. #endif
  2415. #else
  2416. typedef struct ISpObjectTokenCategoryVtbl {
  2417. BEGIN_INTERFACE
  2418. /*** IUnknown methods ***/
  2419. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2420. ISpObjectTokenCategory *This,
  2421. REFIID riid,
  2422. void **ppvObject);
  2423. ULONG (STDMETHODCALLTYPE *AddRef)(
  2424. ISpObjectTokenCategory *This);
  2425. ULONG (STDMETHODCALLTYPE *Release)(
  2426. ISpObjectTokenCategory *This);
  2427. /*** ISpDataKey methods ***/
  2428. HRESULT (STDMETHODCALLTYPE *SetData)(
  2429. ISpObjectTokenCategory *This,
  2430. LPCWSTR pszValueName,
  2431. ULONG cbData,
  2432. const BYTE *pData);
  2433. HRESULT (STDMETHODCALLTYPE *GetData)(
  2434. ISpObjectTokenCategory *This,
  2435. LPCWSTR pszValueName,
  2436. ULONG *pcbData,
  2437. BYTE *pData);
  2438. HRESULT (STDMETHODCALLTYPE *SetStringValue)(
  2439. ISpObjectTokenCategory *This,
  2440. LPCWSTR pszValueName,
  2441. LPCWSTR pszValue);
  2442. HRESULT (STDMETHODCALLTYPE *GetStringValue)(
  2443. ISpObjectTokenCategory *This,
  2444. LPCWSTR pszValueName,
  2445. LPWSTR *ppszValue);
  2446. HRESULT (STDMETHODCALLTYPE *SetDWORD)(
  2447. ISpObjectTokenCategory *This,
  2448. LPCWSTR pszValueName,
  2449. DWORD dwValue);
  2450. HRESULT (STDMETHODCALLTYPE *GetDWORD)(
  2451. ISpObjectTokenCategory *This,
  2452. LPCWSTR pszValueName,
  2453. DWORD *pdwValue);
  2454. HRESULT (STDMETHODCALLTYPE *OpenKey)(
  2455. ISpObjectTokenCategory *This,
  2456. LPCWSTR pszSubKeyName,
  2457. ISpDataKey **ppSubKey);
  2458. HRESULT (STDMETHODCALLTYPE *CreateKey)(
  2459. ISpObjectTokenCategory *This,
  2460. LPCWSTR pszSubKey,
  2461. ISpDataKey **ppSubKey);
  2462. HRESULT (STDMETHODCALLTYPE *DeleteKey)(
  2463. ISpObjectTokenCategory *This,
  2464. LPCWSTR pszSubKey);
  2465. HRESULT (STDMETHODCALLTYPE *DeleteValue)(
  2466. ISpObjectTokenCategory *This,
  2467. LPCWSTR pszValueName);
  2468. HRESULT (STDMETHODCALLTYPE *EnumKeys)(
  2469. ISpObjectTokenCategory *This,
  2470. ULONG Index,
  2471. LPWSTR *ppszSubKeyName);
  2472. HRESULT (STDMETHODCALLTYPE *EnumValues)(
  2473. ISpObjectTokenCategory *This,
  2474. ULONG Index,
  2475. LPWSTR *ppszValueName);
  2476. /*** ISpObjectTokenCategory methods ***/
  2477. HRESULT (STDMETHODCALLTYPE *SetId)(
  2478. ISpObjectTokenCategory *This,
  2479. LPCWSTR pszCategoryId,
  2480. WINBOOL fCreateIfNotExist);
  2481. HRESULT (STDMETHODCALLTYPE *GetId)(
  2482. ISpObjectTokenCategory *This,
  2483. LPWSTR *ppszCoMemCategoryId);
  2484. HRESULT (STDMETHODCALLTYPE *GetDataKey)(
  2485. ISpObjectTokenCategory *This,
  2486. SPDATAKEYLOCATION spdkl,
  2487. ISpDataKey **ppDataKey);
  2488. HRESULT (STDMETHODCALLTYPE *EnumTokens)(
  2489. ISpObjectTokenCategory *This,
  2490. LPCWSTR pzsReqAttribs,
  2491. LPCWSTR pszOptAttribs,
  2492. IEnumSpObjectTokens **ppEnum);
  2493. HRESULT (STDMETHODCALLTYPE *SetDefaultTokenId)(
  2494. ISpObjectTokenCategory *This,
  2495. LPCWSTR pszTokenId);
  2496. HRESULT (STDMETHODCALLTYPE *GetDefaultTokenId)(
  2497. ISpObjectTokenCategory *This,
  2498. LPWSTR *ppszCoMemTokenId);
  2499. END_INTERFACE
  2500. } ISpObjectTokenCategoryVtbl;
  2501. interface ISpObjectTokenCategory {
  2502. CONST_VTBL ISpObjectTokenCategoryVtbl* lpVtbl;
  2503. };
  2504. #ifdef COBJMACROS
  2505. #ifndef WIDL_C_INLINE_WRAPPERS
  2506. /*** IUnknown methods ***/
  2507. #define ISpObjectTokenCategory_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2508. #define ISpObjectTokenCategory_AddRef(This) (This)->lpVtbl->AddRef(This)
  2509. #define ISpObjectTokenCategory_Release(This) (This)->lpVtbl->Release(This)
  2510. /*** ISpDataKey methods ***/
  2511. #define ISpObjectTokenCategory_SetData(This,pszValueName,cbData,pData) (This)->lpVtbl->SetData(This,pszValueName,cbData,pData)
  2512. #define ISpObjectTokenCategory_GetData(This,pszValueName,pcbData,pData) (This)->lpVtbl->GetData(This,pszValueName,pcbData,pData)
  2513. #define ISpObjectTokenCategory_SetStringValue(This,pszValueName,pszValue) (This)->lpVtbl->SetStringValue(This,pszValueName,pszValue)
  2514. #define ISpObjectTokenCategory_GetStringValue(This,pszValueName,ppszValue) (This)->lpVtbl->GetStringValue(This,pszValueName,ppszValue)
  2515. #define ISpObjectTokenCategory_SetDWORD(This,pszValueName,dwValue) (This)->lpVtbl->SetDWORD(This,pszValueName,dwValue)
  2516. #define ISpObjectTokenCategory_GetDWORD(This,pszValueName,pdwValue) (This)->lpVtbl->GetDWORD(This,pszValueName,pdwValue)
  2517. #define ISpObjectTokenCategory_OpenKey(This,pszSubKeyName,ppSubKey) (This)->lpVtbl->OpenKey(This,pszSubKeyName,ppSubKey)
  2518. #define ISpObjectTokenCategory_CreateKey(This,pszSubKey,ppSubKey) (This)->lpVtbl->CreateKey(This,pszSubKey,ppSubKey)
  2519. #define ISpObjectTokenCategory_DeleteKey(This,pszSubKey) (This)->lpVtbl->DeleteKey(This,pszSubKey)
  2520. #define ISpObjectTokenCategory_DeleteValue(This,pszValueName) (This)->lpVtbl->DeleteValue(This,pszValueName)
  2521. #define ISpObjectTokenCategory_EnumKeys(This,Index,ppszSubKeyName) (This)->lpVtbl->EnumKeys(This,Index,ppszSubKeyName)
  2522. #define ISpObjectTokenCategory_EnumValues(This,Index,ppszValueName) (This)->lpVtbl->EnumValues(This,Index,ppszValueName)
  2523. /*** ISpObjectTokenCategory methods ***/
  2524. #define ISpObjectTokenCategory_SetId(This,pszCategoryId,fCreateIfNotExist) (This)->lpVtbl->SetId(This,pszCategoryId,fCreateIfNotExist)
  2525. #define ISpObjectTokenCategory_GetId(This,ppszCoMemCategoryId) (This)->lpVtbl->GetId(This,ppszCoMemCategoryId)
  2526. #define ISpObjectTokenCategory_GetDataKey(This,spdkl,ppDataKey) (This)->lpVtbl->GetDataKey(This,spdkl,ppDataKey)
  2527. #define ISpObjectTokenCategory_EnumTokens(This,pzsReqAttribs,pszOptAttribs,ppEnum) (This)->lpVtbl->EnumTokens(This,pzsReqAttribs,pszOptAttribs,ppEnum)
  2528. #define ISpObjectTokenCategory_SetDefaultTokenId(This,pszTokenId) (This)->lpVtbl->SetDefaultTokenId(This,pszTokenId)
  2529. #define ISpObjectTokenCategory_GetDefaultTokenId(This,ppszCoMemTokenId) (This)->lpVtbl->GetDefaultTokenId(This,ppszCoMemTokenId)
  2530. #else
  2531. /*** IUnknown methods ***/
  2532. static FORCEINLINE HRESULT ISpObjectTokenCategory_QueryInterface(ISpObjectTokenCategory* This,REFIID riid,void **ppvObject) {
  2533. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2534. }
  2535. static FORCEINLINE ULONG ISpObjectTokenCategory_AddRef(ISpObjectTokenCategory* This) {
  2536. return This->lpVtbl->AddRef(This);
  2537. }
  2538. static FORCEINLINE ULONG ISpObjectTokenCategory_Release(ISpObjectTokenCategory* This) {
  2539. return This->lpVtbl->Release(This);
  2540. }
  2541. /*** ISpDataKey methods ***/
  2542. static FORCEINLINE HRESULT ISpObjectTokenCategory_SetData(ISpObjectTokenCategory* This,LPCWSTR pszValueName,ULONG cbData,const BYTE *pData) {
  2543. return This->lpVtbl->SetData(This,pszValueName,cbData,pData);
  2544. }
  2545. static FORCEINLINE HRESULT ISpObjectTokenCategory_GetData(ISpObjectTokenCategory* This,LPCWSTR pszValueName,ULONG *pcbData,BYTE *pData) {
  2546. return This->lpVtbl->GetData(This,pszValueName,pcbData,pData);
  2547. }
  2548. static FORCEINLINE HRESULT ISpObjectTokenCategory_SetStringValue(ISpObjectTokenCategory* This,LPCWSTR pszValueName,LPCWSTR pszValue) {
  2549. return This->lpVtbl->SetStringValue(This,pszValueName,pszValue);
  2550. }
  2551. static FORCEINLINE HRESULT ISpObjectTokenCategory_GetStringValue(ISpObjectTokenCategory* This,LPCWSTR pszValueName,LPWSTR *ppszValue) {
  2552. return This->lpVtbl->GetStringValue(This,pszValueName,ppszValue);
  2553. }
  2554. static FORCEINLINE HRESULT ISpObjectTokenCategory_SetDWORD(ISpObjectTokenCategory* This,LPCWSTR pszValueName,DWORD dwValue) {
  2555. return This->lpVtbl->SetDWORD(This,pszValueName,dwValue);
  2556. }
  2557. static FORCEINLINE HRESULT ISpObjectTokenCategory_GetDWORD(ISpObjectTokenCategory* This,LPCWSTR pszValueName,DWORD *pdwValue) {
  2558. return This->lpVtbl->GetDWORD(This,pszValueName,pdwValue);
  2559. }
  2560. static FORCEINLINE HRESULT ISpObjectTokenCategory_OpenKey(ISpObjectTokenCategory* This,LPCWSTR pszSubKeyName,ISpDataKey **ppSubKey) {
  2561. return This->lpVtbl->OpenKey(This,pszSubKeyName,ppSubKey);
  2562. }
  2563. static FORCEINLINE HRESULT ISpObjectTokenCategory_CreateKey(ISpObjectTokenCategory* This,LPCWSTR pszSubKey,ISpDataKey **ppSubKey) {
  2564. return This->lpVtbl->CreateKey(This,pszSubKey,ppSubKey);
  2565. }
  2566. static FORCEINLINE HRESULT ISpObjectTokenCategory_DeleteKey(ISpObjectTokenCategory* This,LPCWSTR pszSubKey) {
  2567. return This->lpVtbl->DeleteKey(This,pszSubKey);
  2568. }
  2569. static FORCEINLINE HRESULT ISpObjectTokenCategory_DeleteValue(ISpObjectTokenCategory* This,LPCWSTR pszValueName) {
  2570. return This->lpVtbl->DeleteValue(This,pszValueName);
  2571. }
  2572. static FORCEINLINE HRESULT ISpObjectTokenCategory_EnumKeys(ISpObjectTokenCategory* This,ULONG Index,LPWSTR *ppszSubKeyName) {
  2573. return This->lpVtbl->EnumKeys(This,Index,ppszSubKeyName);
  2574. }
  2575. static FORCEINLINE HRESULT ISpObjectTokenCategory_EnumValues(ISpObjectTokenCategory* This,ULONG Index,LPWSTR *ppszValueName) {
  2576. return This->lpVtbl->EnumValues(This,Index,ppszValueName);
  2577. }
  2578. /*** ISpObjectTokenCategory methods ***/
  2579. static FORCEINLINE HRESULT ISpObjectTokenCategory_SetId(ISpObjectTokenCategory* This,LPCWSTR pszCategoryId,WINBOOL fCreateIfNotExist) {
  2580. return This->lpVtbl->SetId(This,pszCategoryId,fCreateIfNotExist);
  2581. }
  2582. static FORCEINLINE HRESULT ISpObjectTokenCategory_GetId(ISpObjectTokenCategory* This,LPWSTR *ppszCoMemCategoryId) {
  2583. return This->lpVtbl->GetId(This,ppszCoMemCategoryId);
  2584. }
  2585. static FORCEINLINE HRESULT ISpObjectTokenCategory_GetDataKey(ISpObjectTokenCategory* This,SPDATAKEYLOCATION spdkl,ISpDataKey **ppDataKey) {
  2586. return This->lpVtbl->GetDataKey(This,spdkl,ppDataKey);
  2587. }
  2588. static FORCEINLINE HRESULT ISpObjectTokenCategory_EnumTokens(ISpObjectTokenCategory* This,LPCWSTR pzsReqAttribs,LPCWSTR pszOptAttribs,IEnumSpObjectTokens **ppEnum) {
  2589. return This->lpVtbl->EnumTokens(This,pzsReqAttribs,pszOptAttribs,ppEnum);
  2590. }
  2591. static FORCEINLINE HRESULT ISpObjectTokenCategory_SetDefaultTokenId(ISpObjectTokenCategory* This,LPCWSTR pszTokenId) {
  2592. return This->lpVtbl->SetDefaultTokenId(This,pszTokenId);
  2593. }
  2594. static FORCEINLINE HRESULT ISpObjectTokenCategory_GetDefaultTokenId(ISpObjectTokenCategory* This,LPWSTR *ppszCoMemTokenId) {
  2595. return This->lpVtbl->GetDefaultTokenId(This,ppszCoMemTokenId);
  2596. }
  2597. #endif
  2598. #endif
  2599. #endif
  2600. #endif /* __ISpObjectTokenCategory_INTERFACE_DEFINED__ */
  2601. /*****************************************************************************
  2602. * ISpObjectToken interface
  2603. */
  2604. #ifndef __ISpObjectToken_INTERFACE_DEFINED__
  2605. #define __ISpObjectToken_INTERFACE_DEFINED__
  2606. DEFINE_GUID(IID_ISpObjectToken, 0x14056589, 0xe16c, 0x11d2, 0xbb,0x90, 0x00,0xc0,0x4f,0x8e,0xe6,0xc0);
  2607. #if defined(__cplusplus) && !defined(CINTERFACE)
  2608. MIDL_INTERFACE("14056589-e16c-11d2-bb90-00c04f8ee6c0")
  2609. ISpObjectToken : public ISpDataKey
  2610. {
  2611. virtual HRESULT STDMETHODCALLTYPE SetId(
  2612. LPCWSTR pszCategoryId,
  2613. LPCWSTR pszTokenId,
  2614. WINBOOL fCreateIfNotExist) = 0;
  2615. virtual HRESULT STDMETHODCALLTYPE GetId(
  2616. LPWSTR *ppszCoMemTokenId) = 0;
  2617. virtual HRESULT STDMETHODCALLTYPE GetCategory(
  2618. ISpObjectTokenCategory **ppTokenCategory) = 0;
  2619. virtual HRESULT STDMETHODCALLTYPE CreateInstance(
  2620. IUnknown *pUnkOuter,
  2621. DWORD dwClsContext,
  2622. REFIID riid,
  2623. void **ppvObject) = 0;
  2624. virtual HRESULT STDMETHODCALLTYPE GetStorageFileName(
  2625. REFCLSID clsidCaller,
  2626. LPCWSTR pszValueName,
  2627. LPCWSTR pszFileNameSpecifier,
  2628. ULONG nFolder,
  2629. LPWSTR *ppszFilePath) = 0;
  2630. virtual HRESULT STDMETHODCALLTYPE RemoveStorageFileName(
  2631. REFCLSID clsidCaller,
  2632. LPCWSTR pszKeyName,
  2633. WINBOOL fDeleteFile) = 0;
  2634. virtual HRESULT STDMETHODCALLTYPE Remove(
  2635. const CLSID *pclsidCaller) = 0;
  2636. virtual HRESULT STDMETHODCALLTYPE IsUISupported(
  2637. LPCWSTR pszTypeOfUI,
  2638. void *pvExtraData,
  2639. ULONG cbExtraData,
  2640. IUnknown *punkObject,
  2641. WINBOOL *pfSupported) = 0;
  2642. virtual HRESULT STDMETHODCALLTYPE DisplayUI(
  2643. HWND hwndParent,
  2644. LPCWSTR pszTitle,
  2645. LPCWSTR pszTypeOfUI,
  2646. void *pvExtraData,
  2647. ULONG cbExtraData,
  2648. IUnknown *punkObject) = 0;
  2649. virtual HRESULT STDMETHODCALLTYPE MatchesAttributes(
  2650. LPCWSTR pszAttributes,
  2651. WINBOOL *pfMatches) = 0;
  2652. };
  2653. #ifdef __CRT_UUID_DECL
  2654. __CRT_UUID_DECL(ISpObjectToken, 0x14056589, 0xe16c, 0x11d2, 0xbb,0x90, 0x00,0xc0,0x4f,0x8e,0xe6,0xc0)
  2655. #endif
  2656. #else
  2657. typedef struct ISpObjectTokenVtbl {
  2658. BEGIN_INTERFACE
  2659. /*** IUnknown methods ***/
  2660. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2661. ISpObjectToken *This,
  2662. REFIID riid,
  2663. void **ppvObject);
  2664. ULONG (STDMETHODCALLTYPE *AddRef)(
  2665. ISpObjectToken *This);
  2666. ULONG (STDMETHODCALLTYPE *Release)(
  2667. ISpObjectToken *This);
  2668. /*** ISpDataKey methods ***/
  2669. HRESULT (STDMETHODCALLTYPE *SetData)(
  2670. ISpObjectToken *This,
  2671. LPCWSTR pszValueName,
  2672. ULONG cbData,
  2673. const BYTE *pData);
  2674. HRESULT (STDMETHODCALLTYPE *GetData)(
  2675. ISpObjectToken *This,
  2676. LPCWSTR pszValueName,
  2677. ULONG *pcbData,
  2678. BYTE *pData);
  2679. HRESULT (STDMETHODCALLTYPE *SetStringValue)(
  2680. ISpObjectToken *This,
  2681. LPCWSTR pszValueName,
  2682. LPCWSTR pszValue);
  2683. HRESULT (STDMETHODCALLTYPE *GetStringValue)(
  2684. ISpObjectToken *This,
  2685. LPCWSTR pszValueName,
  2686. LPWSTR *ppszValue);
  2687. HRESULT (STDMETHODCALLTYPE *SetDWORD)(
  2688. ISpObjectToken *This,
  2689. LPCWSTR pszValueName,
  2690. DWORD dwValue);
  2691. HRESULT (STDMETHODCALLTYPE *GetDWORD)(
  2692. ISpObjectToken *This,
  2693. LPCWSTR pszValueName,
  2694. DWORD *pdwValue);
  2695. HRESULT (STDMETHODCALLTYPE *OpenKey)(
  2696. ISpObjectToken *This,
  2697. LPCWSTR pszSubKeyName,
  2698. ISpDataKey **ppSubKey);
  2699. HRESULT (STDMETHODCALLTYPE *CreateKey)(
  2700. ISpObjectToken *This,
  2701. LPCWSTR pszSubKey,
  2702. ISpDataKey **ppSubKey);
  2703. HRESULT (STDMETHODCALLTYPE *DeleteKey)(
  2704. ISpObjectToken *This,
  2705. LPCWSTR pszSubKey);
  2706. HRESULT (STDMETHODCALLTYPE *DeleteValue)(
  2707. ISpObjectToken *This,
  2708. LPCWSTR pszValueName);
  2709. HRESULT (STDMETHODCALLTYPE *EnumKeys)(
  2710. ISpObjectToken *This,
  2711. ULONG Index,
  2712. LPWSTR *ppszSubKeyName);
  2713. HRESULT (STDMETHODCALLTYPE *EnumValues)(
  2714. ISpObjectToken *This,
  2715. ULONG Index,
  2716. LPWSTR *ppszValueName);
  2717. /*** ISpObjectToken methods ***/
  2718. HRESULT (STDMETHODCALLTYPE *SetId)(
  2719. ISpObjectToken *This,
  2720. LPCWSTR pszCategoryId,
  2721. LPCWSTR pszTokenId,
  2722. WINBOOL fCreateIfNotExist);
  2723. HRESULT (STDMETHODCALLTYPE *GetId)(
  2724. ISpObjectToken *This,
  2725. LPWSTR *ppszCoMemTokenId);
  2726. HRESULT (STDMETHODCALLTYPE *GetCategory)(
  2727. ISpObjectToken *This,
  2728. ISpObjectTokenCategory **ppTokenCategory);
  2729. HRESULT (STDMETHODCALLTYPE *CreateInstance)(
  2730. ISpObjectToken *This,
  2731. IUnknown *pUnkOuter,
  2732. DWORD dwClsContext,
  2733. REFIID riid,
  2734. void **ppvObject);
  2735. HRESULT (STDMETHODCALLTYPE *GetStorageFileName)(
  2736. ISpObjectToken *This,
  2737. REFCLSID clsidCaller,
  2738. LPCWSTR pszValueName,
  2739. LPCWSTR pszFileNameSpecifier,
  2740. ULONG nFolder,
  2741. LPWSTR *ppszFilePath);
  2742. HRESULT (STDMETHODCALLTYPE *RemoveStorageFileName)(
  2743. ISpObjectToken *This,
  2744. REFCLSID clsidCaller,
  2745. LPCWSTR pszKeyName,
  2746. WINBOOL fDeleteFile);
  2747. HRESULT (STDMETHODCALLTYPE *Remove)(
  2748. ISpObjectToken *This,
  2749. const CLSID *pclsidCaller);
  2750. HRESULT (STDMETHODCALLTYPE *IsUISupported)(
  2751. ISpObjectToken *This,
  2752. LPCWSTR pszTypeOfUI,
  2753. void *pvExtraData,
  2754. ULONG cbExtraData,
  2755. IUnknown *punkObject,
  2756. WINBOOL *pfSupported);
  2757. HRESULT (STDMETHODCALLTYPE *DisplayUI)(
  2758. ISpObjectToken *This,
  2759. HWND hwndParent,
  2760. LPCWSTR pszTitle,
  2761. LPCWSTR pszTypeOfUI,
  2762. void *pvExtraData,
  2763. ULONG cbExtraData,
  2764. IUnknown *punkObject);
  2765. HRESULT (STDMETHODCALLTYPE *MatchesAttributes)(
  2766. ISpObjectToken *This,
  2767. LPCWSTR pszAttributes,
  2768. WINBOOL *pfMatches);
  2769. END_INTERFACE
  2770. } ISpObjectTokenVtbl;
  2771. interface ISpObjectToken {
  2772. CONST_VTBL ISpObjectTokenVtbl* lpVtbl;
  2773. };
  2774. #ifdef COBJMACROS
  2775. #ifndef WIDL_C_INLINE_WRAPPERS
  2776. /*** IUnknown methods ***/
  2777. #define ISpObjectToken_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  2778. #define ISpObjectToken_AddRef(This) (This)->lpVtbl->AddRef(This)
  2779. #define ISpObjectToken_Release(This) (This)->lpVtbl->Release(This)
  2780. /*** ISpDataKey methods ***/
  2781. #define ISpObjectToken_SetData(This,pszValueName,cbData,pData) (This)->lpVtbl->SetData(This,pszValueName,cbData,pData)
  2782. #define ISpObjectToken_GetData(This,pszValueName,pcbData,pData) (This)->lpVtbl->GetData(This,pszValueName,pcbData,pData)
  2783. #define ISpObjectToken_SetStringValue(This,pszValueName,pszValue) (This)->lpVtbl->SetStringValue(This,pszValueName,pszValue)
  2784. #define ISpObjectToken_GetStringValue(This,pszValueName,ppszValue) (This)->lpVtbl->GetStringValue(This,pszValueName,ppszValue)
  2785. #define ISpObjectToken_SetDWORD(This,pszValueName,dwValue) (This)->lpVtbl->SetDWORD(This,pszValueName,dwValue)
  2786. #define ISpObjectToken_GetDWORD(This,pszValueName,pdwValue) (This)->lpVtbl->GetDWORD(This,pszValueName,pdwValue)
  2787. #define ISpObjectToken_OpenKey(This,pszSubKeyName,ppSubKey) (This)->lpVtbl->OpenKey(This,pszSubKeyName,ppSubKey)
  2788. #define ISpObjectToken_CreateKey(This,pszSubKey,ppSubKey) (This)->lpVtbl->CreateKey(This,pszSubKey,ppSubKey)
  2789. #define ISpObjectToken_DeleteKey(This,pszSubKey) (This)->lpVtbl->DeleteKey(This,pszSubKey)
  2790. #define ISpObjectToken_DeleteValue(This,pszValueName) (This)->lpVtbl->DeleteValue(This,pszValueName)
  2791. #define ISpObjectToken_EnumKeys(This,Index,ppszSubKeyName) (This)->lpVtbl->EnumKeys(This,Index,ppszSubKeyName)
  2792. #define ISpObjectToken_EnumValues(This,Index,ppszValueName) (This)->lpVtbl->EnumValues(This,Index,ppszValueName)
  2793. /*** ISpObjectToken methods ***/
  2794. #define ISpObjectToken_SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist) (This)->lpVtbl->SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist)
  2795. #define ISpObjectToken_GetId(This,ppszCoMemTokenId) (This)->lpVtbl->GetId(This,ppszCoMemTokenId)
  2796. #define ISpObjectToken_GetCategory(This,ppTokenCategory) (This)->lpVtbl->GetCategory(This,ppTokenCategory)
  2797. #define ISpObjectToken_CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject) (This)->lpVtbl->CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject)
  2798. #define ISpObjectToken_GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath) (This)->lpVtbl->GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath)
  2799. #define ISpObjectToken_RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile) (This)->lpVtbl->RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile)
  2800. #define ISpObjectToken_Remove(This,pclsidCaller) (This)->lpVtbl->Remove(This,pclsidCaller)
  2801. #define ISpObjectToken_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported) (This)->lpVtbl->IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported)
  2802. #define ISpObjectToken_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject) (This)->lpVtbl->DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject)
  2803. #define ISpObjectToken_MatchesAttributes(This,pszAttributes,pfMatches) (This)->lpVtbl->MatchesAttributes(This,pszAttributes,pfMatches)
  2804. #else
  2805. /*** IUnknown methods ***/
  2806. static FORCEINLINE HRESULT ISpObjectToken_QueryInterface(ISpObjectToken* This,REFIID riid,void **ppvObject) {
  2807. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  2808. }
  2809. static FORCEINLINE ULONG ISpObjectToken_AddRef(ISpObjectToken* This) {
  2810. return This->lpVtbl->AddRef(This);
  2811. }
  2812. static FORCEINLINE ULONG ISpObjectToken_Release(ISpObjectToken* This) {
  2813. return This->lpVtbl->Release(This);
  2814. }
  2815. /*** ISpDataKey methods ***/
  2816. static FORCEINLINE HRESULT ISpObjectToken_SetData(ISpObjectToken* This,LPCWSTR pszValueName,ULONG cbData,const BYTE *pData) {
  2817. return This->lpVtbl->SetData(This,pszValueName,cbData,pData);
  2818. }
  2819. static FORCEINLINE HRESULT ISpObjectToken_GetData(ISpObjectToken* This,LPCWSTR pszValueName,ULONG *pcbData,BYTE *pData) {
  2820. return This->lpVtbl->GetData(This,pszValueName,pcbData,pData);
  2821. }
  2822. static FORCEINLINE HRESULT ISpObjectToken_SetStringValue(ISpObjectToken* This,LPCWSTR pszValueName,LPCWSTR pszValue) {
  2823. return This->lpVtbl->SetStringValue(This,pszValueName,pszValue);
  2824. }
  2825. static FORCEINLINE HRESULT ISpObjectToken_GetStringValue(ISpObjectToken* This,LPCWSTR pszValueName,LPWSTR *ppszValue) {
  2826. return This->lpVtbl->GetStringValue(This,pszValueName,ppszValue);
  2827. }
  2828. static FORCEINLINE HRESULT ISpObjectToken_SetDWORD(ISpObjectToken* This,LPCWSTR pszValueName,DWORD dwValue) {
  2829. return This->lpVtbl->SetDWORD(This,pszValueName,dwValue);
  2830. }
  2831. static FORCEINLINE HRESULT ISpObjectToken_GetDWORD(ISpObjectToken* This,LPCWSTR pszValueName,DWORD *pdwValue) {
  2832. return This->lpVtbl->GetDWORD(This,pszValueName,pdwValue);
  2833. }
  2834. static FORCEINLINE HRESULT ISpObjectToken_OpenKey(ISpObjectToken* This,LPCWSTR pszSubKeyName,ISpDataKey **ppSubKey) {
  2835. return This->lpVtbl->OpenKey(This,pszSubKeyName,ppSubKey);
  2836. }
  2837. static FORCEINLINE HRESULT ISpObjectToken_CreateKey(ISpObjectToken* This,LPCWSTR pszSubKey,ISpDataKey **ppSubKey) {
  2838. return This->lpVtbl->CreateKey(This,pszSubKey,ppSubKey);
  2839. }
  2840. static FORCEINLINE HRESULT ISpObjectToken_DeleteKey(ISpObjectToken* This,LPCWSTR pszSubKey) {
  2841. return This->lpVtbl->DeleteKey(This,pszSubKey);
  2842. }
  2843. static FORCEINLINE HRESULT ISpObjectToken_DeleteValue(ISpObjectToken* This,LPCWSTR pszValueName) {
  2844. return This->lpVtbl->DeleteValue(This,pszValueName);
  2845. }
  2846. static FORCEINLINE HRESULT ISpObjectToken_EnumKeys(ISpObjectToken* This,ULONG Index,LPWSTR *ppszSubKeyName) {
  2847. return This->lpVtbl->EnumKeys(This,Index,ppszSubKeyName);
  2848. }
  2849. static FORCEINLINE HRESULT ISpObjectToken_EnumValues(ISpObjectToken* This,ULONG Index,LPWSTR *ppszValueName) {
  2850. return This->lpVtbl->EnumValues(This,Index,ppszValueName);
  2851. }
  2852. /*** ISpObjectToken methods ***/
  2853. static FORCEINLINE HRESULT ISpObjectToken_SetId(ISpObjectToken* This,LPCWSTR pszCategoryId,LPCWSTR pszTokenId,WINBOOL fCreateIfNotExist) {
  2854. return This->lpVtbl->SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist);
  2855. }
  2856. static FORCEINLINE HRESULT ISpObjectToken_GetId(ISpObjectToken* This,LPWSTR *ppszCoMemTokenId) {
  2857. return This->lpVtbl->GetId(This,ppszCoMemTokenId);
  2858. }
  2859. static FORCEINLINE HRESULT ISpObjectToken_GetCategory(ISpObjectToken* This,ISpObjectTokenCategory **ppTokenCategory) {
  2860. return This->lpVtbl->GetCategory(This,ppTokenCategory);
  2861. }
  2862. static FORCEINLINE HRESULT ISpObjectToken_CreateInstance(ISpObjectToken* This,IUnknown *pUnkOuter,DWORD dwClsContext,REFIID riid,void **ppvObject) {
  2863. return This->lpVtbl->CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject);
  2864. }
  2865. static FORCEINLINE HRESULT ISpObjectToken_GetStorageFileName(ISpObjectToken* This,REFCLSID clsidCaller,LPCWSTR pszValueName,LPCWSTR pszFileNameSpecifier,ULONG nFolder,LPWSTR *ppszFilePath) {
  2866. return This->lpVtbl->GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath);
  2867. }
  2868. static FORCEINLINE HRESULT ISpObjectToken_RemoveStorageFileName(ISpObjectToken* This,REFCLSID clsidCaller,LPCWSTR pszKeyName,WINBOOL fDeleteFile) {
  2869. return This->lpVtbl->RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile);
  2870. }
  2871. static FORCEINLINE HRESULT ISpObjectToken_Remove(ISpObjectToken* This,const CLSID *pclsidCaller) {
  2872. return This->lpVtbl->Remove(This,pclsidCaller);
  2873. }
  2874. static FORCEINLINE HRESULT ISpObjectToken_IsUISupported(ISpObjectToken* This,LPCWSTR pszTypeOfUI,void *pvExtraData,ULONG cbExtraData,IUnknown *punkObject,WINBOOL *pfSupported) {
  2875. return This->lpVtbl->IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported);
  2876. }
  2877. static FORCEINLINE HRESULT ISpObjectToken_DisplayUI(ISpObjectToken* This,HWND hwndParent,LPCWSTR pszTitle,LPCWSTR pszTypeOfUI,void *pvExtraData,ULONG cbExtraData,IUnknown *punkObject) {
  2878. return This->lpVtbl->DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject);
  2879. }
  2880. static FORCEINLINE HRESULT ISpObjectToken_MatchesAttributes(ISpObjectToken* This,LPCWSTR pszAttributes,WINBOOL *pfMatches) {
  2881. return This->lpVtbl->MatchesAttributes(This,pszAttributes,pfMatches);
  2882. }
  2883. #endif
  2884. #endif
  2885. #endif
  2886. #endif /* __ISpObjectToken_INTERFACE_DEFINED__ */
  2887. /*****************************************************************************
  2888. * ISpObjectTokenInit interface
  2889. */
  2890. #ifndef __ISpObjectTokenInit_INTERFACE_DEFINED__
  2891. #define __ISpObjectTokenInit_INTERFACE_DEFINED__
  2892. DEFINE_GUID(IID_ISpObjectTokenInit, 0xb8aab0cf, 0x346f, 0x49d8, 0x94,0x99, 0xc8,0xb0,0x3f,0x16,0x1d,0x51);
  2893. #if defined(__cplusplus) && !defined(CINTERFACE)
  2894. MIDL_INTERFACE("b8aab0cf-346f-49d8-9499-c8b03f161d51")
  2895. ISpObjectTokenInit : public ISpObjectToken
  2896. {
  2897. virtual HRESULT STDMETHODCALLTYPE InitFromDataKey(
  2898. LPCWSTR pszCategoryId,
  2899. LPCWSTR pszTokenId,
  2900. ISpDataKey *pDataKey) = 0;
  2901. };
  2902. #ifdef __CRT_UUID_DECL
  2903. __CRT_UUID_DECL(ISpObjectTokenInit, 0xb8aab0cf, 0x346f, 0x49d8, 0x94,0x99, 0xc8,0xb0,0x3f,0x16,0x1d,0x51)
  2904. #endif
  2905. #else
  2906. typedef struct ISpObjectTokenInitVtbl {
  2907. BEGIN_INTERFACE
  2908. /*** IUnknown methods ***/
  2909. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  2910. ISpObjectTokenInit *This,
  2911. REFIID riid,
  2912. void **ppvObject);
  2913. ULONG (STDMETHODCALLTYPE *AddRef)(
  2914. ISpObjectTokenInit *This);
  2915. ULONG (STDMETHODCALLTYPE *Release)(
  2916. ISpObjectTokenInit *This);
  2917. /*** ISpDataKey methods ***/
  2918. HRESULT (STDMETHODCALLTYPE *SetData)(
  2919. ISpObjectTokenInit *This,
  2920. LPCWSTR pszValueName,
  2921. ULONG cbData,
  2922. const BYTE *pData);
  2923. HRESULT (STDMETHODCALLTYPE *GetData)(
  2924. ISpObjectTokenInit *This,
  2925. LPCWSTR pszValueName,
  2926. ULONG *pcbData,
  2927. BYTE *pData);
  2928. HRESULT (STDMETHODCALLTYPE *SetStringValue)(
  2929. ISpObjectTokenInit *This,
  2930. LPCWSTR pszValueName,
  2931. LPCWSTR pszValue);
  2932. HRESULT (STDMETHODCALLTYPE *GetStringValue)(
  2933. ISpObjectTokenInit *This,
  2934. LPCWSTR pszValueName,
  2935. LPWSTR *ppszValue);
  2936. HRESULT (STDMETHODCALLTYPE *SetDWORD)(
  2937. ISpObjectTokenInit *This,
  2938. LPCWSTR pszValueName,
  2939. DWORD dwValue);
  2940. HRESULT (STDMETHODCALLTYPE *GetDWORD)(
  2941. ISpObjectTokenInit *This,
  2942. LPCWSTR pszValueName,
  2943. DWORD *pdwValue);
  2944. HRESULT (STDMETHODCALLTYPE *OpenKey)(
  2945. ISpObjectTokenInit *This,
  2946. LPCWSTR pszSubKeyName,
  2947. ISpDataKey **ppSubKey);
  2948. HRESULT (STDMETHODCALLTYPE *CreateKey)(
  2949. ISpObjectTokenInit *This,
  2950. LPCWSTR pszSubKey,
  2951. ISpDataKey **ppSubKey);
  2952. HRESULT (STDMETHODCALLTYPE *DeleteKey)(
  2953. ISpObjectTokenInit *This,
  2954. LPCWSTR pszSubKey);
  2955. HRESULT (STDMETHODCALLTYPE *DeleteValue)(
  2956. ISpObjectTokenInit *This,
  2957. LPCWSTR pszValueName);
  2958. HRESULT (STDMETHODCALLTYPE *EnumKeys)(
  2959. ISpObjectTokenInit *This,
  2960. ULONG Index,
  2961. LPWSTR *ppszSubKeyName);
  2962. HRESULT (STDMETHODCALLTYPE *EnumValues)(
  2963. ISpObjectTokenInit *This,
  2964. ULONG Index,
  2965. LPWSTR *ppszValueName);
  2966. /*** ISpObjectToken methods ***/
  2967. HRESULT (STDMETHODCALLTYPE *SetId)(
  2968. ISpObjectTokenInit *This,
  2969. LPCWSTR pszCategoryId,
  2970. LPCWSTR pszTokenId,
  2971. WINBOOL fCreateIfNotExist);
  2972. HRESULT (STDMETHODCALLTYPE *GetId)(
  2973. ISpObjectTokenInit *This,
  2974. LPWSTR *ppszCoMemTokenId);
  2975. HRESULT (STDMETHODCALLTYPE *GetCategory)(
  2976. ISpObjectTokenInit *This,
  2977. ISpObjectTokenCategory **ppTokenCategory);
  2978. HRESULT (STDMETHODCALLTYPE *CreateInstance)(
  2979. ISpObjectTokenInit *This,
  2980. IUnknown *pUnkOuter,
  2981. DWORD dwClsContext,
  2982. REFIID riid,
  2983. void **ppvObject);
  2984. HRESULT (STDMETHODCALLTYPE *GetStorageFileName)(
  2985. ISpObjectTokenInit *This,
  2986. REFCLSID clsidCaller,
  2987. LPCWSTR pszValueName,
  2988. LPCWSTR pszFileNameSpecifier,
  2989. ULONG nFolder,
  2990. LPWSTR *ppszFilePath);
  2991. HRESULT (STDMETHODCALLTYPE *RemoveStorageFileName)(
  2992. ISpObjectTokenInit *This,
  2993. REFCLSID clsidCaller,
  2994. LPCWSTR pszKeyName,
  2995. WINBOOL fDeleteFile);
  2996. HRESULT (STDMETHODCALLTYPE *Remove)(
  2997. ISpObjectTokenInit *This,
  2998. const CLSID *pclsidCaller);
  2999. HRESULT (STDMETHODCALLTYPE *IsUISupported)(
  3000. ISpObjectTokenInit *This,
  3001. LPCWSTR pszTypeOfUI,
  3002. void *pvExtraData,
  3003. ULONG cbExtraData,
  3004. IUnknown *punkObject,
  3005. WINBOOL *pfSupported);
  3006. HRESULT (STDMETHODCALLTYPE *DisplayUI)(
  3007. ISpObjectTokenInit *This,
  3008. HWND hwndParent,
  3009. LPCWSTR pszTitle,
  3010. LPCWSTR pszTypeOfUI,
  3011. void *pvExtraData,
  3012. ULONG cbExtraData,
  3013. IUnknown *punkObject);
  3014. HRESULT (STDMETHODCALLTYPE *MatchesAttributes)(
  3015. ISpObjectTokenInit *This,
  3016. LPCWSTR pszAttributes,
  3017. WINBOOL *pfMatches);
  3018. /*** ISpObjectTokenInit methods ***/
  3019. HRESULT (STDMETHODCALLTYPE *InitFromDataKey)(
  3020. ISpObjectTokenInit *This,
  3021. LPCWSTR pszCategoryId,
  3022. LPCWSTR pszTokenId,
  3023. ISpDataKey *pDataKey);
  3024. END_INTERFACE
  3025. } ISpObjectTokenInitVtbl;
  3026. interface ISpObjectTokenInit {
  3027. CONST_VTBL ISpObjectTokenInitVtbl* lpVtbl;
  3028. };
  3029. #ifdef COBJMACROS
  3030. #ifndef WIDL_C_INLINE_WRAPPERS
  3031. /*** IUnknown methods ***/
  3032. #define ISpObjectTokenInit_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  3033. #define ISpObjectTokenInit_AddRef(This) (This)->lpVtbl->AddRef(This)
  3034. #define ISpObjectTokenInit_Release(This) (This)->lpVtbl->Release(This)
  3035. /*** ISpDataKey methods ***/
  3036. #define ISpObjectTokenInit_SetData(This,pszValueName,cbData,pData) (This)->lpVtbl->SetData(This,pszValueName,cbData,pData)
  3037. #define ISpObjectTokenInit_GetData(This,pszValueName,pcbData,pData) (This)->lpVtbl->GetData(This,pszValueName,pcbData,pData)
  3038. #define ISpObjectTokenInit_SetStringValue(This,pszValueName,pszValue) (This)->lpVtbl->SetStringValue(This,pszValueName,pszValue)
  3039. #define ISpObjectTokenInit_GetStringValue(This,pszValueName,ppszValue) (This)->lpVtbl->GetStringValue(This,pszValueName,ppszValue)
  3040. #define ISpObjectTokenInit_SetDWORD(This,pszValueName,dwValue) (This)->lpVtbl->SetDWORD(This,pszValueName,dwValue)
  3041. #define ISpObjectTokenInit_GetDWORD(This,pszValueName,pdwValue) (This)->lpVtbl->GetDWORD(This,pszValueName,pdwValue)
  3042. #define ISpObjectTokenInit_OpenKey(This,pszSubKeyName,ppSubKey) (This)->lpVtbl->OpenKey(This,pszSubKeyName,ppSubKey)
  3043. #define ISpObjectTokenInit_CreateKey(This,pszSubKey,ppSubKey) (This)->lpVtbl->CreateKey(This,pszSubKey,ppSubKey)
  3044. #define ISpObjectTokenInit_DeleteKey(This,pszSubKey) (This)->lpVtbl->DeleteKey(This,pszSubKey)
  3045. #define ISpObjectTokenInit_DeleteValue(This,pszValueName) (This)->lpVtbl->DeleteValue(This,pszValueName)
  3046. #define ISpObjectTokenInit_EnumKeys(This,Index,ppszSubKeyName) (This)->lpVtbl->EnumKeys(This,Index,ppszSubKeyName)
  3047. #define ISpObjectTokenInit_EnumValues(This,Index,ppszValueName) (This)->lpVtbl->EnumValues(This,Index,ppszValueName)
  3048. /*** ISpObjectToken methods ***/
  3049. #define ISpObjectTokenInit_SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist) (This)->lpVtbl->SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist)
  3050. #define ISpObjectTokenInit_GetId(This,ppszCoMemTokenId) (This)->lpVtbl->GetId(This,ppszCoMemTokenId)
  3051. #define ISpObjectTokenInit_GetCategory(This,ppTokenCategory) (This)->lpVtbl->GetCategory(This,ppTokenCategory)
  3052. #define ISpObjectTokenInit_CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject) (This)->lpVtbl->CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject)
  3053. #define ISpObjectTokenInit_GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath) (This)->lpVtbl->GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath)
  3054. #define ISpObjectTokenInit_RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile) (This)->lpVtbl->RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile)
  3055. #define ISpObjectTokenInit_Remove(This,pclsidCaller) (This)->lpVtbl->Remove(This,pclsidCaller)
  3056. #define ISpObjectTokenInit_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported) (This)->lpVtbl->IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported)
  3057. #define ISpObjectTokenInit_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject) (This)->lpVtbl->DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject)
  3058. #define ISpObjectTokenInit_MatchesAttributes(This,pszAttributes,pfMatches) (This)->lpVtbl->MatchesAttributes(This,pszAttributes,pfMatches)
  3059. /*** ISpObjectTokenInit methods ***/
  3060. #define ISpObjectTokenInit_InitFromDataKey(This,pszCategoryId,pszTokenId,pDataKey) (This)->lpVtbl->InitFromDataKey(This,pszCategoryId,pszTokenId,pDataKey)
  3061. #else
  3062. /*** IUnknown methods ***/
  3063. static FORCEINLINE HRESULT ISpObjectTokenInit_QueryInterface(ISpObjectTokenInit* This,REFIID riid,void **ppvObject) {
  3064. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  3065. }
  3066. static FORCEINLINE ULONG ISpObjectTokenInit_AddRef(ISpObjectTokenInit* This) {
  3067. return This->lpVtbl->AddRef(This);
  3068. }
  3069. static FORCEINLINE ULONG ISpObjectTokenInit_Release(ISpObjectTokenInit* This) {
  3070. return This->lpVtbl->Release(This);
  3071. }
  3072. /*** ISpDataKey methods ***/
  3073. static FORCEINLINE HRESULT ISpObjectTokenInit_SetData(ISpObjectTokenInit* This,LPCWSTR pszValueName,ULONG cbData,const BYTE *pData) {
  3074. return This->lpVtbl->SetData(This,pszValueName,cbData,pData);
  3075. }
  3076. static FORCEINLINE HRESULT ISpObjectTokenInit_GetData(ISpObjectTokenInit* This,LPCWSTR pszValueName,ULONG *pcbData,BYTE *pData) {
  3077. return This->lpVtbl->GetData(This,pszValueName,pcbData,pData);
  3078. }
  3079. static FORCEINLINE HRESULT ISpObjectTokenInit_SetStringValue(ISpObjectTokenInit* This,LPCWSTR pszValueName,LPCWSTR pszValue) {
  3080. return This->lpVtbl->SetStringValue(This,pszValueName,pszValue);
  3081. }
  3082. static FORCEINLINE HRESULT ISpObjectTokenInit_GetStringValue(ISpObjectTokenInit* This,LPCWSTR pszValueName,LPWSTR *ppszValue) {
  3083. return This->lpVtbl->GetStringValue(This,pszValueName,ppszValue);
  3084. }
  3085. static FORCEINLINE HRESULT ISpObjectTokenInit_SetDWORD(ISpObjectTokenInit* This,LPCWSTR pszValueName,DWORD dwValue) {
  3086. return This->lpVtbl->SetDWORD(This,pszValueName,dwValue);
  3087. }
  3088. static FORCEINLINE HRESULT ISpObjectTokenInit_GetDWORD(ISpObjectTokenInit* This,LPCWSTR pszValueName,DWORD *pdwValue) {
  3089. return This->lpVtbl->GetDWORD(This,pszValueName,pdwValue);
  3090. }
  3091. static FORCEINLINE HRESULT ISpObjectTokenInit_OpenKey(ISpObjectTokenInit* This,LPCWSTR pszSubKeyName,ISpDataKey **ppSubKey) {
  3092. return This->lpVtbl->OpenKey(This,pszSubKeyName,ppSubKey);
  3093. }
  3094. static FORCEINLINE HRESULT ISpObjectTokenInit_CreateKey(ISpObjectTokenInit* This,LPCWSTR pszSubKey,ISpDataKey **ppSubKey) {
  3095. return This->lpVtbl->CreateKey(This,pszSubKey,ppSubKey);
  3096. }
  3097. static FORCEINLINE HRESULT ISpObjectTokenInit_DeleteKey(ISpObjectTokenInit* This,LPCWSTR pszSubKey) {
  3098. return This->lpVtbl->DeleteKey(This,pszSubKey);
  3099. }
  3100. static FORCEINLINE HRESULT ISpObjectTokenInit_DeleteValue(ISpObjectTokenInit* This,LPCWSTR pszValueName) {
  3101. return This->lpVtbl->DeleteValue(This,pszValueName);
  3102. }
  3103. static FORCEINLINE HRESULT ISpObjectTokenInit_EnumKeys(ISpObjectTokenInit* This,ULONG Index,LPWSTR *ppszSubKeyName) {
  3104. return This->lpVtbl->EnumKeys(This,Index,ppszSubKeyName);
  3105. }
  3106. static FORCEINLINE HRESULT ISpObjectTokenInit_EnumValues(ISpObjectTokenInit* This,ULONG Index,LPWSTR *ppszValueName) {
  3107. return This->lpVtbl->EnumValues(This,Index,ppszValueName);
  3108. }
  3109. /*** ISpObjectToken methods ***/
  3110. static FORCEINLINE HRESULT ISpObjectTokenInit_SetId(ISpObjectTokenInit* This,LPCWSTR pszCategoryId,LPCWSTR pszTokenId,WINBOOL fCreateIfNotExist) {
  3111. return This->lpVtbl->SetId(This,pszCategoryId,pszTokenId,fCreateIfNotExist);
  3112. }
  3113. static FORCEINLINE HRESULT ISpObjectTokenInit_GetId(ISpObjectTokenInit* This,LPWSTR *ppszCoMemTokenId) {
  3114. return This->lpVtbl->GetId(This,ppszCoMemTokenId);
  3115. }
  3116. static FORCEINLINE HRESULT ISpObjectTokenInit_GetCategory(ISpObjectTokenInit* This,ISpObjectTokenCategory **ppTokenCategory) {
  3117. return This->lpVtbl->GetCategory(This,ppTokenCategory);
  3118. }
  3119. static FORCEINLINE HRESULT ISpObjectTokenInit_CreateInstance(ISpObjectTokenInit* This,IUnknown *pUnkOuter,DWORD dwClsContext,REFIID riid,void **ppvObject) {
  3120. return This->lpVtbl->CreateInstance(This,pUnkOuter,dwClsContext,riid,ppvObject);
  3121. }
  3122. static FORCEINLINE HRESULT ISpObjectTokenInit_GetStorageFileName(ISpObjectTokenInit* This,REFCLSID clsidCaller,LPCWSTR pszValueName,LPCWSTR pszFileNameSpecifier,ULONG nFolder,LPWSTR *ppszFilePath) {
  3123. return This->lpVtbl->GetStorageFileName(This,clsidCaller,pszValueName,pszFileNameSpecifier,nFolder,ppszFilePath);
  3124. }
  3125. static FORCEINLINE HRESULT ISpObjectTokenInit_RemoveStorageFileName(ISpObjectTokenInit* This,REFCLSID clsidCaller,LPCWSTR pszKeyName,WINBOOL fDeleteFile) {
  3126. return This->lpVtbl->RemoveStorageFileName(This,clsidCaller,pszKeyName,fDeleteFile);
  3127. }
  3128. static FORCEINLINE HRESULT ISpObjectTokenInit_Remove(ISpObjectTokenInit* This,const CLSID *pclsidCaller) {
  3129. return This->lpVtbl->Remove(This,pclsidCaller);
  3130. }
  3131. static FORCEINLINE HRESULT ISpObjectTokenInit_IsUISupported(ISpObjectTokenInit* This,LPCWSTR pszTypeOfUI,void *pvExtraData,ULONG cbExtraData,IUnknown *punkObject,WINBOOL *pfSupported) {
  3132. return This->lpVtbl->IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,punkObject,pfSupported);
  3133. }
  3134. static FORCEINLINE HRESULT ISpObjectTokenInit_DisplayUI(ISpObjectTokenInit* This,HWND hwndParent,LPCWSTR pszTitle,LPCWSTR pszTypeOfUI,void *pvExtraData,ULONG cbExtraData,IUnknown *punkObject) {
  3135. return This->lpVtbl->DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData,punkObject);
  3136. }
  3137. static FORCEINLINE HRESULT ISpObjectTokenInit_MatchesAttributes(ISpObjectTokenInit* This,LPCWSTR pszAttributes,WINBOOL *pfMatches) {
  3138. return This->lpVtbl->MatchesAttributes(This,pszAttributes,pfMatches);
  3139. }
  3140. /*** ISpObjectTokenInit methods ***/
  3141. static FORCEINLINE HRESULT ISpObjectTokenInit_InitFromDataKey(ISpObjectTokenInit* This,LPCWSTR pszCategoryId,LPCWSTR pszTokenId,ISpDataKey *pDataKey) {
  3142. return This->lpVtbl->InitFromDataKey(This,pszCategoryId,pszTokenId,pDataKey);
  3143. }
  3144. #endif
  3145. #endif
  3146. #endif
  3147. #endif /* __ISpObjectTokenInit_INTERFACE_DEFINED__ */
  3148. /*****************************************************************************
  3149. * ISpResourceManager interface
  3150. */
  3151. #ifndef __ISpResourceManager_INTERFACE_DEFINED__
  3152. #define __ISpResourceManager_INTERFACE_DEFINED__
  3153. DEFINE_GUID(IID_ISpResourceManager, 0x93384e18, 0x5014, 0x43d5, 0xad,0xbb, 0xa7,0x8e,0x05,0x59,0x26,0xbd);
  3154. #if defined(__cplusplus) && !defined(CINTERFACE)
  3155. MIDL_INTERFACE("93384e18-5014-43d5-adbb-a78e055926bd")
  3156. ISpResourceManager : public IServiceProvider
  3157. {
  3158. virtual HRESULT STDMETHODCALLTYPE SetObject(
  3159. REFGUID guidServiceId,
  3160. IUnknown *pUnkObject) = 0;
  3161. virtual HRESULT STDMETHODCALLTYPE GetObject(
  3162. REFGUID guidServiceId,
  3163. REFCLSID ObjectCLSID,
  3164. REFIID ObjectIID,
  3165. WINBOOL fReleaseWhenLastExternalRefReleased,
  3166. void **ppObject) = 0;
  3167. };
  3168. #ifdef __CRT_UUID_DECL
  3169. __CRT_UUID_DECL(ISpResourceManager, 0x93384e18, 0x5014, 0x43d5, 0xad,0xbb, 0xa7,0x8e,0x05,0x59,0x26,0xbd)
  3170. #endif
  3171. #else
  3172. typedef struct ISpResourceManagerVtbl {
  3173. BEGIN_INTERFACE
  3174. /*** IUnknown methods ***/
  3175. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  3176. ISpResourceManager *This,
  3177. REFIID riid,
  3178. void **ppvObject);
  3179. ULONG (STDMETHODCALLTYPE *AddRef)(
  3180. ISpResourceManager *This);
  3181. ULONG (STDMETHODCALLTYPE *Release)(
  3182. ISpResourceManager *This);
  3183. /*** IServiceProvider methods ***/
  3184. HRESULT (STDMETHODCALLTYPE *QueryService)(
  3185. ISpResourceManager *This,
  3186. REFGUID guidService,
  3187. REFIID riid,
  3188. void **ppvObject);
  3189. /*** ISpResourceManager methods ***/
  3190. HRESULT (STDMETHODCALLTYPE *SetObject)(
  3191. ISpResourceManager *This,
  3192. REFGUID guidServiceId,
  3193. IUnknown *pUnkObject);
  3194. HRESULT (STDMETHODCALLTYPE *GetObject)(
  3195. ISpResourceManager *This,
  3196. REFGUID guidServiceId,
  3197. REFCLSID ObjectCLSID,
  3198. REFIID ObjectIID,
  3199. WINBOOL fReleaseWhenLastExternalRefReleased,
  3200. void **ppObject);
  3201. END_INTERFACE
  3202. } ISpResourceManagerVtbl;
  3203. interface ISpResourceManager {
  3204. CONST_VTBL ISpResourceManagerVtbl* lpVtbl;
  3205. };
  3206. #ifdef COBJMACROS
  3207. #ifndef WIDL_C_INLINE_WRAPPERS
  3208. /*** IUnknown methods ***/
  3209. #define ISpResourceManager_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  3210. #define ISpResourceManager_AddRef(This) (This)->lpVtbl->AddRef(This)
  3211. #define ISpResourceManager_Release(This) (This)->lpVtbl->Release(This)
  3212. /*** IServiceProvider methods ***/
  3213. #define ISpResourceManager_QueryService(This,guidService,riid,ppvObject) (This)->lpVtbl->QueryService(This,guidService,riid,ppvObject)
  3214. /*** ISpResourceManager methods ***/
  3215. #define ISpResourceManager_SetObject(This,guidServiceId,pUnkObject) (This)->lpVtbl->SetObject(This,guidServiceId,pUnkObject)
  3216. #define ISpResourceManager_GetObject(This,guidServiceId,ObjectCLSID,ObjectIID,fReleaseWhenLastExternalRefReleased,ppObject) (This)->lpVtbl->GetObject(This,guidServiceId,ObjectCLSID,ObjectIID,fReleaseWhenLastExternalRefReleased,ppObject)
  3217. #else
  3218. /*** IUnknown methods ***/
  3219. static FORCEINLINE HRESULT ISpResourceManager_QueryInterface(ISpResourceManager* This,REFIID riid,void **ppvObject) {
  3220. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  3221. }
  3222. static FORCEINLINE ULONG ISpResourceManager_AddRef(ISpResourceManager* This) {
  3223. return This->lpVtbl->AddRef(This);
  3224. }
  3225. static FORCEINLINE ULONG ISpResourceManager_Release(ISpResourceManager* This) {
  3226. return This->lpVtbl->Release(This);
  3227. }
  3228. /*** IServiceProvider methods ***/
  3229. static FORCEINLINE HRESULT ISpResourceManager_QueryService(ISpResourceManager* This,REFGUID guidService,REFIID riid,void **ppvObject) {
  3230. return This->lpVtbl->QueryService(This,guidService,riid,ppvObject);
  3231. }
  3232. /*** ISpResourceManager methods ***/
  3233. static FORCEINLINE HRESULT ISpResourceManager_SetObject(ISpResourceManager* This,REFGUID guidServiceId,IUnknown *pUnkObject) {
  3234. return This->lpVtbl->SetObject(This,guidServiceId,pUnkObject);
  3235. }
  3236. static FORCEINLINE HRESULT ISpResourceManager_GetObject(ISpResourceManager* This,REFGUID guidServiceId,REFCLSID ObjectCLSID,REFIID ObjectIID,WINBOOL fReleaseWhenLastExternalRefReleased,void **ppObject) {
  3237. return This->lpVtbl->GetObject(This,guidServiceId,ObjectCLSID,ObjectIID,fReleaseWhenLastExternalRefReleased,ppObject);
  3238. }
  3239. #endif
  3240. #endif
  3241. #endif
  3242. #endif /* __ISpResourceManager_INTERFACE_DEFINED__ */
  3243. #if 0
  3244. typedef struct SPEVENT {
  3245. WORD eEventId;
  3246. WORD elParamType;
  3247. ULONG ulStreamNum;
  3248. ULONGLONG ullAudioStreamOffset;
  3249. WPARAM wParam;
  3250. LPARAM lParam;
  3251. } SPEVENT;
  3252. typedef struct SPSERIALIZEDEVENT {
  3253. WORD eEventId;
  3254. WORD elParamType;
  3255. ULONG ulStreamNum;
  3256. ULONGLONG ullAudioStreamOffset;
  3257. ULONG SerializedwParam;
  3258. LONG SerializedlParam;
  3259. } SPSERIALIZEDEVENT;
  3260. typedef struct SPSERIALIZEDEVENT64 {
  3261. WORD eEventId;
  3262. WORD elParamType;
  3263. ULONG ulStreamNum;
  3264. ULONGLONG ullAudioStreamOffset;
  3265. ULONGLONG SerializedwParam;
  3266. LONGLONG SerializedlParam;
  3267. } SPSERIALIZEDEVENT64;
  3268. #else
  3269. typedef struct SPEVENT {
  3270. SPEVENTENUM eEventId : 16;
  3271. SPEVENTLPARAMTYPE elParamType : 16;
  3272. ULONG ulStreamNum;
  3273. ULONGLONG ullAudioStreamOffset;
  3274. WPARAM wParam;
  3275. LPARAM lParam;
  3276. } SPEVENT;
  3277. typedef struct SPSERIALIZEDEVENT {
  3278. SPEVENTENUM eEventId : 16;
  3279. SPEVENTLPARAMTYPE elParamType : 16;
  3280. ULONG ulStreamNum;
  3281. ULONGLONG ullAudioStreamOffset;
  3282. ULONG SerializedwParam;
  3283. LONG SerializedlParam;
  3284. } SPSERIALIZEDEVENT;
  3285. typedef struct SPSERIALIZEDEVENT64 {
  3286. SPEVENTENUM eEventId : 16;
  3287. SPEVENTLPARAMTYPE elParamType : 16;
  3288. ULONG ulStreamNum;
  3289. ULONGLONG ullAudioStreamOffset;
  3290. ULONGLONG SerializedwParam;
  3291. LONGLONG SerializedlParam;
  3292. } SPSERIALIZEDEVENT64;
  3293. #endif
  3294. #if 0
  3295. typedef struct SPEVENTEX {
  3296. WORD eEventId;
  3297. WORD elParamType;
  3298. ULONG ulStreamNum;
  3299. ULONGLONG ullAudioStreamOffset;
  3300. WPARAM wParam;
  3301. LPARAM lParam;
  3302. ULONGLONG ullAudioTimeOffset;
  3303. } SPEVENTEX;
  3304. #else
  3305. typedef struct SPEVENTEX {
  3306. SPEVENTENUM eEventId : 16;
  3307. SPEVENTLPARAMTYPE elParamType : 16;
  3308. ULONG ulStreamNum;
  3309. ULONGLONG ullAudioStreamOffset;
  3310. WPARAM wParam;
  3311. LPARAM lParam;
  3312. ULONGLONG ullAudioTimeOffset;
  3313. } SPEVENTEX;
  3314. #endif
  3315. typedef struct SPEVENTSOURCEINFO {
  3316. ULONGLONG ullEventInterest;
  3317. ULONGLONG ullQueuedInterest;
  3318. ULONG ulCount;
  3319. } SPEVENTSOURCEINFO;
  3320. /*****************************************************************************
  3321. * ISpEventSource interface
  3322. */
  3323. #ifndef __ISpEventSource_INTERFACE_DEFINED__
  3324. #define __ISpEventSource_INTERFACE_DEFINED__
  3325. DEFINE_GUID(IID_ISpEventSource, 0xbe7a9cce, 0x5f9e, 0x11d2, 0x96,0x0f, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  3326. #if defined(__cplusplus) && !defined(CINTERFACE)
  3327. MIDL_INTERFACE("be7a9cce-5f9e-11d2-960f-00c04f8ee628")
  3328. ISpEventSource : public ISpNotifySource
  3329. {
  3330. virtual HRESULT STDMETHODCALLTYPE SetInterest(
  3331. ULONGLONG ullEventInterest,
  3332. ULONGLONG ullQueuedInterest) = 0;
  3333. virtual HRESULT STDMETHODCALLTYPE GetEvents(
  3334. ULONG ulCount,
  3335. SPEVENT *pEventArray,
  3336. ULONG *pulFetched) = 0;
  3337. virtual HRESULT STDMETHODCALLTYPE GetInfo(
  3338. SPEVENTSOURCEINFO *pInfo) = 0;
  3339. };
  3340. #ifdef __CRT_UUID_DECL
  3341. __CRT_UUID_DECL(ISpEventSource, 0xbe7a9cce, 0x5f9e, 0x11d2, 0x96,0x0f, 0x00,0xc0,0x4f,0x8e,0xe6,0x28)
  3342. #endif
  3343. #else
  3344. typedef struct ISpEventSourceVtbl {
  3345. BEGIN_INTERFACE
  3346. /*** IUnknown methods ***/
  3347. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  3348. ISpEventSource *This,
  3349. REFIID riid,
  3350. void **ppvObject);
  3351. ULONG (STDMETHODCALLTYPE *AddRef)(
  3352. ISpEventSource *This);
  3353. ULONG (STDMETHODCALLTYPE *Release)(
  3354. ISpEventSource *This);
  3355. /*** ISpNotifySource methods ***/
  3356. HRESULT (STDMETHODCALLTYPE *SetNotifySink)(
  3357. ISpEventSource *This,
  3358. ISpNotifySink *pNotifySink);
  3359. HRESULT (STDMETHODCALLTYPE *SetNotifyWindowMessage)(
  3360. ISpEventSource *This,
  3361. HWND hWnd,
  3362. UINT Msg,
  3363. WPARAM wParam,
  3364. LPARAM lParam);
  3365. HRESULT (STDMETHODCALLTYPE *SetNotifyCallbackFunction)(
  3366. ISpEventSource *This,
  3367. SPNOTIFYCALLBACK *pfnCallback,
  3368. WPARAM wParam,
  3369. LPARAM lParam);
  3370. HRESULT (STDMETHODCALLTYPE *SetNotifyCallbackInterface)(
  3371. ISpEventSource *This,
  3372. ISpNotifyCallback *pSpCallback,
  3373. WPARAM wParam,
  3374. LPARAM lParam);
  3375. HRESULT (STDMETHODCALLTYPE *SetNotifyWin32Event)(
  3376. ISpEventSource *This);
  3377. HRESULT (STDMETHODCALLTYPE *WaitForNotifyEvent)(
  3378. ISpEventSource *This,
  3379. DWORD dwMilliseconds);
  3380. HANDLE (STDMETHODCALLTYPE *GetNotifyEventHandle)(
  3381. ISpEventSource *This);
  3382. /*** ISpEventSource methods ***/
  3383. HRESULT (STDMETHODCALLTYPE *SetInterest)(
  3384. ISpEventSource *This,
  3385. ULONGLONG ullEventInterest,
  3386. ULONGLONG ullQueuedInterest);
  3387. HRESULT (STDMETHODCALLTYPE *GetEvents)(
  3388. ISpEventSource *This,
  3389. ULONG ulCount,
  3390. SPEVENT *pEventArray,
  3391. ULONG *pulFetched);
  3392. HRESULT (STDMETHODCALLTYPE *GetInfo)(
  3393. ISpEventSource *This,
  3394. SPEVENTSOURCEINFO *pInfo);
  3395. END_INTERFACE
  3396. } ISpEventSourceVtbl;
  3397. interface ISpEventSource {
  3398. CONST_VTBL ISpEventSourceVtbl* lpVtbl;
  3399. };
  3400. #ifdef COBJMACROS
  3401. #ifndef WIDL_C_INLINE_WRAPPERS
  3402. /*** IUnknown methods ***/
  3403. #define ISpEventSource_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  3404. #define ISpEventSource_AddRef(This) (This)->lpVtbl->AddRef(This)
  3405. #define ISpEventSource_Release(This) (This)->lpVtbl->Release(This)
  3406. /*** ISpNotifySource methods ***/
  3407. #define ISpEventSource_SetNotifySink(This,pNotifySink) (This)->lpVtbl->SetNotifySink(This,pNotifySink)
  3408. #define ISpEventSource_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) (This)->lpVtbl->SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  3409. #define ISpEventSource_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) (This)->lpVtbl->SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  3410. #define ISpEventSource_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) (This)->lpVtbl->SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  3411. #define ISpEventSource_SetNotifyWin32Event(This) (This)->lpVtbl->SetNotifyWin32Event(This)
  3412. #define ISpEventSource_WaitForNotifyEvent(This,dwMilliseconds) (This)->lpVtbl->WaitForNotifyEvent(This,dwMilliseconds)
  3413. #define ISpEventSource_GetNotifyEventHandle(This) (This)->lpVtbl->GetNotifyEventHandle(This)
  3414. /*** ISpEventSource methods ***/
  3415. #define ISpEventSource_SetInterest(This,ullEventInterest,ullQueuedInterest) (This)->lpVtbl->SetInterest(This,ullEventInterest,ullQueuedInterest)
  3416. #define ISpEventSource_GetEvents(This,ulCount,pEventArray,pulFetched) (This)->lpVtbl->GetEvents(This,ulCount,pEventArray,pulFetched)
  3417. #define ISpEventSource_GetInfo(This,pInfo) (This)->lpVtbl->GetInfo(This,pInfo)
  3418. #else
  3419. /*** IUnknown methods ***/
  3420. static FORCEINLINE HRESULT ISpEventSource_QueryInterface(ISpEventSource* This,REFIID riid,void **ppvObject) {
  3421. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  3422. }
  3423. static FORCEINLINE ULONG ISpEventSource_AddRef(ISpEventSource* This) {
  3424. return This->lpVtbl->AddRef(This);
  3425. }
  3426. static FORCEINLINE ULONG ISpEventSource_Release(ISpEventSource* This) {
  3427. return This->lpVtbl->Release(This);
  3428. }
  3429. /*** ISpNotifySource methods ***/
  3430. static FORCEINLINE HRESULT ISpEventSource_SetNotifySink(ISpEventSource* This,ISpNotifySink *pNotifySink) {
  3431. return This->lpVtbl->SetNotifySink(This,pNotifySink);
  3432. }
  3433. static FORCEINLINE HRESULT ISpEventSource_SetNotifyWindowMessage(ISpEventSource* This,HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) {
  3434. return This->lpVtbl->SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam);
  3435. }
  3436. static FORCEINLINE HRESULT ISpEventSource_SetNotifyCallbackFunction(ISpEventSource* This,SPNOTIFYCALLBACK *pfnCallback,WPARAM wParam,LPARAM lParam) {
  3437. return This->lpVtbl->SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam);
  3438. }
  3439. static FORCEINLINE HRESULT ISpEventSource_SetNotifyCallbackInterface(ISpEventSource* This,ISpNotifyCallback *pSpCallback,WPARAM wParam,LPARAM lParam) {
  3440. return This->lpVtbl->SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam);
  3441. }
  3442. static FORCEINLINE HRESULT ISpEventSource_SetNotifyWin32Event(ISpEventSource* This) {
  3443. return This->lpVtbl->SetNotifyWin32Event(This);
  3444. }
  3445. static FORCEINLINE HRESULT ISpEventSource_WaitForNotifyEvent(ISpEventSource* This,DWORD dwMilliseconds) {
  3446. return This->lpVtbl->WaitForNotifyEvent(This,dwMilliseconds);
  3447. }
  3448. static FORCEINLINE HANDLE ISpEventSource_GetNotifyEventHandle(ISpEventSource* This) {
  3449. return This->lpVtbl->GetNotifyEventHandle(This);
  3450. }
  3451. /*** ISpEventSource methods ***/
  3452. static FORCEINLINE HRESULT ISpEventSource_SetInterest(ISpEventSource* This,ULONGLONG ullEventInterest,ULONGLONG ullQueuedInterest) {
  3453. return This->lpVtbl->SetInterest(This,ullEventInterest,ullQueuedInterest);
  3454. }
  3455. static FORCEINLINE HRESULT ISpEventSource_GetEvents(ISpEventSource* This,ULONG ulCount,SPEVENT *pEventArray,ULONG *pulFetched) {
  3456. return This->lpVtbl->GetEvents(This,ulCount,pEventArray,pulFetched);
  3457. }
  3458. static FORCEINLINE HRESULT ISpEventSource_GetInfo(ISpEventSource* This,SPEVENTSOURCEINFO *pInfo) {
  3459. return This->lpVtbl->GetInfo(This,pInfo);
  3460. }
  3461. #endif
  3462. #endif
  3463. #endif
  3464. #endif /* __ISpEventSource_INTERFACE_DEFINED__ */
  3465. /*****************************************************************************
  3466. * ISpEventSource2 interface
  3467. */
  3468. #ifndef __ISpEventSource2_INTERFACE_DEFINED__
  3469. #define __ISpEventSource2_INTERFACE_DEFINED__
  3470. DEFINE_GUID(IID_ISpEventSource2, 0x2373a435, 0x6a4b, 0x429e, 0xa6,0xac, 0xd4,0x23,0x1a,0x61,0x97,0x5b);
  3471. #if defined(__cplusplus) && !defined(CINTERFACE)
  3472. MIDL_INTERFACE("2373a435-6a4b-429e-a6ac-d4231a61975b")
  3473. ISpEventSource2 : public ISpEventSource
  3474. {
  3475. virtual HRESULT STDMETHODCALLTYPE GetEventsEx(
  3476. ULONG ulCount,
  3477. SPEVENTEX *pEventArray,
  3478. ULONG *pulFetched) = 0;
  3479. };
  3480. #ifdef __CRT_UUID_DECL
  3481. __CRT_UUID_DECL(ISpEventSource2, 0x2373a435, 0x6a4b, 0x429e, 0xa6,0xac, 0xd4,0x23,0x1a,0x61,0x97,0x5b)
  3482. #endif
  3483. #else
  3484. typedef struct ISpEventSource2Vtbl {
  3485. BEGIN_INTERFACE
  3486. /*** IUnknown methods ***/
  3487. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  3488. ISpEventSource2 *This,
  3489. REFIID riid,
  3490. void **ppvObject);
  3491. ULONG (STDMETHODCALLTYPE *AddRef)(
  3492. ISpEventSource2 *This);
  3493. ULONG (STDMETHODCALLTYPE *Release)(
  3494. ISpEventSource2 *This);
  3495. /*** ISpNotifySource methods ***/
  3496. HRESULT (STDMETHODCALLTYPE *SetNotifySink)(
  3497. ISpEventSource2 *This,
  3498. ISpNotifySink *pNotifySink);
  3499. HRESULT (STDMETHODCALLTYPE *SetNotifyWindowMessage)(
  3500. ISpEventSource2 *This,
  3501. HWND hWnd,
  3502. UINT Msg,
  3503. WPARAM wParam,
  3504. LPARAM lParam);
  3505. HRESULT (STDMETHODCALLTYPE *SetNotifyCallbackFunction)(
  3506. ISpEventSource2 *This,
  3507. SPNOTIFYCALLBACK *pfnCallback,
  3508. WPARAM wParam,
  3509. LPARAM lParam);
  3510. HRESULT (STDMETHODCALLTYPE *SetNotifyCallbackInterface)(
  3511. ISpEventSource2 *This,
  3512. ISpNotifyCallback *pSpCallback,
  3513. WPARAM wParam,
  3514. LPARAM lParam);
  3515. HRESULT (STDMETHODCALLTYPE *SetNotifyWin32Event)(
  3516. ISpEventSource2 *This);
  3517. HRESULT (STDMETHODCALLTYPE *WaitForNotifyEvent)(
  3518. ISpEventSource2 *This,
  3519. DWORD dwMilliseconds);
  3520. HANDLE (STDMETHODCALLTYPE *GetNotifyEventHandle)(
  3521. ISpEventSource2 *This);
  3522. /*** ISpEventSource methods ***/
  3523. HRESULT (STDMETHODCALLTYPE *SetInterest)(
  3524. ISpEventSource2 *This,
  3525. ULONGLONG ullEventInterest,
  3526. ULONGLONG ullQueuedInterest);
  3527. HRESULT (STDMETHODCALLTYPE *GetEvents)(
  3528. ISpEventSource2 *This,
  3529. ULONG ulCount,
  3530. SPEVENT *pEventArray,
  3531. ULONG *pulFetched);
  3532. HRESULT (STDMETHODCALLTYPE *GetInfo)(
  3533. ISpEventSource2 *This,
  3534. SPEVENTSOURCEINFO *pInfo);
  3535. /*** ISpEventSource2 methods ***/
  3536. HRESULT (STDMETHODCALLTYPE *GetEventsEx)(
  3537. ISpEventSource2 *This,
  3538. ULONG ulCount,
  3539. SPEVENTEX *pEventArray,
  3540. ULONG *pulFetched);
  3541. END_INTERFACE
  3542. } ISpEventSource2Vtbl;
  3543. interface ISpEventSource2 {
  3544. CONST_VTBL ISpEventSource2Vtbl* lpVtbl;
  3545. };
  3546. #ifdef COBJMACROS
  3547. #ifndef WIDL_C_INLINE_WRAPPERS
  3548. /*** IUnknown methods ***/
  3549. #define ISpEventSource2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  3550. #define ISpEventSource2_AddRef(This) (This)->lpVtbl->AddRef(This)
  3551. #define ISpEventSource2_Release(This) (This)->lpVtbl->Release(This)
  3552. /*** ISpNotifySource methods ***/
  3553. #define ISpEventSource2_SetNotifySink(This,pNotifySink) (This)->lpVtbl->SetNotifySink(This,pNotifySink)
  3554. #define ISpEventSource2_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) (This)->lpVtbl->SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  3555. #define ISpEventSource2_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) (This)->lpVtbl->SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  3556. #define ISpEventSource2_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) (This)->lpVtbl->SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  3557. #define ISpEventSource2_SetNotifyWin32Event(This) (This)->lpVtbl->SetNotifyWin32Event(This)
  3558. #define ISpEventSource2_WaitForNotifyEvent(This,dwMilliseconds) (This)->lpVtbl->WaitForNotifyEvent(This,dwMilliseconds)
  3559. #define ISpEventSource2_GetNotifyEventHandle(This) (This)->lpVtbl->GetNotifyEventHandle(This)
  3560. /*** ISpEventSource methods ***/
  3561. #define ISpEventSource2_SetInterest(This,ullEventInterest,ullQueuedInterest) (This)->lpVtbl->SetInterest(This,ullEventInterest,ullQueuedInterest)
  3562. #define ISpEventSource2_GetEvents(This,ulCount,pEventArray,pulFetched) (This)->lpVtbl->GetEvents(This,ulCount,pEventArray,pulFetched)
  3563. #define ISpEventSource2_GetInfo(This,pInfo) (This)->lpVtbl->GetInfo(This,pInfo)
  3564. /*** ISpEventSource2 methods ***/
  3565. #define ISpEventSource2_GetEventsEx(This,ulCount,pEventArray,pulFetched) (This)->lpVtbl->GetEventsEx(This,ulCount,pEventArray,pulFetched)
  3566. #else
  3567. /*** IUnknown methods ***/
  3568. static FORCEINLINE HRESULT ISpEventSource2_QueryInterface(ISpEventSource2* This,REFIID riid,void **ppvObject) {
  3569. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  3570. }
  3571. static FORCEINLINE ULONG ISpEventSource2_AddRef(ISpEventSource2* This) {
  3572. return This->lpVtbl->AddRef(This);
  3573. }
  3574. static FORCEINLINE ULONG ISpEventSource2_Release(ISpEventSource2* This) {
  3575. return This->lpVtbl->Release(This);
  3576. }
  3577. /*** ISpNotifySource methods ***/
  3578. static FORCEINLINE HRESULT ISpEventSource2_SetNotifySink(ISpEventSource2* This,ISpNotifySink *pNotifySink) {
  3579. return This->lpVtbl->SetNotifySink(This,pNotifySink);
  3580. }
  3581. static FORCEINLINE HRESULT ISpEventSource2_SetNotifyWindowMessage(ISpEventSource2* This,HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) {
  3582. return This->lpVtbl->SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam);
  3583. }
  3584. static FORCEINLINE HRESULT ISpEventSource2_SetNotifyCallbackFunction(ISpEventSource2* This,SPNOTIFYCALLBACK *pfnCallback,WPARAM wParam,LPARAM lParam) {
  3585. return This->lpVtbl->SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam);
  3586. }
  3587. static FORCEINLINE HRESULT ISpEventSource2_SetNotifyCallbackInterface(ISpEventSource2* This,ISpNotifyCallback *pSpCallback,WPARAM wParam,LPARAM lParam) {
  3588. return This->lpVtbl->SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam);
  3589. }
  3590. static FORCEINLINE HRESULT ISpEventSource2_SetNotifyWin32Event(ISpEventSource2* This) {
  3591. return This->lpVtbl->SetNotifyWin32Event(This);
  3592. }
  3593. static FORCEINLINE HRESULT ISpEventSource2_WaitForNotifyEvent(ISpEventSource2* This,DWORD dwMilliseconds) {
  3594. return This->lpVtbl->WaitForNotifyEvent(This,dwMilliseconds);
  3595. }
  3596. static FORCEINLINE HANDLE ISpEventSource2_GetNotifyEventHandle(ISpEventSource2* This) {
  3597. return This->lpVtbl->GetNotifyEventHandle(This);
  3598. }
  3599. /*** ISpEventSource methods ***/
  3600. static FORCEINLINE HRESULT ISpEventSource2_SetInterest(ISpEventSource2* This,ULONGLONG ullEventInterest,ULONGLONG ullQueuedInterest) {
  3601. return This->lpVtbl->SetInterest(This,ullEventInterest,ullQueuedInterest);
  3602. }
  3603. static FORCEINLINE HRESULT ISpEventSource2_GetEvents(ISpEventSource2* This,ULONG ulCount,SPEVENT *pEventArray,ULONG *pulFetched) {
  3604. return This->lpVtbl->GetEvents(This,ulCount,pEventArray,pulFetched);
  3605. }
  3606. static FORCEINLINE HRESULT ISpEventSource2_GetInfo(ISpEventSource2* This,SPEVENTSOURCEINFO *pInfo) {
  3607. return This->lpVtbl->GetInfo(This,pInfo);
  3608. }
  3609. /*** ISpEventSource2 methods ***/
  3610. static FORCEINLINE HRESULT ISpEventSource2_GetEventsEx(ISpEventSource2* This,ULONG ulCount,SPEVENTEX *pEventArray,ULONG *pulFetched) {
  3611. return This->lpVtbl->GetEventsEx(This,ulCount,pEventArray,pulFetched);
  3612. }
  3613. #endif
  3614. #endif
  3615. #endif
  3616. #endif /* __ISpEventSource2_INTERFACE_DEFINED__ */
  3617. /*****************************************************************************
  3618. * ISpEventSink interface
  3619. */
  3620. #ifndef __ISpEventSink_INTERFACE_DEFINED__
  3621. #define __ISpEventSink_INTERFACE_DEFINED__
  3622. DEFINE_GUID(IID_ISpEventSink, 0xbe7a9cc9, 0x5f9e, 0x11d2, 0x96,0x0f, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  3623. #if defined(__cplusplus) && !defined(CINTERFACE)
  3624. MIDL_INTERFACE("be7a9cc9-5f9e-11d2-960f-00c04f8ee628")
  3625. ISpEventSink : public IUnknown
  3626. {
  3627. virtual HRESULT STDMETHODCALLTYPE AddEvents(
  3628. const SPEVENT *pEventArray,
  3629. ULONG ulCount) = 0;
  3630. virtual HRESULT STDMETHODCALLTYPE GetEventInterest(
  3631. ULONGLONG *pullEventInterest) = 0;
  3632. };
  3633. #ifdef __CRT_UUID_DECL
  3634. __CRT_UUID_DECL(ISpEventSink, 0xbe7a9cc9, 0x5f9e, 0x11d2, 0x96,0x0f, 0x00,0xc0,0x4f,0x8e,0xe6,0x28)
  3635. #endif
  3636. #else
  3637. typedef struct ISpEventSinkVtbl {
  3638. BEGIN_INTERFACE
  3639. /*** IUnknown methods ***/
  3640. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  3641. ISpEventSink *This,
  3642. REFIID riid,
  3643. void **ppvObject);
  3644. ULONG (STDMETHODCALLTYPE *AddRef)(
  3645. ISpEventSink *This);
  3646. ULONG (STDMETHODCALLTYPE *Release)(
  3647. ISpEventSink *This);
  3648. /*** ISpEventSink methods ***/
  3649. HRESULT (STDMETHODCALLTYPE *AddEvents)(
  3650. ISpEventSink *This,
  3651. const SPEVENT *pEventArray,
  3652. ULONG ulCount);
  3653. HRESULT (STDMETHODCALLTYPE *GetEventInterest)(
  3654. ISpEventSink *This,
  3655. ULONGLONG *pullEventInterest);
  3656. END_INTERFACE
  3657. } ISpEventSinkVtbl;
  3658. interface ISpEventSink {
  3659. CONST_VTBL ISpEventSinkVtbl* lpVtbl;
  3660. };
  3661. #ifdef COBJMACROS
  3662. #ifndef WIDL_C_INLINE_WRAPPERS
  3663. /*** IUnknown methods ***/
  3664. #define ISpEventSink_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  3665. #define ISpEventSink_AddRef(This) (This)->lpVtbl->AddRef(This)
  3666. #define ISpEventSink_Release(This) (This)->lpVtbl->Release(This)
  3667. /*** ISpEventSink methods ***/
  3668. #define ISpEventSink_AddEvents(This,pEventArray,ulCount) (This)->lpVtbl->AddEvents(This,pEventArray,ulCount)
  3669. #define ISpEventSink_GetEventInterest(This,pullEventInterest) (This)->lpVtbl->GetEventInterest(This,pullEventInterest)
  3670. #else
  3671. /*** IUnknown methods ***/
  3672. static FORCEINLINE HRESULT ISpEventSink_QueryInterface(ISpEventSink* This,REFIID riid,void **ppvObject) {
  3673. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  3674. }
  3675. static FORCEINLINE ULONG ISpEventSink_AddRef(ISpEventSink* This) {
  3676. return This->lpVtbl->AddRef(This);
  3677. }
  3678. static FORCEINLINE ULONG ISpEventSink_Release(ISpEventSink* This) {
  3679. return This->lpVtbl->Release(This);
  3680. }
  3681. /*** ISpEventSink methods ***/
  3682. static FORCEINLINE HRESULT ISpEventSink_AddEvents(ISpEventSink* This,const SPEVENT *pEventArray,ULONG ulCount) {
  3683. return This->lpVtbl->AddEvents(This,pEventArray,ulCount);
  3684. }
  3685. static FORCEINLINE HRESULT ISpEventSink_GetEventInterest(ISpEventSink* This,ULONGLONG *pullEventInterest) {
  3686. return This->lpVtbl->GetEventInterest(This,pullEventInterest);
  3687. }
  3688. #endif
  3689. #endif
  3690. #endif
  3691. #endif /* __ISpEventSink_INTERFACE_DEFINED__ */
  3692. /*****************************************************************************
  3693. * ISpStreamFormat interface
  3694. */
  3695. #ifndef __ISpStreamFormat_INTERFACE_DEFINED__
  3696. #define __ISpStreamFormat_INTERFACE_DEFINED__
  3697. DEFINE_GUID(IID_ISpStreamFormat, 0xbed530be, 0x2606, 0x4f4d, 0xa1,0xc0, 0x54,0xc5,0xcd,0xa5,0x56,0x6f);
  3698. #if defined(__cplusplus) && !defined(CINTERFACE)
  3699. MIDL_INTERFACE("bed530be-2606-4f4d-a1c0-54c5cda5566f")
  3700. ISpStreamFormat : public IStream
  3701. {
  3702. virtual HRESULT STDMETHODCALLTYPE GetFormat(
  3703. GUID *pguidFormatId,
  3704. WAVEFORMATEX **ppCoMemWaveFormatEx) = 0;
  3705. };
  3706. #ifdef __CRT_UUID_DECL
  3707. __CRT_UUID_DECL(ISpStreamFormat, 0xbed530be, 0x2606, 0x4f4d, 0xa1,0xc0, 0x54,0xc5,0xcd,0xa5,0x56,0x6f)
  3708. #endif
  3709. #else
  3710. typedef struct ISpStreamFormatVtbl {
  3711. BEGIN_INTERFACE
  3712. /*** IUnknown methods ***/
  3713. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  3714. ISpStreamFormat *This,
  3715. REFIID riid,
  3716. void **ppvObject);
  3717. ULONG (STDMETHODCALLTYPE *AddRef)(
  3718. ISpStreamFormat *This);
  3719. ULONG (STDMETHODCALLTYPE *Release)(
  3720. ISpStreamFormat *This);
  3721. /*** ISequentialStream methods ***/
  3722. HRESULT (STDMETHODCALLTYPE *Read)(
  3723. ISpStreamFormat *This,
  3724. void *pv,
  3725. ULONG cb,
  3726. ULONG *pcbRead);
  3727. HRESULT (STDMETHODCALLTYPE *Write)(
  3728. ISpStreamFormat *This,
  3729. const void *pv,
  3730. ULONG cb,
  3731. ULONG *pcbWritten);
  3732. /*** IStream methods ***/
  3733. HRESULT (STDMETHODCALLTYPE *Seek)(
  3734. ISpStreamFormat *This,
  3735. LARGE_INTEGER dlibMove,
  3736. DWORD dwOrigin,
  3737. ULARGE_INTEGER *plibNewPosition);
  3738. HRESULT (STDMETHODCALLTYPE *SetSize)(
  3739. ISpStreamFormat *This,
  3740. ULARGE_INTEGER libNewSize);
  3741. HRESULT (STDMETHODCALLTYPE *CopyTo)(
  3742. ISpStreamFormat *This,
  3743. IStream *pstm,
  3744. ULARGE_INTEGER cb,
  3745. ULARGE_INTEGER *pcbRead,
  3746. ULARGE_INTEGER *pcbWritten);
  3747. HRESULT (STDMETHODCALLTYPE *Commit)(
  3748. ISpStreamFormat *This,
  3749. DWORD grfCommitFlags);
  3750. HRESULT (STDMETHODCALLTYPE *Revert)(
  3751. ISpStreamFormat *This);
  3752. HRESULT (STDMETHODCALLTYPE *LockRegion)(
  3753. ISpStreamFormat *This,
  3754. ULARGE_INTEGER libOffset,
  3755. ULARGE_INTEGER cb,
  3756. DWORD dwLockType);
  3757. HRESULT (STDMETHODCALLTYPE *UnlockRegion)(
  3758. ISpStreamFormat *This,
  3759. ULARGE_INTEGER libOffset,
  3760. ULARGE_INTEGER cb,
  3761. DWORD dwLockType);
  3762. HRESULT (STDMETHODCALLTYPE *Stat)(
  3763. ISpStreamFormat *This,
  3764. STATSTG *pstatstg,
  3765. DWORD grfStatFlag);
  3766. HRESULT (STDMETHODCALLTYPE *Clone)(
  3767. ISpStreamFormat *This,
  3768. IStream **ppstm);
  3769. /*** ISpStreamFormat methods ***/
  3770. HRESULT (STDMETHODCALLTYPE *GetFormat)(
  3771. ISpStreamFormat *This,
  3772. GUID *pguidFormatId,
  3773. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3774. END_INTERFACE
  3775. } ISpStreamFormatVtbl;
  3776. interface ISpStreamFormat {
  3777. CONST_VTBL ISpStreamFormatVtbl* lpVtbl;
  3778. };
  3779. #ifdef COBJMACROS
  3780. #ifndef WIDL_C_INLINE_WRAPPERS
  3781. /*** IUnknown methods ***/
  3782. #define ISpStreamFormat_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  3783. #define ISpStreamFormat_AddRef(This) (This)->lpVtbl->AddRef(This)
  3784. #define ISpStreamFormat_Release(This) (This)->lpVtbl->Release(This)
  3785. /*** ISequentialStream methods ***/
  3786. #define ISpStreamFormat_Read(This,pv,cb,pcbRead) (This)->lpVtbl->Read(This,pv,cb,pcbRead)
  3787. #define ISpStreamFormat_Write(This,pv,cb,pcbWritten) (This)->lpVtbl->Write(This,pv,cb,pcbWritten)
  3788. /*** IStream methods ***/
  3789. #define ISpStreamFormat_Seek(This,dlibMove,dwOrigin,plibNewPosition) (This)->lpVtbl->Seek(This,dlibMove,dwOrigin,plibNewPosition)
  3790. #define ISpStreamFormat_SetSize(This,libNewSize) (This)->lpVtbl->SetSize(This,libNewSize)
  3791. #define ISpStreamFormat_CopyTo(This,pstm,cb,pcbRead,pcbWritten) (This)->lpVtbl->CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  3792. #define ISpStreamFormat_Commit(This,grfCommitFlags) (This)->lpVtbl->Commit(This,grfCommitFlags)
  3793. #define ISpStreamFormat_Revert(This) (This)->lpVtbl->Revert(This)
  3794. #define ISpStreamFormat_LockRegion(This,libOffset,cb,dwLockType) (This)->lpVtbl->LockRegion(This,libOffset,cb,dwLockType)
  3795. #define ISpStreamFormat_UnlockRegion(This,libOffset,cb,dwLockType) (This)->lpVtbl->UnlockRegion(This,libOffset,cb,dwLockType)
  3796. #define ISpStreamFormat_Stat(This,pstatstg,grfStatFlag) (This)->lpVtbl->Stat(This,pstatstg,grfStatFlag)
  3797. #define ISpStreamFormat_Clone(This,ppstm) (This)->lpVtbl->Clone(This,ppstm)
  3798. /*** ISpStreamFormat methods ***/
  3799. #define ISpStreamFormat_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) (This)->lpVtbl->GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  3800. #else
  3801. /*** IUnknown methods ***/
  3802. static FORCEINLINE HRESULT ISpStreamFormat_QueryInterface(ISpStreamFormat* This,REFIID riid,void **ppvObject) {
  3803. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  3804. }
  3805. static FORCEINLINE ULONG ISpStreamFormat_AddRef(ISpStreamFormat* This) {
  3806. return This->lpVtbl->AddRef(This);
  3807. }
  3808. static FORCEINLINE ULONG ISpStreamFormat_Release(ISpStreamFormat* This) {
  3809. return This->lpVtbl->Release(This);
  3810. }
  3811. /*** ISequentialStream methods ***/
  3812. static FORCEINLINE HRESULT ISpStreamFormat_Read(ISpStreamFormat* This,void *pv,ULONG cb,ULONG *pcbRead) {
  3813. return This->lpVtbl->Read(This,pv,cb,pcbRead);
  3814. }
  3815. static FORCEINLINE HRESULT ISpStreamFormat_Write(ISpStreamFormat* This,const void *pv,ULONG cb,ULONG *pcbWritten) {
  3816. return This->lpVtbl->Write(This,pv,cb,pcbWritten);
  3817. }
  3818. /*** IStream methods ***/
  3819. static FORCEINLINE HRESULT ISpStreamFormat_Seek(ISpStreamFormat* This,LARGE_INTEGER dlibMove,DWORD dwOrigin,ULARGE_INTEGER *plibNewPosition) {
  3820. return This->lpVtbl->Seek(This,dlibMove,dwOrigin,plibNewPosition);
  3821. }
  3822. static FORCEINLINE HRESULT ISpStreamFormat_SetSize(ISpStreamFormat* This,ULARGE_INTEGER libNewSize) {
  3823. return This->lpVtbl->SetSize(This,libNewSize);
  3824. }
  3825. static FORCEINLINE HRESULT ISpStreamFormat_CopyTo(ISpStreamFormat* This,IStream *pstm,ULARGE_INTEGER cb,ULARGE_INTEGER *pcbRead,ULARGE_INTEGER *pcbWritten) {
  3826. return This->lpVtbl->CopyTo(This,pstm,cb,pcbRead,pcbWritten);
  3827. }
  3828. static FORCEINLINE HRESULT ISpStreamFormat_Commit(ISpStreamFormat* This,DWORD grfCommitFlags) {
  3829. return This->lpVtbl->Commit(This,grfCommitFlags);
  3830. }
  3831. static FORCEINLINE HRESULT ISpStreamFormat_Revert(ISpStreamFormat* This) {
  3832. return This->lpVtbl->Revert(This);
  3833. }
  3834. static FORCEINLINE HRESULT ISpStreamFormat_LockRegion(ISpStreamFormat* This,ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType) {
  3835. return This->lpVtbl->LockRegion(This,libOffset,cb,dwLockType);
  3836. }
  3837. static FORCEINLINE HRESULT ISpStreamFormat_UnlockRegion(ISpStreamFormat* This,ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType) {
  3838. return This->lpVtbl->UnlockRegion(This,libOffset,cb,dwLockType);
  3839. }
  3840. static FORCEINLINE HRESULT ISpStreamFormat_Stat(ISpStreamFormat* This,STATSTG *pstatstg,DWORD grfStatFlag) {
  3841. return This->lpVtbl->Stat(This,pstatstg,grfStatFlag);
  3842. }
  3843. static FORCEINLINE HRESULT ISpStreamFormat_Clone(ISpStreamFormat* This,IStream **ppstm) {
  3844. return This->lpVtbl->Clone(This,ppstm);
  3845. }
  3846. /*** ISpStreamFormat methods ***/
  3847. static FORCEINLINE HRESULT ISpStreamFormat_GetFormat(ISpStreamFormat* This,GUID *pguidFormatId,WAVEFORMATEX **ppCoMemWaveFormatEx) {
  3848. return This->lpVtbl->GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx);
  3849. }
  3850. #endif
  3851. #endif
  3852. #endif
  3853. #endif /* __ISpStreamFormat_INTERFACE_DEFINED__ */
  3854. /*****************************************************************************
  3855. * ISpStream interface
  3856. */
  3857. #ifndef __ISpStream_INTERFACE_DEFINED__
  3858. #define __ISpStream_INTERFACE_DEFINED__
  3859. DEFINE_GUID(IID_ISpStream, 0x12e3cca9, 0x7518, 0x44c5, 0xa5,0xe7, 0xba,0x5a,0x79,0xcb,0x92,0x9e);
  3860. #if defined(__cplusplus) && !defined(CINTERFACE)
  3861. MIDL_INTERFACE("12e3cca9-7518-44c5-a5e7-ba5a79cb929e")
  3862. ISpStream : public ISpStreamFormat
  3863. {
  3864. virtual HRESULT STDMETHODCALLTYPE SetBaseStream(
  3865. IStream *pStream,
  3866. REFGUID rguidFormat,
  3867. const WAVEFORMATEX *pWaveFormatEx) = 0;
  3868. virtual HRESULT STDMETHODCALLTYPE GetBaseStream(
  3869. IStream **ppStream) = 0;
  3870. virtual HRESULT STDMETHODCALLTYPE BindToFile(
  3871. LPCWSTR pszFileName,
  3872. SPFILEMODE eMode,
  3873. const GUID *pFormatId,
  3874. const WAVEFORMATEX *pWaveFormatEx,
  3875. ULONGLONG ullEventInterest) = 0;
  3876. virtual HRESULT STDMETHODCALLTYPE Close(
  3877. ) = 0;
  3878. };
  3879. #ifdef __CRT_UUID_DECL
  3880. __CRT_UUID_DECL(ISpStream, 0x12e3cca9, 0x7518, 0x44c5, 0xa5,0xe7, 0xba,0x5a,0x79,0xcb,0x92,0x9e)
  3881. #endif
  3882. #else
  3883. typedef struct ISpStreamVtbl {
  3884. BEGIN_INTERFACE
  3885. /*** IUnknown methods ***/
  3886. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  3887. ISpStream *This,
  3888. REFIID riid,
  3889. void **ppvObject);
  3890. ULONG (STDMETHODCALLTYPE *AddRef)(
  3891. ISpStream *This);
  3892. ULONG (STDMETHODCALLTYPE *Release)(
  3893. ISpStream *This);
  3894. /*** ISequentialStream methods ***/
  3895. HRESULT (STDMETHODCALLTYPE *Read)(
  3896. ISpStream *This,
  3897. void *pv,
  3898. ULONG cb,
  3899. ULONG *pcbRead);
  3900. HRESULT (STDMETHODCALLTYPE *Write)(
  3901. ISpStream *This,
  3902. const void *pv,
  3903. ULONG cb,
  3904. ULONG *pcbWritten);
  3905. /*** IStream methods ***/
  3906. HRESULT (STDMETHODCALLTYPE *Seek)(
  3907. ISpStream *This,
  3908. LARGE_INTEGER dlibMove,
  3909. DWORD dwOrigin,
  3910. ULARGE_INTEGER *plibNewPosition);
  3911. HRESULT (STDMETHODCALLTYPE *SetSize)(
  3912. ISpStream *This,
  3913. ULARGE_INTEGER libNewSize);
  3914. HRESULT (STDMETHODCALLTYPE *CopyTo)(
  3915. ISpStream *This,
  3916. IStream *pstm,
  3917. ULARGE_INTEGER cb,
  3918. ULARGE_INTEGER *pcbRead,
  3919. ULARGE_INTEGER *pcbWritten);
  3920. HRESULT (STDMETHODCALLTYPE *Commit)(
  3921. ISpStream *This,
  3922. DWORD grfCommitFlags);
  3923. HRESULT (STDMETHODCALLTYPE *Revert)(
  3924. ISpStream *This);
  3925. HRESULT (STDMETHODCALLTYPE *LockRegion)(
  3926. ISpStream *This,
  3927. ULARGE_INTEGER libOffset,
  3928. ULARGE_INTEGER cb,
  3929. DWORD dwLockType);
  3930. HRESULT (STDMETHODCALLTYPE *UnlockRegion)(
  3931. ISpStream *This,
  3932. ULARGE_INTEGER libOffset,
  3933. ULARGE_INTEGER cb,
  3934. DWORD dwLockType);
  3935. HRESULT (STDMETHODCALLTYPE *Stat)(
  3936. ISpStream *This,
  3937. STATSTG *pstatstg,
  3938. DWORD grfStatFlag);
  3939. HRESULT (STDMETHODCALLTYPE *Clone)(
  3940. ISpStream *This,
  3941. IStream **ppstm);
  3942. /*** ISpStreamFormat methods ***/
  3943. HRESULT (STDMETHODCALLTYPE *GetFormat)(
  3944. ISpStream *This,
  3945. GUID *pguidFormatId,
  3946. WAVEFORMATEX **ppCoMemWaveFormatEx);
  3947. /*** ISpStream methods ***/
  3948. HRESULT (STDMETHODCALLTYPE *SetBaseStream)(
  3949. ISpStream *This,
  3950. IStream *pStream,
  3951. REFGUID rguidFormat,
  3952. const WAVEFORMATEX *pWaveFormatEx);
  3953. HRESULT (STDMETHODCALLTYPE *GetBaseStream)(
  3954. ISpStream *This,
  3955. IStream **ppStream);
  3956. HRESULT (STDMETHODCALLTYPE *BindToFile)(
  3957. ISpStream *This,
  3958. LPCWSTR pszFileName,
  3959. SPFILEMODE eMode,
  3960. const GUID *pFormatId,
  3961. const WAVEFORMATEX *pWaveFormatEx,
  3962. ULONGLONG ullEventInterest);
  3963. HRESULT (STDMETHODCALLTYPE *Close)(
  3964. ISpStream *This);
  3965. END_INTERFACE
  3966. } ISpStreamVtbl;
  3967. interface ISpStream {
  3968. CONST_VTBL ISpStreamVtbl* lpVtbl;
  3969. };
  3970. #ifdef COBJMACROS
  3971. #ifndef WIDL_C_INLINE_WRAPPERS
  3972. /*** IUnknown methods ***/
  3973. #define ISpStream_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  3974. #define ISpStream_AddRef(This) (This)->lpVtbl->AddRef(This)
  3975. #define ISpStream_Release(This) (This)->lpVtbl->Release(This)
  3976. /*** ISequentialStream methods ***/
  3977. #define ISpStream_Read(This,pv,cb,pcbRead) (This)->lpVtbl->Read(This,pv,cb,pcbRead)
  3978. #define ISpStream_Write(This,pv,cb,pcbWritten) (This)->lpVtbl->Write(This,pv,cb,pcbWritten)
  3979. /*** IStream methods ***/
  3980. #define ISpStream_Seek(This,dlibMove,dwOrigin,plibNewPosition) (This)->lpVtbl->Seek(This,dlibMove,dwOrigin,plibNewPosition)
  3981. #define ISpStream_SetSize(This,libNewSize) (This)->lpVtbl->SetSize(This,libNewSize)
  3982. #define ISpStream_CopyTo(This,pstm,cb,pcbRead,pcbWritten) (This)->lpVtbl->CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  3983. #define ISpStream_Commit(This,grfCommitFlags) (This)->lpVtbl->Commit(This,grfCommitFlags)
  3984. #define ISpStream_Revert(This) (This)->lpVtbl->Revert(This)
  3985. #define ISpStream_LockRegion(This,libOffset,cb,dwLockType) (This)->lpVtbl->LockRegion(This,libOffset,cb,dwLockType)
  3986. #define ISpStream_UnlockRegion(This,libOffset,cb,dwLockType) (This)->lpVtbl->UnlockRegion(This,libOffset,cb,dwLockType)
  3987. #define ISpStream_Stat(This,pstatstg,grfStatFlag) (This)->lpVtbl->Stat(This,pstatstg,grfStatFlag)
  3988. #define ISpStream_Clone(This,ppstm) (This)->lpVtbl->Clone(This,ppstm)
  3989. /*** ISpStreamFormat methods ***/
  3990. #define ISpStream_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) (This)->lpVtbl->GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  3991. /*** ISpStream methods ***/
  3992. #define ISpStream_SetBaseStream(This,pStream,rguidFormat,pWaveFormatEx) (This)->lpVtbl->SetBaseStream(This,pStream,rguidFormat,pWaveFormatEx)
  3993. #define ISpStream_GetBaseStream(This,ppStream) (This)->lpVtbl->GetBaseStream(This,ppStream)
  3994. #define ISpStream_BindToFile(This,pszFileName,eMode,pFormatId,pWaveFormatEx,ullEventInterest) (This)->lpVtbl->BindToFile(This,pszFileName,eMode,pFormatId,pWaveFormatEx,ullEventInterest)
  3995. #define ISpStream_Close(This) (This)->lpVtbl->Close(This)
  3996. #else
  3997. /*** IUnknown methods ***/
  3998. static FORCEINLINE HRESULT ISpStream_QueryInterface(ISpStream* This,REFIID riid,void **ppvObject) {
  3999. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  4000. }
  4001. static FORCEINLINE ULONG ISpStream_AddRef(ISpStream* This) {
  4002. return This->lpVtbl->AddRef(This);
  4003. }
  4004. static FORCEINLINE ULONG ISpStream_Release(ISpStream* This) {
  4005. return This->lpVtbl->Release(This);
  4006. }
  4007. /*** ISequentialStream methods ***/
  4008. static FORCEINLINE HRESULT ISpStream_Read(ISpStream* This,void *pv,ULONG cb,ULONG *pcbRead) {
  4009. return This->lpVtbl->Read(This,pv,cb,pcbRead);
  4010. }
  4011. static FORCEINLINE HRESULT ISpStream_Write(ISpStream* This,const void *pv,ULONG cb,ULONG *pcbWritten) {
  4012. return This->lpVtbl->Write(This,pv,cb,pcbWritten);
  4013. }
  4014. /*** IStream methods ***/
  4015. static FORCEINLINE HRESULT ISpStream_Seek(ISpStream* This,LARGE_INTEGER dlibMove,DWORD dwOrigin,ULARGE_INTEGER *plibNewPosition) {
  4016. return This->lpVtbl->Seek(This,dlibMove,dwOrigin,plibNewPosition);
  4017. }
  4018. static FORCEINLINE HRESULT ISpStream_SetSize(ISpStream* This,ULARGE_INTEGER libNewSize) {
  4019. return This->lpVtbl->SetSize(This,libNewSize);
  4020. }
  4021. static FORCEINLINE HRESULT ISpStream_CopyTo(ISpStream* This,IStream *pstm,ULARGE_INTEGER cb,ULARGE_INTEGER *pcbRead,ULARGE_INTEGER *pcbWritten) {
  4022. return This->lpVtbl->CopyTo(This,pstm,cb,pcbRead,pcbWritten);
  4023. }
  4024. static FORCEINLINE HRESULT ISpStream_Commit(ISpStream* This,DWORD grfCommitFlags) {
  4025. return This->lpVtbl->Commit(This,grfCommitFlags);
  4026. }
  4027. static FORCEINLINE HRESULT ISpStream_Revert(ISpStream* This) {
  4028. return This->lpVtbl->Revert(This);
  4029. }
  4030. static FORCEINLINE HRESULT ISpStream_LockRegion(ISpStream* This,ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType) {
  4031. return This->lpVtbl->LockRegion(This,libOffset,cb,dwLockType);
  4032. }
  4033. static FORCEINLINE HRESULT ISpStream_UnlockRegion(ISpStream* This,ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType) {
  4034. return This->lpVtbl->UnlockRegion(This,libOffset,cb,dwLockType);
  4035. }
  4036. static FORCEINLINE HRESULT ISpStream_Stat(ISpStream* This,STATSTG *pstatstg,DWORD grfStatFlag) {
  4037. return This->lpVtbl->Stat(This,pstatstg,grfStatFlag);
  4038. }
  4039. static FORCEINLINE HRESULT ISpStream_Clone(ISpStream* This,IStream **ppstm) {
  4040. return This->lpVtbl->Clone(This,ppstm);
  4041. }
  4042. /*** ISpStreamFormat methods ***/
  4043. static FORCEINLINE HRESULT ISpStream_GetFormat(ISpStream* This,GUID *pguidFormatId,WAVEFORMATEX **ppCoMemWaveFormatEx) {
  4044. return This->lpVtbl->GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx);
  4045. }
  4046. /*** ISpStream methods ***/
  4047. static FORCEINLINE HRESULT ISpStream_SetBaseStream(ISpStream* This,IStream *pStream,REFGUID rguidFormat,const WAVEFORMATEX *pWaveFormatEx) {
  4048. return This->lpVtbl->SetBaseStream(This,pStream,rguidFormat,pWaveFormatEx);
  4049. }
  4050. static FORCEINLINE HRESULT ISpStream_GetBaseStream(ISpStream* This,IStream **ppStream) {
  4051. return This->lpVtbl->GetBaseStream(This,ppStream);
  4052. }
  4053. static FORCEINLINE HRESULT ISpStream_BindToFile(ISpStream* This,LPCWSTR pszFileName,SPFILEMODE eMode,const GUID *pFormatId,const WAVEFORMATEX *pWaveFormatEx,ULONGLONG ullEventInterest) {
  4054. return This->lpVtbl->BindToFile(This,pszFileName,eMode,pFormatId,pWaveFormatEx,ullEventInterest);
  4055. }
  4056. static FORCEINLINE HRESULT ISpStream_Close(ISpStream* This) {
  4057. return This->lpVtbl->Close(This);
  4058. }
  4059. #endif
  4060. #endif
  4061. #endif
  4062. #endif /* __ISpStream_INTERFACE_DEFINED__ */
  4063. /*****************************************************************************
  4064. * ISpStreamFormatConverter interface
  4065. */
  4066. #ifndef __ISpStreamFormatConverter_INTERFACE_DEFINED__
  4067. #define __ISpStreamFormatConverter_INTERFACE_DEFINED__
  4068. DEFINE_GUID(IID_ISpStreamFormatConverter, 0x678a932c, 0xea71, 0x4446, 0x9b,0x41, 0x78,0xfd,0xa6,0x28,0x0a,0x29);
  4069. #if defined(__cplusplus) && !defined(CINTERFACE)
  4070. MIDL_INTERFACE("678a932c-ea71-4446-9b41-78fda6280a29")
  4071. ISpStreamFormatConverter : public ISpStreamFormat
  4072. {
  4073. virtual HRESULT STDMETHODCALLTYPE SetBaseStream(
  4074. ISpStreamFormat *pStream,
  4075. WINBOOL fSetFormatToBaseStreamFormat,
  4076. WINBOOL fWriteToBaseStream) = 0;
  4077. virtual HRESULT STDMETHODCALLTYPE GetBaseStream(
  4078. ISpStreamFormat **ppStream) = 0;
  4079. virtual HRESULT STDMETHODCALLTYPE SetFormat(
  4080. REFGUID rguidFormatIdOfConvertedStream,
  4081. const WAVEFORMATEX *pWaveFormatExOfConvertedStream) = 0;
  4082. virtual HRESULT STDMETHODCALLTYPE ResetSeekPosition(
  4083. ) = 0;
  4084. virtual HRESULT STDMETHODCALLTYPE ScaleConvertedToBaseOffset(
  4085. ULONGLONG ullOffsetConvertedStream,
  4086. ULONGLONG *pullOffsetBaseStream) = 0;
  4087. virtual HRESULT STDMETHODCALLTYPE ScaleBaseToConvertedOffset(
  4088. ULONGLONG ullOffsetBaseStream,
  4089. ULONGLONG *pullOffsetConvertedStream) = 0;
  4090. };
  4091. #ifdef __CRT_UUID_DECL
  4092. __CRT_UUID_DECL(ISpStreamFormatConverter, 0x678a932c, 0xea71, 0x4446, 0x9b,0x41, 0x78,0xfd,0xa6,0x28,0x0a,0x29)
  4093. #endif
  4094. #else
  4095. typedef struct ISpStreamFormatConverterVtbl {
  4096. BEGIN_INTERFACE
  4097. /*** IUnknown methods ***/
  4098. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  4099. ISpStreamFormatConverter *This,
  4100. REFIID riid,
  4101. void **ppvObject);
  4102. ULONG (STDMETHODCALLTYPE *AddRef)(
  4103. ISpStreamFormatConverter *This);
  4104. ULONG (STDMETHODCALLTYPE *Release)(
  4105. ISpStreamFormatConverter *This);
  4106. /*** ISequentialStream methods ***/
  4107. HRESULT (STDMETHODCALLTYPE *Read)(
  4108. ISpStreamFormatConverter *This,
  4109. void *pv,
  4110. ULONG cb,
  4111. ULONG *pcbRead);
  4112. HRESULT (STDMETHODCALLTYPE *Write)(
  4113. ISpStreamFormatConverter *This,
  4114. const void *pv,
  4115. ULONG cb,
  4116. ULONG *pcbWritten);
  4117. /*** IStream methods ***/
  4118. HRESULT (STDMETHODCALLTYPE *Seek)(
  4119. ISpStreamFormatConverter *This,
  4120. LARGE_INTEGER dlibMove,
  4121. DWORD dwOrigin,
  4122. ULARGE_INTEGER *plibNewPosition);
  4123. HRESULT (STDMETHODCALLTYPE *SetSize)(
  4124. ISpStreamFormatConverter *This,
  4125. ULARGE_INTEGER libNewSize);
  4126. HRESULT (STDMETHODCALLTYPE *CopyTo)(
  4127. ISpStreamFormatConverter *This,
  4128. IStream *pstm,
  4129. ULARGE_INTEGER cb,
  4130. ULARGE_INTEGER *pcbRead,
  4131. ULARGE_INTEGER *pcbWritten);
  4132. HRESULT (STDMETHODCALLTYPE *Commit)(
  4133. ISpStreamFormatConverter *This,
  4134. DWORD grfCommitFlags);
  4135. HRESULT (STDMETHODCALLTYPE *Revert)(
  4136. ISpStreamFormatConverter *This);
  4137. HRESULT (STDMETHODCALLTYPE *LockRegion)(
  4138. ISpStreamFormatConverter *This,
  4139. ULARGE_INTEGER libOffset,
  4140. ULARGE_INTEGER cb,
  4141. DWORD dwLockType);
  4142. HRESULT (STDMETHODCALLTYPE *UnlockRegion)(
  4143. ISpStreamFormatConverter *This,
  4144. ULARGE_INTEGER libOffset,
  4145. ULARGE_INTEGER cb,
  4146. DWORD dwLockType);
  4147. HRESULT (STDMETHODCALLTYPE *Stat)(
  4148. ISpStreamFormatConverter *This,
  4149. STATSTG *pstatstg,
  4150. DWORD grfStatFlag);
  4151. HRESULT (STDMETHODCALLTYPE *Clone)(
  4152. ISpStreamFormatConverter *This,
  4153. IStream **ppstm);
  4154. /*** ISpStreamFormat methods ***/
  4155. HRESULT (STDMETHODCALLTYPE *GetFormat)(
  4156. ISpStreamFormatConverter *This,
  4157. GUID *pguidFormatId,
  4158. WAVEFORMATEX **ppCoMemWaveFormatEx);
  4159. /*** ISpStreamFormatConverter methods ***/
  4160. HRESULT (STDMETHODCALLTYPE *SetBaseStream)(
  4161. ISpStreamFormatConverter *This,
  4162. ISpStreamFormat *pStream,
  4163. WINBOOL fSetFormatToBaseStreamFormat,
  4164. WINBOOL fWriteToBaseStream);
  4165. HRESULT (STDMETHODCALLTYPE *GetBaseStream)(
  4166. ISpStreamFormatConverter *This,
  4167. ISpStreamFormat **ppStream);
  4168. HRESULT (STDMETHODCALLTYPE *SetFormat)(
  4169. ISpStreamFormatConverter *This,
  4170. REFGUID rguidFormatIdOfConvertedStream,
  4171. const WAVEFORMATEX *pWaveFormatExOfConvertedStream);
  4172. HRESULT (STDMETHODCALLTYPE *ResetSeekPosition)(
  4173. ISpStreamFormatConverter *This);
  4174. HRESULT (STDMETHODCALLTYPE *ScaleConvertedToBaseOffset)(
  4175. ISpStreamFormatConverter *This,
  4176. ULONGLONG ullOffsetConvertedStream,
  4177. ULONGLONG *pullOffsetBaseStream);
  4178. HRESULT (STDMETHODCALLTYPE *ScaleBaseToConvertedOffset)(
  4179. ISpStreamFormatConverter *This,
  4180. ULONGLONG ullOffsetBaseStream,
  4181. ULONGLONG *pullOffsetConvertedStream);
  4182. END_INTERFACE
  4183. } ISpStreamFormatConverterVtbl;
  4184. interface ISpStreamFormatConverter {
  4185. CONST_VTBL ISpStreamFormatConverterVtbl* lpVtbl;
  4186. };
  4187. #ifdef COBJMACROS
  4188. #ifndef WIDL_C_INLINE_WRAPPERS
  4189. /*** IUnknown methods ***/
  4190. #define ISpStreamFormatConverter_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  4191. #define ISpStreamFormatConverter_AddRef(This) (This)->lpVtbl->AddRef(This)
  4192. #define ISpStreamFormatConverter_Release(This) (This)->lpVtbl->Release(This)
  4193. /*** ISequentialStream methods ***/
  4194. #define ISpStreamFormatConverter_Read(This,pv,cb,pcbRead) (This)->lpVtbl->Read(This,pv,cb,pcbRead)
  4195. #define ISpStreamFormatConverter_Write(This,pv,cb,pcbWritten) (This)->lpVtbl->Write(This,pv,cb,pcbWritten)
  4196. /*** IStream methods ***/
  4197. #define ISpStreamFormatConverter_Seek(This,dlibMove,dwOrigin,plibNewPosition) (This)->lpVtbl->Seek(This,dlibMove,dwOrigin,plibNewPosition)
  4198. #define ISpStreamFormatConverter_SetSize(This,libNewSize) (This)->lpVtbl->SetSize(This,libNewSize)
  4199. #define ISpStreamFormatConverter_CopyTo(This,pstm,cb,pcbRead,pcbWritten) (This)->lpVtbl->CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  4200. #define ISpStreamFormatConverter_Commit(This,grfCommitFlags) (This)->lpVtbl->Commit(This,grfCommitFlags)
  4201. #define ISpStreamFormatConverter_Revert(This) (This)->lpVtbl->Revert(This)
  4202. #define ISpStreamFormatConverter_LockRegion(This,libOffset,cb,dwLockType) (This)->lpVtbl->LockRegion(This,libOffset,cb,dwLockType)
  4203. #define ISpStreamFormatConverter_UnlockRegion(This,libOffset,cb,dwLockType) (This)->lpVtbl->UnlockRegion(This,libOffset,cb,dwLockType)
  4204. #define ISpStreamFormatConverter_Stat(This,pstatstg,grfStatFlag) (This)->lpVtbl->Stat(This,pstatstg,grfStatFlag)
  4205. #define ISpStreamFormatConverter_Clone(This,ppstm) (This)->lpVtbl->Clone(This,ppstm)
  4206. /*** ISpStreamFormat methods ***/
  4207. #define ISpStreamFormatConverter_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) (This)->lpVtbl->GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  4208. /*** ISpStreamFormatConverter methods ***/
  4209. #define ISpStreamFormatConverter_SetBaseStream(This,pStream,fSetFormatToBaseStreamFormat,fWriteToBaseStream) (This)->lpVtbl->SetBaseStream(This,pStream,fSetFormatToBaseStreamFormat,fWriteToBaseStream)
  4210. #define ISpStreamFormatConverter_GetBaseStream(This,ppStream) (This)->lpVtbl->GetBaseStream(This,ppStream)
  4211. #define ISpStreamFormatConverter_SetFormat(This,rguidFormatIdOfConvertedStream,pWaveFormatExOfConvertedStream) (This)->lpVtbl->SetFormat(This,rguidFormatIdOfConvertedStream,pWaveFormatExOfConvertedStream)
  4212. #define ISpStreamFormatConverter_ResetSeekPosition(This) (This)->lpVtbl->ResetSeekPosition(This)
  4213. #define ISpStreamFormatConverter_ScaleConvertedToBaseOffset(This,ullOffsetConvertedStream,pullOffsetBaseStream) (This)->lpVtbl->ScaleConvertedToBaseOffset(This,ullOffsetConvertedStream,pullOffsetBaseStream)
  4214. #define ISpStreamFormatConverter_ScaleBaseToConvertedOffset(This,ullOffsetBaseStream,pullOffsetConvertedStream) (This)->lpVtbl->ScaleBaseToConvertedOffset(This,ullOffsetBaseStream,pullOffsetConvertedStream)
  4215. #else
  4216. /*** IUnknown methods ***/
  4217. static FORCEINLINE HRESULT ISpStreamFormatConverter_QueryInterface(ISpStreamFormatConverter* This,REFIID riid,void **ppvObject) {
  4218. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  4219. }
  4220. static FORCEINLINE ULONG ISpStreamFormatConverter_AddRef(ISpStreamFormatConverter* This) {
  4221. return This->lpVtbl->AddRef(This);
  4222. }
  4223. static FORCEINLINE ULONG ISpStreamFormatConverter_Release(ISpStreamFormatConverter* This) {
  4224. return This->lpVtbl->Release(This);
  4225. }
  4226. /*** ISequentialStream methods ***/
  4227. static FORCEINLINE HRESULT ISpStreamFormatConverter_Read(ISpStreamFormatConverter* This,void *pv,ULONG cb,ULONG *pcbRead) {
  4228. return This->lpVtbl->Read(This,pv,cb,pcbRead);
  4229. }
  4230. static FORCEINLINE HRESULT ISpStreamFormatConverter_Write(ISpStreamFormatConverter* This,const void *pv,ULONG cb,ULONG *pcbWritten) {
  4231. return This->lpVtbl->Write(This,pv,cb,pcbWritten);
  4232. }
  4233. /*** IStream methods ***/
  4234. static FORCEINLINE HRESULT ISpStreamFormatConverter_Seek(ISpStreamFormatConverter* This,LARGE_INTEGER dlibMove,DWORD dwOrigin,ULARGE_INTEGER *plibNewPosition) {
  4235. return This->lpVtbl->Seek(This,dlibMove,dwOrigin,plibNewPosition);
  4236. }
  4237. static FORCEINLINE HRESULT ISpStreamFormatConverter_SetSize(ISpStreamFormatConverter* This,ULARGE_INTEGER libNewSize) {
  4238. return This->lpVtbl->SetSize(This,libNewSize);
  4239. }
  4240. static FORCEINLINE HRESULT ISpStreamFormatConverter_CopyTo(ISpStreamFormatConverter* This,IStream *pstm,ULARGE_INTEGER cb,ULARGE_INTEGER *pcbRead,ULARGE_INTEGER *pcbWritten) {
  4241. return This->lpVtbl->CopyTo(This,pstm,cb,pcbRead,pcbWritten);
  4242. }
  4243. static FORCEINLINE HRESULT ISpStreamFormatConverter_Commit(ISpStreamFormatConverter* This,DWORD grfCommitFlags) {
  4244. return This->lpVtbl->Commit(This,grfCommitFlags);
  4245. }
  4246. static FORCEINLINE HRESULT ISpStreamFormatConverter_Revert(ISpStreamFormatConverter* This) {
  4247. return This->lpVtbl->Revert(This);
  4248. }
  4249. static FORCEINLINE HRESULT ISpStreamFormatConverter_LockRegion(ISpStreamFormatConverter* This,ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType) {
  4250. return This->lpVtbl->LockRegion(This,libOffset,cb,dwLockType);
  4251. }
  4252. static FORCEINLINE HRESULT ISpStreamFormatConverter_UnlockRegion(ISpStreamFormatConverter* This,ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType) {
  4253. return This->lpVtbl->UnlockRegion(This,libOffset,cb,dwLockType);
  4254. }
  4255. static FORCEINLINE HRESULT ISpStreamFormatConverter_Stat(ISpStreamFormatConverter* This,STATSTG *pstatstg,DWORD grfStatFlag) {
  4256. return This->lpVtbl->Stat(This,pstatstg,grfStatFlag);
  4257. }
  4258. static FORCEINLINE HRESULT ISpStreamFormatConverter_Clone(ISpStreamFormatConverter* This,IStream **ppstm) {
  4259. return This->lpVtbl->Clone(This,ppstm);
  4260. }
  4261. /*** ISpStreamFormat methods ***/
  4262. static FORCEINLINE HRESULT ISpStreamFormatConverter_GetFormat(ISpStreamFormatConverter* This,GUID *pguidFormatId,WAVEFORMATEX **ppCoMemWaveFormatEx) {
  4263. return This->lpVtbl->GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx);
  4264. }
  4265. /*** ISpStreamFormatConverter methods ***/
  4266. static FORCEINLINE HRESULT ISpStreamFormatConverter_SetBaseStream(ISpStreamFormatConverter* This,ISpStreamFormat *pStream,WINBOOL fSetFormatToBaseStreamFormat,WINBOOL fWriteToBaseStream) {
  4267. return This->lpVtbl->SetBaseStream(This,pStream,fSetFormatToBaseStreamFormat,fWriteToBaseStream);
  4268. }
  4269. static FORCEINLINE HRESULT ISpStreamFormatConverter_GetBaseStream(ISpStreamFormatConverter* This,ISpStreamFormat **ppStream) {
  4270. return This->lpVtbl->GetBaseStream(This,ppStream);
  4271. }
  4272. static FORCEINLINE HRESULT ISpStreamFormatConverter_SetFormat(ISpStreamFormatConverter* This,REFGUID rguidFormatIdOfConvertedStream,const WAVEFORMATEX *pWaveFormatExOfConvertedStream) {
  4273. return This->lpVtbl->SetFormat(This,rguidFormatIdOfConvertedStream,pWaveFormatExOfConvertedStream);
  4274. }
  4275. static FORCEINLINE HRESULT ISpStreamFormatConverter_ResetSeekPosition(ISpStreamFormatConverter* This) {
  4276. return This->lpVtbl->ResetSeekPosition(This);
  4277. }
  4278. static FORCEINLINE HRESULT ISpStreamFormatConverter_ScaleConvertedToBaseOffset(ISpStreamFormatConverter* This,ULONGLONG ullOffsetConvertedStream,ULONGLONG *pullOffsetBaseStream) {
  4279. return This->lpVtbl->ScaleConvertedToBaseOffset(This,ullOffsetConvertedStream,pullOffsetBaseStream);
  4280. }
  4281. static FORCEINLINE HRESULT ISpStreamFormatConverter_ScaleBaseToConvertedOffset(ISpStreamFormatConverter* This,ULONGLONG ullOffsetBaseStream,ULONGLONG *pullOffsetConvertedStream) {
  4282. return This->lpVtbl->ScaleBaseToConvertedOffset(This,ullOffsetBaseStream,pullOffsetConvertedStream);
  4283. }
  4284. #endif
  4285. #endif
  4286. #endif
  4287. #endif /* __ISpStreamFormatConverter_INTERFACE_DEFINED__ */
  4288. typedef struct SPAUDIOSTATUS {
  4289. LONG cbFreeBuffSpace;
  4290. ULONG cbNonBlockingIO;
  4291. SPAUDIOSTATE State;
  4292. ULONGLONG CurSeekPos;
  4293. ULONGLONG CurDevicePos;
  4294. DWORD dwAudioLevel;
  4295. DWORD dwReserved2;
  4296. } SPAUDIOSTATUS;
  4297. typedef struct SPAUDIOBUFFERINFO {
  4298. ULONG ulMsMinNotification;
  4299. ULONG ulMsBufferSize;
  4300. ULONG ulMsEventBias;
  4301. } SPAUDIOBUFFERINFO;
  4302. /*****************************************************************************
  4303. * ISpAudio interface
  4304. */
  4305. #ifndef __ISpAudio_INTERFACE_DEFINED__
  4306. #define __ISpAudio_INTERFACE_DEFINED__
  4307. DEFINE_GUID(IID_ISpAudio, 0xc05c768f, 0xfae8, 0x4ec2, 0x8e,0x07, 0x33,0x83,0x21,0xc1,0x24,0x52);
  4308. #if defined(__cplusplus) && !defined(CINTERFACE)
  4309. MIDL_INTERFACE("c05c768f-fae8-4ec2-8e07-338321c12452")
  4310. ISpAudio : public ISpStreamFormat
  4311. {
  4312. virtual HRESULT STDMETHODCALLTYPE SetState(
  4313. SPAUDIOSTATE NewState,
  4314. ULONGLONG ullReserved) = 0;
  4315. virtual HRESULT STDMETHODCALLTYPE SetFormat(
  4316. REFGUID rguidFmtId,
  4317. const WAVEFORMATEX *pWaveFormatEx) = 0;
  4318. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  4319. SPAUDIOSTATUS *pStatus) = 0;
  4320. virtual HRESULT STDMETHODCALLTYPE SetBufferInfo(
  4321. const SPAUDIOBUFFERINFO *pBuffInfo) = 0;
  4322. virtual HRESULT STDMETHODCALLTYPE GetBufferInfo(
  4323. SPAUDIOBUFFERINFO *pBuffInfo) = 0;
  4324. virtual HRESULT STDMETHODCALLTYPE GetDefaultFormat(
  4325. GUID *pFormatId,
  4326. WAVEFORMATEX **ppCoMemWaveFormatEx) = 0;
  4327. virtual HANDLE STDMETHODCALLTYPE EventHandle(
  4328. ) = 0;
  4329. virtual HRESULT STDMETHODCALLTYPE GetVolumeLevel(
  4330. ULONG *pLevel) = 0;
  4331. virtual HRESULT STDMETHODCALLTYPE SetVolumeLevel(
  4332. ULONG Level) = 0;
  4333. virtual HRESULT STDMETHODCALLTYPE GetBufferNotifySize(
  4334. ULONG *pcbSize) = 0;
  4335. virtual HRESULT STDMETHODCALLTYPE SetBufferNotifySize(
  4336. ULONG cbSize) = 0;
  4337. };
  4338. #ifdef __CRT_UUID_DECL
  4339. __CRT_UUID_DECL(ISpAudio, 0xc05c768f, 0xfae8, 0x4ec2, 0x8e,0x07, 0x33,0x83,0x21,0xc1,0x24,0x52)
  4340. #endif
  4341. #else
  4342. typedef struct ISpAudioVtbl {
  4343. BEGIN_INTERFACE
  4344. /*** IUnknown methods ***/
  4345. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  4346. ISpAudio *This,
  4347. REFIID riid,
  4348. void **ppvObject);
  4349. ULONG (STDMETHODCALLTYPE *AddRef)(
  4350. ISpAudio *This);
  4351. ULONG (STDMETHODCALLTYPE *Release)(
  4352. ISpAudio *This);
  4353. /*** ISequentialStream methods ***/
  4354. HRESULT (STDMETHODCALLTYPE *Read)(
  4355. ISpAudio *This,
  4356. void *pv,
  4357. ULONG cb,
  4358. ULONG *pcbRead);
  4359. HRESULT (STDMETHODCALLTYPE *Write)(
  4360. ISpAudio *This,
  4361. const void *pv,
  4362. ULONG cb,
  4363. ULONG *pcbWritten);
  4364. /*** IStream methods ***/
  4365. HRESULT (STDMETHODCALLTYPE *Seek)(
  4366. ISpAudio *This,
  4367. LARGE_INTEGER dlibMove,
  4368. DWORD dwOrigin,
  4369. ULARGE_INTEGER *plibNewPosition);
  4370. HRESULT (STDMETHODCALLTYPE *SetSize)(
  4371. ISpAudio *This,
  4372. ULARGE_INTEGER libNewSize);
  4373. HRESULT (STDMETHODCALLTYPE *CopyTo)(
  4374. ISpAudio *This,
  4375. IStream *pstm,
  4376. ULARGE_INTEGER cb,
  4377. ULARGE_INTEGER *pcbRead,
  4378. ULARGE_INTEGER *pcbWritten);
  4379. HRESULT (STDMETHODCALLTYPE *Commit)(
  4380. ISpAudio *This,
  4381. DWORD grfCommitFlags);
  4382. HRESULT (STDMETHODCALLTYPE *Revert)(
  4383. ISpAudio *This);
  4384. HRESULT (STDMETHODCALLTYPE *LockRegion)(
  4385. ISpAudio *This,
  4386. ULARGE_INTEGER libOffset,
  4387. ULARGE_INTEGER cb,
  4388. DWORD dwLockType);
  4389. HRESULT (STDMETHODCALLTYPE *UnlockRegion)(
  4390. ISpAudio *This,
  4391. ULARGE_INTEGER libOffset,
  4392. ULARGE_INTEGER cb,
  4393. DWORD dwLockType);
  4394. HRESULT (STDMETHODCALLTYPE *Stat)(
  4395. ISpAudio *This,
  4396. STATSTG *pstatstg,
  4397. DWORD grfStatFlag);
  4398. HRESULT (STDMETHODCALLTYPE *Clone)(
  4399. ISpAudio *This,
  4400. IStream **ppstm);
  4401. /*** ISpStreamFormat methods ***/
  4402. HRESULT (STDMETHODCALLTYPE *GetFormat)(
  4403. ISpAudio *This,
  4404. GUID *pguidFormatId,
  4405. WAVEFORMATEX **ppCoMemWaveFormatEx);
  4406. /*** ISpAudio methods ***/
  4407. HRESULT (STDMETHODCALLTYPE *SetState)(
  4408. ISpAudio *This,
  4409. SPAUDIOSTATE NewState,
  4410. ULONGLONG ullReserved);
  4411. HRESULT (STDMETHODCALLTYPE *SetFormat)(
  4412. ISpAudio *This,
  4413. REFGUID rguidFmtId,
  4414. const WAVEFORMATEX *pWaveFormatEx);
  4415. HRESULT (STDMETHODCALLTYPE *GetStatus)(
  4416. ISpAudio *This,
  4417. SPAUDIOSTATUS *pStatus);
  4418. HRESULT (STDMETHODCALLTYPE *SetBufferInfo)(
  4419. ISpAudio *This,
  4420. const SPAUDIOBUFFERINFO *pBuffInfo);
  4421. HRESULT (STDMETHODCALLTYPE *GetBufferInfo)(
  4422. ISpAudio *This,
  4423. SPAUDIOBUFFERINFO *pBuffInfo);
  4424. HRESULT (STDMETHODCALLTYPE *GetDefaultFormat)(
  4425. ISpAudio *This,
  4426. GUID *pFormatId,
  4427. WAVEFORMATEX **ppCoMemWaveFormatEx);
  4428. HANDLE (STDMETHODCALLTYPE *EventHandle)(
  4429. ISpAudio *This);
  4430. HRESULT (STDMETHODCALLTYPE *GetVolumeLevel)(
  4431. ISpAudio *This,
  4432. ULONG *pLevel);
  4433. HRESULT (STDMETHODCALLTYPE *SetVolumeLevel)(
  4434. ISpAudio *This,
  4435. ULONG Level);
  4436. HRESULT (STDMETHODCALLTYPE *GetBufferNotifySize)(
  4437. ISpAudio *This,
  4438. ULONG *pcbSize);
  4439. HRESULT (STDMETHODCALLTYPE *SetBufferNotifySize)(
  4440. ISpAudio *This,
  4441. ULONG cbSize);
  4442. END_INTERFACE
  4443. } ISpAudioVtbl;
  4444. interface ISpAudio {
  4445. CONST_VTBL ISpAudioVtbl* lpVtbl;
  4446. };
  4447. #ifdef COBJMACROS
  4448. #ifndef WIDL_C_INLINE_WRAPPERS
  4449. /*** IUnknown methods ***/
  4450. #define ISpAudio_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  4451. #define ISpAudio_AddRef(This) (This)->lpVtbl->AddRef(This)
  4452. #define ISpAudio_Release(This) (This)->lpVtbl->Release(This)
  4453. /*** ISequentialStream methods ***/
  4454. #define ISpAudio_Read(This,pv,cb,pcbRead) (This)->lpVtbl->Read(This,pv,cb,pcbRead)
  4455. #define ISpAudio_Write(This,pv,cb,pcbWritten) (This)->lpVtbl->Write(This,pv,cb,pcbWritten)
  4456. /*** IStream methods ***/
  4457. #define ISpAudio_Seek(This,dlibMove,dwOrigin,plibNewPosition) (This)->lpVtbl->Seek(This,dlibMove,dwOrigin,plibNewPosition)
  4458. #define ISpAudio_SetSize(This,libNewSize) (This)->lpVtbl->SetSize(This,libNewSize)
  4459. #define ISpAudio_CopyTo(This,pstm,cb,pcbRead,pcbWritten) (This)->lpVtbl->CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  4460. #define ISpAudio_Commit(This,grfCommitFlags) (This)->lpVtbl->Commit(This,grfCommitFlags)
  4461. #define ISpAudio_Revert(This) (This)->lpVtbl->Revert(This)
  4462. #define ISpAudio_LockRegion(This,libOffset,cb,dwLockType) (This)->lpVtbl->LockRegion(This,libOffset,cb,dwLockType)
  4463. #define ISpAudio_UnlockRegion(This,libOffset,cb,dwLockType) (This)->lpVtbl->UnlockRegion(This,libOffset,cb,dwLockType)
  4464. #define ISpAudio_Stat(This,pstatstg,grfStatFlag) (This)->lpVtbl->Stat(This,pstatstg,grfStatFlag)
  4465. #define ISpAudio_Clone(This,ppstm) (This)->lpVtbl->Clone(This,ppstm)
  4466. /*** ISpStreamFormat methods ***/
  4467. #define ISpAudio_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) (This)->lpVtbl->GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  4468. /*** ISpAudio methods ***/
  4469. #define ISpAudio_SetState(This,NewState,ullReserved) (This)->lpVtbl->SetState(This,NewState,ullReserved)
  4470. #define ISpAudio_SetFormat(This,rguidFmtId,pWaveFormatEx) (This)->lpVtbl->SetFormat(This,rguidFmtId,pWaveFormatEx)
  4471. #define ISpAudio_GetStatus(This,pStatus) (This)->lpVtbl->GetStatus(This,pStatus)
  4472. #define ISpAudio_SetBufferInfo(This,pBuffInfo) (This)->lpVtbl->SetBufferInfo(This,pBuffInfo)
  4473. #define ISpAudio_GetBufferInfo(This,pBuffInfo) (This)->lpVtbl->GetBufferInfo(This,pBuffInfo)
  4474. #define ISpAudio_GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx) (This)->lpVtbl->GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx)
  4475. #define ISpAudio_EventHandle(This) (This)->lpVtbl->EventHandle(This)
  4476. #define ISpAudio_GetVolumeLevel(This,pLevel) (This)->lpVtbl->GetVolumeLevel(This,pLevel)
  4477. #define ISpAudio_SetVolumeLevel(This,Level) (This)->lpVtbl->SetVolumeLevel(This,Level)
  4478. #define ISpAudio_GetBufferNotifySize(This,pcbSize) (This)->lpVtbl->GetBufferNotifySize(This,pcbSize)
  4479. #define ISpAudio_SetBufferNotifySize(This,cbSize) (This)->lpVtbl->SetBufferNotifySize(This,cbSize)
  4480. #else
  4481. /*** IUnknown methods ***/
  4482. static FORCEINLINE HRESULT ISpAudio_QueryInterface(ISpAudio* This,REFIID riid,void **ppvObject) {
  4483. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  4484. }
  4485. static FORCEINLINE ULONG ISpAudio_AddRef(ISpAudio* This) {
  4486. return This->lpVtbl->AddRef(This);
  4487. }
  4488. static FORCEINLINE ULONG ISpAudio_Release(ISpAudio* This) {
  4489. return This->lpVtbl->Release(This);
  4490. }
  4491. /*** ISequentialStream methods ***/
  4492. static FORCEINLINE HRESULT ISpAudio_Read(ISpAudio* This,void *pv,ULONG cb,ULONG *pcbRead) {
  4493. return This->lpVtbl->Read(This,pv,cb,pcbRead);
  4494. }
  4495. static FORCEINLINE HRESULT ISpAudio_Write(ISpAudio* This,const void *pv,ULONG cb,ULONG *pcbWritten) {
  4496. return This->lpVtbl->Write(This,pv,cb,pcbWritten);
  4497. }
  4498. /*** IStream methods ***/
  4499. static FORCEINLINE HRESULT ISpAudio_Seek(ISpAudio* This,LARGE_INTEGER dlibMove,DWORD dwOrigin,ULARGE_INTEGER *plibNewPosition) {
  4500. return This->lpVtbl->Seek(This,dlibMove,dwOrigin,plibNewPosition);
  4501. }
  4502. static FORCEINLINE HRESULT ISpAudio_SetSize(ISpAudio* This,ULARGE_INTEGER libNewSize) {
  4503. return This->lpVtbl->SetSize(This,libNewSize);
  4504. }
  4505. static FORCEINLINE HRESULT ISpAudio_CopyTo(ISpAudio* This,IStream *pstm,ULARGE_INTEGER cb,ULARGE_INTEGER *pcbRead,ULARGE_INTEGER *pcbWritten) {
  4506. return This->lpVtbl->CopyTo(This,pstm,cb,pcbRead,pcbWritten);
  4507. }
  4508. static FORCEINLINE HRESULT ISpAudio_Commit(ISpAudio* This,DWORD grfCommitFlags) {
  4509. return This->lpVtbl->Commit(This,grfCommitFlags);
  4510. }
  4511. static FORCEINLINE HRESULT ISpAudio_Revert(ISpAudio* This) {
  4512. return This->lpVtbl->Revert(This);
  4513. }
  4514. static FORCEINLINE HRESULT ISpAudio_LockRegion(ISpAudio* This,ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType) {
  4515. return This->lpVtbl->LockRegion(This,libOffset,cb,dwLockType);
  4516. }
  4517. static FORCEINLINE HRESULT ISpAudio_UnlockRegion(ISpAudio* This,ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType) {
  4518. return This->lpVtbl->UnlockRegion(This,libOffset,cb,dwLockType);
  4519. }
  4520. static FORCEINLINE HRESULT ISpAudio_Stat(ISpAudio* This,STATSTG *pstatstg,DWORD grfStatFlag) {
  4521. return This->lpVtbl->Stat(This,pstatstg,grfStatFlag);
  4522. }
  4523. static FORCEINLINE HRESULT ISpAudio_Clone(ISpAudio* This,IStream **ppstm) {
  4524. return This->lpVtbl->Clone(This,ppstm);
  4525. }
  4526. /*** ISpStreamFormat methods ***/
  4527. static FORCEINLINE HRESULT ISpAudio_GetFormat(ISpAudio* This,GUID *pguidFormatId,WAVEFORMATEX **ppCoMemWaveFormatEx) {
  4528. return This->lpVtbl->GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx);
  4529. }
  4530. /*** ISpAudio methods ***/
  4531. static FORCEINLINE HRESULT ISpAudio_SetState(ISpAudio* This,SPAUDIOSTATE NewState,ULONGLONG ullReserved) {
  4532. return This->lpVtbl->SetState(This,NewState,ullReserved);
  4533. }
  4534. static FORCEINLINE HRESULT ISpAudio_SetFormat(ISpAudio* This,REFGUID rguidFmtId,const WAVEFORMATEX *pWaveFormatEx) {
  4535. return This->lpVtbl->SetFormat(This,rguidFmtId,pWaveFormatEx);
  4536. }
  4537. static FORCEINLINE HRESULT ISpAudio_GetStatus(ISpAudio* This,SPAUDIOSTATUS *pStatus) {
  4538. return This->lpVtbl->GetStatus(This,pStatus);
  4539. }
  4540. static FORCEINLINE HRESULT ISpAudio_SetBufferInfo(ISpAudio* This,const SPAUDIOBUFFERINFO *pBuffInfo) {
  4541. return This->lpVtbl->SetBufferInfo(This,pBuffInfo);
  4542. }
  4543. static FORCEINLINE HRESULT ISpAudio_GetBufferInfo(ISpAudio* This,SPAUDIOBUFFERINFO *pBuffInfo) {
  4544. return This->lpVtbl->GetBufferInfo(This,pBuffInfo);
  4545. }
  4546. static FORCEINLINE HRESULT ISpAudio_GetDefaultFormat(ISpAudio* This,GUID *pFormatId,WAVEFORMATEX **ppCoMemWaveFormatEx) {
  4547. return This->lpVtbl->GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx);
  4548. }
  4549. static FORCEINLINE HANDLE ISpAudio_EventHandle(ISpAudio* This) {
  4550. return This->lpVtbl->EventHandle(This);
  4551. }
  4552. static FORCEINLINE HRESULT ISpAudio_GetVolumeLevel(ISpAudio* This,ULONG *pLevel) {
  4553. return This->lpVtbl->GetVolumeLevel(This,pLevel);
  4554. }
  4555. static FORCEINLINE HRESULT ISpAudio_SetVolumeLevel(ISpAudio* This,ULONG Level) {
  4556. return This->lpVtbl->SetVolumeLevel(This,Level);
  4557. }
  4558. static FORCEINLINE HRESULT ISpAudio_GetBufferNotifySize(ISpAudio* This,ULONG *pcbSize) {
  4559. return This->lpVtbl->GetBufferNotifySize(This,pcbSize);
  4560. }
  4561. static FORCEINLINE HRESULT ISpAudio_SetBufferNotifySize(ISpAudio* This,ULONG cbSize) {
  4562. return This->lpVtbl->SetBufferNotifySize(This,cbSize);
  4563. }
  4564. #endif
  4565. #endif
  4566. #endif
  4567. #endif /* __ISpAudio_INTERFACE_DEFINED__ */
  4568. /*****************************************************************************
  4569. * ISpMMSysAudio interface
  4570. */
  4571. #ifndef __ISpMMSysAudio_INTERFACE_DEFINED__
  4572. #define __ISpMMSysAudio_INTERFACE_DEFINED__
  4573. DEFINE_GUID(IID_ISpMMSysAudio, 0x15806f6e, 0x1d70, 0x4b48, 0x98,0xe6, 0x3b,0x1a,0x00,0x75,0x09,0xab);
  4574. #if defined(__cplusplus) && !defined(CINTERFACE)
  4575. MIDL_INTERFACE("15806f6e-1d70-4b48-98e6-3b1a007509ab")
  4576. ISpMMSysAudio : public ISpAudio
  4577. {
  4578. virtual HRESULT STDMETHODCALLTYPE GetDeviceId(
  4579. UINT *puDeviceId) = 0;
  4580. virtual HRESULT STDMETHODCALLTYPE SetDeviceId(
  4581. UINT uDeviceId) = 0;
  4582. virtual HRESULT STDMETHODCALLTYPE GetMMHandle(
  4583. void **pHandle) = 0;
  4584. virtual HRESULT STDMETHODCALLTYPE GetLineId(
  4585. UINT *puLineId) = 0;
  4586. virtual HRESULT STDMETHODCALLTYPE SetLineId(
  4587. UINT uLineId) = 0;
  4588. };
  4589. #ifdef __CRT_UUID_DECL
  4590. __CRT_UUID_DECL(ISpMMSysAudio, 0x15806f6e, 0x1d70, 0x4b48, 0x98,0xe6, 0x3b,0x1a,0x00,0x75,0x09,0xab)
  4591. #endif
  4592. #else
  4593. typedef struct ISpMMSysAudioVtbl {
  4594. BEGIN_INTERFACE
  4595. /*** IUnknown methods ***/
  4596. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  4597. ISpMMSysAudio *This,
  4598. REFIID riid,
  4599. void **ppvObject);
  4600. ULONG (STDMETHODCALLTYPE *AddRef)(
  4601. ISpMMSysAudio *This);
  4602. ULONG (STDMETHODCALLTYPE *Release)(
  4603. ISpMMSysAudio *This);
  4604. /*** ISequentialStream methods ***/
  4605. HRESULT (STDMETHODCALLTYPE *Read)(
  4606. ISpMMSysAudio *This,
  4607. void *pv,
  4608. ULONG cb,
  4609. ULONG *pcbRead);
  4610. HRESULT (STDMETHODCALLTYPE *Write)(
  4611. ISpMMSysAudio *This,
  4612. const void *pv,
  4613. ULONG cb,
  4614. ULONG *pcbWritten);
  4615. /*** IStream methods ***/
  4616. HRESULT (STDMETHODCALLTYPE *Seek)(
  4617. ISpMMSysAudio *This,
  4618. LARGE_INTEGER dlibMove,
  4619. DWORD dwOrigin,
  4620. ULARGE_INTEGER *plibNewPosition);
  4621. HRESULT (STDMETHODCALLTYPE *SetSize)(
  4622. ISpMMSysAudio *This,
  4623. ULARGE_INTEGER libNewSize);
  4624. HRESULT (STDMETHODCALLTYPE *CopyTo)(
  4625. ISpMMSysAudio *This,
  4626. IStream *pstm,
  4627. ULARGE_INTEGER cb,
  4628. ULARGE_INTEGER *pcbRead,
  4629. ULARGE_INTEGER *pcbWritten);
  4630. HRESULT (STDMETHODCALLTYPE *Commit)(
  4631. ISpMMSysAudio *This,
  4632. DWORD grfCommitFlags);
  4633. HRESULT (STDMETHODCALLTYPE *Revert)(
  4634. ISpMMSysAudio *This);
  4635. HRESULT (STDMETHODCALLTYPE *LockRegion)(
  4636. ISpMMSysAudio *This,
  4637. ULARGE_INTEGER libOffset,
  4638. ULARGE_INTEGER cb,
  4639. DWORD dwLockType);
  4640. HRESULT (STDMETHODCALLTYPE *UnlockRegion)(
  4641. ISpMMSysAudio *This,
  4642. ULARGE_INTEGER libOffset,
  4643. ULARGE_INTEGER cb,
  4644. DWORD dwLockType);
  4645. HRESULT (STDMETHODCALLTYPE *Stat)(
  4646. ISpMMSysAudio *This,
  4647. STATSTG *pstatstg,
  4648. DWORD grfStatFlag);
  4649. HRESULT (STDMETHODCALLTYPE *Clone)(
  4650. ISpMMSysAudio *This,
  4651. IStream **ppstm);
  4652. /*** ISpStreamFormat methods ***/
  4653. HRESULT (STDMETHODCALLTYPE *GetFormat)(
  4654. ISpMMSysAudio *This,
  4655. GUID *pguidFormatId,
  4656. WAVEFORMATEX **ppCoMemWaveFormatEx);
  4657. /*** ISpAudio methods ***/
  4658. HRESULT (STDMETHODCALLTYPE *SetState)(
  4659. ISpMMSysAudio *This,
  4660. SPAUDIOSTATE NewState,
  4661. ULONGLONG ullReserved);
  4662. HRESULT (STDMETHODCALLTYPE *SetFormat)(
  4663. ISpMMSysAudio *This,
  4664. REFGUID rguidFmtId,
  4665. const WAVEFORMATEX *pWaveFormatEx);
  4666. HRESULT (STDMETHODCALLTYPE *GetStatus)(
  4667. ISpMMSysAudio *This,
  4668. SPAUDIOSTATUS *pStatus);
  4669. HRESULT (STDMETHODCALLTYPE *SetBufferInfo)(
  4670. ISpMMSysAudio *This,
  4671. const SPAUDIOBUFFERINFO *pBuffInfo);
  4672. HRESULT (STDMETHODCALLTYPE *GetBufferInfo)(
  4673. ISpMMSysAudio *This,
  4674. SPAUDIOBUFFERINFO *pBuffInfo);
  4675. HRESULT (STDMETHODCALLTYPE *GetDefaultFormat)(
  4676. ISpMMSysAudio *This,
  4677. GUID *pFormatId,
  4678. WAVEFORMATEX **ppCoMemWaveFormatEx);
  4679. HANDLE (STDMETHODCALLTYPE *EventHandle)(
  4680. ISpMMSysAudio *This);
  4681. HRESULT (STDMETHODCALLTYPE *GetVolumeLevel)(
  4682. ISpMMSysAudio *This,
  4683. ULONG *pLevel);
  4684. HRESULT (STDMETHODCALLTYPE *SetVolumeLevel)(
  4685. ISpMMSysAudio *This,
  4686. ULONG Level);
  4687. HRESULT (STDMETHODCALLTYPE *GetBufferNotifySize)(
  4688. ISpMMSysAudio *This,
  4689. ULONG *pcbSize);
  4690. HRESULT (STDMETHODCALLTYPE *SetBufferNotifySize)(
  4691. ISpMMSysAudio *This,
  4692. ULONG cbSize);
  4693. /*** ISpMMSysAudio methods ***/
  4694. HRESULT (STDMETHODCALLTYPE *GetDeviceId)(
  4695. ISpMMSysAudio *This,
  4696. UINT *puDeviceId);
  4697. HRESULT (STDMETHODCALLTYPE *SetDeviceId)(
  4698. ISpMMSysAudio *This,
  4699. UINT uDeviceId);
  4700. HRESULT (STDMETHODCALLTYPE *GetMMHandle)(
  4701. ISpMMSysAudio *This,
  4702. void **pHandle);
  4703. HRESULT (STDMETHODCALLTYPE *GetLineId)(
  4704. ISpMMSysAudio *This,
  4705. UINT *puLineId);
  4706. HRESULT (STDMETHODCALLTYPE *SetLineId)(
  4707. ISpMMSysAudio *This,
  4708. UINT uLineId);
  4709. END_INTERFACE
  4710. } ISpMMSysAudioVtbl;
  4711. interface ISpMMSysAudio {
  4712. CONST_VTBL ISpMMSysAudioVtbl* lpVtbl;
  4713. };
  4714. #ifdef COBJMACROS
  4715. #ifndef WIDL_C_INLINE_WRAPPERS
  4716. /*** IUnknown methods ***/
  4717. #define ISpMMSysAudio_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  4718. #define ISpMMSysAudio_AddRef(This) (This)->lpVtbl->AddRef(This)
  4719. #define ISpMMSysAudio_Release(This) (This)->lpVtbl->Release(This)
  4720. /*** ISequentialStream methods ***/
  4721. #define ISpMMSysAudio_Read(This,pv,cb,pcbRead) (This)->lpVtbl->Read(This,pv,cb,pcbRead)
  4722. #define ISpMMSysAudio_Write(This,pv,cb,pcbWritten) (This)->lpVtbl->Write(This,pv,cb,pcbWritten)
  4723. /*** IStream methods ***/
  4724. #define ISpMMSysAudio_Seek(This,dlibMove,dwOrigin,plibNewPosition) (This)->lpVtbl->Seek(This,dlibMove,dwOrigin,plibNewPosition)
  4725. #define ISpMMSysAudio_SetSize(This,libNewSize) (This)->lpVtbl->SetSize(This,libNewSize)
  4726. #define ISpMMSysAudio_CopyTo(This,pstm,cb,pcbRead,pcbWritten) (This)->lpVtbl->CopyTo(This,pstm,cb,pcbRead,pcbWritten)
  4727. #define ISpMMSysAudio_Commit(This,grfCommitFlags) (This)->lpVtbl->Commit(This,grfCommitFlags)
  4728. #define ISpMMSysAudio_Revert(This) (This)->lpVtbl->Revert(This)
  4729. #define ISpMMSysAudio_LockRegion(This,libOffset,cb,dwLockType) (This)->lpVtbl->LockRegion(This,libOffset,cb,dwLockType)
  4730. #define ISpMMSysAudio_UnlockRegion(This,libOffset,cb,dwLockType) (This)->lpVtbl->UnlockRegion(This,libOffset,cb,dwLockType)
  4731. #define ISpMMSysAudio_Stat(This,pstatstg,grfStatFlag) (This)->lpVtbl->Stat(This,pstatstg,grfStatFlag)
  4732. #define ISpMMSysAudio_Clone(This,ppstm) (This)->lpVtbl->Clone(This,ppstm)
  4733. /*** ISpStreamFormat methods ***/
  4734. #define ISpMMSysAudio_GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx) (This)->lpVtbl->GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx)
  4735. /*** ISpAudio methods ***/
  4736. #define ISpMMSysAudio_SetState(This,NewState,ullReserved) (This)->lpVtbl->SetState(This,NewState,ullReserved)
  4737. #define ISpMMSysAudio_SetFormat(This,rguidFmtId,pWaveFormatEx) (This)->lpVtbl->SetFormat(This,rguidFmtId,pWaveFormatEx)
  4738. #define ISpMMSysAudio_GetStatus(This,pStatus) (This)->lpVtbl->GetStatus(This,pStatus)
  4739. #define ISpMMSysAudio_SetBufferInfo(This,pBuffInfo) (This)->lpVtbl->SetBufferInfo(This,pBuffInfo)
  4740. #define ISpMMSysAudio_GetBufferInfo(This,pBuffInfo) (This)->lpVtbl->GetBufferInfo(This,pBuffInfo)
  4741. #define ISpMMSysAudio_GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx) (This)->lpVtbl->GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx)
  4742. #define ISpMMSysAudio_EventHandle(This) (This)->lpVtbl->EventHandle(This)
  4743. #define ISpMMSysAudio_GetVolumeLevel(This,pLevel) (This)->lpVtbl->GetVolumeLevel(This,pLevel)
  4744. #define ISpMMSysAudio_SetVolumeLevel(This,Level) (This)->lpVtbl->SetVolumeLevel(This,Level)
  4745. #define ISpMMSysAudio_GetBufferNotifySize(This,pcbSize) (This)->lpVtbl->GetBufferNotifySize(This,pcbSize)
  4746. #define ISpMMSysAudio_SetBufferNotifySize(This,cbSize) (This)->lpVtbl->SetBufferNotifySize(This,cbSize)
  4747. /*** ISpMMSysAudio methods ***/
  4748. #define ISpMMSysAudio_GetDeviceId(This,puDeviceId) (This)->lpVtbl->GetDeviceId(This,puDeviceId)
  4749. #define ISpMMSysAudio_SetDeviceId(This,uDeviceId) (This)->lpVtbl->SetDeviceId(This,uDeviceId)
  4750. #define ISpMMSysAudio_GetMMHandle(This,pHandle) (This)->lpVtbl->GetMMHandle(This,pHandle)
  4751. #define ISpMMSysAudio_GetLineId(This,puLineId) (This)->lpVtbl->GetLineId(This,puLineId)
  4752. #define ISpMMSysAudio_SetLineId(This,uLineId) (This)->lpVtbl->SetLineId(This,uLineId)
  4753. #else
  4754. /*** IUnknown methods ***/
  4755. static FORCEINLINE HRESULT ISpMMSysAudio_QueryInterface(ISpMMSysAudio* This,REFIID riid,void **ppvObject) {
  4756. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  4757. }
  4758. static FORCEINLINE ULONG ISpMMSysAudio_AddRef(ISpMMSysAudio* This) {
  4759. return This->lpVtbl->AddRef(This);
  4760. }
  4761. static FORCEINLINE ULONG ISpMMSysAudio_Release(ISpMMSysAudio* This) {
  4762. return This->lpVtbl->Release(This);
  4763. }
  4764. /*** ISequentialStream methods ***/
  4765. static FORCEINLINE HRESULT ISpMMSysAudio_Read(ISpMMSysAudio* This,void *pv,ULONG cb,ULONG *pcbRead) {
  4766. return This->lpVtbl->Read(This,pv,cb,pcbRead);
  4767. }
  4768. static FORCEINLINE HRESULT ISpMMSysAudio_Write(ISpMMSysAudio* This,const void *pv,ULONG cb,ULONG *pcbWritten) {
  4769. return This->lpVtbl->Write(This,pv,cb,pcbWritten);
  4770. }
  4771. /*** IStream methods ***/
  4772. static FORCEINLINE HRESULT ISpMMSysAudio_Seek(ISpMMSysAudio* This,LARGE_INTEGER dlibMove,DWORD dwOrigin,ULARGE_INTEGER *plibNewPosition) {
  4773. return This->lpVtbl->Seek(This,dlibMove,dwOrigin,plibNewPosition);
  4774. }
  4775. static FORCEINLINE HRESULT ISpMMSysAudio_SetSize(ISpMMSysAudio* This,ULARGE_INTEGER libNewSize) {
  4776. return This->lpVtbl->SetSize(This,libNewSize);
  4777. }
  4778. static FORCEINLINE HRESULT ISpMMSysAudio_CopyTo(ISpMMSysAudio* This,IStream *pstm,ULARGE_INTEGER cb,ULARGE_INTEGER *pcbRead,ULARGE_INTEGER *pcbWritten) {
  4779. return This->lpVtbl->CopyTo(This,pstm,cb,pcbRead,pcbWritten);
  4780. }
  4781. static FORCEINLINE HRESULT ISpMMSysAudio_Commit(ISpMMSysAudio* This,DWORD grfCommitFlags) {
  4782. return This->lpVtbl->Commit(This,grfCommitFlags);
  4783. }
  4784. static FORCEINLINE HRESULT ISpMMSysAudio_Revert(ISpMMSysAudio* This) {
  4785. return This->lpVtbl->Revert(This);
  4786. }
  4787. static FORCEINLINE HRESULT ISpMMSysAudio_LockRegion(ISpMMSysAudio* This,ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType) {
  4788. return This->lpVtbl->LockRegion(This,libOffset,cb,dwLockType);
  4789. }
  4790. static FORCEINLINE HRESULT ISpMMSysAudio_UnlockRegion(ISpMMSysAudio* This,ULARGE_INTEGER libOffset,ULARGE_INTEGER cb,DWORD dwLockType) {
  4791. return This->lpVtbl->UnlockRegion(This,libOffset,cb,dwLockType);
  4792. }
  4793. static FORCEINLINE HRESULT ISpMMSysAudio_Stat(ISpMMSysAudio* This,STATSTG *pstatstg,DWORD grfStatFlag) {
  4794. return This->lpVtbl->Stat(This,pstatstg,grfStatFlag);
  4795. }
  4796. static FORCEINLINE HRESULT ISpMMSysAudio_Clone(ISpMMSysAudio* This,IStream **ppstm) {
  4797. return This->lpVtbl->Clone(This,ppstm);
  4798. }
  4799. /*** ISpStreamFormat methods ***/
  4800. static FORCEINLINE HRESULT ISpMMSysAudio_GetFormat(ISpMMSysAudio* This,GUID *pguidFormatId,WAVEFORMATEX **ppCoMemWaveFormatEx) {
  4801. return This->lpVtbl->GetFormat(This,pguidFormatId,ppCoMemWaveFormatEx);
  4802. }
  4803. /*** ISpAudio methods ***/
  4804. static FORCEINLINE HRESULT ISpMMSysAudio_SetState(ISpMMSysAudio* This,SPAUDIOSTATE NewState,ULONGLONG ullReserved) {
  4805. return This->lpVtbl->SetState(This,NewState,ullReserved);
  4806. }
  4807. static FORCEINLINE HRESULT ISpMMSysAudio_SetFormat(ISpMMSysAudio* This,REFGUID rguidFmtId,const WAVEFORMATEX *pWaveFormatEx) {
  4808. return This->lpVtbl->SetFormat(This,rguidFmtId,pWaveFormatEx);
  4809. }
  4810. static FORCEINLINE HRESULT ISpMMSysAudio_GetStatus(ISpMMSysAudio* This,SPAUDIOSTATUS *pStatus) {
  4811. return This->lpVtbl->GetStatus(This,pStatus);
  4812. }
  4813. static FORCEINLINE HRESULT ISpMMSysAudio_SetBufferInfo(ISpMMSysAudio* This,const SPAUDIOBUFFERINFO *pBuffInfo) {
  4814. return This->lpVtbl->SetBufferInfo(This,pBuffInfo);
  4815. }
  4816. static FORCEINLINE HRESULT ISpMMSysAudio_GetBufferInfo(ISpMMSysAudio* This,SPAUDIOBUFFERINFO *pBuffInfo) {
  4817. return This->lpVtbl->GetBufferInfo(This,pBuffInfo);
  4818. }
  4819. static FORCEINLINE HRESULT ISpMMSysAudio_GetDefaultFormat(ISpMMSysAudio* This,GUID *pFormatId,WAVEFORMATEX **ppCoMemWaveFormatEx) {
  4820. return This->lpVtbl->GetDefaultFormat(This,pFormatId,ppCoMemWaveFormatEx);
  4821. }
  4822. static FORCEINLINE HANDLE ISpMMSysAudio_EventHandle(ISpMMSysAudio* This) {
  4823. return This->lpVtbl->EventHandle(This);
  4824. }
  4825. static FORCEINLINE HRESULT ISpMMSysAudio_GetVolumeLevel(ISpMMSysAudio* This,ULONG *pLevel) {
  4826. return This->lpVtbl->GetVolumeLevel(This,pLevel);
  4827. }
  4828. static FORCEINLINE HRESULT ISpMMSysAudio_SetVolumeLevel(ISpMMSysAudio* This,ULONG Level) {
  4829. return This->lpVtbl->SetVolumeLevel(This,Level);
  4830. }
  4831. static FORCEINLINE HRESULT ISpMMSysAudio_GetBufferNotifySize(ISpMMSysAudio* This,ULONG *pcbSize) {
  4832. return This->lpVtbl->GetBufferNotifySize(This,pcbSize);
  4833. }
  4834. static FORCEINLINE HRESULT ISpMMSysAudio_SetBufferNotifySize(ISpMMSysAudio* This,ULONG cbSize) {
  4835. return This->lpVtbl->SetBufferNotifySize(This,cbSize);
  4836. }
  4837. /*** ISpMMSysAudio methods ***/
  4838. static FORCEINLINE HRESULT ISpMMSysAudio_GetDeviceId(ISpMMSysAudio* This,UINT *puDeviceId) {
  4839. return This->lpVtbl->GetDeviceId(This,puDeviceId);
  4840. }
  4841. static FORCEINLINE HRESULT ISpMMSysAudio_SetDeviceId(ISpMMSysAudio* This,UINT uDeviceId) {
  4842. return This->lpVtbl->SetDeviceId(This,uDeviceId);
  4843. }
  4844. static FORCEINLINE HRESULT ISpMMSysAudio_GetMMHandle(ISpMMSysAudio* This,void **pHandle) {
  4845. return This->lpVtbl->GetMMHandle(This,pHandle);
  4846. }
  4847. static FORCEINLINE HRESULT ISpMMSysAudio_GetLineId(ISpMMSysAudio* This,UINT *puLineId) {
  4848. return This->lpVtbl->GetLineId(This,puLineId);
  4849. }
  4850. static FORCEINLINE HRESULT ISpMMSysAudio_SetLineId(ISpMMSysAudio* This,UINT uLineId) {
  4851. return This->lpVtbl->SetLineId(This,uLineId);
  4852. }
  4853. #endif
  4854. #endif
  4855. #endif
  4856. #endif /* __ISpMMSysAudio_INTERFACE_DEFINED__ */
  4857. /*****************************************************************************
  4858. * ISpTranscript interface
  4859. */
  4860. #ifndef __ISpTranscript_INTERFACE_DEFINED__
  4861. #define __ISpTranscript_INTERFACE_DEFINED__
  4862. DEFINE_GUID(IID_ISpTranscript, 0x10f63bce, 0x201a, 0x11d3, 0xac,0x70, 0x00,0xc0,0x4f,0x8e,0xe6,0xc0);
  4863. #if defined(__cplusplus) && !defined(CINTERFACE)
  4864. MIDL_INTERFACE("10f63bce-201a-11d3-ac70-00c04f8ee6c0")
  4865. ISpTranscript : public IUnknown
  4866. {
  4867. virtual HRESULT STDMETHODCALLTYPE GetTranscript(
  4868. LPWSTR *ppszTranscript) = 0;
  4869. virtual HRESULT STDMETHODCALLTYPE AppendTranscript(
  4870. LPCWSTR pszTranscript) = 0;
  4871. };
  4872. #ifdef __CRT_UUID_DECL
  4873. __CRT_UUID_DECL(ISpTranscript, 0x10f63bce, 0x201a, 0x11d3, 0xac,0x70, 0x00,0xc0,0x4f,0x8e,0xe6,0xc0)
  4874. #endif
  4875. #else
  4876. typedef struct ISpTranscriptVtbl {
  4877. BEGIN_INTERFACE
  4878. /*** IUnknown methods ***/
  4879. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  4880. ISpTranscript *This,
  4881. REFIID riid,
  4882. void **ppvObject);
  4883. ULONG (STDMETHODCALLTYPE *AddRef)(
  4884. ISpTranscript *This);
  4885. ULONG (STDMETHODCALLTYPE *Release)(
  4886. ISpTranscript *This);
  4887. /*** ISpTranscript methods ***/
  4888. HRESULT (STDMETHODCALLTYPE *GetTranscript)(
  4889. ISpTranscript *This,
  4890. LPWSTR *ppszTranscript);
  4891. HRESULT (STDMETHODCALLTYPE *AppendTranscript)(
  4892. ISpTranscript *This,
  4893. LPCWSTR pszTranscript);
  4894. END_INTERFACE
  4895. } ISpTranscriptVtbl;
  4896. interface ISpTranscript {
  4897. CONST_VTBL ISpTranscriptVtbl* lpVtbl;
  4898. };
  4899. #ifdef COBJMACROS
  4900. #ifndef WIDL_C_INLINE_WRAPPERS
  4901. /*** IUnknown methods ***/
  4902. #define ISpTranscript_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  4903. #define ISpTranscript_AddRef(This) (This)->lpVtbl->AddRef(This)
  4904. #define ISpTranscript_Release(This) (This)->lpVtbl->Release(This)
  4905. /*** ISpTranscript methods ***/
  4906. #define ISpTranscript_GetTranscript(This,ppszTranscript) (This)->lpVtbl->GetTranscript(This,ppszTranscript)
  4907. #define ISpTranscript_AppendTranscript(This,pszTranscript) (This)->lpVtbl->AppendTranscript(This,pszTranscript)
  4908. #else
  4909. /*** IUnknown methods ***/
  4910. static FORCEINLINE HRESULT ISpTranscript_QueryInterface(ISpTranscript* This,REFIID riid,void **ppvObject) {
  4911. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  4912. }
  4913. static FORCEINLINE ULONG ISpTranscript_AddRef(ISpTranscript* This) {
  4914. return This->lpVtbl->AddRef(This);
  4915. }
  4916. static FORCEINLINE ULONG ISpTranscript_Release(ISpTranscript* This) {
  4917. return This->lpVtbl->Release(This);
  4918. }
  4919. /*** ISpTranscript methods ***/
  4920. static FORCEINLINE HRESULT ISpTranscript_GetTranscript(ISpTranscript* This,LPWSTR *ppszTranscript) {
  4921. return This->lpVtbl->GetTranscript(This,ppszTranscript);
  4922. }
  4923. static FORCEINLINE HRESULT ISpTranscript_AppendTranscript(ISpTranscript* This,LPCWSTR pszTranscript) {
  4924. return This->lpVtbl->AppendTranscript(This,pszTranscript);
  4925. }
  4926. #endif
  4927. #endif
  4928. #endif
  4929. #endif /* __ISpTranscript_INTERFACE_DEFINED__ */
  4930. typedef WCHAR SPPHONEID;
  4931. typedef LPWSTR PSPPHONEID;
  4932. typedef LPCWSTR PCSPPHONEID;
  4933. typedef struct SPPHRASEELEMENT {
  4934. ULONG ulAudioTimeOffset;
  4935. ULONG ulAudioSizeTime;
  4936. ULONG ulAudioStreamOffset;
  4937. ULONG ulAudioSizeBytes;
  4938. ULONG ulRetainedStreamOffset;
  4939. ULONG ulRetainedSizeBytes;
  4940. LPCWSTR pszDisplayText;
  4941. LPCWSTR pszLexicalForm;
  4942. const SPPHONEID *pszPronunciation;
  4943. BYTE bDisplayAttributes;
  4944. signed char RequiredConfidence;
  4945. signed char ActualConfidence;
  4946. BYTE Reserved;
  4947. float SREngineConfidence;
  4948. } SPPHRASEELEMENT;
  4949. typedef struct SPPHRASERULE SPPHRASERULE;
  4950. typedef struct SPPHRASEPROPERTY SPPHRASEPROPERTY;
  4951. struct SPPHRASERULE {
  4952. LPCWSTR pszName;
  4953. ULONG ulId;
  4954. ULONG ulFirstElement;
  4955. ULONG ulCountOfElements;
  4956. const SPPHRASERULE *pNextSibling;
  4957. const SPPHRASERULE *pFirstChild;
  4958. float SREngineConfidence;
  4959. signed char Confidence;
  4960. };
  4961. struct SPPHRASEPROPERTY {
  4962. LPCWSTR pszName;
  4963. __C89_NAMELESS union {
  4964. ULONG ulId;
  4965. __C89_NAMELESS struct {
  4966. byte bType;
  4967. byte bReserved;
  4968. unsigned short usArrayIndex;
  4969. } __C89_NAMELESSSTRUCTNAME;
  4970. } __C89_NAMELESSUNIONNAME;
  4971. LPCWSTR pszValue;
  4972. VARIANT vValue;
  4973. ULONG ulFirstElement;
  4974. ULONG ulCountOfElements;
  4975. const SPPHRASEPROPERTY *pNextSibling;
  4976. const SPPHRASEPROPERTY *pFirstChild;
  4977. float SREngineConfidence;
  4978. signed char Confidence;
  4979. };
  4980. typedef struct SPPHRASEREPLACEMENT {
  4981. BYTE bDisplayAttributes;
  4982. LPCWSTR pszReplacementText;
  4983. ULONG ulFirstElement;
  4984. ULONG ulCountOfElements;
  4985. } SPPHRASEREPLACEMENT;
  4986. typedef struct SPSEMANTICERRORINFO {
  4987. ULONG ulLineNumber;
  4988. LPWSTR pszScriptLine;
  4989. LPWSTR pszSource;
  4990. LPWSTR pszDescription;
  4991. HRESULT hrResultCode;
  4992. } SPSEMANTICERRORINFO;
  4993. typedef struct SPPHRASE_50 {
  4994. ULONG cbSize;
  4995. WORD LangID;
  4996. WORD wHomophoneGroupId;
  4997. ULONGLONG ullGrammarID;
  4998. ULONGLONG ftStartTime;
  4999. ULONGLONG ullAudioStreamPosition;
  5000. ULONG ulAudioSizeBytes;
  5001. ULONG ulRetainedSizeBytes;
  5002. ULONG ulAudioSizeTime;
  5003. SPPHRASERULE Rule;
  5004. const SPPHRASEPROPERTY *pProperties;
  5005. const SPPHRASEELEMENT *pElements;
  5006. ULONG cReplacements;
  5007. const SPPHRASEREPLACEMENT *pReplacements;
  5008. GUID SREngineID;
  5009. ULONG ulSREnginePrivateDataSize;
  5010. const BYTE *pSREnginePrivateData;
  5011. } SPPHRASE_50;
  5012. #define SP_SPPHRASESIZE_500 sizeof (SPPHRASE_50)
  5013. #ifdef __cplusplus
  5014. typedef struct SPPHRASE_53 : public SPPHRASE_50 {
  5015. LPWSTR pSML;
  5016. SPSEMANTICERRORINFO* pSemanticErrorInfo;
  5017. } SPPHRASE_53;
  5018. #else
  5019. typedef struct SPPHRASE_53 {
  5020. ULONG cbSize;
  5021. WORD LangID;
  5022. WORD wHomophoneGroupId;
  5023. ULONGLONG ullGrammarID;
  5024. ULONGLONG ftStartTime;
  5025. ULONGLONG ullAudioStreamPosition;
  5026. ULONG ulAudioSizeBytes;
  5027. ULONG ulRetainedSizeBytes;
  5028. ULONG ulAudioSizeTime;
  5029. SPPHRASERULE Rule;
  5030. const SPPHRASEPROPERTY *pProperties;
  5031. const SPPHRASEELEMENT *pElements;
  5032. ULONG cReplacements;
  5033. const SPPHRASEREPLACEMENT *pReplacements;
  5034. GUID SREngineID;
  5035. ULONG ulSREnginePrivateDataSize;
  5036. const BYTE *pSREnginePrivateData;
  5037. LPWSTR pSML;
  5038. SPSEMANTICERRORINFO *pSemanticErrorInfo;
  5039. } SPPHRASE_53;
  5040. #endif
  5041. #define SP_SPPHRASESIZE_530 sizeof (SPPHRASE_53)
  5042. #ifdef __cplusplus
  5043. typedef struct SPPHRASE : public SPPHRASE_53 {
  5044. SPSEMANTICFORMAT SemanticTagFormat;
  5045. } SPPHRASE;
  5046. #else
  5047. typedef struct SPPHRASE {
  5048. ULONG cbSize;
  5049. WORD LangID;
  5050. WORD wHomophoneGroupId;
  5051. ULONGLONG ullGrammarID;
  5052. ULONGLONG ftStartTime;
  5053. ULONGLONG ullAudioStreamPosition;
  5054. ULONG ulAudioSizeBytes;
  5055. ULONG ulRetainedSizeBytes;
  5056. ULONG ulAudioSizeTime;
  5057. SPPHRASERULE Rule;
  5058. const SPPHRASEPROPERTY *pProperties;
  5059. const SPPHRASEELEMENT *pElements;
  5060. ULONG cReplacements;
  5061. const SPPHRASEREPLACEMENT *pReplacements;
  5062. GUID SREngineID;
  5063. ULONG ulSREnginePrivateDataSize;
  5064. const BYTE *pSREnginePrivateData;
  5065. LPWSTR pSML;
  5066. SPSEMANTICERRORINFO *pSemanticErrorInfo;
  5067. SPSEMANTICFORMAT SemanticTagFormat;
  5068. } SPPHRASE;
  5069. #endif
  5070. typedef struct SPSERIALIZEDPHRASE {
  5071. ULONG ulSerializedSize;
  5072. } SPSERIALIZEDPHRASE;
  5073. typedef struct SPRULE {
  5074. LPCWSTR pszRuleName;
  5075. ULONG ulRuleId;
  5076. DWORD dwAttributes;
  5077. } SPRULE;
  5078. typedef struct SPBINARYGRAMMAR {
  5079. ULONG ulTotalSerializedSize;
  5080. } SPBINARYGRAMMAR;
  5081. #if 0
  5082. typedef void *SPSTATEHANDLE;
  5083. #else
  5084. DECLARE_HANDLE(SPSTATEHANDLE);
  5085. #endif
  5086. typedef struct SPWORDPRONUNCIATION {
  5087. struct SPWORDPRONUNCIATION *pNextWordPronunciation;
  5088. SPLEXICONTYPE eLexiconType;
  5089. WORD LangID;
  5090. WORD wPronunciationFlags;
  5091. SPPARTOFSPEECH ePartOfSpeech;
  5092. SPPHONEID szPronunciation[1];
  5093. } SPWORDPRONUNCIATION;
  5094. typedef struct SPWORDPRONUNCIATIONLIST {
  5095. ULONG ulSize;
  5096. BYTE *pvBuffer;
  5097. SPWORDPRONUNCIATION *pFirstWordPronunciation;
  5098. } SPWORDPRONUNCIATIONLIST;
  5099. typedef struct SPWORD {
  5100. struct SPWORD *pNextWord;
  5101. WORD LangID;
  5102. WORD wReserved;
  5103. SPWORDTYPE eWordType;
  5104. LPWSTR pszWord;
  5105. SPWORDPRONUNCIATION *pFirstWordPronunciation;
  5106. } SPWORD;
  5107. typedef struct SPWORDLIST {
  5108. ULONG ulSize;
  5109. BYTE *pvBuffer;
  5110. SPWORD *pFirstWord;
  5111. } SPWORDLIST;
  5112. /*****************************************************************************
  5113. * ISpLexicon interface
  5114. */
  5115. #ifndef __ISpLexicon_INTERFACE_DEFINED__
  5116. #define __ISpLexicon_INTERFACE_DEFINED__
  5117. DEFINE_GUID(IID_ISpLexicon, 0xda41a7c2, 0x5383, 0x4db2, 0x91,0x6b, 0x6c,0x17,0x19,0xe3,0xdb,0x58);
  5118. #if defined(__cplusplus) && !defined(CINTERFACE)
  5119. MIDL_INTERFACE("da41a7c2-5383-4db2-916b-6c1719e3db58")
  5120. ISpLexicon : public IUnknown
  5121. {
  5122. virtual HRESULT STDMETHODCALLTYPE GetPronunciations(
  5123. LPCWSTR pszWord,
  5124. WORD LangID,
  5125. DWORD dwFlags,
  5126. SPWORDPRONUNCIATIONLIST *pWordPronunciationList) = 0;
  5127. virtual HRESULT STDMETHODCALLTYPE AddPronunciation(
  5128. LPCWSTR pszWord,
  5129. WORD LangID,
  5130. SPPARTOFSPEECH ePartOfSpeech,
  5131. PCSPPHONEID pszPronunciation) = 0;
  5132. virtual HRESULT STDMETHODCALLTYPE RemovePronunciation(
  5133. LPCWSTR pszWord,
  5134. WORD LangID,
  5135. SPPARTOFSPEECH ePartOfSpeech,
  5136. PCSPPHONEID pszPronunciation) = 0;
  5137. virtual HRESULT STDMETHODCALLTYPE GetGeneration(
  5138. DWORD *pdwGeneration) = 0;
  5139. virtual HRESULT STDMETHODCALLTYPE GetGenerationChange(
  5140. DWORD dwFlags,
  5141. DWORD *pdwGeneration,
  5142. SPWORDLIST *pWordList) = 0;
  5143. virtual HRESULT STDMETHODCALLTYPE GetWords(
  5144. DWORD dwFlags,
  5145. DWORD *pdwGeneration,
  5146. DWORD *pdwCookie,
  5147. SPWORDLIST *pWordList) = 0;
  5148. };
  5149. #ifdef __CRT_UUID_DECL
  5150. __CRT_UUID_DECL(ISpLexicon, 0xda41a7c2, 0x5383, 0x4db2, 0x91,0x6b, 0x6c,0x17,0x19,0xe3,0xdb,0x58)
  5151. #endif
  5152. #else
  5153. typedef struct ISpLexiconVtbl {
  5154. BEGIN_INTERFACE
  5155. /*** IUnknown methods ***/
  5156. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5157. ISpLexicon *This,
  5158. REFIID riid,
  5159. void **ppvObject);
  5160. ULONG (STDMETHODCALLTYPE *AddRef)(
  5161. ISpLexicon *This);
  5162. ULONG (STDMETHODCALLTYPE *Release)(
  5163. ISpLexicon *This);
  5164. /*** ISpLexicon methods ***/
  5165. HRESULT (STDMETHODCALLTYPE *GetPronunciations)(
  5166. ISpLexicon *This,
  5167. LPCWSTR pszWord,
  5168. WORD LangID,
  5169. DWORD dwFlags,
  5170. SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
  5171. HRESULT (STDMETHODCALLTYPE *AddPronunciation)(
  5172. ISpLexicon *This,
  5173. LPCWSTR pszWord,
  5174. WORD LangID,
  5175. SPPARTOFSPEECH ePartOfSpeech,
  5176. PCSPPHONEID pszPronunciation);
  5177. HRESULT (STDMETHODCALLTYPE *RemovePronunciation)(
  5178. ISpLexicon *This,
  5179. LPCWSTR pszWord,
  5180. WORD LangID,
  5181. SPPARTOFSPEECH ePartOfSpeech,
  5182. PCSPPHONEID pszPronunciation);
  5183. HRESULT (STDMETHODCALLTYPE *GetGeneration)(
  5184. ISpLexicon *This,
  5185. DWORD *pdwGeneration);
  5186. HRESULT (STDMETHODCALLTYPE *GetGenerationChange)(
  5187. ISpLexicon *This,
  5188. DWORD dwFlags,
  5189. DWORD *pdwGeneration,
  5190. SPWORDLIST *pWordList);
  5191. HRESULT (STDMETHODCALLTYPE *GetWords)(
  5192. ISpLexicon *This,
  5193. DWORD dwFlags,
  5194. DWORD *pdwGeneration,
  5195. DWORD *pdwCookie,
  5196. SPWORDLIST *pWordList);
  5197. END_INTERFACE
  5198. } ISpLexiconVtbl;
  5199. interface ISpLexicon {
  5200. CONST_VTBL ISpLexiconVtbl* lpVtbl;
  5201. };
  5202. #ifdef COBJMACROS
  5203. #ifndef WIDL_C_INLINE_WRAPPERS
  5204. /*** IUnknown methods ***/
  5205. #define ISpLexicon_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5206. #define ISpLexicon_AddRef(This) (This)->lpVtbl->AddRef(This)
  5207. #define ISpLexicon_Release(This) (This)->lpVtbl->Release(This)
  5208. /*** ISpLexicon methods ***/
  5209. #define ISpLexicon_GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList) (This)->lpVtbl->GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList)
  5210. #define ISpLexicon_AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) (This)->lpVtbl->AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  5211. #define ISpLexicon_RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) (This)->lpVtbl->RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  5212. #define ISpLexicon_GetGeneration(This,pdwGeneration) (This)->lpVtbl->GetGeneration(This,pdwGeneration)
  5213. #define ISpLexicon_GetGenerationChange(This,dwFlags,pdwGeneration,pWordList) (This)->lpVtbl->GetGenerationChange(This,dwFlags,pdwGeneration,pWordList)
  5214. #define ISpLexicon_GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList) (This)->lpVtbl->GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList)
  5215. #else
  5216. /*** IUnknown methods ***/
  5217. static FORCEINLINE HRESULT ISpLexicon_QueryInterface(ISpLexicon* This,REFIID riid,void **ppvObject) {
  5218. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5219. }
  5220. static FORCEINLINE ULONG ISpLexicon_AddRef(ISpLexicon* This) {
  5221. return This->lpVtbl->AddRef(This);
  5222. }
  5223. static FORCEINLINE ULONG ISpLexicon_Release(ISpLexicon* This) {
  5224. return This->lpVtbl->Release(This);
  5225. }
  5226. /*** ISpLexicon methods ***/
  5227. static FORCEINLINE HRESULT ISpLexicon_GetPronunciations(ISpLexicon* This,LPCWSTR pszWord,WORD LangID,DWORD dwFlags,SPWORDPRONUNCIATIONLIST *pWordPronunciationList) {
  5228. return This->lpVtbl->GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList);
  5229. }
  5230. static FORCEINLINE HRESULT ISpLexicon_AddPronunciation(ISpLexicon* This,LPCWSTR pszWord,WORD LangID,SPPARTOFSPEECH ePartOfSpeech,PCSPPHONEID pszPronunciation) {
  5231. return This->lpVtbl->AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation);
  5232. }
  5233. static FORCEINLINE HRESULT ISpLexicon_RemovePronunciation(ISpLexicon* This,LPCWSTR pszWord,WORD LangID,SPPARTOFSPEECH ePartOfSpeech,PCSPPHONEID pszPronunciation) {
  5234. return This->lpVtbl->RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation);
  5235. }
  5236. static FORCEINLINE HRESULT ISpLexicon_GetGeneration(ISpLexicon* This,DWORD *pdwGeneration) {
  5237. return This->lpVtbl->GetGeneration(This,pdwGeneration);
  5238. }
  5239. static FORCEINLINE HRESULT ISpLexicon_GetGenerationChange(ISpLexicon* This,DWORD dwFlags,DWORD *pdwGeneration,SPWORDLIST *pWordList) {
  5240. return This->lpVtbl->GetGenerationChange(This,dwFlags,pdwGeneration,pWordList);
  5241. }
  5242. static FORCEINLINE HRESULT ISpLexicon_GetWords(ISpLexicon* This,DWORD dwFlags,DWORD *pdwGeneration,DWORD *pdwCookie,SPWORDLIST *pWordList) {
  5243. return This->lpVtbl->GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList);
  5244. }
  5245. #endif
  5246. #endif
  5247. #endif
  5248. #endif /* __ISpLexicon_INTERFACE_DEFINED__ */
  5249. /*****************************************************************************
  5250. * ISpContainerLexicon interface
  5251. */
  5252. #ifndef __ISpContainerLexicon_INTERFACE_DEFINED__
  5253. #define __ISpContainerLexicon_INTERFACE_DEFINED__
  5254. DEFINE_GUID(IID_ISpContainerLexicon, 0x8565572f, 0xc094, 0x41cc, 0xb5,0x6e, 0x10,0xbd,0x9c,0x3f,0xf0,0x44);
  5255. #if defined(__cplusplus) && !defined(CINTERFACE)
  5256. MIDL_INTERFACE("8565572f-c094-41cc-b56e-10bd9c3ff044")
  5257. ISpContainerLexicon : public ISpLexicon
  5258. {
  5259. virtual HRESULT STDMETHODCALLTYPE AddLexicon(
  5260. ISpLexicon *pAddLexicon,
  5261. DWORD dwFlags) = 0;
  5262. };
  5263. #ifdef __CRT_UUID_DECL
  5264. __CRT_UUID_DECL(ISpContainerLexicon, 0x8565572f, 0xc094, 0x41cc, 0xb5,0x6e, 0x10,0xbd,0x9c,0x3f,0xf0,0x44)
  5265. #endif
  5266. #else
  5267. typedef struct ISpContainerLexiconVtbl {
  5268. BEGIN_INTERFACE
  5269. /*** IUnknown methods ***/
  5270. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5271. ISpContainerLexicon *This,
  5272. REFIID riid,
  5273. void **ppvObject);
  5274. ULONG (STDMETHODCALLTYPE *AddRef)(
  5275. ISpContainerLexicon *This);
  5276. ULONG (STDMETHODCALLTYPE *Release)(
  5277. ISpContainerLexicon *This);
  5278. /*** ISpLexicon methods ***/
  5279. HRESULT (STDMETHODCALLTYPE *GetPronunciations)(
  5280. ISpContainerLexicon *This,
  5281. LPCWSTR pszWord,
  5282. WORD LangID,
  5283. DWORD dwFlags,
  5284. SPWORDPRONUNCIATIONLIST *pWordPronunciationList);
  5285. HRESULT (STDMETHODCALLTYPE *AddPronunciation)(
  5286. ISpContainerLexicon *This,
  5287. LPCWSTR pszWord,
  5288. WORD LangID,
  5289. SPPARTOFSPEECH ePartOfSpeech,
  5290. PCSPPHONEID pszPronunciation);
  5291. HRESULT (STDMETHODCALLTYPE *RemovePronunciation)(
  5292. ISpContainerLexicon *This,
  5293. LPCWSTR pszWord,
  5294. WORD LangID,
  5295. SPPARTOFSPEECH ePartOfSpeech,
  5296. PCSPPHONEID pszPronunciation);
  5297. HRESULT (STDMETHODCALLTYPE *GetGeneration)(
  5298. ISpContainerLexicon *This,
  5299. DWORD *pdwGeneration);
  5300. HRESULT (STDMETHODCALLTYPE *GetGenerationChange)(
  5301. ISpContainerLexicon *This,
  5302. DWORD dwFlags,
  5303. DWORD *pdwGeneration,
  5304. SPWORDLIST *pWordList);
  5305. HRESULT (STDMETHODCALLTYPE *GetWords)(
  5306. ISpContainerLexicon *This,
  5307. DWORD dwFlags,
  5308. DWORD *pdwGeneration,
  5309. DWORD *pdwCookie,
  5310. SPWORDLIST *pWordList);
  5311. /*** ISpContainerLexicon methods ***/
  5312. HRESULT (STDMETHODCALLTYPE *AddLexicon)(
  5313. ISpContainerLexicon *This,
  5314. ISpLexicon *pAddLexicon,
  5315. DWORD dwFlags);
  5316. END_INTERFACE
  5317. } ISpContainerLexiconVtbl;
  5318. interface ISpContainerLexicon {
  5319. CONST_VTBL ISpContainerLexiconVtbl* lpVtbl;
  5320. };
  5321. #ifdef COBJMACROS
  5322. #ifndef WIDL_C_INLINE_WRAPPERS
  5323. /*** IUnknown methods ***/
  5324. #define ISpContainerLexicon_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5325. #define ISpContainerLexicon_AddRef(This) (This)->lpVtbl->AddRef(This)
  5326. #define ISpContainerLexicon_Release(This) (This)->lpVtbl->Release(This)
  5327. /*** ISpLexicon methods ***/
  5328. #define ISpContainerLexicon_GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList) (This)->lpVtbl->GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList)
  5329. #define ISpContainerLexicon_AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) (This)->lpVtbl->AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  5330. #define ISpContainerLexicon_RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation) (This)->lpVtbl->RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation)
  5331. #define ISpContainerLexicon_GetGeneration(This,pdwGeneration) (This)->lpVtbl->GetGeneration(This,pdwGeneration)
  5332. #define ISpContainerLexicon_GetGenerationChange(This,dwFlags,pdwGeneration,pWordList) (This)->lpVtbl->GetGenerationChange(This,dwFlags,pdwGeneration,pWordList)
  5333. #define ISpContainerLexicon_GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList) (This)->lpVtbl->GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList)
  5334. /*** ISpContainerLexicon methods ***/
  5335. #define ISpContainerLexicon_AddLexicon(This,pAddLexicon,dwFlags) (This)->lpVtbl->AddLexicon(This,pAddLexicon,dwFlags)
  5336. #else
  5337. /*** IUnknown methods ***/
  5338. static FORCEINLINE HRESULT ISpContainerLexicon_QueryInterface(ISpContainerLexicon* This,REFIID riid,void **ppvObject) {
  5339. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5340. }
  5341. static FORCEINLINE ULONG ISpContainerLexicon_AddRef(ISpContainerLexicon* This) {
  5342. return This->lpVtbl->AddRef(This);
  5343. }
  5344. static FORCEINLINE ULONG ISpContainerLexicon_Release(ISpContainerLexicon* This) {
  5345. return This->lpVtbl->Release(This);
  5346. }
  5347. /*** ISpLexicon methods ***/
  5348. static FORCEINLINE HRESULT ISpContainerLexicon_GetPronunciations(ISpContainerLexicon* This,LPCWSTR pszWord,WORD LangID,DWORD dwFlags,SPWORDPRONUNCIATIONLIST *pWordPronunciationList) {
  5349. return This->lpVtbl->GetPronunciations(This,pszWord,LangID,dwFlags,pWordPronunciationList);
  5350. }
  5351. static FORCEINLINE HRESULT ISpContainerLexicon_AddPronunciation(ISpContainerLexicon* This,LPCWSTR pszWord,WORD LangID,SPPARTOFSPEECH ePartOfSpeech,PCSPPHONEID pszPronunciation) {
  5352. return This->lpVtbl->AddPronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation);
  5353. }
  5354. static FORCEINLINE HRESULT ISpContainerLexicon_RemovePronunciation(ISpContainerLexicon* This,LPCWSTR pszWord,WORD LangID,SPPARTOFSPEECH ePartOfSpeech,PCSPPHONEID pszPronunciation) {
  5355. return This->lpVtbl->RemovePronunciation(This,pszWord,LangID,ePartOfSpeech,pszPronunciation);
  5356. }
  5357. static FORCEINLINE HRESULT ISpContainerLexicon_GetGeneration(ISpContainerLexicon* This,DWORD *pdwGeneration) {
  5358. return This->lpVtbl->GetGeneration(This,pdwGeneration);
  5359. }
  5360. static FORCEINLINE HRESULT ISpContainerLexicon_GetGenerationChange(ISpContainerLexicon* This,DWORD dwFlags,DWORD *pdwGeneration,SPWORDLIST *pWordList) {
  5361. return This->lpVtbl->GetGenerationChange(This,dwFlags,pdwGeneration,pWordList);
  5362. }
  5363. static FORCEINLINE HRESULT ISpContainerLexicon_GetWords(ISpContainerLexicon* This,DWORD dwFlags,DWORD *pdwGeneration,DWORD *pdwCookie,SPWORDLIST *pWordList) {
  5364. return This->lpVtbl->GetWords(This,dwFlags,pdwGeneration,pdwCookie,pWordList);
  5365. }
  5366. /*** ISpContainerLexicon methods ***/
  5367. static FORCEINLINE HRESULT ISpContainerLexicon_AddLexicon(ISpContainerLexicon* This,ISpLexicon *pAddLexicon,DWORD dwFlags) {
  5368. return This->lpVtbl->AddLexicon(This,pAddLexicon,dwFlags);
  5369. }
  5370. #endif
  5371. #endif
  5372. #endif
  5373. #endif /* __ISpContainerLexicon_INTERFACE_DEFINED__ */
  5374. typedef struct SPSHORTCUTPAIR {
  5375. struct SPSHORTCUTPAIR *pNextSHORTCUTPAIR;
  5376. WORD LangID;
  5377. SPSHORTCUTTYPE shType;
  5378. LPWSTR pszDisplay;
  5379. LPWSTR pszSpoken;
  5380. } SPSHORTCUTPAIR;
  5381. typedef struct SPSHORTCUTPAIRLIST {
  5382. ULONG ulSize;
  5383. BYTE *pvBuffer;
  5384. SPSHORTCUTPAIR *pFirstShortcutPair;
  5385. } SPSHORTCUTPAIRLIST;
  5386. /*****************************************************************************
  5387. * ISpShortcut interface
  5388. */
  5389. #ifndef __ISpShortcut_INTERFACE_DEFINED__
  5390. #define __ISpShortcut_INTERFACE_DEFINED__
  5391. DEFINE_GUID(IID_ISpShortcut, 0x3df681e2, 0xea56, 0x11d9, 0x8b,0xde, 0xf6,0x6b,0xad,0x1e,0x3f,0x3a);
  5392. #if defined(__cplusplus) && !defined(CINTERFACE)
  5393. MIDL_INTERFACE("3df681e2-ea56-11d9-8bde-f66bad1e3f3a")
  5394. ISpShortcut : public IUnknown
  5395. {
  5396. virtual HRESULT STDMETHODCALLTYPE AddShortcut(
  5397. LPCWSTR pszDisplay,
  5398. WORD LangID,
  5399. LPCWSTR pszSpoken,
  5400. SPSHORTCUTTYPE shType) = 0;
  5401. virtual HRESULT STDMETHODCALLTYPE RemoveShortcut(
  5402. LPCWSTR pszDisplay,
  5403. WORD LangID,
  5404. LPCWSTR pszSpoken,
  5405. SPSHORTCUTTYPE shType) = 0;
  5406. virtual HRESULT STDMETHODCALLTYPE GetShortcuts(
  5407. WORD LangID,
  5408. SPSHORTCUTPAIRLIST *pShortcutpairList) = 0;
  5409. virtual HRESULT STDMETHODCALLTYPE GetGeneration(
  5410. DWORD *pdwGeneration) = 0;
  5411. virtual HRESULT STDMETHODCALLTYPE GetWordsFromGenerationChange(
  5412. DWORD *pdwGeneration,
  5413. SPWORDLIST *pWordList) = 0;
  5414. virtual HRESULT STDMETHODCALLTYPE GetWords(
  5415. DWORD *pdwGeneration,
  5416. DWORD *pdwCookie,
  5417. SPWORDLIST *pWordList) = 0;
  5418. virtual HRESULT STDMETHODCALLTYPE GetShortcutsForGeneration(
  5419. DWORD *pdwGeneration,
  5420. DWORD *pdwCookie,
  5421. SPSHORTCUTPAIRLIST *pShortcutpairList) = 0;
  5422. virtual HRESULT STDMETHODCALLTYPE GetGenerationChange(
  5423. DWORD *pdwGeneration,
  5424. SPSHORTCUTPAIRLIST *pShortcutpairList) = 0;
  5425. };
  5426. #ifdef __CRT_UUID_DECL
  5427. __CRT_UUID_DECL(ISpShortcut, 0x3df681e2, 0xea56, 0x11d9, 0x8b,0xde, 0xf6,0x6b,0xad,0x1e,0x3f,0x3a)
  5428. #endif
  5429. #else
  5430. typedef struct ISpShortcutVtbl {
  5431. BEGIN_INTERFACE
  5432. /*** IUnknown methods ***/
  5433. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5434. ISpShortcut *This,
  5435. REFIID riid,
  5436. void **ppvObject);
  5437. ULONG (STDMETHODCALLTYPE *AddRef)(
  5438. ISpShortcut *This);
  5439. ULONG (STDMETHODCALLTYPE *Release)(
  5440. ISpShortcut *This);
  5441. /*** ISpShortcut methods ***/
  5442. HRESULT (STDMETHODCALLTYPE *AddShortcut)(
  5443. ISpShortcut *This,
  5444. LPCWSTR pszDisplay,
  5445. WORD LangID,
  5446. LPCWSTR pszSpoken,
  5447. SPSHORTCUTTYPE shType);
  5448. HRESULT (STDMETHODCALLTYPE *RemoveShortcut)(
  5449. ISpShortcut *This,
  5450. LPCWSTR pszDisplay,
  5451. WORD LangID,
  5452. LPCWSTR pszSpoken,
  5453. SPSHORTCUTTYPE shType);
  5454. HRESULT (STDMETHODCALLTYPE *GetShortcuts)(
  5455. ISpShortcut *This,
  5456. WORD LangID,
  5457. SPSHORTCUTPAIRLIST *pShortcutpairList);
  5458. HRESULT (STDMETHODCALLTYPE *GetGeneration)(
  5459. ISpShortcut *This,
  5460. DWORD *pdwGeneration);
  5461. HRESULT (STDMETHODCALLTYPE *GetWordsFromGenerationChange)(
  5462. ISpShortcut *This,
  5463. DWORD *pdwGeneration,
  5464. SPWORDLIST *pWordList);
  5465. HRESULT (STDMETHODCALLTYPE *GetWords)(
  5466. ISpShortcut *This,
  5467. DWORD *pdwGeneration,
  5468. DWORD *pdwCookie,
  5469. SPWORDLIST *pWordList);
  5470. HRESULT (STDMETHODCALLTYPE *GetShortcutsForGeneration)(
  5471. ISpShortcut *This,
  5472. DWORD *pdwGeneration,
  5473. DWORD *pdwCookie,
  5474. SPSHORTCUTPAIRLIST *pShortcutpairList);
  5475. HRESULT (STDMETHODCALLTYPE *GetGenerationChange)(
  5476. ISpShortcut *This,
  5477. DWORD *pdwGeneration,
  5478. SPSHORTCUTPAIRLIST *pShortcutpairList);
  5479. END_INTERFACE
  5480. } ISpShortcutVtbl;
  5481. interface ISpShortcut {
  5482. CONST_VTBL ISpShortcutVtbl* lpVtbl;
  5483. };
  5484. #ifdef COBJMACROS
  5485. #ifndef WIDL_C_INLINE_WRAPPERS
  5486. /*** IUnknown methods ***/
  5487. #define ISpShortcut_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5488. #define ISpShortcut_AddRef(This) (This)->lpVtbl->AddRef(This)
  5489. #define ISpShortcut_Release(This) (This)->lpVtbl->Release(This)
  5490. /*** ISpShortcut methods ***/
  5491. #define ISpShortcut_AddShortcut(This,pszDisplay,LangID,pszSpoken,shType) (This)->lpVtbl->AddShortcut(This,pszDisplay,LangID,pszSpoken,shType)
  5492. #define ISpShortcut_RemoveShortcut(This,pszDisplay,LangID,pszSpoken,shType) (This)->lpVtbl->RemoveShortcut(This,pszDisplay,LangID,pszSpoken,shType)
  5493. #define ISpShortcut_GetShortcuts(This,LangID,pShortcutpairList) (This)->lpVtbl->GetShortcuts(This,LangID,pShortcutpairList)
  5494. #define ISpShortcut_GetGeneration(This,pdwGeneration) (This)->lpVtbl->GetGeneration(This,pdwGeneration)
  5495. #define ISpShortcut_GetWordsFromGenerationChange(This,pdwGeneration,pWordList) (This)->lpVtbl->GetWordsFromGenerationChange(This,pdwGeneration,pWordList)
  5496. #define ISpShortcut_GetWords(This,pdwGeneration,pdwCookie,pWordList) (This)->lpVtbl->GetWords(This,pdwGeneration,pdwCookie,pWordList)
  5497. #define ISpShortcut_GetShortcutsForGeneration(This,pdwGeneration,pdwCookie,pShortcutpairList) (This)->lpVtbl->GetShortcutsForGeneration(This,pdwGeneration,pdwCookie,pShortcutpairList)
  5498. #define ISpShortcut_GetGenerationChange(This,pdwGeneration,pShortcutpairList) (This)->lpVtbl->GetGenerationChange(This,pdwGeneration,pShortcutpairList)
  5499. #else
  5500. /*** IUnknown methods ***/
  5501. static FORCEINLINE HRESULT ISpShortcut_QueryInterface(ISpShortcut* This,REFIID riid,void **ppvObject) {
  5502. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5503. }
  5504. static FORCEINLINE ULONG ISpShortcut_AddRef(ISpShortcut* This) {
  5505. return This->lpVtbl->AddRef(This);
  5506. }
  5507. static FORCEINLINE ULONG ISpShortcut_Release(ISpShortcut* This) {
  5508. return This->lpVtbl->Release(This);
  5509. }
  5510. /*** ISpShortcut methods ***/
  5511. static FORCEINLINE HRESULT ISpShortcut_AddShortcut(ISpShortcut* This,LPCWSTR pszDisplay,WORD LangID,LPCWSTR pszSpoken,SPSHORTCUTTYPE shType) {
  5512. return This->lpVtbl->AddShortcut(This,pszDisplay,LangID,pszSpoken,shType);
  5513. }
  5514. static FORCEINLINE HRESULT ISpShortcut_RemoveShortcut(ISpShortcut* This,LPCWSTR pszDisplay,WORD LangID,LPCWSTR pszSpoken,SPSHORTCUTTYPE shType) {
  5515. return This->lpVtbl->RemoveShortcut(This,pszDisplay,LangID,pszSpoken,shType);
  5516. }
  5517. static FORCEINLINE HRESULT ISpShortcut_GetShortcuts(ISpShortcut* This,WORD LangID,SPSHORTCUTPAIRLIST *pShortcutpairList) {
  5518. return This->lpVtbl->GetShortcuts(This,LangID,pShortcutpairList);
  5519. }
  5520. static FORCEINLINE HRESULT ISpShortcut_GetGeneration(ISpShortcut* This,DWORD *pdwGeneration) {
  5521. return This->lpVtbl->GetGeneration(This,pdwGeneration);
  5522. }
  5523. static FORCEINLINE HRESULT ISpShortcut_GetWordsFromGenerationChange(ISpShortcut* This,DWORD *pdwGeneration,SPWORDLIST *pWordList) {
  5524. return This->lpVtbl->GetWordsFromGenerationChange(This,pdwGeneration,pWordList);
  5525. }
  5526. static FORCEINLINE HRESULT ISpShortcut_GetWords(ISpShortcut* This,DWORD *pdwGeneration,DWORD *pdwCookie,SPWORDLIST *pWordList) {
  5527. return This->lpVtbl->GetWords(This,pdwGeneration,pdwCookie,pWordList);
  5528. }
  5529. static FORCEINLINE HRESULT ISpShortcut_GetShortcutsForGeneration(ISpShortcut* This,DWORD *pdwGeneration,DWORD *pdwCookie,SPSHORTCUTPAIRLIST *pShortcutpairList) {
  5530. return This->lpVtbl->GetShortcutsForGeneration(This,pdwGeneration,pdwCookie,pShortcutpairList);
  5531. }
  5532. static FORCEINLINE HRESULT ISpShortcut_GetGenerationChange(ISpShortcut* This,DWORD *pdwGeneration,SPSHORTCUTPAIRLIST *pShortcutpairList) {
  5533. return This->lpVtbl->GetGenerationChange(This,pdwGeneration,pShortcutpairList);
  5534. }
  5535. #endif
  5536. #endif
  5537. #endif
  5538. #endif /* __ISpShortcut_INTERFACE_DEFINED__ */
  5539. /*****************************************************************************
  5540. * ISpPhoneConverter interface
  5541. */
  5542. #ifndef __ISpPhoneConverter_INTERFACE_DEFINED__
  5543. #define __ISpPhoneConverter_INTERFACE_DEFINED__
  5544. DEFINE_GUID(IID_ISpPhoneConverter, 0x8445c581, 0x0cac, 0x4a38, 0xab,0xfe, 0x9b,0x2c,0xe2,0x82,0x64,0x55);
  5545. #if defined(__cplusplus) && !defined(CINTERFACE)
  5546. MIDL_INTERFACE("8445c581-0cac-4a38-abfe-9b2ce2826455")
  5547. ISpPhoneConverter : public ISpObjectWithToken
  5548. {
  5549. virtual HRESULT STDMETHODCALLTYPE PhoneToId(
  5550. LPCWSTR pszPhone,
  5551. SPPHONEID *pId) = 0;
  5552. virtual HRESULT STDMETHODCALLTYPE IdToPhone(
  5553. PCSPPHONEID pId,
  5554. WCHAR *pszPhone) = 0;
  5555. };
  5556. #ifdef __CRT_UUID_DECL
  5557. __CRT_UUID_DECL(ISpPhoneConverter, 0x8445c581, 0x0cac, 0x4a38, 0xab,0xfe, 0x9b,0x2c,0xe2,0x82,0x64,0x55)
  5558. #endif
  5559. #else
  5560. typedef struct ISpPhoneConverterVtbl {
  5561. BEGIN_INTERFACE
  5562. /*** IUnknown methods ***/
  5563. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5564. ISpPhoneConverter *This,
  5565. REFIID riid,
  5566. void **ppvObject);
  5567. ULONG (STDMETHODCALLTYPE *AddRef)(
  5568. ISpPhoneConverter *This);
  5569. ULONG (STDMETHODCALLTYPE *Release)(
  5570. ISpPhoneConverter *This);
  5571. /*** ISpObjectWithToken methods ***/
  5572. HRESULT (STDMETHODCALLTYPE *SetObjectToken)(
  5573. ISpPhoneConverter *This,
  5574. ISpObjectToken *pToken);
  5575. HRESULT (STDMETHODCALLTYPE *GetObjectToken)(
  5576. ISpPhoneConverter *This,
  5577. ISpObjectToken **ppToken);
  5578. /*** ISpPhoneConverter methods ***/
  5579. HRESULT (STDMETHODCALLTYPE *PhoneToId)(
  5580. ISpPhoneConverter *This,
  5581. LPCWSTR pszPhone,
  5582. SPPHONEID *pId);
  5583. HRESULT (STDMETHODCALLTYPE *IdToPhone)(
  5584. ISpPhoneConverter *This,
  5585. PCSPPHONEID pId,
  5586. WCHAR *pszPhone);
  5587. END_INTERFACE
  5588. } ISpPhoneConverterVtbl;
  5589. interface ISpPhoneConverter {
  5590. CONST_VTBL ISpPhoneConverterVtbl* lpVtbl;
  5591. };
  5592. #ifdef COBJMACROS
  5593. #ifndef WIDL_C_INLINE_WRAPPERS
  5594. /*** IUnknown methods ***/
  5595. #define ISpPhoneConverter_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5596. #define ISpPhoneConverter_AddRef(This) (This)->lpVtbl->AddRef(This)
  5597. #define ISpPhoneConverter_Release(This) (This)->lpVtbl->Release(This)
  5598. /*** ISpObjectWithToken methods ***/
  5599. #define ISpPhoneConverter_SetObjectToken(This,pToken) (This)->lpVtbl->SetObjectToken(This,pToken)
  5600. #define ISpPhoneConverter_GetObjectToken(This,ppToken) (This)->lpVtbl->GetObjectToken(This,ppToken)
  5601. /*** ISpPhoneConverter methods ***/
  5602. #define ISpPhoneConverter_PhoneToId(This,pszPhone,pId) (This)->lpVtbl->PhoneToId(This,pszPhone,pId)
  5603. #define ISpPhoneConverter_IdToPhone(This,pId,pszPhone) (This)->lpVtbl->IdToPhone(This,pId,pszPhone)
  5604. #else
  5605. /*** IUnknown methods ***/
  5606. static FORCEINLINE HRESULT ISpPhoneConverter_QueryInterface(ISpPhoneConverter* This,REFIID riid,void **ppvObject) {
  5607. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5608. }
  5609. static FORCEINLINE ULONG ISpPhoneConverter_AddRef(ISpPhoneConverter* This) {
  5610. return This->lpVtbl->AddRef(This);
  5611. }
  5612. static FORCEINLINE ULONG ISpPhoneConverter_Release(ISpPhoneConverter* This) {
  5613. return This->lpVtbl->Release(This);
  5614. }
  5615. /*** ISpObjectWithToken methods ***/
  5616. static FORCEINLINE HRESULT ISpPhoneConverter_SetObjectToken(ISpPhoneConverter* This,ISpObjectToken *pToken) {
  5617. return This->lpVtbl->SetObjectToken(This,pToken);
  5618. }
  5619. static FORCEINLINE HRESULT ISpPhoneConverter_GetObjectToken(ISpPhoneConverter* This,ISpObjectToken **ppToken) {
  5620. return This->lpVtbl->GetObjectToken(This,ppToken);
  5621. }
  5622. /*** ISpPhoneConverter methods ***/
  5623. static FORCEINLINE HRESULT ISpPhoneConverter_PhoneToId(ISpPhoneConverter* This,LPCWSTR pszPhone,SPPHONEID *pId) {
  5624. return This->lpVtbl->PhoneToId(This,pszPhone,pId);
  5625. }
  5626. static FORCEINLINE HRESULT ISpPhoneConverter_IdToPhone(ISpPhoneConverter* This,PCSPPHONEID pId,WCHAR *pszPhone) {
  5627. return This->lpVtbl->IdToPhone(This,pId,pszPhone);
  5628. }
  5629. #endif
  5630. #endif
  5631. #endif
  5632. #endif /* __ISpPhoneConverter_INTERFACE_DEFINED__ */
  5633. /*****************************************************************************
  5634. * ISpPhoneticAlphabetConverter interface
  5635. */
  5636. #ifndef __ISpPhoneticAlphabetConverter_INTERFACE_DEFINED__
  5637. #define __ISpPhoneticAlphabetConverter_INTERFACE_DEFINED__
  5638. DEFINE_GUID(IID_ISpPhoneticAlphabetConverter, 0x133adcd4, 0x19b4, 0x4020, 0x9f,0xdc, 0x84,0x2e,0x78,0x25,0x3b,0x17);
  5639. #if defined(__cplusplus) && !defined(CINTERFACE)
  5640. MIDL_INTERFACE("133adcd4-19b4-4020-9fdc-842e78253b17")
  5641. ISpPhoneticAlphabetConverter : public IUnknown
  5642. {
  5643. virtual HRESULT STDMETHODCALLTYPE GetLangId(
  5644. WORD *pLangID) = 0;
  5645. virtual HRESULT STDMETHODCALLTYPE SetLangId(
  5646. WORD LangID) = 0;
  5647. virtual HRESULT STDMETHODCALLTYPE SAPI2UPS(
  5648. const SPPHONEID *pszSAPIId,
  5649. SPPHONEID *pszUPSId,
  5650. DWORD cMaxLength) = 0;
  5651. virtual HRESULT STDMETHODCALLTYPE UPS2SAPI(
  5652. const SPPHONEID *pszUPSId,
  5653. SPPHONEID *pszSAPIId,
  5654. DWORD cMaxLength) = 0;
  5655. virtual HRESULT STDMETHODCALLTYPE GetMaxConvertLength(
  5656. DWORD cSrcLength,
  5657. WINBOOL bSAPI2UPS,
  5658. DWORD *pcMaxDestLength) = 0;
  5659. };
  5660. #ifdef __CRT_UUID_DECL
  5661. __CRT_UUID_DECL(ISpPhoneticAlphabetConverter, 0x133adcd4, 0x19b4, 0x4020, 0x9f,0xdc, 0x84,0x2e,0x78,0x25,0x3b,0x17)
  5662. #endif
  5663. #else
  5664. typedef struct ISpPhoneticAlphabetConverterVtbl {
  5665. BEGIN_INTERFACE
  5666. /*** IUnknown methods ***/
  5667. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5668. ISpPhoneticAlphabetConverter *This,
  5669. REFIID riid,
  5670. void **ppvObject);
  5671. ULONG (STDMETHODCALLTYPE *AddRef)(
  5672. ISpPhoneticAlphabetConverter *This);
  5673. ULONG (STDMETHODCALLTYPE *Release)(
  5674. ISpPhoneticAlphabetConverter *This);
  5675. /*** ISpPhoneticAlphabetConverter methods ***/
  5676. HRESULT (STDMETHODCALLTYPE *GetLangId)(
  5677. ISpPhoneticAlphabetConverter *This,
  5678. WORD *pLangID);
  5679. HRESULT (STDMETHODCALLTYPE *SetLangId)(
  5680. ISpPhoneticAlphabetConverter *This,
  5681. WORD LangID);
  5682. HRESULT (STDMETHODCALLTYPE *SAPI2UPS)(
  5683. ISpPhoneticAlphabetConverter *This,
  5684. const SPPHONEID *pszSAPIId,
  5685. SPPHONEID *pszUPSId,
  5686. DWORD cMaxLength);
  5687. HRESULT (STDMETHODCALLTYPE *UPS2SAPI)(
  5688. ISpPhoneticAlphabetConverter *This,
  5689. const SPPHONEID *pszUPSId,
  5690. SPPHONEID *pszSAPIId,
  5691. DWORD cMaxLength);
  5692. HRESULT (STDMETHODCALLTYPE *GetMaxConvertLength)(
  5693. ISpPhoneticAlphabetConverter *This,
  5694. DWORD cSrcLength,
  5695. WINBOOL bSAPI2UPS,
  5696. DWORD *pcMaxDestLength);
  5697. END_INTERFACE
  5698. } ISpPhoneticAlphabetConverterVtbl;
  5699. interface ISpPhoneticAlphabetConverter {
  5700. CONST_VTBL ISpPhoneticAlphabetConverterVtbl* lpVtbl;
  5701. };
  5702. #ifdef COBJMACROS
  5703. #ifndef WIDL_C_INLINE_WRAPPERS
  5704. /*** IUnknown methods ***/
  5705. #define ISpPhoneticAlphabetConverter_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5706. #define ISpPhoneticAlphabetConverter_AddRef(This) (This)->lpVtbl->AddRef(This)
  5707. #define ISpPhoneticAlphabetConverter_Release(This) (This)->lpVtbl->Release(This)
  5708. /*** ISpPhoneticAlphabetConverter methods ***/
  5709. #define ISpPhoneticAlphabetConverter_GetLangId(This,pLangID) (This)->lpVtbl->GetLangId(This,pLangID)
  5710. #define ISpPhoneticAlphabetConverter_SetLangId(This,LangID) (This)->lpVtbl->SetLangId(This,LangID)
  5711. #define ISpPhoneticAlphabetConverter_SAPI2UPS(This,pszSAPIId,pszUPSId,cMaxLength) (This)->lpVtbl->SAPI2UPS(This,pszSAPIId,pszUPSId,cMaxLength)
  5712. #define ISpPhoneticAlphabetConverter_UPS2SAPI(This,pszUPSId,pszSAPIId,cMaxLength) (This)->lpVtbl->UPS2SAPI(This,pszUPSId,pszSAPIId,cMaxLength)
  5713. #define ISpPhoneticAlphabetConverter_GetMaxConvertLength(This,cSrcLength,bSAPI2UPS,pcMaxDestLength) (This)->lpVtbl->GetMaxConvertLength(This,cSrcLength,bSAPI2UPS,pcMaxDestLength)
  5714. #else
  5715. /*** IUnknown methods ***/
  5716. static FORCEINLINE HRESULT ISpPhoneticAlphabetConverter_QueryInterface(ISpPhoneticAlphabetConverter* This,REFIID riid,void **ppvObject) {
  5717. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5718. }
  5719. static FORCEINLINE ULONG ISpPhoneticAlphabetConverter_AddRef(ISpPhoneticAlphabetConverter* This) {
  5720. return This->lpVtbl->AddRef(This);
  5721. }
  5722. static FORCEINLINE ULONG ISpPhoneticAlphabetConverter_Release(ISpPhoneticAlphabetConverter* This) {
  5723. return This->lpVtbl->Release(This);
  5724. }
  5725. /*** ISpPhoneticAlphabetConverter methods ***/
  5726. static FORCEINLINE HRESULT ISpPhoneticAlphabetConverter_GetLangId(ISpPhoneticAlphabetConverter* This,WORD *pLangID) {
  5727. return This->lpVtbl->GetLangId(This,pLangID);
  5728. }
  5729. static FORCEINLINE HRESULT ISpPhoneticAlphabetConverter_SetLangId(ISpPhoneticAlphabetConverter* This,WORD LangID) {
  5730. return This->lpVtbl->SetLangId(This,LangID);
  5731. }
  5732. static FORCEINLINE HRESULT ISpPhoneticAlphabetConverter_SAPI2UPS(ISpPhoneticAlphabetConverter* This,const SPPHONEID *pszSAPIId,SPPHONEID *pszUPSId,DWORD cMaxLength) {
  5733. return This->lpVtbl->SAPI2UPS(This,pszSAPIId,pszUPSId,cMaxLength);
  5734. }
  5735. static FORCEINLINE HRESULT ISpPhoneticAlphabetConverter_UPS2SAPI(ISpPhoneticAlphabetConverter* This,const SPPHONEID *pszUPSId,SPPHONEID *pszSAPIId,DWORD cMaxLength) {
  5736. return This->lpVtbl->UPS2SAPI(This,pszUPSId,pszSAPIId,cMaxLength);
  5737. }
  5738. static FORCEINLINE HRESULT ISpPhoneticAlphabetConverter_GetMaxConvertLength(ISpPhoneticAlphabetConverter* This,DWORD cSrcLength,WINBOOL bSAPI2UPS,DWORD *pcMaxDestLength) {
  5739. return This->lpVtbl->GetMaxConvertLength(This,cSrcLength,bSAPI2UPS,pcMaxDestLength);
  5740. }
  5741. #endif
  5742. #endif
  5743. #endif
  5744. #endif /* __ISpPhoneticAlphabetConverter_INTERFACE_DEFINED__ */
  5745. /*****************************************************************************
  5746. * ISpPhoneticAlphabetSelection interface
  5747. */
  5748. #ifndef __ISpPhoneticAlphabetSelection_INTERFACE_DEFINED__
  5749. #define __ISpPhoneticAlphabetSelection_INTERFACE_DEFINED__
  5750. DEFINE_GUID(IID_ISpPhoneticAlphabetSelection, 0xb2745efd, 0x42ce, 0x48ca, 0x81,0xf1, 0xa9,0x6e,0x02,0x53,0x8a,0x90);
  5751. #if defined(__cplusplus) && !defined(CINTERFACE)
  5752. MIDL_INTERFACE("b2745efd-42ce-48ca-81f1-a96e02538a90")
  5753. ISpPhoneticAlphabetSelection : public IUnknown
  5754. {
  5755. virtual HRESULT STDMETHODCALLTYPE IsAlphabetUPS(
  5756. WINBOOL *pfIsUPS) = 0;
  5757. virtual HRESULT STDMETHODCALLTYPE SetAlphabetToUPS(
  5758. WINBOOL fForceUPS) = 0;
  5759. };
  5760. #ifdef __CRT_UUID_DECL
  5761. __CRT_UUID_DECL(ISpPhoneticAlphabetSelection, 0xb2745efd, 0x42ce, 0x48ca, 0x81,0xf1, 0xa9,0x6e,0x02,0x53,0x8a,0x90)
  5762. #endif
  5763. #else
  5764. typedef struct ISpPhoneticAlphabetSelectionVtbl {
  5765. BEGIN_INTERFACE
  5766. /*** IUnknown methods ***/
  5767. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5768. ISpPhoneticAlphabetSelection *This,
  5769. REFIID riid,
  5770. void **ppvObject);
  5771. ULONG (STDMETHODCALLTYPE *AddRef)(
  5772. ISpPhoneticAlphabetSelection *This);
  5773. ULONG (STDMETHODCALLTYPE *Release)(
  5774. ISpPhoneticAlphabetSelection *This);
  5775. /*** ISpPhoneticAlphabetSelection methods ***/
  5776. HRESULT (STDMETHODCALLTYPE *IsAlphabetUPS)(
  5777. ISpPhoneticAlphabetSelection *This,
  5778. WINBOOL *pfIsUPS);
  5779. HRESULT (STDMETHODCALLTYPE *SetAlphabetToUPS)(
  5780. ISpPhoneticAlphabetSelection *This,
  5781. WINBOOL fForceUPS);
  5782. END_INTERFACE
  5783. } ISpPhoneticAlphabetSelectionVtbl;
  5784. interface ISpPhoneticAlphabetSelection {
  5785. CONST_VTBL ISpPhoneticAlphabetSelectionVtbl* lpVtbl;
  5786. };
  5787. #ifdef COBJMACROS
  5788. #ifndef WIDL_C_INLINE_WRAPPERS
  5789. /*** IUnknown methods ***/
  5790. #define ISpPhoneticAlphabetSelection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  5791. #define ISpPhoneticAlphabetSelection_AddRef(This) (This)->lpVtbl->AddRef(This)
  5792. #define ISpPhoneticAlphabetSelection_Release(This) (This)->lpVtbl->Release(This)
  5793. /*** ISpPhoneticAlphabetSelection methods ***/
  5794. #define ISpPhoneticAlphabetSelection_IsAlphabetUPS(This,pfIsUPS) (This)->lpVtbl->IsAlphabetUPS(This,pfIsUPS)
  5795. #define ISpPhoneticAlphabetSelection_SetAlphabetToUPS(This,fForceUPS) (This)->lpVtbl->SetAlphabetToUPS(This,fForceUPS)
  5796. #else
  5797. /*** IUnknown methods ***/
  5798. static FORCEINLINE HRESULT ISpPhoneticAlphabetSelection_QueryInterface(ISpPhoneticAlphabetSelection* This,REFIID riid,void **ppvObject) {
  5799. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  5800. }
  5801. static FORCEINLINE ULONG ISpPhoneticAlphabetSelection_AddRef(ISpPhoneticAlphabetSelection* This) {
  5802. return This->lpVtbl->AddRef(This);
  5803. }
  5804. static FORCEINLINE ULONG ISpPhoneticAlphabetSelection_Release(ISpPhoneticAlphabetSelection* This) {
  5805. return This->lpVtbl->Release(This);
  5806. }
  5807. /*** ISpPhoneticAlphabetSelection methods ***/
  5808. static FORCEINLINE HRESULT ISpPhoneticAlphabetSelection_IsAlphabetUPS(ISpPhoneticAlphabetSelection* This,WINBOOL *pfIsUPS) {
  5809. return This->lpVtbl->IsAlphabetUPS(This,pfIsUPS);
  5810. }
  5811. static FORCEINLINE HRESULT ISpPhoneticAlphabetSelection_SetAlphabetToUPS(ISpPhoneticAlphabetSelection* This,WINBOOL fForceUPS) {
  5812. return This->lpVtbl->SetAlphabetToUPS(This,fForceUPS);
  5813. }
  5814. #endif
  5815. #endif
  5816. #endif
  5817. #endif /* __ISpPhoneticAlphabetSelection_INTERFACE_DEFINED__ */
  5818. typedef struct SPVPITCH {
  5819. LONG MiddleAdj;
  5820. LONG RangeAdj;
  5821. } SPVPITCH;
  5822. typedef struct SPVCONTEXT {
  5823. LPCWSTR pCategory;
  5824. LPCWSTR pBefore;
  5825. LPCWSTR pAfter;
  5826. } SPVCONTEXT;
  5827. typedef struct SPVSTATE {
  5828. SPVACTIONS eAction;
  5829. WORD LangID;
  5830. WORD wReserved;
  5831. LONG EmphAdj;
  5832. LONG RateAdj;
  5833. ULONG Volume;
  5834. SPVPITCH PitchAdj;
  5835. ULONG SilenceMSecs;
  5836. SPPHONEID *pPhoneIds;
  5837. SPPARTOFSPEECH ePartOfSpeech;
  5838. SPVCONTEXT Context;
  5839. } SPVSTATE;
  5840. typedef struct SPVOICESTATUS {
  5841. ULONG ulCurrentStream;
  5842. ULONG ulLastStreamQueued;
  5843. HRESULT hrLastResult;
  5844. DWORD dwRunningState;
  5845. ULONG ulInputWordPos;
  5846. ULONG ulInputWordLen;
  5847. ULONG ulInputSentPos;
  5848. ULONG ulInputSentLen;
  5849. LONG lBookmarkId;
  5850. SPPHONEID PhonemeId;
  5851. SPVISEMES VisemeId;
  5852. DWORD dwReserved1;
  5853. DWORD dwReserved2;
  5854. } SPVOICESTATUS;
  5855. typedef enum SPEAKFLAGS {
  5856. SPF_DEFAULT = 0,
  5857. SPF_ASYNC = 1,
  5858. SPF_PURGEBEFORESPEAK = 2,
  5859. SPF_IS_FILENAME = 4,
  5860. SPF_IS_XML = 8,
  5861. SPF_IS_NOT_XML = 0x10,
  5862. SPF_PERSIST_XML = 0x20,
  5863. SPF_NLP_SPEAK_PUNC = 0x40,
  5864. SPF_PARSE_SAPI = 0x80,
  5865. SPF_PARSE_SSML = 0x100,
  5866. SPF_PARSE_AUTODETECT = 0,
  5867. SPF_NLP_MASK = SPF_NLP_SPEAK_PUNC,
  5868. SPF_PARSE_MASK = SPF_PARSE_SAPI | SPF_PARSE_SSML,
  5869. SPF_VOICE_MASK = ((((((SPF_ASYNC | SPF_PURGEBEFORESPEAK) | SPF_IS_FILENAME) | SPF_IS_XML) | SPF_IS_NOT_XML) | SPF_NLP_MASK) | SPF_PERSIST_XML) | SPF_PARSE_MASK,
  5870. SPF_UNUSED_FLAGS = ~SPF_VOICE_MASK
  5871. } SPEAKFLAGS;
  5872. /*****************************************************************************
  5873. * ISpVoice interface
  5874. */
  5875. #ifndef __ISpVoice_INTERFACE_DEFINED__
  5876. #define __ISpVoice_INTERFACE_DEFINED__
  5877. DEFINE_GUID(IID_ISpVoice, 0x6c44df74, 0x72b9, 0x4992, 0xa1,0xec, 0xef,0x99,0x6e,0x04,0x22,0xd4);
  5878. #if defined(__cplusplus) && !defined(CINTERFACE)
  5879. MIDL_INTERFACE("6c44df74-72b9-4992-a1ec-ef996e0422d4")
  5880. ISpVoice : public ISpEventSource
  5881. {
  5882. virtual HRESULT STDMETHODCALLTYPE SetOutput(
  5883. IUnknown *pUnkOutput,
  5884. WINBOOL fAllowFormatChanges) = 0;
  5885. virtual HRESULT STDMETHODCALLTYPE GetOutputObjectToken(
  5886. ISpObjectToken **ppObjectToken) = 0;
  5887. virtual HRESULT STDMETHODCALLTYPE GetOutputStream(
  5888. ISpStreamFormat **ppStream) = 0;
  5889. virtual HRESULT STDMETHODCALLTYPE Pause(
  5890. ) = 0;
  5891. virtual HRESULT STDMETHODCALLTYPE Resume(
  5892. ) = 0;
  5893. virtual HRESULT STDMETHODCALLTYPE SetVoice(
  5894. ISpObjectToken *pToken) = 0;
  5895. virtual HRESULT STDMETHODCALLTYPE GetVoice(
  5896. ISpObjectToken **ppToken) = 0;
  5897. virtual HRESULT STDMETHODCALLTYPE Speak(
  5898. LPCWSTR pwcs,
  5899. DWORD dwFlags,
  5900. ULONG *pulStreamNumber) = 0;
  5901. virtual HRESULT STDMETHODCALLTYPE SpeakStream(
  5902. IStream *pStream,
  5903. DWORD dwFlags,
  5904. ULONG *pulStreamNumber) = 0;
  5905. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  5906. SPVOICESTATUS *pStatus,
  5907. LPWSTR *ppszLastBookmark) = 0;
  5908. virtual HRESULT STDMETHODCALLTYPE Skip(
  5909. LPCWSTR pItemType,
  5910. LONG lNumItems,
  5911. ULONG *pulNumSkipped) = 0;
  5912. virtual HRESULT STDMETHODCALLTYPE SetPriority(
  5913. SPVPRIORITY ePriority) = 0;
  5914. virtual HRESULT STDMETHODCALLTYPE GetPriority(
  5915. SPVPRIORITY *pePriority) = 0;
  5916. virtual HRESULT STDMETHODCALLTYPE SetAlertBoundary(
  5917. SPEVENTENUM eBoundary) = 0;
  5918. virtual HRESULT STDMETHODCALLTYPE GetAlertBoundary(
  5919. SPEVENTENUM *peBoundary) = 0;
  5920. virtual HRESULT STDMETHODCALLTYPE SetRate(
  5921. LONG RateAdjust) = 0;
  5922. virtual HRESULT STDMETHODCALLTYPE GetRate(
  5923. LONG *pRateAdjust) = 0;
  5924. virtual HRESULT STDMETHODCALLTYPE SetVolume(
  5925. USHORT usVolume) = 0;
  5926. virtual HRESULT STDMETHODCALLTYPE GetVolume(
  5927. USHORT *pusVolume) = 0;
  5928. virtual HRESULT STDMETHODCALLTYPE WaitUntilDone(
  5929. ULONG msTimeout) = 0;
  5930. virtual HRESULT STDMETHODCALLTYPE SetSyncSpeakTimeout(
  5931. ULONG msTimeout) = 0;
  5932. virtual HRESULT STDMETHODCALLTYPE GetSyncSpeakTimeout(
  5933. ULONG *pmsTimeout) = 0;
  5934. virtual HANDLE STDMETHODCALLTYPE SpeakCompleteEvent(
  5935. ) = 0;
  5936. virtual HRESULT STDMETHODCALLTYPE IsUISupported(
  5937. LPCWSTR pszTypeOfUI,
  5938. void *pvExtraData,
  5939. ULONG cbExtraData,
  5940. WINBOOL *pfSupported) = 0;
  5941. virtual HRESULT STDMETHODCALLTYPE DisplayUI(
  5942. HWND hwndParent,
  5943. LPCWSTR pszTitle,
  5944. LPCWSTR pszTypeOfUI,
  5945. void *pvExtraData,
  5946. ULONG cbExtraData) = 0;
  5947. };
  5948. #ifdef __CRT_UUID_DECL
  5949. __CRT_UUID_DECL(ISpVoice, 0x6c44df74, 0x72b9, 0x4992, 0xa1,0xec, 0xef,0x99,0x6e,0x04,0x22,0xd4)
  5950. #endif
  5951. #else
  5952. typedef struct ISpVoiceVtbl {
  5953. BEGIN_INTERFACE
  5954. /*** IUnknown methods ***/
  5955. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  5956. ISpVoice *This,
  5957. REFIID riid,
  5958. void **ppvObject);
  5959. ULONG (STDMETHODCALLTYPE *AddRef)(
  5960. ISpVoice *This);
  5961. ULONG (STDMETHODCALLTYPE *Release)(
  5962. ISpVoice *This);
  5963. /*** ISpNotifySource methods ***/
  5964. HRESULT (STDMETHODCALLTYPE *SetNotifySink)(
  5965. ISpVoice *This,
  5966. ISpNotifySink *pNotifySink);
  5967. HRESULT (STDMETHODCALLTYPE *SetNotifyWindowMessage)(
  5968. ISpVoice *This,
  5969. HWND hWnd,
  5970. UINT Msg,
  5971. WPARAM wParam,
  5972. LPARAM lParam);
  5973. HRESULT (STDMETHODCALLTYPE *SetNotifyCallbackFunction)(
  5974. ISpVoice *This,
  5975. SPNOTIFYCALLBACK *pfnCallback,
  5976. WPARAM wParam,
  5977. LPARAM lParam);
  5978. HRESULT (STDMETHODCALLTYPE *SetNotifyCallbackInterface)(
  5979. ISpVoice *This,
  5980. ISpNotifyCallback *pSpCallback,
  5981. WPARAM wParam,
  5982. LPARAM lParam);
  5983. HRESULT (STDMETHODCALLTYPE *SetNotifyWin32Event)(
  5984. ISpVoice *This);
  5985. HRESULT (STDMETHODCALLTYPE *WaitForNotifyEvent)(
  5986. ISpVoice *This,
  5987. DWORD dwMilliseconds);
  5988. HANDLE (STDMETHODCALLTYPE *GetNotifyEventHandle)(
  5989. ISpVoice *This);
  5990. /*** ISpEventSource methods ***/
  5991. HRESULT (STDMETHODCALLTYPE *SetInterest)(
  5992. ISpVoice *This,
  5993. ULONGLONG ullEventInterest,
  5994. ULONGLONG ullQueuedInterest);
  5995. HRESULT (STDMETHODCALLTYPE *GetEvents)(
  5996. ISpVoice *This,
  5997. ULONG ulCount,
  5998. SPEVENT *pEventArray,
  5999. ULONG *pulFetched);
  6000. HRESULT (STDMETHODCALLTYPE *GetInfo)(
  6001. ISpVoice *This,
  6002. SPEVENTSOURCEINFO *pInfo);
  6003. /*** ISpVoice methods ***/
  6004. HRESULT (STDMETHODCALLTYPE *SetOutput)(
  6005. ISpVoice *This,
  6006. IUnknown *pUnkOutput,
  6007. WINBOOL fAllowFormatChanges);
  6008. HRESULT (STDMETHODCALLTYPE *GetOutputObjectToken)(
  6009. ISpVoice *This,
  6010. ISpObjectToken **ppObjectToken);
  6011. HRESULT (STDMETHODCALLTYPE *GetOutputStream)(
  6012. ISpVoice *This,
  6013. ISpStreamFormat **ppStream);
  6014. HRESULT (STDMETHODCALLTYPE *Pause)(
  6015. ISpVoice *This);
  6016. HRESULT (STDMETHODCALLTYPE *Resume)(
  6017. ISpVoice *This);
  6018. HRESULT (STDMETHODCALLTYPE *SetVoice)(
  6019. ISpVoice *This,
  6020. ISpObjectToken *pToken);
  6021. HRESULT (STDMETHODCALLTYPE *GetVoice)(
  6022. ISpVoice *This,
  6023. ISpObjectToken **ppToken);
  6024. HRESULT (STDMETHODCALLTYPE *Speak)(
  6025. ISpVoice *This,
  6026. LPCWSTR pwcs,
  6027. DWORD dwFlags,
  6028. ULONG *pulStreamNumber);
  6029. HRESULT (STDMETHODCALLTYPE *SpeakStream)(
  6030. ISpVoice *This,
  6031. IStream *pStream,
  6032. DWORD dwFlags,
  6033. ULONG *pulStreamNumber);
  6034. HRESULT (STDMETHODCALLTYPE *GetStatus)(
  6035. ISpVoice *This,
  6036. SPVOICESTATUS *pStatus,
  6037. LPWSTR *ppszLastBookmark);
  6038. HRESULT (STDMETHODCALLTYPE *Skip)(
  6039. ISpVoice *This,
  6040. LPCWSTR pItemType,
  6041. LONG lNumItems,
  6042. ULONG *pulNumSkipped);
  6043. HRESULT (STDMETHODCALLTYPE *SetPriority)(
  6044. ISpVoice *This,
  6045. SPVPRIORITY ePriority);
  6046. HRESULT (STDMETHODCALLTYPE *GetPriority)(
  6047. ISpVoice *This,
  6048. SPVPRIORITY *pePriority);
  6049. HRESULT (STDMETHODCALLTYPE *SetAlertBoundary)(
  6050. ISpVoice *This,
  6051. SPEVENTENUM eBoundary);
  6052. HRESULT (STDMETHODCALLTYPE *GetAlertBoundary)(
  6053. ISpVoice *This,
  6054. SPEVENTENUM *peBoundary);
  6055. HRESULT (STDMETHODCALLTYPE *SetRate)(
  6056. ISpVoice *This,
  6057. LONG RateAdjust);
  6058. HRESULT (STDMETHODCALLTYPE *GetRate)(
  6059. ISpVoice *This,
  6060. LONG *pRateAdjust);
  6061. HRESULT (STDMETHODCALLTYPE *SetVolume)(
  6062. ISpVoice *This,
  6063. USHORT usVolume);
  6064. HRESULT (STDMETHODCALLTYPE *GetVolume)(
  6065. ISpVoice *This,
  6066. USHORT *pusVolume);
  6067. HRESULT (STDMETHODCALLTYPE *WaitUntilDone)(
  6068. ISpVoice *This,
  6069. ULONG msTimeout);
  6070. HRESULT (STDMETHODCALLTYPE *SetSyncSpeakTimeout)(
  6071. ISpVoice *This,
  6072. ULONG msTimeout);
  6073. HRESULT (STDMETHODCALLTYPE *GetSyncSpeakTimeout)(
  6074. ISpVoice *This,
  6075. ULONG *pmsTimeout);
  6076. HANDLE (STDMETHODCALLTYPE *SpeakCompleteEvent)(
  6077. ISpVoice *This);
  6078. HRESULT (STDMETHODCALLTYPE *IsUISupported)(
  6079. ISpVoice *This,
  6080. LPCWSTR pszTypeOfUI,
  6081. void *pvExtraData,
  6082. ULONG cbExtraData,
  6083. WINBOOL *pfSupported);
  6084. HRESULT (STDMETHODCALLTYPE *DisplayUI)(
  6085. ISpVoice *This,
  6086. HWND hwndParent,
  6087. LPCWSTR pszTitle,
  6088. LPCWSTR pszTypeOfUI,
  6089. void *pvExtraData,
  6090. ULONG cbExtraData);
  6091. END_INTERFACE
  6092. } ISpVoiceVtbl;
  6093. interface ISpVoice {
  6094. CONST_VTBL ISpVoiceVtbl* lpVtbl;
  6095. };
  6096. #ifdef COBJMACROS
  6097. #ifndef WIDL_C_INLINE_WRAPPERS
  6098. /*** IUnknown methods ***/
  6099. #define ISpVoice_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  6100. #define ISpVoice_AddRef(This) (This)->lpVtbl->AddRef(This)
  6101. #define ISpVoice_Release(This) (This)->lpVtbl->Release(This)
  6102. /*** ISpNotifySource methods ***/
  6103. #define ISpVoice_SetNotifySink(This,pNotifySink) (This)->lpVtbl->SetNotifySink(This,pNotifySink)
  6104. #define ISpVoice_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) (This)->lpVtbl->SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  6105. #define ISpVoice_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) (This)->lpVtbl->SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  6106. #define ISpVoice_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) (This)->lpVtbl->SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  6107. #define ISpVoice_SetNotifyWin32Event(This) (This)->lpVtbl->SetNotifyWin32Event(This)
  6108. #define ISpVoice_WaitForNotifyEvent(This,dwMilliseconds) (This)->lpVtbl->WaitForNotifyEvent(This,dwMilliseconds)
  6109. #define ISpVoice_GetNotifyEventHandle(This) (This)->lpVtbl->GetNotifyEventHandle(This)
  6110. /*** ISpEventSource methods ***/
  6111. #define ISpVoice_SetInterest(This,ullEventInterest,ullQueuedInterest) (This)->lpVtbl->SetInterest(This,ullEventInterest,ullQueuedInterest)
  6112. #define ISpVoice_GetEvents(This,ulCount,pEventArray,pulFetched) (This)->lpVtbl->GetEvents(This,ulCount,pEventArray,pulFetched)
  6113. #define ISpVoice_GetInfo(This,pInfo) (This)->lpVtbl->GetInfo(This,pInfo)
  6114. /*** ISpVoice methods ***/
  6115. #define ISpVoice_SetOutput(This,pUnkOutput,fAllowFormatChanges) (This)->lpVtbl->SetOutput(This,pUnkOutput,fAllowFormatChanges)
  6116. #define ISpVoice_GetOutputObjectToken(This,ppObjectToken) (This)->lpVtbl->GetOutputObjectToken(This,ppObjectToken)
  6117. #define ISpVoice_GetOutputStream(This,ppStream) (This)->lpVtbl->GetOutputStream(This,ppStream)
  6118. #define ISpVoice_Pause(This) (This)->lpVtbl->Pause(This)
  6119. #define ISpVoice_Resume(This) (This)->lpVtbl->Resume(This)
  6120. #define ISpVoice_SetVoice(This,pToken) (This)->lpVtbl->SetVoice(This,pToken)
  6121. #define ISpVoice_GetVoice(This,ppToken) (This)->lpVtbl->GetVoice(This,ppToken)
  6122. #define ISpVoice_Speak(This,pwcs,dwFlags,pulStreamNumber) (This)->lpVtbl->Speak(This,pwcs,dwFlags,pulStreamNumber)
  6123. #define ISpVoice_SpeakStream(This,pStream,dwFlags,pulStreamNumber) (This)->lpVtbl->SpeakStream(This,pStream,dwFlags,pulStreamNumber)
  6124. #define ISpVoice_GetStatus(This,pStatus,ppszLastBookmark) (This)->lpVtbl->GetStatus(This,pStatus,ppszLastBookmark)
  6125. #define ISpVoice_Skip(This,pItemType,lNumItems,pulNumSkipped) (This)->lpVtbl->Skip(This,pItemType,lNumItems,pulNumSkipped)
  6126. #define ISpVoice_SetPriority(This,ePriority) (This)->lpVtbl->SetPriority(This,ePriority)
  6127. #define ISpVoice_GetPriority(This,pePriority) (This)->lpVtbl->GetPriority(This,pePriority)
  6128. #define ISpVoice_SetAlertBoundary(This,eBoundary) (This)->lpVtbl->SetAlertBoundary(This,eBoundary)
  6129. #define ISpVoice_GetAlertBoundary(This,peBoundary) (This)->lpVtbl->GetAlertBoundary(This,peBoundary)
  6130. #define ISpVoice_SetRate(This,RateAdjust) (This)->lpVtbl->SetRate(This,RateAdjust)
  6131. #define ISpVoice_GetRate(This,pRateAdjust) (This)->lpVtbl->GetRate(This,pRateAdjust)
  6132. #define ISpVoice_SetVolume(This,usVolume) (This)->lpVtbl->SetVolume(This,usVolume)
  6133. #define ISpVoice_GetVolume(This,pusVolume) (This)->lpVtbl->GetVolume(This,pusVolume)
  6134. #define ISpVoice_WaitUntilDone(This,msTimeout) (This)->lpVtbl->WaitUntilDone(This,msTimeout)
  6135. #define ISpVoice_SetSyncSpeakTimeout(This,msTimeout) (This)->lpVtbl->SetSyncSpeakTimeout(This,msTimeout)
  6136. #define ISpVoice_GetSyncSpeakTimeout(This,pmsTimeout) (This)->lpVtbl->GetSyncSpeakTimeout(This,pmsTimeout)
  6137. #define ISpVoice_SpeakCompleteEvent(This) (This)->lpVtbl->SpeakCompleteEvent(This)
  6138. #define ISpVoice_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported) (This)->lpVtbl->IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported)
  6139. #define ISpVoice_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData) (This)->lpVtbl->DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData)
  6140. #else
  6141. /*** IUnknown methods ***/
  6142. static FORCEINLINE HRESULT ISpVoice_QueryInterface(ISpVoice* This,REFIID riid,void **ppvObject) {
  6143. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  6144. }
  6145. static FORCEINLINE ULONG ISpVoice_AddRef(ISpVoice* This) {
  6146. return This->lpVtbl->AddRef(This);
  6147. }
  6148. static FORCEINLINE ULONG ISpVoice_Release(ISpVoice* This) {
  6149. return This->lpVtbl->Release(This);
  6150. }
  6151. /*** ISpNotifySource methods ***/
  6152. static FORCEINLINE HRESULT ISpVoice_SetNotifySink(ISpVoice* This,ISpNotifySink *pNotifySink) {
  6153. return This->lpVtbl->SetNotifySink(This,pNotifySink);
  6154. }
  6155. static FORCEINLINE HRESULT ISpVoice_SetNotifyWindowMessage(ISpVoice* This,HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) {
  6156. return This->lpVtbl->SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam);
  6157. }
  6158. static FORCEINLINE HRESULT ISpVoice_SetNotifyCallbackFunction(ISpVoice* This,SPNOTIFYCALLBACK *pfnCallback,WPARAM wParam,LPARAM lParam) {
  6159. return This->lpVtbl->SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam);
  6160. }
  6161. static FORCEINLINE HRESULT ISpVoice_SetNotifyCallbackInterface(ISpVoice* This,ISpNotifyCallback *pSpCallback,WPARAM wParam,LPARAM lParam) {
  6162. return This->lpVtbl->SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam);
  6163. }
  6164. static FORCEINLINE HRESULT ISpVoice_SetNotifyWin32Event(ISpVoice* This) {
  6165. return This->lpVtbl->SetNotifyWin32Event(This);
  6166. }
  6167. static FORCEINLINE HRESULT ISpVoice_WaitForNotifyEvent(ISpVoice* This,DWORD dwMilliseconds) {
  6168. return This->lpVtbl->WaitForNotifyEvent(This,dwMilliseconds);
  6169. }
  6170. static FORCEINLINE HANDLE ISpVoice_GetNotifyEventHandle(ISpVoice* This) {
  6171. return This->lpVtbl->GetNotifyEventHandle(This);
  6172. }
  6173. /*** ISpEventSource methods ***/
  6174. static FORCEINLINE HRESULT ISpVoice_SetInterest(ISpVoice* This,ULONGLONG ullEventInterest,ULONGLONG ullQueuedInterest) {
  6175. return This->lpVtbl->SetInterest(This,ullEventInterest,ullQueuedInterest);
  6176. }
  6177. static FORCEINLINE HRESULT ISpVoice_GetEvents(ISpVoice* This,ULONG ulCount,SPEVENT *pEventArray,ULONG *pulFetched) {
  6178. return This->lpVtbl->GetEvents(This,ulCount,pEventArray,pulFetched);
  6179. }
  6180. static FORCEINLINE HRESULT ISpVoice_GetInfo(ISpVoice* This,SPEVENTSOURCEINFO *pInfo) {
  6181. return This->lpVtbl->GetInfo(This,pInfo);
  6182. }
  6183. /*** ISpVoice methods ***/
  6184. static FORCEINLINE HRESULT ISpVoice_SetOutput(ISpVoice* This,IUnknown *pUnkOutput,WINBOOL fAllowFormatChanges) {
  6185. return This->lpVtbl->SetOutput(This,pUnkOutput,fAllowFormatChanges);
  6186. }
  6187. static FORCEINLINE HRESULT ISpVoice_GetOutputObjectToken(ISpVoice* This,ISpObjectToken **ppObjectToken) {
  6188. return This->lpVtbl->GetOutputObjectToken(This,ppObjectToken);
  6189. }
  6190. static FORCEINLINE HRESULT ISpVoice_GetOutputStream(ISpVoice* This,ISpStreamFormat **ppStream) {
  6191. return This->lpVtbl->GetOutputStream(This,ppStream);
  6192. }
  6193. static FORCEINLINE HRESULT ISpVoice_Pause(ISpVoice* This) {
  6194. return This->lpVtbl->Pause(This);
  6195. }
  6196. static FORCEINLINE HRESULT ISpVoice_Resume(ISpVoice* This) {
  6197. return This->lpVtbl->Resume(This);
  6198. }
  6199. static FORCEINLINE HRESULT ISpVoice_SetVoice(ISpVoice* This,ISpObjectToken *pToken) {
  6200. return This->lpVtbl->SetVoice(This,pToken);
  6201. }
  6202. static FORCEINLINE HRESULT ISpVoice_GetVoice(ISpVoice* This,ISpObjectToken **ppToken) {
  6203. return This->lpVtbl->GetVoice(This,ppToken);
  6204. }
  6205. static FORCEINLINE HRESULT ISpVoice_Speak(ISpVoice* This,LPCWSTR pwcs,DWORD dwFlags,ULONG *pulStreamNumber) {
  6206. return This->lpVtbl->Speak(This,pwcs,dwFlags,pulStreamNumber);
  6207. }
  6208. static FORCEINLINE HRESULT ISpVoice_SpeakStream(ISpVoice* This,IStream *pStream,DWORD dwFlags,ULONG *pulStreamNumber) {
  6209. return This->lpVtbl->SpeakStream(This,pStream,dwFlags,pulStreamNumber);
  6210. }
  6211. static FORCEINLINE HRESULT ISpVoice_GetStatus(ISpVoice* This,SPVOICESTATUS *pStatus,LPWSTR *ppszLastBookmark) {
  6212. return This->lpVtbl->GetStatus(This,pStatus,ppszLastBookmark);
  6213. }
  6214. static FORCEINLINE HRESULT ISpVoice_Skip(ISpVoice* This,LPCWSTR pItemType,LONG lNumItems,ULONG *pulNumSkipped) {
  6215. return This->lpVtbl->Skip(This,pItemType,lNumItems,pulNumSkipped);
  6216. }
  6217. static FORCEINLINE HRESULT ISpVoice_SetPriority(ISpVoice* This,SPVPRIORITY ePriority) {
  6218. return This->lpVtbl->SetPriority(This,ePriority);
  6219. }
  6220. static FORCEINLINE HRESULT ISpVoice_GetPriority(ISpVoice* This,SPVPRIORITY *pePriority) {
  6221. return This->lpVtbl->GetPriority(This,pePriority);
  6222. }
  6223. static FORCEINLINE HRESULT ISpVoice_SetAlertBoundary(ISpVoice* This,SPEVENTENUM eBoundary) {
  6224. return This->lpVtbl->SetAlertBoundary(This,eBoundary);
  6225. }
  6226. static FORCEINLINE HRESULT ISpVoice_GetAlertBoundary(ISpVoice* This,SPEVENTENUM *peBoundary) {
  6227. return This->lpVtbl->GetAlertBoundary(This,peBoundary);
  6228. }
  6229. static FORCEINLINE HRESULT ISpVoice_SetRate(ISpVoice* This,LONG RateAdjust) {
  6230. return This->lpVtbl->SetRate(This,RateAdjust);
  6231. }
  6232. static FORCEINLINE HRESULT ISpVoice_GetRate(ISpVoice* This,LONG *pRateAdjust) {
  6233. return This->lpVtbl->GetRate(This,pRateAdjust);
  6234. }
  6235. static FORCEINLINE HRESULT ISpVoice_SetVolume(ISpVoice* This,USHORT usVolume) {
  6236. return This->lpVtbl->SetVolume(This,usVolume);
  6237. }
  6238. static FORCEINLINE HRESULT ISpVoice_GetVolume(ISpVoice* This,USHORT *pusVolume) {
  6239. return This->lpVtbl->GetVolume(This,pusVolume);
  6240. }
  6241. static FORCEINLINE HRESULT ISpVoice_WaitUntilDone(ISpVoice* This,ULONG msTimeout) {
  6242. return This->lpVtbl->WaitUntilDone(This,msTimeout);
  6243. }
  6244. static FORCEINLINE HRESULT ISpVoice_SetSyncSpeakTimeout(ISpVoice* This,ULONG msTimeout) {
  6245. return This->lpVtbl->SetSyncSpeakTimeout(This,msTimeout);
  6246. }
  6247. static FORCEINLINE HRESULT ISpVoice_GetSyncSpeakTimeout(ISpVoice* This,ULONG *pmsTimeout) {
  6248. return This->lpVtbl->GetSyncSpeakTimeout(This,pmsTimeout);
  6249. }
  6250. static FORCEINLINE HANDLE ISpVoice_SpeakCompleteEvent(ISpVoice* This) {
  6251. return This->lpVtbl->SpeakCompleteEvent(This);
  6252. }
  6253. static FORCEINLINE HRESULT ISpVoice_IsUISupported(ISpVoice* This,LPCWSTR pszTypeOfUI,void *pvExtraData,ULONG cbExtraData,WINBOOL *pfSupported) {
  6254. return This->lpVtbl->IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported);
  6255. }
  6256. static FORCEINLINE HRESULT ISpVoice_DisplayUI(ISpVoice* This,HWND hwndParent,LPCWSTR pszTitle,LPCWSTR pszTypeOfUI,void *pvExtraData,ULONG cbExtraData) {
  6257. return This->lpVtbl->DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData);
  6258. }
  6259. #endif
  6260. #endif
  6261. #endif
  6262. #endif /* __ISpVoice_INTERFACE_DEFINED__ */
  6263. /*****************************************************************************
  6264. * ISpPhrase interface
  6265. */
  6266. #ifndef __ISpPhrase_INTERFACE_DEFINED__
  6267. #define __ISpPhrase_INTERFACE_DEFINED__
  6268. DEFINE_GUID(IID_ISpPhrase, 0x1a5c0354, 0xb621, 0x4b5a, 0x87,0x91, 0xd3,0x06,0xed,0x37,0x9e,0x53);
  6269. #if defined(__cplusplus) && !defined(CINTERFACE)
  6270. MIDL_INTERFACE("1a5c0354-b621-4b5a-8791-d306ed379e53")
  6271. ISpPhrase : public IUnknown
  6272. {
  6273. virtual HRESULT STDMETHODCALLTYPE GetPhrase(
  6274. SPPHRASE **ppCoMemPhrase) = 0;
  6275. virtual HRESULT STDMETHODCALLTYPE GetSerializedPhrase(
  6276. SPSERIALIZEDPHRASE **ppCoMemPhrase) = 0;
  6277. virtual HRESULT STDMETHODCALLTYPE GetText(
  6278. ULONG ulStart,
  6279. ULONG ulCount,
  6280. WINBOOL fUseTextReplacements,
  6281. LPWSTR *ppszCoMemText,
  6282. BYTE *pbDisplayAttributes) = 0;
  6283. virtual HRESULT STDMETHODCALLTYPE Discard(
  6284. DWORD dwValueTypes) = 0;
  6285. };
  6286. #ifdef __CRT_UUID_DECL
  6287. __CRT_UUID_DECL(ISpPhrase, 0x1a5c0354, 0xb621, 0x4b5a, 0x87,0x91, 0xd3,0x06,0xed,0x37,0x9e,0x53)
  6288. #endif
  6289. #else
  6290. typedef struct ISpPhraseVtbl {
  6291. BEGIN_INTERFACE
  6292. /*** IUnknown methods ***/
  6293. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  6294. ISpPhrase *This,
  6295. REFIID riid,
  6296. void **ppvObject);
  6297. ULONG (STDMETHODCALLTYPE *AddRef)(
  6298. ISpPhrase *This);
  6299. ULONG (STDMETHODCALLTYPE *Release)(
  6300. ISpPhrase *This);
  6301. /*** ISpPhrase methods ***/
  6302. HRESULT (STDMETHODCALLTYPE *GetPhrase)(
  6303. ISpPhrase *This,
  6304. SPPHRASE **ppCoMemPhrase);
  6305. HRESULT (STDMETHODCALLTYPE *GetSerializedPhrase)(
  6306. ISpPhrase *This,
  6307. SPSERIALIZEDPHRASE **ppCoMemPhrase);
  6308. HRESULT (STDMETHODCALLTYPE *GetText)(
  6309. ISpPhrase *This,
  6310. ULONG ulStart,
  6311. ULONG ulCount,
  6312. WINBOOL fUseTextReplacements,
  6313. LPWSTR *ppszCoMemText,
  6314. BYTE *pbDisplayAttributes);
  6315. HRESULT (STDMETHODCALLTYPE *Discard)(
  6316. ISpPhrase *This,
  6317. DWORD dwValueTypes);
  6318. END_INTERFACE
  6319. } ISpPhraseVtbl;
  6320. interface ISpPhrase {
  6321. CONST_VTBL ISpPhraseVtbl* lpVtbl;
  6322. };
  6323. #ifdef COBJMACROS
  6324. #ifndef WIDL_C_INLINE_WRAPPERS
  6325. /*** IUnknown methods ***/
  6326. #define ISpPhrase_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  6327. #define ISpPhrase_AddRef(This) (This)->lpVtbl->AddRef(This)
  6328. #define ISpPhrase_Release(This) (This)->lpVtbl->Release(This)
  6329. /*** ISpPhrase methods ***/
  6330. #define ISpPhrase_GetPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetPhrase(This,ppCoMemPhrase)
  6331. #define ISpPhrase_GetSerializedPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase)
  6332. #define ISpPhrase_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) (This)->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  6333. #define ISpPhrase_Discard(This,dwValueTypes) (This)->lpVtbl->Discard(This,dwValueTypes)
  6334. #else
  6335. /*** IUnknown methods ***/
  6336. static FORCEINLINE HRESULT ISpPhrase_QueryInterface(ISpPhrase* This,REFIID riid,void **ppvObject) {
  6337. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  6338. }
  6339. static FORCEINLINE ULONG ISpPhrase_AddRef(ISpPhrase* This) {
  6340. return This->lpVtbl->AddRef(This);
  6341. }
  6342. static FORCEINLINE ULONG ISpPhrase_Release(ISpPhrase* This) {
  6343. return This->lpVtbl->Release(This);
  6344. }
  6345. /*** ISpPhrase methods ***/
  6346. static FORCEINLINE HRESULT ISpPhrase_GetPhrase(ISpPhrase* This,SPPHRASE **ppCoMemPhrase) {
  6347. return This->lpVtbl->GetPhrase(This,ppCoMemPhrase);
  6348. }
  6349. static FORCEINLINE HRESULT ISpPhrase_GetSerializedPhrase(ISpPhrase* This,SPSERIALIZEDPHRASE **ppCoMemPhrase) {
  6350. return This->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase);
  6351. }
  6352. static FORCEINLINE HRESULT ISpPhrase_GetText(ISpPhrase* This,ULONG ulStart,ULONG ulCount,WINBOOL fUseTextReplacements,LPWSTR *ppszCoMemText,BYTE *pbDisplayAttributes) {
  6353. return This->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes);
  6354. }
  6355. static FORCEINLINE HRESULT ISpPhrase_Discard(ISpPhrase* This,DWORD dwValueTypes) {
  6356. return This->lpVtbl->Discard(This,dwValueTypes);
  6357. }
  6358. #endif
  6359. #endif
  6360. #endif
  6361. #endif /* __ISpPhrase_INTERFACE_DEFINED__ */
  6362. /*****************************************************************************
  6363. * ISpPhraseAlt interface
  6364. */
  6365. #ifndef __ISpPhraseAlt_INTERFACE_DEFINED__
  6366. #define __ISpPhraseAlt_INTERFACE_DEFINED__
  6367. DEFINE_GUID(IID_ISpPhraseAlt, 0x8fcebc98, 0x4e49, 0x4067, 0x9c,0x6c, 0xd8,0x6a,0x0e,0x09,0x2e,0x3d);
  6368. #if defined(__cplusplus) && !defined(CINTERFACE)
  6369. MIDL_INTERFACE("8fcebc98-4e49-4067-9c6c-d86a0e092e3d")
  6370. ISpPhraseAlt : public ISpPhrase
  6371. {
  6372. virtual HRESULT STDMETHODCALLTYPE GetAltInfo(
  6373. ISpPhrase **ppParent,
  6374. ULONG *pulStartElementInParent,
  6375. ULONG *pcElementsInParent,
  6376. ULONG *pcElementsInAlt) = 0;
  6377. virtual HRESULT STDMETHODCALLTYPE Commit(
  6378. ) = 0;
  6379. };
  6380. #ifdef __CRT_UUID_DECL
  6381. __CRT_UUID_DECL(ISpPhraseAlt, 0x8fcebc98, 0x4e49, 0x4067, 0x9c,0x6c, 0xd8,0x6a,0x0e,0x09,0x2e,0x3d)
  6382. #endif
  6383. #else
  6384. typedef struct ISpPhraseAltVtbl {
  6385. BEGIN_INTERFACE
  6386. /*** IUnknown methods ***/
  6387. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  6388. ISpPhraseAlt *This,
  6389. REFIID riid,
  6390. void **ppvObject);
  6391. ULONG (STDMETHODCALLTYPE *AddRef)(
  6392. ISpPhraseAlt *This);
  6393. ULONG (STDMETHODCALLTYPE *Release)(
  6394. ISpPhraseAlt *This);
  6395. /*** ISpPhrase methods ***/
  6396. HRESULT (STDMETHODCALLTYPE *GetPhrase)(
  6397. ISpPhraseAlt *This,
  6398. SPPHRASE **ppCoMemPhrase);
  6399. HRESULT (STDMETHODCALLTYPE *GetSerializedPhrase)(
  6400. ISpPhraseAlt *This,
  6401. SPSERIALIZEDPHRASE **ppCoMemPhrase);
  6402. HRESULT (STDMETHODCALLTYPE *GetText)(
  6403. ISpPhraseAlt *This,
  6404. ULONG ulStart,
  6405. ULONG ulCount,
  6406. WINBOOL fUseTextReplacements,
  6407. LPWSTR *ppszCoMemText,
  6408. BYTE *pbDisplayAttributes);
  6409. HRESULT (STDMETHODCALLTYPE *Discard)(
  6410. ISpPhraseAlt *This,
  6411. DWORD dwValueTypes);
  6412. /*** ISpPhraseAlt methods ***/
  6413. HRESULT (STDMETHODCALLTYPE *GetAltInfo)(
  6414. ISpPhraseAlt *This,
  6415. ISpPhrase **ppParent,
  6416. ULONG *pulStartElementInParent,
  6417. ULONG *pcElementsInParent,
  6418. ULONG *pcElementsInAlt);
  6419. HRESULT (STDMETHODCALLTYPE *Commit)(
  6420. ISpPhraseAlt *This);
  6421. END_INTERFACE
  6422. } ISpPhraseAltVtbl;
  6423. interface ISpPhraseAlt {
  6424. CONST_VTBL ISpPhraseAltVtbl* lpVtbl;
  6425. };
  6426. #ifdef COBJMACROS
  6427. #ifndef WIDL_C_INLINE_WRAPPERS
  6428. /*** IUnknown methods ***/
  6429. #define ISpPhraseAlt_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  6430. #define ISpPhraseAlt_AddRef(This) (This)->lpVtbl->AddRef(This)
  6431. #define ISpPhraseAlt_Release(This) (This)->lpVtbl->Release(This)
  6432. /*** ISpPhrase methods ***/
  6433. #define ISpPhraseAlt_GetPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetPhrase(This,ppCoMemPhrase)
  6434. #define ISpPhraseAlt_GetSerializedPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase)
  6435. #define ISpPhraseAlt_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) (This)->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  6436. #define ISpPhraseAlt_Discard(This,dwValueTypes) (This)->lpVtbl->Discard(This,dwValueTypes)
  6437. /*** ISpPhraseAlt methods ***/
  6438. #define ISpPhraseAlt_GetAltInfo(This,ppParent,pulStartElementInParent,pcElementsInParent,pcElementsInAlt) (This)->lpVtbl->GetAltInfo(This,ppParent,pulStartElementInParent,pcElementsInParent,pcElementsInAlt)
  6439. #define ISpPhraseAlt_Commit(This) (This)->lpVtbl->Commit(This)
  6440. #else
  6441. /*** IUnknown methods ***/
  6442. static FORCEINLINE HRESULT ISpPhraseAlt_QueryInterface(ISpPhraseAlt* This,REFIID riid,void **ppvObject) {
  6443. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  6444. }
  6445. static FORCEINLINE ULONG ISpPhraseAlt_AddRef(ISpPhraseAlt* This) {
  6446. return This->lpVtbl->AddRef(This);
  6447. }
  6448. static FORCEINLINE ULONG ISpPhraseAlt_Release(ISpPhraseAlt* This) {
  6449. return This->lpVtbl->Release(This);
  6450. }
  6451. /*** ISpPhrase methods ***/
  6452. static FORCEINLINE HRESULT ISpPhraseAlt_GetPhrase(ISpPhraseAlt* This,SPPHRASE **ppCoMemPhrase) {
  6453. return This->lpVtbl->GetPhrase(This,ppCoMemPhrase);
  6454. }
  6455. static FORCEINLINE HRESULT ISpPhraseAlt_GetSerializedPhrase(ISpPhraseAlt* This,SPSERIALIZEDPHRASE **ppCoMemPhrase) {
  6456. return This->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase);
  6457. }
  6458. static FORCEINLINE HRESULT ISpPhraseAlt_GetText(ISpPhraseAlt* This,ULONG ulStart,ULONG ulCount,WINBOOL fUseTextReplacements,LPWSTR *ppszCoMemText,BYTE *pbDisplayAttributes) {
  6459. return This->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes);
  6460. }
  6461. static FORCEINLINE HRESULT ISpPhraseAlt_Discard(ISpPhraseAlt* This,DWORD dwValueTypes) {
  6462. return This->lpVtbl->Discard(This,dwValueTypes);
  6463. }
  6464. /*** ISpPhraseAlt methods ***/
  6465. static FORCEINLINE HRESULT ISpPhraseAlt_GetAltInfo(ISpPhraseAlt* This,ISpPhrase **ppParent,ULONG *pulStartElementInParent,ULONG *pcElementsInParent,ULONG *pcElementsInAlt) {
  6466. return This->lpVtbl->GetAltInfo(This,ppParent,pulStartElementInParent,pcElementsInParent,pcElementsInAlt);
  6467. }
  6468. static FORCEINLINE HRESULT ISpPhraseAlt_Commit(ISpPhraseAlt* This) {
  6469. return This->lpVtbl->Commit(This);
  6470. }
  6471. #endif
  6472. #endif
  6473. #endif
  6474. #endif /* __ISpPhraseAlt_INTERFACE_DEFINED__ */
  6475. typedef enum SPXMLRESULTOPTIONS {
  6476. SPXRO_SML = 0,
  6477. SPXRO_Alternates_SML = 1
  6478. } SPXMLRESULTOPTIONS;
  6479. /*****************************************************************************
  6480. * ISpPhrase2 interface
  6481. */
  6482. #ifndef __ISpPhrase2_INTERFACE_DEFINED__
  6483. #define __ISpPhrase2_INTERFACE_DEFINED__
  6484. DEFINE_GUID(IID_ISpPhrase2, 0xf264da52, 0xe457, 0x4696, 0xb8,0x56, 0xa7,0x37,0xb7,0x17,0xaf,0x79);
  6485. #if defined(__cplusplus) && !defined(CINTERFACE)
  6486. MIDL_INTERFACE("f264da52-e457-4696-b856-a737b717af79")
  6487. ISpPhrase2 : public ISpPhrase
  6488. {
  6489. virtual HRESULT STDMETHODCALLTYPE GetXMLResult(
  6490. LPWSTR *ppszCoMemXMLResult,
  6491. SPXMLRESULTOPTIONS Options) = 0;
  6492. virtual HRESULT STDMETHODCALLTYPE GetXMLErrorInfo(
  6493. SPSEMANTICERRORINFO *pSemanticErrorInfo) = 0;
  6494. virtual HRESULT STDMETHODCALLTYPE GetAudio(
  6495. ULONG ulStartElement,
  6496. ULONG cElements,
  6497. ISpStreamFormat **ppStream) = 0;
  6498. };
  6499. #ifdef __CRT_UUID_DECL
  6500. __CRT_UUID_DECL(ISpPhrase2, 0xf264da52, 0xe457, 0x4696, 0xb8,0x56, 0xa7,0x37,0xb7,0x17,0xaf,0x79)
  6501. #endif
  6502. #else
  6503. typedef struct ISpPhrase2Vtbl {
  6504. BEGIN_INTERFACE
  6505. /*** IUnknown methods ***/
  6506. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  6507. ISpPhrase2 *This,
  6508. REFIID riid,
  6509. void **ppvObject);
  6510. ULONG (STDMETHODCALLTYPE *AddRef)(
  6511. ISpPhrase2 *This);
  6512. ULONG (STDMETHODCALLTYPE *Release)(
  6513. ISpPhrase2 *This);
  6514. /*** ISpPhrase methods ***/
  6515. HRESULT (STDMETHODCALLTYPE *GetPhrase)(
  6516. ISpPhrase2 *This,
  6517. SPPHRASE **ppCoMemPhrase);
  6518. HRESULT (STDMETHODCALLTYPE *GetSerializedPhrase)(
  6519. ISpPhrase2 *This,
  6520. SPSERIALIZEDPHRASE **ppCoMemPhrase);
  6521. HRESULT (STDMETHODCALLTYPE *GetText)(
  6522. ISpPhrase2 *This,
  6523. ULONG ulStart,
  6524. ULONG ulCount,
  6525. WINBOOL fUseTextReplacements,
  6526. LPWSTR *ppszCoMemText,
  6527. BYTE *pbDisplayAttributes);
  6528. HRESULT (STDMETHODCALLTYPE *Discard)(
  6529. ISpPhrase2 *This,
  6530. DWORD dwValueTypes);
  6531. /*** ISpPhrase2 methods ***/
  6532. HRESULT (STDMETHODCALLTYPE *GetXMLResult)(
  6533. ISpPhrase2 *This,
  6534. LPWSTR *ppszCoMemXMLResult,
  6535. SPXMLRESULTOPTIONS Options);
  6536. HRESULT (STDMETHODCALLTYPE *GetXMLErrorInfo)(
  6537. ISpPhrase2 *This,
  6538. SPSEMANTICERRORINFO *pSemanticErrorInfo);
  6539. HRESULT (STDMETHODCALLTYPE *GetAudio)(
  6540. ISpPhrase2 *This,
  6541. ULONG ulStartElement,
  6542. ULONG cElements,
  6543. ISpStreamFormat **ppStream);
  6544. END_INTERFACE
  6545. } ISpPhrase2Vtbl;
  6546. interface ISpPhrase2 {
  6547. CONST_VTBL ISpPhrase2Vtbl* lpVtbl;
  6548. };
  6549. #ifdef COBJMACROS
  6550. #ifndef WIDL_C_INLINE_WRAPPERS
  6551. /*** IUnknown methods ***/
  6552. #define ISpPhrase2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  6553. #define ISpPhrase2_AddRef(This) (This)->lpVtbl->AddRef(This)
  6554. #define ISpPhrase2_Release(This) (This)->lpVtbl->Release(This)
  6555. /*** ISpPhrase methods ***/
  6556. #define ISpPhrase2_GetPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetPhrase(This,ppCoMemPhrase)
  6557. #define ISpPhrase2_GetSerializedPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase)
  6558. #define ISpPhrase2_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) (This)->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  6559. #define ISpPhrase2_Discard(This,dwValueTypes) (This)->lpVtbl->Discard(This,dwValueTypes)
  6560. /*** ISpPhrase2 methods ***/
  6561. #define ISpPhrase2_GetXMLResult(This,ppszCoMemXMLResult,Options) (This)->lpVtbl->GetXMLResult(This,ppszCoMemXMLResult,Options)
  6562. #define ISpPhrase2_GetXMLErrorInfo(This,pSemanticErrorInfo) (This)->lpVtbl->GetXMLErrorInfo(This,pSemanticErrorInfo)
  6563. #define ISpPhrase2_GetAudio(This,ulStartElement,cElements,ppStream) (This)->lpVtbl->GetAudio(This,ulStartElement,cElements,ppStream)
  6564. #else
  6565. /*** IUnknown methods ***/
  6566. static FORCEINLINE HRESULT ISpPhrase2_QueryInterface(ISpPhrase2* This,REFIID riid,void **ppvObject) {
  6567. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  6568. }
  6569. static FORCEINLINE ULONG ISpPhrase2_AddRef(ISpPhrase2* This) {
  6570. return This->lpVtbl->AddRef(This);
  6571. }
  6572. static FORCEINLINE ULONG ISpPhrase2_Release(ISpPhrase2* This) {
  6573. return This->lpVtbl->Release(This);
  6574. }
  6575. /*** ISpPhrase methods ***/
  6576. static FORCEINLINE HRESULT ISpPhrase2_GetPhrase(ISpPhrase2* This,SPPHRASE **ppCoMemPhrase) {
  6577. return This->lpVtbl->GetPhrase(This,ppCoMemPhrase);
  6578. }
  6579. static FORCEINLINE HRESULT ISpPhrase2_GetSerializedPhrase(ISpPhrase2* This,SPSERIALIZEDPHRASE **ppCoMemPhrase) {
  6580. return This->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase);
  6581. }
  6582. static FORCEINLINE HRESULT ISpPhrase2_GetText(ISpPhrase2* This,ULONG ulStart,ULONG ulCount,WINBOOL fUseTextReplacements,LPWSTR *ppszCoMemText,BYTE *pbDisplayAttributes) {
  6583. return This->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes);
  6584. }
  6585. static FORCEINLINE HRESULT ISpPhrase2_Discard(ISpPhrase2* This,DWORD dwValueTypes) {
  6586. return This->lpVtbl->Discard(This,dwValueTypes);
  6587. }
  6588. /*** ISpPhrase2 methods ***/
  6589. static FORCEINLINE HRESULT ISpPhrase2_GetXMLResult(ISpPhrase2* This,LPWSTR *ppszCoMemXMLResult,SPXMLRESULTOPTIONS Options) {
  6590. return This->lpVtbl->GetXMLResult(This,ppszCoMemXMLResult,Options);
  6591. }
  6592. static FORCEINLINE HRESULT ISpPhrase2_GetXMLErrorInfo(ISpPhrase2* This,SPSEMANTICERRORINFO *pSemanticErrorInfo) {
  6593. return This->lpVtbl->GetXMLErrorInfo(This,pSemanticErrorInfo);
  6594. }
  6595. static FORCEINLINE HRESULT ISpPhrase2_GetAudio(ISpPhrase2* This,ULONG ulStartElement,ULONG cElements,ISpStreamFormat **ppStream) {
  6596. return This->lpVtbl->GetAudio(This,ulStartElement,cElements,ppStream);
  6597. }
  6598. #endif
  6599. #endif
  6600. #endif
  6601. #endif /* __ISpPhrase2_INTERFACE_DEFINED__ */
  6602. typedef struct SPRECORESULTTIMES {
  6603. FILETIME ftStreamTime;
  6604. ULONGLONG ullLength;
  6605. DWORD dwTickCount;
  6606. ULONGLONG ullStart;
  6607. } SPRECORESULTTIMES;
  6608. typedef struct SPSERIALIZEDRESULT {
  6609. ULONG ulSerializedSize;
  6610. } SPSERIALIZEDRESULT;
  6611. /*****************************************************************************
  6612. * ISpRecoResult interface
  6613. */
  6614. #ifndef __ISpRecoResult_INTERFACE_DEFINED__
  6615. #define __ISpRecoResult_INTERFACE_DEFINED__
  6616. DEFINE_GUID(IID_ISpRecoResult, 0x20b053be, 0xe235, 0x43cd, 0x9a,0x2a, 0x8d,0x17,0xa4,0x8b,0x78,0x42);
  6617. #if defined(__cplusplus) && !defined(CINTERFACE)
  6618. MIDL_INTERFACE("20b053be-e235-43cd-9a2a-8d17a48b7842")
  6619. ISpRecoResult : public ISpPhrase
  6620. {
  6621. virtual HRESULT STDMETHODCALLTYPE GetResultTimes(
  6622. SPRECORESULTTIMES *pTimes) = 0;
  6623. virtual HRESULT STDMETHODCALLTYPE GetAlternates(
  6624. ULONG ulStartElement,
  6625. ULONG cElements,
  6626. ULONG ulRequestCount,
  6627. ISpPhraseAlt **ppPhrases,
  6628. ULONG *pcPhrasesReturned) = 0;
  6629. virtual HRESULT STDMETHODCALLTYPE GetAudio(
  6630. ULONG ulStartElement,
  6631. ULONG cElements,
  6632. ISpStreamFormat **ppStream) = 0;
  6633. virtual HRESULT STDMETHODCALLTYPE SpeakAudio(
  6634. ULONG ulStartElement,
  6635. ULONG cElements,
  6636. DWORD dwFlags,
  6637. ULONG *pulStreamNumber) = 0;
  6638. virtual HRESULT STDMETHODCALLTYPE Serialize(
  6639. SPSERIALIZEDRESULT **ppCoMemSerializedResult) = 0;
  6640. virtual HRESULT STDMETHODCALLTYPE ScaleAudio(
  6641. const GUID *pAudioFormatId,
  6642. const WAVEFORMATEX *pWaveFormatEx) = 0;
  6643. virtual HRESULT STDMETHODCALLTYPE GetRecoContext(
  6644. ISpRecoContext **ppRecoContext) = 0;
  6645. };
  6646. #ifdef __CRT_UUID_DECL
  6647. __CRT_UUID_DECL(ISpRecoResult, 0x20b053be, 0xe235, 0x43cd, 0x9a,0x2a, 0x8d,0x17,0xa4,0x8b,0x78,0x42)
  6648. #endif
  6649. #else
  6650. typedef struct ISpRecoResultVtbl {
  6651. BEGIN_INTERFACE
  6652. /*** IUnknown methods ***/
  6653. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  6654. ISpRecoResult *This,
  6655. REFIID riid,
  6656. void **ppvObject);
  6657. ULONG (STDMETHODCALLTYPE *AddRef)(
  6658. ISpRecoResult *This);
  6659. ULONG (STDMETHODCALLTYPE *Release)(
  6660. ISpRecoResult *This);
  6661. /*** ISpPhrase methods ***/
  6662. HRESULT (STDMETHODCALLTYPE *GetPhrase)(
  6663. ISpRecoResult *This,
  6664. SPPHRASE **ppCoMemPhrase);
  6665. HRESULT (STDMETHODCALLTYPE *GetSerializedPhrase)(
  6666. ISpRecoResult *This,
  6667. SPSERIALIZEDPHRASE **ppCoMemPhrase);
  6668. HRESULT (STDMETHODCALLTYPE *GetText)(
  6669. ISpRecoResult *This,
  6670. ULONG ulStart,
  6671. ULONG ulCount,
  6672. WINBOOL fUseTextReplacements,
  6673. LPWSTR *ppszCoMemText,
  6674. BYTE *pbDisplayAttributes);
  6675. HRESULT (STDMETHODCALLTYPE *Discard)(
  6676. ISpRecoResult *This,
  6677. DWORD dwValueTypes);
  6678. /*** ISpRecoResult methods ***/
  6679. HRESULT (STDMETHODCALLTYPE *GetResultTimes)(
  6680. ISpRecoResult *This,
  6681. SPRECORESULTTIMES *pTimes);
  6682. HRESULT (STDMETHODCALLTYPE *GetAlternates)(
  6683. ISpRecoResult *This,
  6684. ULONG ulStartElement,
  6685. ULONG cElements,
  6686. ULONG ulRequestCount,
  6687. ISpPhraseAlt **ppPhrases,
  6688. ULONG *pcPhrasesReturned);
  6689. HRESULT (STDMETHODCALLTYPE *GetAudio)(
  6690. ISpRecoResult *This,
  6691. ULONG ulStartElement,
  6692. ULONG cElements,
  6693. ISpStreamFormat **ppStream);
  6694. HRESULT (STDMETHODCALLTYPE *SpeakAudio)(
  6695. ISpRecoResult *This,
  6696. ULONG ulStartElement,
  6697. ULONG cElements,
  6698. DWORD dwFlags,
  6699. ULONG *pulStreamNumber);
  6700. HRESULT (STDMETHODCALLTYPE *Serialize)(
  6701. ISpRecoResult *This,
  6702. SPSERIALIZEDRESULT **ppCoMemSerializedResult);
  6703. HRESULT (STDMETHODCALLTYPE *ScaleAudio)(
  6704. ISpRecoResult *This,
  6705. const GUID *pAudioFormatId,
  6706. const WAVEFORMATEX *pWaveFormatEx);
  6707. HRESULT (STDMETHODCALLTYPE *GetRecoContext)(
  6708. ISpRecoResult *This,
  6709. ISpRecoContext **ppRecoContext);
  6710. END_INTERFACE
  6711. } ISpRecoResultVtbl;
  6712. interface ISpRecoResult {
  6713. CONST_VTBL ISpRecoResultVtbl* lpVtbl;
  6714. };
  6715. #ifdef COBJMACROS
  6716. #ifndef WIDL_C_INLINE_WRAPPERS
  6717. /*** IUnknown methods ***/
  6718. #define ISpRecoResult_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  6719. #define ISpRecoResult_AddRef(This) (This)->lpVtbl->AddRef(This)
  6720. #define ISpRecoResult_Release(This) (This)->lpVtbl->Release(This)
  6721. /*** ISpPhrase methods ***/
  6722. #define ISpRecoResult_GetPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetPhrase(This,ppCoMemPhrase)
  6723. #define ISpRecoResult_GetSerializedPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase)
  6724. #define ISpRecoResult_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) (This)->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  6725. #define ISpRecoResult_Discard(This,dwValueTypes) (This)->lpVtbl->Discard(This,dwValueTypes)
  6726. /*** ISpRecoResult methods ***/
  6727. #define ISpRecoResult_GetResultTimes(This,pTimes) (This)->lpVtbl->GetResultTimes(This,pTimes)
  6728. #define ISpRecoResult_GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned) (This)->lpVtbl->GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned)
  6729. #define ISpRecoResult_GetAudio(This,ulStartElement,cElements,ppStream) (This)->lpVtbl->GetAudio(This,ulStartElement,cElements,ppStream)
  6730. #define ISpRecoResult_SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber) (This)->lpVtbl->SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber)
  6731. #define ISpRecoResult_Serialize(This,ppCoMemSerializedResult) (This)->lpVtbl->Serialize(This,ppCoMemSerializedResult)
  6732. #define ISpRecoResult_ScaleAudio(This,pAudioFormatId,pWaveFormatEx) (This)->lpVtbl->ScaleAudio(This,pAudioFormatId,pWaveFormatEx)
  6733. #define ISpRecoResult_GetRecoContext(This,ppRecoContext) (This)->lpVtbl->GetRecoContext(This,ppRecoContext)
  6734. #else
  6735. /*** IUnknown methods ***/
  6736. static FORCEINLINE HRESULT ISpRecoResult_QueryInterface(ISpRecoResult* This,REFIID riid,void **ppvObject) {
  6737. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  6738. }
  6739. static FORCEINLINE ULONG ISpRecoResult_AddRef(ISpRecoResult* This) {
  6740. return This->lpVtbl->AddRef(This);
  6741. }
  6742. static FORCEINLINE ULONG ISpRecoResult_Release(ISpRecoResult* This) {
  6743. return This->lpVtbl->Release(This);
  6744. }
  6745. /*** ISpPhrase methods ***/
  6746. static FORCEINLINE HRESULT ISpRecoResult_GetPhrase(ISpRecoResult* This,SPPHRASE **ppCoMemPhrase) {
  6747. return This->lpVtbl->GetPhrase(This,ppCoMemPhrase);
  6748. }
  6749. static FORCEINLINE HRESULT ISpRecoResult_GetSerializedPhrase(ISpRecoResult* This,SPSERIALIZEDPHRASE **ppCoMemPhrase) {
  6750. return This->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase);
  6751. }
  6752. static FORCEINLINE HRESULT ISpRecoResult_GetText(ISpRecoResult* This,ULONG ulStart,ULONG ulCount,WINBOOL fUseTextReplacements,LPWSTR *ppszCoMemText,BYTE *pbDisplayAttributes) {
  6753. return This->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes);
  6754. }
  6755. static FORCEINLINE HRESULT ISpRecoResult_Discard(ISpRecoResult* This,DWORD dwValueTypes) {
  6756. return This->lpVtbl->Discard(This,dwValueTypes);
  6757. }
  6758. /*** ISpRecoResult methods ***/
  6759. static FORCEINLINE HRESULT ISpRecoResult_GetResultTimes(ISpRecoResult* This,SPRECORESULTTIMES *pTimes) {
  6760. return This->lpVtbl->GetResultTimes(This,pTimes);
  6761. }
  6762. static FORCEINLINE HRESULT ISpRecoResult_GetAlternates(ISpRecoResult* This,ULONG ulStartElement,ULONG cElements,ULONG ulRequestCount,ISpPhraseAlt **ppPhrases,ULONG *pcPhrasesReturned) {
  6763. return This->lpVtbl->GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned);
  6764. }
  6765. static FORCEINLINE HRESULT ISpRecoResult_GetAudio(ISpRecoResult* This,ULONG ulStartElement,ULONG cElements,ISpStreamFormat **ppStream) {
  6766. return This->lpVtbl->GetAudio(This,ulStartElement,cElements,ppStream);
  6767. }
  6768. static FORCEINLINE HRESULT ISpRecoResult_SpeakAudio(ISpRecoResult* This,ULONG ulStartElement,ULONG cElements,DWORD dwFlags,ULONG *pulStreamNumber) {
  6769. return This->lpVtbl->SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber);
  6770. }
  6771. static FORCEINLINE HRESULT ISpRecoResult_Serialize(ISpRecoResult* This,SPSERIALIZEDRESULT **ppCoMemSerializedResult) {
  6772. return This->lpVtbl->Serialize(This,ppCoMemSerializedResult);
  6773. }
  6774. static FORCEINLINE HRESULT ISpRecoResult_ScaleAudio(ISpRecoResult* This,const GUID *pAudioFormatId,const WAVEFORMATEX *pWaveFormatEx) {
  6775. return This->lpVtbl->ScaleAudio(This,pAudioFormatId,pWaveFormatEx);
  6776. }
  6777. static FORCEINLINE HRESULT ISpRecoResult_GetRecoContext(ISpRecoResult* This,ISpRecoContext **ppRecoContext) {
  6778. return This->lpVtbl->GetRecoContext(This,ppRecoContext);
  6779. }
  6780. #endif
  6781. #endif
  6782. #endif
  6783. #endif /* __ISpRecoResult_INTERFACE_DEFINED__ */
  6784. typedef enum SPCOMMITFLAGS {
  6785. SPCF_NONE = 0,
  6786. SPCF_ADD_TO_USER_LEXICON = 1 << 0,
  6787. SPCF_DEFINITE_CORRECTION = 1 << 1
  6788. } SPCOMMITFLAGS;
  6789. /*****************************************************************************
  6790. * ISpRecoResult2 interface
  6791. */
  6792. #ifndef __ISpRecoResult2_INTERFACE_DEFINED__
  6793. #define __ISpRecoResult2_INTERFACE_DEFINED__
  6794. DEFINE_GUID(IID_ISpRecoResult2, 0x27cac6c4, 0x88f2, 0x41f2, 0x88,0x17, 0x0c,0x95,0xe5,0x9f,0x1e,0x6e);
  6795. #if defined(__cplusplus) && !defined(CINTERFACE)
  6796. MIDL_INTERFACE("27cac6c4-88f2-41f2-8817-0c95e59f1e6e")
  6797. ISpRecoResult2 : public ISpRecoResult
  6798. {
  6799. virtual HRESULT STDMETHODCALLTYPE CommitAlternate(
  6800. ISpPhraseAlt *pPhraseAlt,
  6801. ISpRecoResult **ppNewResult) = 0;
  6802. virtual HRESULT STDMETHODCALLTYPE CommitText(
  6803. ULONG ulStartElement,
  6804. ULONG cElements,
  6805. LPCWSTR pszCorrectedData,
  6806. DWORD eCommitFlags) = 0;
  6807. virtual HRESULT STDMETHODCALLTYPE SetTextFeedback(
  6808. LPCWSTR pszFeedback,
  6809. WINBOOL fSuccessful) = 0;
  6810. };
  6811. #ifdef __CRT_UUID_DECL
  6812. __CRT_UUID_DECL(ISpRecoResult2, 0x27cac6c4, 0x88f2, 0x41f2, 0x88,0x17, 0x0c,0x95,0xe5,0x9f,0x1e,0x6e)
  6813. #endif
  6814. #else
  6815. typedef struct ISpRecoResult2Vtbl {
  6816. BEGIN_INTERFACE
  6817. /*** IUnknown methods ***/
  6818. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  6819. ISpRecoResult2 *This,
  6820. REFIID riid,
  6821. void **ppvObject);
  6822. ULONG (STDMETHODCALLTYPE *AddRef)(
  6823. ISpRecoResult2 *This);
  6824. ULONG (STDMETHODCALLTYPE *Release)(
  6825. ISpRecoResult2 *This);
  6826. /*** ISpPhrase methods ***/
  6827. HRESULT (STDMETHODCALLTYPE *GetPhrase)(
  6828. ISpRecoResult2 *This,
  6829. SPPHRASE **ppCoMemPhrase);
  6830. HRESULT (STDMETHODCALLTYPE *GetSerializedPhrase)(
  6831. ISpRecoResult2 *This,
  6832. SPSERIALIZEDPHRASE **ppCoMemPhrase);
  6833. HRESULT (STDMETHODCALLTYPE *GetText)(
  6834. ISpRecoResult2 *This,
  6835. ULONG ulStart,
  6836. ULONG ulCount,
  6837. WINBOOL fUseTextReplacements,
  6838. LPWSTR *ppszCoMemText,
  6839. BYTE *pbDisplayAttributes);
  6840. HRESULT (STDMETHODCALLTYPE *Discard)(
  6841. ISpRecoResult2 *This,
  6842. DWORD dwValueTypes);
  6843. /*** ISpRecoResult methods ***/
  6844. HRESULT (STDMETHODCALLTYPE *GetResultTimes)(
  6845. ISpRecoResult2 *This,
  6846. SPRECORESULTTIMES *pTimes);
  6847. HRESULT (STDMETHODCALLTYPE *GetAlternates)(
  6848. ISpRecoResult2 *This,
  6849. ULONG ulStartElement,
  6850. ULONG cElements,
  6851. ULONG ulRequestCount,
  6852. ISpPhraseAlt **ppPhrases,
  6853. ULONG *pcPhrasesReturned);
  6854. HRESULT (STDMETHODCALLTYPE *GetAudio)(
  6855. ISpRecoResult2 *This,
  6856. ULONG ulStartElement,
  6857. ULONG cElements,
  6858. ISpStreamFormat **ppStream);
  6859. HRESULT (STDMETHODCALLTYPE *SpeakAudio)(
  6860. ISpRecoResult2 *This,
  6861. ULONG ulStartElement,
  6862. ULONG cElements,
  6863. DWORD dwFlags,
  6864. ULONG *pulStreamNumber);
  6865. HRESULT (STDMETHODCALLTYPE *Serialize)(
  6866. ISpRecoResult2 *This,
  6867. SPSERIALIZEDRESULT **ppCoMemSerializedResult);
  6868. HRESULT (STDMETHODCALLTYPE *ScaleAudio)(
  6869. ISpRecoResult2 *This,
  6870. const GUID *pAudioFormatId,
  6871. const WAVEFORMATEX *pWaveFormatEx);
  6872. HRESULT (STDMETHODCALLTYPE *GetRecoContext)(
  6873. ISpRecoResult2 *This,
  6874. ISpRecoContext **ppRecoContext);
  6875. /*** ISpRecoResult2 methods ***/
  6876. HRESULT (STDMETHODCALLTYPE *CommitAlternate)(
  6877. ISpRecoResult2 *This,
  6878. ISpPhraseAlt *pPhraseAlt,
  6879. ISpRecoResult **ppNewResult);
  6880. HRESULT (STDMETHODCALLTYPE *CommitText)(
  6881. ISpRecoResult2 *This,
  6882. ULONG ulStartElement,
  6883. ULONG cElements,
  6884. LPCWSTR pszCorrectedData,
  6885. DWORD eCommitFlags);
  6886. HRESULT (STDMETHODCALLTYPE *SetTextFeedback)(
  6887. ISpRecoResult2 *This,
  6888. LPCWSTR pszFeedback,
  6889. WINBOOL fSuccessful);
  6890. END_INTERFACE
  6891. } ISpRecoResult2Vtbl;
  6892. interface ISpRecoResult2 {
  6893. CONST_VTBL ISpRecoResult2Vtbl* lpVtbl;
  6894. };
  6895. #ifdef COBJMACROS
  6896. #ifndef WIDL_C_INLINE_WRAPPERS
  6897. /*** IUnknown methods ***/
  6898. #define ISpRecoResult2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  6899. #define ISpRecoResult2_AddRef(This) (This)->lpVtbl->AddRef(This)
  6900. #define ISpRecoResult2_Release(This) (This)->lpVtbl->Release(This)
  6901. /*** ISpPhrase methods ***/
  6902. #define ISpRecoResult2_GetPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetPhrase(This,ppCoMemPhrase)
  6903. #define ISpRecoResult2_GetSerializedPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase)
  6904. #define ISpRecoResult2_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) (This)->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  6905. #define ISpRecoResult2_Discard(This,dwValueTypes) (This)->lpVtbl->Discard(This,dwValueTypes)
  6906. /*** ISpRecoResult methods ***/
  6907. #define ISpRecoResult2_GetResultTimes(This,pTimes) (This)->lpVtbl->GetResultTimes(This,pTimes)
  6908. #define ISpRecoResult2_GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned) (This)->lpVtbl->GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned)
  6909. #define ISpRecoResult2_GetAudio(This,ulStartElement,cElements,ppStream) (This)->lpVtbl->GetAudio(This,ulStartElement,cElements,ppStream)
  6910. #define ISpRecoResult2_SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber) (This)->lpVtbl->SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber)
  6911. #define ISpRecoResult2_Serialize(This,ppCoMemSerializedResult) (This)->lpVtbl->Serialize(This,ppCoMemSerializedResult)
  6912. #define ISpRecoResult2_ScaleAudio(This,pAudioFormatId,pWaveFormatEx) (This)->lpVtbl->ScaleAudio(This,pAudioFormatId,pWaveFormatEx)
  6913. #define ISpRecoResult2_GetRecoContext(This,ppRecoContext) (This)->lpVtbl->GetRecoContext(This,ppRecoContext)
  6914. /*** ISpRecoResult2 methods ***/
  6915. #define ISpRecoResult2_CommitAlternate(This,pPhraseAlt,ppNewResult) (This)->lpVtbl->CommitAlternate(This,pPhraseAlt,ppNewResult)
  6916. #define ISpRecoResult2_CommitText(This,ulStartElement,cElements,pszCorrectedData,eCommitFlags) (This)->lpVtbl->CommitText(This,ulStartElement,cElements,pszCorrectedData,eCommitFlags)
  6917. #define ISpRecoResult2_SetTextFeedback(This,pszFeedback,fSuccessful) (This)->lpVtbl->SetTextFeedback(This,pszFeedback,fSuccessful)
  6918. #else
  6919. /*** IUnknown methods ***/
  6920. static FORCEINLINE HRESULT ISpRecoResult2_QueryInterface(ISpRecoResult2* This,REFIID riid,void **ppvObject) {
  6921. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  6922. }
  6923. static FORCEINLINE ULONG ISpRecoResult2_AddRef(ISpRecoResult2* This) {
  6924. return This->lpVtbl->AddRef(This);
  6925. }
  6926. static FORCEINLINE ULONG ISpRecoResult2_Release(ISpRecoResult2* This) {
  6927. return This->lpVtbl->Release(This);
  6928. }
  6929. /*** ISpPhrase methods ***/
  6930. static FORCEINLINE HRESULT ISpRecoResult2_GetPhrase(ISpRecoResult2* This,SPPHRASE **ppCoMemPhrase) {
  6931. return This->lpVtbl->GetPhrase(This,ppCoMemPhrase);
  6932. }
  6933. static FORCEINLINE HRESULT ISpRecoResult2_GetSerializedPhrase(ISpRecoResult2* This,SPSERIALIZEDPHRASE **ppCoMemPhrase) {
  6934. return This->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase);
  6935. }
  6936. static FORCEINLINE HRESULT ISpRecoResult2_GetText(ISpRecoResult2* This,ULONG ulStart,ULONG ulCount,WINBOOL fUseTextReplacements,LPWSTR *ppszCoMemText,BYTE *pbDisplayAttributes) {
  6937. return This->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes);
  6938. }
  6939. static FORCEINLINE HRESULT ISpRecoResult2_Discard(ISpRecoResult2* This,DWORD dwValueTypes) {
  6940. return This->lpVtbl->Discard(This,dwValueTypes);
  6941. }
  6942. /*** ISpRecoResult methods ***/
  6943. static FORCEINLINE HRESULT ISpRecoResult2_GetResultTimes(ISpRecoResult2* This,SPRECORESULTTIMES *pTimes) {
  6944. return This->lpVtbl->GetResultTimes(This,pTimes);
  6945. }
  6946. static FORCEINLINE HRESULT ISpRecoResult2_GetAlternates(ISpRecoResult2* This,ULONG ulStartElement,ULONG cElements,ULONG ulRequestCount,ISpPhraseAlt **ppPhrases,ULONG *pcPhrasesReturned) {
  6947. return This->lpVtbl->GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned);
  6948. }
  6949. static FORCEINLINE HRESULT ISpRecoResult2_GetAudio(ISpRecoResult2* This,ULONG ulStartElement,ULONG cElements,ISpStreamFormat **ppStream) {
  6950. return This->lpVtbl->GetAudio(This,ulStartElement,cElements,ppStream);
  6951. }
  6952. static FORCEINLINE HRESULT ISpRecoResult2_SpeakAudio(ISpRecoResult2* This,ULONG ulStartElement,ULONG cElements,DWORD dwFlags,ULONG *pulStreamNumber) {
  6953. return This->lpVtbl->SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber);
  6954. }
  6955. static FORCEINLINE HRESULT ISpRecoResult2_Serialize(ISpRecoResult2* This,SPSERIALIZEDRESULT **ppCoMemSerializedResult) {
  6956. return This->lpVtbl->Serialize(This,ppCoMemSerializedResult);
  6957. }
  6958. static FORCEINLINE HRESULT ISpRecoResult2_ScaleAudio(ISpRecoResult2* This,const GUID *pAudioFormatId,const WAVEFORMATEX *pWaveFormatEx) {
  6959. return This->lpVtbl->ScaleAudio(This,pAudioFormatId,pWaveFormatEx);
  6960. }
  6961. static FORCEINLINE HRESULT ISpRecoResult2_GetRecoContext(ISpRecoResult2* This,ISpRecoContext **ppRecoContext) {
  6962. return This->lpVtbl->GetRecoContext(This,ppRecoContext);
  6963. }
  6964. /*** ISpRecoResult2 methods ***/
  6965. static FORCEINLINE HRESULT ISpRecoResult2_CommitAlternate(ISpRecoResult2* This,ISpPhraseAlt *pPhraseAlt,ISpRecoResult **ppNewResult) {
  6966. return This->lpVtbl->CommitAlternate(This,pPhraseAlt,ppNewResult);
  6967. }
  6968. static FORCEINLINE HRESULT ISpRecoResult2_CommitText(ISpRecoResult2* This,ULONG ulStartElement,ULONG cElements,LPCWSTR pszCorrectedData,DWORD eCommitFlags) {
  6969. return This->lpVtbl->CommitText(This,ulStartElement,cElements,pszCorrectedData,eCommitFlags);
  6970. }
  6971. static FORCEINLINE HRESULT ISpRecoResult2_SetTextFeedback(ISpRecoResult2* This,LPCWSTR pszFeedback,WINBOOL fSuccessful) {
  6972. return This->lpVtbl->SetTextFeedback(This,pszFeedback,fSuccessful);
  6973. }
  6974. #endif
  6975. #endif
  6976. #endif
  6977. #endif /* __ISpRecoResult2_INTERFACE_DEFINED__ */
  6978. /*****************************************************************************
  6979. * ISpXMLRecoResult interface
  6980. */
  6981. #ifndef __ISpXMLRecoResult_INTERFACE_DEFINED__
  6982. #define __ISpXMLRecoResult_INTERFACE_DEFINED__
  6983. DEFINE_GUID(IID_ISpXMLRecoResult, 0xae39362b, 0x45a8, 0x4074, 0x9b,0x9e, 0xcc,0xf4,0x9a,0xa2,0xd0,0xb6);
  6984. #if defined(__cplusplus) && !defined(CINTERFACE)
  6985. MIDL_INTERFACE("ae39362b-45a8-4074-9b9e-ccf49aa2d0b6")
  6986. ISpXMLRecoResult : public ISpRecoResult
  6987. {
  6988. virtual HRESULT STDMETHODCALLTYPE GetXMLResult(
  6989. LPWSTR *ppszCoMemXMLResult,
  6990. SPXMLRESULTOPTIONS Options) = 0;
  6991. virtual HRESULT STDMETHODCALLTYPE GetXMLErrorInfo(
  6992. SPSEMANTICERRORINFO *pSemanticErrorInfo) = 0;
  6993. };
  6994. #ifdef __CRT_UUID_DECL
  6995. __CRT_UUID_DECL(ISpXMLRecoResult, 0xae39362b, 0x45a8, 0x4074, 0x9b,0x9e, 0xcc,0xf4,0x9a,0xa2,0xd0,0xb6)
  6996. #endif
  6997. #else
  6998. typedef struct ISpXMLRecoResultVtbl {
  6999. BEGIN_INTERFACE
  7000. /*** IUnknown methods ***/
  7001. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  7002. ISpXMLRecoResult *This,
  7003. REFIID riid,
  7004. void **ppvObject);
  7005. ULONG (STDMETHODCALLTYPE *AddRef)(
  7006. ISpXMLRecoResult *This);
  7007. ULONG (STDMETHODCALLTYPE *Release)(
  7008. ISpXMLRecoResult *This);
  7009. /*** ISpPhrase methods ***/
  7010. HRESULT (STDMETHODCALLTYPE *GetPhrase)(
  7011. ISpXMLRecoResult *This,
  7012. SPPHRASE **ppCoMemPhrase);
  7013. HRESULT (STDMETHODCALLTYPE *GetSerializedPhrase)(
  7014. ISpXMLRecoResult *This,
  7015. SPSERIALIZEDPHRASE **ppCoMemPhrase);
  7016. HRESULT (STDMETHODCALLTYPE *GetText)(
  7017. ISpXMLRecoResult *This,
  7018. ULONG ulStart,
  7019. ULONG ulCount,
  7020. WINBOOL fUseTextReplacements,
  7021. LPWSTR *ppszCoMemText,
  7022. BYTE *pbDisplayAttributes);
  7023. HRESULT (STDMETHODCALLTYPE *Discard)(
  7024. ISpXMLRecoResult *This,
  7025. DWORD dwValueTypes);
  7026. /*** ISpRecoResult methods ***/
  7027. HRESULT (STDMETHODCALLTYPE *GetResultTimes)(
  7028. ISpXMLRecoResult *This,
  7029. SPRECORESULTTIMES *pTimes);
  7030. HRESULT (STDMETHODCALLTYPE *GetAlternates)(
  7031. ISpXMLRecoResult *This,
  7032. ULONG ulStartElement,
  7033. ULONG cElements,
  7034. ULONG ulRequestCount,
  7035. ISpPhraseAlt **ppPhrases,
  7036. ULONG *pcPhrasesReturned);
  7037. HRESULT (STDMETHODCALLTYPE *GetAudio)(
  7038. ISpXMLRecoResult *This,
  7039. ULONG ulStartElement,
  7040. ULONG cElements,
  7041. ISpStreamFormat **ppStream);
  7042. HRESULT (STDMETHODCALLTYPE *SpeakAudio)(
  7043. ISpXMLRecoResult *This,
  7044. ULONG ulStartElement,
  7045. ULONG cElements,
  7046. DWORD dwFlags,
  7047. ULONG *pulStreamNumber);
  7048. HRESULT (STDMETHODCALLTYPE *Serialize)(
  7049. ISpXMLRecoResult *This,
  7050. SPSERIALIZEDRESULT **ppCoMemSerializedResult);
  7051. HRESULT (STDMETHODCALLTYPE *ScaleAudio)(
  7052. ISpXMLRecoResult *This,
  7053. const GUID *pAudioFormatId,
  7054. const WAVEFORMATEX *pWaveFormatEx);
  7055. HRESULT (STDMETHODCALLTYPE *GetRecoContext)(
  7056. ISpXMLRecoResult *This,
  7057. ISpRecoContext **ppRecoContext);
  7058. /*** ISpXMLRecoResult methods ***/
  7059. HRESULT (STDMETHODCALLTYPE *GetXMLResult)(
  7060. ISpXMLRecoResult *This,
  7061. LPWSTR *ppszCoMemXMLResult,
  7062. SPXMLRESULTOPTIONS Options);
  7063. HRESULT (STDMETHODCALLTYPE *GetXMLErrorInfo)(
  7064. ISpXMLRecoResult *This,
  7065. SPSEMANTICERRORINFO *pSemanticErrorInfo);
  7066. END_INTERFACE
  7067. } ISpXMLRecoResultVtbl;
  7068. interface ISpXMLRecoResult {
  7069. CONST_VTBL ISpXMLRecoResultVtbl* lpVtbl;
  7070. };
  7071. #ifdef COBJMACROS
  7072. #ifndef WIDL_C_INLINE_WRAPPERS
  7073. /*** IUnknown methods ***/
  7074. #define ISpXMLRecoResult_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  7075. #define ISpXMLRecoResult_AddRef(This) (This)->lpVtbl->AddRef(This)
  7076. #define ISpXMLRecoResult_Release(This) (This)->lpVtbl->Release(This)
  7077. /*** ISpPhrase methods ***/
  7078. #define ISpXMLRecoResult_GetPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetPhrase(This,ppCoMemPhrase)
  7079. #define ISpXMLRecoResult_GetSerializedPhrase(This,ppCoMemPhrase) (This)->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase)
  7080. #define ISpXMLRecoResult_GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes) (This)->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes)
  7081. #define ISpXMLRecoResult_Discard(This,dwValueTypes) (This)->lpVtbl->Discard(This,dwValueTypes)
  7082. /*** ISpRecoResult methods ***/
  7083. #define ISpXMLRecoResult_GetResultTimes(This,pTimes) (This)->lpVtbl->GetResultTimes(This,pTimes)
  7084. #define ISpXMLRecoResult_GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned) (This)->lpVtbl->GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned)
  7085. #define ISpXMLRecoResult_GetAudio(This,ulStartElement,cElements,ppStream) (This)->lpVtbl->GetAudio(This,ulStartElement,cElements,ppStream)
  7086. #define ISpXMLRecoResult_SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber) (This)->lpVtbl->SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber)
  7087. #define ISpXMLRecoResult_Serialize(This,ppCoMemSerializedResult) (This)->lpVtbl->Serialize(This,ppCoMemSerializedResult)
  7088. #define ISpXMLRecoResult_ScaleAudio(This,pAudioFormatId,pWaveFormatEx) (This)->lpVtbl->ScaleAudio(This,pAudioFormatId,pWaveFormatEx)
  7089. #define ISpXMLRecoResult_GetRecoContext(This,ppRecoContext) (This)->lpVtbl->GetRecoContext(This,ppRecoContext)
  7090. /*** ISpXMLRecoResult methods ***/
  7091. #define ISpXMLRecoResult_GetXMLResult(This,ppszCoMemXMLResult,Options) (This)->lpVtbl->GetXMLResult(This,ppszCoMemXMLResult,Options)
  7092. #define ISpXMLRecoResult_GetXMLErrorInfo(This,pSemanticErrorInfo) (This)->lpVtbl->GetXMLErrorInfo(This,pSemanticErrorInfo)
  7093. #else
  7094. /*** IUnknown methods ***/
  7095. static FORCEINLINE HRESULT ISpXMLRecoResult_QueryInterface(ISpXMLRecoResult* This,REFIID riid,void **ppvObject) {
  7096. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  7097. }
  7098. static FORCEINLINE ULONG ISpXMLRecoResult_AddRef(ISpXMLRecoResult* This) {
  7099. return This->lpVtbl->AddRef(This);
  7100. }
  7101. static FORCEINLINE ULONG ISpXMLRecoResult_Release(ISpXMLRecoResult* This) {
  7102. return This->lpVtbl->Release(This);
  7103. }
  7104. /*** ISpPhrase methods ***/
  7105. static FORCEINLINE HRESULT ISpXMLRecoResult_GetPhrase(ISpXMLRecoResult* This,SPPHRASE **ppCoMemPhrase) {
  7106. return This->lpVtbl->GetPhrase(This,ppCoMemPhrase);
  7107. }
  7108. static FORCEINLINE HRESULT ISpXMLRecoResult_GetSerializedPhrase(ISpXMLRecoResult* This,SPSERIALIZEDPHRASE **ppCoMemPhrase) {
  7109. return This->lpVtbl->GetSerializedPhrase(This,ppCoMemPhrase);
  7110. }
  7111. static FORCEINLINE HRESULT ISpXMLRecoResult_GetText(ISpXMLRecoResult* This,ULONG ulStart,ULONG ulCount,WINBOOL fUseTextReplacements,LPWSTR *ppszCoMemText,BYTE *pbDisplayAttributes) {
  7112. return This->lpVtbl->GetText(This,ulStart,ulCount,fUseTextReplacements,ppszCoMemText,pbDisplayAttributes);
  7113. }
  7114. static FORCEINLINE HRESULT ISpXMLRecoResult_Discard(ISpXMLRecoResult* This,DWORD dwValueTypes) {
  7115. return This->lpVtbl->Discard(This,dwValueTypes);
  7116. }
  7117. /*** ISpRecoResult methods ***/
  7118. static FORCEINLINE HRESULT ISpXMLRecoResult_GetResultTimes(ISpXMLRecoResult* This,SPRECORESULTTIMES *pTimes) {
  7119. return This->lpVtbl->GetResultTimes(This,pTimes);
  7120. }
  7121. static FORCEINLINE HRESULT ISpXMLRecoResult_GetAlternates(ISpXMLRecoResult* This,ULONG ulStartElement,ULONG cElements,ULONG ulRequestCount,ISpPhraseAlt **ppPhrases,ULONG *pcPhrasesReturned) {
  7122. return This->lpVtbl->GetAlternates(This,ulStartElement,cElements,ulRequestCount,ppPhrases,pcPhrasesReturned);
  7123. }
  7124. static FORCEINLINE HRESULT ISpXMLRecoResult_GetAudio(ISpXMLRecoResult* This,ULONG ulStartElement,ULONG cElements,ISpStreamFormat **ppStream) {
  7125. return This->lpVtbl->GetAudio(This,ulStartElement,cElements,ppStream);
  7126. }
  7127. static FORCEINLINE HRESULT ISpXMLRecoResult_SpeakAudio(ISpXMLRecoResult* This,ULONG ulStartElement,ULONG cElements,DWORD dwFlags,ULONG *pulStreamNumber) {
  7128. return This->lpVtbl->SpeakAudio(This,ulStartElement,cElements,dwFlags,pulStreamNumber);
  7129. }
  7130. static FORCEINLINE HRESULT ISpXMLRecoResult_Serialize(ISpXMLRecoResult* This,SPSERIALIZEDRESULT **ppCoMemSerializedResult) {
  7131. return This->lpVtbl->Serialize(This,ppCoMemSerializedResult);
  7132. }
  7133. static FORCEINLINE HRESULT ISpXMLRecoResult_ScaleAudio(ISpXMLRecoResult* This,const GUID *pAudioFormatId,const WAVEFORMATEX *pWaveFormatEx) {
  7134. return This->lpVtbl->ScaleAudio(This,pAudioFormatId,pWaveFormatEx);
  7135. }
  7136. static FORCEINLINE HRESULT ISpXMLRecoResult_GetRecoContext(ISpXMLRecoResult* This,ISpRecoContext **ppRecoContext) {
  7137. return This->lpVtbl->GetRecoContext(This,ppRecoContext);
  7138. }
  7139. /*** ISpXMLRecoResult methods ***/
  7140. static FORCEINLINE HRESULT ISpXMLRecoResult_GetXMLResult(ISpXMLRecoResult* This,LPWSTR *ppszCoMemXMLResult,SPXMLRESULTOPTIONS Options) {
  7141. return This->lpVtbl->GetXMLResult(This,ppszCoMemXMLResult,Options);
  7142. }
  7143. static FORCEINLINE HRESULT ISpXMLRecoResult_GetXMLErrorInfo(ISpXMLRecoResult* This,SPSEMANTICERRORINFO *pSemanticErrorInfo) {
  7144. return This->lpVtbl->GetXMLErrorInfo(This,pSemanticErrorInfo);
  7145. }
  7146. #endif
  7147. #endif
  7148. #endif
  7149. #endif /* __ISpXMLRecoResult_INTERFACE_DEFINED__ */
  7150. typedef struct tagSPTEXTSELECTIONINFO {
  7151. ULONG ulStartActiveOffset;
  7152. ULONG cchActiveChars;
  7153. ULONG ulStartSelection;
  7154. ULONG cchSelection;
  7155. } SPTEXTSELECTIONINFO;
  7156. typedef enum SPWORDPRONOUNCEABLE {
  7157. SPWP_UNKNOWN_WORD_UNPRONOUNCEABLE = 0,
  7158. SPWP_UNKNOWN_WORD_PRONOUNCEABLE = 1,
  7159. SPWP_KNOWN_WORD_PRONOUNCEABLE = 2
  7160. } SPWORDPRONOUNCEABLE;
  7161. typedef enum SPGRAMMARSTATE {
  7162. SPGS_DISABLED = 0,
  7163. SPGS_ENABLED = 1,
  7164. SPGS_EXCLUSIVE = 3
  7165. } SPGRAMMARSTATE;
  7166. typedef enum SPCONTEXTSTATE {
  7167. SPCS_DISABLED = 0,
  7168. SPCS_ENABLED = 1
  7169. } SPCONTEXTSTATE;
  7170. typedef enum SPRULESTATE {
  7171. SPRS_INACTIVE = 0,
  7172. SPRS_ACTIVE = 1,
  7173. SPRS_ACTIVE_WITH_AUTO_PAUSE = 3,
  7174. SPRS_ACTIVE_USER_DELIMITED = 4
  7175. } SPRULESTATE;
  7176. #define SP_STREAMPOS_ASAP (0)
  7177. #define SP_STREAMPOS_REALTIME (-1)
  7178. #define SPRULETRANS_TEXTBUFFER (SPSTATEHANDLE) (-1)
  7179. #define SPRULETRANS_WILDCARD (SPSTATEHANDLE) (-2)
  7180. #define SPRULETRANS_DICTATION (SPSTATEHANDLE) (-3)
  7181. typedef enum SPGRAMMARWORDTYPE {
  7182. SPWT_DISPLAY = 0,
  7183. SPWT_LEXICAL = 1,
  7184. SPWT_PRONUNCIATION = 2,
  7185. SPWT_LEXICAL_NO_SPECIAL_CHARS = 3
  7186. } SPGRAMMARWORDTYPE;
  7187. typedef struct tagSPPROPERTYINFO {
  7188. LPCWSTR pszName;
  7189. ULONG ulId;
  7190. LPCWSTR pszValue;
  7191. VARIANT vValue;
  7192. } SPPROPERTYINFO;
  7193. typedef enum SPCFGRULEATTRIBUTES {
  7194. SPRAF_TopLevel = 0x1,
  7195. SPRAF_Active = 0x2,
  7196. SPRAF_Export = 0x4,
  7197. SPRAF_Import = 0x8,
  7198. SPRAF_Interpreter = 0x10,
  7199. SPRAF_Dynamic = 0x20,
  7200. SPRAF_Root = 0x40,
  7201. SPRAF_AutoPause = 0x10000,
  7202. SPRAF_UserDelimited = 0x20000
  7203. } SPCFGRULEATTRIBUTES;
  7204. /*****************************************************************************
  7205. * ISpGrammarBuilder interface
  7206. */
  7207. #ifndef __ISpGrammarBuilder_INTERFACE_DEFINED__
  7208. #define __ISpGrammarBuilder_INTERFACE_DEFINED__
  7209. DEFINE_GUID(IID_ISpGrammarBuilder, 0x8137828f, 0x591a, 0x4a42, 0xbe,0x58, 0x49,0xea,0x7e,0xba,0xac,0x68);
  7210. #if defined(__cplusplus) && !defined(CINTERFACE)
  7211. MIDL_INTERFACE("8137828f-591a-4a42-be58-49ea7ebaac68")
  7212. ISpGrammarBuilder : public IUnknown
  7213. {
  7214. virtual HRESULT STDMETHODCALLTYPE ResetGrammar(
  7215. WORD NewLanguage) = 0;
  7216. virtual HRESULT STDMETHODCALLTYPE GetRule(
  7217. LPCWSTR pszRuleName,
  7218. DWORD dwRuleId,
  7219. DWORD dwAttributes,
  7220. WINBOOL fCreateIfNotExist,
  7221. SPSTATEHANDLE *phInitialState) = 0;
  7222. virtual HRESULT STDMETHODCALLTYPE ClearRule(
  7223. SPSTATEHANDLE hState) = 0;
  7224. virtual HRESULT STDMETHODCALLTYPE CreateNewState(
  7225. SPSTATEHANDLE hState,
  7226. SPSTATEHANDLE *phState) = 0;
  7227. virtual HRESULT STDMETHODCALLTYPE AddWordTransition(
  7228. SPSTATEHANDLE hFromState,
  7229. SPSTATEHANDLE hToState,
  7230. LPCWSTR psz,
  7231. LPCWSTR pszSeparators,
  7232. SPGRAMMARWORDTYPE eWordType,
  7233. float Weight,
  7234. const SPPROPERTYINFO *pPropInfo) = 0;
  7235. virtual HRESULT STDMETHODCALLTYPE AddRuleTransition(
  7236. SPSTATEHANDLE hFromState,
  7237. SPSTATEHANDLE hToState,
  7238. SPSTATEHANDLE hRule,
  7239. float Weight,
  7240. const SPPROPERTYINFO *pPropInfo) = 0;
  7241. virtual HRESULT STDMETHODCALLTYPE AddResource(
  7242. SPSTATEHANDLE hRuleState,
  7243. LPCWSTR pszResourceName,
  7244. LPCWSTR pszResourceValue) = 0;
  7245. virtual HRESULT STDMETHODCALLTYPE Commit(
  7246. DWORD dwReserved) = 0;
  7247. };
  7248. #ifdef __CRT_UUID_DECL
  7249. __CRT_UUID_DECL(ISpGrammarBuilder, 0x8137828f, 0x591a, 0x4a42, 0xbe,0x58, 0x49,0xea,0x7e,0xba,0xac,0x68)
  7250. #endif
  7251. #else
  7252. typedef struct ISpGrammarBuilderVtbl {
  7253. BEGIN_INTERFACE
  7254. /*** IUnknown methods ***/
  7255. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  7256. ISpGrammarBuilder *This,
  7257. REFIID riid,
  7258. void **ppvObject);
  7259. ULONG (STDMETHODCALLTYPE *AddRef)(
  7260. ISpGrammarBuilder *This);
  7261. ULONG (STDMETHODCALLTYPE *Release)(
  7262. ISpGrammarBuilder *This);
  7263. /*** ISpGrammarBuilder methods ***/
  7264. HRESULT (STDMETHODCALLTYPE *ResetGrammar)(
  7265. ISpGrammarBuilder *This,
  7266. WORD NewLanguage);
  7267. HRESULT (STDMETHODCALLTYPE *GetRule)(
  7268. ISpGrammarBuilder *This,
  7269. LPCWSTR pszRuleName,
  7270. DWORD dwRuleId,
  7271. DWORD dwAttributes,
  7272. WINBOOL fCreateIfNotExist,
  7273. SPSTATEHANDLE *phInitialState);
  7274. HRESULT (STDMETHODCALLTYPE *ClearRule)(
  7275. ISpGrammarBuilder *This,
  7276. SPSTATEHANDLE hState);
  7277. HRESULT (STDMETHODCALLTYPE *CreateNewState)(
  7278. ISpGrammarBuilder *This,
  7279. SPSTATEHANDLE hState,
  7280. SPSTATEHANDLE *phState);
  7281. HRESULT (STDMETHODCALLTYPE *AddWordTransition)(
  7282. ISpGrammarBuilder *This,
  7283. SPSTATEHANDLE hFromState,
  7284. SPSTATEHANDLE hToState,
  7285. LPCWSTR psz,
  7286. LPCWSTR pszSeparators,
  7287. SPGRAMMARWORDTYPE eWordType,
  7288. float Weight,
  7289. const SPPROPERTYINFO *pPropInfo);
  7290. HRESULT (STDMETHODCALLTYPE *AddRuleTransition)(
  7291. ISpGrammarBuilder *This,
  7292. SPSTATEHANDLE hFromState,
  7293. SPSTATEHANDLE hToState,
  7294. SPSTATEHANDLE hRule,
  7295. float Weight,
  7296. const SPPROPERTYINFO *pPropInfo);
  7297. HRESULT (STDMETHODCALLTYPE *AddResource)(
  7298. ISpGrammarBuilder *This,
  7299. SPSTATEHANDLE hRuleState,
  7300. LPCWSTR pszResourceName,
  7301. LPCWSTR pszResourceValue);
  7302. HRESULT (STDMETHODCALLTYPE *Commit)(
  7303. ISpGrammarBuilder *This,
  7304. DWORD dwReserved);
  7305. END_INTERFACE
  7306. } ISpGrammarBuilderVtbl;
  7307. interface ISpGrammarBuilder {
  7308. CONST_VTBL ISpGrammarBuilderVtbl* lpVtbl;
  7309. };
  7310. #ifdef COBJMACROS
  7311. #ifndef WIDL_C_INLINE_WRAPPERS
  7312. /*** IUnknown methods ***/
  7313. #define ISpGrammarBuilder_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  7314. #define ISpGrammarBuilder_AddRef(This) (This)->lpVtbl->AddRef(This)
  7315. #define ISpGrammarBuilder_Release(This) (This)->lpVtbl->Release(This)
  7316. /*** ISpGrammarBuilder methods ***/
  7317. #define ISpGrammarBuilder_ResetGrammar(This,NewLanguage) (This)->lpVtbl->ResetGrammar(This,NewLanguage)
  7318. #define ISpGrammarBuilder_GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState) (This)->lpVtbl->GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState)
  7319. #define ISpGrammarBuilder_ClearRule(This,hState) (This)->lpVtbl->ClearRule(This,hState)
  7320. #define ISpGrammarBuilder_CreateNewState(This,hState,phState) (This)->lpVtbl->CreateNewState(This,hState,phState)
  7321. #define ISpGrammarBuilder_AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo) (This)->lpVtbl->AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo)
  7322. #define ISpGrammarBuilder_AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo) (This)->lpVtbl->AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo)
  7323. #define ISpGrammarBuilder_AddResource(This,hRuleState,pszResourceName,pszResourceValue) (This)->lpVtbl->AddResource(This,hRuleState,pszResourceName,pszResourceValue)
  7324. #define ISpGrammarBuilder_Commit(This,dwReserved) (This)->lpVtbl->Commit(This,dwReserved)
  7325. #else
  7326. /*** IUnknown methods ***/
  7327. static FORCEINLINE HRESULT ISpGrammarBuilder_QueryInterface(ISpGrammarBuilder* This,REFIID riid,void **ppvObject) {
  7328. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  7329. }
  7330. static FORCEINLINE ULONG ISpGrammarBuilder_AddRef(ISpGrammarBuilder* This) {
  7331. return This->lpVtbl->AddRef(This);
  7332. }
  7333. static FORCEINLINE ULONG ISpGrammarBuilder_Release(ISpGrammarBuilder* This) {
  7334. return This->lpVtbl->Release(This);
  7335. }
  7336. /*** ISpGrammarBuilder methods ***/
  7337. static FORCEINLINE HRESULT ISpGrammarBuilder_ResetGrammar(ISpGrammarBuilder* This,WORD NewLanguage) {
  7338. return This->lpVtbl->ResetGrammar(This,NewLanguage);
  7339. }
  7340. static FORCEINLINE HRESULT ISpGrammarBuilder_GetRule(ISpGrammarBuilder* This,LPCWSTR pszRuleName,DWORD dwRuleId,DWORD dwAttributes,WINBOOL fCreateIfNotExist,SPSTATEHANDLE *phInitialState) {
  7341. return This->lpVtbl->GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState);
  7342. }
  7343. static FORCEINLINE HRESULT ISpGrammarBuilder_ClearRule(ISpGrammarBuilder* This,SPSTATEHANDLE hState) {
  7344. return This->lpVtbl->ClearRule(This,hState);
  7345. }
  7346. static FORCEINLINE HRESULT ISpGrammarBuilder_CreateNewState(ISpGrammarBuilder* This,SPSTATEHANDLE hState,SPSTATEHANDLE *phState) {
  7347. return This->lpVtbl->CreateNewState(This,hState,phState);
  7348. }
  7349. static FORCEINLINE HRESULT ISpGrammarBuilder_AddWordTransition(ISpGrammarBuilder* This,SPSTATEHANDLE hFromState,SPSTATEHANDLE hToState,LPCWSTR psz,LPCWSTR pszSeparators,SPGRAMMARWORDTYPE eWordType,float Weight,const SPPROPERTYINFO *pPropInfo) {
  7350. return This->lpVtbl->AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo);
  7351. }
  7352. static FORCEINLINE HRESULT ISpGrammarBuilder_AddRuleTransition(ISpGrammarBuilder* This,SPSTATEHANDLE hFromState,SPSTATEHANDLE hToState,SPSTATEHANDLE hRule,float Weight,const SPPROPERTYINFO *pPropInfo) {
  7353. return This->lpVtbl->AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo);
  7354. }
  7355. static FORCEINLINE HRESULT ISpGrammarBuilder_AddResource(ISpGrammarBuilder* This,SPSTATEHANDLE hRuleState,LPCWSTR pszResourceName,LPCWSTR pszResourceValue) {
  7356. return This->lpVtbl->AddResource(This,hRuleState,pszResourceName,pszResourceValue);
  7357. }
  7358. static FORCEINLINE HRESULT ISpGrammarBuilder_Commit(ISpGrammarBuilder* This,DWORD dwReserved) {
  7359. return This->lpVtbl->Commit(This,dwReserved);
  7360. }
  7361. #endif
  7362. #endif
  7363. #endif
  7364. #endif /* __ISpGrammarBuilder_INTERFACE_DEFINED__ */
  7365. typedef enum SPLOADOPTIONS {
  7366. SPLO_STATIC = 0,
  7367. SPLO_DYNAMIC = 1
  7368. } SPLOADOPTIONS;
  7369. /*****************************************************************************
  7370. * ISpRecoGrammar interface
  7371. */
  7372. #ifndef __ISpRecoGrammar_INTERFACE_DEFINED__
  7373. #define __ISpRecoGrammar_INTERFACE_DEFINED__
  7374. DEFINE_GUID(IID_ISpRecoGrammar, 0x2177db29, 0x7f45, 0x47d0, 0x85,0x54, 0x06,0x7e,0x91,0xc8,0x05,0x02);
  7375. #if defined(__cplusplus) && !defined(CINTERFACE)
  7376. MIDL_INTERFACE("2177db29-7f45-47d0-8554-067e91c80502")
  7377. ISpRecoGrammar : public ISpGrammarBuilder
  7378. {
  7379. virtual HRESULT STDMETHODCALLTYPE GetGrammarId(
  7380. ULONGLONG *pullGrammarId) = 0;
  7381. virtual HRESULT STDMETHODCALLTYPE GetRecoContext(
  7382. ISpRecoContext **ppRecoCtxt) = 0;
  7383. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromFile(
  7384. LPCWSTR pszFileName,
  7385. SPLOADOPTIONS Options) = 0;
  7386. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromObject(
  7387. REFCLSID rcid,
  7388. LPCWSTR pszGrammarName,
  7389. SPLOADOPTIONS Options) = 0;
  7390. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromResource(
  7391. HMODULE hModule,
  7392. LPCWSTR pszResourceName,
  7393. LPCWSTR pszResourceType,
  7394. WORD wLanguage,
  7395. SPLOADOPTIONS Options) = 0;
  7396. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromMemory(
  7397. const SPBINARYGRAMMAR *pGrammar,
  7398. SPLOADOPTIONS Options) = 0;
  7399. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromProprietaryGrammar(
  7400. REFGUID rguidParam,
  7401. LPCWSTR pszStringParam,
  7402. const void *pvDataPrarm,
  7403. ULONG cbDataSize,
  7404. SPLOADOPTIONS Options) = 0;
  7405. virtual HRESULT STDMETHODCALLTYPE SetRuleState(
  7406. LPCWSTR pszName,
  7407. void *pReserved,
  7408. SPRULESTATE NewState) = 0;
  7409. virtual HRESULT STDMETHODCALLTYPE SetRuleIdState(
  7410. ULONG ulRuleId,
  7411. SPRULESTATE NewState) = 0;
  7412. virtual HRESULT STDMETHODCALLTYPE LoadDictation(
  7413. LPCWSTR pszTopicName,
  7414. SPLOADOPTIONS Options) = 0;
  7415. virtual HRESULT STDMETHODCALLTYPE UnloadDictation(
  7416. ) = 0;
  7417. virtual HRESULT STDMETHODCALLTYPE SetDictationState(
  7418. SPRULESTATE NewState) = 0;
  7419. virtual HRESULT STDMETHODCALLTYPE SetWordSequenceData(
  7420. const WCHAR *pText,
  7421. ULONG cchText,
  7422. const SPTEXTSELECTIONINFO *pInfo) = 0;
  7423. virtual HRESULT STDMETHODCALLTYPE SetTextSelection(
  7424. const SPTEXTSELECTIONINFO *pInfo) = 0;
  7425. virtual HRESULT STDMETHODCALLTYPE IsPronounceable(
  7426. LPCWSTR pszWord,
  7427. SPWORDPRONOUNCEABLE *pWordPronounceable) = 0;
  7428. virtual HRESULT STDMETHODCALLTYPE SetGrammarState(
  7429. SPGRAMMARSTATE eGrammarState) = 0;
  7430. virtual HRESULT STDMETHODCALLTYPE SaveCmd(
  7431. IStream *pStream,
  7432. LPWSTR *ppszCoMemErrorText) = 0;
  7433. virtual HRESULT STDMETHODCALLTYPE GetGrammarState(
  7434. SPGRAMMARSTATE *peGrammarState) = 0;
  7435. };
  7436. #ifdef __CRT_UUID_DECL
  7437. __CRT_UUID_DECL(ISpRecoGrammar, 0x2177db29, 0x7f45, 0x47d0, 0x85,0x54, 0x06,0x7e,0x91,0xc8,0x05,0x02)
  7438. #endif
  7439. #else
  7440. typedef struct ISpRecoGrammarVtbl {
  7441. BEGIN_INTERFACE
  7442. /*** IUnknown methods ***/
  7443. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  7444. ISpRecoGrammar *This,
  7445. REFIID riid,
  7446. void **ppvObject);
  7447. ULONG (STDMETHODCALLTYPE *AddRef)(
  7448. ISpRecoGrammar *This);
  7449. ULONG (STDMETHODCALLTYPE *Release)(
  7450. ISpRecoGrammar *This);
  7451. /*** ISpGrammarBuilder methods ***/
  7452. HRESULT (STDMETHODCALLTYPE *ResetGrammar)(
  7453. ISpRecoGrammar *This,
  7454. WORD NewLanguage);
  7455. HRESULT (STDMETHODCALLTYPE *GetRule)(
  7456. ISpRecoGrammar *This,
  7457. LPCWSTR pszRuleName,
  7458. DWORD dwRuleId,
  7459. DWORD dwAttributes,
  7460. WINBOOL fCreateIfNotExist,
  7461. SPSTATEHANDLE *phInitialState);
  7462. HRESULT (STDMETHODCALLTYPE *ClearRule)(
  7463. ISpRecoGrammar *This,
  7464. SPSTATEHANDLE hState);
  7465. HRESULT (STDMETHODCALLTYPE *CreateNewState)(
  7466. ISpRecoGrammar *This,
  7467. SPSTATEHANDLE hState,
  7468. SPSTATEHANDLE *phState);
  7469. HRESULT (STDMETHODCALLTYPE *AddWordTransition)(
  7470. ISpRecoGrammar *This,
  7471. SPSTATEHANDLE hFromState,
  7472. SPSTATEHANDLE hToState,
  7473. LPCWSTR psz,
  7474. LPCWSTR pszSeparators,
  7475. SPGRAMMARWORDTYPE eWordType,
  7476. float Weight,
  7477. const SPPROPERTYINFO *pPropInfo);
  7478. HRESULT (STDMETHODCALLTYPE *AddRuleTransition)(
  7479. ISpRecoGrammar *This,
  7480. SPSTATEHANDLE hFromState,
  7481. SPSTATEHANDLE hToState,
  7482. SPSTATEHANDLE hRule,
  7483. float Weight,
  7484. const SPPROPERTYINFO *pPropInfo);
  7485. HRESULT (STDMETHODCALLTYPE *AddResource)(
  7486. ISpRecoGrammar *This,
  7487. SPSTATEHANDLE hRuleState,
  7488. LPCWSTR pszResourceName,
  7489. LPCWSTR pszResourceValue);
  7490. HRESULT (STDMETHODCALLTYPE *Commit)(
  7491. ISpRecoGrammar *This,
  7492. DWORD dwReserved);
  7493. /*** ISpRecoGrammar methods ***/
  7494. HRESULT (STDMETHODCALLTYPE *GetGrammarId)(
  7495. ISpRecoGrammar *This,
  7496. ULONGLONG *pullGrammarId);
  7497. HRESULT (STDMETHODCALLTYPE *GetRecoContext)(
  7498. ISpRecoGrammar *This,
  7499. ISpRecoContext **ppRecoCtxt);
  7500. HRESULT (STDMETHODCALLTYPE *LoadCmdFromFile)(
  7501. ISpRecoGrammar *This,
  7502. LPCWSTR pszFileName,
  7503. SPLOADOPTIONS Options);
  7504. HRESULT (STDMETHODCALLTYPE *LoadCmdFromObject)(
  7505. ISpRecoGrammar *This,
  7506. REFCLSID rcid,
  7507. LPCWSTR pszGrammarName,
  7508. SPLOADOPTIONS Options);
  7509. HRESULT (STDMETHODCALLTYPE *LoadCmdFromResource)(
  7510. ISpRecoGrammar *This,
  7511. HMODULE hModule,
  7512. LPCWSTR pszResourceName,
  7513. LPCWSTR pszResourceType,
  7514. WORD wLanguage,
  7515. SPLOADOPTIONS Options);
  7516. HRESULT (STDMETHODCALLTYPE *LoadCmdFromMemory)(
  7517. ISpRecoGrammar *This,
  7518. const SPBINARYGRAMMAR *pGrammar,
  7519. SPLOADOPTIONS Options);
  7520. HRESULT (STDMETHODCALLTYPE *LoadCmdFromProprietaryGrammar)(
  7521. ISpRecoGrammar *This,
  7522. REFGUID rguidParam,
  7523. LPCWSTR pszStringParam,
  7524. const void *pvDataPrarm,
  7525. ULONG cbDataSize,
  7526. SPLOADOPTIONS Options);
  7527. HRESULT (STDMETHODCALLTYPE *SetRuleState)(
  7528. ISpRecoGrammar *This,
  7529. LPCWSTR pszName,
  7530. void *pReserved,
  7531. SPRULESTATE NewState);
  7532. HRESULT (STDMETHODCALLTYPE *SetRuleIdState)(
  7533. ISpRecoGrammar *This,
  7534. ULONG ulRuleId,
  7535. SPRULESTATE NewState);
  7536. HRESULT (STDMETHODCALLTYPE *LoadDictation)(
  7537. ISpRecoGrammar *This,
  7538. LPCWSTR pszTopicName,
  7539. SPLOADOPTIONS Options);
  7540. HRESULT (STDMETHODCALLTYPE *UnloadDictation)(
  7541. ISpRecoGrammar *This);
  7542. HRESULT (STDMETHODCALLTYPE *SetDictationState)(
  7543. ISpRecoGrammar *This,
  7544. SPRULESTATE NewState);
  7545. HRESULT (STDMETHODCALLTYPE *SetWordSequenceData)(
  7546. ISpRecoGrammar *This,
  7547. const WCHAR *pText,
  7548. ULONG cchText,
  7549. const SPTEXTSELECTIONINFO *pInfo);
  7550. HRESULT (STDMETHODCALLTYPE *SetTextSelection)(
  7551. ISpRecoGrammar *This,
  7552. const SPTEXTSELECTIONINFO *pInfo);
  7553. HRESULT (STDMETHODCALLTYPE *IsPronounceable)(
  7554. ISpRecoGrammar *This,
  7555. LPCWSTR pszWord,
  7556. SPWORDPRONOUNCEABLE *pWordPronounceable);
  7557. HRESULT (STDMETHODCALLTYPE *SetGrammarState)(
  7558. ISpRecoGrammar *This,
  7559. SPGRAMMARSTATE eGrammarState);
  7560. HRESULT (STDMETHODCALLTYPE *SaveCmd)(
  7561. ISpRecoGrammar *This,
  7562. IStream *pStream,
  7563. LPWSTR *ppszCoMemErrorText);
  7564. HRESULT (STDMETHODCALLTYPE *GetGrammarState)(
  7565. ISpRecoGrammar *This,
  7566. SPGRAMMARSTATE *peGrammarState);
  7567. END_INTERFACE
  7568. } ISpRecoGrammarVtbl;
  7569. interface ISpRecoGrammar {
  7570. CONST_VTBL ISpRecoGrammarVtbl* lpVtbl;
  7571. };
  7572. #ifdef COBJMACROS
  7573. #ifndef WIDL_C_INLINE_WRAPPERS
  7574. /*** IUnknown methods ***/
  7575. #define ISpRecoGrammar_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  7576. #define ISpRecoGrammar_AddRef(This) (This)->lpVtbl->AddRef(This)
  7577. #define ISpRecoGrammar_Release(This) (This)->lpVtbl->Release(This)
  7578. /*** ISpGrammarBuilder methods ***/
  7579. #define ISpRecoGrammar_ResetGrammar(This,NewLanguage) (This)->lpVtbl->ResetGrammar(This,NewLanguage)
  7580. #define ISpRecoGrammar_GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState) (This)->lpVtbl->GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState)
  7581. #define ISpRecoGrammar_ClearRule(This,hState) (This)->lpVtbl->ClearRule(This,hState)
  7582. #define ISpRecoGrammar_CreateNewState(This,hState,phState) (This)->lpVtbl->CreateNewState(This,hState,phState)
  7583. #define ISpRecoGrammar_AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo) (This)->lpVtbl->AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo)
  7584. #define ISpRecoGrammar_AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo) (This)->lpVtbl->AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo)
  7585. #define ISpRecoGrammar_AddResource(This,hRuleState,pszResourceName,pszResourceValue) (This)->lpVtbl->AddResource(This,hRuleState,pszResourceName,pszResourceValue)
  7586. #define ISpRecoGrammar_Commit(This,dwReserved) (This)->lpVtbl->Commit(This,dwReserved)
  7587. /*** ISpRecoGrammar methods ***/
  7588. #define ISpRecoGrammar_GetGrammarId(This,pullGrammarId) (This)->lpVtbl->GetGrammarId(This,pullGrammarId)
  7589. #define ISpRecoGrammar_GetRecoContext(This,ppRecoCtxt) (This)->lpVtbl->GetRecoContext(This,ppRecoCtxt)
  7590. #define ISpRecoGrammar_LoadCmdFromFile(This,pszFileName,Options) (This)->lpVtbl->LoadCmdFromFile(This,pszFileName,Options)
  7591. #define ISpRecoGrammar_LoadCmdFromObject(This,rcid,pszGrammarName,Options) (This)->lpVtbl->LoadCmdFromObject(This,rcid,pszGrammarName,Options)
  7592. #define ISpRecoGrammar_LoadCmdFromResource(This,hModule,pszResourceName,pszResourceType,wLanguage,Options) (This)->lpVtbl->LoadCmdFromResource(This,hModule,pszResourceName,pszResourceType,wLanguage,Options)
  7593. #define ISpRecoGrammar_LoadCmdFromMemory(This,pGrammar,Options) (This)->lpVtbl->LoadCmdFromMemory(This,pGrammar,Options)
  7594. #define ISpRecoGrammar_LoadCmdFromProprietaryGrammar(This,rguidParam,pszStringParam,pvDataPrarm,cbDataSize,Options) (This)->lpVtbl->LoadCmdFromProprietaryGrammar(This,rguidParam,pszStringParam,pvDataPrarm,cbDataSize,Options)
  7595. #define ISpRecoGrammar_SetRuleState(This,pszName,pReserved,NewState) (This)->lpVtbl->SetRuleState(This,pszName,pReserved,NewState)
  7596. #define ISpRecoGrammar_SetRuleIdState(This,ulRuleId,NewState) (This)->lpVtbl->SetRuleIdState(This,ulRuleId,NewState)
  7597. #define ISpRecoGrammar_LoadDictation(This,pszTopicName,Options) (This)->lpVtbl->LoadDictation(This,pszTopicName,Options)
  7598. #define ISpRecoGrammar_UnloadDictation(This) (This)->lpVtbl->UnloadDictation(This)
  7599. #define ISpRecoGrammar_SetDictationState(This,NewState) (This)->lpVtbl->SetDictationState(This,NewState)
  7600. #define ISpRecoGrammar_SetWordSequenceData(This,pText,cchText,pInfo) (This)->lpVtbl->SetWordSequenceData(This,pText,cchText,pInfo)
  7601. #define ISpRecoGrammar_SetTextSelection(This,pInfo) (This)->lpVtbl->SetTextSelection(This,pInfo)
  7602. #define ISpRecoGrammar_IsPronounceable(This,pszWord,pWordPronounceable) (This)->lpVtbl->IsPronounceable(This,pszWord,pWordPronounceable)
  7603. #define ISpRecoGrammar_SetGrammarState(This,eGrammarState) (This)->lpVtbl->SetGrammarState(This,eGrammarState)
  7604. #define ISpRecoGrammar_SaveCmd(This,pStream,ppszCoMemErrorText) (This)->lpVtbl->SaveCmd(This,pStream,ppszCoMemErrorText)
  7605. #define ISpRecoGrammar_GetGrammarState(This,peGrammarState) (This)->lpVtbl->GetGrammarState(This,peGrammarState)
  7606. #else
  7607. /*** IUnknown methods ***/
  7608. static FORCEINLINE HRESULT ISpRecoGrammar_QueryInterface(ISpRecoGrammar* This,REFIID riid,void **ppvObject) {
  7609. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  7610. }
  7611. static FORCEINLINE ULONG ISpRecoGrammar_AddRef(ISpRecoGrammar* This) {
  7612. return This->lpVtbl->AddRef(This);
  7613. }
  7614. static FORCEINLINE ULONG ISpRecoGrammar_Release(ISpRecoGrammar* This) {
  7615. return This->lpVtbl->Release(This);
  7616. }
  7617. /*** ISpGrammarBuilder methods ***/
  7618. static FORCEINLINE HRESULT ISpRecoGrammar_ResetGrammar(ISpRecoGrammar* This,WORD NewLanguage) {
  7619. return This->lpVtbl->ResetGrammar(This,NewLanguage);
  7620. }
  7621. static FORCEINLINE HRESULT ISpRecoGrammar_GetRule(ISpRecoGrammar* This,LPCWSTR pszRuleName,DWORD dwRuleId,DWORD dwAttributes,WINBOOL fCreateIfNotExist,SPSTATEHANDLE *phInitialState) {
  7622. return This->lpVtbl->GetRule(This,pszRuleName,dwRuleId,dwAttributes,fCreateIfNotExist,phInitialState);
  7623. }
  7624. static FORCEINLINE HRESULT ISpRecoGrammar_ClearRule(ISpRecoGrammar* This,SPSTATEHANDLE hState) {
  7625. return This->lpVtbl->ClearRule(This,hState);
  7626. }
  7627. static FORCEINLINE HRESULT ISpRecoGrammar_CreateNewState(ISpRecoGrammar* This,SPSTATEHANDLE hState,SPSTATEHANDLE *phState) {
  7628. return This->lpVtbl->CreateNewState(This,hState,phState);
  7629. }
  7630. static FORCEINLINE HRESULT ISpRecoGrammar_AddWordTransition(ISpRecoGrammar* This,SPSTATEHANDLE hFromState,SPSTATEHANDLE hToState,LPCWSTR psz,LPCWSTR pszSeparators,SPGRAMMARWORDTYPE eWordType,float Weight,const SPPROPERTYINFO *pPropInfo) {
  7631. return This->lpVtbl->AddWordTransition(This,hFromState,hToState,psz,pszSeparators,eWordType,Weight,pPropInfo);
  7632. }
  7633. static FORCEINLINE HRESULT ISpRecoGrammar_AddRuleTransition(ISpRecoGrammar* This,SPSTATEHANDLE hFromState,SPSTATEHANDLE hToState,SPSTATEHANDLE hRule,float Weight,const SPPROPERTYINFO *pPropInfo) {
  7634. return This->lpVtbl->AddRuleTransition(This,hFromState,hToState,hRule,Weight,pPropInfo);
  7635. }
  7636. static FORCEINLINE HRESULT ISpRecoGrammar_AddResource(ISpRecoGrammar* This,SPSTATEHANDLE hRuleState,LPCWSTR pszResourceName,LPCWSTR pszResourceValue) {
  7637. return This->lpVtbl->AddResource(This,hRuleState,pszResourceName,pszResourceValue);
  7638. }
  7639. static FORCEINLINE HRESULT ISpRecoGrammar_Commit(ISpRecoGrammar* This,DWORD dwReserved) {
  7640. return This->lpVtbl->Commit(This,dwReserved);
  7641. }
  7642. /*** ISpRecoGrammar methods ***/
  7643. static FORCEINLINE HRESULT ISpRecoGrammar_GetGrammarId(ISpRecoGrammar* This,ULONGLONG *pullGrammarId) {
  7644. return This->lpVtbl->GetGrammarId(This,pullGrammarId);
  7645. }
  7646. static FORCEINLINE HRESULT ISpRecoGrammar_GetRecoContext(ISpRecoGrammar* This,ISpRecoContext **ppRecoCtxt) {
  7647. return This->lpVtbl->GetRecoContext(This,ppRecoCtxt);
  7648. }
  7649. static FORCEINLINE HRESULT ISpRecoGrammar_LoadCmdFromFile(ISpRecoGrammar* This,LPCWSTR pszFileName,SPLOADOPTIONS Options) {
  7650. return This->lpVtbl->LoadCmdFromFile(This,pszFileName,Options);
  7651. }
  7652. static FORCEINLINE HRESULT ISpRecoGrammar_LoadCmdFromObject(ISpRecoGrammar* This,REFCLSID rcid,LPCWSTR pszGrammarName,SPLOADOPTIONS Options) {
  7653. return This->lpVtbl->LoadCmdFromObject(This,rcid,pszGrammarName,Options);
  7654. }
  7655. static FORCEINLINE HRESULT ISpRecoGrammar_LoadCmdFromResource(ISpRecoGrammar* This,HMODULE hModule,LPCWSTR pszResourceName,LPCWSTR pszResourceType,WORD wLanguage,SPLOADOPTIONS Options) {
  7656. return This->lpVtbl->LoadCmdFromResource(This,hModule,pszResourceName,pszResourceType,wLanguage,Options);
  7657. }
  7658. static FORCEINLINE HRESULT ISpRecoGrammar_LoadCmdFromMemory(ISpRecoGrammar* This,const SPBINARYGRAMMAR *pGrammar,SPLOADOPTIONS Options) {
  7659. return This->lpVtbl->LoadCmdFromMemory(This,pGrammar,Options);
  7660. }
  7661. static FORCEINLINE HRESULT ISpRecoGrammar_LoadCmdFromProprietaryGrammar(ISpRecoGrammar* This,REFGUID rguidParam,LPCWSTR pszStringParam,const void *pvDataPrarm,ULONG cbDataSize,SPLOADOPTIONS Options) {
  7662. return This->lpVtbl->LoadCmdFromProprietaryGrammar(This,rguidParam,pszStringParam,pvDataPrarm,cbDataSize,Options);
  7663. }
  7664. static FORCEINLINE HRESULT ISpRecoGrammar_SetRuleState(ISpRecoGrammar* This,LPCWSTR pszName,void *pReserved,SPRULESTATE NewState) {
  7665. return This->lpVtbl->SetRuleState(This,pszName,pReserved,NewState);
  7666. }
  7667. static FORCEINLINE HRESULT ISpRecoGrammar_SetRuleIdState(ISpRecoGrammar* This,ULONG ulRuleId,SPRULESTATE NewState) {
  7668. return This->lpVtbl->SetRuleIdState(This,ulRuleId,NewState);
  7669. }
  7670. static FORCEINLINE HRESULT ISpRecoGrammar_LoadDictation(ISpRecoGrammar* This,LPCWSTR pszTopicName,SPLOADOPTIONS Options) {
  7671. return This->lpVtbl->LoadDictation(This,pszTopicName,Options);
  7672. }
  7673. static FORCEINLINE HRESULT ISpRecoGrammar_UnloadDictation(ISpRecoGrammar* This) {
  7674. return This->lpVtbl->UnloadDictation(This);
  7675. }
  7676. static FORCEINLINE HRESULT ISpRecoGrammar_SetDictationState(ISpRecoGrammar* This,SPRULESTATE NewState) {
  7677. return This->lpVtbl->SetDictationState(This,NewState);
  7678. }
  7679. static FORCEINLINE HRESULT ISpRecoGrammar_SetWordSequenceData(ISpRecoGrammar* This,const WCHAR *pText,ULONG cchText,const SPTEXTSELECTIONINFO *pInfo) {
  7680. return This->lpVtbl->SetWordSequenceData(This,pText,cchText,pInfo);
  7681. }
  7682. static FORCEINLINE HRESULT ISpRecoGrammar_SetTextSelection(ISpRecoGrammar* This,const SPTEXTSELECTIONINFO *pInfo) {
  7683. return This->lpVtbl->SetTextSelection(This,pInfo);
  7684. }
  7685. static FORCEINLINE HRESULT ISpRecoGrammar_IsPronounceable(ISpRecoGrammar* This,LPCWSTR pszWord,SPWORDPRONOUNCEABLE *pWordPronounceable) {
  7686. return This->lpVtbl->IsPronounceable(This,pszWord,pWordPronounceable);
  7687. }
  7688. static FORCEINLINE HRESULT ISpRecoGrammar_SetGrammarState(ISpRecoGrammar* This,SPGRAMMARSTATE eGrammarState) {
  7689. return This->lpVtbl->SetGrammarState(This,eGrammarState);
  7690. }
  7691. static FORCEINLINE HRESULT ISpRecoGrammar_SaveCmd(ISpRecoGrammar* This,IStream *pStream,LPWSTR *ppszCoMemErrorText) {
  7692. return This->lpVtbl->SaveCmd(This,pStream,ppszCoMemErrorText);
  7693. }
  7694. static FORCEINLINE HRESULT ISpRecoGrammar_GetGrammarState(ISpRecoGrammar* This,SPGRAMMARSTATE *peGrammarState) {
  7695. return This->lpVtbl->GetGrammarState(This,peGrammarState);
  7696. }
  7697. #endif
  7698. #endif
  7699. #endif
  7700. #endif /* __ISpRecoGrammar_INTERFACE_DEFINED__ */
  7701. typedef enum SPMATCHINGMODE {
  7702. AllWords = 0,
  7703. Subsequence = 1,
  7704. OrderedSubset = 3,
  7705. SubsequenceContentRequired = 5,
  7706. OrderedSubsetContentRequired = 7
  7707. } SPMATCHINGMODE;
  7708. typedef enum PHONETICALPHABET {
  7709. PA_Ipa = 0,
  7710. PA_Ups = 1,
  7711. PA_Sapi = 2
  7712. } PHONETICALPHABET;
  7713. /*****************************************************************************
  7714. * ISpGrammarBuilder2 interface
  7715. */
  7716. #ifndef __ISpGrammarBuilder2_INTERFACE_DEFINED__
  7717. #define __ISpGrammarBuilder2_INTERFACE_DEFINED__
  7718. DEFINE_GUID(IID_ISpGrammarBuilder2, 0x8ab10026, 0x20cc, 0x4b20, 0x8c,0x22, 0xa4,0x9c,0x9b,0xa7,0x8f,0x60);
  7719. #if defined(__cplusplus) && !defined(CINTERFACE)
  7720. MIDL_INTERFACE("8ab10026-20cc-4b20-8c22-a49c9ba78f60")
  7721. ISpGrammarBuilder2 : public IUnknown
  7722. {
  7723. virtual HRESULT STDMETHODCALLTYPE AddTextSubset(
  7724. SPSTATEHANDLE hFromState,
  7725. SPSTATEHANDLE hToState,
  7726. LPCWSTR psz,
  7727. SPMATCHINGMODE eMatchMode) = 0;
  7728. virtual HRESULT STDMETHODCALLTYPE SetPhoneticAlphabet(
  7729. PHONETICALPHABET phoneticALphabet) = 0;
  7730. };
  7731. #ifdef __CRT_UUID_DECL
  7732. __CRT_UUID_DECL(ISpGrammarBuilder2, 0x8ab10026, 0x20cc, 0x4b20, 0x8c,0x22, 0xa4,0x9c,0x9b,0xa7,0x8f,0x60)
  7733. #endif
  7734. #else
  7735. typedef struct ISpGrammarBuilder2Vtbl {
  7736. BEGIN_INTERFACE
  7737. /*** IUnknown methods ***/
  7738. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  7739. ISpGrammarBuilder2 *This,
  7740. REFIID riid,
  7741. void **ppvObject);
  7742. ULONG (STDMETHODCALLTYPE *AddRef)(
  7743. ISpGrammarBuilder2 *This);
  7744. ULONG (STDMETHODCALLTYPE *Release)(
  7745. ISpGrammarBuilder2 *This);
  7746. /*** ISpGrammarBuilder2 methods ***/
  7747. HRESULT (STDMETHODCALLTYPE *AddTextSubset)(
  7748. ISpGrammarBuilder2 *This,
  7749. SPSTATEHANDLE hFromState,
  7750. SPSTATEHANDLE hToState,
  7751. LPCWSTR psz,
  7752. SPMATCHINGMODE eMatchMode);
  7753. HRESULT (STDMETHODCALLTYPE *SetPhoneticAlphabet)(
  7754. ISpGrammarBuilder2 *This,
  7755. PHONETICALPHABET phoneticALphabet);
  7756. END_INTERFACE
  7757. } ISpGrammarBuilder2Vtbl;
  7758. interface ISpGrammarBuilder2 {
  7759. CONST_VTBL ISpGrammarBuilder2Vtbl* lpVtbl;
  7760. };
  7761. #ifdef COBJMACROS
  7762. #ifndef WIDL_C_INLINE_WRAPPERS
  7763. /*** IUnknown methods ***/
  7764. #define ISpGrammarBuilder2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  7765. #define ISpGrammarBuilder2_AddRef(This) (This)->lpVtbl->AddRef(This)
  7766. #define ISpGrammarBuilder2_Release(This) (This)->lpVtbl->Release(This)
  7767. /*** ISpGrammarBuilder2 methods ***/
  7768. #define ISpGrammarBuilder2_AddTextSubset(This,hFromState,hToState,psz,eMatchMode) (This)->lpVtbl->AddTextSubset(This,hFromState,hToState,psz,eMatchMode)
  7769. #define ISpGrammarBuilder2_SetPhoneticAlphabet(This,phoneticALphabet) (This)->lpVtbl->SetPhoneticAlphabet(This,phoneticALphabet)
  7770. #else
  7771. /*** IUnknown methods ***/
  7772. static FORCEINLINE HRESULT ISpGrammarBuilder2_QueryInterface(ISpGrammarBuilder2* This,REFIID riid,void **ppvObject) {
  7773. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  7774. }
  7775. static FORCEINLINE ULONG ISpGrammarBuilder2_AddRef(ISpGrammarBuilder2* This) {
  7776. return This->lpVtbl->AddRef(This);
  7777. }
  7778. static FORCEINLINE ULONG ISpGrammarBuilder2_Release(ISpGrammarBuilder2* This) {
  7779. return This->lpVtbl->Release(This);
  7780. }
  7781. /*** ISpGrammarBuilder2 methods ***/
  7782. static FORCEINLINE HRESULT ISpGrammarBuilder2_AddTextSubset(ISpGrammarBuilder2* This,SPSTATEHANDLE hFromState,SPSTATEHANDLE hToState,LPCWSTR psz,SPMATCHINGMODE eMatchMode) {
  7783. return This->lpVtbl->AddTextSubset(This,hFromState,hToState,psz,eMatchMode);
  7784. }
  7785. static FORCEINLINE HRESULT ISpGrammarBuilder2_SetPhoneticAlphabet(ISpGrammarBuilder2* This,PHONETICALPHABET phoneticALphabet) {
  7786. return This->lpVtbl->SetPhoneticAlphabet(This,phoneticALphabet);
  7787. }
  7788. #endif
  7789. #endif
  7790. #endif
  7791. #endif /* __ISpGrammarBuilder2_INTERFACE_DEFINED__ */
  7792. #define SPRP_NORMAL 0
  7793. /*****************************************************************************
  7794. * ISpRecoGrammar2 interface
  7795. */
  7796. #ifndef __ISpRecoGrammar2_INTERFACE_DEFINED__
  7797. #define __ISpRecoGrammar2_INTERFACE_DEFINED__
  7798. DEFINE_GUID(IID_ISpRecoGrammar2, 0x4b37bc9e, 0x9ed6, 0x44a3, 0x93,0xd3, 0x18,0xf0,0x22,0xb7,0x9e,0xc3);
  7799. #if defined(__cplusplus) && !defined(CINTERFACE)
  7800. MIDL_INTERFACE("4b37bc9e-9ed6-44a3-93d3-18f022b79ec3")
  7801. ISpRecoGrammar2 : public IUnknown
  7802. {
  7803. virtual HRESULT STDMETHODCALLTYPE GetRules(
  7804. SPRULE **ppCoMemRules,
  7805. UINT *puNumRules) = 0;
  7806. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromFile2(
  7807. LPCWSTR pszFileName,
  7808. SPLOADOPTIONS Options,
  7809. LPCWSTR pszSharingUri,
  7810. LPCWSTR pszBaseUri) = 0;
  7811. virtual HRESULT STDMETHODCALLTYPE LoadCmdFromMemory2(
  7812. const SPBINARYGRAMMAR *pGrammar,
  7813. SPLOADOPTIONS Options,
  7814. LPCWSTR pszSharingUri,
  7815. LPCWSTR pszBaseUri) = 0;
  7816. virtual HRESULT STDMETHODCALLTYPE SetRulePriority(
  7817. LPCWSTR pszRuleName,
  7818. ULONG ulRuleId,
  7819. int nRulePriority) = 0;
  7820. virtual HRESULT STDMETHODCALLTYPE SetRuleWeight(
  7821. LPCWSTR pszRuleName,
  7822. ULONG ulRuleId,
  7823. float flWeight) = 0;
  7824. virtual HRESULT STDMETHODCALLTYPE SetDictationWeight(
  7825. float flWeight) = 0;
  7826. virtual HRESULT STDMETHODCALLTYPE SetGrammarLoader(
  7827. ISpeechResourceLoader *pLoader) = 0;
  7828. virtual HRESULT STDMETHODCALLTYPE SetSMLSecurityManager(
  7829. IInternetSecurityManager *pSMLSecurityManager) = 0;
  7830. };
  7831. #ifdef __CRT_UUID_DECL
  7832. __CRT_UUID_DECL(ISpRecoGrammar2, 0x4b37bc9e, 0x9ed6, 0x44a3, 0x93,0xd3, 0x18,0xf0,0x22,0xb7,0x9e,0xc3)
  7833. #endif
  7834. #else
  7835. typedef struct ISpRecoGrammar2Vtbl {
  7836. BEGIN_INTERFACE
  7837. /*** IUnknown methods ***/
  7838. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  7839. ISpRecoGrammar2 *This,
  7840. REFIID riid,
  7841. void **ppvObject);
  7842. ULONG (STDMETHODCALLTYPE *AddRef)(
  7843. ISpRecoGrammar2 *This);
  7844. ULONG (STDMETHODCALLTYPE *Release)(
  7845. ISpRecoGrammar2 *This);
  7846. /*** ISpRecoGrammar2 methods ***/
  7847. HRESULT (STDMETHODCALLTYPE *GetRules)(
  7848. ISpRecoGrammar2 *This,
  7849. SPRULE **ppCoMemRules,
  7850. UINT *puNumRules);
  7851. HRESULT (STDMETHODCALLTYPE *LoadCmdFromFile2)(
  7852. ISpRecoGrammar2 *This,
  7853. LPCWSTR pszFileName,
  7854. SPLOADOPTIONS Options,
  7855. LPCWSTR pszSharingUri,
  7856. LPCWSTR pszBaseUri);
  7857. HRESULT (STDMETHODCALLTYPE *LoadCmdFromMemory2)(
  7858. ISpRecoGrammar2 *This,
  7859. const SPBINARYGRAMMAR *pGrammar,
  7860. SPLOADOPTIONS Options,
  7861. LPCWSTR pszSharingUri,
  7862. LPCWSTR pszBaseUri);
  7863. HRESULT (STDMETHODCALLTYPE *SetRulePriority)(
  7864. ISpRecoGrammar2 *This,
  7865. LPCWSTR pszRuleName,
  7866. ULONG ulRuleId,
  7867. int nRulePriority);
  7868. HRESULT (STDMETHODCALLTYPE *SetRuleWeight)(
  7869. ISpRecoGrammar2 *This,
  7870. LPCWSTR pszRuleName,
  7871. ULONG ulRuleId,
  7872. float flWeight);
  7873. HRESULT (STDMETHODCALLTYPE *SetDictationWeight)(
  7874. ISpRecoGrammar2 *This,
  7875. float flWeight);
  7876. HRESULT (STDMETHODCALLTYPE *SetGrammarLoader)(
  7877. ISpRecoGrammar2 *This,
  7878. ISpeechResourceLoader *pLoader);
  7879. HRESULT (STDMETHODCALLTYPE *SetSMLSecurityManager)(
  7880. ISpRecoGrammar2 *This,
  7881. IInternetSecurityManager *pSMLSecurityManager);
  7882. END_INTERFACE
  7883. } ISpRecoGrammar2Vtbl;
  7884. interface ISpRecoGrammar2 {
  7885. CONST_VTBL ISpRecoGrammar2Vtbl* lpVtbl;
  7886. };
  7887. #ifdef COBJMACROS
  7888. #ifndef WIDL_C_INLINE_WRAPPERS
  7889. /*** IUnknown methods ***/
  7890. #define ISpRecoGrammar2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  7891. #define ISpRecoGrammar2_AddRef(This) (This)->lpVtbl->AddRef(This)
  7892. #define ISpRecoGrammar2_Release(This) (This)->lpVtbl->Release(This)
  7893. /*** ISpRecoGrammar2 methods ***/
  7894. #define ISpRecoGrammar2_GetRules(This,ppCoMemRules,puNumRules) (This)->lpVtbl->GetRules(This,ppCoMemRules,puNumRules)
  7895. #define ISpRecoGrammar2_LoadCmdFromFile2(This,pszFileName,Options,pszSharingUri,pszBaseUri) (This)->lpVtbl->LoadCmdFromFile2(This,pszFileName,Options,pszSharingUri,pszBaseUri)
  7896. #define ISpRecoGrammar2_LoadCmdFromMemory2(This,pGrammar,Options,pszSharingUri,pszBaseUri) (This)->lpVtbl->LoadCmdFromMemory2(This,pGrammar,Options,pszSharingUri,pszBaseUri)
  7897. #define ISpRecoGrammar2_SetRulePriority(This,pszRuleName,ulRuleId,nRulePriority) (This)->lpVtbl->SetRulePriority(This,pszRuleName,ulRuleId,nRulePriority)
  7898. #define ISpRecoGrammar2_SetRuleWeight(This,pszRuleName,ulRuleId,flWeight) (This)->lpVtbl->SetRuleWeight(This,pszRuleName,ulRuleId,flWeight)
  7899. #define ISpRecoGrammar2_SetDictationWeight(This,flWeight) (This)->lpVtbl->SetDictationWeight(This,flWeight)
  7900. #define ISpRecoGrammar2_SetGrammarLoader(This,pLoader) (This)->lpVtbl->SetGrammarLoader(This,pLoader)
  7901. #define ISpRecoGrammar2_SetSMLSecurityManager(This,pSMLSecurityManager) (This)->lpVtbl->SetSMLSecurityManager(This,pSMLSecurityManager)
  7902. #else
  7903. /*** IUnknown methods ***/
  7904. static FORCEINLINE HRESULT ISpRecoGrammar2_QueryInterface(ISpRecoGrammar2* This,REFIID riid,void **ppvObject) {
  7905. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  7906. }
  7907. static FORCEINLINE ULONG ISpRecoGrammar2_AddRef(ISpRecoGrammar2* This) {
  7908. return This->lpVtbl->AddRef(This);
  7909. }
  7910. static FORCEINLINE ULONG ISpRecoGrammar2_Release(ISpRecoGrammar2* This) {
  7911. return This->lpVtbl->Release(This);
  7912. }
  7913. /*** ISpRecoGrammar2 methods ***/
  7914. static FORCEINLINE HRESULT ISpRecoGrammar2_GetRules(ISpRecoGrammar2* This,SPRULE **ppCoMemRules,UINT *puNumRules) {
  7915. return This->lpVtbl->GetRules(This,ppCoMemRules,puNumRules);
  7916. }
  7917. static FORCEINLINE HRESULT ISpRecoGrammar2_LoadCmdFromFile2(ISpRecoGrammar2* This,LPCWSTR pszFileName,SPLOADOPTIONS Options,LPCWSTR pszSharingUri,LPCWSTR pszBaseUri) {
  7918. return This->lpVtbl->LoadCmdFromFile2(This,pszFileName,Options,pszSharingUri,pszBaseUri);
  7919. }
  7920. static FORCEINLINE HRESULT ISpRecoGrammar2_LoadCmdFromMemory2(ISpRecoGrammar2* This,const SPBINARYGRAMMAR *pGrammar,SPLOADOPTIONS Options,LPCWSTR pszSharingUri,LPCWSTR pszBaseUri) {
  7921. return This->lpVtbl->LoadCmdFromMemory2(This,pGrammar,Options,pszSharingUri,pszBaseUri);
  7922. }
  7923. static FORCEINLINE HRESULT ISpRecoGrammar2_SetRulePriority(ISpRecoGrammar2* This,LPCWSTR pszRuleName,ULONG ulRuleId,int nRulePriority) {
  7924. return This->lpVtbl->SetRulePriority(This,pszRuleName,ulRuleId,nRulePriority);
  7925. }
  7926. static FORCEINLINE HRESULT ISpRecoGrammar2_SetRuleWeight(ISpRecoGrammar2* This,LPCWSTR pszRuleName,ULONG ulRuleId,float flWeight) {
  7927. return This->lpVtbl->SetRuleWeight(This,pszRuleName,ulRuleId,flWeight);
  7928. }
  7929. static FORCEINLINE HRESULT ISpRecoGrammar2_SetDictationWeight(ISpRecoGrammar2* This,float flWeight) {
  7930. return This->lpVtbl->SetDictationWeight(This,flWeight);
  7931. }
  7932. static FORCEINLINE HRESULT ISpRecoGrammar2_SetGrammarLoader(ISpRecoGrammar2* This,ISpeechResourceLoader *pLoader) {
  7933. return This->lpVtbl->SetGrammarLoader(This,pLoader);
  7934. }
  7935. static FORCEINLINE HRESULT ISpRecoGrammar2_SetSMLSecurityManager(ISpRecoGrammar2* This,IInternetSecurityManager *pSMLSecurityManager) {
  7936. return This->lpVtbl->SetSMLSecurityManager(This,pSMLSecurityManager);
  7937. }
  7938. #endif
  7939. #endif
  7940. #endif
  7941. #endif /* __ISpRecoGrammar2_INTERFACE_DEFINED__ */
  7942. /*****************************************************************************
  7943. * ISpeechResourceLoader interface
  7944. */
  7945. #ifndef __ISpeechResourceLoader_INTERFACE_DEFINED__
  7946. #define __ISpeechResourceLoader_INTERFACE_DEFINED__
  7947. DEFINE_GUID(IID_ISpeechResourceLoader, 0xb9ac5783, 0xfcd0, 0x4b21, 0xb1,0x19, 0xb4,0xf8,0xda,0x8f,0xd2,0xc3);
  7948. #if defined(__cplusplus) && !defined(CINTERFACE)
  7949. MIDL_INTERFACE("b9ac5783-fcd0-4b21-b119-b4f8da8fd2c3")
  7950. ISpeechResourceLoader : public IDispatch
  7951. {
  7952. virtual HRESULT STDMETHODCALLTYPE LoadResource(
  7953. BSTR bstrResourceUri,
  7954. VARIANT_BOOL fAlwaysReload,
  7955. IUnknown **pStream,
  7956. BSTR *pbstrMIMEType,
  7957. VARIANT_BOOL *pfModified,
  7958. BSTR *pbstrRedirectUrl) = 0;
  7959. virtual HRESULT STDMETHODCALLTYPE GetLocalCopy(
  7960. BSTR bstrResourceUri,
  7961. BSTR *pbstrLocalPath,
  7962. BSTR *pbstrMIMEType,
  7963. BSTR *pbstrRedirectUrl) = 0;
  7964. virtual HRESULT STDMETHODCALLTYPE ReleaseLocalCopy(
  7965. BSTR pbstrLocalPath) = 0;
  7966. };
  7967. #ifdef __CRT_UUID_DECL
  7968. __CRT_UUID_DECL(ISpeechResourceLoader, 0xb9ac5783, 0xfcd0, 0x4b21, 0xb1,0x19, 0xb4,0xf8,0xda,0x8f,0xd2,0xc3)
  7969. #endif
  7970. #else
  7971. typedef struct ISpeechResourceLoaderVtbl {
  7972. BEGIN_INTERFACE
  7973. /*** IUnknown methods ***/
  7974. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  7975. ISpeechResourceLoader *This,
  7976. REFIID riid,
  7977. void **ppvObject);
  7978. ULONG (STDMETHODCALLTYPE *AddRef)(
  7979. ISpeechResourceLoader *This);
  7980. ULONG (STDMETHODCALLTYPE *Release)(
  7981. ISpeechResourceLoader *This);
  7982. /*** IDispatch methods ***/
  7983. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  7984. ISpeechResourceLoader *This,
  7985. UINT *pctinfo);
  7986. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  7987. ISpeechResourceLoader *This,
  7988. UINT iTInfo,
  7989. LCID lcid,
  7990. ITypeInfo **ppTInfo);
  7991. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  7992. ISpeechResourceLoader *This,
  7993. REFIID riid,
  7994. LPOLESTR *rgszNames,
  7995. UINT cNames,
  7996. LCID lcid,
  7997. DISPID *rgDispId);
  7998. HRESULT (STDMETHODCALLTYPE *Invoke)(
  7999. ISpeechResourceLoader *This,
  8000. DISPID dispIdMember,
  8001. REFIID riid,
  8002. LCID lcid,
  8003. WORD wFlags,
  8004. DISPPARAMS *pDispParams,
  8005. VARIANT *pVarResult,
  8006. EXCEPINFO *pExcepInfo,
  8007. UINT *puArgErr);
  8008. /*** ISpeechResourceLoader methods ***/
  8009. HRESULT (STDMETHODCALLTYPE *LoadResource)(
  8010. ISpeechResourceLoader *This,
  8011. BSTR bstrResourceUri,
  8012. VARIANT_BOOL fAlwaysReload,
  8013. IUnknown **pStream,
  8014. BSTR *pbstrMIMEType,
  8015. VARIANT_BOOL *pfModified,
  8016. BSTR *pbstrRedirectUrl);
  8017. HRESULT (STDMETHODCALLTYPE *GetLocalCopy)(
  8018. ISpeechResourceLoader *This,
  8019. BSTR bstrResourceUri,
  8020. BSTR *pbstrLocalPath,
  8021. BSTR *pbstrMIMEType,
  8022. BSTR *pbstrRedirectUrl);
  8023. HRESULT (STDMETHODCALLTYPE *ReleaseLocalCopy)(
  8024. ISpeechResourceLoader *This,
  8025. BSTR pbstrLocalPath);
  8026. END_INTERFACE
  8027. } ISpeechResourceLoaderVtbl;
  8028. interface ISpeechResourceLoader {
  8029. CONST_VTBL ISpeechResourceLoaderVtbl* lpVtbl;
  8030. };
  8031. #ifdef COBJMACROS
  8032. #ifndef WIDL_C_INLINE_WRAPPERS
  8033. /*** IUnknown methods ***/
  8034. #define ISpeechResourceLoader_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  8035. #define ISpeechResourceLoader_AddRef(This) (This)->lpVtbl->AddRef(This)
  8036. #define ISpeechResourceLoader_Release(This) (This)->lpVtbl->Release(This)
  8037. /*** IDispatch methods ***/
  8038. #define ISpeechResourceLoader_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  8039. #define ISpeechResourceLoader_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  8040. #define ISpeechResourceLoader_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  8041. #define ISpeechResourceLoader_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  8042. /*** ISpeechResourceLoader methods ***/
  8043. #define ISpeechResourceLoader_LoadResource(This,bstrResourceUri,fAlwaysReload,pStream,pbstrMIMEType,pfModified,pbstrRedirectUrl) (This)->lpVtbl->LoadResource(This,bstrResourceUri,fAlwaysReload,pStream,pbstrMIMEType,pfModified,pbstrRedirectUrl)
  8044. #define ISpeechResourceLoader_GetLocalCopy(This,bstrResourceUri,pbstrLocalPath,pbstrMIMEType,pbstrRedirectUrl) (This)->lpVtbl->GetLocalCopy(This,bstrResourceUri,pbstrLocalPath,pbstrMIMEType,pbstrRedirectUrl)
  8045. #define ISpeechResourceLoader_ReleaseLocalCopy(This,pbstrLocalPath) (This)->lpVtbl->ReleaseLocalCopy(This,pbstrLocalPath)
  8046. #else
  8047. /*** IUnknown methods ***/
  8048. static FORCEINLINE HRESULT ISpeechResourceLoader_QueryInterface(ISpeechResourceLoader* This,REFIID riid,void **ppvObject) {
  8049. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  8050. }
  8051. static FORCEINLINE ULONG ISpeechResourceLoader_AddRef(ISpeechResourceLoader* This) {
  8052. return This->lpVtbl->AddRef(This);
  8053. }
  8054. static FORCEINLINE ULONG ISpeechResourceLoader_Release(ISpeechResourceLoader* This) {
  8055. return This->lpVtbl->Release(This);
  8056. }
  8057. /*** IDispatch methods ***/
  8058. static FORCEINLINE HRESULT ISpeechResourceLoader_GetTypeInfoCount(ISpeechResourceLoader* This,UINT *pctinfo) {
  8059. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  8060. }
  8061. static FORCEINLINE HRESULT ISpeechResourceLoader_GetTypeInfo(ISpeechResourceLoader* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  8062. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  8063. }
  8064. static FORCEINLINE HRESULT ISpeechResourceLoader_GetIDsOfNames(ISpeechResourceLoader* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  8065. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  8066. }
  8067. static FORCEINLINE HRESULT ISpeechResourceLoader_Invoke(ISpeechResourceLoader* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  8068. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  8069. }
  8070. /*** ISpeechResourceLoader methods ***/
  8071. static FORCEINLINE HRESULT ISpeechResourceLoader_LoadResource(ISpeechResourceLoader* This,BSTR bstrResourceUri,VARIANT_BOOL fAlwaysReload,IUnknown **pStream,BSTR *pbstrMIMEType,VARIANT_BOOL *pfModified,BSTR *pbstrRedirectUrl) {
  8072. return This->lpVtbl->LoadResource(This,bstrResourceUri,fAlwaysReload,pStream,pbstrMIMEType,pfModified,pbstrRedirectUrl);
  8073. }
  8074. static FORCEINLINE HRESULT ISpeechResourceLoader_GetLocalCopy(ISpeechResourceLoader* This,BSTR bstrResourceUri,BSTR *pbstrLocalPath,BSTR *pbstrMIMEType,BSTR *pbstrRedirectUrl) {
  8075. return This->lpVtbl->GetLocalCopy(This,bstrResourceUri,pbstrLocalPath,pbstrMIMEType,pbstrRedirectUrl);
  8076. }
  8077. static FORCEINLINE HRESULT ISpeechResourceLoader_ReleaseLocalCopy(ISpeechResourceLoader* This,BSTR pbstrLocalPath) {
  8078. return This->lpVtbl->ReleaseLocalCopy(This,pbstrLocalPath);
  8079. }
  8080. #endif
  8081. #endif
  8082. #endif
  8083. #endif /* __ISpeechResourceLoader_INTERFACE_DEFINED__ */
  8084. typedef struct SPRECOCONTEXTSTATUS {
  8085. SPINTERFERENCE eInterference;
  8086. WCHAR szRequestTypeOfUI[255];
  8087. DWORD dwReserved1;
  8088. DWORD dwReserved2;
  8089. } SPRECOCONTEXTSTATUS;
  8090. typedef enum SPBOOKMARKOPTIONS {
  8091. SPBO_NONE = 0,
  8092. SPBO_PAUSE = 0x1,
  8093. SPBO_AHEAD = 0x2,
  8094. SPBO_TIME_UNITS = 0x4
  8095. } SPBOOKMARKOPTIONS;
  8096. typedef enum SPAUDIOOPTIONS {
  8097. SPAO_NONE = 0,
  8098. SPAO_RETAIN_AUDIO = 0x1
  8099. } SPAUDIOOPTIONS;
  8100. /*****************************************************************************
  8101. * ISpRecoContext interface
  8102. */
  8103. #ifndef __ISpRecoContext_INTERFACE_DEFINED__
  8104. #define __ISpRecoContext_INTERFACE_DEFINED__
  8105. DEFINE_GUID(IID_ISpRecoContext, 0xf740a62f, 0x7c15, 0x489e, 0x82,0x34, 0x94,0x0a,0x33,0xd9,0x27,0x2d);
  8106. #if defined(__cplusplus) && !defined(CINTERFACE)
  8107. MIDL_INTERFACE("f740a62f-7c15-489e-8234-940a33d9272d")
  8108. ISpRecoContext : public ISpEventSource
  8109. {
  8110. virtual HRESULT STDMETHODCALLTYPE GetRecognizer(
  8111. ISpRecognizer **ppRecognizer) = 0;
  8112. virtual HRESULT STDMETHODCALLTYPE CreateGrammar(
  8113. ULONGLONG ullGrammarId,
  8114. ISpRecoGrammar **ppGrammar) = 0;
  8115. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  8116. SPRECOCONTEXTSTATUS *pStatus) = 0;
  8117. virtual HRESULT STDMETHODCALLTYPE GetMaxAlternates(
  8118. ULONG *pcAlternates) = 0;
  8119. virtual HRESULT STDMETHODCALLTYPE SetMaxAlternates(
  8120. ULONG cAlternates) = 0;
  8121. virtual HRESULT STDMETHODCALLTYPE SetAudioOptions(
  8122. SPAUDIOOPTIONS Options,
  8123. const GUID *pAudioFormatId,
  8124. const WAVEFORMATEX *pWaveFormatEx) = 0;
  8125. virtual HRESULT STDMETHODCALLTYPE GetAudioOptions(
  8126. SPAUDIOOPTIONS *pOptions,
  8127. GUID *pAudioFormatId,
  8128. WAVEFORMATEX **ppCoMemWFEX) = 0;
  8129. virtual HRESULT STDMETHODCALLTYPE DeserializeResult(
  8130. const SPSERIALIZEDRESULT *pSerializedResult,
  8131. ISpRecoResult **ppResult) = 0;
  8132. virtual HRESULT STDMETHODCALLTYPE Bookmark(
  8133. SPBOOKMARKOPTIONS Options,
  8134. ULONGLONG ullStreamPosition,
  8135. LPARAM lparamEvent) = 0;
  8136. virtual HRESULT STDMETHODCALLTYPE SetAdaptationData(
  8137. LPCWSTR pAdaptationData,
  8138. const ULONG cch) = 0;
  8139. virtual HRESULT STDMETHODCALLTYPE Pause(
  8140. DWORD dwReserved) = 0;
  8141. virtual HRESULT STDMETHODCALLTYPE Resume(
  8142. DWORD dwReserved) = 0;
  8143. virtual HRESULT STDMETHODCALLTYPE SetVoice(
  8144. ISpVoice *pVoice,
  8145. WINBOOL fAllowFormatChanges) = 0;
  8146. virtual HRESULT STDMETHODCALLTYPE GetVoice(
  8147. ISpVoice **ppVoice) = 0;
  8148. virtual HRESULT STDMETHODCALLTYPE SetVoicePurgeEvent(
  8149. ULONGLONG ullEventInterest) = 0;
  8150. virtual HRESULT STDMETHODCALLTYPE GetVoicePurgeEvent(
  8151. ULONGLONG *pullEventInterest) = 0;
  8152. virtual HRESULT STDMETHODCALLTYPE SetContextState(
  8153. SPCONTEXTSTATE eContextState) = 0;
  8154. virtual HRESULT STDMETHODCALLTYPE GetContextState(
  8155. SPCONTEXTSTATE *peContextState) = 0;
  8156. };
  8157. #ifdef __CRT_UUID_DECL
  8158. __CRT_UUID_DECL(ISpRecoContext, 0xf740a62f, 0x7c15, 0x489e, 0x82,0x34, 0x94,0x0a,0x33,0xd9,0x27,0x2d)
  8159. #endif
  8160. #else
  8161. typedef struct ISpRecoContextVtbl {
  8162. BEGIN_INTERFACE
  8163. /*** IUnknown methods ***/
  8164. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  8165. ISpRecoContext *This,
  8166. REFIID riid,
  8167. void **ppvObject);
  8168. ULONG (STDMETHODCALLTYPE *AddRef)(
  8169. ISpRecoContext *This);
  8170. ULONG (STDMETHODCALLTYPE *Release)(
  8171. ISpRecoContext *This);
  8172. /*** ISpNotifySource methods ***/
  8173. HRESULT (STDMETHODCALLTYPE *SetNotifySink)(
  8174. ISpRecoContext *This,
  8175. ISpNotifySink *pNotifySink);
  8176. HRESULT (STDMETHODCALLTYPE *SetNotifyWindowMessage)(
  8177. ISpRecoContext *This,
  8178. HWND hWnd,
  8179. UINT Msg,
  8180. WPARAM wParam,
  8181. LPARAM lParam);
  8182. HRESULT (STDMETHODCALLTYPE *SetNotifyCallbackFunction)(
  8183. ISpRecoContext *This,
  8184. SPNOTIFYCALLBACK *pfnCallback,
  8185. WPARAM wParam,
  8186. LPARAM lParam);
  8187. HRESULT (STDMETHODCALLTYPE *SetNotifyCallbackInterface)(
  8188. ISpRecoContext *This,
  8189. ISpNotifyCallback *pSpCallback,
  8190. WPARAM wParam,
  8191. LPARAM lParam);
  8192. HRESULT (STDMETHODCALLTYPE *SetNotifyWin32Event)(
  8193. ISpRecoContext *This);
  8194. HRESULT (STDMETHODCALLTYPE *WaitForNotifyEvent)(
  8195. ISpRecoContext *This,
  8196. DWORD dwMilliseconds);
  8197. HANDLE (STDMETHODCALLTYPE *GetNotifyEventHandle)(
  8198. ISpRecoContext *This);
  8199. /*** ISpEventSource methods ***/
  8200. HRESULT (STDMETHODCALLTYPE *SetInterest)(
  8201. ISpRecoContext *This,
  8202. ULONGLONG ullEventInterest,
  8203. ULONGLONG ullQueuedInterest);
  8204. HRESULT (STDMETHODCALLTYPE *GetEvents)(
  8205. ISpRecoContext *This,
  8206. ULONG ulCount,
  8207. SPEVENT *pEventArray,
  8208. ULONG *pulFetched);
  8209. HRESULT (STDMETHODCALLTYPE *GetInfo)(
  8210. ISpRecoContext *This,
  8211. SPEVENTSOURCEINFO *pInfo);
  8212. /*** ISpRecoContext methods ***/
  8213. HRESULT (STDMETHODCALLTYPE *GetRecognizer)(
  8214. ISpRecoContext *This,
  8215. ISpRecognizer **ppRecognizer);
  8216. HRESULT (STDMETHODCALLTYPE *CreateGrammar)(
  8217. ISpRecoContext *This,
  8218. ULONGLONG ullGrammarId,
  8219. ISpRecoGrammar **ppGrammar);
  8220. HRESULT (STDMETHODCALLTYPE *GetStatus)(
  8221. ISpRecoContext *This,
  8222. SPRECOCONTEXTSTATUS *pStatus);
  8223. HRESULT (STDMETHODCALLTYPE *GetMaxAlternates)(
  8224. ISpRecoContext *This,
  8225. ULONG *pcAlternates);
  8226. HRESULT (STDMETHODCALLTYPE *SetMaxAlternates)(
  8227. ISpRecoContext *This,
  8228. ULONG cAlternates);
  8229. HRESULT (STDMETHODCALLTYPE *SetAudioOptions)(
  8230. ISpRecoContext *This,
  8231. SPAUDIOOPTIONS Options,
  8232. const GUID *pAudioFormatId,
  8233. const WAVEFORMATEX *pWaveFormatEx);
  8234. HRESULT (STDMETHODCALLTYPE *GetAudioOptions)(
  8235. ISpRecoContext *This,
  8236. SPAUDIOOPTIONS *pOptions,
  8237. GUID *pAudioFormatId,
  8238. WAVEFORMATEX **ppCoMemWFEX);
  8239. HRESULT (STDMETHODCALLTYPE *DeserializeResult)(
  8240. ISpRecoContext *This,
  8241. const SPSERIALIZEDRESULT *pSerializedResult,
  8242. ISpRecoResult **ppResult);
  8243. HRESULT (STDMETHODCALLTYPE *Bookmark)(
  8244. ISpRecoContext *This,
  8245. SPBOOKMARKOPTIONS Options,
  8246. ULONGLONG ullStreamPosition,
  8247. LPARAM lparamEvent);
  8248. HRESULT (STDMETHODCALLTYPE *SetAdaptationData)(
  8249. ISpRecoContext *This,
  8250. LPCWSTR pAdaptationData,
  8251. const ULONG cch);
  8252. HRESULT (STDMETHODCALLTYPE *Pause)(
  8253. ISpRecoContext *This,
  8254. DWORD dwReserved);
  8255. HRESULT (STDMETHODCALLTYPE *Resume)(
  8256. ISpRecoContext *This,
  8257. DWORD dwReserved);
  8258. HRESULT (STDMETHODCALLTYPE *SetVoice)(
  8259. ISpRecoContext *This,
  8260. ISpVoice *pVoice,
  8261. WINBOOL fAllowFormatChanges);
  8262. HRESULT (STDMETHODCALLTYPE *GetVoice)(
  8263. ISpRecoContext *This,
  8264. ISpVoice **ppVoice);
  8265. HRESULT (STDMETHODCALLTYPE *SetVoicePurgeEvent)(
  8266. ISpRecoContext *This,
  8267. ULONGLONG ullEventInterest);
  8268. HRESULT (STDMETHODCALLTYPE *GetVoicePurgeEvent)(
  8269. ISpRecoContext *This,
  8270. ULONGLONG *pullEventInterest);
  8271. HRESULT (STDMETHODCALLTYPE *SetContextState)(
  8272. ISpRecoContext *This,
  8273. SPCONTEXTSTATE eContextState);
  8274. HRESULT (STDMETHODCALLTYPE *GetContextState)(
  8275. ISpRecoContext *This,
  8276. SPCONTEXTSTATE *peContextState);
  8277. END_INTERFACE
  8278. } ISpRecoContextVtbl;
  8279. interface ISpRecoContext {
  8280. CONST_VTBL ISpRecoContextVtbl* lpVtbl;
  8281. };
  8282. #ifdef COBJMACROS
  8283. #ifndef WIDL_C_INLINE_WRAPPERS
  8284. /*** IUnknown methods ***/
  8285. #define ISpRecoContext_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  8286. #define ISpRecoContext_AddRef(This) (This)->lpVtbl->AddRef(This)
  8287. #define ISpRecoContext_Release(This) (This)->lpVtbl->Release(This)
  8288. /*** ISpNotifySource methods ***/
  8289. #define ISpRecoContext_SetNotifySink(This,pNotifySink) (This)->lpVtbl->SetNotifySink(This,pNotifySink)
  8290. #define ISpRecoContext_SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam) (This)->lpVtbl->SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam)
  8291. #define ISpRecoContext_SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam) (This)->lpVtbl->SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam)
  8292. #define ISpRecoContext_SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam) (This)->lpVtbl->SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam)
  8293. #define ISpRecoContext_SetNotifyWin32Event(This) (This)->lpVtbl->SetNotifyWin32Event(This)
  8294. #define ISpRecoContext_WaitForNotifyEvent(This,dwMilliseconds) (This)->lpVtbl->WaitForNotifyEvent(This,dwMilliseconds)
  8295. #define ISpRecoContext_GetNotifyEventHandle(This) (This)->lpVtbl->GetNotifyEventHandle(This)
  8296. /*** ISpEventSource methods ***/
  8297. #define ISpRecoContext_SetInterest(This,ullEventInterest,ullQueuedInterest) (This)->lpVtbl->SetInterest(This,ullEventInterest,ullQueuedInterest)
  8298. #define ISpRecoContext_GetEvents(This,ulCount,pEventArray,pulFetched) (This)->lpVtbl->GetEvents(This,ulCount,pEventArray,pulFetched)
  8299. #define ISpRecoContext_GetInfo(This,pInfo) (This)->lpVtbl->GetInfo(This,pInfo)
  8300. /*** ISpRecoContext methods ***/
  8301. #define ISpRecoContext_GetRecognizer(This,ppRecognizer) (This)->lpVtbl->GetRecognizer(This,ppRecognizer)
  8302. #define ISpRecoContext_CreateGrammar(This,ullGrammarId,ppGrammar) (This)->lpVtbl->CreateGrammar(This,ullGrammarId,ppGrammar)
  8303. #define ISpRecoContext_GetStatus(This,pStatus) (This)->lpVtbl->GetStatus(This,pStatus)
  8304. #define ISpRecoContext_GetMaxAlternates(This,pcAlternates) (This)->lpVtbl->GetMaxAlternates(This,pcAlternates)
  8305. #define ISpRecoContext_SetMaxAlternates(This,cAlternates) (This)->lpVtbl->SetMaxAlternates(This,cAlternates)
  8306. #define ISpRecoContext_SetAudioOptions(This,Options,pAudioFormatId,pWaveFormatEx) (This)->lpVtbl->SetAudioOptions(This,Options,pAudioFormatId,pWaveFormatEx)
  8307. #define ISpRecoContext_GetAudioOptions(This,pOptions,pAudioFormatId,ppCoMemWFEX) (This)->lpVtbl->GetAudioOptions(This,pOptions,pAudioFormatId,ppCoMemWFEX)
  8308. #define ISpRecoContext_DeserializeResult(This,pSerializedResult,ppResult) (This)->lpVtbl->DeserializeResult(This,pSerializedResult,ppResult)
  8309. #define ISpRecoContext_Bookmark(This,Options,ullStreamPosition,lparamEvent) (This)->lpVtbl->Bookmark(This,Options,ullStreamPosition,lparamEvent)
  8310. #define ISpRecoContext_SetAdaptationData(This,pAdaptationData,cch) (This)->lpVtbl->SetAdaptationData(This,pAdaptationData,cch)
  8311. #define ISpRecoContext_Pause(This,dwReserved) (This)->lpVtbl->Pause(This,dwReserved)
  8312. #define ISpRecoContext_Resume(This,dwReserved) (This)->lpVtbl->Resume(This,dwReserved)
  8313. #define ISpRecoContext_SetVoice(This,pVoice,fAllowFormatChanges) (This)->lpVtbl->SetVoice(This,pVoice,fAllowFormatChanges)
  8314. #define ISpRecoContext_GetVoice(This,ppVoice) (This)->lpVtbl->GetVoice(This,ppVoice)
  8315. #define ISpRecoContext_SetVoicePurgeEvent(This,ullEventInterest) (This)->lpVtbl->SetVoicePurgeEvent(This,ullEventInterest)
  8316. #define ISpRecoContext_GetVoicePurgeEvent(This,pullEventInterest) (This)->lpVtbl->GetVoicePurgeEvent(This,pullEventInterest)
  8317. #define ISpRecoContext_SetContextState(This,eContextState) (This)->lpVtbl->SetContextState(This,eContextState)
  8318. #define ISpRecoContext_GetContextState(This,peContextState) (This)->lpVtbl->GetContextState(This,peContextState)
  8319. #else
  8320. /*** IUnknown methods ***/
  8321. static FORCEINLINE HRESULT ISpRecoContext_QueryInterface(ISpRecoContext* This,REFIID riid,void **ppvObject) {
  8322. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  8323. }
  8324. static FORCEINLINE ULONG ISpRecoContext_AddRef(ISpRecoContext* This) {
  8325. return This->lpVtbl->AddRef(This);
  8326. }
  8327. static FORCEINLINE ULONG ISpRecoContext_Release(ISpRecoContext* This) {
  8328. return This->lpVtbl->Release(This);
  8329. }
  8330. /*** ISpNotifySource methods ***/
  8331. static FORCEINLINE HRESULT ISpRecoContext_SetNotifySink(ISpRecoContext* This,ISpNotifySink *pNotifySink) {
  8332. return This->lpVtbl->SetNotifySink(This,pNotifySink);
  8333. }
  8334. static FORCEINLINE HRESULT ISpRecoContext_SetNotifyWindowMessage(ISpRecoContext* This,HWND hWnd,UINT Msg,WPARAM wParam,LPARAM lParam) {
  8335. return This->lpVtbl->SetNotifyWindowMessage(This,hWnd,Msg,wParam,lParam);
  8336. }
  8337. static FORCEINLINE HRESULT ISpRecoContext_SetNotifyCallbackFunction(ISpRecoContext* This,SPNOTIFYCALLBACK *pfnCallback,WPARAM wParam,LPARAM lParam) {
  8338. return This->lpVtbl->SetNotifyCallbackFunction(This,pfnCallback,wParam,lParam);
  8339. }
  8340. static FORCEINLINE HRESULT ISpRecoContext_SetNotifyCallbackInterface(ISpRecoContext* This,ISpNotifyCallback *pSpCallback,WPARAM wParam,LPARAM lParam) {
  8341. return This->lpVtbl->SetNotifyCallbackInterface(This,pSpCallback,wParam,lParam);
  8342. }
  8343. static FORCEINLINE HRESULT ISpRecoContext_SetNotifyWin32Event(ISpRecoContext* This) {
  8344. return This->lpVtbl->SetNotifyWin32Event(This);
  8345. }
  8346. static FORCEINLINE HRESULT ISpRecoContext_WaitForNotifyEvent(ISpRecoContext* This,DWORD dwMilliseconds) {
  8347. return This->lpVtbl->WaitForNotifyEvent(This,dwMilliseconds);
  8348. }
  8349. static FORCEINLINE HANDLE ISpRecoContext_GetNotifyEventHandle(ISpRecoContext* This) {
  8350. return This->lpVtbl->GetNotifyEventHandle(This);
  8351. }
  8352. /*** ISpEventSource methods ***/
  8353. static FORCEINLINE HRESULT ISpRecoContext_SetInterest(ISpRecoContext* This,ULONGLONG ullEventInterest,ULONGLONG ullQueuedInterest) {
  8354. return This->lpVtbl->SetInterest(This,ullEventInterest,ullQueuedInterest);
  8355. }
  8356. static FORCEINLINE HRESULT ISpRecoContext_GetEvents(ISpRecoContext* This,ULONG ulCount,SPEVENT *pEventArray,ULONG *pulFetched) {
  8357. return This->lpVtbl->GetEvents(This,ulCount,pEventArray,pulFetched);
  8358. }
  8359. static FORCEINLINE HRESULT ISpRecoContext_GetInfo(ISpRecoContext* This,SPEVENTSOURCEINFO *pInfo) {
  8360. return This->lpVtbl->GetInfo(This,pInfo);
  8361. }
  8362. /*** ISpRecoContext methods ***/
  8363. static FORCEINLINE HRESULT ISpRecoContext_GetRecognizer(ISpRecoContext* This,ISpRecognizer **ppRecognizer) {
  8364. return This->lpVtbl->GetRecognizer(This,ppRecognizer);
  8365. }
  8366. static FORCEINLINE HRESULT ISpRecoContext_CreateGrammar(ISpRecoContext* This,ULONGLONG ullGrammarId,ISpRecoGrammar **ppGrammar) {
  8367. return This->lpVtbl->CreateGrammar(This,ullGrammarId,ppGrammar);
  8368. }
  8369. static FORCEINLINE HRESULT ISpRecoContext_GetStatus(ISpRecoContext* This,SPRECOCONTEXTSTATUS *pStatus) {
  8370. return This->lpVtbl->GetStatus(This,pStatus);
  8371. }
  8372. static FORCEINLINE HRESULT ISpRecoContext_GetMaxAlternates(ISpRecoContext* This,ULONG *pcAlternates) {
  8373. return This->lpVtbl->GetMaxAlternates(This,pcAlternates);
  8374. }
  8375. static FORCEINLINE HRESULT ISpRecoContext_SetMaxAlternates(ISpRecoContext* This,ULONG cAlternates) {
  8376. return This->lpVtbl->SetMaxAlternates(This,cAlternates);
  8377. }
  8378. static FORCEINLINE HRESULT ISpRecoContext_SetAudioOptions(ISpRecoContext* This,SPAUDIOOPTIONS Options,const GUID *pAudioFormatId,const WAVEFORMATEX *pWaveFormatEx) {
  8379. return This->lpVtbl->SetAudioOptions(This,Options,pAudioFormatId,pWaveFormatEx);
  8380. }
  8381. static FORCEINLINE HRESULT ISpRecoContext_GetAudioOptions(ISpRecoContext* This,SPAUDIOOPTIONS *pOptions,GUID *pAudioFormatId,WAVEFORMATEX **ppCoMemWFEX) {
  8382. return This->lpVtbl->GetAudioOptions(This,pOptions,pAudioFormatId,ppCoMemWFEX);
  8383. }
  8384. static FORCEINLINE HRESULT ISpRecoContext_DeserializeResult(ISpRecoContext* This,const SPSERIALIZEDRESULT *pSerializedResult,ISpRecoResult **ppResult) {
  8385. return This->lpVtbl->DeserializeResult(This,pSerializedResult,ppResult);
  8386. }
  8387. static FORCEINLINE HRESULT ISpRecoContext_Bookmark(ISpRecoContext* This,SPBOOKMARKOPTIONS Options,ULONGLONG ullStreamPosition,LPARAM lparamEvent) {
  8388. return This->lpVtbl->Bookmark(This,Options,ullStreamPosition,lparamEvent);
  8389. }
  8390. static FORCEINLINE HRESULT ISpRecoContext_SetAdaptationData(ISpRecoContext* This,LPCWSTR pAdaptationData,const ULONG cch) {
  8391. return This->lpVtbl->SetAdaptationData(This,pAdaptationData,cch);
  8392. }
  8393. static FORCEINLINE HRESULT ISpRecoContext_Pause(ISpRecoContext* This,DWORD dwReserved) {
  8394. return This->lpVtbl->Pause(This,dwReserved);
  8395. }
  8396. static FORCEINLINE HRESULT ISpRecoContext_Resume(ISpRecoContext* This,DWORD dwReserved) {
  8397. return This->lpVtbl->Resume(This,dwReserved);
  8398. }
  8399. static FORCEINLINE HRESULT ISpRecoContext_SetVoice(ISpRecoContext* This,ISpVoice *pVoice,WINBOOL fAllowFormatChanges) {
  8400. return This->lpVtbl->SetVoice(This,pVoice,fAllowFormatChanges);
  8401. }
  8402. static FORCEINLINE HRESULT ISpRecoContext_GetVoice(ISpRecoContext* This,ISpVoice **ppVoice) {
  8403. return This->lpVtbl->GetVoice(This,ppVoice);
  8404. }
  8405. static FORCEINLINE HRESULT ISpRecoContext_SetVoicePurgeEvent(ISpRecoContext* This,ULONGLONG ullEventInterest) {
  8406. return This->lpVtbl->SetVoicePurgeEvent(This,ullEventInterest);
  8407. }
  8408. static FORCEINLINE HRESULT ISpRecoContext_GetVoicePurgeEvent(ISpRecoContext* This,ULONGLONG *pullEventInterest) {
  8409. return This->lpVtbl->GetVoicePurgeEvent(This,pullEventInterest);
  8410. }
  8411. static FORCEINLINE HRESULT ISpRecoContext_SetContextState(ISpRecoContext* This,SPCONTEXTSTATE eContextState) {
  8412. return This->lpVtbl->SetContextState(This,eContextState);
  8413. }
  8414. static FORCEINLINE HRESULT ISpRecoContext_GetContextState(ISpRecoContext* This,SPCONTEXTSTATE *peContextState) {
  8415. return This->lpVtbl->GetContextState(This,peContextState);
  8416. }
  8417. #endif
  8418. #endif
  8419. #endif
  8420. #endif /* __ISpRecoContext_INTERFACE_DEFINED__ */
  8421. typedef enum SPGRAMMAROPTIONS {
  8422. SPGO_SAPI = 0x1,
  8423. SPGO_SRGS = 0x2,
  8424. SPGO_UPS = 0x4,
  8425. SPGO_SRGS_MS_SCRIPT = 0x8,
  8426. SPGO_FILE = 0x10,
  8427. SPGO_HTTP = 0x20,
  8428. SPGO_RES = 0x40,
  8429. SPGO_OBJECT = 0x80,
  8430. SPGO_SRGS_W3C_SCRIPT = 0x100,
  8431. SPGO_SRGS_STG_SCRIPT = 0x200,
  8432. SPGO_SRGS_SCRIPT = ((SPGO_SRGS | SPGO_SRGS_MS_SCRIPT) | SPGO_SRGS_W3C_SCRIPT) | SPGO_SRGS_STG_SCRIPT,
  8433. SPGO_DEFAULT = 0x3fb,
  8434. SPGO_ALL = 0x3ff
  8435. } SPGRAMMAROPTIONS;
  8436. typedef enum SPADAPTATIONSETTINGS {
  8437. SPADS_Default = 0x0,
  8438. SPADS_CurrentRecognizer = 0x1,
  8439. SPADS_RecoProfile = 0x2,
  8440. SPADS_Immediate = 0x4,
  8441. SPADS_Reset = 0x8,
  8442. SPADS_HighVolumeDataSource = 0x10
  8443. } SPADAPTATIONSETTINGS;
  8444. typedef enum SPADAPTATIONRELEVANCE {
  8445. SPAR_Unknown = 0,
  8446. SPAR_Low = 1,
  8447. SPAR_Medium = 2,
  8448. SPAR_High = 3
  8449. } SPADAPTATIONRELEVANCE;
  8450. /*****************************************************************************
  8451. * ISpRecoContext2 interface
  8452. */
  8453. #ifndef __ISpRecoContext2_INTERFACE_DEFINED__
  8454. #define __ISpRecoContext2_INTERFACE_DEFINED__
  8455. DEFINE_GUID(IID_ISpRecoContext2, 0xbead311c, 0x52ff, 0x437f, 0x94,0x64, 0x6b,0x21,0x05,0x4c,0xa7,0x3d);
  8456. #if defined(__cplusplus) && !defined(CINTERFACE)
  8457. MIDL_INTERFACE("bead311c-52ff-437f-9464-6b21054ca73d")
  8458. ISpRecoContext2 : public IUnknown
  8459. {
  8460. virtual HRESULT STDMETHODCALLTYPE SetGrammarOptions(
  8461. DWORD eGrammarOptions) = 0;
  8462. virtual HRESULT STDMETHODCALLTYPE GetGrammarOptions(
  8463. DWORD *peGrammarOptions) = 0;
  8464. virtual HRESULT STDMETHODCALLTYPE SetAdaptationData2(
  8465. LPCWSTR pAdaptationData,
  8466. const ULONG cch,
  8467. LPCWSTR pTopicName,
  8468. DWORD eAdaptationSettings,
  8469. SPADAPTATIONRELEVANCE eRelevance) = 0;
  8470. };
  8471. #ifdef __CRT_UUID_DECL
  8472. __CRT_UUID_DECL(ISpRecoContext2, 0xbead311c, 0x52ff, 0x437f, 0x94,0x64, 0x6b,0x21,0x05,0x4c,0xa7,0x3d)
  8473. #endif
  8474. #else
  8475. typedef struct ISpRecoContext2Vtbl {
  8476. BEGIN_INTERFACE
  8477. /*** IUnknown methods ***/
  8478. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  8479. ISpRecoContext2 *This,
  8480. REFIID riid,
  8481. void **ppvObject);
  8482. ULONG (STDMETHODCALLTYPE *AddRef)(
  8483. ISpRecoContext2 *This);
  8484. ULONG (STDMETHODCALLTYPE *Release)(
  8485. ISpRecoContext2 *This);
  8486. /*** ISpRecoContext2 methods ***/
  8487. HRESULT (STDMETHODCALLTYPE *SetGrammarOptions)(
  8488. ISpRecoContext2 *This,
  8489. DWORD eGrammarOptions);
  8490. HRESULT (STDMETHODCALLTYPE *GetGrammarOptions)(
  8491. ISpRecoContext2 *This,
  8492. DWORD *peGrammarOptions);
  8493. HRESULT (STDMETHODCALLTYPE *SetAdaptationData2)(
  8494. ISpRecoContext2 *This,
  8495. LPCWSTR pAdaptationData,
  8496. const ULONG cch,
  8497. LPCWSTR pTopicName,
  8498. DWORD eAdaptationSettings,
  8499. SPADAPTATIONRELEVANCE eRelevance);
  8500. END_INTERFACE
  8501. } ISpRecoContext2Vtbl;
  8502. interface ISpRecoContext2 {
  8503. CONST_VTBL ISpRecoContext2Vtbl* lpVtbl;
  8504. };
  8505. #ifdef COBJMACROS
  8506. #ifndef WIDL_C_INLINE_WRAPPERS
  8507. /*** IUnknown methods ***/
  8508. #define ISpRecoContext2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  8509. #define ISpRecoContext2_AddRef(This) (This)->lpVtbl->AddRef(This)
  8510. #define ISpRecoContext2_Release(This) (This)->lpVtbl->Release(This)
  8511. /*** ISpRecoContext2 methods ***/
  8512. #define ISpRecoContext2_SetGrammarOptions(This,eGrammarOptions) (This)->lpVtbl->SetGrammarOptions(This,eGrammarOptions)
  8513. #define ISpRecoContext2_GetGrammarOptions(This,peGrammarOptions) (This)->lpVtbl->GetGrammarOptions(This,peGrammarOptions)
  8514. #define ISpRecoContext2_SetAdaptationData2(This,pAdaptationData,cch,pTopicName,eAdaptationSettings,eRelevance) (This)->lpVtbl->SetAdaptationData2(This,pAdaptationData,cch,pTopicName,eAdaptationSettings,eRelevance)
  8515. #else
  8516. /*** IUnknown methods ***/
  8517. static FORCEINLINE HRESULT ISpRecoContext2_QueryInterface(ISpRecoContext2* This,REFIID riid,void **ppvObject) {
  8518. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  8519. }
  8520. static FORCEINLINE ULONG ISpRecoContext2_AddRef(ISpRecoContext2* This) {
  8521. return This->lpVtbl->AddRef(This);
  8522. }
  8523. static FORCEINLINE ULONG ISpRecoContext2_Release(ISpRecoContext2* This) {
  8524. return This->lpVtbl->Release(This);
  8525. }
  8526. /*** ISpRecoContext2 methods ***/
  8527. static FORCEINLINE HRESULT ISpRecoContext2_SetGrammarOptions(ISpRecoContext2* This,DWORD eGrammarOptions) {
  8528. return This->lpVtbl->SetGrammarOptions(This,eGrammarOptions);
  8529. }
  8530. static FORCEINLINE HRESULT ISpRecoContext2_GetGrammarOptions(ISpRecoContext2* This,DWORD *peGrammarOptions) {
  8531. return This->lpVtbl->GetGrammarOptions(This,peGrammarOptions);
  8532. }
  8533. static FORCEINLINE HRESULT ISpRecoContext2_SetAdaptationData2(ISpRecoContext2* This,LPCWSTR pAdaptationData,const ULONG cch,LPCWSTR pTopicName,DWORD eAdaptationSettings,SPADAPTATIONRELEVANCE eRelevance) {
  8534. return This->lpVtbl->SetAdaptationData2(This,pAdaptationData,cch,pTopicName,eAdaptationSettings,eRelevance);
  8535. }
  8536. #endif
  8537. #endif
  8538. #endif
  8539. #endif /* __ISpRecoContext2_INTERFACE_DEFINED__ */
  8540. /*****************************************************************************
  8541. * ISpProperties interface
  8542. */
  8543. #ifndef __ISpProperties_INTERFACE_DEFINED__
  8544. #define __ISpProperties_INTERFACE_DEFINED__
  8545. DEFINE_GUID(IID_ISpProperties, 0x5b4fb971, 0xb115, 0x4de1, 0xad,0x97, 0xe4,0x82,0xe3,0xbf,0x6e,0xe4);
  8546. #if defined(__cplusplus) && !defined(CINTERFACE)
  8547. MIDL_INTERFACE("5b4fb971-b115-4de1-ad97-e482e3bf6ee4")
  8548. ISpProperties : public IUnknown
  8549. {
  8550. virtual HRESULT STDMETHODCALLTYPE SetPropertyNum(
  8551. LPCWSTR pName,
  8552. LONG lValue) = 0;
  8553. virtual HRESULT STDMETHODCALLTYPE GetPropertyNum(
  8554. LPCWSTR pName,
  8555. LONG *plValue) = 0;
  8556. virtual HRESULT STDMETHODCALLTYPE SetPropertyString(
  8557. LPCWSTR pName,
  8558. LPCWSTR pValue) = 0;
  8559. virtual HRESULT STDMETHODCALLTYPE GetPropertyString(
  8560. LPCWSTR pName,
  8561. LPWSTR *ppCoMemValue) = 0;
  8562. };
  8563. #ifdef __CRT_UUID_DECL
  8564. __CRT_UUID_DECL(ISpProperties, 0x5b4fb971, 0xb115, 0x4de1, 0xad,0x97, 0xe4,0x82,0xe3,0xbf,0x6e,0xe4)
  8565. #endif
  8566. #else
  8567. typedef struct ISpPropertiesVtbl {
  8568. BEGIN_INTERFACE
  8569. /*** IUnknown methods ***/
  8570. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  8571. ISpProperties *This,
  8572. REFIID riid,
  8573. void **ppvObject);
  8574. ULONG (STDMETHODCALLTYPE *AddRef)(
  8575. ISpProperties *This);
  8576. ULONG (STDMETHODCALLTYPE *Release)(
  8577. ISpProperties *This);
  8578. /*** ISpProperties methods ***/
  8579. HRESULT (STDMETHODCALLTYPE *SetPropertyNum)(
  8580. ISpProperties *This,
  8581. LPCWSTR pName,
  8582. LONG lValue);
  8583. HRESULT (STDMETHODCALLTYPE *GetPropertyNum)(
  8584. ISpProperties *This,
  8585. LPCWSTR pName,
  8586. LONG *plValue);
  8587. HRESULT (STDMETHODCALLTYPE *SetPropertyString)(
  8588. ISpProperties *This,
  8589. LPCWSTR pName,
  8590. LPCWSTR pValue);
  8591. HRESULT (STDMETHODCALLTYPE *GetPropertyString)(
  8592. ISpProperties *This,
  8593. LPCWSTR pName,
  8594. LPWSTR *ppCoMemValue);
  8595. END_INTERFACE
  8596. } ISpPropertiesVtbl;
  8597. interface ISpProperties {
  8598. CONST_VTBL ISpPropertiesVtbl* lpVtbl;
  8599. };
  8600. #ifdef COBJMACROS
  8601. #ifndef WIDL_C_INLINE_WRAPPERS
  8602. /*** IUnknown methods ***/
  8603. #define ISpProperties_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  8604. #define ISpProperties_AddRef(This) (This)->lpVtbl->AddRef(This)
  8605. #define ISpProperties_Release(This) (This)->lpVtbl->Release(This)
  8606. /*** ISpProperties methods ***/
  8607. #define ISpProperties_SetPropertyNum(This,pName,lValue) (This)->lpVtbl->SetPropertyNum(This,pName,lValue)
  8608. #define ISpProperties_GetPropertyNum(This,pName,plValue) (This)->lpVtbl->GetPropertyNum(This,pName,plValue)
  8609. #define ISpProperties_SetPropertyString(This,pName,pValue) (This)->lpVtbl->SetPropertyString(This,pName,pValue)
  8610. #define ISpProperties_GetPropertyString(This,pName,ppCoMemValue) (This)->lpVtbl->GetPropertyString(This,pName,ppCoMemValue)
  8611. #else
  8612. /*** IUnknown methods ***/
  8613. static FORCEINLINE HRESULT ISpProperties_QueryInterface(ISpProperties* This,REFIID riid,void **ppvObject) {
  8614. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  8615. }
  8616. static FORCEINLINE ULONG ISpProperties_AddRef(ISpProperties* This) {
  8617. return This->lpVtbl->AddRef(This);
  8618. }
  8619. static FORCEINLINE ULONG ISpProperties_Release(ISpProperties* This) {
  8620. return This->lpVtbl->Release(This);
  8621. }
  8622. /*** ISpProperties methods ***/
  8623. static FORCEINLINE HRESULT ISpProperties_SetPropertyNum(ISpProperties* This,LPCWSTR pName,LONG lValue) {
  8624. return This->lpVtbl->SetPropertyNum(This,pName,lValue);
  8625. }
  8626. static FORCEINLINE HRESULT ISpProperties_GetPropertyNum(ISpProperties* This,LPCWSTR pName,LONG *plValue) {
  8627. return This->lpVtbl->GetPropertyNum(This,pName,plValue);
  8628. }
  8629. static FORCEINLINE HRESULT ISpProperties_SetPropertyString(ISpProperties* This,LPCWSTR pName,LPCWSTR pValue) {
  8630. return This->lpVtbl->SetPropertyString(This,pName,pValue);
  8631. }
  8632. static FORCEINLINE HRESULT ISpProperties_GetPropertyString(ISpProperties* This,LPCWSTR pName,LPWSTR *ppCoMemValue) {
  8633. return This->lpVtbl->GetPropertyString(This,pName,ppCoMemValue);
  8634. }
  8635. #endif
  8636. #endif
  8637. #endif
  8638. #endif /* __ISpProperties_INTERFACE_DEFINED__ */
  8639. #define SP_MAX_LANGIDS (20)
  8640. typedef struct SPRECOGNIZERSTATUS {
  8641. SPAUDIOSTATUS AudioStatus;
  8642. ULONGLONG ullRecognitionStreamPos;
  8643. ULONG ulStreamNumber;
  8644. ULONG ulNumActive;
  8645. CLSID clsidEngine;
  8646. ULONG cLangIDs;
  8647. WORD aLangID[20];
  8648. ULONGLONG ullRecognitionStreamTime;
  8649. } SPRECOGNIZERSTATUS;
  8650. typedef enum SPWAVEFORMATTYPE {
  8651. SPWF_INPUT = 0,
  8652. SPWF_SRENGINE = 1
  8653. } SPSTREAMFORMATTYPE;
  8654. typedef enum SPRECOSTATE {
  8655. SPRST_INACTIVE = 0,
  8656. SPRST_ACTIVE = 1,
  8657. SPRST_ACTIVE_ALWAYS = 2,
  8658. SPRST_INACTIVE_WITH_PURGE = 3,
  8659. SPRST_NUM_STATES = 4
  8660. } SPRECOSTATE;
  8661. typedef enum SPCATEGORYTYPE {
  8662. SPCT_COMMAND = 0,
  8663. SPCT_DICTATION = 1,
  8664. SPCT_SLEEP = 2,
  8665. SPCT_SUB_COMMAND = 3,
  8666. SPCT_SUB_DICTATION = 4
  8667. } SPCATEGORYTYPE;
  8668. /*****************************************************************************
  8669. * ISpRecognizer interface
  8670. */
  8671. #ifndef __ISpRecognizer_INTERFACE_DEFINED__
  8672. #define __ISpRecognizer_INTERFACE_DEFINED__
  8673. DEFINE_GUID(IID_ISpRecognizer, 0xc2b5f241, 0xdaa0, 0x4507, 0x9e,0x16, 0x5a,0x1e,0xaa,0x2b,0x7a,0x5c);
  8674. #if defined(__cplusplus) && !defined(CINTERFACE)
  8675. MIDL_INTERFACE("c2b5f241-daa0-4507-9e16-5a1eaa2b7a5c")
  8676. ISpRecognizer : public ISpProperties
  8677. {
  8678. virtual HRESULT STDMETHODCALLTYPE SetRecognizer(
  8679. ISpObjectToken *pRecognizer) = 0;
  8680. virtual HRESULT STDMETHODCALLTYPE GetRecognizer(
  8681. ISpObjectToken **ppRecognizer) = 0;
  8682. virtual HRESULT STDMETHODCALLTYPE SetInput(
  8683. IUnknown *pUnkInput,
  8684. WINBOOL fAllowFormatChanges) = 0;
  8685. virtual HRESULT STDMETHODCALLTYPE GetInputObjectToken(
  8686. ISpObjectToken **ppToken) = 0;
  8687. virtual HRESULT STDMETHODCALLTYPE GetInputStream(
  8688. ISpStreamFormat **ppStream) = 0;
  8689. virtual HRESULT STDMETHODCALLTYPE CreateRecoContext(
  8690. ISpRecoContext **ppNewCtxt) = 0;
  8691. virtual HRESULT STDMETHODCALLTYPE GetRecoProfile(
  8692. ISpObjectToken **ppToken) = 0;
  8693. virtual HRESULT STDMETHODCALLTYPE SetRecoProfile(
  8694. ISpObjectToken *pToken) = 0;
  8695. virtual HRESULT STDMETHODCALLTYPE IsSharedInstance(
  8696. ) = 0;
  8697. virtual HRESULT STDMETHODCALLTYPE GetRecoState(
  8698. SPRECOSTATE *pState) = 0;
  8699. virtual HRESULT STDMETHODCALLTYPE SetRecoState(
  8700. SPRECOSTATE NewState) = 0;
  8701. virtual HRESULT STDMETHODCALLTYPE GetStatus(
  8702. SPRECOGNIZERSTATUS *pStatus) = 0;
  8703. virtual HRESULT STDMETHODCALLTYPE GetFormat(
  8704. SPSTREAMFORMATTYPE WaveFormatType,
  8705. GUID *pFormatId,
  8706. WAVEFORMATEX **ppCoMemWFEX) = 0;
  8707. virtual HRESULT STDMETHODCALLTYPE IsUISupported(
  8708. LPCWSTR pszTypeOfUI,
  8709. void *pvExtraData,
  8710. ULONG cbExtraData,
  8711. WINBOOL *pfSupported) = 0;
  8712. virtual HRESULT STDMETHODCALLTYPE DisplayUI(
  8713. HWND hwndParent,
  8714. LPCWSTR pszTitle,
  8715. LPCWSTR pszTypeOfUI,
  8716. void *pvExtraData,
  8717. ULONG cbExtraData) = 0;
  8718. virtual HRESULT STDMETHODCALLTYPE EmulateRecognition(
  8719. ISpPhrase *pPhrase) = 0;
  8720. };
  8721. #ifdef __CRT_UUID_DECL
  8722. __CRT_UUID_DECL(ISpRecognizer, 0xc2b5f241, 0xdaa0, 0x4507, 0x9e,0x16, 0x5a,0x1e,0xaa,0x2b,0x7a,0x5c)
  8723. #endif
  8724. #else
  8725. typedef struct ISpRecognizerVtbl {
  8726. BEGIN_INTERFACE
  8727. /*** IUnknown methods ***/
  8728. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  8729. ISpRecognizer *This,
  8730. REFIID riid,
  8731. void **ppvObject);
  8732. ULONG (STDMETHODCALLTYPE *AddRef)(
  8733. ISpRecognizer *This);
  8734. ULONG (STDMETHODCALLTYPE *Release)(
  8735. ISpRecognizer *This);
  8736. /*** ISpProperties methods ***/
  8737. HRESULT (STDMETHODCALLTYPE *SetPropertyNum)(
  8738. ISpRecognizer *This,
  8739. LPCWSTR pName,
  8740. LONG lValue);
  8741. HRESULT (STDMETHODCALLTYPE *GetPropertyNum)(
  8742. ISpRecognizer *This,
  8743. LPCWSTR pName,
  8744. LONG *plValue);
  8745. HRESULT (STDMETHODCALLTYPE *SetPropertyString)(
  8746. ISpRecognizer *This,
  8747. LPCWSTR pName,
  8748. LPCWSTR pValue);
  8749. HRESULT (STDMETHODCALLTYPE *GetPropertyString)(
  8750. ISpRecognizer *This,
  8751. LPCWSTR pName,
  8752. LPWSTR *ppCoMemValue);
  8753. /*** ISpRecognizer methods ***/
  8754. HRESULT (STDMETHODCALLTYPE *SetRecognizer)(
  8755. ISpRecognizer *This,
  8756. ISpObjectToken *pRecognizer);
  8757. HRESULT (STDMETHODCALLTYPE *GetRecognizer)(
  8758. ISpRecognizer *This,
  8759. ISpObjectToken **ppRecognizer);
  8760. HRESULT (STDMETHODCALLTYPE *SetInput)(
  8761. ISpRecognizer *This,
  8762. IUnknown *pUnkInput,
  8763. WINBOOL fAllowFormatChanges);
  8764. HRESULT (STDMETHODCALLTYPE *GetInputObjectToken)(
  8765. ISpRecognizer *This,
  8766. ISpObjectToken **ppToken);
  8767. HRESULT (STDMETHODCALLTYPE *GetInputStream)(
  8768. ISpRecognizer *This,
  8769. ISpStreamFormat **ppStream);
  8770. HRESULT (STDMETHODCALLTYPE *CreateRecoContext)(
  8771. ISpRecognizer *This,
  8772. ISpRecoContext **ppNewCtxt);
  8773. HRESULT (STDMETHODCALLTYPE *GetRecoProfile)(
  8774. ISpRecognizer *This,
  8775. ISpObjectToken **ppToken);
  8776. HRESULT (STDMETHODCALLTYPE *SetRecoProfile)(
  8777. ISpRecognizer *This,
  8778. ISpObjectToken *pToken);
  8779. HRESULT (STDMETHODCALLTYPE *IsSharedInstance)(
  8780. ISpRecognizer *This);
  8781. HRESULT (STDMETHODCALLTYPE *GetRecoState)(
  8782. ISpRecognizer *This,
  8783. SPRECOSTATE *pState);
  8784. HRESULT (STDMETHODCALLTYPE *SetRecoState)(
  8785. ISpRecognizer *This,
  8786. SPRECOSTATE NewState);
  8787. HRESULT (STDMETHODCALLTYPE *GetStatus)(
  8788. ISpRecognizer *This,
  8789. SPRECOGNIZERSTATUS *pStatus);
  8790. HRESULT (STDMETHODCALLTYPE *GetFormat)(
  8791. ISpRecognizer *This,
  8792. SPSTREAMFORMATTYPE WaveFormatType,
  8793. GUID *pFormatId,
  8794. WAVEFORMATEX **ppCoMemWFEX);
  8795. HRESULT (STDMETHODCALLTYPE *IsUISupported)(
  8796. ISpRecognizer *This,
  8797. LPCWSTR pszTypeOfUI,
  8798. void *pvExtraData,
  8799. ULONG cbExtraData,
  8800. WINBOOL *pfSupported);
  8801. HRESULT (STDMETHODCALLTYPE *DisplayUI)(
  8802. ISpRecognizer *This,
  8803. HWND hwndParent,
  8804. LPCWSTR pszTitle,
  8805. LPCWSTR pszTypeOfUI,
  8806. void *pvExtraData,
  8807. ULONG cbExtraData);
  8808. HRESULT (STDMETHODCALLTYPE *EmulateRecognition)(
  8809. ISpRecognizer *This,
  8810. ISpPhrase *pPhrase);
  8811. END_INTERFACE
  8812. } ISpRecognizerVtbl;
  8813. interface ISpRecognizer {
  8814. CONST_VTBL ISpRecognizerVtbl* lpVtbl;
  8815. };
  8816. #ifdef COBJMACROS
  8817. #ifndef WIDL_C_INLINE_WRAPPERS
  8818. /*** IUnknown methods ***/
  8819. #define ISpRecognizer_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  8820. #define ISpRecognizer_AddRef(This) (This)->lpVtbl->AddRef(This)
  8821. #define ISpRecognizer_Release(This) (This)->lpVtbl->Release(This)
  8822. /*** ISpProperties methods ***/
  8823. #define ISpRecognizer_SetPropertyNum(This,pName,lValue) (This)->lpVtbl->SetPropertyNum(This,pName,lValue)
  8824. #define ISpRecognizer_GetPropertyNum(This,pName,plValue) (This)->lpVtbl->GetPropertyNum(This,pName,plValue)
  8825. #define ISpRecognizer_SetPropertyString(This,pName,pValue) (This)->lpVtbl->SetPropertyString(This,pName,pValue)
  8826. #define ISpRecognizer_GetPropertyString(This,pName,ppCoMemValue) (This)->lpVtbl->GetPropertyString(This,pName,ppCoMemValue)
  8827. /*** ISpRecognizer methods ***/
  8828. #define ISpRecognizer_SetRecognizer(This,pRecognizer) (This)->lpVtbl->SetRecognizer(This,pRecognizer)
  8829. #define ISpRecognizer_GetRecognizer(This,ppRecognizer) (This)->lpVtbl->GetRecognizer(This,ppRecognizer)
  8830. #define ISpRecognizer_SetInput(This,pUnkInput,fAllowFormatChanges) (This)->lpVtbl->SetInput(This,pUnkInput,fAllowFormatChanges)
  8831. #define ISpRecognizer_GetInputObjectToken(This,ppToken) (This)->lpVtbl->GetInputObjectToken(This,ppToken)
  8832. #define ISpRecognizer_GetInputStream(This,ppStream) (This)->lpVtbl->GetInputStream(This,ppStream)
  8833. #define ISpRecognizer_CreateRecoContext(This,ppNewCtxt) (This)->lpVtbl->CreateRecoContext(This,ppNewCtxt)
  8834. #define ISpRecognizer_GetRecoProfile(This,ppToken) (This)->lpVtbl->GetRecoProfile(This,ppToken)
  8835. #define ISpRecognizer_SetRecoProfile(This,pToken) (This)->lpVtbl->SetRecoProfile(This,pToken)
  8836. #define ISpRecognizer_IsSharedInstance(This) (This)->lpVtbl->IsSharedInstance(This)
  8837. #define ISpRecognizer_GetRecoState(This,pState) (This)->lpVtbl->GetRecoState(This,pState)
  8838. #define ISpRecognizer_SetRecoState(This,NewState) (This)->lpVtbl->SetRecoState(This,NewState)
  8839. #define ISpRecognizer_GetStatus(This,pStatus) (This)->lpVtbl->GetStatus(This,pStatus)
  8840. #define ISpRecognizer_GetFormat(This,WaveFormatType,pFormatId,ppCoMemWFEX) (This)->lpVtbl->GetFormat(This,WaveFormatType,pFormatId,ppCoMemWFEX)
  8841. #define ISpRecognizer_IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported) (This)->lpVtbl->IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported)
  8842. #define ISpRecognizer_DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData) (This)->lpVtbl->DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData)
  8843. #define ISpRecognizer_EmulateRecognition(This,pPhrase) (This)->lpVtbl->EmulateRecognition(This,pPhrase)
  8844. #else
  8845. /*** IUnknown methods ***/
  8846. static FORCEINLINE HRESULT ISpRecognizer_QueryInterface(ISpRecognizer* This,REFIID riid,void **ppvObject) {
  8847. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  8848. }
  8849. static FORCEINLINE ULONG ISpRecognizer_AddRef(ISpRecognizer* This) {
  8850. return This->lpVtbl->AddRef(This);
  8851. }
  8852. static FORCEINLINE ULONG ISpRecognizer_Release(ISpRecognizer* This) {
  8853. return This->lpVtbl->Release(This);
  8854. }
  8855. /*** ISpProperties methods ***/
  8856. static FORCEINLINE HRESULT ISpRecognizer_SetPropertyNum(ISpRecognizer* This,LPCWSTR pName,LONG lValue) {
  8857. return This->lpVtbl->SetPropertyNum(This,pName,lValue);
  8858. }
  8859. static FORCEINLINE HRESULT ISpRecognizer_GetPropertyNum(ISpRecognizer* This,LPCWSTR pName,LONG *plValue) {
  8860. return This->lpVtbl->GetPropertyNum(This,pName,plValue);
  8861. }
  8862. static FORCEINLINE HRESULT ISpRecognizer_SetPropertyString(ISpRecognizer* This,LPCWSTR pName,LPCWSTR pValue) {
  8863. return This->lpVtbl->SetPropertyString(This,pName,pValue);
  8864. }
  8865. static FORCEINLINE HRESULT ISpRecognizer_GetPropertyString(ISpRecognizer* This,LPCWSTR pName,LPWSTR *ppCoMemValue) {
  8866. return This->lpVtbl->GetPropertyString(This,pName,ppCoMemValue);
  8867. }
  8868. /*** ISpRecognizer methods ***/
  8869. static FORCEINLINE HRESULT ISpRecognizer_SetRecognizer(ISpRecognizer* This,ISpObjectToken *pRecognizer) {
  8870. return This->lpVtbl->SetRecognizer(This,pRecognizer);
  8871. }
  8872. static FORCEINLINE HRESULT ISpRecognizer_GetRecognizer(ISpRecognizer* This,ISpObjectToken **ppRecognizer) {
  8873. return This->lpVtbl->GetRecognizer(This,ppRecognizer);
  8874. }
  8875. static FORCEINLINE HRESULT ISpRecognizer_SetInput(ISpRecognizer* This,IUnknown *pUnkInput,WINBOOL fAllowFormatChanges) {
  8876. return This->lpVtbl->SetInput(This,pUnkInput,fAllowFormatChanges);
  8877. }
  8878. static FORCEINLINE HRESULT ISpRecognizer_GetInputObjectToken(ISpRecognizer* This,ISpObjectToken **ppToken) {
  8879. return This->lpVtbl->GetInputObjectToken(This,ppToken);
  8880. }
  8881. static FORCEINLINE HRESULT ISpRecognizer_GetInputStream(ISpRecognizer* This,ISpStreamFormat **ppStream) {
  8882. return This->lpVtbl->GetInputStream(This,ppStream);
  8883. }
  8884. static FORCEINLINE HRESULT ISpRecognizer_CreateRecoContext(ISpRecognizer* This,ISpRecoContext **ppNewCtxt) {
  8885. return This->lpVtbl->CreateRecoContext(This,ppNewCtxt);
  8886. }
  8887. static FORCEINLINE HRESULT ISpRecognizer_GetRecoProfile(ISpRecognizer* This,ISpObjectToken **ppToken) {
  8888. return This->lpVtbl->GetRecoProfile(This,ppToken);
  8889. }
  8890. static FORCEINLINE HRESULT ISpRecognizer_SetRecoProfile(ISpRecognizer* This,ISpObjectToken *pToken) {
  8891. return This->lpVtbl->SetRecoProfile(This,pToken);
  8892. }
  8893. static FORCEINLINE HRESULT ISpRecognizer_IsSharedInstance(ISpRecognizer* This) {
  8894. return This->lpVtbl->IsSharedInstance(This);
  8895. }
  8896. static FORCEINLINE HRESULT ISpRecognizer_GetRecoState(ISpRecognizer* This,SPRECOSTATE *pState) {
  8897. return This->lpVtbl->GetRecoState(This,pState);
  8898. }
  8899. static FORCEINLINE HRESULT ISpRecognizer_SetRecoState(ISpRecognizer* This,SPRECOSTATE NewState) {
  8900. return This->lpVtbl->SetRecoState(This,NewState);
  8901. }
  8902. static FORCEINLINE HRESULT ISpRecognizer_GetStatus(ISpRecognizer* This,SPRECOGNIZERSTATUS *pStatus) {
  8903. return This->lpVtbl->GetStatus(This,pStatus);
  8904. }
  8905. static FORCEINLINE HRESULT ISpRecognizer_GetFormat(ISpRecognizer* This,SPSTREAMFORMATTYPE WaveFormatType,GUID *pFormatId,WAVEFORMATEX **ppCoMemWFEX) {
  8906. return This->lpVtbl->GetFormat(This,WaveFormatType,pFormatId,ppCoMemWFEX);
  8907. }
  8908. static FORCEINLINE HRESULT ISpRecognizer_IsUISupported(ISpRecognizer* This,LPCWSTR pszTypeOfUI,void *pvExtraData,ULONG cbExtraData,WINBOOL *pfSupported) {
  8909. return This->lpVtbl->IsUISupported(This,pszTypeOfUI,pvExtraData,cbExtraData,pfSupported);
  8910. }
  8911. static FORCEINLINE HRESULT ISpRecognizer_DisplayUI(ISpRecognizer* This,HWND hwndParent,LPCWSTR pszTitle,LPCWSTR pszTypeOfUI,void *pvExtraData,ULONG cbExtraData) {
  8912. return This->lpVtbl->DisplayUI(This,hwndParent,pszTitle,pszTypeOfUI,pvExtraData,cbExtraData);
  8913. }
  8914. static FORCEINLINE HRESULT ISpRecognizer_EmulateRecognition(ISpRecognizer* This,ISpPhrase *pPhrase) {
  8915. return This->lpVtbl->EmulateRecognition(This,pPhrase);
  8916. }
  8917. #endif
  8918. #endif
  8919. #endif
  8920. #endif /* __ISpRecognizer_INTERFACE_DEFINED__ */
  8921. /*****************************************************************************
  8922. * ISpSerializeState interface
  8923. */
  8924. #ifndef __ISpSerializeState_INTERFACE_DEFINED__
  8925. #define __ISpSerializeState_INTERFACE_DEFINED__
  8926. DEFINE_GUID(IID_ISpSerializeState, 0x21b501a0, 0x0ec7, 0x46c9, 0x92,0xc3, 0xa2,0xbc,0x78,0x4c,0x54,0xb9);
  8927. #if defined(__cplusplus) && !defined(CINTERFACE)
  8928. MIDL_INTERFACE("21b501a0-0ec7-46c9-92c3-a2bc784c54b9")
  8929. ISpSerializeState : public IUnknown
  8930. {
  8931. virtual HRESULT STDMETHODCALLTYPE GetSerializedState(
  8932. BYTE **ppbData,
  8933. ULONG *pulSize,
  8934. DWORD dwReserved) = 0;
  8935. virtual HRESULT STDMETHODCALLTYPE SetSerializedState(
  8936. BYTE *pbData,
  8937. ULONG ulSize,
  8938. DWORD dwReserved) = 0;
  8939. };
  8940. #ifdef __CRT_UUID_DECL
  8941. __CRT_UUID_DECL(ISpSerializeState, 0x21b501a0, 0x0ec7, 0x46c9, 0x92,0xc3, 0xa2,0xbc,0x78,0x4c,0x54,0xb9)
  8942. #endif
  8943. #else
  8944. typedef struct ISpSerializeStateVtbl {
  8945. BEGIN_INTERFACE
  8946. /*** IUnknown methods ***/
  8947. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  8948. ISpSerializeState *This,
  8949. REFIID riid,
  8950. void **ppvObject);
  8951. ULONG (STDMETHODCALLTYPE *AddRef)(
  8952. ISpSerializeState *This);
  8953. ULONG (STDMETHODCALLTYPE *Release)(
  8954. ISpSerializeState *This);
  8955. /*** ISpSerializeState methods ***/
  8956. HRESULT (STDMETHODCALLTYPE *GetSerializedState)(
  8957. ISpSerializeState *This,
  8958. BYTE **ppbData,
  8959. ULONG *pulSize,
  8960. DWORD dwReserved);
  8961. HRESULT (STDMETHODCALLTYPE *SetSerializedState)(
  8962. ISpSerializeState *This,
  8963. BYTE *pbData,
  8964. ULONG ulSize,
  8965. DWORD dwReserved);
  8966. END_INTERFACE
  8967. } ISpSerializeStateVtbl;
  8968. interface ISpSerializeState {
  8969. CONST_VTBL ISpSerializeStateVtbl* lpVtbl;
  8970. };
  8971. #ifdef COBJMACROS
  8972. #ifndef WIDL_C_INLINE_WRAPPERS
  8973. /*** IUnknown methods ***/
  8974. #define ISpSerializeState_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  8975. #define ISpSerializeState_AddRef(This) (This)->lpVtbl->AddRef(This)
  8976. #define ISpSerializeState_Release(This) (This)->lpVtbl->Release(This)
  8977. /*** ISpSerializeState methods ***/
  8978. #define ISpSerializeState_GetSerializedState(This,ppbData,pulSize,dwReserved) (This)->lpVtbl->GetSerializedState(This,ppbData,pulSize,dwReserved)
  8979. #define ISpSerializeState_SetSerializedState(This,pbData,ulSize,dwReserved) (This)->lpVtbl->SetSerializedState(This,pbData,ulSize,dwReserved)
  8980. #else
  8981. /*** IUnknown methods ***/
  8982. static FORCEINLINE HRESULT ISpSerializeState_QueryInterface(ISpSerializeState* This,REFIID riid,void **ppvObject) {
  8983. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  8984. }
  8985. static FORCEINLINE ULONG ISpSerializeState_AddRef(ISpSerializeState* This) {
  8986. return This->lpVtbl->AddRef(This);
  8987. }
  8988. static FORCEINLINE ULONG ISpSerializeState_Release(ISpSerializeState* This) {
  8989. return This->lpVtbl->Release(This);
  8990. }
  8991. /*** ISpSerializeState methods ***/
  8992. static FORCEINLINE HRESULT ISpSerializeState_GetSerializedState(ISpSerializeState* This,BYTE **ppbData,ULONG *pulSize,DWORD dwReserved) {
  8993. return This->lpVtbl->GetSerializedState(This,ppbData,pulSize,dwReserved);
  8994. }
  8995. static FORCEINLINE HRESULT ISpSerializeState_SetSerializedState(ISpSerializeState* This,BYTE *pbData,ULONG ulSize,DWORD dwReserved) {
  8996. return This->lpVtbl->SetSerializedState(This,pbData,ulSize,dwReserved);
  8997. }
  8998. #endif
  8999. #endif
  9000. #endif
  9001. #endif /* __ISpSerializeState_INTERFACE_DEFINED__ */
  9002. /*****************************************************************************
  9003. * ISpRecognizer2 interface
  9004. */
  9005. #ifndef __ISpRecognizer2_INTERFACE_DEFINED__
  9006. #define __ISpRecognizer2_INTERFACE_DEFINED__
  9007. DEFINE_GUID(IID_ISpRecognizer2, 0x8fc6d974, 0xc81e, 0x4098, 0x93,0xc5, 0x01,0x47,0xf6,0x1e,0xd4,0xd3);
  9008. #if defined(__cplusplus) && !defined(CINTERFACE)
  9009. MIDL_INTERFACE("8fc6d974-c81e-4098-93c5-0147f61ed4d3")
  9010. ISpRecognizer2 : public IUnknown
  9011. {
  9012. virtual HRESULT STDMETHODCALLTYPE EmulateRecognitionEx(
  9013. ISpPhrase *pPhrase,
  9014. DWORD dwCompareFlags) = 0;
  9015. virtual HRESULT STDMETHODCALLTYPE SetTrainingState(
  9016. WINBOOL fDoingTraining,
  9017. WINBOOL fAdaptFromTrainingData) = 0;
  9018. virtual HRESULT STDMETHODCALLTYPE ResetAcousticModelAdaptation(
  9019. ) = 0;
  9020. };
  9021. #ifdef __CRT_UUID_DECL
  9022. __CRT_UUID_DECL(ISpRecognizer2, 0x8fc6d974, 0xc81e, 0x4098, 0x93,0xc5, 0x01,0x47,0xf6,0x1e,0xd4,0xd3)
  9023. #endif
  9024. #else
  9025. typedef struct ISpRecognizer2Vtbl {
  9026. BEGIN_INTERFACE
  9027. /*** IUnknown methods ***/
  9028. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  9029. ISpRecognizer2 *This,
  9030. REFIID riid,
  9031. void **ppvObject);
  9032. ULONG (STDMETHODCALLTYPE *AddRef)(
  9033. ISpRecognizer2 *This);
  9034. ULONG (STDMETHODCALLTYPE *Release)(
  9035. ISpRecognizer2 *This);
  9036. /*** ISpRecognizer2 methods ***/
  9037. HRESULT (STDMETHODCALLTYPE *EmulateRecognitionEx)(
  9038. ISpRecognizer2 *This,
  9039. ISpPhrase *pPhrase,
  9040. DWORD dwCompareFlags);
  9041. HRESULT (STDMETHODCALLTYPE *SetTrainingState)(
  9042. ISpRecognizer2 *This,
  9043. WINBOOL fDoingTraining,
  9044. WINBOOL fAdaptFromTrainingData);
  9045. HRESULT (STDMETHODCALLTYPE *ResetAcousticModelAdaptation)(
  9046. ISpRecognizer2 *This);
  9047. END_INTERFACE
  9048. } ISpRecognizer2Vtbl;
  9049. interface ISpRecognizer2 {
  9050. CONST_VTBL ISpRecognizer2Vtbl* lpVtbl;
  9051. };
  9052. #ifdef COBJMACROS
  9053. #ifndef WIDL_C_INLINE_WRAPPERS
  9054. /*** IUnknown methods ***/
  9055. #define ISpRecognizer2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  9056. #define ISpRecognizer2_AddRef(This) (This)->lpVtbl->AddRef(This)
  9057. #define ISpRecognizer2_Release(This) (This)->lpVtbl->Release(This)
  9058. /*** ISpRecognizer2 methods ***/
  9059. #define ISpRecognizer2_EmulateRecognitionEx(This,pPhrase,dwCompareFlags) (This)->lpVtbl->EmulateRecognitionEx(This,pPhrase,dwCompareFlags)
  9060. #define ISpRecognizer2_SetTrainingState(This,fDoingTraining,fAdaptFromTrainingData) (This)->lpVtbl->SetTrainingState(This,fDoingTraining,fAdaptFromTrainingData)
  9061. #define ISpRecognizer2_ResetAcousticModelAdaptation(This) (This)->lpVtbl->ResetAcousticModelAdaptation(This)
  9062. #else
  9063. /*** IUnknown methods ***/
  9064. static FORCEINLINE HRESULT ISpRecognizer2_QueryInterface(ISpRecognizer2* This,REFIID riid,void **ppvObject) {
  9065. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  9066. }
  9067. static FORCEINLINE ULONG ISpRecognizer2_AddRef(ISpRecognizer2* This) {
  9068. return This->lpVtbl->AddRef(This);
  9069. }
  9070. static FORCEINLINE ULONG ISpRecognizer2_Release(ISpRecognizer2* This) {
  9071. return This->lpVtbl->Release(This);
  9072. }
  9073. /*** ISpRecognizer2 methods ***/
  9074. static FORCEINLINE HRESULT ISpRecognizer2_EmulateRecognitionEx(ISpRecognizer2* This,ISpPhrase *pPhrase,DWORD dwCompareFlags) {
  9075. return This->lpVtbl->EmulateRecognitionEx(This,pPhrase,dwCompareFlags);
  9076. }
  9077. static FORCEINLINE HRESULT ISpRecognizer2_SetTrainingState(ISpRecognizer2* This,WINBOOL fDoingTraining,WINBOOL fAdaptFromTrainingData) {
  9078. return This->lpVtbl->SetTrainingState(This,fDoingTraining,fAdaptFromTrainingData);
  9079. }
  9080. static FORCEINLINE HRESULT ISpRecognizer2_ResetAcousticModelAdaptation(ISpRecognizer2* This) {
  9081. return This->lpVtbl->ResetAcousticModelAdaptation(This);
  9082. }
  9083. #endif
  9084. #endif
  9085. #endif
  9086. #endif /* __ISpRecognizer2_INTERFACE_DEFINED__ */
  9087. /*****************************************************************************
  9088. * ISpRecoCategory interface
  9089. */
  9090. #ifndef __ISpRecoCategory_INTERFACE_DEFINED__
  9091. #define __ISpRecoCategory_INTERFACE_DEFINED__
  9092. DEFINE_GUID(IID_ISpRecoCategory, 0xda0cd0f9, 0x14a2, 0x4f09, 0x8c,0x2a, 0x85,0xcc,0x48,0x97,0x93,0x45);
  9093. #if defined(__cplusplus) && !defined(CINTERFACE)
  9094. MIDL_INTERFACE("da0cd0f9-14a2-4f09-8c2a-85cc48979345")
  9095. ISpRecoCategory : public IUnknown
  9096. {
  9097. virtual HRESULT STDMETHODCALLTYPE GetType(
  9098. SPCATEGORYTYPE *peCategoryType) = 0;
  9099. };
  9100. #ifdef __CRT_UUID_DECL
  9101. __CRT_UUID_DECL(ISpRecoCategory, 0xda0cd0f9, 0x14a2, 0x4f09, 0x8c,0x2a, 0x85,0xcc,0x48,0x97,0x93,0x45)
  9102. #endif
  9103. #else
  9104. typedef struct ISpRecoCategoryVtbl {
  9105. BEGIN_INTERFACE
  9106. /*** IUnknown methods ***/
  9107. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  9108. ISpRecoCategory *This,
  9109. REFIID riid,
  9110. void **ppvObject);
  9111. ULONG (STDMETHODCALLTYPE *AddRef)(
  9112. ISpRecoCategory *This);
  9113. ULONG (STDMETHODCALLTYPE *Release)(
  9114. ISpRecoCategory *This);
  9115. /*** ISpRecoCategory methods ***/
  9116. HRESULT (STDMETHODCALLTYPE *GetType)(
  9117. ISpRecoCategory *This,
  9118. SPCATEGORYTYPE *peCategoryType);
  9119. END_INTERFACE
  9120. } ISpRecoCategoryVtbl;
  9121. interface ISpRecoCategory {
  9122. CONST_VTBL ISpRecoCategoryVtbl* lpVtbl;
  9123. };
  9124. #ifdef COBJMACROS
  9125. #ifndef WIDL_C_INLINE_WRAPPERS
  9126. /*** IUnknown methods ***/
  9127. #define ISpRecoCategory_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  9128. #define ISpRecoCategory_AddRef(This) (This)->lpVtbl->AddRef(This)
  9129. #define ISpRecoCategory_Release(This) (This)->lpVtbl->Release(This)
  9130. /*** ISpRecoCategory methods ***/
  9131. #define ISpRecoCategory_GetType(This,peCategoryType) (This)->lpVtbl->GetType(This,peCategoryType)
  9132. #else
  9133. /*** IUnknown methods ***/
  9134. static FORCEINLINE HRESULT ISpRecoCategory_QueryInterface(ISpRecoCategory* This,REFIID riid,void **ppvObject) {
  9135. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  9136. }
  9137. static FORCEINLINE ULONG ISpRecoCategory_AddRef(ISpRecoCategory* This) {
  9138. return This->lpVtbl->AddRef(This);
  9139. }
  9140. static FORCEINLINE ULONG ISpRecoCategory_Release(ISpRecoCategory* This) {
  9141. return This->lpVtbl->Release(This);
  9142. }
  9143. /*** ISpRecoCategory methods ***/
  9144. static FORCEINLINE HRESULT ISpRecoCategory_GetType(ISpRecoCategory* This,SPCATEGORYTYPE *peCategoryType) {
  9145. return This->lpVtbl->GetType(This,peCategoryType);
  9146. }
  9147. #endif
  9148. #endif
  9149. #endif
  9150. #endif /* __ISpRecoCategory_INTERFACE_DEFINED__ */
  9151. /*****************************************************************************
  9152. * ISpRecognizer3 interface
  9153. */
  9154. #ifndef __ISpRecognizer3_INTERFACE_DEFINED__
  9155. #define __ISpRecognizer3_INTERFACE_DEFINED__
  9156. DEFINE_GUID(IID_ISpRecognizer3, 0xdf1b943c, 0x5838, 0x4aa2, 0x87,0x06, 0xd7,0xcd,0x5b,0x33,0x34,0x99);
  9157. #if defined(__cplusplus) && !defined(CINTERFACE)
  9158. MIDL_INTERFACE("df1b943c-5838-4aa2-8706-d7cd5b333499")
  9159. ISpRecognizer3 : public IUnknown
  9160. {
  9161. virtual HRESULT STDMETHODCALLTYPE GetCategory(
  9162. SPCATEGORYTYPE categoryType,
  9163. ISpRecoCategory **ppCategory) = 0;
  9164. virtual HRESULT STDMETHODCALLTYPE SetActiveCategory(
  9165. ISpRecoCategory *pCategory) = 0;
  9166. virtual HRESULT STDMETHODCALLTYPE GetActiveCategory(
  9167. ISpRecoCategory **ppCategory) = 0;
  9168. };
  9169. #ifdef __CRT_UUID_DECL
  9170. __CRT_UUID_DECL(ISpRecognizer3, 0xdf1b943c, 0x5838, 0x4aa2, 0x87,0x06, 0xd7,0xcd,0x5b,0x33,0x34,0x99)
  9171. #endif
  9172. #else
  9173. typedef struct ISpRecognizer3Vtbl {
  9174. BEGIN_INTERFACE
  9175. /*** IUnknown methods ***/
  9176. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  9177. ISpRecognizer3 *This,
  9178. REFIID riid,
  9179. void **ppvObject);
  9180. ULONG (STDMETHODCALLTYPE *AddRef)(
  9181. ISpRecognizer3 *This);
  9182. ULONG (STDMETHODCALLTYPE *Release)(
  9183. ISpRecognizer3 *This);
  9184. /*** ISpRecognizer3 methods ***/
  9185. HRESULT (STDMETHODCALLTYPE *GetCategory)(
  9186. ISpRecognizer3 *This,
  9187. SPCATEGORYTYPE categoryType,
  9188. ISpRecoCategory **ppCategory);
  9189. HRESULT (STDMETHODCALLTYPE *SetActiveCategory)(
  9190. ISpRecognizer3 *This,
  9191. ISpRecoCategory *pCategory);
  9192. HRESULT (STDMETHODCALLTYPE *GetActiveCategory)(
  9193. ISpRecognizer3 *This,
  9194. ISpRecoCategory **ppCategory);
  9195. END_INTERFACE
  9196. } ISpRecognizer3Vtbl;
  9197. interface ISpRecognizer3 {
  9198. CONST_VTBL ISpRecognizer3Vtbl* lpVtbl;
  9199. };
  9200. #ifdef COBJMACROS
  9201. #ifndef WIDL_C_INLINE_WRAPPERS
  9202. /*** IUnknown methods ***/
  9203. #define ISpRecognizer3_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  9204. #define ISpRecognizer3_AddRef(This) (This)->lpVtbl->AddRef(This)
  9205. #define ISpRecognizer3_Release(This) (This)->lpVtbl->Release(This)
  9206. /*** ISpRecognizer3 methods ***/
  9207. #define ISpRecognizer3_GetCategory(This,categoryType,ppCategory) (This)->lpVtbl->GetCategory(This,categoryType,ppCategory)
  9208. #define ISpRecognizer3_SetActiveCategory(This,pCategory) (This)->lpVtbl->SetActiveCategory(This,pCategory)
  9209. #define ISpRecognizer3_GetActiveCategory(This,ppCategory) (This)->lpVtbl->GetActiveCategory(This,ppCategory)
  9210. #else
  9211. /*** IUnknown methods ***/
  9212. static FORCEINLINE HRESULT ISpRecognizer3_QueryInterface(ISpRecognizer3* This,REFIID riid,void **ppvObject) {
  9213. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  9214. }
  9215. static FORCEINLINE ULONG ISpRecognizer3_AddRef(ISpRecognizer3* This) {
  9216. return This->lpVtbl->AddRef(This);
  9217. }
  9218. static FORCEINLINE ULONG ISpRecognizer3_Release(ISpRecognizer3* This) {
  9219. return This->lpVtbl->Release(This);
  9220. }
  9221. /*** ISpRecognizer3 methods ***/
  9222. static FORCEINLINE HRESULT ISpRecognizer3_GetCategory(ISpRecognizer3* This,SPCATEGORYTYPE categoryType,ISpRecoCategory **ppCategory) {
  9223. return This->lpVtbl->GetCategory(This,categoryType,ppCategory);
  9224. }
  9225. static FORCEINLINE HRESULT ISpRecognizer3_SetActiveCategory(ISpRecognizer3* This,ISpRecoCategory *pCategory) {
  9226. return This->lpVtbl->SetActiveCategory(This,pCategory);
  9227. }
  9228. static FORCEINLINE HRESULT ISpRecognizer3_GetActiveCategory(ISpRecognizer3* This,ISpRecoCategory **ppCategory) {
  9229. return This->lpVtbl->GetActiveCategory(This,ppCategory);
  9230. }
  9231. #endif
  9232. #endif
  9233. #endif
  9234. #endif /* __ISpRecognizer3_INTERFACE_DEFINED__ */
  9235. typedef struct SPNORMALIZATIONLIST {
  9236. ULONG ulSize;
  9237. WCHAR **ppszzNormalizedList;
  9238. } SPNORMALIZATIONLIST;
  9239. /*****************************************************************************
  9240. * ISpEnginePronunciation interface
  9241. */
  9242. #ifndef __ISpEnginePronunciation_INTERFACE_DEFINED__
  9243. #define __ISpEnginePronunciation_INTERFACE_DEFINED__
  9244. DEFINE_GUID(IID_ISpEnginePronunciation, 0xc360ce4b, 0x76d1, 0x4214, 0xad,0x68, 0x52,0x65,0x7d,0x50,0x83,0xda);
  9245. #if defined(__cplusplus) && !defined(CINTERFACE)
  9246. MIDL_INTERFACE("c360ce4b-76d1-4214-ad68-52657d5083da")
  9247. ISpEnginePronunciation : public IUnknown
  9248. {
  9249. virtual HRESULT STDMETHODCALLTYPE Normalize(
  9250. LPCWSTR pszWord,
  9251. LPCWSTR pszLeftContext,
  9252. LPCWSTR pszRightContext,
  9253. WORD LangID,
  9254. SPNORMALIZATIONLIST *pNormalizationList) = 0;
  9255. virtual HRESULT STDMETHODCALLTYPE GetPronunciations(
  9256. LPCWSTR pszWord,
  9257. LPCWSTR pszLeftContext,
  9258. LPCWSTR pszRightContext,
  9259. WORD LangID,
  9260. SPWORDPRONUNCIATIONLIST *pEnginePronunciationList) = 0;
  9261. };
  9262. #ifdef __CRT_UUID_DECL
  9263. __CRT_UUID_DECL(ISpEnginePronunciation, 0xc360ce4b, 0x76d1, 0x4214, 0xad,0x68, 0x52,0x65,0x7d,0x50,0x83,0xda)
  9264. #endif
  9265. #else
  9266. typedef struct ISpEnginePronunciationVtbl {
  9267. BEGIN_INTERFACE
  9268. /*** IUnknown methods ***/
  9269. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  9270. ISpEnginePronunciation *This,
  9271. REFIID riid,
  9272. void **ppvObject);
  9273. ULONG (STDMETHODCALLTYPE *AddRef)(
  9274. ISpEnginePronunciation *This);
  9275. ULONG (STDMETHODCALLTYPE *Release)(
  9276. ISpEnginePronunciation *This);
  9277. /*** ISpEnginePronunciation methods ***/
  9278. HRESULT (STDMETHODCALLTYPE *Normalize)(
  9279. ISpEnginePronunciation *This,
  9280. LPCWSTR pszWord,
  9281. LPCWSTR pszLeftContext,
  9282. LPCWSTR pszRightContext,
  9283. WORD LangID,
  9284. SPNORMALIZATIONLIST *pNormalizationList);
  9285. HRESULT (STDMETHODCALLTYPE *GetPronunciations)(
  9286. ISpEnginePronunciation *This,
  9287. LPCWSTR pszWord,
  9288. LPCWSTR pszLeftContext,
  9289. LPCWSTR pszRightContext,
  9290. WORD LangID,
  9291. SPWORDPRONUNCIATIONLIST *pEnginePronunciationList);
  9292. END_INTERFACE
  9293. } ISpEnginePronunciationVtbl;
  9294. interface ISpEnginePronunciation {
  9295. CONST_VTBL ISpEnginePronunciationVtbl* lpVtbl;
  9296. };
  9297. #ifdef COBJMACROS
  9298. #ifndef WIDL_C_INLINE_WRAPPERS
  9299. /*** IUnknown methods ***/
  9300. #define ISpEnginePronunciation_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  9301. #define ISpEnginePronunciation_AddRef(This) (This)->lpVtbl->AddRef(This)
  9302. #define ISpEnginePronunciation_Release(This) (This)->lpVtbl->Release(This)
  9303. /*** ISpEnginePronunciation methods ***/
  9304. #define ISpEnginePronunciation_Normalize(This,pszWord,pszLeftContext,pszRightContext,LangID,pNormalizationList) (This)->lpVtbl->Normalize(This,pszWord,pszLeftContext,pszRightContext,LangID,pNormalizationList)
  9305. #define ISpEnginePronunciation_GetPronunciations(This,pszWord,pszLeftContext,pszRightContext,LangID,pEnginePronunciationList) (This)->lpVtbl->GetPronunciations(This,pszWord,pszLeftContext,pszRightContext,LangID,pEnginePronunciationList)
  9306. #else
  9307. /*** IUnknown methods ***/
  9308. static FORCEINLINE HRESULT ISpEnginePronunciation_QueryInterface(ISpEnginePronunciation* This,REFIID riid,void **ppvObject) {
  9309. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  9310. }
  9311. static FORCEINLINE ULONG ISpEnginePronunciation_AddRef(ISpEnginePronunciation* This) {
  9312. return This->lpVtbl->AddRef(This);
  9313. }
  9314. static FORCEINLINE ULONG ISpEnginePronunciation_Release(ISpEnginePronunciation* This) {
  9315. return This->lpVtbl->Release(This);
  9316. }
  9317. /*** ISpEnginePronunciation methods ***/
  9318. static FORCEINLINE HRESULT ISpEnginePronunciation_Normalize(ISpEnginePronunciation* This,LPCWSTR pszWord,LPCWSTR pszLeftContext,LPCWSTR pszRightContext,WORD LangID,SPNORMALIZATIONLIST *pNormalizationList) {
  9319. return This->lpVtbl->Normalize(This,pszWord,pszLeftContext,pszRightContext,LangID,pNormalizationList);
  9320. }
  9321. static FORCEINLINE HRESULT ISpEnginePronunciation_GetPronunciations(ISpEnginePronunciation* This,LPCWSTR pszWord,LPCWSTR pszLeftContext,LPCWSTR pszRightContext,WORD LangID,SPWORDPRONUNCIATIONLIST *pEnginePronunciationList) {
  9322. return This->lpVtbl->GetPronunciations(This,pszWord,pszLeftContext,pszRightContext,LangID,pEnginePronunciationList);
  9323. }
  9324. #endif
  9325. #endif
  9326. #endif
  9327. #endif /* __ISpEnginePronunciation_INTERFACE_DEFINED__ */
  9328. typedef struct SPDISPLAYTOKEN {
  9329. const WCHAR *pszLexical;
  9330. const WCHAR *pszDisplay;
  9331. BYTE bDisplayAttributes;
  9332. } SPDISPLAYTOKEN;
  9333. typedef struct SPDISPLAYPHRASE {
  9334. ULONG ulNumTokens;
  9335. SPDISPLAYTOKEN *pTokens;
  9336. } SPDISPLAYPHRASE;
  9337. /*****************************************************************************
  9338. * ISpDisplayAlternates interface
  9339. */
  9340. #ifndef __ISpDisplayAlternates_INTERFACE_DEFINED__
  9341. #define __ISpDisplayAlternates_INTERFACE_DEFINED__
  9342. DEFINE_GUID(IID_ISpDisplayAlternates, 0xc8d7c7e2, 0x0dde, 0x44b7, 0xaf,0xe3, 0xb0,0xc9,0x91,0xfb,0xeb,0x5e);
  9343. #if defined(__cplusplus) && !defined(CINTERFACE)
  9344. MIDL_INTERFACE("c8d7c7e2-0dde-44b7-afe3-b0c991fbeb5e")
  9345. ISpDisplayAlternates : public IUnknown
  9346. {
  9347. virtual HRESULT STDMETHODCALLTYPE GetDisplayAlternates(
  9348. const SPDISPLAYPHRASE *pPhrase,
  9349. ULONG cRequestCount,
  9350. SPDISPLAYPHRASE **ppCoMemPhrases,
  9351. ULONG *pcPhrasesReturned) = 0;
  9352. virtual HRESULT STDMETHODCALLTYPE SetFullStopTrailSpace(
  9353. ULONG ulTrailSpace) = 0;
  9354. };
  9355. #ifdef __CRT_UUID_DECL
  9356. __CRT_UUID_DECL(ISpDisplayAlternates, 0xc8d7c7e2, 0x0dde, 0x44b7, 0xaf,0xe3, 0xb0,0xc9,0x91,0xfb,0xeb,0x5e)
  9357. #endif
  9358. #else
  9359. typedef struct ISpDisplayAlternatesVtbl {
  9360. BEGIN_INTERFACE
  9361. /*** IUnknown methods ***/
  9362. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  9363. ISpDisplayAlternates *This,
  9364. REFIID riid,
  9365. void **ppvObject);
  9366. ULONG (STDMETHODCALLTYPE *AddRef)(
  9367. ISpDisplayAlternates *This);
  9368. ULONG (STDMETHODCALLTYPE *Release)(
  9369. ISpDisplayAlternates *This);
  9370. /*** ISpDisplayAlternates methods ***/
  9371. HRESULT (STDMETHODCALLTYPE *GetDisplayAlternates)(
  9372. ISpDisplayAlternates *This,
  9373. const SPDISPLAYPHRASE *pPhrase,
  9374. ULONG cRequestCount,
  9375. SPDISPLAYPHRASE **ppCoMemPhrases,
  9376. ULONG *pcPhrasesReturned);
  9377. HRESULT (STDMETHODCALLTYPE *SetFullStopTrailSpace)(
  9378. ISpDisplayAlternates *This,
  9379. ULONG ulTrailSpace);
  9380. END_INTERFACE
  9381. } ISpDisplayAlternatesVtbl;
  9382. interface ISpDisplayAlternates {
  9383. CONST_VTBL ISpDisplayAlternatesVtbl* lpVtbl;
  9384. };
  9385. #ifdef COBJMACROS
  9386. #ifndef WIDL_C_INLINE_WRAPPERS
  9387. /*** IUnknown methods ***/
  9388. #define ISpDisplayAlternates_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  9389. #define ISpDisplayAlternates_AddRef(This) (This)->lpVtbl->AddRef(This)
  9390. #define ISpDisplayAlternates_Release(This) (This)->lpVtbl->Release(This)
  9391. /*** ISpDisplayAlternates methods ***/
  9392. #define ISpDisplayAlternates_GetDisplayAlternates(This,pPhrase,cRequestCount,ppCoMemPhrases,pcPhrasesReturned) (This)->lpVtbl->GetDisplayAlternates(This,pPhrase,cRequestCount,ppCoMemPhrases,pcPhrasesReturned)
  9393. #define ISpDisplayAlternates_SetFullStopTrailSpace(This,ulTrailSpace) (This)->lpVtbl->SetFullStopTrailSpace(This,ulTrailSpace)
  9394. #else
  9395. /*** IUnknown methods ***/
  9396. static FORCEINLINE HRESULT ISpDisplayAlternates_QueryInterface(ISpDisplayAlternates* This,REFIID riid,void **ppvObject) {
  9397. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  9398. }
  9399. static FORCEINLINE ULONG ISpDisplayAlternates_AddRef(ISpDisplayAlternates* This) {
  9400. return This->lpVtbl->AddRef(This);
  9401. }
  9402. static FORCEINLINE ULONG ISpDisplayAlternates_Release(ISpDisplayAlternates* This) {
  9403. return This->lpVtbl->Release(This);
  9404. }
  9405. /*** ISpDisplayAlternates methods ***/
  9406. static FORCEINLINE HRESULT ISpDisplayAlternates_GetDisplayAlternates(ISpDisplayAlternates* This,const SPDISPLAYPHRASE *pPhrase,ULONG cRequestCount,SPDISPLAYPHRASE **ppCoMemPhrases,ULONG *pcPhrasesReturned) {
  9407. return This->lpVtbl->GetDisplayAlternates(This,pPhrase,cRequestCount,ppCoMemPhrases,pcPhrasesReturned);
  9408. }
  9409. static FORCEINLINE HRESULT ISpDisplayAlternates_SetFullStopTrailSpace(ISpDisplayAlternates* This,ULONG ulTrailSpace) {
  9410. return This->lpVtbl->SetFullStopTrailSpace(This,ulTrailSpace);
  9411. }
  9412. #endif
  9413. #endif
  9414. #endif
  9415. #endif /* __ISpDisplayAlternates_INTERFACE_DEFINED__ */
  9416. #ifndef __SpeechLib_LIBRARY_DEFINED__
  9417. #define __SpeechLib_LIBRARY_DEFINED__
  9418. DEFINE_GUID(LIBID_SpeechLib, 0xc866ca3a, 0x32f7, 0x11d2, 0x96,0x02, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  9419. #ifndef __ISpeechDataKey_FWD_DEFINED__
  9420. #define __ISpeechDataKey_FWD_DEFINED__
  9421. typedef interface ISpeechDataKey ISpeechDataKey;
  9422. #ifdef __cplusplus
  9423. interface ISpeechDataKey;
  9424. #endif /* __cplusplus */
  9425. #endif
  9426. #ifndef __ISpeechObjectToken_FWD_DEFINED__
  9427. #define __ISpeechObjectToken_FWD_DEFINED__
  9428. typedef interface ISpeechObjectToken ISpeechObjectToken;
  9429. #ifdef __cplusplus
  9430. interface ISpeechObjectToken;
  9431. #endif /* __cplusplus */
  9432. #endif
  9433. #ifndef __ISpeechObjectTokens_FWD_DEFINED__
  9434. #define __ISpeechObjectTokens_FWD_DEFINED__
  9435. typedef interface ISpeechObjectTokens ISpeechObjectTokens;
  9436. #ifdef __cplusplus
  9437. interface ISpeechObjectTokens;
  9438. #endif /* __cplusplus */
  9439. #endif
  9440. #ifndef __ISpeechObjectTokenCategory_FWD_DEFINED__
  9441. #define __ISpeechObjectTokenCategory_FWD_DEFINED__
  9442. typedef interface ISpeechObjectTokenCategory ISpeechObjectTokenCategory;
  9443. #ifdef __cplusplus
  9444. interface ISpeechObjectTokenCategory;
  9445. #endif /* __cplusplus */
  9446. #endif
  9447. #ifndef __ISpeechAudioBufferInfo_FWD_DEFINED__
  9448. #define __ISpeechAudioBufferInfo_FWD_DEFINED__
  9449. typedef interface ISpeechAudioBufferInfo ISpeechAudioBufferInfo;
  9450. #ifdef __cplusplus
  9451. interface ISpeechAudioBufferInfo;
  9452. #endif /* __cplusplus */
  9453. #endif
  9454. #ifndef __ISpeechAudioStatus_FWD_DEFINED__
  9455. #define __ISpeechAudioStatus_FWD_DEFINED__
  9456. typedef interface ISpeechAudioStatus ISpeechAudioStatus;
  9457. #ifdef __cplusplus
  9458. interface ISpeechAudioStatus;
  9459. #endif /* __cplusplus */
  9460. #endif
  9461. #ifndef __ISpeechAudioFormat_FWD_DEFINED__
  9462. #define __ISpeechAudioFormat_FWD_DEFINED__
  9463. typedef interface ISpeechAudioFormat ISpeechAudioFormat;
  9464. #ifdef __cplusplus
  9465. interface ISpeechAudioFormat;
  9466. #endif /* __cplusplus */
  9467. #endif
  9468. #ifndef __ISpeechWaveFormatEx_FWD_DEFINED__
  9469. #define __ISpeechWaveFormatEx_FWD_DEFINED__
  9470. typedef interface ISpeechWaveFormatEx ISpeechWaveFormatEx;
  9471. #ifdef __cplusplus
  9472. interface ISpeechWaveFormatEx;
  9473. #endif /* __cplusplus */
  9474. #endif
  9475. #ifndef __ISpeechBaseStream_FWD_DEFINED__
  9476. #define __ISpeechBaseStream_FWD_DEFINED__
  9477. typedef interface ISpeechBaseStream ISpeechBaseStream;
  9478. #ifdef __cplusplus
  9479. interface ISpeechBaseStream;
  9480. #endif /* __cplusplus */
  9481. #endif
  9482. #ifndef __ISpeechFileStream_FWD_DEFINED__
  9483. #define __ISpeechFileStream_FWD_DEFINED__
  9484. typedef interface ISpeechFileStream ISpeechFileStream;
  9485. #ifdef __cplusplus
  9486. interface ISpeechFileStream;
  9487. #endif /* __cplusplus */
  9488. #endif
  9489. #ifndef __ISpeechMemoryStream_FWD_DEFINED__
  9490. #define __ISpeechMemoryStream_FWD_DEFINED__
  9491. typedef interface ISpeechMemoryStream ISpeechMemoryStream;
  9492. #ifdef __cplusplus
  9493. interface ISpeechMemoryStream;
  9494. #endif /* __cplusplus */
  9495. #endif
  9496. #ifndef __ISpeechCustomStream_FWD_DEFINED__
  9497. #define __ISpeechCustomStream_FWD_DEFINED__
  9498. typedef interface ISpeechCustomStream ISpeechCustomStream;
  9499. #ifdef __cplusplus
  9500. interface ISpeechCustomStream;
  9501. #endif /* __cplusplus */
  9502. #endif
  9503. #ifndef __ISpeechAudio_FWD_DEFINED__
  9504. #define __ISpeechAudio_FWD_DEFINED__
  9505. typedef interface ISpeechAudio ISpeechAudio;
  9506. #ifdef __cplusplus
  9507. interface ISpeechAudio;
  9508. #endif /* __cplusplus */
  9509. #endif
  9510. #ifndef __ISpeechMMSysAudio_FWD_DEFINED__
  9511. #define __ISpeechMMSysAudio_FWD_DEFINED__
  9512. typedef interface ISpeechMMSysAudio ISpeechMMSysAudio;
  9513. #ifdef __cplusplus
  9514. interface ISpeechMMSysAudio;
  9515. #endif /* __cplusplus */
  9516. #endif
  9517. #ifndef __ISpeechVoice_FWD_DEFINED__
  9518. #define __ISpeechVoice_FWD_DEFINED__
  9519. typedef interface ISpeechVoice ISpeechVoice;
  9520. #ifdef __cplusplus
  9521. interface ISpeechVoice;
  9522. #endif /* __cplusplus */
  9523. #endif
  9524. #ifndef __ISpeechVoiceStatus_FWD_DEFINED__
  9525. #define __ISpeechVoiceStatus_FWD_DEFINED__
  9526. typedef interface ISpeechVoiceStatus ISpeechVoiceStatus;
  9527. #ifdef __cplusplus
  9528. interface ISpeechVoiceStatus;
  9529. #endif /* __cplusplus */
  9530. #endif
  9531. #ifndef ___ISpeechVoiceEvents_FWD_DEFINED__
  9532. #define ___ISpeechVoiceEvents_FWD_DEFINED__
  9533. typedef interface _ISpeechVoiceEvents _ISpeechVoiceEvents;
  9534. #ifdef __cplusplus
  9535. interface _ISpeechVoiceEvents;
  9536. #endif /* __cplusplus */
  9537. #endif
  9538. #ifndef __ISpeechRecognizer_FWD_DEFINED__
  9539. #define __ISpeechRecognizer_FWD_DEFINED__
  9540. typedef interface ISpeechRecognizer ISpeechRecognizer;
  9541. #ifdef __cplusplus
  9542. interface ISpeechRecognizer;
  9543. #endif /* __cplusplus */
  9544. #endif
  9545. #ifndef __ISpeechRecognizerStatus_FWD_DEFINED__
  9546. #define __ISpeechRecognizerStatus_FWD_DEFINED__
  9547. typedef interface ISpeechRecognizerStatus ISpeechRecognizerStatus;
  9548. #ifdef __cplusplus
  9549. interface ISpeechRecognizerStatus;
  9550. #endif /* __cplusplus */
  9551. #endif
  9552. #ifndef __ISpeechRecoContext_FWD_DEFINED__
  9553. #define __ISpeechRecoContext_FWD_DEFINED__
  9554. typedef interface ISpeechRecoContext ISpeechRecoContext;
  9555. #ifdef __cplusplus
  9556. interface ISpeechRecoContext;
  9557. #endif /* __cplusplus */
  9558. #endif
  9559. #ifndef __ISpeechRecoGrammar_FWD_DEFINED__
  9560. #define __ISpeechRecoGrammar_FWD_DEFINED__
  9561. typedef interface ISpeechRecoGrammar ISpeechRecoGrammar;
  9562. #ifdef __cplusplus
  9563. interface ISpeechRecoGrammar;
  9564. #endif /* __cplusplus */
  9565. #endif
  9566. #ifndef ___ISpeechRecoContextEvents_FWD_DEFINED__
  9567. #define ___ISpeechRecoContextEvents_FWD_DEFINED__
  9568. typedef interface _ISpeechRecoContextEvents _ISpeechRecoContextEvents;
  9569. #ifdef __cplusplus
  9570. interface _ISpeechRecoContextEvents;
  9571. #endif /* __cplusplus */
  9572. #endif
  9573. #ifndef __ISpeechGrammarRule_FWD_DEFINED__
  9574. #define __ISpeechGrammarRule_FWD_DEFINED__
  9575. typedef interface ISpeechGrammarRule ISpeechGrammarRule;
  9576. #ifdef __cplusplus
  9577. interface ISpeechGrammarRule;
  9578. #endif /* __cplusplus */
  9579. #endif
  9580. #ifndef __ISpeechGrammarRules_FWD_DEFINED__
  9581. #define __ISpeechGrammarRules_FWD_DEFINED__
  9582. typedef interface ISpeechGrammarRules ISpeechGrammarRules;
  9583. #ifdef __cplusplus
  9584. interface ISpeechGrammarRules;
  9585. #endif /* __cplusplus */
  9586. #endif
  9587. #ifndef __ISpeechGrammarRuleState_FWD_DEFINED__
  9588. #define __ISpeechGrammarRuleState_FWD_DEFINED__
  9589. typedef interface ISpeechGrammarRuleState ISpeechGrammarRuleState;
  9590. #ifdef __cplusplus
  9591. interface ISpeechGrammarRuleState;
  9592. #endif /* __cplusplus */
  9593. #endif
  9594. #ifndef __ISpeechGrammarRuleStateTransition_FWD_DEFINED__
  9595. #define __ISpeechGrammarRuleStateTransition_FWD_DEFINED__
  9596. typedef interface ISpeechGrammarRuleStateTransition ISpeechGrammarRuleStateTransition;
  9597. #ifdef __cplusplus
  9598. interface ISpeechGrammarRuleStateTransition;
  9599. #endif /* __cplusplus */
  9600. #endif
  9601. #ifndef __ISpeechGrammarRuleStateTransitions_FWD_DEFINED__
  9602. #define __ISpeechGrammarRuleStateTransitions_FWD_DEFINED__
  9603. typedef interface ISpeechGrammarRuleStateTransitions ISpeechGrammarRuleStateTransitions;
  9604. #ifdef __cplusplus
  9605. interface ISpeechGrammarRuleStateTransitions;
  9606. #endif /* __cplusplus */
  9607. #endif
  9608. #ifndef __ISpeechTextSelectionInformation_FWD_DEFINED__
  9609. #define __ISpeechTextSelectionInformation_FWD_DEFINED__
  9610. typedef interface ISpeechTextSelectionInformation ISpeechTextSelectionInformation;
  9611. #ifdef __cplusplus
  9612. interface ISpeechTextSelectionInformation;
  9613. #endif /* __cplusplus */
  9614. #endif
  9615. #ifndef __ISpeechRecoResult_FWD_DEFINED__
  9616. #define __ISpeechRecoResult_FWD_DEFINED__
  9617. typedef interface ISpeechRecoResult ISpeechRecoResult;
  9618. #ifdef __cplusplus
  9619. interface ISpeechRecoResult;
  9620. #endif /* __cplusplus */
  9621. #endif
  9622. #ifndef __ISpeechRecoResult2_FWD_DEFINED__
  9623. #define __ISpeechRecoResult2_FWD_DEFINED__
  9624. typedef interface ISpeechRecoResult2 ISpeechRecoResult2;
  9625. #ifdef __cplusplus
  9626. interface ISpeechRecoResult2;
  9627. #endif /* __cplusplus */
  9628. #endif
  9629. #ifndef __ISpeechRecoResultTimes_FWD_DEFINED__
  9630. #define __ISpeechRecoResultTimes_FWD_DEFINED__
  9631. typedef interface ISpeechRecoResultTimes ISpeechRecoResultTimes;
  9632. #ifdef __cplusplus
  9633. interface ISpeechRecoResultTimes;
  9634. #endif /* __cplusplus */
  9635. #endif
  9636. #ifndef __ISpeechPhraseAlternate_FWD_DEFINED__
  9637. #define __ISpeechPhraseAlternate_FWD_DEFINED__
  9638. typedef interface ISpeechPhraseAlternate ISpeechPhraseAlternate;
  9639. #ifdef __cplusplus
  9640. interface ISpeechPhraseAlternate;
  9641. #endif /* __cplusplus */
  9642. #endif
  9643. #ifndef __ISpeechPhraseAlternates_FWD_DEFINED__
  9644. #define __ISpeechPhraseAlternates_FWD_DEFINED__
  9645. typedef interface ISpeechPhraseAlternates ISpeechPhraseAlternates;
  9646. #ifdef __cplusplus
  9647. interface ISpeechPhraseAlternates;
  9648. #endif /* __cplusplus */
  9649. #endif
  9650. #ifndef __ISpeechPhraseInfo_FWD_DEFINED__
  9651. #define __ISpeechPhraseInfo_FWD_DEFINED__
  9652. typedef interface ISpeechPhraseInfo ISpeechPhraseInfo;
  9653. #ifdef __cplusplus
  9654. interface ISpeechPhraseInfo;
  9655. #endif /* __cplusplus */
  9656. #endif
  9657. #ifndef __ISpeechPhraseElement_FWD_DEFINED__
  9658. #define __ISpeechPhraseElement_FWD_DEFINED__
  9659. typedef interface ISpeechPhraseElement ISpeechPhraseElement;
  9660. #ifdef __cplusplus
  9661. interface ISpeechPhraseElement;
  9662. #endif /* __cplusplus */
  9663. #endif
  9664. #ifndef __ISpeechPhraseElements_FWD_DEFINED__
  9665. #define __ISpeechPhraseElements_FWD_DEFINED__
  9666. typedef interface ISpeechPhraseElements ISpeechPhraseElements;
  9667. #ifdef __cplusplus
  9668. interface ISpeechPhraseElements;
  9669. #endif /* __cplusplus */
  9670. #endif
  9671. #ifndef __ISpeechPhraseReplacement_FWD_DEFINED__
  9672. #define __ISpeechPhraseReplacement_FWD_DEFINED__
  9673. typedef interface ISpeechPhraseReplacement ISpeechPhraseReplacement;
  9674. #ifdef __cplusplus
  9675. interface ISpeechPhraseReplacement;
  9676. #endif /* __cplusplus */
  9677. #endif
  9678. #ifndef __ISpeechPhraseReplacements_FWD_DEFINED__
  9679. #define __ISpeechPhraseReplacements_FWD_DEFINED__
  9680. typedef interface ISpeechPhraseReplacements ISpeechPhraseReplacements;
  9681. #ifdef __cplusplus
  9682. interface ISpeechPhraseReplacements;
  9683. #endif /* __cplusplus */
  9684. #endif
  9685. #ifndef __ISpeechPhraseProperty_FWD_DEFINED__
  9686. #define __ISpeechPhraseProperty_FWD_DEFINED__
  9687. typedef interface ISpeechPhraseProperty ISpeechPhraseProperty;
  9688. #ifdef __cplusplus
  9689. interface ISpeechPhraseProperty;
  9690. #endif /* __cplusplus */
  9691. #endif
  9692. #ifndef __ISpeechPhraseProperties_FWD_DEFINED__
  9693. #define __ISpeechPhraseProperties_FWD_DEFINED__
  9694. typedef interface ISpeechPhraseProperties ISpeechPhraseProperties;
  9695. #ifdef __cplusplus
  9696. interface ISpeechPhraseProperties;
  9697. #endif /* __cplusplus */
  9698. #endif
  9699. #ifndef __ISpeechPhraseRule_FWD_DEFINED__
  9700. #define __ISpeechPhraseRule_FWD_DEFINED__
  9701. typedef interface ISpeechPhraseRule ISpeechPhraseRule;
  9702. #ifdef __cplusplus
  9703. interface ISpeechPhraseRule;
  9704. #endif /* __cplusplus */
  9705. #endif
  9706. #ifndef __ISpeechPhraseRules_FWD_DEFINED__
  9707. #define __ISpeechPhraseRules_FWD_DEFINED__
  9708. typedef interface ISpeechPhraseRules ISpeechPhraseRules;
  9709. #ifdef __cplusplus
  9710. interface ISpeechPhraseRules;
  9711. #endif /* __cplusplus */
  9712. #endif
  9713. #ifndef __ISpeechLexicon_FWD_DEFINED__
  9714. #define __ISpeechLexicon_FWD_DEFINED__
  9715. typedef interface ISpeechLexicon ISpeechLexicon;
  9716. #ifdef __cplusplus
  9717. interface ISpeechLexicon;
  9718. #endif /* __cplusplus */
  9719. #endif
  9720. #ifndef __ISpeechLexiconWords_FWD_DEFINED__
  9721. #define __ISpeechLexiconWords_FWD_DEFINED__
  9722. typedef interface ISpeechLexiconWords ISpeechLexiconWords;
  9723. #ifdef __cplusplus
  9724. interface ISpeechLexiconWords;
  9725. #endif /* __cplusplus */
  9726. #endif
  9727. #ifndef __ISpeechLexiconWord_FWD_DEFINED__
  9728. #define __ISpeechLexiconWord_FWD_DEFINED__
  9729. typedef interface ISpeechLexiconWord ISpeechLexiconWord;
  9730. #ifdef __cplusplus
  9731. interface ISpeechLexiconWord;
  9732. #endif /* __cplusplus */
  9733. #endif
  9734. #ifndef __ISpeechLexiconPronunciations_FWD_DEFINED__
  9735. #define __ISpeechLexiconPronunciations_FWD_DEFINED__
  9736. typedef interface ISpeechLexiconPronunciations ISpeechLexiconPronunciations;
  9737. #ifdef __cplusplus
  9738. interface ISpeechLexiconPronunciations;
  9739. #endif /* __cplusplus */
  9740. #endif
  9741. #ifndef __ISpeechLexiconPronunciation_FWD_DEFINED__
  9742. #define __ISpeechLexiconPronunciation_FWD_DEFINED__
  9743. typedef interface ISpeechLexiconPronunciation ISpeechLexiconPronunciation;
  9744. #ifdef __cplusplus
  9745. interface ISpeechLexiconPronunciation;
  9746. #endif /* __cplusplus */
  9747. #endif
  9748. typedef LONG SpeechLanguageId;
  9749. #define __SpeechStringConstants_MODULE_DEFINED__
  9750. typedef enum DISPID_SpeechDataKey {
  9751. DISPID_SDKSetBinaryValue = 1,
  9752. DISPID_SDKGetBinaryValue = 2,
  9753. DISPID_SDKSetStringValue = 3,
  9754. DISPID_SDKGetStringValue = 4,
  9755. DISPID_SDKSetLongValue = 5,
  9756. DISPID_SDKGetlongValue = 6,
  9757. DISPID_SDKOpenKey = 7,
  9758. DISPID_SDKCreateKey = 8,
  9759. DISPID_SDKDeleteKey = 9,
  9760. DISPID_SDKDeleteValue = 10,
  9761. DISPID_SDKEnumKeys = 11,
  9762. DISPID_SDKEnumValues = 12
  9763. } DISPID_SpeechDataKey;
  9764. typedef enum DISPID_SpeechObjectToken {
  9765. DISPID_SOTId = 1,
  9766. DISPID_SOTDataKey = 2,
  9767. DISPID_SOTCategory = 3,
  9768. DISPID_SOTGetDescription = 4,
  9769. DISPID_SOTSetId = 5,
  9770. DISPID_SOTGetAttribute = 6,
  9771. DISPID_SOTCreateInstance = 7,
  9772. DISPID_SOTRemove = 8,
  9773. DISPID_SOTGetStorageFileName = 9,
  9774. DISPID_SOTRemoveStorageFileName = 10,
  9775. DISPID_SOTIsUISupported = 11,
  9776. DISPID_SOTDisplayUI = 12,
  9777. DISPID_SOTMatchesAttributes = 13
  9778. } DISPID_SpeechObjectToken;
  9779. typedef enum SpeechDataKeyLocation {
  9780. SDKLDefaultLocation = SPDKL_DefaultLocation,
  9781. SDKLCurrentUser = SPDKL_CurrentUser,
  9782. SDKLLocalMachine = SPDKL_LocalMachine,
  9783. SDKLCurrentConfig = SPDKL_CurrentConfig
  9784. } SpeechDataKeyLocation;
  9785. typedef enum SpeechTokenContext {
  9786. STCInprocServer = CLSCTX_INPROC_SERVER,
  9787. STCInprocHandler = CLSCTX_INPROC_HANDLER,
  9788. STCLocalServer = CLSCTX_LOCAL_SERVER,
  9789. STCRemoteServer = CLSCTX_REMOTE_SERVER,
  9790. STCAll = ((CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER) | CLSCTX_LOCAL_SERVER) | CLSCTX_REMOTE_SERVER
  9791. } SpeechTokenContext;
  9792. typedef enum SpeechTokenShellFolder {
  9793. STSF_AppData = 0x1a,
  9794. STSF_LocalAppData = 0x1c,
  9795. STSF_CommonAppData = 0x23,
  9796. STSF_FlagCreate = 0x8000
  9797. } SpeechTokenShellFolder;
  9798. typedef enum DISPID_SpeechObjectTokens {
  9799. DISPID_SOTsCount = 1,
  9800. DISPID_SOTsItem = DISPID_VALUE,
  9801. DISPID_SOTs_NewEnum = DISPID_NEWENUM
  9802. } DISPID_SpeechObjectTokens;
  9803. typedef enum DISPID_SpeechObjectTokenCategory {
  9804. DISPID_SOTCId = 1,
  9805. DISPID_SOTCDefault = 2,
  9806. DISPID_SOTCSetId = 3,
  9807. DISPID_SOTCGetDataKey = 4,
  9808. DISPID_SOTCEnumerateTokens = 5
  9809. } DISPID_SpeechObjectTokenCategory;
  9810. /*****************************************************************************
  9811. * ISpeechDataKey interface
  9812. */
  9813. #ifndef __ISpeechDataKey_INTERFACE_DEFINED__
  9814. #define __ISpeechDataKey_INTERFACE_DEFINED__
  9815. DEFINE_GUID(IID_ISpeechDataKey, 0xce17c09b, 0x4efa, 0x44d5, 0xa4,0xc9, 0x59,0xd9,0x58,0x5a,0xb0,0xcd);
  9816. #if defined(__cplusplus) && !defined(CINTERFACE)
  9817. MIDL_INTERFACE("ce17c09b-4efa-44d5-a4c9-59d9585ab0cd")
  9818. ISpeechDataKey : public IDispatch
  9819. {
  9820. virtual HRESULT STDMETHODCALLTYPE SetBinaryValue(
  9821. const BSTR ValueName,
  9822. VARIANT Value) = 0;
  9823. virtual HRESULT STDMETHODCALLTYPE GetBinaryValue(
  9824. const BSTR ValueName,
  9825. VARIANT *Value) = 0;
  9826. virtual HRESULT STDMETHODCALLTYPE SetStringValue(
  9827. const BSTR ValueName,
  9828. const BSTR Value) = 0;
  9829. virtual HRESULT STDMETHODCALLTYPE GetStringValue(
  9830. const BSTR ValueName,
  9831. BSTR *Value) = 0;
  9832. virtual HRESULT STDMETHODCALLTYPE SetLongValue(
  9833. const BSTR ValueName,
  9834. LONG Value) = 0;
  9835. virtual HRESULT STDMETHODCALLTYPE GetLongValue(
  9836. const BSTR ValueName,
  9837. LONG *Value) = 0;
  9838. virtual HRESULT STDMETHODCALLTYPE OpenKey(
  9839. const BSTR SubKeyName,
  9840. ISpeechDataKey **SubKey) = 0;
  9841. virtual HRESULT STDMETHODCALLTYPE CreateKey(
  9842. const BSTR SubKeyName,
  9843. ISpeechDataKey **SubKey) = 0;
  9844. virtual HRESULT STDMETHODCALLTYPE DeleteKey(
  9845. const BSTR SubKeyName) = 0;
  9846. virtual HRESULT STDMETHODCALLTYPE DeleteValue(
  9847. const BSTR ValueName) = 0;
  9848. virtual HRESULT STDMETHODCALLTYPE EnumKeys(
  9849. LONG Index,
  9850. BSTR *SubKeyName) = 0;
  9851. virtual HRESULT STDMETHODCALLTYPE EnumValues(
  9852. LONG Index,
  9853. BSTR *ValueName) = 0;
  9854. };
  9855. #ifdef __CRT_UUID_DECL
  9856. __CRT_UUID_DECL(ISpeechDataKey, 0xce17c09b, 0x4efa, 0x44d5, 0xa4,0xc9, 0x59,0xd9,0x58,0x5a,0xb0,0xcd)
  9857. #endif
  9858. #else
  9859. typedef struct ISpeechDataKeyVtbl {
  9860. BEGIN_INTERFACE
  9861. /*** IUnknown methods ***/
  9862. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  9863. ISpeechDataKey *This,
  9864. REFIID riid,
  9865. void **ppvObject);
  9866. ULONG (STDMETHODCALLTYPE *AddRef)(
  9867. ISpeechDataKey *This);
  9868. ULONG (STDMETHODCALLTYPE *Release)(
  9869. ISpeechDataKey *This);
  9870. /*** IDispatch methods ***/
  9871. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  9872. ISpeechDataKey *This,
  9873. UINT *pctinfo);
  9874. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  9875. ISpeechDataKey *This,
  9876. UINT iTInfo,
  9877. LCID lcid,
  9878. ITypeInfo **ppTInfo);
  9879. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  9880. ISpeechDataKey *This,
  9881. REFIID riid,
  9882. LPOLESTR *rgszNames,
  9883. UINT cNames,
  9884. LCID lcid,
  9885. DISPID *rgDispId);
  9886. HRESULT (STDMETHODCALLTYPE *Invoke)(
  9887. ISpeechDataKey *This,
  9888. DISPID dispIdMember,
  9889. REFIID riid,
  9890. LCID lcid,
  9891. WORD wFlags,
  9892. DISPPARAMS *pDispParams,
  9893. VARIANT *pVarResult,
  9894. EXCEPINFO *pExcepInfo,
  9895. UINT *puArgErr);
  9896. /*** ISpeechDataKey methods ***/
  9897. HRESULT (STDMETHODCALLTYPE *SetBinaryValue)(
  9898. ISpeechDataKey *This,
  9899. const BSTR ValueName,
  9900. VARIANT Value);
  9901. HRESULT (STDMETHODCALLTYPE *GetBinaryValue)(
  9902. ISpeechDataKey *This,
  9903. const BSTR ValueName,
  9904. VARIANT *Value);
  9905. HRESULT (STDMETHODCALLTYPE *SetStringValue)(
  9906. ISpeechDataKey *This,
  9907. const BSTR ValueName,
  9908. const BSTR Value);
  9909. HRESULT (STDMETHODCALLTYPE *GetStringValue)(
  9910. ISpeechDataKey *This,
  9911. const BSTR ValueName,
  9912. BSTR *Value);
  9913. HRESULT (STDMETHODCALLTYPE *SetLongValue)(
  9914. ISpeechDataKey *This,
  9915. const BSTR ValueName,
  9916. LONG Value);
  9917. HRESULT (STDMETHODCALLTYPE *GetLongValue)(
  9918. ISpeechDataKey *This,
  9919. const BSTR ValueName,
  9920. LONG *Value);
  9921. HRESULT (STDMETHODCALLTYPE *OpenKey)(
  9922. ISpeechDataKey *This,
  9923. const BSTR SubKeyName,
  9924. ISpeechDataKey **SubKey);
  9925. HRESULT (STDMETHODCALLTYPE *CreateKey)(
  9926. ISpeechDataKey *This,
  9927. const BSTR SubKeyName,
  9928. ISpeechDataKey **SubKey);
  9929. HRESULT (STDMETHODCALLTYPE *DeleteKey)(
  9930. ISpeechDataKey *This,
  9931. const BSTR SubKeyName);
  9932. HRESULT (STDMETHODCALLTYPE *DeleteValue)(
  9933. ISpeechDataKey *This,
  9934. const BSTR ValueName);
  9935. HRESULT (STDMETHODCALLTYPE *EnumKeys)(
  9936. ISpeechDataKey *This,
  9937. LONG Index,
  9938. BSTR *SubKeyName);
  9939. HRESULT (STDMETHODCALLTYPE *EnumValues)(
  9940. ISpeechDataKey *This,
  9941. LONG Index,
  9942. BSTR *ValueName);
  9943. END_INTERFACE
  9944. } ISpeechDataKeyVtbl;
  9945. interface ISpeechDataKey {
  9946. CONST_VTBL ISpeechDataKeyVtbl* lpVtbl;
  9947. };
  9948. #ifdef COBJMACROS
  9949. #ifndef WIDL_C_INLINE_WRAPPERS
  9950. /*** IUnknown methods ***/
  9951. #define ISpeechDataKey_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  9952. #define ISpeechDataKey_AddRef(This) (This)->lpVtbl->AddRef(This)
  9953. #define ISpeechDataKey_Release(This) (This)->lpVtbl->Release(This)
  9954. /*** IDispatch methods ***/
  9955. #define ISpeechDataKey_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  9956. #define ISpeechDataKey_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  9957. #define ISpeechDataKey_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  9958. #define ISpeechDataKey_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  9959. /*** ISpeechDataKey methods ***/
  9960. #define ISpeechDataKey_SetBinaryValue(This,ValueName,Value) (This)->lpVtbl->SetBinaryValue(This,ValueName,Value)
  9961. #define ISpeechDataKey_GetBinaryValue(This,ValueName,Value) (This)->lpVtbl->GetBinaryValue(This,ValueName,Value)
  9962. #define ISpeechDataKey_SetStringValue(This,ValueName,Value) (This)->lpVtbl->SetStringValue(This,ValueName,Value)
  9963. #define ISpeechDataKey_GetStringValue(This,ValueName,Value) (This)->lpVtbl->GetStringValue(This,ValueName,Value)
  9964. #define ISpeechDataKey_SetLongValue(This,ValueName,Value) (This)->lpVtbl->SetLongValue(This,ValueName,Value)
  9965. #define ISpeechDataKey_GetLongValue(This,ValueName,Value) (This)->lpVtbl->GetLongValue(This,ValueName,Value)
  9966. #define ISpeechDataKey_OpenKey(This,SubKeyName,SubKey) (This)->lpVtbl->OpenKey(This,SubKeyName,SubKey)
  9967. #define ISpeechDataKey_CreateKey(This,SubKeyName,SubKey) (This)->lpVtbl->CreateKey(This,SubKeyName,SubKey)
  9968. #define ISpeechDataKey_DeleteKey(This,SubKeyName) (This)->lpVtbl->DeleteKey(This,SubKeyName)
  9969. #define ISpeechDataKey_DeleteValue(This,ValueName) (This)->lpVtbl->DeleteValue(This,ValueName)
  9970. #define ISpeechDataKey_EnumKeys(This,Index,SubKeyName) (This)->lpVtbl->EnumKeys(This,Index,SubKeyName)
  9971. #define ISpeechDataKey_EnumValues(This,Index,ValueName) (This)->lpVtbl->EnumValues(This,Index,ValueName)
  9972. #else
  9973. /*** IUnknown methods ***/
  9974. static FORCEINLINE HRESULT ISpeechDataKey_QueryInterface(ISpeechDataKey* This,REFIID riid,void **ppvObject) {
  9975. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  9976. }
  9977. static FORCEINLINE ULONG ISpeechDataKey_AddRef(ISpeechDataKey* This) {
  9978. return This->lpVtbl->AddRef(This);
  9979. }
  9980. static FORCEINLINE ULONG ISpeechDataKey_Release(ISpeechDataKey* This) {
  9981. return This->lpVtbl->Release(This);
  9982. }
  9983. /*** IDispatch methods ***/
  9984. static FORCEINLINE HRESULT ISpeechDataKey_GetTypeInfoCount(ISpeechDataKey* This,UINT *pctinfo) {
  9985. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  9986. }
  9987. static FORCEINLINE HRESULT ISpeechDataKey_GetTypeInfo(ISpeechDataKey* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  9988. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  9989. }
  9990. static FORCEINLINE HRESULT ISpeechDataKey_GetIDsOfNames(ISpeechDataKey* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  9991. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  9992. }
  9993. static FORCEINLINE HRESULT ISpeechDataKey_Invoke(ISpeechDataKey* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  9994. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  9995. }
  9996. /*** ISpeechDataKey methods ***/
  9997. static FORCEINLINE HRESULT ISpeechDataKey_SetBinaryValue(ISpeechDataKey* This,const BSTR ValueName,VARIANT Value) {
  9998. return This->lpVtbl->SetBinaryValue(This,ValueName,Value);
  9999. }
  10000. static FORCEINLINE HRESULT ISpeechDataKey_GetBinaryValue(ISpeechDataKey* This,const BSTR ValueName,VARIANT *Value) {
  10001. return This->lpVtbl->GetBinaryValue(This,ValueName,Value);
  10002. }
  10003. static FORCEINLINE HRESULT ISpeechDataKey_SetStringValue(ISpeechDataKey* This,const BSTR ValueName,const BSTR Value) {
  10004. return This->lpVtbl->SetStringValue(This,ValueName,Value);
  10005. }
  10006. static FORCEINLINE HRESULT ISpeechDataKey_GetStringValue(ISpeechDataKey* This,const BSTR ValueName,BSTR *Value) {
  10007. return This->lpVtbl->GetStringValue(This,ValueName,Value);
  10008. }
  10009. static FORCEINLINE HRESULT ISpeechDataKey_SetLongValue(ISpeechDataKey* This,const BSTR ValueName,LONG Value) {
  10010. return This->lpVtbl->SetLongValue(This,ValueName,Value);
  10011. }
  10012. static FORCEINLINE HRESULT ISpeechDataKey_GetLongValue(ISpeechDataKey* This,const BSTR ValueName,LONG *Value) {
  10013. return This->lpVtbl->GetLongValue(This,ValueName,Value);
  10014. }
  10015. static FORCEINLINE HRESULT ISpeechDataKey_OpenKey(ISpeechDataKey* This,const BSTR SubKeyName,ISpeechDataKey **SubKey) {
  10016. return This->lpVtbl->OpenKey(This,SubKeyName,SubKey);
  10017. }
  10018. static FORCEINLINE HRESULT ISpeechDataKey_CreateKey(ISpeechDataKey* This,const BSTR SubKeyName,ISpeechDataKey **SubKey) {
  10019. return This->lpVtbl->CreateKey(This,SubKeyName,SubKey);
  10020. }
  10021. static FORCEINLINE HRESULT ISpeechDataKey_DeleteKey(ISpeechDataKey* This,const BSTR SubKeyName) {
  10022. return This->lpVtbl->DeleteKey(This,SubKeyName);
  10023. }
  10024. static FORCEINLINE HRESULT ISpeechDataKey_DeleteValue(ISpeechDataKey* This,const BSTR ValueName) {
  10025. return This->lpVtbl->DeleteValue(This,ValueName);
  10026. }
  10027. static FORCEINLINE HRESULT ISpeechDataKey_EnumKeys(ISpeechDataKey* This,LONG Index,BSTR *SubKeyName) {
  10028. return This->lpVtbl->EnumKeys(This,Index,SubKeyName);
  10029. }
  10030. static FORCEINLINE HRESULT ISpeechDataKey_EnumValues(ISpeechDataKey* This,LONG Index,BSTR *ValueName) {
  10031. return This->lpVtbl->EnumValues(This,Index,ValueName);
  10032. }
  10033. #endif
  10034. #endif
  10035. #endif
  10036. #endif /* __ISpeechDataKey_INTERFACE_DEFINED__ */
  10037. /*****************************************************************************
  10038. * ISpeechObjectToken interface
  10039. */
  10040. #ifndef __ISpeechObjectToken_INTERFACE_DEFINED__
  10041. #define __ISpeechObjectToken_INTERFACE_DEFINED__
  10042. DEFINE_GUID(IID_ISpeechObjectToken, 0xc74a3adc, 0xb727, 0x4500, 0xa8,0x4a, 0xb5,0x26,0x72,0x1c,0x8b,0x8c);
  10043. #if defined(__cplusplus) && !defined(CINTERFACE)
  10044. MIDL_INTERFACE("c74a3adc-b727-4500-a84a-b526721c8b8c")
  10045. ISpeechObjectToken : public IDispatch
  10046. {
  10047. virtual HRESULT STDMETHODCALLTYPE get_Id(
  10048. BSTR *ObjectId) = 0;
  10049. virtual HRESULT STDMETHODCALLTYPE get_DataKey(
  10050. ISpeechDataKey **DataKey) = 0;
  10051. virtual HRESULT STDMETHODCALLTYPE get_Category(
  10052. ISpeechObjectTokenCategory **Category) = 0;
  10053. virtual HRESULT STDMETHODCALLTYPE GetDescription(
  10054. LONG Locale,
  10055. BSTR *Description) = 0;
  10056. virtual HRESULT STDMETHODCALLTYPE SetId(
  10057. BSTR Id,
  10058. BSTR CategoryID = L"",
  10059. VARIANT_BOOL CreateIfNotExist = 0) = 0;
  10060. virtual HRESULT STDMETHODCALLTYPE GetAttribute(
  10061. BSTR AttributeName,
  10062. BSTR *AttributeValue) = 0;
  10063. virtual HRESULT STDMETHODCALLTYPE CreateInstance(
  10064. IUnknown *pUnkOuter,
  10065. SpeechTokenContext ClsContext,
  10066. IUnknown **Object) = 0;
  10067. virtual HRESULT STDMETHODCALLTYPE Remove(
  10068. BSTR ObjectStorageCLSID) = 0;
  10069. virtual HRESULT STDMETHODCALLTYPE GetStorageFileName(
  10070. BSTR ObjectStorageCLSID,
  10071. BSTR KeyName,
  10072. BSTR FileName,
  10073. SpeechTokenShellFolder Folder,
  10074. BSTR *FilePath) = 0;
  10075. virtual HRESULT STDMETHODCALLTYPE RemoveStorageFileName(
  10076. BSTR ObjectStorageCLSID,
  10077. BSTR KeyName,
  10078. VARIANT_BOOL DeleteFile) = 0;
  10079. virtual HRESULT STDMETHODCALLTYPE IsUISupported(
  10080. const BSTR TypeOfUI,
  10081. const VARIANT *ExtraData,
  10082. IUnknown *Object,
  10083. VARIANT_BOOL *Supported) = 0;
  10084. virtual HRESULT STDMETHODCALLTYPE DisplayUI(
  10085. LONG hWnd,
  10086. BSTR Title,
  10087. const BSTR TypeOfUI,
  10088. const VARIANT *ExtraData = 0,
  10089. IUnknown *Object = 0) = 0;
  10090. virtual HRESULT STDMETHODCALLTYPE MatchesAttributes(
  10091. BSTR Attributes,
  10092. VARIANT_BOOL *Matches) = 0;
  10093. };
  10094. #ifdef __CRT_UUID_DECL
  10095. __CRT_UUID_DECL(ISpeechObjectToken, 0xc74a3adc, 0xb727, 0x4500, 0xa8,0x4a, 0xb5,0x26,0x72,0x1c,0x8b,0x8c)
  10096. #endif
  10097. #else
  10098. typedef struct ISpeechObjectTokenVtbl {
  10099. BEGIN_INTERFACE
  10100. /*** IUnknown methods ***/
  10101. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  10102. ISpeechObjectToken *This,
  10103. REFIID riid,
  10104. void **ppvObject);
  10105. ULONG (STDMETHODCALLTYPE *AddRef)(
  10106. ISpeechObjectToken *This);
  10107. ULONG (STDMETHODCALLTYPE *Release)(
  10108. ISpeechObjectToken *This);
  10109. /*** IDispatch methods ***/
  10110. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  10111. ISpeechObjectToken *This,
  10112. UINT *pctinfo);
  10113. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  10114. ISpeechObjectToken *This,
  10115. UINT iTInfo,
  10116. LCID lcid,
  10117. ITypeInfo **ppTInfo);
  10118. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  10119. ISpeechObjectToken *This,
  10120. REFIID riid,
  10121. LPOLESTR *rgszNames,
  10122. UINT cNames,
  10123. LCID lcid,
  10124. DISPID *rgDispId);
  10125. HRESULT (STDMETHODCALLTYPE *Invoke)(
  10126. ISpeechObjectToken *This,
  10127. DISPID dispIdMember,
  10128. REFIID riid,
  10129. LCID lcid,
  10130. WORD wFlags,
  10131. DISPPARAMS *pDispParams,
  10132. VARIANT *pVarResult,
  10133. EXCEPINFO *pExcepInfo,
  10134. UINT *puArgErr);
  10135. /*** ISpeechObjectToken methods ***/
  10136. HRESULT (STDMETHODCALLTYPE *get_Id)(
  10137. ISpeechObjectToken *This,
  10138. BSTR *ObjectId);
  10139. HRESULT (STDMETHODCALLTYPE *get_DataKey)(
  10140. ISpeechObjectToken *This,
  10141. ISpeechDataKey **DataKey);
  10142. HRESULT (STDMETHODCALLTYPE *get_Category)(
  10143. ISpeechObjectToken *This,
  10144. ISpeechObjectTokenCategory **Category);
  10145. HRESULT (STDMETHODCALLTYPE *GetDescription)(
  10146. ISpeechObjectToken *This,
  10147. LONG Locale,
  10148. BSTR *Description);
  10149. HRESULT (STDMETHODCALLTYPE *SetId)(
  10150. ISpeechObjectToken *This,
  10151. BSTR Id,
  10152. BSTR CategoryID,
  10153. VARIANT_BOOL CreateIfNotExist);
  10154. HRESULT (STDMETHODCALLTYPE *GetAttribute)(
  10155. ISpeechObjectToken *This,
  10156. BSTR AttributeName,
  10157. BSTR *AttributeValue);
  10158. HRESULT (STDMETHODCALLTYPE *CreateInstance)(
  10159. ISpeechObjectToken *This,
  10160. IUnknown *pUnkOuter,
  10161. SpeechTokenContext ClsContext,
  10162. IUnknown **Object);
  10163. HRESULT (STDMETHODCALLTYPE *Remove)(
  10164. ISpeechObjectToken *This,
  10165. BSTR ObjectStorageCLSID);
  10166. HRESULT (STDMETHODCALLTYPE *GetStorageFileName)(
  10167. ISpeechObjectToken *This,
  10168. BSTR ObjectStorageCLSID,
  10169. BSTR KeyName,
  10170. BSTR FileName,
  10171. SpeechTokenShellFolder Folder,
  10172. BSTR *FilePath);
  10173. HRESULT (STDMETHODCALLTYPE *RemoveStorageFileName)(
  10174. ISpeechObjectToken *This,
  10175. BSTR ObjectStorageCLSID,
  10176. BSTR KeyName,
  10177. VARIANT_BOOL DeleteFile);
  10178. HRESULT (STDMETHODCALLTYPE *IsUISupported)(
  10179. ISpeechObjectToken *This,
  10180. const BSTR TypeOfUI,
  10181. const VARIANT *ExtraData,
  10182. IUnknown *Object,
  10183. VARIANT_BOOL *Supported);
  10184. HRESULT (STDMETHODCALLTYPE *DisplayUI)(
  10185. ISpeechObjectToken *This,
  10186. LONG hWnd,
  10187. BSTR Title,
  10188. const BSTR TypeOfUI,
  10189. const VARIANT *ExtraData,
  10190. IUnknown *Object);
  10191. HRESULT (STDMETHODCALLTYPE *MatchesAttributes)(
  10192. ISpeechObjectToken *This,
  10193. BSTR Attributes,
  10194. VARIANT_BOOL *Matches);
  10195. END_INTERFACE
  10196. } ISpeechObjectTokenVtbl;
  10197. interface ISpeechObjectToken {
  10198. CONST_VTBL ISpeechObjectTokenVtbl* lpVtbl;
  10199. };
  10200. #ifdef COBJMACROS
  10201. #ifndef WIDL_C_INLINE_WRAPPERS
  10202. /*** IUnknown methods ***/
  10203. #define ISpeechObjectToken_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  10204. #define ISpeechObjectToken_AddRef(This) (This)->lpVtbl->AddRef(This)
  10205. #define ISpeechObjectToken_Release(This) (This)->lpVtbl->Release(This)
  10206. /*** IDispatch methods ***/
  10207. #define ISpeechObjectToken_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  10208. #define ISpeechObjectToken_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10209. #define ISpeechObjectToken_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10210. #define ISpeechObjectToken_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10211. /*** ISpeechObjectToken methods ***/
  10212. #define ISpeechObjectToken_get_Id(This,ObjectId) (This)->lpVtbl->get_Id(This,ObjectId)
  10213. #define ISpeechObjectToken_get_DataKey(This,DataKey) (This)->lpVtbl->get_DataKey(This,DataKey)
  10214. #define ISpeechObjectToken_get_Category(This,Category) (This)->lpVtbl->get_Category(This,Category)
  10215. #define ISpeechObjectToken_GetDescription(This,Locale,Description) (This)->lpVtbl->GetDescription(This,Locale,Description)
  10216. #define ISpeechObjectToken_SetId(This,Id,CategoryID,CreateIfNotExist) (This)->lpVtbl->SetId(This,Id,CategoryID,CreateIfNotExist)
  10217. #define ISpeechObjectToken_GetAttribute(This,AttributeName,AttributeValue) (This)->lpVtbl->GetAttribute(This,AttributeName,AttributeValue)
  10218. #define ISpeechObjectToken_CreateInstance(This,pUnkOuter,ClsContext,Object) (This)->lpVtbl->CreateInstance(This,pUnkOuter,ClsContext,Object)
  10219. #define ISpeechObjectToken_Remove(This,ObjectStorageCLSID) (This)->lpVtbl->Remove(This,ObjectStorageCLSID)
  10220. #define ISpeechObjectToken_GetStorageFileName(This,ObjectStorageCLSID,KeyName,FileName,Folder,FilePath) (This)->lpVtbl->GetStorageFileName(This,ObjectStorageCLSID,KeyName,FileName,Folder,FilePath)
  10221. #define ISpeechObjectToken_RemoveStorageFileName(This,ObjectStorageCLSID,KeyName,DeleteFile) (This)->lpVtbl->RemoveStorageFileName(This,ObjectStorageCLSID,KeyName,DeleteFile)
  10222. #define ISpeechObjectToken_IsUISupported(This,TypeOfUI,ExtraData,Object,Supported) (This)->lpVtbl->IsUISupported(This,TypeOfUI,ExtraData,Object,Supported)
  10223. #define ISpeechObjectToken_DisplayUI(This,hWnd,Title,TypeOfUI,ExtraData,Object) (This)->lpVtbl->DisplayUI(This,hWnd,Title,TypeOfUI,ExtraData,Object)
  10224. #define ISpeechObjectToken_MatchesAttributes(This,Attributes,Matches) (This)->lpVtbl->MatchesAttributes(This,Attributes,Matches)
  10225. #else
  10226. /*** IUnknown methods ***/
  10227. static FORCEINLINE HRESULT ISpeechObjectToken_QueryInterface(ISpeechObjectToken* This,REFIID riid,void **ppvObject) {
  10228. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  10229. }
  10230. static FORCEINLINE ULONG ISpeechObjectToken_AddRef(ISpeechObjectToken* This) {
  10231. return This->lpVtbl->AddRef(This);
  10232. }
  10233. static FORCEINLINE ULONG ISpeechObjectToken_Release(ISpeechObjectToken* This) {
  10234. return This->lpVtbl->Release(This);
  10235. }
  10236. /*** IDispatch methods ***/
  10237. static FORCEINLINE HRESULT ISpeechObjectToken_GetTypeInfoCount(ISpeechObjectToken* This,UINT *pctinfo) {
  10238. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  10239. }
  10240. static FORCEINLINE HRESULT ISpeechObjectToken_GetTypeInfo(ISpeechObjectToken* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  10241. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  10242. }
  10243. static FORCEINLINE HRESULT ISpeechObjectToken_GetIDsOfNames(ISpeechObjectToken* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  10244. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  10245. }
  10246. static FORCEINLINE HRESULT ISpeechObjectToken_Invoke(ISpeechObjectToken* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  10247. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  10248. }
  10249. /*** ISpeechObjectToken methods ***/
  10250. static FORCEINLINE HRESULT ISpeechObjectToken_get_Id(ISpeechObjectToken* This,BSTR *ObjectId) {
  10251. return This->lpVtbl->get_Id(This,ObjectId);
  10252. }
  10253. static FORCEINLINE HRESULT ISpeechObjectToken_get_DataKey(ISpeechObjectToken* This,ISpeechDataKey **DataKey) {
  10254. return This->lpVtbl->get_DataKey(This,DataKey);
  10255. }
  10256. static FORCEINLINE HRESULT ISpeechObjectToken_get_Category(ISpeechObjectToken* This,ISpeechObjectTokenCategory **Category) {
  10257. return This->lpVtbl->get_Category(This,Category);
  10258. }
  10259. static FORCEINLINE HRESULT ISpeechObjectToken_GetDescription(ISpeechObjectToken* This,LONG Locale,BSTR *Description) {
  10260. return This->lpVtbl->GetDescription(This,Locale,Description);
  10261. }
  10262. static FORCEINLINE HRESULT ISpeechObjectToken_SetId(ISpeechObjectToken* This,BSTR Id,BSTR CategoryID,VARIANT_BOOL CreateIfNotExist) {
  10263. return This->lpVtbl->SetId(This,Id,CategoryID,CreateIfNotExist);
  10264. }
  10265. static FORCEINLINE HRESULT ISpeechObjectToken_GetAttribute(ISpeechObjectToken* This,BSTR AttributeName,BSTR *AttributeValue) {
  10266. return This->lpVtbl->GetAttribute(This,AttributeName,AttributeValue);
  10267. }
  10268. static FORCEINLINE HRESULT ISpeechObjectToken_CreateInstance(ISpeechObjectToken* This,IUnknown *pUnkOuter,SpeechTokenContext ClsContext,IUnknown **Object) {
  10269. return This->lpVtbl->CreateInstance(This,pUnkOuter,ClsContext,Object);
  10270. }
  10271. static FORCEINLINE HRESULT ISpeechObjectToken_Remove(ISpeechObjectToken* This,BSTR ObjectStorageCLSID) {
  10272. return This->lpVtbl->Remove(This,ObjectStorageCLSID);
  10273. }
  10274. static FORCEINLINE HRESULT ISpeechObjectToken_GetStorageFileName(ISpeechObjectToken* This,BSTR ObjectStorageCLSID,BSTR KeyName,BSTR FileName,SpeechTokenShellFolder Folder,BSTR *FilePath) {
  10275. return This->lpVtbl->GetStorageFileName(This,ObjectStorageCLSID,KeyName,FileName,Folder,FilePath);
  10276. }
  10277. static FORCEINLINE HRESULT ISpeechObjectToken_RemoveStorageFileName(ISpeechObjectToken* This,BSTR ObjectStorageCLSID,BSTR KeyName,VARIANT_BOOL DeleteFile) {
  10278. return This->lpVtbl->RemoveStorageFileName(This,ObjectStorageCLSID,KeyName,DeleteFile);
  10279. }
  10280. static FORCEINLINE HRESULT ISpeechObjectToken_IsUISupported(ISpeechObjectToken* This,const BSTR TypeOfUI,const VARIANT *ExtraData,IUnknown *Object,VARIANT_BOOL *Supported) {
  10281. return This->lpVtbl->IsUISupported(This,TypeOfUI,ExtraData,Object,Supported);
  10282. }
  10283. static FORCEINLINE HRESULT ISpeechObjectToken_DisplayUI(ISpeechObjectToken* This,LONG hWnd,BSTR Title,const BSTR TypeOfUI,const VARIANT *ExtraData,IUnknown *Object) {
  10284. return This->lpVtbl->DisplayUI(This,hWnd,Title,TypeOfUI,ExtraData,Object);
  10285. }
  10286. static FORCEINLINE HRESULT ISpeechObjectToken_MatchesAttributes(ISpeechObjectToken* This,BSTR Attributes,VARIANT_BOOL *Matches) {
  10287. return This->lpVtbl->MatchesAttributes(This,Attributes,Matches);
  10288. }
  10289. #endif
  10290. #endif
  10291. #endif
  10292. #endif /* __ISpeechObjectToken_INTERFACE_DEFINED__ */
  10293. /*****************************************************************************
  10294. * ISpeechObjectTokens interface
  10295. */
  10296. #ifndef __ISpeechObjectTokens_INTERFACE_DEFINED__
  10297. #define __ISpeechObjectTokens_INTERFACE_DEFINED__
  10298. DEFINE_GUID(IID_ISpeechObjectTokens, 0x9285b776, 0x2e7b, 0x4bc0, 0xb5,0x3e, 0x58,0x0e,0xb6,0xfa,0x96,0x7f);
  10299. #if defined(__cplusplus) && !defined(CINTERFACE)
  10300. MIDL_INTERFACE("9285b776-2e7b-4bc0-b53e-580eb6fa967f")
  10301. ISpeechObjectTokens : public IDispatch
  10302. {
  10303. virtual HRESULT STDMETHODCALLTYPE get_Count(
  10304. LONG *Count) = 0;
  10305. virtual HRESULT STDMETHODCALLTYPE Item(
  10306. LONG Index,
  10307. ISpeechObjectToken **Token) = 0;
  10308. virtual HRESULT STDMETHODCALLTYPE get__NewEnum(
  10309. IUnknown **ppEnumVARIANT) = 0;
  10310. };
  10311. #ifdef __CRT_UUID_DECL
  10312. __CRT_UUID_DECL(ISpeechObjectTokens, 0x9285b776, 0x2e7b, 0x4bc0, 0xb5,0x3e, 0x58,0x0e,0xb6,0xfa,0x96,0x7f)
  10313. #endif
  10314. #else
  10315. typedef struct ISpeechObjectTokensVtbl {
  10316. BEGIN_INTERFACE
  10317. /*** IUnknown methods ***/
  10318. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  10319. ISpeechObjectTokens *This,
  10320. REFIID riid,
  10321. void **ppvObject);
  10322. ULONG (STDMETHODCALLTYPE *AddRef)(
  10323. ISpeechObjectTokens *This);
  10324. ULONG (STDMETHODCALLTYPE *Release)(
  10325. ISpeechObjectTokens *This);
  10326. /*** IDispatch methods ***/
  10327. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  10328. ISpeechObjectTokens *This,
  10329. UINT *pctinfo);
  10330. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  10331. ISpeechObjectTokens *This,
  10332. UINT iTInfo,
  10333. LCID lcid,
  10334. ITypeInfo **ppTInfo);
  10335. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  10336. ISpeechObjectTokens *This,
  10337. REFIID riid,
  10338. LPOLESTR *rgszNames,
  10339. UINT cNames,
  10340. LCID lcid,
  10341. DISPID *rgDispId);
  10342. HRESULT (STDMETHODCALLTYPE *Invoke)(
  10343. ISpeechObjectTokens *This,
  10344. DISPID dispIdMember,
  10345. REFIID riid,
  10346. LCID lcid,
  10347. WORD wFlags,
  10348. DISPPARAMS *pDispParams,
  10349. VARIANT *pVarResult,
  10350. EXCEPINFO *pExcepInfo,
  10351. UINT *puArgErr);
  10352. /*** ISpeechObjectTokens methods ***/
  10353. HRESULT (STDMETHODCALLTYPE *get_Count)(
  10354. ISpeechObjectTokens *This,
  10355. LONG *Count);
  10356. HRESULT (STDMETHODCALLTYPE *Item)(
  10357. ISpeechObjectTokens *This,
  10358. LONG Index,
  10359. ISpeechObjectToken **Token);
  10360. HRESULT (STDMETHODCALLTYPE *get__NewEnum)(
  10361. ISpeechObjectTokens *This,
  10362. IUnknown **ppEnumVARIANT);
  10363. END_INTERFACE
  10364. } ISpeechObjectTokensVtbl;
  10365. interface ISpeechObjectTokens {
  10366. CONST_VTBL ISpeechObjectTokensVtbl* lpVtbl;
  10367. };
  10368. #ifdef COBJMACROS
  10369. #ifndef WIDL_C_INLINE_WRAPPERS
  10370. /*** IUnknown methods ***/
  10371. #define ISpeechObjectTokens_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  10372. #define ISpeechObjectTokens_AddRef(This) (This)->lpVtbl->AddRef(This)
  10373. #define ISpeechObjectTokens_Release(This) (This)->lpVtbl->Release(This)
  10374. /*** IDispatch methods ***/
  10375. #define ISpeechObjectTokens_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  10376. #define ISpeechObjectTokens_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10377. #define ISpeechObjectTokens_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10378. #define ISpeechObjectTokens_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10379. /*** ISpeechObjectTokens methods ***/
  10380. #define ISpeechObjectTokens_get_Count(This,Count) (This)->lpVtbl->get_Count(This,Count)
  10381. #define ISpeechObjectTokens_Item(This,Index,Token) (This)->lpVtbl->Item(This,Index,Token)
  10382. #define ISpeechObjectTokens_get__NewEnum(This,ppEnumVARIANT) (This)->lpVtbl->get__NewEnum(This,ppEnumVARIANT)
  10383. #else
  10384. /*** IUnknown methods ***/
  10385. static FORCEINLINE HRESULT ISpeechObjectTokens_QueryInterface(ISpeechObjectTokens* This,REFIID riid,void **ppvObject) {
  10386. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  10387. }
  10388. static FORCEINLINE ULONG ISpeechObjectTokens_AddRef(ISpeechObjectTokens* This) {
  10389. return This->lpVtbl->AddRef(This);
  10390. }
  10391. static FORCEINLINE ULONG ISpeechObjectTokens_Release(ISpeechObjectTokens* This) {
  10392. return This->lpVtbl->Release(This);
  10393. }
  10394. /*** IDispatch methods ***/
  10395. static FORCEINLINE HRESULT ISpeechObjectTokens_GetTypeInfoCount(ISpeechObjectTokens* This,UINT *pctinfo) {
  10396. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  10397. }
  10398. static FORCEINLINE HRESULT ISpeechObjectTokens_GetTypeInfo(ISpeechObjectTokens* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  10399. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  10400. }
  10401. static FORCEINLINE HRESULT ISpeechObjectTokens_GetIDsOfNames(ISpeechObjectTokens* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  10402. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  10403. }
  10404. static FORCEINLINE HRESULT ISpeechObjectTokens_Invoke(ISpeechObjectTokens* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  10405. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  10406. }
  10407. /*** ISpeechObjectTokens methods ***/
  10408. static FORCEINLINE HRESULT ISpeechObjectTokens_get_Count(ISpeechObjectTokens* This,LONG *Count) {
  10409. return This->lpVtbl->get_Count(This,Count);
  10410. }
  10411. static FORCEINLINE HRESULT ISpeechObjectTokens_Item(ISpeechObjectTokens* This,LONG Index,ISpeechObjectToken **Token) {
  10412. return This->lpVtbl->Item(This,Index,Token);
  10413. }
  10414. static FORCEINLINE HRESULT ISpeechObjectTokens_get__NewEnum(ISpeechObjectTokens* This,IUnknown **ppEnumVARIANT) {
  10415. return This->lpVtbl->get__NewEnum(This,ppEnumVARIANT);
  10416. }
  10417. #endif
  10418. #endif
  10419. #endif
  10420. #endif /* __ISpeechObjectTokens_INTERFACE_DEFINED__ */
  10421. /*****************************************************************************
  10422. * ISpeechObjectTokenCategory interface
  10423. */
  10424. #ifndef __ISpeechObjectTokenCategory_INTERFACE_DEFINED__
  10425. #define __ISpeechObjectTokenCategory_INTERFACE_DEFINED__
  10426. DEFINE_GUID(IID_ISpeechObjectTokenCategory, 0xca7eac50, 0x2d01, 0x4145, 0x86,0xd4, 0x5a,0xe7,0xd7,0x0f,0x44,0x69);
  10427. #if defined(__cplusplus) && !defined(CINTERFACE)
  10428. MIDL_INTERFACE("ca7eac50-2d01-4145-86d4-5ae7d70f4469")
  10429. ISpeechObjectTokenCategory : public IDispatch
  10430. {
  10431. virtual HRESULT STDMETHODCALLTYPE get_Id(
  10432. BSTR *Id) = 0;
  10433. virtual HRESULT STDMETHODCALLTYPE put_Default(
  10434. const BSTR TokenId) = 0;
  10435. virtual HRESULT STDMETHODCALLTYPE get_Default(
  10436. BSTR *TokenId) = 0;
  10437. virtual HRESULT STDMETHODCALLTYPE SetId(
  10438. const BSTR Id,
  10439. VARIANT_BOOL CreateIfNotExist = 0) = 0;
  10440. virtual HRESULT STDMETHODCALLTYPE GetDataKey(
  10441. SpeechDataKeyLocation Location,
  10442. ISpeechDataKey **DataKey) = 0;
  10443. virtual HRESULT STDMETHODCALLTYPE EnumerateTokens(
  10444. BSTR RequiredAttributes,
  10445. BSTR OptionalAttributes,
  10446. ISpeechObjectTokens **Tokens) = 0;
  10447. };
  10448. #ifdef __CRT_UUID_DECL
  10449. __CRT_UUID_DECL(ISpeechObjectTokenCategory, 0xca7eac50, 0x2d01, 0x4145, 0x86,0xd4, 0x5a,0xe7,0xd7,0x0f,0x44,0x69)
  10450. #endif
  10451. #else
  10452. typedef struct ISpeechObjectTokenCategoryVtbl {
  10453. BEGIN_INTERFACE
  10454. /*** IUnknown methods ***/
  10455. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  10456. ISpeechObjectTokenCategory *This,
  10457. REFIID riid,
  10458. void **ppvObject);
  10459. ULONG (STDMETHODCALLTYPE *AddRef)(
  10460. ISpeechObjectTokenCategory *This);
  10461. ULONG (STDMETHODCALLTYPE *Release)(
  10462. ISpeechObjectTokenCategory *This);
  10463. /*** IDispatch methods ***/
  10464. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  10465. ISpeechObjectTokenCategory *This,
  10466. UINT *pctinfo);
  10467. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  10468. ISpeechObjectTokenCategory *This,
  10469. UINT iTInfo,
  10470. LCID lcid,
  10471. ITypeInfo **ppTInfo);
  10472. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  10473. ISpeechObjectTokenCategory *This,
  10474. REFIID riid,
  10475. LPOLESTR *rgszNames,
  10476. UINT cNames,
  10477. LCID lcid,
  10478. DISPID *rgDispId);
  10479. HRESULT (STDMETHODCALLTYPE *Invoke)(
  10480. ISpeechObjectTokenCategory *This,
  10481. DISPID dispIdMember,
  10482. REFIID riid,
  10483. LCID lcid,
  10484. WORD wFlags,
  10485. DISPPARAMS *pDispParams,
  10486. VARIANT *pVarResult,
  10487. EXCEPINFO *pExcepInfo,
  10488. UINT *puArgErr);
  10489. /*** ISpeechObjectTokenCategory methods ***/
  10490. HRESULT (STDMETHODCALLTYPE *get_Id)(
  10491. ISpeechObjectTokenCategory *This,
  10492. BSTR *Id);
  10493. HRESULT (STDMETHODCALLTYPE *put_Default)(
  10494. ISpeechObjectTokenCategory *This,
  10495. const BSTR TokenId);
  10496. HRESULT (STDMETHODCALLTYPE *get_Default)(
  10497. ISpeechObjectTokenCategory *This,
  10498. BSTR *TokenId);
  10499. HRESULT (STDMETHODCALLTYPE *SetId)(
  10500. ISpeechObjectTokenCategory *This,
  10501. const BSTR Id,
  10502. VARIANT_BOOL CreateIfNotExist);
  10503. HRESULT (STDMETHODCALLTYPE *GetDataKey)(
  10504. ISpeechObjectTokenCategory *This,
  10505. SpeechDataKeyLocation Location,
  10506. ISpeechDataKey **DataKey);
  10507. HRESULT (STDMETHODCALLTYPE *EnumerateTokens)(
  10508. ISpeechObjectTokenCategory *This,
  10509. BSTR RequiredAttributes,
  10510. BSTR OptionalAttributes,
  10511. ISpeechObjectTokens **Tokens);
  10512. END_INTERFACE
  10513. } ISpeechObjectTokenCategoryVtbl;
  10514. interface ISpeechObjectTokenCategory {
  10515. CONST_VTBL ISpeechObjectTokenCategoryVtbl* lpVtbl;
  10516. };
  10517. #ifdef COBJMACROS
  10518. #ifndef WIDL_C_INLINE_WRAPPERS
  10519. /*** IUnknown methods ***/
  10520. #define ISpeechObjectTokenCategory_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  10521. #define ISpeechObjectTokenCategory_AddRef(This) (This)->lpVtbl->AddRef(This)
  10522. #define ISpeechObjectTokenCategory_Release(This) (This)->lpVtbl->Release(This)
  10523. /*** IDispatch methods ***/
  10524. #define ISpeechObjectTokenCategory_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  10525. #define ISpeechObjectTokenCategory_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10526. #define ISpeechObjectTokenCategory_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10527. #define ISpeechObjectTokenCategory_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10528. /*** ISpeechObjectTokenCategory methods ***/
  10529. #define ISpeechObjectTokenCategory_get_Id(This,Id) (This)->lpVtbl->get_Id(This,Id)
  10530. #define ISpeechObjectTokenCategory_put_Default(This,TokenId) (This)->lpVtbl->put_Default(This,TokenId)
  10531. #define ISpeechObjectTokenCategory_get_Default(This,TokenId) (This)->lpVtbl->get_Default(This,TokenId)
  10532. #define ISpeechObjectTokenCategory_SetId(This,Id,CreateIfNotExist) (This)->lpVtbl->SetId(This,Id,CreateIfNotExist)
  10533. #define ISpeechObjectTokenCategory_GetDataKey(This,Location,DataKey) (This)->lpVtbl->GetDataKey(This,Location,DataKey)
  10534. #define ISpeechObjectTokenCategory_EnumerateTokens(This,RequiredAttributes,OptionalAttributes,Tokens) (This)->lpVtbl->EnumerateTokens(This,RequiredAttributes,OptionalAttributes,Tokens)
  10535. #else
  10536. /*** IUnknown methods ***/
  10537. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_QueryInterface(ISpeechObjectTokenCategory* This,REFIID riid,void **ppvObject) {
  10538. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  10539. }
  10540. static FORCEINLINE ULONG ISpeechObjectTokenCategory_AddRef(ISpeechObjectTokenCategory* This) {
  10541. return This->lpVtbl->AddRef(This);
  10542. }
  10543. static FORCEINLINE ULONG ISpeechObjectTokenCategory_Release(ISpeechObjectTokenCategory* This) {
  10544. return This->lpVtbl->Release(This);
  10545. }
  10546. /*** IDispatch methods ***/
  10547. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_GetTypeInfoCount(ISpeechObjectTokenCategory* This,UINT *pctinfo) {
  10548. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  10549. }
  10550. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_GetTypeInfo(ISpeechObjectTokenCategory* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  10551. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  10552. }
  10553. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_GetIDsOfNames(ISpeechObjectTokenCategory* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  10554. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  10555. }
  10556. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_Invoke(ISpeechObjectTokenCategory* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  10557. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  10558. }
  10559. /*** ISpeechObjectTokenCategory methods ***/
  10560. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_get_Id(ISpeechObjectTokenCategory* This,BSTR *Id) {
  10561. return This->lpVtbl->get_Id(This,Id);
  10562. }
  10563. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_put_Default(ISpeechObjectTokenCategory* This,const BSTR TokenId) {
  10564. return This->lpVtbl->put_Default(This,TokenId);
  10565. }
  10566. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_get_Default(ISpeechObjectTokenCategory* This,BSTR *TokenId) {
  10567. return This->lpVtbl->get_Default(This,TokenId);
  10568. }
  10569. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_SetId(ISpeechObjectTokenCategory* This,const BSTR Id,VARIANT_BOOL CreateIfNotExist) {
  10570. return This->lpVtbl->SetId(This,Id,CreateIfNotExist);
  10571. }
  10572. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_GetDataKey(ISpeechObjectTokenCategory* This,SpeechDataKeyLocation Location,ISpeechDataKey **DataKey) {
  10573. return This->lpVtbl->GetDataKey(This,Location,DataKey);
  10574. }
  10575. static FORCEINLINE HRESULT ISpeechObjectTokenCategory_EnumerateTokens(ISpeechObjectTokenCategory* This,BSTR RequiredAttributes,BSTR OptionalAttributes,ISpeechObjectTokens **Tokens) {
  10576. return This->lpVtbl->EnumerateTokens(This,RequiredAttributes,OptionalAttributes,Tokens);
  10577. }
  10578. #endif
  10579. #endif
  10580. #endif
  10581. #endif /* __ISpeechObjectTokenCategory_INTERFACE_DEFINED__ */
  10582. typedef enum SpeechAudioFormatType {
  10583. SAFTDefault = -1,
  10584. SAFTNoAssignedFormat = 0,
  10585. SAFTText = 1,
  10586. SAFTNonStandardFormat = 2,
  10587. SAFTExtendedAudioFormat = 3,
  10588. SAFT8kHz8BitMono = 4,
  10589. SAFT8kHz8BitStereo = 5,
  10590. SAFT8kHz16BitMono = 6,
  10591. SAFT8kHz16BitStereo = 7,
  10592. SAFT11kHz8BitMono = 8,
  10593. SAFT11kHz8BitStereo = 9,
  10594. SAFT11kHz16BitMono = 10,
  10595. SAFT11kHz16BitStereo = 11,
  10596. SAFT12kHz8BitMono = 12,
  10597. SAFT12kHz8BitStereo = 13,
  10598. SAFT12kHz16BitMono = 14,
  10599. SAFT12kHz16BitStereo = 15,
  10600. SAFT16kHz8BitMono = 16,
  10601. SAFT16kHz8BitStereo = 17,
  10602. SAFT16kHz16BitMono = 18,
  10603. SAFT16kHz16BitStereo = 19,
  10604. SAFT22kHz8BitMono = 20,
  10605. SAFT22kHz8BitStereo = 21,
  10606. SAFT22kHz16BitMono = 22,
  10607. SAFT22kHz16BitStereo = 23,
  10608. SAFT24kHz8BitMono = 24,
  10609. SAFT24kHz8BitStereo = 25,
  10610. SAFT24kHz16BitMono = 26,
  10611. SAFT24kHz16BitStereo = 27,
  10612. SAFT32kHz8BitMono = 28,
  10613. SAFT32kHz8BitStereo = 29,
  10614. SAFT32kHz16BitMono = 30,
  10615. SAFT32kHz16BitStereo = 31,
  10616. SAFT44kHz8BitMono = 32,
  10617. SAFT44kHz8BitStereo = 33,
  10618. SAFT44kHz16BitMono = 34,
  10619. SAFT44kHz16BitStereo = 35,
  10620. SAFT48kHz8BitMono = 36,
  10621. SAFT48kHz8BitStereo = 37,
  10622. SAFT48kHz16BitMono = 38,
  10623. SAFT48kHz16BitStereo = 39,
  10624. SAFTTrueSpeech_8kHz1BitMono = 40,
  10625. SAFTCCITT_ALaw_8kHzMono = 41,
  10626. SAFTCCITT_ALaw_8kHzStereo = 42,
  10627. SAFTCCITT_ALaw_11kHzMono = 43,
  10628. SAFTCCITT_ALaw_11kHzStereo = 44,
  10629. SAFTCCITT_ALaw_22kHzMono = 45,
  10630. SAFTCCITT_ALaw_22kHzStereo = 46,
  10631. SAFTCCITT_ALaw_44kHzMono = 47,
  10632. SAFTCCITT_ALaw_44kHzStereo = 48,
  10633. SAFTCCITT_uLaw_8kHzMono = 49,
  10634. SAFTCCITT_uLaw_8kHzStereo = 50,
  10635. SAFTCCITT_uLaw_11kHzMono = 51,
  10636. SAFTCCITT_uLaw_11kHzStereo = 52,
  10637. SAFTCCITT_uLaw_22kHzMono = 53,
  10638. SAFTCCITT_uLaw_22kHzStereo = 54,
  10639. SAFTCCITT_uLaw_44kHzMono = 55,
  10640. SAFTCCITT_uLaw_44kHzStereo = 56,
  10641. SAFTADPCM_8kHzMono = 57,
  10642. SAFTADPCM_8kHzStereo = 58,
  10643. SAFTADPCM_11kHzMono = 59,
  10644. SAFTADPCM_11kHzStereo = 60,
  10645. SAFTADPCM_22kHzMono = 61,
  10646. SAFTADPCM_22kHzStereo = 62,
  10647. SAFTADPCM_44kHzMono = 63,
  10648. SAFTADPCM_44kHzStereo = 64,
  10649. SAFTGSM610_8kHzMono = 65,
  10650. SAFTGSM610_11kHzMono = 66,
  10651. SAFTGSM610_22kHzMono = 67,
  10652. SAFTGSM610_44kHzMono = 68
  10653. } SpeechAudioFormatType;
  10654. typedef enum DISPID_SpeechAudioFormat {
  10655. DISPID_SAFType = 1,
  10656. DISPID_SAFGuid = 2,
  10657. DISPID_SAFGetWaveFormatEx = 3,
  10658. DISPID_SAFSetWaveFormatEx = 4
  10659. } DISPID_SpeechAudioFormat;
  10660. typedef enum DISPID_SpeechBaseStream {
  10661. DISPID_SBSFormat = 1,
  10662. DISPID_SBSRead = 2,
  10663. DISPID_SBSWrite = 3,
  10664. DISPID_SBSSeek = 4
  10665. } DISPID_SpeechBaseStream;
  10666. typedef enum SpeechStreamSeekPositionType {
  10667. SSSPTRelativeToStart = STREAM_SEEK_SET,
  10668. SSSPTRelativeToCurrentPosition = STREAM_SEEK_CUR,
  10669. SSSPTRelativeToEnd = STREAM_SEEK_END
  10670. } SpeechStreamSeekPositionType;
  10671. typedef enum DISPID_SpeechAudio {
  10672. DISPID_SAStatus = 200,
  10673. DISPID_SABufferInfo = 201,
  10674. DISPID_SADefaultFormat = 202,
  10675. DISPID_SAVolume = 203,
  10676. DISPID_SABufferNotifySize = 204,
  10677. DISPID_SAEventHandle = 205,
  10678. DISPID_SASetState = 206
  10679. } DISPID_SpeechAudio;
  10680. typedef enum SpeechAudioState {
  10681. SASClosed = SPAS_CLOSED,
  10682. SASStop = SPAS_STOP,
  10683. SASPause = SPAS_PAUSE,
  10684. SASRun = SPAS_RUN
  10685. } SpeechAudioState;
  10686. typedef enum DISPID_SpeechMMSysAudio {
  10687. DISPID_SMSADeviceId = 300,
  10688. DISPID_SMSALineId = 301,
  10689. DISPID_SMSAMMHandle = 302
  10690. } DISPID_SpeechMMSysAudio;
  10691. typedef enum DISPID_SpeechFileStream {
  10692. DISPID_SFSOpen = 100,
  10693. DISPID_SFSClose = 101
  10694. } DISPID_SpeechFileStream;
  10695. typedef enum SpeechStreamFileMode {
  10696. SSFMOpenForRead = SPFM_OPEN_READONLY,
  10697. SSFMOpenReadWrite = SPFM_OPEN_READWRITE,
  10698. SSFMCreate = SPFM_CREATE,
  10699. SSFMCreateForWrite = SPFM_CREATE_ALWAYS
  10700. } SpeechStreamFileMode;
  10701. typedef enum DISPID_SpeechCustomStream {
  10702. DISPID_SCSBaseStream = 100
  10703. } DISPID_SpeechCustomStream;
  10704. typedef enum DISPID_SpeechMemoryStream {
  10705. DISPID_SMSSetData = 100,
  10706. DISPID_SMSGetData = 101
  10707. } DISPID_SpeechMemoryStream;
  10708. typedef enum DISPID_SpeechAudioStatus {
  10709. DISPID_SASFreeBufferSpace = 1,
  10710. DISPID_SASNonBlockingIO = 2,
  10711. DISPID_SASState = 3,
  10712. DISPID_SASCurrentSeekPosition = 4,
  10713. DISPID_SASCurrentDevicePosition = 5
  10714. } DISPID_SpeechAudioStatus;
  10715. typedef enum DISPID_SpeechAudioBufferInfo {
  10716. DISPID_SABIMinNotification = 1,
  10717. DISPID_SABIBufferSize = 2,
  10718. DISPID_SABIEventBias = 3
  10719. } DISPID_SpeechAudioBufferInfo;
  10720. typedef enum DISPID_SpeechWaveFormatEx {
  10721. DISPID_SWFEFormatTag = 1,
  10722. DISPID_SWFEChannels = 2,
  10723. DISPID_SWFESamplesPerSec = 3,
  10724. DISPID_SWFEAvgBytesPerSec = 4,
  10725. DISPID_SWFEBlockAlign = 5,
  10726. DISPID_SWFEBitsPerSample = 6,
  10727. DISPID_SWFEExtraData = 7
  10728. } DISPID_SpeechWaveFormatEx;
  10729. typedef enum DISPID_SpeechVoice {
  10730. DISPID_SVStatus = 1,
  10731. DISPID_SVVoice = 2,
  10732. DISPID_SVAudioOutput = 3,
  10733. DISPID_SVAudioOutputStream = 4,
  10734. DISPID_SVRate = 5,
  10735. DISPID_SVVolume = 6,
  10736. DISPID_SVAllowAudioOuputFormatChangesOnNextSet = 7,
  10737. DISPID_SVEventInterests = 8,
  10738. DISPID_SVPriority = 9,
  10739. DISPID_SVAlertBoundary = 10,
  10740. DISPID_SVSyncronousSpeakTimeout = 11,
  10741. DISPID_SVSpeak = 12,
  10742. DISPID_SVSpeakStream = 13,
  10743. DISPID_SVPause = 14,
  10744. DISPID_SVResume = 15,
  10745. DISPID_SVSkip = 16,
  10746. DISPID_SVGetVoices = 17,
  10747. DISPID_SVGetAudioOutputs = 18,
  10748. DISPID_SVWaitUntilDone = 19,
  10749. DISPID_SVSpeakCompleteEvent = 20,
  10750. DISPID_SVIsUISupported = 21,
  10751. DISPID_SVDisplayUI = 22
  10752. } DISPID_SpeechVoice;
  10753. typedef enum SpeechVoicePriority {
  10754. SVPNormal = SPVPRI_NORMAL,
  10755. SVPAlert = SPVPRI_ALERT,
  10756. SVPOver = SPVPRI_OVER
  10757. } SpeechVoicePriority;
  10758. typedef enum SpeechVoiceSpeakFlags {
  10759. SVSFDefault = SPF_DEFAULT,
  10760. SVSFlagsAsync = SPF_ASYNC,
  10761. SVSFPurgeBeforeSpeak = SPF_PURGEBEFORESPEAK,
  10762. SVSFIsFilename = SPF_IS_FILENAME,
  10763. SVSFIsXML = SPF_IS_XML,
  10764. SVSFIsNotXML = SPF_IS_NOT_XML,
  10765. SVSFPersistXML = SPF_PERSIST_XML,
  10766. SVSFNLPSpeakPunc = SPF_NLP_SPEAK_PUNC,
  10767. SVSFParseSapi = SPF_PARSE_SAPI,
  10768. SVSFParseSsml = SPF_PARSE_SSML,
  10769. SVSFParseAutodetect = SPF_PARSE_AUTODETECT,
  10770. SVSFNLPMask = SPF_NLP_MASK,
  10771. SVSFParseMask = SPF_PARSE_MASK,
  10772. SVSFVoiceMask = SPF_VOICE_MASK,
  10773. SVSFUnusedFlags = SPF_UNUSED_FLAGS
  10774. } SpeechVoiceSpeakFlags;
  10775. typedef enum SpeechVoiceEvents {
  10776. SVEStartInputStream = 0x2,
  10777. SVEEndInputStream = 0x4,
  10778. SVEVoiceChange = 0x8,
  10779. SVEBookmark = 0x10,
  10780. SVEWordBoundary = 0x20,
  10781. SVEPhoneme = 0x40,
  10782. SVESentenceBoundary = 0x80,
  10783. SVEViseme = 0x100,
  10784. SVEAudioLevel = 0x200,
  10785. SVEPrivate = 0x8000,
  10786. SVEAllEvents = 0x83fe
  10787. } SpeechVoiceEvents;
  10788. typedef enum DISPID_SpeechVoiceStatus {
  10789. DISPID_SVSCurrentStreamNumber = 1,
  10790. DISPID_SVSLastStreamNumberQueued = 2,
  10791. DISPID_SVSLastResult = 3,
  10792. DISPID_SVSRunningState = 4,
  10793. DISPID_SVSInputWordPosition = 5,
  10794. DISPID_SVSInputWordLength = 6,
  10795. DISPID_SVSInputSentencePosition = 7,
  10796. DISPID_SVSInputSentenceLength = 8,
  10797. DISPID_SVSLastBookmark = 9,
  10798. DISPID_SVSLastBookmarkId = 10,
  10799. DISPID_SVSPhonemeId = 11,
  10800. DISPID_SVSVisemeId = 12
  10801. } DISPID_SpeechVoiceStatus;
  10802. typedef enum SpeechRunState {
  10803. SRSEDone = SPRS_DONE,
  10804. SRSEIsSpeaking = SPRS_IS_SPEAKING
  10805. } SpeechRunState;
  10806. /*****************************************************************************
  10807. * ISpeechAudioFormat interface
  10808. */
  10809. #ifndef __ISpeechAudioFormat_INTERFACE_DEFINED__
  10810. #define __ISpeechAudioFormat_INTERFACE_DEFINED__
  10811. DEFINE_GUID(IID_ISpeechAudioFormat, 0xe6e9c590, 0x3e18, 0x40e3, 0x82,0x99, 0x06,0x1f,0x98,0xbd,0xe7,0xc7);
  10812. #if defined(__cplusplus) && !defined(CINTERFACE)
  10813. MIDL_INTERFACE("e6e9c590-3e18-40e3-8299-061f98bde7c7")
  10814. ISpeechAudioFormat : public IDispatch
  10815. {
  10816. virtual HRESULT STDMETHODCALLTYPE get_Type(
  10817. SpeechAudioFormatType *AudioFormat) = 0;
  10818. virtual HRESULT STDMETHODCALLTYPE put_Type(
  10819. SpeechAudioFormatType AudioFormat) = 0;
  10820. virtual HRESULT STDMETHODCALLTYPE get_Guid(
  10821. BSTR *Guid) = 0;
  10822. virtual HRESULT STDMETHODCALLTYPE put_Guid(
  10823. BSTR Guid) = 0;
  10824. virtual HRESULT STDMETHODCALLTYPE GetWaveFormatEx(
  10825. ISpeechWaveFormatEx **SpeechWaveFormatEx) = 0;
  10826. virtual HRESULT STDMETHODCALLTYPE SetWaveFormatEx(
  10827. ISpeechWaveFormatEx *SpeechWaveFormatEx) = 0;
  10828. };
  10829. #ifdef __CRT_UUID_DECL
  10830. __CRT_UUID_DECL(ISpeechAudioFormat, 0xe6e9c590, 0x3e18, 0x40e3, 0x82,0x99, 0x06,0x1f,0x98,0xbd,0xe7,0xc7)
  10831. #endif
  10832. #else
  10833. typedef struct ISpeechAudioFormatVtbl {
  10834. BEGIN_INTERFACE
  10835. /*** IUnknown methods ***/
  10836. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  10837. ISpeechAudioFormat *This,
  10838. REFIID riid,
  10839. void **ppvObject);
  10840. ULONG (STDMETHODCALLTYPE *AddRef)(
  10841. ISpeechAudioFormat *This);
  10842. ULONG (STDMETHODCALLTYPE *Release)(
  10843. ISpeechAudioFormat *This);
  10844. /*** IDispatch methods ***/
  10845. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  10846. ISpeechAudioFormat *This,
  10847. UINT *pctinfo);
  10848. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  10849. ISpeechAudioFormat *This,
  10850. UINT iTInfo,
  10851. LCID lcid,
  10852. ITypeInfo **ppTInfo);
  10853. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  10854. ISpeechAudioFormat *This,
  10855. REFIID riid,
  10856. LPOLESTR *rgszNames,
  10857. UINT cNames,
  10858. LCID lcid,
  10859. DISPID *rgDispId);
  10860. HRESULT (STDMETHODCALLTYPE *Invoke)(
  10861. ISpeechAudioFormat *This,
  10862. DISPID dispIdMember,
  10863. REFIID riid,
  10864. LCID lcid,
  10865. WORD wFlags,
  10866. DISPPARAMS *pDispParams,
  10867. VARIANT *pVarResult,
  10868. EXCEPINFO *pExcepInfo,
  10869. UINT *puArgErr);
  10870. /*** ISpeechAudioFormat methods ***/
  10871. HRESULT (STDMETHODCALLTYPE *get_Type)(
  10872. ISpeechAudioFormat *This,
  10873. SpeechAudioFormatType *AudioFormat);
  10874. HRESULT (STDMETHODCALLTYPE *put_Type)(
  10875. ISpeechAudioFormat *This,
  10876. SpeechAudioFormatType AudioFormat);
  10877. HRESULT (STDMETHODCALLTYPE *get_Guid)(
  10878. ISpeechAudioFormat *This,
  10879. BSTR *Guid);
  10880. HRESULT (STDMETHODCALLTYPE *put_Guid)(
  10881. ISpeechAudioFormat *This,
  10882. BSTR Guid);
  10883. HRESULT (STDMETHODCALLTYPE *GetWaveFormatEx)(
  10884. ISpeechAudioFormat *This,
  10885. ISpeechWaveFormatEx **SpeechWaveFormatEx);
  10886. HRESULT (STDMETHODCALLTYPE *SetWaveFormatEx)(
  10887. ISpeechAudioFormat *This,
  10888. ISpeechWaveFormatEx *SpeechWaveFormatEx);
  10889. END_INTERFACE
  10890. } ISpeechAudioFormatVtbl;
  10891. interface ISpeechAudioFormat {
  10892. CONST_VTBL ISpeechAudioFormatVtbl* lpVtbl;
  10893. };
  10894. #ifdef COBJMACROS
  10895. #ifndef WIDL_C_INLINE_WRAPPERS
  10896. /*** IUnknown methods ***/
  10897. #define ISpeechAudioFormat_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  10898. #define ISpeechAudioFormat_AddRef(This) (This)->lpVtbl->AddRef(This)
  10899. #define ISpeechAudioFormat_Release(This) (This)->lpVtbl->Release(This)
  10900. /*** IDispatch methods ***/
  10901. #define ISpeechAudioFormat_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  10902. #define ISpeechAudioFormat_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  10903. #define ISpeechAudioFormat_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  10904. #define ISpeechAudioFormat_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  10905. /*** ISpeechAudioFormat methods ***/
  10906. #define ISpeechAudioFormat_get_Type(This,AudioFormat) (This)->lpVtbl->get_Type(This,AudioFormat)
  10907. #define ISpeechAudioFormat_put_Type(This,AudioFormat) (This)->lpVtbl->put_Type(This,AudioFormat)
  10908. #define ISpeechAudioFormat_get_Guid(This,Guid) (This)->lpVtbl->get_Guid(This,Guid)
  10909. #define ISpeechAudioFormat_put_Guid(This,Guid) (This)->lpVtbl->put_Guid(This,Guid)
  10910. #define ISpeechAudioFormat_GetWaveFormatEx(This,SpeechWaveFormatEx) (This)->lpVtbl->GetWaveFormatEx(This,SpeechWaveFormatEx)
  10911. #define ISpeechAudioFormat_SetWaveFormatEx(This,SpeechWaveFormatEx) (This)->lpVtbl->SetWaveFormatEx(This,SpeechWaveFormatEx)
  10912. #else
  10913. /*** IUnknown methods ***/
  10914. static FORCEINLINE HRESULT ISpeechAudioFormat_QueryInterface(ISpeechAudioFormat* This,REFIID riid,void **ppvObject) {
  10915. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  10916. }
  10917. static FORCEINLINE ULONG ISpeechAudioFormat_AddRef(ISpeechAudioFormat* This) {
  10918. return This->lpVtbl->AddRef(This);
  10919. }
  10920. static FORCEINLINE ULONG ISpeechAudioFormat_Release(ISpeechAudioFormat* This) {
  10921. return This->lpVtbl->Release(This);
  10922. }
  10923. /*** IDispatch methods ***/
  10924. static FORCEINLINE HRESULT ISpeechAudioFormat_GetTypeInfoCount(ISpeechAudioFormat* This,UINT *pctinfo) {
  10925. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  10926. }
  10927. static FORCEINLINE HRESULT ISpeechAudioFormat_GetTypeInfo(ISpeechAudioFormat* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  10928. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  10929. }
  10930. static FORCEINLINE HRESULT ISpeechAudioFormat_GetIDsOfNames(ISpeechAudioFormat* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  10931. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  10932. }
  10933. static FORCEINLINE HRESULT ISpeechAudioFormat_Invoke(ISpeechAudioFormat* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  10934. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  10935. }
  10936. /*** ISpeechAudioFormat methods ***/
  10937. static FORCEINLINE HRESULT ISpeechAudioFormat_get_Type(ISpeechAudioFormat* This,SpeechAudioFormatType *AudioFormat) {
  10938. return This->lpVtbl->get_Type(This,AudioFormat);
  10939. }
  10940. static FORCEINLINE HRESULT ISpeechAudioFormat_put_Type(ISpeechAudioFormat* This,SpeechAudioFormatType AudioFormat) {
  10941. return This->lpVtbl->put_Type(This,AudioFormat);
  10942. }
  10943. static FORCEINLINE HRESULT ISpeechAudioFormat_get_Guid(ISpeechAudioFormat* This,BSTR *Guid) {
  10944. return This->lpVtbl->get_Guid(This,Guid);
  10945. }
  10946. static FORCEINLINE HRESULT ISpeechAudioFormat_put_Guid(ISpeechAudioFormat* This,BSTR Guid) {
  10947. return This->lpVtbl->put_Guid(This,Guid);
  10948. }
  10949. static FORCEINLINE HRESULT ISpeechAudioFormat_GetWaveFormatEx(ISpeechAudioFormat* This,ISpeechWaveFormatEx **SpeechWaveFormatEx) {
  10950. return This->lpVtbl->GetWaveFormatEx(This,SpeechWaveFormatEx);
  10951. }
  10952. static FORCEINLINE HRESULT ISpeechAudioFormat_SetWaveFormatEx(ISpeechAudioFormat* This,ISpeechWaveFormatEx *SpeechWaveFormatEx) {
  10953. return This->lpVtbl->SetWaveFormatEx(This,SpeechWaveFormatEx);
  10954. }
  10955. #endif
  10956. #endif
  10957. #endif
  10958. #endif /* __ISpeechAudioFormat_INTERFACE_DEFINED__ */
  10959. /*****************************************************************************
  10960. * ISpeechBaseStream interface
  10961. */
  10962. #ifndef __ISpeechBaseStream_INTERFACE_DEFINED__
  10963. #define __ISpeechBaseStream_INTERFACE_DEFINED__
  10964. DEFINE_GUID(IID_ISpeechBaseStream, 0x6450336f, 0x7d49, 0x4ced, 0x80,0x97, 0x49,0xd6,0xde,0xe3,0x72,0x94);
  10965. #if defined(__cplusplus) && !defined(CINTERFACE)
  10966. MIDL_INTERFACE("6450336f-7d49-4ced-8097-49d6dee37294")
  10967. ISpeechBaseStream : public IDispatch
  10968. {
  10969. virtual HRESULT STDMETHODCALLTYPE get_Format(
  10970. ISpeechAudioFormat **AudioFormat) = 0;
  10971. virtual HRESULT STDMETHODCALLTYPE putref_Format(
  10972. ISpeechAudioFormat *AudioFormat) = 0;
  10973. virtual HRESULT STDMETHODCALLTYPE Read(
  10974. VARIANT *Buffer,
  10975. LONG NumberOfBytes,
  10976. LONG *BytesRead) = 0;
  10977. virtual HRESULT STDMETHODCALLTYPE Write(
  10978. VARIANT Buffer,
  10979. LONG *BytesWritten) = 0;
  10980. virtual HRESULT STDMETHODCALLTYPE Seek(
  10981. VARIANT Position,
  10982. SpeechStreamSeekPositionType Origin,
  10983. VARIANT *NewPosition) = 0;
  10984. };
  10985. #ifdef __CRT_UUID_DECL
  10986. __CRT_UUID_DECL(ISpeechBaseStream, 0x6450336f, 0x7d49, 0x4ced, 0x80,0x97, 0x49,0xd6,0xde,0xe3,0x72,0x94)
  10987. #endif
  10988. #else
  10989. typedef struct ISpeechBaseStreamVtbl {
  10990. BEGIN_INTERFACE
  10991. /*** IUnknown methods ***/
  10992. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  10993. ISpeechBaseStream *This,
  10994. REFIID riid,
  10995. void **ppvObject);
  10996. ULONG (STDMETHODCALLTYPE *AddRef)(
  10997. ISpeechBaseStream *This);
  10998. ULONG (STDMETHODCALLTYPE *Release)(
  10999. ISpeechBaseStream *This);
  11000. /*** IDispatch methods ***/
  11001. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  11002. ISpeechBaseStream *This,
  11003. UINT *pctinfo);
  11004. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  11005. ISpeechBaseStream *This,
  11006. UINT iTInfo,
  11007. LCID lcid,
  11008. ITypeInfo **ppTInfo);
  11009. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  11010. ISpeechBaseStream *This,
  11011. REFIID riid,
  11012. LPOLESTR *rgszNames,
  11013. UINT cNames,
  11014. LCID lcid,
  11015. DISPID *rgDispId);
  11016. HRESULT (STDMETHODCALLTYPE *Invoke)(
  11017. ISpeechBaseStream *This,
  11018. DISPID dispIdMember,
  11019. REFIID riid,
  11020. LCID lcid,
  11021. WORD wFlags,
  11022. DISPPARAMS *pDispParams,
  11023. VARIANT *pVarResult,
  11024. EXCEPINFO *pExcepInfo,
  11025. UINT *puArgErr);
  11026. /*** ISpeechBaseStream methods ***/
  11027. HRESULT (STDMETHODCALLTYPE *get_Format)(
  11028. ISpeechBaseStream *This,
  11029. ISpeechAudioFormat **AudioFormat);
  11030. HRESULT (STDMETHODCALLTYPE *putref_Format)(
  11031. ISpeechBaseStream *This,
  11032. ISpeechAudioFormat *AudioFormat);
  11033. HRESULT (STDMETHODCALLTYPE *Read)(
  11034. ISpeechBaseStream *This,
  11035. VARIANT *Buffer,
  11036. LONG NumberOfBytes,
  11037. LONG *BytesRead);
  11038. HRESULT (STDMETHODCALLTYPE *Write)(
  11039. ISpeechBaseStream *This,
  11040. VARIANT Buffer,
  11041. LONG *BytesWritten);
  11042. HRESULT (STDMETHODCALLTYPE *Seek)(
  11043. ISpeechBaseStream *This,
  11044. VARIANT Position,
  11045. SpeechStreamSeekPositionType Origin,
  11046. VARIANT *NewPosition);
  11047. END_INTERFACE
  11048. } ISpeechBaseStreamVtbl;
  11049. interface ISpeechBaseStream {
  11050. CONST_VTBL ISpeechBaseStreamVtbl* lpVtbl;
  11051. };
  11052. #ifdef COBJMACROS
  11053. #ifndef WIDL_C_INLINE_WRAPPERS
  11054. /*** IUnknown methods ***/
  11055. #define ISpeechBaseStream_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  11056. #define ISpeechBaseStream_AddRef(This) (This)->lpVtbl->AddRef(This)
  11057. #define ISpeechBaseStream_Release(This) (This)->lpVtbl->Release(This)
  11058. /*** IDispatch methods ***/
  11059. #define ISpeechBaseStream_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  11060. #define ISpeechBaseStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11061. #define ISpeechBaseStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11062. #define ISpeechBaseStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11063. /*** ISpeechBaseStream methods ***/
  11064. #define ISpeechBaseStream_get_Format(This,AudioFormat) (This)->lpVtbl->get_Format(This,AudioFormat)
  11065. #define ISpeechBaseStream_putref_Format(This,AudioFormat) (This)->lpVtbl->putref_Format(This,AudioFormat)
  11066. #define ISpeechBaseStream_Read(This,Buffer,NumberOfBytes,BytesRead) (This)->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead)
  11067. #define ISpeechBaseStream_Write(This,Buffer,BytesWritten) (This)->lpVtbl->Write(This,Buffer,BytesWritten)
  11068. #define ISpeechBaseStream_Seek(This,Position,Origin,NewPosition) (This)->lpVtbl->Seek(This,Position,Origin,NewPosition)
  11069. #else
  11070. /*** IUnknown methods ***/
  11071. static FORCEINLINE HRESULT ISpeechBaseStream_QueryInterface(ISpeechBaseStream* This,REFIID riid,void **ppvObject) {
  11072. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  11073. }
  11074. static FORCEINLINE ULONG ISpeechBaseStream_AddRef(ISpeechBaseStream* This) {
  11075. return This->lpVtbl->AddRef(This);
  11076. }
  11077. static FORCEINLINE ULONG ISpeechBaseStream_Release(ISpeechBaseStream* This) {
  11078. return This->lpVtbl->Release(This);
  11079. }
  11080. /*** IDispatch methods ***/
  11081. static FORCEINLINE HRESULT ISpeechBaseStream_GetTypeInfoCount(ISpeechBaseStream* This,UINT *pctinfo) {
  11082. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  11083. }
  11084. static FORCEINLINE HRESULT ISpeechBaseStream_GetTypeInfo(ISpeechBaseStream* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  11085. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  11086. }
  11087. static FORCEINLINE HRESULT ISpeechBaseStream_GetIDsOfNames(ISpeechBaseStream* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  11088. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  11089. }
  11090. static FORCEINLINE HRESULT ISpeechBaseStream_Invoke(ISpeechBaseStream* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  11091. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  11092. }
  11093. /*** ISpeechBaseStream methods ***/
  11094. static FORCEINLINE HRESULT ISpeechBaseStream_get_Format(ISpeechBaseStream* This,ISpeechAudioFormat **AudioFormat) {
  11095. return This->lpVtbl->get_Format(This,AudioFormat);
  11096. }
  11097. static FORCEINLINE HRESULT ISpeechBaseStream_putref_Format(ISpeechBaseStream* This,ISpeechAudioFormat *AudioFormat) {
  11098. return This->lpVtbl->putref_Format(This,AudioFormat);
  11099. }
  11100. static FORCEINLINE HRESULT ISpeechBaseStream_Read(ISpeechBaseStream* This,VARIANT *Buffer,LONG NumberOfBytes,LONG *BytesRead) {
  11101. return This->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead);
  11102. }
  11103. static FORCEINLINE HRESULT ISpeechBaseStream_Write(ISpeechBaseStream* This,VARIANT Buffer,LONG *BytesWritten) {
  11104. return This->lpVtbl->Write(This,Buffer,BytesWritten);
  11105. }
  11106. static FORCEINLINE HRESULT ISpeechBaseStream_Seek(ISpeechBaseStream* This,VARIANT Position,SpeechStreamSeekPositionType Origin,VARIANT *NewPosition) {
  11107. return This->lpVtbl->Seek(This,Position,Origin,NewPosition);
  11108. }
  11109. #endif
  11110. #endif
  11111. #endif
  11112. #endif /* __ISpeechBaseStream_INTERFACE_DEFINED__ */
  11113. /*****************************************************************************
  11114. * ISpeechAudio interface
  11115. */
  11116. #ifndef __ISpeechAudio_INTERFACE_DEFINED__
  11117. #define __ISpeechAudio_INTERFACE_DEFINED__
  11118. DEFINE_GUID(IID_ISpeechAudio, 0xcff8e175, 0x019e, 0x11d3, 0xa0,0x8e, 0x00,0xc0,0x4f,0x8e,0xf9,0xb5);
  11119. #if defined(__cplusplus) && !defined(CINTERFACE)
  11120. MIDL_INTERFACE("cff8e175-019e-11d3-a08e-00c04f8ef9b5")
  11121. ISpeechAudio : public ISpeechBaseStream
  11122. {
  11123. virtual HRESULT STDMETHODCALLTYPE get_Status(
  11124. ISpeechAudioStatus **Status) = 0;
  11125. virtual HRESULT STDMETHODCALLTYPE get_BufferInfo(
  11126. ISpeechAudioBufferInfo **BufferInfo) = 0;
  11127. virtual HRESULT STDMETHODCALLTYPE get_DefaultFormat(
  11128. ISpeechAudioFormat **StreamFormat) = 0;
  11129. virtual HRESULT STDMETHODCALLTYPE get_Volume(
  11130. LONG *Volume) = 0;
  11131. virtual HRESULT STDMETHODCALLTYPE put_Volume(
  11132. LONG Volume) = 0;
  11133. virtual HRESULT STDMETHODCALLTYPE get_BufferNotifySize(
  11134. LONG *BufferNotifySize) = 0;
  11135. virtual HRESULT STDMETHODCALLTYPE put_BufferNotifySize(
  11136. LONG BufferNotifySize) = 0;
  11137. virtual HRESULT STDMETHODCALLTYPE get_EventHandle(
  11138. LONG *EventHandle) = 0;
  11139. virtual HRESULT STDMETHODCALLTYPE SetState(
  11140. SpeechAudioState State) = 0;
  11141. };
  11142. #ifdef __CRT_UUID_DECL
  11143. __CRT_UUID_DECL(ISpeechAudio, 0xcff8e175, 0x019e, 0x11d3, 0xa0,0x8e, 0x00,0xc0,0x4f,0x8e,0xf9,0xb5)
  11144. #endif
  11145. #else
  11146. typedef struct ISpeechAudioVtbl {
  11147. BEGIN_INTERFACE
  11148. /*** IUnknown methods ***/
  11149. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  11150. ISpeechAudio *This,
  11151. REFIID riid,
  11152. void **ppvObject);
  11153. ULONG (STDMETHODCALLTYPE *AddRef)(
  11154. ISpeechAudio *This);
  11155. ULONG (STDMETHODCALLTYPE *Release)(
  11156. ISpeechAudio *This);
  11157. /*** IDispatch methods ***/
  11158. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  11159. ISpeechAudio *This,
  11160. UINT *pctinfo);
  11161. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  11162. ISpeechAudio *This,
  11163. UINT iTInfo,
  11164. LCID lcid,
  11165. ITypeInfo **ppTInfo);
  11166. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  11167. ISpeechAudio *This,
  11168. REFIID riid,
  11169. LPOLESTR *rgszNames,
  11170. UINT cNames,
  11171. LCID lcid,
  11172. DISPID *rgDispId);
  11173. HRESULT (STDMETHODCALLTYPE *Invoke)(
  11174. ISpeechAudio *This,
  11175. DISPID dispIdMember,
  11176. REFIID riid,
  11177. LCID lcid,
  11178. WORD wFlags,
  11179. DISPPARAMS *pDispParams,
  11180. VARIANT *pVarResult,
  11181. EXCEPINFO *pExcepInfo,
  11182. UINT *puArgErr);
  11183. /*** ISpeechBaseStream methods ***/
  11184. HRESULT (STDMETHODCALLTYPE *get_Format)(
  11185. ISpeechAudio *This,
  11186. ISpeechAudioFormat **AudioFormat);
  11187. HRESULT (STDMETHODCALLTYPE *putref_Format)(
  11188. ISpeechAudio *This,
  11189. ISpeechAudioFormat *AudioFormat);
  11190. HRESULT (STDMETHODCALLTYPE *Read)(
  11191. ISpeechAudio *This,
  11192. VARIANT *Buffer,
  11193. LONG NumberOfBytes,
  11194. LONG *BytesRead);
  11195. HRESULT (STDMETHODCALLTYPE *Write)(
  11196. ISpeechAudio *This,
  11197. VARIANT Buffer,
  11198. LONG *BytesWritten);
  11199. HRESULT (STDMETHODCALLTYPE *Seek)(
  11200. ISpeechAudio *This,
  11201. VARIANT Position,
  11202. SpeechStreamSeekPositionType Origin,
  11203. VARIANT *NewPosition);
  11204. /*** ISpeechAudio methods ***/
  11205. HRESULT (STDMETHODCALLTYPE *get_Status)(
  11206. ISpeechAudio *This,
  11207. ISpeechAudioStatus **Status);
  11208. HRESULT (STDMETHODCALLTYPE *get_BufferInfo)(
  11209. ISpeechAudio *This,
  11210. ISpeechAudioBufferInfo **BufferInfo);
  11211. HRESULT (STDMETHODCALLTYPE *get_DefaultFormat)(
  11212. ISpeechAudio *This,
  11213. ISpeechAudioFormat **StreamFormat);
  11214. HRESULT (STDMETHODCALLTYPE *get_Volume)(
  11215. ISpeechAudio *This,
  11216. LONG *Volume);
  11217. HRESULT (STDMETHODCALLTYPE *put_Volume)(
  11218. ISpeechAudio *This,
  11219. LONG Volume);
  11220. HRESULT (STDMETHODCALLTYPE *get_BufferNotifySize)(
  11221. ISpeechAudio *This,
  11222. LONG *BufferNotifySize);
  11223. HRESULT (STDMETHODCALLTYPE *put_BufferNotifySize)(
  11224. ISpeechAudio *This,
  11225. LONG BufferNotifySize);
  11226. HRESULT (STDMETHODCALLTYPE *get_EventHandle)(
  11227. ISpeechAudio *This,
  11228. LONG *EventHandle);
  11229. HRESULT (STDMETHODCALLTYPE *SetState)(
  11230. ISpeechAudio *This,
  11231. SpeechAudioState State);
  11232. END_INTERFACE
  11233. } ISpeechAudioVtbl;
  11234. interface ISpeechAudio {
  11235. CONST_VTBL ISpeechAudioVtbl* lpVtbl;
  11236. };
  11237. #ifdef COBJMACROS
  11238. #ifndef WIDL_C_INLINE_WRAPPERS
  11239. /*** IUnknown methods ***/
  11240. #define ISpeechAudio_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  11241. #define ISpeechAudio_AddRef(This) (This)->lpVtbl->AddRef(This)
  11242. #define ISpeechAudio_Release(This) (This)->lpVtbl->Release(This)
  11243. /*** IDispatch methods ***/
  11244. #define ISpeechAudio_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  11245. #define ISpeechAudio_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11246. #define ISpeechAudio_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11247. #define ISpeechAudio_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11248. /*** ISpeechBaseStream methods ***/
  11249. #define ISpeechAudio_get_Format(This,AudioFormat) (This)->lpVtbl->get_Format(This,AudioFormat)
  11250. #define ISpeechAudio_putref_Format(This,AudioFormat) (This)->lpVtbl->putref_Format(This,AudioFormat)
  11251. #define ISpeechAudio_Read(This,Buffer,NumberOfBytes,BytesRead) (This)->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead)
  11252. #define ISpeechAudio_Write(This,Buffer,BytesWritten) (This)->lpVtbl->Write(This,Buffer,BytesWritten)
  11253. #define ISpeechAudio_Seek(This,Position,Origin,NewPosition) (This)->lpVtbl->Seek(This,Position,Origin,NewPosition)
  11254. /*** ISpeechAudio methods ***/
  11255. #define ISpeechAudio_get_Status(This,Status) (This)->lpVtbl->get_Status(This,Status)
  11256. #define ISpeechAudio_get_BufferInfo(This,BufferInfo) (This)->lpVtbl->get_BufferInfo(This,BufferInfo)
  11257. #define ISpeechAudio_get_DefaultFormat(This,StreamFormat) (This)->lpVtbl->get_DefaultFormat(This,StreamFormat)
  11258. #define ISpeechAudio_get_Volume(This,Volume) (This)->lpVtbl->get_Volume(This,Volume)
  11259. #define ISpeechAudio_put_Volume(This,Volume) (This)->lpVtbl->put_Volume(This,Volume)
  11260. #define ISpeechAudio_get_BufferNotifySize(This,BufferNotifySize) (This)->lpVtbl->get_BufferNotifySize(This,BufferNotifySize)
  11261. #define ISpeechAudio_put_BufferNotifySize(This,BufferNotifySize) (This)->lpVtbl->put_BufferNotifySize(This,BufferNotifySize)
  11262. #define ISpeechAudio_get_EventHandle(This,EventHandle) (This)->lpVtbl->get_EventHandle(This,EventHandle)
  11263. #define ISpeechAudio_SetState(This,State) (This)->lpVtbl->SetState(This,State)
  11264. #else
  11265. /*** IUnknown methods ***/
  11266. static FORCEINLINE HRESULT ISpeechAudio_QueryInterface(ISpeechAudio* This,REFIID riid,void **ppvObject) {
  11267. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  11268. }
  11269. static FORCEINLINE ULONG ISpeechAudio_AddRef(ISpeechAudio* This) {
  11270. return This->lpVtbl->AddRef(This);
  11271. }
  11272. static FORCEINLINE ULONG ISpeechAudio_Release(ISpeechAudio* This) {
  11273. return This->lpVtbl->Release(This);
  11274. }
  11275. /*** IDispatch methods ***/
  11276. static FORCEINLINE HRESULT ISpeechAudio_GetTypeInfoCount(ISpeechAudio* This,UINT *pctinfo) {
  11277. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  11278. }
  11279. static FORCEINLINE HRESULT ISpeechAudio_GetTypeInfo(ISpeechAudio* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  11280. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  11281. }
  11282. static FORCEINLINE HRESULT ISpeechAudio_GetIDsOfNames(ISpeechAudio* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  11283. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  11284. }
  11285. static FORCEINLINE HRESULT ISpeechAudio_Invoke(ISpeechAudio* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  11286. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  11287. }
  11288. /*** ISpeechBaseStream methods ***/
  11289. static FORCEINLINE HRESULT ISpeechAudio_get_Format(ISpeechAudio* This,ISpeechAudioFormat **AudioFormat) {
  11290. return This->lpVtbl->get_Format(This,AudioFormat);
  11291. }
  11292. static FORCEINLINE HRESULT ISpeechAudio_putref_Format(ISpeechAudio* This,ISpeechAudioFormat *AudioFormat) {
  11293. return This->lpVtbl->putref_Format(This,AudioFormat);
  11294. }
  11295. static FORCEINLINE HRESULT ISpeechAudio_Read(ISpeechAudio* This,VARIANT *Buffer,LONG NumberOfBytes,LONG *BytesRead) {
  11296. return This->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead);
  11297. }
  11298. static FORCEINLINE HRESULT ISpeechAudio_Write(ISpeechAudio* This,VARIANT Buffer,LONG *BytesWritten) {
  11299. return This->lpVtbl->Write(This,Buffer,BytesWritten);
  11300. }
  11301. static FORCEINLINE HRESULT ISpeechAudio_Seek(ISpeechAudio* This,VARIANT Position,SpeechStreamSeekPositionType Origin,VARIANT *NewPosition) {
  11302. return This->lpVtbl->Seek(This,Position,Origin,NewPosition);
  11303. }
  11304. /*** ISpeechAudio methods ***/
  11305. static FORCEINLINE HRESULT ISpeechAudio_get_Status(ISpeechAudio* This,ISpeechAudioStatus **Status) {
  11306. return This->lpVtbl->get_Status(This,Status);
  11307. }
  11308. static FORCEINLINE HRESULT ISpeechAudio_get_BufferInfo(ISpeechAudio* This,ISpeechAudioBufferInfo **BufferInfo) {
  11309. return This->lpVtbl->get_BufferInfo(This,BufferInfo);
  11310. }
  11311. static FORCEINLINE HRESULT ISpeechAudio_get_DefaultFormat(ISpeechAudio* This,ISpeechAudioFormat **StreamFormat) {
  11312. return This->lpVtbl->get_DefaultFormat(This,StreamFormat);
  11313. }
  11314. static FORCEINLINE HRESULT ISpeechAudio_get_Volume(ISpeechAudio* This,LONG *Volume) {
  11315. return This->lpVtbl->get_Volume(This,Volume);
  11316. }
  11317. static FORCEINLINE HRESULT ISpeechAudio_put_Volume(ISpeechAudio* This,LONG Volume) {
  11318. return This->lpVtbl->put_Volume(This,Volume);
  11319. }
  11320. static FORCEINLINE HRESULT ISpeechAudio_get_BufferNotifySize(ISpeechAudio* This,LONG *BufferNotifySize) {
  11321. return This->lpVtbl->get_BufferNotifySize(This,BufferNotifySize);
  11322. }
  11323. static FORCEINLINE HRESULT ISpeechAudio_put_BufferNotifySize(ISpeechAudio* This,LONG BufferNotifySize) {
  11324. return This->lpVtbl->put_BufferNotifySize(This,BufferNotifySize);
  11325. }
  11326. static FORCEINLINE HRESULT ISpeechAudio_get_EventHandle(ISpeechAudio* This,LONG *EventHandle) {
  11327. return This->lpVtbl->get_EventHandle(This,EventHandle);
  11328. }
  11329. static FORCEINLINE HRESULT ISpeechAudio_SetState(ISpeechAudio* This,SpeechAudioState State) {
  11330. return This->lpVtbl->SetState(This,State);
  11331. }
  11332. #endif
  11333. #endif
  11334. #endif
  11335. #endif /* __ISpeechAudio_INTERFACE_DEFINED__ */
  11336. /*****************************************************************************
  11337. * ISpeechMMSysAudio interface
  11338. */
  11339. #ifndef __ISpeechMMSysAudio_INTERFACE_DEFINED__
  11340. #define __ISpeechMMSysAudio_INTERFACE_DEFINED__
  11341. DEFINE_GUID(IID_ISpeechMMSysAudio, 0x3c76af6d, 0x1fd7, 0x4831, 0x81,0xd1, 0x3b,0x71,0xd5,0xa1,0x3c,0x44);
  11342. #if defined(__cplusplus) && !defined(CINTERFACE)
  11343. MIDL_INTERFACE("3c76af6d-1fd7-4831-81d1-3b71d5a13c44")
  11344. ISpeechMMSysAudio : public ISpeechAudio
  11345. {
  11346. virtual HRESULT STDMETHODCALLTYPE get_DeviceId(
  11347. LONG *DeviceId) = 0;
  11348. virtual HRESULT STDMETHODCALLTYPE put_DeviceId(
  11349. LONG DeviceId) = 0;
  11350. virtual HRESULT STDMETHODCALLTYPE get_LineId(
  11351. LONG *LineId) = 0;
  11352. virtual HRESULT STDMETHODCALLTYPE put_LineId(
  11353. LONG LineId) = 0;
  11354. virtual HRESULT STDMETHODCALLTYPE get_MMHandle(
  11355. LONG *Handle) = 0;
  11356. };
  11357. #ifdef __CRT_UUID_DECL
  11358. __CRT_UUID_DECL(ISpeechMMSysAudio, 0x3c76af6d, 0x1fd7, 0x4831, 0x81,0xd1, 0x3b,0x71,0xd5,0xa1,0x3c,0x44)
  11359. #endif
  11360. #else
  11361. typedef struct ISpeechMMSysAudioVtbl {
  11362. BEGIN_INTERFACE
  11363. /*** IUnknown methods ***/
  11364. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  11365. ISpeechMMSysAudio *This,
  11366. REFIID riid,
  11367. void **ppvObject);
  11368. ULONG (STDMETHODCALLTYPE *AddRef)(
  11369. ISpeechMMSysAudio *This);
  11370. ULONG (STDMETHODCALLTYPE *Release)(
  11371. ISpeechMMSysAudio *This);
  11372. /*** IDispatch methods ***/
  11373. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  11374. ISpeechMMSysAudio *This,
  11375. UINT *pctinfo);
  11376. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  11377. ISpeechMMSysAudio *This,
  11378. UINT iTInfo,
  11379. LCID lcid,
  11380. ITypeInfo **ppTInfo);
  11381. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  11382. ISpeechMMSysAudio *This,
  11383. REFIID riid,
  11384. LPOLESTR *rgszNames,
  11385. UINT cNames,
  11386. LCID lcid,
  11387. DISPID *rgDispId);
  11388. HRESULT (STDMETHODCALLTYPE *Invoke)(
  11389. ISpeechMMSysAudio *This,
  11390. DISPID dispIdMember,
  11391. REFIID riid,
  11392. LCID lcid,
  11393. WORD wFlags,
  11394. DISPPARAMS *pDispParams,
  11395. VARIANT *pVarResult,
  11396. EXCEPINFO *pExcepInfo,
  11397. UINT *puArgErr);
  11398. /*** ISpeechBaseStream methods ***/
  11399. HRESULT (STDMETHODCALLTYPE *get_Format)(
  11400. ISpeechMMSysAudio *This,
  11401. ISpeechAudioFormat **AudioFormat);
  11402. HRESULT (STDMETHODCALLTYPE *putref_Format)(
  11403. ISpeechMMSysAudio *This,
  11404. ISpeechAudioFormat *AudioFormat);
  11405. HRESULT (STDMETHODCALLTYPE *Read)(
  11406. ISpeechMMSysAudio *This,
  11407. VARIANT *Buffer,
  11408. LONG NumberOfBytes,
  11409. LONG *BytesRead);
  11410. HRESULT (STDMETHODCALLTYPE *Write)(
  11411. ISpeechMMSysAudio *This,
  11412. VARIANT Buffer,
  11413. LONG *BytesWritten);
  11414. HRESULT (STDMETHODCALLTYPE *Seek)(
  11415. ISpeechMMSysAudio *This,
  11416. VARIANT Position,
  11417. SpeechStreamSeekPositionType Origin,
  11418. VARIANT *NewPosition);
  11419. /*** ISpeechAudio methods ***/
  11420. HRESULT (STDMETHODCALLTYPE *get_Status)(
  11421. ISpeechMMSysAudio *This,
  11422. ISpeechAudioStatus **Status);
  11423. HRESULT (STDMETHODCALLTYPE *get_BufferInfo)(
  11424. ISpeechMMSysAudio *This,
  11425. ISpeechAudioBufferInfo **BufferInfo);
  11426. HRESULT (STDMETHODCALLTYPE *get_DefaultFormat)(
  11427. ISpeechMMSysAudio *This,
  11428. ISpeechAudioFormat **StreamFormat);
  11429. HRESULT (STDMETHODCALLTYPE *get_Volume)(
  11430. ISpeechMMSysAudio *This,
  11431. LONG *Volume);
  11432. HRESULT (STDMETHODCALLTYPE *put_Volume)(
  11433. ISpeechMMSysAudio *This,
  11434. LONG Volume);
  11435. HRESULT (STDMETHODCALLTYPE *get_BufferNotifySize)(
  11436. ISpeechMMSysAudio *This,
  11437. LONG *BufferNotifySize);
  11438. HRESULT (STDMETHODCALLTYPE *put_BufferNotifySize)(
  11439. ISpeechMMSysAudio *This,
  11440. LONG BufferNotifySize);
  11441. HRESULT (STDMETHODCALLTYPE *get_EventHandle)(
  11442. ISpeechMMSysAudio *This,
  11443. LONG *EventHandle);
  11444. HRESULT (STDMETHODCALLTYPE *SetState)(
  11445. ISpeechMMSysAudio *This,
  11446. SpeechAudioState State);
  11447. /*** ISpeechMMSysAudio methods ***/
  11448. HRESULT (STDMETHODCALLTYPE *get_DeviceId)(
  11449. ISpeechMMSysAudio *This,
  11450. LONG *DeviceId);
  11451. HRESULT (STDMETHODCALLTYPE *put_DeviceId)(
  11452. ISpeechMMSysAudio *This,
  11453. LONG DeviceId);
  11454. HRESULT (STDMETHODCALLTYPE *get_LineId)(
  11455. ISpeechMMSysAudio *This,
  11456. LONG *LineId);
  11457. HRESULT (STDMETHODCALLTYPE *put_LineId)(
  11458. ISpeechMMSysAudio *This,
  11459. LONG LineId);
  11460. HRESULT (STDMETHODCALLTYPE *get_MMHandle)(
  11461. ISpeechMMSysAudio *This,
  11462. LONG *Handle);
  11463. END_INTERFACE
  11464. } ISpeechMMSysAudioVtbl;
  11465. interface ISpeechMMSysAudio {
  11466. CONST_VTBL ISpeechMMSysAudioVtbl* lpVtbl;
  11467. };
  11468. #ifdef COBJMACROS
  11469. #ifndef WIDL_C_INLINE_WRAPPERS
  11470. /*** IUnknown methods ***/
  11471. #define ISpeechMMSysAudio_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  11472. #define ISpeechMMSysAudio_AddRef(This) (This)->lpVtbl->AddRef(This)
  11473. #define ISpeechMMSysAudio_Release(This) (This)->lpVtbl->Release(This)
  11474. /*** IDispatch methods ***/
  11475. #define ISpeechMMSysAudio_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  11476. #define ISpeechMMSysAudio_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11477. #define ISpeechMMSysAudio_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11478. #define ISpeechMMSysAudio_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11479. /*** ISpeechBaseStream methods ***/
  11480. #define ISpeechMMSysAudio_get_Format(This,AudioFormat) (This)->lpVtbl->get_Format(This,AudioFormat)
  11481. #define ISpeechMMSysAudio_putref_Format(This,AudioFormat) (This)->lpVtbl->putref_Format(This,AudioFormat)
  11482. #define ISpeechMMSysAudio_Read(This,Buffer,NumberOfBytes,BytesRead) (This)->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead)
  11483. #define ISpeechMMSysAudio_Write(This,Buffer,BytesWritten) (This)->lpVtbl->Write(This,Buffer,BytesWritten)
  11484. #define ISpeechMMSysAudio_Seek(This,Position,Origin,NewPosition) (This)->lpVtbl->Seek(This,Position,Origin,NewPosition)
  11485. /*** ISpeechAudio methods ***/
  11486. #define ISpeechMMSysAudio_get_Status(This,Status) (This)->lpVtbl->get_Status(This,Status)
  11487. #define ISpeechMMSysAudio_get_BufferInfo(This,BufferInfo) (This)->lpVtbl->get_BufferInfo(This,BufferInfo)
  11488. #define ISpeechMMSysAudio_get_DefaultFormat(This,StreamFormat) (This)->lpVtbl->get_DefaultFormat(This,StreamFormat)
  11489. #define ISpeechMMSysAudio_get_Volume(This,Volume) (This)->lpVtbl->get_Volume(This,Volume)
  11490. #define ISpeechMMSysAudio_put_Volume(This,Volume) (This)->lpVtbl->put_Volume(This,Volume)
  11491. #define ISpeechMMSysAudio_get_BufferNotifySize(This,BufferNotifySize) (This)->lpVtbl->get_BufferNotifySize(This,BufferNotifySize)
  11492. #define ISpeechMMSysAudio_put_BufferNotifySize(This,BufferNotifySize) (This)->lpVtbl->put_BufferNotifySize(This,BufferNotifySize)
  11493. #define ISpeechMMSysAudio_get_EventHandle(This,EventHandle) (This)->lpVtbl->get_EventHandle(This,EventHandle)
  11494. #define ISpeechMMSysAudio_SetState(This,State) (This)->lpVtbl->SetState(This,State)
  11495. /*** ISpeechMMSysAudio methods ***/
  11496. #define ISpeechMMSysAudio_get_DeviceId(This,DeviceId) (This)->lpVtbl->get_DeviceId(This,DeviceId)
  11497. #define ISpeechMMSysAudio_put_DeviceId(This,DeviceId) (This)->lpVtbl->put_DeviceId(This,DeviceId)
  11498. #define ISpeechMMSysAudio_get_LineId(This,LineId) (This)->lpVtbl->get_LineId(This,LineId)
  11499. #define ISpeechMMSysAudio_put_LineId(This,LineId) (This)->lpVtbl->put_LineId(This,LineId)
  11500. #define ISpeechMMSysAudio_get_MMHandle(This,Handle) (This)->lpVtbl->get_MMHandle(This,Handle)
  11501. #else
  11502. /*** IUnknown methods ***/
  11503. static FORCEINLINE HRESULT ISpeechMMSysAudio_QueryInterface(ISpeechMMSysAudio* This,REFIID riid,void **ppvObject) {
  11504. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  11505. }
  11506. static FORCEINLINE ULONG ISpeechMMSysAudio_AddRef(ISpeechMMSysAudio* This) {
  11507. return This->lpVtbl->AddRef(This);
  11508. }
  11509. static FORCEINLINE ULONG ISpeechMMSysAudio_Release(ISpeechMMSysAudio* This) {
  11510. return This->lpVtbl->Release(This);
  11511. }
  11512. /*** IDispatch methods ***/
  11513. static FORCEINLINE HRESULT ISpeechMMSysAudio_GetTypeInfoCount(ISpeechMMSysAudio* This,UINT *pctinfo) {
  11514. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  11515. }
  11516. static FORCEINLINE HRESULT ISpeechMMSysAudio_GetTypeInfo(ISpeechMMSysAudio* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  11517. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  11518. }
  11519. static FORCEINLINE HRESULT ISpeechMMSysAudio_GetIDsOfNames(ISpeechMMSysAudio* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  11520. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  11521. }
  11522. static FORCEINLINE HRESULT ISpeechMMSysAudio_Invoke(ISpeechMMSysAudio* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  11523. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  11524. }
  11525. /*** ISpeechBaseStream methods ***/
  11526. static FORCEINLINE HRESULT ISpeechMMSysAudio_get_Format(ISpeechMMSysAudio* This,ISpeechAudioFormat **AudioFormat) {
  11527. return This->lpVtbl->get_Format(This,AudioFormat);
  11528. }
  11529. static FORCEINLINE HRESULT ISpeechMMSysAudio_putref_Format(ISpeechMMSysAudio* This,ISpeechAudioFormat *AudioFormat) {
  11530. return This->lpVtbl->putref_Format(This,AudioFormat);
  11531. }
  11532. static FORCEINLINE HRESULT ISpeechMMSysAudio_Read(ISpeechMMSysAudio* This,VARIANT *Buffer,LONG NumberOfBytes,LONG *BytesRead) {
  11533. return This->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead);
  11534. }
  11535. static FORCEINLINE HRESULT ISpeechMMSysAudio_Write(ISpeechMMSysAudio* This,VARIANT Buffer,LONG *BytesWritten) {
  11536. return This->lpVtbl->Write(This,Buffer,BytesWritten);
  11537. }
  11538. static FORCEINLINE HRESULT ISpeechMMSysAudio_Seek(ISpeechMMSysAudio* This,VARIANT Position,SpeechStreamSeekPositionType Origin,VARIANT *NewPosition) {
  11539. return This->lpVtbl->Seek(This,Position,Origin,NewPosition);
  11540. }
  11541. /*** ISpeechAudio methods ***/
  11542. static FORCEINLINE HRESULT ISpeechMMSysAudio_get_Status(ISpeechMMSysAudio* This,ISpeechAudioStatus **Status) {
  11543. return This->lpVtbl->get_Status(This,Status);
  11544. }
  11545. static FORCEINLINE HRESULT ISpeechMMSysAudio_get_BufferInfo(ISpeechMMSysAudio* This,ISpeechAudioBufferInfo **BufferInfo) {
  11546. return This->lpVtbl->get_BufferInfo(This,BufferInfo);
  11547. }
  11548. static FORCEINLINE HRESULT ISpeechMMSysAudio_get_DefaultFormat(ISpeechMMSysAudio* This,ISpeechAudioFormat **StreamFormat) {
  11549. return This->lpVtbl->get_DefaultFormat(This,StreamFormat);
  11550. }
  11551. static FORCEINLINE HRESULT ISpeechMMSysAudio_get_Volume(ISpeechMMSysAudio* This,LONG *Volume) {
  11552. return This->lpVtbl->get_Volume(This,Volume);
  11553. }
  11554. static FORCEINLINE HRESULT ISpeechMMSysAudio_put_Volume(ISpeechMMSysAudio* This,LONG Volume) {
  11555. return This->lpVtbl->put_Volume(This,Volume);
  11556. }
  11557. static FORCEINLINE HRESULT ISpeechMMSysAudio_get_BufferNotifySize(ISpeechMMSysAudio* This,LONG *BufferNotifySize) {
  11558. return This->lpVtbl->get_BufferNotifySize(This,BufferNotifySize);
  11559. }
  11560. static FORCEINLINE HRESULT ISpeechMMSysAudio_put_BufferNotifySize(ISpeechMMSysAudio* This,LONG BufferNotifySize) {
  11561. return This->lpVtbl->put_BufferNotifySize(This,BufferNotifySize);
  11562. }
  11563. static FORCEINLINE HRESULT ISpeechMMSysAudio_get_EventHandle(ISpeechMMSysAudio* This,LONG *EventHandle) {
  11564. return This->lpVtbl->get_EventHandle(This,EventHandle);
  11565. }
  11566. static FORCEINLINE HRESULT ISpeechMMSysAudio_SetState(ISpeechMMSysAudio* This,SpeechAudioState State) {
  11567. return This->lpVtbl->SetState(This,State);
  11568. }
  11569. /*** ISpeechMMSysAudio methods ***/
  11570. static FORCEINLINE HRESULT ISpeechMMSysAudio_get_DeviceId(ISpeechMMSysAudio* This,LONG *DeviceId) {
  11571. return This->lpVtbl->get_DeviceId(This,DeviceId);
  11572. }
  11573. static FORCEINLINE HRESULT ISpeechMMSysAudio_put_DeviceId(ISpeechMMSysAudio* This,LONG DeviceId) {
  11574. return This->lpVtbl->put_DeviceId(This,DeviceId);
  11575. }
  11576. static FORCEINLINE HRESULT ISpeechMMSysAudio_get_LineId(ISpeechMMSysAudio* This,LONG *LineId) {
  11577. return This->lpVtbl->get_LineId(This,LineId);
  11578. }
  11579. static FORCEINLINE HRESULT ISpeechMMSysAudio_put_LineId(ISpeechMMSysAudio* This,LONG LineId) {
  11580. return This->lpVtbl->put_LineId(This,LineId);
  11581. }
  11582. static FORCEINLINE HRESULT ISpeechMMSysAudio_get_MMHandle(ISpeechMMSysAudio* This,LONG *Handle) {
  11583. return This->lpVtbl->get_MMHandle(This,Handle);
  11584. }
  11585. #endif
  11586. #endif
  11587. #endif
  11588. #endif /* __ISpeechMMSysAudio_INTERFACE_DEFINED__ */
  11589. /*****************************************************************************
  11590. * ISpeechFileStream interface
  11591. */
  11592. #ifndef __ISpeechFileStream_INTERFACE_DEFINED__
  11593. #define __ISpeechFileStream_INTERFACE_DEFINED__
  11594. DEFINE_GUID(IID_ISpeechFileStream, 0xaf67f125, 0xab39, 0x4e93, 0xb4,0xa2, 0xcc,0x2e,0x66,0xe1,0x82,0xa7);
  11595. #if defined(__cplusplus) && !defined(CINTERFACE)
  11596. MIDL_INTERFACE("af67f125-ab39-4e93-b4a2-cc2e66e182a7")
  11597. ISpeechFileStream : public ISpeechBaseStream
  11598. {
  11599. virtual HRESULT STDMETHODCALLTYPE Open(
  11600. BSTR FileName,
  11601. SpeechStreamFileMode FileMode = SSFMOpenForRead,
  11602. VARIANT_BOOL DoEvents = 0) = 0;
  11603. virtual HRESULT STDMETHODCALLTYPE Close(
  11604. ) = 0;
  11605. };
  11606. #ifdef __CRT_UUID_DECL
  11607. __CRT_UUID_DECL(ISpeechFileStream, 0xaf67f125, 0xab39, 0x4e93, 0xb4,0xa2, 0xcc,0x2e,0x66,0xe1,0x82,0xa7)
  11608. #endif
  11609. #else
  11610. typedef struct ISpeechFileStreamVtbl {
  11611. BEGIN_INTERFACE
  11612. /*** IUnknown methods ***/
  11613. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  11614. ISpeechFileStream *This,
  11615. REFIID riid,
  11616. void **ppvObject);
  11617. ULONG (STDMETHODCALLTYPE *AddRef)(
  11618. ISpeechFileStream *This);
  11619. ULONG (STDMETHODCALLTYPE *Release)(
  11620. ISpeechFileStream *This);
  11621. /*** IDispatch methods ***/
  11622. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  11623. ISpeechFileStream *This,
  11624. UINT *pctinfo);
  11625. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  11626. ISpeechFileStream *This,
  11627. UINT iTInfo,
  11628. LCID lcid,
  11629. ITypeInfo **ppTInfo);
  11630. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  11631. ISpeechFileStream *This,
  11632. REFIID riid,
  11633. LPOLESTR *rgszNames,
  11634. UINT cNames,
  11635. LCID lcid,
  11636. DISPID *rgDispId);
  11637. HRESULT (STDMETHODCALLTYPE *Invoke)(
  11638. ISpeechFileStream *This,
  11639. DISPID dispIdMember,
  11640. REFIID riid,
  11641. LCID lcid,
  11642. WORD wFlags,
  11643. DISPPARAMS *pDispParams,
  11644. VARIANT *pVarResult,
  11645. EXCEPINFO *pExcepInfo,
  11646. UINT *puArgErr);
  11647. /*** ISpeechBaseStream methods ***/
  11648. HRESULT (STDMETHODCALLTYPE *get_Format)(
  11649. ISpeechFileStream *This,
  11650. ISpeechAudioFormat **AudioFormat);
  11651. HRESULT (STDMETHODCALLTYPE *putref_Format)(
  11652. ISpeechFileStream *This,
  11653. ISpeechAudioFormat *AudioFormat);
  11654. HRESULT (STDMETHODCALLTYPE *Read)(
  11655. ISpeechFileStream *This,
  11656. VARIANT *Buffer,
  11657. LONG NumberOfBytes,
  11658. LONG *BytesRead);
  11659. HRESULT (STDMETHODCALLTYPE *Write)(
  11660. ISpeechFileStream *This,
  11661. VARIANT Buffer,
  11662. LONG *BytesWritten);
  11663. HRESULT (STDMETHODCALLTYPE *Seek)(
  11664. ISpeechFileStream *This,
  11665. VARIANT Position,
  11666. SpeechStreamSeekPositionType Origin,
  11667. VARIANT *NewPosition);
  11668. /*** ISpeechFileStream methods ***/
  11669. HRESULT (STDMETHODCALLTYPE *Open)(
  11670. ISpeechFileStream *This,
  11671. BSTR FileName,
  11672. SpeechStreamFileMode FileMode,
  11673. VARIANT_BOOL DoEvents);
  11674. HRESULT (STDMETHODCALLTYPE *Close)(
  11675. ISpeechFileStream *This);
  11676. END_INTERFACE
  11677. } ISpeechFileStreamVtbl;
  11678. interface ISpeechFileStream {
  11679. CONST_VTBL ISpeechFileStreamVtbl* lpVtbl;
  11680. };
  11681. #ifdef COBJMACROS
  11682. #ifndef WIDL_C_INLINE_WRAPPERS
  11683. /*** IUnknown methods ***/
  11684. #define ISpeechFileStream_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  11685. #define ISpeechFileStream_AddRef(This) (This)->lpVtbl->AddRef(This)
  11686. #define ISpeechFileStream_Release(This) (This)->lpVtbl->Release(This)
  11687. /*** IDispatch methods ***/
  11688. #define ISpeechFileStream_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  11689. #define ISpeechFileStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11690. #define ISpeechFileStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11691. #define ISpeechFileStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11692. /*** ISpeechBaseStream methods ***/
  11693. #define ISpeechFileStream_get_Format(This,AudioFormat) (This)->lpVtbl->get_Format(This,AudioFormat)
  11694. #define ISpeechFileStream_putref_Format(This,AudioFormat) (This)->lpVtbl->putref_Format(This,AudioFormat)
  11695. #define ISpeechFileStream_Read(This,Buffer,NumberOfBytes,BytesRead) (This)->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead)
  11696. #define ISpeechFileStream_Write(This,Buffer,BytesWritten) (This)->lpVtbl->Write(This,Buffer,BytesWritten)
  11697. #define ISpeechFileStream_Seek(This,Position,Origin,NewPosition) (This)->lpVtbl->Seek(This,Position,Origin,NewPosition)
  11698. /*** ISpeechFileStream methods ***/
  11699. #define ISpeechFileStream_Open(This,FileName,FileMode,DoEvents) (This)->lpVtbl->Open(This,FileName,FileMode,DoEvents)
  11700. #define ISpeechFileStream_Close(This) (This)->lpVtbl->Close(This)
  11701. #else
  11702. /*** IUnknown methods ***/
  11703. static FORCEINLINE HRESULT ISpeechFileStream_QueryInterface(ISpeechFileStream* This,REFIID riid,void **ppvObject) {
  11704. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  11705. }
  11706. static FORCEINLINE ULONG ISpeechFileStream_AddRef(ISpeechFileStream* This) {
  11707. return This->lpVtbl->AddRef(This);
  11708. }
  11709. static FORCEINLINE ULONG ISpeechFileStream_Release(ISpeechFileStream* This) {
  11710. return This->lpVtbl->Release(This);
  11711. }
  11712. /*** IDispatch methods ***/
  11713. static FORCEINLINE HRESULT ISpeechFileStream_GetTypeInfoCount(ISpeechFileStream* This,UINT *pctinfo) {
  11714. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  11715. }
  11716. static FORCEINLINE HRESULT ISpeechFileStream_GetTypeInfo(ISpeechFileStream* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  11717. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  11718. }
  11719. static FORCEINLINE HRESULT ISpeechFileStream_GetIDsOfNames(ISpeechFileStream* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  11720. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  11721. }
  11722. static FORCEINLINE HRESULT ISpeechFileStream_Invoke(ISpeechFileStream* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  11723. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  11724. }
  11725. /*** ISpeechBaseStream methods ***/
  11726. static FORCEINLINE HRESULT ISpeechFileStream_get_Format(ISpeechFileStream* This,ISpeechAudioFormat **AudioFormat) {
  11727. return This->lpVtbl->get_Format(This,AudioFormat);
  11728. }
  11729. static FORCEINLINE HRESULT ISpeechFileStream_putref_Format(ISpeechFileStream* This,ISpeechAudioFormat *AudioFormat) {
  11730. return This->lpVtbl->putref_Format(This,AudioFormat);
  11731. }
  11732. static FORCEINLINE HRESULT ISpeechFileStream_Read(ISpeechFileStream* This,VARIANT *Buffer,LONG NumberOfBytes,LONG *BytesRead) {
  11733. return This->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead);
  11734. }
  11735. static FORCEINLINE HRESULT ISpeechFileStream_Write(ISpeechFileStream* This,VARIANT Buffer,LONG *BytesWritten) {
  11736. return This->lpVtbl->Write(This,Buffer,BytesWritten);
  11737. }
  11738. static FORCEINLINE HRESULT ISpeechFileStream_Seek(ISpeechFileStream* This,VARIANT Position,SpeechStreamSeekPositionType Origin,VARIANT *NewPosition) {
  11739. return This->lpVtbl->Seek(This,Position,Origin,NewPosition);
  11740. }
  11741. /*** ISpeechFileStream methods ***/
  11742. static FORCEINLINE HRESULT ISpeechFileStream_Open(ISpeechFileStream* This,BSTR FileName,SpeechStreamFileMode FileMode,VARIANT_BOOL DoEvents) {
  11743. return This->lpVtbl->Open(This,FileName,FileMode,DoEvents);
  11744. }
  11745. static FORCEINLINE HRESULT ISpeechFileStream_Close(ISpeechFileStream* This) {
  11746. return This->lpVtbl->Close(This);
  11747. }
  11748. #endif
  11749. #endif
  11750. #endif
  11751. #endif /* __ISpeechFileStream_INTERFACE_DEFINED__ */
  11752. /*****************************************************************************
  11753. * ISpeechCustomStream interface
  11754. */
  11755. #ifndef __ISpeechCustomStream_INTERFACE_DEFINED__
  11756. #define __ISpeechCustomStream_INTERFACE_DEFINED__
  11757. DEFINE_GUID(IID_ISpeechCustomStream, 0x1a9e9f4f, 0x104f, 0x4db8, 0xa1,0x15, 0xef,0xd7,0xfd,0x0c,0x97,0xae);
  11758. #if defined(__cplusplus) && !defined(CINTERFACE)
  11759. MIDL_INTERFACE("1a9e9f4f-104f-4db8-a115-efd7fd0c97ae")
  11760. ISpeechCustomStream : public ISpeechBaseStream
  11761. {
  11762. virtual HRESULT STDMETHODCALLTYPE get_BaseStream(
  11763. IUnknown **ppUnkStream) = 0;
  11764. virtual HRESULT STDMETHODCALLTYPE putref_BaseStream(
  11765. IUnknown *pUnkStream) = 0;
  11766. };
  11767. #ifdef __CRT_UUID_DECL
  11768. __CRT_UUID_DECL(ISpeechCustomStream, 0x1a9e9f4f, 0x104f, 0x4db8, 0xa1,0x15, 0xef,0xd7,0xfd,0x0c,0x97,0xae)
  11769. #endif
  11770. #else
  11771. typedef struct ISpeechCustomStreamVtbl {
  11772. BEGIN_INTERFACE
  11773. /*** IUnknown methods ***/
  11774. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  11775. ISpeechCustomStream *This,
  11776. REFIID riid,
  11777. void **ppvObject);
  11778. ULONG (STDMETHODCALLTYPE *AddRef)(
  11779. ISpeechCustomStream *This);
  11780. ULONG (STDMETHODCALLTYPE *Release)(
  11781. ISpeechCustomStream *This);
  11782. /*** IDispatch methods ***/
  11783. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  11784. ISpeechCustomStream *This,
  11785. UINT *pctinfo);
  11786. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  11787. ISpeechCustomStream *This,
  11788. UINT iTInfo,
  11789. LCID lcid,
  11790. ITypeInfo **ppTInfo);
  11791. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  11792. ISpeechCustomStream *This,
  11793. REFIID riid,
  11794. LPOLESTR *rgszNames,
  11795. UINT cNames,
  11796. LCID lcid,
  11797. DISPID *rgDispId);
  11798. HRESULT (STDMETHODCALLTYPE *Invoke)(
  11799. ISpeechCustomStream *This,
  11800. DISPID dispIdMember,
  11801. REFIID riid,
  11802. LCID lcid,
  11803. WORD wFlags,
  11804. DISPPARAMS *pDispParams,
  11805. VARIANT *pVarResult,
  11806. EXCEPINFO *pExcepInfo,
  11807. UINT *puArgErr);
  11808. /*** ISpeechBaseStream methods ***/
  11809. HRESULT (STDMETHODCALLTYPE *get_Format)(
  11810. ISpeechCustomStream *This,
  11811. ISpeechAudioFormat **AudioFormat);
  11812. HRESULT (STDMETHODCALLTYPE *putref_Format)(
  11813. ISpeechCustomStream *This,
  11814. ISpeechAudioFormat *AudioFormat);
  11815. HRESULT (STDMETHODCALLTYPE *Read)(
  11816. ISpeechCustomStream *This,
  11817. VARIANT *Buffer,
  11818. LONG NumberOfBytes,
  11819. LONG *BytesRead);
  11820. HRESULT (STDMETHODCALLTYPE *Write)(
  11821. ISpeechCustomStream *This,
  11822. VARIANT Buffer,
  11823. LONG *BytesWritten);
  11824. HRESULT (STDMETHODCALLTYPE *Seek)(
  11825. ISpeechCustomStream *This,
  11826. VARIANT Position,
  11827. SpeechStreamSeekPositionType Origin,
  11828. VARIANT *NewPosition);
  11829. /*** ISpeechCustomStream methods ***/
  11830. HRESULT (STDMETHODCALLTYPE *get_BaseStream)(
  11831. ISpeechCustomStream *This,
  11832. IUnknown **ppUnkStream);
  11833. HRESULT (STDMETHODCALLTYPE *putref_BaseStream)(
  11834. ISpeechCustomStream *This,
  11835. IUnknown *pUnkStream);
  11836. END_INTERFACE
  11837. } ISpeechCustomStreamVtbl;
  11838. interface ISpeechCustomStream {
  11839. CONST_VTBL ISpeechCustomStreamVtbl* lpVtbl;
  11840. };
  11841. #ifdef COBJMACROS
  11842. #ifndef WIDL_C_INLINE_WRAPPERS
  11843. /*** IUnknown methods ***/
  11844. #define ISpeechCustomStream_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  11845. #define ISpeechCustomStream_AddRef(This) (This)->lpVtbl->AddRef(This)
  11846. #define ISpeechCustomStream_Release(This) (This)->lpVtbl->Release(This)
  11847. /*** IDispatch methods ***/
  11848. #define ISpeechCustomStream_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  11849. #define ISpeechCustomStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  11850. #define ISpeechCustomStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  11851. #define ISpeechCustomStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  11852. /*** ISpeechBaseStream methods ***/
  11853. #define ISpeechCustomStream_get_Format(This,AudioFormat) (This)->lpVtbl->get_Format(This,AudioFormat)
  11854. #define ISpeechCustomStream_putref_Format(This,AudioFormat) (This)->lpVtbl->putref_Format(This,AudioFormat)
  11855. #define ISpeechCustomStream_Read(This,Buffer,NumberOfBytes,BytesRead) (This)->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead)
  11856. #define ISpeechCustomStream_Write(This,Buffer,BytesWritten) (This)->lpVtbl->Write(This,Buffer,BytesWritten)
  11857. #define ISpeechCustomStream_Seek(This,Position,Origin,NewPosition) (This)->lpVtbl->Seek(This,Position,Origin,NewPosition)
  11858. /*** ISpeechCustomStream methods ***/
  11859. #define ISpeechCustomStream_get_BaseStream(This,ppUnkStream) (This)->lpVtbl->get_BaseStream(This,ppUnkStream)
  11860. #define ISpeechCustomStream_putref_BaseStream(This,pUnkStream) (This)->lpVtbl->putref_BaseStream(This,pUnkStream)
  11861. #else
  11862. /*** IUnknown methods ***/
  11863. static FORCEINLINE HRESULT ISpeechCustomStream_QueryInterface(ISpeechCustomStream* This,REFIID riid,void **ppvObject) {
  11864. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  11865. }
  11866. static FORCEINLINE ULONG ISpeechCustomStream_AddRef(ISpeechCustomStream* This) {
  11867. return This->lpVtbl->AddRef(This);
  11868. }
  11869. static FORCEINLINE ULONG ISpeechCustomStream_Release(ISpeechCustomStream* This) {
  11870. return This->lpVtbl->Release(This);
  11871. }
  11872. /*** IDispatch methods ***/
  11873. static FORCEINLINE HRESULT ISpeechCustomStream_GetTypeInfoCount(ISpeechCustomStream* This,UINT *pctinfo) {
  11874. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  11875. }
  11876. static FORCEINLINE HRESULT ISpeechCustomStream_GetTypeInfo(ISpeechCustomStream* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  11877. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  11878. }
  11879. static FORCEINLINE HRESULT ISpeechCustomStream_GetIDsOfNames(ISpeechCustomStream* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  11880. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  11881. }
  11882. static FORCEINLINE HRESULT ISpeechCustomStream_Invoke(ISpeechCustomStream* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  11883. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  11884. }
  11885. /*** ISpeechBaseStream methods ***/
  11886. static FORCEINLINE HRESULT ISpeechCustomStream_get_Format(ISpeechCustomStream* This,ISpeechAudioFormat **AudioFormat) {
  11887. return This->lpVtbl->get_Format(This,AudioFormat);
  11888. }
  11889. static FORCEINLINE HRESULT ISpeechCustomStream_putref_Format(ISpeechCustomStream* This,ISpeechAudioFormat *AudioFormat) {
  11890. return This->lpVtbl->putref_Format(This,AudioFormat);
  11891. }
  11892. static FORCEINLINE HRESULT ISpeechCustomStream_Read(ISpeechCustomStream* This,VARIANT *Buffer,LONG NumberOfBytes,LONG *BytesRead) {
  11893. return This->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead);
  11894. }
  11895. static FORCEINLINE HRESULT ISpeechCustomStream_Write(ISpeechCustomStream* This,VARIANT Buffer,LONG *BytesWritten) {
  11896. return This->lpVtbl->Write(This,Buffer,BytesWritten);
  11897. }
  11898. static FORCEINLINE HRESULT ISpeechCustomStream_Seek(ISpeechCustomStream* This,VARIANT Position,SpeechStreamSeekPositionType Origin,VARIANT *NewPosition) {
  11899. return This->lpVtbl->Seek(This,Position,Origin,NewPosition);
  11900. }
  11901. /*** ISpeechCustomStream methods ***/
  11902. static FORCEINLINE HRESULT ISpeechCustomStream_get_BaseStream(ISpeechCustomStream* This,IUnknown **ppUnkStream) {
  11903. return This->lpVtbl->get_BaseStream(This,ppUnkStream);
  11904. }
  11905. static FORCEINLINE HRESULT ISpeechCustomStream_putref_BaseStream(ISpeechCustomStream* This,IUnknown *pUnkStream) {
  11906. return This->lpVtbl->putref_BaseStream(This,pUnkStream);
  11907. }
  11908. #endif
  11909. #endif
  11910. #endif
  11911. #endif /* __ISpeechCustomStream_INTERFACE_DEFINED__ */
  11912. /*****************************************************************************
  11913. * ISpeechMemoryStream interface
  11914. */
  11915. #ifndef __ISpeechMemoryStream_INTERFACE_DEFINED__
  11916. #define __ISpeechMemoryStream_INTERFACE_DEFINED__
  11917. DEFINE_GUID(IID_ISpeechMemoryStream, 0xeeb14b68, 0x808b, 0x4abe, 0xa5,0xea, 0xb5,0x1d,0xa7,0x58,0x80,0x08);
  11918. #if defined(__cplusplus) && !defined(CINTERFACE)
  11919. MIDL_INTERFACE("eeb14b68-808b-4abe-a5ea-b51da7588008")
  11920. ISpeechMemoryStream : public ISpeechBaseStream
  11921. {
  11922. virtual HRESULT STDMETHODCALLTYPE SetData(
  11923. VARIANT Data) = 0;
  11924. virtual HRESULT STDMETHODCALLTYPE GetData(
  11925. VARIANT *pData) = 0;
  11926. };
  11927. #ifdef __CRT_UUID_DECL
  11928. __CRT_UUID_DECL(ISpeechMemoryStream, 0xeeb14b68, 0x808b, 0x4abe, 0xa5,0xea, 0xb5,0x1d,0xa7,0x58,0x80,0x08)
  11929. #endif
  11930. #else
  11931. typedef struct ISpeechMemoryStreamVtbl {
  11932. BEGIN_INTERFACE
  11933. /*** IUnknown methods ***/
  11934. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  11935. ISpeechMemoryStream *This,
  11936. REFIID riid,
  11937. void **ppvObject);
  11938. ULONG (STDMETHODCALLTYPE *AddRef)(
  11939. ISpeechMemoryStream *This);
  11940. ULONG (STDMETHODCALLTYPE *Release)(
  11941. ISpeechMemoryStream *This);
  11942. /*** IDispatch methods ***/
  11943. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  11944. ISpeechMemoryStream *This,
  11945. UINT *pctinfo);
  11946. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  11947. ISpeechMemoryStream *This,
  11948. UINT iTInfo,
  11949. LCID lcid,
  11950. ITypeInfo **ppTInfo);
  11951. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  11952. ISpeechMemoryStream *This,
  11953. REFIID riid,
  11954. LPOLESTR *rgszNames,
  11955. UINT cNames,
  11956. LCID lcid,
  11957. DISPID *rgDispId);
  11958. HRESULT (STDMETHODCALLTYPE *Invoke)(
  11959. ISpeechMemoryStream *This,
  11960. DISPID dispIdMember,
  11961. REFIID riid,
  11962. LCID lcid,
  11963. WORD wFlags,
  11964. DISPPARAMS *pDispParams,
  11965. VARIANT *pVarResult,
  11966. EXCEPINFO *pExcepInfo,
  11967. UINT *puArgErr);
  11968. /*** ISpeechBaseStream methods ***/
  11969. HRESULT (STDMETHODCALLTYPE *get_Format)(
  11970. ISpeechMemoryStream *This,
  11971. ISpeechAudioFormat **AudioFormat);
  11972. HRESULT (STDMETHODCALLTYPE *putref_Format)(
  11973. ISpeechMemoryStream *This,
  11974. ISpeechAudioFormat *AudioFormat);
  11975. HRESULT (STDMETHODCALLTYPE *Read)(
  11976. ISpeechMemoryStream *This,
  11977. VARIANT *Buffer,
  11978. LONG NumberOfBytes,
  11979. LONG *BytesRead);
  11980. HRESULT (STDMETHODCALLTYPE *Write)(
  11981. ISpeechMemoryStream *This,
  11982. VARIANT Buffer,
  11983. LONG *BytesWritten);
  11984. HRESULT (STDMETHODCALLTYPE *Seek)(
  11985. ISpeechMemoryStream *This,
  11986. VARIANT Position,
  11987. SpeechStreamSeekPositionType Origin,
  11988. VARIANT *NewPosition);
  11989. /*** ISpeechMemoryStream methods ***/
  11990. HRESULT (STDMETHODCALLTYPE *SetData)(
  11991. ISpeechMemoryStream *This,
  11992. VARIANT Data);
  11993. HRESULT (STDMETHODCALLTYPE *GetData)(
  11994. ISpeechMemoryStream *This,
  11995. VARIANT *pData);
  11996. END_INTERFACE
  11997. } ISpeechMemoryStreamVtbl;
  11998. interface ISpeechMemoryStream {
  11999. CONST_VTBL ISpeechMemoryStreamVtbl* lpVtbl;
  12000. };
  12001. #ifdef COBJMACROS
  12002. #ifndef WIDL_C_INLINE_WRAPPERS
  12003. /*** IUnknown methods ***/
  12004. #define ISpeechMemoryStream_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  12005. #define ISpeechMemoryStream_AddRef(This) (This)->lpVtbl->AddRef(This)
  12006. #define ISpeechMemoryStream_Release(This) (This)->lpVtbl->Release(This)
  12007. /*** IDispatch methods ***/
  12008. #define ISpeechMemoryStream_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  12009. #define ISpeechMemoryStream_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12010. #define ISpeechMemoryStream_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12011. #define ISpeechMemoryStream_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12012. /*** ISpeechBaseStream methods ***/
  12013. #define ISpeechMemoryStream_get_Format(This,AudioFormat) (This)->lpVtbl->get_Format(This,AudioFormat)
  12014. #define ISpeechMemoryStream_putref_Format(This,AudioFormat) (This)->lpVtbl->putref_Format(This,AudioFormat)
  12015. #define ISpeechMemoryStream_Read(This,Buffer,NumberOfBytes,BytesRead) (This)->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead)
  12016. #define ISpeechMemoryStream_Write(This,Buffer,BytesWritten) (This)->lpVtbl->Write(This,Buffer,BytesWritten)
  12017. #define ISpeechMemoryStream_Seek(This,Position,Origin,NewPosition) (This)->lpVtbl->Seek(This,Position,Origin,NewPosition)
  12018. /*** ISpeechMemoryStream methods ***/
  12019. #define ISpeechMemoryStream_SetData(This,Data) (This)->lpVtbl->SetData(This,Data)
  12020. #define ISpeechMemoryStream_GetData(This,pData) (This)->lpVtbl->GetData(This,pData)
  12021. #else
  12022. /*** IUnknown methods ***/
  12023. static FORCEINLINE HRESULT ISpeechMemoryStream_QueryInterface(ISpeechMemoryStream* This,REFIID riid,void **ppvObject) {
  12024. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  12025. }
  12026. static FORCEINLINE ULONG ISpeechMemoryStream_AddRef(ISpeechMemoryStream* This) {
  12027. return This->lpVtbl->AddRef(This);
  12028. }
  12029. static FORCEINLINE ULONG ISpeechMemoryStream_Release(ISpeechMemoryStream* This) {
  12030. return This->lpVtbl->Release(This);
  12031. }
  12032. /*** IDispatch methods ***/
  12033. static FORCEINLINE HRESULT ISpeechMemoryStream_GetTypeInfoCount(ISpeechMemoryStream* This,UINT *pctinfo) {
  12034. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  12035. }
  12036. static FORCEINLINE HRESULT ISpeechMemoryStream_GetTypeInfo(ISpeechMemoryStream* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  12037. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  12038. }
  12039. static FORCEINLINE HRESULT ISpeechMemoryStream_GetIDsOfNames(ISpeechMemoryStream* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  12040. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  12041. }
  12042. static FORCEINLINE HRESULT ISpeechMemoryStream_Invoke(ISpeechMemoryStream* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  12043. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  12044. }
  12045. /*** ISpeechBaseStream methods ***/
  12046. static FORCEINLINE HRESULT ISpeechMemoryStream_get_Format(ISpeechMemoryStream* This,ISpeechAudioFormat **AudioFormat) {
  12047. return This->lpVtbl->get_Format(This,AudioFormat);
  12048. }
  12049. static FORCEINLINE HRESULT ISpeechMemoryStream_putref_Format(ISpeechMemoryStream* This,ISpeechAudioFormat *AudioFormat) {
  12050. return This->lpVtbl->putref_Format(This,AudioFormat);
  12051. }
  12052. static FORCEINLINE HRESULT ISpeechMemoryStream_Read(ISpeechMemoryStream* This,VARIANT *Buffer,LONG NumberOfBytes,LONG *BytesRead) {
  12053. return This->lpVtbl->Read(This,Buffer,NumberOfBytes,BytesRead);
  12054. }
  12055. static FORCEINLINE HRESULT ISpeechMemoryStream_Write(ISpeechMemoryStream* This,VARIANT Buffer,LONG *BytesWritten) {
  12056. return This->lpVtbl->Write(This,Buffer,BytesWritten);
  12057. }
  12058. static FORCEINLINE HRESULT ISpeechMemoryStream_Seek(ISpeechMemoryStream* This,VARIANT Position,SpeechStreamSeekPositionType Origin,VARIANT *NewPosition) {
  12059. return This->lpVtbl->Seek(This,Position,Origin,NewPosition);
  12060. }
  12061. /*** ISpeechMemoryStream methods ***/
  12062. static FORCEINLINE HRESULT ISpeechMemoryStream_SetData(ISpeechMemoryStream* This,VARIANT Data) {
  12063. return This->lpVtbl->SetData(This,Data);
  12064. }
  12065. static FORCEINLINE HRESULT ISpeechMemoryStream_GetData(ISpeechMemoryStream* This,VARIANT *pData) {
  12066. return This->lpVtbl->GetData(This,pData);
  12067. }
  12068. #endif
  12069. #endif
  12070. #endif
  12071. #endif /* __ISpeechMemoryStream_INTERFACE_DEFINED__ */
  12072. /*****************************************************************************
  12073. * ISpeechAudioStatus interface
  12074. */
  12075. #ifndef __ISpeechAudioStatus_INTERFACE_DEFINED__
  12076. #define __ISpeechAudioStatus_INTERFACE_DEFINED__
  12077. DEFINE_GUID(IID_ISpeechAudioStatus, 0xc62d9c91, 0x7458, 0x47f6, 0x86,0x2d, 0x1e,0xf8,0x6f,0xb0,0xb2,0x78);
  12078. #if defined(__cplusplus) && !defined(CINTERFACE)
  12079. MIDL_INTERFACE("c62d9c91-7458-47f6-862d-1ef86fb0b278")
  12080. ISpeechAudioStatus : public IDispatch
  12081. {
  12082. virtual HRESULT STDMETHODCALLTYPE get_FreeBufferSpace(
  12083. LONG *FreeBufferSpace) = 0;
  12084. virtual HRESULT STDMETHODCALLTYPE get_NonBlockingIO(
  12085. LONG *NonBlockingIO) = 0;
  12086. virtual HRESULT STDMETHODCALLTYPE get_State(
  12087. SpeechAudioState *State) = 0;
  12088. virtual HRESULT STDMETHODCALLTYPE get_CurrentSeekPosition(
  12089. VARIANT *CurrentSeekPosition) = 0;
  12090. virtual HRESULT STDMETHODCALLTYPE get_CurrentDevicePosition(
  12091. VARIANT *CurrentDevicePosition) = 0;
  12092. };
  12093. #ifdef __CRT_UUID_DECL
  12094. __CRT_UUID_DECL(ISpeechAudioStatus, 0xc62d9c91, 0x7458, 0x47f6, 0x86,0x2d, 0x1e,0xf8,0x6f,0xb0,0xb2,0x78)
  12095. #endif
  12096. #else
  12097. typedef struct ISpeechAudioStatusVtbl {
  12098. BEGIN_INTERFACE
  12099. /*** IUnknown methods ***/
  12100. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  12101. ISpeechAudioStatus *This,
  12102. REFIID riid,
  12103. void **ppvObject);
  12104. ULONG (STDMETHODCALLTYPE *AddRef)(
  12105. ISpeechAudioStatus *This);
  12106. ULONG (STDMETHODCALLTYPE *Release)(
  12107. ISpeechAudioStatus *This);
  12108. /*** IDispatch methods ***/
  12109. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  12110. ISpeechAudioStatus *This,
  12111. UINT *pctinfo);
  12112. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  12113. ISpeechAudioStatus *This,
  12114. UINT iTInfo,
  12115. LCID lcid,
  12116. ITypeInfo **ppTInfo);
  12117. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  12118. ISpeechAudioStatus *This,
  12119. REFIID riid,
  12120. LPOLESTR *rgszNames,
  12121. UINT cNames,
  12122. LCID lcid,
  12123. DISPID *rgDispId);
  12124. HRESULT (STDMETHODCALLTYPE *Invoke)(
  12125. ISpeechAudioStatus *This,
  12126. DISPID dispIdMember,
  12127. REFIID riid,
  12128. LCID lcid,
  12129. WORD wFlags,
  12130. DISPPARAMS *pDispParams,
  12131. VARIANT *pVarResult,
  12132. EXCEPINFO *pExcepInfo,
  12133. UINT *puArgErr);
  12134. /*** ISpeechAudioStatus methods ***/
  12135. HRESULT (STDMETHODCALLTYPE *get_FreeBufferSpace)(
  12136. ISpeechAudioStatus *This,
  12137. LONG *FreeBufferSpace);
  12138. HRESULT (STDMETHODCALLTYPE *get_NonBlockingIO)(
  12139. ISpeechAudioStatus *This,
  12140. LONG *NonBlockingIO);
  12141. HRESULT (STDMETHODCALLTYPE *get_State)(
  12142. ISpeechAudioStatus *This,
  12143. SpeechAudioState *State);
  12144. HRESULT (STDMETHODCALLTYPE *get_CurrentSeekPosition)(
  12145. ISpeechAudioStatus *This,
  12146. VARIANT *CurrentSeekPosition);
  12147. HRESULT (STDMETHODCALLTYPE *get_CurrentDevicePosition)(
  12148. ISpeechAudioStatus *This,
  12149. VARIANT *CurrentDevicePosition);
  12150. END_INTERFACE
  12151. } ISpeechAudioStatusVtbl;
  12152. interface ISpeechAudioStatus {
  12153. CONST_VTBL ISpeechAudioStatusVtbl* lpVtbl;
  12154. };
  12155. #ifdef COBJMACROS
  12156. #ifndef WIDL_C_INLINE_WRAPPERS
  12157. /*** IUnknown methods ***/
  12158. #define ISpeechAudioStatus_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  12159. #define ISpeechAudioStatus_AddRef(This) (This)->lpVtbl->AddRef(This)
  12160. #define ISpeechAudioStatus_Release(This) (This)->lpVtbl->Release(This)
  12161. /*** IDispatch methods ***/
  12162. #define ISpeechAudioStatus_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  12163. #define ISpeechAudioStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12164. #define ISpeechAudioStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12165. #define ISpeechAudioStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12166. /*** ISpeechAudioStatus methods ***/
  12167. #define ISpeechAudioStatus_get_FreeBufferSpace(This,FreeBufferSpace) (This)->lpVtbl->get_FreeBufferSpace(This,FreeBufferSpace)
  12168. #define ISpeechAudioStatus_get_NonBlockingIO(This,NonBlockingIO) (This)->lpVtbl->get_NonBlockingIO(This,NonBlockingIO)
  12169. #define ISpeechAudioStatus_get_State(This,State) (This)->lpVtbl->get_State(This,State)
  12170. #define ISpeechAudioStatus_get_CurrentSeekPosition(This,CurrentSeekPosition) (This)->lpVtbl->get_CurrentSeekPosition(This,CurrentSeekPosition)
  12171. #define ISpeechAudioStatus_get_CurrentDevicePosition(This,CurrentDevicePosition) (This)->lpVtbl->get_CurrentDevicePosition(This,CurrentDevicePosition)
  12172. #else
  12173. /*** IUnknown methods ***/
  12174. static FORCEINLINE HRESULT ISpeechAudioStatus_QueryInterface(ISpeechAudioStatus* This,REFIID riid,void **ppvObject) {
  12175. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  12176. }
  12177. static FORCEINLINE ULONG ISpeechAudioStatus_AddRef(ISpeechAudioStatus* This) {
  12178. return This->lpVtbl->AddRef(This);
  12179. }
  12180. static FORCEINLINE ULONG ISpeechAudioStatus_Release(ISpeechAudioStatus* This) {
  12181. return This->lpVtbl->Release(This);
  12182. }
  12183. /*** IDispatch methods ***/
  12184. static FORCEINLINE HRESULT ISpeechAudioStatus_GetTypeInfoCount(ISpeechAudioStatus* This,UINT *pctinfo) {
  12185. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  12186. }
  12187. static FORCEINLINE HRESULT ISpeechAudioStatus_GetTypeInfo(ISpeechAudioStatus* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  12188. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  12189. }
  12190. static FORCEINLINE HRESULT ISpeechAudioStatus_GetIDsOfNames(ISpeechAudioStatus* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  12191. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  12192. }
  12193. static FORCEINLINE HRESULT ISpeechAudioStatus_Invoke(ISpeechAudioStatus* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  12194. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  12195. }
  12196. /*** ISpeechAudioStatus methods ***/
  12197. static FORCEINLINE HRESULT ISpeechAudioStatus_get_FreeBufferSpace(ISpeechAudioStatus* This,LONG *FreeBufferSpace) {
  12198. return This->lpVtbl->get_FreeBufferSpace(This,FreeBufferSpace);
  12199. }
  12200. static FORCEINLINE HRESULT ISpeechAudioStatus_get_NonBlockingIO(ISpeechAudioStatus* This,LONG *NonBlockingIO) {
  12201. return This->lpVtbl->get_NonBlockingIO(This,NonBlockingIO);
  12202. }
  12203. static FORCEINLINE HRESULT ISpeechAudioStatus_get_State(ISpeechAudioStatus* This,SpeechAudioState *State) {
  12204. return This->lpVtbl->get_State(This,State);
  12205. }
  12206. static FORCEINLINE HRESULT ISpeechAudioStatus_get_CurrentSeekPosition(ISpeechAudioStatus* This,VARIANT *CurrentSeekPosition) {
  12207. return This->lpVtbl->get_CurrentSeekPosition(This,CurrentSeekPosition);
  12208. }
  12209. static FORCEINLINE HRESULT ISpeechAudioStatus_get_CurrentDevicePosition(ISpeechAudioStatus* This,VARIANT *CurrentDevicePosition) {
  12210. return This->lpVtbl->get_CurrentDevicePosition(This,CurrentDevicePosition);
  12211. }
  12212. #endif
  12213. #endif
  12214. #endif
  12215. #endif /* __ISpeechAudioStatus_INTERFACE_DEFINED__ */
  12216. /*****************************************************************************
  12217. * ISpeechAudioBufferInfo interface
  12218. */
  12219. #ifndef __ISpeechAudioBufferInfo_INTERFACE_DEFINED__
  12220. #define __ISpeechAudioBufferInfo_INTERFACE_DEFINED__
  12221. DEFINE_GUID(IID_ISpeechAudioBufferInfo, 0x11b103d8, 0x1142, 0x4edf, 0xa0,0x93, 0x82,0xfb,0x39,0x15,0xf8,0xcc);
  12222. #if defined(__cplusplus) && !defined(CINTERFACE)
  12223. MIDL_INTERFACE("11b103d8-1142-4edf-a093-82fb3915f8cc")
  12224. ISpeechAudioBufferInfo : public IDispatch
  12225. {
  12226. virtual HRESULT STDMETHODCALLTYPE get_MinNotification(
  12227. LONG *MinNotification) = 0;
  12228. virtual HRESULT STDMETHODCALLTYPE put_MinNotification(
  12229. LONG MinNotification) = 0;
  12230. virtual HRESULT STDMETHODCALLTYPE get_BufferSize(
  12231. LONG *BufferSize) = 0;
  12232. virtual HRESULT STDMETHODCALLTYPE put_BufferSize(
  12233. LONG BufferSize) = 0;
  12234. virtual HRESULT STDMETHODCALLTYPE get_EventBias(
  12235. LONG *EventBias) = 0;
  12236. virtual HRESULT STDMETHODCALLTYPE put_EventBias(
  12237. LONG EventBias) = 0;
  12238. };
  12239. #ifdef __CRT_UUID_DECL
  12240. __CRT_UUID_DECL(ISpeechAudioBufferInfo, 0x11b103d8, 0x1142, 0x4edf, 0xa0,0x93, 0x82,0xfb,0x39,0x15,0xf8,0xcc)
  12241. #endif
  12242. #else
  12243. typedef struct ISpeechAudioBufferInfoVtbl {
  12244. BEGIN_INTERFACE
  12245. /*** IUnknown methods ***/
  12246. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  12247. ISpeechAudioBufferInfo *This,
  12248. REFIID riid,
  12249. void **ppvObject);
  12250. ULONG (STDMETHODCALLTYPE *AddRef)(
  12251. ISpeechAudioBufferInfo *This);
  12252. ULONG (STDMETHODCALLTYPE *Release)(
  12253. ISpeechAudioBufferInfo *This);
  12254. /*** IDispatch methods ***/
  12255. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  12256. ISpeechAudioBufferInfo *This,
  12257. UINT *pctinfo);
  12258. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  12259. ISpeechAudioBufferInfo *This,
  12260. UINT iTInfo,
  12261. LCID lcid,
  12262. ITypeInfo **ppTInfo);
  12263. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  12264. ISpeechAudioBufferInfo *This,
  12265. REFIID riid,
  12266. LPOLESTR *rgszNames,
  12267. UINT cNames,
  12268. LCID lcid,
  12269. DISPID *rgDispId);
  12270. HRESULT (STDMETHODCALLTYPE *Invoke)(
  12271. ISpeechAudioBufferInfo *This,
  12272. DISPID dispIdMember,
  12273. REFIID riid,
  12274. LCID lcid,
  12275. WORD wFlags,
  12276. DISPPARAMS *pDispParams,
  12277. VARIANT *pVarResult,
  12278. EXCEPINFO *pExcepInfo,
  12279. UINT *puArgErr);
  12280. /*** ISpeechAudioBufferInfo methods ***/
  12281. HRESULT (STDMETHODCALLTYPE *get_MinNotification)(
  12282. ISpeechAudioBufferInfo *This,
  12283. LONG *MinNotification);
  12284. HRESULT (STDMETHODCALLTYPE *put_MinNotification)(
  12285. ISpeechAudioBufferInfo *This,
  12286. LONG MinNotification);
  12287. HRESULT (STDMETHODCALLTYPE *get_BufferSize)(
  12288. ISpeechAudioBufferInfo *This,
  12289. LONG *BufferSize);
  12290. HRESULT (STDMETHODCALLTYPE *put_BufferSize)(
  12291. ISpeechAudioBufferInfo *This,
  12292. LONG BufferSize);
  12293. HRESULT (STDMETHODCALLTYPE *get_EventBias)(
  12294. ISpeechAudioBufferInfo *This,
  12295. LONG *EventBias);
  12296. HRESULT (STDMETHODCALLTYPE *put_EventBias)(
  12297. ISpeechAudioBufferInfo *This,
  12298. LONG EventBias);
  12299. END_INTERFACE
  12300. } ISpeechAudioBufferInfoVtbl;
  12301. interface ISpeechAudioBufferInfo {
  12302. CONST_VTBL ISpeechAudioBufferInfoVtbl* lpVtbl;
  12303. };
  12304. #ifdef COBJMACROS
  12305. #ifndef WIDL_C_INLINE_WRAPPERS
  12306. /*** IUnknown methods ***/
  12307. #define ISpeechAudioBufferInfo_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  12308. #define ISpeechAudioBufferInfo_AddRef(This) (This)->lpVtbl->AddRef(This)
  12309. #define ISpeechAudioBufferInfo_Release(This) (This)->lpVtbl->Release(This)
  12310. /*** IDispatch methods ***/
  12311. #define ISpeechAudioBufferInfo_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  12312. #define ISpeechAudioBufferInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12313. #define ISpeechAudioBufferInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12314. #define ISpeechAudioBufferInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12315. /*** ISpeechAudioBufferInfo methods ***/
  12316. #define ISpeechAudioBufferInfo_get_MinNotification(This,MinNotification) (This)->lpVtbl->get_MinNotification(This,MinNotification)
  12317. #define ISpeechAudioBufferInfo_put_MinNotification(This,MinNotification) (This)->lpVtbl->put_MinNotification(This,MinNotification)
  12318. #define ISpeechAudioBufferInfo_get_BufferSize(This,BufferSize) (This)->lpVtbl->get_BufferSize(This,BufferSize)
  12319. #define ISpeechAudioBufferInfo_put_BufferSize(This,BufferSize) (This)->lpVtbl->put_BufferSize(This,BufferSize)
  12320. #define ISpeechAudioBufferInfo_get_EventBias(This,EventBias) (This)->lpVtbl->get_EventBias(This,EventBias)
  12321. #define ISpeechAudioBufferInfo_put_EventBias(This,EventBias) (This)->lpVtbl->put_EventBias(This,EventBias)
  12322. #else
  12323. /*** IUnknown methods ***/
  12324. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_QueryInterface(ISpeechAudioBufferInfo* This,REFIID riid,void **ppvObject) {
  12325. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  12326. }
  12327. static FORCEINLINE ULONG ISpeechAudioBufferInfo_AddRef(ISpeechAudioBufferInfo* This) {
  12328. return This->lpVtbl->AddRef(This);
  12329. }
  12330. static FORCEINLINE ULONG ISpeechAudioBufferInfo_Release(ISpeechAudioBufferInfo* This) {
  12331. return This->lpVtbl->Release(This);
  12332. }
  12333. /*** IDispatch methods ***/
  12334. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_GetTypeInfoCount(ISpeechAudioBufferInfo* This,UINT *pctinfo) {
  12335. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  12336. }
  12337. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_GetTypeInfo(ISpeechAudioBufferInfo* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  12338. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  12339. }
  12340. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_GetIDsOfNames(ISpeechAudioBufferInfo* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  12341. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  12342. }
  12343. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_Invoke(ISpeechAudioBufferInfo* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  12344. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  12345. }
  12346. /*** ISpeechAudioBufferInfo methods ***/
  12347. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_get_MinNotification(ISpeechAudioBufferInfo* This,LONG *MinNotification) {
  12348. return This->lpVtbl->get_MinNotification(This,MinNotification);
  12349. }
  12350. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_put_MinNotification(ISpeechAudioBufferInfo* This,LONG MinNotification) {
  12351. return This->lpVtbl->put_MinNotification(This,MinNotification);
  12352. }
  12353. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_get_BufferSize(ISpeechAudioBufferInfo* This,LONG *BufferSize) {
  12354. return This->lpVtbl->get_BufferSize(This,BufferSize);
  12355. }
  12356. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_put_BufferSize(ISpeechAudioBufferInfo* This,LONG BufferSize) {
  12357. return This->lpVtbl->put_BufferSize(This,BufferSize);
  12358. }
  12359. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_get_EventBias(ISpeechAudioBufferInfo* This,LONG *EventBias) {
  12360. return This->lpVtbl->get_EventBias(This,EventBias);
  12361. }
  12362. static FORCEINLINE HRESULT ISpeechAudioBufferInfo_put_EventBias(ISpeechAudioBufferInfo* This,LONG EventBias) {
  12363. return This->lpVtbl->put_EventBias(This,EventBias);
  12364. }
  12365. #endif
  12366. #endif
  12367. #endif
  12368. #endif /* __ISpeechAudioBufferInfo_INTERFACE_DEFINED__ */
  12369. /*****************************************************************************
  12370. * ISpeechWaveFormatEx interface
  12371. */
  12372. #ifndef __ISpeechWaveFormatEx_INTERFACE_DEFINED__
  12373. #define __ISpeechWaveFormatEx_INTERFACE_DEFINED__
  12374. DEFINE_GUID(IID_ISpeechWaveFormatEx, 0x7a1ef0d5, 0x1581, 0x4741, 0x88,0xe4, 0x20,0x9a,0x49,0xf1,0x1a,0x10);
  12375. #if defined(__cplusplus) && !defined(CINTERFACE)
  12376. MIDL_INTERFACE("7a1ef0d5-1581-4741-88e4-209a49f11a10")
  12377. ISpeechWaveFormatEx : public IDispatch
  12378. {
  12379. virtual HRESULT STDMETHODCALLTYPE get_FormatTag(
  12380. short *FormatTag) = 0;
  12381. virtual HRESULT STDMETHODCALLTYPE put_FormatTag(
  12382. short FormatTag) = 0;
  12383. virtual HRESULT STDMETHODCALLTYPE get_Channels(
  12384. short *Channels) = 0;
  12385. virtual HRESULT STDMETHODCALLTYPE put_Channels(
  12386. short Channels) = 0;
  12387. virtual HRESULT STDMETHODCALLTYPE get_SamplesPerSec(
  12388. LONG *SamplesPerSec) = 0;
  12389. virtual HRESULT STDMETHODCALLTYPE put_SamplesPerSec(
  12390. LONG SamplesPerSec) = 0;
  12391. virtual HRESULT STDMETHODCALLTYPE get_AvgBytesPerSec(
  12392. LONG *AvgBytesPerSec) = 0;
  12393. virtual HRESULT STDMETHODCALLTYPE put_AvgBytesPerSec(
  12394. LONG AvgBytesPerSec) = 0;
  12395. virtual HRESULT STDMETHODCALLTYPE get_BlockAlign(
  12396. short *BlockAlign) = 0;
  12397. virtual HRESULT STDMETHODCALLTYPE put_BlockAlign(
  12398. short BlockAlign) = 0;
  12399. virtual HRESULT STDMETHODCALLTYPE get_BitsPerSample(
  12400. short *BitsPerSample) = 0;
  12401. virtual HRESULT STDMETHODCALLTYPE put_BitsPerSample(
  12402. short BitsPerSample) = 0;
  12403. virtual HRESULT STDMETHODCALLTYPE get_ExtraData(
  12404. VARIANT *ExtraData) = 0;
  12405. virtual HRESULT STDMETHODCALLTYPE put_ExtraData(
  12406. VARIANT ExtraData) = 0;
  12407. };
  12408. #ifdef __CRT_UUID_DECL
  12409. __CRT_UUID_DECL(ISpeechWaveFormatEx, 0x7a1ef0d5, 0x1581, 0x4741, 0x88,0xe4, 0x20,0x9a,0x49,0xf1,0x1a,0x10)
  12410. #endif
  12411. #else
  12412. typedef struct ISpeechWaveFormatExVtbl {
  12413. BEGIN_INTERFACE
  12414. /*** IUnknown methods ***/
  12415. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  12416. ISpeechWaveFormatEx *This,
  12417. REFIID riid,
  12418. void **ppvObject);
  12419. ULONG (STDMETHODCALLTYPE *AddRef)(
  12420. ISpeechWaveFormatEx *This);
  12421. ULONG (STDMETHODCALLTYPE *Release)(
  12422. ISpeechWaveFormatEx *This);
  12423. /*** IDispatch methods ***/
  12424. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  12425. ISpeechWaveFormatEx *This,
  12426. UINT *pctinfo);
  12427. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  12428. ISpeechWaveFormatEx *This,
  12429. UINT iTInfo,
  12430. LCID lcid,
  12431. ITypeInfo **ppTInfo);
  12432. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  12433. ISpeechWaveFormatEx *This,
  12434. REFIID riid,
  12435. LPOLESTR *rgszNames,
  12436. UINT cNames,
  12437. LCID lcid,
  12438. DISPID *rgDispId);
  12439. HRESULT (STDMETHODCALLTYPE *Invoke)(
  12440. ISpeechWaveFormatEx *This,
  12441. DISPID dispIdMember,
  12442. REFIID riid,
  12443. LCID lcid,
  12444. WORD wFlags,
  12445. DISPPARAMS *pDispParams,
  12446. VARIANT *pVarResult,
  12447. EXCEPINFO *pExcepInfo,
  12448. UINT *puArgErr);
  12449. /*** ISpeechWaveFormatEx methods ***/
  12450. HRESULT (STDMETHODCALLTYPE *get_FormatTag)(
  12451. ISpeechWaveFormatEx *This,
  12452. short *FormatTag);
  12453. HRESULT (STDMETHODCALLTYPE *put_FormatTag)(
  12454. ISpeechWaveFormatEx *This,
  12455. short FormatTag);
  12456. HRESULT (STDMETHODCALLTYPE *get_Channels)(
  12457. ISpeechWaveFormatEx *This,
  12458. short *Channels);
  12459. HRESULT (STDMETHODCALLTYPE *put_Channels)(
  12460. ISpeechWaveFormatEx *This,
  12461. short Channels);
  12462. HRESULT (STDMETHODCALLTYPE *get_SamplesPerSec)(
  12463. ISpeechWaveFormatEx *This,
  12464. LONG *SamplesPerSec);
  12465. HRESULT (STDMETHODCALLTYPE *put_SamplesPerSec)(
  12466. ISpeechWaveFormatEx *This,
  12467. LONG SamplesPerSec);
  12468. HRESULT (STDMETHODCALLTYPE *get_AvgBytesPerSec)(
  12469. ISpeechWaveFormatEx *This,
  12470. LONG *AvgBytesPerSec);
  12471. HRESULT (STDMETHODCALLTYPE *put_AvgBytesPerSec)(
  12472. ISpeechWaveFormatEx *This,
  12473. LONG AvgBytesPerSec);
  12474. HRESULT (STDMETHODCALLTYPE *get_BlockAlign)(
  12475. ISpeechWaveFormatEx *This,
  12476. short *BlockAlign);
  12477. HRESULT (STDMETHODCALLTYPE *put_BlockAlign)(
  12478. ISpeechWaveFormatEx *This,
  12479. short BlockAlign);
  12480. HRESULT (STDMETHODCALLTYPE *get_BitsPerSample)(
  12481. ISpeechWaveFormatEx *This,
  12482. short *BitsPerSample);
  12483. HRESULT (STDMETHODCALLTYPE *put_BitsPerSample)(
  12484. ISpeechWaveFormatEx *This,
  12485. short BitsPerSample);
  12486. HRESULT (STDMETHODCALLTYPE *get_ExtraData)(
  12487. ISpeechWaveFormatEx *This,
  12488. VARIANT *ExtraData);
  12489. HRESULT (STDMETHODCALLTYPE *put_ExtraData)(
  12490. ISpeechWaveFormatEx *This,
  12491. VARIANT ExtraData);
  12492. END_INTERFACE
  12493. } ISpeechWaveFormatExVtbl;
  12494. interface ISpeechWaveFormatEx {
  12495. CONST_VTBL ISpeechWaveFormatExVtbl* lpVtbl;
  12496. };
  12497. #ifdef COBJMACROS
  12498. #ifndef WIDL_C_INLINE_WRAPPERS
  12499. /*** IUnknown methods ***/
  12500. #define ISpeechWaveFormatEx_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  12501. #define ISpeechWaveFormatEx_AddRef(This) (This)->lpVtbl->AddRef(This)
  12502. #define ISpeechWaveFormatEx_Release(This) (This)->lpVtbl->Release(This)
  12503. /*** IDispatch methods ***/
  12504. #define ISpeechWaveFormatEx_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  12505. #define ISpeechWaveFormatEx_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12506. #define ISpeechWaveFormatEx_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12507. #define ISpeechWaveFormatEx_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12508. /*** ISpeechWaveFormatEx methods ***/
  12509. #define ISpeechWaveFormatEx_get_FormatTag(This,FormatTag) (This)->lpVtbl->get_FormatTag(This,FormatTag)
  12510. #define ISpeechWaveFormatEx_put_FormatTag(This,FormatTag) (This)->lpVtbl->put_FormatTag(This,FormatTag)
  12511. #define ISpeechWaveFormatEx_get_Channels(This,Channels) (This)->lpVtbl->get_Channels(This,Channels)
  12512. #define ISpeechWaveFormatEx_put_Channels(This,Channels) (This)->lpVtbl->put_Channels(This,Channels)
  12513. #define ISpeechWaveFormatEx_get_SamplesPerSec(This,SamplesPerSec) (This)->lpVtbl->get_SamplesPerSec(This,SamplesPerSec)
  12514. #define ISpeechWaveFormatEx_put_SamplesPerSec(This,SamplesPerSec) (This)->lpVtbl->put_SamplesPerSec(This,SamplesPerSec)
  12515. #define ISpeechWaveFormatEx_get_AvgBytesPerSec(This,AvgBytesPerSec) (This)->lpVtbl->get_AvgBytesPerSec(This,AvgBytesPerSec)
  12516. #define ISpeechWaveFormatEx_put_AvgBytesPerSec(This,AvgBytesPerSec) (This)->lpVtbl->put_AvgBytesPerSec(This,AvgBytesPerSec)
  12517. #define ISpeechWaveFormatEx_get_BlockAlign(This,BlockAlign) (This)->lpVtbl->get_BlockAlign(This,BlockAlign)
  12518. #define ISpeechWaveFormatEx_put_BlockAlign(This,BlockAlign) (This)->lpVtbl->put_BlockAlign(This,BlockAlign)
  12519. #define ISpeechWaveFormatEx_get_BitsPerSample(This,BitsPerSample) (This)->lpVtbl->get_BitsPerSample(This,BitsPerSample)
  12520. #define ISpeechWaveFormatEx_put_BitsPerSample(This,BitsPerSample) (This)->lpVtbl->put_BitsPerSample(This,BitsPerSample)
  12521. #define ISpeechWaveFormatEx_get_ExtraData(This,ExtraData) (This)->lpVtbl->get_ExtraData(This,ExtraData)
  12522. #define ISpeechWaveFormatEx_put_ExtraData(This,ExtraData) (This)->lpVtbl->put_ExtraData(This,ExtraData)
  12523. #else
  12524. /*** IUnknown methods ***/
  12525. static FORCEINLINE HRESULT ISpeechWaveFormatEx_QueryInterface(ISpeechWaveFormatEx* This,REFIID riid,void **ppvObject) {
  12526. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  12527. }
  12528. static FORCEINLINE ULONG ISpeechWaveFormatEx_AddRef(ISpeechWaveFormatEx* This) {
  12529. return This->lpVtbl->AddRef(This);
  12530. }
  12531. static FORCEINLINE ULONG ISpeechWaveFormatEx_Release(ISpeechWaveFormatEx* This) {
  12532. return This->lpVtbl->Release(This);
  12533. }
  12534. /*** IDispatch methods ***/
  12535. static FORCEINLINE HRESULT ISpeechWaveFormatEx_GetTypeInfoCount(ISpeechWaveFormatEx* This,UINT *pctinfo) {
  12536. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  12537. }
  12538. static FORCEINLINE HRESULT ISpeechWaveFormatEx_GetTypeInfo(ISpeechWaveFormatEx* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  12539. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  12540. }
  12541. static FORCEINLINE HRESULT ISpeechWaveFormatEx_GetIDsOfNames(ISpeechWaveFormatEx* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  12542. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  12543. }
  12544. static FORCEINLINE HRESULT ISpeechWaveFormatEx_Invoke(ISpeechWaveFormatEx* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  12545. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  12546. }
  12547. /*** ISpeechWaveFormatEx methods ***/
  12548. static FORCEINLINE HRESULT ISpeechWaveFormatEx_get_FormatTag(ISpeechWaveFormatEx* This,short *FormatTag) {
  12549. return This->lpVtbl->get_FormatTag(This,FormatTag);
  12550. }
  12551. static FORCEINLINE HRESULT ISpeechWaveFormatEx_put_FormatTag(ISpeechWaveFormatEx* This,short FormatTag) {
  12552. return This->lpVtbl->put_FormatTag(This,FormatTag);
  12553. }
  12554. static FORCEINLINE HRESULT ISpeechWaveFormatEx_get_Channels(ISpeechWaveFormatEx* This,short *Channels) {
  12555. return This->lpVtbl->get_Channels(This,Channels);
  12556. }
  12557. static FORCEINLINE HRESULT ISpeechWaveFormatEx_put_Channels(ISpeechWaveFormatEx* This,short Channels) {
  12558. return This->lpVtbl->put_Channels(This,Channels);
  12559. }
  12560. static FORCEINLINE HRESULT ISpeechWaveFormatEx_get_SamplesPerSec(ISpeechWaveFormatEx* This,LONG *SamplesPerSec) {
  12561. return This->lpVtbl->get_SamplesPerSec(This,SamplesPerSec);
  12562. }
  12563. static FORCEINLINE HRESULT ISpeechWaveFormatEx_put_SamplesPerSec(ISpeechWaveFormatEx* This,LONG SamplesPerSec) {
  12564. return This->lpVtbl->put_SamplesPerSec(This,SamplesPerSec);
  12565. }
  12566. static FORCEINLINE HRESULT ISpeechWaveFormatEx_get_AvgBytesPerSec(ISpeechWaveFormatEx* This,LONG *AvgBytesPerSec) {
  12567. return This->lpVtbl->get_AvgBytesPerSec(This,AvgBytesPerSec);
  12568. }
  12569. static FORCEINLINE HRESULT ISpeechWaveFormatEx_put_AvgBytesPerSec(ISpeechWaveFormatEx* This,LONG AvgBytesPerSec) {
  12570. return This->lpVtbl->put_AvgBytesPerSec(This,AvgBytesPerSec);
  12571. }
  12572. static FORCEINLINE HRESULT ISpeechWaveFormatEx_get_BlockAlign(ISpeechWaveFormatEx* This,short *BlockAlign) {
  12573. return This->lpVtbl->get_BlockAlign(This,BlockAlign);
  12574. }
  12575. static FORCEINLINE HRESULT ISpeechWaveFormatEx_put_BlockAlign(ISpeechWaveFormatEx* This,short BlockAlign) {
  12576. return This->lpVtbl->put_BlockAlign(This,BlockAlign);
  12577. }
  12578. static FORCEINLINE HRESULT ISpeechWaveFormatEx_get_BitsPerSample(ISpeechWaveFormatEx* This,short *BitsPerSample) {
  12579. return This->lpVtbl->get_BitsPerSample(This,BitsPerSample);
  12580. }
  12581. static FORCEINLINE HRESULT ISpeechWaveFormatEx_put_BitsPerSample(ISpeechWaveFormatEx* This,short BitsPerSample) {
  12582. return This->lpVtbl->put_BitsPerSample(This,BitsPerSample);
  12583. }
  12584. static FORCEINLINE HRESULT ISpeechWaveFormatEx_get_ExtraData(ISpeechWaveFormatEx* This,VARIANT *ExtraData) {
  12585. return This->lpVtbl->get_ExtraData(This,ExtraData);
  12586. }
  12587. static FORCEINLINE HRESULT ISpeechWaveFormatEx_put_ExtraData(ISpeechWaveFormatEx* This,VARIANT ExtraData) {
  12588. return This->lpVtbl->put_ExtraData(This,ExtraData);
  12589. }
  12590. #endif
  12591. #endif
  12592. #endif
  12593. #endif /* __ISpeechWaveFormatEx_INTERFACE_DEFINED__ */
  12594. /*****************************************************************************
  12595. * ISpeechVoice interface
  12596. */
  12597. #ifndef __ISpeechVoice_INTERFACE_DEFINED__
  12598. #define __ISpeechVoice_INTERFACE_DEFINED__
  12599. DEFINE_GUID(IID_ISpeechVoice, 0x269316d8, 0x57bd, 0x11d2, 0x9e,0xee, 0x00,0xc0,0x4f,0x79,0x73,0x96);
  12600. #if defined(__cplusplus) && !defined(CINTERFACE)
  12601. MIDL_INTERFACE("269316d8-57bd-11d2-9eee-00c04f797396")
  12602. ISpeechVoice : public IDispatch
  12603. {
  12604. virtual HRESULT STDMETHODCALLTYPE get_Status(
  12605. ISpeechVoiceStatus **Status) = 0;
  12606. virtual HRESULT STDMETHODCALLTYPE get_Voice(
  12607. ISpeechObjectToken **Voice) = 0;
  12608. virtual HRESULT STDMETHODCALLTYPE putref_Voice(
  12609. ISpeechObjectToken *Voice) = 0;
  12610. virtual HRESULT STDMETHODCALLTYPE get_AudioOutput(
  12611. ISpeechObjectToken **AudioOutput) = 0;
  12612. virtual HRESULT STDMETHODCALLTYPE putref_AudioOutput(
  12613. ISpeechObjectToken *AudioOutput) = 0;
  12614. virtual HRESULT STDMETHODCALLTYPE get_AudioOutputStream(
  12615. ISpeechBaseStream **AudioOutputStream) = 0;
  12616. virtual HRESULT STDMETHODCALLTYPE putref_AudioOutputStream(
  12617. ISpeechBaseStream *AudioOutputStream) = 0;
  12618. virtual HRESULT STDMETHODCALLTYPE get_Rate(
  12619. LONG *Rate) = 0;
  12620. virtual HRESULT STDMETHODCALLTYPE put_Rate(
  12621. LONG Rate) = 0;
  12622. virtual HRESULT STDMETHODCALLTYPE get_Volume(
  12623. LONG *Volume) = 0;
  12624. virtual HRESULT STDMETHODCALLTYPE put_Volume(
  12625. LONG Volume) = 0;
  12626. virtual HRESULT STDMETHODCALLTYPE put_AllowAudioOutputFormatChangesOnNextSet(
  12627. VARIANT_BOOL Allow) = 0;
  12628. virtual HRESULT STDMETHODCALLTYPE get_AllowAudioOutputFormatChangesOnNextSet(
  12629. VARIANT_BOOL *Allow) = 0;
  12630. virtual HRESULT STDMETHODCALLTYPE get_EventInterests(
  12631. SpeechVoiceEvents *EventInterestFlags) = 0;
  12632. virtual HRESULT STDMETHODCALLTYPE put_EventInterests(
  12633. SpeechVoiceEvents EventInterestFlags) = 0;
  12634. virtual HRESULT STDMETHODCALLTYPE put_Priority(
  12635. SpeechVoicePriority Priority) = 0;
  12636. virtual HRESULT STDMETHODCALLTYPE get_Priority(
  12637. SpeechVoicePriority *Priority) = 0;
  12638. virtual HRESULT STDMETHODCALLTYPE put_AlertBoundary(
  12639. SpeechVoiceEvents Boundary) = 0;
  12640. virtual HRESULT STDMETHODCALLTYPE get_AlertBoundary(
  12641. SpeechVoiceEvents *Boundary) = 0;
  12642. virtual HRESULT STDMETHODCALLTYPE put_SynchronousSpeakTimeout(
  12643. LONG msTimeout) = 0;
  12644. virtual HRESULT STDMETHODCALLTYPE get_SynchronousSpeakTimeout(
  12645. LONG *msTimeout) = 0;
  12646. virtual HRESULT STDMETHODCALLTYPE Speak(
  12647. BSTR Text,
  12648. SpeechVoiceSpeakFlags Flags,
  12649. LONG *StreamNumber) = 0;
  12650. virtual HRESULT STDMETHODCALLTYPE SpeakStream(
  12651. ISpeechBaseStream *Stream,
  12652. SpeechVoiceSpeakFlags Flags,
  12653. LONG *StreamNumber) = 0;
  12654. virtual HRESULT STDMETHODCALLTYPE Pause(
  12655. ) = 0;
  12656. virtual HRESULT STDMETHODCALLTYPE Resume(
  12657. ) = 0;
  12658. virtual HRESULT STDMETHODCALLTYPE Skip(
  12659. const BSTR Type,
  12660. LONG NumItems,
  12661. LONG *NumSkipped) = 0;
  12662. virtual HRESULT STDMETHODCALLTYPE GetVoices(
  12663. BSTR RequiredAttributes,
  12664. BSTR OptionalAttributes,
  12665. ISpeechObjectTokens **ObjectTokens) = 0;
  12666. virtual HRESULT STDMETHODCALLTYPE GetAudioOutputs(
  12667. BSTR RequiredAttributes,
  12668. BSTR OptionalAttributes,
  12669. ISpeechObjectTokens **ObjectTokens) = 0;
  12670. virtual HRESULT STDMETHODCALLTYPE WaitUntilDone(
  12671. LONG msTimeout,
  12672. VARIANT_BOOL *Done) = 0;
  12673. virtual HRESULT STDMETHODCALLTYPE SpeakCompleteEvent(
  12674. LONG *Handle) = 0;
  12675. virtual HRESULT STDMETHODCALLTYPE IsUISupported(
  12676. const BSTR TypeOfUI,
  12677. const VARIANT *ExtraData,
  12678. VARIANT_BOOL *Supported) = 0;
  12679. virtual HRESULT STDMETHODCALLTYPE DisplayUI(
  12680. LONG hWndParent,
  12681. BSTR Title,
  12682. const BSTR TypeOfUI,
  12683. const VARIANT *ExtraData = 0) = 0;
  12684. };
  12685. #ifdef __CRT_UUID_DECL
  12686. __CRT_UUID_DECL(ISpeechVoice, 0x269316d8, 0x57bd, 0x11d2, 0x9e,0xee, 0x00,0xc0,0x4f,0x79,0x73,0x96)
  12687. #endif
  12688. #else
  12689. typedef struct ISpeechVoiceVtbl {
  12690. BEGIN_INTERFACE
  12691. /*** IUnknown methods ***/
  12692. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  12693. ISpeechVoice *This,
  12694. REFIID riid,
  12695. void **ppvObject);
  12696. ULONG (STDMETHODCALLTYPE *AddRef)(
  12697. ISpeechVoice *This);
  12698. ULONG (STDMETHODCALLTYPE *Release)(
  12699. ISpeechVoice *This);
  12700. /*** IDispatch methods ***/
  12701. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  12702. ISpeechVoice *This,
  12703. UINT *pctinfo);
  12704. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  12705. ISpeechVoice *This,
  12706. UINT iTInfo,
  12707. LCID lcid,
  12708. ITypeInfo **ppTInfo);
  12709. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  12710. ISpeechVoice *This,
  12711. REFIID riid,
  12712. LPOLESTR *rgszNames,
  12713. UINT cNames,
  12714. LCID lcid,
  12715. DISPID *rgDispId);
  12716. HRESULT (STDMETHODCALLTYPE *Invoke)(
  12717. ISpeechVoice *This,
  12718. DISPID dispIdMember,
  12719. REFIID riid,
  12720. LCID lcid,
  12721. WORD wFlags,
  12722. DISPPARAMS *pDispParams,
  12723. VARIANT *pVarResult,
  12724. EXCEPINFO *pExcepInfo,
  12725. UINT *puArgErr);
  12726. /*** ISpeechVoice methods ***/
  12727. HRESULT (STDMETHODCALLTYPE *get_Status)(
  12728. ISpeechVoice *This,
  12729. ISpeechVoiceStatus **Status);
  12730. HRESULT (STDMETHODCALLTYPE *get_Voice)(
  12731. ISpeechVoice *This,
  12732. ISpeechObjectToken **Voice);
  12733. HRESULT (STDMETHODCALLTYPE *putref_Voice)(
  12734. ISpeechVoice *This,
  12735. ISpeechObjectToken *Voice);
  12736. HRESULT (STDMETHODCALLTYPE *get_AudioOutput)(
  12737. ISpeechVoice *This,
  12738. ISpeechObjectToken **AudioOutput);
  12739. HRESULT (STDMETHODCALLTYPE *putref_AudioOutput)(
  12740. ISpeechVoice *This,
  12741. ISpeechObjectToken *AudioOutput);
  12742. HRESULT (STDMETHODCALLTYPE *get_AudioOutputStream)(
  12743. ISpeechVoice *This,
  12744. ISpeechBaseStream **AudioOutputStream);
  12745. HRESULT (STDMETHODCALLTYPE *putref_AudioOutputStream)(
  12746. ISpeechVoice *This,
  12747. ISpeechBaseStream *AudioOutputStream);
  12748. HRESULT (STDMETHODCALLTYPE *get_Rate)(
  12749. ISpeechVoice *This,
  12750. LONG *Rate);
  12751. HRESULT (STDMETHODCALLTYPE *put_Rate)(
  12752. ISpeechVoice *This,
  12753. LONG Rate);
  12754. HRESULT (STDMETHODCALLTYPE *get_Volume)(
  12755. ISpeechVoice *This,
  12756. LONG *Volume);
  12757. HRESULT (STDMETHODCALLTYPE *put_Volume)(
  12758. ISpeechVoice *This,
  12759. LONG Volume);
  12760. HRESULT (STDMETHODCALLTYPE *put_AllowAudioOutputFormatChangesOnNextSet)(
  12761. ISpeechVoice *This,
  12762. VARIANT_BOOL Allow);
  12763. HRESULT (STDMETHODCALLTYPE *get_AllowAudioOutputFormatChangesOnNextSet)(
  12764. ISpeechVoice *This,
  12765. VARIANT_BOOL *Allow);
  12766. HRESULT (STDMETHODCALLTYPE *get_EventInterests)(
  12767. ISpeechVoice *This,
  12768. SpeechVoiceEvents *EventInterestFlags);
  12769. HRESULT (STDMETHODCALLTYPE *put_EventInterests)(
  12770. ISpeechVoice *This,
  12771. SpeechVoiceEvents EventInterestFlags);
  12772. HRESULT (STDMETHODCALLTYPE *put_Priority)(
  12773. ISpeechVoice *This,
  12774. SpeechVoicePriority Priority);
  12775. HRESULT (STDMETHODCALLTYPE *get_Priority)(
  12776. ISpeechVoice *This,
  12777. SpeechVoicePriority *Priority);
  12778. HRESULT (STDMETHODCALLTYPE *put_AlertBoundary)(
  12779. ISpeechVoice *This,
  12780. SpeechVoiceEvents Boundary);
  12781. HRESULT (STDMETHODCALLTYPE *get_AlertBoundary)(
  12782. ISpeechVoice *This,
  12783. SpeechVoiceEvents *Boundary);
  12784. HRESULT (STDMETHODCALLTYPE *put_SynchronousSpeakTimeout)(
  12785. ISpeechVoice *This,
  12786. LONG msTimeout);
  12787. HRESULT (STDMETHODCALLTYPE *get_SynchronousSpeakTimeout)(
  12788. ISpeechVoice *This,
  12789. LONG *msTimeout);
  12790. HRESULT (STDMETHODCALLTYPE *Speak)(
  12791. ISpeechVoice *This,
  12792. BSTR Text,
  12793. SpeechVoiceSpeakFlags Flags,
  12794. LONG *StreamNumber);
  12795. HRESULT (STDMETHODCALLTYPE *SpeakStream)(
  12796. ISpeechVoice *This,
  12797. ISpeechBaseStream *Stream,
  12798. SpeechVoiceSpeakFlags Flags,
  12799. LONG *StreamNumber);
  12800. HRESULT (STDMETHODCALLTYPE *Pause)(
  12801. ISpeechVoice *This);
  12802. HRESULT (STDMETHODCALLTYPE *Resume)(
  12803. ISpeechVoice *This);
  12804. HRESULT (STDMETHODCALLTYPE *Skip)(
  12805. ISpeechVoice *This,
  12806. const BSTR Type,
  12807. LONG NumItems,
  12808. LONG *NumSkipped);
  12809. HRESULT (STDMETHODCALLTYPE *GetVoices)(
  12810. ISpeechVoice *This,
  12811. BSTR RequiredAttributes,
  12812. BSTR OptionalAttributes,
  12813. ISpeechObjectTokens **ObjectTokens);
  12814. HRESULT (STDMETHODCALLTYPE *GetAudioOutputs)(
  12815. ISpeechVoice *This,
  12816. BSTR RequiredAttributes,
  12817. BSTR OptionalAttributes,
  12818. ISpeechObjectTokens **ObjectTokens);
  12819. HRESULT (STDMETHODCALLTYPE *WaitUntilDone)(
  12820. ISpeechVoice *This,
  12821. LONG msTimeout,
  12822. VARIANT_BOOL *Done);
  12823. HRESULT (STDMETHODCALLTYPE *SpeakCompleteEvent)(
  12824. ISpeechVoice *This,
  12825. LONG *Handle);
  12826. HRESULT (STDMETHODCALLTYPE *IsUISupported)(
  12827. ISpeechVoice *This,
  12828. const BSTR TypeOfUI,
  12829. const VARIANT *ExtraData,
  12830. VARIANT_BOOL *Supported);
  12831. HRESULT (STDMETHODCALLTYPE *DisplayUI)(
  12832. ISpeechVoice *This,
  12833. LONG hWndParent,
  12834. BSTR Title,
  12835. const BSTR TypeOfUI,
  12836. const VARIANT *ExtraData);
  12837. END_INTERFACE
  12838. } ISpeechVoiceVtbl;
  12839. interface ISpeechVoice {
  12840. CONST_VTBL ISpeechVoiceVtbl* lpVtbl;
  12841. };
  12842. #ifdef COBJMACROS
  12843. #ifndef WIDL_C_INLINE_WRAPPERS
  12844. /*** IUnknown methods ***/
  12845. #define ISpeechVoice_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  12846. #define ISpeechVoice_AddRef(This) (This)->lpVtbl->AddRef(This)
  12847. #define ISpeechVoice_Release(This) (This)->lpVtbl->Release(This)
  12848. /*** IDispatch methods ***/
  12849. #define ISpeechVoice_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  12850. #define ISpeechVoice_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  12851. #define ISpeechVoice_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  12852. #define ISpeechVoice_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  12853. /*** ISpeechVoice methods ***/
  12854. #define ISpeechVoice_get_Status(This,Status) (This)->lpVtbl->get_Status(This,Status)
  12855. #define ISpeechVoice_get_Voice(This,Voice) (This)->lpVtbl->get_Voice(This,Voice)
  12856. #define ISpeechVoice_putref_Voice(This,Voice) (This)->lpVtbl->putref_Voice(This,Voice)
  12857. #define ISpeechVoice_get_AudioOutput(This,AudioOutput) (This)->lpVtbl->get_AudioOutput(This,AudioOutput)
  12858. #define ISpeechVoice_putref_AudioOutput(This,AudioOutput) (This)->lpVtbl->putref_AudioOutput(This,AudioOutput)
  12859. #define ISpeechVoice_get_AudioOutputStream(This,AudioOutputStream) (This)->lpVtbl->get_AudioOutputStream(This,AudioOutputStream)
  12860. #define ISpeechVoice_putref_AudioOutputStream(This,AudioOutputStream) (This)->lpVtbl->putref_AudioOutputStream(This,AudioOutputStream)
  12861. #define ISpeechVoice_get_Rate(This,Rate) (This)->lpVtbl->get_Rate(This,Rate)
  12862. #define ISpeechVoice_put_Rate(This,Rate) (This)->lpVtbl->put_Rate(This,Rate)
  12863. #define ISpeechVoice_get_Volume(This,Volume) (This)->lpVtbl->get_Volume(This,Volume)
  12864. #define ISpeechVoice_put_Volume(This,Volume) (This)->lpVtbl->put_Volume(This,Volume)
  12865. #define ISpeechVoice_put_AllowAudioOutputFormatChangesOnNextSet(This,Allow) (This)->lpVtbl->put_AllowAudioOutputFormatChangesOnNextSet(This,Allow)
  12866. #define ISpeechVoice_get_AllowAudioOutputFormatChangesOnNextSet(This,Allow) (This)->lpVtbl->get_AllowAudioOutputFormatChangesOnNextSet(This,Allow)
  12867. #define ISpeechVoice_get_EventInterests(This,EventInterestFlags) (This)->lpVtbl->get_EventInterests(This,EventInterestFlags)
  12868. #define ISpeechVoice_put_EventInterests(This,EventInterestFlags) (This)->lpVtbl->put_EventInterests(This,EventInterestFlags)
  12869. #define ISpeechVoice_put_Priority(This,Priority) (This)->lpVtbl->put_Priority(This,Priority)
  12870. #define ISpeechVoice_get_Priority(This,Priority) (This)->lpVtbl->get_Priority(This,Priority)
  12871. #define ISpeechVoice_put_AlertBoundary(This,Boundary) (This)->lpVtbl->put_AlertBoundary(This,Boundary)
  12872. #define ISpeechVoice_get_AlertBoundary(This,Boundary) (This)->lpVtbl->get_AlertBoundary(This,Boundary)
  12873. #define ISpeechVoice_put_SynchronousSpeakTimeout(This,msTimeout) (This)->lpVtbl->put_SynchronousSpeakTimeout(This,msTimeout)
  12874. #define ISpeechVoice_get_SynchronousSpeakTimeout(This,msTimeout) (This)->lpVtbl->get_SynchronousSpeakTimeout(This,msTimeout)
  12875. #define ISpeechVoice_Speak(This,Text,Flags,StreamNumber) (This)->lpVtbl->Speak(This,Text,Flags,StreamNumber)
  12876. #define ISpeechVoice_SpeakStream(This,Stream,Flags,StreamNumber) (This)->lpVtbl->SpeakStream(This,Stream,Flags,StreamNumber)
  12877. #define ISpeechVoice_Pause(This) (This)->lpVtbl->Pause(This)
  12878. #define ISpeechVoice_Resume(This) (This)->lpVtbl->Resume(This)
  12879. #define ISpeechVoice_Skip(This,Type,NumItems,NumSkipped) (This)->lpVtbl->Skip(This,Type,NumItems,NumSkipped)
  12880. #define ISpeechVoice_GetVoices(This,RequiredAttributes,OptionalAttributes,ObjectTokens) (This)->lpVtbl->GetVoices(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  12881. #define ISpeechVoice_GetAudioOutputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens) (This)->lpVtbl->GetAudioOutputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  12882. #define ISpeechVoice_WaitUntilDone(This,msTimeout,Done) (This)->lpVtbl->WaitUntilDone(This,msTimeout,Done)
  12883. #define ISpeechVoice_SpeakCompleteEvent(This,Handle) (This)->lpVtbl->SpeakCompleteEvent(This,Handle)
  12884. #define ISpeechVoice_IsUISupported(This,TypeOfUI,ExtraData,Supported) (This)->lpVtbl->IsUISupported(This,TypeOfUI,ExtraData,Supported)
  12885. #define ISpeechVoice_DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData) (This)->lpVtbl->DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData)
  12886. #else
  12887. /*** IUnknown methods ***/
  12888. static FORCEINLINE HRESULT ISpeechVoice_QueryInterface(ISpeechVoice* This,REFIID riid,void **ppvObject) {
  12889. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  12890. }
  12891. static FORCEINLINE ULONG ISpeechVoice_AddRef(ISpeechVoice* This) {
  12892. return This->lpVtbl->AddRef(This);
  12893. }
  12894. static FORCEINLINE ULONG ISpeechVoice_Release(ISpeechVoice* This) {
  12895. return This->lpVtbl->Release(This);
  12896. }
  12897. /*** IDispatch methods ***/
  12898. static FORCEINLINE HRESULT ISpeechVoice_GetTypeInfoCount(ISpeechVoice* This,UINT *pctinfo) {
  12899. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  12900. }
  12901. static FORCEINLINE HRESULT ISpeechVoice_GetTypeInfo(ISpeechVoice* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  12902. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  12903. }
  12904. static FORCEINLINE HRESULT ISpeechVoice_GetIDsOfNames(ISpeechVoice* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  12905. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  12906. }
  12907. static FORCEINLINE HRESULT ISpeechVoice_Invoke(ISpeechVoice* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  12908. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  12909. }
  12910. /*** ISpeechVoice methods ***/
  12911. static FORCEINLINE HRESULT ISpeechVoice_get_Status(ISpeechVoice* This,ISpeechVoiceStatus **Status) {
  12912. return This->lpVtbl->get_Status(This,Status);
  12913. }
  12914. static FORCEINLINE HRESULT ISpeechVoice_get_Voice(ISpeechVoice* This,ISpeechObjectToken **Voice) {
  12915. return This->lpVtbl->get_Voice(This,Voice);
  12916. }
  12917. static FORCEINLINE HRESULT ISpeechVoice_putref_Voice(ISpeechVoice* This,ISpeechObjectToken *Voice) {
  12918. return This->lpVtbl->putref_Voice(This,Voice);
  12919. }
  12920. static FORCEINLINE HRESULT ISpeechVoice_get_AudioOutput(ISpeechVoice* This,ISpeechObjectToken **AudioOutput) {
  12921. return This->lpVtbl->get_AudioOutput(This,AudioOutput);
  12922. }
  12923. static FORCEINLINE HRESULT ISpeechVoice_putref_AudioOutput(ISpeechVoice* This,ISpeechObjectToken *AudioOutput) {
  12924. return This->lpVtbl->putref_AudioOutput(This,AudioOutput);
  12925. }
  12926. static FORCEINLINE HRESULT ISpeechVoice_get_AudioOutputStream(ISpeechVoice* This,ISpeechBaseStream **AudioOutputStream) {
  12927. return This->lpVtbl->get_AudioOutputStream(This,AudioOutputStream);
  12928. }
  12929. static FORCEINLINE HRESULT ISpeechVoice_putref_AudioOutputStream(ISpeechVoice* This,ISpeechBaseStream *AudioOutputStream) {
  12930. return This->lpVtbl->putref_AudioOutputStream(This,AudioOutputStream);
  12931. }
  12932. static FORCEINLINE HRESULT ISpeechVoice_get_Rate(ISpeechVoice* This,LONG *Rate) {
  12933. return This->lpVtbl->get_Rate(This,Rate);
  12934. }
  12935. static FORCEINLINE HRESULT ISpeechVoice_put_Rate(ISpeechVoice* This,LONG Rate) {
  12936. return This->lpVtbl->put_Rate(This,Rate);
  12937. }
  12938. static FORCEINLINE HRESULT ISpeechVoice_get_Volume(ISpeechVoice* This,LONG *Volume) {
  12939. return This->lpVtbl->get_Volume(This,Volume);
  12940. }
  12941. static FORCEINLINE HRESULT ISpeechVoice_put_Volume(ISpeechVoice* This,LONG Volume) {
  12942. return This->lpVtbl->put_Volume(This,Volume);
  12943. }
  12944. static FORCEINLINE HRESULT ISpeechVoice_put_AllowAudioOutputFormatChangesOnNextSet(ISpeechVoice* This,VARIANT_BOOL Allow) {
  12945. return This->lpVtbl->put_AllowAudioOutputFormatChangesOnNextSet(This,Allow);
  12946. }
  12947. static FORCEINLINE HRESULT ISpeechVoice_get_AllowAudioOutputFormatChangesOnNextSet(ISpeechVoice* This,VARIANT_BOOL *Allow) {
  12948. return This->lpVtbl->get_AllowAudioOutputFormatChangesOnNextSet(This,Allow);
  12949. }
  12950. static FORCEINLINE HRESULT ISpeechVoice_get_EventInterests(ISpeechVoice* This,SpeechVoiceEvents *EventInterestFlags) {
  12951. return This->lpVtbl->get_EventInterests(This,EventInterestFlags);
  12952. }
  12953. static FORCEINLINE HRESULT ISpeechVoice_put_EventInterests(ISpeechVoice* This,SpeechVoiceEvents EventInterestFlags) {
  12954. return This->lpVtbl->put_EventInterests(This,EventInterestFlags);
  12955. }
  12956. static FORCEINLINE HRESULT ISpeechVoice_put_Priority(ISpeechVoice* This,SpeechVoicePriority Priority) {
  12957. return This->lpVtbl->put_Priority(This,Priority);
  12958. }
  12959. static FORCEINLINE HRESULT ISpeechVoice_get_Priority(ISpeechVoice* This,SpeechVoicePriority *Priority) {
  12960. return This->lpVtbl->get_Priority(This,Priority);
  12961. }
  12962. static FORCEINLINE HRESULT ISpeechVoice_put_AlertBoundary(ISpeechVoice* This,SpeechVoiceEvents Boundary) {
  12963. return This->lpVtbl->put_AlertBoundary(This,Boundary);
  12964. }
  12965. static FORCEINLINE HRESULT ISpeechVoice_get_AlertBoundary(ISpeechVoice* This,SpeechVoiceEvents *Boundary) {
  12966. return This->lpVtbl->get_AlertBoundary(This,Boundary);
  12967. }
  12968. static FORCEINLINE HRESULT ISpeechVoice_put_SynchronousSpeakTimeout(ISpeechVoice* This,LONG msTimeout) {
  12969. return This->lpVtbl->put_SynchronousSpeakTimeout(This,msTimeout);
  12970. }
  12971. static FORCEINLINE HRESULT ISpeechVoice_get_SynchronousSpeakTimeout(ISpeechVoice* This,LONG *msTimeout) {
  12972. return This->lpVtbl->get_SynchronousSpeakTimeout(This,msTimeout);
  12973. }
  12974. static FORCEINLINE HRESULT ISpeechVoice_Speak(ISpeechVoice* This,BSTR Text,SpeechVoiceSpeakFlags Flags,LONG *StreamNumber) {
  12975. return This->lpVtbl->Speak(This,Text,Flags,StreamNumber);
  12976. }
  12977. static FORCEINLINE HRESULT ISpeechVoice_SpeakStream(ISpeechVoice* This,ISpeechBaseStream *Stream,SpeechVoiceSpeakFlags Flags,LONG *StreamNumber) {
  12978. return This->lpVtbl->SpeakStream(This,Stream,Flags,StreamNumber);
  12979. }
  12980. static FORCEINLINE HRESULT ISpeechVoice_Pause(ISpeechVoice* This) {
  12981. return This->lpVtbl->Pause(This);
  12982. }
  12983. static FORCEINLINE HRESULT ISpeechVoice_Resume(ISpeechVoice* This) {
  12984. return This->lpVtbl->Resume(This);
  12985. }
  12986. static FORCEINLINE HRESULT ISpeechVoice_Skip(ISpeechVoice* This,const BSTR Type,LONG NumItems,LONG *NumSkipped) {
  12987. return This->lpVtbl->Skip(This,Type,NumItems,NumSkipped);
  12988. }
  12989. static FORCEINLINE HRESULT ISpeechVoice_GetVoices(ISpeechVoice* This,BSTR RequiredAttributes,BSTR OptionalAttributes,ISpeechObjectTokens **ObjectTokens) {
  12990. return This->lpVtbl->GetVoices(This,RequiredAttributes,OptionalAttributes,ObjectTokens);
  12991. }
  12992. static FORCEINLINE HRESULT ISpeechVoice_GetAudioOutputs(ISpeechVoice* This,BSTR RequiredAttributes,BSTR OptionalAttributes,ISpeechObjectTokens **ObjectTokens) {
  12993. return This->lpVtbl->GetAudioOutputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens);
  12994. }
  12995. static FORCEINLINE HRESULT ISpeechVoice_WaitUntilDone(ISpeechVoice* This,LONG msTimeout,VARIANT_BOOL *Done) {
  12996. return This->lpVtbl->WaitUntilDone(This,msTimeout,Done);
  12997. }
  12998. static FORCEINLINE HRESULT ISpeechVoice_SpeakCompleteEvent(ISpeechVoice* This,LONG *Handle) {
  12999. return This->lpVtbl->SpeakCompleteEvent(This,Handle);
  13000. }
  13001. static FORCEINLINE HRESULT ISpeechVoice_IsUISupported(ISpeechVoice* This,const BSTR TypeOfUI,const VARIANT *ExtraData,VARIANT_BOOL *Supported) {
  13002. return This->lpVtbl->IsUISupported(This,TypeOfUI,ExtraData,Supported);
  13003. }
  13004. static FORCEINLINE HRESULT ISpeechVoice_DisplayUI(ISpeechVoice* This,LONG hWndParent,BSTR Title,const BSTR TypeOfUI,const VARIANT *ExtraData) {
  13005. return This->lpVtbl->DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData);
  13006. }
  13007. #endif
  13008. #endif
  13009. #endif
  13010. #endif /* __ISpeechVoice_INTERFACE_DEFINED__ */
  13011. /*****************************************************************************
  13012. * ISpeechVoiceStatus interface
  13013. */
  13014. #ifndef __ISpeechVoiceStatus_INTERFACE_DEFINED__
  13015. #define __ISpeechVoiceStatus_INTERFACE_DEFINED__
  13016. DEFINE_GUID(IID_ISpeechVoiceStatus, 0x8be47b07, 0x57f6, 0x11d2, 0x9e,0xee, 0x00,0xc0,0x4f,0x79,0x73,0x96);
  13017. #if defined(__cplusplus) && !defined(CINTERFACE)
  13018. MIDL_INTERFACE("8be47b07-57f6-11d2-9eee-00c04f797396")
  13019. ISpeechVoiceStatus : public IDispatch
  13020. {
  13021. virtual HRESULT STDMETHODCALLTYPE get_CurrentStreamNumber(
  13022. LONG *StreamNumber) = 0;
  13023. virtual HRESULT STDMETHODCALLTYPE get_LastStreamNumberQueued(
  13024. LONG *StreamNumber) = 0;
  13025. virtual HRESULT STDMETHODCALLTYPE get_LastHResult(
  13026. LONG *HResult) = 0;
  13027. virtual HRESULT STDMETHODCALLTYPE get_RunningState(
  13028. SpeechRunState *State) = 0;
  13029. virtual HRESULT STDMETHODCALLTYPE get_InputWordPosition(
  13030. LONG *Position) = 0;
  13031. virtual HRESULT STDMETHODCALLTYPE get_InputWordLength(
  13032. LONG *Length) = 0;
  13033. virtual HRESULT STDMETHODCALLTYPE get_InputSentencePosition(
  13034. LONG *Position) = 0;
  13035. virtual HRESULT STDMETHODCALLTYPE get_InputSentenceLength(
  13036. LONG *Length) = 0;
  13037. virtual HRESULT STDMETHODCALLTYPE get_LastBookmark(
  13038. BSTR *Bookmark) = 0;
  13039. virtual HRESULT STDMETHODCALLTYPE get_LastBookmarkId(
  13040. LONG *BookmarkId) = 0;
  13041. virtual HRESULT STDMETHODCALLTYPE get_PhonemeId(
  13042. short *PhoneId) = 0;
  13043. virtual HRESULT STDMETHODCALLTYPE get_VisemeId(
  13044. short *VisemeId) = 0;
  13045. };
  13046. #ifdef __CRT_UUID_DECL
  13047. __CRT_UUID_DECL(ISpeechVoiceStatus, 0x8be47b07, 0x57f6, 0x11d2, 0x9e,0xee, 0x00,0xc0,0x4f,0x79,0x73,0x96)
  13048. #endif
  13049. #else
  13050. typedef struct ISpeechVoiceStatusVtbl {
  13051. BEGIN_INTERFACE
  13052. /*** IUnknown methods ***/
  13053. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  13054. ISpeechVoiceStatus *This,
  13055. REFIID riid,
  13056. void **ppvObject);
  13057. ULONG (STDMETHODCALLTYPE *AddRef)(
  13058. ISpeechVoiceStatus *This);
  13059. ULONG (STDMETHODCALLTYPE *Release)(
  13060. ISpeechVoiceStatus *This);
  13061. /*** IDispatch methods ***/
  13062. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  13063. ISpeechVoiceStatus *This,
  13064. UINT *pctinfo);
  13065. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  13066. ISpeechVoiceStatus *This,
  13067. UINT iTInfo,
  13068. LCID lcid,
  13069. ITypeInfo **ppTInfo);
  13070. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  13071. ISpeechVoiceStatus *This,
  13072. REFIID riid,
  13073. LPOLESTR *rgszNames,
  13074. UINT cNames,
  13075. LCID lcid,
  13076. DISPID *rgDispId);
  13077. HRESULT (STDMETHODCALLTYPE *Invoke)(
  13078. ISpeechVoiceStatus *This,
  13079. DISPID dispIdMember,
  13080. REFIID riid,
  13081. LCID lcid,
  13082. WORD wFlags,
  13083. DISPPARAMS *pDispParams,
  13084. VARIANT *pVarResult,
  13085. EXCEPINFO *pExcepInfo,
  13086. UINT *puArgErr);
  13087. /*** ISpeechVoiceStatus methods ***/
  13088. HRESULT (STDMETHODCALLTYPE *get_CurrentStreamNumber)(
  13089. ISpeechVoiceStatus *This,
  13090. LONG *StreamNumber);
  13091. HRESULT (STDMETHODCALLTYPE *get_LastStreamNumberQueued)(
  13092. ISpeechVoiceStatus *This,
  13093. LONG *StreamNumber);
  13094. HRESULT (STDMETHODCALLTYPE *get_LastHResult)(
  13095. ISpeechVoiceStatus *This,
  13096. LONG *HResult);
  13097. HRESULT (STDMETHODCALLTYPE *get_RunningState)(
  13098. ISpeechVoiceStatus *This,
  13099. SpeechRunState *State);
  13100. HRESULT (STDMETHODCALLTYPE *get_InputWordPosition)(
  13101. ISpeechVoiceStatus *This,
  13102. LONG *Position);
  13103. HRESULT (STDMETHODCALLTYPE *get_InputWordLength)(
  13104. ISpeechVoiceStatus *This,
  13105. LONG *Length);
  13106. HRESULT (STDMETHODCALLTYPE *get_InputSentencePosition)(
  13107. ISpeechVoiceStatus *This,
  13108. LONG *Position);
  13109. HRESULT (STDMETHODCALLTYPE *get_InputSentenceLength)(
  13110. ISpeechVoiceStatus *This,
  13111. LONG *Length);
  13112. HRESULT (STDMETHODCALLTYPE *get_LastBookmark)(
  13113. ISpeechVoiceStatus *This,
  13114. BSTR *Bookmark);
  13115. HRESULT (STDMETHODCALLTYPE *get_LastBookmarkId)(
  13116. ISpeechVoiceStatus *This,
  13117. LONG *BookmarkId);
  13118. HRESULT (STDMETHODCALLTYPE *get_PhonemeId)(
  13119. ISpeechVoiceStatus *This,
  13120. short *PhoneId);
  13121. HRESULT (STDMETHODCALLTYPE *get_VisemeId)(
  13122. ISpeechVoiceStatus *This,
  13123. short *VisemeId);
  13124. END_INTERFACE
  13125. } ISpeechVoiceStatusVtbl;
  13126. interface ISpeechVoiceStatus {
  13127. CONST_VTBL ISpeechVoiceStatusVtbl* lpVtbl;
  13128. };
  13129. #ifdef COBJMACROS
  13130. #ifndef WIDL_C_INLINE_WRAPPERS
  13131. /*** IUnknown methods ***/
  13132. #define ISpeechVoiceStatus_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  13133. #define ISpeechVoiceStatus_AddRef(This) (This)->lpVtbl->AddRef(This)
  13134. #define ISpeechVoiceStatus_Release(This) (This)->lpVtbl->Release(This)
  13135. /*** IDispatch methods ***/
  13136. #define ISpeechVoiceStatus_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  13137. #define ISpeechVoiceStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13138. #define ISpeechVoiceStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13139. #define ISpeechVoiceStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13140. /*** ISpeechVoiceStatus methods ***/
  13141. #define ISpeechVoiceStatus_get_CurrentStreamNumber(This,StreamNumber) (This)->lpVtbl->get_CurrentStreamNumber(This,StreamNumber)
  13142. #define ISpeechVoiceStatus_get_LastStreamNumberQueued(This,StreamNumber) (This)->lpVtbl->get_LastStreamNumberQueued(This,StreamNumber)
  13143. #define ISpeechVoiceStatus_get_LastHResult(This,HResult) (This)->lpVtbl->get_LastHResult(This,HResult)
  13144. #define ISpeechVoiceStatus_get_RunningState(This,State) (This)->lpVtbl->get_RunningState(This,State)
  13145. #define ISpeechVoiceStatus_get_InputWordPosition(This,Position) (This)->lpVtbl->get_InputWordPosition(This,Position)
  13146. #define ISpeechVoiceStatus_get_InputWordLength(This,Length) (This)->lpVtbl->get_InputWordLength(This,Length)
  13147. #define ISpeechVoiceStatus_get_InputSentencePosition(This,Position) (This)->lpVtbl->get_InputSentencePosition(This,Position)
  13148. #define ISpeechVoiceStatus_get_InputSentenceLength(This,Length) (This)->lpVtbl->get_InputSentenceLength(This,Length)
  13149. #define ISpeechVoiceStatus_get_LastBookmark(This,Bookmark) (This)->lpVtbl->get_LastBookmark(This,Bookmark)
  13150. #define ISpeechVoiceStatus_get_LastBookmarkId(This,BookmarkId) (This)->lpVtbl->get_LastBookmarkId(This,BookmarkId)
  13151. #define ISpeechVoiceStatus_get_PhonemeId(This,PhoneId) (This)->lpVtbl->get_PhonemeId(This,PhoneId)
  13152. #define ISpeechVoiceStatus_get_VisemeId(This,VisemeId) (This)->lpVtbl->get_VisemeId(This,VisemeId)
  13153. #else
  13154. /*** IUnknown methods ***/
  13155. static FORCEINLINE HRESULT ISpeechVoiceStatus_QueryInterface(ISpeechVoiceStatus* This,REFIID riid,void **ppvObject) {
  13156. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  13157. }
  13158. static FORCEINLINE ULONG ISpeechVoiceStatus_AddRef(ISpeechVoiceStatus* This) {
  13159. return This->lpVtbl->AddRef(This);
  13160. }
  13161. static FORCEINLINE ULONG ISpeechVoiceStatus_Release(ISpeechVoiceStatus* This) {
  13162. return This->lpVtbl->Release(This);
  13163. }
  13164. /*** IDispatch methods ***/
  13165. static FORCEINLINE HRESULT ISpeechVoiceStatus_GetTypeInfoCount(ISpeechVoiceStatus* This,UINT *pctinfo) {
  13166. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  13167. }
  13168. static FORCEINLINE HRESULT ISpeechVoiceStatus_GetTypeInfo(ISpeechVoiceStatus* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  13169. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  13170. }
  13171. static FORCEINLINE HRESULT ISpeechVoiceStatus_GetIDsOfNames(ISpeechVoiceStatus* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  13172. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  13173. }
  13174. static FORCEINLINE HRESULT ISpeechVoiceStatus_Invoke(ISpeechVoiceStatus* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  13175. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  13176. }
  13177. /*** ISpeechVoiceStatus methods ***/
  13178. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_CurrentStreamNumber(ISpeechVoiceStatus* This,LONG *StreamNumber) {
  13179. return This->lpVtbl->get_CurrentStreamNumber(This,StreamNumber);
  13180. }
  13181. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_LastStreamNumberQueued(ISpeechVoiceStatus* This,LONG *StreamNumber) {
  13182. return This->lpVtbl->get_LastStreamNumberQueued(This,StreamNumber);
  13183. }
  13184. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_LastHResult(ISpeechVoiceStatus* This,LONG *HResult) {
  13185. return This->lpVtbl->get_LastHResult(This,HResult);
  13186. }
  13187. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_RunningState(ISpeechVoiceStatus* This,SpeechRunState *State) {
  13188. return This->lpVtbl->get_RunningState(This,State);
  13189. }
  13190. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_InputWordPosition(ISpeechVoiceStatus* This,LONG *Position) {
  13191. return This->lpVtbl->get_InputWordPosition(This,Position);
  13192. }
  13193. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_InputWordLength(ISpeechVoiceStatus* This,LONG *Length) {
  13194. return This->lpVtbl->get_InputWordLength(This,Length);
  13195. }
  13196. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_InputSentencePosition(ISpeechVoiceStatus* This,LONG *Position) {
  13197. return This->lpVtbl->get_InputSentencePosition(This,Position);
  13198. }
  13199. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_InputSentenceLength(ISpeechVoiceStatus* This,LONG *Length) {
  13200. return This->lpVtbl->get_InputSentenceLength(This,Length);
  13201. }
  13202. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_LastBookmark(ISpeechVoiceStatus* This,BSTR *Bookmark) {
  13203. return This->lpVtbl->get_LastBookmark(This,Bookmark);
  13204. }
  13205. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_LastBookmarkId(ISpeechVoiceStatus* This,LONG *BookmarkId) {
  13206. return This->lpVtbl->get_LastBookmarkId(This,BookmarkId);
  13207. }
  13208. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_PhonemeId(ISpeechVoiceStatus* This,short *PhoneId) {
  13209. return This->lpVtbl->get_PhonemeId(This,PhoneId);
  13210. }
  13211. static FORCEINLINE HRESULT ISpeechVoiceStatus_get_VisemeId(ISpeechVoiceStatus* This,short *VisemeId) {
  13212. return This->lpVtbl->get_VisemeId(This,VisemeId);
  13213. }
  13214. #endif
  13215. #endif
  13216. #endif
  13217. #endif /* __ISpeechVoiceStatus_INTERFACE_DEFINED__ */
  13218. typedef enum SpeechVisemeType {
  13219. SVP_0 = 0,
  13220. SVP_1 = 1,
  13221. SVP_2 = 2,
  13222. SVP_3 = 3,
  13223. SVP_4 = 4,
  13224. SVP_5 = 5,
  13225. SVP_6 = 6,
  13226. SVP_7 = 7,
  13227. SVP_8 = 8,
  13228. SVP_9 = 9,
  13229. SVP_10 = 10,
  13230. SVP_11 = 11,
  13231. SVP_12 = 12,
  13232. SVP_13 = 13,
  13233. SVP_14 = 14,
  13234. SVP_15 = 15,
  13235. SVP_16 = 16,
  13236. SVP_17 = 17,
  13237. SVP_18 = 18,
  13238. SVP_19 = 19,
  13239. SVP_20 = 20,
  13240. SVP_21 = 21
  13241. } SpeechVisemeType;
  13242. typedef enum SpeechVisemeFeature {
  13243. SVF_None = 0,
  13244. SVF_Stressed = SPVFEATURE_STRESSED,
  13245. SVF_Emphasis = SPVFEATURE_EMPHASIS
  13246. } SpeechVisemeFeature;
  13247. typedef enum DISPID_SpeechVoiceEvent {
  13248. DISPID_SVEStreamStart = 1,
  13249. DISPID_SVEStreamEnd = 2,
  13250. DISPID_SVEVoiceChange = 3,
  13251. DISPID_SVEBookmark = 4,
  13252. DISPID_SVEWord = 5,
  13253. DISPID_SVEPhoneme = 6,
  13254. DISPID_SVESentenceBoundary = 7,
  13255. DISPID_SVEViseme = 8,
  13256. DISPID_SVEAudioLevel = 9,
  13257. DISPID_SVEEnginePrivate = 10
  13258. } DISPID_SpeechVoiceEvent;
  13259. typedef enum DISPID_SpeechRecognizer {
  13260. DISPID_SRRecognizer = 1,
  13261. DISPID_SRAllowAudioInputFormatChangesOnNextSet = 2,
  13262. DISPID_SRAudioInput = 3,
  13263. DISPID_SRAudioInputStream = 4,
  13264. DISPID_SRIsShared = 5,
  13265. DISPID_SRState = 6,
  13266. DISPID_SRStatus = 7,
  13267. DISPID_SRProfile = 8,
  13268. DISPID_SREmulateRecognition = 9,
  13269. DISPID_SRCreateRecoContext = 10,
  13270. DISPID_SRGetFormat = 11,
  13271. DISPID_SRSetPropertyNumber = 12,
  13272. DISPID_SRGetPropertyNumber = 13,
  13273. DISPID_SRSetPropertyString = 14,
  13274. DISPID_SRGetPropertyString = 15,
  13275. DISPID_SRIsUISupported = 16,
  13276. DISPID_SRDisplayUI = 17,
  13277. DISPID_SRGetRecognizers = 18,
  13278. DISPID_SVGetAudioInputs = 19,
  13279. DISPID_SVGetProfiles = 20
  13280. } DISPID_SpeechRecognizer;
  13281. typedef enum SpeechRecognizerState {
  13282. SRSInactive = SPRST_INACTIVE,
  13283. SRSActive = SPRST_ACTIVE,
  13284. SRSActiveAlways = SPRST_ACTIVE_ALWAYS,
  13285. SRSInactiveWithPurge = SPRST_INACTIVE_WITH_PURGE
  13286. } SpeechRecognizerState;
  13287. typedef enum SpeechDisplayAttributes {
  13288. SDA_No_Trailing_Space = 0,
  13289. SDA_One_Trailing_Space = SPAF_ONE_TRAILING_SPACE,
  13290. SDA_Two_Trailing_Spaces = SPAF_TWO_TRAILING_SPACES,
  13291. SDA_Consume_Leading_Spaces = SPAF_CONSUME_LEADING_SPACES
  13292. } SpeechDisplayAttributes;
  13293. typedef enum SpeechFormatType {
  13294. SFTInput = SPWF_INPUT,
  13295. SFTSREngine = SPWF_SRENGINE
  13296. } SpeechFormatType;
  13297. typedef enum DISPID_SpeechRecognizerStatus {
  13298. DISPID_SRSAudioStatus = 1,
  13299. DISPID_SRSCurrentStreamPosition = 2,
  13300. DISPID_SRSCurrentStreamNumber = 3,
  13301. DISPID_SRSNumberOfActiveRules = 4,
  13302. DISPID_SRSClsidEngine = 5,
  13303. DISPID_SRSSupportedLanguages = 6
  13304. } DISPID_SpeechRecognizerStatus;
  13305. typedef enum DISPID_SpeechRecoContext {
  13306. DISPID_SRCRecognizer = 1,
  13307. DISPID_SRCAudioInInterferenceStatus = 2,
  13308. DISPID_SRCRequestedUIType = 3,
  13309. DISPID_SRCVoice = 4,
  13310. DISPID_SRAllowVoiceFormatMatchingOnNextSet = 5,
  13311. DISPID_SRCVoicePurgeEvent = 6,
  13312. DISPID_SRCEventInterests = 7,
  13313. DISPID_SRCCmdMaxAlternates = 8,
  13314. DISPID_SRCState = 9,
  13315. DISPID_SRCRetainedAudio = 10,
  13316. DISPID_SRCRetainedAudioFormat = 11,
  13317. DISPID_SRCPause = 12,
  13318. DISPID_SRCResume = 13,
  13319. DISPID_SRCCreateGrammar = 14,
  13320. DISPID_SRCCreateResultFromMemory = 15,
  13321. DISPID_SRCBookmark = 16,
  13322. DISPID_SRCSetAdaptationData = 17
  13323. } DISPID_SpeechRecoContext;
  13324. typedef enum SpeechRetainedAudioOptions {
  13325. SRAONone = SPAO_NONE,
  13326. SRAORetainAudio = SPAO_RETAIN_AUDIO
  13327. } SpeechRetainedAudioOptions;
  13328. typedef enum SpeechBookmarkOptions {
  13329. SBONone = SPBO_NONE,
  13330. SBOPause = SPBO_PAUSE
  13331. } SpeechBookmarkOptions;
  13332. typedef enum SpeechInterference {
  13333. SINone = SPINTERFERENCE_NONE,
  13334. SINoise = SPINTERFERENCE_NOISE,
  13335. SINoSignal = SPINTERFERENCE_NOSIGNAL,
  13336. SITooLoud = SPINTERFERENCE_TOOLOUD,
  13337. SITooQuiet = SPINTERFERENCE_TOOQUIET,
  13338. SITooFast = SPINTERFERENCE_TOOFAST,
  13339. SITooSlow = SPINTERFERENCE_TOOSLOW
  13340. } SpeechInterference;
  13341. typedef enum SpeechRecoEvents {
  13342. SREStreamEnd = 0x1,
  13343. SRESoundStart = 0x2,
  13344. SRESoundEnd = 0x4,
  13345. SREPhraseStart = 0x8,
  13346. SRERecognition = 0x10,
  13347. SREHypothesis = 0x20,
  13348. SREBookmark = 0x40,
  13349. SREPropertyNumChange = 0x80,
  13350. SREPropertyStringChange = 0x100,
  13351. SREFalseRecognition = 0x200,
  13352. SREInterference = 0x400,
  13353. SRERequestUI = 0x800,
  13354. SREStateChange = 0x1000,
  13355. SREAdaptation = 0x2000,
  13356. SREStreamStart = 0x4000,
  13357. SRERecoOtherContext = 0x8000,
  13358. SREAudioLevel = 0x10000,
  13359. SREPrivate = 0x40000,
  13360. SREAllEvents = 0x5ffff
  13361. } SpeechRecoEvents;
  13362. typedef enum SpeechRecoContextState {
  13363. SRCS_Disabled = SPCS_DISABLED,
  13364. SRCS_Enabled = SPCS_ENABLED
  13365. } SpeechRecoContextState;
  13366. typedef enum DISPIDSPRG {
  13367. DISPID_SRGId = 1,
  13368. DISPID_SRGRecoContext = 2,
  13369. DISPID_SRGState = 3,
  13370. DISPID_SRGRules = 4,
  13371. DISPID_SRGReset = 5,
  13372. DISPID_SRGCommit = 6,
  13373. DISPID_SRGCmdLoadFromFile = 7,
  13374. DISPID_SRGCmdLoadFromObject = 8,
  13375. DISPID_SRGCmdLoadFromResource = 9,
  13376. DISPID_SRGCmdLoadFromMemory = 10,
  13377. DISPID_SRGCmdLoadFromProprietaryGrammar = 11,
  13378. DISPID_SRGCmdSetRuleState = 12,
  13379. DISPID_SRGCmdSetRuleIdState = 13,
  13380. DISPID_SRGDictationLoad = 14,
  13381. DISPID_SRGDictationUnload = 15,
  13382. DISPID_SRGDictationSetState = 16,
  13383. DISPID_SRGSetWordSequenceData = 17,
  13384. DISPID_SRGSetTextSelection = 18,
  13385. DISPID_SRGIsPronounceable = 19
  13386. } DISPIDSPRG;
  13387. typedef enum SpeechLoadOption {
  13388. SLOStatic = SPLO_STATIC,
  13389. SLODynamic = SPLO_DYNAMIC
  13390. } SpeechLoadOption;
  13391. typedef enum SpeechWordPronounceable {
  13392. SWPUnknownWordUnpronounceable = SPWP_UNKNOWN_WORD_UNPRONOUNCEABLE,
  13393. SWPUnknownWordPronounceable = SPWP_UNKNOWN_WORD_PRONOUNCEABLE,
  13394. SWPKnownWordPronounceable = SPWP_KNOWN_WORD_PRONOUNCEABLE
  13395. } SpeechWordPronounceable;
  13396. typedef enum SpeechGrammarState {
  13397. SGSEnabled = SPGS_ENABLED,
  13398. SGSDisabled = SPGS_DISABLED,
  13399. SGSExclusive = SPGS_EXCLUSIVE
  13400. } SpeechGrammarState;
  13401. typedef enum SpeechRuleState {
  13402. SGDSInactive = SPRS_INACTIVE,
  13403. SGDSActive = SPRS_ACTIVE,
  13404. SGDSActiveWithAutoPause = SPRS_ACTIVE_WITH_AUTO_PAUSE,
  13405. SGDSActiveUserDelimited = SPRS_ACTIVE_USER_DELIMITED
  13406. } SpeechRuleState;
  13407. typedef enum SpeechRuleAttributes {
  13408. SRATopLevel = SPRAF_TopLevel,
  13409. SRADefaultToActive = SPRAF_Active,
  13410. SRAExport = SPRAF_Export,
  13411. SRAImport = SPRAF_Import,
  13412. SRAInterpreter = SPRAF_Interpreter,
  13413. SRADynamic = SPRAF_Dynamic,
  13414. SRARoot = SPRAF_Root
  13415. } SpeechRuleAttributes;
  13416. typedef enum SpeechGrammarWordType {
  13417. SGDisplay = SPWT_DISPLAY,
  13418. SGLexical = SPWT_LEXICAL,
  13419. SGPronounciation = SPWT_PRONUNCIATION,
  13420. SGLexicalNoSpecialChars = SPWT_LEXICAL_NO_SPECIAL_CHARS
  13421. } SpeechGrammarWordType;
  13422. typedef enum DISPID_SpeechRecoContextEvents {
  13423. DISPID_SRCEStartStream = 1,
  13424. DISPID_SRCEEndStream = 2,
  13425. DISPID_SRCEBookmark = 3,
  13426. DISPID_SRCESoundStart = 4,
  13427. DISPID_SRCESoundEnd = 5,
  13428. DISPID_SRCEPhraseStart = 6,
  13429. DISPID_SRCERecognition = 7,
  13430. DISPID_SRCEHypothesis = 8,
  13431. DISPID_SRCEPropertyNumberChange = 9,
  13432. DISPID_SRCEPropertyStringChange = 10,
  13433. DISPID_SRCEFalseRecognition = 11,
  13434. DISPID_SRCEInterference = 12,
  13435. DISPID_SRCERequestUI = 13,
  13436. DISPID_SRCERecognizerStateChange = 14,
  13437. DISPID_SRCEAdaptation = 15,
  13438. DISPID_SRCERecognitionForOtherContext = 16,
  13439. DISPID_SRCEAudioLevel = 17,
  13440. DISPID_SRCEEnginePrivate = 18
  13441. } DISPID_SpeechRecoContextEvents;
  13442. typedef enum SpeechRecognitionType {
  13443. SRTStandard = 0,
  13444. SRTAutopause = SPREF_AutoPause,
  13445. SRTEmulated = SPREF_Emulated,
  13446. SRTSMLTimeout = SPREF_SMLTimeout,
  13447. SRTExtendableParse = SPREF_ExtendableParse,
  13448. SRTReSent = SPREF_ReSent
  13449. } SpeechRecognitionType;
  13450. typedef enum DISPID_SpeechGrammarRule {
  13451. DISPID_SGRAttributes = 1,
  13452. DISPID_SGRInitialState = 2,
  13453. DISPID_SGRName = 3,
  13454. DISPID_SGRId = 4,
  13455. DISPID_SGRClear = 5,
  13456. DISPID_SGRAddResource = 6,
  13457. DISPID_SGRAddState = 7
  13458. } DISPID_SpeechGrammarRule;
  13459. typedef enum DISPID_SpeechGrammarRules {
  13460. DISPID_SGRsCount = 1,
  13461. DISPID_SGRsDynamic = 2,
  13462. DISPID_SGRsAdd = 3,
  13463. DISPID_SGRsCommit = 4,
  13464. DISPID_SGRsCommitAndSave = 5,
  13465. DISPID_SGRsFindRule = 6,
  13466. DISPID_SGRsItem = DISPID_VALUE,
  13467. DISPID_SGRs_NewEnum = DISPID_NEWENUM
  13468. } DISPID_SpeechGrammarRules;
  13469. typedef enum DISPID_SpeechGrammarRuleState {
  13470. DISPID_SGRSRule = 1,
  13471. DISPID_SGRSTransitions = 2,
  13472. DISPID_SGRSAddWordTransition = 3,
  13473. DISPID_SGRSAddRuleTransition = 4,
  13474. DISPID_SGRSAddSpecialTransition = 5
  13475. } DISPID_SpeechGrammarRuleState;
  13476. typedef enum SpeechSpecialTransitionType {
  13477. SSTTWildcard = 1,
  13478. SSTTDictation = 2,
  13479. SSTTTextBuffer = 3
  13480. } SpeechSpecialTransitionType;
  13481. typedef enum DISPID_SpeechGrammarRuleStateTransitions {
  13482. DISPID_SGRSTsCount = 1,
  13483. DISPID_SGRSTsItem = DISPID_VALUE,
  13484. DISPID_SGRSTs_NewEnum = DISPID_NEWENUM
  13485. } DISPID_SpeechGrammarRuleStateTransitions;
  13486. typedef enum DISPID_SpeechGrammarRuleStateTransition {
  13487. DISPID_SGRSTType = 1,
  13488. DISPID_SGRSTText = 2,
  13489. DISPID_SGRSTRule = 3,
  13490. DISPID_SGRSTWeight = 4,
  13491. DISPID_SGRSTPropertyName = 5,
  13492. DISPID_SGRSTPropertyId = 6,
  13493. DISPID_SGRSTPropertyValue = 7,
  13494. DISPID_SGRSTNextState = 8
  13495. } DISPID_SpeechGrammarRuleStateTransition;
  13496. typedef enum SpeechGrammarRuleStateTransitionType {
  13497. SGRSTTEpsilon = 0,
  13498. SGRSTTWord = 1,
  13499. SGRSTTRule = 2,
  13500. SGRSTTDictation = 3,
  13501. SGRSTTWildcard = 4,
  13502. SGRSTTTextBuffer = 5
  13503. } SpeechGrammarRuleStateTransitionType;
  13504. typedef enum DISPIDSPTSI {
  13505. DISPIDSPTSI_ActiveOffset = 1,
  13506. DISPIDSPTSI_ActiveLength = 2,
  13507. DISPIDSPTSI_SelectionOffset = 3,
  13508. DISPIDSPTSI_SelectionLength = 4
  13509. } DISPIDSPTSI;
  13510. typedef enum DISPID_SpeechRecoResult {
  13511. DISPID_SRRRecoContext = 1,
  13512. DISPID_SRRTimes = 2,
  13513. DISPID_SRRAudioFormat = 3,
  13514. DISPID_SRRPhraseInfo = 4,
  13515. DISPID_SRRAlternates = 5,
  13516. DISPID_SRRAudio = 6,
  13517. DISPID_SRRSpeakAudio = 7,
  13518. DISPID_SRRSaveToMemory = 8,
  13519. DISPID_SRRDiscardResultInfo = 9
  13520. } DISPID_SpeechRecoResult;
  13521. typedef enum SpeechDiscardType {
  13522. SDTProperty = SPDF_PROPERTY,
  13523. SDTReplacement = SPDF_REPLACEMENT,
  13524. SDTRule = SPDF_RULE,
  13525. SDTDisplayText = SPDF_DISPLAYTEXT,
  13526. SDTLexicalForm = SPDF_LEXICALFORM,
  13527. SDTPronunciation = SPDF_PRONUNCIATION,
  13528. SDTAudio = SPDF_AUDIO,
  13529. SDTAlternates = SPDF_ALTERNATES,
  13530. SDTAll = SPDF_ALL
  13531. } SpeechDiscardType;
  13532. typedef enum SpeechEmulationCompareFlags {
  13533. SECFIgnoreCase = 0x1,
  13534. SECFIgnoreKanaType = 0x10000,
  13535. SECFIgnoreWidth = 0x20000,
  13536. SECFNoSpecialChars = 0x20000000,
  13537. SECFEmulateResult = 0x40000000,
  13538. SECFDefault = (SECFIgnoreCase | SECFIgnoreKanaType) | SECFIgnoreWidth
  13539. } SpeechEmulationCompareFlags;
  13540. typedef enum DISPID_SpeechXMLRecoResult {
  13541. DISPID_SRRGetXMLResult = DISPID_SRRDiscardResultInfo + 1,
  13542. DISPID_SRRGetXMLErrorInfo = DISPID_SRRGetXMLResult + 1
  13543. } DISPID_SpeechXMLRecoResult;
  13544. typedef enum DISPID_SpeechRecoResult2 {
  13545. DISPID_SRRSetTextFeedback = DISPID_SRRGetXMLErrorInfo + 1
  13546. } DISPID_SpeechRecoResult2;
  13547. typedef enum DISPID_SpeechPhraseBuilder {
  13548. DISPID_SPPBRestorePhraseFromMemory = 1
  13549. } DISPID_SpeechPhraseBuilder;
  13550. typedef enum DISPID_SpeechRecoResultTimes {
  13551. DISPID_SRRTStreamTime = 1,
  13552. DISPID_SRRTLength = 2,
  13553. DISPID_SRRTTickCount = 3,
  13554. DISPID_SRRTOffsetFromStart = 4
  13555. } DISPID_SpeechRecoResultTimes;
  13556. typedef enum DISPID_SpeechPhraseAlternate {
  13557. DISPID_SPARecoResult = 1,
  13558. DISPID_SPAStartElementInResult = 2,
  13559. DISPID_SPANumberOfElementsInResult = 3,
  13560. DISPID_SPAPhraseInfo = 4,
  13561. DISPID_SPACommit = 5
  13562. } DISPID_SpeechPhraseAlternate;
  13563. typedef enum DISPID_SpeechPhraseAlternates {
  13564. DISPID_SPAsCount = 1,
  13565. DISPID_SPAsItem = DISPID_VALUE,
  13566. DISPID_SPAs_NewEnum = DISPID_NEWENUM
  13567. } DISPID_SpeechPhraseAlternates;
  13568. typedef enum DISPID_SpeechPhraseInfo {
  13569. DISPID_SPILanguageId = 1,
  13570. DISPID_SPIGrammarId = 2,
  13571. DISPID_SPIStartTime = 3,
  13572. DISPID_SPIAudioStreamPosition = 4,
  13573. DISPID_SPIAudioSizeBytes = 5,
  13574. DISPID_SPIRetainedSizeBytes = 6,
  13575. DISPID_SPIAudioSizeTime = 7,
  13576. DISPID_SPIRule = 8,
  13577. DISPID_SPIProperties = 9,
  13578. DISPID_SPIElements = 10,
  13579. DISPID_SPIReplacements = 11,
  13580. DISPID_SPIEngineId = 12,
  13581. DISPID_SPIEnginePrivateData = 13,
  13582. DISPID_SPISaveToMemory = 14,
  13583. DISPID_SPIGetText = 15,
  13584. DISPID_SPIGetDisplayAttributes = 16
  13585. } DISPID_SpeechPhraseInfo;
  13586. typedef enum DISPID_SpeechPhraseElement {
  13587. DISPID_SPEAudioTimeOffset = 1,
  13588. DISPID_SPEAudioSizeTime = 2,
  13589. DISPID_SPEAudioStreamOffset = 3,
  13590. DISPID_SPEAudioSizeBytes = 4,
  13591. DISPID_SPERetainedStreamOffset = 5,
  13592. DISPID_SPERetainedSizeBytes = 6,
  13593. DISPID_SPEDisplayText = 7,
  13594. DISPID_SPELexicalForm = 8,
  13595. DISPID_SPEPronunciation = 9,
  13596. DISPID_SPEDisplayAttributes = 10,
  13597. DISPID_SPERequiredConfidence = 11,
  13598. DISPID_SPEActualConfidence = 12,
  13599. DISPID_SPEEngineConfidence = 13
  13600. } DISPID_SpeechPhraseElement;
  13601. typedef enum SpeechEngineConfidence {
  13602. SECLowConfidence = -1,
  13603. SECNormalConfidence = 0,
  13604. SECHighConfidence = 1
  13605. } SpeechEngineConfidence;
  13606. typedef enum DISPID_SpeechPhraseElements {
  13607. DISPID_SPEsCount = 1,
  13608. DISPID_SPEsItem = DISPID_VALUE,
  13609. DISPID_SPEs_NewEnum = DISPID_NEWENUM
  13610. } DISPID_SpeechPhraseElements;
  13611. typedef enum DISPID_SpeechPhraseReplacement {
  13612. DISPID_SPRDisplayAttributes = 1,
  13613. DISPID_SPRText = 2,
  13614. DISPID_SPRFirstElement = 3,
  13615. DISPID_SPRNumberOfElements = 4
  13616. } DISPID_SpeechPhraseReplacement;
  13617. typedef enum DISPID_SpeechPhraseReplacements {
  13618. DISPID_SPRsCount = 1,
  13619. DISPID_SPRsItem = DISPID_VALUE,
  13620. DISPID_SPRs_NewEnum = DISPID_NEWENUM
  13621. } DISPID_SpeechPhraseReplacements;
  13622. typedef enum DISPID_SpeechPhraseProperty {
  13623. DISPID_SPPName = 1,
  13624. DISPID_SPPId = 2,
  13625. DISPID_SPPValue = 3,
  13626. DISPID_SPPFirstElement = 4,
  13627. DISPID_SPPNumberOfElements = 5,
  13628. DISPID_SPPEngineConfidence = 6,
  13629. DISPID_SPPConfidence = 7,
  13630. DISPID_SPPParent = 8,
  13631. DISPID_SPPChildren = 9
  13632. } DISPID_SpeechPhraseProperty;
  13633. typedef enum DISPID_SpeechPhraseProperties {
  13634. DISPID_SPPsCount = 1,
  13635. DISPID_SPPsItem = DISPID_VALUE,
  13636. DISPID_SPPs_NewEnum = DISPID_NEWENUM
  13637. } DISPID_SpeechPhraseProperties;
  13638. typedef enum DISPID_SpeechPhraseRule {
  13639. DISPID_SPRuleName = 1,
  13640. DISPID_SPRuleId = 2,
  13641. DISPID_SPRuleFirstElement = 3,
  13642. DISPID_SPRuleNumberOfElements = 4,
  13643. DISPID_SPRuleParent = 5,
  13644. DISPID_SPRuleChildren = 6,
  13645. DISPID_SPRuleConfidence = 7,
  13646. DISPID_SPRuleEngineConfidence = 8
  13647. } DISPID_SpeechPhraseRule;
  13648. typedef enum DISPID_SpeechPhraseRules {
  13649. DISPID_SPRulesCount = 1,
  13650. DISPID_SPRulesItem = DISPID_VALUE,
  13651. DISPID_SPRules_NewEnum = DISPID_NEWENUM
  13652. } DISPID_SpeechPhraseRules;
  13653. typedef enum DISPID_SpeechLexicon {
  13654. DISPID_SLGenerationId = 1,
  13655. DISPID_SLGetWords = 2,
  13656. DISPID_SLAddPronunciation = 3,
  13657. DISPID_SLAddPronunciationByPhoneIds = 4,
  13658. DISPID_SLRemovePronunciation = 5,
  13659. DISPID_SLRemovePronunciationByPhoneIds = 6,
  13660. DISPID_SLGetPronunciations = 7,
  13661. DISPID_SLGetGenerationChange = 8
  13662. } DISPID_SpeechLexicon;
  13663. typedef enum SpeechLexiconType {
  13664. SLTUser = eLEXTYPE_USER,
  13665. SLTApp = eLEXTYPE_APP
  13666. } SpeechLexiconType;
  13667. typedef enum SpeechPartOfSpeech {
  13668. SPSNotOverriden = SPPS_NotOverriden,
  13669. SPSUnknown = SPPS_Unknown,
  13670. SPSNoun = SPPS_Noun,
  13671. SPSVerb = SPPS_Verb,
  13672. SPSModifier = SPPS_Modifier,
  13673. SPSFunction = SPPS_Function,
  13674. SPSInterjection = SPPS_Interjection,
  13675. SPSLMA = SPPS_LMA,
  13676. SPSSuppressWord = SPPS_SuppressWord
  13677. } SpeechPartOfSpeech;
  13678. typedef enum DISPID_SpeechLexiconWords {
  13679. DISPID_SLWsCount = 1,
  13680. DISPID_SLWsItem = DISPID_VALUE,
  13681. DISPID_SLWs_NewEnum = DISPID_NEWENUM
  13682. } DISPID_SpeechLexiconWords;
  13683. typedef enum SpeechWordType {
  13684. SWTAdded = eWORDTYPE_ADDED,
  13685. SWTDeleted = eWORDTYPE_DELETED
  13686. } SpeechWordType;
  13687. typedef enum DISPID_SpeechLexiconWord {
  13688. DISPID_SLWLangId = 1,
  13689. DISPID_SLWType = 2,
  13690. DISPID_SLWWord = 3,
  13691. DISPID_SLWPronunciations = 4
  13692. } DISPID_SpeechLexiconWord;
  13693. typedef enum DISPID_SpeechLexiconProns {
  13694. DISPID_SLPsCount = 1,
  13695. DISPID_SLPsItem = DISPID_VALUE,
  13696. DISPID_SLPs_NewEnum = DISPID_NEWENUM
  13697. } DISPID_SpeechLexiconProns;
  13698. typedef enum DISPID_SpeechLexiconPronunciation {
  13699. DISPID_SLPType = 1,
  13700. DISPID_SLPLangId = 2,
  13701. DISPID_SLPPartOfSpeech = 3,
  13702. DISPID_SLPPhoneIds = 4,
  13703. DISPID_SLPSymbolic = 5
  13704. } DISPID_SpeechLexiconPronunciation;
  13705. typedef enum DISPID_SpeechPhoneConverter {
  13706. DISPID_SPCLangId = 1,
  13707. DISPID_SPCPhoneToId = 2,
  13708. DISPID_SPCIdToPhone = 3
  13709. } DISPID_SpeechPhoneConverter;
  13710. /*****************************************************************************
  13711. * _ISpeechVoiceEvents dispinterface
  13712. */
  13713. #ifndef ___ISpeechVoiceEvents_DISPINTERFACE_DEFINED__
  13714. #define ___ISpeechVoiceEvents_DISPINTERFACE_DEFINED__
  13715. DEFINE_GUID(DIID__ISpeechVoiceEvents, 0xa372acd1, 0x3bef, 0x4bbd, 0x8f,0xfb, 0xcb,0x3e,0x2b,0x41,0x6a,0xf8);
  13716. #if defined(__cplusplus) && !defined(CINTERFACE)
  13717. MIDL_INTERFACE("a372acd1-3bef-4bbd-8ffb-cb3e2b416af8")
  13718. _ISpeechVoiceEvents : public IDispatch
  13719. {
  13720. };
  13721. #ifdef __CRT_UUID_DECL
  13722. __CRT_UUID_DECL(_ISpeechVoiceEvents, 0xa372acd1, 0x3bef, 0x4bbd, 0x8f,0xfb, 0xcb,0x3e,0x2b,0x41,0x6a,0xf8)
  13723. #endif
  13724. #else
  13725. typedef struct _ISpeechVoiceEventsVtbl {
  13726. BEGIN_INTERFACE
  13727. /*** IUnknown methods ***/
  13728. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  13729. _ISpeechVoiceEvents *This,
  13730. REFIID riid,
  13731. void **ppvObject);
  13732. ULONG (STDMETHODCALLTYPE *AddRef)(
  13733. _ISpeechVoiceEvents *This);
  13734. ULONG (STDMETHODCALLTYPE *Release)(
  13735. _ISpeechVoiceEvents *This);
  13736. /*** IDispatch methods ***/
  13737. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  13738. _ISpeechVoiceEvents *This,
  13739. UINT *pctinfo);
  13740. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  13741. _ISpeechVoiceEvents *This,
  13742. UINT iTInfo,
  13743. LCID lcid,
  13744. ITypeInfo **ppTInfo);
  13745. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  13746. _ISpeechVoiceEvents *This,
  13747. REFIID riid,
  13748. LPOLESTR *rgszNames,
  13749. UINT cNames,
  13750. LCID lcid,
  13751. DISPID *rgDispId);
  13752. HRESULT (STDMETHODCALLTYPE *Invoke)(
  13753. _ISpeechVoiceEvents *This,
  13754. DISPID dispIdMember,
  13755. REFIID riid,
  13756. LCID lcid,
  13757. WORD wFlags,
  13758. DISPPARAMS *pDispParams,
  13759. VARIANT *pVarResult,
  13760. EXCEPINFO *pExcepInfo,
  13761. UINT *puArgErr);
  13762. END_INTERFACE
  13763. } _ISpeechVoiceEventsVtbl;
  13764. interface _ISpeechVoiceEvents {
  13765. CONST_VTBL _ISpeechVoiceEventsVtbl* lpVtbl;
  13766. };
  13767. #ifdef COBJMACROS
  13768. #ifndef WIDL_C_INLINE_WRAPPERS
  13769. /*** IUnknown methods ***/
  13770. #define _ISpeechVoiceEvents_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  13771. #define _ISpeechVoiceEvents_AddRef(This) (This)->lpVtbl->AddRef(This)
  13772. #define _ISpeechVoiceEvents_Release(This) (This)->lpVtbl->Release(This)
  13773. /*** IDispatch methods ***/
  13774. #define _ISpeechVoiceEvents_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  13775. #define _ISpeechVoiceEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  13776. #define _ISpeechVoiceEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  13777. #define _ISpeechVoiceEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  13778. #else
  13779. /*** IUnknown methods ***/
  13780. static FORCEINLINE HRESULT _ISpeechVoiceEvents_QueryInterface(_ISpeechVoiceEvents* This,REFIID riid,void **ppvObject) {
  13781. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  13782. }
  13783. static FORCEINLINE ULONG _ISpeechVoiceEvents_AddRef(_ISpeechVoiceEvents* This) {
  13784. return This->lpVtbl->AddRef(This);
  13785. }
  13786. static FORCEINLINE ULONG _ISpeechVoiceEvents_Release(_ISpeechVoiceEvents* This) {
  13787. return This->lpVtbl->Release(This);
  13788. }
  13789. /*** IDispatch methods ***/
  13790. static FORCEINLINE HRESULT _ISpeechVoiceEvents_GetTypeInfoCount(_ISpeechVoiceEvents* This,UINT *pctinfo) {
  13791. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  13792. }
  13793. static FORCEINLINE HRESULT _ISpeechVoiceEvents_GetTypeInfo(_ISpeechVoiceEvents* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  13794. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  13795. }
  13796. static FORCEINLINE HRESULT _ISpeechVoiceEvents_GetIDsOfNames(_ISpeechVoiceEvents* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  13797. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  13798. }
  13799. static FORCEINLINE HRESULT _ISpeechVoiceEvents_Invoke(_ISpeechVoiceEvents* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  13800. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  13801. }
  13802. #endif
  13803. #endif
  13804. #endif
  13805. #endif /* ___ISpeechVoiceEvents_DISPINTERFACE_DEFINED__ */
  13806. /*****************************************************************************
  13807. * ISpeechRecognizer interface
  13808. */
  13809. #ifndef __ISpeechRecognizer_INTERFACE_DEFINED__
  13810. #define __ISpeechRecognizer_INTERFACE_DEFINED__
  13811. DEFINE_GUID(IID_ISpeechRecognizer, 0x2d5f1c0c, 0xbd75, 0x4b08, 0x94,0x78, 0x3b,0x11,0xfe,0xa2,0x58,0x6c);
  13812. #if defined(__cplusplus) && !defined(CINTERFACE)
  13813. MIDL_INTERFACE("2d5f1c0c-bd75-4b08-9478-3b11fea2586c")
  13814. ISpeechRecognizer : public IDispatch
  13815. {
  13816. virtual HRESULT STDMETHODCALLTYPE putref_Recognizer(
  13817. ISpeechObjectToken *Recognizer) = 0;
  13818. virtual HRESULT STDMETHODCALLTYPE get_Recognizer(
  13819. ISpeechObjectToken **Recognizer) = 0;
  13820. virtual HRESULT STDMETHODCALLTYPE put_AllowAudioInputFormatChangesOnNextSet(
  13821. VARIANT_BOOL Allow) = 0;
  13822. virtual HRESULT STDMETHODCALLTYPE get_AllowAudioInputFormatChangesOnNextSet(
  13823. VARIANT_BOOL *Allow) = 0;
  13824. virtual HRESULT STDMETHODCALLTYPE putref_AudioInput(
  13825. ISpeechObjectToken *AudioInput = 0) = 0;
  13826. virtual HRESULT STDMETHODCALLTYPE get_AudioInput(
  13827. ISpeechObjectToken **AudioInput) = 0;
  13828. virtual HRESULT STDMETHODCALLTYPE putref_AudioInputStream(
  13829. ISpeechBaseStream *AudioInputStream = 0) = 0;
  13830. virtual HRESULT STDMETHODCALLTYPE get_AudioInputStream(
  13831. ISpeechBaseStream **AudioInputStream) = 0;
  13832. virtual HRESULT STDMETHODCALLTYPE get_IsShared(
  13833. VARIANT_BOOL *Shared) = 0;
  13834. virtual HRESULT STDMETHODCALLTYPE put_State(
  13835. SpeechRecognizerState State) = 0;
  13836. virtual HRESULT STDMETHODCALLTYPE get_State(
  13837. SpeechRecognizerState *State) = 0;
  13838. virtual HRESULT STDMETHODCALLTYPE get_Status(
  13839. ISpeechRecognizerStatus **Status) = 0;
  13840. virtual HRESULT STDMETHODCALLTYPE putref_Profile(
  13841. ISpeechObjectToken *Profile = 0) = 0;
  13842. virtual HRESULT STDMETHODCALLTYPE get_Profile(
  13843. ISpeechObjectToken **Profile) = 0;
  13844. virtual HRESULT STDMETHODCALLTYPE EmulateRecognition(
  13845. VARIANT TextElements,
  13846. VARIANT *ElementDisplayAttributes = 0,
  13847. LONG LanguageId = 0) = 0;
  13848. virtual HRESULT STDMETHODCALLTYPE CreateRecoContext(
  13849. ISpeechRecoContext **NewContext) = 0;
  13850. virtual HRESULT STDMETHODCALLTYPE GetFormat(
  13851. SpeechFormatType Type,
  13852. ISpeechAudioFormat **Format) = 0;
  13853. virtual HRESULT STDMETHODCALLTYPE SetPropertyNumber(
  13854. const BSTR Name,
  13855. LONG Value,
  13856. VARIANT_BOOL *Supported) = 0;
  13857. virtual HRESULT STDMETHODCALLTYPE GetPropertyNumber(
  13858. const BSTR Name,
  13859. LONG *Value,
  13860. VARIANT_BOOL *Supported) = 0;
  13861. virtual HRESULT STDMETHODCALLTYPE SetPropertyString(
  13862. const BSTR Name,
  13863. const BSTR Value,
  13864. VARIANT_BOOL *Supported) = 0;
  13865. virtual HRESULT STDMETHODCALLTYPE GetPropertyString(
  13866. const BSTR Name,
  13867. BSTR *Value,
  13868. VARIANT_BOOL *Supported) = 0;
  13869. virtual HRESULT STDMETHODCALLTYPE IsUISupported(
  13870. const BSTR TypeOfUI,
  13871. const VARIANT *ExtraData,
  13872. VARIANT_BOOL *Supported) = 0;
  13873. virtual HRESULT STDMETHODCALLTYPE DisplayUI(
  13874. LONG hWndParent,
  13875. BSTR Title,
  13876. const BSTR TypeOfUI,
  13877. const VARIANT *ExtraData = 0) = 0;
  13878. virtual HRESULT STDMETHODCALLTYPE GetRecognizers(
  13879. BSTR RequiredAttributes,
  13880. BSTR OptionalAttributes,
  13881. ISpeechObjectTokens **ObjectTokens) = 0;
  13882. virtual HRESULT STDMETHODCALLTYPE GetAudioInputs(
  13883. BSTR RequiredAttributes,
  13884. BSTR OptionalAttributes,
  13885. ISpeechObjectTokens **ObjectTokens) = 0;
  13886. virtual HRESULT STDMETHODCALLTYPE GetProfiles(
  13887. BSTR RequiredAttributes,
  13888. BSTR OptionalAttributes,
  13889. ISpeechObjectTokens **ObjectTokens) = 0;
  13890. };
  13891. #ifdef __CRT_UUID_DECL
  13892. __CRT_UUID_DECL(ISpeechRecognizer, 0x2d5f1c0c, 0xbd75, 0x4b08, 0x94,0x78, 0x3b,0x11,0xfe,0xa2,0x58,0x6c)
  13893. #endif
  13894. #else
  13895. typedef struct ISpeechRecognizerVtbl {
  13896. BEGIN_INTERFACE
  13897. /*** IUnknown methods ***/
  13898. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  13899. ISpeechRecognizer *This,
  13900. REFIID riid,
  13901. void **ppvObject);
  13902. ULONG (STDMETHODCALLTYPE *AddRef)(
  13903. ISpeechRecognizer *This);
  13904. ULONG (STDMETHODCALLTYPE *Release)(
  13905. ISpeechRecognizer *This);
  13906. /*** IDispatch methods ***/
  13907. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  13908. ISpeechRecognizer *This,
  13909. UINT *pctinfo);
  13910. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  13911. ISpeechRecognizer *This,
  13912. UINT iTInfo,
  13913. LCID lcid,
  13914. ITypeInfo **ppTInfo);
  13915. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  13916. ISpeechRecognizer *This,
  13917. REFIID riid,
  13918. LPOLESTR *rgszNames,
  13919. UINT cNames,
  13920. LCID lcid,
  13921. DISPID *rgDispId);
  13922. HRESULT (STDMETHODCALLTYPE *Invoke)(
  13923. ISpeechRecognizer *This,
  13924. DISPID dispIdMember,
  13925. REFIID riid,
  13926. LCID lcid,
  13927. WORD wFlags,
  13928. DISPPARAMS *pDispParams,
  13929. VARIANT *pVarResult,
  13930. EXCEPINFO *pExcepInfo,
  13931. UINT *puArgErr);
  13932. /*** ISpeechRecognizer methods ***/
  13933. HRESULT (STDMETHODCALLTYPE *putref_Recognizer)(
  13934. ISpeechRecognizer *This,
  13935. ISpeechObjectToken *Recognizer);
  13936. HRESULT (STDMETHODCALLTYPE *get_Recognizer)(
  13937. ISpeechRecognizer *This,
  13938. ISpeechObjectToken **Recognizer);
  13939. HRESULT (STDMETHODCALLTYPE *put_AllowAudioInputFormatChangesOnNextSet)(
  13940. ISpeechRecognizer *This,
  13941. VARIANT_BOOL Allow);
  13942. HRESULT (STDMETHODCALLTYPE *get_AllowAudioInputFormatChangesOnNextSet)(
  13943. ISpeechRecognizer *This,
  13944. VARIANT_BOOL *Allow);
  13945. HRESULT (STDMETHODCALLTYPE *putref_AudioInput)(
  13946. ISpeechRecognizer *This,
  13947. ISpeechObjectToken *AudioInput);
  13948. HRESULT (STDMETHODCALLTYPE *get_AudioInput)(
  13949. ISpeechRecognizer *This,
  13950. ISpeechObjectToken **AudioInput);
  13951. HRESULT (STDMETHODCALLTYPE *putref_AudioInputStream)(
  13952. ISpeechRecognizer *This,
  13953. ISpeechBaseStream *AudioInputStream);
  13954. HRESULT (STDMETHODCALLTYPE *get_AudioInputStream)(
  13955. ISpeechRecognizer *This,
  13956. ISpeechBaseStream **AudioInputStream);
  13957. HRESULT (STDMETHODCALLTYPE *get_IsShared)(
  13958. ISpeechRecognizer *This,
  13959. VARIANT_BOOL *Shared);
  13960. HRESULT (STDMETHODCALLTYPE *put_State)(
  13961. ISpeechRecognizer *This,
  13962. SpeechRecognizerState State);
  13963. HRESULT (STDMETHODCALLTYPE *get_State)(
  13964. ISpeechRecognizer *This,
  13965. SpeechRecognizerState *State);
  13966. HRESULT (STDMETHODCALLTYPE *get_Status)(
  13967. ISpeechRecognizer *This,
  13968. ISpeechRecognizerStatus **Status);
  13969. HRESULT (STDMETHODCALLTYPE *putref_Profile)(
  13970. ISpeechRecognizer *This,
  13971. ISpeechObjectToken *Profile);
  13972. HRESULT (STDMETHODCALLTYPE *get_Profile)(
  13973. ISpeechRecognizer *This,
  13974. ISpeechObjectToken **Profile);
  13975. HRESULT (STDMETHODCALLTYPE *EmulateRecognition)(
  13976. ISpeechRecognizer *This,
  13977. VARIANT TextElements,
  13978. VARIANT *ElementDisplayAttributes,
  13979. LONG LanguageId);
  13980. HRESULT (STDMETHODCALLTYPE *CreateRecoContext)(
  13981. ISpeechRecognizer *This,
  13982. ISpeechRecoContext **NewContext);
  13983. HRESULT (STDMETHODCALLTYPE *GetFormat)(
  13984. ISpeechRecognizer *This,
  13985. SpeechFormatType Type,
  13986. ISpeechAudioFormat **Format);
  13987. HRESULT (STDMETHODCALLTYPE *SetPropertyNumber)(
  13988. ISpeechRecognizer *This,
  13989. const BSTR Name,
  13990. LONG Value,
  13991. VARIANT_BOOL *Supported);
  13992. HRESULT (STDMETHODCALLTYPE *GetPropertyNumber)(
  13993. ISpeechRecognizer *This,
  13994. const BSTR Name,
  13995. LONG *Value,
  13996. VARIANT_BOOL *Supported);
  13997. HRESULT (STDMETHODCALLTYPE *SetPropertyString)(
  13998. ISpeechRecognizer *This,
  13999. const BSTR Name,
  14000. const BSTR Value,
  14001. VARIANT_BOOL *Supported);
  14002. HRESULT (STDMETHODCALLTYPE *GetPropertyString)(
  14003. ISpeechRecognizer *This,
  14004. const BSTR Name,
  14005. BSTR *Value,
  14006. VARIANT_BOOL *Supported);
  14007. HRESULT (STDMETHODCALLTYPE *IsUISupported)(
  14008. ISpeechRecognizer *This,
  14009. const BSTR TypeOfUI,
  14010. const VARIANT *ExtraData,
  14011. VARIANT_BOOL *Supported);
  14012. HRESULT (STDMETHODCALLTYPE *DisplayUI)(
  14013. ISpeechRecognizer *This,
  14014. LONG hWndParent,
  14015. BSTR Title,
  14016. const BSTR TypeOfUI,
  14017. const VARIANT *ExtraData);
  14018. HRESULT (STDMETHODCALLTYPE *GetRecognizers)(
  14019. ISpeechRecognizer *This,
  14020. BSTR RequiredAttributes,
  14021. BSTR OptionalAttributes,
  14022. ISpeechObjectTokens **ObjectTokens);
  14023. HRESULT (STDMETHODCALLTYPE *GetAudioInputs)(
  14024. ISpeechRecognizer *This,
  14025. BSTR RequiredAttributes,
  14026. BSTR OptionalAttributes,
  14027. ISpeechObjectTokens **ObjectTokens);
  14028. HRESULT (STDMETHODCALLTYPE *GetProfiles)(
  14029. ISpeechRecognizer *This,
  14030. BSTR RequiredAttributes,
  14031. BSTR OptionalAttributes,
  14032. ISpeechObjectTokens **ObjectTokens);
  14033. END_INTERFACE
  14034. } ISpeechRecognizerVtbl;
  14035. interface ISpeechRecognizer {
  14036. CONST_VTBL ISpeechRecognizerVtbl* lpVtbl;
  14037. };
  14038. #ifdef COBJMACROS
  14039. #ifndef WIDL_C_INLINE_WRAPPERS
  14040. /*** IUnknown methods ***/
  14041. #define ISpeechRecognizer_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  14042. #define ISpeechRecognizer_AddRef(This) (This)->lpVtbl->AddRef(This)
  14043. #define ISpeechRecognizer_Release(This) (This)->lpVtbl->Release(This)
  14044. /*** IDispatch methods ***/
  14045. #define ISpeechRecognizer_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  14046. #define ISpeechRecognizer_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14047. #define ISpeechRecognizer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14048. #define ISpeechRecognizer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14049. /*** ISpeechRecognizer methods ***/
  14050. #define ISpeechRecognizer_putref_Recognizer(This,Recognizer) (This)->lpVtbl->putref_Recognizer(This,Recognizer)
  14051. #define ISpeechRecognizer_get_Recognizer(This,Recognizer) (This)->lpVtbl->get_Recognizer(This,Recognizer)
  14052. #define ISpeechRecognizer_put_AllowAudioInputFormatChangesOnNextSet(This,Allow) (This)->lpVtbl->put_AllowAudioInputFormatChangesOnNextSet(This,Allow)
  14053. #define ISpeechRecognizer_get_AllowAudioInputFormatChangesOnNextSet(This,Allow) (This)->lpVtbl->get_AllowAudioInputFormatChangesOnNextSet(This,Allow)
  14054. #define ISpeechRecognizer_putref_AudioInput(This,AudioInput) (This)->lpVtbl->putref_AudioInput(This,AudioInput)
  14055. #define ISpeechRecognizer_get_AudioInput(This,AudioInput) (This)->lpVtbl->get_AudioInput(This,AudioInput)
  14056. #define ISpeechRecognizer_putref_AudioInputStream(This,AudioInputStream) (This)->lpVtbl->putref_AudioInputStream(This,AudioInputStream)
  14057. #define ISpeechRecognizer_get_AudioInputStream(This,AudioInputStream) (This)->lpVtbl->get_AudioInputStream(This,AudioInputStream)
  14058. #define ISpeechRecognizer_get_IsShared(This,Shared) (This)->lpVtbl->get_IsShared(This,Shared)
  14059. #define ISpeechRecognizer_put_State(This,State) (This)->lpVtbl->put_State(This,State)
  14060. #define ISpeechRecognizer_get_State(This,State) (This)->lpVtbl->get_State(This,State)
  14061. #define ISpeechRecognizer_get_Status(This,Status) (This)->lpVtbl->get_Status(This,Status)
  14062. #define ISpeechRecognizer_putref_Profile(This,Profile) (This)->lpVtbl->putref_Profile(This,Profile)
  14063. #define ISpeechRecognizer_get_Profile(This,Profile) (This)->lpVtbl->get_Profile(This,Profile)
  14064. #define ISpeechRecognizer_EmulateRecognition(This,TextElements,ElementDisplayAttributes,LanguageId) (This)->lpVtbl->EmulateRecognition(This,TextElements,ElementDisplayAttributes,LanguageId)
  14065. #define ISpeechRecognizer_CreateRecoContext(This,NewContext) (This)->lpVtbl->CreateRecoContext(This,NewContext)
  14066. #define ISpeechRecognizer_GetFormat(This,Type,Format) (This)->lpVtbl->GetFormat(This,Type,Format)
  14067. #define ISpeechRecognizer_SetPropertyNumber(This,Name,Value,Supported) (This)->lpVtbl->SetPropertyNumber(This,Name,Value,Supported)
  14068. #define ISpeechRecognizer_GetPropertyNumber(This,Name,Value,Supported) (This)->lpVtbl->GetPropertyNumber(This,Name,Value,Supported)
  14069. #define ISpeechRecognizer_SetPropertyString(This,Name,Value,Supported) (This)->lpVtbl->SetPropertyString(This,Name,Value,Supported)
  14070. #define ISpeechRecognizer_GetPropertyString(This,Name,Value,Supported) (This)->lpVtbl->GetPropertyString(This,Name,Value,Supported)
  14071. #define ISpeechRecognizer_IsUISupported(This,TypeOfUI,ExtraData,Supported) (This)->lpVtbl->IsUISupported(This,TypeOfUI,ExtraData,Supported)
  14072. #define ISpeechRecognizer_DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData) (This)->lpVtbl->DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData)
  14073. #define ISpeechRecognizer_GetRecognizers(This,RequiredAttributes,OptionalAttributes,ObjectTokens) (This)->lpVtbl->GetRecognizers(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  14074. #define ISpeechRecognizer_GetAudioInputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens) (This)->lpVtbl->GetAudioInputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  14075. #define ISpeechRecognizer_GetProfiles(This,RequiredAttributes,OptionalAttributes,ObjectTokens) (This)->lpVtbl->GetProfiles(This,RequiredAttributes,OptionalAttributes,ObjectTokens)
  14076. #else
  14077. /*** IUnknown methods ***/
  14078. static FORCEINLINE HRESULT ISpeechRecognizer_QueryInterface(ISpeechRecognizer* This,REFIID riid,void **ppvObject) {
  14079. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  14080. }
  14081. static FORCEINLINE ULONG ISpeechRecognizer_AddRef(ISpeechRecognizer* This) {
  14082. return This->lpVtbl->AddRef(This);
  14083. }
  14084. static FORCEINLINE ULONG ISpeechRecognizer_Release(ISpeechRecognizer* This) {
  14085. return This->lpVtbl->Release(This);
  14086. }
  14087. /*** IDispatch methods ***/
  14088. static FORCEINLINE HRESULT ISpeechRecognizer_GetTypeInfoCount(ISpeechRecognizer* This,UINT *pctinfo) {
  14089. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  14090. }
  14091. static FORCEINLINE HRESULT ISpeechRecognizer_GetTypeInfo(ISpeechRecognizer* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  14092. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  14093. }
  14094. static FORCEINLINE HRESULT ISpeechRecognizer_GetIDsOfNames(ISpeechRecognizer* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  14095. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  14096. }
  14097. static FORCEINLINE HRESULT ISpeechRecognizer_Invoke(ISpeechRecognizer* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  14098. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  14099. }
  14100. /*** ISpeechRecognizer methods ***/
  14101. static FORCEINLINE HRESULT ISpeechRecognizer_putref_Recognizer(ISpeechRecognizer* This,ISpeechObjectToken *Recognizer) {
  14102. return This->lpVtbl->putref_Recognizer(This,Recognizer);
  14103. }
  14104. static FORCEINLINE HRESULT ISpeechRecognizer_get_Recognizer(ISpeechRecognizer* This,ISpeechObjectToken **Recognizer) {
  14105. return This->lpVtbl->get_Recognizer(This,Recognizer);
  14106. }
  14107. static FORCEINLINE HRESULT ISpeechRecognizer_put_AllowAudioInputFormatChangesOnNextSet(ISpeechRecognizer* This,VARIANT_BOOL Allow) {
  14108. return This->lpVtbl->put_AllowAudioInputFormatChangesOnNextSet(This,Allow);
  14109. }
  14110. static FORCEINLINE HRESULT ISpeechRecognizer_get_AllowAudioInputFormatChangesOnNextSet(ISpeechRecognizer* This,VARIANT_BOOL *Allow) {
  14111. return This->lpVtbl->get_AllowAudioInputFormatChangesOnNextSet(This,Allow);
  14112. }
  14113. static FORCEINLINE HRESULT ISpeechRecognizer_putref_AudioInput(ISpeechRecognizer* This,ISpeechObjectToken *AudioInput) {
  14114. return This->lpVtbl->putref_AudioInput(This,AudioInput);
  14115. }
  14116. static FORCEINLINE HRESULT ISpeechRecognizer_get_AudioInput(ISpeechRecognizer* This,ISpeechObjectToken **AudioInput) {
  14117. return This->lpVtbl->get_AudioInput(This,AudioInput);
  14118. }
  14119. static FORCEINLINE HRESULT ISpeechRecognizer_putref_AudioInputStream(ISpeechRecognizer* This,ISpeechBaseStream *AudioInputStream) {
  14120. return This->lpVtbl->putref_AudioInputStream(This,AudioInputStream);
  14121. }
  14122. static FORCEINLINE HRESULT ISpeechRecognizer_get_AudioInputStream(ISpeechRecognizer* This,ISpeechBaseStream **AudioInputStream) {
  14123. return This->lpVtbl->get_AudioInputStream(This,AudioInputStream);
  14124. }
  14125. static FORCEINLINE HRESULT ISpeechRecognizer_get_IsShared(ISpeechRecognizer* This,VARIANT_BOOL *Shared) {
  14126. return This->lpVtbl->get_IsShared(This,Shared);
  14127. }
  14128. static FORCEINLINE HRESULT ISpeechRecognizer_put_State(ISpeechRecognizer* This,SpeechRecognizerState State) {
  14129. return This->lpVtbl->put_State(This,State);
  14130. }
  14131. static FORCEINLINE HRESULT ISpeechRecognizer_get_State(ISpeechRecognizer* This,SpeechRecognizerState *State) {
  14132. return This->lpVtbl->get_State(This,State);
  14133. }
  14134. static FORCEINLINE HRESULT ISpeechRecognizer_get_Status(ISpeechRecognizer* This,ISpeechRecognizerStatus **Status) {
  14135. return This->lpVtbl->get_Status(This,Status);
  14136. }
  14137. static FORCEINLINE HRESULT ISpeechRecognizer_putref_Profile(ISpeechRecognizer* This,ISpeechObjectToken *Profile) {
  14138. return This->lpVtbl->putref_Profile(This,Profile);
  14139. }
  14140. static FORCEINLINE HRESULT ISpeechRecognizer_get_Profile(ISpeechRecognizer* This,ISpeechObjectToken **Profile) {
  14141. return This->lpVtbl->get_Profile(This,Profile);
  14142. }
  14143. static FORCEINLINE HRESULT ISpeechRecognizer_EmulateRecognition(ISpeechRecognizer* This,VARIANT TextElements,VARIANT *ElementDisplayAttributes,LONG LanguageId) {
  14144. return This->lpVtbl->EmulateRecognition(This,TextElements,ElementDisplayAttributes,LanguageId);
  14145. }
  14146. static FORCEINLINE HRESULT ISpeechRecognizer_CreateRecoContext(ISpeechRecognizer* This,ISpeechRecoContext **NewContext) {
  14147. return This->lpVtbl->CreateRecoContext(This,NewContext);
  14148. }
  14149. static FORCEINLINE HRESULT ISpeechRecognizer_GetFormat(ISpeechRecognizer* This,SpeechFormatType Type,ISpeechAudioFormat **Format) {
  14150. return This->lpVtbl->GetFormat(This,Type,Format);
  14151. }
  14152. static FORCEINLINE HRESULT ISpeechRecognizer_SetPropertyNumber(ISpeechRecognizer* This,const BSTR Name,LONG Value,VARIANT_BOOL *Supported) {
  14153. return This->lpVtbl->SetPropertyNumber(This,Name,Value,Supported);
  14154. }
  14155. static FORCEINLINE HRESULT ISpeechRecognizer_GetPropertyNumber(ISpeechRecognizer* This,const BSTR Name,LONG *Value,VARIANT_BOOL *Supported) {
  14156. return This->lpVtbl->GetPropertyNumber(This,Name,Value,Supported);
  14157. }
  14158. static FORCEINLINE HRESULT ISpeechRecognizer_SetPropertyString(ISpeechRecognizer* This,const BSTR Name,const BSTR Value,VARIANT_BOOL *Supported) {
  14159. return This->lpVtbl->SetPropertyString(This,Name,Value,Supported);
  14160. }
  14161. static FORCEINLINE HRESULT ISpeechRecognizer_GetPropertyString(ISpeechRecognizer* This,const BSTR Name,BSTR *Value,VARIANT_BOOL *Supported) {
  14162. return This->lpVtbl->GetPropertyString(This,Name,Value,Supported);
  14163. }
  14164. static FORCEINLINE HRESULT ISpeechRecognizer_IsUISupported(ISpeechRecognizer* This,const BSTR TypeOfUI,const VARIANT *ExtraData,VARIANT_BOOL *Supported) {
  14165. return This->lpVtbl->IsUISupported(This,TypeOfUI,ExtraData,Supported);
  14166. }
  14167. static FORCEINLINE HRESULT ISpeechRecognizer_DisplayUI(ISpeechRecognizer* This,LONG hWndParent,BSTR Title,const BSTR TypeOfUI,const VARIANT *ExtraData) {
  14168. return This->lpVtbl->DisplayUI(This,hWndParent,Title,TypeOfUI,ExtraData);
  14169. }
  14170. static FORCEINLINE HRESULT ISpeechRecognizer_GetRecognizers(ISpeechRecognizer* This,BSTR RequiredAttributes,BSTR OptionalAttributes,ISpeechObjectTokens **ObjectTokens) {
  14171. return This->lpVtbl->GetRecognizers(This,RequiredAttributes,OptionalAttributes,ObjectTokens);
  14172. }
  14173. static FORCEINLINE HRESULT ISpeechRecognizer_GetAudioInputs(ISpeechRecognizer* This,BSTR RequiredAttributes,BSTR OptionalAttributes,ISpeechObjectTokens **ObjectTokens) {
  14174. return This->lpVtbl->GetAudioInputs(This,RequiredAttributes,OptionalAttributes,ObjectTokens);
  14175. }
  14176. static FORCEINLINE HRESULT ISpeechRecognizer_GetProfiles(ISpeechRecognizer* This,BSTR RequiredAttributes,BSTR OptionalAttributes,ISpeechObjectTokens **ObjectTokens) {
  14177. return This->lpVtbl->GetProfiles(This,RequiredAttributes,OptionalAttributes,ObjectTokens);
  14178. }
  14179. #endif
  14180. #endif
  14181. #endif
  14182. #endif /* __ISpeechRecognizer_INTERFACE_DEFINED__ */
  14183. /*****************************************************************************
  14184. * ISpeechRecognizerStatus interface
  14185. */
  14186. #ifndef __ISpeechRecognizerStatus_INTERFACE_DEFINED__
  14187. #define __ISpeechRecognizerStatus_INTERFACE_DEFINED__
  14188. DEFINE_GUID(IID_ISpeechRecognizerStatus, 0xbff9e781, 0x53ec, 0x484e, 0xbb,0x8a, 0x0e,0x1b,0x55,0x51,0xe3,0x5c);
  14189. #if defined(__cplusplus) && !defined(CINTERFACE)
  14190. MIDL_INTERFACE("bff9e781-53ec-484e-bb8a-0e1b5551e35c")
  14191. ISpeechRecognizerStatus : public IDispatch
  14192. {
  14193. virtual HRESULT STDMETHODCALLTYPE get_AudioStatus(
  14194. ISpeechAudioStatus **AudioStatus) = 0;
  14195. virtual HRESULT STDMETHODCALLTYPE get_CurrentStreamPosition(
  14196. VARIANT *pCurrentStreamPos) = 0;
  14197. virtual HRESULT STDMETHODCALLTYPE get_CurrentStreamNumber(
  14198. LONG *StreamNumber) = 0;
  14199. virtual HRESULT STDMETHODCALLTYPE get_NumberOfActiveRules(
  14200. LONG *NumberOfActiveRules) = 0;
  14201. virtual HRESULT STDMETHODCALLTYPE get_ClsidEngine(
  14202. BSTR *ClsidEngine) = 0;
  14203. virtual HRESULT STDMETHODCALLTYPE get_SupportedLanguages(
  14204. VARIANT *SupportedLanguages) = 0;
  14205. };
  14206. #ifdef __CRT_UUID_DECL
  14207. __CRT_UUID_DECL(ISpeechRecognizerStatus, 0xbff9e781, 0x53ec, 0x484e, 0xbb,0x8a, 0x0e,0x1b,0x55,0x51,0xe3,0x5c)
  14208. #endif
  14209. #else
  14210. typedef struct ISpeechRecognizerStatusVtbl {
  14211. BEGIN_INTERFACE
  14212. /*** IUnknown methods ***/
  14213. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  14214. ISpeechRecognizerStatus *This,
  14215. REFIID riid,
  14216. void **ppvObject);
  14217. ULONG (STDMETHODCALLTYPE *AddRef)(
  14218. ISpeechRecognizerStatus *This);
  14219. ULONG (STDMETHODCALLTYPE *Release)(
  14220. ISpeechRecognizerStatus *This);
  14221. /*** IDispatch methods ***/
  14222. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  14223. ISpeechRecognizerStatus *This,
  14224. UINT *pctinfo);
  14225. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  14226. ISpeechRecognizerStatus *This,
  14227. UINT iTInfo,
  14228. LCID lcid,
  14229. ITypeInfo **ppTInfo);
  14230. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  14231. ISpeechRecognizerStatus *This,
  14232. REFIID riid,
  14233. LPOLESTR *rgszNames,
  14234. UINT cNames,
  14235. LCID lcid,
  14236. DISPID *rgDispId);
  14237. HRESULT (STDMETHODCALLTYPE *Invoke)(
  14238. ISpeechRecognizerStatus *This,
  14239. DISPID dispIdMember,
  14240. REFIID riid,
  14241. LCID lcid,
  14242. WORD wFlags,
  14243. DISPPARAMS *pDispParams,
  14244. VARIANT *pVarResult,
  14245. EXCEPINFO *pExcepInfo,
  14246. UINT *puArgErr);
  14247. /*** ISpeechRecognizerStatus methods ***/
  14248. HRESULT (STDMETHODCALLTYPE *get_AudioStatus)(
  14249. ISpeechRecognizerStatus *This,
  14250. ISpeechAudioStatus **AudioStatus);
  14251. HRESULT (STDMETHODCALLTYPE *get_CurrentStreamPosition)(
  14252. ISpeechRecognizerStatus *This,
  14253. VARIANT *pCurrentStreamPos);
  14254. HRESULT (STDMETHODCALLTYPE *get_CurrentStreamNumber)(
  14255. ISpeechRecognizerStatus *This,
  14256. LONG *StreamNumber);
  14257. HRESULT (STDMETHODCALLTYPE *get_NumberOfActiveRules)(
  14258. ISpeechRecognizerStatus *This,
  14259. LONG *NumberOfActiveRules);
  14260. HRESULT (STDMETHODCALLTYPE *get_ClsidEngine)(
  14261. ISpeechRecognizerStatus *This,
  14262. BSTR *ClsidEngine);
  14263. HRESULT (STDMETHODCALLTYPE *get_SupportedLanguages)(
  14264. ISpeechRecognizerStatus *This,
  14265. VARIANT *SupportedLanguages);
  14266. END_INTERFACE
  14267. } ISpeechRecognizerStatusVtbl;
  14268. interface ISpeechRecognizerStatus {
  14269. CONST_VTBL ISpeechRecognizerStatusVtbl* lpVtbl;
  14270. };
  14271. #ifdef COBJMACROS
  14272. #ifndef WIDL_C_INLINE_WRAPPERS
  14273. /*** IUnknown methods ***/
  14274. #define ISpeechRecognizerStatus_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  14275. #define ISpeechRecognizerStatus_AddRef(This) (This)->lpVtbl->AddRef(This)
  14276. #define ISpeechRecognizerStatus_Release(This) (This)->lpVtbl->Release(This)
  14277. /*** IDispatch methods ***/
  14278. #define ISpeechRecognizerStatus_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  14279. #define ISpeechRecognizerStatus_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14280. #define ISpeechRecognizerStatus_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14281. #define ISpeechRecognizerStatus_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14282. /*** ISpeechRecognizerStatus methods ***/
  14283. #define ISpeechRecognizerStatus_get_AudioStatus(This,AudioStatus) (This)->lpVtbl->get_AudioStatus(This,AudioStatus)
  14284. #define ISpeechRecognizerStatus_get_CurrentStreamPosition(This,pCurrentStreamPos) (This)->lpVtbl->get_CurrentStreamPosition(This,pCurrentStreamPos)
  14285. #define ISpeechRecognizerStatus_get_CurrentStreamNumber(This,StreamNumber) (This)->lpVtbl->get_CurrentStreamNumber(This,StreamNumber)
  14286. #define ISpeechRecognizerStatus_get_NumberOfActiveRules(This,NumberOfActiveRules) (This)->lpVtbl->get_NumberOfActiveRules(This,NumberOfActiveRules)
  14287. #define ISpeechRecognizerStatus_get_ClsidEngine(This,ClsidEngine) (This)->lpVtbl->get_ClsidEngine(This,ClsidEngine)
  14288. #define ISpeechRecognizerStatus_get_SupportedLanguages(This,SupportedLanguages) (This)->lpVtbl->get_SupportedLanguages(This,SupportedLanguages)
  14289. #else
  14290. /*** IUnknown methods ***/
  14291. static FORCEINLINE HRESULT ISpeechRecognizerStatus_QueryInterface(ISpeechRecognizerStatus* This,REFIID riid,void **ppvObject) {
  14292. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  14293. }
  14294. static FORCEINLINE ULONG ISpeechRecognizerStatus_AddRef(ISpeechRecognizerStatus* This) {
  14295. return This->lpVtbl->AddRef(This);
  14296. }
  14297. static FORCEINLINE ULONG ISpeechRecognizerStatus_Release(ISpeechRecognizerStatus* This) {
  14298. return This->lpVtbl->Release(This);
  14299. }
  14300. /*** IDispatch methods ***/
  14301. static FORCEINLINE HRESULT ISpeechRecognizerStatus_GetTypeInfoCount(ISpeechRecognizerStatus* This,UINT *pctinfo) {
  14302. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  14303. }
  14304. static FORCEINLINE HRESULT ISpeechRecognizerStatus_GetTypeInfo(ISpeechRecognizerStatus* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  14305. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  14306. }
  14307. static FORCEINLINE HRESULT ISpeechRecognizerStatus_GetIDsOfNames(ISpeechRecognizerStatus* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  14308. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  14309. }
  14310. static FORCEINLINE HRESULT ISpeechRecognizerStatus_Invoke(ISpeechRecognizerStatus* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  14311. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  14312. }
  14313. /*** ISpeechRecognizerStatus methods ***/
  14314. static FORCEINLINE HRESULT ISpeechRecognizerStatus_get_AudioStatus(ISpeechRecognizerStatus* This,ISpeechAudioStatus **AudioStatus) {
  14315. return This->lpVtbl->get_AudioStatus(This,AudioStatus);
  14316. }
  14317. static FORCEINLINE HRESULT ISpeechRecognizerStatus_get_CurrentStreamPosition(ISpeechRecognizerStatus* This,VARIANT *pCurrentStreamPos) {
  14318. return This->lpVtbl->get_CurrentStreamPosition(This,pCurrentStreamPos);
  14319. }
  14320. static FORCEINLINE HRESULT ISpeechRecognizerStatus_get_CurrentStreamNumber(ISpeechRecognizerStatus* This,LONG *StreamNumber) {
  14321. return This->lpVtbl->get_CurrentStreamNumber(This,StreamNumber);
  14322. }
  14323. static FORCEINLINE HRESULT ISpeechRecognizerStatus_get_NumberOfActiveRules(ISpeechRecognizerStatus* This,LONG *NumberOfActiveRules) {
  14324. return This->lpVtbl->get_NumberOfActiveRules(This,NumberOfActiveRules);
  14325. }
  14326. static FORCEINLINE HRESULT ISpeechRecognizerStatus_get_ClsidEngine(ISpeechRecognizerStatus* This,BSTR *ClsidEngine) {
  14327. return This->lpVtbl->get_ClsidEngine(This,ClsidEngine);
  14328. }
  14329. static FORCEINLINE HRESULT ISpeechRecognizerStatus_get_SupportedLanguages(ISpeechRecognizerStatus* This,VARIANT *SupportedLanguages) {
  14330. return This->lpVtbl->get_SupportedLanguages(This,SupportedLanguages);
  14331. }
  14332. #endif
  14333. #endif
  14334. #endif
  14335. #endif /* __ISpeechRecognizerStatus_INTERFACE_DEFINED__ */
  14336. /*****************************************************************************
  14337. * ISpeechRecoContext interface
  14338. */
  14339. #ifndef __ISpeechRecoContext_INTERFACE_DEFINED__
  14340. #define __ISpeechRecoContext_INTERFACE_DEFINED__
  14341. DEFINE_GUID(IID_ISpeechRecoContext, 0x580aa49d, 0x7e1e, 0x4809, 0xb8,0xe2, 0x57,0xda,0x80,0x61,0x04,0xb8);
  14342. #if defined(__cplusplus) && !defined(CINTERFACE)
  14343. MIDL_INTERFACE("580aa49d-7e1e-4809-b8e2-57da806104b8")
  14344. ISpeechRecoContext : public IDispatch
  14345. {
  14346. virtual HRESULT STDMETHODCALLTYPE get_Recognizer(
  14347. ISpeechRecognizer **Recognizer) = 0;
  14348. virtual HRESULT STDMETHODCALLTYPE get_AudioInputInterferenceStatus(
  14349. SpeechInterference *Interference) = 0;
  14350. virtual HRESULT STDMETHODCALLTYPE get_RequestedUIType(
  14351. BSTR *UIType) = 0;
  14352. virtual HRESULT STDMETHODCALLTYPE putref_Voice(
  14353. ISpeechVoice *Voice) = 0;
  14354. virtual HRESULT STDMETHODCALLTYPE get_Voice(
  14355. ISpeechVoice **Voice) = 0;
  14356. virtual HRESULT STDMETHODCALLTYPE put_AllowVoiceFormatMatchingOnNextSet(
  14357. VARIANT_BOOL Allow) = 0;
  14358. virtual HRESULT STDMETHODCALLTYPE get_AllowVoiceFormatMatchingOnNextSet(
  14359. VARIANT_BOOL *pAllow) = 0;
  14360. virtual HRESULT STDMETHODCALLTYPE put_VoicePurgeEvent(
  14361. SpeechRecoEvents EventInterest) = 0;
  14362. virtual HRESULT STDMETHODCALLTYPE get_VoicePurgeEvent(
  14363. SpeechRecoEvents *EventInterest) = 0;
  14364. virtual HRESULT STDMETHODCALLTYPE put_EventInterests(
  14365. SpeechRecoEvents EventInterest) = 0;
  14366. virtual HRESULT STDMETHODCALLTYPE get_EventInterests(
  14367. SpeechRecoEvents *EventInterest) = 0;
  14368. virtual HRESULT STDMETHODCALLTYPE put_CmdMaxAlternates(
  14369. LONG MaxAlternates) = 0;
  14370. virtual HRESULT STDMETHODCALLTYPE get_CmdMaxAlternates(
  14371. LONG *MaxAlternates) = 0;
  14372. virtual HRESULT STDMETHODCALLTYPE put_State(
  14373. SpeechRecoContextState State) = 0;
  14374. virtual HRESULT STDMETHODCALLTYPE get_State(
  14375. SpeechRecoContextState *State) = 0;
  14376. virtual HRESULT STDMETHODCALLTYPE put_RetainedAudio(
  14377. SpeechRetainedAudioOptions Option) = 0;
  14378. virtual HRESULT STDMETHODCALLTYPE get_RetainedAudio(
  14379. SpeechRetainedAudioOptions *Option) = 0;
  14380. virtual HRESULT STDMETHODCALLTYPE putref_RetainedAudioFormat(
  14381. ISpeechAudioFormat *Format) = 0;
  14382. virtual HRESULT STDMETHODCALLTYPE get_RetainedAudioFormat(
  14383. ISpeechAudioFormat **Format) = 0;
  14384. virtual HRESULT STDMETHODCALLTYPE Pause(
  14385. ) = 0;
  14386. virtual HRESULT STDMETHODCALLTYPE Resume(
  14387. ) = 0;
  14388. virtual HRESULT STDMETHODCALLTYPE CreateGrammar(
  14389. VARIANT GrammarId,
  14390. ISpeechRecoGrammar **Grammar) = 0;
  14391. virtual HRESULT STDMETHODCALLTYPE CreateResultFromMemory(
  14392. VARIANT *ResultBlock,
  14393. ISpeechRecoResult **Result) = 0;
  14394. virtual HRESULT STDMETHODCALLTYPE Bookmark(
  14395. SpeechBookmarkOptions Options,
  14396. VARIANT StreamPos,
  14397. VARIANT BookmarkId) = 0;
  14398. virtual HRESULT STDMETHODCALLTYPE SetAdaptationData(
  14399. BSTR AdaptationString) = 0;
  14400. };
  14401. #ifdef __CRT_UUID_DECL
  14402. __CRT_UUID_DECL(ISpeechRecoContext, 0x580aa49d, 0x7e1e, 0x4809, 0xb8,0xe2, 0x57,0xda,0x80,0x61,0x04,0xb8)
  14403. #endif
  14404. #else
  14405. typedef struct ISpeechRecoContextVtbl {
  14406. BEGIN_INTERFACE
  14407. /*** IUnknown methods ***/
  14408. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  14409. ISpeechRecoContext *This,
  14410. REFIID riid,
  14411. void **ppvObject);
  14412. ULONG (STDMETHODCALLTYPE *AddRef)(
  14413. ISpeechRecoContext *This);
  14414. ULONG (STDMETHODCALLTYPE *Release)(
  14415. ISpeechRecoContext *This);
  14416. /*** IDispatch methods ***/
  14417. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  14418. ISpeechRecoContext *This,
  14419. UINT *pctinfo);
  14420. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  14421. ISpeechRecoContext *This,
  14422. UINT iTInfo,
  14423. LCID lcid,
  14424. ITypeInfo **ppTInfo);
  14425. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  14426. ISpeechRecoContext *This,
  14427. REFIID riid,
  14428. LPOLESTR *rgszNames,
  14429. UINT cNames,
  14430. LCID lcid,
  14431. DISPID *rgDispId);
  14432. HRESULT (STDMETHODCALLTYPE *Invoke)(
  14433. ISpeechRecoContext *This,
  14434. DISPID dispIdMember,
  14435. REFIID riid,
  14436. LCID lcid,
  14437. WORD wFlags,
  14438. DISPPARAMS *pDispParams,
  14439. VARIANT *pVarResult,
  14440. EXCEPINFO *pExcepInfo,
  14441. UINT *puArgErr);
  14442. /*** ISpeechRecoContext methods ***/
  14443. HRESULT (STDMETHODCALLTYPE *get_Recognizer)(
  14444. ISpeechRecoContext *This,
  14445. ISpeechRecognizer **Recognizer);
  14446. HRESULT (STDMETHODCALLTYPE *get_AudioInputInterferenceStatus)(
  14447. ISpeechRecoContext *This,
  14448. SpeechInterference *Interference);
  14449. HRESULT (STDMETHODCALLTYPE *get_RequestedUIType)(
  14450. ISpeechRecoContext *This,
  14451. BSTR *UIType);
  14452. HRESULT (STDMETHODCALLTYPE *putref_Voice)(
  14453. ISpeechRecoContext *This,
  14454. ISpeechVoice *Voice);
  14455. HRESULT (STDMETHODCALLTYPE *get_Voice)(
  14456. ISpeechRecoContext *This,
  14457. ISpeechVoice **Voice);
  14458. HRESULT (STDMETHODCALLTYPE *put_AllowVoiceFormatMatchingOnNextSet)(
  14459. ISpeechRecoContext *This,
  14460. VARIANT_BOOL Allow);
  14461. HRESULT (STDMETHODCALLTYPE *get_AllowVoiceFormatMatchingOnNextSet)(
  14462. ISpeechRecoContext *This,
  14463. VARIANT_BOOL *pAllow);
  14464. HRESULT (STDMETHODCALLTYPE *put_VoicePurgeEvent)(
  14465. ISpeechRecoContext *This,
  14466. SpeechRecoEvents EventInterest);
  14467. HRESULT (STDMETHODCALLTYPE *get_VoicePurgeEvent)(
  14468. ISpeechRecoContext *This,
  14469. SpeechRecoEvents *EventInterest);
  14470. HRESULT (STDMETHODCALLTYPE *put_EventInterests)(
  14471. ISpeechRecoContext *This,
  14472. SpeechRecoEvents EventInterest);
  14473. HRESULT (STDMETHODCALLTYPE *get_EventInterests)(
  14474. ISpeechRecoContext *This,
  14475. SpeechRecoEvents *EventInterest);
  14476. HRESULT (STDMETHODCALLTYPE *put_CmdMaxAlternates)(
  14477. ISpeechRecoContext *This,
  14478. LONG MaxAlternates);
  14479. HRESULT (STDMETHODCALLTYPE *get_CmdMaxAlternates)(
  14480. ISpeechRecoContext *This,
  14481. LONG *MaxAlternates);
  14482. HRESULT (STDMETHODCALLTYPE *put_State)(
  14483. ISpeechRecoContext *This,
  14484. SpeechRecoContextState State);
  14485. HRESULT (STDMETHODCALLTYPE *get_State)(
  14486. ISpeechRecoContext *This,
  14487. SpeechRecoContextState *State);
  14488. HRESULT (STDMETHODCALLTYPE *put_RetainedAudio)(
  14489. ISpeechRecoContext *This,
  14490. SpeechRetainedAudioOptions Option);
  14491. HRESULT (STDMETHODCALLTYPE *get_RetainedAudio)(
  14492. ISpeechRecoContext *This,
  14493. SpeechRetainedAudioOptions *Option);
  14494. HRESULT (STDMETHODCALLTYPE *putref_RetainedAudioFormat)(
  14495. ISpeechRecoContext *This,
  14496. ISpeechAudioFormat *Format);
  14497. HRESULT (STDMETHODCALLTYPE *get_RetainedAudioFormat)(
  14498. ISpeechRecoContext *This,
  14499. ISpeechAudioFormat **Format);
  14500. HRESULT (STDMETHODCALLTYPE *Pause)(
  14501. ISpeechRecoContext *This);
  14502. HRESULT (STDMETHODCALLTYPE *Resume)(
  14503. ISpeechRecoContext *This);
  14504. HRESULT (STDMETHODCALLTYPE *CreateGrammar)(
  14505. ISpeechRecoContext *This,
  14506. VARIANT GrammarId,
  14507. ISpeechRecoGrammar **Grammar);
  14508. HRESULT (STDMETHODCALLTYPE *CreateResultFromMemory)(
  14509. ISpeechRecoContext *This,
  14510. VARIANT *ResultBlock,
  14511. ISpeechRecoResult **Result);
  14512. HRESULT (STDMETHODCALLTYPE *Bookmark)(
  14513. ISpeechRecoContext *This,
  14514. SpeechBookmarkOptions Options,
  14515. VARIANT StreamPos,
  14516. VARIANT BookmarkId);
  14517. HRESULT (STDMETHODCALLTYPE *SetAdaptationData)(
  14518. ISpeechRecoContext *This,
  14519. BSTR AdaptationString);
  14520. END_INTERFACE
  14521. } ISpeechRecoContextVtbl;
  14522. interface ISpeechRecoContext {
  14523. CONST_VTBL ISpeechRecoContextVtbl* lpVtbl;
  14524. };
  14525. #ifdef COBJMACROS
  14526. #ifndef WIDL_C_INLINE_WRAPPERS
  14527. /*** IUnknown methods ***/
  14528. #define ISpeechRecoContext_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  14529. #define ISpeechRecoContext_AddRef(This) (This)->lpVtbl->AddRef(This)
  14530. #define ISpeechRecoContext_Release(This) (This)->lpVtbl->Release(This)
  14531. /*** IDispatch methods ***/
  14532. #define ISpeechRecoContext_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  14533. #define ISpeechRecoContext_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14534. #define ISpeechRecoContext_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14535. #define ISpeechRecoContext_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14536. /*** ISpeechRecoContext methods ***/
  14537. #define ISpeechRecoContext_get_Recognizer(This,Recognizer) (This)->lpVtbl->get_Recognizer(This,Recognizer)
  14538. #define ISpeechRecoContext_get_AudioInputInterferenceStatus(This,Interference) (This)->lpVtbl->get_AudioInputInterferenceStatus(This,Interference)
  14539. #define ISpeechRecoContext_get_RequestedUIType(This,UIType) (This)->lpVtbl->get_RequestedUIType(This,UIType)
  14540. #define ISpeechRecoContext_putref_Voice(This,Voice) (This)->lpVtbl->putref_Voice(This,Voice)
  14541. #define ISpeechRecoContext_get_Voice(This,Voice) (This)->lpVtbl->get_Voice(This,Voice)
  14542. #define ISpeechRecoContext_put_AllowVoiceFormatMatchingOnNextSet(This,Allow) (This)->lpVtbl->put_AllowVoiceFormatMatchingOnNextSet(This,Allow)
  14543. #define ISpeechRecoContext_get_AllowVoiceFormatMatchingOnNextSet(This,pAllow) (This)->lpVtbl->get_AllowVoiceFormatMatchingOnNextSet(This,pAllow)
  14544. #define ISpeechRecoContext_put_VoicePurgeEvent(This,EventInterest) (This)->lpVtbl->put_VoicePurgeEvent(This,EventInterest)
  14545. #define ISpeechRecoContext_get_VoicePurgeEvent(This,EventInterest) (This)->lpVtbl->get_VoicePurgeEvent(This,EventInterest)
  14546. #define ISpeechRecoContext_put_EventInterests(This,EventInterest) (This)->lpVtbl->put_EventInterests(This,EventInterest)
  14547. #define ISpeechRecoContext_get_EventInterests(This,EventInterest) (This)->lpVtbl->get_EventInterests(This,EventInterest)
  14548. #define ISpeechRecoContext_put_CmdMaxAlternates(This,MaxAlternates) (This)->lpVtbl->put_CmdMaxAlternates(This,MaxAlternates)
  14549. #define ISpeechRecoContext_get_CmdMaxAlternates(This,MaxAlternates) (This)->lpVtbl->get_CmdMaxAlternates(This,MaxAlternates)
  14550. #define ISpeechRecoContext_put_State(This,State) (This)->lpVtbl->put_State(This,State)
  14551. #define ISpeechRecoContext_get_State(This,State) (This)->lpVtbl->get_State(This,State)
  14552. #define ISpeechRecoContext_put_RetainedAudio(This,Option) (This)->lpVtbl->put_RetainedAudio(This,Option)
  14553. #define ISpeechRecoContext_get_RetainedAudio(This,Option) (This)->lpVtbl->get_RetainedAudio(This,Option)
  14554. #define ISpeechRecoContext_putref_RetainedAudioFormat(This,Format) (This)->lpVtbl->putref_RetainedAudioFormat(This,Format)
  14555. #define ISpeechRecoContext_get_RetainedAudioFormat(This,Format) (This)->lpVtbl->get_RetainedAudioFormat(This,Format)
  14556. #define ISpeechRecoContext_Pause(This) (This)->lpVtbl->Pause(This)
  14557. #define ISpeechRecoContext_Resume(This) (This)->lpVtbl->Resume(This)
  14558. #define ISpeechRecoContext_CreateGrammar(This,GrammarId,Grammar) (This)->lpVtbl->CreateGrammar(This,GrammarId,Grammar)
  14559. #define ISpeechRecoContext_CreateResultFromMemory(This,ResultBlock,Result) (This)->lpVtbl->CreateResultFromMemory(This,ResultBlock,Result)
  14560. #define ISpeechRecoContext_Bookmark(This,Options,StreamPos,BookmarkId) (This)->lpVtbl->Bookmark(This,Options,StreamPos,BookmarkId)
  14561. #define ISpeechRecoContext_SetAdaptationData(This,AdaptationString) (This)->lpVtbl->SetAdaptationData(This,AdaptationString)
  14562. #else
  14563. /*** IUnknown methods ***/
  14564. static FORCEINLINE HRESULT ISpeechRecoContext_QueryInterface(ISpeechRecoContext* This,REFIID riid,void **ppvObject) {
  14565. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  14566. }
  14567. static FORCEINLINE ULONG ISpeechRecoContext_AddRef(ISpeechRecoContext* This) {
  14568. return This->lpVtbl->AddRef(This);
  14569. }
  14570. static FORCEINLINE ULONG ISpeechRecoContext_Release(ISpeechRecoContext* This) {
  14571. return This->lpVtbl->Release(This);
  14572. }
  14573. /*** IDispatch methods ***/
  14574. static FORCEINLINE HRESULT ISpeechRecoContext_GetTypeInfoCount(ISpeechRecoContext* This,UINT *pctinfo) {
  14575. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  14576. }
  14577. static FORCEINLINE HRESULT ISpeechRecoContext_GetTypeInfo(ISpeechRecoContext* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  14578. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  14579. }
  14580. static FORCEINLINE HRESULT ISpeechRecoContext_GetIDsOfNames(ISpeechRecoContext* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  14581. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  14582. }
  14583. static FORCEINLINE HRESULT ISpeechRecoContext_Invoke(ISpeechRecoContext* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  14584. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  14585. }
  14586. /*** ISpeechRecoContext methods ***/
  14587. static FORCEINLINE HRESULT ISpeechRecoContext_get_Recognizer(ISpeechRecoContext* This,ISpeechRecognizer **Recognizer) {
  14588. return This->lpVtbl->get_Recognizer(This,Recognizer);
  14589. }
  14590. static FORCEINLINE HRESULT ISpeechRecoContext_get_AudioInputInterferenceStatus(ISpeechRecoContext* This,SpeechInterference *Interference) {
  14591. return This->lpVtbl->get_AudioInputInterferenceStatus(This,Interference);
  14592. }
  14593. static FORCEINLINE HRESULT ISpeechRecoContext_get_RequestedUIType(ISpeechRecoContext* This,BSTR *UIType) {
  14594. return This->lpVtbl->get_RequestedUIType(This,UIType);
  14595. }
  14596. static FORCEINLINE HRESULT ISpeechRecoContext_putref_Voice(ISpeechRecoContext* This,ISpeechVoice *Voice) {
  14597. return This->lpVtbl->putref_Voice(This,Voice);
  14598. }
  14599. static FORCEINLINE HRESULT ISpeechRecoContext_get_Voice(ISpeechRecoContext* This,ISpeechVoice **Voice) {
  14600. return This->lpVtbl->get_Voice(This,Voice);
  14601. }
  14602. static FORCEINLINE HRESULT ISpeechRecoContext_put_AllowVoiceFormatMatchingOnNextSet(ISpeechRecoContext* This,VARIANT_BOOL Allow) {
  14603. return This->lpVtbl->put_AllowVoiceFormatMatchingOnNextSet(This,Allow);
  14604. }
  14605. static FORCEINLINE HRESULT ISpeechRecoContext_get_AllowVoiceFormatMatchingOnNextSet(ISpeechRecoContext* This,VARIANT_BOOL *pAllow) {
  14606. return This->lpVtbl->get_AllowVoiceFormatMatchingOnNextSet(This,pAllow);
  14607. }
  14608. static FORCEINLINE HRESULT ISpeechRecoContext_put_VoicePurgeEvent(ISpeechRecoContext* This,SpeechRecoEvents EventInterest) {
  14609. return This->lpVtbl->put_VoicePurgeEvent(This,EventInterest);
  14610. }
  14611. static FORCEINLINE HRESULT ISpeechRecoContext_get_VoicePurgeEvent(ISpeechRecoContext* This,SpeechRecoEvents *EventInterest) {
  14612. return This->lpVtbl->get_VoicePurgeEvent(This,EventInterest);
  14613. }
  14614. static FORCEINLINE HRESULT ISpeechRecoContext_put_EventInterests(ISpeechRecoContext* This,SpeechRecoEvents EventInterest) {
  14615. return This->lpVtbl->put_EventInterests(This,EventInterest);
  14616. }
  14617. static FORCEINLINE HRESULT ISpeechRecoContext_get_EventInterests(ISpeechRecoContext* This,SpeechRecoEvents *EventInterest) {
  14618. return This->lpVtbl->get_EventInterests(This,EventInterest);
  14619. }
  14620. static FORCEINLINE HRESULT ISpeechRecoContext_put_CmdMaxAlternates(ISpeechRecoContext* This,LONG MaxAlternates) {
  14621. return This->lpVtbl->put_CmdMaxAlternates(This,MaxAlternates);
  14622. }
  14623. static FORCEINLINE HRESULT ISpeechRecoContext_get_CmdMaxAlternates(ISpeechRecoContext* This,LONG *MaxAlternates) {
  14624. return This->lpVtbl->get_CmdMaxAlternates(This,MaxAlternates);
  14625. }
  14626. static FORCEINLINE HRESULT ISpeechRecoContext_put_State(ISpeechRecoContext* This,SpeechRecoContextState State) {
  14627. return This->lpVtbl->put_State(This,State);
  14628. }
  14629. static FORCEINLINE HRESULT ISpeechRecoContext_get_State(ISpeechRecoContext* This,SpeechRecoContextState *State) {
  14630. return This->lpVtbl->get_State(This,State);
  14631. }
  14632. static FORCEINLINE HRESULT ISpeechRecoContext_put_RetainedAudio(ISpeechRecoContext* This,SpeechRetainedAudioOptions Option) {
  14633. return This->lpVtbl->put_RetainedAudio(This,Option);
  14634. }
  14635. static FORCEINLINE HRESULT ISpeechRecoContext_get_RetainedAudio(ISpeechRecoContext* This,SpeechRetainedAudioOptions *Option) {
  14636. return This->lpVtbl->get_RetainedAudio(This,Option);
  14637. }
  14638. static FORCEINLINE HRESULT ISpeechRecoContext_putref_RetainedAudioFormat(ISpeechRecoContext* This,ISpeechAudioFormat *Format) {
  14639. return This->lpVtbl->putref_RetainedAudioFormat(This,Format);
  14640. }
  14641. static FORCEINLINE HRESULT ISpeechRecoContext_get_RetainedAudioFormat(ISpeechRecoContext* This,ISpeechAudioFormat **Format) {
  14642. return This->lpVtbl->get_RetainedAudioFormat(This,Format);
  14643. }
  14644. static FORCEINLINE HRESULT ISpeechRecoContext_Pause(ISpeechRecoContext* This) {
  14645. return This->lpVtbl->Pause(This);
  14646. }
  14647. static FORCEINLINE HRESULT ISpeechRecoContext_Resume(ISpeechRecoContext* This) {
  14648. return This->lpVtbl->Resume(This);
  14649. }
  14650. static FORCEINLINE HRESULT ISpeechRecoContext_CreateGrammar(ISpeechRecoContext* This,VARIANT GrammarId,ISpeechRecoGrammar **Grammar) {
  14651. return This->lpVtbl->CreateGrammar(This,GrammarId,Grammar);
  14652. }
  14653. static FORCEINLINE HRESULT ISpeechRecoContext_CreateResultFromMemory(ISpeechRecoContext* This,VARIANT *ResultBlock,ISpeechRecoResult **Result) {
  14654. return This->lpVtbl->CreateResultFromMemory(This,ResultBlock,Result);
  14655. }
  14656. static FORCEINLINE HRESULT ISpeechRecoContext_Bookmark(ISpeechRecoContext* This,SpeechBookmarkOptions Options,VARIANT StreamPos,VARIANT BookmarkId) {
  14657. return This->lpVtbl->Bookmark(This,Options,StreamPos,BookmarkId);
  14658. }
  14659. static FORCEINLINE HRESULT ISpeechRecoContext_SetAdaptationData(ISpeechRecoContext* This,BSTR AdaptationString) {
  14660. return This->lpVtbl->SetAdaptationData(This,AdaptationString);
  14661. }
  14662. #endif
  14663. #endif
  14664. #endif
  14665. #endif /* __ISpeechRecoContext_INTERFACE_DEFINED__ */
  14666. /*****************************************************************************
  14667. * ISpeechRecoGrammar interface
  14668. */
  14669. #ifndef __ISpeechRecoGrammar_INTERFACE_DEFINED__
  14670. #define __ISpeechRecoGrammar_INTERFACE_DEFINED__
  14671. DEFINE_GUID(IID_ISpeechRecoGrammar, 0xb6d6f79f, 0x2158, 0x4e50, 0xb5,0xbc, 0x9a,0x9c,0xcd,0x85,0x2a,0x09);
  14672. #if defined(__cplusplus) && !defined(CINTERFACE)
  14673. MIDL_INTERFACE("b6d6f79f-2158-4e50-b5bc-9a9ccd852a09")
  14674. ISpeechRecoGrammar : public IDispatch
  14675. {
  14676. virtual HRESULT STDMETHODCALLTYPE get_Id(
  14677. VARIANT *Id) = 0;
  14678. virtual HRESULT STDMETHODCALLTYPE get_RecoContext(
  14679. ISpeechRecoContext **RecoContext) = 0;
  14680. virtual HRESULT STDMETHODCALLTYPE put_State(
  14681. SpeechGrammarState State) = 0;
  14682. virtual HRESULT STDMETHODCALLTYPE get_State(
  14683. SpeechGrammarState *State) = 0;
  14684. virtual HRESULT STDMETHODCALLTYPE get_Rules(
  14685. ISpeechGrammarRules **Rules) = 0;
  14686. virtual HRESULT STDMETHODCALLTYPE Reset(
  14687. SpeechLanguageId NewLanguage = 0) = 0;
  14688. virtual HRESULT STDMETHODCALLTYPE CmdLoadFromFile(
  14689. const BSTR FileName,
  14690. SpeechLoadOption LoadOption = SLOStatic) = 0;
  14691. virtual HRESULT STDMETHODCALLTYPE CmdLoadFromObject(
  14692. const BSTR ClassId,
  14693. const BSTR GrammarName,
  14694. SpeechLoadOption LoadOption = SLOStatic) = 0;
  14695. virtual HRESULT STDMETHODCALLTYPE CmdLoadFromResource(
  14696. LONG hModule,
  14697. VARIANT ResourceName,
  14698. VARIANT ResourceType,
  14699. SpeechLanguageId LanguageId,
  14700. SpeechLoadOption LoadOption = SLOStatic) = 0;
  14701. virtual HRESULT STDMETHODCALLTYPE CmdLoadFromMemory(
  14702. VARIANT GrammarData,
  14703. SpeechLoadOption LoadOption = SLOStatic) = 0;
  14704. virtual HRESULT STDMETHODCALLTYPE CmdLoadFromProprietaryGrammar(
  14705. const BSTR ProprietaryGuid,
  14706. const BSTR ProprietaryString,
  14707. VARIANT ProprietaryData,
  14708. SpeechLoadOption LoadOption = SLOStatic) = 0;
  14709. virtual HRESULT STDMETHODCALLTYPE CmdSetRuleState(
  14710. const BSTR Name,
  14711. SpeechRuleState State) = 0;
  14712. virtual HRESULT STDMETHODCALLTYPE CmdSetRuleIdState(
  14713. LONG RuleId,
  14714. SpeechRuleState State) = 0;
  14715. virtual HRESULT STDMETHODCALLTYPE DictationLoad(
  14716. const BSTR TopicName = L"",
  14717. SpeechLoadOption LoadOption = SLOStatic) = 0;
  14718. virtual HRESULT STDMETHODCALLTYPE DictationUnload(
  14719. ) = 0;
  14720. virtual HRESULT STDMETHODCALLTYPE DictationSetState(
  14721. SpeechRuleState State) = 0;
  14722. virtual HRESULT STDMETHODCALLTYPE SetWordSequenceData(
  14723. const BSTR Text,
  14724. LONG TextLength,
  14725. ISpeechTextSelectionInformation *Info) = 0;
  14726. virtual HRESULT STDMETHODCALLTYPE SetTextSelection(
  14727. ISpeechTextSelectionInformation *Info) = 0;
  14728. virtual HRESULT STDMETHODCALLTYPE IsPronounceable(
  14729. const BSTR Word,
  14730. SpeechWordPronounceable *WordPronounceable) = 0;
  14731. };
  14732. #ifdef __CRT_UUID_DECL
  14733. __CRT_UUID_DECL(ISpeechRecoGrammar, 0xb6d6f79f, 0x2158, 0x4e50, 0xb5,0xbc, 0x9a,0x9c,0xcd,0x85,0x2a,0x09)
  14734. #endif
  14735. #else
  14736. typedef struct ISpeechRecoGrammarVtbl {
  14737. BEGIN_INTERFACE
  14738. /*** IUnknown methods ***/
  14739. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  14740. ISpeechRecoGrammar *This,
  14741. REFIID riid,
  14742. void **ppvObject);
  14743. ULONG (STDMETHODCALLTYPE *AddRef)(
  14744. ISpeechRecoGrammar *This);
  14745. ULONG (STDMETHODCALLTYPE *Release)(
  14746. ISpeechRecoGrammar *This);
  14747. /*** IDispatch methods ***/
  14748. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  14749. ISpeechRecoGrammar *This,
  14750. UINT *pctinfo);
  14751. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  14752. ISpeechRecoGrammar *This,
  14753. UINT iTInfo,
  14754. LCID lcid,
  14755. ITypeInfo **ppTInfo);
  14756. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  14757. ISpeechRecoGrammar *This,
  14758. REFIID riid,
  14759. LPOLESTR *rgszNames,
  14760. UINT cNames,
  14761. LCID lcid,
  14762. DISPID *rgDispId);
  14763. HRESULT (STDMETHODCALLTYPE *Invoke)(
  14764. ISpeechRecoGrammar *This,
  14765. DISPID dispIdMember,
  14766. REFIID riid,
  14767. LCID lcid,
  14768. WORD wFlags,
  14769. DISPPARAMS *pDispParams,
  14770. VARIANT *pVarResult,
  14771. EXCEPINFO *pExcepInfo,
  14772. UINT *puArgErr);
  14773. /*** ISpeechRecoGrammar methods ***/
  14774. HRESULT (STDMETHODCALLTYPE *get_Id)(
  14775. ISpeechRecoGrammar *This,
  14776. VARIANT *Id);
  14777. HRESULT (STDMETHODCALLTYPE *get_RecoContext)(
  14778. ISpeechRecoGrammar *This,
  14779. ISpeechRecoContext **RecoContext);
  14780. HRESULT (STDMETHODCALLTYPE *put_State)(
  14781. ISpeechRecoGrammar *This,
  14782. SpeechGrammarState State);
  14783. HRESULT (STDMETHODCALLTYPE *get_State)(
  14784. ISpeechRecoGrammar *This,
  14785. SpeechGrammarState *State);
  14786. HRESULT (STDMETHODCALLTYPE *get_Rules)(
  14787. ISpeechRecoGrammar *This,
  14788. ISpeechGrammarRules **Rules);
  14789. HRESULT (STDMETHODCALLTYPE *Reset)(
  14790. ISpeechRecoGrammar *This,
  14791. SpeechLanguageId NewLanguage);
  14792. HRESULT (STDMETHODCALLTYPE *CmdLoadFromFile)(
  14793. ISpeechRecoGrammar *This,
  14794. const BSTR FileName,
  14795. SpeechLoadOption LoadOption);
  14796. HRESULT (STDMETHODCALLTYPE *CmdLoadFromObject)(
  14797. ISpeechRecoGrammar *This,
  14798. const BSTR ClassId,
  14799. const BSTR GrammarName,
  14800. SpeechLoadOption LoadOption);
  14801. HRESULT (STDMETHODCALLTYPE *CmdLoadFromResource)(
  14802. ISpeechRecoGrammar *This,
  14803. LONG hModule,
  14804. VARIANT ResourceName,
  14805. VARIANT ResourceType,
  14806. SpeechLanguageId LanguageId,
  14807. SpeechLoadOption LoadOption);
  14808. HRESULT (STDMETHODCALLTYPE *CmdLoadFromMemory)(
  14809. ISpeechRecoGrammar *This,
  14810. VARIANT GrammarData,
  14811. SpeechLoadOption LoadOption);
  14812. HRESULT (STDMETHODCALLTYPE *CmdLoadFromProprietaryGrammar)(
  14813. ISpeechRecoGrammar *This,
  14814. const BSTR ProprietaryGuid,
  14815. const BSTR ProprietaryString,
  14816. VARIANT ProprietaryData,
  14817. SpeechLoadOption LoadOption);
  14818. HRESULT (STDMETHODCALLTYPE *CmdSetRuleState)(
  14819. ISpeechRecoGrammar *This,
  14820. const BSTR Name,
  14821. SpeechRuleState State);
  14822. HRESULT (STDMETHODCALLTYPE *CmdSetRuleIdState)(
  14823. ISpeechRecoGrammar *This,
  14824. LONG RuleId,
  14825. SpeechRuleState State);
  14826. HRESULT (STDMETHODCALLTYPE *DictationLoad)(
  14827. ISpeechRecoGrammar *This,
  14828. const BSTR TopicName,
  14829. SpeechLoadOption LoadOption);
  14830. HRESULT (STDMETHODCALLTYPE *DictationUnload)(
  14831. ISpeechRecoGrammar *This);
  14832. HRESULT (STDMETHODCALLTYPE *DictationSetState)(
  14833. ISpeechRecoGrammar *This,
  14834. SpeechRuleState State);
  14835. HRESULT (STDMETHODCALLTYPE *SetWordSequenceData)(
  14836. ISpeechRecoGrammar *This,
  14837. const BSTR Text,
  14838. LONG TextLength,
  14839. ISpeechTextSelectionInformation *Info);
  14840. HRESULT (STDMETHODCALLTYPE *SetTextSelection)(
  14841. ISpeechRecoGrammar *This,
  14842. ISpeechTextSelectionInformation *Info);
  14843. HRESULT (STDMETHODCALLTYPE *IsPronounceable)(
  14844. ISpeechRecoGrammar *This,
  14845. const BSTR Word,
  14846. SpeechWordPronounceable *WordPronounceable);
  14847. END_INTERFACE
  14848. } ISpeechRecoGrammarVtbl;
  14849. interface ISpeechRecoGrammar {
  14850. CONST_VTBL ISpeechRecoGrammarVtbl* lpVtbl;
  14851. };
  14852. #ifdef COBJMACROS
  14853. #ifndef WIDL_C_INLINE_WRAPPERS
  14854. /*** IUnknown methods ***/
  14855. #define ISpeechRecoGrammar_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  14856. #define ISpeechRecoGrammar_AddRef(This) (This)->lpVtbl->AddRef(This)
  14857. #define ISpeechRecoGrammar_Release(This) (This)->lpVtbl->Release(This)
  14858. /*** IDispatch methods ***/
  14859. #define ISpeechRecoGrammar_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  14860. #define ISpeechRecoGrammar_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  14861. #define ISpeechRecoGrammar_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  14862. #define ISpeechRecoGrammar_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  14863. /*** ISpeechRecoGrammar methods ***/
  14864. #define ISpeechRecoGrammar_get_Id(This,Id) (This)->lpVtbl->get_Id(This,Id)
  14865. #define ISpeechRecoGrammar_get_RecoContext(This,RecoContext) (This)->lpVtbl->get_RecoContext(This,RecoContext)
  14866. #define ISpeechRecoGrammar_put_State(This,State) (This)->lpVtbl->put_State(This,State)
  14867. #define ISpeechRecoGrammar_get_State(This,State) (This)->lpVtbl->get_State(This,State)
  14868. #define ISpeechRecoGrammar_get_Rules(This,Rules) (This)->lpVtbl->get_Rules(This,Rules)
  14869. #define ISpeechRecoGrammar_Reset(This,NewLanguage) (This)->lpVtbl->Reset(This,NewLanguage)
  14870. #define ISpeechRecoGrammar_CmdLoadFromFile(This,FileName,LoadOption) (This)->lpVtbl->CmdLoadFromFile(This,FileName,LoadOption)
  14871. #define ISpeechRecoGrammar_CmdLoadFromObject(This,ClassId,GrammarName,LoadOption) (This)->lpVtbl->CmdLoadFromObject(This,ClassId,GrammarName,LoadOption)
  14872. #define ISpeechRecoGrammar_CmdLoadFromResource(This,hModule,ResourceName,ResourceType,LanguageId,LoadOption) (This)->lpVtbl->CmdLoadFromResource(This,hModule,ResourceName,ResourceType,LanguageId,LoadOption)
  14873. #define ISpeechRecoGrammar_CmdLoadFromMemory(This,GrammarData,LoadOption) (This)->lpVtbl->CmdLoadFromMemory(This,GrammarData,LoadOption)
  14874. #define ISpeechRecoGrammar_CmdLoadFromProprietaryGrammar(This,ProprietaryGuid,ProprietaryString,ProprietaryData,LoadOption) (This)->lpVtbl->CmdLoadFromProprietaryGrammar(This,ProprietaryGuid,ProprietaryString,ProprietaryData,LoadOption)
  14875. #define ISpeechRecoGrammar_CmdSetRuleState(This,Name,State) (This)->lpVtbl->CmdSetRuleState(This,Name,State)
  14876. #define ISpeechRecoGrammar_CmdSetRuleIdState(This,RuleId,State) (This)->lpVtbl->CmdSetRuleIdState(This,RuleId,State)
  14877. #define ISpeechRecoGrammar_DictationLoad(This,TopicName,LoadOption) (This)->lpVtbl->DictationLoad(This,TopicName,LoadOption)
  14878. #define ISpeechRecoGrammar_DictationUnload(This) (This)->lpVtbl->DictationUnload(This)
  14879. #define ISpeechRecoGrammar_DictationSetState(This,State) (This)->lpVtbl->DictationSetState(This,State)
  14880. #define ISpeechRecoGrammar_SetWordSequenceData(This,Text,TextLength,Info) (This)->lpVtbl->SetWordSequenceData(This,Text,TextLength,Info)
  14881. #define ISpeechRecoGrammar_SetTextSelection(This,Info) (This)->lpVtbl->SetTextSelection(This,Info)
  14882. #define ISpeechRecoGrammar_IsPronounceable(This,Word,WordPronounceable) (This)->lpVtbl->IsPronounceable(This,Word,WordPronounceable)
  14883. #else
  14884. /*** IUnknown methods ***/
  14885. static FORCEINLINE HRESULT ISpeechRecoGrammar_QueryInterface(ISpeechRecoGrammar* This,REFIID riid,void **ppvObject) {
  14886. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  14887. }
  14888. static FORCEINLINE ULONG ISpeechRecoGrammar_AddRef(ISpeechRecoGrammar* This) {
  14889. return This->lpVtbl->AddRef(This);
  14890. }
  14891. static FORCEINLINE ULONG ISpeechRecoGrammar_Release(ISpeechRecoGrammar* This) {
  14892. return This->lpVtbl->Release(This);
  14893. }
  14894. /*** IDispatch methods ***/
  14895. static FORCEINLINE HRESULT ISpeechRecoGrammar_GetTypeInfoCount(ISpeechRecoGrammar* This,UINT *pctinfo) {
  14896. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  14897. }
  14898. static FORCEINLINE HRESULT ISpeechRecoGrammar_GetTypeInfo(ISpeechRecoGrammar* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  14899. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  14900. }
  14901. static FORCEINLINE HRESULT ISpeechRecoGrammar_GetIDsOfNames(ISpeechRecoGrammar* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  14902. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  14903. }
  14904. static FORCEINLINE HRESULT ISpeechRecoGrammar_Invoke(ISpeechRecoGrammar* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  14905. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  14906. }
  14907. /*** ISpeechRecoGrammar methods ***/
  14908. static FORCEINLINE HRESULT ISpeechRecoGrammar_get_Id(ISpeechRecoGrammar* This,VARIANT *Id) {
  14909. return This->lpVtbl->get_Id(This,Id);
  14910. }
  14911. static FORCEINLINE HRESULT ISpeechRecoGrammar_get_RecoContext(ISpeechRecoGrammar* This,ISpeechRecoContext **RecoContext) {
  14912. return This->lpVtbl->get_RecoContext(This,RecoContext);
  14913. }
  14914. static FORCEINLINE HRESULT ISpeechRecoGrammar_put_State(ISpeechRecoGrammar* This,SpeechGrammarState State) {
  14915. return This->lpVtbl->put_State(This,State);
  14916. }
  14917. static FORCEINLINE HRESULT ISpeechRecoGrammar_get_State(ISpeechRecoGrammar* This,SpeechGrammarState *State) {
  14918. return This->lpVtbl->get_State(This,State);
  14919. }
  14920. static FORCEINLINE HRESULT ISpeechRecoGrammar_get_Rules(ISpeechRecoGrammar* This,ISpeechGrammarRules **Rules) {
  14921. return This->lpVtbl->get_Rules(This,Rules);
  14922. }
  14923. static FORCEINLINE HRESULT ISpeechRecoGrammar_Reset(ISpeechRecoGrammar* This,SpeechLanguageId NewLanguage) {
  14924. return This->lpVtbl->Reset(This,NewLanguage);
  14925. }
  14926. static FORCEINLINE HRESULT ISpeechRecoGrammar_CmdLoadFromFile(ISpeechRecoGrammar* This,const BSTR FileName,SpeechLoadOption LoadOption) {
  14927. return This->lpVtbl->CmdLoadFromFile(This,FileName,LoadOption);
  14928. }
  14929. static FORCEINLINE HRESULT ISpeechRecoGrammar_CmdLoadFromObject(ISpeechRecoGrammar* This,const BSTR ClassId,const BSTR GrammarName,SpeechLoadOption LoadOption) {
  14930. return This->lpVtbl->CmdLoadFromObject(This,ClassId,GrammarName,LoadOption);
  14931. }
  14932. static FORCEINLINE HRESULT ISpeechRecoGrammar_CmdLoadFromResource(ISpeechRecoGrammar* This,LONG hModule,VARIANT ResourceName,VARIANT ResourceType,SpeechLanguageId LanguageId,SpeechLoadOption LoadOption) {
  14933. return This->lpVtbl->CmdLoadFromResource(This,hModule,ResourceName,ResourceType,LanguageId,LoadOption);
  14934. }
  14935. static FORCEINLINE HRESULT ISpeechRecoGrammar_CmdLoadFromMemory(ISpeechRecoGrammar* This,VARIANT GrammarData,SpeechLoadOption LoadOption) {
  14936. return This->lpVtbl->CmdLoadFromMemory(This,GrammarData,LoadOption);
  14937. }
  14938. static FORCEINLINE HRESULT ISpeechRecoGrammar_CmdLoadFromProprietaryGrammar(ISpeechRecoGrammar* This,const BSTR ProprietaryGuid,const BSTR ProprietaryString,VARIANT ProprietaryData,SpeechLoadOption LoadOption) {
  14939. return This->lpVtbl->CmdLoadFromProprietaryGrammar(This,ProprietaryGuid,ProprietaryString,ProprietaryData,LoadOption);
  14940. }
  14941. static FORCEINLINE HRESULT ISpeechRecoGrammar_CmdSetRuleState(ISpeechRecoGrammar* This,const BSTR Name,SpeechRuleState State) {
  14942. return This->lpVtbl->CmdSetRuleState(This,Name,State);
  14943. }
  14944. static FORCEINLINE HRESULT ISpeechRecoGrammar_CmdSetRuleIdState(ISpeechRecoGrammar* This,LONG RuleId,SpeechRuleState State) {
  14945. return This->lpVtbl->CmdSetRuleIdState(This,RuleId,State);
  14946. }
  14947. static FORCEINLINE HRESULT ISpeechRecoGrammar_DictationLoad(ISpeechRecoGrammar* This,const BSTR TopicName,SpeechLoadOption LoadOption) {
  14948. return This->lpVtbl->DictationLoad(This,TopicName,LoadOption);
  14949. }
  14950. static FORCEINLINE HRESULT ISpeechRecoGrammar_DictationUnload(ISpeechRecoGrammar* This) {
  14951. return This->lpVtbl->DictationUnload(This);
  14952. }
  14953. static FORCEINLINE HRESULT ISpeechRecoGrammar_DictationSetState(ISpeechRecoGrammar* This,SpeechRuleState State) {
  14954. return This->lpVtbl->DictationSetState(This,State);
  14955. }
  14956. static FORCEINLINE HRESULT ISpeechRecoGrammar_SetWordSequenceData(ISpeechRecoGrammar* This,const BSTR Text,LONG TextLength,ISpeechTextSelectionInformation *Info) {
  14957. return This->lpVtbl->SetWordSequenceData(This,Text,TextLength,Info);
  14958. }
  14959. static FORCEINLINE HRESULT ISpeechRecoGrammar_SetTextSelection(ISpeechRecoGrammar* This,ISpeechTextSelectionInformation *Info) {
  14960. return This->lpVtbl->SetTextSelection(This,Info);
  14961. }
  14962. static FORCEINLINE HRESULT ISpeechRecoGrammar_IsPronounceable(ISpeechRecoGrammar* This,const BSTR Word,SpeechWordPronounceable *WordPronounceable) {
  14963. return This->lpVtbl->IsPronounceable(This,Word,WordPronounceable);
  14964. }
  14965. #endif
  14966. #endif
  14967. #endif
  14968. #endif /* __ISpeechRecoGrammar_INTERFACE_DEFINED__ */
  14969. /*****************************************************************************
  14970. * _ISpeechRecoContextEvents dispinterface
  14971. */
  14972. #ifndef ___ISpeechRecoContextEvents_DISPINTERFACE_DEFINED__
  14973. #define ___ISpeechRecoContextEvents_DISPINTERFACE_DEFINED__
  14974. DEFINE_GUID(DIID__ISpeechRecoContextEvents, 0x7b8fcb42, 0x0e9d, 0x4f00, 0xa0,0x48, 0x7b,0x04,0xd6,0x17,0x9d,0x3d);
  14975. #if defined(__cplusplus) && !defined(CINTERFACE)
  14976. MIDL_INTERFACE("7b8fcb42-0e9d-4f00-a048-7b04d6179d3d")
  14977. _ISpeechRecoContextEvents : public IDispatch
  14978. {
  14979. };
  14980. #ifdef __CRT_UUID_DECL
  14981. __CRT_UUID_DECL(_ISpeechRecoContextEvents, 0x7b8fcb42, 0x0e9d, 0x4f00, 0xa0,0x48, 0x7b,0x04,0xd6,0x17,0x9d,0x3d)
  14982. #endif
  14983. #else
  14984. typedef struct _ISpeechRecoContextEventsVtbl {
  14985. BEGIN_INTERFACE
  14986. /*** IUnknown methods ***/
  14987. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  14988. _ISpeechRecoContextEvents *This,
  14989. REFIID riid,
  14990. void **ppvObject);
  14991. ULONG (STDMETHODCALLTYPE *AddRef)(
  14992. _ISpeechRecoContextEvents *This);
  14993. ULONG (STDMETHODCALLTYPE *Release)(
  14994. _ISpeechRecoContextEvents *This);
  14995. /*** IDispatch methods ***/
  14996. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  14997. _ISpeechRecoContextEvents *This,
  14998. UINT *pctinfo);
  14999. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  15000. _ISpeechRecoContextEvents *This,
  15001. UINT iTInfo,
  15002. LCID lcid,
  15003. ITypeInfo **ppTInfo);
  15004. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  15005. _ISpeechRecoContextEvents *This,
  15006. REFIID riid,
  15007. LPOLESTR *rgszNames,
  15008. UINT cNames,
  15009. LCID lcid,
  15010. DISPID *rgDispId);
  15011. HRESULT (STDMETHODCALLTYPE *Invoke)(
  15012. _ISpeechRecoContextEvents *This,
  15013. DISPID dispIdMember,
  15014. REFIID riid,
  15015. LCID lcid,
  15016. WORD wFlags,
  15017. DISPPARAMS *pDispParams,
  15018. VARIANT *pVarResult,
  15019. EXCEPINFO *pExcepInfo,
  15020. UINT *puArgErr);
  15021. END_INTERFACE
  15022. } _ISpeechRecoContextEventsVtbl;
  15023. interface _ISpeechRecoContextEvents {
  15024. CONST_VTBL _ISpeechRecoContextEventsVtbl* lpVtbl;
  15025. };
  15026. #ifdef COBJMACROS
  15027. #ifndef WIDL_C_INLINE_WRAPPERS
  15028. /*** IUnknown methods ***/
  15029. #define _ISpeechRecoContextEvents_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  15030. #define _ISpeechRecoContextEvents_AddRef(This) (This)->lpVtbl->AddRef(This)
  15031. #define _ISpeechRecoContextEvents_Release(This) (This)->lpVtbl->Release(This)
  15032. /*** IDispatch methods ***/
  15033. #define _ISpeechRecoContextEvents_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  15034. #define _ISpeechRecoContextEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15035. #define _ISpeechRecoContextEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15036. #define _ISpeechRecoContextEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15037. #else
  15038. /*** IUnknown methods ***/
  15039. static FORCEINLINE HRESULT _ISpeechRecoContextEvents_QueryInterface(_ISpeechRecoContextEvents* This,REFIID riid,void **ppvObject) {
  15040. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  15041. }
  15042. static FORCEINLINE ULONG _ISpeechRecoContextEvents_AddRef(_ISpeechRecoContextEvents* This) {
  15043. return This->lpVtbl->AddRef(This);
  15044. }
  15045. static FORCEINLINE ULONG _ISpeechRecoContextEvents_Release(_ISpeechRecoContextEvents* This) {
  15046. return This->lpVtbl->Release(This);
  15047. }
  15048. /*** IDispatch methods ***/
  15049. static FORCEINLINE HRESULT _ISpeechRecoContextEvents_GetTypeInfoCount(_ISpeechRecoContextEvents* This,UINT *pctinfo) {
  15050. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  15051. }
  15052. static FORCEINLINE HRESULT _ISpeechRecoContextEvents_GetTypeInfo(_ISpeechRecoContextEvents* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  15053. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  15054. }
  15055. static FORCEINLINE HRESULT _ISpeechRecoContextEvents_GetIDsOfNames(_ISpeechRecoContextEvents* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  15056. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  15057. }
  15058. static FORCEINLINE HRESULT _ISpeechRecoContextEvents_Invoke(_ISpeechRecoContextEvents* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  15059. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  15060. }
  15061. #endif
  15062. #endif
  15063. #endif
  15064. #endif /* ___ISpeechRecoContextEvents_DISPINTERFACE_DEFINED__ */
  15065. /*****************************************************************************
  15066. * ISpeechGrammarRule interface
  15067. */
  15068. #ifndef __ISpeechGrammarRule_INTERFACE_DEFINED__
  15069. #define __ISpeechGrammarRule_INTERFACE_DEFINED__
  15070. DEFINE_GUID(IID_ISpeechGrammarRule, 0xafe719cf, 0x5dd1, 0x44f2, 0x99,0x9c, 0x7a,0x39,0x9f,0x1c,0xfc,0xcc);
  15071. #if defined(__cplusplus) && !defined(CINTERFACE)
  15072. MIDL_INTERFACE("afe719cf-5dd1-44f2-999c-7a399f1cfccc")
  15073. ISpeechGrammarRule : public IDispatch
  15074. {
  15075. virtual HRESULT STDMETHODCALLTYPE get_Attributes(
  15076. SpeechRuleAttributes *Attributes) = 0;
  15077. virtual HRESULT STDMETHODCALLTYPE get_InitialState(
  15078. ISpeechGrammarRuleState **State) = 0;
  15079. virtual HRESULT STDMETHODCALLTYPE get_Name(
  15080. BSTR *Name) = 0;
  15081. virtual HRESULT STDMETHODCALLTYPE get_Id(
  15082. LONG *Id) = 0;
  15083. virtual HRESULT STDMETHODCALLTYPE Clear(
  15084. ) = 0;
  15085. virtual HRESULT STDMETHODCALLTYPE AddResource(
  15086. const BSTR ResourceName,
  15087. const BSTR ResourceValue) = 0;
  15088. virtual HRESULT STDMETHODCALLTYPE AddState(
  15089. ISpeechGrammarRuleState **State) = 0;
  15090. };
  15091. #ifdef __CRT_UUID_DECL
  15092. __CRT_UUID_DECL(ISpeechGrammarRule, 0xafe719cf, 0x5dd1, 0x44f2, 0x99,0x9c, 0x7a,0x39,0x9f,0x1c,0xfc,0xcc)
  15093. #endif
  15094. #else
  15095. typedef struct ISpeechGrammarRuleVtbl {
  15096. BEGIN_INTERFACE
  15097. /*** IUnknown methods ***/
  15098. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  15099. ISpeechGrammarRule *This,
  15100. REFIID riid,
  15101. void **ppvObject);
  15102. ULONG (STDMETHODCALLTYPE *AddRef)(
  15103. ISpeechGrammarRule *This);
  15104. ULONG (STDMETHODCALLTYPE *Release)(
  15105. ISpeechGrammarRule *This);
  15106. /*** IDispatch methods ***/
  15107. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  15108. ISpeechGrammarRule *This,
  15109. UINT *pctinfo);
  15110. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  15111. ISpeechGrammarRule *This,
  15112. UINT iTInfo,
  15113. LCID lcid,
  15114. ITypeInfo **ppTInfo);
  15115. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  15116. ISpeechGrammarRule *This,
  15117. REFIID riid,
  15118. LPOLESTR *rgszNames,
  15119. UINT cNames,
  15120. LCID lcid,
  15121. DISPID *rgDispId);
  15122. HRESULT (STDMETHODCALLTYPE *Invoke)(
  15123. ISpeechGrammarRule *This,
  15124. DISPID dispIdMember,
  15125. REFIID riid,
  15126. LCID lcid,
  15127. WORD wFlags,
  15128. DISPPARAMS *pDispParams,
  15129. VARIANT *pVarResult,
  15130. EXCEPINFO *pExcepInfo,
  15131. UINT *puArgErr);
  15132. /*** ISpeechGrammarRule methods ***/
  15133. HRESULT (STDMETHODCALLTYPE *get_Attributes)(
  15134. ISpeechGrammarRule *This,
  15135. SpeechRuleAttributes *Attributes);
  15136. HRESULT (STDMETHODCALLTYPE *get_InitialState)(
  15137. ISpeechGrammarRule *This,
  15138. ISpeechGrammarRuleState **State);
  15139. HRESULT (STDMETHODCALLTYPE *get_Name)(
  15140. ISpeechGrammarRule *This,
  15141. BSTR *Name);
  15142. HRESULT (STDMETHODCALLTYPE *get_Id)(
  15143. ISpeechGrammarRule *This,
  15144. LONG *Id);
  15145. HRESULT (STDMETHODCALLTYPE *Clear)(
  15146. ISpeechGrammarRule *This);
  15147. HRESULT (STDMETHODCALLTYPE *AddResource)(
  15148. ISpeechGrammarRule *This,
  15149. const BSTR ResourceName,
  15150. const BSTR ResourceValue);
  15151. HRESULT (STDMETHODCALLTYPE *AddState)(
  15152. ISpeechGrammarRule *This,
  15153. ISpeechGrammarRuleState **State);
  15154. END_INTERFACE
  15155. } ISpeechGrammarRuleVtbl;
  15156. interface ISpeechGrammarRule {
  15157. CONST_VTBL ISpeechGrammarRuleVtbl* lpVtbl;
  15158. };
  15159. #ifdef COBJMACROS
  15160. #ifndef WIDL_C_INLINE_WRAPPERS
  15161. /*** IUnknown methods ***/
  15162. #define ISpeechGrammarRule_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  15163. #define ISpeechGrammarRule_AddRef(This) (This)->lpVtbl->AddRef(This)
  15164. #define ISpeechGrammarRule_Release(This) (This)->lpVtbl->Release(This)
  15165. /*** IDispatch methods ***/
  15166. #define ISpeechGrammarRule_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  15167. #define ISpeechGrammarRule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15168. #define ISpeechGrammarRule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15169. #define ISpeechGrammarRule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15170. /*** ISpeechGrammarRule methods ***/
  15171. #define ISpeechGrammarRule_get_Attributes(This,Attributes) (This)->lpVtbl->get_Attributes(This,Attributes)
  15172. #define ISpeechGrammarRule_get_InitialState(This,State) (This)->lpVtbl->get_InitialState(This,State)
  15173. #define ISpeechGrammarRule_get_Name(This,Name) (This)->lpVtbl->get_Name(This,Name)
  15174. #define ISpeechGrammarRule_get_Id(This,Id) (This)->lpVtbl->get_Id(This,Id)
  15175. #define ISpeechGrammarRule_Clear(This) (This)->lpVtbl->Clear(This)
  15176. #define ISpeechGrammarRule_AddResource(This,ResourceName,ResourceValue) (This)->lpVtbl->AddResource(This,ResourceName,ResourceValue)
  15177. #define ISpeechGrammarRule_AddState(This,State) (This)->lpVtbl->AddState(This,State)
  15178. #else
  15179. /*** IUnknown methods ***/
  15180. static FORCEINLINE HRESULT ISpeechGrammarRule_QueryInterface(ISpeechGrammarRule* This,REFIID riid,void **ppvObject) {
  15181. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  15182. }
  15183. static FORCEINLINE ULONG ISpeechGrammarRule_AddRef(ISpeechGrammarRule* This) {
  15184. return This->lpVtbl->AddRef(This);
  15185. }
  15186. static FORCEINLINE ULONG ISpeechGrammarRule_Release(ISpeechGrammarRule* This) {
  15187. return This->lpVtbl->Release(This);
  15188. }
  15189. /*** IDispatch methods ***/
  15190. static FORCEINLINE HRESULT ISpeechGrammarRule_GetTypeInfoCount(ISpeechGrammarRule* This,UINT *pctinfo) {
  15191. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  15192. }
  15193. static FORCEINLINE HRESULT ISpeechGrammarRule_GetTypeInfo(ISpeechGrammarRule* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  15194. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  15195. }
  15196. static FORCEINLINE HRESULT ISpeechGrammarRule_GetIDsOfNames(ISpeechGrammarRule* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  15197. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  15198. }
  15199. static FORCEINLINE HRESULT ISpeechGrammarRule_Invoke(ISpeechGrammarRule* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  15200. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  15201. }
  15202. /*** ISpeechGrammarRule methods ***/
  15203. static FORCEINLINE HRESULT ISpeechGrammarRule_get_Attributes(ISpeechGrammarRule* This,SpeechRuleAttributes *Attributes) {
  15204. return This->lpVtbl->get_Attributes(This,Attributes);
  15205. }
  15206. static FORCEINLINE HRESULT ISpeechGrammarRule_get_InitialState(ISpeechGrammarRule* This,ISpeechGrammarRuleState **State) {
  15207. return This->lpVtbl->get_InitialState(This,State);
  15208. }
  15209. static FORCEINLINE HRESULT ISpeechGrammarRule_get_Name(ISpeechGrammarRule* This,BSTR *Name) {
  15210. return This->lpVtbl->get_Name(This,Name);
  15211. }
  15212. static FORCEINLINE HRESULT ISpeechGrammarRule_get_Id(ISpeechGrammarRule* This,LONG *Id) {
  15213. return This->lpVtbl->get_Id(This,Id);
  15214. }
  15215. static FORCEINLINE HRESULT ISpeechGrammarRule_Clear(ISpeechGrammarRule* This) {
  15216. return This->lpVtbl->Clear(This);
  15217. }
  15218. static FORCEINLINE HRESULT ISpeechGrammarRule_AddResource(ISpeechGrammarRule* This,const BSTR ResourceName,const BSTR ResourceValue) {
  15219. return This->lpVtbl->AddResource(This,ResourceName,ResourceValue);
  15220. }
  15221. static FORCEINLINE HRESULT ISpeechGrammarRule_AddState(ISpeechGrammarRule* This,ISpeechGrammarRuleState **State) {
  15222. return This->lpVtbl->AddState(This,State);
  15223. }
  15224. #endif
  15225. #endif
  15226. #endif
  15227. #endif /* __ISpeechGrammarRule_INTERFACE_DEFINED__ */
  15228. /*****************************************************************************
  15229. * ISpeechGrammarRules interface
  15230. */
  15231. #ifndef __ISpeechGrammarRules_INTERFACE_DEFINED__
  15232. #define __ISpeechGrammarRules_INTERFACE_DEFINED__
  15233. DEFINE_GUID(IID_ISpeechGrammarRules, 0x6ffa3b44, 0xfc2d, 0x40d1, 0x8a,0xfc, 0x32,0x91,0x1c,0x7f,0x1a,0xd1);
  15234. #if defined(__cplusplus) && !defined(CINTERFACE)
  15235. MIDL_INTERFACE("6ffa3b44-fc2d-40d1-8afc-32911c7f1ad1")
  15236. ISpeechGrammarRules : public IDispatch
  15237. {
  15238. virtual HRESULT STDMETHODCALLTYPE get_Count(
  15239. LONG *Count) = 0;
  15240. virtual HRESULT STDMETHODCALLTYPE FindRule(
  15241. VARIANT RuleNameOrId,
  15242. ISpeechGrammarRule **Rule) = 0;
  15243. virtual HRESULT STDMETHODCALLTYPE Item(
  15244. LONG Index,
  15245. ISpeechGrammarRule **Rule) = 0;
  15246. virtual HRESULT STDMETHODCALLTYPE get__NewEnum(
  15247. IUnknown **EnumVARIANT) = 0;
  15248. virtual HRESULT STDMETHODCALLTYPE get_Dynamic(
  15249. VARIANT_BOOL *Dynamic) = 0;
  15250. virtual HRESULT STDMETHODCALLTYPE Add(
  15251. BSTR RuleName,
  15252. SpeechRuleAttributes Attributes,
  15253. LONG RuleId,
  15254. ISpeechGrammarRule **Rule) = 0;
  15255. virtual HRESULT STDMETHODCALLTYPE Commit(
  15256. ) = 0;
  15257. virtual HRESULT STDMETHODCALLTYPE CommitAndSave(
  15258. BSTR *ErrorText,
  15259. VARIANT *SaveStream) = 0;
  15260. };
  15261. #ifdef __CRT_UUID_DECL
  15262. __CRT_UUID_DECL(ISpeechGrammarRules, 0x6ffa3b44, 0xfc2d, 0x40d1, 0x8a,0xfc, 0x32,0x91,0x1c,0x7f,0x1a,0xd1)
  15263. #endif
  15264. #else
  15265. typedef struct ISpeechGrammarRulesVtbl {
  15266. BEGIN_INTERFACE
  15267. /*** IUnknown methods ***/
  15268. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  15269. ISpeechGrammarRules *This,
  15270. REFIID riid,
  15271. void **ppvObject);
  15272. ULONG (STDMETHODCALLTYPE *AddRef)(
  15273. ISpeechGrammarRules *This);
  15274. ULONG (STDMETHODCALLTYPE *Release)(
  15275. ISpeechGrammarRules *This);
  15276. /*** IDispatch methods ***/
  15277. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  15278. ISpeechGrammarRules *This,
  15279. UINT *pctinfo);
  15280. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  15281. ISpeechGrammarRules *This,
  15282. UINT iTInfo,
  15283. LCID lcid,
  15284. ITypeInfo **ppTInfo);
  15285. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  15286. ISpeechGrammarRules *This,
  15287. REFIID riid,
  15288. LPOLESTR *rgszNames,
  15289. UINT cNames,
  15290. LCID lcid,
  15291. DISPID *rgDispId);
  15292. HRESULT (STDMETHODCALLTYPE *Invoke)(
  15293. ISpeechGrammarRules *This,
  15294. DISPID dispIdMember,
  15295. REFIID riid,
  15296. LCID lcid,
  15297. WORD wFlags,
  15298. DISPPARAMS *pDispParams,
  15299. VARIANT *pVarResult,
  15300. EXCEPINFO *pExcepInfo,
  15301. UINT *puArgErr);
  15302. /*** ISpeechGrammarRules methods ***/
  15303. HRESULT (STDMETHODCALLTYPE *get_Count)(
  15304. ISpeechGrammarRules *This,
  15305. LONG *Count);
  15306. HRESULT (STDMETHODCALLTYPE *FindRule)(
  15307. ISpeechGrammarRules *This,
  15308. VARIANT RuleNameOrId,
  15309. ISpeechGrammarRule **Rule);
  15310. HRESULT (STDMETHODCALLTYPE *Item)(
  15311. ISpeechGrammarRules *This,
  15312. LONG Index,
  15313. ISpeechGrammarRule **Rule);
  15314. HRESULT (STDMETHODCALLTYPE *get__NewEnum)(
  15315. ISpeechGrammarRules *This,
  15316. IUnknown **EnumVARIANT);
  15317. HRESULT (STDMETHODCALLTYPE *get_Dynamic)(
  15318. ISpeechGrammarRules *This,
  15319. VARIANT_BOOL *Dynamic);
  15320. HRESULT (STDMETHODCALLTYPE *Add)(
  15321. ISpeechGrammarRules *This,
  15322. BSTR RuleName,
  15323. SpeechRuleAttributes Attributes,
  15324. LONG RuleId,
  15325. ISpeechGrammarRule **Rule);
  15326. HRESULT (STDMETHODCALLTYPE *Commit)(
  15327. ISpeechGrammarRules *This);
  15328. HRESULT (STDMETHODCALLTYPE *CommitAndSave)(
  15329. ISpeechGrammarRules *This,
  15330. BSTR *ErrorText,
  15331. VARIANT *SaveStream);
  15332. END_INTERFACE
  15333. } ISpeechGrammarRulesVtbl;
  15334. interface ISpeechGrammarRules {
  15335. CONST_VTBL ISpeechGrammarRulesVtbl* lpVtbl;
  15336. };
  15337. #ifdef COBJMACROS
  15338. #ifndef WIDL_C_INLINE_WRAPPERS
  15339. /*** IUnknown methods ***/
  15340. #define ISpeechGrammarRules_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  15341. #define ISpeechGrammarRules_AddRef(This) (This)->lpVtbl->AddRef(This)
  15342. #define ISpeechGrammarRules_Release(This) (This)->lpVtbl->Release(This)
  15343. /*** IDispatch methods ***/
  15344. #define ISpeechGrammarRules_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  15345. #define ISpeechGrammarRules_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15346. #define ISpeechGrammarRules_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15347. #define ISpeechGrammarRules_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15348. /*** ISpeechGrammarRules methods ***/
  15349. #define ISpeechGrammarRules_get_Count(This,Count) (This)->lpVtbl->get_Count(This,Count)
  15350. #define ISpeechGrammarRules_FindRule(This,RuleNameOrId,Rule) (This)->lpVtbl->FindRule(This,RuleNameOrId,Rule)
  15351. #define ISpeechGrammarRules_Item(This,Index,Rule) (This)->lpVtbl->Item(This,Index,Rule)
  15352. #define ISpeechGrammarRules_get__NewEnum(This,EnumVARIANT) (This)->lpVtbl->get__NewEnum(This,EnumVARIANT)
  15353. #define ISpeechGrammarRules_get_Dynamic(This,Dynamic) (This)->lpVtbl->get_Dynamic(This,Dynamic)
  15354. #define ISpeechGrammarRules_Add(This,RuleName,Attributes,RuleId,Rule) (This)->lpVtbl->Add(This,RuleName,Attributes,RuleId,Rule)
  15355. #define ISpeechGrammarRules_Commit(This) (This)->lpVtbl->Commit(This)
  15356. #define ISpeechGrammarRules_CommitAndSave(This,ErrorText,SaveStream) (This)->lpVtbl->CommitAndSave(This,ErrorText,SaveStream)
  15357. #else
  15358. /*** IUnknown methods ***/
  15359. static FORCEINLINE HRESULT ISpeechGrammarRules_QueryInterface(ISpeechGrammarRules* This,REFIID riid,void **ppvObject) {
  15360. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  15361. }
  15362. static FORCEINLINE ULONG ISpeechGrammarRules_AddRef(ISpeechGrammarRules* This) {
  15363. return This->lpVtbl->AddRef(This);
  15364. }
  15365. static FORCEINLINE ULONG ISpeechGrammarRules_Release(ISpeechGrammarRules* This) {
  15366. return This->lpVtbl->Release(This);
  15367. }
  15368. /*** IDispatch methods ***/
  15369. static FORCEINLINE HRESULT ISpeechGrammarRules_GetTypeInfoCount(ISpeechGrammarRules* This,UINT *pctinfo) {
  15370. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  15371. }
  15372. static FORCEINLINE HRESULT ISpeechGrammarRules_GetTypeInfo(ISpeechGrammarRules* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  15373. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  15374. }
  15375. static FORCEINLINE HRESULT ISpeechGrammarRules_GetIDsOfNames(ISpeechGrammarRules* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  15376. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  15377. }
  15378. static FORCEINLINE HRESULT ISpeechGrammarRules_Invoke(ISpeechGrammarRules* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  15379. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  15380. }
  15381. /*** ISpeechGrammarRules methods ***/
  15382. static FORCEINLINE HRESULT ISpeechGrammarRules_get_Count(ISpeechGrammarRules* This,LONG *Count) {
  15383. return This->lpVtbl->get_Count(This,Count);
  15384. }
  15385. static FORCEINLINE HRESULT ISpeechGrammarRules_FindRule(ISpeechGrammarRules* This,VARIANT RuleNameOrId,ISpeechGrammarRule **Rule) {
  15386. return This->lpVtbl->FindRule(This,RuleNameOrId,Rule);
  15387. }
  15388. static FORCEINLINE HRESULT ISpeechGrammarRules_Item(ISpeechGrammarRules* This,LONG Index,ISpeechGrammarRule **Rule) {
  15389. return This->lpVtbl->Item(This,Index,Rule);
  15390. }
  15391. static FORCEINLINE HRESULT ISpeechGrammarRules_get__NewEnum(ISpeechGrammarRules* This,IUnknown **EnumVARIANT) {
  15392. return This->lpVtbl->get__NewEnum(This,EnumVARIANT);
  15393. }
  15394. static FORCEINLINE HRESULT ISpeechGrammarRules_get_Dynamic(ISpeechGrammarRules* This,VARIANT_BOOL *Dynamic) {
  15395. return This->lpVtbl->get_Dynamic(This,Dynamic);
  15396. }
  15397. static FORCEINLINE HRESULT ISpeechGrammarRules_Add(ISpeechGrammarRules* This,BSTR RuleName,SpeechRuleAttributes Attributes,LONG RuleId,ISpeechGrammarRule **Rule) {
  15398. return This->lpVtbl->Add(This,RuleName,Attributes,RuleId,Rule);
  15399. }
  15400. static FORCEINLINE HRESULT ISpeechGrammarRules_Commit(ISpeechGrammarRules* This) {
  15401. return This->lpVtbl->Commit(This);
  15402. }
  15403. static FORCEINLINE HRESULT ISpeechGrammarRules_CommitAndSave(ISpeechGrammarRules* This,BSTR *ErrorText,VARIANT *SaveStream) {
  15404. return This->lpVtbl->CommitAndSave(This,ErrorText,SaveStream);
  15405. }
  15406. #endif
  15407. #endif
  15408. #endif
  15409. #endif /* __ISpeechGrammarRules_INTERFACE_DEFINED__ */
  15410. /*****************************************************************************
  15411. * ISpeechGrammarRuleState interface
  15412. */
  15413. #ifndef __ISpeechGrammarRuleState_INTERFACE_DEFINED__
  15414. #define __ISpeechGrammarRuleState_INTERFACE_DEFINED__
  15415. DEFINE_GUID(IID_ISpeechGrammarRuleState, 0xd4286f2c, 0xee67, 0x45ae, 0xb9,0x28, 0x28,0xd6,0x95,0x36,0x2e,0xda);
  15416. #if defined(__cplusplus) && !defined(CINTERFACE)
  15417. MIDL_INTERFACE("d4286f2c-ee67-45ae-b928-28d695362eda")
  15418. ISpeechGrammarRuleState : public IDispatch
  15419. {
  15420. virtual HRESULT STDMETHODCALLTYPE get_Rule(
  15421. ISpeechGrammarRule **Rule) = 0;
  15422. virtual HRESULT STDMETHODCALLTYPE get_Transitions(
  15423. ISpeechGrammarRuleStateTransitions **Transitions) = 0;
  15424. virtual HRESULT STDMETHODCALLTYPE AddWordTransition(
  15425. ISpeechGrammarRuleState *DestState,
  15426. const BSTR Words,
  15427. const BSTR Separators = L" ",
  15428. SpeechGrammarWordType Type = SGLexical,
  15429. const BSTR PropertyName = L"",
  15430. LONG PropertyId = 0,
  15431. VARIANT *PropertyValue = 0,
  15432. float Weight = 1) = 0;
  15433. virtual HRESULT STDMETHODCALLTYPE AddRuleTransition(
  15434. ISpeechGrammarRuleState *DestinationState,
  15435. ISpeechGrammarRule *Rule,
  15436. const BSTR PropertyName = L"",
  15437. LONG PropertyId = 0,
  15438. VARIANT *PropertyValue = 0,
  15439. float Weight = 1) = 0;
  15440. virtual HRESULT STDMETHODCALLTYPE AddSpecialTransition(
  15441. ISpeechGrammarRuleState *DestinationState,
  15442. SpeechSpecialTransitionType Type,
  15443. const BSTR PropertyName = L"",
  15444. LONG PropertyId = 0,
  15445. VARIANT *PropertyValue = 0,
  15446. float Weight = 1) = 0;
  15447. };
  15448. #ifdef __CRT_UUID_DECL
  15449. __CRT_UUID_DECL(ISpeechGrammarRuleState, 0xd4286f2c, 0xee67, 0x45ae, 0xb9,0x28, 0x28,0xd6,0x95,0x36,0x2e,0xda)
  15450. #endif
  15451. #else
  15452. typedef struct ISpeechGrammarRuleStateVtbl {
  15453. BEGIN_INTERFACE
  15454. /*** IUnknown methods ***/
  15455. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  15456. ISpeechGrammarRuleState *This,
  15457. REFIID riid,
  15458. void **ppvObject);
  15459. ULONG (STDMETHODCALLTYPE *AddRef)(
  15460. ISpeechGrammarRuleState *This);
  15461. ULONG (STDMETHODCALLTYPE *Release)(
  15462. ISpeechGrammarRuleState *This);
  15463. /*** IDispatch methods ***/
  15464. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  15465. ISpeechGrammarRuleState *This,
  15466. UINT *pctinfo);
  15467. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  15468. ISpeechGrammarRuleState *This,
  15469. UINT iTInfo,
  15470. LCID lcid,
  15471. ITypeInfo **ppTInfo);
  15472. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  15473. ISpeechGrammarRuleState *This,
  15474. REFIID riid,
  15475. LPOLESTR *rgszNames,
  15476. UINT cNames,
  15477. LCID lcid,
  15478. DISPID *rgDispId);
  15479. HRESULT (STDMETHODCALLTYPE *Invoke)(
  15480. ISpeechGrammarRuleState *This,
  15481. DISPID dispIdMember,
  15482. REFIID riid,
  15483. LCID lcid,
  15484. WORD wFlags,
  15485. DISPPARAMS *pDispParams,
  15486. VARIANT *pVarResult,
  15487. EXCEPINFO *pExcepInfo,
  15488. UINT *puArgErr);
  15489. /*** ISpeechGrammarRuleState methods ***/
  15490. HRESULT (STDMETHODCALLTYPE *get_Rule)(
  15491. ISpeechGrammarRuleState *This,
  15492. ISpeechGrammarRule **Rule);
  15493. HRESULT (STDMETHODCALLTYPE *get_Transitions)(
  15494. ISpeechGrammarRuleState *This,
  15495. ISpeechGrammarRuleStateTransitions **Transitions);
  15496. HRESULT (STDMETHODCALLTYPE *AddWordTransition)(
  15497. ISpeechGrammarRuleState *This,
  15498. ISpeechGrammarRuleState *DestState,
  15499. const BSTR Words,
  15500. const BSTR Separators,
  15501. SpeechGrammarWordType Type,
  15502. const BSTR PropertyName,
  15503. LONG PropertyId,
  15504. VARIANT *PropertyValue,
  15505. float Weight);
  15506. HRESULT (STDMETHODCALLTYPE *AddRuleTransition)(
  15507. ISpeechGrammarRuleState *This,
  15508. ISpeechGrammarRuleState *DestinationState,
  15509. ISpeechGrammarRule *Rule,
  15510. const BSTR PropertyName,
  15511. LONG PropertyId,
  15512. VARIANT *PropertyValue,
  15513. float Weight);
  15514. HRESULT (STDMETHODCALLTYPE *AddSpecialTransition)(
  15515. ISpeechGrammarRuleState *This,
  15516. ISpeechGrammarRuleState *DestinationState,
  15517. SpeechSpecialTransitionType Type,
  15518. const BSTR PropertyName,
  15519. LONG PropertyId,
  15520. VARIANT *PropertyValue,
  15521. float Weight);
  15522. END_INTERFACE
  15523. } ISpeechGrammarRuleStateVtbl;
  15524. interface ISpeechGrammarRuleState {
  15525. CONST_VTBL ISpeechGrammarRuleStateVtbl* lpVtbl;
  15526. };
  15527. #ifdef COBJMACROS
  15528. #ifndef WIDL_C_INLINE_WRAPPERS
  15529. /*** IUnknown methods ***/
  15530. #define ISpeechGrammarRuleState_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  15531. #define ISpeechGrammarRuleState_AddRef(This) (This)->lpVtbl->AddRef(This)
  15532. #define ISpeechGrammarRuleState_Release(This) (This)->lpVtbl->Release(This)
  15533. /*** IDispatch methods ***/
  15534. #define ISpeechGrammarRuleState_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  15535. #define ISpeechGrammarRuleState_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15536. #define ISpeechGrammarRuleState_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15537. #define ISpeechGrammarRuleState_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15538. /*** ISpeechGrammarRuleState methods ***/
  15539. #define ISpeechGrammarRuleState_get_Rule(This,Rule) (This)->lpVtbl->get_Rule(This,Rule)
  15540. #define ISpeechGrammarRuleState_get_Transitions(This,Transitions) (This)->lpVtbl->get_Transitions(This,Transitions)
  15541. #define ISpeechGrammarRuleState_AddWordTransition(This,DestState,Words,Separators,Type,PropertyName,PropertyId,PropertyValue,Weight) (This)->lpVtbl->AddWordTransition(This,DestState,Words,Separators,Type,PropertyName,PropertyId,PropertyValue,Weight)
  15542. #define ISpeechGrammarRuleState_AddRuleTransition(This,DestinationState,Rule,PropertyName,PropertyId,PropertyValue,Weight) (This)->lpVtbl->AddRuleTransition(This,DestinationState,Rule,PropertyName,PropertyId,PropertyValue,Weight)
  15543. #define ISpeechGrammarRuleState_AddSpecialTransition(This,DestinationState,Type,PropertyName,PropertyId,PropertyValue,Weight) (This)->lpVtbl->AddSpecialTransition(This,DestinationState,Type,PropertyName,PropertyId,PropertyValue,Weight)
  15544. #else
  15545. /*** IUnknown methods ***/
  15546. static FORCEINLINE HRESULT ISpeechGrammarRuleState_QueryInterface(ISpeechGrammarRuleState* This,REFIID riid,void **ppvObject) {
  15547. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  15548. }
  15549. static FORCEINLINE ULONG ISpeechGrammarRuleState_AddRef(ISpeechGrammarRuleState* This) {
  15550. return This->lpVtbl->AddRef(This);
  15551. }
  15552. static FORCEINLINE ULONG ISpeechGrammarRuleState_Release(ISpeechGrammarRuleState* This) {
  15553. return This->lpVtbl->Release(This);
  15554. }
  15555. /*** IDispatch methods ***/
  15556. static FORCEINLINE HRESULT ISpeechGrammarRuleState_GetTypeInfoCount(ISpeechGrammarRuleState* This,UINT *pctinfo) {
  15557. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  15558. }
  15559. static FORCEINLINE HRESULT ISpeechGrammarRuleState_GetTypeInfo(ISpeechGrammarRuleState* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  15560. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  15561. }
  15562. static FORCEINLINE HRESULT ISpeechGrammarRuleState_GetIDsOfNames(ISpeechGrammarRuleState* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  15563. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  15564. }
  15565. static FORCEINLINE HRESULT ISpeechGrammarRuleState_Invoke(ISpeechGrammarRuleState* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  15566. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  15567. }
  15568. /*** ISpeechGrammarRuleState methods ***/
  15569. static FORCEINLINE HRESULT ISpeechGrammarRuleState_get_Rule(ISpeechGrammarRuleState* This,ISpeechGrammarRule **Rule) {
  15570. return This->lpVtbl->get_Rule(This,Rule);
  15571. }
  15572. static FORCEINLINE HRESULT ISpeechGrammarRuleState_get_Transitions(ISpeechGrammarRuleState* This,ISpeechGrammarRuleStateTransitions **Transitions) {
  15573. return This->lpVtbl->get_Transitions(This,Transitions);
  15574. }
  15575. static FORCEINLINE HRESULT ISpeechGrammarRuleState_AddWordTransition(ISpeechGrammarRuleState* This,ISpeechGrammarRuleState *DestState,const BSTR Words,const BSTR Separators,SpeechGrammarWordType Type,const BSTR PropertyName,LONG PropertyId,VARIANT *PropertyValue,float Weight) {
  15576. return This->lpVtbl->AddWordTransition(This,DestState,Words,Separators,Type,PropertyName,PropertyId,PropertyValue,Weight);
  15577. }
  15578. static FORCEINLINE HRESULT ISpeechGrammarRuleState_AddRuleTransition(ISpeechGrammarRuleState* This,ISpeechGrammarRuleState *DestinationState,ISpeechGrammarRule *Rule,const BSTR PropertyName,LONG PropertyId,VARIANT *PropertyValue,float Weight) {
  15579. return This->lpVtbl->AddRuleTransition(This,DestinationState,Rule,PropertyName,PropertyId,PropertyValue,Weight);
  15580. }
  15581. static FORCEINLINE HRESULT ISpeechGrammarRuleState_AddSpecialTransition(ISpeechGrammarRuleState* This,ISpeechGrammarRuleState *DestinationState,SpeechSpecialTransitionType Type,const BSTR PropertyName,LONG PropertyId,VARIANT *PropertyValue,float Weight) {
  15582. return This->lpVtbl->AddSpecialTransition(This,DestinationState,Type,PropertyName,PropertyId,PropertyValue,Weight);
  15583. }
  15584. #endif
  15585. #endif
  15586. #endif
  15587. #endif /* __ISpeechGrammarRuleState_INTERFACE_DEFINED__ */
  15588. /*****************************************************************************
  15589. * ISpeechGrammarRuleStateTransitions interface
  15590. */
  15591. #ifndef __ISpeechGrammarRuleStateTransitions_INTERFACE_DEFINED__
  15592. #define __ISpeechGrammarRuleStateTransitions_INTERFACE_DEFINED__
  15593. DEFINE_GUID(IID_ISpeechGrammarRuleStateTransitions, 0xeabce657, 0x75bc, 0x44a2, 0xaa,0x7f, 0xc5,0x64,0x76,0x74,0x29,0x63);
  15594. #if defined(__cplusplus) && !defined(CINTERFACE)
  15595. MIDL_INTERFACE("eabce657-75bc-44a2-aa7f-c56476742963")
  15596. ISpeechGrammarRuleStateTransitions : public IDispatch
  15597. {
  15598. virtual HRESULT STDMETHODCALLTYPE get_Count(
  15599. LONG *Count) = 0;
  15600. virtual HRESULT STDMETHODCALLTYPE Item(
  15601. LONG Index,
  15602. ISpeechGrammarRuleStateTransition **Transition) = 0;
  15603. virtual HRESULT STDMETHODCALLTYPE get__NewEnum(
  15604. IUnknown **EnumVARIANT) = 0;
  15605. };
  15606. #ifdef __CRT_UUID_DECL
  15607. __CRT_UUID_DECL(ISpeechGrammarRuleStateTransitions, 0xeabce657, 0x75bc, 0x44a2, 0xaa,0x7f, 0xc5,0x64,0x76,0x74,0x29,0x63)
  15608. #endif
  15609. #else
  15610. typedef struct ISpeechGrammarRuleStateTransitionsVtbl {
  15611. BEGIN_INTERFACE
  15612. /*** IUnknown methods ***/
  15613. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  15614. ISpeechGrammarRuleStateTransitions *This,
  15615. REFIID riid,
  15616. void **ppvObject);
  15617. ULONG (STDMETHODCALLTYPE *AddRef)(
  15618. ISpeechGrammarRuleStateTransitions *This);
  15619. ULONG (STDMETHODCALLTYPE *Release)(
  15620. ISpeechGrammarRuleStateTransitions *This);
  15621. /*** IDispatch methods ***/
  15622. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  15623. ISpeechGrammarRuleStateTransitions *This,
  15624. UINT *pctinfo);
  15625. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  15626. ISpeechGrammarRuleStateTransitions *This,
  15627. UINT iTInfo,
  15628. LCID lcid,
  15629. ITypeInfo **ppTInfo);
  15630. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  15631. ISpeechGrammarRuleStateTransitions *This,
  15632. REFIID riid,
  15633. LPOLESTR *rgszNames,
  15634. UINT cNames,
  15635. LCID lcid,
  15636. DISPID *rgDispId);
  15637. HRESULT (STDMETHODCALLTYPE *Invoke)(
  15638. ISpeechGrammarRuleStateTransitions *This,
  15639. DISPID dispIdMember,
  15640. REFIID riid,
  15641. LCID lcid,
  15642. WORD wFlags,
  15643. DISPPARAMS *pDispParams,
  15644. VARIANT *pVarResult,
  15645. EXCEPINFO *pExcepInfo,
  15646. UINT *puArgErr);
  15647. /*** ISpeechGrammarRuleStateTransitions methods ***/
  15648. HRESULT (STDMETHODCALLTYPE *get_Count)(
  15649. ISpeechGrammarRuleStateTransitions *This,
  15650. LONG *Count);
  15651. HRESULT (STDMETHODCALLTYPE *Item)(
  15652. ISpeechGrammarRuleStateTransitions *This,
  15653. LONG Index,
  15654. ISpeechGrammarRuleStateTransition **Transition);
  15655. HRESULT (STDMETHODCALLTYPE *get__NewEnum)(
  15656. ISpeechGrammarRuleStateTransitions *This,
  15657. IUnknown **EnumVARIANT);
  15658. END_INTERFACE
  15659. } ISpeechGrammarRuleStateTransitionsVtbl;
  15660. interface ISpeechGrammarRuleStateTransitions {
  15661. CONST_VTBL ISpeechGrammarRuleStateTransitionsVtbl* lpVtbl;
  15662. };
  15663. #ifdef COBJMACROS
  15664. #ifndef WIDL_C_INLINE_WRAPPERS
  15665. /*** IUnknown methods ***/
  15666. #define ISpeechGrammarRuleStateTransitions_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  15667. #define ISpeechGrammarRuleStateTransitions_AddRef(This) (This)->lpVtbl->AddRef(This)
  15668. #define ISpeechGrammarRuleStateTransitions_Release(This) (This)->lpVtbl->Release(This)
  15669. /*** IDispatch methods ***/
  15670. #define ISpeechGrammarRuleStateTransitions_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  15671. #define ISpeechGrammarRuleStateTransitions_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15672. #define ISpeechGrammarRuleStateTransitions_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15673. #define ISpeechGrammarRuleStateTransitions_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15674. /*** ISpeechGrammarRuleStateTransitions methods ***/
  15675. #define ISpeechGrammarRuleStateTransitions_get_Count(This,Count) (This)->lpVtbl->get_Count(This,Count)
  15676. #define ISpeechGrammarRuleStateTransitions_Item(This,Index,Transition) (This)->lpVtbl->Item(This,Index,Transition)
  15677. #define ISpeechGrammarRuleStateTransitions_get__NewEnum(This,EnumVARIANT) (This)->lpVtbl->get__NewEnum(This,EnumVARIANT)
  15678. #else
  15679. /*** IUnknown methods ***/
  15680. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransitions_QueryInterface(ISpeechGrammarRuleStateTransitions* This,REFIID riid,void **ppvObject) {
  15681. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  15682. }
  15683. static FORCEINLINE ULONG ISpeechGrammarRuleStateTransitions_AddRef(ISpeechGrammarRuleStateTransitions* This) {
  15684. return This->lpVtbl->AddRef(This);
  15685. }
  15686. static FORCEINLINE ULONG ISpeechGrammarRuleStateTransitions_Release(ISpeechGrammarRuleStateTransitions* This) {
  15687. return This->lpVtbl->Release(This);
  15688. }
  15689. /*** IDispatch methods ***/
  15690. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransitions_GetTypeInfoCount(ISpeechGrammarRuleStateTransitions* This,UINT *pctinfo) {
  15691. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  15692. }
  15693. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransitions_GetTypeInfo(ISpeechGrammarRuleStateTransitions* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  15694. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  15695. }
  15696. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransitions_GetIDsOfNames(ISpeechGrammarRuleStateTransitions* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  15697. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  15698. }
  15699. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransitions_Invoke(ISpeechGrammarRuleStateTransitions* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  15700. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  15701. }
  15702. /*** ISpeechGrammarRuleStateTransitions methods ***/
  15703. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransitions_get_Count(ISpeechGrammarRuleStateTransitions* This,LONG *Count) {
  15704. return This->lpVtbl->get_Count(This,Count);
  15705. }
  15706. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransitions_Item(ISpeechGrammarRuleStateTransitions* This,LONG Index,ISpeechGrammarRuleStateTransition **Transition) {
  15707. return This->lpVtbl->Item(This,Index,Transition);
  15708. }
  15709. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransitions_get__NewEnum(ISpeechGrammarRuleStateTransitions* This,IUnknown **EnumVARIANT) {
  15710. return This->lpVtbl->get__NewEnum(This,EnumVARIANT);
  15711. }
  15712. #endif
  15713. #endif
  15714. #endif
  15715. #endif /* __ISpeechGrammarRuleStateTransitions_INTERFACE_DEFINED__ */
  15716. /*****************************************************************************
  15717. * ISpeechGrammarRuleStateTransition interface
  15718. */
  15719. #ifndef __ISpeechGrammarRuleStateTransition_INTERFACE_DEFINED__
  15720. #define __ISpeechGrammarRuleStateTransition_INTERFACE_DEFINED__
  15721. DEFINE_GUID(IID_ISpeechGrammarRuleStateTransition, 0xcafd1db1, 0x41d1, 0x4a06, 0x98,0x63, 0xe2,0xe8,0x1d,0xa1,0x7a,0x9a);
  15722. #if defined(__cplusplus) && !defined(CINTERFACE)
  15723. MIDL_INTERFACE("cafd1db1-41d1-4a06-9863-e2e81da17a9a")
  15724. ISpeechGrammarRuleStateTransition : public IDispatch
  15725. {
  15726. virtual HRESULT STDMETHODCALLTYPE get_Type(
  15727. SpeechGrammarRuleStateTransitionType *Type) = 0;
  15728. virtual HRESULT STDMETHODCALLTYPE get_Text(
  15729. BSTR *Text) = 0;
  15730. virtual HRESULT STDMETHODCALLTYPE get_Rule(
  15731. ISpeechGrammarRule **Rule) = 0;
  15732. virtual HRESULT STDMETHODCALLTYPE get_Weight(
  15733. VARIANT *Weight) = 0;
  15734. virtual HRESULT STDMETHODCALLTYPE get_PropertyName(
  15735. BSTR *PropertyName) = 0;
  15736. virtual HRESULT STDMETHODCALLTYPE get_PropertyId(
  15737. LONG *PropertyId) = 0;
  15738. virtual HRESULT STDMETHODCALLTYPE get_PropertyValue(
  15739. VARIANT *PropertyValue) = 0;
  15740. virtual HRESULT STDMETHODCALLTYPE get_NextState(
  15741. ISpeechGrammarRuleState **NextState) = 0;
  15742. };
  15743. #ifdef __CRT_UUID_DECL
  15744. __CRT_UUID_DECL(ISpeechGrammarRuleStateTransition, 0xcafd1db1, 0x41d1, 0x4a06, 0x98,0x63, 0xe2,0xe8,0x1d,0xa1,0x7a,0x9a)
  15745. #endif
  15746. #else
  15747. typedef struct ISpeechGrammarRuleStateTransitionVtbl {
  15748. BEGIN_INTERFACE
  15749. /*** IUnknown methods ***/
  15750. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  15751. ISpeechGrammarRuleStateTransition *This,
  15752. REFIID riid,
  15753. void **ppvObject);
  15754. ULONG (STDMETHODCALLTYPE *AddRef)(
  15755. ISpeechGrammarRuleStateTransition *This);
  15756. ULONG (STDMETHODCALLTYPE *Release)(
  15757. ISpeechGrammarRuleStateTransition *This);
  15758. /*** IDispatch methods ***/
  15759. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  15760. ISpeechGrammarRuleStateTransition *This,
  15761. UINT *pctinfo);
  15762. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  15763. ISpeechGrammarRuleStateTransition *This,
  15764. UINT iTInfo,
  15765. LCID lcid,
  15766. ITypeInfo **ppTInfo);
  15767. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  15768. ISpeechGrammarRuleStateTransition *This,
  15769. REFIID riid,
  15770. LPOLESTR *rgszNames,
  15771. UINT cNames,
  15772. LCID lcid,
  15773. DISPID *rgDispId);
  15774. HRESULT (STDMETHODCALLTYPE *Invoke)(
  15775. ISpeechGrammarRuleStateTransition *This,
  15776. DISPID dispIdMember,
  15777. REFIID riid,
  15778. LCID lcid,
  15779. WORD wFlags,
  15780. DISPPARAMS *pDispParams,
  15781. VARIANT *pVarResult,
  15782. EXCEPINFO *pExcepInfo,
  15783. UINT *puArgErr);
  15784. /*** ISpeechGrammarRuleStateTransition methods ***/
  15785. HRESULT (STDMETHODCALLTYPE *get_Type)(
  15786. ISpeechGrammarRuleStateTransition *This,
  15787. SpeechGrammarRuleStateTransitionType *Type);
  15788. HRESULT (STDMETHODCALLTYPE *get_Text)(
  15789. ISpeechGrammarRuleStateTransition *This,
  15790. BSTR *Text);
  15791. HRESULT (STDMETHODCALLTYPE *get_Rule)(
  15792. ISpeechGrammarRuleStateTransition *This,
  15793. ISpeechGrammarRule **Rule);
  15794. HRESULT (STDMETHODCALLTYPE *get_Weight)(
  15795. ISpeechGrammarRuleStateTransition *This,
  15796. VARIANT *Weight);
  15797. HRESULT (STDMETHODCALLTYPE *get_PropertyName)(
  15798. ISpeechGrammarRuleStateTransition *This,
  15799. BSTR *PropertyName);
  15800. HRESULT (STDMETHODCALLTYPE *get_PropertyId)(
  15801. ISpeechGrammarRuleStateTransition *This,
  15802. LONG *PropertyId);
  15803. HRESULT (STDMETHODCALLTYPE *get_PropertyValue)(
  15804. ISpeechGrammarRuleStateTransition *This,
  15805. VARIANT *PropertyValue);
  15806. HRESULT (STDMETHODCALLTYPE *get_NextState)(
  15807. ISpeechGrammarRuleStateTransition *This,
  15808. ISpeechGrammarRuleState **NextState);
  15809. END_INTERFACE
  15810. } ISpeechGrammarRuleStateTransitionVtbl;
  15811. interface ISpeechGrammarRuleStateTransition {
  15812. CONST_VTBL ISpeechGrammarRuleStateTransitionVtbl* lpVtbl;
  15813. };
  15814. #ifdef COBJMACROS
  15815. #ifndef WIDL_C_INLINE_WRAPPERS
  15816. /*** IUnknown methods ***/
  15817. #define ISpeechGrammarRuleStateTransition_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  15818. #define ISpeechGrammarRuleStateTransition_AddRef(This) (This)->lpVtbl->AddRef(This)
  15819. #define ISpeechGrammarRuleStateTransition_Release(This) (This)->lpVtbl->Release(This)
  15820. /*** IDispatch methods ***/
  15821. #define ISpeechGrammarRuleStateTransition_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  15822. #define ISpeechGrammarRuleStateTransition_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15823. #define ISpeechGrammarRuleStateTransition_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15824. #define ISpeechGrammarRuleStateTransition_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15825. /*** ISpeechGrammarRuleStateTransition methods ***/
  15826. #define ISpeechGrammarRuleStateTransition_get_Type(This,Type) (This)->lpVtbl->get_Type(This,Type)
  15827. #define ISpeechGrammarRuleStateTransition_get_Text(This,Text) (This)->lpVtbl->get_Text(This,Text)
  15828. #define ISpeechGrammarRuleStateTransition_get_Rule(This,Rule) (This)->lpVtbl->get_Rule(This,Rule)
  15829. #define ISpeechGrammarRuleStateTransition_get_Weight(This,Weight) (This)->lpVtbl->get_Weight(This,Weight)
  15830. #define ISpeechGrammarRuleStateTransition_get_PropertyName(This,PropertyName) (This)->lpVtbl->get_PropertyName(This,PropertyName)
  15831. #define ISpeechGrammarRuleStateTransition_get_PropertyId(This,PropertyId) (This)->lpVtbl->get_PropertyId(This,PropertyId)
  15832. #define ISpeechGrammarRuleStateTransition_get_PropertyValue(This,PropertyValue) (This)->lpVtbl->get_PropertyValue(This,PropertyValue)
  15833. #define ISpeechGrammarRuleStateTransition_get_NextState(This,NextState) (This)->lpVtbl->get_NextState(This,NextState)
  15834. #else
  15835. /*** IUnknown methods ***/
  15836. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_QueryInterface(ISpeechGrammarRuleStateTransition* This,REFIID riid,void **ppvObject) {
  15837. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  15838. }
  15839. static FORCEINLINE ULONG ISpeechGrammarRuleStateTransition_AddRef(ISpeechGrammarRuleStateTransition* This) {
  15840. return This->lpVtbl->AddRef(This);
  15841. }
  15842. static FORCEINLINE ULONG ISpeechGrammarRuleStateTransition_Release(ISpeechGrammarRuleStateTransition* This) {
  15843. return This->lpVtbl->Release(This);
  15844. }
  15845. /*** IDispatch methods ***/
  15846. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_GetTypeInfoCount(ISpeechGrammarRuleStateTransition* This,UINT *pctinfo) {
  15847. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  15848. }
  15849. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_GetTypeInfo(ISpeechGrammarRuleStateTransition* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  15850. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  15851. }
  15852. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_GetIDsOfNames(ISpeechGrammarRuleStateTransition* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  15853. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  15854. }
  15855. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_Invoke(ISpeechGrammarRuleStateTransition* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  15856. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  15857. }
  15858. /*** ISpeechGrammarRuleStateTransition methods ***/
  15859. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_get_Type(ISpeechGrammarRuleStateTransition* This,SpeechGrammarRuleStateTransitionType *Type) {
  15860. return This->lpVtbl->get_Type(This,Type);
  15861. }
  15862. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_get_Text(ISpeechGrammarRuleStateTransition* This,BSTR *Text) {
  15863. return This->lpVtbl->get_Text(This,Text);
  15864. }
  15865. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_get_Rule(ISpeechGrammarRuleStateTransition* This,ISpeechGrammarRule **Rule) {
  15866. return This->lpVtbl->get_Rule(This,Rule);
  15867. }
  15868. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_get_Weight(ISpeechGrammarRuleStateTransition* This,VARIANT *Weight) {
  15869. return This->lpVtbl->get_Weight(This,Weight);
  15870. }
  15871. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_get_PropertyName(ISpeechGrammarRuleStateTransition* This,BSTR *PropertyName) {
  15872. return This->lpVtbl->get_PropertyName(This,PropertyName);
  15873. }
  15874. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_get_PropertyId(ISpeechGrammarRuleStateTransition* This,LONG *PropertyId) {
  15875. return This->lpVtbl->get_PropertyId(This,PropertyId);
  15876. }
  15877. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_get_PropertyValue(ISpeechGrammarRuleStateTransition* This,VARIANT *PropertyValue) {
  15878. return This->lpVtbl->get_PropertyValue(This,PropertyValue);
  15879. }
  15880. static FORCEINLINE HRESULT ISpeechGrammarRuleStateTransition_get_NextState(ISpeechGrammarRuleStateTransition* This,ISpeechGrammarRuleState **NextState) {
  15881. return This->lpVtbl->get_NextState(This,NextState);
  15882. }
  15883. #endif
  15884. #endif
  15885. #endif
  15886. #endif /* __ISpeechGrammarRuleStateTransition_INTERFACE_DEFINED__ */
  15887. /*****************************************************************************
  15888. * ISpeechTextSelectionInformation interface
  15889. */
  15890. #ifndef __ISpeechTextSelectionInformation_INTERFACE_DEFINED__
  15891. #define __ISpeechTextSelectionInformation_INTERFACE_DEFINED__
  15892. DEFINE_GUID(IID_ISpeechTextSelectionInformation, 0x3b9c7e7a, 0x6eee, 0x4ded, 0x90,0x92, 0x11,0x65,0x72,0x79,0xad,0xbe);
  15893. #if defined(__cplusplus) && !defined(CINTERFACE)
  15894. MIDL_INTERFACE("3b9c7e7a-6eee-4ded-9092-11657279adbe")
  15895. ISpeechTextSelectionInformation : public IDispatch
  15896. {
  15897. virtual HRESULT STDMETHODCALLTYPE put_ActiveOffset(
  15898. LONG ActiveOffset) = 0;
  15899. virtual HRESULT STDMETHODCALLTYPE get_ActiveOffset(
  15900. LONG *ActiveOffset) = 0;
  15901. virtual HRESULT STDMETHODCALLTYPE put_ActiveLength(
  15902. LONG ActiveLength) = 0;
  15903. virtual HRESULT STDMETHODCALLTYPE get_ActiveLength(
  15904. LONG *ActiveLength) = 0;
  15905. virtual HRESULT STDMETHODCALLTYPE put_SelectionOffset(
  15906. LONG SelectionOffset) = 0;
  15907. virtual HRESULT STDMETHODCALLTYPE get_SelectionOffset(
  15908. LONG *SelectionOffset) = 0;
  15909. virtual HRESULT STDMETHODCALLTYPE put_SelectionLength(
  15910. LONG SelectionLength) = 0;
  15911. virtual HRESULT STDMETHODCALLTYPE get_SelectionLength(
  15912. LONG *SelectionLength) = 0;
  15913. };
  15914. #ifdef __CRT_UUID_DECL
  15915. __CRT_UUID_DECL(ISpeechTextSelectionInformation, 0x3b9c7e7a, 0x6eee, 0x4ded, 0x90,0x92, 0x11,0x65,0x72,0x79,0xad,0xbe)
  15916. #endif
  15917. #else
  15918. typedef struct ISpeechTextSelectionInformationVtbl {
  15919. BEGIN_INTERFACE
  15920. /*** IUnknown methods ***/
  15921. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  15922. ISpeechTextSelectionInformation *This,
  15923. REFIID riid,
  15924. void **ppvObject);
  15925. ULONG (STDMETHODCALLTYPE *AddRef)(
  15926. ISpeechTextSelectionInformation *This);
  15927. ULONG (STDMETHODCALLTYPE *Release)(
  15928. ISpeechTextSelectionInformation *This);
  15929. /*** IDispatch methods ***/
  15930. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  15931. ISpeechTextSelectionInformation *This,
  15932. UINT *pctinfo);
  15933. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  15934. ISpeechTextSelectionInformation *This,
  15935. UINT iTInfo,
  15936. LCID lcid,
  15937. ITypeInfo **ppTInfo);
  15938. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  15939. ISpeechTextSelectionInformation *This,
  15940. REFIID riid,
  15941. LPOLESTR *rgszNames,
  15942. UINT cNames,
  15943. LCID lcid,
  15944. DISPID *rgDispId);
  15945. HRESULT (STDMETHODCALLTYPE *Invoke)(
  15946. ISpeechTextSelectionInformation *This,
  15947. DISPID dispIdMember,
  15948. REFIID riid,
  15949. LCID lcid,
  15950. WORD wFlags,
  15951. DISPPARAMS *pDispParams,
  15952. VARIANT *pVarResult,
  15953. EXCEPINFO *pExcepInfo,
  15954. UINT *puArgErr);
  15955. /*** ISpeechTextSelectionInformation methods ***/
  15956. HRESULT (STDMETHODCALLTYPE *put_ActiveOffset)(
  15957. ISpeechTextSelectionInformation *This,
  15958. LONG ActiveOffset);
  15959. HRESULT (STDMETHODCALLTYPE *get_ActiveOffset)(
  15960. ISpeechTextSelectionInformation *This,
  15961. LONG *ActiveOffset);
  15962. HRESULT (STDMETHODCALLTYPE *put_ActiveLength)(
  15963. ISpeechTextSelectionInformation *This,
  15964. LONG ActiveLength);
  15965. HRESULT (STDMETHODCALLTYPE *get_ActiveLength)(
  15966. ISpeechTextSelectionInformation *This,
  15967. LONG *ActiveLength);
  15968. HRESULT (STDMETHODCALLTYPE *put_SelectionOffset)(
  15969. ISpeechTextSelectionInformation *This,
  15970. LONG SelectionOffset);
  15971. HRESULT (STDMETHODCALLTYPE *get_SelectionOffset)(
  15972. ISpeechTextSelectionInformation *This,
  15973. LONG *SelectionOffset);
  15974. HRESULT (STDMETHODCALLTYPE *put_SelectionLength)(
  15975. ISpeechTextSelectionInformation *This,
  15976. LONG SelectionLength);
  15977. HRESULT (STDMETHODCALLTYPE *get_SelectionLength)(
  15978. ISpeechTextSelectionInformation *This,
  15979. LONG *SelectionLength);
  15980. END_INTERFACE
  15981. } ISpeechTextSelectionInformationVtbl;
  15982. interface ISpeechTextSelectionInformation {
  15983. CONST_VTBL ISpeechTextSelectionInformationVtbl* lpVtbl;
  15984. };
  15985. #ifdef COBJMACROS
  15986. #ifndef WIDL_C_INLINE_WRAPPERS
  15987. /*** IUnknown methods ***/
  15988. #define ISpeechTextSelectionInformation_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  15989. #define ISpeechTextSelectionInformation_AddRef(This) (This)->lpVtbl->AddRef(This)
  15990. #define ISpeechTextSelectionInformation_Release(This) (This)->lpVtbl->Release(This)
  15991. /*** IDispatch methods ***/
  15992. #define ISpeechTextSelectionInformation_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  15993. #define ISpeechTextSelectionInformation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  15994. #define ISpeechTextSelectionInformation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  15995. #define ISpeechTextSelectionInformation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  15996. /*** ISpeechTextSelectionInformation methods ***/
  15997. #define ISpeechTextSelectionInformation_put_ActiveOffset(This,ActiveOffset) (This)->lpVtbl->put_ActiveOffset(This,ActiveOffset)
  15998. #define ISpeechTextSelectionInformation_get_ActiveOffset(This,ActiveOffset) (This)->lpVtbl->get_ActiveOffset(This,ActiveOffset)
  15999. #define ISpeechTextSelectionInformation_put_ActiveLength(This,ActiveLength) (This)->lpVtbl->put_ActiveLength(This,ActiveLength)
  16000. #define ISpeechTextSelectionInformation_get_ActiveLength(This,ActiveLength) (This)->lpVtbl->get_ActiveLength(This,ActiveLength)
  16001. #define ISpeechTextSelectionInformation_put_SelectionOffset(This,SelectionOffset) (This)->lpVtbl->put_SelectionOffset(This,SelectionOffset)
  16002. #define ISpeechTextSelectionInformation_get_SelectionOffset(This,SelectionOffset) (This)->lpVtbl->get_SelectionOffset(This,SelectionOffset)
  16003. #define ISpeechTextSelectionInformation_put_SelectionLength(This,SelectionLength) (This)->lpVtbl->put_SelectionLength(This,SelectionLength)
  16004. #define ISpeechTextSelectionInformation_get_SelectionLength(This,SelectionLength) (This)->lpVtbl->get_SelectionLength(This,SelectionLength)
  16005. #else
  16006. /*** IUnknown methods ***/
  16007. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_QueryInterface(ISpeechTextSelectionInformation* This,REFIID riid,void **ppvObject) {
  16008. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  16009. }
  16010. static FORCEINLINE ULONG ISpeechTextSelectionInformation_AddRef(ISpeechTextSelectionInformation* This) {
  16011. return This->lpVtbl->AddRef(This);
  16012. }
  16013. static FORCEINLINE ULONG ISpeechTextSelectionInformation_Release(ISpeechTextSelectionInformation* This) {
  16014. return This->lpVtbl->Release(This);
  16015. }
  16016. /*** IDispatch methods ***/
  16017. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_GetTypeInfoCount(ISpeechTextSelectionInformation* This,UINT *pctinfo) {
  16018. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  16019. }
  16020. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_GetTypeInfo(ISpeechTextSelectionInformation* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  16021. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  16022. }
  16023. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_GetIDsOfNames(ISpeechTextSelectionInformation* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  16024. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  16025. }
  16026. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_Invoke(ISpeechTextSelectionInformation* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  16027. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  16028. }
  16029. /*** ISpeechTextSelectionInformation methods ***/
  16030. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_put_ActiveOffset(ISpeechTextSelectionInformation* This,LONG ActiveOffset) {
  16031. return This->lpVtbl->put_ActiveOffset(This,ActiveOffset);
  16032. }
  16033. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_get_ActiveOffset(ISpeechTextSelectionInformation* This,LONG *ActiveOffset) {
  16034. return This->lpVtbl->get_ActiveOffset(This,ActiveOffset);
  16035. }
  16036. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_put_ActiveLength(ISpeechTextSelectionInformation* This,LONG ActiveLength) {
  16037. return This->lpVtbl->put_ActiveLength(This,ActiveLength);
  16038. }
  16039. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_get_ActiveLength(ISpeechTextSelectionInformation* This,LONG *ActiveLength) {
  16040. return This->lpVtbl->get_ActiveLength(This,ActiveLength);
  16041. }
  16042. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_put_SelectionOffset(ISpeechTextSelectionInformation* This,LONG SelectionOffset) {
  16043. return This->lpVtbl->put_SelectionOffset(This,SelectionOffset);
  16044. }
  16045. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_get_SelectionOffset(ISpeechTextSelectionInformation* This,LONG *SelectionOffset) {
  16046. return This->lpVtbl->get_SelectionOffset(This,SelectionOffset);
  16047. }
  16048. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_put_SelectionLength(ISpeechTextSelectionInformation* This,LONG SelectionLength) {
  16049. return This->lpVtbl->put_SelectionLength(This,SelectionLength);
  16050. }
  16051. static FORCEINLINE HRESULT ISpeechTextSelectionInformation_get_SelectionLength(ISpeechTextSelectionInformation* This,LONG *SelectionLength) {
  16052. return This->lpVtbl->get_SelectionLength(This,SelectionLength);
  16053. }
  16054. #endif
  16055. #endif
  16056. #endif
  16057. #endif /* __ISpeechTextSelectionInformation_INTERFACE_DEFINED__ */
  16058. /*****************************************************************************
  16059. * ISpeechRecoResult interface
  16060. */
  16061. #ifndef __ISpeechRecoResult_INTERFACE_DEFINED__
  16062. #define __ISpeechRecoResult_INTERFACE_DEFINED__
  16063. DEFINE_GUID(IID_ISpeechRecoResult, 0xed2879cf, 0xced9, 0x4ee6, 0xa5,0x34, 0xde,0x01,0x91,0xd5,0x46,0x8d);
  16064. #if defined(__cplusplus) && !defined(CINTERFACE)
  16065. MIDL_INTERFACE("ed2879cf-ced9-4ee6-a534-de0191d5468d")
  16066. ISpeechRecoResult : public IDispatch
  16067. {
  16068. virtual HRESULT STDMETHODCALLTYPE get_RecoContext(
  16069. ISpeechRecoContext **RecoContext) = 0;
  16070. virtual HRESULT STDMETHODCALLTYPE get_Times(
  16071. ISpeechRecoResultTimes **Times) = 0;
  16072. virtual HRESULT STDMETHODCALLTYPE putref_AudioFormat(
  16073. ISpeechAudioFormat *Format) = 0;
  16074. virtual HRESULT STDMETHODCALLTYPE get_AudioFormat(
  16075. ISpeechAudioFormat **Format) = 0;
  16076. virtual HRESULT STDMETHODCALLTYPE get_PhraseInfo(
  16077. ISpeechPhraseInfo **PhraseInfo) = 0;
  16078. virtual HRESULT STDMETHODCALLTYPE Alternates(
  16079. LONG RequestCount,
  16080. LONG StartElement,
  16081. LONG Elements,
  16082. ISpeechPhraseAlternates **Alternates) = 0;
  16083. virtual HRESULT STDMETHODCALLTYPE Audio(
  16084. LONG StartElement,
  16085. LONG Elements,
  16086. ISpeechMemoryStream **Stream) = 0;
  16087. virtual HRESULT STDMETHODCALLTYPE SpeakAudio(
  16088. LONG StartElement,
  16089. LONG Elements,
  16090. SpeechVoiceSpeakFlags Flags,
  16091. LONG *StreamNumber) = 0;
  16092. virtual HRESULT STDMETHODCALLTYPE SaveToMemory(
  16093. VARIANT *ResultBlock) = 0;
  16094. virtual HRESULT STDMETHODCALLTYPE DiscardResultInfo(
  16095. SpeechDiscardType ValueTypes) = 0;
  16096. };
  16097. #ifdef __CRT_UUID_DECL
  16098. __CRT_UUID_DECL(ISpeechRecoResult, 0xed2879cf, 0xced9, 0x4ee6, 0xa5,0x34, 0xde,0x01,0x91,0xd5,0x46,0x8d)
  16099. #endif
  16100. #else
  16101. typedef struct ISpeechRecoResultVtbl {
  16102. BEGIN_INTERFACE
  16103. /*** IUnknown methods ***/
  16104. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  16105. ISpeechRecoResult *This,
  16106. REFIID riid,
  16107. void **ppvObject);
  16108. ULONG (STDMETHODCALLTYPE *AddRef)(
  16109. ISpeechRecoResult *This);
  16110. ULONG (STDMETHODCALLTYPE *Release)(
  16111. ISpeechRecoResult *This);
  16112. /*** IDispatch methods ***/
  16113. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  16114. ISpeechRecoResult *This,
  16115. UINT *pctinfo);
  16116. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  16117. ISpeechRecoResult *This,
  16118. UINT iTInfo,
  16119. LCID lcid,
  16120. ITypeInfo **ppTInfo);
  16121. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  16122. ISpeechRecoResult *This,
  16123. REFIID riid,
  16124. LPOLESTR *rgszNames,
  16125. UINT cNames,
  16126. LCID lcid,
  16127. DISPID *rgDispId);
  16128. HRESULT (STDMETHODCALLTYPE *Invoke)(
  16129. ISpeechRecoResult *This,
  16130. DISPID dispIdMember,
  16131. REFIID riid,
  16132. LCID lcid,
  16133. WORD wFlags,
  16134. DISPPARAMS *pDispParams,
  16135. VARIANT *pVarResult,
  16136. EXCEPINFO *pExcepInfo,
  16137. UINT *puArgErr);
  16138. /*** ISpeechRecoResult methods ***/
  16139. HRESULT (STDMETHODCALLTYPE *get_RecoContext)(
  16140. ISpeechRecoResult *This,
  16141. ISpeechRecoContext **RecoContext);
  16142. HRESULT (STDMETHODCALLTYPE *get_Times)(
  16143. ISpeechRecoResult *This,
  16144. ISpeechRecoResultTimes **Times);
  16145. HRESULT (STDMETHODCALLTYPE *putref_AudioFormat)(
  16146. ISpeechRecoResult *This,
  16147. ISpeechAudioFormat *Format);
  16148. HRESULT (STDMETHODCALLTYPE *get_AudioFormat)(
  16149. ISpeechRecoResult *This,
  16150. ISpeechAudioFormat **Format);
  16151. HRESULT (STDMETHODCALLTYPE *get_PhraseInfo)(
  16152. ISpeechRecoResult *This,
  16153. ISpeechPhraseInfo **PhraseInfo);
  16154. HRESULT (STDMETHODCALLTYPE *Alternates)(
  16155. ISpeechRecoResult *This,
  16156. LONG RequestCount,
  16157. LONG StartElement,
  16158. LONG Elements,
  16159. ISpeechPhraseAlternates **Alternates);
  16160. HRESULT (STDMETHODCALLTYPE *Audio)(
  16161. ISpeechRecoResult *This,
  16162. LONG StartElement,
  16163. LONG Elements,
  16164. ISpeechMemoryStream **Stream);
  16165. HRESULT (STDMETHODCALLTYPE *SpeakAudio)(
  16166. ISpeechRecoResult *This,
  16167. LONG StartElement,
  16168. LONG Elements,
  16169. SpeechVoiceSpeakFlags Flags,
  16170. LONG *StreamNumber);
  16171. HRESULT (STDMETHODCALLTYPE *SaveToMemory)(
  16172. ISpeechRecoResult *This,
  16173. VARIANT *ResultBlock);
  16174. HRESULT (STDMETHODCALLTYPE *DiscardResultInfo)(
  16175. ISpeechRecoResult *This,
  16176. SpeechDiscardType ValueTypes);
  16177. END_INTERFACE
  16178. } ISpeechRecoResultVtbl;
  16179. interface ISpeechRecoResult {
  16180. CONST_VTBL ISpeechRecoResultVtbl* lpVtbl;
  16181. };
  16182. #ifdef COBJMACROS
  16183. #ifndef WIDL_C_INLINE_WRAPPERS
  16184. /*** IUnknown methods ***/
  16185. #define ISpeechRecoResult_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  16186. #define ISpeechRecoResult_AddRef(This) (This)->lpVtbl->AddRef(This)
  16187. #define ISpeechRecoResult_Release(This) (This)->lpVtbl->Release(This)
  16188. /*** IDispatch methods ***/
  16189. #define ISpeechRecoResult_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  16190. #define ISpeechRecoResult_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16191. #define ISpeechRecoResult_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16192. #define ISpeechRecoResult_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16193. /*** ISpeechRecoResult methods ***/
  16194. #define ISpeechRecoResult_get_RecoContext(This,RecoContext) (This)->lpVtbl->get_RecoContext(This,RecoContext)
  16195. #define ISpeechRecoResult_get_Times(This,Times) (This)->lpVtbl->get_Times(This,Times)
  16196. #define ISpeechRecoResult_putref_AudioFormat(This,Format) (This)->lpVtbl->putref_AudioFormat(This,Format)
  16197. #define ISpeechRecoResult_get_AudioFormat(This,Format) (This)->lpVtbl->get_AudioFormat(This,Format)
  16198. #define ISpeechRecoResult_get_PhraseInfo(This,PhraseInfo) (This)->lpVtbl->get_PhraseInfo(This,PhraseInfo)
  16199. #define ISpeechRecoResult_Alternates(This,RequestCount,StartElement,Elements,Alternates) (This)->lpVtbl->Alternates(This,RequestCount,StartElement,Elements,Alternates)
  16200. #define ISpeechRecoResult_Audio(This,StartElement,Elements,Stream) (This)->lpVtbl->Audio(This,StartElement,Elements,Stream)
  16201. #define ISpeechRecoResult_SpeakAudio(This,StartElement,Elements,Flags,StreamNumber) (This)->lpVtbl->SpeakAudio(This,StartElement,Elements,Flags,StreamNumber)
  16202. #define ISpeechRecoResult_SaveToMemory(This,ResultBlock) (This)->lpVtbl->SaveToMemory(This,ResultBlock)
  16203. #define ISpeechRecoResult_DiscardResultInfo(This,ValueTypes) (This)->lpVtbl->DiscardResultInfo(This,ValueTypes)
  16204. #else
  16205. /*** IUnknown methods ***/
  16206. static FORCEINLINE HRESULT ISpeechRecoResult_QueryInterface(ISpeechRecoResult* This,REFIID riid,void **ppvObject) {
  16207. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  16208. }
  16209. static FORCEINLINE ULONG ISpeechRecoResult_AddRef(ISpeechRecoResult* This) {
  16210. return This->lpVtbl->AddRef(This);
  16211. }
  16212. static FORCEINLINE ULONG ISpeechRecoResult_Release(ISpeechRecoResult* This) {
  16213. return This->lpVtbl->Release(This);
  16214. }
  16215. /*** IDispatch methods ***/
  16216. static FORCEINLINE HRESULT ISpeechRecoResult_GetTypeInfoCount(ISpeechRecoResult* This,UINT *pctinfo) {
  16217. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  16218. }
  16219. static FORCEINLINE HRESULT ISpeechRecoResult_GetTypeInfo(ISpeechRecoResult* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  16220. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  16221. }
  16222. static FORCEINLINE HRESULT ISpeechRecoResult_GetIDsOfNames(ISpeechRecoResult* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  16223. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  16224. }
  16225. static FORCEINLINE HRESULT ISpeechRecoResult_Invoke(ISpeechRecoResult* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  16226. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  16227. }
  16228. /*** ISpeechRecoResult methods ***/
  16229. static FORCEINLINE HRESULT ISpeechRecoResult_get_RecoContext(ISpeechRecoResult* This,ISpeechRecoContext **RecoContext) {
  16230. return This->lpVtbl->get_RecoContext(This,RecoContext);
  16231. }
  16232. static FORCEINLINE HRESULT ISpeechRecoResult_get_Times(ISpeechRecoResult* This,ISpeechRecoResultTimes **Times) {
  16233. return This->lpVtbl->get_Times(This,Times);
  16234. }
  16235. static FORCEINLINE HRESULT ISpeechRecoResult_putref_AudioFormat(ISpeechRecoResult* This,ISpeechAudioFormat *Format) {
  16236. return This->lpVtbl->putref_AudioFormat(This,Format);
  16237. }
  16238. static FORCEINLINE HRESULT ISpeechRecoResult_get_AudioFormat(ISpeechRecoResult* This,ISpeechAudioFormat **Format) {
  16239. return This->lpVtbl->get_AudioFormat(This,Format);
  16240. }
  16241. static FORCEINLINE HRESULT ISpeechRecoResult_get_PhraseInfo(ISpeechRecoResult* This,ISpeechPhraseInfo **PhraseInfo) {
  16242. return This->lpVtbl->get_PhraseInfo(This,PhraseInfo);
  16243. }
  16244. static FORCEINLINE HRESULT ISpeechRecoResult_Alternates(ISpeechRecoResult* This,LONG RequestCount,LONG StartElement,LONG Elements,ISpeechPhraseAlternates **Alternates) {
  16245. return This->lpVtbl->Alternates(This,RequestCount,StartElement,Elements,Alternates);
  16246. }
  16247. static FORCEINLINE HRESULT ISpeechRecoResult_Audio(ISpeechRecoResult* This,LONG StartElement,LONG Elements,ISpeechMemoryStream **Stream) {
  16248. return This->lpVtbl->Audio(This,StartElement,Elements,Stream);
  16249. }
  16250. static FORCEINLINE HRESULT ISpeechRecoResult_SpeakAudio(ISpeechRecoResult* This,LONG StartElement,LONG Elements,SpeechVoiceSpeakFlags Flags,LONG *StreamNumber) {
  16251. return This->lpVtbl->SpeakAudio(This,StartElement,Elements,Flags,StreamNumber);
  16252. }
  16253. static FORCEINLINE HRESULT ISpeechRecoResult_SaveToMemory(ISpeechRecoResult* This,VARIANT *ResultBlock) {
  16254. return This->lpVtbl->SaveToMemory(This,ResultBlock);
  16255. }
  16256. static FORCEINLINE HRESULT ISpeechRecoResult_DiscardResultInfo(ISpeechRecoResult* This,SpeechDiscardType ValueTypes) {
  16257. return This->lpVtbl->DiscardResultInfo(This,ValueTypes);
  16258. }
  16259. #endif
  16260. #endif
  16261. #endif
  16262. #endif /* __ISpeechRecoResult_INTERFACE_DEFINED__ */
  16263. /*****************************************************************************
  16264. * ISpeechXMLRecoResult interface
  16265. */
  16266. #ifndef __ISpeechXMLRecoResult_INTERFACE_DEFINED__
  16267. #define __ISpeechXMLRecoResult_INTERFACE_DEFINED__
  16268. DEFINE_GUID(IID_ISpeechXMLRecoResult, 0xaaec54af, 0x8f85, 0x4924, 0x94,0x4d, 0xb7,0x9d,0x39,0xd7,0x2e,0x19);
  16269. #if defined(__cplusplus) && !defined(CINTERFACE)
  16270. MIDL_INTERFACE("aaec54af-8f85-4924-944d-b79d39d72e19")
  16271. ISpeechXMLRecoResult : public ISpeechRecoResult
  16272. {
  16273. virtual HRESULT STDMETHODCALLTYPE GetXMLResult(
  16274. SPXMLRESULTOPTIONS Options,
  16275. BSTR *pResult) = 0;
  16276. virtual HRESULT STDMETHODCALLTYPE GetXMLErrorInfo(
  16277. LONG *LineNumber,
  16278. BSTR *ScriptLine,
  16279. BSTR *Source,
  16280. BSTR *Description,
  16281. LONG *ResultCode,
  16282. VARIANT_BOOL *IsError) = 0;
  16283. };
  16284. #ifdef __CRT_UUID_DECL
  16285. __CRT_UUID_DECL(ISpeechXMLRecoResult, 0xaaec54af, 0x8f85, 0x4924, 0x94,0x4d, 0xb7,0x9d,0x39,0xd7,0x2e,0x19)
  16286. #endif
  16287. #else
  16288. typedef struct ISpeechXMLRecoResultVtbl {
  16289. BEGIN_INTERFACE
  16290. /*** IUnknown methods ***/
  16291. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  16292. ISpeechXMLRecoResult *This,
  16293. REFIID riid,
  16294. void **ppvObject);
  16295. ULONG (STDMETHODCALLTYPE *AddRef)(
  16296. ISpeechXMLRecoResult *This);
  16297. ULONG (STDMETHODCALLTYPE *Release)(
  16298. ISpeechXMLRecoResult *This);
  16299. /*** IDispatch methods ***/
  16300. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  16301. ISpeechXMLRecoResult *This,
  16302. UINT *pctinfo);
  16303. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  16304. ISpeechXMLRecoResult *This,
  16305. UINT iTInfo,
  16306. LCID lcid,
  16307. ITypeInfo **ppTInfo);
  16308. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  16309. ISpeechXMLRecoResult *This,
  16310. REFIID riid,
  16311. LPOLESTR *rgszNames,
  16312. UINT cNames,
  16313. LCID lcid,
  16314. DISPID *rgDispId);
  16315. HRESULT (STDMETHODCALLTYPE *Invoke)(
  16316. ISpeechXMLRecoResult *This,
  16317. DISPID dispIdMember,
  16318. REFIID riid,
  16319. LCID lcid,
  16320. WORD wFlags,
  16321. DISPPARAMS *pDispParams,
  16322. VARIANT *pVarResult,
  16323. EXCEPINFO *pExcepInfo,
  16324. UINT *puArgErr);
  16325. /*** ISpeechRecoResult methods ***/
  16326. HRESULT (STDMETHODCALLTYPE *get_RecoContext)(
  16327. ISpeechXMLRecoResult *This,
  16328. ISpeechRecoContext **RecoContext);
  16329. HRESULT (STDMETHODCALLTYPE *get_Times)(
  16330. ISpeechXMLRecoResult *This,
  16331. ISpeechRecoResultTimes **Times);
  16332. HRESULT (STDMETHODCALLTYPE *putref_AudioFormat)(
  16333. ISpeechXMLRecoResult *This,
  16334. ISpeechAudioFormat *Format);
  16335. HRESULT (STDMETHODCALLTYPE *get_AudioFormat)(
  16336. ISpeechXMLRecoResult *This,
  16337. ISpeechAudioFormat **Format);
  16338. HRESULT (STDMETHODCALLTYPE *get_PhraseInfo)(
  16339. ISpeechXMLRecoResult *This,
  16340. ISpeechPhraseInfo **PhraseInfo);
  16341. HRESULT (STDMETHODCALLTYPE *Alternates)(
  16342. ISpeechXMLRecoResult *This,
  16343. LONG RequestCount,
  16344. LONG StartElement,
  16345. LONG Elements,
  16346. ISpeechPhraseAlternates **Alternates);
  16347. HRESULT (STDMETHODCALLTYPE *Audio)(
  16348. ISpeechXMLRecoResult *This,
  16349. LONG StartElement,
  16350. LONG Elements,
  16351. ISpeechMemoryStream **Stream);
  16352. HRESULT (STDMETHODCALLTYPE *SpeakAudio)(
  16353. ISpeechXMLRecoResult *This,
  16354. LONG StartElement,
  16355. LONG Elements,
  16356. SpeechVoiceSpeakFlags Flags,
  16357. LONG *StreamNumber);
  16358. HRESULT (STDMETHODCALLTYPE *SaveToMemory)(
  16359. ISpeechXMLRecoResult *This,
  16360. VARIANT *ResultBlock);
  16361. HRESULT (STDMETHODCALLTYPE *DiscardResultInfo)(
  16362. ISpeechXMLRecoResult *This,
  16363. SpeechDiscardType ValueTypes);
  16364. /*** ISpeechXMLRecoResult methods ***/
  16365. HRESULT (STDMETHODCALLTYPE *GetXMLResult)(
  16366. ISpeechXMLRecoResult *This,
  16367. SPXMLRESULTOPTIONS Options,
  16368. BSTR *pResult);
  16369. HRESULT (STDMETHODCALLTYPE *GetXMLErrorInfo)(
  16370. ISpeechXMLRecoResult *This,
  16371. LONG *LineNumber,
  16372. BSTR *ScriptLine,
  16373. BSTR *Source,
  16374. BSTR *Description,
  16375. LONG *ResultCode,
  16376. VARIANT_BOOL *IsError);
  16377. END_INTERFACE
  16378. } ISpeechXMLRecoResultVtbl;
  16379. interface ISpeechXMLRecoResult {
  16380. CONST_VTBL ISpeechXMLRecoResultVtbl* lpVtbl;
  16381. };
  16382. #ifdef COBJMACROS
  16383. #ifndef WIDL_C_INLINE_WRAPPERS
  16384. /*** IUnknown methods ***/
  16385. #define ISpeechXMLRecoResult_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  16386. #define ISpeechXMLRecoResult_AddRef(This) (This)->lpVtbl->AddRef(This)
  16387. #define ISpeechXMLRecoResult_Release(This) (This)->lpVtbl->Release(This)
  16388. /*** IDispatch methods ***/
  16389. #define ISpeechXMLRecoResult_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  16390. #define ISpeechXMLRecoResult_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16391. #define ISpeechXMLRecoResult_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16392. #define ISpeechXMLRecoResult_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16393. /*** ISpeechRecoResult methods ***/
  16394. #define ISpeechXMLRecoResult_get_RecoContext(This,RecoContext) (This)->lpVtbl->get_RecoContext(This,RecoContext)
  16395. #define ISpeechXMLRecoResult_get_Times(This,Times) (This)->lpVtbl->get_Times(This,Times)
  16396. #define ISpeechXMLRecoResult_putref_AudioFormat(This,Format) (This)->lpVtbl->putref_AudioFormat(This,Format)
  16397. #define ISpeechXMLRecoResult_get_AudioFormat(This,Format) (This)->lpVtbl->get_AudioFormat(This,Format)
  16398. #define ISpeechXMLRecoResult_get_PhraseInfo(This,PhraseInfo) (This)->lpVtbl->get_PhraseInfo(This,PhraseInfo)
  16399. #define ISpeechXMLRecoResult_Alternates(This,RequestCount,StartElement,Elements,Alternates) (This)->lpVtbl->Alternates(This,RequestCount,StartElement,Elements,Alternates)
  16400. #define ISpeechXMLRecoResult_Audio(This,StartElement,Elements,Stream) (This)->lpVtbl->Audio(This,StartElement,Elements,Stream)
  16401. #define ISpeechXMLRecoResult_SpeakAudio(This,StartElement,Elements,Flags,StreamNumber) (This)->lpVtbl->SpeakAudio(This,StartElement,Elements,Flags,StreamNumber)
  16402. #define ISpeechXMLRecoResult_SaveToMemory(This,ResultBlock) (This)->lpVtbl->SaveToMemory(This,ResultBlock)
  16403. #define ISpeechXMLRecoResult_DiscardResultInfo(This,ValueTypes) (This)->lpVtbl->DiscardResultInfo(This,ValueTypes)
  16404. /*** ISpeechXMLRecoResult methods ***/
  16405. #define ISpeechXMLRecoResult_GetXMLResult(This,Options,pResult) (This)->lpVtbl->GetXMLResult(This,Options,pResult)
  16406. #define ISpeechXMLRecoResult_GetXMLErrorInfo(This,LineNumber,ScriptLine,Source,Description,ResultCode,IsError) (This)->lpVtbl->GetXMLErrorInfo(This,LineNumber,ScriptLine,Source,Description,ResultCode,IsError)
  16407. #else
  16408. /*** IUnknown methods ***/
  16409. static FORCEINLINE HRESULT ISpeechXMLRecoResult_QueryInterface(ISpeechXMLRecoResult* This,REFIID riid,void **ppvObject) {
  16410. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  16411. }
  16412. static FORCEINLINE ULONG ISpeechXMLRecoResult_AddRef(ISpeechXMLRecoResult* This) {
  16413. return This->lpVtbl->AddRef(This);
  16414. }
  16415. static FORCEINLINE ULONG ISpeechXMLRecoResult_Release(ISpeechXMLRecoResult* This) {
  16416. return This->lpVtbl->Release(This);
  16417. }
  16418. /*** IDispatch methods ***/
  16419. static FORCEINLINE HRESULT ISpeechXMLRecoResult_GetTypeInfoCount(ISpeechXMLRecoResult* This,UINT *pctinfo) {
  16420. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  16421. }
  16422. static FORCEINLINE HRESULT ISpeechXMLRecoResult_GetTypeInfo(ISpeechXMLRecoResult* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  16423. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  16424. }
  16425. static FORCEINLINE HRESULT ISpeechXMLRecoResult_GetIDsOfNames(ISpeechXMLRecoResult* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  16426. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  16427. }
  16428. static FORCEINLINE HRESULT ISpeechXMLRecoResult_Invoke(ISpeechXMLRecoResult* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  16429. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  16430. }
  16431. /*** ISpeechRecoResult methods ***/
  16432. static FORCEINLINE HRESULT ISpeechXMLRecoResult_get_RecoContext(ISpeechXMLRecoResult* This,ISpeechRecoContext **RecoContext) {
  16433. return This->lpVtbl->get_RecoContext(This,RecoContext);
  16434. }
  16435. static FORCEINLINE HRESULT ISpeechXMLRecoResult_get_Times(ISpeechXMLRecoResult* This,ISpeechRecoResultTimes **Times) {
  16436. return This->lpVtbl->get_Times(This,Times);
  16437. }
  16438. static FORCEINLINE HRESULT ISpeechXMLRecoResult_putref_AudioFormat(ISpeechXMLRecoResult* This,ISpeechAudioFormat *Format) {
  16439. return This->lpVtbl->putref_AudioFormat(This,Format);
  16440. }
  16441. static FORCEINLINE HRESULT ISpeechXMLRecoResult_get_AudioFormat(ISpeechXMLRecoResult* This,ISpeechAudioFormat **Format) {
  16442. return This->lpVtbl->get_AudioFormat(This,Format);
  16443. }
  16444. static FORCEINLINE HRESULT ISpeechXMLRecoResult_get_PhraseInfo(ISpeechXMLRecoResult* This,ISpeechPhraseInfo **PhraseInfo) {
  16445. return This->lpVtbl->get_PhraseInfo(This,PhraseInfo);
  16446. }
  16447. static FORCEINLINE HRESULT ISpeechXMLRecoResult_Alternates(ISpeechXMLRecoResult* This,LONG RequestCount,LONG StartElement,LONG Elements,ISpeechPhraseAlternates **Alternates) {
  16448. return This->lpVtbl->Alternates(This,RequestCount,StartElement,Elements,Alternates);
  16449. }
  16450. static FORCEINLINE HRESULT ISpeechXMLRecoResult_Audio(ISpeechXMLRecoResult* This,LONG StartElement,LONG Elements,ISpeechMemoryStream **Stream) {
  16451. return This->lpVtbl->Audio(This,StartElement,Elements,Stream);
  16452. }
  16453. static FORCEINLINE HRESULT ISpeechXMLRecoResult_SpeakAudio(ISpeechXMLRecoResult* This,LONG StartElement,LONG Elements,SpeechVoiceSpeakFlags Flags,LONG *StreamNumber) {
  16454. return This->lpVtbl->SpeakAudio(This,StartElement,Elements,Flags,StreamNumber);
  16455. }
  16456. static FORCEINLINE HRESULT ISpeechXMLRecoResult_SaveToMemory(ISpeechXMLRecoResult* This,VARIANT *ResultBlock) {
  16457. return This->lpVtbl->SaveToMemory(This,ResultBlock);
  16458. }
  16459. static FORCEINLINE HRESULT ISpeechXMLRecoResult_DiscardResultInfo(ISpeechXMLRecoResult* This,SpeechDiscardType ValueTypes) {
  16460. return This->lpVtbl->DiscardResultInfo(This,ValueTypes);
  16461. }
  16462. /*** ISpeechXMLRecoResult methods ***/
  16463. static FORCEINLINE HRESULT ISpeechXMLRecoResult_GetXMLResult(ISpeechXMLRecoResult* This,SPXMLRESULTOPTIONS Options,BSTR *pResult) {
  16464. return This->lpVtbl->GetXMLResult(This,Options,pResult);
  16465. }
  16466. static FORCEINLINE HRESULT ISpeechXMLRecoResult_GetXMLErrorInfo(ISpeechXMLRecoResult* This,LONG *LineNumber,BSTR *ScriptLine,BSTR *Source,BSTR *Description,LONG *ResultCode,VARIANT_BOOL *IsError) {
  16467. return This->lpVtbl->GetXMLErrorInfo(This,LineNumber,ScriptLine,Source,Description,ResultCode,IsError);
  16468. }
  16469. #endif
  16470. #endif
  16471. #endif
  16472. #endif /* __ISpeechXMLRecoResult_INTERFACE_DEFINED__ */
  16473. /*****************************************************************************
  16474. * ISpeechRecoResult2 interface
  16475. */
  16476. #ifndef __ISpeechRecoResult2_INTERFACE_DEFINED__
  16477. #define __ISpeechRecoResult2_INTERFACE_DEFINED__
  16478. DEFINE_GUID(IID_ISpeechRecoResult2, 0x8e0a246d, 0xd3c8, 0x45de, 0x86,0x57, 0x04,0x29,0x0c,0x45,0x8c,0x3c);
  16479. #if defined(__cplusplus) && !defined(CINTERFACE)
  16480. MIDL_INTERFACE("8e0a246d-d3c8-45de-8657-04290c458c3c")
  16481. ISpeechRecoResult2 : public ISpeechRecoResult
  16482. {
  16483. virtual HRESULT STDMETHODCALLTYPE SetTextFeedback(
  16484. BSTR Feedback,
  16485. VARIANT_BOOL WasSuccessful) = 0;
  16486. };
  16487. #ifdef __CRT_UUID_DECL
  16488. __CRT_UUID_DECL(ISpeechRecoResult2, 0x8e0a246d, 0xd3c8, 0x45de, 0x86,0x57, 0x04,0x29,0x0c,0x45,0x8c,0x3c)
  16489. #endif
  16490. #else
  16491. typedef struct ISpeechRecoResult2Vtbl {
  16492. BEGIN_INTERFACE
  16493. /*** IUnknown methods ***/
  16494. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  16495. ISpeechRecoResult2 *This,
  16496. REFIID riid,
  16497. void **ppvObject);
  16498. ULONG (STDMETHODCALLTYPE *AddRef)(
  16499. ISpeechRecoResult2 *This);
  16500. ULONG (STDMETHODCALLTYPE *Release)(
  16501. ISpeechRecoResult2 *This);
  16502. /*** IDispatch methods ***/
  16503. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  16504. ISpeechRecoResult2 *This,
  16505. UINT *pctinfo);
  16506. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  16507. ISpeechRecoResult2 *This,
  16508. UINT iTInfo,
  16509. LCID lcid,
  16510. ITypeInfo **ppTInfo);
  16511. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  16512. ISpeechRecoResult2 *This,
  16513. REFIID riid,
  16514. LPOLESTR *rgszNames,
  16515. UINT cNames,
  16516. LCID lcid,
  16517. DISPID *rgDispId);
  16518. HRESULT (STDMETHODCALLTYPE *Invoke)(
  16519. ISpeechRecoResult2 *This,
  16520. DISPID dispIdMember,
  16521. REFIID riid,
  16522. LCID lcid,
  16523. WORD wFlags,
  16524. DISPPARAMS *pDispParams,
  16525. VARIANT *pVarResult,
  16526. EXCEPINFO *pExcepInfo,
  16527. UINT *puArgErr);
  16528. /*** ISpeechRecoResult methods ***/
  16529. HRESULT (STDMETHODCALLTYPE *get_RecoContext)(
  16530. ISpeechRecoResult2 *This,
  16531. ISpeechRecoContext **RecoContext);
  16532. HRESULT (STDMETHODCALLTYPE *get_Times)(
  16533. ISpeechRecoResult2 *This,
  16534. ISpeechRecoResultTimes **Times);
  16535. HRESULT (STDMETHODCALLTYPE *putref_AudioFormat)(
  16536. ISpeechRecoResult2 *This,
  16537. ISpeechAudioFormat *Format);
  16538. HRESULT (STDMETHODCALLTYPE *get_AudioFormat)(
  16539. ISpeechRecoResult2 *This,
  16540. ISpeechAudioFormat **Format);
  16541. HRESULT (STDMETHODCALLTYPE *get_PhraseInfo)(
  16542. ISpeechRecoResult2 *This,
  16543. ISpeechPhraseInfo **PhraseInfo);
  16544. HRESULT (STDMETHODCALLTYPE *Alternates)(
  16545. ISpeechRecoResult2 *This,
  16546. LONG RequestCount,
  16547. LONG StartElement,
  16548. LONG Elements,
  16549. ISpeechPhraseAlternates **Alternates);
  16550. HRESULT (STDMETHODCALLTYPE *Audio)(
  16551. ISpeechRecoResult2 *This,
  16552. LONG StartElement,
  16553. LONG Elements,
  16554. ISpeechMemoryStream **Stream);
  16555. HRESULT (STDMETHODCALLTYPE *SpeakAudio)(
  16556. ISpeechRecoResult2 *This,
  16557. LONG StartElement,
  16558. LONG Elements,
  16559. SpeechVoiceSpeakFlags Flags,
  16560. LONG *StreamNumber);
  16561. HRESULT (STDMETHODCALLTYPE *SaveToMemory)(
  16562. ISpeechRecoResult2 *This,
  16563. VARIANT *ResultBlock);
  16564. HRESULT (STDMETHODCALLTYPE *DiscardResultInfo)(
  16565. ISpeechRecoResult2 *This,
  16566. SpeechDiscardType ValueTypes);
  16567. /*** ISpeechRecoResult2 methods ***/
  16568. HRESULT (STDMETHODCALLTYPE *SetTextFeedback)(
  16569. ISpeechRecoResult2 *This,
  16570. BSTR Feedback,
  16571. VARIANT_BOOL WasSuccessful);
  16572. END_INTERFACE
  16573. } ISpeechRecoResult2Vtbl;
  16574. interface ISpeechRecoResult2 {
  16575. CONST_VTBL ISpeechRecoResult2Vtbl* lpVtbl;
  16576. };
  16577. #ifdef COBJMACROS
  16578. #ifndef WIDL_C_INLINE_WRAPPERS
  16579. /*** IUnknown methods ***/
  16580. #define ISpeechRecoResult2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  16581. #define ISpeechRecoResult2_AddRef(This) (This)->lpVtbl->AddRef(This)
  16582. #define ISpeechRecoResult2_Release(This) (This)->lpVtbl->Release(This)
  16583. /*** IDispatch methods ***/
  16584. #define ISpeechRecoResult2_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  16585. #define ISpeechRecoResult2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16586. #define ISpeechRecoResult2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16587. #define ISpeechRecoResult2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16588. /*** ISpeechRecoResult methods ***/
  16589. #define ISpeechRecoResult2_get_RecoContext(This,RecoContext) (This)->lpVtbl->get_RecoContext(This,RecoContext)
  16590. #define ISpeechRecoResult2_get_Times(This,Times) (This)->lpVtbl->get_Times(This,Times)
  16591. #define ISpeechRecoResult2_putref_AudioFormat(This,Format) (This)->lpVtbl->putref_AudioFormat(This,Format)
  16592. #define ISpeechRecoResult2_get_AudioFormat(This,Format) (This)->lpVtbl->get_AudioFormat(This,Format)
  16593. #define ISpeechRecoResult2_get_PhraseInfo(This,PhraseInfo) (This)->lpVtbl->get_PhraseInfo(This,PhraseInfo)
  16594. #define ISpeechRecoResult2_Alternates(This,RequestCount,StartElement,Elements,Alternates) (This)->lpVtbl->Alternates(This,RequestCount,StartElement,Elements,Alternates)
  16595. #define ISpeechRecoResult2_Audio(This,StartElement,Elements,Stream) (This)->lpVtbl->Audio(This,StartElement,Elements,Stream)
  16596. #define ISpeechRecoResult2_SpeakAudio(This,StartElement,Elements,Flags,StreamNumber) (This)->lpVtbl->SpeakAudio(This,StartElement,Elements,Flags,StreamNumber)
  16597. #define ISpeechRecoResult2_SaveToMemory(This,ResultBlock) (This)->lpVtbl->SaveToMemory(This,ResultBlock)
  16598. #define ISpeechRecoResult2_DiscardResultInfo(This,ValueTypes) (This)->lpVtbl->DiscardResultInfo(This,ValueTypes)
  16599. /*** ISpeechRecoResult2 methods ***/
  16600. #define ISpeechRecoResult2_SetTextFeedback(This,Feedback,WasSuccessful) (This)->lpVtbl->SetTextFeedback(This,Feedback,WasSuccessful)
  16601. #else
  16602. /*** IUnknown methods ***/
  16603. static FORCEINLINE HRESULT ISpeechRecoResult2_QueryInterface(ISpeechRecoResult2* This,REFIID riid,void **ppvObject) {
  16604. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  16605. }
  16606. static FORCEINLINE ULONG ISpeechRecoResult2_AddRef(ISpeechRecoResult2* This) {
  16607. return This->lpVtbl->AddRef(This);
  16608. }
  16609. static FORCEINLINE ULONG ISpeechRecoResult2_Release(ISpeechRecoResult2* This) {
  16610. return This->lpVtbl->Release(This);
  16611. }
  16612. /*** IDispatch methods ***/
  16613. static FORCEINLINE HRESULT ISpeechRecoResult2_GetTypeInfoCount(ISpeechRecoResult2* This,UINT *pctinfo) {
  16614. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  16615. }
  16616. static FORCEINLINE HRESULT ISpeechRecoResult2_GetTypeInfo(ISpeechRecoResult2* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  16617. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  16618. }
  16619. static FORCEINLINE HRESULT ISpeechRecoResult2_GetIDsOfNames(ISpeechRecoResult2* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  16620. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  16621. }
  16622. static FORCEINLINE HRESULT ISpeechRecoResult2_Invoke(ISpeechRecoResult2* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  16623. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  16624. }
  16625. /*** ISpeechRecoResult methods ***/
  16626. static FORCEINLINE HRESULT ISpeechRecoResult2_get_RecoContext(ISpeechRecoResult2* This,ISpeechRecoContext **RecoContext) {
  16627. return This->lpVtbl->get_RecoContext(This,RecoContext);
  16628. }
  16629. static FORCEINLINE HRESULT ISpeechRecoResult2_get_Times(ISpeechRecoResult2* This,ISpeechRecoResultTimes **Times) {
  16630. return This->lpVtbl->get_Times(This,Times);
  16631. }
  16632. static FORCEINLINE HRESULT ISpeechRecoResult2_putref_AudioFormat(ISpeechRecoResult2* This,ISpeechAudioFormat *Format) {
  16633. return This->lpVtbl->putref_AudioFormat(This,Format);
  16634. }
  16635. static FORCEINLINE HRESULT ISpeechRecoResult2_get_AudioFormat(ISpeechRecoResult2* This,ISpeechAudioFormat **Format) {
  16636. return This->lpVtbl->get_AudioFormat(This,Format);
  16637. }
  16638. static FORCEINLINE HRESULT ISpeechRecoResult2_get_PhraseInfo(ISpeechRecoResult2* This,ISpeechPhraseInfo **PhraseInfo) {
  16639. return This->lpVtbl->get_PhraseInfo(This,PhraseInfo);
  16640. }
  16641. static FORCEINLINE HRESULT ISpeechRecoResult2_Alternates(ISpeechRecoResult2* This,LONG RequestCount,LONG StartElement,LONG Elements,ISpeechPhraseAlternates **Alternates) {
  16642. return This->lpVtbl->Alternates(This,RequestCount,StartElement,Elements,Alternates);
  16643. }
  16644. static FORCEINLINE HRESULT ISpeechRecoResult2_Audio(ISpeechRecoResult2* This,LONG StartElement,LONG Elements,ISpeechMemoryStream **Stream) {
  16645. return This->lpVtbl->Audio(This,StartElement,Elements,Stream);
  16646. }
  16647. static FORCEINLINE HRESULT ISpeechRecoResult2_SpeakAudio(ISpeechRecoResult2* This,LONG StartElement,LONG Elements,SpeechVoiceSpeakFlags Flags,LONG *StreamNumber) {
  16648. return This->lpVtbl->SpeakAudio(This,StartElement,Elements,Flags,StreamNumber);
  16649. }
  16650. static FORCEINLINE HRESULT ISpeechRecoResult2_SaveToMemory(ISpeechRecoResult2* This,VARIANT *ResultBlock) {
  16651. return This->lpVtbl->SaveToMemory(This,ResultBlock);
  16652. }
  16653. static FORCEINLINE HRESULT ISpeechRecoResult2_DiscardResultInfo(ISpeechRecoResult2* This,SpeechDiscardType ValueTypes) {
  16654. return This->lpVtbl->DiscardResultInfo(This,ValueTypes);
  16655. }
  16656. /*** ISpeechRecoResult2 methods ***/
  16657. static FORCEINLINE HRESULT ISpeechRecoResult2_SetTextFeedback(ISpeechRecoResult2* This,BSTR Feedback,VARIANT_BOOL WasSuccessful) {
  16658. return This->lpVtbl->SetTextFeedback(This,Feedback,WasSuccessful);
  16659. }
  16660. #endif
  16661. #endif
  16662. #endif
  16663. #endif /* __ISpeechRecoResult2_INTERFACE_DEFINED__ */
  16664. /*****************************************************************************
  16665. * ISpeechRecoResultDispatch interface
  16666. */
  16667. #ifndef __ISpeechRecoResultDispatch_INTERFACE_DEFINED__
  16668. #define __ISpeechRecoResultDispatch_INTERFACE_DEFINED__
  16669. DEFINE_GUID(IID_ISpeechRecoResultDispatch, 0x6d60eb64, 0xaced, 0x40a6, 0xbb,0xf3, 0x4e,0x55,0x7f,0x71,0xde,0xe2);
  16670. #if defined(__cplusplus) && !defined(CINTERFACE)
  16671. MIDL_INTERFACE("6d60eb64-aced-40a6-bbf3-4e557f71dee2")
  16672. ISpeechRecoResultDispatch : public IDispatch
  16673. {
  16674. virtual HRESULT STDMETHODCALLTYPE get_RecoContext(
  16675. ISpeechRecoContext **RecoContext) = 0;
  16676. virtual HRESULT STDMETHODCALLTYPE get_Times(
  16677. ISpeechRecoResultTimes **Times) = 0;
  16678. virtual HRESULT STDMETHODCALLTYPE putref_AudioFormat(
  16679. ISpeechAudioFormat *Format) = 0;
  16680. virtual HRESULT STDMETHODCALLTYPE get_AudioFormat(
  16681. ISpeechAudioFormat **Format) = 0;
  16682. virtual HRESULT STDMETHODCALLTYPE get_PhraseInfo(
  16683. ISpeechPhraseInfo **PhraseInfo) = 0;
  16684. virtual HRESULT STDMETHODCALLTYPE Alternates(
  16685. LONG RequestCount,
  16686. LONG StartElement,
  16687. LONG Elements,
  16688. ISpeechPhraseAlternates **Alternates) = 0;
  16689. virtual HRESULT STDMETHODCALLTYPE Audio(
  16690. LONG StartElement,
  16691. LONG Elements,
  16692. ISpeechMemoryStream **Stream) = 0;
  16693. virtual HRESULT STDMETHODCALLTYPE SpeakAudio(
  16694. LONG StartElement,
  16695. LONG Elements,
  16696. SpeechVoiceSpeakFlags Flags,
  16697. LONG *StreamNumber) = 0;
  16698. virtual HRESULT STDMETHODCALLTYPE SaveToMemory(
  16699. VARIANT *ResultBlock) = 0;
  16700. virtual HRESULT STDMETHODCALLTYPE DiscardResultInfo(
  16701. SpeechDiscardType ValueTypes) = 0;
  16702. virtual HRESULT STDMETHODCALLTYPE GetXMLResult(
  16703. SPXMLRESULTOPTIONS Options,
  16704. BSTR *pResult) = 0;
  16705. virtual HRESULT STDMETHODCALLTYPE GetXMLErrorInfo(
  16706. LONG *LineNumber,
  16707. BSTR *ScriptLine,
  16708. BSTR *Source,
  16709. BSTR *Description,
  16710. HRESULT *ResultCode,
  16711. VARIANT_BOOL *IsError) = 0;
  16712. virtual HRESULT STDMETHODCALLTYPE SetTextFeedback(
  16713. BSTR Feedback,
  16714. VARIANT_BOOL WasSuccessful) = 0;
  16715. };
  16716. #ifdef __CRT_UUID_DECL
  16717. __CRT_UUID_DECL(ISpeechRecoResultDispatch, 0x6d60eb64, 0xaced, 0x40a6, 0xbb,0xf3, 0x4e,0x55,0x7f,0x71,0xde,0xe2)
  16718. #endif
  16719. #else
  16720. typedef struct ISpeechRecoResultDispatchVtbl {
  16721. BEGIN_INTERFACE
  16722. /*** IUnknown methods ***/
  16723. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  16724. ISpeechRecoResultDispatch *This,
  16725. REFIID riid,
  16726. void **ppvObject);
  16727. ULONG (STDMETHODCALLTYPE *AddRef)(
  16728. ISpeechRecoResultDispatch *This);
  16729. ULONG (STDMETHODCALLTYPE *Release)(
  16730. ISpeechRecoResultDispatch *This);
  16731. /*** IDispatch methods ***/
  16732. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  16733. ISpeechRecoResultDispatch *This,
  16734. UINT *pctinfo);
  16735. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  16736. ISpeechRecoResultDispatch *This,
  16737. UINT iTInfo,
  16738. LCID lcid,
  16739. ITypeInfo **ppTInfo);
  16740. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  16741. ISpeechRecoResultDispatch *This,
  16742. REFIID riid,
  16743. LPOLESTR *rgszNames,
  16744. UINT cNames,
  16745. LCID lcid,
  16746. DISPID *rgDispId);
  16747. HRESULT (STDMETHODCALLTYPE *Invoke)(
  16748. ISpeechRecoResultDispatch *This,
  16749. DISPID dispIdMember,
  16750. REFIID riid,
  16751. LCID lcid,
  16752. WORD wFlags,
  16753. DISPPARAMS *pDispParams,
  16754. VARIANT *pVarResult,
  16755. EXCEPINFO *pExcepInfo,
  16756. UINT *puArgErr);
  16757. /*** ISpeechRecoResultDispatch methods ***/
  16758. HRESULT (STDMETHODCALLTYPE *get_RecoContext)(
  16759. ISpeechRecoResultDispatch *This,
  16760. ISpeechRecoContext **RecoContext);
  16761. HRESULT (STDMETHODCALLTYPE *get_Times)(
  16762. ISpeechRecoResultDispatch *This,
  16763. ISpeechRecoResultTimes **Times);
  16764. HRESULT (STDMETHODCALLTYPE *putref_AudioFormat)(
  16765. ISpeechRecoResultDispatch *This,
  16766. ISpeechAudioFormat *Format);
  16767. HRESULT (STDMETHODCALLTYPE *get_AudioFormat)(
  16768. ISpeechRecoResultDispatch *This,
  16769. ISpeechAudioFormat **Format);
  16770. HRESULT (STDMETHODCALLTYPE *get_PhraseInfo)(
  16771. ISpeechRecoResultDispatch *This,
  16772. ISpeechPhraseInfo **PhraseInfo);
  16773. HRESULT (STDMETHODCALLTYPE *Alternates)(
  16774. ISpeechRecoResultDispatch *This,
  16775. LONG RequestCount,
  16776. LONG StartElement,
  16777. LONG Elements,
  16778. ISpeechPhraseAlternates **Alternates);
  16779. HRESULT (STDMETHODCALLTYPE *Audio)(
  16780. ISpeechRecoResultDispatch *This,
  16781. LONG StartElement,
  16782. LONG Elements,
  16783. ISpeechMemoryStream **Stream);
  16784. HRESULT (STDMETHODCALLTYPE *SpeakAudio)(
  16785. ISpeechRecoResultDispatch *This,
  16786. LONG StartElement,
  16787. LONG Elements,
  16788. SpeechVoiceSpeakFlags Flags,
  16789. LONG *StreamNumber);
  16790. HRESULT (STDMETHODCALLTYPE *SaveToMemory)(
  16791. ISpeechRecoResultDispatch *This,
  16792. VARIANT *ResultBlock);
  16793. HRESULT (STDMETHODCALLTYPE *DiscardResultInfo)(
  16794. ISpeechRecoResultDispatch *This,
  16795. SpeechDiscardType ValueTypes);
  16796. HRESULT (STDMETHODCALLTYPE *GetXMLResult)(
  16797. ISpeechRecoResultDispatch *This,
  16798. SPXMLRESULTOPTIONS Options,
  16799. BSTR *pResult);
  16800. HRESULT (STDMETHODCALLTYPE *GetXMLErrorInfo)(
  16801. ISpeechRecoResultDispatch *This,
  16802. LONG *LineNumber,
  16803. BSTR *ScriptLine,
  16804. BSTR *Source,
  16805. BSTR *Description,
  16806. HRESULT *ResultCode,
  16807. VARIANT_BOOL *IsError);
  16808. HRESULT (STDMETHODCALLTYPE *SetTextFeedback)(
  16809. ISpeechRecoResultDispatch *This,
  16810. BSTR Feedback,
  16811. VARIANT_BOOL WasSuccessful);
  16812. END_INTERFACE
  16813. } ISpeechRecoResultDispatchVtbl;
  16814. interface ISpeechRecoResultDispatch {
  16815. CONST_VTBL ISpeechRecoResultDispatchVtbl* lpVtbl;
  16816. };
  16817. #ifdef COBJMACROS
  16818. #ifndef WIDL_C_INLINE_WRAPPERS
  16819. /*** IUnknown methods ***/
  16820. #define ISpeechRecoResultDispatch_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  16821. #define ISpeechRecoResultDispatch_AddRef(This) (This)->lpVtbl->AddRef(This)
  16822. #define ISpeechRecoResultDispatch_Release(This) (This)->lpVtbl->Release(This)
  16823. /*** IDispatch methods ***/
  16824. #define ISpeechRecoResultDispatch_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  16825. #define ISpeechRecoResultDispatch_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16826. #define ISpeechRecoResultDispatch_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16827. #define ISpeechRecoResultDispatch_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16828. /*** ISpeechRecoResultDispatch methods ***/
  16829. #define ISpeechRecoResultDispatch_get_RecoContext(This,RecoContext) (This)->lpVtbl->get_RecoContext(This,RecoContext)
  16830. #define ISpeechRecoResultDispatch_get_Times(This,Times) (This)->lpVtbl->get_Times(This,Times)
  16831. #define ISpeechRecoResultDispatch_putref_AudioFormat(This,Format) (This)->lpVtbl->putref_AudioFormat(This,Format)
  16832. #define ISpeechRecoResultDispatch_get_AudioFormat(This,Format) (This)->lpVtbl->get_AudioFormat(This,Format)
  16833. #define ISpeechRecoResultDispatch_get_PhraseInfo(This,PhraseInfo) (This)->lpVtbl->get_PhraseInfo(This,PhraseInfo)
  16834. #define ISpeechRecoResultDispatch_Alternates(This,RequestCount,StartElement,Elements,Alternates) (This)->lpVtbl->Alternates(This,RequestCount,StartElement,Elements,Alternates)
  16835. #define ISpeechRecoResultDispatch_Audio(This,StartElement,Elements,Stream) (This)->lpVtbl->Audio(This,StartElement,Elements,Stream)
  16836. #define ISpeechRecoResultDispatch_SpeakAudio(This,StartElement,Elements,Flags,StreamNumber) (This)->lpVtbl->SpeakAudio(This,StartElement,Elements,Flags,StreamNumber)
  16837. #define ISpeechRecoResultDispatch_SaveToMemory(This,ResultBlock) (This)->lpVtbl->SaveToMemory(This,ResultBlock)
  16838. #define ISpeechRecoResultDispatch_DiscardResultInfo(This,ValueTypes) (This)->lpVtbl->DiscardResultInfo(This,ValueTypes)
  16839. #define ISpeechRecoResultDispatch_GetXMLResult(This,Options,pResult) (This)->lpVtbl->GetXMLResult(This,Options,pResult)
  16840. #define ISpeechRecoResultDispatch_GetXMLErrorInfo(This,LineNumber,ScriptLine,Source,Description,ResultCode,IsError) (This)->lpVtbl->GetXMLErrorInfo(This,LineNumber,ScriptLine,Source,Description,ResultCode,IsError)
  16841. #define ISpeechRecoResultDispatch_SetTextFeedback(This,Feedback,WasSuccessful) (This)->lpVtbl->SetTextFeedback(This,Feedback,WasSuccessful)
  16842. #else
  16843. /*** IUnknown methods ***/
  16844. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_QueryInterface(ISpeechRecoResultDispatch* This,REFIID riid,void **ppvObject) {
  16845. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  16846. }
  16847. static FORCEINLINE ULONG ISpeechRecoResultDispatch_AddRef(ISpeechRecoResultDispatch* This) {
  16848. return This->lpVtbl->AddRef(This);
  16849. }
  16850. static FORCEINLINE ULONG ISpeechRecoResultDispatch_Release(ISpeechRecoResultDispatch* This) {
  16851. return This->lpVtbl->Release(This);
  16852. }
  16853. /*** IDispatch methods ***/
  16854. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_GetTypeInfoCount(ISpeechRecoResultDispatch* This,UINT *pctinfo) {
  16855. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  16856. }
  16857. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_GetTypeInfo(ISpeechRecoResultDispatch* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  16858. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  16859. }
  16860. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_GetIDsOfNames(ISpeechRecoResultDispatch* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  16861. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  16862. }
  16863. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_Invoke(ISpeechRecoResultDispatch* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  16864. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  16865. }
  16866. /*** ISpeechRecoResultDispatch methods ***/
  16867. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_get_RecoContext(ISpeechRecoResultDispatch* This,ISpeechRecoContext **RecoContext) {
  16868. return This->lpVtbl->get_RecoContext(This,RecoContext);
  16869. }
  16870. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_get_Times(ISpeechRecoResultDispatch* This,ISpeechRecoResultTimes **Times) {
  16871. return This->lpVtbl->get_Times(This,Times);
  16872. }
  16873. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_putref_AudioFormat(ISpeechRecoResultDispatch* This,ISpeechAudioFormat *Format) {
  16874. return This->lpVtbl->putref_AudioFormat(This,Format);
  16875. }
  16876. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_get_AudioFormat(ISpeechRecoResultDispatch* This,ISpeechAudioFormat **Format) {
  16877. return This->lpVtbl->get_AudioFormat(This,Format);
  16878. }
  16879. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_get_PhraseInfo(ISpeechRecoResultDispatch* This,ISpeechPhraseInfo **PhraseInfo) {
  16880. return This->lpVtbl->get_PhraseInfo(This,PhraseInfo);
  16881. }
  16882. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_Alternates(ISpeechRecoResultDispatch* This,LONG RequestCount,LONG StartElement,LONG Elements,ISpeechPhraseAlternates **Alternates) {
  16883. return This->lpVtbl->Alternates(This,RequestCount,StartElement,Elements,Alternates);
  16884. }
  16885. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_Audio(ISpeechRecoResultDispatch* This,LONG StartElement,LONG Elements,ISpeechMemoryStream **Stream) {
  16886. return This->lpVtbl->Audio(This,StartElement,Elements,Stream);
  16887. }
  16888. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_SpeakAudio(ISpeechRecoResultDispatch* This,LONG StartElement,LONG Elements,SpeechVoiceSpeakFlags Flags,LONG *StreamNumber) {
  16889. return This->lpVtbl->SpeakAudio(This,StartElement,Elements,Flags,StreamNumber);
  16890. }
  16891. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_SaveToMemory(ISpeechRecoResultDispatch* This,VARIANT *ResultBlock) {
  16892. return This->lpVtbl->SaveToMemory(This,ResultBlock);
  16893. }
  16894. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_DiscardResultInfo(ISpeechRecoResultDispatch* This,SpeechDiscardType ValueTypes) {
  16895. return This->lpVtbl->DiscardResultInfo(This,ValueTypes);
  16896. }
  16897. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_GetXMLResult(ISpeechRecoResultDispatch* This,SPXMLRESULTOPTIONS Options,BSTR *pResult) {
  16898. return This->lpVtbl->GetXMLResult(This,Options,pResult);
  16899. }
  16900. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_GetXMLErrorInfo(ISpeechRecoResultDispatch* This,LONG *LineNumber,BSTR *ScriptLine,BSTR *Source,BSTR *Description,HRESULT *ResultCode,VARIANT_BOOL *IsError) {
  16901. return This->lpVtbl->GetXMLErrorInfo(This,LineNumber,ScriptLine,Source,Description,ResultCode,IsError);
  16902. }
  16903. static FORCEINLINE HRESULT ISpeechRecoResultDispatch_SetTextFeedback(ISpeechRecoResultDispatch* This,BSTR Feedback,VARIANT_BOOL WasSuccessful) {
  16904. return This->lpVtbl->SetTextFeedback(This,Feedback,WasSuccessful);
  16905. }
  16906. #endif
  16907. #endif
  16908. #endif
  16909. #endif /* __ISpeechRecoResultDispatch_INTERFACE_DEFINED__ */
  16910. /*****************************************************************************
  16911. * ISpeechPhraseInfoBuilder interface
  16912. */
  16913. #ifndef __ISpeechPhraseInfoBuilder_INTERFACE_DEFINED__
  16914. #define __ISpeechPhraseInfoBuilder_INTERFACE_DEFINED__
  16915. DEFINE_GUID(IID_ISpeechPhraseInfoBuilder, 0x3b151836, 0xdf3a, 0x4e0a, 0x84,0x6c, 0xd2,0xad,0xc9,0x33,0x43,0x33);
  16916. #if defined(__cplusplus) && !defined(CINTERFACE)
  16917. MIDL_INTERFACE("3b151836-df3a-4e0a-846c-d2adc9334333")
  16918. ISpeechPhraseInfoBuilder : public IDispatch
  16919. {
  16920. virtual HRESULT STDMETHODCALLTYPE RestorePhraseFromMemory(
  16921. VARIANT *PhraseInMemory,
  16922. ISpeechPhraseInfo **PhraseInfo) = 0;
  16923. };
  16924. #ifdef __CRT_UUID_DECL
  16925. __CRT_UUID_DECL(ISpeechPhraseInfoBuilder, 0x3b151836, 0xdf3a, 0x4e0a, 0x84,0x6c, 0xd2,0xad,0xc9,0x33,0x43,0x33)
  16926. #endif
  16927. #else
  16928. typedef struct ISpeechPhraseInfoBuilderVtbl {
  16929. BEGIN_INTERFACE
  16930. /*** IUnknown methods ***/
  16931. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  16932. ISpeechPhraseInfoBuilder *This,
  16933. REFIID riid,
  16934. void **ppvObject);
  16935. ULONG (STDMETHODCALLTYPE *AddRef)(
  16936. ISpeechPhraseInfoBuilder *This);
  16937. ULONG (STDMETHODCALLTYPE *Release)(
  16938. ISpeechPhraseInfoBuilder *This);
  16939. /*** IDispatch methods ***/
  16940. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  16941. ISpeechPhraseInfoBuilder *This,
  16942. UINT *pctinfo);
  16943. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  16944. ISpeechPhraseInfoBuilder *This,
  16945. UINT iTInfo,
  16946. LCID lcid,
  16947. ITypeInfo **ppTInfo);
  16948. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  16949. ISpeechPhraseInfoBuilder *This,
  16950. REFIID riid,
  16951. LPOLESTR *rgszNames,
  16952. UINT cNames,
  16953. LCID lcid,
  16954. DISPID *rgDispId);
  16955. HRESULT (STDMETHODCALLTYPE *Invoke)(
  16956. ISpeechPhraseInfoBuilder *This,
  16957. DISPID dispIdMember,
  16958. REFIID riid,
  16959. LCID lcid,
  16960. WORD wFlags,
  16961. DISPPARAMS *pDispParams,
  16962. VARIANT *pVarResult,
  16963. EXCEPINFO *pExcepInfo,
  16964. UINT *puArgErr);
  16965. /*** ISpeechPhraseInfoBuilder methods ***/
  16966. HRESULT (STDMETHODCALLTYPE *RestorePhraseFromMemory)(
  16967. ISpeechPhraseInfoBuilder *This,
  16968. VARIANT *PhraseInMemory,
  16969. ISpeechPhraseInfo **PhraseInfo);
  16970. END_INTERFACE
  16971. } ISpeechPhraseInfoBuilderVtbl;
  16972. interface ISpeechPhraseInfoBuilder {
  16973. CONST_VTBL ISpeechPhraseInfoBuilderVtbl* lpVtbl;
  16974. };
  16975. #ifdef COBJMACROS
  16976. #ifndef WIDL_C_INLINE_WRAPPERS
  16977. /*** IUnknown methods ***/
  16978. #define ISpeechPhraseInfoBuilder_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  16979. #define ISpeechPhraseInfoBuilder_AddRef(This) (This)->lpVtbl->AddRef(This)
  16980. #define ISpeechPhraseInfoBuilder_Release(This) (This)->lpVtbl->Release(This)
  16981. /*** IDispatch methods ***/
  16982. #define ISpeechPhraseInfoBuilder_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  16983. #define ISpeechPhraseInfoBuilder_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  16984. #define ISpeechPhraseInfoBuilder_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  16985. #define ISpeechPhraseInfoBuilder_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  16986. /*** ISpeechPhraseInfoBuilder methods ***/
  16987. #define ISpeechPhraseInfoBuilder_RestorePhraseFromMemory(This,PhraseInMemory,PhraseInfo) (This)->lpVtbl->RestorePhraseFromMemory(This,PhraseInMemory,PhraseInfo)
  16988. #else
  16989. /*** IUnknown methods ***/
  16990. static FORCEINLINE HRESULT ISpeechPhraseInfoBuilder_QueryInterface(ISpeechPhraseInfoBuilder* This,REFIID riid,void **ppvObject) {
  16991. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  16992. }
  16993. static FORCEINLINE ULONG ISpeechPhraseInfoBuilder_AddRef(ISpeechPhraseInfoBuilder* This) {
  16994. return This->lpVtbl->AddRef(This);
  16995. }
  16996. static FORCEINLINE ULONG ISpeechPhraseInfoBuilder_Release(ISpeechPhraseInfoBuilder* This) {
  16997. return This->lpVtbl->Release(This);
  16998. }
  16999. /*** IDispatch methods ***/
  17000. static FORCEINLINE HRESULT ISpeechPhraseInfoBuilder_GetTypeInfoCount(ISpeechPhraseInfoBuilder* This,UINT *pctinfo) {
  17001. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  17002. }
  17003. static FORCEINLINE HRESULT ISpeechPhraseInfoBuilder_GetTypeInfo(ISpeechPhraseInfoBuilder* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  17004. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  17005. }
  17006. static FORCEINLINE HRESULT ISpeechPhraseInfoBuilder_GetIDsOfNames(ISpeechPhraseInfoBuilder* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  17007. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  17008. }
  17009. static FORCEINLINE HRESULT ISpeechPhraseInfoBuilder_Invoke(ISpeechPhraseInfoBuilder* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  17010. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  17011. }
  17012. /*** ISpeechPhraseInfoBuilder methods ***/
  17013. static FORCEINLINE HRESULT ISpeechPhraseInfoBuilder_RestorePhraseFromMemory(ISpeechPhraseInfoBuilder* This,VARIANT *PhraseInMemory,ISpeechPhraseInfo **PhraseInfo) {
  17014. return This->lpVtbl->RestorePhraseFromMemory(This,PhraseInMemory,PhraseInfo);
  17015. }
  17016. #endif
  17017. #endif
  17018. #endif
  17019. #endif /* __ISpeechPhraseInfoBuilder_INTERFACE_DEFINED__ */
  17020. /*****************************************************************************
  17021. * ISpeechRecoResultTimes interface
  17022. */
  17023. #ifndef __ISpeechRecoResultTimes_INTERFACE_DEFINED__
  17024. #define __ISpeechRecoResultTimes_INTERFACE_DEFINED__
  17025. DEFINE_GUID(IID_ISpeechRecoResultTimes, 0x62b3b8fb, 0xf6e7, 0x41be, 0xbd,0xcb, 0x05,0x6b,0x1c,0x29,0xef,0xc0);
  17026. #if defined(__cplusplus) && !defined(CINTERFACE)
  17027. MIDL_INTERFACE("62b3b8fb-f6e7-41be-bdcb-056b1c29efc0")
  17028. ISpeechRecoResultTimes : public IDispatch
  17029. {
  17030. virtual HRESULT STDMETHODCALLTYPE get_StreamTime(
  17031. VARIANT *Time) = 0;
  17032. virtual HRESULT STDMETHODCALLTYPE get_Length(
  17033. VARIANT *Length) = 0;
  17034. virtual HRESULT STDMETHODCALLTYPE get_TickCount(
  17035. LONG *TickCount) = 0;
  17036. virtual HRESULT STDMETHODCALLTYPE get_OffsetFromStart(
  17037. VARIANT *OffsetFromStart) = 0;
  17038. };
  17039. #ifdef __CRT_UUID_DECL
  17040. __CRT_UUID_DECL(ISpeechRecoResultTimes, 0x62b3b8fb, 0xf6e7, 0x41be, 0xbd,0xcb, 0x05,0x6b,0x1c,0x29,0xef,0xc0)
  17041. #endif
  17042. #else
  17043. typedef struct ISpeechRecoResultTimesVtbl {
  17044. BEGIN_INTERFACE
  17045. /*** IUnknown methods ***/
  17046. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  17047. ISpeechRecoResultTimes *This,
  17048. REFIID riid,
  17049. void **ppvObject);
  17050. ULONG (STDMETHODCALLTYPE *AddRef)(
  17051. ISpeechRecoResultTimes *This);
  17052. ULONG (STDMETHODCALLTYPE *Release)(
  17053. ISpeechRecoResultTimes *This);
  17054. /*** IDispatch methods ***/
  17055. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  17056. ISpeechRecoResultTimes *This,
  17057. UINT *pctinfo);
  17058. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  17059. ISpeechRecoResultTimes *This,
  17060. UINT iTInfo,
  17061. LCID lcid,
  17062. ITypeInfo **ppTInfo);
  17063. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  17064. ISpeechRecoResultTimes *This,
  17065. REFIID riid,
  17066. LPOLESTR *rgszNames,
  17067. UINT cNames,
  17068. LCID lcid,
  17069. DISPID *rgDispId);
  17070. HRESULT (STDMETHODCALLTYPE *Invoke)(
  17071. ISpeechRecoResultTimes *This,
  17072. DISPID dispIdMember,
  17073. REFIID riid,
  17074. LCID lcid,
  17075. WORD wFlags,
  17076. DISPPARAMS *pDispParams,
  17077. VARIANT *pVarResult,
  17078. EXCEPINFO *pExcepInfo,
  17079. UINT *puArgErr);
  17080. /*** ISpeechRecoResultTimes methods ***/
  17081. HRESULT (STDMETHODCALLTYPE *get_StreamTime)(
  17082. ISpeechRecoResultTimes *This,
  17083. VARIANT *Time);
  17084. HRESULT (STDMETHODCALLTYPE *get_Length)(
  17085. ISpeechRecoResultTimes *This,
  17086. VARIANT *Length);
  17087. HRESULT (STDMETHODCALLTYPE *get_TickCount)(
  17088. ISpeechRecoResultTimes *This,
  17089. LONG *TickCount);
  17090. HRESULT (STDMETHODCALLTYPE *get_OffsetFromStart)(
  17091. ISpeechRecoResultTimes *This,
  17092. VARIANT *OffsetFromStart);
  17093. END_INTERFACE
  17094. } ISpeechRecoResultTimesVtbl;
  17095. interface ISpeechRecoResultTimes {
  17096. CONST_VTBL ISpeechRecoResultTimesVtbl* lpVtbl;
  17097. };
  17098. #ifdef COBJMACROS
  17099. #ifndef WIDL_C_INLINE_WRAPPERS
  17100. /*** IUnknown methods ***/
  17101. #define ISpeechRecoResultTimes_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  17102. #define ISpeechRecoResultTimes_AddRef(This) (This)->lpVtbl->AddRef(This)
  17103. #define ISpeechRecoResultTimes_Release(This) (This)->lpVtbl->Release(This)
  17104. /*** IDispatch methods ***/
  17105. #define ISpeechRecoResultTimes_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  17106. #define ISpeechRecoResultTimes_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17107. #define ISpeechRecoResultTimes_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17108. #define ISpeechRecoResultTimes_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17109. /*** ISpeechRecoResultTimes methods ***/
  17110. #define ISpeechRecoResultTimes_get_StreamTime(This,Time) (This)->lpVtbl->get_StreamTime(This,Time)
  17111. #define ISpeechRecoResultTimes_get_Length(This,Length) (This)->lpVtbl->get_Length(This,Length)
  17112. #define ISpeechRecoResultTimes_get_TickCount(This,TickCount) (This)->lpVtbl->get_TickCount(This,TickCount)
  17113. #define ISpeechRecoResultTimes_get_OffsetFromStart(This,OffsetFromStart) (This)->lpVtbl->get_OffsetFromStart(This,OffsetFromStart)
  17114. #else
  17115. /*** IUnknown methods ***/
  17116. static FORCEINLINE HRESULT ISpeechRecoResultTimes_QueryInterface(ISpeechRecoResultTimes* This,REFIID riid,void **ppvObject) {
  17117. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  17118. }
  17119. static FORCEINLINE ULONG ISpeechRecoResultTimes_AddRef(ISpeechRecoResultTimes* This) {
  17120. return This->lpVtbl->AddRef(This);
  17121. }
  17122. static FORCEINLINE ULONG ISpeechRecoResultTimes_Release(ISpeechRecoResultTimes* This) {
  17123. return This->lpVtbl->Release(This);
  17124. }
  17125. /*** IDispatch methods ***/
  17126. static FORCEINLINE HRESULT ISpeechRecoResultTimes_GetTypeInfoCount(ISpeechRecoResultTimes* This,UINT *pctinfo) {
  17127. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  17128. }
  17129. static FORCEINLINE HRESULT ISpeechRecoResultTimes_GetTypeInfo(ISpeechRecoResultTimes* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  17130. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  17131. }
  17132. static FORCEINLINE HRESULT ISpeechRecoResultTimes_GetIDsOfNames(ISpeechRecoResultTimes* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  17133. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  17134. }
  17135. static FORCEINLINE HRESULT ISpeechRecoResultTimes_Invoke(ISpeechRecoResultTimes* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  17136. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  17137. }
  17138. /*** ISpeechRecoResultTimes methods ***/
  17139. static FORCEINLINE HRESULT ISpeechRecoResultTimes_get_StreamTime(ISpeechRecoResultTimes* This,VARIANT *Time) {
  17140. return This->lpVtbl->get_StreamTime(This,Time);
  17141. }
  17142. static FORCEINLINE HRESULT ISpeechRecoResultTimes_get_Length(ISpeechRecoResultTimes* This,VARIANT *Length) {
  17143. return This->lpVtbl->get_Length(This,Length);
  17144. }
  17145. static FORCEINLINE HRESULT ISpeechRecoResultTimes_get_TickCount(ISpeechRecoResultTimes* This,LONG *TickCount) {
  17146. return This->lpVtbl->get_TickCount(This,TickCount);
  17147. }
  17148. static FORCEINLINE HRESULT ISpeechRecoResultTimes_get_OffsetFromStart(ISpeechRecoResultTimes* This,VARIANT *OffsetFromStart) {
  17149. return This->lpVtbl->get_OffsetFromStart(This,OffsetFromStart);
  17150. }
  17151. #endif
  17152. #endif
  17153. #endif
  17154. #endif /* __ISpeechRecoResultTimes_INTERFACE_DEFINED__ */
  17155. /*****************************************************************************
  17156. * ISpeechPhraseAlternate interface
  17157. */
  17158. #ifndef __ISpeechPhraseAlternate_INTERFACE_DEFINED__
  17159. #define __ISpeechPhraseAlternate_INTERFACE_DEFINED__
  17160. DEFINE_GUID(IID_ISpeechPhraseAlternate, 0x27864a2a, 0x2b9f, 0x4cb8, 0x92,0xd3, 0x0d,0x27,0x22,0xfd,0x1e,0x73);
  17161. #if defined(__cplusplus) && !defined(CINTERFACE)
  17162. MIDL_INTERFACE("27864a2a-2b9f-4cb8-92d3-0d2722fd1e73")
  17163. ISpeechPhraseAlternate : public IDispatch
  17164. {
  17165. virtual HRESULT STDMETHODCALLTYPE get_RecoResult(
  17166. ISpeechRecoResult **RecoResult) = 0;
  17167. virtual HRESULT STDMETHODCALLTYPE get_StartElementInResult(
  17168. LONG *StartElement) = 0;
  17169. virtual HRESULT STDMETHODCALLTYPE get_NumberOfElementsInResult(
  17170. LONG *NumberOfElements) = 0;
  17171. virtual HRESULT STDMETHODCALLTYPE get_PhraseInfo(
  17172. ISpeechPhraseInfo **PhraseInfo) = 0;
  17173. virtual HRESULT STDMETHODCALLTYPE Commit(
  17174. ) = 0;
  17175. };
  17176. #ifdef __CRT_UUID_DECL
  17177. __CRT_UUID_DECL(ISpeechPhraseAlternate, 0x27864a2a, 0x2b9f, 0x4cb8, 0x92,0xd3, 0x0d,0x27,0x22,0xfd,0x1e,0x73)
  17178. #endif
  17179. #else
  17180. typedef struct ISpeechPhraseAlternateVtbl {
  17181. BEGIN_INTERFACE
  17182. /*** IUnknown methods ***/
  17183. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  17184. ISpeechPhraseAlternate *This,
  17185. REFIID riid,
  17186. void **ppvObject);
  17187. ULONG (STDMETHODCALLTYPE *AddRef)(
  17188. ISpeechPhraseAlternate *This);
  17189. ULONG (STDMETHODCALLTYPE *Release)(
  17190. ISpeechPhraseAlternate *This);
  17191. /*** IDispatch methods ***/
  17192. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  17193. ISpeechPhraseAlternate *This,
  17194. UINT *pctinfo);
  17195. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  17196. ISpeechPhraseAlternate *This,
  17197. UINT iTInfo,
  17198. LCID lcid,
  17199. ITypeInfo **ppTInfo);
  17200. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  17201. ISpeechPhraseAlternate *This,
  17202. REFIID riid,
  17203. LPOLESTR *rgszNames,
  17204. UINT cNames,
  17205. LCID lcid,
  17206. DISPID *rgDispId);
  17207. HRESULT (STDMETHODCALLTYPE *Invoke)(
  17208. ISpeechPhraseAlternate *This,
  17209. DISPID dispIdMember,
  17210. REFIID riid,
  17211. LCID lcid,
  17212. WORD wFlags,
  17213. DISPPARAMS *pDispParams,
  17214. VARIANT *pVarResult,
  17215. EXCEPINFO *pExcepInfo,
  17216. UINT *puArgErr);
  17217. /*** ISpeechPhraseAlternate methods ***/
  17218. HRESULT (STDMETHODCALLTYPE *get_RecoResult)(
  17219. ISpeechPhraseAlternate *This,
  17220. ISpeechRecoResult **RecoResult);
  17221. HRESULT (STDMETHODCALLTYPE *get_StartElementInResult)(
  17222. ISpeechPhraseAlternate *This,
  17223. LONG *StartElement);
  17224. HRESULT (STDMETHODCALLTYPE *get_NumberOfElementsInResult)(
  17225. ISpeechPhraseAlternate *This,
  17226. LONG *NumberOfElements);
  17227. HRESULT (STDMETHODCALLTYPE *get_PhraseInfo)(
  17228. ISpeechPhraseAlternate *This,
  17229. ISpeechPhraseInfo **PhraseInfo);
  17230. HRESULT (STDMETHODCALLTYPE *Commit)(
  17231. ISpeechPhraseAlternate *This);
  17232. END_INTERFACE
  17233. } ISpeechPhraseAlternateVtbl;
  17234. interface ISpeechPhraseAlternate {
  17235. CONST_VTBL ISpeechPhraseAlternateVtbl* lpVtbl;
  17236. };
  17237. #ifdef COBJMACROS
  17238. #ifndef WIDL_C_INLINE_WRAPPERS
  17239. /*** IUnknown methods ***/
  17240. #define ISpeechPhraseAlternate_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  17241. #define ISpeechPhraseAlternate_AddRef(This) (This)->lpVtbl->AddRef(This)
  17242. #define ISpeechPhraseAlternate_Release(This) (This)->lpVtbl->Release(This)
  17243. /*** IDispatch methods ***/
  17244. #define ISpeechPhraseAlternate_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  17245. #define ISpeechPhraseAlternate_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17246. #define ISpeechPhraseAlternate_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17247. #define ISpeechPhraseAlternate_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17248. /*** ISpeechPhraseAlternate methods ***/
  17249. #define ISpeechPhraseAlternate_get_RecoResult(This,RecoResult) (This)->lpVtbl->get_RecoResult(This,RecoResult)
  17250. #define ISpeechPhraseAlternate_get_StartElementInResult(This,StartElement) (This)->lpVtbl->get_StartElementInResult(This,StartElement)
  17251. #define ISpeechPhraseAlternate_get_NumberOfElementsInResult(This,NumberOfElements) (This)->lpVtbl->get_NumberOfElementsInResult(This,NumberOfElements)
  17252. #define ISpeechPhraseAlternate_get_PhraseInfo(This,PhraseInfo) (This)->lpVtbl->get_PhraseInfo(This,PhraseInfo)
  17253. #define ISpeechPhraseAlternate_Commit(This) (This)->lpVtbl->Commit(This)
  17254. #else
  17255. /*** IUnknown methods ***/
  17256. static FORCEINLINE HRESULT ISpeechPhraseAlternate_QueryInterface(ISpeechPhraseAlternate* This,REFIID riid,void **ppvObject) {
  17257. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  17258. }
  17259. static FORCEINLINE ULONG ISpeechPhraseAlternate_AddRef(ISpeechPhraseAlternate* This) {
  17260. return This->lpVtbl->AddRef(This);
  17261. }
  17262. static FORCEINLINE ULONG ISpeechPhraseAlternate_Release(ISpeechPhraseAlternate* This) {
  17263. return This->lpVtbl->Release(This);
  17264. }
  17265. /*** IDispatch methods ***/
  17266. static FORCEINLINE HRESULT ISpeechPhraseAlternate_GetTypeInfoCount(ISpeechPhraseAlternate* This,UINT *pctinfo) {
  17267. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  17268. }
  17269. static FORCEINLINE HRESULT ISpeechPhraseAlternate_GetTypeInfo(ISpeechPhraseAlternate* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  17270. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  17271. }
  17272. static FORCEINLINE HRESULT ISpeechPhraseAlternate_GetIDsOfNames(ISpeechPhraseAlternate* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  17273. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  17274. }
  17275. static FORCEINLINE HRESULT ISpeechPhraseAlternate_Invoke(ISpeechPhraseAlternate* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  17276. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  17277. }
  17278. /*** ISpeechPhraseAlternate methods ***/
  17279. static FORCEINLINE HRESULT ISpeechPhraseAlternate_get_RecoResult(ISpeechPhraseAlternate* This,ISpeechRecoResult **RecoResult) {
  17280. return This->lpVtbl->get_RecoResult(This,RecoResult);
  17281. }
  17282. static FORCEINLINE HRESULT ISpeechPhraseAlternate_get_StartElementInResult(ISpeechPhraseAlternate* This,LONG *StartElement) {
  17283. return This->lpVtbl->get_StartElementInResult(This,StartElement);
  17284. }
  17285. static FORCEINLINE HRESULT ISpeechPhraseAlternate_get_NumberOfElementsInResult(ISpeechPhraseAlternate* This,LONG *NumberOfElements) {
  17286. return This->lpVtbl->get_NumberOfElementsInResult(This,NumberOfElements);
  17287. }
  17288. static FORCEINLINE HRESULT ISpeechPhraseAlternate_get_PhraseInfo(ISpeechPhraseAlternate* This,ISpeechPhraseInfo **PhraseInfo) {
  17289. return This->lpVtbl->get_PhraseInfo(This,PhraseInfo);
  17290. }
  17291. static FORCEINLINE HRESULT ISpeechPhraseAlternate_Commit(ISpeechPhraseAlternate* This) {
  17292. return This->lpVtbl->Commit(This);
  17293. }
  17294. #endif
  17295. #endif
  17296. #endif
  17297. #endif /* __ISpeechPhraseAlternate_INTERFACE_DEFINED__ */
  17298. /*****************************************************************************
  17299. * ISpeechPhraseAlternates interface
  17300. */
  17301. #ifndef __ISpeechPhraseAlternates_INTERFACE_DEFINED__
  17302. #define __ISpeechPhraseAlternates_INTERFACE_DEFINED__
  17303. DEFINE_GUID(IID_ISpeechPhraseAlternates, 0xb238b6d5, 0xf276, 0x4c3d, 0xa6,0xc1, 0x29,0x74,0x80,0x1c,0x3c,0xc2);
  17304. #if defined(__cplusplus) && !defined(CINTERFACE)
  17305. MIDL_INTERFACE("b238b6d5-f276-4c3d-a6c1-2974801c3cc2")
  17306. ISpeechPhraseAlternates : public IDispatch
  17307. {
  17308. virtual HRESULT STDMETHODCALLTYPE get_Count(
  17309. LONG *Count) = 0;
  17310. virtual HRESULT STDMETHODCALLTYPE Item(
  17311. LONG Index,
  17312. ISpeechPhraseAlternate **PhraseAlternate) = 0;
  17313. virtual HRESULT STDMETHODCALLTYPE get__NewEnum(
  17314. IUnknown **EnumVARIANT) = 0;
  17315. };
  17316. #ifdef __CRT_UUID_DECL
  17317. __CRT_UUID_DECL(ISpeechPhraseAlternates, 0xb238b6d5, 0xf276, 0x4c3d, 0xa6,0xc1, 0x29,0x74,0x80,0x1c,0x3c,0xc2)
  17318. #endif
  17319. #else
  17320. typedef struct ISpeechPhraseAlternatesVtbl {
  17321. BEGIN_INTERFACE
  17322. /*** IUnknown methods ***/
  17323. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  17324. ISpeechPhraseAlternates *This,
  17325. REFIID riid,
  17326. void **ppvObject);
  17327. ULONG (STDMETHODCALLTYPE *AddRef)(
  17328. ISpeechPhraseAlternates *This);
  17329. ULONG (STDMETHODCALLTYPE *Release)(
  17330. ISpeechPhraseAlternates *This);
  17331. /*** IDispatch methods ***/
  17332. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  17333. ISpeechPhraseAlternates *This,
  17334. UINT *pctinfo);
  17335. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  17336. ISpeechPhraseAlternates *This,
  17337. UINT iTInfo,
  17338. LCID lcid,
  17339. ITypeInfo **ppTInfo);
  17340. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  17341. ISpeechPhraseAlternates *This,
  17342. REFIID riid,
  17343. LPOLESTR *rgszNames,
  17344. UINT cNames,
  17345. LCID lcid,
  17346. DISPID *rgDispId);
  17347. HRESULT (STDMETHODCALLTYPE *Invoke)(
  17348. ISpeechPhraseAlternates *This,
  17349. DISPID dispIdMember,
  17350. REFIID riid,
  17351. LCID lcid,
  17352. WORD wFlags,
  17353. DISPPARAMS *pDispParams,
  17354. VARIANT *pVarResult,
  17355. EXCEPINFO *pExcepInfo,
  17356. UINT *puArgErr);
  17357. /*** ISpeechPhraseAlternates methods ***/
  17358. HRESULT (STDMETHODCALLTYPE *get_Count)(
  17359. ISpeechPhraseAlternates *This,
  17360. LONG *Count);
  17361. HRESULT (STDMETHODCALLTYPE *Item)(
  17362. ISpeechPhraseAlternates *This,
  17363. LONG Index,
  17364. ISpeechPhraseAlternate **PhraseAlternate);
  17365. HRESULT (STDMETHODCALLTYPE *get__NewEnum)(
  17366. ISpeechPhraseAlternates *This,
  17367. IUnknown **EnumVARIANT);
  17368. END_INTERFACE
  17369. } ISpeechPhraseAlternatesVtbl;
  17370. interface ISpeechPhraseAlternates {
  17371. CONST_VTBL ISpeechPhraseAlternatesVtbl* lpVtbl;
  17372. };
  17373. #ifdef COBJMACROS
  17374. #ifndef WIDL_C_INLINE_WRAPPERS
  17375. /*** IUnknown methods ***/
  17376. #define ISpeechPhraseAlternates_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  17377. #define ISpeechPhraseAlternates_AddRef(This) (This)->lpVtbl->AddRef(This)
  17378. #define ISpeechPhraseAlternates_Release(This) (This)->lpVtbl->Release(This)
  17379. /*** IDispatch methods ***/
  17380. #define ISpeechPhraseAlternates_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  17381. #define ISpeechPhraseAlternates_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17382. #define ISpeechPhraseAlternates_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17383. #define ISpeechPhraseAlternates_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17384. /*** ISpeechPhraseAlternates methods ***/
  17385. #define ISpeechPhraseAlternates_get_Count(This,Count) (This)->lpVtbl->get_Count(This,Count)
  17386. #define ISpeechPhraseAlternates_Item(This,Index,PhraseAlternate) (This)->lpVtbl->Item(This,Index,PhraseAlternate)
  17387. #define ISpeechPhraseAlternates_get__NewEnum(This,EnumVARIANT) (This)->lpVtbl->get__NewEnum(This,EnumVARIANT)
  17388. #else
  17389. /*** IUnknown methods ***/
  17390. static FORCEINLINE HRESULT ISpeechPhraseAlternates_QueryInterface(ISpeechPhraseAlternates* This,REFIID riid,void **ppvObject) {
  17391. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  17392. }
  17393. static FORCEINLINE ULONG ISpeechPhraseAlternates_AddRef(ISpeechPhraseAlternates* This) {
  17394. return This->lpVtbl->AddRef(This);
  17395. }
  17396. static FORCEINLINE ULONG ISpeechPhraseAlternates_Release(ISpeechPhraseAlternates* This) {
  17397. return This->lpVtbl->Release(This);
  17398. }
  17399. /*** IDispatch methods ***/
  17400. static FORCEINLINE HRESULT ISpeechPhraseAlternates_GetTypeInfoCount(ISpeechPhraseAlternates* This,UINT *pctinfo) {
  17401. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  17402. }
  17403. static FORCEINLINE HRESULT ISpeechPhraseAlternates_GetTypeInfo(ISpeechPhraseAlternates* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  17404. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  17405. }
  17406. static FORCEINLINE HRESULT ISpeechPhraseAlternates_GetIDsOfNames(ISpeechPhraseAlternates* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  17407. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  17408. }
  17409. static FORCEINLINE HRESULT ISpeechPhraseAlternates_Invoke(ISpeechPhraseAlternates* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  17410. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  17411. }
  17412. /*** ISpeechPhraseAlternates methods ***/
  17413. static FORCEINLINE HRESULT ISpeechPhraseAlternates_get_Count(ISpeechPhraseAlternates* This,LONG *Count) {
  17414. return This->lpVtbl->get_Count(This,Count);
  17415. }
  17416. static FORCEINLINE HRESULT ISpeechPhraseAlternates_Item(ISpeechPhraseAlternates* This,LONG Index,ISpeechPhraseAlternate **PhraseAlternate) {
  17417. return This->lpVtbl->Item(This,Index,PhraseAlternate);
  17418. }
  17419. static FORCEINLINE HRESULT ISpeechPhraseAlternates_get__NewEnum(ISpeechPhraseAlternates* This,IUnknown **EnumVARIANT) {
  17420. return This->lpVtbl->get__NewEnum(This,EnumVARIANT);
  17421. }
  17422. #endif
  17423. #endif
  17424. #endif
  17425. #endif /* __ISpeechPhraseAlternates_INTERFACE_DEFINED__ */
  17426. /*****************************************************************************
  17427. * ISpeechPhraseInfo interface
  17428. */
  17429. #ifndef __ISpeechPhraseInfo_INTERFACE_DEFINED__
  17430. #define __ISpeechPhraseInfo_INTERFACE_DEFINED__
  17431. DEFINE_GUID(IID_ISpeechPhraseInfo, 0x961559cf, 0x4e67, 0x4662, 0x8b,0xf0, 0xd9,0x3f,0x1f,0xcd,0x61,0xb3);
  17432. #if defined(__cplusplus) && !defined(CINTERFACE)
  17433. MIDL_INTERFACE("961559cf-4e67-4662-8bf0-d93f1fcd61b3")
  17434. ISpeechPhraseInfo : public IDispatch
  17435. {
  17436. virtual HRESULT STDMETHODCALLTYPE get_LanguageId(
  17437. LONG *LanguageId) = 0;
  17438. virtual HRESULT STDMETHODCALLTYPE get_GrammarId(
  17439. VARIANT *GrammarId) = 0;
  17440. virtual HRESULT STDMETHODCALLTYPE get_StartTime(
  17441. VARIANT *StartTime) = 0;
  17442. virtual HRESULT STDMETHODCALLTYPE get_AudioStreamPosition(
  17443. VARIANT *AudioStreamPosition) = 0;
  17444. virtual HRESULT STDMETHODCALLTYPE get_AudioSizeBytes(
  17445. LONG *pAudioSizeBytes) = 0;
  17446. virtual HRESULT STDMETHODCALLTYPE get_RetainedSizeBytes(
  17447. LONG *RetainedSizeBytes) = 0;
  17448. virtual HRESULT STDMETHODCALLTYPE get_AudioSizeTime(
  17449. LONG *AudioSizeTime) = 0;
  17450. virtual HRESULT STDMETHODCALLTYPE get_Rule(
  17451. ISpeechPhraseRule **Rule) = 0;
  17452. virtual HRESULT STDMETHODCALLTYPE get_Properties(
  17453. ISpeechPhraseProperties **Properties) = 0;
  17454. virtual HRESULT STDMETHODCALLTYPE get_Elements(
  17455. ISpeechPhraseElements **Elements) = 0;
  17456. virtual HRESULT STDMETHODCALLTYPE get_Replacements(
  17457. ISpeechPhraseReplacements **Replacements) = 0;
  17458. virtual HRESULT STDMETHODCALLTYPE get_EngineId(
  17459. BSTR *EngineIdGuid) = 0;
  17460. virtual HRESULT STDMETHODCALLTYPE get_EnginePrivateData(
  17461. VARIANT *PrivateData) = 0;
  17462. virtual HRESULT STDMETHODCALLTYPE SaveToMemory(
  17463. VARIANT *PhraseBlock) = 0;
  17464. virtual HRESULT STDMETHODCALLTYPE GetText(
  17465. LONG StartElement,
  17466. LONG Elements,
  17467. VARIANT_BOOL UseReplacements,
  17468. BSTR *Text) = 0;
  17469. virtual HRESULT STDMETHODCALLTYPE GetDisplayAttributes(
  17470. LONG StartElement,
  17471. LONG Elements,
  17472. VARIANT_BOOL UseReplacements,
  17473. SpeechDisplayAttributes *DisplayAttributes) = 0;
  17474. };
  17475. #ifdef __CRT_UUID_DECL
  17476. __CRT_UUID_DECL(ISpeechPhraseInfo, 0x961559cf, 0x4e67, 0x4662, 0x8b,0xf0, 0xd9,0x3f,0x1f,0xcd,0x61,0xb3)
  17477. #endif
  17478. #else
  17479. typedef struct ISpeechPhraseInfoVtbl {
  17480. BEGIN_INTERFACE
  17481. /*** IUnknown methods ***/
  17482. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  17483. ISpeechPhraseInfo *This,
  17484. REFIID riid,
  17485. void **ppvObject);
  17486. ULONG (STDMETHODCALLTYPE *AddRef)(
  17487. ISpeechPhraseInfo *This);
  17488. ULONG (STDMETHODCALLTYPE *Release)(
  17489. ISpeechPhraseInfo *This);
  17490. /*** IDispatch methods ***/
  17491. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  17492. ISpeechPhraseInfo *This,
  17493. UINT *pctinfo);
  17494. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  17495. ISpeechPhraseInfo *This,
  17496. UINT iTInfo,
  17497. LCID lcid,
  17498. ITypeInfo **ppTInfo);
  17499. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  17500. ISpeechPhraseInfo *This,
  17501. REFIID riid,
  17502. LPOLESTR *rgszNames,
  17503. UINT cNames,
  17504. LCID lcid,
  17505. DISPID *rgDispId);
  17506. HRESULT (STDMETHODCALLTYPE *Invoke)(
  17507. ISpeechPhraseInfo *This,
  17508. DISPID dispIdMember,
  17509. REFIID riid,
  17510. LCID lcid,
  17511. WORD wFlags,
  17512. DISPPARAMS *pDispParams,
  17513. VARIANT *pVarResult,
  17514. EXCEPINFO *pExcepInfo,
  17515. UINT *puArgErr);
  17516. /*** ISpeechPhraseInfo methods ***/
  17517. HRESULT (STDMETHODCALLTYPE *get_LanguageId)(
  17518. ISpeechPhraseInfo *This,
  17519. LONG *LanguageId);
  17520. HRESULT (STDMETHODCALLTYPE *get_GrammarId)(
  17521. ISpeechPhraseInfo *This,
  17522. VARIANT *GrammarId);
  17523. HRESULT (STDMETHODCALLTYPE *get_StartTime)(
  17524. ISpeechPhraseInfo *This,
  17525. VARIANT *StartTime);
  17526. HRESULT (STDMETHODCALLTYPE *get_AudioStreamPosition)(
  17527. ISpeechPhraseInfo *This,
  17528. VARIANT *AudioStreamPosition);
  17529. HRESULT (STDMETHODCALLTYPE *get_AudioSizeBytes)(
  17530. ISpeechPhraseInfo *This,
  17531. LONG *pAudioSizeBytes);
  17532. HRESULT (STDMETHODCALLTYPE *get_RetainedSizeBytes)(
  17533. ISpeechPhraseInfo *This,
  17534. LONG *RetainedSizeBytes);
  17535. HRESULT (STDMETHODCALLTYPE *get_AudioSizeTime)(
  17536. ISpeechPhraseInfo *This,
  17537. LONG *AudioSizeTime);
  17538. HRESULT (STDMETHODCALLTYPE *get_Rule)(
  17539. ISpeechPhraseInfo *This,
  17540. ISpeechPhraseRule **Rule);
  17541. HRESULT (STDMETHODCALLTYPE *get_Properties)(
  17542. ISpeechPhraseInfo *This,
  17543. ISpeechPhraseProperties **Properties);
  17544. HRESULT (STDMETHODCALLTYPE *get_Elements)(
  17545. ISpeechPhraseInfo *This,
  17546. ISpeechPhraseElements **Elements);
  17547. HRESULT (STDMETHODCALLTYPE *get_Replacements)(
  17548. ISpeechPhraseInfo *This,
  17549. ISpeechPhraseReplacements **Replacements);
  17550. HRESULT (STDMETHODCALLTYPE *get_EngineId)(
  17551. ISpeechPhraseInfo *This,
  17552. BSTR *EngineIdGuid);
  17553. HRESULT (STDMETHODCALLTYPE *get_EnginePrivateData)(
  17554. ISpeechPhraseInfo *This,
  17555. VARIANT *PrivateData);
  17556. HRESULT (STDMETHODCALLTYPE *SaveToMemory)(
  17557. ISpeechPhraseInfo *This,
  17558. VARIANT *PhraseBlock);
  17559. HRESULT (STDMETHODCALLTYPE *GetText)(
  17560. ISpeechPhraseInfo *This,
  17561. LONG StartElement,
  17562. LONG Elements,
  17563. VARIANT_BOOL UseReplacements,
  17564. BSTR *Text);
  17565. HRESULT (STDMETHODCALLTYPE *GetDisplayAttributes)(
  17566. ISpeechPhraseInfo *This,
  17567. LONG StartElement,
  17568. LONG Elements,
  17569. VARIANT_BOOL UseReplacements,
  17570. SpeechDisplayAttributes *DisplayAttributes);
  17571. END_INTERFACE
  17572. } ISpeechPhraseInfoVtbl;
  17573. interface ISpeechPhraseInfo {
  17574. CONST_VTBL ISpeechPhraseInfoVtbl* lpVtbl;
  17575. };
  17576. #ifdef COBJMACROS
  17577. #ifndef WIDL_C_INLINE_WRAPPERS
  17578. /*** IUnknown methods ***/
  17579. #define ISpeechPhraseInfo_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  17580. #define ISpeechPhraseInfo_AddRef(This) (This)->lpVtbl->AddRef(This)
  17581. #define ISpeechPhraseInfo_Release(This) (This)->lpVtbl->Release(This)
  17582. /*** IDispatch methods ***/
  17583. #define ISpeechPhraseInfo_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  17584. #define ISpeechPhraseInfo_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17585. #define ISpeechPhraseInfo_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17586. #define ISpeechPhraseInfo_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17587. /*** ISpeechPhraseInfo methods ***/
  17588. #define ISpeechPhraseInfo_get_LanguageId(This,LanguageId) (This)->lpVtbl->get_LanguageId(This,LanguageId)
  17589. #define ISpeechPhraseInfo_get_GrammarId(This,GrammarId) (This)->lpVtbl->get_GrammarId(This,GrammarId)
  17590. #define ISpeechPhraseInfo_get_StartTime(This,StartTime) (This)->lpVtbl->get_StartTime(This,StartTime)
  17591. #define ISpeechPhraseInfo_get_AudioStreamPosition(This,AudioStreamPosition) (This)->lpVtbl->get_AudioStreamPosition(This,AudioStreamPosition)
  17592. #define ISpeechPhraseInfo_get_AudioSizeBytes(This,pAudioSizeBytes) (This)->lpVtbl->get_AudioSizeBytes(This,pAudioSizeBytes)
  17593. #define ISpeechPhraseInfo_get_RetainedSizeBytes(This,RetainedSizeBytes) (This)->lpVtbl->get_RetainedSizeBytes(This,RetainedSizeBytes)
  17594. #define ISpeechPhraseInfo_get_AudioSizeTime(This,AudioSizeTime) (This)->lpVtbl->get_AudioSizeTime(This,AudioSizeTime)
  17595. #define ISpeechPhraseInfo_get_Rule(This,Rule) (This)->lpVtbl->get_Rule(This,Rule)
  17596. #define ISpeechPhraseInfo_get_Properties(This,Properties) (This)->lpVtbl->get_Properties(This,Properties)
  17597. #define ISpeechPhraseInfo_get_Elements(This,Elements) (This)->lpVtbl->get_Elements(This,Elements)
  17598. #define ISpeechPhraseInfo_get_Replacements(This,Replacements) (This)->lpVtbl->get_Replacements(This,Replacements)
  17599. #define ISpeechPhraseInfo_get_EngineId(This,EngineIdGuid) (This)->lpVtbl->get_EngineId(This,EngineIdGuid)
  17600. #define ISpeechPhraseInfo_get_EnginePrivateData(This,PrivateData) (This)->lpVtbl->get_EnginePrivateData(This,PrivateData)
  17601. #define ISpeechPhraseInfo_SaveToMemory(This,PhraseBlock) (This)->lpVtbl->SaveToMemory(This,PhraseBlock)
  17602. #define ISpeechPhraseInfo_GetText(This,StartElement,Elements,UseReplacements,Text) (This)->lpVtbl->GetText(This,StartElement,Elements,UseReplacements,Text)
  17603. #define ISpeechPhraseInfo_GetDisplayAttributes(This,StartElement,Elements,UseReplacements,DisplayAttributes) (This)->lpVtbl->GetDisplayAttributes(This,StartElement,Elements,UseReplacements,DisplayAttributes)
  17604. #else
  17605. /*** IUnknown methods ***/
  17606. static FORCEINLINE HRESULT ISpeechPhraseInfo_QueryInterface(ISpeechPhraseInfo* This,REFIID riid,void **ppvObject) {
  17607. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  17608. }
  17609. static FORCEINLINE ULONG ISpeechPhraseInfo_AddRef(ISpeechPhraseInfo* This) {
  17610. return This->lpVtbl->AddRef(This);
  17611. }
  17612. static FORCEINLINE ULONG ISpeechPhraseInfo_Release(ISpeechPhraseInfo* This) {
  17613. return This->lpVtbl->Release(This);
  17614. }
  17615. /*** IDispatch methods ***/
  17616. static FORCEINLINE HRESULT ISpeechPhraseInfo_GetTypeInfoCount(ISpeechPhraseInfo* This,UINT *pctinfo) {
  17617. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  17618. }
  17619. static FORCEINLINE HRESULT ISpeechPhraseInfo_GetTypeInfo(ISpeechPhraseInfo* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  17620. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  17621. }
  17622. static FORCEINLINE HRESULT ISpeechPhraseInfo_GetIDsOfNames(ISpeechPhraseInfo* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  17623. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  17624. }
  17625. static FORCEINLINE HRESULT ISpeechPhraseInfo_Invoke(ISpeechPhraseInfo* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  17626. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  17627. }
  17628. /*** ISpeechPhraseInfo methods ***/
  17629. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_LanguageId(ISpeechPhraseInfo* This,LONG *LanguageId) {
  17630. return This->lpVtbl->get_LanguageId(This,LanguageId);
  17631. }
  17632. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_GrammarId(ISpeechPhraseInfo* This,VARIANT *GrammarId) {
  17633. return This->lpVtbl->get_GrammarId(This,GrammarId);
  17634. }
  17635. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_StartTime(ISpeechPhraseInfo* This,VARIANT *StartTime) {
  17636. return This->lpVtbl->get_StartTime(This,StartTime);
  17637. }
  17638. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_AudioStreamPosition(ISpeechPhraseInfo* This,VARIANT *AudioStreamPosition) {
  17639. return This->lpVtbl->get_AudioStreamPosition(This,AudioStreamPosition);
  17640. }
  17641. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_AudioSizeBytes(ISpeechPhraseInfo* This,LONG *pAudioSizeBytes) {
  17642. return This->lpVtbl->get_AudioSizeBytes(This,pAudioSizeBytes);
  17643. }
  17644. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_RetainedSizeBytes(ISpeechPhraseInfo* This,LONG *RetainedSizeBytes) {
  17645. return This->lpVtbl->get_RetainedSizeBytes(This,RetainedSizeBytes);
  17646. }
  17647. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_AudioSizeTime(ISpeechPhraseInfo* This,LONG *AudioSizeTime) {
  17648. return This->lpVtbl->get_AudioSizeTime(This,AudioSizeTime);
  17649. }
  17650. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_Rule(ISpeechPhraseInfo* This,ISpeechPhraseRule **Rule) {
  17651. return This->lpVtbl->get_Rule(This,Rule);
  17652. }
  17653. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_Properties(ISpeechPhraseInfo* This,ISpeechPhraseProperties **Properties) {
  17654. return This->lpVtbl->get_Properties(This,Properties);
  17655. }
  17656. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_Elements(ISpeechPhraseInfo* This,ISpeechPhraseElements **Elements) {
  17657. return This->lpVtbl->get_Elements(This,Elements);
  17658. }
  17659. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_Replacements(ISpeechPhraseInfo* This,ISpeechPhraseReplacements **Replacements) {
  17660. return This->lpVtbl->get_Replacements(This,Replacements);
  17661. }
  17662. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_EngineId(ISpeechPhraseInfo* This,BSTR *EngineIdGuid) {
  17663. return This->lpVtbl->get_EngineId(This,EngineIdGuid);
  17664. }
  17665. static FORCEINLINE HRESULT ISpeechPhraseInfo_get_EnginePrivateData(ISpeechPhraseInfo* This,VARIANT *PrivateData) {
  17666. return This->lpVtbl->get_EnginePrivateData(This,PrivateData);
  17667. }
  17668. static FORCEINLINE HRESULT ISpeechPhraseInfo_SaveToMemory(ISpeechPhraseInfo* This,VARIANT *PhraseBlock) {
  17669. return This->lpVtbl->SaveToMemory(This,PhraseBlock);
  17670. }
  17671. static FORCEINLINE HRESULT ISpeechPhraseInfo_GetText(ISpeechPhraseInfo* This,LONG StartElement,LONG Elements,VARIANT_BOOL UseReplacements,BSTR *Text) {
  17672. return This->lpVtbl->GetText(This,StartElement,Elements,UseReplacements,Text);
  17673. }
  17674. static FORCEINLINE HRESULT ISpeechPhraseInfo_GetDisplayAttributes(ISpeechPhraseInfo* This,LONG StartElement,LONG Elements,VARIANT_BOOL UseReplacements,SpeechDisplayAttributes *DisplayAttributes) {
  17675. return This->lpVtbl->GetDisplayAttributes(This,StartElement,Elements,UseReplacements,DisplayAttributes);
  17676. }
  17677. #endif
  17678. #endif
  17679. #endif
  17680. #endif /* __ISpeechPhraseInfo_INTERFACE_DEFINED__ */
  17681. /*****************************************************************************
  17682. * ISpeechPhraseElement interface
  17683. */
  17684. #ifndef __ISpeechPhraseElement_INTERFACE_DEFINED__
  17685. #define __ISpeechPhraseElement_INTERFACE_DEFINED__
  17686. DEFINE_GUID(IID_ISpeechPhraseElement, 0xe6176f96, 0xe373, 0x4801, 0xb2,0x23, 0x3b,0x62,0xc0,0x68,0xc0,0xb4);
  17687. #if defined(__cplusplus) && !defined(CINTERFACE)
  17688. MIDL_INTERFACE("e6176f96-e373-4801-b223-3b62c068c0b4")
  17689. ISpeechPhraseElement : public IDispatch
  17690. {
  17691. virtual HRESULT STDMETHODCALLTYPE get_AudioTimeOffset(
  17692. LONG *AudioTimeOffset) = 0;
  17693. virtual HRESULT STDMETHODCALLTYPE get_AudioSizeTime(
  17694. LONG *AudioSizeTime) = 0;
  17695. virtual HRESULT STDMETHODCALLTYPE get_AudioStreamOffset(
  17696. LONG *AudioStreamOffset) = 0;
  17697. virtual HRESULT STDMETHODCALLTYPE get_AudioSizeBytes(
  17698. LONG *AudioSizeBytes) = 0;
  17699. virtual HRESULT STDMETHODCALLTYPE get_RetainedStreamOffset(
  17700. LONG *RetainedStreamOffset) = 0;
  17701. virtual HRESULT STDMETHODCALLTYPE get_RetainedSizeBytes(
  17702. LONG *RetainedSizeBytes) = 0;
  17703. virtual HRESULT STDMETHODCALLTYPE get_DisplayText(
  17704. BSTR *DisplayText) = 0;
  17705. virtual HRESULT STDMETHODCALLTYPE get_LexicalForm(
  17706. BSTR *LexicalForm) = 0;
  17707. virtual HRESULT STDMETHODCALLTYPE get_Pronunciation(
  17708. VARIANT *Pronunciation) = 0;
  17709. virtual HRESULT STDMETHODCALLTYPE get_DisplayAttributes(
  17710. SpeechDisplayAttributes *DisplayAttributes) = 0;
  17711. virtual HRESULT STDMETHODCALLTYPE get_RequiredConfidence(
  17712. SpeechEngineConfidence *RequiredConfidence) = 0;
  17713. virtual HRESULT STDMETHODCALLTYPE get_ActualConfidence(
  17714. SpeechEngineConfidence *ActualConfidence) = 0;
  17715. virtual HRESULT STDMETHODCALLTYPE get_EngineConfidence(
  17716. float *EngineConfidence) = 0;
  17717. };
  17718. #ifdef __CRT_UUID_DECL
  17719. __CRT_UUID_DECL(ISpeechPhraseElement, 0xe6176f96, 0xe373, 0x4801, 0xb2,0x23, 0x3b,0x62,0xc0,0x68,0xc0,0xb4)
  17720. #endif
  17721. #else
  17722. typedef struct ISpeechPhraseElementVtbl {
  17723. BEGIN_INTERFACE
  17724. /*** IUnknown methods ***/
  17725. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  17726. ISpeechPhraseElement *This,
  17727. REFIID riid,
  17728. void **ppvObject);
  17729. ULONG (STDMETHODCALLTYPE *AddRef)(
  17730. ISpeechPhraseElement *This);
  17731. ULONG (STDMETHODCALLTYPE *Release)(
  17732. ISpeechPhraseElement *This);
  17733. /*** IDispatch methods ***/
  17734. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  17735. ISpeechPhraseElement *This,
  17736. UINT *pctinfo);
  17737. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  17738. ISpeechPhraseElement *This,
  17739. UINT iTInfo,
  17740. LCID lcid,
  17741. ITypeInfo **ppTInfo);
  17742. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  17743. ISpeechPhraseElement *This,
  17744. REFIID riid,
  17745. LPOLESTR *rgszNames,
  17746. UINT cNames,
  17747. LCID lcid,
  17748. DISPID *rgDispId);
  17749. HRESULT (STDMETHODCALLTYPE *Invoke)(
  17750. ISpeechPhraseElement *This,
  17751. DISPID dispIdMember,
  17752. REFIID riid,
  17753. LCID lcid,
  17754. WORD wFlags,
  17755. DISPPARAMS *pDispParams,
  17756. VARIANT *pVarResult,
  17757. EXCEPINFO *pExcepInfo,
  17758. UINT *puArgErr);
  17759. /*** ISpeechPhraseElement methods ***/
  17760. HRESULT (STDMETHODCALLTYPE *get_AudioTimeOffset)(
  17761. ISpeechPhraseElement *This,
  17762. LONG *AudioTimeOffset);
  17763. HRESULT (STDMETHODCALLTYPE *get_AudioSizeTime)(
  17764. ISpeechPhraseElement *This,
  17765. LONG *AudioSizeTime);
  17766. HRESULT (STDMETHODCALLTYPE *get_AudioStreamOffset)(
  17767. ISpeechPhraseElement *This,
  17768. LONG *AudioStreamOffset);
  17769. HRESULT (STDMETHODCALLTYPE *get_AudioSizeBytes)(
  17770. ISpeechPhraseElement *This,
  17771. LONG *AudioSizeBytes);
  17772. HRESULT (STDMETHODCALLTYPE *get_RetainedStreamOffset)(
  17773. ISpeechPhraseElement *This,
  17774. LONG *RetainedStreamOffset);
  17775. HRESULT (STDMETHODCALLTYPE *get_RetainedSizeBytes)(
  17776. ISpeechPhraseElement *This,
  17777. LONG *RetainedSizeBytes);
  17778. HRESULT (STDMETHODCALLTYPE *get_DisplayText)(
  17779. ISpeechPhraseElement *This,
  17780. BSTR *DisplayText);
  17781. HRESULT (STDMETHODCALLTYPE *get_LexicalForm)(
  17782. ISpeechPhraseElement *This,
  17783. BSTR *LexicalForm);
  17784. HRESULT (STDMETHODCALLTYPE *get_Pronunciation)(
  17785. ISpeechPhraseElement *This,
  17786. VARIANT *Pronunciation);
  17787. HRESULT (STDMETHODCALLTYPE *get_DisplayAttributes)(
  17788. ISpeechPhraseElement *This,
  17789. SpeechDisplayAttributes *DisplayAttributes);
  17790. HRESULT (STDMETHODCALLTYPE *get_RequiredConfidence)(
  17791. ISpeechPhraseElement *This,
  17792. SpeechEngineConfidence *RequiredConfidence);
  17793. HRESULT (STDMETHODCALLTYPE *get_ActualConfidence)(
  17794. ISpeechPhraseElement *This,
  17795. SpeechEngineConfidence *ActualConfidence);
  17796. HRESULT (STDMETHODCALLTYPE *get_EngineConfidence)(
  17797. ISpeechPhraseElement *This,
  17798. float *EngineConfidence);
  17799. END_INTERFACE
  17800. } ISpeechPhraseElementVtbl;
  17801. interface ISpeechPhraseElement {
  17802. CONST_VTBL ISpeechPhraseElementVtbl* lpVtbl;
  17803. };
  17804. #ifdef COBJMACROS
  17805. #ifndef WIDL_C_INLINE_WRAPPERS
  17806. /*** IUnknown methods ***/
  17807. #define ISpeechPhraseElement_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  17808. #define ISpeechPhraseElement_AddRef(This) (This)->lpVtbl->AddRef(This)
  17809. #define ISpeechPhraseElement_Release(This) (This)->lpVtbl->Release(This)
  17810. /*** IDispatch methods ***/
  17811. #define ISpeechPhraseElement_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  17812. #define ISpeechPhraseElement_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17813. #define ISpeechPhraseElement_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17814. #define ISpeechPhraseElement_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17815. /*** ISpeechPhraseElement methods ***/
  17816. #define ISpeechPhraseElement_get_AudioTimeOffset(This,AudioTimeOffset) (This)->lpVtbl->get_AudioTimeOffset(This,AudioTimeOffset)
  17817. #define ISpeechPhraseElement_get_AudioSizeTime(This,AudioSizeTime) (This)->lpVtbl->get_AudioSizeTime(This,AudioSizeTime)
  17818. #define ISpeechPhraseElement_get_AudioStreamOffset(This,AudioStreamOffset) (This)->lpVtbl->get_AudioStreamOffset(This,AudioStreamOffset)
  17819. #define ISpeechPhraseElement_get_AudioSizeBytes(This,AudioSizeBytes) (This)->lpVtbl->get_AudioSizeBytes(This,AudioSizeBytes)
  17820. #define ISpeechPhraseElement_get_RetainedStreamOffset(This,RetainedStreamOffset) (This)->lpVtbl->get_RetainedStreamOffset(This,RetainedStreamOffset)
  17821. #define ISpeechPhraseElement_get_RetainedSizeBytes(This,RetainedSizeBytes) (This)->lpVtbl->get_RetainedSizeBytes(This,RetainedSizeBytes)
  17822. #define ISpeechPhraseElement_get_DisplayText(This,DisplayText) (This)->lpVtbl->get_DisplayText(This,DisplayText)
  17823. #define ISpeechPhraseElement_get_LexicalForm(This,LexicalForm) (This)->lpVtbl->get_LexicalForm(This,LexicalForm)
  17824. #define ISpeechPhraseElement_get_Pronunciation(This,Pronunciation) (This)->lpVtbl->get_Pronunciation(This,Pronunciation)
  17825. #define ISpeechPhraseElement_get_DisplayAttributes(This,DisplayAttributes) (This)->lpVtbl->get_DisplayAttributes(This,DisplayAttributes)
  17826. #define ISpeechPhraseElement_get_RequiredConfidence(This,RequiredConfidence) (This)->lpVtbl->get_RequiredConfidence(This,RequiredConfidence)
  17827. #define ISpeechPhraseElement_get_ActualConfidence(This,ActualConfidence) (This)->lpVtbl->get_ActualConfidence(This,ActualConfidence)
  17828. #define ISpeechPhraseElement_get_EngineConfidence(This,EngineConfidence) (This)->lpVtbl->get_EngineConfidence(This,EngineConfidence)
  17829. #else
  17830. /*** IUnknown methods ***/
  17831. static FORCEINLINE HRESULT ISpeechPhraseElement_QueryInterface(ISpeechPhraseElement* This,REFIID riid,void **ppvObject) {
  17832. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  17833. }
  17834. static FORCEINLINE ULONG ISpeechPhraseElement_AddRef(ISpeechPhraseElement* This) {
  17835. return This->lpVtbl->AddRef(This);
  17836. }
  17837. static FORCEINLINE ULONG ISpeechPhraseElement_Release(ISpeechPhraseElement* This) {
  17838. return This->lpVtbl->Release(This);
  17839. }
  17840. /*** IDispatch methods ***/
  17841. static FORCEINLINE HRESULT ISpeechPhraseElement_GetTypeInfoCount(ISpeechPhraseElement* This,UINT *pctinfo) {
  17842. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  17843. }
  17844. static FORCEINLINE HRESULT ISpeechPhraseElement_GetTypeInfo(ISpeechPhraseElement* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  17845. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  17846. }
  17847. static FORCEINLINE HRESULT ISpeechPhraseElement_GetIDsOfNames(ISpeechPhraseElement* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  17848. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  17849. }
  17850. static FORCEINLINE HRESULT ISpeechPhraseElement_Invoke(ISpeechPhraseElement* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  17851. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  17852. }
  17853. /*** ISpeechPhraseElement methods ***/
  17854. static FORCEINLINE HRESULT ISpeechPhraseElement_get_AudioTimeOffset(ISpeechPhraseElement* This,LONG *AudioTimeOffset) {
  17855. return This->lpVtbl->get_AudioTimeOffset(This,AudioTimeOffset);
  17856. }
  17857. static FORCEINLINE HRESULT ISpeechPhraseElement_get_AudioSizeTime(ISpeechPhraseElement* This,LONG *AudioSizeTime) {
  17858. return This->lpVtbl->get_AudioSizeTime(This,AudioSizeTime);
  17859. }
  17860. static FORCEINLINE HRESULT ISpeechPhraseElement_get_AudioStreamOffset(ISpeechPhraseElement* This,LONG *AudioStreamOffset) {
  17861. return This->lpVtbl->get_AudioStreamOffset(This,AudioStreamOffset);
  17862. }
  17863. static FORCEINLINE HRESULT ISpeechPhraseElement_get_AudioSizeBytes(ISpeechPhraseElement* This,LONG *AudioSizeBytes) {
  17864. return This->lpVtbl->get_AudioSizeBytes(This,AudioSizeBytes);
  17865. }
  17866. static FORCEINLINE HRESULT ISpeechPhraseElement_get_RetainedStreamOffset(ISpeechPhraseElement* This,LONG *RetainedStreamOffset) {
  17867. return This->lpVtbl->get_RetainedStreamOffset(This,RetainedStreamOffset);
  17868. }
  17869. static FORCEINLINE HRESULT ISpeechPhraseElement_get_RetainedSizeBytes(ISpeechPhraseElement* This,LONG *RetainedSizeBytes) {
  17870. return This->lpVtbl->get_RetainedSizeBytes(This,RetainedSizeBytes);
  17871. }
  17872. static FORCEINLINE HRESULT ISpeechPhraseElement_get_DisplayText(ISpeechPhraseElement* This,BSTR *DisplayText) {
  17873. return This->lpVtbl->get_DisplayText(This,DisplayText);
  17874. }
  17875. static FORCEINLINE HRESULT ISpeechPhraseElement_get_LexicalForm(ISpeechPhraseElement* This,BSTR *LexicalForm) {
  17876. return This->lpVtbl->get_LexicalForm(This,LexicalForm);
  17877. }
  17878. static FORCEINLINE HRESULT ISpeechPhraseElement_get_Pronunciation(ISpeechPhraseElement* This,VARIANT *Pronunciation) {
  17879. return This->lpVtbl->get_Pronunciation(This,Pronunciation);
  17880. }
  17881. static FORCEINLINE HRESULT ISpeechPhraseElement_get_DisplayAttributes(ISpeechPhraseElement* This,SpeechDisplayAttributes *DisplayAttributes) {
  17882. return This->lpVtbl->get_DisplayAttributes(This,DisplayAttributes);
  17883. }
  17884. static FORCEINLINE HRESULT ISpeechPhraseElement_get_RequiredConfidence(ISpeechPhraseElement* This,SpeechEngineConfidence *RequiredConfidence) {
  17885. return This->lpVtbl->get_RequiredConfidence(This,RequiredConfidence);
  17886. }
  17887. static FORCEINLINE HRESULT ISpeechPhraseElement_get_ActualConfidence(ISpeechPhraseElement* This,SpeechEngineConfidence *ActualConfidence) {
  17888. return This->lpVtbl->get_ActualConfidence(This,ActualConfidence);
  17889. }
  17890. static FORCEINLINE HRESULT ISpeechPhraseElement_get_EngineConfidence(ISpeechPhraseElement* This,float *EngineConfidence) {
  17891. return This->lpVtbl->get_EngineConfidence(This,EngineConfidence);
  17892. }
  17893. #endif
  17894. #endif
  17895. #endif
  17896. #endif /* __ISpeechPhraseElement_INTERFACE_DEFINED__ */
  17897. /*****************************************************************************
  17898. * ISpeechPhraseElements interface
  17899. */
  17900. #ifndef __ISpeechPhraseElements_INTERFACE_DEFINED__
  17901. #define __ISpeechPhraseElements_INTERFACE_DEFINED__
  17902. DEFINE_GUID(IID_ISpeechPhraseElements, 0x0626b328, 0x3478, 0x467d, 0xa0,0xb3, 0xd0,0x85,0x3b,0x93,0xdd,0xa3);
  17903. #if defined(__cplusplus) && !defined(CINTERFACE)
  17904. MIDL_INTERFACE("0626b328-3478-467d-a0b3-d0853b93dda3")
  17905. ISpeechPhraseElements : public IDispatch
  17906. {
  17907. virtual HRESULT STDMETHODCALLTYPE get_Count(
  17908. LONG *Count) = 0;
  17909. virtual HRESULT STDMETHODCALLTYPE Item(
  17910. LONG Index,
  17911. ISpeechPhraseElement **Element) = 0;
  17912. virtual HRESULT STDMETHODCALLTYPE get__NewEnum(
  17913. IUnknown **EnumVARIANT) = 0;
  17914. };
  17915. #ifdef __CRT_UUID_DECL
  17916. __CRT_UUID_DECL(ISpeechPhraseElements, 0x0626b328, 0x3478, 0x467d, 0xa0,0xb3, 0xd0,0x85,0x3b,0x93,0xdd,0xa3)
  17917. #endif
  17918. #else
  17919. typedef struct ISpeechPhraseElementsVtbl {
  17920. BEGIN_INTERFACE
  17921. /*** IUnknown methods ***/
  17922. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  17923. ISpeechPhraseElements *This,
  17924. REFIID riid,
  17925. void **ppvObject);
  17926. ULONG (STDMETHODCALLTYPE *AddRef)(
  17927. ISpeechPhraseElements *This);
  17928. ULONG (STDMETHODCALLTYPE *Release)(
  17929. ISpeechPhraseElements *This);
  17930. /*** IDispatch methods ***/
  17931. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  17932. ISpeechPhraseElements *This,
  17933. UINT *pctinfo);
  17934. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  17935. ISpeechPhraseElements *This,
  17936. UINT iTInfo,
  17937. LCID lcid,
  17938. ITypeInfo **ppTInfo);
  17939. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  17940. ISpeechPhraseElements *This,
  17941. REFIID riid,
  17942. LPOLESTR *rgszNames,
  17943. UINT cNames,
  17944. LCID lcid,
  17945. DISPID *rgDispId);
  17946. HRESULT (STDMETHODCALLTYPE *Invoke)(
  17947. ISpeechPhraseElements *This,
  17948. DISPID dispIdMember,
  17949. REFIID riid,
  17950. LCID lcid,
  17951. WORD wFlags,
  17952. DISPPARAMS *pDispParams,
  17953. VARIANT *pVarResult,
  17954. EXCEPINFO *pExcepInfo,
  17955. UINT *puArgErr);
  17956. /*** ISpeechPhraseElements methods ***/
  17957. HRESULT (STDMETHODCALLTYPE *get_Count)(
  17958. ISpeechPhraseElements *This,
  17959. LONG *Count);
  17960. HRESULT (STDMETHODCALLTYPE *Item)(
  17961. ISpeechPhraseElements *This,
  17962. LONG Index,
  17963. ISpeechPhraseElement **Element);
  17964. HRESULT (STDMETHODCALLTYPE *get__NewEnum)(
  17965. ISpeechPhraseElements *This,
  17966. IUnknown **EnumVARIANT);
  17967. END_INTERFACE
  17968. } ISpeechPhraseElementsVtbl;
  17969. interface ISpeechPhraseElements {
  17970. CONST_VTBL ISpeechPhraseElementsVtbl* lpVtbl;
  17971. };
  17972. #ifdef COBJMACROS
  17973. #ifndef WIDL_C_INLINE_WRAPPERS
  17974. /*** IUnknown methods ***/
  17975. #define ISpeechPhraseElements_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  17976. #define ISpeechPhraseElements_AddRef(This) (This)->lpVtbl->AddRef(This)
  17977. #define ISpeechPhraseElements_Release(This) (This)->lpVtbl->Release(This)
  17978. /*** IDispatch methods ***/
  17979. #define ISpeechPhraseElements_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  17980. #define ISpeechPhraseElements_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  17981. #define ISpeechPhraseElements_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  17982. #define ISpeechPhraseElements_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  17983. /*** ISpeechPhraseElements methods ***/
  17984. #define ISpeechPhraseElements_get_Count(This,Count) (This)->lpVtbl->get_Count(This,Count)
  17985. #define ISpeechPhraseElements_Item(This,Index,Element) (This)->lpVtbl->Item(This,Index,Element)
  17986. #define ISpeechPhraseElements_get__NewEnum(This,EnumVARIANT) (This)->lpVtbl->get__NewEnum(This,EnumVARIANT)
  17987. #else
  17988. /*** IUnknown methods ***/
  17989. static FORCEINLINE HRESULT ISpeechPhraseElements_QueryInterface(ISpeechPhraseElements* This,REFIID riid,void **ppvObject) {
  17990. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  17991. }
  17992. static FORCEINLINE ULONG ISpeechPhraseElements_AddRef(ISpeechPhraseElements* This) {
  17993. return This->lpVtbl->AddRef(This);
  17994. }
  17995. static FORCEINLINE ULONG ISpeechPhraseElements_Release(ISpeechPhraseElements* This) {
  17996. return This->lpVtbl->Release(This);
  17997. }
  17998. /*** IDispatch methods ***/
  17999. static FORCEINLINE HRESULT ISpeechPhraseElements_GetTypeInfoCount(ISpeechPhraseElements* This,UINT *pctinfo) {
  18000. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  18001. }
  18002. static FORCEINLINE HRESULT ISpeechPhraseElements_GetTypeInfo(ISpeechPhraseElements* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  18003. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  18004. }
  18005. static FORCEINLINE HRESULT ISpeechPhraseElements_GetIDsOfNames(ISpeechPhraseElements* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  18006. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  18007. }
  18008. static FORCEINLINE HRESULT ISpeechPhraseElements_Invoke(ISpeechPhraseElements* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  18009. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  18010. }
  18011. /*** ISpeechPhraseElements methods ***/
  18012. static FORCEINLINE HRESULT ISpeechPhraseElements_get_Count(ISpeechPhraseElements* This,LONG *Count) {
  18013. return This->lpVtbl->get_Count(This,Count);
  18014. }
  18015. static FORCEINLINE HRESULT ISpeechPhraseElements_Item(ISpeechPhraseElements* This,LONG Index,ISpeechPhraseElement **Element) {
  18016. return This->lpVtbl->Item(This,Index,Element);
  18017. }
  18018. static FORCEINLINE HRESULT ISpeechPhraseElements_get__NewEnum(ISpeechPhraseElements* This,IUnknown **EnumVARIANT) {
  18019. return This->lpVtbl->get__NewEnum(This,EnumVARIANT);
  18020. }
  18021. #endif
  18022. #endif
  18023. #endif
  18024. #endif /* __ISpeechPhraseElements_INTERFACE_DEFINED__ */
  18025. /*****************************************************************************
  18026. * ISpeechPhraseReplacement interface
  18027. */
  18028. #ifndef __ISpeechPhraseReplacement_INTERFACE_DEFINED__
  18029. #define __ISpeechPhraseReplacement_INTERFACE_DEFINED__
  18030. DEFINE_GUID(IID_ISpeechPhraseReplacement, 0x2890a410, 0x53a7, 0x4fb5, 0x94,0xec, 0x06,0xd4,0x99,0x8e,0x3d,0x02);
  18031. #if defined(__cplusplus) && !defined(CINTERFACE)
  18032. MIDL_INTERFACE("2890a410-53a7-4fb5-94ec-06d4998e3d02")
  18033. ISpeechPhraseReplacement : public IDispatch
  18034. {
  18035. virtual HRESULT STDMETHODCALLTYPE get_DisplayAttributes(
  18036. SpeechDisplayAttributes *DisplayAttributes) = 0;
  18037. virtual HRESULT STDMETHODCALLTYPE get_Text(
  18038. BSTR *Text) = 0;
  18039. virtual HRESULT STDMETHODCALLTYPE get_FirstElement(
  18040. LONG *FirstElement) = 0;
  18041. virtual HRESULT STDMETHODCALLTYPE get_NumberOfElements(
  18042. LONG *NumberOfElements) = 0;
  18043. };
  18044. #ifdef __CRT_UUID_DECL
  18045. __CRT_UUID_DECL(ISpeechPhraseReplacement, 0x2890a410, 0x53a7, 0x4fb5, 0x94,0xec, 0x06,0xd4,0x99,0x8e,0x3d,0x02)
  18046. #endif
  18047. #else
  18048. typedef struct ISpeechPhraseReplacementVtbl {
  18049. BEGIN_INTERFACE
  18050. /*** IUnknown methods ***/
  18051. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  18052. ISpeechPhraseReplacement *This,
  18053. REFIID riid,
  18054. void **ppvObject);
  18055. ULONG (STDMETHODCALLTYPE *AddRef)(
  18056. ISpeechPhraseReplacement *This);
  18057. ULONG (STDMETHODCALLTYPE *Release)(
  18058. ISpeechPhraseReplacement *This);
  18059. /*** IDispatch methods ***/
  18060. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  18061. ISpeechPhraseReplacement *This,
  18062. UINT *pctinfo);
  18063. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  18064. ISpeechPhraseReplacement *This,
  18065. UINT iTInfo,
  18066. LCID lcid,
  18067. ITypeInfo **ppTInfo);
  18068. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  18069. ISpeechPhraseReplacement *This,
  18070. REFIID riid,
  18071. LPOLESTR *rgszNames,
  18072. UINT cNames,
  18073. LCID lcid,
  18074. DISPID *rgDispId);
  18075. HRESULT (STDMETHODCALLTYPE *Invoke)(
  18076. ISpeechPhraseReplacement *This,
  18077. DISPID dispIdMember,
  18078. REFIID riid,
  18079. LCID lcid,
  18080. WORD wFlags,
  18081. DISPPARAMS *pDispParams,
  18082. VARIANT *pVarResult,
  18083. EXCEPINFO *pExcepInfo,
  18084. UINT *puArgErr);
  18085. /*** ISpeechPhraseReplacement methods ***/
  18086. HRESULT (STDMETHODCALLTYPE *get_DisplayAttributes)(
  18087. ISpeechPhraseReplacement *This,
  18088. SpeechDisplayAttributes *DisplayAttributes);
  18089. HRESULT (STDMETHODCALLTYPE *get_Text)(
  18090. ISpeechPhraseReplacement *This,
  18091. BSTR *Text);
  18092. HRESULT (STDMETHODCALLTYPE *get_FirstElement)(
  18093. ISpeechPhraseReplacement *This,
  18094. LONG *FirstElement);
  18095. HRESULT (STDMETHODCALLTYPE *get_NumberOfElements)(
  18096. ISpeechPhraseReplacement *This,
  18097. LONG *NumberOfElements);
  18098. END_INTERFACE
  18099. } ISpeechPhraseReplacementVtbl;
  18100. interface ISpeechPhraseReplacement {
  18101. CONST_VTBL ISpeechPhraseReplacementVtbl* lpVtbl;
  18102. };
  18103. #ifdef COBJMACROS
  18104. #ifndef WIDL_C_INLINE_WRAPPERS
  18105. /*** IUnknown methods ***/
  18106. #define ISpeechPhraseReplacement_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  18107. #define ISpeechPhraseReplacement_AddRef(This) (This)->lpVtbl->AddRef(This)
  18108. #define ISpeechPhraseReplacement_Release(This) (This)->lpVtbl->Release(This)
  18109. /*** IDispatch methods ***/
  18110. #define ISpeechPhraseReplacement_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  18111. #define ISpeechPhraseReplacement_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  18112. #define ISpeechPhraseReplacement_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  18113. #define ISpeechPhraseReplacement_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  18114. /*** ISpeechPhraseReplacement methods ***/
  18115. #define ISpeechPhraseReplacement_get_DisplayAttributes(This,DisplayAttributes) (This)->lpVtbl->get_DisplayAttributes(This,DisplayAttributes)
  18116. #define ISpeechPhraseReplacement_get_Text(This,Text) (This)->lpVtbl->get_Text(This,Text)
  18117. #define ISpeechPhraseReplacement_get_FirstElement(This,FirstElement) (This)->lpVtbl->get_FirstElement(This,FirstElement)
  18118. #define ISpeechPhraseReplacement_get_NumberOfElements(This,NumberOfElements) (This)->lpVtbl->get_NumberOfElements(This,NumberOfElements)
  18119. #else
  18120. /*** IUnknown methods ***/
  18121. static FORCEINLINE HRESULT ISpeechPhraseReplacement_QueryInterface(ISpeechPhraseReplacement* This,REFIID riid,void **ppvObject) {
  18122. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  18123. }
  18124. static FORCEINLINE ULONG ISpeechPhraseReplacement_AddRef(ISpeechPhraseReplacement* This) {
  18125. return This->lpVtbl->AddRef(This);
  18126. }
  18127. static FORCEINLINE ULONG ISpeechPhraseReplacement_Release(ISpeechPhraseReplacement* This) {
  18128. return This->lpVtbl->Release(This);
  18129. }
  18130. /*** IDispatch methods ***/
  18131. static FORCEINLINE HRESULT ISpeechPhraseReplacement_GetTypeInfoCount(ISpeechPhraseReplacement* This,UINT *pctinfo) {
  18132. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  18133. }
  18134. static FORCEINLINE HRESULT ISpeechPhraseReplacement_GetTypeInfo(ISpeechPhraseReplacement* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  18135. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  18136. }
  18137. static FORCEINLINE HRESULT ISpeechPhraseReplacement_GetIDsOfNames(ISpeechPhraseReplacement* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  18138. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  18139. }
  18140. static FORCEINLINE HRESULT ISpeechPhraseReplacement_Invoke(ISpeechPhraseReplacement* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  18141. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  18142. }
  18143. /*** ISpeechPhraseReplacement methods ***/
  18144. static FORCEINLINE HRESULT ISpeechPhraseReplacement_get_DisplayAttributes(ISpeechPhraseReplacement* This,SpeechDisplayAttributes *DisplayAttributes) {
  18145. return This->lpVtbl->get_DisplayAttributes(This,DisplayAttributes);
  18146. }
  18147. static FORCEINLINE HRESULT ISpeechPhraseReplacement_get_Text(ISpeechPhraseReplacement* This,BSTR *Text) {
  18148. return This->lpVtbl->get_Text(This,Text);
  18149. }
  18150. static FORCEINLINE HRESULT ISpeechPhraseReplacement_get_FirstElement(ISpeechPhraseReplacement* This,LONG *FirstElement) {
  18151. return This->lpVtbl->get_FirstElement(This,FirstElement);
  18152. }
  18153. static FORCEINLINE HRESULT ISpeechPhraseReplacement_get_NumberOfElements(ISpeechPhraseReplacement* This,LONG *NumberOfElements) {
  18154. return This->lpVtbl->get_NumberOfElements(This,NumberOfElements);
  18155. }
  18156. #endif
  18157. #endif
  18158. #endif
  18159. #endif /* __ISpeechPhraseReplacement_INTERFACE_DEFINED__ */
  18160. /*****************************************************************************
  18161. * ISpeechPhraseReplacements interface
  18162. */
  18163. #ifndef __ISpeechPhraseReplacements_INTERFACE_DEFINED__
  18164. #define __ISpeechPhraseReplacements_INTERFACE_DEFINED__
  18165. DEFINE_GUID(IID_ISpeechPhraseReplacements, 0x38bc662f, 0x2257, 0x4525, 0x95,0x9e, 0x20,0x69,0xd2,0x59,0x6c,0x05);
  18166. #if defined(__cplusplus) && !defined(CINTERFACE)
  18167. MIDL_INTERFACE("38bc662f-2257-4525-959e-2069d2596c05")
  18168. ISpeechPhraseReplacements : public IDispatch
  18169. {
  18170. virtual HRESULT STDMETHODCALLTYPE get_Count(
  18171. LONG *Count) = 0;
  18172. virtual HRESULT STDMETHODCALLTYPE Item(
  18173. LONG Index,
  18174. ISpeechPhraseReplacement **Reps) = 0;
  18175. virtual HRESULT STDMETHODCALLTYPE get__NewEnum(
  18176. IUnknown **EnumVARIANT) = 0;
  18177. };
  18178. #ifdef __CRT_UUID_DECL
  18179. __CRT_UUID_DECL(ISpeechPhraseReplacements, 0x38bc662f, 0x2257, 0x4525, 0x95,0x9e, 0x20,0x69,0xd2,0x59,0x6c,0x05)
  18180. #endif
  18181. #else
  18182. typedef struct ISpeechPhraseReplacementsVtbl {
  18183. BEGIN_INTERFACE
  18184. /*** IUnknown methods ***/
  18185. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  18186. ISpeechPhraseReplacements *This,
  18187. REFIID riid,
  18188. void **ppvObject);
  18189. ULONG (STDMETHODCALLTYPE *AddRef)(
  18190. ISpeechPhraseReplacements *This);
  18191. ULONG (STDMETHODCALLTYPE *Release)(
  18192. ISpeechPhraseReplacements *This);
  18193. /*** IDispatch methods ***/
  18194. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  18195. ISpeechPhraseReplacements *This,
  18196. UINT *pctinfo);
  18197. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  18198. ISpeechPhraseReplacements *This,
  18199. UINT iTInfo,
  18200. LCID lcid,
  18201. ITypeInfo **ppTInfo);
  18202. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  18203. ISpeechPhraseReplacements *This,
  18204. REFIID riid,
  18205. LPOLESTR *rgszNames,
  18206. UINT cNames,
  18207. LCID lcid,
  18208. DISPID *rgDispId);
  18209. HRESULT (STDMETHODCALLTYPE *Invoke)(
  18210. ISpeechPhraseReplacements *This,
  18211. DISPID dispIdMember,
  18212. REFIID riid,
  18213. LCID lcid,
  18214. WORD wFlags,
  18215. DISPPARAMS *pDispParams,
  18216. VARIANT *pVarResult,
  18217. EXCEPINFO *pExcepInfo,
  18218. UINT *puArgErr);
  18219. /*** ISpeechPhraseReplacements methods ***/
  18220. HRESULT (STDMETHODCALLTYPE *get_Count)(
  18221. ISpeechPhraseReplacements *This,
  18222. LONG *Count);
  18223. HRESULT (STDMETHODCALLTYPE *Item)(
  18224. ISpeechPhraseReplacements *This,
  18225. LONG Index,
  18226. ISpeechPhraseReplacement **Reps);
  18227. HRESULT (STDMETHODCALLTYPE *get__NewEnum)(
  18228. ISpeechPhraseReplacements *This,
  18229. IUnknown **EnumVARIANT);
  18230. END_INTERFACE
  18231. } ISpeechPhraseReplacementsVtbl;
  18232. interface ISpeechPhraseReplacements {
  18233. CONST_VTBL ISpeechPhraseReplacementsVtbl* lpVtbl;
  18234. };
  18235. #ifdef COBJMACROS
  18236. #ifndef WIDL_C_INLINE_WRAPPERS
  18237. /*** IUnknown methods ***/
  18238. #define ISpeechPhraseReplacements_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  18239. #define ISpeechPhraseReplacements_AddRef(This) (This)->lpVtbl->AddRef(This)
  18240. #define ISpeechPhraseReplacements_Release(This) (This)->lpVtbl->Release(This)
  18241. /*** IDispatch methods ***/
  18242. #define ISpeechPhraseReplacements_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  18243. #define ISpeechPhraseReplacements_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  18244. #define ISpeechPhraseReplacements_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  18245. #define ISpeechPhraseReplacements_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  18246. /*** ISpeechPhraseReplacements methods ***/
  18247. #define ISpeechPhraseReplacements_get_Count(This,Count) (This)->lpVtbl->get_Count(This,Count)
  18248. #define ISpeechPhraseReplacements_Item(This,Index,Reps) (This)->lpVtbl->Item(This,Index,Reps)
  18249. #define ISpeechPhraseReplacements_get__NewEnum(This,EnumVARIANT) (This)->lpVtbl->get__NewEnum(This,EnumVARIANT)
  18250. #else
  18251. /*** IUnknown methods ***/
  18252. static FORCEINLINE HRESULT ISpeechPhraseReplacements_QueryInterface(ISpeechPhraseReplacements* This,REFIID riid,void **ppvObject) {
  18253. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  18254. }
  18255. static FORCEINLINE ULONG ISpeechPhraseReplacements_AddRef(ISpeechPhraseReplacements* This) {
  18256. return This->lpVtbl->AddRef(This);
  18257. }
  18258. static FORCEINLINE ULONG ISpeechPhraseReplacements_Release(ISpeechPhraseReplacements* This) {
  18259. return This->lpVtbl->Release(This);
  18260. }
  18261. /*** IDispatch methods ***/
  18262. static FORCEINLINE HRESULT ISpeechPhraseReplacements_GetTypeInfoCount(ISpeechPhraseReplacements* This,UINT *pctinfo) {
  18263. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  18264. }
  18265. static FORCEINLINE HRESULT ISpeechPhraseReplacements_GetTypeInfo(ISpeechPhraseReplacements* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  18266. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  18267. }
  18268. static FORCEINLINE HRESULT ISpeechPhraseReplacements_GetIDsOfNames(ISpeechPhraseReplacements* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  18269. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  18270. }
  18271. static FORCEINLINE HRESULT ISpeechPhraseReplacements_Invoke(ISpeechPhraseReplacements* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  18272. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  18273. }
  18274. /*** ISpeechPhraseReplacements methods ***/
  18275. static FORCEINLINE HRESULT ISpeechPhraseReplacements_get_Count(ISpeechPhraseReplacements* This,LONG *Count) {
  18276. return This->lpVtbl->get_Count(This,Count);
  18277. }
  18278. static FORCEINLINE HRESULT ISpeechPhraseReplacements_Item(ISpeechPhraseReplacements* This,LONG Index,ISpeechPhraseReplacement **Reps) {
  18279. return This->lpVtbl->Item(This,Index,Reps);
  18280. }
  18281. static FORCEINLINE HRESULT ISpeechPhraseReplacements_get__NewEnum(ISpeechPhraseReplacements* This,IUnknown **EnumVARIANT) {
  18282. return This->lpVtbl->get__NewEnum(This,EnumVARIANT);
  18283. }
  18284. #endif
  18285. #endif
  18286. #endif
  18287. #endif /* __ISpeechPhraseReplacements_INTERFACE_DEFINED__ */
  18288. /*****************************************************************************
  18289. * ISpeechPhraseProperty interface
  18290. */
  18291. #ifndef __ISpeechPhraseProperty_INTERFACE_DEFINED__
  18292. #define __ISpeechPhraseProperty_INTERFACE_DEFINED__
  18293. DEFINE_GUID(IID_ISpeechPhraseProperty, 0xce563d48, 0x961e, 0x4732, 0xa2,0xe1, 0x37,0x8a,0x42,0xb4,0x30,0xbe);
  18294. #if defined(__cplusplus) && !defined(CINTERFACE)
  18295. MIDL_INTERFACE("ce563d48-961e-4732-a2e1-378a42b430be")
  18296. ISpeechPhraseProperty : public IDispatch
  18297. {
  18298. virtual HRESULT STDMETHODCALLTYPE get_Name(
  18299. BSTR *Name) = 0;
  18300. virtual HRESULT STDMETHODCALLTYPE get_Id(
  18301. LONG *Id) = 0;
  18302. virtual HRESULT STDMETHODCALLTYPE get_Value(
  18303. VARIANT *Value) = 0;
  18304. virtual HRESULT STDMETHODCALLTYPE get_FirstElement(
  18305. LONG *FirstElement) = 0;
  18306. virtual HRESULT STDMETHODCALLTYPE get_NumberOfElements(
  18307. LONG *NumberOfElements) = 0;
  18308. virtual HRESULT STDMETHODCALLTYPE get_EngineConfidence(
  18309. float *Confidence) = 0;
  18310. virtual HRESULT STDMETHODCALLTYPE get_Confidence(
  18311. SpeechEngineConfidence *Confidence) = 0;
  18312. virtual HRESULT STDMETHODCALLTYPE get_Parent(
  18313. ISpeechPhraseProperty **ParentProperty) = 0;
  18314. virtual HRESULT STDMETHODCALLTYPE get_Children(
  18315. ISpeechPhraseProperties **Children) = 0;
  18316. };
  18317. #ifdef __CRT_UUID_DECL
  18318. __CRT_UUID_DECL(ISpeechPhraseProperty, 0xce563d48, 0x961e, 0x4732, 0xa2,0xe1, 0x37,0x8a,0x42,0xb4,0x30,0xbe)
  18319. #endif
  18320. #else
  18321. typedef struct ISpeechPhrasePropertyVtbl {
  18322. BEGIN_INTERFACE
  18323. /*** IUnknown methods ***/
  18324. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  18325. ISpeechPhraseProperty *This,
  18326. REFIID riid,
  18327. void **ppvObject);
  18328. ULONG (STDMETHODCALLTYPE *AddRef)(
  18329. ISpeechPhraseProperty *This);
  18330. ULONG (STDMETHODCALLTYPE *Release)(
  18331. ISpeechPhraseProperty *This);
  18332. /*** IDispatch methods ***/
  18333. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  18334. ISpeechPhraseProperty *This,
  18335. UINT *pctinfo);
  18336. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  18337. ISpeechPhraseProperty *This,
  18338. UINT iTInfo,
  18339. LCID lcid,
  18340. ITypeInfo **ppTInfo);
  18341. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  18342. ISpeechPhraseProperty *This,
  18343. REFIID riid,
  18344. LPOLESTR *rgszNames,
  18345. UINT cNames,
  18346. LCID lcid,
  18347. DISPID *rgDispId);
  18348. HRESULT (STDMETHODCALLTYPE *Invoke)(
  18349. ISpeechPhraseProperty *This,
  18350. DISPID dispIdMember,
  18351. REFIID riid,
  18352. LCID lcid,
  18353. WORD wFlags,
  18354. DISPPARAMS *pDispParams,
  18355. VARIANT *pVarResult,
  18356. EXCEPINFO *pExcepInfo,
  18357. UINT *puArgErr);
  18358. /*** ISpeechPhraseProperty methods ***/
  18359. HRESULT (STDMETHODCALLTYPE *get_Name)(
  18360. ISpeechPhraseProperty *This,
  18361. BSTR *Name);
  18362. HRESULT (STDMETHODCALLTYPE *get_Id)(
  18363. ISpeechPhraseProperty *This,
  18364. LONG *Id);
  18365. HRESULT (STDMETHODCALLTYPE *get_Value)(
  18366. ISpeechPhraseProperty *This,
  18367. VARIANT *Value);
  18368. HRESULT (STDMETHODCALLTYPE *get_FirstElement)(
  18369. ISpeechPhraseProperty *This,
  18370. LONG *FirstElement);
  18371. HRESULT (STDMETHODCALLTYPE *get_NumberOfElements)(
  18372. ISpeechPhraseProperty *This,
  18373. LONG *NumberOfElements);
  18374. HRESULT (STDMETHODCALLTYPE *get_EngineConfidence)(
  18375. ISpeechPhraseProperty *This,
  18376. float *Confidence);
  18377. HRESULT (STDMETHODCALLTYPE *get_Confidence)(
  18378. ISpeechPhraseProperty *This,
  18379. SpeechEngineConfidence *Confidence);
  18380. HRESULT (STDMETHODCALLTYPE *get_Parent)(
  18381. ISpeechPhraseProperty *This,
  18382. ISpeechPhraseProperty **ParentProperty);
  18383. HRESULT (STDMETHODCALLTYPE *get_Children)(
  18384. ISpeechPhraseProperty *This,
  18385. ISpeechPhraseProperties **Children);
  18386. END_INTERFACE
  18387. } ISpeechPhrasePropertyVtbl;
  18388. interface ISpeechPhraseProperty {
  18389. CONST_VTBL ISpeechPhrasePropertyVtbl* lpVtbl;
  18390. };
  18391. #ifdef COBJMACROS
  18392. #ifndef WIDL_C_INLINE_WRAPPERS
  18393. /*** IUnknown methods ***/
  18394. #define ISpeechPhraseProperty_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  18395. #define ISpeechPhraseProperty_AddRef(This) (This)->lpVtbl->AddRef(This)
  18396. #define ISpeechPhraseProperty_Release(This) (This)->lpVtbl->Release(This)
  18397. /*** IDispatch methods ***/
  18398. #define ISpeechPhraseProperty_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  18399. #define ISpeechPhraseProperty_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  18400. #define ISpeechPhraseProperty_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  18401. #define ISpeechPhraseProperty_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  18402. /*** ISpeechPhraseProperty methods ***/
  18403. #define ISpeechPhraseProperty_get_Name(This,Name) (This)->lpVtbl->get_Name(This,Name)
  18404. #define ISpeechPhraseProperty_get_Id(This,Id) (This)->lpVtbl->get_Id(This,Id)
  18405. #define ISpeechPhraseProperty_get_Value(This,Value) (This)->lpVtbl->get_Value(This,Value)
  18406. #define ISpeechPhraseProperty_get_FirstElement(This,FirstElement) (This)->lpVtbl->get_FirstElement(This,FirstElement)
  18407. #define ISpeechPhraseProperty_get_NumberOfElements(This,NumberOfElements) (This)->lpVtbl->get_NumberOfElements(This,NumberOfElements)
  18408. #define ISpeechPhraseProperty_get_EngineConfidence(This,Confidence) (This)->lpVtbl->get_EngineConfidence(This,Confidence)
  18409. #define ISpeechPhraseProperty_get_Confidence(This,Confidence) (This)->lpVtbl->get_Confidence(This,Confidence)
  18410. #define ISpeechPhraseProperty_get_Parent(This,ParentProperty) (This)->lpVtbl->get_Parent(This,ParentProperty)
  18411. #define ISpeechPhraseProperty_get_Children(This,Children) (This)->lpVtbl->get_Children(This,Children)
  18412. #else
  18413. /*** IUnknown methods ***/
  18414. static FORCEINLINE HRESULT ISpeechPhraseProperty_QueryInterface(ISpeechPhraseProperty* This,REFIID riid,void **ppvObject) {
  18415. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  18416. }
  18417. static FORCEINLINE ULONG ISpeechPhraseProperty_AddRef(ISpeechPhraseProperty* This) {
  18418. return This->lpVtbl->AddRef(This);
  18419. }
  18420. static FORCEINLINE ULONG ISpeechPhraseProperty_Release(ISpeechPhraseProperty* This) {
  18421. return This->lpVtbl->Release(This);
  18422. }
  18423. /*** IDispatch methods ***/
  18424. static FORCEINLINE HRESULT ISpeechPhraseProperty_GetTypeInfoCount(ISpeechPhraseProperty* This,UINT *pctinfo) {
  18425. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  18426. }
  18427. static FORCEINLINE HRESULT ISpeechPhraseProperty_GetTypeInfo(ISpeechPhraseProperty* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  18428. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  18429. }
  18430. static FORCEINLINE HRESULT ISpeechPhraseProperty_GetIDsOfNames(ISpeechPhraseProperty* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  18431. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  18432. }
  18433. static FORCEINLINE HRESULT ISpeechPhraseProperty_Invoke(ISpeechPhraseProperty* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  18434. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  18435. }
  18436. /*** ISpeechPhraseProperty methods ***/
  18437. static FORCEINLINE HRESULT ISpeechPhraseProperty_get_Name(ISpeechPhraseProperty* This,BSTR *Name) {
  18438. return This->lpVtbl->get_Name(This,Name);
  18439. }
  18440. static FORCEINLINE HRESULT ISpeechPhraseProperty_get_Id(ISpeechPhraseProperty* This,LONG *Id) {
  18441. return This->lpVtbl->get_Id(This,Id);
  18442. }
  18443. static FORCEINLINE HRESULT ISpeechPhraseProperty_get_Value(ISpeechPhraseProperty* This,VARIANT *Value) {
  18444. return This->lpVtbl->get_Value(This,Value);
  18445. }
  18446. static FORCEINLINE HRESULT ISpeechPhraseProperty_get_FirstElement(ISpeechPhraseProperty* This,LONG *FirstElement) {
  18447. return This->lpVtbl->get_FirstElement(This,FirstElement);
  18448. }
  18449. static FORCEINLINE HRESULT ISpeechPhraseProperty_get_NumberOfElements(ISpeechPhraseProperty* This,LONG *NumberOfElements) {
  18450. return This->lpVtbl->get_NumberOfElements(This,NumberOfElements);
  18451. }
  18452. static FORCEINLINE HRESULT ISpeechPhraseProperty_get_EngineConfidence(ISpeechPhraseProperty* This,float *Confidence) {
  18453. return This->lpVtbl->get_EngineConfidence(This,Confidence);
  18454. }
  18455. static FORCEINLINE HRESULT ISpeechPhraseProperty_get_Confidence(ISpeechPhraseProperty* This,SpeechEngineConfidence *Confidence) {
  18456. return This->lpVtbl->get_Confidence(This,Confidence);
  18457. }
  18458. static FORCEINLINE HRESULT ISpeechPhraseProperty_get_Parent(ISpeechPhraseProperty* This,ISpeechPhraseProperty **ParentProperty) {
  18459. return This->lpVtbl->get_Parent(This,ParentProperty);
  18460. }
  18461. static FORCEINLINE HRESULT ISpeechPhraseProperty_get_Children(ISpeechPhraseProperty* This,ISpeechPhraseProperties **Children) {
  18462. return This->lpVtbl->get_Children(This,Children);
  18463. }
  18464. #endif
  18465. #endif
  18466. #endif
  18467. #endif /* __ISpeechPhraseProperty_INTERFACE_DEFINED__ */
  18468. /*****************************************************************************
  18469. * ISpeechPhraseProperties interface
  18470. */
  18471. #ifndef __ISpeechPhraseProperties_INTERFACE_DEFINED__
  18472. #define __ISpeechPhraseProperties_INTERFACE_DEFINED__
  18473. DEFINE_GUID(IID_ISpeechPhraseProperties, 0x08166b47, 0x102e, 0x4b23, 0xa5,0x99, 0xbd,0xb9,0x8d,0xbf,0xd1,0xf4);
  18474. #if defined(__cplusplus) && !defined(CINTERFACE)
  18475. MIDL_INTERFACE("08166b47-102e-4b23-a599-bdb98dbfd1f4")
  18476. ISpeechPhraseProperties : public IDispatch
  18477. {
  18478. virtual HRESULT STDMETHODCALLTYPE get_Count(
  18479. LONG *Count) = 0;
  18480. virtual HRESULT STDMETHODCALLTYPE Item(
  18481. LONG Index,
  18482. ISpeechPhraseProperty **Property) = 0;
  18483. virtual HRESULT STDMETHODCALLTYPE get__NewEnum(
  18484. IUnknown **EnumVARIANT) = 0;
  18485. };
  18486. #ifdef __CRT_UUID_DECL
  18487. __CRT_UUID_DECL(ISpeechPhraseProperties, 0x08166b47, 0x102e, 0x4b23, 0xa5,0x99, 0xbd,0xb9,0x8d,0xbf,0xd1,0xf4)
  18488. #endif
  18489. #else
  18490. typedef struct ISpeechPhrasePropertiesVtbl {
  18491. BEGIN_INTERFACE
  18492. /*** IUnknown methods ***/
  18493. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  18494. ISpeechPhraseProperties *This,
  18495. REFIID riid,
  18496. void **ppvObject);
  18497. ULONG (STDMETHODCALLTYPE *AddRef)(
  18498. ISpeechPhraseProperties *This);
  18499. ULONG (STDMETHODCALLTYPE *Release)(
  18500. ISpeechPhraseProperties *This);
  18501. /*** IDispatch methods ***/
  18502. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  18503. ISpeechPhraseProperties *This,
  18504. UINT *pctinfo);
  18505. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  18506. ISpeechPhraseProperties *This,
  18507. UINT iTInfo,
  18508. LCID lcid,
  18509. ITypeInfo **ppTInfo);
  18510. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  18511. ISpeechPhraseProperties *This,
  18512. REFIID riid,
  18513. LPOLESTR *rgszNames,
  18514. UINT cNames,
  18515. LCID lcid,
  18516. DISPID *rgDispId);
  18517. HRESULT (STDMETHODCALLTYPE *Invoke)(
  18518. ISpeechPhraseProperties *This,
  18519. DISPID dispIdMember,
  18520. REFIID riid,
  18521. LCID lcid,
  18522. WORD wFlags,
  18523. DISPPARAMS *pDispParams,
  18524. VARIANT *pVarResult,
  18525. EXCEPINFO *pExcepInfo,
  18526. UINT *puArgErr);
  18527. /*** ISpeechPhraseProperties methods ***/
  18528. HRESULT (STDMETHODCALLTYPE *get_Count)(
  18529. ISpeechPhraseProperties *This,
  18530. LONG *Count);
  18531. HRESULT (STDMETHODCALLTYPE *Item)(
  18532. ISpeechPhraseProperties *This,
  18533. LONG Index,
  18534. ISpeechPhraseProperty **Property);
  18535. HRESULT (STDMETHODCALLTYPE *get__NewEnum)(
  18536. ISpeechPhraseProperties *This,
  18537. IUnknown **EnumVARIANT);
  18538. END_INTERFACE
  18539. } ISpeechPhrasePropertiesVtbl;
  18540. interface ISpeechPhraseProperties {
  18541. CONST_VTBL ISpeechPhrasePropertiesVtbl* lpVtbl;
  18542. };
  18543. #ifdef COBJMACROS
  18544. #ifndef WIDL_C_INLINE_WRAPPERS
  18545. /*** IUnknown methods ***/
  18546. #define ISpeechPhraseProperties_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  18547. #define ISpeechPhraseProperties_AddRef(This) (This)->lpVtbl->AddRef(This)
  18548. #define ISpeechPhraseProperties_Release(This) (This)->lpVtbl->Release(This)
  18549. /*** IDispatch methods ***/
  18550. #define ISpeechPhraseProperties_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  18551. #define ISpeechPhraseProperties_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  18552. #define ISpeechPhraseProperties_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  18553. #define ISpeechPhraseProperties_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  18554. /*** ISpeechPhraseProperties methods ***/
  18555. #define ISpeechPhraseProperties_get_Count(This,Count) (This)->lpVtbl->get_Count(This,Count)
  18556. #define ISpeechPhraseProperties_Item(This,Index,Property) (This)->lpVtbl->Item(This,Index,Property)
  18557. #define ISpeechPhraseProperties_get__NewEnum(This,EnumVARIANT) (This)->lpVtbl->get__NewEnum(This,EnumVARIANT)
  18558. #else
  18559. /*** IUnknown methods ***/
  18560. static FORCEINLINE HRESULT ISpeechPhraseProperties_QueryInterface(ISpeechPhraseProperties* This,REFIID riid,void **ppvObject) {
  18561. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  18562. }
  18563. static FORCEINLINE ULONG ISpeechPhraseProperties_AddRef(ISpeechPhraseProperties* This) {
  18564. return This->lpVtbl->AddRef(This);
  18565. }
  18566. static FORCEINLINE ULONG ISpeechPhraseProperties_Release(ISpeechPhraseProperties* This) {
  18567. return This->lpVtbl->Release(This);
  18568. }
  18569. /*** IDispatch methods ***/
  18570. static FORCEINLINE HRESULT ISpeechPhraseProperties_GetTypeInfoCount(ISpeechPhraseProperties* This,UINT *pctinfo) {
  18571. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  18572. }
  18573. static FORCEINLINE HRESULT ISpeechPhraseProperties_GetTypeInfo(ISpeechPhraseProperties* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  18574. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  18575. }
  18576. static FORCEINLINE HRESULT ISpeechPhraseProperties_GetIDsOfNames(ISpeechPhraseProperties* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  18577. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  18578. }
  18579. static FORCEINLINE HRESULT ISpeechPhraseProperties_Invoke(ISpeechPhraseProperties* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  18580. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  18581. }
  18582. /*** ISpeechPhraseProperties methods ***/
  18583. static FORCEINLINE HRESULT ISpeechPhraseProperties_get_Count(ISpeechPhraseProperties* This,LONG *Count) {
  18584. return This->lpVtbl->get_Count(This,Count);
  18585. }
  18586. static FORCEINLINE HRESULT ISpeechPhraseProperties_Item(ISpeechPhraseProperties* This,LONG Index,ISpeechPhraseProperty **Property) {
  18587. return This->lpVtbl->Item(This,Index,Property);
  18588. }
  18589. static FORCEINLINE HRESULT ISpeechPhraseProperties_get__NewEnum(ISpeechPhraseProperties* This,IUnknown **EnumVARIANT) {
  18590. return This->lpVtbl->get__NewEnum(This,EnumVARIANT);
  18591. }
  18592. #endif
  18593. #endif
  18594. #endif
  18595. #endif /* __ISpeechPhraseProperties_INTERFACE_DEFINED__ */
  18596. /*****************************************************************************
  18597. * ISpeechPhraseRule interface
  18598. */
  18599. #ifndef __ISpeechPhraseRule_INTERFACE_DEFINED__
  18600. #define __ISpeechPhraseRule_INTERFACE_DEFINED__
  18601. DEFINE_GUID(IID_ISpeechPhraseRule, 0xa7bfe112, 0xa4a0, 0x48d9, 0xb6,0x02, 0xc3,0x13,0x84,0x3f,0x69,0x64);
  18602. #if defined(__cplusplus) && !defined(CINTERFACE)
  18603. MIDL_INTERFACE("a7bfe112-a4a0-48d9-b602-c313843f6964")
  18604. ISpeechPhraseRule : public IDispatch
  18605. {
  18606. virtual HRESULT STDMETHODCALLTYPE get_Name(
  18607. BSTR *Name) = 0;
  18608. virtual HRESULT STDMETHODCALLTYPE get_Id(
  18609. LONG *Id) = 0;
  18610. virtual HRESULT STDMETHODCALLTYPE get_FirstElement(
  18611. LONG *FirstElement) = 0;
  18612. virtual HRESULT STDMETHODCALLTYPE get_NumberOfElements(
  18613. LONG *NumberOfElements) = 0;
  18614. virtual HRESULT STDMETHODCALLTYPE get_Parent(
  18615. ISpeechPhraseRule **Parent) = 0;
  18616. virtual HRESULT STDMETHODCALLTYPE get_Children(
  18617. ISpeechPhraseRules **Children) = 0;
  18618. virtual HRESULT STDMETHODCALLTYPE get_Confidence(
  18619. SpeechEngineConfidence *ActualConfidence) = 0;
  18620. virtual HRESULT STDMETHODCALLTYPE get_EngineConfidence(
  18621. float *EngineConfidence) = 0;
  18622. };
  18623. #ifdef __CRT_UUID_DECL
  18624. __CRT_UUID_DECL(ISpeechPhraseRule, 0xa7bfe112, 0xa4a0, 0x48d9, 0xb6,0x02, 0xc3,0x13,0x84,0x3f,0x69,0x64)
  18625. #endif
  18626. #else
  18627. typedef struct ISpeechPhraseRuleVtbl {
  18628. BEGIN_INTERFACE
  18629. /*** IUnknown methods ***/
  18630. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  18631. ISpeechPhraseRule *This,
  18632. REFIID riid,
  18633. void **ppvObject);
  18634. ULONG (STDMETHODCALLTYPE *AddRef)(
  18635. ISpeechPhraseRule *This);
  18636. ULONG (STDMETHODCALLTYPE *Release)(
  18637. ISpeechPhraseRule *This);
  18638. /*** IDispatch methods ***/
  18639. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  18640. ISpeechPhraseRule *This,
  18641. UINT *pctinfo);
  18642. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  18643. ISpeechPhraseRule *This,
  18644. UINT iTInfo,
  18645. LCID lcid,
  18646. ITypeInfo **ppTInfo);
  18647. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  18648. ISpeechPhraseRule *This,
  18649. REFIID riid,
  18650. LPOLESTR *rgszNames,
  18651. UINT cNames,
  18652. LCID lcid,
  18653. DISPID *rgDispId);
  18654. HRESULT (STDMETHODCALLTYPE *Invoke)(
  18655. ISpeechPhraseRule *This,
  18656. DISPID dispIdMember,
  18657. REFIID riid,
  18658. LCID lcid,
  18659. WORD wFlags,
  18660. DISPPARAMS *pDispParams,
  18661. VARIANT *pVarResult,
  18662. EXCEPINFO *pExcepInfo,
  18663. UINT *puArgErr);
  18664. /*** ISpeechPhraseRule methods ***/
  18665. HRESULT (STDMETHODCALLTYPE *get_Name)(
  18666. ISpeechPhraseRule *This,
  18667. BSTR *Name);
  18668. HRESULT (STDMETHODCALLTYPE *get_Id)(
  18669. ISpeechPhraseRule *This,
  18670. LONG *Id);
  18671. HRESULT (STDMETHODCALLTYPE *get_FirstElement)(
  18672. ISpeechPhraseRule *This,
  18673. LONG *FirstElement);
  18674. HRESULT (STDMETHODCALLTYPE *get_NumberOfElements)(
  18675. ISpeechPhraseRule *This,
  18676. LONG *NumberOfElements);
  18677. HRESULT (STDMETHODCALLTYPE *get_Parent)(
  18678. ISpeechPhraseRule *This,
  18679. ISpeechPhraseRule **Parent);
  18680. HRESULT (STDMETHODCALLTYPE *get_Children)(
  18681. ISpeechPhraseRule *This,
  18682. ISpeechPhraseRules **Children);
  18683. HRESULT (STDMETHODCALLTYPE *get_Confidence)(
  18684. ISpeechPhraseRule *This,
  18685. SpeechEngineConfidence *ActualConfidence);
  18686. HRESULT (STDMETHODCALLTYPE *get_EngineConfidence)(
  18687. ISpeechPhraseRule *This,
  18688. float *EngineConfidence);
  18689. END_INTERFACE
  18690. } ISpeechPhraseRuleVtbl;
  18691. interface ISpeechPhraseRule {
  18692. CONST_VTBL ISpeechPhraseRuleVtbl* lpVtbl;
  18693. };
  18694. #ifdef COBJMACROS
  18695. #ifndef WIDL_C_INLINE_WRAPPERS
  18696. /*** IUnknown methods ***/
  18697. #define ISpeechPhraseRule_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  18698. #define ISpeechPhraseRule_AddRef(This) (This)->lpVtbl->AddRef(This)
  18699. #define ISpeechPhraseRule_Release(This) (This)->lpVtbl->Release(This)
  18700. /*** IDispatch methods ***/
  18701. #define ISpeechPhraseRule_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  18702. #define ISpeechPhraseRule_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  18703. #define ISpeechPhraseRule_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  18704. #define ISpeechPhraseRule_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  18705. /*** ISpeechPhraseRule methods ***/
  18706. #define ISpeechPhraseRule_get_Name(This,Name) (This)->lpVtbl->get_Name(This,Name)
  18707. #define ISpeechPhraseRule_get_Id(This,Id) (This)->lpVtbl->get_Id(This,Id)
  18708. #define ISpeechPhraseRule_get_FirstElement(This,FirstElement) (This)->lpVtbl->get_FirstElement(This,FirstElement)
  18709. #define ISpeechPhraseRule_get_NumberOfElements(This,NumberOfElements) (This)->lpVtbl->get_NumberOfElements(This,NumberOfElements)
  18710. #define ISpeechPhraseRule_get_Parent(This,Parent) (This)->lpVtbl->get_Parent(This,Parent)
  18711. #define ISpeechPhraseRule_get_Children(This,Children) (This)->lpVtbl->get_Children(This,Children)
  18712. #define ISpeechPhraseRule_get_Confidence(This,ActualConfidence) (This)->lpVtbl->get_Confidence(This,ActualConfidence)
  18713. #define ISpeechPhraseRule_get_EngineConfidence(This,EngineConfidence) (This)->lpVtbl->get_EngineConfidence(This,EngineConfidence)
  18714. #else
  18715. /*** IUnknown methods ***/
  18716. static FORCEINLINE HRESULT ISpeechPhraseRule_QueryInterface(ISpeechPhraseRule* This,REFIID riid,void **ppvObject) {
  18717. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  18718. }
  18719. static FORCEINLINE ULONG ISpeechPhraseRule_AddRef(ISpeechPhraseRule* This) {
  18720. return This->lpVtbl->AddRef(This);
  18721. }
  18722. static FORCEINLINE ULONG ISpeechPhraseRule_Release(ISpeechPhraseRule* This) {
  18723. return This->lpVtbl->Release(This);
  18724. }
  18725. /*** IDispatch methods ***/
  18726. static FORCEINLINE HRESULT ISpeechPhraseRule_GetTypeInfoCount(ISpeechPhraseRule* This,UINT *pctinfo) {
  18727. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  18728. }
  18729. static FORCEINLINE HRESULT ISpeechPhraseRule_GetTypeInfo(ISpeechPhraseRule* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  18730. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  18731. }
  18732. static FORCEINLINE HRESULT ISpeechPhraseRule_GetIDsOfNames(ISpeechPhraseRule* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  18733. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  18734. }
  18735. static FORCEINLINE HRESULT ISpeechPhraseRule_Invoke(ISpeechPhraseRule* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  18736. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  18737. }
  18738. /*** ISpeechPhraseRule methods ***/
  18739. static FORCEINLINE HRESULT ISpeechPhraseRule_get_Name(ISpeechPhraseRule* This,BSTR *Name) {
  18740. return This->lpVtbl->get_Name(This,Name);
  18741. }
  18742. static FORCEINLINE HRESULT ISpeechPhraseRule_get_Id(ISpeechPhraseRule* This,LONG *Id) {
  18743. return This->lpVtbl->get_Id(This,Id);
  18744. }
  18745. static FORCEINLINE HRESULT ISpeechPhraseRule_get_FirstElement(ISpeechPhraseRule* This,LONG *FirstElement) {
  18746. return This->lpVtbl->get_FirstElement(This,FirstElement);
  18747. }
  18748. static FORCEINLINE HRESULT ISpeechPhraseRule_get_NumberOfElements(ISpeechPhraseRule* This,LONG *NumberOfElements) {
  18749. return This->lpVtbl->get_NumberOfElements(This,NumberOfElements);
  18750. }
  18751. static FORCEINLINE HRESULT ISpeechPhraseRule_get_Parent(ISpeechPhraseRule* This,ISpeechPhraseRule **Parent) {
  18752. return This->lpVtbl->get_Parent(This,Parent);
  18753. }
  18754. static FORCEINLINE HRESULT ISpeechPhraseRule_get_Children(ISpeechPhraseRule* This,ISpeechPhraseRules **Children) {
  18755. return This->lpVtbl->get_Children(This,Children);
  18756. }
  18757. static FORCEINLINE HRESULT ISpeechPhraseRule_get_Confidence(ISpeechPhraseRule* This,SpeechEngineConfidence *ActualConfidence) {
  18758. return This->lpVtbl->get_Confidence(This,ActualConfidence);
  18759. }
  18760. static FORCEINLINE HRESULT ISpeechPhraseRule_get_EngineConfidence(ISpeechPhraseRule* This,float *EngineConfidence) {
  18761. return This->lpVtbl->get_EngineConfidence(This,EngineConfidence);
  18762. }
  18763. #endif
  18764. #endif
  18765. #endif
  18766. #endif /* __ISpeechPhraseRule_INTERFACE_DEFINED__ */
  18767. /*****************************************************************************
  18768. * ISpeechPhraseRules interface
  18769. */
  18770. #ifndef __ISpeechPhraseRules_INTERFACE_DEFINED__
  18771. #define __ISpeechPhraseRules_INTERFACE_DEFINED__
  18772. DEFINE_GUID(IID_ISpeechPhraseRules, 0x9047d593, 0x01dd, 0x4b72, 0x81,0xa3, 0xe4,0xa0,0xca,0x69,0xf4,0x07);
  18773. #if defined(__cplusplus) && !defined(CINTERFACE)
  18774. MIDL_INTERFACE("9047d593-01dd-4b72-81a3-e4a0ca69f407")
  18775. ISpeechPhraseRules : public IDispatch
  18776. {
  18777. virtual HRESULT STDMETHODCALLTYPE get_Count(
  18778. LONG *Count) = 0;
  18779. virtual HRESULT STDMETHODCALLTYPE Item(
  18780. LONG Index,
  18781. ISpeechPhraseRule **Rule) = 0;
  18782. virtual HRESULT STDMETHODCALLTYPE get__NewEnum(
  18783. IUnknown **EnumVARIANT) = 0;
  18784. };
  18785. #ifdef __CRT_UUID_DECL
  18786. __CRT_UUID_DECL(ISpeechPhraseRules, 0x9047d593, 0x01dd, 0x4b72, 0x81,0xa3, 0xe4,0xa0,0xca,0x69,0xf4,0x07)
  18787. #endif
  18788. #else
  18789. typedef struct ISpeechPhraseRulesVtbl {
  18790. BEGIN_INTERFACE
  18791. /*** IUnknown methods ***/
  18792. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  18793. ISpeechPhraseRules *This,
  18794. REFIID riid,
  18795. void **ppvObject);
  18796. ULONG (STDMETHODCALLTYPE *AddRef)(
  18797. ISpeechPhraseRules *This);
  18798. ULONG (STDMETHODCALLTYPE *Release)(
  18799. ISpeechPhraseRules *This);
  18800. /*** IDispatch methods ***/
  18801. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  18802. ISpeechPhraseRules *This,
  18803. UINT *pctinfo);
  18804. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  18805. ISpeechPhraseRules *This,
  18806. UINT iTInfo,
  18807. LCID lcid,
  18808. ITypeInfo **ppTInfo);
  18809. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  18810. ISpeechPhraseRules *This,
  18811. REFIID riid,
  18812. LPOLESTR *rgszNames,
  18813. UINT cNames,
  18814. LCID lcid,
  18815. DISPID *rgDispId);
  18816. HRESULT (STDMETHODCALLTYPE *Invoke)(
  18817. ISpeechPhraseRules *This,
  18818. DISPID dispIdMember,
  18819. REFIID riid,
  18820. LCID lcid,
  18821. WORD wFlags,
  18822. DISPPARAMS *pDispParams,
  18823. VARIANT *pVarResult,
  18824. EXCEPINFO *pExcepInfo,
  18825. UINT *puArgErr);
  18826. /*** ISpeechPhraseRules methods ***/
  18827. HRESULT (STDMETHODCALLTYPE *get_Count)(
  18828. ISpeechPhraseRules *This,
  18829. LONG *Count);
  18830. HRESULT (STDMETHODCALLTYPE *Item)(
  18831. ISpeechPhraseRules *This,
  18832. LONG Index,
  18833. ISpeechPhraseRule **Rule);
  18834. HRESULT (STDMETHODCALLTYPE *get__NewEnum)(
  18835. ISpeechPhraseRules *This,
  18836. IUnknown **EnumVARIANT);
  18837. END_INTERFACE
  18838. } ISpeechPhraseRulesVtbl;
  18839. interface ISpeechPhraseRules {
  18840. CONST_VTBL ISpeechPhraseRulesVtbl* lpVtbl;
  18841. };
  18842. #ifdef COBJMACROS
  18843. #ifndef WIDL_C_INLINE_WRAPPERS
  18844. /*** IUnknown methods ***/
  18845. #define ISpeechPhraseRules_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  18846. #define ISpeechPhraseRules_AddRef(This) (This)->lpVtbl->AddRef(This)
  18847. #define ISpeechPhraseRules_Release(This) (This)->lpVtbl->Release(This)
  18848. /*** IDispatch methods ***/
  18849. #define ISpeechPhraseRules_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  18850. #define ISpeechPhraseRules_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  18851. #define ISpeechPhraseRules_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  18852. #define ISpeechPhraseRules_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  18853. /*** ISpeechPhraseRules methods ***/
  18854. #define ISpeechPhraseRules_get_Count(This,Count) (This)->lpVtbl->get_Count(This,Count)
  18855. #define ISpeechPhraseRules_Item(This,Index,Rule) (This)->lpVtbl->Item(This,Index,Rule)
  18856. #define ISpeechPhraseRules_get__NewEnum(This,EnumVARIANT) (This)->lpVtbl->get__NewEnum(This,EnumVARIANT)
  18857. #else
  18858. /*** IUnknown methods ***/
  18859. static FORCEINLINE HRESULT ISpeechPhraseRules_QueryInterface(ISpeechPhraseRules* This,REFIID riid,void **ppvObject) {
  18860. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  18861. }
  18862. static FORCEINLINE ULONG ISpeechPhraseRules_AddRef(ISpeechPhraseRules* This) {
  18863. return This->lpVtbl->AddRef(This);
  18864. }
  18865. static FORCEINLINE ULONG ISpeechPhraseRules_Release(ISpeechPhraseRules* This) {
  18866. return This->lpVtbl->Release(This);
  18867. }
  18868. /*** IDispatch methods ***/
  18869. static FORCEINLINE HRESULT ISpeechPhraseRules_GetTypeInfoCount(ISpeechPhraseRules* This,UINT *pctinfo) {
  18870. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  18871. }
  18872. static FORCEINLINE HRESULT ISpeechPhraseRules_GetTypeInfo(ISpeechPhraseRules* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  18873. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  18874. }
  18875. static FORCEINLINE HRESULT ISpeechPhraseRules_GetIDsOfNames(ISpeechPhraseRules* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  18876. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  18877. }
  18878. static FORCEINLINE HRESULT ISpeechPhraseRules_Invoke(ISpeechPhraseRules* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  18879. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  18880. }
  18881. /*** ISpeechPhraseRules methods ***/
  18882. static FORCEINLINE HRESULT ISpeechPhraseRules_get_Count(ISpeechPhraseRules* This,LONG *Count) {
  18883. return This->lpVtbl->get_Count(This,Count);
  18884. }
  18885. static FORCEINLINE HRESULT ISpeechPhraseRules_Item(ISpeechPhraseRules* This,LONG Index,ISpeechPhraseRule **Rule) {
  18886. return This->lpVtbl->Item(This,Index,Rule);
  18887. }
  18888. static FORCEINLINE HRESULT ISpeechPhraseRules_get__NewEnum(ISpeechPhraseRules* This,IUnknown **EnumVARIANT) {
  18889. return This->lpVtbl->get__NewEnum(This,EnumVARIANT);
  18890. }
  18891. #endif
  18892. #endif
  18893. #endif
  18894. #endif /* __ISpeechPhraseRules_INTERFACE_DEFINED__ */
  18895. /*****************************************************************************
  18896. * ISpeechLexiconWords interface
  18897. */
  18898. #ifndef __ISpeechLexiconWords_INTERFACE_DEFINED__
  18899. #define __ISpeechLexiconWords_INTERFACE_DEFINED__
  18900. DEFINE_GUID(IID_ISpeechLexiconWords, 0x8d199862, 0x415e, 0x47d5, 0xac,0x4f, 0xfa,0xa6,0x08,0xb4,0x24,0xe6);
  18901. #if defined(__cplusplus) && !defined(CINTERFACE)
  18902. MIDL_INTERFACE("8d199862-415e-47d5-ac4f-faa608b424e6")
  18903. ISpeechLexiconWords : public IDispatch
  18904. {
  18905. virtual HRESULT STDMETHODCALLTYPE get_Count(
  18906. LONG *Count) = 0;
  18907. virtual HRESULT STDMETHODCALLTYPE Item(
  18908. LONG Index,
  18909. ISpeechLexiconWord **Word) = 0;
  18910. virtual HRESULT STDMETHODCALLTYPE get__NewEnum(
  18911. IUnknown **EnumVARIANT) = 0;
  18912. };
  18913. #ifdef __CRT_UUID_DECL
  18914. __CRT_UUID_DECL(ISpeechLexiconWords, 0x8d199862, 0x415e, 0x47d5, 0xac,0x4f, 0xfa,0xa6,0x08,0xb4,0x24,0xe6)
  18915. #endif
  18916. #else
  18917. typedef struct ISpeechLexiconWordsVtbl {
  18918. BEGIN_INTERFACE
  18919. /*** IUnknown methods ***/
  18920. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  18921. ISpeechLexiconWords *This,
  18922. REFIID riid,
  18923. void **ppvObject);
  18924. ULONG (STDMETHODCALLTYPE *AddRef)(
  18925. ISpeechLexiconWords *This);
  18926. ULONG (STDMETHODCALLTYPE *Release)(
  18927. ISpeechLexiconWords *This);
  18928. /*** IDispatch methods ***/
  18929. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  18930. ISpeechLexiconWords *This,
  18931. UINT *pctinfo);
  18932. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  18933. ISpeechLexiconWords *This,
  18934. UINT iTInfo,
  18935. LCID lcid,
  18936. ITypeInfo **ppTInfo);
  18937. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  18938. ISpeechLexiconWords *This,
  18939. REFIID riid,
  18940. LPOLESTR *rgszNames,
  18941. UINT cNames,
  18942. LCID lcid,
  18943. DISPID *rgDispId);
  18944. HRESULT (STDMETHODCALLTYPE *Invoke)(
  18945. ISpeechLexiconWords *This,
  18946. DISPID dispIdMember,
  18947. REFIID riid,
  18948. LCID lcid,
  18949. WORD wFlags,
  18950. DISPPARAMS *pDispParams,
  18951. VARIANT *pVarResult,
  18952. EXCEPINFO *pExcepInfo,
  18953. UINT *puArgErr);
  18954. /*** ISpeechLexiconWords methods ***/
  18955. HRESULT (STDMETHODCALLTYPE *get_Count)(
  18956. ISpeechLexiconWords *This,
  18957. LONG *Count);
  18958. HRESULT (STDMETHODCALLTYPE *Item)(
  18959. ISpeechLexiconWords *This,
  18960. LONG Index,
  18961. ISpeechLexiconWord **Word);
  18962. HRESULT (STDMETHODCALLTYPE *get__NewEnum)(
  18963. ISpeechLexiconWords *This,
  18964. IUnknown **EnumVARIANT);
  18965. END_INTERFACE
  18966. } ISpeechLexiconWordsVtbl;
  18967. interface ISpeechLexiconWords {
  18968. CONST_VTBL ISpeechLexiconWordsVtbl* lpVtbl;
  18969. };
  18970. #ifdef COBJMACROS
  18971. #ifndef WIDL_C_INLINE_WRAPPERS
  18972. /*** IUnknown methods ***/
  18973. #define ISpeechLexiconWords_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  18974. #define ISpeechLexiconWords_AddRef(This) (This)->lpVtbl->AddRef(This)
  18975. #define ISpeechLexiconWords_Release(This) (This)->lpVtbl->Release(This)
  18976. /*** IDispatch methods ***/
  18977. #define ISpeechLexiconWords_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  18978. #define ISpeechLexiconWords_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  18979. #define ISpeechLexiconWords_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  18980. #define ISpeechLexiconWords_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  18981. /*** ISpeechLexiconWords methods ***/
  18982. #define ISpeechLexiconWords_get_Count(This,Count) (This)->lpVtbl->get_Count(This,Count)
  18983. #define ISpeechLexiconWords_Item(This,Index,Word) (This)->lpVtbl->Item(This,Index,Word)
  18984. #define ISpeechLexiconWords_get__NewEnum(This,EnumVARIANT) (This)->lpVtbl->get__NewEnum(This,EnumVARIANT)
  18985. #else
  18986. /*** IUnknown methods ***/
  18987. static FORCEINLINE HRESULT ISpeechLexiconWords_QueryInterface(ISpeechLexiconWords* This,REFIID riid,void **ppvObject) {
  18988. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  18989. }
  18990. static FORCEINLINE ULONG ISpeechLexiconWords_AddRef(ISpeechLexiconWords* This) {
  18991. return This->lpVtbl->AddRef(This);
  18992. }
  18993. static FORCEINLINE ULONG ISpeechLexiconWords_Release(ISpeechLexiconWords* This) {
  18994. return This->lpVtbl->Release(This);
  18995. }
  18996. /*** IDispatch methods ***/
  18997. static FORCEINLINE HRESULT ISpeechLexiconWords_GetTypeInfoCount(ISpeechLexiconWords* This,UINT *pctinfo) {
  18998. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  18999. }
  19000. static FORCEINLINE HRESULT ISpeechLexiconWords_GetTypeInfo(ISpeechLexiconWords* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  19001. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  19002. }
  19003. static FORCEINLINE HRESULT ISpeechLexiconWords_GetIDsOfNames(ISpeechLexiconWords* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  19004. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  19005. }
  19006. static FORCEINLINE HRESULT ISpeechLexiconWords_Invoke(ISpeechLexiconWords* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  19007. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  19008. }
  19009. /*** ISpeechLexiconWords methods ***/
  19010. static FORCEINLINE HRESULT ISpeechLexiconWords_get_Count(ISpeechLexiconWords* This,LONG *Count) {
  19011. return This->lpVtbl->get_Count(This,Count);
  19012. }
  19013. static FORCEINLINE HRESULT ISpeechLexiconWords_Item(ISpeechLexiconWords* This,LONG Index,ISpeechLexiconWord **Word) {
  19014. return This->lpVtbl->Item(This,Index,Word);
  19015. }
  19016. static FORCEINLINE HRESULT ISpeechLexiconWords_get__NewEnum(ISpeechLexiconWords* This,IUnknown **EnumVARIANT) {
  19017. return This->lpVtbl->get__NewEnum(This,EnumVARIANT);
  19018. }
  19019. #endif
  19020. #endif
  19021. #endif
  19022. #endif /* __ISpeechLexiconWords_INTERFACE_DEFINED__ */
  19023. /*****************************************************************************
  19024. * ISpeechLexicon interface
  19025. */
  19026. #ifndef __ISpeechLexicon_INTERFACE_DEFINED__
  19027. #define __ISpeechLexicon_INTERFACE_DEFINED__
  19028. DEFINE_GUID(IID_ISpeechLexicon, 0x3da7627a, 0xc7ae, 0x4b23, 0x87,0x08, 0x63,0x8c,0x50,0x36,0x2c,0x25);
  19029. #if defined(__cplusplus) && !defined(CINTERFACE)
  19030. MIDL_INTERFACE("3da7627a-c7ae-4b23-8708-638c50362c25")
  19031. ISpeechLexicon : public IDispatch
  19032. {
  19033. virtual HRESULT STDMETHODCALLTYPE get_GenerationId(
  19034. LONG *GenerationId) = 0;
  19035. virtual HRESULT STDMETHODCALLTYPE GetWords(
  19036. SpeechLexiconType Flags,
  19037. LONG *GenerationID,
  19038. ISpeechLexiconWords **Words) = 0;
  19039. virtual HRESULT STDMETHODCALLTYPE AddPronunciation(
  19040. BSTR bstrWord,
  19041. SpeechLanguageId LangId,
  19042. SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  19043. BSTR bstrPronunciation = L"") = 0;
  19044. virtual HRESULT STDMETHODCALLTYPE AddPronunciationByPhoneIds(
  19045. BSTR bstrWord,
  19046. SpeechLanguageId LangId,
  19047. SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  19048. VARIANT *PhoneIds = 0) = 0;
  19049. virtual HRESULT STDMETHODCALLTYPE RemovePronunciation(
  19050. BSTR bstrWord,
  19051. SpeechLanguageId LangId,
  19052. SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  19053. BSTR bstrPronunciation = L"") = 0;
  19054. virtual HRESULT STDMETHODCALLTYPE RemovePronunciationByPhoneIds(
  19055. BSTR bstrWord,
  19056. SpeechLanguageId LangId,
  19057. SpeechPartOfSpeech PartOfSpeech = SPSUnknown,
  19058. VARIANT *PhoneIds = 0) = 0;
  19059. virtual HRESULT STDMETHODCALLTYPE GetPronunciations(
  19060. BSTR bstrWord,
  19061. SpeechLanguageId LangId,
  19062. SpeechLexiconType TypeFlags,
  19063. ISpeechLexiconPronunciations **ppPronunciations) = 0;
  19064. virtual HRESULT STDMETHODCALLTYPE GetGenerationChange(
  19065. LONG *GenerationID,
  19066. ISpeechLexiconWords **ppWords) = 0;
  19067. };
  19068. #ifdef __CRT_UUID_DECL
  19069. __CRT_UUID_DECL(ISpeechLexicon, 0x3da7627a, 0xc7ae, 0x4b23, 0x87,0x08, 0x63,0x8c,0x50,0x36,0x2c,0x25)
  19070. #endif
  19071. #else
  19072. typedef struct ISpeechLexiconVtbl {
  19073. BEGIN_INTERFACE
  19074. /*** IUnknown methods ***/
  19075. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  19076. ISpeechLexicon *This,
  19077. REFIID riid,
  19078. void **ppvObject);
  19079. ULONG (STDMETHODCALLTYPE *AddRef)(
  19080. ISpeechLexicon *This);
  19081. ULONG (STDMETHODCALLTYPE *Release)(
  19082. ISpeechLexicon *This);
  19083. /*** IDispatch methods ***/
  19084. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  19085. ISpeechLexicon *This,
  19086. UINT *pctinfo);
  19087. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  19088. ISpeechLexicon *This,
  19089. UINT iTInfo,
  19090. LCID lcid,
  19091. ITypeInfo **ppTInfo);
  19092. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  19093. ISpeechLexicon *This,
  19094. REFIID riid,
  19095. LPOLESTR *rgszNames,
  19096. UINT cNames,
  19097. LCID lcid,
  19098. DISPID *rgDispId);
  19099. HRESULT (STDMETHODCALLTYPE *Invoke)(
  19100. ISpeechLexicon *This,
  19101. DISPID dispIdMember,
  19102. REFIID riid,
  19103. LCID lcid,
  19104. WORD wFlags,
  19105. DISPPARAMS *pDispParams,
  19106. VARIANT *pVarResult,
  19107. EXCEPINFO *pExcepInfo,
  19108. UINT *puArgErr);
  19109. /*** ISpeechLexicon methods ***/
  19110. HRESULT (STDMETHODCALLTYPE *get_GenerationId)(
  19111. ISpeechLexicon *This,
  19112. LONG *GenerationId);
  19113. HRESULT (STDMETHODCALLTYPE *GetWords)(
  19114. ISpeechLexicon *This,
  19115. SpeechLexiconType Flags,
  19116. LONG *GenerationID,
  19117. ISpeechLexiconWords **Words);
  19118. HRESULT (STDMETHODCALLTYPE *AddPronunciation)(
  19119. ISpeechLexicon *This,
  19120. BSTR bstrWord,
  19121. SpeechLanguageId LangId,
  19122. SpeechPartOfSpeech PartOfSpeech,
  19123. BSTR bstrPronunciation);
  19124. HRESULT (STDMETHODCALLTYPE *AddPronunciationByPhoneIds)(
  19125. ISpeechLexicon *This,
  19126. BSTR bstrWord,
  19127. SpeechLanguageId LangId,
  19128. SpeechPartOfSpeech PartOfSpeech,
  19129. VARIANT *PhoneIds);
  19130. HRESULT (STDMETHODCALLTYPE *RemovePronunciation)(
  19131. ISpeechLexicon *This,
  19132. BSTR bstrWord,
  19133. SpeechLanguageId LangId,
  19134. SpeechPartOfSpeech PartOfSpeech,
  19135. BSTR bstrPronunciation);
  19136. HRESULT (STDMETHODCALLTYPE *RemovePronunciationByPhoneIds)(
  19137. ISpeechLexicon *This,
  19138. BSTR bstrWord,
  19139. SpeechLanguageId LangId,
  19140. SpeechPartOfSpeech PartOfSpeech,
  19141. VARIANT *PhoneIds);
  19142. HRESULT (STDMETHODCALLTYPE *GetPronunciations)(
  19143. ISpeechLexicon *This,
  19144. BSTR bstrWord,
  19145. SpeechLanguageId LangId,
  19146. SpeechLexiconType TypeFlags,
  19147. ISpeechLexiconPronunciations **ppPronunciations);
  19148. HRESULT (STDMETHODCALLTYPE *GetGenerationChange)(
  19149. ISpeechLexicon *This,
  19150. LONG *GenerationID,
  19151. ISpeechLexiconWords **ppWords);
  19152. END_INTERFACE
  19153. } ISpeechLexiconVtbl;
  19154. interface ISpeechLexicon {
  19155. CONST_VTBL ISpeechLexiconVtbl* lpVtbl;
  19156. };
  19157. #ifdef COBJMACROS
  19158. #ifndef WIDL_C_INLINE_WRAPPERS
  19159. /*** IUnknown methods ***/
  19160. #define ISpeechLexicon_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  19161. #define ISpeechLexicon_AddRef(This) (This)->lpVtbl->AddRef(This)
  19162. #define ISpeechLexicon_Release(This) (This)->lpVtbl->Release(This)
  19163. /*** IDispatch methods ***/
  19164. #define ISpeechLexicon_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  19165. #define ISpeechLexicon_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  19166. #define ISpeechLexicon_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  19167. #define ISpeechLexicon_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  19168. /*** ISpeechLexicon methods ***/
  19169. #define ISpeechLexicon_get_GenerationId(This,GenerationId) (This)->lpVtbl->get_GenerationId(This,GenerationId)
  19170. #define ISpeechLexicon_GetWords(This,Flags,GenerationID,Words) (This)->lpVtbl->GetWords(This,Flags,GenerationID,Words)
  19171. #define ISpeechLexicon_AddPronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation) (This)->lpVtbl->AddPronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation)
  19172. #define ISpeechLexicon_AddPronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds) (This)->lpVtbl->AddPronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds)
  19173. #define ISpeechLexicon_RemovePronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation) (This)->lpVtbl->RemovePronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation)
  19174. #define ISpeechLexicon_RemovePronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds) (This)->lpVtbl->RemovePronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds)
  19175. #define ISpeechLexicon_GetPronunciations(This,bstrWord,LangId,TypeFlags,ppPronunciations) (This)->lpVtbl->GetPronunciations(This,bstrWord,LangId,TypeFlags,ppPronunciations)
  19176. #define ISpeechLexicon_GetGenerationChange(This,GenerationID,ppWords) (This)->lpVtbl->GetGenerationChange(This,GenerationID,ppWords)
  19177. #else
  19178. /*** IUnknown methods ***/
  19179. static FORCEINLINE HRESULT ISpeechLexicon_QueryInterface(ISpeechLexicon* This,REFIID riid,void **ppvObject) {
  19180. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  19181. }
  19182. static FORCEINLINE ULONG ISpeechLexicon_AddRef(ISpeechLexicon* This) {
  19183. return This->lpVtbl->AddRef(This);
  19184. }
  19185. static FORCEINLINE ULONG ISpeechLexicon_Release(ISpeechLexicon* This) {
  19186. return This->lpVtbl->Release(This);
  19187. }
  19188. /*** IDispatch methods ***/
  19189. static FORCEINLINE HRESULT ISpeechLexicon_GetTypeInfoCount(ISpeechLexicon* This,UINT *pctinfo) {
  19190. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  19191. }
  19192. static FORCEINLINE HRESULT ISpeechLexicon_GetTypeInfo(ISpeechLexicon* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  19193. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  19194. }
  19195. static FORCEINLINE HRESULT ISpeechLexicon_GetIDsOfNames(ISpeechLexicon* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  19196. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  19197. }
  19198. static FORCEINLINE HRESULT ISpeechLexicon_Invoke(ISpeechLexicon* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  19199. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  19200. }
  19201. /*** ISpeechLexicon methods ***/
  19202. static FORCEINLINE HRESULT ISpeechLexicon_get_GenerationId(ISpeechLexicon* This,LONG *GenerationId) {
  19203. return This->lpVtbl->get_GenerationId(This,GenerationId);
  19204. }
  19205. static FORCEINLINE HRESULT ISpeechLexicon_GetWords(ISpeechLexicon* This,SpeechLexiconType Flags,LONG *GenerationID,ISpeechLexiconWords **Words) {
  19206. return This->lpVtbl->GetWords(This,Flags,GenerationID,Words);
  19207. }
  19208. static FORCEINLINE HRESULT ISpeechLexicon_AddPronunciation(ISpeechLexicon* This,BSTR bstrWord,SpeechLanguageId LangId,SpeechPartOfSpeech PartOfSpeech,BSTR bstrPronunciation) {
  19209. return This->lpVtbl->AddPronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation);
  19210. }
  19211. static FORCEINLINE HRESULT ISpeechLexicon_AddPronunciationByPhoneIds(ISpeechLexicon* This,BSTR bstrWord,SpeechLanguageId LangId,SpeechPartOfSpeech PartOfSpeech,VARIANT *PhoneIds) {
  19212. return This->lpVtbl->AddPronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds);
  19213. }
  19214. static FORCEINLINE HRESULT ISpeechLexicon_RemovePronunciation(ISpeechLexicon* This,BSTR bstrWord,SpeechLanguageId LangId,SpeechPartOfSpeech PartOfSpeech,BSTR bstrPronunciation) {
  19215. return This->lpVtbl->RemovePronunciation(This,bstrWord,LangId,PartOfSpeech,bstrPronunciation);
  19216. }
  19217. static FORCEINLINE HRESULT ISpeechLexicon_RemovePronunciationByPhoneIds(ISpeechLexicon* This,BSTR bstrWord,SpeechLanguageId LangId,SpeechPartOfSpeech PartOfSpeech,VARIANT *PhoneIds) {
  19218. return This->lpVtbl->RemovePronunciationByPhoneIds(This,bstrWord,LangId,PartOfSpeech,PhoneIds);
  19219. }
  19220. static FORCEINLINE HRESULT ISpeechLexicon_GetPronunciations(ISpeechLexicon* This,BSTR bstrWord,SpeechLanguageId LangId,SpeechLexiconType TypeFlags,ISpeechLexiconPronunciations **ppPronunciations) {
  19221. return This->lpVtbl->GetPronunciations(This,bstrWord,LangId,TypeFlags,ppPronunciations);
  19222. }
  19223. static FORCEINLINE HRESULT ISpeechLexicon_GetGenerationChange(ISpeechLexicon* This,LONG *GenerationID,ISpeechLexiconWords **ppWords) {
  19224. return This->lpVtbl->GetGenerationChange(This,GenerationID,ppWords);
  19225. }
  19226. #endif
  19227. #endif
  19228. #endif
  19229. #endif /* __ISpeechLexicon_INTERFACE_DEFINED__ */
  19230. /*****************************************************************************
  19231. * ISpeechLexiconWord interface
  19232. */
  19233. #ifndef __ISpeechLexiconWord_INTERFACE_DEFINED__
  19234. #define __ISpeechLexiconWord_INTERFACE_DEFINED__
  19235. DEFINE_GUID(IID_ISpeechLexiconWord, 0x4e5b933c, 0xc9be, 0x48ed, 0x88,0x42, 0x1e,0xe5,0x1b,0xb1,0xd4,0xff);
  19236. #if defined(__cplusplus) && !defined(CINTERFACE)
  19237. MIDL_INTERFACE("4e5b933c-c9be-48ed-8842-1ee51bb1d4ff")
  19238. ISpeechLexiconWord : public IDispatch
  19239. {
  19240. virtual HRESULT STDMETHODCALLTYPE get_LangId(
  19241. SpeechLanguageId *LangId) = 0;
  19242. virtual HRESULT STDMETHODCALLTYPE get_Type(
  19243. SpeechWordType *WordType) = 0;
  19244. virtual HRESULT STDMETHODCALLTYPE get_Word(
  19245. BSTR *Word) = 0;
  19246. virtual HRESULT STDMETHODCALLTYPE get_Pronunciations(
  19247. ISpeechLexiconPronunciations **Pronunciations) = 0;
  19248. };
  19249. #ifdef __CRT_UUID_DECL
  19250. __CRT_UUID_DECL(ISpeechLexiconWord, 0x4e5b933c, 0xc9be, 0x48ed, 0x88,0x42, 0x1e,0xe5,0x1b,0xb1,0xd4,0xff)
  19251. #endif
  19252. #else
  19253. typedef struct ISpeechLexiconWordVtbl {
  19254. BEGIN_INTERFACE
  19255. /*** IUnknown methods ***/
  19256. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  19257. ISpeechLexiconWord *This,
  19258. REFIID riid,
  19259. void **ppvObject);
  19260. ULONG (STDMETHODCALLTYPE *AddRef)(
  19261. ISpeechLexiconWord *This);
  19262. ULONG (STDMETHODCALLTYPE *Release)(
  19263. ISpeechLexiconWord *This);
  19264. /*** IDispatch methods ***/
  19265. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  19266. ISpeechLexiconWord *This,
  19267. UINT *pctinfo);
  19268. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  19269. ISpeechLexiconWord *This,
  19270. UINT iTInfo,
  19271. LCID lcid,
  19272. ITypeInfo **ppTInfo);
  19273. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  19274. ISpeechLexiconWord *This,
  19275. REFIID riid,
  19276. LPOLESTR *rgszNames,
  19277. UINT cNames,
  19278. LCID lcid,
  19279. DISPID *rgDispId);
  19280. HRESULT (STDMETHODCALLTYPE *Invoke)(
  19281. ISpeechLexiconWord *This,
  19282. DISPID dispIdMember,
  19283. REFIID riid,
  19284. LCID lcid,
  19285. WORD wFlags,
  19286. DISPPARAMS *pDispParams,
  19287. VARIANT *pVarResult,
  19288. EXCEPINFO *pExcepInfo,
  19289. UINT *puArgErr);
  19290. /*** ISpeechLexiconWord methods ***/
  19291. HRESULT (STDMETHODCALLTYPE *get_LangId)(
  19292. ISpeechLexiconWord *This,
  19293. SpeechLanguageId *LangId);
  19294. HRESULT (STDMETHODCALLTYPE *get_Type)(
  19295. ISpeechLexiconWord *This,
  19296. SpeechWordType *WordType);
  19297. HRESULT (STDMETHODCALLTYPE *get_Word)(
  19298. ISpeechLexiconWord *This,
  19299. BSTR *Word);
  19300. HRESULT (STDMETHODCALLTYPE *get_Pronunciations)(
  19301. ISpeechLexiconWord *This,
  19302. ISpeechLexiconPronunciations **Pronunciations);
  19303. END_INTERFACE
  19304. } ISpeechLexiconWordVtbl;
  19305. interface ISpeechLexiconWord {
  19306. CONST_VTBL ISpeechLexiconWordVtbl* lpVtbl;
  19307. };
  19308. #ifdef COBJMACROS
  19309. #ifndef WIDL_C_INLINE_WRAPPERS
  19310. /*** IUnknown methods ***/
  19311. #define ISpeechLexiconWord_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  19312. #define ISpeechLexiconWord_AddRef(This) (This)->lpVtbl->AddRef(This)
  19313. #define ISpeechLexiconWord_Release(This) (This)->lpVtbl->Release(This)
  19314. /*** IDispatch methods ***/
  19315. #define ISpeechLexiconWord_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  19316. #define ISpeechLexiconWord_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  19317. #define ISpeechLexiconWord_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  19318. #define ISpeechLexiconWord_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  19319. /*** ISpeechLexiconWord methods ***/
  19320. #define ISpeechLexiconWord_get_LangId(This,LangId) (This)->lpVtbl->get_LangId(This,LangId)
  19321. #define ISpeechLexiconWord_get_Type(This,WordType) (This)->lpVtbl->get_Type(This,WordType)
  19322. #define ISpeechLexiconWord_get_Word(This,Word) (This)->lpVtbl->get_Word(This,Word)
  19323. #define ISpeechLexiconWord_get_Pronunciations(This,Pronunciations) (This)->lpVtbl->get_Pronunciations(This,Pronunciations)
  19324. #else
  19325. /*** IUnknown methods ***/
  19326. static FORCEINLINE HRESULT ISpeechLexiconWord_QueryInterface(ISpeechLexiconWord* This,REFIID riid,void **ppvObject) {
  19327. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  19328. }
  19329. static FORCEINLINE ULONG ISpeechLexiconWord_AddRef(ISpeechLexiconWord* This) {
  19330. return This->lpVtbl->AddRef(This);
  19331. }
  19332. static FORCEINLINE ULONG ISpeechLexiconWord_Release(ISpeechLexiconWord* This) {
  19333. return This->lpVtbl->Release(This);
  19334. }
  19335. /*** IDispatch methods ***/
  19336. static FORCEINLINE HRESULT ISpeechLexiconWord_GetTypeInfoCount(ISpeechLexiconWord* This,UINT *pctinfo) {
  19337. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  19338. }
  19339. static FORCEINLINE HRESULT ISpeechLexiconWord_GetTypeInfo(ISpeechLexiconWord* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  19340. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  19341. }
  19342. static FORCEINLINE HRESULT ISpeechLexiconWord_GetIDsOfNames(ISpeechLexiconWord* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  19343. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  19344. }
  19345. static FORCEINLINE HRESULT ISpeechLexiconWord_Invoke(ISpeechLexiconWord* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  19346. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  19347. }
  19348. /*** ISpeechLexiconWord methods ***/
  19349. static FORCEINLINE HRESULT ISpeechLexiconWord_get_LangId(ISpeechLexiconWord* This,SpeechLanguageId *LangId) {
  19350. return This->lpVtbl->get_LangId(This,LangId);
  19351. }
  19352. static FORCEINLINE HRESULT ISpeechLexiconWord_get_Type(ISpeechLexiconWord* This,SpeechWordType *WordType) {
  19353. return This->lpVtbl->get_Type(This,WordType);
  19354. }
  19355. static FORCEINLINE HRESULT ISpeechLexiconWord_get_Word(ISpeechLexiconWord* This,BSTR *Word) {
  19356. return This->lpVtbl->get_Word(This,Word);
  19357. }
  19358. static FORCEINLINE HRESULT ISpeechLexiconWord_get_Pronunciations(ISpeechLexiconWord* This,ISpeechLexiconPronunciations **Pronunciations) {
  19359. return This->lpVtbl->get_Pronunciations(This,Pronunciations);
  19360. }
  19361. #endif
  19362. #endif
  19363. #endif
  19364. #endif /* __ISpeechLexiconWord_INTERFACE_DEFINED__ */
  19365. /*****************************************************************************
  19366. * ISpeechLexiconPronunciations interface
  19367. */
  19368. #ifndef __ISpeechLexiconPronunciations_INTERFACE_DEFINED__
  19369. #define __ISpeechLexiconPronunciations_INTERFACE_DEFINED__
  19370. DEFINE_GUID(IID_ISpeechLexiconPronunciations, 0x72829128, 0x5682, 0x4704, 0xa0,0xd4, 0x3e,0x2b,0xb6,0xf2,0xea,0xd3);
  19371. #if defined(__cplusplus) && !defined(CINTERFACE)
  19372. MIDL_INTERFACE("72829128-5682-4704-a0d4-3e2bb6f2ead3")
  19373. ISpeechLexiconPronunciations : public IDispatch
  19374. {
  19375. virtual HRESULT STDMETHODCALLTYPE get_Count(
  19376. LONG *Count) = 0;
  19377. virtual HRESULT STDMETHODCALLTYPE Item(
  19378. LONG Index,
  19379. ISpeechLexiconPronunciation **Pronunciation) = 0;
  19380. virtual HRESULT STDMETHODCALLTYPE get__NewEnum(
  19381. IUnknown **EnumVARIANT) = 0;
  19382. };
  19383. #ifdef __CRT_UUID_DECL
  19384. __CRT_UUID_DECL(ISpeechLexiconPronunciations, 0x72829128, 0x5682, 0x4704, 0xa0,0xd4, 0x3e,0x2b,0xb6,0xf2,0xea,0xd3)
  19385. #endif
  19386. #else
  19387. typedef struct ISpeechLexiconPronunciationsVtbl {
  19388. BEGIN_INTERFACE
  19389. /*** IUnknown methods ***/
  19390. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  19391. ISpeechLexiconPronunciations *This,
  19392. REFIID riid,
  19393. void **ppvObject);
  19394. ULONG (STDMETHODCALLTYPE *AddRef)(
  19395. ISpeechLexiconPronunciations *This);
  19396. ULONG (STDMETHODCALLTYPE *Release)(
  19397. ISpeechLexiconPronunciations *This);
  19398. /*** IDispatch methods ***/
  19399. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  19400. ISpeechLexiconPronunciations *This,
  19401. UINT *pctinfo);
  19402. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  19403. ISpeechLexiconPronunciations *This,
  19404. UINT iTInfo,
  19405. LCID lcid,
  19406. ITypeInfo **ppTInfo);
  19407. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  19408. ISpeechLexiconPronunciations *This,
  19409. REFIID riid,
  19410. LPOLESTR *rgszNames,
  19411. UINT cNames,
  19412. LCID lcid,
  19413. DISPID *rgDispId);
  19414. HRESULT (STDMETHODCALLTYPE *Invoke)(
  19415. ISpeechLexiconPronunciations *This,
  19416. DISPID dispIdMember,
  19417. REFIID riid,
  19418. LCID lcid,
  19419. WORD wFlags,
  19420. DISPPARAMS *pDispParams,
  19421. VARIANT *pVarResult,
  19422. EXCEPINFO *pExcepInfo,
  19423. UINT *puArgErr);
  19424. /*** ISpeechLexiconPronunciations methods ***/
  19425. HRESULT (STDMETHODCALLTYPE *get_Count)(
  19426. ISpeechLexiconPronunciations *This,
  19427. LONG *Count);
  19428. HRESULT (STDMETHODCALLTYPE *Item)(
  19429. ISpeechLexiconPronunciations *This,
  19430. LONG Index,
  19431. ISpeechLexiconPronunciation **Pronunciation);
  19432. HRESULT (STDMETHODCALLTYPE *get__NewEnum)(
  19433. ISpeechLexiconPronunciations *This,
  19434. IUnknown **EnumVARIANT);
  19435. END_INTERFACE
  19436. } ISpeechLexiconPronunciationsVtbl;
  19437. interface ISpeechLexiconPronunciations {
  19438. CONST_VTBL ISpeechLexiconPronunciationsVtbl* lpVtbl;
  19439. };
  19440. #ifdef COBJMACROS
  19441. #ifndef WIDL_C_INLINE_WRAPPERS
  19442. /*** IUnknown methods ***/
  19443. #define ISpeechLexiconPronunciations_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  19444. #define ISpeechLexiconPronunciations_AddRef(This) (This)->lpVtbl->AddRef(This)
  19445. #define ISpeechLexiconPronunciations_Release(This) (This)->lpVtbl->Release(This)
  19446. /*** IDispatch methods ***/
  19447. #define ISpeechLexiconPronunciations_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  19448. #define ISpeechLexiconPronunciations_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  19449. #define ISpeechLexiconPronunciations_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  19450. #define ISpeechLexiconPronunciations_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  19451. /*** ISpeechLexiconPronunciations methods ***/
  19452. #define ISpeechLexiconPronunciations_get_Count(This,Count) (This)->lpVtbl->get_Count(This,Count)
  19453. #define ISpeechLexiconPronunciations_Item(This,Index,Pronunciation) (This)->lpVtbl->Item(This,Index,Pronunciation)
  19454. #define ISpeechLexiconPronunciations_get__NewEnum(This,EnumVARIANT) (This)->lpVtbl->get__NewEnum(This,EnumVARIANT)
  19455. #else
  19456. /*** IUnknown methods ***/
  19457. static FORCEINLINE HRESULT ISpeechLexiconPronunciations_QueryInterface(ISpeechLexiconPronunciations* This,REFIID riid,void **ppvObject) {
  19458. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  19459. }
  19460. static FORCEINLINE ULONG ISpeechLexiconPronunciations_AddRef(ISpeechLexiconPronunciations* This) {
  19461. return This->lpVtbl->AddRef(This);
  19462. }
  19463. static FORCEINLINE ULONG ISpeechLexiconPronunciations_Release(ISpeechLexiconPronunciations* This) {
  19464. return This->lpVtbl->Release(This);
  19465. }
  19466. /*** IDispatch methods ***/
  19467. static FORCEINLINE HRESULT ISpeechLexiconPronunciations_GetTypeInfoCount(ISpeechLexiconPronunciations* This,UINT *pctinfo) {
  19468. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  19469. }
  19470. static FORCEINLINE HRESULT ISpeechLexiconPronunciations_GetTypeInfo(ISpeechLexiconPronunciations* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  19471. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  19472. }
  19473. static FORCEINLINE HRESULT ISpeechLexiconPronunciations_GetIDsOfNames(ISpeechLexiconPronunciations* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  19474. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  19475. }
  19476. static FORCEINLINE HRESULT ISpeechLexiconPronunciations_Invoke(ISpeechLexiconPronunciations* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  19477. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  19478. }
  19479. /*** ISpeechLexiconPronunciations methods ***/
  19480. static FORCEINLINE HRESULT ISpeechLexiconPronunciations_get_Count(ISpeechLexiconPronunciations* This,LONG *Count) {
  19481. return This->lpVtbl->get_Count(This,Count);
  19482. }
  19483. static FORCEINLINE HRESULT ISpeechLexiconPronunciations_Item(ISpeechLexiconPronunciations* This,LONG Index,ISpeechLexiconPronunciation **Pronunciation) {
  19484. return This->lpVtbl->Item(This,Index,Pronunciation);
  19485. }
  19486. static FORCEINLINE HRESULT ISpeechLexiconPronunciations_get__NewEnum(ISpeechLexiconPronunciations* This,IUnknown **EnumVARIANT) {
  19487. return This->lpVtbl->get__NewEnum(This,EnumVARIANT);
  19488. }
  19489. #endif
  19490. #endif
  19491. #endif
  19492. #endif /* __ISpeechLexiconPronunciations_INTERFACE_DEFINED__ */
  19493. /*****************************************************************************
  19494. * ISpeechLexiconPronunciation interface
  19495. */
  19496. #ifndef __ISpeechLexiconPronunciation_INTERFACE_DEFINED__
  19497. #define __ISpeechLexiconPronunciation_INTERFACE_DEFINED__
  19498. DEFINE_GUID(IID_ISpeechLexiconPronunciation, 0x95252c5d, 0x9e43, 0x4f4a, 0x98,0x99, 0x48,0xee,0x73,0x35,0x2f,0x9f);
  19499. #if defined(__cplusplus) && !defined(CINTERFACE)
  19500. MIDL_INTERFACE("95252c5d-9e43-4f4a-9899-48ee73352f9f")
  19501. ISpeechLexiconPronunciation : public IDispatch
  19502. {
  19503. virtual HRESULT STDMETHODCALLTYPE get_Type(
  19504. SpeechLexiconType *LexiconType) = 0;
  19505. virtual HRESULT STDMETHODCALLTYPE get_LangId(
  19506. SpeechLanguageId *LangId) = 0;
  19507. virtual HRESULT STDMETHODCALLTYPE get_PartOfSpeech(
  19508. SpeechPartOfSpeech *PartOfSpeech) = 0;
  19509. virtual HRESULT STDMETHODCALLTYPE get_PhoneIds(
  19510. VARIANT *PhoneIds) = 0;
  19511. virtual HRESULT STDMETHODCALLTYPE get_Symbolic(
  19512. BSTR *Symbolic) = 0;
  19513. };
  19514. #ifdef __CRT_UUID_DECL
  19515. __CRT_UUID_DECL(ISpeechLexiconPronunciation, 0x95252c5d, 0x9e43, 0x4f4a, 0x98,0x99, 0x48,0xee,0x73,0x35,0x2f,0x9f)
  19516. #endif
  19517. #else
  19518. typedef struct ISpeechLexiconPronunciationVtbl {
  19519. BEGIN_INTERFACE
  19520. /*** IUnknown methods ***/
  19521. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  19522. ISpeechLexiconPronunciation *This,
  19523. REFIID riid,
  19524. void **ppvObject);
  19525. ULONG (STDMETHODCALLTYPE *AddRef)(
  19526. ISpeechLexiconPronunciation *This);
  19527. ULONG (STDMETHODCALLTYPE *Release)(
  19528. ISpeechLexiconPronunciation *This);
  19529. /*** IDispatch methods ***/
  19530. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  19531. ISpeechLexiconPronunciation *This,
  19532. UINT *pctinfo);
  19533. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  19534. ISpeechLexiconPronunciation *This,
  19535. UINT iTInfo,
  19536. LCID lcid,
  19537. ITypeInfo **ppTInfo);
  19538. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  19539. ISpeechLexiconPronunciation *This,
  19540. REFIID riid,
  19541. LPOLESTR *rgszNames,
  19542. UINT cNames,
  19543. LCID lcid,
  19544. DISPID *rgDispId);
  19545. HRESULT (STDMETHODCALLTYPE *Invoke)(
  19546. ISpeechLexiconPronunciation *This,
  19547. DISPID dispIdMember,
  19548. REFIID riid,
  19549. LCID lcid,
  19550. WORD wFlags,
  19551. DISPPARAMS *pDispParams,
  19552. VARIANT *pVarResult,
  19553. EXCEPINFO *pExcepInfo,
  19554. UINT *puArgErr);
  19555. /*** ISpeechLexiconPronunciation methods ***/
  19556. HRESULT (STDMETHODCALLTYPE *get_Type)(
  19557. ISpeechLexiconPronunciation *This,
  19558. SpeechLexiconType *LexiconType);
  19559. HRESULT (STDMETHODCALLTYPE *get_LangId)(
  19560. ISpeechLexiconPronunciation *This,
  19561. SpeechLanguageId *LangId);
  19562. HRESULT (STDMETHODCALLTYPE *get_PartOfSpeech)(
  19563. ISpeechLexiconPronunciation *This,
  19564. SpeechPartOfSpeech *PartOfSpeech);
  19565. HRESULT (STDMETHODCALLTYPE *get_PhoneIds)(
  19566. ISpeechLexiconPronunciation *This,
  19567. VARIANT *PhoneIds);
  19568. HRESULT (STDMETHODCALLTYPE *get_Symbolic)(
  19569. ISpeechLexiconPronunciation *This,
  19570. BSTR *Symbolic);
  19571. END_INTERFACE
  19572. } ISpeechLexiconPronunciationVtbl;
  19573. interface ISpeechLexiconPronunciation {
  19574. CONST_VTBL ISpeechLexiconPronunciationVtbl* lpVtbl;
  19575. };
  19576. #ifdef COBJMACROS
  19577. #ifndef WIDL_C_INLINE_WRAPPERS
  19578. /*** IUnknown methods ***/
  19579. #define ISpeechLexiconPronunciation_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  19580. #define ISpeechLexiconPronunciation_AddRef(This) (This)->lpVtbl->AddRef(This)
  19581. #define ISpeechLexiconPronunciation_Release(This) (This)->lpVtbl->Release(This)
  19582. /*** IDispatch methods ***/
  19583. #define ISpeechLexiconPronunciation_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  19584. #define ISpeechLexiconPronunciation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  19585. #define ISpeechLexiconPronunciation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  19586. #define ISpeechLexiconPronunciation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  19587. /*** ISpeechLexiconPronunciation methods ***/
  19588. #define ISpeechLexiconPronunciation_get_Type(This,LexiconType) (This)->lpVtbl->get_Type(This,LexiconType)
  19589. #define ISpeechLexiconPronunciation_get_LangId(This,LangId) (This)->lpVtbl->get_LangId(This,LangId)
  19590. #define ISpeechLexiconPronunciation_get_PartOfSpeech(This,PartOfSpeech) (This)->lpVtbl->get_PartOfSpeech(This,PartOfSpeech)
  19591. #define ISpeechLexiconPronunciation_get_PhoneIds(This,PhoneIds) (This)->lpVtbl->get_PhoneIds(This,PhoneIds)
  19592. #define ISpeechLexiconPronunciation_get_Symbolic(This,Symbolic) (This)->lpVtbl->get_Symbolic(This,Symbolic)
  19593. #else
  19594. /*** IUnknown methods ***/
  19595. static FORCEINLINE HRESULT ISpeechLexiconPronunciation_QueryInterface(ISpeechLexiconPronunciation* This,REFIID riid,void **ppvObject) {
  19596. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  19597. }
  19598. static FORCEINLINE ULONG ISpeechLexiconPronunciation_AddRef(ISpeechLexiconPronunciation* This) {
  19599. return This->lpVtbl->AddRef(This);
  19600. }
  19601. static FORCEINLINE ULONG ISpeechLexiconPronunciation_Release(ISpeechLexiconPronunciation* This) {
  19602. return This->lpVtbl->Release(This);
  19603. }
  19604. /*** IDispatch methods ***/
  19605. static FORCEINLINE HRESULT ISpeechLexiconPronunciation_GetTypeInfoCount(ISpeechLexiconPronunciation* This,UINT *pctinfo) {
  19606. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  19607. }
  19608. static FORCEINLINE HRESULT ISpeechLexiconPronunciation_GetTypeInfo(ISpeechLexiconPronunciation* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  19609. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  19610. }
  19611. static FORCEINLINE HRESULT ISpeechLexiconPronunciation_GetIDsOfNames(ISpeechLexiconPronunciation* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  19612. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  19613. }
  19614. static FORCEINLINE HRESULT ISpeechLexiconPronunciation_Invoke(ISpeechLexiconPronunciation* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  19615. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  19616. }
  19617. /*** ISpeechLexiconPronunciation methods ***/
  19618. static FORCEINLINE HRESULT ISpeechLexiconPronunciation_get_Type(ISpeechLexiconPronunciation* This,SpeechLexiconType *LexiconType) {
  19619. return This->lpVtbl->get_Type(This,LexiconType);
  19620. }
  19621. static FORCEINLINE HRESULT ISpeechLexiconPronunciation_get_LangId(ISpeechLexiconPronunciation* This,SpeechLanguageId *LangId) {
  19622. return This->lpVtbl->get_LangId(This,LangId);
  19623. }
  19624. static FORCEINLINE HRESULT ISpeechLexiconPronunciation_get_PartOfSpeech(ISpeechLexiconPronunciation* This,SpeechPartOfSpeech *PartOfSpeech) {
  19625. return This->lpVtbl->get_PartOfSpeech(This,PartOfSpeech);
  19626. }
  19627. static FORCEINLINE HRESULT ISpeechLexiconPronunciation_get_PhoneIds(ISpeechLexiconPronunciation* This,VARIANT *PhoneIds) {
  19628. return This->lpVtbl->get_PhoneIds(This,PhoneIds);
  19629. }
  19630. static FORCEINLINE HRESULT ISpeechLexiconPronunciation_get_Symbolic(ISpeechLexiconPronunciation* This,BSTR *Symbolic) {
  19631. return This->lpVtbl->get_Symbolic(This,Symbolic);
  19632. }
  19633. #endif
  19634. #endif
  19635. #endif
  19636. #endif /* __ISpeechLexiconPronunciation_INTERFACE_DEFINED__ */
  19637. /*****************************************************************************
  19638. * ISpeechPhoneConverter interface
  19639. */
  19640. #ifndef __ISpeechPhoneConverter_INTERFACE_DEFINED__
  19641. #define __ISpeechPhoneConverter_INTERFACE_DEFINED__
  19642. DEFINE_GUID(IID_ISpeechPhoneConverter, 0xc3e4f353, 0x433f, 0x43d6, 0x89,0xa1, 0x6a,0x62,0xa7,0x05,0x4c,0x3d);
  19643. #if defined(__cplusplus) && !defined(CINTERFACE)
  19644. MIDL_INTERFACE("c3e4f353-433f-43d6-89a1-6a62a7054c3d")
  19645. ISpeechPhoneConverter : public IDispatch
  19646. {
  19647. virtual HRESULT STDMETHODCALLTYPE get_LanguageId(
  19648. SpeechLanguageId *LanguageId) = 0;
  19649. virtual HRESULT STDMETHODCALLTYPE put_LanguageId(
  19650. SpeechLanguageId LanguageId) = 0;
  19651. virtual HRESULT STDMETHODCALLTYPE PhoneToId(
  19652. const BSTR Phonemes,
  19653. VARIANT *IdArray) = 0;
  19654. virtual HRESULT STDMETHODCALLTYPE IdToPhone(
  19655. const VARIANT IdArray,
  19656. BSTR *Phonemes) = 0;
  19657. };
  19658. #ifdef __CRT_UUID_DECL
  19659. __CRT_UUID_DECL(ISpeechPhoneConverter, 0xc3e4f353, 0x433f, 0x43d6, 0x89,0xa1, 0x6a,0x62,0xa7,0x05,0x4c,0x3d)
  19660. #endif
  19661. #else
  19662. typedef struct ISpeechPhoneConverterVtbl {
  19663. BEGIN_INTERFACE
  19664. /*** IUnknown methods ***/
  19665. HRESULT (STDMETHODCALLTYPE *QueryInterface)(
  19666. ISpeechPhoneConverter *This,
  19667. REFIID riid,
  19668. void **ppvObject);
  19669. ULONG (STDMETHODCALLTYPE *AddRef)(
  19670. ISpeechPhoneConverter *This);
  19671. ULONG (STDMETHODCALLTYPE *Release)(
  19672. ISpeechPhoneConverter *This);
  19673. /*** IDispatch methods ***/
  19674. HRESULT (STDMETHODCALLTYPE *GetTypeInfoCount)(
  19675. ISpeechPhoneConverter *This,
  19676. UINT *pctinfo);
  19677. HRESULT (STDMETHODCALLTYPE *GetTypeInfo)(
  19678. ISpeechPhoneConverter *This,
  19679. UINT iTInfo,
  19680. LCID lcid,
  19681. ITypeInfo **ppTInfo);
  19682. HRESULT (STDMETHODCALLTYPE *GetIDsOfNames)(
  19683. ISpeechPhoneConverter *This,
  19684. REFIID riid,
  19685. LPOLESTR *rgszNames,
  19686. UINT cNames,
  19687. LCID lcid,
  19688. DISPID *rgDispId);
  19689. HRESULT (STDMETHODCALLTYPE *Invoke)(
  19690. ISpeechPhoneConverter *This,
  19691. DISPID dispIdMember,
  19692. REFIID riid,
  19693. LCID lcid,
  19694. WORD wFlags,
  19695. DISPPARAMS *pDispParams,
  19696. VARIANT *pVarResult,
  19697. EXCEPINFO *pExcepInfo,
  19698. UINT *puArgErr);
  19699. /*** ISpeechPhoneConverter methods ***/
  19700. HRESULT (STDMETHODCALLTYPE *get_LanguageId)(
  19701. ISpeechPhoneConverter *This,
  19702. SpeechLanguageId *LanguageId);
  19703. HRESULT (STDMETHODCALLTYPE *put_LanguageId)(
  19704. ISpeechPhoneConverter *This,
  19705. SpeechLanguageId LanguageId);
  19706. HRESULT (STDMETHODCALLTYPE *PhoneToId)(
  19707. ISpeechPhoneConverter *This,
  19708. const BSTR Phonemes,
  19709. VARIANT *IdArray);
  19710. HRESULT (STDMETHODCALLTYPE *IdToPhone)(
  19711. ISpeechPhoneConverter *This,
  19712. const VARIANT IdArray,
  19713. BSTR *Phonemes);
  19714. END_INTERFACE
  19715. } ISpeechPhoneConverterVtbl;
  19716. interface ISpeechPhoneConverter {
  19717. CONST_VTBL ISpeechPhoneConverterVtbl* lpVtbl;
  19718. };
  19719. #ifdef COBJMACROS
  19720. #ifndef WIDL_C_INLINE_WRAPPERS
  19721. /*** IUnknown methods ***/
  19722. #define ISpeechPhoneConverter_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  19723. #define ISpeechPhoneConverter_AddRef(This) (This)->lpVtbl->AddRef(This)
  19724. #define ISpeechPhoneConverter_Release(This) (This)->lpVtbl->Release(This)
  19725. /*** IDispatch methods ***/
  19726. #define ISpeechPhoneConverter_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  19727. #define ISpeechPhoneConverter_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  19728. #define ISpeechPhoneConverter_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  19729. #define ISpeechPhoneConverter_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  19730. /*** ISpeechPhoneConverter methods ***/
  19731. #define ISpeechPhoneConverter_get_LanguageId(This,LanguageId) (This)->lpVtbl->get_LanguageId(This,LanguageId)
  19732. #define ISpeechPhoneConverter_put_LanguageId(This,LanguageId) (This)->lpVtbl->put_LanguageId(This,LanguageId)
  19733. #define ISpeechPhoneConverter_PhoneToId(This,Phonemes,IdArray) (This)->lpVtbl->PhoneToId(This,Phonemes,IdArray)
  19734. #define ISpeechPhoneConverter_IdToPhone(This,IdArray,Phonemes) (This)->lpVtbl->IdToPhone(This,IdArray,Phonemes)
  19735. #else
  19736. /*** IUnknown methods ***/
  19737. static FORCEINLINE HRESULT ISpeechPhoneConverter_QueryInterface(ISpeechPhoneConverter* This,REFIID riid,void **ppvObject) {
  19738. return This->lpVtbl->QueryInterface(This,riid,ppvObject);
  19739. }
  19740. static FORCEINLINE ULONG ISpeechPhoneConverter_AddRef(ISpeechPhoneConverter* This) {
  19741. return This->lpVtbl->AddRef(This);
  19742. }
  19743. static FORCEINLINE ULONG ISpeechPhoneConverter_Release(ISpeechPhoneConverter* This) {
  19744. return This->lpVtbl->Release(This);
  19745. }
  19746. /*** IDispatch methods ***/
  19747. static FORCEINLINE HRESULT ISpeechPhoneConverter_GetTypeInfoCount(ISpeechPhoneConverter* This,UINT *pctinfo) {
  19748. return This->lpVtbl->GetTypeInfoCount(This,pctinfo);
  19749. }
  19750. static FORCEINLINE HRESULT ISpeechPhoneConverter_GetTypeInfo(ISpeechPhoneConverter* This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo) {
  19751. return This->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo);
  19752. }
  19753. static FORCEINLINE HRESULT ISpeechPhoneConverter_GetIDsOfNames(ISpeechPhoneConverter* This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId) {
  19754. return This->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId);
  19755. }
  19756. static FORCEINLINE HRESULT ISpeechPhoneConverter_Invoke(ISpeechPhoneConverter* This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr) {
  19757. return This->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr);
  19758. }
  19759. /*** ISpeechPhoneConverter methods ***/
  19760. static FORCEINLINE HRESULT ISpeechPhoneConverter_get_LanguageId(ISpeechPhoneConverter* This,SpeechLanguageId *LanguageId) {
  19761. return This->lpVtbl->get_LanguageId(This,LanguageId);
  19762. }
  19763. static FORCEINLINE HRESULT ISpeechPhoneConverter_put_LanguageId(ISpeechPhoneConverter* This,SpeechLanguageId LanguageId) {
  19764. return This->lpVtbl->put_LanguageId(This,LanguageId);
  19765. }
  19766. static FORCEINLINE HRESULT ISpeechPhoneConverter_PhoneToId(ISpeechPhoneConverter* This,const BSTR Phonemes,VARIANT *IdArray) {
  19767. return This->lpVtbl->PhoneToId(This,Phonemes,IdArray);
  19768. }
  19769. static FORCEINLINE HRESULT ISpeechPhoneConverter_IdToPhone(ISpeechPhoneConverter* This,const VARIANT IdArray,BSTR *Phonemes) {
  19770. return This->lpVtbl->IdToPhone(This,IdArray,Phonemes);
  19771. }
  19772. #endif
  19773. #endif
  19774. #endif
  19775. #endif /* __ISpeechPhoneConverter_INTERFACE_DEFINED__ */
  19776. /*****************************************************************************
  19777. * SpNotifyTranslator coclass
  19778. */
  19779. DEFINE_GUID(CLSID_SpNotifyTranslator, 0xe2ae5372, 0x5d40, 0x11d2, 0x96,0x0e, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  19780. #ifdef __cplusplus
  19781. class DECLSPEC_UUID("e2ae5372-5d40-11d2-960e-00c04f8ee628") SpNotifyTranslator;
  19782. #ifdef __CRT_UUID_DECL
  19783. __CRT_UUID_DECL(SpNotifyTranslator, 0xe2ae5372, 0x5d40, 0x11d2, 0x96,0x0e, 0x00,0xc0,0x4f,0x8e,0xe6,0x28)
  19784. #endif
  19785. #endif
  19786. /*****************************************************************************
  19787. * SpObjectTokenCategory coclass
  19788. */
  19789. DEFINE_GUID(CLSID_SpObjectTokenCategory, 0xa910187f, 0x0c7a, 0x45ac, 0x92,0xcc, 0x59,0xed,0xaf,0xb7,0x7b,0x53);
  19790. #ifdef __cplusplus
  19791. class DECLSPEC_UUID("a910187f-0c7a-45ac-92cc-59edafb77b53") SpObjectTokenCategory;
  19792. #ifdef __CRT_UUID_DECL
  19793. __CRT_UUID_DECL(SpObjectTokenCategory, 0xa910187f, 0x0c7a, 0x45ac, 0x92,0xcc, 0x59,0xed,0xaf,0xb7,0x7b,0x53)
  19794. #endif
  19795. #endif
  19796. /*****************************************************************************
  19797. * SpObjectToken coclass
  19798. */
  19799. DEFINE_GUID(CLSID_SpObjectToken, 0xef411752, 0x3736, 0x4cb4, 0x9c,0x8c, 0x8e,0xf4,0xcc,0xb5,0x8e,0xfe);
  19800. #ifdef __cplusplus
  19801. class DECLSPEC_UUID("ef411752-3736-4cb4-9c8c-8ef4ccb58efe") SpObjectToken;
  19802. #ifdef __CRT_UUID_DECL
  19803. __CRT_UUID_DECL(SpObjectToken, 0xef411752, 0x3736, 0x4cb4, 0x9c,0x8c, 0x8e,0xf4,0xcc,0xb5,0x8e,0xfe)
  19804. #endif
  19805. #endif
  19806. /*****************************************************************************
  19807. * SpResourceManager coclass
  19808. */
  19809. DEFINE_GUID(CLSID_SpResourceManager, 0x96749373, 0x3391, 0x11d2, 0x9e,0xe3, 0x00,0xc0,0x4f,0x79,0x73,0x96);
  19810. #ifdef __cplusplus
  19811. class DECLSPEC_UUID("96749373-3391-11d2-9ee3-00c04f797396") SpResourceManager;
  19812. #ifdef __CRT_UUID_DECL
  19813. __CRT_UUID_DECL(SpResourceManager, 0x96749373, 0x3391, 0x11d2, 0x9e,0xe3, 0x00,0xc0,0x4f,0x79,0x73,0x96)
  19814. #endif
  19815. #endif
  19816. /*****************************************************************************
  19817. * SpStreamFormatConverter coclass
  19818. */
  19819. DEFINE_GUID(CLSID_SpStreamFormatConverter, 0x7013943a, 0xe2ec, 0x11d2, 0xa0,0x86, 0x00,0xc0,0x4f,0x8e,0xf9,0xb5);
  19820. #ifdef __cplusplus
  19821. class DECLSPEC_UUID("7013943a-e2ec-11d2-a086-00c04f8ef9b5") SpStreamFormatConverter;
  19822. #ifdef __CRT_UUID_DECL
  19823. __CRT_UUID_DECL(SpStreamFormatConverter, 0x7013943a, 0xe2ec, 0x11d2, 0xa0,0x86, 0x00,0xc0,0x4f,0x8e,0xf9,0xb5)
  19824. #endif
  19825. #endif
  19826. /*****************************************************************************
  19827. * SpMMAudioEnum coclass
  19828. */
  19829. DEFINE_GUID(CLSID_SpMMAudioEnum, 0xab1890a0, 0xe91f, 0x11d2, 0xbb,0x91, 0x00,0xc0,0x4f,0x8e,0xe6,0xc0);
  19830. #ifdef __cplusplus
  19831. class DECLSPEC_UUID("ab1890a0-e91f-11d2-bb91-00c04f8ee6c0") SpMMAudioEnum;
  19832. #ifdef __CRT_UUID_DECL
  19833. __CRT_UUID_DECL(SpMMAudioEnum, 0xab1890a0, 0xe91f, 0x11d2, 0xbb,0x91, 0x00,0xc0,0x4f,0x8e,0xe6,0xc0)
  19834. #endif
  19835. #endif
  19836. /*****************************************************************************
  19837. * SpMMAudioIn coclass
  19838. */
  19839. DEFINE_GUID(CLSID_SpMMAudioIn, 0xcf3d2e50, 0x53f2, 0x11d2, 0x96,0x0c, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  19840. #ifdef __cplusplus
  19841. class DECLSPEC_UUID("cf3d2e50-53f2-11d2-960c-00c04f8ee628") SpMMAudioIn;
  19842. #ifdef __CRT_UUID_DECL
  19843. __CRT_UUID_DECL(SpMMAudioIn, 0xcf3d2e50, 0x53f2, 0x11d2, 0x96,0x0c, 0x00,0xc0,0x4f,0x8e,0xe6,0x28)
  19844. #endif
  19845. #endif
  19846. /*****************************************************************************
  19847. * SpMMAudioOut coclass
  19848. */
  19849. DEFINE_GUID(CLSID_SpMMAudioOut, 0xa8c680eb, 0x3d32, 0x11d2, 0x9e,0xe7, 0x00,0xc0,0x4f,0x79,0x73,0x96);
  19850. #ifdef __cplusplus
  19851. class DECLSPEC_UUID("a8c680eb-3d32-11d2-9ee7-00c04f797396") SpMMAudioOut;
  19852. #ifdef __CRT_UUID_DECL
  19853. __CRT_UUID_DECL(SpMMAudioOut, 0xa8c680eb, 0x3d32, 0x11d2, 0x9e,0xe7, 0x00,0xc0,0x4f,0x79,0x73,0x96)
  19854. #endif
  19855. #endif
  19856. /*****************************************************************************
  19857. * SpStream coclass
  19858. */
  19859. DEFINE_GUID(CLSID_SpStream, 0x715d9c59, 0x4442, 0x11d2, 0x96,0x05, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  19860. #ifdef __cplusplus
  19861. class DECLSPEC_UUID("715d9c59-4442-11d2-9605-00c04f8ee628") SpStream;
  19862. #ifdef __CRT_UUID_DECL
  19863. __CRT_UUID_DECL(SpStream, 0x715d9c59, 0x4442, 0x11d2, 0x96,0x05, 0x00,0xc0,0x4f,0x8e,0xe6,0x28)
  19864. #endif
  19865. #endif
  19866. /*****************************************************************************
  19867. * SpVoice coclass
  19868. */
  19869. DEFINE_GUID(CLSID_SpVoice, 0x96749377, 0x3391, 0x11d2, 0x9e,0xe3, 0x00,0xc0,0x4f,0x79,0x73,0x96);
  19870. #ifdef __cplusplus
  19871. class DECLSPEC_UUID("96749377-3391-11d2-9ee3-00c04f797396") SpVoice;
  19872. #ifdef __CRT_UUID_DECL
  19873. __CRT_UUID_DECL(SpVoice, 0x96749377, 0x3391, 0x11d2, 0x9e,0xe3, 0x00,0xc0,0x4f,0x79,0x73,0x96)
  19874. #endif
  19875. #endif
  19876. /*****************************************************************************
  19877. * SpSharedRecoContext coclass
  19878. */
  19879. DEFINE_GUID(CLSID_SpSharedRecoContext, 0x47206204, 0x5eca, 0x11d2, 0x96,0x0f, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  19880. #ifdef __cplusplus
  19881. class DECLSPEC_UUID("47206204-5eca-11d2-960f-00c04f8ee628") SpSharedRecoContext;
  19882. #ifdef __CRT_UUID_DECL
  19883. __CRT_UUID_DECL(SpSharedRecoContext, 0x47206204, 0x5eca, 0x11d2, 0x96,0x0f, 0x00,0xc0,0x4f,0x8e,0xe6,0x28)
  19884. #endif
  19885. #endif
  19886. /*****************************************************************************
  19887. * SpInprocRecognizer coclass
  19888. */
  19889. DEFINE_GUID(CLSID_SpInprocRecognizer, 0x41b89b6b, 0x9399, 0x11d2, 0x96,0x23, 0x00,0xc0,0x4f,0x8e,0xe6,0x28);
  19890. #ifdef __cplusplus
  19891. class DECLSPEC_UUID("41b89b6b-9399-11d2-9623-00c04f8ee628") SpInprocRecognizer;
  19892. #ifdef __CRT_UUID_DECL
  19893. __CRT_UUID_DECL(SpInprocRecognizer, 0x41b89b6b, 0x9399, 0x11d2, 0x96,0x23, 0x00,0xc0,0x4f,0x8e,0xe6,0x28)
  19894. #endif
  19895. #endif
  19896. /*****************************************************************************
  19897. * SpSharedRecognizer coclass
  19898. */
  19899. DEFINE_GUID(CLSID_SpSharedRecognizer, 0x3bee4890, 0x4fe9, 0x4a37, 0x8c,0x1e, 0x5e,0x7e,0x12,0x79,0x1c,0x1f);
  19900. #ifdef __cplusplus
  19901. class DECLSPEC_UUID("3bee4890-4fe9-4a37-8c1e-5e7e12791c1f") SpSharedRecognizer;
  19902. #ifdef __CRT_UUID_DECL
  19903. __CRT_UUID_DECL(SpSharedRecognizer, 0x3bee4890, 0x4fe9, 0x4a37, 0x8c,0x1e, 0x5e,0x7e,0x12,0x79,0x1c,0x1f)
  19904. #endif
  19905. #endif
  19906. /*****************************************************************************
  19907. * SpLexicon coclass
  19908. */
  19909. DEFINE_GUID(CLSID_SpLexicon, 0x0655e396, 0x25d0, 0x11d3, 0x9c,0x26, 0x00,0xc0,0x4f,0x8e,0xf8,0x7c);
  19910. #ifdef __cplusplus
  19911. class DECLSPEC_UUID("0655e396-25d0-11d3-9c26-00c04f8ef87c") SpLexicon;
  19912. #ifdef __CRT_UUID_DECL
  19913. __CRT_UUID_DECL(SpLexicon, 0x0655e396, 0x25d0, 0x11d3, 0x9c,0x26, 0x00,0xc0,0x4f,0x8e,0xf8,0x7c)
  19914. #endif
  19915. #endif
  19916. /*****************************************************************************
  19917. * SpUnCompressedLexicon coclass
  19918. */
  19919. DEFINE_GUID(CLSID_SpUnCompressedLexicon, 0xc9e37c15, 0xdf92, 0x4727, 0x85,0xd6, 0x72,0xe5,0xee,0xb6,0x99,0x5a);
  19920. #ifdef __cplusplus
  19921. class DECLSPEC_UUID("c9e37c15-df92-4727-85d6-72e5eeb6995a") SpUnCompressedLexicon;
  19922. #ifdef __CRT_UUID_DECL
  19923. __CRT_UUID_DECL(SpUnCompressedLexicon, 0xc9e37c15, 0xdf92, 0x4727, 0x85,0xd6, 0x72,0xe5,0xee,0xb6,0x99,0x5a)
  19924. #endif
  19925. #endif
  19926. /*****************************************************************************
  19927. * SpCompressedLexicon coclass
  19928. */
  19929. DEFINE_GUID(CLSID_SpCompressedLexicon, 0x90903716, 0x2f42, 0x11d3, 0x9c,0x26, 0x00,0xc0,0x4f,0x8e,0xf8,0x7c);
  19930. #ifdef __cplusplus
  19931. class DECLSPEC_UUID("90903716-2f42-11d3-9c26-00c04f8ef87c") SpCompressedLexicon;
  19932. #ifdef __CRT_UUID_DECL
  19933. __CRT_UUID_DECL(SpCompressedLexicon, 0x90903716, 0x2f42, 0x11d3, 0x9c,0x26, 0x00,0xc0,0x4f,0x8e,0xf8,0x7c)
  19934. #endif
  19935. #endif
  19936. /*****************************************************************************
  19937. * SpShortcut coclass
  19938. */
  19939. DEFINE_GUID(CLSID_SpShortcut, 0x0d722f1a, 0x9fcf, 0x4e62, 0x96,0xd8, 0x6d,0xf8,0xf0,0x1a,0x26,0xaa);
  19940. #ifdef __cplusplus
  19941. class DECLSPEC_UUID("0d722f1a-9fcf-4e62-96d8-6df8f01a26aa") SpShortcut;
  19942. #ifdef __CRT_UUID_DECL
  19943. __CRT_UUID_DECL(SpShortcut, 0x0d722f1a, 0x9fcf, 0x4e62, 0x96,0xd8, 0x6d,0xf8,0xf0,0x1a,0x26,0xaa)
  19944. #endif
  19945. #endif
  19946. /*****************************************************************************
  19947. * SpPhoneConverter coclass
  19948. */
  19949. DEFINE_GUID(CLSID_SpPhoneConverter, 0x9185f743, 0x1143, 0x4c28, 0x86,0xb5, 0xbf,0xf1,0x4f,0x20,0xe5,0xc8);
  19950. #ifdef __cplusplus
  19951. class DECLSPEC_UUID("9185f743-1143-4c28-86b5-bff14f20e5c8") SpPhoneConverter;
  19952. #ifdef __CRT_UUID_DECL
  19953. __CRT_UUID_DECL(SpPhoneConverter, 0x9185f743, 0x1143, 0x4c28, 0x86,0xb5, 0xbf,0xf1,0x4f,0x20,0xe5,0xc8)
  19954. #endif
  19955. #endif
  19956. /*****************************************************************************
  19957. * SpPhoneticAlphabetConverter coclass
  19958. */
  19959. DEFINE_GUID(CLSID_SpPhoneticAlphabetConverter, 0x4f414126, 0xdfe3, 0x4629, 0x99,0xee, 0x79,0x79,0x78,0x31,0x7e,0xad);
  19960. #ifdef __cplusplus
  19961. class DECLSPEC_UUID("4f414126-dfe3-4629-99ee-797978317ead") SpPhoneticAlphabetConverter;
  19962. #ifdef __CRT_UUID_DECL
  19963. __CRT_UUID_DECL(SpPhoneticAlphabetConverter, 0x4f414126, 0xdfe3, 0x4629, 0x99,0xee, 0x79,0x79,0x78,0x31,0x7e,0xad)
  19964. #endif
  19965. #endif
  19966. /*****************************************************************************
  19967. * SpNullPhoneConverter coclass
  19968. */
  19969. DEFINE_GUID(CLSID_SpNullPhoneConverter, 0x455f24e9, 0x7396, 0x4a16, 0x97,0x15, 0x7c,0x0f,0xdb,0xe3,0xef,0xe3);
  19970. #ifdef __cplusplus
  19971. class DECLSPEC_UUID("455f24e9-7396-4a16-9715-7c0fdbe3efe3") SpNullPhoneConverter;
  19972. #ifdef __CRT_UUID_DECL
  19973. __CRT_UUID_DECL(SpNullPhoneConverter, 0x455f24e9, 0x7396, 0x4a16, 0x97,0x15, 0x7c,0x0f,0xdb,0xe3,0xef,0xe3)
  19974. #endif
  19975. #endif
  19976. /*****************************************************************************
  19977. * SpTextSelectionInformation coclass
  19978. */
  19979. DEFINE_GUID(CLSID_SpTextSelectionInformation, 0x0f92030a, 0xcbfd, 0x4ab8, 0xa1,0x64, 0xff,0x59,0x85,0x54,0x7f,0xf6);
  19980. #ifdef __cplusplus
  19981. class DECLSPEC_UUID("0f92030a-cbfd-4ab8-a164-ff5985547ff6") SpTextSelectionInformation;
  19982. #ifdef __CRT_UUID_DECL
  19983. __CRT_UUID_DECL(SpTextSelectionInformation, 0x0f92030a, 0xcbfd, 0x4ab8, 0xa1,0x64, 0xff,0x59,0x85,0x54,0x7f,0xf6)
  19984. #endif
  19985. #endif
  19986. /*****************************************************************************
  19987. * SpPhraseInfoBuilder coclass
  19988. */
  19989. DEFINE_GUID(CLSID_SpPhraseInfoBuilder, 0xc23fc28d, 0xc55f, 0x4720, 0x8b,0x32, 0x91,0xf7,0x3c,0x2b,0xd5,0xd1);
  19990. #ifdef __cplusplus
  19991. class DECLSPEC_UUID("c23fc28d-c55f-4720-8b32-91f73c2bd5d1") SpPhraseInfoBuilder;
  19992. #ifdef __CRT_UUID_DECL
  19993. __CRT_UUID_DECL(SpPhraseInfoBuilder, 0xc23fc28d, 0xc55f, 0x4720, 0x8b,0x32, 0x91,0xf7,0x3c,0x2b,0xd5,0xd1)
  19994. #endif
  19995. #endif
  19996. /*****************************************************************************
  19997. * SpAudioFormat coclass
  19998. */
  19999. DEFINE_GUID(CLSID_SpAudioFormat, 0x9ef96870, 0xe160, 0x4792, 0x82,0x0d, 0x48,0xcf,0x06,0x49,0xe4,0xec);
  20000. #ifdef __cplusplus
  20001. class DECLSPEC_UUID("9ef96870-e160-4792-820d-48cf0649e4ec") SpAudioFormat;
  20002. #ifdef __CRT_UUID_DECL
  20003. __CRT_UUID_DECL(SpAudioFormat, 0x9ef96870, 0xe160, 0x4792, 0x82,0x0d, 0x48,0xcf,0x06,0x49,0xe4,0xec)
  20004. #endif
  20005. #endif
  20006. /*****************************************************************************
  20007. * SpWaveFormatEx coclass
  20008. */
  20009. DEFINE_GUID(CLSID_SpWaveFormatEx, 0xc79a574c, 0x63be, 0x44b9, 0x80,0x1f, 0x28,0x3f,0x87,0xf8,0x98,0xbe);
  20010. #ifdef __cplusplus
  20011. class DECLSPEC_UUID("c79a574c-63be-44b9-801f-283f87f898be") SpWaveFormatEx;
  20012. #ifdef __CRT_UUID_DECL
  20013. __CRT_UUID_DECL(SpWaveFormatEx, 0xc79a574c, 0x63be, 0x44b9, 0x80,0x1f, 0x28,0x3f,0x87,0xf8,0x98,0xbe)
  20014. #endif
  20015. #endif
  20016. /*****************************************************************************
  20017. * SpInProcRecoContext coclass
  20018. */
  20019. DEFINE_GUID(CLSID_SpInProcRecoContext, 0x73ad6842, 0xace0, 0x45e8, 0xa4,0xdd, 0x87,0x95,0x88,0x1a,0x2c,0x2a);
  20020. #ifdef __cplusplus
  20021. class DECLSPEC_UUID("73ad6842-ace0-45e8-a4dd-8795881a2c2a") SpInProcRecoContext;
  20022. #ifdef __CRT_UUID_DECL
  20023. __CRT_UUID_DECL(SpInProcRecoContext, 0x73ad6842, 0xace0, 0x45e8, 0xa4,0xdd, 0x87,0x95,0x88,0x1a,0x2c,0x2a)
  20024. #endif
  20025. #endif
  20026. /*****************************************************************************
  20027. * SpCustomStream coclass
  20028. */
  20029. DEFINE_GUID(CLSID_SpCustomStream, 0x8dbef13f, 0x1948, 0x4aa8, 0x8c,0xf0, 0x04,0x8e,0xeb,0xed,0x95,0xd8);
  20030. #ifdef __cplusplus
  20031. class DECLSPEC_UUID("8dbef13f-1948-4aa8-8cf0-048eebed95d8") SpCustomStream;
  20032. #ifdef __CRT_UUID_DECL
  20033. __CRT_UUID_DECL(SpCustomStream, 0x8dbef13f, 0x1948, 0x4aa8, 0x8c,0xf0, 0x04,0x8e,0xeb,0xed,0x95,0xd8)
  20034. #endif
  20035. #endif
  20036. /*****************************************************************************
  20037. * SpFileStream coclass
  20038. */
  20039. DEFINE_GUID(CLSID_SpFileStream, 0x947812b3, 0x2ae1, 0x4644, 0xba,0x86, 0x9e,0x90,0xde,0xd7,0xec,0x91);
  20040. #ifdef __cplusplus
  20041. class DECLSPEC_UUID("947812b3-2ae1-4644-ba86-9e90ded7ec91") SpFileStream;
  20042. #ifdef __CRT_UUID_DECL
  20043. __CRT_UUID_DECL(SpFileStream, 0x947812b3, 0x2ae1, 0x4644, 0xba,0x86, 0x9e,0x90,0xde,0xd7,0xec,0x91)
  20044. #endif
  20045. #endif
  20046. /*****************************************************************************
  20047. * SpMemoryStream coclass
  20048. */
  20049. DEFINE_GUID(CLSID_SpMemoryStream, 0x5fb7ef7d, 0xdff4, 0x468a, 0xb6,0xb7, 0x2f,0xcb,0xd1,0x88,0xf9,0x94);
  20050. #ifdef __cplusplus
  20051. class DECLSPEC_UUID("5fb7ef7d-dff4-468a-b6b7-2fcbd188f994") SpMemoryStream;
  20052. #ifdef __CRT_UUID_DECL
  20053. __CRT_UUID_DECL(SpMemoryStream, 0x5fb7ef7d, 0xdff4, 0x468a, 0xb6,0xb7, 0x2f,0xcb,0xd1,0x88,0xf9,0x94)
  20054. #endif
  20055. #endif
  20056. #ifndef __ISpXMLRecoResult_FWD_DEFINED__
  20057. #define __ISpXMLRecoResult_FWD_DEFINED__
  20058. typedef interface ISpXMLRecoResult ISpXMLRecoResult;
  20059. #ifdef __cplusplus
  20060. interface ISpXMLRecoResult;
  20061. #endif /* __cplusplus */
  20062. #endif
  20063. #ifndef __ISpRecoGrammar2_FWD_DEFINED__
  20064. #define __ISpRecoGrammar2_FWD_DEFINED__
  20065. typedef interface ISpRecoGrammar2 ISpRecoGrammar2;
  20066. #ifdef __cplusplus
  20067. interface ISpRecoGrammar2;
  20068. #endif /* __cplusplus */
  20069. #endif
  20070. #ifndef __ISpeechResourceLoader_FWD_DEFINED__
  20071. #define __ISpeechResourceLoader_FWD_DEFINED__
  20072. typedef interface ISpeechResourceLoader ISpeechResourceLoader;
  20073. #ifdef __cplusplus
  20074. interface ISpeechResourceLoader;
  20075. #endif /* __cplusplus */
  20076. #endif
  20077. #endif /* __SpeechLib_LIBRARY_DEFINED__ */
  20078. /* Begin additional prototypes for all interfaces */
  20079. ULONG __RPC_USER HWND_UserSize (ULONG *, ULONG, HWND *);
  20080. unsigned char * __RPC_USER HWND_UserMarshal (ULONG *, unsigned char *, HWND *);
  20081. unsigned char * __RPC_USER HWND_UserUnmarshal(ULONG *, unsigned char *, HWND *);
  20082. void __RPC_USER HWND_UserFree (ULONG *, HWND *);
  20083. ULONG __RPC_USER BSTR_UserSize (ULONG *, ULONG, BSTR *);
  20084. unsigned char * __RPC_USER BSTR_UserMarshal (ULONG *, unsigned char *, BSTR *);
  20085. unsigned char * __RPC_USER BSTR_UserUnmarshal(ULONG *, unsigned char *, BSTR *);
  20086. void __RPC_USER BSTR_UserFree (ULONG *, BSTR *);
  20087. ULONG __RPC_USER VARIANT_UserSize (ULONG *, ULONG, VARIANT *);
  20088. unsigned char * __RPC_USER VARIANT_UserMarshal (ULONG *, unsigned char *, VARIANT *);
  20089. unsigned char * __RPC_USER VARIANT_UserUnmarshal(ULONG *, unsigned char *, VARIANT *);
  20090. void __RPC_USER VARIANT_UserFree (ULONG *, VARIANT *);
  20091. /* End additional prototypes */
  20092. #ifdef __cplusplus
  20093. }
  20094. #endif
  20095. #endif /* __sapi54_h__ */