struct.inc 228 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970
  1. {
  2. This file is part of the Free Pascal run time library.
  3. This unit contains the record definition for the Win32 API
  4. Copyright (c) 1999-2000 by Florian KLaempfl,
  5. member of the Free Pascal development team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {
  13. Structures.h
  14. Declarations for all the Windows32 API Structures
  15. Copyright (C) 1996 Free Software Foundation, Inc.
  16. Author: Scott Christley <[email protected]>
  17. Date: 1996
  18. This file is part of the Windows32 API Library.
  19. This library is free software; you can redistribute it and/or
  20. modify it under the terms of the GNU Library General Public
  21. License as published by the Free Software Foundation; either
  22. version 2 of the License, or (at your option) any later version.
  23. This library is distributed in the hope that it will be useful,
  24. but WITHOUT ANY WARRANTY; without even the implied warranty of
  25. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  26. Library General Public License for more details.
  27. If you are interested in a warranty or support for this source code,
  28. contact Scott Christley <[email protected]> for more information.
  29. You should have received a copy of the GNU Library General Public
  30. License along with this library; see the file COPYING.LIB.
  31. If not, write to the Free Software Foundation,
  32. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  33. }
  34. {$ifdef read_interface}
  35. Const
  36. IMAGE_SIZEOF_SHORT_NAME = 8;
  37. type
  38. { WARNING
  39. the variable argument list
  40. is not implemented for FPC
  41. va_list is just a dummy record
  42. MvdV: Nevertheless it should be a pointer type, not a record}
  43. va_list = pchar;
  44. ABC = record
  45. abcA : longint;
  46. abcB : UINT;
  47. abcC : longint;
  48. end;
  49. LPABC = ^ABC;
  50. _ABC = ABC;
  51. TABC = ABC;
  52. PABC = ^ABC;
  53. ABCFLOAT = record
  54. abcfA : Single;
  55. abcfB : Single;
  56. abcfC : Single;
  57. end;
  58. LPABCFLOAT = ^ABCFLOAT;
  59. _ABCFLOAT = ABCFLOAT;
  60. TABCFLOAT = ABCFLOAT;
  61. PABCFLOAT = ^ABCFLOAT;
  62. ACCEL = record
  63. fVirt : BYTE;
  64. key : WORD;
  65. cmd : WORD;
  66. end;
  67. LPACCEL = ^ACCEL;
  68. _ACCEL = ACCEL;
  69. TACCEL = ACCEL;
  70. PACCEL = ^ACCEL;
  71. ACE_HEADER = record
  72. AceType : BYTE;
  73. AceFlags : BYTE;
  74. AceSize : WORD;
  75. end;
  76. _ACE_HEADER = ACE_HEADER;
  77. TACE_HEADER = ACE_HEADER;
  78. PACE_HEADER = ^ACE_HEADER;
  79. ACCESS_MASK = DWORD;
  80. REGSAM = ACCESS_MASK;
  81. ACCESS_ALLOWED_ACE = record
  82. Header : ACE_HEADER;
  83. Mask : ACCESS_MASK;
  84. SidStart : DWORD;
  85. end;
  86. _ACCESS_ALLOWED_ACE = ACCESS_ALLOWED_ACE;
  87. TACCESS_ALLOWED_ACE = ACCESS_ALLOWED_ACE;
  88. PACCESS_ALLOWED_ACE = ^ACCESS_ALLOWED_ACE;
  89. ACCESS_DENIED_ACE = record
  90. Header : ACE_HEADER;
  91. Mask : ACCESS_MASK;
  92. SidStart : DWORD;
  93. end;
  94. _ACCESS_DENIED_ACE = ACCESS_DENIED_ACE;
  95. TACCESS_DENIED_ACE = ACCESS_DENIED_ACE;
  96. ACCESSTIMEOUT = record
  97. cbSize : UINT;
  98. dwFlags : DWORD;
  99. iTimeOutMSec : DWORD;
  100. end;
  101. _ACCESSTIMEOUT = ACCESSTIMEOUT;
  102. TACCESSTIMEOUT = ACCESSTIMEOUT;
  103. PACCESSTIMEOUT = ^ACCESSTIMEOUT;
  104. ACL = record
  105. AclRevision : BYTE;
  106. Sbz1 : BYTE;
  107. AclSize : WORD;
  108. AceCount : WORD;
  109. Sbz2 : WORD;
  110. end;
  111. PACL = ^ACL;
  112. _ACL = ACL;
  113. TACL = ACL;
  114. ACL_REVISION_INFORMATION = record
  115. AclRevision : DWORD;
  116. end;
  117. _ACL_REVISION_INFORMATION = ACL_REVISION_INFORMATION;
  118. TACLREVISIONINFORMATION = ACL_REVISION_INFORMATION;
  119. PACLREVISIONINFORMATION = ^ACL_REVISION_INFORMATION;
  120. ACL_SIZE_INFORMATION = record
  121. AceCount : DWORD;
  122. AclBytesInUse : DWORD;
  123. AclBytesFree : DWORD;
  124. end;
  125. _ACL_SIZE_INFORMATION = ACL_SIZE_INFORMATION;
  126. TACLSIZEINFORMATION = ACL_SIZE_INFORMATION;
  127. PACLSIZEINFORMATION = ^ACL_SIZE_INFORMATION;
  128. ACTION_HEADER = record
  129. transport_id : ULONG;
  130. action_code : USHORT;
  131. reserved : USHORT;
  132. end;
  133. _ACTION_HEADER = ACTION_HEADER;
  134. TACTIONHEADER = ACTION_HEADER;
  135. PACTIONHEADER = ^ACTION_HEADER;
  136. ADAPTER_STATUS = record
  137. adapter_address : array[0..5] of UCHAR;
  138. rev_major : UCHAR;
  139. reserved0 : UCHAR;
  140. adapter_type : UCHAR;
  141. rev_minor : UCHAR;
  142. duration : WORD;
  143. frmr_recv : WORD;
  144. frmr_xmit : WORD;
  145. iframe_recv_err : WORD;
  146. xmit_aborts : WORD;
  147. xmit_success : DWORD;
  148. recv_success : DWORD;
  149. iframe_xmit_err : WORD;
  150. recv_buff_unavail : WORD;
  151. t1_timeouts : WORD;
  152. ti_timeouts : WORD;
  153. reserved1 : DWORD;
  154. free_ncbs : WORD;
  155. max_cfg_ncbs : WORD;
  156. max_ncbs : WORD;
  157. xmit_buf_unavail : WORD;
  158. max_dgram_size : WORD;
  159. pending_sess : WORD;
  160. max_cfg_sess : WORD;
  161. max_sess : WORD;
  162. max_sess_pkt_size : WORD;
  163. name_count : WORD;
  164. end;
  165. _ADAPTER_STATUS = ADAPTER_STATUS;
  166. TADAPTERSTATUS = ADAPTER_STATUS;
  167. PADAPTERSTATUS = ^ADAPTER_STATUS;
  168. ADDJOB_INFO_1 = record
  169. Path : LPTSTR;
  170. JobId : DWORD;
  171. end;
  172. _ADDJOB_INFO_1 = ADDJOB_INFO_1;
  173. TADDJOB_INFO_1 = ADDJOB_INFO_1;
  174. PADDJOB_INFO_1 = ^ADDJOB_INFO_1;
  175. ANIMATIONINFO = record
  176. cbSize : UINT;
  177. iMinAnimate : longint;
  178. end;
  179. LPANIMATIONINFO = ^ANIMATIONINFO;
  180. _ANIMATIONINFO = ANIMATIONINFO;
  181. TANIMATIONINFO = ANIMATIONINFO;
  182. PANIMATIONINFO = ^ANIMATIONINFO;
  183. POINT = record
  184. x : LONG;
  185. y : LONG;
  186. end;
  187. LPPOINT = ^POINT;
  188. tagPOINT = POINT;
  189. TPOINT = POINT;
  190. PPOINT = ^POINT;
  191. RECT = record
  192. case Integer of
  193. 0: (Left,Top,Right,Bottom : Longint);
  194. 1: (TopLeft,BottomRight : TPoint);
  195. end;
  196. LPRECT = ^RECT;
  197. _RECT = RECT;
  198. TRECT = RECT;
  199. PRECT = ^RECT;
  200. RECTL = record
  201. left : LONG;
  202. top : LONG;
  203. right : LONG;
  204. bottom : LONG;
  205. end;
  206. _RECTL = RECTL;
  207. TRECTL = RECTL;
  208. PRECTL = ^RECTL;
  209. APPBARDATA = record
  210. cbSize : DWORD;
  211. hWnd : HWND;
  212. uCallbackMessage : UINT;
  213. uEdge : UINT;
  214. rc : RECT;
  215. lParam : LPARAM;
  216. end;
  217. _AppBarData = APPBARDATA;
  218. TAppBarData = APPBARDATA;
  219. PAppBarData = ^APPBARDATA;
  220. BITMAP = record
  221. bmType : LONG;
  222. bmWidth : LONG;
  223. bmHeight : LONG;
  224. bmWidthBytes : LONG;
  225. bmPlanes : WORD;
  226. bmBitsPixel : WORD;
  227. bmBits : LPVOID;
  228. end;
  229. PBITMAP = ^BITMAP;
  230. NPBITMAP = ^BITMAP;
  231. LPBITMAP = ^BITMAP;
  232. tagBITMAP = BITMAP;
  233. TBITMAP = BITMAP;
  234. BITMAPCOREHEADER = record
  235. bcSize : DWORD;
  236. bcWidth : WORD;
  237. bcHeight : WORD;
  238. bcPlanes : WORD;
  239. bcBitCount : WORD;
  240. end;
  241. tagBITMAPCOREHEADER = BITMAPCOREHEADER;
  242. TBITMAPCOREHEADER = BITMAPCOREHEADER;
  243. PBITMAPCOREHEADER = ^BITMAPCOREHEADER;
  244. RGBTRIPLE = record
  245. rgbtBlue : BYTE;
  246. rgbtGreen : BYTE;
  247. rgbtRed : BYTE;
  248. end;
  249. tagRGBTRIPLE = RGBTRIPLE;
  250. TRGBTRIPLE = RGBTRIPLE;
  251. PRGBTRIPLE = ^RGBTRIPLE;
  252. BITMAPCOREINFO = record
  253. bmciHeader : BITMAPCOREHEADER;
  254. bmciColors : array[0..0] of RGBTRIPLE;
  255. end;
  256. PBITMAPCOREINFO = ^BITMAPCOREINFO;
  257. LPBITMAPCOREINFO = ^BITMAPCOREINFO;
  258. _BITMAPCOREINFO = BITMAPCOREINFO;
  259. TBITMAPCOREINFO = BITMAPCOREINFO;
  260. (* error
  261. WORD bfReserved1;
  262. WORD bfReserved2;
  263. in declarator_list *)
  264. BITMAPINFOHEADER = record
  265. biSize : DWORD;
  266. biWidth : LONG;
  267. biHeight : LONG;
  268. biPlanes : WORD;
  269. biBitCount : WORD;
  270. biCompression : DWORD;
  271. biSizeImage : DWORD;
  272. biXPelsPerMeter : LONG;
  273. biYPelsPerMeter : LONG;
  274. biClrUsed : DWORD;
  275. biClrImportant : DWORD;
  276. end;
  277. LPBITMAPINFOHEADER = ^BITMAPINFOHEADER;
  278. TBITMAPINFOHEADER = BITMAPINFOHEADER;
  279. PBITMAPINFOHEADER = ^BITMAPINFOHEADER;
  280. RGBQUAD = record
  281. rgbBlue : BYTE;
  282. rgbGreen : BYTE;
  283. rgbRed : BYTE;
  284. rgbReserved : BYTE;
  285. end;
  286. tagRGBQUAD = RGBQUAD;
  287. TRGBQUAD = RGBQUAD;
  288. PRGBQUAD = ^RGBQUAD;
  289. BITMAPINFO = record
  290. bmiHeader : BITMAPINFOHEADER;
  291. bmiColors : array[0..0] of RGBQUAD;
  292. end;
  293. LPBITMAPINFO = ^BITMAPINFO;
  294. PBITMAPINFO = ^BITMAPINFO;
  295. TBITMAPINFO = BITMAPINFO;
  296. FXPT2DOT30 = longint;
  297. LPFXPT2DOT30 = ^FXPT2DOT30;
  298. TPFXPT2DOT30 = FXPT2DOT30;
  299. PPFXPT2DOT30 = ^FXPT2DOT30;
  300. CIEXYZ = record
  301. ciexyzX : FXPT2DOT30;
  302. ciexyzY : FXPT2DOT30;
  303. ciexyzZ : FXPT2DOT30;
  304. end;
  305. tagCIEXYZ = CIEXYZ;
  306. LPCIEXYZ = ^CIEXYZ;
  307. TPCIEXYZ = CIEXYZ;
  308. PCIEXYZ = ^CIEXYZ;
  309. CIEXYZTRIPLE = record
  310. ciexyzRed : CIEXYZ;
  311. ciexyzGreen : CIEXYZ;
  312. ciexyzBlue : CIEXYZ;
  313. end;
  314. tagCIEXYZTRIPLE = CIEXYZTRIPLE;
  315. LPCIEXYZTRIPLE = ^CIEXYZTRIPLE;
  316. TCIEXYZTRIPLE = CIEXYZTRIPLE;
  317. PCIEXYZTRIPLE = ^CIEXYZTRIPLE;
  318. BITMAPV4HEADER = record
  319. bV4Size : DWORD;
  320. bV4Width : LONG;
  321. bV4Height : LONG;
  322. bV4Planes : WORD;
  323. bV4BitCount : WORD;
  324. bV4V4Compression : DWORD;
  325. bV4SizeImage : DWORD;
  326. bV4XPelsPerMeter : LONG;
  327. bV4YPelsPerMeter : LONG;
  328. bV4ClrUsed : DWORD;
  329. bV4ClrImportant : DWORD;
  330. bV4RedMask : DWORD;
  331. bV4GreenMask : DWORD;
  332. bV4BlueMask : DWORD;
  333. bV4AlphaMask : DWORD;
  334. bV4CSType : DWORD;
  335. bV4Endpoints : CIEXYZTRIPLE;
  336. bV4GammaRed : DWORD;
  337. bV4GammaGreen : DWORD;
  338. bV4GammaBlue : DWORD;
  339. end;
  340. LPBITMAPV4HEADER = ^BITMAPV4HEADER;
  341. TBITMAPV4HEADER = BITMAPV4HEADER;
  342. PBITMAPV4HEADER = ^BITMAPV4HEADER;
  343. BITMAPFILEHEADER = packed record
  344. bfType : Word;
  345. bfSize : DWord;
  346. bfReserved1 : Word;
  347. bfReserved2 : Word;
  348. bfOffBits : DWord;
  349. end;
  350. BLOB = record
  351. cbSize : ULONG;
  352. pBlobData : ^BYTE;
  353. end;
  354. _BLOB = BLOB;
  355. TBLOB = BLOB;
  356. PBLOB = ^BLOB;
  357. SHITEMID = record
  358. cb : USHORT;
  359. abID : array[0..0] of BYTE;
  360. end;
  361. LPSHITEMID = ^SHITEMID;
  362. LPCSHITEMID = ^SHITEMID;
  363. _SHITEMID = SHITEMID;
  364. TSHITEMID = SHITEMID;
  365. PSHITEMID = ^SHITEMID;
  366. ITEMIDLIST = record
  367. mkid : SHITEMID;
  368. end;
  369. LPITEMIDLIST = ^ITEMIDLIST;
  370. LPCITEMIDLIST = ^ITEMIDLIST;
  371. _ITEMIDLIST = ITEMIDLIST;
  372. TITEMIDLIST = ITEMIDLIST;
  373. PITEMIDLIST = ^ITEMIDLIST;
  374. BROWSEINFO = record
  375. hwndOwner : HWND;
  376. pidlRoot : LPCITEMIDLIST;
  377. pszDisplayName : LPSTR;
  378. lpszTitle : LPCSTR;
  379. ulFlags : UINT;
  380. lpfn : BFFCALLBACK;
  381. lParam : LPARAM;
  382. iImage : longint;
  383. end;
  384. LPBROWSEINFO = ^BROWSEINFO;
  385. _browseinfo = BROWSEINFO;
  386. Tbrowseinfo = BROWSEINFO;
  387. PBROWSEINFO = ^BROWSEINFO;
  388. FILETIME = record
  389. dwLowDateTime : DWORD;
  390. dwHighDateTime : DWORD;
  391. end;
  392. LPFILETIME = ^FILETIME;
  393. _FILETIME = FILETIME;
  394. TFILETIME = FILETIME;
  395. PFILETIME = ^FILETIME;
  396. BY_HANDLE_FILE_INFORMATION = record
  397. dwFileAttributes : DWORD;
  398. ftCreationTime : FILETIME;
  399. ftLastAccessTime : FILETIME;
  400. ftLastWriteTime : FILETIME;
  401. dwVolumeSerialNumber : DWORD;
  402. nFileSizeHigh : DWORD;
  403. nFileSizeLow : DWORD;
  404. nNumberOfLinks : DWORD;
  405. nFileIndexHigh : DWORD;
  406. nFileIndexLow : DWORD;
  407. end;
  408. LPBY_HANDLE_FILE_INFORMATION = ^BY_HANDLE_FILE_INFORMATION;
  409. _BY_HANDLE_FILE_INFORMATION = BY_HANDLE_FILE_INFORMATION;
  410. TBYHANDLEFILEINFORMATION = BY_HANDLE_FILE_INFORMATION;
  411. PBYHANDLEFILEINFORMATION = ^BY_HANDLE_FILE_INFORMATION;
  412. FIXED = packed record
  413. fract : WORD;
  414. value : SHORT;
  415. end;
  416. _FIXED = FIXED;
  417. TFIXED = FIXED;
  418. PFIXED = ^FIXED;
  419. POINTFX = record
  420. x : FIXED;
  421. y : FIXED;
  422. end;
  423. tagPOINTFX = POINTFX;
  424. TPOINTFX = POINTFX;
  425. PPOINTFX = ^POINTFX;
  426. POINTL = record
  427. x : LONG;
  428. y : LONG;
  429. end;
  430. _POINTL = POINTL;
  431. TPOINTL = POINTL;
  432. PPOINTL = ^POINTL;
  433. TSmallPoint = record
  434. X,
  435. Y : SHORT;
  436. end;
  437. POINTS = record
  438. x : SHORT;
  439. y : SHORT;
  440. end;
  441. tagPOINTS = POINTS;
  442. TPOINTS = POINTS;
  443. PPOINTS = ^POINTS;
  444. CANDIDATEFORM = record
  445. dwIndex : DWORD;
  446. dwStyle : DWORD;
  447. ptCurrentPos : POINT;
  448. rcArea : RECT;
  449. end;
  450. LPCANDIDATEFORM = ^CANDIDATEFORM;
  451. _tagCANDIDATEFORM = CANDIDATEFORM;
  452. TCANDIDATEFORM = CANDIDATEFORM;
  453. PCANDIDATEFORM = ^CANDIDATEFORM;
  454. CANDIDATELIST = record
  455. dwSize : DWORD;
  456. dwStyle : DWORD;
  457. dwCount : DWORD;
  458. dwSelection : DWORD;
  459. dwPageStart : DWORD;
  460. dwPageSize : DWORD;
  461. dwOffset : array[0..0] of DWORD;
  462. end;
  463. LPCANDIDATELIST = ^CANDIDATELIST;
  464. _tagCANDIDATELIST = CANDIDATELIST;
  465. TCANDIDATELIST = CANDIDATELIST;
  466. PCANDIDATELIST = ^CANDIDATELIST;
  467. CREATESTRUCT = record
  468. lpCreateParams : LPVOID;
  469. hInstance : HINST;
  470. hMenu : HMENU;
  471. hwndParent : HWND;
  472. cy : longint;
  473. cx : longint;
  474. y : longint;
  475. x : longint;
  476. style : LONG;
  477. lpszName : LPCTSTR;
  478. lpszClass : LPCTSTR;
  479. dwExStyle : DWORD;
  480. end;
  481. LPCREATESTRUCT = ^CREATESTRUCT;
  482. tagCREATESTRUCT = CREATESTRUCT;
  483. TCREATESTRUCT = CREATESTRUCT;
  484. PCREATESTRUCT = ^CREATESTRUCT;
  485. CBT_CREATEWND = record
  486. lpcs : LPCREATESTRUCT;
  487. hwndInsertAfter : HWND;
  488. end;
  489. tagCBT_CREATEWND = CBT_CREATEWND;
  490. TCBT_CREATEWND = CBT_CREATEWND;
  491. PCBT_CREATEWND = ^CBT_CREATEWND;
  492. CBTACTIVATESTRUCT = record
  493. fMouse : WINBOOL;
  494. hWndActive : HWND;
  495. end;
  496. tagCBTACTIVATESTRUCT = CBTACTIVATESTRUCT;
  497. TCBTACTIVATESTRUCT = CBTACTIVATESTRUCT;
  498. PCBTACTIVATESTRUCT = ^CBTACTIVATESTRUCT;
  499. CHAR_INFO = record
  500. case longint of
  501. 0 : ( UnicodeChar : WCHAR;
  502. Attributes : Word);
  503. 1 : ( AsciiChar : CHAR );
  504. end;
  505. _CHAR_INFO = CHAR_INFO;
  506. TCHAR_INFO = CHAR_INFO;
  507. PCHAR_INFO = ^CHAR_INFO;
  508. CHARFORMAT = record
  509. cbSize : UINT;
  510. dwMask : DWORD;
  511. dwEffects : DWORD;
  512. yHeight : LONG;
  513. yOffset : LONG;
  514. crTextColor : COLORREF;
  515. bCharSet : BYTE;
  516. bPitchAndFamily : BYTE;
  517. szFaceName : array[0..(LF_FACESIZE)-1] of TCHAR;
  518. end;
  519. _charformat = CHARFORMAT;
  520. Tcharformat = CHARFORMAT;
  521. Pcharformat = ^CHARFORMAT;
  522. CHARRANGE = record
  523. cpMin : LONG;
  524. cpMax : LONG;
  525. end;
  526. _charrange = CHARRANGE;
  527. Tcharrange = CHARRANGE;
  528. Pcharrange = ^CHARRANGE;
  529. CHARSET = record
  530. aflBlock : array[0..2] of DWORD;
  531. flLang : DWORD;
  532. end;
  533. tagCHARSET = CHARSET;
  534. TCHARSET = CHARSET;
  535. PCHARSET = ^CHARSET;
  536. FONTSIGNATURE = record
  537. fsUsb : array[0..3] of DWORD;
  538. fsCsb : array[0..1] of DWORD;
  539. end;
  540. LPFONTSIGNATURE = ^FONTSIGNATURE;
  541. tagFONTSIGNATURE = FONTSIGNATURE;
  542. TFONTSIGNATURE = FONTSIGNATURE;
  543. PFONTSIGNATURE = ^FONTSIGNATURE;
  544. CHARSETINFO = record
  545. ciCharset : UINT;
  546. ciACP : UINT;
  547. fs : FONTSIGNATURE;
  548. end;
  549. LPCHARSETINFO = ^CHARSETINFO;
  550. TCHARSETINFO = CHARSETINFO;
  551. PCHARSETINFO = ^CHARSETINFO;
  552. {CHOOSECOLOR = record confilcts with function ChooseColor }
  553. TCHOOSECOLOR = record
  554. lStructSize : DWORD;
  555. hwndOwner : HWND;
  556. hInstance : HWND;
  557. rgbResult : COLORREF;
  558. lpCustColors : ^COLORREF;
  559. Flags : DWORD;
  560. lCustData : LPARAM;
  561. lpfnHook : LPCCHOOKPROC;
  562. lpTemplateName : LPCTSTR;
  563. end;
  564. LPCHOOSECOLOR = ^TCHOOSECOLOR;
  565. PCHOOSECOLOR = ^TCHOOSECOLOR;
  566. LOGFONT = record
  567. lfHeight : LONG;
  568. lfWidth : LONG;
  569. lfEscapement : LONG;
  570. lfOrientation : LONG;
  571. lfWeight : LONG;
  572. lfItalic : BYTE;
  573. lfUnderline : BYTE;
  574. lfStrikeOut : BYTE;
  575. lfCharSet : BYTE;
  576. lfOutPrecision : BYTE;
  577. lfClipPrecision : BYTE;
  578. lfQuality : BYTE;
  579. lfPitchAndFamily : BYTE;
  580. lfFaceName : array[0..(LF_FACESIZE)-1] of TCHAR;
  581. end;
  582. LPLOGFONT = ^LOGFONT;
  583. TLOGFONT = LOGFONT;
  584. TLOGFONTA = LOGFONT;
  585. PLOGFONT = ^LOGFONT;
  586. PLOGFONTA = PLOGFONT;
  587. LOGFONTW = record
  588. lfHeight: LONG;
  589. lfWidth: LONG;
  590. lfEscapement: LONG;
  591. lfOrientation: LONG;
  592. lfWeight: LONG;
  593. lfItalic: BYTE;
  594. lfUnderline: BYTE;
  595. lfStrikeOut: BYTE;
  596. lfCharSet: BYTE;
  597. lfOutPrecision: BYTE;
  598. lfClipPrecision: BYTE;
  599. lfQuality: BYTE;
  600. lfPitchAndFamily: BYTE;
  601. lfFaceName: array [0..LF_FACESIZE - 1] of WCHAR;
  602. end;
  603. LPLOGFONTW = ^LOGFONTW;
  604. NPLOGFONTW = ^LOGFONTW;
  605. TLogFontW = LOGFONTW;
  606. PLogFontW = ^TLogFontW;
  607. {CHOOSEFONT = record conflicts with ChosseFont function }
  608. TCHOOSEFONT = record
  609. lStructSize : DWORD;
  610. hwndOwner : HWND;
  611. hDC : HDC;
  612. lpLogFont : LPLOGFONT;
  613. iPointSize : WINT;
  614. Flags : DWORD;
  615. rgbColors : DWORD;
  616. lCustData : LPARAM;
  617. lpfnHook : LPCFHOOKPROC;
  618. lpTemplateName : LPCTSTR;
  619. hInstance : HINST;
  620. lpszStyle : LPTSTR;
  621. nFontType : WORD;
  622. ___MISSING_ALIGNMENT__ : WORD;
  623. nSizeMin : WINT;
  624. nSizeMax : WINT;
  625. end;
  626. LPCHOOSEFONT = ^TCHOOSEFONT;
  627. PCHOOSEFONT = ^TCHOOSEFONT;
  628. CIDA = record
  629. cidl : UINT;
  630. aoffset : array[0..0] of UINT;
  631. end;
  632. LPIDA = ^CIDA;
  633. _IDA = CIDA;
  634. TIDA = CIDA;
  635. PIDA = ^CIDA;
  636. CLIENTCREATESTRUCT = record
  637. hWindowMenu : HANDLE;
  638. idFirstChild : UINT;
  639. end;
  640. LPCLIENTCREATESTRUCT = ^CLIENTCREATESTRUCT;
  641. tagCLIENTCREATESTRUCT = CLIENTCREATESTRUCT;
  642. TCLIENTCREATESTRUCT = CLIENTCREATESTRUCT;
  643. PCLIENTCREATESTRUCT = ^CLIENTCREATESTRUCT;
  644. CMINVOKECOMMANDINFO = record
  645. cbSize : DWORD;
  646. fMask : DWORD;
  647. hwnd : HWND;
  648. lpVerb : LPCSTR;
  649. lpParameters : LPCSTR;
  650. lpDirectory : LPCSTR;
  651. nShow : longint;
  652. dwHotKey : DWORD;
  653. hIcon : HANDLE;
  654. end;
  655. LPCMINVOKECOMMANDINFO = ^CMINVOKECOMMANDINFO;
  656. _CMInvokeCommandInfo = CMINVOKECOMMANDINFO;
  657. TCMInvokeCommandInfo = CMINVOKECOMMANDINFO;
  658. PCMInvokeCommandInfo = ^CMINVOKECOMMANDINFO;
  659. COLORADJUSTMENT = record
  660. caSize : WORD;
  661. caFlags : WORD;
  662. caIlluminantIndex : WORD;
  663. caRedGamma : WORD;
  664. caGreenGamma : WORD;
  665. caBlueGamma : WORD;
  666. caReferenceBlack : WORD;
  667. caReferenceWhite : WORD;
  668. caContrast : SHORT;
  669. caBrightness : SHORT;
  670. caColorfulness : SHORT;
  671. caRedGreenTint : SHORT;
  672. end;
  673. LPCOLORADJUSTMENT = ^COLORADJUSTMENT;
  674. tagCOLORADJUSTMENT = COLORADJUSTMENT;
  675. TCOLORADJUSTMENT = COLORADJUSTMENT;
  676. PCOLORADJUSTMENT = ^COLORADJUSTMENT;
  677. COLORMAP = record
  678. from : COLORREF;
  679. _to : COLORREF;
  680. end;
  681. LPCOLORMAP = ^COLORMAP;
  682. _COLORMAP = COLORMAP;
  683. TCOLORMAP = COLORMAP;
  684. PCOLORMAP = ^COLORMAP;
  685. DCB = record
  686. DCBlength : DWORD;
  687. BaudRate : DWORD;
  688. flags : DWORD;
  689. wReserved : WORD;
  690. XonLim : WORD;
  691. XoffLim : WORD;
  692. ByteSize : BYTE;
  693. Parity : BYTE;
  694. StopBits : BYTE;
  695. XonChar : char;
  696. XoffChar : char;
  697. ErrorChar : char;
  698. EofChar : char;
  699. EvtChar : char;
  700. wReserved1 : WORD;
  701. end;
  702. LPDCB = ^DCB;
  703. _DCB = DCB;
  704. TDCB = DCB;
  705. PDCB = ^DCB;
  706. const
  707. bm_DCB_fBinary = $1;
  708. bp_DCB_fBinary = 0;
  709. bm_DCB_fParity = $2;
  710. bp_DCB_fParity = 1;
  711. bm_DCB_fOutxCtsFlow = $4;
  712. bp_DCB_fOutxCtsFlow = 2;
  713. bm_DCB_fOutxDsrFlow = $8;
  714. bp_DCB_fOutxDsrFlow = 3;
  715. bm_DCB_fDtrControl = $30;
  716. bp_DCB_fDtrControl = 4;
  717. bm_DCB_fDsrSensitivity = $40;
  718. bp_DCB_fDsrSensitivity = 6;
  719. bm_DCB_fTXContinueOnXoff = $80;
  720. bp_DCB_fTXContinueOnXoff = 7;
  721. bm_DCB_fOutX = $100;
  722. bp_DCB_fOutX = 8;
  723. bm_DCB_fInX = $200;
  724. bp_DCB_fInX = 9;
  725. bm_DCB_fErrorChar = $400;
  726. bp_DCB_fErrorChar = 10;
  727. bm_DCB_fNull = $800;
  728. bp_DCB_fNull = 11;
  729. bm_DCB_fRtsControl = $3000;
  730. bp_DCB_fRtsControl = 12;
  731. bm_DCB_fAbortOnError = $4000;
  732. bp_DCB_fAbortOnError = 14;
  733. bm_DCB_fDummy2 = $FFFF8000;
  734. bp_DCB_fDummy2 = 15;
  735. function fBinary(var a : DCB) : DWORD;
  736. procedure set_fBinary(var a : DCB; __fBinary : DWORD);
  737. function fParity(var a : DCB) : DWORD;
  738. procedure set_fParity(var a : DCB; __fParity : DWORD);
  739. function fOutxCtsFlow(var a : DCB) : DWORD;
  740. procedure set_fOutxCtsFlow(var a : DCB; __fOutxCtsFlow : DWORD);
  741. function fOutxDsrFlow(var a : DCB) : DWORD;
  742. procedure set_fOutxDsrFlow(var a : DCB; __fOutxDsrFlow : DWORD);
  743. function fDtrControl(var a : DCB) : DWORD;
  744. procedure set_fDtrControl(var a : DCB; __fDtrControl : DWORD);
  745. function fDsrSensitivity(var a : DCB) : DWORD;
  746. procedure set_fDsrSensitivity(var a : DCB; __fDsrSensitivity : DWORD);
  747. function fTXContinueOnXoff(var a : DCB) : DWORD;
  748. procedure set_fTXContinueOnXoff(var a : DCB; __fTXContinueOnXoff : DWORD);
  749. function fOutX(var a : DCB) : DWORD;
  750. procedure set_fOutX(var a : DCB; __fOutX : DWORD);
  751. function fInX(var a : DCB) : DWORD;
  752. procedure set_fInX(var a : DCB; __fInX : DWORD);
  753. function fErrorChar(var a : DCB) : DWORD;
  754. procedure set_fErrorChar(var a : DCB; __fErrorChar : DWORD);
  755. function fNull(var a : DCB) : DWORD;
  756. procedure set_fNull(var a : DCB; __fNull : DWORD);
  757. function fRtsControl(var a : DCB) : DWORD;
  758. procedure set_fRtsControl(var a : DCB; __fRtsControl : DWORD);
  759. function fAbortOnError(var a : DCB) : DWORD;
  760. procedure set_fAbortOnError(var a : DCB; __fAbortOnError : DWORD);
  761. function fDummy2(var a : DCB) : DWORD;
  762. procedure set_fDummy2(var a : DCB; __fDummy2 : DWORD);
  763. type
  764. COMMCONFIG = record
  765. dwSize : DWORD;
  766. wVersion : WORD;
  767. wReserved : WORD;
  768. dcb : DCB;
  769. dwProviderSubType : DWORD;
  770. dwProviderOffset : DWORD;
  771. dwProviderSize : DWORD;
  772. wcProviderData : array[0..0] of WCHAR;
  773. end;
  774. LPCOMMCONFIG = ^COMMCONFIG;
  775. _COMM_CONFIG = COMMCONFIG;
  776. TCOMMCONFIG = COMMCONFIG;
  777. PCOMMCONFIG = ^COMMCONFIG;
  778. COMMPROP = record
  779. wPacketLength : WORD;
  780. wPacketVersion : WORD;
  781. dwServiceMask : DWORD;
  782. dwReserved1 : DWORD;
  783. dwMaxTxQueue : DWORD;
  784. dwMaxRxQueue : DWORD;
  785. dwMaxBaud : DWORD;
  786. dwProvSubType : DWORD;
  787. dwProvCapabilities : DWORD;
  788. dwSettableParams : DWORD;
  789. dwSettableBaud : DWORD;
  790. wSettableData : WORD;
  791. wSettableStopParity : WORD;
  792. dwCurrentTxQueue : DWORD;
  793. dwCurrentRxQueue : DWORD;
  794. dwProvSpec1 : DWORD;
  795. dwProvSpec2 : DWORD;
  796. wcProvChar : array[0..0] of WCHAR;
  797. end;
  798. LPCOMMPROP = ^COMMPROP;
  799. _COMMPROP = COMMPROP;
  800. TCOMMPROP = COMMPROP;
  801. PCOMMPROP = ^COMMPROP;
  802. COMMTIMEOUTS = record
  803. ReadIntervalTimeout : DWORD;
  804. ReadTotalTimeoutMultiplier : DWORD;
  805. ReadTotalTimeoutConstant : DWORD;
  806. WriteTotalTimeoutMultiplier : DWORD;
  807. WriteTotalTimeoutConstant : DWORD;
  808. end;
  809. LPCOMMTIMEOUTS = ^COMMTIMEOUTS;
  810. _COMMTIMEOUTS = COMMTIMEOUTS;
  811. TCOMMTIMEOUTS = COMMTIMEOUTS;
  812. PCOMMTIMEOUTS = ^COMMTIMEOUTS;
  813. COMPAREITEMSTRUCT = record
  814. CtlType : UINT;
  815. CtlID : UINT;
  816. hwndItem : HWND;
  817. itemID1 : UINT;
  818. itemData1 : ULONG_PTR;
  819. itemID2 : UINT;
  820. itemData2 : ULONG_PTR;
  821. end;
  822. tagCOMPAREITEMSTRUCT = COMPAREITEMSTRUCT;
  823. TCOMPAREITEMSTRUCT = COMPAREITEMSTRUCT;
  824. PCOMPAREITEMSTRUCT = ^COMPAREITEMSTRUCT;
  825. COMPCOLOR = record
  826. crText : COLORREF;
  827. crBackground : COLORREF;
  828. dwEffects : DWORD;
  829. end;
  830. TCOMPCOLOR = COMPCOLOR;
  831. PCOMPCOLOR = ^COMPCOLOR;
  832. COMPOSITIONFORM = record
  833. dwStyle : DWORD;
  834. ptCurrentPos : POINT;
  835. rcArea : RECT;
  836. end;
  837. LPCOMPOSITIONFORM = ^COMPOSITIONFORM;
  838. _tagCOMPOSITIONFORM = COMPOSITIONFORM;
  839. TCOMPOSITIONFORM = COMPOSITIONFORM;
  840. PCOMPOSITIONFORM = ^COMPOSITIONFORM;
  841. // TComStatFlags = set of (fCtsHold, fDsrHold, fRlsdHold , fXoffHold ,
  842. // fXoffSent , fEof , fTxim , fReserved);
  843. COMSTAT = record
  844. flag0 : DWORD; // can't use tcomstatflags, set packing issues
  845. // and conflicts with macro's
  846. cbInQue : DWORD;
  847. cbOutQue : DWORD;
  848. end;
  849. LPCOMSTAT = ^COMSTAT;
  850. _COMSTAT = COMSTAT;
  851. TCOMSTAT = COMSTAT;
  852. PCOMSTAT = ^COMSTAT;
  853. const
  854. bm_COMSTAT_fCtsHold = $1;
  855. bp_COMSTAT_fCtsHold = 0;
  856. bm_COMSTAT_fDsrHold = $2;
  857. bp_COMSTAT_fDsrHold = 1;
  858. bm_COMSTAT_fRlsdHold = $4;
  859. bp_COMSTAT_fRlsdHold = 2;
  860. bm_COMSTAT_fXoffHold = $8;
  861. bp_COMSTAT_fXoffHold = 3;
  862. bm_COMSTAT_fXoffSent = $10;
  863. bp_COMSTAT_fXoffSent = 4;
  864. bm_COMSTAT_fEof = $20;
  865. bp_COMSTAT_fEof = 5;
  866. bm_COMSTAT_fTxim = $40;
  867. bp_COMSTAT_fTxim = 6;
  868. bm_COMSTAT_fReserved = $FFFFFF80;
  869. bp_COMSTAT_fReserved = 7;
  870. function fCtsHold(var a : COMSTAT) : DWORD; // should be renamed to get_<x>?
  871. procedure set_fCtsHold(var a : COMSTAT; __fCtsHold : DWORD);
  872. function fDsrHold(var a : COMSTAT) : DWORD;
  873. procedure set_fDsrHold(var a : COMSTAT; __fDsrHold : DWORD);
  874. function fRlsdHold(var a : COMSTAT) : DWORD;
  875. procedure set_fRlsdHold(var a : COMSTAT; __fRlsdHold : DWORD);
  876. function fXoffHold(var a : COMSTAT) : DWORD;
  877. procedure set_fXoffHold(var a : COMSTAT; __fXoffHold : DWORD);
  878. function fXoffSent(var a : COMSTAT) : DWORD;
  879. procedure set_fXoffSent(var a : COMSTAT; __fXoffSent : DWORD);
  880. function fEof(var a : COMSTAT) : DWORD;
  881. procedure set_fEof(var a : COMSTAT; __fEof : DWORD);
  882. function fTxim(var a : COMSTAT) : DWORD;
  883. procedure set_fTxim(var a : COMSTAT; __fTxim : DWORD);
  884. function fReserved(var a : COMSTAT) : DWORD;
  885. procedure set_fReserved(var a : COMSTAT; __fReserved : DWORD);
  886. type
  887. CONSOLE_CURSOR_INFO = record
  888. dwSize : DWORD;
  889. bVisible : WINBOOL;
  890. end;
  891. PCONSOLE_CURSOR_INFO = ^CONSOLE_CURSOR_INFO;
  892. _CONSOLE_CURSOR_INFO = CONSOLE_CURSOR_INFO;
  893. TCONSOLECURSORINFO = CONSOLE_CURSOR_INFO;
  894. PCONSOLECURSORINFO = ^CONSOLE_CURSOR_INFO;
  895. TCURSORINFO = CONSOLE_CURSOR_INFO;
  896. COORD = record
  897. X : SHORT;
  898. Y : SHORT;
  899. end;
  900. _COORD = COORD;
  901. TCOORD = COORD;
  902. PCOORD = ^COORD;
  903. SMALL_RECT = record
  904. Left : SHORT;
  905. Top : SHORT;
  906. Right : SHORT;
  907. Bottom : SHORT;
  908. end;
  909. _SMALL_RECT = SMALL_RECT;
  910. TSMALL_RECT = SMALL_RECT;
  911. PSMALL_RECT = ^SMALL_RECT;
  912. CONSOLE_SCREEN_BUFFER_INFO = packed record
  913. dwSize : COORD;
  914. dwCursorPosition : COORD;
  915. wAttributes : WORD;
  916. srWindow : SMALL_RECT;
  917. dwMaximumWindowSize : COORD;
  918. end;
  919. PCONSOLE_SCREEN_BUFFER_INFO = ^CONSOLE_SCREEN_BUFFER_INFO;
  920. _CONSOLE_SCREEN_BUFFER_INFO = CONSOLE_SCREEN_BUFFER_INFO;
  921. TCONSOLESCREENBUFFERINFO = CONSOLE_SCREEN_BUFFER_INFO;
  922. PCONSOLESCREENBUFFERINFO = ^CONSOLE_SCREEN_BUFFER_INFO;
  923. {$ifdef cpui386}
  924. {$define __HASCONTEXT__}
  925. type
  926. FLOATING_SAVE_AREA = record
  927. ControlWord : DWORD;
  928. StatusWord : DWORD;
  929. TagWord : DWORD;
  930. ErrorOffset : DWORD;
  931. ErrorSelector : DWORD;
  932. DataOffset : DWORD;
  933. DataSelector : DWORD;
  934. RegisterArea : array[0..79] of BYTE;
  935. Cr0NpxState : DWORD;
  936. end;
  937. _FLOATING_SAVE_AREA = FLOATING_SAVE_AREA;
  938. TFLOATINGSAVEAREA = FLOATING_SAVE_AREA;
  939. PFLOATINGSAVEAREA = ^FLOATING_SAVE_AREA;
  940. CONTEXT = record
  941. ContextFlags : DWORD;
  942. Dr0 : DWORD;
  943. Dr1 : DWORD;
  944. Dr2 : DWORD;
  945. Dr3 : DWORD;
  946. Dr6 : DWORD;
  947. Dr7 : DWORD;
  948. FloatSave : FLOATING_SAVE_AREA;
  949. SegGs : DWORD;
  950. SegFs : DWORD;
  951. SegEs : DWORD;
  952. SegDs : DWORD;
  953. Edi : DWORD;
  954. Esi : DWORD;
  955. Ebx : DWORD;
  956. Edx : DWORD;
  957. Ecx : DWORD;
  958. Eax : DWORD;
  959. Ebp : DWORD;
  960. Eip : DWORD;
  961. SegCs : DWORD;
  962. EFlags : DWORD;
  963. Esp : DWORD;
  964. SegSs : DWORD;
  965. end;
  966. {$endif}
  967. {$ifdef cpux86_64}
  968. {$define __HASCONTEXT__}
  969. //
  970. // Define 128-bit 16-byte aligned xmm register type.
  971. //
  972. //typedef struct DECLSPEC_ALIGN(16) _M128A {
  973. {$note todo, fix alignment }
  974. type
  975. M128A = record
  976. Low: ULONGLONG;
  977. High: LONGLONG;
  978. end;
  979. _M128A = M128A;
  980. TM128A = M128A;
  981. PM128A = TM128A;
  982. //
  983. // Format of data for 32-bit fxsave/fxrstor instructions.
  984. //
  985. //typedef struct _XMM_SAVE_AREA32 {
  986. type
  987. XMM_SAVE_AREA32 = record
  988. ControlWord: WORD;
  989. StatusWord: WORD;
  990. TagWord: BYTE;
  991. Reserved1: BYTE;
  992. ErrorOpcode: WORD;
  993. ErrorOffset: DWORD;
  994. ErrorSelector: WORD;
  995. Reserved2: WORD;
  996. DataOffset: DWORD;
  997. DataSelector: WORD;
  998. Reserved3: WORD;
  999. MxCsr: DWORD;
  1000. MxCsr_Mask: DWORD;
  1001. FloatRegisters: array[0..7] of M128A;
  1002. XmmRegisters: array[0..16] of M128A;
  1003. Reserved4: array[0..95] of BYTE;
  1004. end;
  1005. _XMM_SAVE_AREA32 = XMM_SAVE_AREA32;
  1006. TXmmSaveArea = XMM_SAVE_AREA32;
  1007. PXmmSaveArea = ^TXmmSaveArea;
  1008. const
  1009. LEGACY_SAVE_AREA_LENGTH = sizeof(XMM_SAVE_AREA32);
  1010. //
  1011. // Context Frame
  1012. //
  1013. // This frame has a several purposes: 1) it is used as an argument to
  1014. // NtContinue, 2) is is used to constuct a call frame for APC delivery,
  1015. // and 3) it is used in the user level thread creation routines.
  1016. //
  1017. //
  1018. // The flags field within this record controls the contents of a CONTEXT
  1019. // record.
  1020. //
  1021. // If the context record is used as an input parameter, then for each
  1022. // portion of the context record controlled by a flag whose value is
  1023. // set, it is assumed that that portion of the context record contains
  1024. // valid context. If the context record is being used to modify a threads
  1025. // context, then only that portion of the threads context is modified.
  1026. //
  1027. // If the context record is used as an output parameter to capture the
  1028. // context of a thread, then only those portions of the thread's context
  1029. // corresponding to set flags will be returned.
  1030. //
  1031. // CONTEXT_CONTROL specifies SegSs, Rsp, SegCs, Rip, and EFlags.
  1032. //
  1033. // CONTEXT_INTEGER specifies Rax, Rcx, Rdx, Rbx, Rbp, Rsi, Rdi, and R8-R15.
  1034. //
  1035. // CONTEXT_SEGMENTS specifies SegDs, SegEs, SegFs, and SegGs.
  1036. //
  1037. // CONTEXT_DEBUG_REGISTERS specifies Dr0-Dr3 and Dr6-Dr7.
  1038. //
  1039. // CONTEXT_MMX_REGISTERS specifies the floating point and extended registers
  1040. // Mm0/St0-Mm7/St7 and Xmm0-Xmm15).
  1041. //
  1042. //typedef struct DECLSPEC_ALIGN(16) _CONTEXT {
  1043. {$note todo, fix alignment }
  1044. type
  1045. CONTEXT = record
  1046. //
  1047. // Register parameter home addresses.
  1048. //
  1049. // N.B. These fields are for convience - they could be used to extend the
  1050. // context record in the future.
  1051. //
  1052. P1Home: DWORD64;
  1053. P2Home: DWORD64;
  1054. P3Home: DWORD64;
  1055. P4Home: DWORD64;
  1056. P5Home: DWORD64;
  1057. P6Home: DWORD64;
  1058. //
  1059. // Control flags.
  1060. //
  1061. ContextFlags: DWORD;
  1062. MxCsr: DWORD;
  1063. //
  1064. // Segment Registers and processor flags.
  1065. //
  1066. SegCs: WORD;
  1067. SegDs: WORD;
  1068. SegEs: WORD;
  1069. SegFs: WORD;
  1070. SegGs: WORD;
  1071. SegSs: WORD;
  1072. EFlags: DWORD;
  1073. //
  1074. // Debug registers
  1075. //
  1076. Dr0: DWORD64;
  1077. Dr1: DWORD64;
  1078. Dr2: DWORD64;
  1079. Dr3: DWORD64;
  1080. Dr6: DWORD64;
  1081. Dr7: DWORD64;
  1082. //
  1083. // Integer registers.
  1084. //
  1085. Rax: DWORD64;
  1086. Rcx: DWORD64;
  1087. Rdx: DWORD64;
  1088. Rbx: DWORD64;
  1089. Rsp: DWORD64;
  1090. Rbp: DWORD64;
  1091. Rsi: DWORD64;
  1092. Rdi: DWORD64;
  1093. R8: DWORD64;
  1094. R9: DWORD64;
  1095. R10: DWORD64;
  1096. R11: DWORD64;
  1097. R12: DWORD64;
  1098. R13: DWORD64;
  1099. R14: DWORD64;
  1100. R15: DWORD64;
  1101. //
  1102. // Program counter.
  1103. //
  1104. Rip: DWORD64;
  1105. //
  1106. // Floating point state.
  1107. //
  1108. FltSave: XMM_SAVE_AREA32; // MWE: only translated the FltSave part of the union
  1109. (*
  1110. union {
  1111. XMM_SAVE_AREA32 FltSave;
  1112. struct {
  1113. M128A Header[2];
  1114. M128A Legacy[8];
  1115. M128A Xmm0;
  1116. M128A Xmm1;
  1117. M128A Xmm2;
  1118. M128A Xmm3;
  1119. M128A Xmm4;
  1120. M128A Xmm5;
  1121. M128A Xmm6;
  1122. M128A Xmm7;
  1123. M128A Xmm8;
  1124. M128A Xmm9;
  1125. M128A Xmm10;
  1126. M128A Xmm11;
  1127. M128A Xmm12;
  1128. M128A Xmm13;
  1129. M128A Xmm14;
  1130. M128A Xmm15;
  1131. };
  1132. };
  1133. *)
  1134. //
  1135. // Vector registers.
  1136. //
  1137. VectorRegister: array[0..25] of M128A;
  1138. VectorControl: DWORD64;
  1139. //
  1140. // Special debug control registers.
  1141. //
  1142. DebugControl: DWORD64;
  1143. LastBranchToRip: DWORD64;
  1144. LastBranchFromRip: DWORD64;
  1145. LastExceptionToRip: DWORD64;
  1146. LastExceptionFromRip: DWORD64;
  1147. end;
  1148. {$endif}
  1149. {$ifdef cpupowerpc32}
  1150. {$define __HASCONTEXT__}
  1151. { __ppc__ }
  1152. { Floating point registers returned when CONTEXT_FLOATING_POINT is set }
  1153. { Integer registers returned when CONTEXT_INTEGER is set. }
  1154. { Condition register }
  1155. { Fixed point exception register }
  1156. { The following are set when CONTEXT_CONTROL is set. }
  1157. { Machine status register }
  1158. { Instruction address register }
  1159. { Link register }
  1160. { Control register }
  1161. { Control which context values are returned }
  1162. { Registers returned if CONTEXT_DEBUG_REGISTERS is set. }
  1163. { Breakpoint Register 1 }
  1164. { Breakpoint Register 2 }
  1165. { Breakpoint Register 3 }
  1166. { Breakpoint Register 4 }
  1167. { Breakpoint Register 5 }
  1168. { Breakpoint Register 6 }
  1169. { Debug Status Register }
  1170. { Debug Control Register }
  1171. type
  1172. CONTEXT = record
  1173. Fpr0 : double;
  1174. Fpr1 : double;
  1175. Fpr2 : double;
  1176. Fpr3 : double;
  1177. Fpr4 : double;
  1178. Fpr5 : double;
  1179. Fpr6 : double;
  1180. Fpr7 : double;
  1181. Fpr8 : double;
  1182. Fpr9 : double;
  1183. Fpr10 : double;
  1184. Fpr11 : double;
  1185. Fpr12 : double;
  1186. Fpr13 : double;
  1187. Fpr14 : double;
  1188. Fpr15 : double;
  1189. Fpr16 : double;
  1190. Fpr17 : double;
  1191. Fpr18 : double;
  1192. Fpr19 : double;
  1193. Fpr20 : double;
  1194. Fpr21 : double;
  1195. Fpr22 : double;
  1196. Fpr23 : double;
  1197. Fpr24 : double;
  1198. Fpr25 : double;
  1199. Fpr26 : double;
  1200. Fpr27 : double;
  1201. Fpr28 : double;
  1202. Fpr29 : double;
  1203. Fpr30 : double;
  1204. Fpr31 : double;
  1205. Fpscr : double;
  1206. Gpr0 : DWORD;
  1207. Gpr1 : DWORD;
  1208. Gpr2 : DWORD;
  1209. Gpr3 : DWORD;
  1210. Gpr4 : DWORD;
  1211. Gpr5 : DWORD;
  1212. Gpr6 : DWORD;
  1213. Gpr7 : DWORD;
  1214. Gpr8 : DWORD;
  1215. Gpr9 : DWORD;
  1216. Gpr10 : DWORD;
  1217. Gpr11 : DWORD;
  1218. Gpr12 : DWORD;
  1219. Gpr13 : DWORD;
  1220. Gpr14 : DWORD;
  1221. Gpr15 : DWORD;
  1222. Gpr16 : DWORD;
  1223. Gpr17 : DWORD;
  1224. Gpr18 : DWORD;
  1225. Gpr19 : DWORD;
  1226. Gpr20 : DWORD;
  1227. Gpr21 : DWORD;
  1228. Gpr22 : DWORD;
  1229. Gpr23 : DWORD;
  1230. Gpr24 : DWORD;
  1231. Gpr25 : DWORD;
  1232. Gpr26 : DWORD;
  1233. Gpr27 : DWORD;
  1234. Gpr28 : DWORD;
  1235. Gpr29 : DWORD;
  1236. Gpr30 : DWORD;
  1237. Gpr31 : DWORD;
  1238. Cr : DWORD;
  1239. Xer : DWORD;
  1240. Msr : DWORD;
  1241. Iar : DWORD;
  1242. Lr : DWORD;
  1243. Ctr : DWORD;
  1244. ContextFlags : DWORD;
  1245. Fill : array[0..2] of DWORD;
  1246. Dr0 : DWORD;
  1247. Dr1 : DWORD;
  1248. Dr2 : DWORD;
  1249. Dr3 : DWORD;
  1250. Dr4 : DWORD;
  1251. Dr5 : DWORD;
  1252. Dr6 : DWORD;
  1253. Dr7 : DWORD;
  1254. end;
  1255. {$endif}
  1256. {$ifndef __HASCONTEXT__}
  1257. { MWE: placeholder so it won't break compilation on others (CPUARM ?) }
  1258. type
  1259. CONTEXT = record
  1260. end;
  1261. {$endif}
  1262. {$undef __HASCONTEXT__}
  1263. LPCONTEXT = ^CONTEXT;
  1264. _CONTEXT = CONTEXT;
  1265. TCONTEXT = CONTEXT;
  1266. PCONTEXT = ^CONTEXT;
  1267. type
  1268. LIST_ENTRY = record
  1269. Flink : ^_LIST_ENTRY;
  1270. Blink : ^_LIST_ENTRY;
  1271. end;
  1272. _LIST_ENTRY = LIST_ENTRY;
  1273. TLISTENTRY = LIST_ENTRY;
  1274. PLISTENTRY = ^LIST_ENTRY;
  1275. CRITICAL_SECTION_DEBUG = record
  1276. _Type : WORD;
  1277. CreatorBackTraceIndex : WORD;
  1278. CriticalSection : ^_CRITICAL_SECTION;
  1279. ProcessLocksList : LIST_ENTRY;
  1280. EntryCount : DWORD;
  1281. ContentionCount : DWORD;
  1282. Depth : DWORD;
  1283. OwnerBackTrace : array[0..4] of PVOID;
  1284. end;
  1285. LPCRITICAL_SECTION_DEBUG = ^CRITICAL_SECTION_DEBUG;
  1286. PCRITICAL_SECTION_DEBUG = ^CRITICAL_SECTION_DEBUG;
  1287. _CRITICAL_SECTION_DEBUG = CRITICAL_SECTION_DEBUG;
  1288. TCRITICALSECTIONDEBUG = CRITICAL_SECTION_DEBUG;
  1289. PCRITICALSECTIONDEBUG = ^CRITICAL_SECTION_DEBUG;
  1290. CRITICAL_SECTION = TRTLCriticalSection;
  1291. _CRITICAL_SECTION = TRTLCriticalSection;
  1292. TCRITICAL_SECTION = TRTLCriticalSection;
  1293. PCRITICAL_SECTION = PRTLCriticalSection;
  1294. LPCRITICAL_SECTION = PRTLCriticalSection;
  1295. TCRITICALSECTION = TRTLCriticalSection;
  1296. PCRITICALSECTION = PRTLCriticalSection;
  1297. { SECURITY_CONTEXT_TRACKING_MODE ContextTrackingMode; }
  1298. SECURITY_QUALITY_OF_SERVICE = record
  1299. Length : DWORD;
  1300. ImpersonationLevel : SECURITY_IMPERSONATION_LEVEL;
  1301. ContextTrackingMode : WINBOOL;
  1302. EffectiveOnly : BOOLEAN;
  1303. end;
  1304. PSECURITY_QUALITY_OF_SERVICE = ^SECURITY_QUALITY_OF_SERVICE;
  1305. _SECURITY_QUALITY_OF_SERVICE = SECURITY_QUALITY_OF_SERVICE;
  1306. TSECURITYQUALITYOFSERVICE = SECURITY_QUALITY_OF_SERVICE;
  1307. PSECURITYQUALITYOFSERVICE = ^SECURITY_QUALITY_OF_SERVICE;
  1308. CONVCONTEXT = record
  1309. cb : UINT;
  1310. wFlags : UINT;
  1311. wCountryID : UINT;
  1312. iCodePage : longint;
  1313. dwLangID : DWORD;
  1314. dwSecurity : DWORD;
  1315. qos : SECURITY_QUALITY_OF_SERVICE;
  1316. end;
  1317. tagCONVCONTEXT = CONVCONTEXT;
  1318. TCONVCONTEXT = CONVCONTEXT;
  1319. PCONVCONTEXT = ^CONVCONTEXT;
  1320. CONVINFO = record
  1321. cb : DWORD;
  1322. hUser : DWORD;
  1323. hConvPartner : HCONV;
  1324. hszSvcPartner : HSZ;
  1325. hszServiceReq : HSZ;
  1326. hszTopic : HSZ;
  1327. hszItem : HSZ;
  1328. wFmt : UINT;
  1329. wType : UINT;
  1330. wStatus : UINT;
  1331. wConvst : UINT;
  1332. wLastError : UINT;
  1333. hConvList : HCONVLIST;
  1334. ConvCtxt : CONVCONTEXT;
  1335. _hwnd : HWND;
  1336. hwndPartner : HWND;
  1337. end;
  1338. tagCONVINFO = CONVINFO;
  1339. TCONVINFO = CONVINFO;
  1340. PCONVINFO = ^CONVINFO;
  1341. COPYDATASTRUCT = record
  1342. dwData : DWORD;
  1343. cbData : DWORD;
  1344. lpData : PVOID;
  1345. end;
  1346. tagCOPYDATASTRUCT = COPYDATASTRUCT;
  1347. TCOPYDATASTRUCT = COPYDATASTRUCT;
  1348. PCOPYDATASTRUCT = ^COPYDATASTRUCT;
  1349. CPINFO = record
  1350. MaxCharSize : UINT;
  1351. DefaultChar : array[0..(MAX_DEFAULTCHAR)-1] of BYTE;
  1352. LeadByte : array[0..(MAX_LEADBYTES)-1] of BYTE;
  1353. end;
  1354. LPCPINFO = ^CPINFO;
  1355. _cpinfo = CPINFO;
  1356. Tcpinfo = CPINFO;
  1357. Pcpinfo = ^CPINFO;
  1358. CPLINFO = record
  1359. idIcon : longint;
  1360. idName : longint;
  1361. idInfo : longint;
  1362. lData : LONG;
  1363. end;
  1364. tagCPLINFO = CPLINFO;
  1365. TCPLINFO = CPLINFO;
  1366. PCPLINFO = ^CPLINFO;
  1367. CREATE_PROCESS_DEBUG_INFO = record
  1368. hFile : HANDLE;
  1369. hProcess : HANDLE;
  1370. hThread : HANDLE;
  1371. lpBaseOfImage : LPVOID;
  1372. dwDebugInfoFileOffset : DWORD;
  1373. nDebugInfoSize : DWORD;
  1374. lpThreadLocalBase : LPVOID;
  1375. lpStartAddress : LPTHREAD_START_ROUTINE;
  1376. lpImageName : LPVOID;
  1377. fUnicode : WORD;
  1378. end;
  1379. _CREATE_PROCESS_DEBUG_INFO = CREATE_PROCESS_DEBUG_INFO;
  1380. TCREATEPROCESSDEBUGINFO = CREATE_PROCESS_DEBUG_INFO;
  1381. PCREATEPROCESSDEBUGINFO = ^CREATE_PROCESS_DEBUG_INFO;
  1382. CREATE_THREAD_DEBUG_INFO = record
  1383. hThread : HANDLE;
  1384. lpThreadLocalBase : LPVOID;
  1385. lpStartAddress : LPTHREAD_START_ROUTINE;
  1386. end;
  1387. _CREATE_THREAD_DEBUG_INFO = CREATE_THREAD_DEBUG_INFO;
  1388. TCREATETHREADDEBUGINFO = CREATE_THREAD_DEBUG_INFO;
  1389. PCREATETHREADDEBUGINFO = ^CREATE_THREAD_DEBUG_INFO;
  1390. (*
  1391. TODO: sockets
  1392. typedef struct _SOCKET_ADDRESS {
  1393. LPSOCKADDR lpSockaddr ;
  1394. INT iSockaddrLength ;
  1395. } SOCKET_ADDRESS, PSOCKET_ADDRESS, LPSOCKET_ADDRESS;
  1396. }
  1397. {
  1398. typedef struct _CSADDR_INFO {
  1399. SOCKET_ADDRESS LocalAddr;
  1400. SOCKET_ADDRESS RemoteAddr;
  1401. INT iSocketType;
  1402. INT iProtocol;
  1403. } CSADDR_INFO;
  1404. *)
  1405. CURRENCYFMT = record
  1406. NumDigits : UINT;
  1407. LeadingZero : UINT;
  1408. Grouping : UINT;
  1409. lpDecimalSep : LPTSTR;
  1410. lpThousandSep : LPTSTR;
  1411. NegativeOrder : UINT;
  1412. PositiveOrder : UINT;
  1413. lpCurrencySymbol : LPTSTR;
  1414. end;
  1415. _currencyfmt = CURRENCYFMT;
  1416. Tcurrencyfmt = CURRENCYFMT;
  1417. Pcurrencyfmt = ^CURRENCYFMT;
  1418. CURSORSHAPE = record
  1419. xHotSpot : longint;
  1420. yHotSpot : longint;
  1421. cx : longint;
  1422. cy : longint;
  1423. cbWidth : longint;
  1424. Planes : BYTE;
  1425. BitsPixel : BYTE;
  1426. end;
  1427. LPCURSORSHAPE = ^CURSORSHAPE;
  1428. tagCURSORSHAPE = CURSORSHAPE;
  1429. TCURSORSHAPE = CURSORSHAPE;
  1430. PCURSORSHAPE = ^CURSORSHAPE;
  1431. CWPRETSTRUCT = record
  1432. lResult : LRESULT;
  1433. lParam : LPARAM;
  1434. wParam : WPARAM;
  1435. message : DWORD;
  1436. hwnd : HWND;
  1437. end;
  1438. tagCWPRETSTRUCT = CWPRETSTRUCT;
  1439. TCWPRETSTRUCT = CWPRETSTRUCT;
  1440. PCWPRETSTRUCT = ^CWPRETSTRUCT;
  1441. CWPSTRUCT = record
  1442. lParam : LPARAM;
  1443. wParam : WPARAM;
  1444. message : UINT;
  1445. hwnd : HWND;
  1446. end;
  1447. tagCWPSTRUCT = CWPSTRUCT;
  1448. TCWPSTRUCT = CWPSTRUCT;
  1449. PCWPSTRUCT = ^CWPSTRUCT;
  1450. DATATYPES_INFO_1 = record
  1451. pName : LPTSTR;
  1452. end;
  1453. _DATATYPES_INFO_1 = DATATYPES_INFO_1;
  1454. TDATATYPESINFO1 = DATATYPES_INFO_1;
  1455. PDATATYPESINFO1 = ^DATATYPES_INFO_1;
  1456. DDEACK = record
  1457. flag0 : word;
  1458. end;
  1459. TDDEACK = DDEACK;
  1460. PDDEACK = ^DDEACK;
  1461. const
  1462. bm_DDEACK_bAppReturnCode = $FF;
  1463. bp_DDEACK_bAppReturnCode = 0;
  1464. bm_DDEACK_reserved = $3F00;
  1465. bp_DDEACK_reserved = 8;
  1466. bm_DDEACK_fBusy = $4000;
  1467. bp_DDEACK_fBusy = 14;
  1468. bm_DDEACK_fAck = $8000;
  1469. bp_DDEACK_fAck = 15;
  1470. function bAppReturnCode(var a : DDEACK) : word;
  1471. procedure set_bAppReturnCode(var a : DDEACK; __bAppReturnCode : word);
  1472. function reserved(var a : DDEACK) : word;
  1473. procedure set_reserved(var a : DDEACK; __reserved : word);
  1474. function fBusy(var a : DDEACK) : word;
  1475. procedure set_fBusy(var a : DDEACK; __fBusy : word);
  1476. function fAck(var a : DDEACK) : word;
  1477. procedure set_fAck(var a : DDEACK; __fAck : word);
  1478. type
  1479. DDEADVISE = record
  1480. flag0 : word;
  1481. cfFormat : SHORT;
  1482. end;
  1483. TDDEADVISE = DDEADVISE;
  1484. PDDEADVISE = ^DDEADVISE;
  1485. const
  1486. bm_DDEADVISE_reserved = $3FFF;
  1487. bp_DDEADVISE_reserved = 0;
  1488. bm_DDEADVISE_fDeferUpd = $4000;
  1489. bp_DDEADVISE_fDeferUpd = 14;
  1490. bm_DDEADVISE_fAckReq = $8000;
  1491. bp_DDEADVISE_fAckReq = 15;
  1492. function reserved(var a : DDEADVISE) : word;
  1493. procedure set_reserved(var a : DDEADVISE; __reserved : word);
  1494. function fDeferUpd(var a : DDEADVISE) : word;
  1495. procedure set_fDeferUpd(var a : DDEADVISE; __fDeferUpd : word);
  1496. function fAckReq(var a : DDEADVISE) : word;
  1497. procedure set_fAckReq(var a : DDEADVISE; __fAckReq : word);
  1498. type
  1499. DDEDATA = record
  1500. flag0 : word;
  1501. cfFormat : SHORT;
  1502. Value : array[0..0] of BYTE;
  1503. end;
  1504. PDDEDATA = ^DDEDATA;
  1505. const
  1506. bm_DDEDATA_unused = $FFF;
  1507. bp_DDEDATA_unused = 0;
  1508. bm_DDEDATA_fResponse = $1000;
  1509. bp_DDEDATA_fResponse = 12;
  1510. bm_DDEDATA_fRelease = $2000;
  1511. bp_DDEDATA_fRelease = 13;
  1512. bm_DDEDATA_reserved = $4000;
  1513. bp_DDEDATA_reserved = 14;
  1514. bm_DDEDATA_fAckReq = $8000;
  1515. bp_DDEDATA_fAckReq = 15;
  1516. function unused(var a : DDEDATA) : word;
  1517. procedure set_unused(var a : DDEDATA; __unused : word);
  1518. function fResponse(var a : DDEDATA) : word;
  1519. procedure set_fResponse(var a : DDEDATA; __fResponse : word);
  1520. function fRelease(var a : DDEDATA) : word;
  1521. procedure set_fRelease(var a : DDEDATA; __fRelease : word);
  1522. function reserved(var a : DDEDATA) : word;
  1523. procedure set_reserved(var a : DDEDATA; __reserved : word);
  1524. function fAckReq(var a : DDEDATA) : word;
  1525. procedure set_fAckReq(var a : DDEDATA; __fAckReq : word);
  1526. type
  1527. DDELN = record
  1528. flag0 : word;
  1529. cfFormat : SHORT;
  1530. end;
  1531. TDDELN = DDELN;
  1532. PDDELN = ^DDELN;
  1533. const
  1534. bm_DDELN_unused = $1FFF;
  1535. bp_DDELN_unused = 0;
  1536. bm_DDELN_fRelease = $2000;
  1537. bp_DDELN_fRelease = 13;
  1538. bm_DDELN_fDeferUpd = $4000;
  1539. bp_DDELN_fDeferUpd = 14;
  1540. bm_DDELN_fAckReq = $8000;
  1541. bp_DDELN_fAckReq = 15;
  1542. function unused(var a : DDELN) : word;
  1543. procedure set_unused(var a : DDELN; __unused : word);
  1544. function fRelease(var a : DDELN) : word;
  1545. procedure set_fRelease(var a : DDELN; __fRelease : word);
  1546. function fDeferUpd(var a : DDELN) : word;
  1547. procedure set_fDeferUpd(var a : DDELN; __fDeferUpd : word);
  1548. function fAckReq(var a : DDELN) : word;
  1549. procedure set_fAckReq(var a : DDELN; __fAckReq : word);
  1550. type
  1551. DDEML_MSG_HOOK_DATA = record
  1552. uiLo : UINT;
  1553. uiHi : UINT;
  1554. cbData : DWORD;
  1555. Data : array[0..7] of DWORD;
  1556. end;
  1557. tagDDEML_MSG_HOOK_DATA = DDEML_MSG_HOOK_DATA;
  1558. TDDEMLMSGHOOKDATA = DDEML_MSG_HOOK_DATA;
  1559. PDDEMLMSGHOOKDATA = ^DDEML_MSG_HOOK_DATA;
  1560. DDEPOKE = record
  1561. flag0 : word;
  1562. cfFormat : SHORT;
  1563. Value : array[0..0] of BYTE;
  1564. end;
  1565. TDDEPOKE = DDEPOKE;
  1566. PDDEPOKE = ^DDEPOKE;
  1567. const
  1568. bm_DDEPOKE_unused = $1FFF;
  1569. bp_DDEPOKE_unused = 0;
  1570. bm_DDEPOKE_fRelease = $2000;
  1571. bp_DDEPOKE_fRelease = 13;
  1572. bm_DDEPOKE_fReserved = $C000;
  1573. bp_DDEPOKE_fReserved = 14;
  1574. function unused(var a : DDEPOKE) : word;
  1575. procedure set_unused(var a : DDEPOKE; __unused : word);
  1576. function fRelease(var a : DDEPOKE) : word;
  1577. procedure set_fRelease(var a : DDEPOKE; __fRelease : word);
  1578. function fReserved(var a : DDEPOKE) : word;
  1579. procedure set_fReserved(var a : DDEPOKE; __fReserved : word);
  1580. type
  1581. DDEUP = record
  1582. flag0 : word;
  1583. cfFormat : SHORT;
  1584. rgb : array[0..0] of BYTE;
  1585. end;
  1586. TDDEUP = DDEUP;
  1587. PDDEUP = ^DDEUP;
  1588. const
  1589. bm_DDEUP_unused = $FFF;
  1590. bp_DDEUP_unused = 0;
  1591. bm_DDEUP_fAck = $1000;
  1592. bp_DDEUP_fAck = 12;
  1593. bm_DDEUP_fRelease = $2000;
  1594. bp_DDEUP_fRelease = 13;
  1595. bm_DDEUP_fReserved = $4000;
  1596. bp_DDEUP_fReserved = 14;
  1597. bm_DDEUP_fAckReq = $8000;
  1598. bp_DDEUP_fAckReq = 15;
  1599. function unused(var a : DDEUP) : word;
  1600. procedure set_unused(var a : DDEUP; __unused : word);
  1601. function fAck(var a : DDEUP) : word;
  1602. procedure set_fAck(var a : DDEUP; __fAck : word);
  1603. function fRelease(var a : DDEUP) : word;
  1604. procedure set_fRelease(var a : DDEUP; __fRelease : word);
  1605. function fReserved(var a : DDEUP) : word;
  1606. procedure set_fReserved(var a : DDEUP; __fReserved : word);
  1607. function fAckReq(var a : DDEUP) : word;
  1608. procedure set_fAckReq(var a : DDEUP; __fAckReq : word);
  1609. type
  1610. EXCEPTION_RECORD = record
  1611. ExceptionCode : DWORD;
  1612. ExceptionFlags : DWORD;
  1613. ExceptionRecord : ^_EXCEPTION_RECORD;
  1614. ExceptionAddress : PVOID;
  1615. NumberParameters : DWORD;
  1616. ExceptionInformation : array[0..(EXCEPTION_MAXIMUM_PARAMETERS)-1] of ULONG_PTR;
  1617. end;
  1618. PEXCEPTION_RECORD = ^EXCEPTION_RECORD;
  1619. _EXCEPTION_RECORD = EXCEPTION_RECORD;
  1620. TEXCEPTIONRECORD = EXCEPTION_RECORD;
  1621. PEXCEPTIONRECORD = ^EXCEPTION_RECORD;
  1622. EXCEPTION_DEBUG_INFO = record
  1623. ExceptionRecord : EXCEPTION_RECORD;
  1624. dwFirstChance : DWORD;
  1625. end;
  1626. PEXCEPTION_DEBUG_INFO = ^EXCEPTION_DEBUG_INFO;
  1627. _EXCEPTION_DEBUG_INFO = EXCEPTION_DEBUG_INFO;
  1628. TEXCEPTIONDEBUGINFO = EXCEPTION_DEBUG_INFO;
  1629. PEXCEPTIONDEBUGINFO = ^EXCEPTION_DEBUG_INFO;
  1630. { Explicit forms to debug targets running on a different architecture (32-bit versus 64-bit)}
  1631. EXCEPTION_RECORD32 = record
  1632. ExceptionCode : DWORD;
  1633. ExceptionFlags : DWORD;
  1634. ExceptionRecord : DWORD;
  1635. ExceptionAddress : DWORD;
  1636. NumberParameters : DWORD;
  1637. ExceptionInformation : array[0..(EXCEPTION_MAXIMUM_PARAMETERS)-1] of DWORD;
  1638. end;
  1639. PEXCEPTION_RECORD32 = ^EXCEPTION_RECORD32;
  1640. _EXCEPTION_RECORD32 = EXCEPTION_RECORD32;
  1641. TExceptionRecord32 = EXCEPTION_RECORD32;
  1642. PExceptionRecord32 = ^EXCEPTION_RECORD32;
  1643. EXCEPTION_DEBUG_INFO32 = record
  1644. ExceptionRecord : EXCEPTION_RECORD32;
  1645. dwFirstChance : DWORD;
  1646. end;
  1647. PEXCEPTION_DEBUG_INFO32 = ^EXCEPTION_DEBUG_INFO32;
  1648. _EXCEPTION_DEBUG_INFO32 = EXCEPTION_DEBUG_INFO32;
  1649. TExceptionDebugInfo32 = EXCEPTION_DEBUG_INFO32;
  1650. PExceptionDebugInfo32 = ^EXCEPTION_DEBUG_INFO32;
  1651. EXCEPTION_RECORD64 = record
  1652. ExceptionCode : DWORD;
  1653. ExceptionFlags : DWORD;
  1654. ExceptionRecord : DWORD64;
  1655. ExceptionAddress : DWORD64;
  1656. NumberParameters : DWORD;
  1657. __unusedAlignment : DWORD;
  1658. ExceptionInformation : array[0..(EXCEPTION_MAXIMUM_PARAMETERS)-1] of DWORD64;
  1659. end;
  1660. PEXCEPTION_RECORD64 = ^EXCEPTION_RECORD64;
  1661. _EXCEPTION_RECORD64 = EXCEPTION_RECORD64;
  1662. TExceptionRecord64 = EXCEPTION_RECORD64;
  1663. PExceptionRecord64 = ^EXCEPTION_RECORD64;
  1664. EXCEPTION_DEBUG_INFO64 = record
  1665. ExceptionRecord : EXCEPTION_RECORD64;
  1666. dwFirstChance : DWORD;
  1667. end;
  1668. PEXCEPTION_DEBUG_INFO64 = ^EXCEPTION_DEBUG_INFO64;
  1669. _EXCEPTION_DEBUG_INFO64 = EXCEPTION_DEBUG_INFO64;
  1670. TExceptionDebugInfo64 = EXCEPTION_DEBUG_INFO64;
  1671. PExceptionDebugInfo64 = ^EXCEPTION_DEBUG_INFO64;
  1672. EXIT_PROCESS_DEBUG_INFO = record
  1673. dwExitCode : DWORD;
  1674. end;
  1675. _EXIT_PROCESS_DEBUG_INFO = EXIT_PROCESS_DEBUG_INFO;
  1676. TEXITPROCESSDEBUGINFO = EXIT_PROCESS_DEBUG_INFO;
  1677. PEXITPROCESSDEBUGINFO = ^EXIT_PROCESS_DEBUG_INFO;
  1678. EXIT_THREAD_DEBUG_INFO = record
  1679. dwExitCode : DWORD;
  1680. end;
  1681. _EXIT_THREAD_DEBUG_INFO = EXIT_THREAD_DEBUG_INFO;
  1682. TEXITTHREADDEBUGINFO = EXIT_THREAD_DEBUG_INFO;
  1683. PEXITTHREADDEBUGINFO = ^EXIT_THREAD_DEBUG_INFO;
  1684. LOAD_DLL_DEBUG_INFO = record
  1685. hFile : HANDLE;
  1686. lpBaseOfDll : LPVOID;
  1687. dwDebugInfoFileOffset : DWORD;
  1688. nDebugInfoSize : DWORD;
  1689. lpImageName : LPVOID;
  1690. fUnicode : WORD;
  1691. end;
  1692. _LOAD_DLL_DEBUG_INFO = LOAD_DLL_DEBUG_INFO;
  1693. TLOADDLLDEBUGINFO = LOAD_DLL_DEBUG_INFO;
  1694. PLOADDLLDEBUGINFO = ^LOAD_DLL_DEBUG_INFO;
  1695. UNLOAD_DLL_DEBUG_INFO = record
  1696. lpBaseOfDll : LPVOID;
  1697. end;
  1698. _UNLOAD_DLL_DEBUG_INFO = UNLOAD_DLL_DEBUG_INFO;
  1699. TUNLOADDLLDEBUGINFO = UNLOAD_DLL_DEBUG_INFO;
  1700. PUNLOADDLLDEBUGINFO = ^UNLOAD_DLL_DEBUG_INFO;
  1701. OUTPUT_DEBUG_STRING_INFO = record
  1702. lpDebugStringData : LPSTR;
  1703. fUnicode : WORD;
  1704. nDebugStringLength : WORD;
  1705. end;
  1706. _OUTPUT_DEBUG_STRING_INFO = OUTPUT_DEBUG_STRING_INFO;
  1707. TOUTPUTDEBUGSTRINGINFO = OUTPUT_DEBUG_STRING_INFO;
  1708. POUTPUTDEBUGSTRINGINFO = ^OUTPUT_DEBUG_STRING_INFO;
  1709. RIP_INFO = record
  1710. dwError : DWORD;
  1711. dwType : DWORD;
  1712. end;
  1713. _RIP_INFO = RIP_INFO;
  1714. TRIPINFO = RIP_INFO;
  1715. PRIPINFO = ^RIP_INFO;
  1716. DEBUG_EVENT = record
  1717. dwDebugEventCode : DWORD;
  1718. dwProcessId : DWORD;
  1719. dwThreadId : DWORD;
  1720. case longint of
  1721. 0 : ( Exception : EXCEPTION_DEBUG_INFO );
  1722. 1 : ( CreateThread : CREATE_THREAD_DEBUG_INFO );
  1723. 2 : ( CreateProcessInfo : CREATE_PROCESS_DEBUG_INFO );
  1724. 3 : ( ExitThread : EXIT_THREAD_DEBUG_INFO );
  1725. 4 : ( ExitProcess : EXIT_PROCESS_DEBUG_INFO );
  1726. 5 : ( LoadDll : LOAD_DLL_DEBUG_INFO );
  1727. 6 : ( UnloadDll : UNLOAD_DLL_DEBUG_INFO );
  1728. 7 : ( DebugString : OUTPUT_DEBUG_STRING_INFO );
  1729. 8 : ( RipInfo : RIP_INFO );
  1730. end;
  1731. LPDEBUG_EVENT = ^DEBUG_EVENT;
  1732. _DEBUG_EVENT = DEBUG_EVENT;
  1733. TDEBUGEVENT = DEBUG_EVENT;
  1734. PDEBUGEVENT = ^DEBUG_EVENT;
  1735. DEBUGHOOKINFO = record
  1736. idThread : DWORD;
  1737. idThreadInstaller : DWORD;
  1738. lParam : LPARAM;
  1739. wParam : WPARAM;
  1740. code : longint;
  1741. end;
  1742. tagDEBUGHOOKINFO = DEBUGHOOKINFO;
  1743. TDEBUGHOOKINFO = DEBUGHOOKINFO;
  1744. PDEBUGHOOKINFO = ^DEBUGHOOKINFO;
  1745. DELETEITEMSTRUCT = record
  1746. CtlType : UINT;
  1747. CtlID : UINT;
  1748. itemID : UINT;
  1749. hwndItem : HWND;
  1750. itemData : ULONG_PTR;
  1751. end;
  1752. tagDELETEITEMSTRUCT = DELETEITEMSTRUCT;
  1753. TDELETEITEMSTRUCT = DELETEITEMSTRUCT;
  1754. PDELETEITEMSTRUCT = ^DELETEITEMSTRUCT;
  1755. DEV_BROADCAST_HDR = record
  1756. dbch_size : ULONG;
  1757. dbch_devicetype : ULONG;
  1758. dbch_reserved : ULONG;
  1759. end;
  1760. PDEV_BROADCAST_HDR = ^DEV_BROADCAST_HDR;
  1761. _DEV_BROADCAST_HDR = DEV_BROADCAST_HDR;
  1762. TDEVBROADCASTHDR = DEV_BROADCAST_HDR;
  1763. PDEVBROADCASTHDR = ^DEV_BROADCAST_HDR;
  1764. DEV_BROADCAST_OEM = record
  1765. dbco_size : ULONG;
  1766. dbco_devicetype : ULONG;
  1767. dbco_reserved : ULONG;
  1768. dbco_identifier : ULONG;
  1769. dbco_suppfunc : ULONG;
  1770. end;
  1771. PDEV_BROADCAST_OEM = ^DEV_BROADCAST_OEM;
  1772. _DEV_BROADCAST_OEM = DEV_BROADCAST_OEM;
  1773. TDEVBROADCASTOEM = DEV_BROADCAST_OEM;
  1774. PDEVBROADCASTOEM = ^DEV_BROADCAST_OEM;
  1775. DEV_BROADCAST_PORT = record
  1776. dbcp_size : ULONG;
  1777. dbcp_devicetype : ULONG;
  1778. dbcp_reserved : ULONG;
  1779. dbcp_name : array[0..0] of char;
  1780. end;
  1781. PDEV_BROADCAST_PORT = ^DEV_BROADCAST_PORT;
  1782. _DEV_BROADCAST_PORT = DEV_BROADCAST_PORT;
  1783. TDEVBROADCASTPORT = DEV_BROADCAST_PORT;
  1784. PDEVBROADCASTPORT = ^DEV_BROADCAST_PORT;
  1785. _DEV_BROADCAST_USERDEFINED = record
  1786. dbud_dbh : _DEV_BROADCAST_HDR;
  1787. dbud_szName : array[0..0] of char;
  1788. dbud_rgbUserDefined : array[0..0] of BYTE;
  1789. end;
  1790. TDEVBROADCASTUSERDEFINED = _DEV_BROADCAST_USERDEFINED;
  1791. PDEVBROADCASTUSERDEFINED = ^_DEV_BROADCAST_USERDEFINED;
  1792. DEV_BROADCAST_VOLUME = record
  1793. dbcv_size : ULONG;
  1794. dbcv_devicetype : ULONG;
  1795. dbcv_reserved : ULONG;
  1796. dbcv_unitmask : ULONG;
  1797. dbcv_flags : USHORT;
  1798. end;
  1799. PDEV_BROADCAST_VOLUME = ^DEV_BROADCAST_VOLUME;
  1800. _DEV_BROADCAST_VOLUME = DEV_BROADCAST_VOLUME;
  1801. TDEVBROADCASTVOLUME = DEV_BROADCAST_VOLUME;
  1802. PDEVBROADCASTVOLUME = ^DEV_BROADCAST_VOLUME;
  1803. DEVMODE = record
  1804. dmDeviceName : array[0..(CCHDEVICENAME)-1] of BCHAR;
  1805. dmSpecVersion : WORD;
  1806. dmDriverVersion : WORD;
  1807. dmSize : WORD;
  1808. dmDriverExtra : WORD;
  1809. dmFields : DWORD;
  1810. case byte of
  1811. 1: (dmOrientation : SmallInt;
  1812. dmPaperSize : SmallInt;
  1813. dmPaperLength : SmallInt;
  1814. dmPaperWidth : SmallInt;
  1815. dmScale : SmallInt;
  1816. dmCopies : SmallInt;
  1817. dmDefaultSource : SmallInt;
  1818. dmPrintQuality : SmallInt;
  1819. dmColor : SmallInt;
  1820. dmDuplex : SmallInt;
  1821. dmYResolution : SmallInt;
  1822. dmTTOption : SmallInt;
  1823. dmCollate : SmallInt;
  1824. dmFormName : array[0..(CCHFORMNAME)-1] of BCHAR;
  1825. dmLogPixels : WORD;
  1826. dmBitsPerPel : DWORD;
  1827. dmPelsWidth : DWORD;
  1828. dmPelsHeight : DWORD;
  1829. dmDisplayFlags : DWORD;
  1830. dmDisplayFrequency : DWORD;
  1831. dmICMMethod : DWORD;
  1832. dmICMIntent : DWORD;
  1833. dmMediaType : DWORD;
  1834. dmDitherType : DWORD;
  1835. dmICCManufacturer : DWORD;
  1836. dmICCModel : DWORD
  1837. );
  1838. 2: (dmPosition: POINTL;
  1839. dmDisplayOrientation: DWORD;
  1840. dmDisplayFixedOutput: DWORD;
  1841. );
  1842. end;
  1843. LPDEVMODE = ^DEVMODE;
  1844. _devicemode = DEVMODE;
  1845. devicemode = DEVMODE;
  1846. tdevicemode = DEVMODE;
  1847. tdevicemodeA = DEVMODE;
  1848. PDeviceModeA = LPDEVMODE;
  1849. PDeviceMode = LPDEVMODE;
  1850. TDEVMODE = DEVMODE;
  1851. PDEVMODE = LPDEVMODE;
  1852. devmodeW = record
  1853. dmDeviceName : array[0.. CCHDEVICENAME-1] of WCHAR;
  1854. dmSpecVersion : WORD;
  1855. dmDriverVersion: WORD;
  1856. dmSize : WORD;
  1857. dmDriverExtra : WORD;
  1858. dmFields : DWORD;
  1859. dmOrientation : short;
  1860. dmPaperSize : short;
  1861. dmPaperLength : short;
  1862. dmPaperWidth : short;
  1863. dmScale : short;
  1864. dmCopies : short;
  1865. dmDefaultSource: short;
  1866. dmPrintQuality : short;
  1867. dmColor : short;
  1868. dmDuplex : short;
  1869. dmYResolution : short;
  1870. dmTTOption : short;
  1871. dmCollate : short;
  1872. dmFormName : array [0..CCHFORMNAME-1] of wchar;
  1873. dmLogPixels : WORD;
  1874. dmBitsPerPel : DWORD;
  1875. dmPelsWidth : DWORD;
  1876. dmPelsHeight : DWORD;
  1877. dmDisplayFlags : DWORD;
  1878. dmDisplayFrequency : DWORD;
  1879. dmICMMethod : DWORD;
  1880. dmICMIntent : DWORD;
  1881. dmMediaType : DWORD;
  1882. dmDitherType : DWORD;
  1883. dmReserved1 : DWORD;
  1884. dmReserved2 : DWORD;
  1885. dmPanningWidth : DWORD;
  1886. dmPanningHeight: DWORD;
  1887. end;
  1888. LPDEVMODEW = ^DEVMODEW;
  1889. _devicemodeW = DEVMODEW;
  1890. devicemodeW = DEVMODEW;
  1891. TDeviceModeW = DEVMODEW;
  1892. PDeviceModeW = LPDEVMODEW;
  1893. TDEVMODEW = DEVMODEW;
  1894. PDEVMODEW = LPDEVMODEW;
  1895. DEVNAMES = record
  1896. wDriverOffset : WORD;
  1897. wDeviceOffset : WORD;
  1898. wOutputOffset : WORD;
  1899. wDefault : WORD;
  1900. end;
  1901. LPDEVNAMES = ^DEVNAMES;
  1902. tagDEVNAMES = DEVNAMES;
  1903. TDEVNAMES = DEVNAMES;
  1904. PDEVNAMES = ^DEVNAMES;
  1905. DIBSECTION = record
  1906. dsBm : BITMAP;
  1907. dsBmih : BITMAPINFOHEADER;
  1908. dsBitfields : array[0..2] of DWORD;
  1909. dshSection : HANDLE;
  1910. dsOffset : DWORD;
  1911. end;
  1912. tagDIBSECTION = DIBSECTION;
  1913. TDIBSECTION = DIBSECTION;
  1914. PDIBSECTION = ^DIBSECTION;
  1915. LARGE_INTEGER = record
  1916. case byte of
  1917. 0: (LowPart : DWORD;
  1918. HighPart : LONG);
  1919. 1: (QuadPart : LONGLONG);
  1920. end;
  1921. PLARGE_INTEGER = ^LARGE_INTEGER;
  1922. _LARGE_INTEGER = LARGE_INTEGER;
  1923. TLargeInteger = Int64;
  1924. PLargeInteger = ^TLargeInteger;
  1925. ULARGE_INTEGER = record
  1926. case byte of
  1927. 0: (LowPart : DWORD;
  1928. HighPart : DWORD);
  1929. 1: (QuadPart : LONGLONG);
  1930. end;
  1931. PULARGE_INTEGER = ^ULARGE_INTEGER;
  1932. _ULARGE_INTEGER = ULARGE_INTEGER;
  1933. TULargeInteger = QWord;
  1934. PULargeInteger = ^TULargeInteger;
  1935. DISK_GEOMETRY = record
  1936. Cylinders : LARGE_INTEGER;
  1937. MediaType : MEDIA_TYPE;
  1938. TracksPerCylinder : DWORD;
  1939. SectorsPerTrack : DWORD;
  1940. BytesPerSector : DWORD;
  1941. end;
  1942. _DISK_GEOMETRY = DISK_GEOMETRY;
  1943. TDISKGEOMETRY = DISK_GEOMETRY;
  1944. PDISKGEOMETRY = ^DISK_GEOMETRY;
  1945. DISK_PERFORMANCE = record
  1946. BytesRead : LARGE_INTEGER;
  1947. BytesWritten : LARGE_INTEGER;
  1948. ReadTime : LARGE_INTEGER;
  1949. WriteTime : LARGE_INTEGER;
  1950. ReadCount : DWORD;
  1951. WriteCount : DWORD;
  1952. QueueDepth : DWORD;
  1953. end;
  1954. _DISK_PERFORMANCE = DISK_PERFORMANCE;
  1955. TDISKPERFORMANCE = DISK_PERFORMANCE;
  1956. PDISKPERFORMANCE = ^DISK_PERFORMANCE;
  1957. DLGITEMTEMPLATE = packed record
  1958. style : DWORD;
  1959. dwExtendedStyle : DWORD;
  1960. x : smallint;
  1961. y : smallint;
  1962. cx : smallint;
  1963. cy : smallint;
  1964. id : WORD;
  1965. end;
  1966. LPDLGITEMTEMPLATE = ^DLGITEMTEMPLATE;
  1967. TDLGITEMTEMPLATE = DLGITEMTEMPLATE;
  1968. PDLGITEMTEMPLATE = ^DLGITEMTEMPLATE;
  1969. DLGTEMPLATE = packed record
  1970. style : DWORD;
  1971. dwExtendedStyle : DWORD;
  1972. cdit : WORD;
  1973. x : smallint;
  1974. y : smallint;
  1975. cx : smallint;
  1976. cy : smallint;
  1977. end;
  1978. LPDLGTEMPLATE = ^DLGTEMPLATE;
  1979. LPCDLGTEMPLATE = ^DLGTEMPLATE;
  1980. TDLGTEMPLATE = DLGTEMPLATE;
  1981. PDLGTEMPLATE = ^DLGTEMPLATE;
  1982. DOC_INFO_1 = record
  1983. pDocName : LPTSTR;
  1984. pOutputFile : LPTSTR;
  1985. pDatatype : LPTSTR;
  1986. end;
  1987. _DOC_INFO_1 = DOC_INFO_1;
  1988. TDOCINFO1 = DOC_INFO_1;
  1989. PDOCINFO1 = ^DOC_INFO_1;
  1990. DOC_INFO_2 = record
  1991. pDocName : LPTSTR;
  1992. pOutputFile : LPTSTR;
  1993. pDatatype : LPTSTR;
  1994. dwMode : DWORD;
  1995. JobId : DWORD;
  1996. end;
  1997. _DOC_INFO_2 = DOC_INFO_2;
  1998. TDOCINFO2 = DOC_INFO_2;
  1999. PDOCINFO2 = ^DOC_INFO_2;
  2000. DOCINFO = record
  2001. cbSize : longint;
  2002. lpszDocName : LPCTSTR;
  2003. lpszOutput : LPCTSTR;
  2004. lpszDatatype : LPCTSTR;
  2005. fwType : DWORD;
  2006. end;
  2007. TDOCINFO = DOCINFO;
  2008. TDOCINFOA = DOCINFO;
  2009. PDOCINFO = ^DOCINFO;
  2010. DRAGLISTINFO = record
  2011. uNotification : UINT;
  2012. hWnd : HWND;
  2013. ptCursor : POINT;
  2014. end;
  2015. LPDRAGLISTINFO = ^DRAGLISTINFO;
  2016. TDRAGLISTINFO = DRAGLISTINFO;
  2017. PDRAGLISTINFO = ^DRAGLISTINFO;
  2018. DRAWITEMSTRUCT = record
  2019. CtlType : UINT;
  2020. CtlID : UINT;
  2021. itemID : UINT;
  2022. itemAction : UINT;
  2023. itemState : UINT;
  2024. hwndItem : HWND;
  2025. hDC : HDC;
  2026. rcItem : RECT;
  2027. itemData : ULONG_PTR;
  2028. end;
  2029. LPDRAWITEMSTRUCT = ^DRAWITEMSTRUCT;
  2030. tagDRAWITEMSTRUCT = DRAWITEMSTRUCT;
  2031. TDRAWITEMSTRUCT = DRAWITEMSTRUCT;
  2032. PDRAWITEMSTRUCT = ^DRAWITEMSTRUCT;
  2033. DRAWTEXTPARAMS = record
  2034. cbSize : UINT;
  2035. iTabLength : longint;
  2036. iLeftMargin : longint;
  2037. iRightMargin : longint;
  2038. uiLengthDrawn : UINT;
  2039. end;
  2040. LPDRAWTEXTPARAMS = ^DRAWTEXTPARAMS;
  2041. TDRAWTEXTPARAMS = DRAWTEXTPARAMS;
  2042. PDRAWTEXTPARAMS = ^DRAWTEXTPARAMS;
  2043. PARTITION_INFORMATION = record
  2044. StartingOffset : LARGE_INTEGER;
  2045. PartitionLength: LARGE_INTEGER;
  2046. HiddenSectors : DWORD;
  2047. PartitionNumber: DWORD;
  2048. PartitionType : BYTE;
  2049. BootIndicator : BYTEBOOL;
  2050. RecognizedPartition : BYTEBOOL;
  2051. RewritePartition : BYTEBOOL;
  2052. end;
  2053. _PARTITION_INFORMATION = PARTITION_INFORMATION;
  2054. TPARTITIONINFORMATION = PARTITION_INFORMATION;
  2055. PPARTITIONINFORMATION = ^PARTITION_INFORMATION;
  2056. PARTITION_INFORMATION_GPT = record
  2057. PartitionType : TGUID;
  2058. PartitionID : TGUID;
  2059. Attributes : DWORD64;
  2060. Name : array[0..35] OF WCHAR;
  2061. end;
  2062. TPARTITION_INFORMATION_GPT= PARTITION_INFORMATION_GPT;
  2063. PPARTITION_INFORMATION_GPT= ^PARTITION_INFORMATION_GPT;
  2064. PARTITION_INFORMATION_MBR = record
  2065. PartitionType : Byte;
  2066. BootIndicator : ByteBool;
  2067. RecognizedPartition : ByteBool;
  2068. HiddenSectors : DWORD;
  2069. end;
  2070. TPARTITION_INFORMATION_MBR= PARTITION_INFORMATION_MBR;
  2071. PPARTITION_INFORMATION_MBR= ^PARTITION_INFORMATION_MBR;
  2072. SET_PARTITION_INFORMATION = record
  2073. PartitionType : BYTE;
  2074. end;
  2075. _SET_PARTITION_INFORMATION = SET_PARTITION_INFORMATION;
  2076. TSETPARTITIONINFORMATION = SET_PARTITION_INFORMATION;
  2077. PSETPARTITIONINFORMATION = ^SET_PARTITION_INFORMATION;
  2078. SET_PARTITION_INFORMATION_MBR = PARTITION_INFORMATION;
  2079. TSET_PARTITION_INFORMATION_MBR = PARTITION_INFORMATION;
  2080. SET_PARTITION_INFORMATION_GPT = PARTITION_INFORMATION_GPT;
  2081. TSET_PARTITION_INFORMATION_GPT = PARTITION_INFORMATION_GPT;
  2082. SET_PARTITION_INFORMATION_EX = record
  2083. PartitionStyle : TPartition_Style;
  2084. case integer of
  2085. 0 : (mbr : SET_PARTITION_INFORMATION_MBR);
  2086. 1 : (GPT : SET_PARTITION_INFORMATION_GPT);
  2087. end;
  2088. TSET_PARTITION_INFORMATION_EX = SET_PARTITION_INFORMATION_EX;
  2089. PSET_PARTITION_INFORMATION_EX = ^SET_PARTITION_INFORMATION_EX;
  2090. CREATE_DISK_GPT = record
  2091. DiskID : TGUID;
  2092. MaxPartitionCount : DWord;
  2093. end;
  2094. TCREATE_DISK_GPT = CREATE_DISK_GPT;
  2095. PCREATE_DISK_GPT = ^TCREATE_DISK_GPT;
  2096. CREATE_DISK_MBR = record
  2097. Signature : DWord;
  2098. end;
  2099. TCREATE_DISK_MBR = CREATE_DISK_MBR;
  2100. PCREATE_DISK_MBR = ^TCREATE_DISK_MBR;
  2101. CREATE_DISK = record
  2102. PartitionStyle : TPartition_Style;
  2103. case integer of
  2104. 0: ( MBR : Create_Disk_MBR);
  2105. 1: ( GPT : Create_Disk_GPT);
  2106. end;
  2107. TCREATE_DISK = CREATE_DISK;
  2108. PCREATE_DISK = ^TCREATE_DISK;
  2109. GET_LENGTH_INFORMATION = record
  2110. Length : LARGE_INTEGER;
  2111. end;
  2112. TGET_LENGTH_INFORMATION = GET_LENGTH_INFORMATION;
  2113. PGET_LENGTH_INFORMATION = ^GET_LENGTH_INFORMATION;
  2114. PARTITION_INFORMATION_EX = record
  2115. PartitionStyle : TPartition_Style;
  2116. StartingOffset : LARGE_INTEGER;
  2117. PartitionLength : LARGE_INTEGER;
  2118. PartitionNumber : DWORD;
  2119. RewritePartition: BYTEBOOL;
  2120. case integer of
  2121. 0: ( MBR : PARTITION_INFORMATION_MBR);
  2122. 1: ( GPT : PARTITION_INFORMATION_GPT);
  2123. end;
  2124. _PARTITION_INFORMATION_EX = PARTITION_INFORMATION_EX;
  2125. TPARTITIONINFORMATION_EX = PARTITION_INFORMATION_EX;
  2126. PPARTITIONINFORMATION_EX = ^PARTITION_INFORMATION_EX;
  2127. DRIVE_LAYOUT_INFORMATION = record
  2128. PartitionCount : DWORD;
  2129. Signature : DWORD;
  2130. PartitionEntry : array[0..0] of PARTITION_INFORMATION;
  2131. end;
  2132. _DRIVE_LAYOUT_INFORMATION = DRIVE_LAYOUT_INFORMATION;
  2133. TDRIVELAYOUTINFORMATION = DRIVE_LAYOUT_INFORMATION;
  2134. PDRIVELAYOUTINFORMATION = ^DRIVE_LAYOUT_INFORMATION;
  2135. DRIVER_INFO_1 = record
  2136. pName : LPTSTR;
  2137. end;
  2138. _DRIVER_INFO_1 = DRIVER_INFO_1;
  2139. TDRIVERINFO1 = DRIVER_INFO_1;
  2140. PDRIVERINFO1 = ^DRIVER_INFO_1;
  2141. DRIVER_INFO_2 = record
  2142. cVersion : DWORD;
  2143. pName : LPTSTR;
  2144. pEnvironment : LPTSTR;
  2145. pDriverPath : LPTSTR;
  2146. pDataFile : LPTSTR;
  2147. pConfigFile : LPTSTR;
  2148. end;
  2149. _DRIVER_INFO_2 = DRIVER_INFO_2;
  2150. TDRIVERINFO2 = DRIVER_INFO_2;
  2151. PDRIVERINFO2 = ^DRIVER_INFO_2;
  2152. DRIVER_INFO_3 = record
  2153. cVersion : DWORD;
  2154. pName : LPTSTR;
  2155. pEnvironment : LPTSTR;
  2156. pDriverPath : LPTSTR;
  2157. pDataFile : LPTSTR;
  2158. pConfigFile : LPTSTR;
  2159. pHelpFile : LPTSTR;
  2160. pDependentFiles : LPTSTR;
  2161. pMonitorName : LPTSTR;
  2162. pDefaultDataType : LPTSTR;
  2163. end;
  2164. _DRIVER_INFO_3 = DRIVER_INFO_3;
  2165. TDRIVERINFO3 = DRIVER_INFO_3;
  2166. PDRIVERINFO3 = ^DRIVER_INFO_3;
  2167. EDITSTREAM = record
  2168. dwCookie : DWORD;
  2169. dwError : DWORD;
  2170. pfnCallback : EDITSTREAMCALLBACK;
  2171. end;
  2172. _editstream = EDITSTREAM;
  2173. Teditstream = EDITSTREAM;
  2174. Peditstream = ^EDITSTREAM;
  2175. EMR = record
  2176. iType : DWORD;
  2177. nSize : DWORD;
  2178. end;
  2179. tagEMR = EMR;
  2180. TEMR = EMR;
  2181. PEMR = ^EMR;
  2182. EMRANGLEARC = record
  2183. emr : EMR;
  2184. ptlCenter : POINTL;
  2185. nRadius : DWORD;
  2186. eStartAngle : Single;
  2187. eSweepAngle : Single;
  2188. end;
  2189. tagEMRANGLEARC = EMRANGLEARC;
  2190. TEMRANGLEARC = EMRANGLEARC;
  2191. PEMRANGLEARC = ^EMRANGLEARC;
  2192. EMRARC = record
  2193. emr : EMR;
  2194. rclBox : RECTL;
  2195. ptlStart : POINTL;
  2196. ptlEnd : POINTL;
  2197. end;
  2198. tagEMRARC = EMRARC;
  2199. TEMRARC = EMRARC;
  2200. PEMRARC = ^EMRARC;
  2201. EMRARCTO = EMRARC;
  2202. TEMRARCTO = EMRARC;
  2203. PEMRARCTO = ^EMRARC;
  2204. EMRCHORD = EMRARC;
  2205. TEMRCHORD = EMRARC;
  2206. PEMRCHORD = ^EMRARC;
  2207. EMRPIE = EMRARC;
  2208. TEMRPIE = EMRARC;
  2209. PEMRPIE = ^EMRARC;
  2210. XFORM = record
  2211. eM11 : Single;
  2212. eM12 : Single;
  2213. eM21 : Single;
  2214. eM22 : Single;
  2215. eDx : Single;
  2216. eDy : Single;
  2217. end;
  2218. LPXFORM = ^XFORM;
  2219. _XFORM = XFORM;
  2220. TXFORM = XFORM;
  2221. PXFORM = ^XFORM;
  2222. EMRBITBLT = record
  2223. emr : EMR;
  2224. rclBounds : RECTL;
  2225. xDest : LONG;
  2226. yDest : LONG;
  2227. cxDest : LONG;
  2228. cyDest : LONG;
  2229. dwRop : DWORD;
  2230. xSrc : LONG;
  2231. ySrc : LONG;
  2232. xformSrc : XFORM;
  2233. crBkColorSrc : COLORREF;
  2234. iUsageSrc : DWORD;
  2235. offBmiSrc : DWORD;
  2236. offBitsSrc : DWORD;
  2237. cbBitsSrc : DWORD;
  2238. end;
  2239. tagEMRBITBLT = EMRBITBLT;
  2240. TEMRBITBLT = EMRBITBLT;
  2241. PEMRBITBLT = ^EMRBITBLT;
  2242. LOGBRUSH = record
  2243. lbStyle : UINT;
  2244. lbColor : COLORREF;
  2245. lbHatch : ULONG_PTR;
  2246. end;
  2247. tagLOGBRUSH = LOGBRUSH;
  2248. TLOGBRUSH = LOGBRUSH;
  2249. PLOGBRUSH = ^LOGBRUSH;
  2250. EMRCREATEBRUSHINDIRECT = record
  2251. emr : EMR;
  2252. ihBrush : DWORD;
  2253. lb : LOGBRUSH;
  2254. end;
  2255. tagEMRCREATEBRUSHINDIRECT = EMRCREATEBRUSHINDIRECT;
  2256. TEMRCREATEBRUSHINDIRECT = EMRCREATEBRUSHINDIRECT;
  2257. PEMRCREATEBRUSHINDIRECT = ^EMRCREATEBRUSHINDIRECT;
  2258. LCSCSTYPE = LONG;
  2259. LCSGAMUTMATCH = LONG;
  2260. LOGCOLORSPACE = record
  2261. lcsSignature : DWORD;
  2262. lcsVersion : DWORD;
  2263. lcsSize : DWORD;
  2264. lcsCSType : LCSCSTYPE;
  2265. lcsIntent : LCSGAMUTMATCH;
  2266. lcsEndpoints : CIEXYZTRIPLE;
  2267. lcsGammaRed : DWORD;
  2268. lcsGammaGreen : DWORD;
  2269. lcsGammaBlue : DWORD;
  2270. lcsFilename : array[0..(MAX_PATH)-1] of TCHAR;
  2271. end;
  2272. LPLOGCOLORSPACE = ^LOGCOLORSPACE;
  2273. tagLOGCOLORSPACE = LOGCOLORSPACE;
  2274. TLOGCOLORSPACE = LOGCOLORSPACE;
  2275. TLOGCOLORSPACEA = LOGCOLORSPACE;
  2276. PLOGCOLORSPACE = ^LOGCOLORSPACE;
  2277. EMRCREATECOLORSPACE = record
  2278. emr : EMR;
  2279. ihCS : DWORD;
  2280. lcs : LOGCOLORSPACE;
  2281. end;
  2282. tagEMRCREATECOLORSPACE = EMRCREATECOLORSPACE;
  2283. TEMRCREATECOLORSPACE = EMRCREATECOLORSPACE;
  2284. PEMRCREATECOLORSPACE = ^EMRCREATECOLORSPACE;
  2285. EMRCREATEDIBPATTERNBRUSHPT = record
  2286. emr : EMR;
  2287. ihBrush : DWORD;
  2288. iUsage : DWORD;
  2289. offBmi : DWORD;
  2290. cbBmi : DWORD;
  2291. offBits : DWORD;
  2292. cbBits : DWORD;
  2293. end;
  2294. tagEMRCREATEDIBPATTERNBRUSHPT = EMRCREATEDIBPATTERNBRUSHPT;
  2295. TEMRCREATEDIBPATTERNBRUSHPT = EMRCREATEDIBPATTERNBRUSHPT;
  2296. PEMRCREATEDIBPATTERNBRUSHPT = EMRCREATEDIBPATTERNBRUSHPT;
  2297. EMRCREATEMONOBRUSH = record
  2298. emr : EMR;
  2299. ihBrush : DWORD;
  2300. iUsage : DWORD;
  2301. offBmi : DWORD;
  2302. cbBmi : DWORD;
  2303. offBits : DWORD;
  2304. cbBits : DWORD;
  2305. end;
  2306. tagEMRCREATEMONOBRUSH = EMRCREATEMONOBRUSH;
  2307. TEMRCREATEMONOBRUSH = EMRCREATEMONOBRUSH;
  2308. PEMRCREATEMONOBRUSH = ^EMRCREATEMONOBRUSH;
  2309. PALETTEENTRY = record
  2310. peRed : BYTE;
  2311. peGreen : BYTE;
  2312. peBlue : BYTE;
  2313. peFlags : BYTE;
  2314. end;
  2315. LPPALETTEENTRY = ^PALETTEENTRY;
  2316. tagPALETTEENTRY = PALETTEENTRY;
  2317. TPALETTEENTRY = PALETTEENTRY;
  2318. PPALETTEENTRY = ^PALETTEENTRY;
  2319. LOGPALETTE = record
  2320. palVersion : WORD;
  2321. palNumEntries : WORD;
  2322. palPalEntry : array[0..0] of PALETTEENTRY;
  2323. end;
  2324. LPLOGPALETTE = ^LOGPALETTE;
  2325. tagLOGPALETTE = LOGPALETTE;
  2326. TLOGPALETTE = LOGPALETTE;
  2327. PLOGPALETTE = ^LOGPALETTE;
  2328. EMRCREATEPALETTE = record
  2329. emr : EMR;
  2330. ihPal : DWORD;
  2331. lgpl : LOGPALETTE;
  2332. end;
  2333. tagEMRCREATEPALETTE = EMRCREATEPALETTE;
  2334. TEMRCREATEPALETTE = EMRCREATEPALETTE;
  2335. PEMRCREATEPALETTE = ^EMRCREATEPALETTE;
  2336. LOGPEN = record
  2337. lopnStyle : UINT;
  2338. lopnWidth : POINT;
  2339. lopnColor : COLORREF;
  2340. end;
  2341. tagLOGPEN = LOGPEN;
  2342. TLOGPEN = LOGPEN;
  2343. PLOGPEN = ^LOGPEN;
  2344. EMRCREATEPEN = record
  2345. emr : EMR;
  2346. ihPen : DWORD;
  2347. lopn : LOGPEN;
  2348. end;
  2349. tagEMRCREATEPEN = EMRCREATEPEN;
  2350. TEMRCREATEPEN = EMRCREATEPEN;
  2351. PEMRCREATEPEN = ^EMRCREATEPEN;
  2352. EMRELLIPSE = record
  2353. emr : EMR;
  2354. rclBox : RECTL;
  2355. end;
  2356. tagEMRELLIPSE = EMRELLIPSE;
  2357. TEMRELLIPSE = EMRELLIPSE;
  2358. PEMRELLIPSE = ^EMRELLIPSE;
  2359. EMRRECTANGLE = EMRELLIPSE;
  2360. TEMRRECTANGLE = EMRELLIPSE;
  2361. PEMRRECTANGLE = ^EMRELLIPSE;
  2362. EMREOF = record
  2363. emr : EMR;
  2364. nPalEntries : DWORD;
  2365. offPalEntries : DWORD;
  2366. nSizeLast : DWORD;
  2367. end;
  2368. tagEMREOF = EMREOF;
  2369. TEMREOF = EMREOF;
  2370. PEMREOF = ^EMREOF;
  2371. EMREXCLUDECLIPRECT = record
  2372. emr : EMR;
  2373. rclClip : RECTL;
  2374. end;
  2375. tagEMREXCLUDECLIPRECT = EMREXCLUDECLIPRECT;
  2376. TEMREXCLUDECLIPRECT = EMREXCLUDECLIPRECT;
  2377. PEMREXCLUDECLIPRECT = ^EMREXCLUDECLIPRECT;
  2378. EMRINTERSECTCLIPRECT = EMREXCLUDECLIPRECT;
  2379. TEMRINTERSECTCLIPRECT = EMREXCLUDECLIPRECT;
  2380. PEMRINTERSECTCLIPRECT = ^EMREXCLUDECLIPRECT;
  2381. PANOSE = record
  2382. bFamilyType : BYTE;
  2383. bSerifStyle : BYTE;
  2384. bWeight : BYTE;
  2385. bProportion : BYTE;
  2386. bContrast : BYTE;
  2387. bStrokeVariation : BYTE;
  2388. bArmStyle : BYTE;
  2389. bLetterform : BYTE;
  2390. bMidline : BYTE;
  2391. bXHeight : BYTE;
  2392. end;
  2393. tagPANOSE = PANOSE;
  2394. TPANOSE = PANOSE;
  2395. PPANOSE = ^PANOSE;
  2396. EXTLOGFONT = record
  2397. elfLogFont : LOGFONT;
  2398. elfFullName : array[0..(LF_FULLFACESIZE)-1] of BCHAR;
  2399. elfStyle : array[0..(LF_FACESIZE)-1] of BCHAR;
  2400. elfVersion : DWORD;
  2401. elfStyleSize : DWORD;
  2402. elfMatch : DWORD;
  2403. elfReserved : DWORD;
  2404. elfVendorId : array[0..(ELF_VENDOR_SIZE)-1] of BYTE;
  2405. elfCulture : DWORD;
  2406. elfPanose : PANOSE;
  2407. end;
  2408. tagEXTLOGFONT = EXTLOGFONT;
  2409. TEXTLOGFONT = EXTLOGFONT;
  2410. PEXTLOGFONT = ^EXTLOGFONT;
  2411. EMREXTCREATEFONTINDIRECTW = record
  2412. emr : EMR;
  2413. ihFont : DWORD;
  2414. elfw : EXTLOGFONT;
  2415. end;
  2416. tagEMREXTCREATEFONTINDIRECTW = EMREXTCREATEFONTINDIRECTW;
  2417. TEMREXTCREATEFONTINDIRECTW = EMREXTCREATEFONTINDIRECTW;
  2418. PEMREXTCREATEFONTINDIRECTW = ^EMREXTCREATEFONTINDIRECTW;
  2419. EXTLOGPEN = record
  2420. elpPenStyle : UINT;
  2421. elpWidth : UINT;
  2422. elpBrushStyle : UINT;
  2423. elpColor : COLORREF;
  2424. elpHatch : ULONG_ptr;
  2425. elpNumEntries : DWORD;
  2426. elpStyleEntry : array[0..0] of DWORD;
  2427. end;
  2428. tagEXTLOGPEN = EXTLOGPEN;
  2429. TEXTLOGPEN = EXTLOGPEN;
  2430. PEXTLOGPEN = ^EXTLOGPEN;
  2431. EMREXTCREATEPEN = record
  2432. emr : EMR;
  2433. ihPen : DWORD;
  2434. offBmi : DWORD;
  2435. cbBmi : DWORD;
  2436. offBits : DWORD;
  2437. cbBits : DWORD;
  2438. elp : EXTLOGPEN;
  2439. end;
  2440. tagEMREXTCREATEPEN = EMREXTCREATEPEN;
  2441. TEMREXTCREATEPEN = EMREXTCREATEPEN;
  2442. PEMREXTCREATEPEN = ^EMREXTCREATEPEN;
  2443. EMREXTFLOODFILL = record
  2444. emr : EMR;
  2445. ptlStart : POINTL;
  2446. crColor : COLORREF;
  2447. iMode : DWORD;
  2448. end;
  2449. tagEMREXTFLOODFILL = EMREXTFLOODFILL;
  2450. TEMREXTFLOODFILL = EMREXTFLOODFILL;
  2451. PEMREXTFLOODFILL = ^EMREXTFLOODFILL;
  2452. EMREXTSELECTCLIPRGN = record
  2453. emr : EMR;
  2454. cbRgnData : DWORD;
  2455. iMode : DWORD;
  2456. RgnData : array[0..0] of BYTE;
  2457. end;
  2458. tagEMREXTSELECTCLIPRGN = EMREXTSELECTCLIPRGN;
  2459. TEMREXTSELECTCLIPRGN = EMREXTSELECTCLIPRGN;
  2460. PEMREXTSELECTCLIPRGN = ^EMREXTSELECTCLIPRGN;
  2461. EMRTEXT = record
  2462. ptlReference : POINTL;
  2463. nChars : DWORD;
  2464. offString : DWORD;
  2465. fOptions : DWORD;
  2466. rcl : RECTL;
  2467. offDx : DWORD;
  2468. end;
  2469. tagEMRTEXT = EMRTEXT;
  2470. TEMRTEXT = EMRTEXT;
  2471. PEMRTEXT = ^EMRTEXT;
  2472. EMREXTTEXTOUTA = record
  2473. emr : EMR;
  2474. rclBounds : RECTL;
  2475. iGraphicsMode : DWORD;
  2476. exScale : Single;
  2477. eyScale : Single;
  2478. emrtext : EMRTEXT;
  2479. end;
  2480. tagEMREXTTEXTOUTA = EMREXTTEXTOUTA;
  2481. TEMREXTTEXTOUTA = EMREXTTEXTOUTA;
  2482. PEMREXTTEXTOUTA = ^EMREXTTEXTOUTA;
  2483. EMREXTTEXTOUTW = EMREXTTEXTOUTA;
  2484. TEMREXTTEXTOUTW = EMREXTTEXTOUTA;
  2485. PEMREXTTEXTOUTW = ^EMREXTTEXTOUTA;
  2486. EMRFILLPATH = record
  2487. emr : EMR;
  2488. rclBounds : RECTL;
  2489. end;
  2490. tagEMRFILLPATH = EMRFILLPATH;
  2491. TEMRFILLPATH = EMRFILLPATH;
  2492. PEMRFILLPATH = ^EMRFILLPATH;
  2493. EMRSTROKEANDFILLPATH = EMRFILLPATH;
  2494. TEMRSTROKEANDFILLPATH = EMRFILLPATH;
  2495. PEMRSTROKEANDFILLPATH = ^EMRFILLPATH;
  2496. EMRSTROKEPATH = EMRFILLPATH;
  2497. TEMRSTROKEPATH = EMRFILLPATH;
  2498. PEMRSTROKEPATH = ^EMRFILLPATH;
  2499. EMRFILLRGN = record
  2500. emr : EMR;
  2501. rclBounds : RECTL;
  2502. cbRgnData : DWORD;
  2503. ihBrush : DWORD;
  2504. RgnData : array[0..0] of BYTE;
  2505. end;
  2506. tagEMRFILLRGN = EMRFILLRGN;
  2507. TEMRFILLRGN = EMRFILLRGN;
  2508. PEMRFILLRGN = ^EMRFILLRGN;
  2509. EMRFORMAT = record
  2510. dSignature : DWORD;
  2511. nVersion : DWORD;
  2512. cbData : DWORD;
  2513. offData : DWORD;
  2514. end;
  2515. tagEMRFORMAT = EMRFORMAT;
  2516. TEMRFORMAT = EMRFORMAT;
  2517. PEMRFORMAT = ^EMRFORMAT;
  2518. SIZE = record
  2519. cx : LONG;
  2520. cy : LONG;
  2521. end;
  2522. LPSIZE = ^SIZE;
  2523. tagSIZE = SIZE;
  2524. TSIZE = SIZE;
  2525. PSIZE = ^SIZE;
  2526. SIZEL = SIZE;
  2527. TSIZEL = SIZE;
  2528. PSIZEL = ^SIZE;
  2529. LPSIZEL = ^SIZE;
  2530. EMRFRAMERGN = record
  2531. emr : EMR;
  2532. rclBounds : RECTL;
  2533. cbRgnData : DWORD;
  2534. ihBrush : DWORD;
  2535. szlStroke : SIZEL;
  2536. RgnData : array[0..0] of BYTE;
  2537. end;
  2538. tagEMRFRAMERGN = EMRFRAMERGN;
  2539. TEMRFRAMERGN = EMRFRAMERGN;
  2540. PEMRFRAMERGN = ^EMRFRAMERGN;
  2541. EMRGDICOMMENT = record
  2542. emr : EMR;
  2543. cbData : DWORD;
  2544. Data : array[0..0] of BYTE;
  2545. end;
  2546. tagEMRGDICOMMENT = EMRGDICOMMENT;
  2547. TEMRGDICOMMENT = EMRGDICOMMENT;
  2548. PEMRGDICOMMENT = ^EMRGDICOMMENT;
  2549. EMRINVERTRGN = record
  2550. emr : EMR;
  2551. rclBounds : RECTL;
  2552. cbRgnData : DWORD;
  2553. RgnData : array[0..0] of BYTE;
  2554. end;
  2555. tagEMRINVERTRGN = EMRINVERTRGN;
  2556. TEMRINVERTRGN = EMRINVERTRGN;
  2557. PEMRINVERTRGN = ^EMRINVERTRGN;
  2558. EMRPAINTRGN = EMRINVERTRGN;
  2559. TEMRPAINTRGN = EMRINVERTRGN;
  2560. PEMRPAINTRGN = ^EMRINVERTRGN;
  2561. EMRLINETO = record
  2562. emr : EMR;
  2563. ptl : POINTL;
  2564. end;
  2565. tagEMRLINETO = EMRLINETO;
  2566. TEMRLINETO = EMRLINETO;
  2567. PEMRLINETO = ^EMRLINETO;
  2568. EMRMOVETOEX = EMRLINETO;
  2569. TEMRMOVETOEX = EMRLINETO;
  2570. PEMRMOVETOEX = ^EMRLINETO;
  2571. EMRMASKBLT = record
  2572. emr : EMR;
  2573. rclBounds : RECTL;
  2574. xDest : LONG;
  2575. yDest : LONG;
  2576. cxDest : LONG;
  2577. cyDest : LONG;
  2578. dwRop : DWORD;
  2579. xSrc : LONG;
  2580. ySrc : LONG;
  2581. xformSrc : XFORM;
  2582. crBkColorSrc : COLORREF;
  2583. iUsageSrc : DWORD;
  2584. offBmiSrc : DWORD;
  2585. cbBmiSrc : DWORD;
  2586. offBitsSrc : DWORD;
  2587. cbBitsSrc : DWORD;
  2588. xMask : LONG;
  2589. yMask : LONG;
  2590. iUsageMask : DWORD;
  2591. offBmiMask : DWORD;
  2592. cbBmiMask : DWORD;
  2593. offBitsMask : DWORD;
  2594. cbBitsMask : DWORD;
  2595. end;
  2596. tagEMRMASKBLT = EMRMASKBLT;
  2597. TEMRMASKBLT = EMRMASKBLT;
  2598. PEMRMASKBLT = ^EMRMASKBLT;
  2599. EMRMODIFYWORLDTRANSFORM = record
  2600. emr : EMR;
  2601. xform : XFORM;
  2602. iMode : DWORD;
  2603. end;
  2604. tagEMRMODIFYWORLDTRANSFORM = EMRMODIFYWORLDTRANSFORM;
  2605. TEMRMODIFYWORLDTRANSFORM = EMRMODIFYWORLDTRANSFORM;
  2606. PEMRMODIFYWORLDTRANSFORM = EMRMODIFYWORLDTRANSFORM;
  2607. EMROFFSETCLIPRGN = record
  2608. emr : EMR;
  2609. ptlOffset : POINTL;
  2610. end;
  2611. tagEMROFFSETCLIPRGN = EMROFFSETCLIPRGN;
  2612. TEMROFFSETCLIPRGN = EMROFFSETCLIPRGN;
  2613. PEMROFFSETCLIPRGN = ^EMROFFSETCLIPRGN;
  2614. EMRPLGBLT = record
  2615. emr : EMR;
  2616. rclBounds : RECTL;
  2617. aptlDest : array[0..2] of POINTL;
  2618. xSrc : LONG;
  2619. ySrc : LONG;
  2620. cxSrc : LONG;
  2621. cySrc : LONG;
  2622. xformSrc : XFORM;
  2623. crBkColorSrc : COLORREF;
  2624. iUsageSrc : DWORD;
  2625. offBmiSrc : DWORD;
  2626. cbBmiSrc : DWORD;
  2627. offBitsSrc : DWORD;
  2628. cbBitsSrc : DWORD;
  2629. xMask : LONG;
  2630. yMask : LONG;
  2631. iUsageMask : DWORD;
  2632. offBmiMask : DWORD;
  2633. cbBmiMask : DWORD;
  2634. offBitsMask : DWORD;
  2635. cbBitsMask : DWORD;
  2636. end;
  2637. tagEMRPLGBLT = EMRPLGBLT;
  2638. TEMRPLGBLT = EMRPLGBLT;
  2639. PEMRPLGBLT = ^EMRPLGBLT;
  2640. EMRPOLYDRAW = record
  2641. emr : EMR;
  2642. rclBounds : RECTL;
  2643. cptl : DWORD;
  2644. aptl : array[0..0] of POINTL;
  2645. abTypes : array[0..0] of BYTE;
  2646. end;
  2647. tagEMRPOLYDRAW = EMRPOLYDRAW;
  2648. TEMRPOLYDRAW = EMRPOLYDRAW;
  2649. PEMRPOLYDRAW = ^EMRPOLYDRAW;
  2650. EMRPOLYDRAW16 = record
  2651. emr : EMR;
  2652. rclBounds : RECTL;
  2653. cpts : DWORD;
  2654. apts : array[0..0] of POINTS;
  2655. abTypes : array[0..0] of BYTE;
  2656. end;
  2657. tagEMRPOLYDRAW16 = EMRPOLYDRAW16;
  2658. TEMRPOLYDRAW16 = EMRPOLYDRAW16;
  2659. PEMRPOLYDRAW16 = ^EMRPOLYDRAW16;
  2660. EMRPOLYLINE = record
  2661. emr : EMR;
  2662. rclBounds : RECTL;
  2663. cptl : DWORD;
  2664. aptl : array[0..0] of POINTL;
  2665. end;
  2666. tagEMRPOLYLINE = EMRPOLYLINE;
  2667. TEMRPOLYLINE = EMRPOLYLINE;
  2668. PEMRPOLYLINE = ^EMRPOLYLINE;
  2669. EMRPOLYBEZIER = EMRPOLYLINE;
  2670. TEMRPOLYBEZIER = EMRPOLYLINE;
  2671. PEMRPOLYBEZIER = ^EMRPOLYLINE;
  2672. EMRPOLYGON = EMRPOLYLINE;
  2673. TEMRPOLYGON = EMRPOLYLINE;
  2674. PEMRPOLYGON = ^EMRPOLYLINE;
  2675. EMRPOLYBEZIERTO = EMRPOLYLINE;
  2676. TEMRPOLYBEZIERTO = EMRPOLYLINE;
  2677. PEMRPOLYBEZIERTO = ^EMRPOLYLINE;
  2678. EMRPOLYLINETO = EMRPOLYLINE;
  2679. TEMRPOLYLINETO = EMRPOLYLINE;
  2680. PEMRPOLYLINETO = ^EMRPOLYLINE;
  2681. EMRPOLYLINE16 = record
  2682. emr : EMR;
  2683. rclBounds : RECTL;
  2684. cpts : DWORD;
  2685. apts : array[0..0] of POINTL;
  2686. end;
  2687. tagEMRPOLYLINE16 = EMRPOLYLINE16;
  2688. TEMRPOLYLINE16 = EMRPOLYLINE16;
  2689. PEMRPOLYLINE16 = ^EMRPOLYLINE16;
  2690. EMRPOLYBEZIER16 = EMRPOLYLINE16;
  2691. TEMRPOLYBEZIER16 = EMRPOLYLINE16;
  2692. PEMRPOLYBEZIER16 = ^EMRPOLYLINE16;
  2693. EMRPOLYGON16 = EMRPOLYLINE16;
  2694. TEMRPOLYGON16 = EMRPOLYLINE16;
  2695. PEMRPOLYGON16 = ^EMRPOLYLINE16;
  2696. EMRPOLYBEZIERTO16 = EMRPOLYLINE16;
  2697. TEMRPOLYBEZIERTO16 = EMRPOLYLINE16;
  2698. PEMRPOLYBEZIERTO16 = ^EMRPOLYLINE16;
  2699. EMRPOLYLINETO16 = EMRPOLYLINE16;
  2700. TEMRPOLYLINETO16 = EMRPOLYLINE16;
  2701. PEMRPOLYLINETO16 = ^EMRPOLYLINE16;
  2702. EMRPOLYPOLYLINE = record
  2703. emr : EMR;
  2704. rclBounds : RECTL;
  2705. nPolys : DWORD;
  2706. cptl : DWORD;
  2707. aPolyCounts : array[0..0] of DWORD;
  2708. aptl : array[0..0] of POINTL;
  2709. end;
  2710. tagEMRPOLYPOLYLINE = EMRPOLYPOLYLINE;
  2711. TEMRPOLYPOLYLINE = EMRPOLYPOLYLINE;
  2712. PEMRPOLYPOLYLINE = ^EMRPOLYPOLYLINE;
  2713. EMRPOLYPOLYGON = EMRPOLYPOLYLINE;
  2714. TEMRPOLYPOLYGON = EMRPOLYPOLYLINE;
  2715. PEMRPOLYPOLYGON = ^EMRPOLYPOLYLINE;
  2716. EMRPOLYPOLYLINE16 = record
  2717. emr : EMR;
  2718. rclBounds : RECTL;
  2719. nPolys : DWORD;
  2720. cpts : DWORD;
  2721. aPolyCounts : array[0..0] of DWORD;
  2722. apts : array[0..0] of POINTS;
  2723. end;
  2724. tagEMRPOLYPOLYLINE16 = EMRPOLYPOLYLINE16;
  2725. TEMRPOLYPOLYLINE16 = EMRPOLYPOLYLINE16;
  2726. PEMRPOLYPOLYLINE16 = ^EMRPOLYPOLYLINE16;
  2727. EMRPOLYPOLYGON16 = EMRPOLYPOLYLINE16;
  2728. TEMRPOLYPOLYGON16 = EMRPOLYPOLYLINE16;
  2729. PEMRPOLYPOLYGON16 = ^EMRPOLYPOLYLINE16;
  2730. EMRPOLYTEXTOUTA = record
  2731. emr : EMR;
  2732. rclBounds : RECTL;
  2733. iGraphicsMode : DWORD;
  2734. exScale : Single;
  2735. eyScale : Single;
  2736. cStrings : LONG;
  2737. aemrtext : array[0..0] of EMRTEXT;
  2738. end;
  2739. tagEMRPOLYTEXTOUTA = EMRPOLYTEXTOUTA;
  2740. TEMRPOLYTEXTOUTA = EMRPOLYTEXTOUTA;
  2741. PEMRPOLYTEXTOUTA = ^EMRPOLYTEXTOUTA;
  2742. EMRPOLYTEXTOUTW = EMRPOLYTEXTOUTA;
  2743. TEMRPOLYTEXTOUTW = EMRPOLYTEXTOUTA;
  2744. PEMRPOLYTEXTOUTW = ^EMRPOLYTEXTOUTA;
  2745. EMRRESIZEPALETTE = record
  2746. emr : EMR;
  2747. ihPal : DWORD;
  2748. cEntries : DWORD;
  2749. end;
  2750. tagEMRRESIZEPALETTE = EMRRESIZEPALETTE;
  2751. TEMRRESIZEPALETTE = EMRRESIZEPALETTE;
  2752. PEMRRESIZEPALETTE = ^EMRRESIZEPALETTE;
  2753. EMRRESTOREDC = record
  2754. emr : EMR;
  2755. iRelative : LONG;
  2756. end;
  2757. tagEMRRESTOREDC = EMRRESTOREDC;
  2758. TEMRRESTOREDC = EMRRESTOREDC;
  2759. PEMRRESTOREDC = ^EMRRESTOREDC;
  2760. EMRROUNDRECT = record
  2761. emr : EMR;
  2762. rclBox : RECTL;
  2763. szlCorner : SIZEL;
  2764. end;
  2765. tagEMRROUNDRECT = EMRROUNDRECT;
  2766. TEMRROUNDRECT = EMRROUNDRECT;
  2767. PEMRROUNDRECT = ^EMRROUNDRECT;
  2768. EMRSCALEVIEWPORTEXTEX = record
  2769. emr : EMR;
  2770. xNum : LONG;
  2771. xDenom : LONG;
  2772. yNum : LONG;
  2773. yDenom : LONG;
  2774. end;
  2775. tagEMRSCALEVIEWPORTEXTEX = EMRSCALEVIEWPORTEXTEX;
  2776. TEMRSCALEVIEWPORTEXTEX = EMRSCALEVIEWPORTEXTEX;
  2777. PEMRSCALEVIEWPORTEXTEX = ^EMRSCALEVIEWPORTEXTEX;
  2778. EMRSCALEWINDOWEXTEX = EMRSCALEVIEWPORTEXTEX;
  2779. TEMRSCALEWINDOWEXTEX = EMRSCALEVIEWPORTEXTEX;
  2780. PEMRSCALEWINDOWEXTEX = ^EMRSCALEVIEWPORTEXTEX;
  2781. EMRSELECTCOLORSPACE = record
  2782. emr : EMR;
  2783. ihCS : DWORD;
  2784. end;
  2785. tagEMRSELECTCOLORSPACE = EMRSELECTCOLORSPACE;
  2786. TEMRSELECTCOLORSPACE = EMRSELECTCOLORSPACE;
  2787. PEMRSELECTCOLORSPACE = ^EMRSELECTCOLORSPACE;
  2788. EMRDELETECOLORSPACE = EMRSELECTCOLORSPACE;
  2789. TEMRDELETECOLORSPACE = EMRSELECTCOLORSPACE;
  2790. PEMRDELETECOLORSPACE = ^EMRSELECTCOLORSPACE;
  2791. EMRSELECTOBJECT = record
  2792. emr : EMR;
  2793. ihObject : DWORD;
  2794. end;
  2795. tagEMRSELECTOBJECT = EMRSELECTOBJECT;
  2796. TEMRSELECTOBJECT = EMRSELECTOBJECT;
  2797. PEMRSELECTOBJECT = ^EMRSELECTOBJECT;
  2798. EMRDELETEOBJECT = EMRSELECTOBJECT;
  2799. TEMRDELETEOBJECT = EMRSELECTOBJECT;
  2800. PEMRDELETEOBJECT = ^EMRSELECTOBJECT;
  2801. EMRSELECTPALETTE = record
  2802. emr : EMR;
  2803. ihPal : DWORD;
  2804. end;
  2805. tagEMRSELECTPALETTE = EMRSELECTPALETTE;
  2806. TEMRSELECTPALETTE = EMRSELECTPALETTE;
  2807. PEMRSELECTPALETTE = ^EMRSELECTPALETTE;
  2808. EMRSETARCDIRECTION = record
  2809. emr : EMR;
  2810. iArcDirection : DWORD;
  2811. end;
  2812. tagEMRSETARCDIRECTION = EMRSETARCDIRECTION;
  2813. TEMRSETARCDIRECTION = EMRSETARCDIRECTION;
  2814. PEMRSETARCDIRECTION = ^EMRSETARCDIRECTION;
  2815. EMRSETBKCOLOR = record
  2816. emr : EMR;
  2817. crColor : COLORREF;
  2818. end;
  2819. tagEMRSETTEXTCOLOR = EMRSETBKCOLOR;
  2820. TEMRSETBKCOLOR = EMRSETBKCOLOR;
  2821. PEMRSETBKCOLOR = ^EMRSETBKCOLOR;
  2822. EMRSETTEXTCOLOR = EMRSETBKCOLOR;
  2823. TEMRSETTEXTCOLOR = EMRSETBKCOLOR;
  2824. PEMRSETTEXTCOLOR = ^EMRSETBKCOLOR;
  2825. EMRSETCOLORADJUSTMENT = record
  2826. emr : EMR;
  2827. ColorAdjustment : COLORADJUSTMENT;
  2828. end;
  2829. tagEMRSETCOLORADJUSTMENT = EMRSETCOLORADJUSTMENT;
  2830. TEMRSETCOLORADJUSTMENT = EMRSETCOLORADJUSTMENT;
  2831. PEMRSETCOLORADJUSTMENT = ^EMRSETCOLORADJUSTMENT;
  2832. EMRSETDIBITSTODEVICE = record
  2833. emr : EMR;
  2834. rclBounds : RECTL;
  2835. xDest : LONG;
  2836. yDest : LONG;
  2837. xSrc : LONG;
  2838. ySrc : LONG;
  2839. cxSrc : LONG;
  2840. cySrc : LONG;
  2841. offBmiSrc : DWORD;
  2842. cbBmiSrc : DWORD;
  2843. offBitsSrc : DWORD;
  2844. cbBitsSrc : DWORD;
  2845. iUsageSrc : DWORD;
  2846. iStartScan : DWORD;
  2847. cScans : DWORD;
  2848. end;
  2849. tagEMRSETDIBITSTODEVICE = EMRSETDIBITSTODEVICE;
  2850. TEMRSETDIBITSTODEVICE = EMRSETDIBITSTODEVICE;
  2851. PEMRSETDIBITSTODEVICE = ^EMRSETDIBITSTODEVICE;
  2852. EMRSETMAPPERFLAGS = record
  2853. emr : EMR;
  2854. dwFlags : DWORD;
  2855. end;
  2856. tagEMRSETMAPPERFLAGS = EMRSETMAPPERFLAGS;
  2857. TEMRSETMAPPERFLAGS = EMRSETMAPPERFLAGS;
  2858. PEMRSETMAPPERFLAGS = ^EMRSETMAPPERFLAGS;
  2859. EMRSETMITERLIMIT = record
  2860. emr : EMR;
  2861. eMiterLimit : Single;
  2862. end;
  2863. tagEMRSETMITERLIMIT = EMRSETMITERLIMIT;
  2864. TEMRSETMITERLIMIT = EMRSETMITERLIMIT;
  2865. PEMRSETMITERLIMIT = ^EMRSETMITERLIMIT;
  2866. EMRSETPALETTEENTRIES = record
  2867. emr : EMR;
  2868. ihPal : DWORD;
  2869. iStart : DWORD;
  2870. cEntries : DWORD;
  2871. aPalEntries : array[0..0] of PALETTEENTRY;
  2872. end;
  2873. tagEMRSETPALETTEENTRIES = EMRSETPALETTEENTRIES;
  2874. TEMRSETPALETTEENTRIES = EMRSETPALETTEENTRIES;
  2875. PEMRSETPALETTEENTRIES = ^EMRSETPALETTEENTRIES;
  2876. EMRSETPIXELV = record
  2877. emr : EMR;
  2878. ptlPixel : POINTL;
  2879. crColor : COLORREF;
  2880. end;
  2881. tagEMRSETPIXELV = EMRSETPIXELV;
  2882. TEMRSETPIXELV = EMRSETPIXELV;
  2883. PEMRSETPIXELV = ^EMRSETPIXELV;
  2884. EMRSETVIEWPORTEXTEX = record
  2885. emr : EMR;
  2886. szlExtent : SIZEL;
  2887. end;
  2888. tagEMRSETVIEWPORTEXTEX = EMRSETVIEWPORTEXTEX;
  2889. TEMRSETVIEWPORTEXTEX = EMRSETVIEWPORTEXTEX;
  2890. PEMRSETVIEWPORTEXTEX = ^EMRSETVIEWPORTEXTEX;
  2891. EMRSETWINDOWEXTEX = EMRSETVIEWPORTEXTEX;
  2892. TEMRSETWINDOWEXTEX = EMRSETVIEWPORTEXTEX;
  2893. PEMRSETWINDOWEXTEX = ^EMRSETVIEWPORTEXTEX;
  2894. EMRSETVIEWPORTORGEX = record
  2895. emr : EMR;
  2896. ptlOrigin : POINTL;
  2897. end;
  2898. tagEMRSETVIEWPORTORGEX = EMRSETVIEWPORTORGEX;
  2899. TEMRSETVIEWPORTORGEX = EMRSETVIEWPORTORGEX;
  2900. PEMRSETVIEWPORTORGEX = ^EMRSETVIEWPORTORGEX;
  2901. EMRSETWINDOWORGEX = EMRSETVIEWPORTORGEX;
  2902. TEMRSETWINDOWORGEX = EMRSETVIEWPORTORGEX;
  2903. PEMRSETWINDOWORGEX = ^EMRSETVIEWPORTORGEX;
  2904. EMRSETBRUSHORGEX = EMRSETVIEWPORTORGEX;
  2905. TEMRSETBRUSHORGEX = EMRSETVIEWPORTORGEX;
  2906. PEMRSETBRUSHORGEX = ^EMRSETVIEWPORTORGEX;
  2907. EMRSETWORLDTRANSFORM = record
  2908. emr : EMR;
  2909. xform : XFORM;
  2910. end;
  2911. tagEMRSETWORLDTRANSFORM = EMRSETWORLDTRANSFORM;
  2912. TEMRSETWORLDTRANSFORM = EMRSETWORLDTRANSFORM;
  2913. PEMRSETWORLDTRANSFORM = ^EMRSETWORLDTRANSFORM;
  2914. EMRSTRETCHBLT = record
  2915. emr : EMR;
  2916. rclBounds : RECTL;
  2917. xDest : LONG;
  2918. yDest : LONG;
  2919. cxDest : LONG;
  2920. cyDest : LONG;
  2921. dwRop : DWORD;
  2922. xSrc : LONG;
  2923. ySrc : LONG;
  2924. xformSrc : XFORM;
  2925. crBkColorSrc : COLORREF;
  2926. iUsageSrc : DWORD;
  2927. offBmiSrc : DWORD;
  2928. cbBmiSrc : DWORD;
  2929. offBitsSrc : DWORD;
  2930. cbBitsSrc : DWORD;
  2931. cxSrc : LONG;
  2932. cySrc : LONG;
  2933. end;
  2934. tagEMRSTRETCHBLT = EMRSTRETCHBLT;
  2935. TEMRSTRETCHBLT = EMRSTRETCHBLT;
  2936. PEMRSTRETCHBLT = ^EMRSTRETCHBLT;
  2937. EMRSTRETCHDIBITS = record
  2938. emr : EMR;
  2939. rclBounds : RECTL;
  2940. xDest : LONG;
  2941. yDest : LONG;
  2942. xSrc : LONG;
  2943. ySrc : LONG;
  2944. cxSrc : LONG;
  2945. cySrc : LONG;
  2946. offBmiSrc : DWORD;
  2947. cbBmiSrc : DWORD;
  2948. offBitsSrc : DWORD;
  2949. cbBitsSrc : DWORD;
  2950. iUsageSrc : DWORD;
  2951. dwRop : DWORD;
  2952. cxDest : LONG;
  2953. cyDest : LONG;
  2954. end;
  2955. tagEMRSTRETCHDIBITS = EMRSTRETCHDIBITS;
  2956. TEMRSTRETCHDIBITS = EMRSTRETCHDIBITS;
  2957. PEMRSTRETCHDIBITS = ^EMRSTRETCHDIBITS;
  2958. EMRABORTPATH = record
  2959. emr : EMR;
  2960. end;
  2961. TEMRABORTPATH = EMRABORTPATH;
  2962. PEMRABORTPATH = ^EMRABORTPATH;
  2963. tagABORTPATH = EMRABORTPATH;
  2964. TABORTPATH = EMRABORTPATH;
  2965. EMRBEGINPATH = EMRABORTPATH;
  2966. TEMRBEGINPATH = EMRABORTPATH;
  2967. PEMRBEGINPATH = ^EMRABORTPATH;
  2968. EMRENDPATH = EMRABORTPATH;
  2969. TEMRENDPATH = EMRABORTPATH;
  2970. PEMRENDPATH = ^EMRABORTPATH;
  2971. EMRCLOSEFIGURE = EMRABORTPATH;
  2972. TEMRCLOSEFIGURE = EMRABORTPATH;
  2973. PEMRCLOSEFIGURE = ^EMRABORTPATH;
  2974. EMRFLATTENPATH = EMRABORTPATH;
  2975. TEMRFLATTENPATH = EMRABORTPATH;
  2976. PEMRFLATTENPATH = ^EMRABORTPATH;
  2977. EMRWIDENPATH = EMRABORTPATH;
  2978. TEMRWIDENPATH = EMRABORTPATH;
  2979. PEMRWIDENPATH = ^EMRABORTPATH;
  2980. EMRSETMETARGN = EMRABORTPATH;
  2981. TEMRSETMETARGN = EMRABORTPATH;
  2982. PEMRSETMETARGN = ^EMRABORTPATH;
  2983. EMRSAVEDC = EMRABORTPATH;
  2984. TEMRSAVEDC = EMRABORTPATH;
  2985. PEMRSAVEDC = ^EMRABORTPATH;
  2986. EMRREALIZEPALETTE = EMRABORTPATH;
  2987. TEMRREALIZEPALETTE = EMRABORTPATH;
  2988. PEMRREALIZEPALETTE = ^EMRABORTPATH;
  2989. EMRSELECTCLIPPATH = record
  2990. emr : EMR;
  2991. iMode : DWORD;
  2992. end;
  2993. tagEMRSELECTCLIPPATH = EMRSELECTCLIPPATH;
  2994. TEMRSELECTCLIPPATH = EMRSELECTCLIPPATH;
  2995. PEMRSELECTCLIPPATH = ^EMRSELECTCLIPPATH;
  2996. EMRSETBKMODE = EMRSELECTCLIPPATH;
  2997. TEMRSETBKMODE = EMRSELECTCLIPPATH;
  2998. PEMRSETBKMODE = ^EMRSELECTCLIPPATH;
  2999. EMRSETMAPMODE = EMRSELECTCLIPPATH;
  3000. TEMRSETMAPMODE = EMRSELECTCLIPPATH;
  3001. PEMRSETMAPMODE = ^EMRSELECTCLIPPATH;
  3002. EMRSETPOLYFILLMODE = EMRSELECTCLIPPATH;
  3003. TEMRSETPOLYFILLMODE = EMRSELECTCLIPPATH;
  3004. PEMRSETPOLYFILLMODE = ^EMRSELECTCLIPPATH;
  3005. EMRSETROP2 = EMRSELECTCLIPPATH;
  3006. TEMRSETROP2 = EMRSELECTCLIPPATH;
  3007. PEMRSETROP2 = ^EMRSELECTCLIPPATH;
  3008. EMRSETSTRETCHBLTMODE = EMRSELECTCLIPPATH;
  3009. TEMRSETSTRETCHBLTMODE = EMRSELECTCLIPPATH;
  3010. PEMRSETSTRETCHBLTMODE = ^EMRSELECTCLIPPATH;
  3011. EMRSETTEXTALIGN = EMRSELECTCLIPPATH;
  3012. TEMRSETTEXTALIGN = EMRSELECTCLIPPATH;
  3013. PEMRSETTEXTALIGN = ^EMRSELECTCLIPPATH;
  3014. EMRENABLEICM = EMRSELECTCLIPPATH;
  3015. TEMRENABLEICM = EMRSELECTCLIPPATH;
  3016. PEMRENABLEICM = ^EMRSELECTCLIPPATH;
  3017. NMHDR = record
  3018. hwndFrom : HWND;
  3019. idFrom : UINT_PTR;
  3020. code : UINT;
  3021. end;
  3022. tagNMHDR = NMHDR;
  3023. TNMHDR = NMHDR;
  3024. PNMHDR = ^NMHDR;
  3025. ENCORRECTTEXT = record
  3026. nmhdr : NMHDR;
  3027. chrg : CHARRANGE;
  3028. seltyp : WORD;
  3029. end;
  3030. _encorrecttext = ENCORRECTTEXT;
  3031. Tencorrecttext = ENCORRECTTEXT;
  3032. Pencorrecttext = ^ENCORRECTTEXT;
  3033. ENDROPFILES = record
  3034. nmhdr : NMHDR;
  3035. hDrop : HANDLE;
  3036. cp : LONG;
  3037. fProtected : WINBOOL;
  3038. end;
  3039. _endropfiles = ENDROPFILES;
  3040. Tendropfiles = ENDROPFILES;
  3041. Pendropfiles = ^ENDROPFILES;
  3042. ENSAVECLIPBOARD = record
  3043. nmhdr : NMHDR;
  3044. cObjectCount : LONG;
  3045. cch : LONG;
  3046. end;
  3047. TENSAVECLIPBOARD = ENSAVECLIPBOARD;
  3048. PENSAVECLIPBOARD = ^ENSAVECLIPBOARD;
  3049. ENOLEOPFAILED = record
  3050. nmhdr : NMHDR;
  3051. iob : LONG;
  3052. lOper : LONG;
  3053. hr : HRESULT;
  3054. end;
  3055. TENOLEOPFAILED = ENOLEOPFAILED;
  3056. PENOLEOPFAILED = ^ENOLEOPFAILED;
  3057. ENHMETAHEADER = record
  3058. iType : DWORD;
  3059. nSize : DWORD;
  3060. rclBounds : RECTL;
  3061. rclFrame : RECTL;
  3062. dSignature : DWORD;
  3063. nVersion : DWORD;
  3064. nBytes : DWORD;
  3065. nRecords : DWORD;
  3066. nHandles : WORD;
  3067. sReserved : WORD;
  3068. nDescription : DWORD;
  3069. offDescription : DWORD;
  3070. nPalEntries : DWORD;
  3071. szlDevice : SIZEL;
  3072. szlMillimeters : SIZEL;
  3073. end;
  3074. LPENHMETAHEADER = ^ENHMETAHEADER;
  3075. tagENHMETAHEADER = ENHMETAHEADER;
  3076. TENHMETAHEADER = ENHMETAHEADER;
  3077. PENHMETAHEADER = ^ENHMETAHEADER;
  3078. ENHMETARECORD = record
  3079. iType : DWORD;
  3080. nSize : DWORD;
  3081. dParm : array[0..0] of DWORD;
  3082. end;
  3083. LPENHMETARECORD = ^ENHMETARECORD;
  3084. tagENHMETARECORD = ENHMETARECORD;
  3085. TENHMETARECORD = ENHMETARECORD;
  3086. PENHMETARECORD = ^ENHMETARECORD;
  3087. ENPROTECTED = record
  3088. nmhdr : NMHDR;
  3089. msg : UINT;
  3090. wParam : WPARAM;
  3091. lParam : LPARAM;
  3092. chrg : CHARRANGE;
  3093. end;
  3094. _enprotected = ENPROTECTED;
  3095. Tenprotected = ENPROTECTED;
  3096. Penprotected = ^ENPROTECTED;
  3097. SERVICE_STATUS = record
  3098. dwServiceType : DWORD;
  3099. dwCurrentState : DWORD;
  3100. dwControlsAccepted : DWORD;
  3101. dwWin32ExitCode : DWORD;
  3102. dwServiceSpecificExitCode : DWORD;
  3103. dwCheckPoint : DWORD;
  3104. dwWaitHint : DWORD;
  3105. end;
  3106. LPSERVICE_STATUS = ^SERVICE_STATUS;
  3107. _SERVICE_STATUS = SERVICE_STATUS;
  3108. TSERVICESTATUS = SERVICE_STATUS;
  3109. PSERVICESTATUS = ^SERVICE_STATUS;
  3110. ENUM_SERVICE_STATUS = record
  3111. lpServiceName : LPTSTR;
  3112. lpDisplayName : LPTSTR;
  3113. ServiceStatus : SERVICE_STATUS;
  3114. end;
  3115. LPENUM_SERVICE_STATUS = ^ENUM_SERVICE_STATUS;
  3116. _ENUM_SERVICE_STATUS = ENUM_SERVICE_STATUS;
  3117. TENUMSERVICESTATUS = ENUM_SERVICE_STATUS;
  3118. PENUMSERVICESTATUS = ^ENUM_SERVICE_STATUS;
  3119. ENUMLOGFONT = record
  3120. elfLogFont : LOGFONT;
  3121. elfFullName : array[0..(LF_FULLFACESIZE)-1] of BCHAR;
  3122. elfStyle : array[0..(LF_FACESIZE)-1] of BCHAR;
  3123. end;
  3124. tagENUMLOGFONT = ENUMLOGFONT;
  3125. TENUMLOGFONT = ENUMLOGFONT;
  3126. PENUMLOGFONT = ^ENUMLOGFONT;
  3127. ENUMLOGFONTEX = record
  3128. elfLogFont : LOGFONT;
  3129. elfFullName : array[0..(LF_FULLFACESIZE)-1] of BCHAR;
  3130. elfStyle : array[0..(LF_FACESIZE)-1] of BCHAR;
  3131. elfScript : array[0..(LF_FACESIZE)-1] of BCHAR;
  3132. end;
  3133. tagENUMLOGFONTEX = ENUMLOGFONTEX;
  3134. TENUMLOGFONTEX = ENUMLOGFONTEX;
  3135. PENUMLOGFONTEX = ^ENUMLOGFONTEX;
  3136. {
  3137. Then follow:
  3138. TCHAR SourceName[]
  3139. TCHAR Computername[]
  3140. SID UserSid
  3141. TCHAR Strings[]
  3142. BYTE Data[]
  3143. CHAR Pad[]
  3144. DWORD Length;
  3145. }
  3146. EVENTLOGRECORD = record
  3147. Length : DWORD;
  3148. Reserved : DWORD;
  3149. RecordNumber : DWORD;
  3150. TimeGenerated : DWORD;
  3151. TimeWritten : DWORD;
  3152. EventID : DWORD;
  3153. EventType : WORD;
  3154. NumStrings : WORD;
  3155. EventCategory : WORD;
  3156. ReservedFlags : WORD;
  3157. ClosingRecordNumber : DWORD;
  3158. StringOffset : DWORD;
  3159. UserSidLength : DWORD;
  3160. UserSidOffset : DWORD;
  3161. DataLength : DWORD;
  3162. DataOffset : DWORD;
  3163. end;
  3164. _EVENTLOGRECORD = EVENTLOGRECORD;
  3165. TEVENTLOGRECORD = EVENTLOGRECORD;
  3166. PEVENTLOGRECORD = ^EVENTLOGRECORD;
  3167. EVENTMSG = record
  3168. message : UINT;
  3169. paramL : UINT;
  3170. paramH : UINT;
  3171. time : DWORD;
  3172. hwnd : HWND;
  3173. end;
  3174. tagEVENTMSG = EVENTMSG;
  3175. TEVENTMSG = EVENTMSG;
  3176. PEVENTMSG = ^EVENTMSG;
  3177. EXCEPTION_POINTERS = record
  3178. ExceptionRecord : PEXCEPTION_RECORD;
  3179. ContextRecord : PCONTEXT;
  3180. end;
  3181. LPEXCEPTION_POINTERS = ^EXCEPTION_POINTERS;
  3182. PEXCEPTION_POINTERS = ^EXCEPTION_POINTERS;
  3183. _EXCEPTION_POINTERS = EXCEPTION_POINTERS;
  3184. TEXCEPTIONPOINTERS = EXCEPTION_POINTERS;
  3185. PEXCEPTIONPOINTERS = ^EXCEPTION_POINTERS;
  3186. EXT_BUTTON = record
  3187. idCommand : WORD;
  3188. idsHelp : WORD;
  3189. fsStyle : WORD;
  3190. end;
  3191. LPEXT_BUTTON = ^EXT_BUTTON;
  3192. _EXT_BUTTON = EXT_BUTTON;
  3193. TEXTBUTTON = EXT_BUTTON;
  3194. PEXTBUTTON = ^EXT_BUTTON;
  3195. FILTERKEYS = record
  3196. cbSize : UINT;
  3197. dwFlags : DWORD;
  3198. iWaitMSec : DWORD;
  3199. iDelayMSec : DWORD;
  3200. iRepeatMSec : DWORD;
  3201. iBounceMSec : DWORD;
  3202. end;
  3203. tagFILTERKEYS = FILTERKEYS;
  3204. TFILTERKEYS = FILTERKEYS;
  3205. PFILTERKEYS = ^FILTERKEYS;
  3206. FIND_NAME_BUFFER = record
  3207. length : UCHAR;
  3208. access_control : UCHAR;
  3209. frame_control : UCHAR;
  3210. destination_addr : array[0..5] of UCHAR;
  3211. source_addr : array[0..5] of UCHAR;
  3212. routing_info : array[0..17] of UCHAR;
  3213. end;
  3214. _FIND_NAME_BUFFER = FIND_NAME_BUFFER;
  3215. TFINDNAMEBUFFER = FIND_NAME_BUFFER;
  3216. PFINDNAMEBUFFER = ^FIND_NAME_BUFFER;
  3217. FIND_NAME_HEADER = record
  3218. node_count : WORD;
  3219. reserved : UCHAR;
  3220. unique_group : UCHAR;
  3221. end;
  3222. _FIND_NAME_HEADER = FIND_NAME_HEADER;
  3223. TFINDNAMEHEADER = FIND_NAME_HEADER;
  3224. PFINDNAMEHEADER = ^FIND_NAME_HEADER;
  3225. FINDREPLACE = record
  3226. lStructSize : DWORD;
  3227. hwndOwner : HWND;
  3228. hInstance : HINST;
  3229. Flags : DWORD;
  3230. lpstrFindWhat : LPTSTR;
  3231. lpstrReplaceWith : LPTSTR;
  3232. wFindWhatLen : WORD;
  3233. wReplaceWithLen : WORD;
  3234. lCustData : LPARAM;
  3235. lpfnHook : LPFRHOOKPROC;
  3236. lpTemplateName : LPCTSTR;
  3237. end;
  3238. LPFINDREPLACE = ^FINDREPLACE;
  3239. TFINDREPLACE = FINDREPLACE;
  3240. PFINDREPLACE = ^FINDREPLACE;
  3241. {FINDTEXT = record conflicts with FindText function }
  3242. TFINDTEXT = record
  3243. chrg : CHARRANGE;
  3244. lpstrText : LPSTR;
  3245. end;
  3246. _findtext = TFINDTEXT;
  3247. Pfindtext = ^TFINDTEXT;
  3248. FINDTEXTEX = record
  3249. chrg : CHARRANGE;
  3250. lpstrText : LPSTR;
  3251. chrgText : CHARRANGE;
  3252. end;
  3253. _findtextex = FINDTEXTEX;
  3254. Tfindtextex = FINDTEXTEX;
  3255. Pfindtextex = ^FINDTEXTEX;
  3256. FMS_GETDRIVEINFO = record
  3257. dwTotalSpace : DWORD;
  3258. dwFreeSpace : DWORD;
  3259. szPath : array[0..259] of TCHAR;
  3260. szVolume : array[0..13] of TCHAR;
  3261. szShare : array[0..127] of TCHAR;
  3262. end;
  3263. _FMS_GETDRIVEINFO = FMS_GETDRIVEINFO;
  3264. TFMSGETDRIVEINFO = FMS_GETDRIVEINFO;
  3265. PFMSGETDRIVEINFO = ^FMS_GETDRIVEINFO;
  3266. FMS_GETFILESEL = record
  3267. ftTime : FILETIME;
  3268. dwSize : DWORD;
  3269. bAttr : BYTE;
  3270. szName : array[0..259] of TCHAR;
  3271. end;
  3272. _FMS_GETFILESEL = FMS_GETFILESEL;
  3273. TFMSGETFILESEL = FMS_GETFILESEL;
  3274. PFMSGETFILESEL = ^FMS_GETFILESEL;
  3275. FMS_LOAD = record
  3276. dwSize : DWORD;
  3277. szMenuName : array[0..(MENU_TEXT_LEN)-1] of TCHAR;
  3278. hMenu : HMENU;
  3279. wMenuDelta : UINT;
  3280. end;
  3281. _FMS_LOAD = FMS_LOAD;
  3282. TFMSLOAD = FMS_LOAD;
  3283. PFMSLOAD = ^FMS_LOAD;
  3284. FMS_TOOLBARLOAD = record
  3285. dwSize : DWORD;
  3286. lpButtons : LPEXT_BUTTON;
  3287. cButtons : WORD;
  3288. cBitmaps : WORD;
  3289. idBitmap : WORD;
  3290. hBitmap : HBITMAP;
  3291. end;
  3292. _FMS_TOOLBARLOAD = FMS_TOOLBARLOAD;
  3293. TFMSTOOLBARLOAD = FMS_TOOLBARLOAD;
  3294. PFMSTOOLBARLOAD = ^FMS_TOOLBARLOAD;
  3295. FOCUS_EVENT_RECORD = record
  3296. bSetFocus : WINBOOL;
  3297. end;
  3298. _FOCUS_EVENT_RECORD = FOCUS_EVENT_RECORD;
  3299. TFOCUSEVENTRECORD = FOCUS_EVENT_RECORD;
  3300. PFOCUSEVENTRECORD = ^FOCUS_EVENT_RECORD;
  3301. FORM_INFO_1 = record
  3302. Flags : DWORD;
  3303. pName : LPTSTR;
  3304. Size : SIZEL;
  3305. ImageableArea : RECTL;
  3306. end;
  3307. _FORM_INFO_1 = FORM_INFO_1;
  3308. TFORMINFO1 = FORM_INFO_1;
  3309. PFORMINFO1 = ^FORM_INFO_1;
  3310. FORMAT_PARAMETERS = record
  3311. MediaType : MEDIA_TYPE;
  3312. StartCylinderNumber : DWORD;
  3313. EndCylinderNumber : DWORD;
  3314. StartHeadNumber : DWORD;
  3315. EndHeadNumber : DWORD;
  3316. end;
  3317. _FORMAT_PARAMETERS = FORMAT_PARAMETERS;
  3318. TFORMATPARAMETERS = FORMAT_PARAMETERS;
  3319. PFORMATPARAMETERS = ^FORMAT_PARAMETERS;
  3320. FORMATRANGE = record
  3321. _hdc : HDC;
  3322. hdcTarget : HDC;
  3323. rc : RECT;
  3324. rcPage : RECT;
  3325. chrg : CHARRANGE;
  3326. end;
  3327. _formatrange = FORMATRANGE;
  3328. Tformatrange = FORMATRANGE;
  3329. Pformatrange = ^FORMATRANGE;
  3330. GCP_RESULTS = record
  3331. lStructSize : DWORD;
  3332. lpOutString : LPTSTR;
  3333. lpOrder : ^UINT;
  3334. lpDx : ^WINT;
  3335. lpCaretPos : ^WINT;
  3336. lpClass : LPTSTR;
  3337. lpGlyphs : ^UINT;
  3338. nGlyphs : UINT;
  3339. nMaxFit : UINT;
  3340. end;
  3341. LPGCP_RESULTS = ^GCP_RESULTS;
  3342. tagGCP_RESULTS = GCP_RESULTS;
  3343. TGCPRESULTS = GCP_RESULTS;
  3344. PGCPRESULTS = ^GCP_RESULTS;
  3345. GENERIC_MAPPING = record
  3346. GenericRead : ACCESS_MASK;
  3347. GenericWrite : ACCESS_MASK;
  3348. GenericExecute : ACCESS_MASK;
  3349. GenericAll : ACCESS_MASK;
  3350. end;
  3351. PGENERIC_MAPPING = ^GENERIC_MAPPING;
  3352. _GENERIC_MAPPING = GENERIC_MAPPING;
  3353. TGENERICMAPPING = GENERIC_MAPPING;
  3354. PGENERICMAPPING = ^GENERIC_MAPPING;
  3355. GLYPHMETRICS = record
  3356. gmBlackBoxX : UINT;
  3357. gmBlackBoxY : UINT;
  3358. gmptGlyphOrigin : POINT;
  3359. gmCellIncX : SHORT;
  3360. gmCellIncY : SHORT;
  3361. end;
  3362. LPGLYPHMETRICS = ^GLYPHMETRICS;
  3363. _GLYPHMETRICS = GLYPHMETRICS;
  3364. TGLYPHMETRICS = GLYPHMETRICS;
  3365. PGLYPHMETRICS = ^GLYPHMETRICS;
  3366. HANDLETABLE = record
  3367. objectHandle : array[0..0] of HGDIOBJ;
  3368. end;
  3369. tagHANDLETABLE = HANDLETABLE;
  3370. THANDLETABLE = HANDLETABLE;
  3371. LPHANDLETABLE = ^HANDLETABLE;
  3372. HD_HITTESTINFO = record
  3373. pt : POINT;
  3374. flags : UINT;
  3375. iItem : longint;
  3376. end;
  3377. _HD_HITTESTINFO = HD_HITTESTINFO;
  3378. THDHITTESTINFO = HD_HITTESTINFO;
  3379. PHDHITTESTINFO = ^HD_HITTESTINFO;
  3380. HD_ITEM = record
  3381. mask : UINT;
  3382. cxy : longint;
  3383. pszText : LPTSTR;
  3384. hbm : HBITMAP;
  3385. cchTextMax : longint;
  3386. fmt : longint;
  3387. lParam : LPARAM;
  3388. end;
  3389. _HD_ITEM = HD_ITEM;
  3390. THDITEM = HD_ITEM;
  3391. PHDITEM = ^HD_ITEM;
  3392. WINDOWPOS = record
  3393. _hwnd : HWND;
  3394. hwndInsertAfter : HWND;
  3395. x : longint;
  3396. y : longint;
  3397. cx : longint;
  3398. cy : longint;
  3399. flags : UINT;
  3400. end;
  3401. LPWINDOWPOS = ^WINDOWPOS;
  3402. _WINDOWPOS = WINDOWPOS;
  3403. TWINDOWPOS = WINDOWPOS;
  3404. PWINDOWPOS = ^WINDOWPOS;
  3405. HD_LAYOUT = record
  3406. prc : ^RECT;
  3407. pwpos : ^WINDOWPOS;
  3408. end;
  3409. _HD_LAYOUT = HD_LAYOUT;
  3410. THDLAYOUT = HD_LAYOUT;
  3411. PHDLAYOUT = ^HD_LAYOUT;
  3412. HD_NOTIFY = record
  3413. hdr : NMHDR;
  3414. iItem : longint;
  3415. iButton : longint;
  3416. pitem : ^HD_ITEM;
  3417. end;
  3418. _HD_NOTIFY = HD_NOTIFY;
  3419. THDNOTIFY = HD_NOTIFY;
  3420. PHDNOTIFY = ^HD_NOTIFY;
  3421. HELPINFO = record
  3422. cbSize : UINT;
  3423. iContextType : longint;
  3424. iCtrlId : longint;
  3425. hItemHandle : HANDLE;
  3426. dwContextId : DWORD;
  3427. MousePos : POINT;
  3428. end;
  3429. LPHELPINFO = ^HELPINFO;
  3430. tagHELPINFO = HELPINFO;
  3431. THELPINFO = HELPINFO;
  3432. PHELPINFO = ^HELPINFO;
  3433. HELPWININFO = record
  3434. wStructSize : longint;
  3435. x : longint;
  3436. y : longint;
  3437. dx : longint;
  3438. dy : longint;
  3439. wMax : longint;
  3440. rgchMember : array[0..1] of TCHAR;
  3441. end;
  3442. THELPWININFO = HELPWININFO;
  3443. PHELPWININFO = ^HELPWININFO;
  3444. HIGHCONTRAST = record
  3445. cbSize : UINT;
  3446. dwFlags : DWORD;
  3447. lpszDefaultScheme : LPTSTR;
  3448. end;
  3449. LPHIGHCONTRAST = ^HIGHCONTRAST;
  3450. tagHIGHCONTRAST = HIGHCONTRAST;
  3451. THIGHCONTRAST = HIGHCONTRAST;
  3452. PHIGHCONTRAST = ^HIGHCONTRAST;
  3453. HSZPAIR = record
  3454. hszSvc : HSZ;
  3455. hszTopic : HSZ;
  3456. end;
  3457. tagHSZPAIR = HSZPAIR;
  3458. THSZPAIR = HSZPAIR;
  3459. PHSZPAIR = ^HSZPAIR;
  3460. ICONINFO = record
  3461. fIcon : WINBOOL;
  3462. xHotspot : DWORD;
  3463. yHotspot : DWORD;
  3464. hbmMask : HBITMAP;
  3465. hbmColor : HBITMAP;
  3466. end;
  3467. _ICONINFO = ICONINFO;
  3468. TICONINFO = ICONINFO;
  3469. PICONINFO = ^ICONINFO;
  3470. ICONMETRICS = record
  3471. cbSize : UINT;
  3472. iHorzSpacing : longint;
  3473. iVertSpacing : longint;
  3474. iTitleWrap : longint;
  3475. lfFont : LOGFONT;
  3476. end;
  3477. LPICONMETRICS = ^ICONMETRICS;
  3478. tagICONMETRICS = ICONMETRICS;
  3479. TICONMETRICS = ICONMETRICS;
  3480. PICONMETRICS = ^ICONMETRICS;
  3481. IMAGEINFO = record
  3482. hbmImage : HBITMAP;
  3483. hbmMask : HBITMAP;
  3484. Unused1 : longint;
  3485. Unused2 : longint;
  3486. rcImage : RECT;
  3487. end;
  3488. _IMAGEINFO = IMAGEINFO;
  3489. TIMAGEINFO = IMAGEINFO;
  3490. PIMAGEINFO = ^IMAGEINFO;
  3491. KEY_EVENT_RECORD = packed record
  3492. bKeyDown : WINBOOL;
  3493. wRepeatCount : WORD;
  3494. wVirtualKeyCode : WORD;
  3495. wVirtualScanCode : WORD;
  3496. case longint of
  3497. 0 : ( UnicodeChar : WCHAR;
  3498. dwControlKeyState : DWORD; );
  3499. 1 : ( AsciiChar : CHAR );
  3500. end;
  3501. _KEY_EVENT_RECORD = KEY_EVENT_RECORD;
  3502. TKEYEVENTRECORD = KEY_EVENT_RECORD;
  3503. PKEYEVENTRECORD = ^KEY_EVENT_RECORD;
  3504. MOUSE_EVENT_RECORD = record
  3505. dwMousePosition : COORD;
  3506. dwButtonState : DWORD;
  3507. dwControlKeyState : DWORD;
  3508. dwEventFlags : DWORD;
  3509. end;
  3510. _MOUSE_EVENT_RECORD = MOUSE_EVENT_RECORD;
  3511. TMOUSEEVENTRECORD = MOUSE_EVENT_RECORD;
  3512. PMOUSEEVENTRECORD = ^MOUSE_EVENT_RECORD;
  3513. WINDOW_BUFFER_SIZE_RECORD = record
  3514. dwSize : COORD;
  3515. end;
  3516. _WINDOW_BUFFER_SIZE_RECORD = WINDOW_BUFFER_SIZE_RECORD;
  3517. TWINDOWBUFFERSIZERECORD = WINDOW_BUFFER_SIZE_RECORD;
  3518. PWINDOWBUFFERSIZERECORD = ^WINDOW_BUFFER_SIZE_RECORD;
  3519. MENU_EVENT_RECORD = record
  3520. dwCommandId : UINT;
  3521. end;
  3522. PMENU_EVENT_RECORD = ^MENU_EVENT_RECORD;
  3523. _MENU_EVENT_RECORD = MENU_EVENT_RECORD;
  3524. TMENUEVENTRECORD = MENU_EVENT_RECORD;
  3525. PMENUEVENTRECORD = ^MENU_EVENT_RECORD;
  3526. INPUT_RECORD = record
  3527. EventType: Word;
  3528. Reserved: Word;
  3529. Event : record case longint of
  3530. 0 : ( KeyEvent : KEY_EVENT_RECORD );
  3531. 1 : ( MouseEvent : MOUSE_EVENT_RECORD );
  3532. 2 : ( WindowBufferSizeEvent : WINDOW_BUFFER_SIZE_RECORD );
  3533. 3 : ( MenuEvent : MENU_EVENT_RECORD );
  3534. 4 : ( FocusEvent : FOCUS_EVENT_RECORD );
  3535. end;
  3536. end;
  3537. PINPUT_RECORD = ^INPUT_RECORD;
  3538. _INPUT_RECORD = INPUT_RECORD;
  3539. TINPUTRECORD = INPUT_RECORD;
  3540. PINPUTRECORD = ^INPUT_RECORD;
  3541. SYSTEMTIME = record
  3542. case integer of
  3543. 1 : (
  3544. wYear : WORD;
  3545. wMonth : WORD;
  3546. wDayOfWeek : WORD;
  3547. wDay : WORD;
  3548. wHour : WORD;
  3549. wMinute : WORD;
  3550. wSecond : WORD;
  3551. wMilliseconds : WORD;
  3552. );
  3553. { Compatibility for FPC }
  3554. 2 : (
  3555. Year : WORD;
  3556. Month : WORD;
  3557. DayOfWeek : WORD;
  3558. Day : WORD;
  3559. Hour : WORD;
  3560. Minute : WORD;
  3561. Second : WORD;
  3562. Millisecond : WORD;
  3563. );
  3564. end;
  3565. LPSYSTEMTIME = ^SYSTEMTIME;
  3566. _SYSTEMTIME = SYSTEMTIME;
  3567. TSYSTEMTIME = SYSTEMTIME;
  3568. PSYSTEMTIME = ^SYSTEMTIME;
  3569. JOB_INFO_1 = record
  3570. JobId : DWORD;
  3571. pPrinterName : LPTSTR;
  3572. pMachineName : LPTSTR;
  3573. pUserName : LPTSTR;
  3574. pDocument : LPTSTR;
  3575. pDatatype : LPTSTR;
  3576. pStatus : LPTSTR;
  3577. Status : DWORD;
  3578. Priority : DWORD;
  3579. Position : DWORD;
  3580. TotalPages : DWORD;
  3581. PagesPrinted : DWORD;
  3582. Submitted : SYSTEMTIME;
  3583. end;
  3584. _JOB_INFO_1 = JOB_INFO_1;
  3585. TJOBINFO1 = JOB_INFO_1;
  3586. PJOBINFO1 = ^JOB_INFO_1;
  3587. SID_IDENTIFIER_AUTHORITY = record
  3588. Value : array[0..5] of BYTE;
  3589. end;
  3590. LPSID_IDENTIFIER_AUTHORITY = ^SID_IDENTIFIER_AUTHORITY;
  3591. PSID_IDENTIFIER_AUTHORITY = ^SID_IDENTIFIER_AUTHORITY;
  3592. _SID_IDENTIFIER_AUTHORITY = SID_IDENTIFIER_AUTHORITY;
  3593. TSIDIDENTIFIERAUTHORITY = SID_IDENTIFIER_AUTHORITY;
  3594. PSIDIDENTIFIERAUTHORITY = ^SID_IDENTIFIER_AUTHORITY;
  3595. SID = record
  3596. Revision : BYTE;
  3597. SubAuthorityCount : BYTE;
  3598. IdentifierAuthority : SID_IDENTIFIER_AUTHORITY;
  3599. SubAuthority : array[0..(ANYSIZE_ARRAY)-1] of DWORD;
  3600. end;
  3601. _SID = SID;
  3602. TSID = SID;
  3603. PSID = ^SID;
  3604. SECURITY_DESCRIPTOR_CONTROL = WORD;
  3605. PSECURITY_DESCRIPTOR_CONTROL = ^SECURITY_DESCRIPTOR_CONTROL;
  3606. TSECURITYDESCRIPTORCONTROL = SECURITY_DESCRIPTOR_CONTROL;
  3607. PSECURITYDESCRIPTORCONTROL = ^SECURITY_DESCRIPTOR_CONTROL;
  3608. SECURITY_DESCRIPTOR = record
  3609. Revision : BYTE;
  3610. Sbz1 : BYTE;
  3611. Control : SECURITY_DESCRIPTOR_CONTROL;
  3612. Owner : PSID;
  3613. Group : PSID;
  3614. Sacl : PACL;
  3615. Dacl : PACL;
  3616. end;
  3617. PSECURITY_DESCRIPTOR = ^SECURITY_DESCRIPTOR;
  3618. _SECURITY_DESCRIPTOR = SECURITY_DESCRIPTOR;
  3619. TSECURITYDESCRIPTOR = SECURITY_DESCRIPTOR;
  3620. PSECURITYDESCRIPTOR = ^SECURITY_DESCRIPTOR;
  3621. JOB_INFO_2 = record
  3622. JobId : DWORD;
  3623. pPrinterName : LPTSTR;
  3624. pMachineName : LPTSTR;
  3625. pUserName : LPTSTR;
  3626. pDocument : LPTSTR;
  3627. pNotifyName : LPTSTR;
  3628. pDatatype : LPTSTR;
  3629. pPrintProcessor : LPTSTR;
  3630. pParameters : LPTSTR;
  3631. pDriverName : LPTSTR;
  3632. pDevMode : LPDEVMODE;
  3633. pStatus : LPTSTR;
  3634. pSecurityDescriptor : PSECURITY_DESCRIPTOR;
  3635. Status : DWORD;
  3636. Priority : DWORD;
  3637. Position : DWORD;
  3638. StartTime : DWORD;
  3639. UntilTime : DWORD;
  3640. TotalPages : DWORD;
  3641. Size : DWORD;
  3642. Submitted : SYSTEMTIME;
  3643. Time : DWORD;
  3644. PagesPrinted : DWORD;
  3645. end;
  3646. _JOB_INFO_2 = JOB_INFO_2;
  3647. TJOBINFO2 = JOB_INFO_2;
  3648. PJOBINFO2 = ^JOB_INFO_2;
  3649. KERNINGPAIR = record
  3650. wFirst : WORD;
  3651. wSecond : WORD;
  3652. iKernAmount : longint;
  3653. end;
  3654. LPKERNINGPAIR = ^KERNINGPAIR;
  3655. tagKERNINGPAIR = KERNINGPAIR;
  3656. TKERNINGPAIR = KERNINGPAIR;
  3657. PKERNINGPAIR = ^KERNINGPAIR;
  3658. LANA_ENUM = record
  3659. length : UCHAR;
  3660. lana : array[0..(MAX_LANA)-1] of UCHAR;
  3661. end;
  3662. _LANA_ENUM = LANA_ENUM;
  3663. TLANAENUM = LANA_ENUM;
  3664. PLANAENUM = ^LANA_ENUM;
  3665. LDT_ENTRY = record
  3666. LimitLow : WORD;
  3667. BaseLow : WORD;
  3668. HighWord : record
  3669. case longint of
  3670. 0 : ( Bytes : record
  3671. BaseMid : BYTE;
  3672. Flags1 : BYTE;
  3673. Flags2 : BYTE;
  3674. BaseHi : BYTE;
  3675. end );
  3676. 1 : ( Bits : record
  3677. flag0 : longint;
  3678. end );
  3679. end;
  3680. end;
  3681. LPLDT_ENTRY = ^LDT_ENTRY;
  3682. PLDT_ENTRY = ^LDT_ENTRY;
  3683. _LDT_ENTRY = LDT_ENTRY;
  3684. TLDTENTRY = LDT_ENTRY;
  3685. PLDTENTRY = ^LDT_ENTRY;
  3686. const
  3687. bm_LDT_ENTRY_BaseMid = $FF;
  3688. bp_LDT_ENTRY_BaseMid = 0;
  3689. bm_LDT_ENTRY_Type = $1F00;
  3690. bp_LDT_ENTRY_Type = 8;
  3691. bm_LDT_ENTRY_Dpl = $6000;
  3692. bp_LDT_ENTRY_Dpl = 13;
  3693. bm_LDT_ENTRY_Pres = $8000;
  3694. bp_LDT_ENTRY_Pres = 15;
  3695. bm_LDT_ENTRY_LimitHi = $F0000;
  3696. bp_LDT_ENTRY_LimitHi = 16;
  3697. bm_LDT_ENTRY_Sys = $100000;
  3698. bp_LDT_ENTRY_Sys = 20;
  3699. bm_LDT_ENTRY_Reserved_0 = $200000;
  3700. bp_LDT_ENTRY_Reserved_0 = 21;
  3701. bm_LDT_ENTRY_Default_Big = $400000;
  3702. bp_LDT_ENTRY_Default_Big = 22;
  3703. bm_LDT_ENTRY_Granularity = $800000;
  3704. bp_LDT_ENTRY_Granularity = 23;
  3705. bm_LDT_ENTRY_BaseHi = $FF000000;
  3706. bp_LDT_ENTRY_BaseHi = 24;
  3707. type
  3708. LOCALESIGNATURE = record
  3709. lsUsb : array[0..3] of DWORD;
  3710. lsCsbDefault : array[0..1] of DWORD;
  3711. lsCsbSupported : array[0..1] of DWORD;
  3712. end;
  3713. tagLOCALESIGNATURE = LOCALESIGNATURE;
  3714. TLOCALESIGNATURE = LOCALESIGNATURE;
  3715. PLOCALESIGNATURE = ^LOCALESIGNATURE;
  3716. LOCALGROUP_MEMBERS_INFO_0 = record
  3717. lgrmi0_sid : PSID;
  3718. end;
  3719. _LOCALGROUP_MEMBERS_INFO_0 = LOCALGROUP_MEMBERS_INFO_0;
  3720. TLOCALGROUPMEMBERSINFO0 = LOCALGROUP_MEMBERS_INFO_0;
  3721. PLOCALGROUPMEMBERSINFO0 = ^LOCALGROUP_MEMBERS_INFO_0;
  3722. LOCALGROUP_MEMBERS_INFO_3 = record
  3723. lgrmi3_domainandname : LPWSTR;
  3724. end;
  3725. _LOCALGROUP_MEMBERS_INFO_3 = LOCALGROUP_MEMBERS_INFO_3;
  3726. TLOCALGROUPMEMBERSINFO3 = LOCALGROUP_MEMBERS_INFO_3;
  3727. PLOCALGROUPMEMBERSINFO3 = ^LOCALGROUP_MEMBERS_INFO_3;
  3728. FXPT16DOT16 = longint;
  3729. LPFXPT16DOT16 = ^FXPT16DOT16;
  3730. TFXPT16DOT16 = FXPT16DOT16;
  3731. PFXPT16DOT16 = ^FXPT16DOT16;
  3732. LUID = TlargeInteger;
  3733. TLUID = LUID;
  3734. PLUID = ^LUID;
  3735. LUID_AND_ATTRIBUTES = packed record
  3736. Luid : LUID;
  3737. Attributes : DWORD;
  3738. end;
  3739. _LUID_AND_ATTRIBUTES = LUID_AND_ATTRIBUTES;
  3740. TLUIDANDATTRIBUTES = LUID_AND_ATTRIBUTES;
  3741. PLUIDANDATTRIBUTES = ^LUID_AND_ATTRIBUTES;
  3742. LUID_AND_ATTRIBUTES_ARRAY = array[0..(ANYSIZE_ARRAY)-1] of LUID_AND_ATTRIBUTES;
  3743. PLUID_AND_ATTRIBUTES_ARRAY = ^LUID_AND_ATTRIBUTES_ARRAY;
  3744. TLUIDANDATTRIBUTESARRAY = LUID_AND_ATTRIBUTES_ARRAY;
  3745. PLUIDANDATTRIBUTESARRAY = ^LUID_AND_ATTRIBUTES_ARRAY;
  3746. LV_COLUMN = record
  3747. mask : UINT;
  3748. fmt : longint;
  3749. cx : longint;
  3750. pszText : LPTSTR;
  3751. cchTextMax : longint;
  3752. iSubItem : longint;
  3753. end;
  3754. _LV_COLUMN = LV_COLUMN;
  3755. TLVCOLUMN = LV_COLUMN;
  3756. PLVCOLUMN = ^LV_COLUMN;
  3757. LV_ITEM = record
  3758. mask : UINT;
  3759. iItem : longint;
  3760. iSubItem : longint;
  3761. state : UINT;
  3762. stateMask : UINT;
  3763. pszText : LPTSTR;
  3764. cchTextMax : longint;
  3765. iImage : longint;
  3766. lParam : LPARAM;
  3767. end;
  3768. _LV_ITEM = LV_ITEM;
  3769. TLVITEM = LV_ITEM;
  3770. PLVITEM = ^LV_ITEM;
  3771. LV_DISPINFO = record
  3772. hdr : NMHDR;
  3773. item : LV_ITEM;
  3774. end;
  3775. tagLV_DISPINFO = LV_DISPINFO;
  3776. TLVDISPINFO = LV_DISPINFO;
  3777. PLVDISPINFO = ^LV_DISPINFO;
  3778. LV_FINDINFO = record
  3779. flags : UINT;
  3780. psz : LPCTSTR;
  3781. lParam : LPARAM;
  3782. pt : POINT;
  3783. vkDirection : UINT;
  3784. end;
  3785. _LV_FINDINFO = LV_FINDINFO;
  3786. TLVFINDINFO = LV_FINDINFO;
  3787. PLVFINDINFO = ^LV_FINDINFO;
  3788. LV_HITTESTINFO = record
  3789. pt : POINT;
  3790. flags : UINT;
  3791. iItem : longint;
  3792. end;
  3793. _LV_HITTESTINFO = LV_HITTESTINFO;
  3794. TLVHITTESTINFO = LV_HITTESTINFO;
  3795. PLVHITTESTINFO = ^LV_HITTESTINFO;
  3796. LV_KEYDOWN = record
  3797. hdr : NMHDR;
  3798. wVKey : WORD;
  3799. flags : UINT;
  3800. end;
  3801. tagLV_KEYDOWN = LV_KEYDOWN;
  3802. TLVKEYDOWN = LV_KEYDOWN;
  3803. PLVKEYDOWN = ^LV_KEYDOWN;
  3804. MAT2 = packed record
  3805. eM11 : FIXED;
  3806. eM12 : FIXED;
  3807. eM21 : FIXED;
  3808. eM22 : FIXED;
  3809. end;
  3810. _MAT2 = MAT2;
  3811. TMAT2 = MAT2;
  3812. PMAT2 = ^MAT2;
  3813. MDICREATESTRUCT = record
  3814. szClass : LPCTSTR;
  3815. szTitle : LPCTSTR;
  3816. hOwner : HANDLE;
  3817. x : longint;
  3818. y : longint;
  3819. cx : longint;
  3820. cy : longint;
  3821. style : DWORD;
  3822. lParam : LPARAM;
  3823. end;
  3824. LPMDICREATESTRUCT = ^MDICREATESTRUCT;
  3825. tagMDICREATESTRUCT = MDICREATESTRUCT;
  3826. TMDICREATESTRUCT = MDICREATESTRUCT;
  3827. PMDICREATESTRUCT = ^MDICREATESTRUCT;
  3828. MEASUREITEMSTRUCT = record
  3829. CtlType : UINT;
  3830. CtlID : UINT;
  3831. itemID : UINT;
  3832. itemWidth : UINT;
  3833. itemHeight : UINT;
  3834. itemData : ULONG_PTR;
  3835. end;
  3836. LPMEASUREITEMSTRUCT = ^MEASUREITEMSTRUCT;
  3837. tagMEASUREITEMSTRUCT = MEASUREITEMSTRUCT;
  3838. TMEASUREITEMSTRUCT = MEASUREITEMSTRUCT;
  3839. PMEASUREITEMSTRUCT = ^MEASUREITEMSTRUCT;
  3840. MEMORY_BASIC_INFORMATION = record
  3841. BaseAddress : PVOID;
  3842. AllocationBase : PVOID;
  3843. AllocationProtect : DWORD;
  3844. RegionSize : PTRUINT; // MvdV: size_t in win SDK 6.0.
  3845. State : DWORD;
  3846. Protect : DWORD;
  3847. _Type : DWORD;
  3848. end;
  3849. PMEMORY_BASIC_INFORMATION = ^MEMORY_BASIC_INFORMATION;
  3850. _MEMORY_BASIC_INFORMATION = MEMORY_BASIC_INFORMATION;
  3851. TMEMORYBASICINFORMATION = MEMORY_BASIC_INFORMATION;
  3852. PMEMORYBASICINFORMATION = ^MEMORY_BASIC_INFORMATION;
  3853. MEMORYSTATUS = record
  3854. dwLength : DWORD;
  3855. dwMemoryLoad : DWORD;
  3856. dwTotalPhys : SIZE_T;
  3857. dwAvailPhys : SIZE_T;
  3858. dwTotalPageFile : SIZE_T;
  3859. dwAvailPageFile : SIZE_T;
  3860. dwTotalVirtual : SIZE_T;
  3861. dwAvailVirtual : SIZE_T;
  3862. end;
  3863. LPMEMORYSTATUS = ^MEMORYSTATUS;
  3864. _MEMORYSTATUS = MEMORYSTATUS;
  3865. TMEMORYSTATUS = MEMORYSTATUS;
  3866. PMEMORYSTATUS = ^MEMORYSTATUS;
  3867. MENUEX_TEMPLATE_HEADER = record
  3868. wVersion : WORD;
  3869. wOffset : WORD;
  3870. dwHelpId : DWORD;
  3871. end;
  3872. TMENUXTEMPLATEHEADER = MENUEX_TEMPLATE_HEADER;
  3873. PMENUXTEMPLATEHEADER = ^MENUEX_TEMPLATE_HEADER;
  3874. MENUEX_TEMPLATE_ITEM = record
  3875. dwType : DWORD;
  3876. dwState : DWORD;
  3877. uId : UINT;
  3878. bResInfo : BYTE;
  3879. szText : array[0..0] of WCHAR;
  3880. dwHelpId : DWORD;
  3881. end;
  3882. TMENUEXTEMPLATEITEM = MENUEX_TEMPLATE_ITEM;
  3883. PMENUEXTEMPLATEITEM = ^MENUEX_TEMPLATE_ITEM;
  3884. MENUINFO = record
  3885. cbSize : DWORD;
  3886. fMask : DWORD;
  3887. dwStyle : DWORD;
  3888. cyMax : UINT;
  3889. hbrBack : HBRUSH;
  3890. dwContextHelpID : DWORD;
  3891. dwMenuData : ULONG_PTR;
  3892. end;
  3893. LPMENUINFO = ^MENUINFO;
  3894. LPCMENUINFO = ^MENUINFO;
  3895. tagMENUINFO = MENUINFO;
  3896. TMENUINFO = MENUINFO;
  3897. PMENUINFO = ^MENUINFO;
  3898. MENUITEMINFO = record
  3899. cbSize : UINT;
  3900. fMask : UINT;
  3901. fType : UINT;
  3902. fState : UINT;
  3903. wID : UINT;
  3904. hSubMenu : HMENU;
  3905. hbmpChecked : HBITMAP;
  3906. hbmpUnchecked : HBITMAP;
  3907. dwItemData : ULONG_PTR;
  3908. dwTypeData : LPTSTR;
  3909. cch : UINT;
  3910. hbmpItem : HBITMAP;
  3911. end;
  3912. LPMENUITEMINFO = ^MENUITEMINFO;
  3913. LPCMENUITEMINFO = ^MENUITEMINFO;
  3914. tagMENUITEMINFO = MENUITEMINFO;
  3915. TMENUITEMINFO = MENUITEMINFO;
  3916. TMENUITEMINFOA = MENUITEMINFO;
  3917. PMENUITEMINFO = ^MENUITEMINFO;
  3918. MENUITEMTEMPLATE = record
  3919. mtOption : WORD;
  3920. mtID : WORD;
  3921. mtString : array[0..0] of WCHAR;
  3922. end;
  3923. TMENUITEMTEMPLATE = MENUITEMTEMPLATE;
  3924. PMENUITEMTEMPLATE = ^MENUITEMTEMPLATE;
  3925. MENUITEMTEMPLATEHEADER = record
  3926. versionNumber : WORD;
  3927. offset : WORD;
  3928. end;
  3929. TMENUITEMTEMPLATEHEADER = MENUITEMTEMPLATEHEADER;
  3930. PMENUITEMTEMPLATEHEADER = ^MENUITEMTEMPLATEHEADER;
  3931. MENUTEMPLATE = record
  3932. end;
  3933. LPMENUTEMPLATE = ^MENUTEMPLATE;
  3934. TMENUTEMPLATE = MENUTEMPLATE;
  3935. PMENUTEMPLATE = ^MENUTEMPLATE;
  3936. METAFILEPICT = record
  3937. mm : LONG;
  3938. xExt : LONG;
  3939. yExt : LONG;
  3940. hMF : HMETAFILE;
  3941. end;
  3942. LPMETAFILEPICT = ^METAFILEPICT;
  3943. tagMETAFILEPICT = METAFILEPICT;
  3944. TMETAFILEPICT = METAFILEPICT;
  3945. PMETAFILEPICT = ^METAFILEPICT;
  3946. METAHEADER = packed record
  3947. mtType : WORD;
  3948. mtHeaderSize : WORD;
  3949. mtVersion : WORD;
  3950. mtSize : DWORD;
  3951. mtNoObjects : WORD;
  3952. mtMaxRecord : DWORD;
  3953. mtNoParameters : WORD;
  3954. end;
  3955. tagMETAHEADER = METAHEADER;
  3956. TMETAHEADER = METAHEADER;
  3957. PMETAHEADER = ^METAHEADER;
  3958. METARECORD = record
  3959. rdSize : DWORD;
  3960. rdFunction : WORD;
  3961. rdParm : array[0..0] of WORD;
  3962. end;
  3963. LPMETARECORD = ^METARECORD;
  3964. tagMETARECORD = METARECORD;
  3965. TMETARECORD = METARECORD;
  3966. PMETARECORD = ^METARECORD;
  3967. MINIMIZEDMETRICS = record
  3968. cbSize : UINT;
  3969. iWidth : longint;
  3970. iHorzGap : longint;
  3971. iVertGap : longint;
  3972. iArrange : longint;
  3973. end;
  3974. LPMINIMIZEDMETRICS = ^MINIMIZEDMETRICS;
  3975. tagMINIMIZEDMETRICS = MINIMIZEDMETRICS;
  3976. TMINIMIZEDMETRICS = MINIMIZEDMETRICS;
  3977. PMINIMIZEDMETRICS = ^MINIMIZEDMETRICS;
  3978. MINMAXINFO = record
  3979. ptReserved : POINT;
  3980. ptMaxSize : POINT;
  3981. ptMaxPosition : POINT;
  3982. ptMinTrackSize : POINT;
  3983. ptMaxTrackSize : POINT;
  3984. end;
  3985. tagMINMAXINFO = MINMAXINFO;
  3986. TMINMAXINFO = MINMAXINFO;
  3987. PMINMAXINFO = ^MINMAXINFO;
  3988. MODEMDEVCAPS = record
  3989. dwActualSize : DWORD;
  3990. dwRequiredSize : DWORD;
  3991. dwDevSpecificOffset : DWORD;
  3992. dwDevSpecificSize : DWORD;
  3993. dwModemProviderVersion : DWORD;
  3994. dwModemManufacturerOffset : DWORD;
  3995. dwModemManufacturerSize : DWORD;
  3996. dwModemModelOffset : DWORD;
  3997. dwModemModelSize : DWORD;
  3998. dwModemVersionOffset : DWORD;
  3999. dwModemVersionSize : DWORD;
  4000. dwDialOptions : DWORD;
  4001. dwCallSetupFailTimer : DWORD;
  4002. dwInactivityTimeout : DWORD;
  4003. dwSpeakerVolume : DWORD;
  4004. dwSpeakerMode : DWORD;
  4005. dwModemOptions : DWORD;
  4006. dwMaxDTERate : DWORD;
  4007. dwMaxDCERate : DWORD;
  4008. abVariablePortion : array[0..0] of BYTE;
  4009. end;
  4010. LPMODEMDEVCAPS = ^MODEMDEVCAPS;
  4011. TMODEMDEVCAPS = MODEMDEVCAPS;
  4012. PMODEMDEVCAPS = ^MODEMDEVCAPS;
  4013. modemdevcaps_tag = MODEMDEVCAPS;
  4014. MODEMSETTINGS = record
  4015. dwActualSize : DWORD;
  4016. dwRequiredSize : DWORD;
  4017. dwDevSpecificOffset : DWORD;
  4018. dwDevSpecificSize : DWORD;
  4019. dwCallSetupFailTimer : DWORD;
  4020. dwInactivityTimeout : DWORD;
  4021. dwSpeakerVolume : DWORD;
  4022. dwSpeakerMode : DWORD;
  4023. dwPreferredModemOptions : DWORD;
  4024. dwNegotiatedModemOptions : DWORD;
  4025. dwNegotiatedDCERate : DWORD;
  4026. abVariablePortion : array[0..0] of BYTE;
  4027. end;
  4028. LPMODEMSETTINGS = ^MODEMSETTINGS;
  4029. TMODEMSETTINGS = MODEMSETTINGS;
  4030. PMODEMSETTINGS = ^MODEMSETTINGS;
  4031. modemsettings_tag = MODEMSETTINGS;
  4032. MONCBSTRUCT = record
  4033. cb : UINT;
  4034. dwTime : DWORD;
  4035. hTask : HANDLE;
  4036. dwRet : DWORD;
  4037. wType : UINT;
  4038. wFmt : UINT;
  4039. hConv : HCONV;
  4040. hsz1 : HSZ;
  4041. hsz2 : HSZ;
  4042. hData : HDDEDATA;
  4043. dwData1 : DWORD;
  4044. dwData2 : DWORD;
  4045. cc : CONVCONTEXT;
  4046. cbData : DWORD;
  4047. Data : array[0..7] of DWORD;
  4048. end;
  4049. tagMONCBSTRUCT = MONCBSTRUCT;
  4050. TMONCBSTRUCT = MONCBSTRUCT;
  4051. PMONCBSTRUCT = ^MONCBSTRUCT;
  4052. MONCONVSTRUCT = record
  4053. cb : UINT;
  4054. fConnect : WINBOOL;
  4055. dwTime : DWORD;
  4056. hTask : HANDLE;
  4057. hszSvc : HSZ;
  4058. hszTopic : HSZ;
  4059. hConvClient : HCONV;
  4060. hConvServer : HCONV;
  4061. end;
  4062. tagMONCONVSTRUCT = MONCONVSTRUCT;
  4063. TMONCONVSTRUCT = MONCONVSTRUCT;
  4064. PMONCONVSTRUCT = ^MONCONVSTRUCT;
  4065. MONERRSTRUCT = record
  4066. cb : UINT;
  4067. wLastError : UINT;
  4068. dwTime : DWORD;
  4069. hTask : HANDLE;
  4070. end;
  4071. tagMONERRSTRUCT = MONERRSTRUCT;
  4072. TMONERRSTRUCT = MONERRSTRUCT;
  4073. PMONERRSTRUCT = ^MONERRSTRUCT;
  4074. MONHSZSTRUCT = record
  4075. cb : UINT;
  4076. fsAction : WINBOOL;
  4077. dwTime : DWORD;
  4078. hsz : HSZ;
  4079. hTask : HANDLE;
  4080. str : array[0..0] of TCHAR;
  4081. end;
  4082. tagMONHSZSTRUCT = MONHSZSTRUCT;
  4083. TMONHSZSTRUCT = MONHSZSTRUCT;
  4084. PMONHSZSTRUCT = ^MONHSZSTRUCT;
  4085. MONITOR_INFO_1 = record
  4086. pName : LPTSTR;
  4087. end;
  4088. _MONITOR_INFO_1 = MONITOR_INFO_1;
  4089. TMONITORINFO1 = MONITOR_INFO_1;
  4090. PMONITORINFO1 = ^MONITOR_INFO_1;
  4091. MONITOR_INFO_2 = record
  4092. pName : LPTSTR;
  4093. pEnvironment : LPTSTR;
  4094. pDLLName : LPTSTR;
  4095. end;
  4096. _MONITOR_INFO_2 = MONITOR_INFO_2;
  4097. TMONITORINFO2 = MONITOR_INFO_2;
  4098. PMONITORINFO2 = ^MONITOR_INFO_2;
  4099. MONLINKSTRUCT = record
  4100. cb : UINT;
  4101. dwTime : DWORD;
  4102. hTask : HANDLE;
  4103. fEstablished : WINBOOL;
  4104. fNoData : WINBOOL;
  4105. hszSvc : HSZ;
  4106. hszTopic : HSZ;
  4107. hszItem : HSZ;
  4108. wFmt : UINT;
  4109. fServer : WINBOOL;
  4110. hConvServer : HCONV;
  4111. hConvClient : HCONV;
  4112. end;
  4113. tagMONLINKSTRUCT = MONLINKSTRUCT;
  4114. TMONLINKSTRUCT = MONLINKSTRUCT;
  4115. PMONLINKSTRUCT = ^MONLINKSTRUCT;
  4116. MONMSGSTRUCT = record
  4117. cb : UINT;
  4118. hwndTo : HWND;
  4119. dwTime : DWORD;
  4120. hTask : HANDLE;
  4121. wMsg : UINT;
  4122. wParam : WPARAM;
  4123. lParam : LPARAM;
  4124. dmhd : DDEML_MSG_HOOK_DATA;
  4125. end;
  4126. tagMONMSGSTRUCT = MONMSGSTRUCT;
  4127. TMONMSGSTRUCT = MONMSGSTRUCT;
  4128. PMONMSGSTRUCT = ^MONMSGSTRUCT;
  4129. MOUSEHOOKSTRUCT = record
  4130. pt : POINT;
  4131. hwnd : HWND;
  4132. wHitTestCode : UINT;
  4133. dwExtraInfo : DWORD;
  4134. end;
  4135. LPMOUSEHOOKSTRUCT = ^MOUSEHOOKSTRUCT;
  4136. tagMOUSEHOOKSTRUCT = MOUSEHOOKSTRUCT;
  4137. TMOUSEHOOKSTRUCT = MOUSEHOOKSTRUCT;
  4138. PMOUSEHOOKSTRUCT = ^MOUSEHOOKSTRUCT;
  4139. MOUSEKEYS = record
  4140. cbSize : DWORD;
  4141. dwFlags : DWORD;
  4142. iMaxSpeed : DWORD;
  4143. iTimeToMaxSpeed : DWORD;
  4144. iCtrlSpeed : DWORD;
  4145. dwReserved1 : DWORD;
  4146. dwReserved2 : DWORD;
  4147. end;
  4148. TMOUSEKEYS = MOUSEKEYS;
  4149. PMOUSEKEYS = ^MOUSEKEYS;
  4150. MSGBOXCALLBACK = procedure (lpHelpInfo:LPHELPINFO);stdcall;
  4151. TMSGBOXCALLBACK = MSGBOXCALLBACK;
  4152. MSGBOXPARAMS = record
  4153. cbSize : UINT;
  4154. hwndOwner : HWND;
  4155. hInstance : HINST;
  4156. lpszText : LPCSTR;
  4157. lpszCaption : LPCSTR;
  4158. dwStyle : DWORD;
  4159. lpszIcon : LPCSTR;
  4160. dwContextHelpId : DWORD;
  4161. lpfnMsgBoxCallback : MSGBOXCALLBACK;
  4162. dwLanguageId : DWORD;
  4163. end;
  4164. LPMSGBOXPARAMS = ^MSGBOXPARAMS;
  4165. TMSGBOXPARAMS = MSGBOXPARAMS;
  4166. TMSGBOXPARAMSA = MSGBOXPARAMS;
  4167. PMSGBOXPARAMS = ^MSGBOXPARAMS;
  4168. MSGFILTER = record
  4169. nmhdr : NMHDR;
  4170. msg : UINT;
  4171. wParam : WPARAM;
  4172. lParam : LPARAM;
  4173. end;
  4174. _msgfilter = MSGFILTER;
  4175. Tmsgfilter = MSGFILTER;
  4176. Pmsgfilter = ^MSGFILTER;
  4177. MULTIKEYHELP = record
  4178. mkSize : DWORD;
  4179. mkKeylist : TCHAR;
  4180. szKeyphrase : array[0..0] of TCHAR;
  4181. end;
  4182. tagMULTIKEYHELP = MULTIKEYHELP;
  4183. TMULTIKEYHELP = MULTIKEYHELP;
  4184. PMULTIKEYHELP = ^MULTIKEYHELP;
  4185. NAME_BUFFER = record
  4186. name : array[0..(NCBNAMSZ)-1] of UCHAR;
  4187. name_num : UCHAR;
  4188. name_flags : UCHAR;
  4189. end;
  4190. _NAME_BUFFER = NAME_BUFFER;
  4191. TNAMEBUFFER = NAME_BUFFER;
  4192. PNAMEBUFFER = ^NAME_BUFFER;
  4193. p_NCB = ^_NCB;
  4194. NCB = record
  4195. ncb_command : UCHAR;
  4196. ncb_retcode : UCHAR;
  4197. ncb_lsn : UCHAR;
  4198. ncb_num : UCHAR;
  4199. ncb_buffer : PUCHAR;
  4200. ncb_length : WORD;
  4201. ncb_callname : array[0..(NCBNAMSZ)-1] of UCHAR;
  4202. ncb_name : array[0..(NCBNAMSZ)-1] of UCHAR;
  4203. ncb_rto : UCHAR;
  4204. ncb_sto : UCHAR;
  4205. ncb_post : procedure (_para1:p_NCB);CDECL;
  4206. ncb_lana_num : UCHAR;
  4207. ncb_cmd_cplt : UCHAR;
  4208. ncb_reserve : array[0..9] of UCHAR;
  4209. ncb_event : HANDLE;
  4210. end;
  4211. _NCB = NCB;
  4212. TNCB = NCB;
  4213. PNCB = ^NCB;
  4214. NCCALCSIZE_PARAMS = record
  4215. rgrc : array[0..2] of RECT;
  4216. lppos : PWINDOWPOS;
  4217. end;
  4218. _NCCALCSIZE_PARAMS = NCCALCSIZE_PARAMS;
  4219. TNCCALCSIZEPARAMS = NCCALCSIZE_PARAMS;
  4220. PNCCALCSIZEPARAMS = ^NCCALCSIZE_PARAMS;
  4221. NDDESHAREINFO = record
  4222. lRevision : LONG;
  4223. lpszShareName : LPTSTR;
  4224. lShareType : LONG;
  4225. lpszAppTopicList : LPTSTR;
  4226. fSharedFlag : LONG;
  4227. fService : LONG;
  4228. fStartAppFlag : LONG;
  4229. nCmdShow : LONG;
  4230. qModifyId : array[0..1] of LONG;
  4231. cNumItems : LONG;
  4232. lpszItemList : LPTSTR;
  4233. end;
  4234. _NDDESHAREINFO = NDDESHAREINFO;
  4235. TNDDESHAREINFO = NDDESHAREINFO;
  4236. PNDDESHAREINFO = ^NDDESHAREINFO;
  4237. NETRESOURCE = record
  4238. dwScope : DWORD;
  4239. dwType : DWORD;
  4240. dwDisplayType : DWORD;
  4241. dwUsage : DWORD;
  4242. lpLocalName : LPTSTR;
  4243. lpRemoteName : LPTSTR;
  4244. lpComment : LPTSTR;
  4245. lpProvider : LPTSTR;
  4246. end;
  4247. LPNETRESOURCE = ^NETRESOURCE;
  4248. _NETRESOURCE = NETRESOURCE;
  4249. TNETRESOURCE = NETRESOURCE;
  4250. TNETRESOURCEA = NETRESOURCE;
  4251. PNETRESOURCE = ^NETRESOURCE;
  4252. PNETRESOURCEA = ^NETRESOURCE;
  4253. NEWCPLINFO = record
  4254. dwSize : DWORD;
  4255. dwFlags : DWORD;
  4256. dwHelpContext : DWORD;
  4257. lData : LONG;
  4258. hIcon : HICON;
  4259. szName : array[0..31] of TCHAR;
  4260. szInfo : array[0..63] of TCHAR;
  4261. szHelpFile : array[0..127] of TCHAR;
  4262. end;
  4263. tagNEWCPLINFO = NEWCPLINFO;
  4264. TNEWCPLINFO = NEWCPLINFO;
  4265. PNEWCPLINFO = ^NEWCPLINFO;
  4266. NEWTEXTMETRIC = record
  4267. tmHeight : LONG;
  4268. tmAscent : LONG;
  4269. tmDescent : LONG;
  4270. tmInternalLeading : LONG;
  4271. tmExternalLeading : LONG;
  4272. tmAveCharWidth : LONG;
  4273. tmMaxCharWidth : LONG;
  4274. tmWeight : LONG;
  4275. tmOverhang : LONG;
  4276. tmDigitizedAspectX : LONG;
  4277. tmDigitizedAspectY : LONG;
  4278. tmFirstChar : BCHAR;
  4279. tmLastChar : BCHAR;
  4280. tmDefaultChar : BCHAR;
  4281. tmBreakChar : BCHAR;
  4282. tmItalic : BYTE;
  4283. tmUnderlined : BYTE;
  4284. tmStruckOut : BYTE;
  4285. tmPitchAndFamily : BYTE;
  4286. tmCharSet : BYTE;
  4287. ntmFlags : DWORD;
  4288. ntmSizeEM : UINT;
  4289. ntmCellHeight : UINT;
  4290. ntmAvgWidth : UINT;
  4291. end;
  4292. tagNEWTEXTMETRIC = NEWTEXTMETRIC;
  4293. TNEWTEXTMETRIC = NEWTEXTMETRIC;
  4294. PNEWTEXTMETRIC = ^NEWTEXTMETRIC;
  4295. NEWTEXTMETRICEX = record
  4296. ntmentm : NEWTEXTMETRIC;
  4297. ntmeFontSignature : FONTSIGNATURE;
  4298. end;
  4299. tagNEWTEXTMETRICEX = NEWTEXTMETRICEX;
  4300. TNEWTEXTMETRICEX = NEWTEXTMETRICEX;
  4301. PNEWTEXTMETRICEX = ^NEWTEXTMETRICEX;
  4302. NM_LISTVIEW = record
  4303. hdr : NMHDR;
  4304. iItem : longint;
  4305. iSubItem : longint;
  4306. uNewState : UINT;
  4307. uOldState : UINT;
  4308. uChanged : UINT;
  4309. ptAction : POINT;
  4310. lParam : LPARAM;
  4311. end;
  4312. tagNM_LISTVIEW = NM_LISTVIEW;
  4313. TNMLISTVIEW = NM_LISTVIEW;
  4314. PNMLISTVIEW = ^NM_LISTVIEW;
  4315. TV_ITEM = record
  4316. mask : UINT;
  4317. hItem : HTREEITEM;
  4318. state : UINT;
  4319. stateMask : UINT;
  4320. pszText : LPTSTR;
  4321. cchTextMax : longint;
  4322. iImage : longint;
  4323. iSelectedImage : longint;
  4324. cChildren : longint;
  4325. lParam : LPARAM;
  4326. end;
  4327. LPTV_ITEM = ^TV_ITEM;
  4328. _TV_ITEM = TV_ITEM;
  4329. TTVITEM = TV_ITEM;
  4330. PTVITEM = ^TV_ITEM;
  4331. NM_TREEVIEW = record
  4332. hdr : NMHDR;
  4333. action : UINT;
  4334. itemOld : TV_ITEM;
  4335. itemNew : TV_ITEM;
  4336. ptDrag : POINT;
  4337. end;
  4338. LPNM_TREEVIEW = ^NM_TREEVIEW;
  4339. _NM_TREEVIEW = NM_TREEVIEW;
  4340. TNMTREEVIEW = NM_TREEVIEW;
  4341. PNMTREEVIEW = ^NM_TREEVIEW;
  4342. NM_UPDOWNW = record
  4343. hdr : NMHDR;
  4344. iPos : longint;
  4345. iDelta : longint;
  4346. end;
  4347. _NM_UPDOWN = NM_UPDOWNW;
  4348. TNMUPDOWN = NM_UPDOWNW;
  4349. PNMUPDOWN = ^NM_UPDOWNW;
  4350. NONCLIENTMETRICS = record
  4351. cbSize : UINT;
  4352. iBorderWidth : longint;
  4353. iScrollWidth : longint;
  4354. iScrollHeight : longint;
  4355. iCaptionWidth : longint;
  4356. iCaptionHeight : longint;
  4357. lfCaptionFont : LOGFONT;
  4358. iSmCaptionWidth : longint;
  4359. iSmCaptionHeight : longint;
  4360. lfSmCaptionFont : LOGFONT;
  4361. iMenuWidth : longint;
  4362. iMenuHeight : longint;
  4363. lfMenuFont : LOGFONT;
  4364. lfStatusFont : LOGFONT;
  4365. lfMessageFont : LOGFONT;
  4366. end;
  4367. LPNONCLIENTMETRICS = ^NONCLIENTMETRICS;
  4368. tagNONCLIENTMETRICS = NONCLIENTMETRICS;
  4369. TNONCLIENTMETRICS = NONCLIENTMETRICS;
  4370. PNONCLIENTMETRICS = ^NONCLIENTMETRICS;
  4371. SERVICE_ADDRESS = record
  4372. dwAddressType : DWORD;
  4373. dwAddressFlags : DWORD;
  4374. dwAddressLength : DWORD;
  4375. dwPrincipalLength : DWORD;
  4376. lpAddress : ^BYTE;
  4377. lpPrincipal : ^BYTE;
  4378. end;
  4379. _SERVICE_ADDRESS = SERVICE_ADDRESS;
  4380. TSERVICEADDRESS = SERVICE_ADDRESS;
  4381. PSERVICEADDRESS = ^SERVICE_ADDRESS;
  4382. SERVICE_ADDRESSES = record
  4383. dwAddressCount : DWORD;
  4384. Addresses : array[0..0] of SERVICE_ADDRESS;
  4385. end;
  4386. LPSERVICE_ADDRESSES = ^SERVICE_ADDRESSES;
  4387. _SERVICE_ADDRESSES = SERVICE_ADDRESSES;
  4388. TSERVICEADDRESSES = SERVICE_ADDRESSES;
  4389. PSERVICEADDRESSES = ^SERVICE_ADDRESSES;
  4390. GUID = system.tguid;
  4391. LPGUID = ^GUID;
  4392. _GUID = GUID;
  4393. TGUID = GUID;
  4394. PGUID = ^GUID;
  4395. CLSID = GUID;
  4396. LPCLSID = ^CLSID;
  4397. TCLSID = CLSID;
  4398. PCLSID = ^CLSID;
  4399. SERVICE_INFO = record
  4400. lpServiceType : LPGUID;
  4401. lpServiceName : LPTSTR;
  4402. lpComment : LPTSTR;
  4403. lpLocale : LPTSTR;
  4404. dwDisplayHint : DWORD;
  4405. dwVersion : DWORD;
  4406. dwTime : DWORD;
  4407. lpMachineName : LPTSTR;
  4408. lpServiceAddress : LPSERVICE_ADDRESSES;
  4409. ServiceSpecificInfo : BLOB;
  4410. end;
  4411. _SERVICE_INFO = SERVICE_INFO;
  4412. TSERVICEINFO = SERVICE_INFO;
  4413. PSERVICEINFO = ^SERVICE_INFO;
  4414. NS_SERVICE_INFO = record
  4415. dwNameSpace : DWORD;
  4416. ServiceInfo : SERVICE_INFO;
  4417. end;
  4418. _NS_SERVICE_INFO = NS_SERVICE_INFO;
  4419. TNSSERVICEINFO = NS_SERVICE_INFO;
  4420. PNSSERVICEINFO = ^NS_SERVICE_INFO;
  4421. NUMBERFMT = record
  4422. NumDigits : UINT;
  4423. LeadingZero : UINT;
  4424. Grouping : UINT;
  4425. lpDecimalSep : LPTSTR;
  4426. lpThousandSep : LPTSTR;
  4427. NegativeOrder : UINT;
  4428. end;
  4429. _numberfmt = NUMBERFMT;
  4430. Tnumberfmt = NUMBERFMT;
  4431. Pnumberfmt = ^NUMBERFMT;
  4432. OFSTRUCT = record
  4433. cBytes : BYTE;
  4434. fFixedDisk : BYTE;
  4435. nErrCode : WORD;
  4436. Reserved1 : WORD;
  4437. Reserved2 : WORD;
  4438. szPathName : array[0..(OFS_MAXPATHNAME)-1] of CHAR;
  4439. end;
  4440. LPOFSTRUCT = ^OFSTRUCT;
  4441. _OFSTRUCT = OFSTRUCT;
  4442. TOFSTRUCT = OFSTRUCT;
  4443. POFSTRUCT = ^OFSTRUCT;
  4444. OPENFILENAME_NT4 = record
  4445. lStructSize : DWORD;
  4446. hwndOwner : HWND;
  4447. hInstance : HINST;
  4448. lpstrFilter : LPCTSTR;
  4449. lpstrCustomFilter : LPTSTR;
  4450. nMaxCustFilter : DWORD;
  4451. nFilterIndex : DWORD;
  4452. lpstrFile : LPTSTR;
  4453. nMaxFile : DWORD;
  4454. lpstrFileTitle : LPTSTR;
  4455. nMaxFileTitle : DWORD;
  4456. lpstrInitialDir : LPCTSTR;
  4457. lpstrTitle : LPCTSTR;
  4458. Flags : DWORD;
  4459. nFileOffset : WORD;
  4460. nFileExtension : WORD;
  4461. lpstrDefExt : LPCTSTR;
  4462. lCustData : LPARAM;
  4463. lpfnHook : LPOFNHOOKPROC;
  4464. lpTemplateName : LPCTSTR;
  4465. end;
  4466. LPOPENFILENAME_NT4 = ^OPENFILENAME_NT4;
  4467. TOPENFILENAME_NT4 = OPENFILENAME_NT4;
  4468. POPENFILENAME_NT4 = ^OPENFILENAME_NT4;
  4469. OPENFILENAME = record
  4470. lStructSize : DWORD;
  4471. hwndOwner : HWND;
  4472. hInstance : HINST;
  4473. lpstrFilter : LPCTSTR;
  4474. lpstrCustomFilter : LPTSTR;
  4475. nMaxCustFilter : DWORD;
  4476. nFilterIndex : DWORD;
  4477. lpstrFile : LPTSTR;
  4478. nMaxFile : DWORD;
  4479. lpstrFileTitle : LPTSTR;
  4480. nMaxFileTitle : DWORD;
  4481. lpstrInitialDir : LPCTSTR;
  4482. lpstrTitle : LPCTSTR;
  4483. Flags : DWORD;
  4484. nFileOffset : WORD;
  4485. nFileExtension : WORD;
  4486. lpstrDefExt : LPCTSTR;
  4487. lCustData : LPARAM;
  4488. lpfnHook : LPOFNHOOKPROC;
  4489. lpTemplateName : LPCTSTR;
  4490. pvReserved : pointer;
  4491. dwreserved : dword;
  4492. FlagsEx : dword;
  4493. end;
  4494. LPOPENFILENAME = ^OPENFILENAME;
  4495. TOPENFILENAME = OPENFILENAME;
  4496. POPENFILENAME = ^OPENFILENAME;
  4497. tagOFN = OPENFILENAME;
  4498. TOFN = OPENFILENAME;
  4499. POFN = ^OPENFILENAME;
  4500. OFNOTIFY = record
  4501. hdr : NMHDR;
  4502. lpOFN : LPOPENFILENAME;
  4503. pszFile : LPTSTR;
  4504. end;
  4505. LPOFNOTIFY = ^OFNOTIFY;
  4506. _OFNOTIFY = OFNOTIFY;
  4507. TOFNOTIFY = OFNOTIFY;
  4508. POFNOTIFY = ^OFNOTIFY;
  4509. OSVERSIONINFO = record
  4510. dwOSVersionInfoSize : DWORD;
  4511. dwMajorVersion : DWORD;
  4512. dwMinorVersion : DWORD;
  4513. dwBuildNumber : DWORD;
  4514. dwPlatformId : DWORD;
  4515. szCSDVersion : array[0..127] of TCHAR;
  4516. end;
  4517. LPOSVERSIONINFO = ^OSVERSIONINFO;
  4518. _OSVERSIONINFO = OSVERSIONINFO;
  4519. TOSVERSIONINFO = OSVERSIONINFO;
  4520. POSVERSIONINFO = ^OSVERSIONINFO;
  4521. OSVERSIONINFOW = record
  4522. dwOSVersionInfoSize : DWORD;
  4523. dwMajorVersion : DWORD;
  4524. dwMinorVersion : DWORD;
  4525. dwBuildNumber : DWORD;
  4526. dwPlatformId : DWORD;
  4527. szCSDVersion : array[0..127] of WCHAR;
  4528. end;
  4529. LPOSVERSIONINFOW = ^OSVERSIONINFOW;
  4530. _OSVERSIONINFOW = OSVERSIONINFOW;
  4531. TOSVERSIONINFOW = OSVERSIONINFOW;
  4532. POSVERSIONINFOW = ^OSVERSIONINFOW;
  4533. TEXTMETRIC = record
  4534. tmHeight : LONG;
  4535. tmAscent : LONG;
  4536. tmDescent : LONG;
  4537. tmInternalLeading : LONG;
  4538. tmExternalLeading : LONG;
  4539. tmAveCharWidth : LONG;
  4540. tmMaxCharWidth : LONG;
  4541. tmWeight : LONG;
  4542. tmOverhang : LONG;
  4543. tmDigitizedAspectX : LONG;
  4544. tmDigitizedAspectY : LONG;
  4545. tmFirstChar : BCHAR;
  4546. tmLastChar : BCHAR;
  4547. tmDefaultChar : BCHAR;
  4548. tmBreakChar : BCHAR;
  4549. tmItalic : BYTE;
  4550. tmUnderlined : BYTE;
  4551. tmStruckOut : BYTE;
  4552. tmPitchAndFamily : BYTE;
  4553. tmCharSet : BYTE;
  4554. end;
  4555. LPTEXTMETRIC = ^TEXTMETRIC;
  4556. tagTEXTMETRIC = TEXTMETRIC;
  4557. TTEXTMETRIC = TEXTMETRIC;
  4558. PTEXTMETRIC = ^TEXTMETRIC;
  4559. TEXTMETRICW = record
  4560. tmHeight : LONG;
  4561. tmAscent : LONG;
  4562. tmDescent : LONG;
  4563. tmInternalLeading : LONG;
  4564. tmExternalLeading : LONG;
  4565. tmAveCharWidth : LONG;
  4566. tmMaxCharWidth : LONG;
  4567. tmWeight : LONG;
  4568. tmOverhang : LONG;
  4569. tmDigitizedAspectX : LONG;
  4570. tmDigitizedAspectY : LONG;
  4571. tmFirstChar : WCHAR;
  4572. tmLastChar : WCHAR;
  4573. tmDefaultChar : WCHAR;
  4574. tmBreakChar : WCHAR;
  4575. tmItalic : BYTE;
  4576. tmUnderlined : BYTE;
  4577. tmStruckOut : BYTE;
  4578. tmPitchAndFamily : BYTE;
  4579. tmCharSet : BYTE;
  4580. end;
  4581. LPTEXTMETRICW = ^TEXTMETRICW;
  4582. tagTEXTMETRICW = TEXTMETRICW;
  4583. TTEXTMETRICW = TEXTMETRICW;
  4584. PTEXTMETRICW = ^TEXTMETRICW;
  4585. OUTLINETEXTMETRIC = record
  4586. otmSize : UINT;
  4587. otmTextMetrics : TEXTMETRIC;
  4588. otmFiller : BYTE;
  4589. otmPanoseNumber : PANOSE;
  4590. otmfsSelection : UINT;
  4591. otmfsType : UINT;
  4592. otmsCharSlopeRise : longint;
  4593. otmsCharSlopeRun : longint;
  4594. otmItalicAngle : longint;
  4595. otmEMSquare : UINT;
  4596. otmAscent : longint;
  4597. otmDescent : longint;
  4598. otmLineGap : UINT;
  4599. otmsCapEmHeight : UINT;
  4600. otmsXHeight : UINT;
  4601. otmrcFontBox : RECT;
  4602. otmMacAscent : longint;
  4603. otmMacDescent : longint;
  4604. otmMacLineGap : UINT;
  4605. otmusMinimumPPEM : UINT;
  4606. otmptSubscriptSize : POINT;
  4607. otmptSubscriptOffset : POINT;
  4608. otmptSuperscriptSize : POINT;
  4609. otmptSuperscriptOffset : POINT;
  4610. otmsStrikeoutSize : UINT;
  4611. otmsStrikeoutPosition : longint;
  4612. otmsUnderscoreSize : longint;
  4613. otmsUnderscorePosition : longint;
  4614. otmpFamilyName : PSTR;
  4615. otmpFaceName : PSTR;
  4616. otmpStyleName : PSTR;
  4617. otmpFullName : PSTR;
  4618. end;
  4619. LPOUTLINETEXTMETRIC = ^OUTLINETEXTMETRIC;
  4620. _OUTLINETEXTMETRIC = OUTLINETEXTMETRIC;
  4621. TOUTLINETEXTMETRIC = OUTLINETEXTMETRIC;
  4622. POUTLINETEXTMETRIC = ^OUTLINETEXTMETRIC;
  4623. OVERLAPPED = record
  4624. Internal : ULONG_PTR;
  4625. InternalHigh : ULONG_PTR;
  4626. Offset : DWORD;
  4627. OffsetHigh : DWORD;
  4628. hEvent : HANDLE;
  4629. end;
  4630. LPOVERLAPPED = ^OVERLAPPED;
  4631. _OVERLAPPED = OVERLAPPED;
  4632. TOVERLAPPED = OVERLAPPED;
  4633. POVERLAPPED = ^OVERLAPPED;
  4634. {PAGESETUPDLG = record conflicts with function PageSetupDlg }
  4635. TPAGESETUPDLG = record
  4636. lStructSize : DWORD;
  4637. hwndOwner : HWND;
  4638. hDevMode : HGLOBAL;
  4639. hDevNames : HGLOBAL;
  4640. Flags : DWORD;
  4641. ptPaperSize : POINT;
  4642. rtMinMargin : RECT;
  4643. rtMargin : RECT;
  4644. hInstance : HINST;
  4645. lCustData : LPARAM;
  4646. lpfnPageSetupHook : LPPAGESETUPHOOK;
  4647. lpfnPagePaintHook : LPPAGEPAINTHOOK;
  4648. lpPageSetupTemplateName : LPCTSTR;
  4649. hPageSetupTemplate : HGLOBAL;
  4650. end;
  4651. LPPAGESETUPDLG = ^TPAGESETUPDLG;
  4652. PPAGESETUPDLG = ^TPAGESETUPDLG;
  4653. tagPSD = TPAGESETUPDLG;
  4654. TPSD = TPAGESETUPDLG;
  4655. PPSD = ^TPAGESETUPDLG;
  4656. PAINTSTRUCT = record
  4657. hdc : HDC;
  4658. fErase : WINBOOL;
  4659. rcPaint : RECT;
  4660. fRestore : WINBOOL;
  4661. fIncUpdate : WINBOOL;
  4662. rgbReserved : array[0..31] of BYTE;
  4663. end;
  4664. LPPAINTSTRUCT = ^PAINTSTRUCT;
  4665. tagPAINTSTRUCT = PAINTSTRUCT;
  4666. TPAINTSTRUCT = PAINTSTRUCT;
  4667. PPAINTSTRUCT = ^PAINTSTRUCT;
  4668. PARAFORMAT = record
  4669. cbSize : UINT;
  4670. dwMask : DWORD;
  4671. wNumbering : WORD;
  4672. wReserved : WORD;
  4673. dxStartIndent : LONG;
  4674. dxRightIndent : LONG;
  4675. dxOffset : LONG;
  4676. wAlignment : WORD;
  4677. cTabCount : SHORT;
  4678. rgxTabs : array[0..(MAX_TAB_STOPS)-1] of LONG;
  4679. end;
  4680. _paraformat = PARAFORMAT;
  4681. Tparaformat = PARAFORMAT;
  4682. Pparaformat = ^PARAFORMAT;
  4683. PERF_COUNTER_BLOCK = record
  4684. ByteLength : DWORD;
  4685. end;
  4686. _PERF_COUNTER_BLOCK = PERF_COUNTER_BLOCK;
  4687. TPERFCOUNTERBLOCK = PERF_COUNTER_BLOCK;
  4688. PPERFCOUNTERBLOCK = ^PERF_COUNTER_BLOCK;
  4689. PERF_COUNTER_DEFINITION = record
  4690. ByteLength : DWORD;
  4691. CounterNameTitleIndex : DWORD;
  4692. CounterNameTitle : LPWSTR;
  4693. CounterHelpTitleIndex : DWORD;
  4694. CounterHelpTitle : LPWSTR;
  4695. DefaultScale : DWORD;
  4696. DetailLevel : DWORD;
  4697. CounterType : DWORD;
  4698. CounterSize : DWORD;
  4699. CounterOffset : DWORD;
  4700. end;
  4701. _PERF_COUNTER_DEFINITION = PERF_COUNTER_DEFINITION;
  4702. TPERFCOUNTERDEFINITION = PERF_COUNTER_DEFINITION;
  4703. PPERFCOUNTERDEFINITION = ^PERF_COUNTER_DEFINITION;
  4704. PERF_DATA_BLOCK = record
  4705. Signature : array[0..3] of WCHAR;
  4706. LittleEndian : DWORD;
  4707. Version : DWORD;
  4708. Revision : DWORD;
  4709. TotalByteLength : DWORD;
  4710. HeaderLength : DWORD;
  4711. NumObjectTypes : DWORD;
  4712. DefaultObject : DWORD;
  4713. SystemTime : SYSTEMTIME;
  4714. PerfTime : LARGE_INTEGER;
  4715. PerfFreq : LARGE_INTEGER;
  4716. PerfTime100nSec : LARGE_INTEGER;
  4717. SystemNameLength : DWORD;
  4718. SystemNameOffset : DWORD;
  4719. end;
  4720. _PERF_DATA_BLOCK = PERF_DATA_BLOCK;
  4721. TPERFDATABLOCK = PERF_DATA_BLOCK;
  4722. PPERFDATABLOCK = ^PERF_DATA_BLOCK;
  4723. PERF_INSTANCE_DEFINITION = record
  4724. ByteLength : DWORD;
  4725. ParentObjectTitleIndex : DWORD;
  4726. ParentObjectInstance : DWORD;
  4727. UniqueID : DWORD;
  4728. NameOffset : DWORD;
  4729. NameLength : DWORD;
  4730. end;
  4731. _PERF_INSTANCE_DEFINITION = PERF_INSTANCE_DEFINITION;
  4732. TPERFINSTANCEDEFINITION = PERF_INSTANCE_DEFINITION;
  4733. PPERFINSTANCEDEFINITION = PERF_INSTANCE_DEFINITION;
  4734. PERF_OBJECT_TYPE = record
  4735. TotalByteLength : DWORD;
  4736. DefinitionLength : DWORD;
  4737. HeaderLength : DWORD;
  4738. ObjectNameTitleIndex : DWORD;
  4739. ObjectNameTitle : LPWSTR;
  4740. ObjectHelpTitleIndex : DWORD;
  4741. ObjectHelpTitle : LPWSTR;
  4742. DetailLevel : DWORD;
  4743. NumCounters : DWORD;
  4744. DefaultCounter : DWORD;
  4745. NumInstances : DWORD;
  4746. CodePage : DWORD;
  4747. PerfTime : LARGE_INTEGER;
  4748. PerfFreq : LARGE_INTEGER;
  4749. end;
  4750. _PERF_OBJECT_TYPE = PERF_OBJECT_TYPE;
  4751. TPERFOBJECTTYPE = PERF_OBJECT_TYPE;
  4752. PPERFOBJECTTYPE = ^PERF_OBJECT_TYPE;
  4753. POLYTEXT = record
  4754. x : longint;
  4755. y : longint;
  4756. n : UINT;
  4757. lpstr : LPCTSTR;
  4758. uiFlags : UINT;
  4759. rcl : RECT;
  4760. pdx : ^longint;
  4761. end;
  4762. _POLYTEXT = POLYTEXT;
  4763. TPOLYTEXT = POLYTEXT;
  4764. PPOLYTEXT = ^POLYTEXT;
  4765. PORT_INFO_1 = record
  4766. pName : LPTSTR;
  4767. end;
  4768. _PORT_INFO_1 = PORT_INFO_1;
  4769. TPORTINFO1 = PORT_INFO_1;
  4770. PPORTINFO1 = ^PORT_INFO_1;
  4771. PORT_INFO_2 = record
  4772. pPortName : LPSTR;
  4773. pMonitorName : LPSTR;
  4774. pDescription : LPSTR;
  4775. fPortType : DWORD;
  4776. Reserved : DWORD;
  4777. end;
  4778. _PORT_INFO_2 = PORT_INFO_2;
  4779. TPORTINFO2 = PORT_INFO_2;
  4780. PPORTINFO2 = ^PORT_INFO_2;
  4781. PREVENT_MEDIA_REMOVAL = record
  4782. PreventMediaRemoval : BOOLEAN;
  4783. end;
  4784. _PREVENT_MEDIA_REMOVAL = PREVENT_MEDIA_REMOVAL;
  4785. TPREVENTMEDIAREMOVAL = PREVENT_MEDIA_REMOVAL;
  4786. PPREVENTMEDIAREMOVAL = ^PREVENT_MEDIA_REMOVAL;
  4787. {PRINTDLG = record conflicts with PrintDlg function }
  4788. TPRINTDLG = packed record
  4789. lStructSize : DWORD;
  4790. hwndOwner : HWND;
  4791. hDevMode : HANDLE;
  4792. hDevNames : HANDLE;
  4793. hDC : HDC;
  4794. Flags : DWORD;
  4795. nFromPage : WORD;
  4796. nToPage : WORD;
  4797. nMinPage : WORD;
  4798. nMaxPage : WORD;
  4799. nCopies : WORD;
  4800. hInstance : HINST;
  4801. lCustData : DWORD;
  4802. lpfnPrintHook : LPPRINTHOOKPROC;
  4803. lpfnSetupHook : LPSETUPHOOKPROC;
  4804. lpPrintTemplateName : LPCTSTR;
  4805. lpSetupTemplateName : LPCTSTR;
  4806. hPrintTemplate : HANDLE;
  4807. hSetupTemplate : HANDLE;
  4808. end;
  4809. LPPRINTDLG = ^TPRINTDLG;
  4810. PPRINTDLG = ^TPRINTDLG;
  4811. tagPD = TPRINTDLG;
  4812. TPD = TPRINTDLG;
  4813. PPD = ^TPRINTDLG;
  4814. PRINTER_DEFAULTS = record
  4815. pDatatype : LPTSTR;
  4816. pDevMode : LPDEVMODE;
  4817. DesiredAccess : ACCESS_MASK;
  4818. end;
  4819. _PRINTER_DEFAULTS = PRINTER_DEFAULTS;
  4820. TPRINTERDEFAULTS = PRINTER_DEFAULTS;
  4821. PPRINTERDEFAULTS = ^PRINTER_DEFAULTS;
  4822. PRINTER_INFO_1 = record
  4823. Flags : DWORD;
  4824. pDescription : LPTSTR;
  4825. pName : LPTSTR;
  4826. pComment : LPTSTR;
  4827. end;
  4828. LPPRINTER_INFO_1 = ^PRINTER_INFO_1;
  4829. PPRINTER_INFO_1 = ^PRINTER_INFO_1;
  4830. _PRINTER_INFO_1 = PRINTER_INFO_1;
  4831. TPRINTERINFO1 = PRINTER_INFO_1;
  4832. PPRINTERINFO1 = ^PRINTER_INFO_1;
  4833. PRINTER_INFO_2 = record
  4834. pServerName : LPTSTR;
  4835. pPrinterName : LPTSTR;
  4836. pShareName : LPTSTR;
  4837. pPortName : LPTSTR;
  4838. pDriverName : LPTSTR;
  4839. pComment : LPTSTR;
  4840. pLocation : LPTSTR;
  4841. pDevMode : LPDEVMODE;
  4842. pSepFile : LPTSTR;
  4843. pPrintProcessor : LPTSTR;
  4844. pDatatype : LPTSTR;
  4845. pParameters : LPTSTR;
  4846. pSecurityDescriptor : PSECURITY_DESCRIPTOR;
  4847. Attributes : DWORD;
  4848. Priority : DWORD;
  4849. DefaultPriority : DWORD;
  4850. StartTime : DWORD;
  4851. UntilTime : DWORD;
  4852. Status : DWORD;
  4853. cJobs : DWORD;
  4854. AveragePPM : DWORD;
  4855. end;
  4856. _PRINTER_INFO_2 = PRINTER_INFO_2;
  4857. TPRINTERINFO2 = PRINTER_INFO_2;
  4858. PPRINTERINFO2 = ^PRINTER_INFO_2;
  4859. PRINTER_INFO_3 = record
  4860. pSecurityDescriptor : PSECURITY_DESCRIPTOR;
  4861. end;
  4862. _PRINTER_INFO_3 = PRINTER_INFO_3;
  4863. TPRINTERINFO3 = PRINTER_INFO_3;
  4864. PPRINTERINFO3 = ^PRINTER_INFO_3;
  4865. PRINTER_INFO_4 = record
  4866. pPrinterName : LPTSTR;
  4867. pServerName : LPTSTR;
  4868. Attributes : DWORD;
  4869. end;
  4870. _PRINTER_INFO_4 = PRINTER_INFO_4;
  4871. TPRINTERINFO4 = PRINTER_INFO_4;
  4872. PPRINTERINFO4 = ^PRINTER_INFO_4;
  4873. PRINTER_INFO_5 = record
  4874. pPrinterName : LPTSTR;
  4875. pPortName : LPTSTR;
  4876. Attributes : DWORD;
  4877. DeviceNotSelectedTimeout : DWORD;
  4878. TransmissionRetryTimeout : DWORD;
  4879. end;
  4880. _PRINTER_INFO_5 = PRINTER_INFO_5;
  4881. TPRINTERINFO5 = PRINTER_INFO_5;
  4882. PPRINTERINFO5 = ^PRINTER_INFO_5;
  4883. PRINTER_NOTIFY_INFO_DATA = record
  4884. _Type : WORD;
  4885. Field : WORD;
  4886. Reserved : DWORD;
  4887. Id : DWORD;
  4888. NotifyData : record
  4889. case longint of
  4890. 0 : ( adwData : array[0..1] of DWORD );
  4891. 1 : ( Data : record
  4892. cbBuf : DWORD;
  4893. pBuf : LPVOID;
  4894. end );
  4895. end;
  4896. end;
  4897. _PRINTER_NOTIFY_INFO_DATA = PRINTER_NOTIFY_INFO_DATA;
  4898. TPRINTERNOTIFYINFODATA = PRINTER_NOTIFY_INFO_DATA;
  4899. PPRINTERNOTIFYINFODATA = ^PRINTER_NOTIFY_INFO_DATA;
  4900. PRINTER_NOTIFY_INFO = record
  4901. Version : DWORD;
  4902. Flags : DWORD;
  4903. Count : DWORD;
  4904. aData : array[0..0] of PRINTER_NOTIFY_INFO_DATA;
  4905. end;
  4906. _PRINTER_NOTIFY_INFO = PRINTER_NOTIFY_INFO;
  4907. TPRINTERNOTIFYINFO = PRINTER_NOTIFY_INFO;
  4908. PPRINTERNOTIFYINFO = ^PRINTER_NOTIFY_INFO;
  4909. PRINTER_NOTIFY_OPTIONS_TYPE = record
  4910. _Type : WORD;
  4911. Reserved0 : WORD;
  4912. Reserved1 : DWORD;
  4913. Reserved2 : DWORD;
  4914. Count : DWORD;
  4915. pFields : PWORD;
  4916. end;
  4917. PPRINTER_NOTIFY_OPTIONS_TYPE = ^PRINTER_NOTIFY_OPTIONS_TYPE;
  4918. _PRINTER_NOTIFY_OPTIONS_TYPE = PRINTER_NOTIFY_OPTIONS_TYPE;
  4919. TPRINTERNOTIFYOPTIONSTYPE = PRINTER_NOTIFY_OPTIONS_TYPE;
  4920. PPRINTERNOTIFYOPTIONSTYPE = ^PRINTER_NOTIFY_OPTIONS_TYPE;
  4921. PRINTER_NOTIFY_OPTIONS = record
  4922. Version : DWORD;
  4923. Flags : DWORD;
  4924. Count : DWORD;
  4925. pTypes : PPRINTER_NOTIFY_OPTIONS_TYPE;
  4926. end;
  4927. _PRINTER_NOTIFY_OPTIONS = PRINTER_NOTIFY_OPTIONS;
  4928. TPRINTERNOTIFYOPTIONS = PRINTER_NOTIFY_OPTIONS;
  4929. PPRINTERNOTIFYOPTIONS = ^PRINTER_NOTIFY_OPTIONS;
  4930. PRINTPROCESSOR_INFO_1 = record
  4931. pName : LPTSTR;
  4932. end;
  4933. _PRINTPROCESSOR_INFO_1 = PRINTPROCESSOR_INFO_1;
  4934. TPRINTPROCESSORINFO1 = PRINTPROCESSOR_INFO_1;
  4935. PPRINTPROCESSORINFO1 = ^PRINTPROCESSOR_INFO_1;
  4936. PRIVILEGE_SET = record
  4937. PrivilegeCount : DWORD;
  4938. Control : DWORD;
  4939. Privilege : array[0..(ANYSIZE_ARRAY)-1] of LUID_AND_ATTRIBUTES;
  4940. end;
  4941. LPPRIVILEGE_SET = ^PRIVILEGE_SET;
  4942. PPRIVILEGE_SET = ^PRIVILEGE_SET;
  4943. _PRIVILEGE_SET = PRIVILEGE_SET;
  4944. TPRIVILEGESET = PRIVILEGE_SET;
  4945. PPRIVILEGESET = ^PRIVILEGE_SET;
  4946. PROCESS_HEAPENTRY = record
  4947. lpData : PVOID;
  4948. cbData : DWORD;
  4949. cbOverhead : BYTE;
  4950. iRegionIndex : BYTE;
  4951. wFlags : WORD;
  4952. dwCommittedSize : DWORD;
  4953. dwUnCommittedSize : DWORD;
  4954. lpFirstBlock : LPVOID;
  4955. lpLastBlock : LPVOID;
  4956. hMem : HANDLE;
  4957. end;
  4958. LPPROCESS_HEAP_ENTRY = ^PROCESS_HEAPENTRY;
  4959. _PROCESS_HEAP_ENTRY = PROCESS_HEAPENTRY;
  4960. TPROCESSHEAPENTRY = PROCESS_HEAPENTRY;
  4961. PPROCESSHEAPENTRY = ^PROCESS_HEAPENTRY;
  4962. PROCESS_INFORMATION = record
  4963. hProcess : HANDLE;
  4964. hThread : HANDLE;
  4965. dwProcessId : DWORD;
  4966. dwThreadId : DWORD;
  4967. end;
  4968. LPPROCESS_INFORMATION = ^PROCESS_INFORMATION;
  4969. _PROCESS_INFORMATION = PROCESS_INFORMATION;
  4970. TPROCESSINFORMATION = PROCESS_INFORMATION;
  4971. PPROCESSINFORMATION = ^PROCESS_INFORMATION;
  4972. LPFNPSPCALLBACK = function (_para1:HWND; _para2:UINT; _para3:LPVOID):UINT;stdcall;
  4973. TFNPSPCALLBACK = LPFNPSPCALLBACK;
  4974. PROPSHEETPAGE = record
  4975. dwSize : DWORD;
  4976. dwFlags : DWORD;
  4977. hInstance : HINST;
  4978. case longint of
  4979. 0 : (pszTemplate : LPCTSTR);
  4980. 1 : (pResource : LPCDLGTEMPLATE;
  4981. case longint of
  4982. 0 : (hIcon : HICON);
  4983. 1 : (pszIcon : LPCTSTR;
  4984. pszTitle : LPCTSTR;
  4985. pfnDlgProc : DLGPROC;
  4986. lParam : LPARAM;
  4987. pfnCallback : LPFNPSPCALLBACK;
  4988. pcRefParent : ^UINT;
  4989. );
  4990. );
  4991. end;
  4992. LPPROPSHEETPAGE = ^PROPSHEETPAGE;
  4993. LPCPROPSHEETPAGE = ^PROPSHEETPAGE;
  4994. _PROPSHEETPAGE = PROPSHEETPAGE;
  4995. TPROPSHEETPAGE = PROPSHEETPAGE;
  4996. PPROPSHEETPAGE = ^PROPSHEETPAGE;
  4997. emptyrecord = record
  4998. end;
  4999. lpemptyrecord = ^emptyrecord;
  5000. HPROPSHEETPAGE = ^emptyrecord;
  5001. PROPSHEETHEADER = record
  5002. dwSize : DWORD;
  5003. dwFlags : DWORD;
  5004. hwndParent : HWND;
  5005. hInstance : HINST;
  5006. case longint of
  5007. 0 : (hIcon : HICON);
  5008. 1 : (pszIcon : LPCTSTR;
  5009. pszCaption : LPCTSTR;
  5010. nPages : UINT;
  5011. case longint of
  5012. 0 : (nStartPage : UINT);
  5013. 1 : (pStartPage : LPCTSTR;
  5014. case longint of
  5015. 0 : (ppsp : LPCPROPSHEETPAGE);
  5016. 1 : (phpage : ^HPROPSHEETPAGE;
  5017. pfnCallback : PFNPROPSHEETCALLBACK;
  5018. case longint of
  5019. 0 : (hbmWatermark : HBITMAP);
  5020. 1 : (pszbmWatermark : LPCTSTR;
  5021. hplWatermark : HPALETTE;
  5022. case longint of
  5023. 0 : (hbmHeader : HBITMAP);
  5024. 1 : (pszbmHeader: PAnsiChar);
  5025. );
  5026. );
  5027. );
  5028. );
  5029. end;
  5030. LPPROPSHEETHEADER = ^PROPSHEETHEADER;
  5031. LPCPROPSHEETHEADER = ^PROPSHEETHEADER;
  5032. _PROPSHEETHEADER = PROPSHEETHEADER;
  5033. TPROPSHEETHEADER = PROPSHEETHEADER;
  5034. PPROPSHEETHEADER = ^PROPSHEETHEADER;
  5035. { PropertySheet callbacks }
  5036. LPFNADDPROPSHEETPAGE = function (_para1:HPROPSHEETPAGE; _para2:LPARAM):WINBOOL;stdcall;
  5037. TFNADDPROPSHEETPAGE = LPFNADDPROPSHEETPAGE;
  5038. LPFNADDPROPSHEETPAGES = function (_para1:LPVOID; _para2:LPFNADDPROPSHEETPAGE; _para3:LPARAM):WINBOOL;stdcall;
  5039. TFNADDPROPSHEETPAGES = LPFNADDPROPSHEETPAGES;
  5040. PROTOCOL_INFO = record
  5041. dwServiceFlags : DWORD;
  5042. iAddressFamily : WINT;
  5043. iMaxSockAddr : WINT;
  5044. iMinSockAddr : WINT;
  5045. iSocketType : WINT;
  5046. iProtocol : WINT;
  5047. dwMessageSize : DWORD;
  5048. lpProtocol : LPTSTR;
  5049. end;
  5050. _PROTOCOL_INFO = PROTOCOL_INFO;
  5051. TPROTOCOLINFO = PROTOCOL_INFO;
  5052. PPROTOCOLINFO = ^PROTOCOL_INFO;
  5053. PROVIDOR_INFO_1 = record
  5054. pName : LPTSTR;
  5055. pEnvironment : LPTSTR;
  5056. pDLLName : LPTSTR;
  5057. end;
  5058. _PROVIDOR_INFO_1 = PROVIDOR_INFO_1;
  5059. TPROVIDORINFO1 = PROVIDOR_INFO_1;
  5060. PPROVIDORINFO1 = ^PROVIDOR_INFO_1;
  5061. PSHNOTIFY = record
  5062. hdr : NMHDR;
  5063. lParam : LPARAM;
  5064. end;
  5065. LPPSHNOTIFY = ^PSHNOTIFY;
  5066. _PSHNOTIFY = PSHNOTIFY;
  5067. TPSHNOTIFY = PSHNOTIFY;
  5068. PPSHNOTIFY = ^PSHNOTIFY;
  5069. PUNCTUATION = record
  5070. iSize : UINT;
  5071. szPunctuation : LPSTR;
  5072. end;
  5073. _punctuation = PUNCTUATION;
  5074. Tpunctuation = PUNCTUATION;
  5075. Ppunctuation = ^PUNCTUATION;
  5076. QUERY_SERVICE_CONFIG = record
  5077. dwServiceType : DWORD;
  5078. dwStartType : DWORD;
  5079. dwErrorControl : DWORD;
  5080. lpBinaryPathName : LPTSTR;
  5081. lpLoadOrderGroup : LPTSTR;
  5082. dwTagId : DWORD;
  5083. lpDependencies : LPTSTR;
  5084. lpServiceStartName : LPTSTR;
  5085. lpDisplayName : LPTSTR;
  5086. end;
  5087. LPQUERY_SERVICE_CONFIG = ^QUERY_SERVICE_CONFIG;
  5088. _QUERY_SERVICE_CONFIG = QUERY_SERVICE_CONFIG;
  5089. TQUERYSERVICECONFIG = QUERY_SERVICE_CONFIG;
  5090. PQUERYSERVICECONFIG = ^QUERY_SERVICE_CONFIG;
  5091. QUERY_SERVICE_LOCK_STATUS = record
  5092. fIsLocked : DWORD;
  5093. lpLockOwner : LPTSTR;
  5094. dwLockDuration : DWORD;
  5095. end;
  5096. LPQUERY_SERVICE_LOCK_STATUS = ^QUERY_SERVICE_LOCK_STATUS;
  5097. _QUERY_SERVICE_LOCK_STATUS = QUERY_SERVICE_LOCK_STATUS;
  5098. TQUERYSERVICELOCKSTATUS = QUERY_SERVICE_LOCK_STATUS;
  5099. PQUERYSERVICELOCKSTATUS = ^QUERY_SERVICE_LOCK_STATUS;
  5100. RASAMB = record
  5101. dwSize : DWORD;
  5102. dwError : DWORD;
  5103. szNetBiosError : array[0..(NETBIOS_NAME_LEN + 1)-1] of TCHAR;
  5104. bLana : BYTE;
  5105. end;
  5106. _RASAMB = RASAMB;
  5107. TRASAMB = RASAMB;
  5108. PRASAMB = ^RASAMB;
  5109. RASCONN = record
  5110. dwSize : DWORD;
  5111. hrasconn : HRASCONN;
  5112. szEntryName : array[0..(RAS_MaxEntryName + 1)-1] of TCHAR;
  5113. szDeviceType : array[0..(RAS_MaxDeviceType + 1)-1] of CHAR;
  5114. szDeviceName : array[0..(RAS_MaxDeviceName + 1)-1] of CHAR;
  5115. end;
  5116. _RASCONN = RASCONN;
  5117. TRASCONN = RASCONN;
  5118. PRASCONN = ^RASCONN;
  5119. RASCONNSTATUS = record
  5120. dwSize : DWORD;
  5121. rasconnstate : RASCONNSTATE;
  5122. dwError : DWORD;
  5123. szDeviceType : array[0..(RAS_MaxDeviceType + 1)-1] of TCHAR;
  5124. szDeviceName : array[0..(RAS_MaxDeviceName + 1)-1] of TCHAR;
  5125. end;
  5126. _RASCONNSTATUS = RASCONNSTATUS;
  5127. TRASCONNSTATUS = RASCONNSTATUS;
  5128. PRASCONNSTATUS = ^RASCONNSTATUS;
  5129. RASDIALEXTENSIONS = record
  5130. dwSize : DWORD;
  5131. dwfOptions : DWORD;
  5132. hwndParent : HWND;
  5133. reserved : DWORD;
  5134. end;
  5135. _RASDIALEXTENSIONS = RASDIALEXTENSIONS;
  5136. TRASDIALEXTENSIONS = RASDIALEXTENSIONS;
  5137. PRASDIALEXTENSIONS = ^RASDIALEXTENSIONS;
  5138. RASDIALPARAMS = record
  5139. dwSize : DWORD;
  5140. szEntryName : array[0..(RAS_MaxEntryName + 1)-1] of TCHAR;
  5141. szPhoneNumber : array[0..(RAS_MaxPhoneNumber + 1)-1] of TCHAR;
  5142. szCallbackNumber : array[0..(RAS_MaxCallbackNumber + 1)-1] of TCHAR;
  5143. szUserName : array[0..(UNLEN + 1)-1] of TCHAR;
  5144. szPassword : array[0..(PWLEN + 1)-1] of TCHAR;
  5145. szDomain : array[0..(DNLEN + 1)-1] of TCHAR;
  5146. end;
  5147. _RASDIALPARAMS = RASDIALPARAMS;
  5148. TRASDIALPARAMS = RASDIALPARAMS;
  5149. PRASDIALPARAMS = ^RASDIALPARAMS;
  5150. RASENTRYNAME = record
  5151. dwSize : DWORD;
  5152. szEntryName : array[0..(RAS_MaxEntryName + 1)-1] of TCHAR;
  5153. end;
  5154. _RASENTRYNAME = RASENTRYNAME;
  5155. TRASENTRYNAME = RASENTRYNAME;
  5156. PRASENTRYNAME = ^RASENTRYNAME;
  5157. RASPPPIP = record
  5158. dwSize : DWORD;
  5159. dwError : DWORD;
  5160. szIpAddress : array[0..(RAS_MaxIpAddress + 1)-1] of TCHAR;
  5161. end;
  5162. _RASPPPIP = RASPPPIP;
  5163. TRASPPPIP = RASPPPIP;
  5164. PRASPPPIP = ^RASPPPIP;
  5165. RASPPPIPX = record
  5166. dwSize : DWORD;
  5167. dwError : DWORD;
  5168. szIpxAddress : array[0..(RAS_MaxIpxAddress + 1)-1] of TCHAR;
  5169. end;
  5170. _RASPPPIPX = RASPPPIPX;
  5171. TRASPPPIPX = RASPPPIPX;
  5172. PRASPPPIPX = ^RASPPPIPX;
  5173. RASPPPNBF = record
  5174. dwSize : DWORD;
  5175. dwError : DWORD;
  5176. dwNetBiosError : DWORD;
  5177. szNetBiosError : array[0..(NETBIOS_NAME_LEN + 1)-1] of TCHAR;
  5178. szWorkstationName : array[0..(NETBIOS_NAME_LEN + 1)-1] of TCHAR;
  5179. bLana : BYTE;
  5180. end;
  5181. _RASPPPNBF = RASPPPNBF;
  5182. TRASPPPNBF = RASPPPNBF;
  5183. PRASPPPNBF = ^RASPPPNBF;
  5184. RASTERIZER_STATUS = record
  5185. nSize : short;
  5186. wFlags : short;
  5187. nLanguageID : short;
  5188. end;
  5189. LPRASTERIZER_STATUS = ^RASTERIZER_STATUS;
  5190. _RASTERIZER_STATUS = RASTERIZER_STATUS;
  5191. TRASTERIZERSTATUS = RASTERIZER_STATUS;
  5192. PRASTERIZERSTATUS = ^RASTERIZER_STATUS;
  5193. REASSIGN_BLOCKS = record
  5194. Reserved : WORD;
  5195. Count : WORD;
  5196. BlockNumber : array[0..0] of DWORD;
  5197. end;
  5198. _REASSIGN_BLOCKS = REASSIGN_BLOCKS;
  5199. TREASSIGNBLOCKS = REASSIGN_BLOCKS;
  5200. PREASSIGNBLOCKS = ^REASSIGN_BLOCKS;
  5201. REMOTE_NAME_INFO = record
  5202. lpUniversalName : LPTSTR;
  5203. lpConnectionName : LPTSTR;
  5204. lpRemainingPath : LPTSTR;
  5205. end;
  5206. _REMOTE_NAME_INFO = REMOTE_NAME_INFO;
  5207. TREMOTENAMEINFO = REMOTE_NAME_INFO;
  5208. PREMOTENAMEINFO = ^REMOTE_NAME_INFO;
  5209. (*
  5210. TODO: OLE
  5211. typedef struct _reobject {
  5212. DWORD cbStruct;
  5213. LONG cp;
  5214. CLSID clsid;
  5215. LPOLEOBJECT poleobj;
  5216. LPSTORAGE pstg;
  5217. LPOLECLIENTSITE polesite;
  5218. SIZEL sizel;
  5219. DWORD dvaspect;
  5220. DWORD dwFlags;
  5221. DWORD dwUser;
  5222. } REOBJECT;
  5223. *)
  5224. REPASTESPECIAL = record
  5225. dwAspect : DWORD;
  5226. dwParam : DWORD;
  5227. end;
  5228. _repastespecial = REPASTESPECIAL;
  5229. Trepastespecial = REPASTESPECIAL;
  5230. Prepastespecial = ^REPASTESPECIAL;
  5231. REQRESIZE = record
  5232. nmhdr : NMHDR;
  5233. rc : RECT;
  5234. end;
  5235. _reqresize = REQRESIZE;
  5236. Treqresize = REQRESIZE;
  5237. Preqresize = ^REQRESIZE;
  5238. RGNDATAHEADER = record
  5239. dwSize : DWORD;
  5240. iType : DWORD;
  5241. nCount : DWORD;
  5242. nRgnSize : DWORD;
  5243. rcBound : RECT;
  5244. end;
  5245. _RGNDATAHEADER = RGNDATAHEADER;
  5246. TRGNDATAHEADER = RGNDATAHEADER;
  5247. PRGNDATAHEADER = ^RGNDATAHEADER;
  5248. RGNDATA = record
  5249. rdh : RGNDATAHEADER;
  5250. Buffer : array[0..0] of char;
  5251. end;
  5252. LPRGNDATA = ^RGNDATA;
  5253. _RGNDATA = RGNDATA;
  5254. TRGNDATA = RGNDATA;
  5255. PRGNDATA = ^RGNDATA;
  5256. SCROLLINFO = record
  5257. cbSize : UINT;
  5258. fMask : UINT;
  5259. nMin : longint;
  5260. nMax : longint;
  5261. nPage : UINT;
  5262. nPos : longint;
  5263. nTrackPos : longint;
  5264. end;
  5265. LPSCROLLINFO = ^SCROLLINFO;
  5266. LPCSCROLLINFO = ^SCROLLINFO;
  5267. tagSCROLLINFO = SCROLLINFO;
  5268. TSCROLLINFO = SCROLLINFO;
  5269. PSCROLLINFO = ^SCROLLINFO;
  5270. SECURITY_ATTRIBUTES = record
  5271. nLength : DWORD;
  5272. lpSecurityDescriptor : LPVOID;
  5273. bInheritHandle : WINBOOL;
  5274. end;
  5275. LPSECURITY_ATTRIBUTES = ^SECURITY_ATTRIBUTES;
  5276. _SECURITY_ATTRIBUTES = SECURITY_ATTRIBUTES;
  5277. TSECURITYATTRIBUTES = SECURITY_ATTRIBUTES;
  5278. PSECURITYATTRIBUTES = ^SECURITY_ATTRIBUTES;
  5279. SECURITY_INFORMATION = DWORD;
  5280. PSECURITY_INFORMATION = ^SECURITY_INFORMATION;
  5281. TSECURITYINFORMATION = SECURITY_INFORMATION;
  5282. PSECURITYINFORMATION = ^SECURITY_INFORMATION;
  5283. SELCHANGE = record
  5284. nmhdr : NMHDR;
  5285. chrg : CHARRANGE;
  5286. seltyp : WORD;
  5287. end;
  5288. _selchange = SELCHANGE;
  5289. Tselchange = SELCHANGE;
  5290. Pselchange = ^SELCHANGE;
  5291. SERIALKEYS = record
  5292. cbSize : DWORD;
  5293. dwFlags : DWORD;
  5294. lpszActivePort : LPSTR;
  5295. lpszPort : LPSTR;
  5296. iBaudRate : DWORD;
  5297. iPortState : DWORD;
  5298. end;
  5299. LPSERIALKEYS = ^SERIALKEYS;
  5300. tagSERIALKEYS = SERIALKEYS;
  5301. TSERIALKEYS = SERIALKEYS;
  5302. PSERIALKEYS = ^SERIALKEYS;
  5303. SERVICE_TABLE_ENTRY = record
  5304. lpServiceName : LPTSTR;
  5305. lpServiceProc : LPSERVICE_MAIN_FUNCTION;
  5306. end;
  5307. LPSERVICE_TABLE_ENTRY = ^SERVICE_TABLE_ENTRY;
  5308. _SERVICE_TABLE_ENTRY = SERVICE_TABLE_ENTRY;
  5309. TSERVICETABLEENTRY = SERVICE_TABLE_ENTRY;
  5310. PSERVICETABLEENTRY = ^SERVICE_TABLE_ENTRY;
  5311. SERVICE_TYPE_VALUE_ABS = record
  5312. dwNameSpace : DWORD;
  5313. dwValueType : DWORD;
  5314. dwValueSize : DWORD;
  5315. lpValueName : LPTSTR;
  5316. lpValue : PVOID;
  5317. end;
  5318. _SERVICE_TYPE_VALUE_ABS = SERVICE_TYPE_VALUE_ABS;
  5319. TSERVICETYPEVALUEABS = SERVICE_TYPE_VALUE_ABS;
  5320. PSERVICETYPEVALUEABS = ^SERVICE_TYPE_VALUE_ABS;
  5321. SERVICE_TYPE_INFO_ABS = record
  5322. lpTypeName : LPTSTR;
  5323. dwValueCount : DWORD;
  5324. Values : array[0..0] of SERVICE_TYPE_VALUE_ABS;
  5325. end;
  5326. _SERVICE_TYPE_INFO_ABS = SERVICE_TYPE_INFO_ABS;
  5327. TSERVICETYPEINFOABS = SERVICE_TYPE_INFO_ABS;
  5328. PSERVICETYPEINFOABS = ^SERVICE_TYPE_INFO_ABS;
  5329. SESSION_BUFFER = record
  5330. lsn : UCHAR;
  5331. state : UCHAR;
  5332. local_name : array[0..(NCBNAMSZ)-1] of UCHAR;
  5333. remote_name : array[0..(NCBNAMSZ)-1] of UCHAR;
  5334. rcvs_outstanding : UCHAR;
  5335. sends_outstanding : UCHAR;
  5336. end;
  5337. _SESSION_BUFFER = SESSION_BUFFER;
  5338. TSESSIONBUFFER = SESSION_BUFFER;
  5339. PSESSIONBUFFER = ^SESSION_BUFFER;
  5340. SESSION_HEADER = record
  5341. sess_name : UCHAR;
  5342. num_sess : UCHAR;
  5343. rcv_dg_outstanding : UCHAR;
  5344. rcv_any_outstanding : UCHAR;
  5345. end;
  5346. _SESSION_HEADER = SESSION_HEADER;
  5347. TSESSIONHEADER = SESSION_HEADER;
  5348. PSESSIONHEADER = ^SESSION_HEADER;
  5349. SHCONTF = (SHCONTF_FOLDERS := 32,SHCONTF_NONFOLDERS := 64,
  5350. SHCONTF_INCLUDEHIDDEN := 128);
  5351. tagSHCONTF = SHCONTF;
  5352. TSHCONTF = SHCONTF;
  5353. SHFILEINFO = record
  5354. hIcon : HICON;
  5355. iIcon : longint;
  5356. dwAttributes : DWORD;
  5357. szDisplayName : array[0..(MAX_PATH)-1] of char;
  5358. szTypeName : array[0..79] of char;
  5359. end;
  5360. _SHFILEINFO = SHFILEINFO;
  5361. TSHFILEINFO = SHFILEINFO;
  5362. PSHFILEINFO = ^SHFILEINFO;
  5363. FILEOP_FLAGS = WORD;
  5364. TFILEOPFLAGS = FILEOP_FLAGS;
  5365. PFILEOPFLAGS = ^FILEOP_FLAGS;
  5366. SHFILEOPSTRUCT = record
  5367. hwnd : HWND;
  5368. wFunc : UINT;
  5369. pFrom : LPCSTR;
  5370. pTo : LPCSTR;
  5371. fFlags : FILEOP_FLAGS;
  5372. fAnyOperationsAborted : WINBOOL;
  5373. hNameMappings : LPVOID;
  5374. lpszProgressTitle : LPCSTR;
  5375. end;
  5376. LPSHFILEOPSTRUCT = ^SHFILEOPSTRUCT;
  5377. _SHFILEOPSTRUCT = SHFILEOPSTRUCT;
  5378. TSHFILEOPSTRUCT = SHFILEOPSTRUCT;
  5379. PSHFILEOPSTRUCT = ^SHFILEOPSTRUCT;
  5380. SHGNO = (SHGDN_NORMAL := 0,SHGDN_INFOLDER := 1,
  5381. SHGDN_FORPARSING := $8000);
  5382. tagSHGDN = SHGNO;
  5383. TSHGDN = SHGNO;
  5384. SHNAMEMAPPING = record
  5385. pszOldPath : LPSTR;
  5386. pszNewPath : LPSTR;
  5387. cchOldPath : longint;
  5388. cchNewPath : longint;
  5389. end;
  5390. LPSHNAMEMAPPING = ^SHNAMEMAPPING;
  5391. _SHNAMEMAPPING = SHNAMEMAPPING;
  5392. TSHNAMEMAPPING = SHNAMEMAPPING;
  5393. PSHNAMEMAPPING = ^SHNAMEMAPPING;
  5394. SID_AND_ATTRIBUTES = record
  5395. Sid : PSID;
  5396. Attributes : DWORD;
  5397. end;
  5398. _SID_AND_ATTRIBUTES = SID_AND_ATTRIBUTES;
  5399. TSIDANDATTRIBUTES = SID_AND_ATTRIBUTES;
  5400. PSIDANDATTRIBUTES = ^SID_AND_ATTRIBUTES;
  5401. SID_AND_ATTRIBUTES_ARRAY = array[0..(ANYSIZE_ARRAY)-1] of SID_AND_ATTRIBUTES;
  5402. PSID_AND_ATTRIBUTES_ARRAY = ^SID_AND_ATTRIBUTES_ARRAY;
  5403. TSIDANDATTRIBUTESARRAY = SID_AND_ATTRIBUTES_ARRAY;
  5404. PSIDANDATTRIBUTESARRAY = ^SID_AND_ATTRIBUTES_ARRAY;
  5405. SINGLE_LIST_ENTRY = record
  5406. Next : ^_SINGLE_LIST_ENTRY;
  5407. end;
  5408. _SINGLE_LIST_ENTRY = SINGLE_LIST_ENTRY;
  5409. TSINGLELISTENTRY = SINGLE_LIST_ENTRY;
  5410. PSINGLELISTENTRY = ^SINGLE_LIST_ENTRY;
  5411. SOUNDSENTRY = record
  5412. cbSize : UINT;
  5413. dwFlags : DWORD;
  5414. iFSTextEffect : DWORD;
  5415. iFSTextEffectMSec : DWORD;
  5416. iFSTextEffectColorBits : DWORD;
  5417. iFSGrafEffect : DWORD;
  5418. iFSGrafEffectMSec : DWORD;
  5419. iFSGrafEffectColor : DWORD;
  5420. iWindowsEffect : DWORD;
  5421. iWindowsEffectMSec : DWORD;
  5422. lpszWindowsEffectDLL : LPTSTR;
  5423. iWindowsEffectOrdinal : DWORD;
  5424. end;
  5425. LPSOUNDSENTRY = ^SOUNDSENTRY;
  5426. tagSOUNDSENTRY = SOUNDSENTRY;
  5427. TSOUNDSENTRY = SOUNDSENTRY;
  5428. PSOUNDSENTRY = ^SOUNDSENTRY;
  5429. STARTUPINFO = record
  5430. cb : DWORD;
  5431. lpReserved : LPTSTR;
  5432. lpDesktop : LPTSTR;
  5433. lpTitle : LPTSTR;
  5434. dwX : DWORD;
  5435. dwY : DWORD;
  5436. dwXSize : DWORD;
  5437. dwYSize : DWORD;
  5438. dwXCountChars : DWORD;
  5439. dwYCountChars : DWORD;
  5440. dwFillAttribute : DWORD;
  5441. dwFlags : DWORD;
  5442. wShowWindow : WORD;
  5443. cbReserved2 : WORD;
  5444. lpReserved2 : LPBYTE;
  5445. hStdInput : HANDLE;
  5446. hStdOutput : HANDLE;
  5447. hStdError : HANDLE;
  5448. end;
  5449. LPSTARTUPINFO = ^STARTUPINFO;
  5450. _STARTUPINFO = STARTUPINFO;
  5451. TSTARTUPINFO = STARTUPINFO;
  5452. PSTARTUPINFO = ^STARTUPINFO;
  5453. STICKYKEYS = record
  5454. cbSize : DWORD;
  5455. dwFlags : DWORD;
  5456. end;
  5457. LPSTICKYKEYS = ^STICKYKEYS;
  5458. tagSTICKYKEYS = STICKYKEYS;
  5459. TSTICKYKEYS = STICKYKEYS;
  5460. PSTICKYKEYS = ^STICKYKEYS;
  5461. STRRET = record
  5462. utype : UINT;
  5463. case longint of
  5464. 0: ( polestr:LPWSTR);
  5465. 1: ( uOffset : UINT);
  5466. 2: ( cStr : array[0..(MAX_PATH)-1] of char );
  5467. end;
  5468. LPSTRRET = ^STRRET;
  5469. _STRRET = STRRET;
  5470. TSTRRET = STRRET;
  5471. PSTRRET = ^STRRET;
  5472. STYLEBUF = record
  5473. dwStyle : DWORD;
  5474. szDescription : array[0..31] of CHAR;
  5475. end;
  5476. LPSTYLEBUF = ^STYLEBUF;
  5477. _tagSTYLEBUF = STYLEBUF;
  5478. TSTYLEBUF = STYLEBUF;
  5479. PSTYLEBUF = ^STYLEBUF;
  5480. STYLESTRUCT = record
  5481. styleOld : DWORD;
  5482. styleNew : DWORD;
  5483. end;
  5484. LPSTYLESTRUCT = ^STYLESTRUCT;
  5485. tagSTYLESTRUCT = STYLESTRUCT;
  5486. TSTYLESTRUCT = STYLESTRUCT;
  5487. PSTYLESTRUCT = ^STYLESTRUCT;
  5488. SYSTEM_AUDIT_ACE = record
  5489. Header : ACE_HEADER;
  5490. Mask : ACCESS_MASK;
  5491. SidStart : DWORD;
  5492. end;
  5493. _SYSTEM_AUDIT_ACE = SYSTEM_AUDIT_ACE;
  5494. TSYSTEMAUDITACE = SYSTEM_AUDIT_ACE;
  5495. PSYSTEMAUDITACE = ^SYSTEM_AUDIT_ACE;
  5496. SYSTEM_INFO = record
  5497. case longint of
  5498. 0 : ( dwOemId : DWORD;
  5499. dwPageSize : DWORD;
  5500. lpMinimumApplicationAddress : LPVOID;
  5501. lpMaximumApplicationAddress : LPVOID;
  5502. dwActiveProcessorMask : DWORD;
  5503. dwNumberOfProcessors : DWORD;
  5504. dwProcessorType : DWORD;
  5505. dwAllocationGranularity : DWORD;
  5506. wProcessorLevel : WORD;
  5507. wProcessorRevision : WORD;
  5508. );
  5509. 1 : (
  5510. wProcessorArchitecture : WORD;
  5511. );
  5512. end;
  5513. LPSYSTEM_INFO = ^SYSTEM_INFO;
  5514. _SYSTEM_INFO = SYSTEM_INFO;
  5515. TSYSTEMINFO = SYSTEM_INFO;
  5516. PSYSTEMINFO = ^SYSTEM_INFO;
  5517. SYSTEM_POWER_STATUS = record
  5518. ACLineStatus : BYTE;
  5519. BatteryFlag : BYTE;
  5520. BatteryLifePercent : BYTE;
  5521. Reserved1 : BYTE;
  5522. BatteryLifeTime : DWORD;
  5523. BatteryFullLifeTime : DWORD;
  5524. end;
  5525. _SYSTEM_POWER_STATUS = SYSTEM_POWER_STATUS;
  5526. TSYSTEMPOWERSTATUS = SYSTEM_POWER_STATUS;
  5527. PSYSTEMPOWERSTATUS = ^SYSTEM_POWER_STATUS;
  5528. LPSYSTEM_POWER_STATUS = ^emptyrecord;
  5529. TAPE_ERASE = record
  5530. _Type : ULONG;
  5531. end;
  5532. _TAPE_ERASE = TAPE_ERASE;
  5533. TTAPEERASE = TAPE_ERASE;
  5534. PTAPEERASE = ^TAPE_ERASE;
  5535. TAPE_GET_DRIVE_PARAMETERS = record
  5536. ECC : BOOLEAN;
  5537. Compression : BOOLEAN;
  5538. DataPadding : BOOLEAN;
  5539. ReportSetmarks : BOOLEAN;
  5540. DefaultBlockSize : ULONG;
  5541. MaximumBlockSize : ULONG;
  5542. MinimumBlockSize : ULONG;
  5543. MaximumPartitionCount : ULONG;
  5544. FeaturesLow : ULONG;
  5545. FeaturesHigh : ULONG;
  5546. EOTWarningZoneSize : ULONG;
  5547. end;
  5548. _TAPE_GET_DRIVE_PARAMETERS = TAPE_GET_DRIVE_PARAMETERS;
  5549. TTAPEGETDRIVEPARAMETERS = TAPE_GET_DRIVE_PARAMETERS;
  5550. PTAPEGETDRIVEPARAMETERS = ^TAPE_GET_DRIVE_PARAMETERS;
  5551. TAPE_GET_MEDIA_PARAMETERS = record
  5552. Capacity : LARGE_INTEGER;
  5553. Remaining : LARGE_INTEGER;
  5554. BlockSize : DWORD;
  5555. PartitionCount : DWORD;
  5556. WriteProtected : BOOLEAN;
  5557. end;
  5558. _TAPE_GET_MEDIA_PARAMETERS = TAPE_GET_MEDIA_PARAMETERS;
  5559. TTAPEGETMEDIAPARAMETERS = TAPE_GET_MEDIA_PARAMETERS;
  5560. PTAPEGETMEDIAPARAMETERS = ^TAPE_GET_MEDIA_PARAMETERS;
  5561. TAPE_GET_POSITION = record
  5562. _Type : ULONG;
  5563. Partition : ULONG;
  5564. OffsetLow : ULONG;
  5565. OffsetHigh : ULONG;
  5566. end;
  5567. _TAPE_GET_POSITION = TAPE_GET_POSITION;
  5568. TTAPEGETPOSITION = TAPE_GET_POSITION;
  5569. PTAPEGETPOSITION = ^TAPE_GET_POSITION;
  5570. TAPE_PREPARE = record
  5571. Operation : ULONG;
  5572. end;
  5573. _TAPE_PREPARE = TAPE_PREPARE;
  5574. TTAPEPREPARE = TAPE_PREPARE;
  5575. PTAPEPREPARE = ^TAPE_PREPARE;
  5576. TAPE_SET_DRIVE_PARAMETERS = record
  5577. ECC : BOOLEAN;
  5578. Compression : BOOLEAN;
  5579. DataPadding : BOOLEAN;
  5580. ReportSetmarks : BOOLEAN;
  5581. EOTWarningZoneSize : ULONG;
  5582. end;
  5583. _TAPE_SET_DRIVE_PARAMETERS = TAPE_SET_DRIVE_PARAMETERS;
  5584. TTAPESETDRIVEPARAMETERS = TAPE_SET_DRIVE_PARAMETERS;
  5585. PTAPESETDRIVEPARAMETERS = ^TAPE_SET_DRIVE_PARAMETERS;
  5586. TAPE_SET_MEDIA_PARAMETERS = record
  5587. BlockSize : ULONG;
  5588. end;
  5589. _TAPE_SET_MEDIA_PARAMETERS = TAPE_SET_MEDIA_PARAMETERS;
  5590. TTAPESETMEDIAPARAMETERS = TAPE_SET_MEDIA_PARAMETERS;
  5591. PTAPESETMEDIAPARAMETERS = ^TAPE_SET_MEDIA_PARAMETERS;
  5592. TAPE_SET_POSITION = record
  5593. Method : ULONG;
  5594. Partition : ULONG;
  5595. OffsetLow : ULONG;
  5596. OffsetHigh : ULONG;
  5597. end;
  5598. _TAPE_SET_POSITION = TAPE_SET_POSITION;
  5599. TTAPESETPOSITION = TAPE_SET_POSITION;
  5600. PTAPESETPOSITION = ^TAPE_SET_POSITION;
  5601. TAPE_WRITE_MARKS = record
  5602. _Type : ULONG;
  5603. Count : ULONG;
  5604. end;
  5605. _TAPE_WRITE_MARKS = TAPE_WRITE_MARKS;
  5606. TTAPEWRITEMARKS = TAPE_WRITE_MARKS;
  5607. PTAPEWRITEMARKS = ^TAPE_WRITE_MARKS;
  5608. TBADDBITMAP = record
  5609. hInst : HINST;
  5610. nID : UINT;
  5611. end;
  5612. LPTBADDBITMAP = ^TBADDBITMAP;
  5613. TTBADDBITMAP = TBADDBITMAP;
  5614. PTBADDBITMAP = ^TBADDBITMAP;
  5615. TBBUTTON = record
  5616. iBitmap : longint;
  5617. idCommand : longint;
  5618. fsState : BYTE;
  5619. fsStyle : BYTE;
  5620. dwData : DWORD;
  5621. iString : longint;
  5622. end;
  5623. LPTBBUTTON = ^TBBUTTON;
  5624. LPCTBBUTTON = ^TBBUTTON;
  5625. _TBBUTTON = TBBUTTON;
  5626. TTBBUTTON = TBBUTTON;
  5627. PTBBUTTON = ^TBBUTTON;
  5628. TBNOTIFY = record
  5629. hdr : NMHDR;
  5630. iItem : longint;
  5631. tbButton : TBBUTTON;
  5632. cchText : longint;
  5633. pszText : LPTSTR;
  5634. end;
  5635. LPTBNOTIFY = ^TBNOTIFY;
  5636. TTBNOTIFY = TBNOTIFY;
  5637. PTBNOTIFY = ^TBNOTIFY;
  5638. TBSAVEPARAMS = record
  5639. hkr : HKEY;
  5640. pszSubKey : LPCTSTR;
  5641. pszValueName : LPCTSTR;
  5642. end;
  5643. TTBSAVEPARAMS = TBSAVEPARAMS;
  5644. PTBSAVEPARAMS = ^TBSAVEPARAMS;
  5645. TC_HITTESTINFO = record
  5646. pt : POINT;
  5647. flags : UINT;
  5648. end;
  5649. _TC_HITTESTINFO = TC_HITTESTINFO;
  5650. TTCHITTESTINFO = TC_HITTESTINFO;
  5651. PTCHITTESTINFO = ^TC_HITTESTINFO;
  5652. TC_ITEM = record
  5653. mask : UINT;
  5654. lpReserved1 : UINT;
  5655. lpReserved2 : UINT;
  5656. pszText : LPTSTR;
  5657. cchTextMax : longint;
  5658. iImage : longint;
  5659. lParam : LPARAM;
  5660. end;
  5661. _TC_ITEM = TC_ITEM;
  5662. TTCITEM = TC_ITEM;
  5663. PTCITEM = ^TC_ITEM;
  5664. TC_ITEMHEADER = record
  5665. mask : UINT;
  5666. lpReserved1 : UINT;
  5667. lpReserved2 : UINT;
  5668. pszText : LPTSTR;
  5669. cchTextMax : longint;
  5670. iImage : longint;
  5671. end;
  5672. _TC_ITEMHEADER = TC_ITEMHEADER;
  5673. TTCITEMHEADER = TC_ITEMHEADER;
  5674. PTCITEMHEADER = ^TC_ITEMHEADER;
  5675. TC_KEYDOWN = record
  5676. hdr : NMHDR;
  5677. wVKey : WORD;
  5678. flags : UINT;
  5679. end;
  5680. _TC_KEYDOWN = TC_KEYDOWN;
  5681. TTCKEYDOWN = TC_KEYDOWN;
  5682. PTCKEYDOWN = ^TC_KEYDOWN;
  5683. TEXTRANGE = record
  5684. chrg : CHARRANGE;
  5685. lpstrText : LPSTR;
  5686. end;
  5687. _textrange = TEXTRANGE;
  5688. Ttextrange = TEXTRANGE;
  5689. Ptextrange = ^TEXTRANGE;
  5690. TIME_ZONE_INFORMATION = record
  5691. Bias : LONG;
  5692. StandardName : array[0..31] of WCHAR;
  5693. StandardDate : SYSTEMTIME;
  5694. StandardBias : LONG;
  5695. DaylightName : array[0..31] of WCHAR;
  5696. DaylightDate : SYSTEMTIME;
  5697. DaylightBias : LONG;
  5698. end;
  5699. LPTIME_ZONE_INFORMATION = ^TIME_ZONE_INFORMATION;
  5700. _TIME_ZONE_INFORMATION = TIME_ZONE_INFORMATION;
  5701. TTIMEZONEINFORMATION = TIME_ZONE_INFORMATION;
  5702. PTIMEZONEINFORMATION = ^TIME_ZONE_INFORMATION;
  5703. TOGGLEKEYS = record
  5704. cbSize : DWORD;
  5705. dwFlags : DWORD;
  5706. end;
  5707. tagTOGGLEKEYS = TOGGLEKEYS;
  5708. TTOGGLEKEYS = TOGGLEKEYS;
  5709. PTOGGLEKEYS = ^TOGGLEKEYS;
  5710. TOKEN_SOURCE = record
  5711. SourceName : array[0..7] of CHAR;
  5712. SourceIdentifier : LUID;
  5713. end;
  5714. _TOKEN_SOURCE = TOKEN_SOURCE;
  5715. TTOKENSOURCE = TOKEN_SOURCE;
  5716. PTOKENSOURCE = ^TOKEN_SOURCE;
  5717. TOKEN_CONTROL = record
  5718. TokenId : LUID;
  5719. AuthenticationId : LUID;
  5720. ModifiedId : LUID;
  5721. TokenSource : TOKEN_SOURCE;
  5722. end;
  5723. _TOKEN_CONTROL = TOKEN_CONTROL;
  5724. TTOKENCONTROL = TOKEN_CONTROL;
  5725. PTOKENCONTROL = ^TOKEN_CONTROL;
  5726. TOKEN_DEFAULT_DACL = record
  5727. DefaultDacl : PACL;
  5728. end;
  5729. _TOKEN_DEFAULT_DACL = TOKEN_DEFAULT_DACL;
  5730. TTOKENDEFAULTDACL = TOKEN_DEFAULT_DACL;
  5731. PTOKENDEFAULTDACL = ^TOKEN_DEFAULT_DACL;
  5732. TOKEN_GROUPS = record
  5733. GroupCount : DWORD;
  5734. Groups : array[0..(ANYSIZE_ARRAY)-1] of SID_AND_ATTRIBUTES;
  5735. end;
  5736. PTOKEN_GROUPS = ^TOKEN_GROUPS;
  5737. LPTOKEN_GROUPS = ^TOKEN_GROUPS;
  5738. _TOKEN_GROUPS = TOKEN_GROUPS;
  5739. TTOKENGROUPS = TOKEN_GROUPS;
  5740. PTOKENGROUPS = ^TOKEN_GROUPS;
  5741. TOKEN_OWNER = record
  5742. Owner : PSID;
  5743. end;
  5744. _TOKEN_OWNER = TOKEN_OWNER;
  5745. TTOKENOWNER = TOKEN_OWNER;
  5746. PTOKENOWNER = ^TOKEN_OWNER;
  5747. TOKEN_PRIMARY_GROUP = record
  5748. PrimaryGroup : PSID;
  5749. end;
  5750. _TOKEN_PRIMARY_GROUP = TOKEN_PRIMARY_GROUP;
  5751. TTOKENPRIMARYGROUP = TOKEN_PRIMARY_GROUP;
  5752. PTOKENPRIMARYGROUP = ^TOKEN_PRIMARY_GROUP;
  5753. TOKEN_PRIVILEGES = packed record
  5754. PrivilegeCount : DWORD;
  5755. Privileges : array[0..(ANYSIZE_ARRAY)-1] of LUID_AND_ATTRIBUTES;
  5756. end;
  5757. PTOKEN_PRIVILEGES = ^TOKEN_PRIVILEGES;
  5758. LPTOKEN_PRIVILEGES = ^TOKEN_PRIVILEGES;
  5759. _TOKEN_PRIVILEGES = TOKEN_PRIVILEGES;
  5760. TTOKENPRIVILEGES = TOKEN_PRIVILEGES;
  5761. PTOKENPRIVILEGES = ^TOKEN_PRIVILEGES;
  5762. TOKEN_STATISTICS = record
  5763. TokenId : LUID;
  5764. AuthenticationId : LUID;
  5765. ExpirationTime : LARGE_INTEGER;
  5766. TokenType : TOKEN_TYPE;
  5767. ImpersonationLevel : SECURITY_IMPERSONATION_LEVEL;
  5768. DynamicCharged : DWORD;
  5769. DynamicAvailable : DWORD;
  5770. GroupCount : DWORD;
  5771. PrivilegeCount : DWORD;
  5772. ModifiedId : LUID;
  5773. end;
  5774. _TOKEN_STATISTICS = TOKEN_STATISTICS;
  5775. TTOKENSTATISTICS = TOKEN_STATISTICS;
  5776. PTOKENSTATISTICS = ^TOKEN_STATISTICS;
  5777. TOKEN_USER = record
  5778. User : SID_AND_ATTRIBUTES;
  5779. end;
  5780. _TOKEN_USER = TOKEN_USER;
  5781. TTOKENUSER = TOKEN_USER;
  5782. PTOKENUSER = ^TOKEN_USER;
  5783. TOOLINFO = record
  5784. cbSize : UINT;
  5785. uFlags : UINT;
  5786. hwnd : HWND;
  5787. uId : UINT;
  5788. rect : RECT;
  5789. hinst : HINST;
  5790. lpszText : LPTSTR;
  5791. end;
  5792. LPTOOLINFO = ^TOOLINFO;
  5793. TTOOLINFO = TOOLINFO;
  5794. PTOOLINFO = ^TOOLINFO;
  5795. TOOLTIPTEXT = record
  5796. hdr : NMHDR;
  5797. lpszText : LPTSTR;
  5798. szText : array[0..79] of char;
  5799. hinst : HINST;
  5800. uFlags : UINT;
  5801. end;
  5802. LPTOOLTIPTEXT = ^TOOLTIPTEXT;
  5803. TTOOLTIPTEXT = TOOLTIPTEXT;
  5804. PTOOLTIPTEXT = ^TOOLTIPTEXT;
  5805. TPMPARAMS = record
  5806. cbSize : UINT;
  5807. rcExclude : RECT;
  5808. end;
  5809. LPTPMPARAMS = ^TPMPARAMS;
  5810. tagTPMPARAMS = TPMPARAMS;
  5811. TTPMPARAMS = TPMPARAMS;
  5812. PTPMPARAMS = ^TPMPARAMS;
  5813. TRANSMIT_FILE_BUFFERS = record
  5814. Head : PVOID;
  5815. HeadLength : DWORD;
  5816. Tail : PVOID;
  5817. TailLength : DWORD;
  5818. end;
  5819. _TRANSMIT_FILE_BUFFERS = TRANSMIT_FILE_BUFFERS;
  5820. TTRANSMITFILEBUFFERS = TRANSMIT_FILE_BUFFERS;
  5821. PTRANSMITFILEBUFFERS = ^TRANSMIT_FILE_BUFFERS;
  5822. TTHITTESTINFO = record
  5823. hwnd : HWND;
  5824. pt : POINT;
  5825. ti : TOOLINFO;
  5826. end;
  5827. LPHITTESTINFO = ^TTHITTESTINFO;
  5828. _TT_HITTESTINFO = TTHITTESTINFO;
  5829. TTTHITTESTINFO = TTHITTESTINFO;
  5830. PTTHITTESTINFO = ^TTHITTESTINFO;
  5831. TTPOLYCURVE = record
  5832. wType : WORD;
  5833. cpfx : WORD;
  5834. apfx : array[0..0] of POINTFX;
  5835. end;
  5836. LPTTPOLYCURVE = ^TTPOLYCURVE;
  5837. tagTTPOLYCURVE = TTPOLYCURVE;
  5838. TTTPOLYCURVE = TTPOLYCURVE;
  5839. PTTPOLYCURVE = ^TTPOLYCURVE;
  5840. TTPOLYGONHEADER = record
  5841. cb : DWORD;
  5842. dwType : DWORD;
  5843. pfxStart : POINTFX;
  5844. end;
  5845. LPTTPOLYGONHEADER = ^TTPOLYGONHEADER;
  5846. _TTPOLYGONHEADER = TTPOLYGONHEADER;
  5847. TTTPOLYGONHEADER = TTPOLYGONHEADER;
  5848. PTTPOLYGONHEADER = ^TTPOLYGONHEADER;
  5849. TV_DISPINFO = record
  5850. hdr : NMHDR;
  5851. item : TV_ITEM;
  5852. end;
  5853. _TV_DISPINFO = TV_DISPINFO;
  5854. TTVDISPINFO = TV_DISPINFO;
  5855. PTVDISPINFO = ^TV_DISPINFO;
  5856. TV_HITTESTINFO = record
  5857. pt : POINT;
  5858. flags : UINT;
  5859. hItem : HTREEITEM;
  5860. end;
  5861. LPTV_HITTESTINFO = ^TV_HITTESTINFO;
  5862. _TVHITTESTINFO = TV_HITTESTINFO;
  5863. TTVHITTESTINFO = TV_HITTESTINFO;
  5864. PTVHITTESTINFO = ^TV_HITTESTINFO;
  5865. TV_INSERTSTRUCT = record
  5866. hParent : HTREEITEM;
  5867. hInsertAfter : HTREEITEM;
  5868. item : TV_ITEM;
  5869. end;
  5870. LPTV_INSERTSTRUCT = ^TV_INSERTSTRUCT;
  5871. _TV_INSERTSTRUCT = TV_INSERTSTRUCT;
  5872. TTVINSERTSTRUCT = TV_INSERTSTRUCT;
  5873. PTVINSERTSTRUCT = ^TV_INSERTSTRUCT;
  5874. TV_KEYDOWN = record
  5875. hdr : NMHDR;
  5876. wVKey : WORD;
  5877. flags : UINT;
  5878. end;
  5879. _TV_KEYDOWN = TV_KEYDOWN;
  5880. TTVKEYDOWN = TV_KEYDOWN;
  5881. PTVKEYDOWN = ^TV_KEYDOWN;
  5882. TV_SORTCB = record
  5883. hParent : HTREEITEM;
  5884. lpfnCompare : PFNTVCOMPARE;
  5885. lParam : LPARAM;
  5886. end;
  5887. LPTV_SORTCB = ^TV_SORTCB;
  5888. _TV_SORTCB = TV_SORTCB;
  5889. TTVSORTCB = TV_SORTCB;
  5890. PTVSORTCB = ^TV_SORTCB;
  5891. UDACCEL = record
  5892. nSec : UINT;
  5893. nInc : UINT;
  5894. end;
  5895. TUDACCEL = UDACCEL;
  5896. PUDACCEL = ^UDACCEL;
  5897. UNIVERSAL_NAME_INFO = record
  5898. lpUniversalName : LPTSTR;
  5899. end;
  5900. _UNIVERSAL_NAME_INFO = UNIVERSAL_NAME_INFO;
  5901. TUNIVERSALNAMEINFO = UNIVERSAL_NAME_INFO;
  5902. PUNIVERSALNAMEINFO = ^UNIVERSAL_NAME_INFO;
  5903. USEROBJECTFLAGS = record
  5904. fInherit : WINBOOL;
  5905. fReserved : WINBOOL;
  5906. dwFlags : DWORD;
  5907. end;
  5908. tagUSEROBJECTFLAGS = USEROBJECTFLAGS;
  5909. TUSEROBJECTFLAGS = USEROBJECTFLAGS;
  5910. PUSEROBJECTFLAGS = ^USEROBJECTFLAGS;
  5911. VALENT = record
  5912. ve_valuename : LPTSTR;
  5913. ve_valuelen : DWORD;
  5914. ve_valueptr : DWORD;
  5915. ve_type : DWORD;
  5916. end;
  5917. TVALENT = VALENT;
  5918. PVALENT = ^VALENT;
  5919. value_ent = VALENT;
  5920. Tvalue_ent = VALENT;
  5921. Pvalue_ent = ^VALENT;
  5922. VERIFY_INFORMATION = record
  5923. StartingOffset : LARGE_INTEGER;
  5924. Length : DWORD;
  5925. end;
  5926. _VERIFY_INFORMATION = VERIFY_INFORMATION;
  5927. TVERIFYINFORMATION = VERIFY_INFORMATION;
  5928. PVERIFYINFORMATION = ^VERIFY_INFORMATION;
  5929. VS_FIXEDFILEINFO = record
  5930. dwSignature : DWORD;
  5931. dwStrucVersion : DWORD;
  5932. dwFileVersionMS : DWORD;
  5933. dwFileVersionLS : DWORD;
  5934. dwProductVersionMS : DWORD;
  5935. dwProductVersionLS : DWORD;
  5936. dwFileFlagsMask : DWORD;
  5937. dwFileFlags : DWORD;
  5938. dwFileOS : DWORD;
  5939. dwFileType : DWORD;
  5940. dwFileSubtype : DWORD;
  5941. dwFileDateMS : DWORD;
  5942. dwFileDateLS : DWORD;
  5943. end;
  5944. _VS_FIXEDFILEINFO = VS_FIXEDFILEINFO;
  5945. TVSFIXEDFILEINFO = VS_FIXEDFILEINFO;
  5946. PVSFIXEDFILEINFO = ^VS_FIXEDFILEINFO;
  5947. WIN32_FIND_DATA = record
  5948. dwFileAttributes : DWORD;
  5949. ftCreationTime : FILETIME;
  5950. ftLastAccessTime : FILETIME;
  5951. ftLastWriteTime : FILETIME;
  5952. nFileSizeHigh : DWORD;
  5953. nFileSizeLow : DWORD;
  5954. dwReserved0 : DWORD;
  5955. dwReserved1 : DWORD;
  5956. cFileName : array[0..(MAX_PATH)-1] of TCHAR;
  5957. cAlternateFileName : array[0..13] of TCHAR;
  5958. end;
  5959. LPWIN32_FIND_DATA = ^WIN32_FIND_DATA;
  5960. PWIN32_FIND_DATA = ^WIN32_FIND_DATA;
  5961. _WIN32_FIND_DATA = WIN32_FIND_DATA;
  5962. TWIN32FINDDATA = WIN32_FIND_DATA;
  5963. TWIN32FINDDATAA = WIN32_FIND_DATA;
  5964. WIN32FINDDATAA = WIN32_FIND_DATA;
  5965. PWIN32FINDDATA = ^WIN32_FIND_DATA;
  5966. WIN32_FIND_DATAW = record
  5967. dwFileAttributes : DWORD;
  5968. ftCreationTime : FILETIME;
  5969. ftLastAccessTime : FILETIME;
  5970. ftLastWriteTime : FILETIME;
  5971. nFileSizeHigh : DWORD;
  5972. nFileSizeLow : DWORD;
  5973. dwReserved0 : DWORD;
  5974. dwReserved1 : DWORD;
  5975. cFileName : array[0..(MAX_PATH)-1] of WCHAR;
  5976. cAlternateFileName : array[0..13] of WCHAR;
  5977. end;
  5978. LPWIN32_FIND_DATAW = ^WIN32_FIND_DATAW;
  5979. PWIN32_FIND_DATAW = ^WIN32_FIND_DATAW;
  5980. _WIN32_FIND_DATAW = WIN32_FIND_DATAW;
  5981. TWIN32FINDDATAW = WIN32_FIND_DATAW;
  5982. PWIN32FINDDATAW = ^WIN32_FIND_DATAW;
  5983. WIN32_STREAM_ID = record
  5984. dwStreamId : DWORD;
  5985. dwStreamAttributes : DWORD;
  5986. Size : LARGE_INTEGER;
  5987. dwStreamNameSize : DWORD;
  5988. cStreamName : ^WCHAR;
  5989. end;
  5990. _WIN32_STREAM_ID = WIN32_STREAM_ID;
  5991. TWIN32STREAMID = WIN32_STREAM_ID;
  5992. PWIN32STREAMID = ^WIN32_STREAM_ID;
  5993. WINDOWPLACEMENT = record
  5994. length : UINT;
  5995. flags : UINT;
  5996. showCmd : UINT;
  5997. ptMinPosition : POINT;
  5998. ptMaxPosition : POINT;
  5999. rcNormalPosition : RECT;
  6000. end;
  6001. _WINDOWPLACEMENT = WINDOWPLACEMENT;
  6002. TWINDOWPLACEMENT = WINDOWPLACEMENT;
  6003. PWINDOWPLACEMENT = ^WINDOWPLACEMENT;
  6004. WNDCLASS = record
  6005. style : UINT;
  6006. lpfnWndProc : WNDPROC;
  6007. cbClsExtra : longint;
  6008. cbWndExtra : longint;
  6009. hInstance : HANDLE;
  6010. hIcon : HICON;
  6011. hCursor : HCURSOR;
  6012. hbrBackground : HBRUSH;
  6013. lpszMenuName : LPCTSTR;
  6014. lpszClassName : LPCTSTR;
  6015. end;
  6016. LPWNDCLASS = ^WNDCLASS;
  6017. _WNDCLASS = WNDCLASS;
  6018. TWNDCLASS = WNDCLASS;
  6019. TWNDCLASSA = WNDCLASS;
  6020. PWNDCLASS = ^WNDCLASS;
  6021. WNDCLASSW = record
  6022. style : UINT;
  6023. lpfnWndProc : WNDPROC;
  6024. cbClsExtra : longint;
  6025. cbWndExtra : longint;
  6026. hInstance : HANDLE;
  6027. hIcon : HICON;
  6028. hCursor : HCURSOR;
  6029. hbrBackground : HBRUSH;
  6030. lpszMenuName : LPCWSTR;
  6031. lpszClassName : LPCWSTR;
  6032. end;
  6033. LPWNDCLASSW = ^WNDCLASSW;
  6034. _WNDCLASSW = WNDCLASSW;
  6035. TWNDCLASSW = WNDCLASSW;
  6036. PWNDCLASSW = ^WNDCLASSW;
  6037. WNDCLASSEX = record
  6038. cbSize : UINT;
  6039. style : UINT;
  6040. lpfnWndProc : WNDPROC;
  6041. cbClsExtra : longint;
  6042. cbWndExtra : longint;
  6043. hInstance : HANDLE;
  6044. hIcon : HICON;
  6045. hCursor : HCURSOR;
  6046. hbrBackground : HBRUSH;
  6047. lpszMenuName : LPCTSTR;
  6048. lpszClassName : LPCTSTR;
  6049. hIconSm : HANDLE;
  6050. end;
  6051. LPWNDCLASSEX = ^WNDCLASSEX;
  6052. _WNDCLASSEX = WNDCLASSEX;
  6053. TWNDCLASSEX = WNDCLASSEX;
  6054. TWNDCLASSEXA = WNDCLASSEX;
  6055. PWNDCLASSEX = ^WNDCLASSEX;
  6056. WNDCLASSEXW = record
  6057. cbSize : UINT;
  6058. style : UINT;
  6059. lpfnWndProc : WNDPROC;
  6060. cbClsExtra : longint;
  6061. cbWndExtra : longint;
  6062. hInstance : HANDLE;
  6063. hIcon : HICON;
  6064. hCursor : HCURSOR;
  6065. hbrBackground : HBRUSH;
  6066. lpszMenuName : LPCWSTR;
  6067. lpszClassName : LPCWSTR;
  6068. hIconSm : HANDLE;
  6069. end;
  6070. LPWNDCLASSEXW = ^WNDCLASSEXW;
  6071. _WNDCLASSEXW = WNDCLASSEXW;
  6072. TWNDCLASSEXW = WNDCLASSEXW;
  6073. PWNDCLASSEXW = ^WNDCLASSEXW;
  6074. CONNECTDLGSTRUCT = record
  6075. cbStructure : DWORD;
  6076. hwndOwner : HWND;
  6077. lpConnRes : LPNETRESOURCE;
  6078. dwFlags : DWORD;
  6079. dwDevNum : DWORD;
  6080. end;
  6081. LPCONNECTDLGSTRUCT = ^CONNECTDLGSTRUCT;
  6082. _CONNECTDLGSTRUCT = CONNECTDLGSTRUCT;
  6083. TCONNECTDLGSTRUCT = CONNECTDLGSTRUCT;
  6084. PCONNECTDLGSTRUCT = ^CONNECTDLGSTRUCT;
  6085. DISCDLGSTRUCT = record
  6086. cbStructure : DWORD;
  6087. hwndOwner : HWND;
  6088. lpLocalName : LPTSTR;
  6089. lpRemoteName : LPTSTR;
  6090. dwFlags : DWORD;
  6091. end;
  6092. LPDISCDLGSTRUCT = ^DISCDLGSTRUCT;
  6093. _DISCDLGSTRUCT = DISCDLGSTRUCT;
  6094. TDISCDLGSTRUCT = DISCDLGSTRUCT;
  6095. TDISCDLGSTRUCTA = DISCDLGSTRUCT;
  6096. PDISCDLGSTRUCT = ^DISCDLGSTRUCT;
  6097. NETINFOSTRUCT = record
  6098. cbStructure : DWORD;
  6099. dwProviderVersion : DWORD;
  6100. dwStatus : DWORD;
  6101. dwCharacteristics : DWORD;
  6102. dwHandle : DWORD;
  6103. wNetType : WORD;
  6104. dwPrinters : DWORD;
  6105. dwDrives : DWORD;
  6106. end;
  6107. LPNETINFOSTRUCT = ^NETINFOSTRUCT;
  6108. _NETINFOSTRUCT = NETINFOSTRUCT;
  6109. TNETINFOSTRUCT = NETINFOSTRUCT;
  6110. PNETINFOSTRUCT = ^NETINFOSTRUCT;
  6111. NETCONNECTINFOSTRUCT = record
  6112. cbStructure : DWORD;
  6113. dwFlags : DWORD;
  6114. dwSpeed : DWORD;
  6115. dwDelay : DWORD;
  6116. dwOptDataSize : DWORD;
  6117. end;
  6118. LPNETCONNECTINFOSTRUCT = ^NETCONNECTINFOSTRUCT;
  6119. _NETCONNECTINFOSTRUCT = NETCONNECTINFOSTRUCT;
  6120. TNETCONNECTINFOSTRUCT = NETCONNECTINFOSTRUCT;
  6121. PNETCONNECTINFOSTRUCT = ^NETCONNECTINFOSTRUCT;
  6122. ENUMMETAFILEPROC = function (_para1:HDC; _para2:HANDLETABLE; _para3:METARECORD; _para4:longint; _para5:LPARAM):longint;stdcall;
  6123. ENHMETAFILEPROC = function (_para1:HDC; _para2:HANDLETABLE; _para3:ENHMETARECORD; _para4:longint; _para5:LPARAM):longint;stdcall;
  6124. ENUMFONTSPROC = function (_para1:LPLOGFONT; _para2:LPTEXTMETRIC; _para3:DWORD; _para4:LPARAM):longint;stdcall;
  6125. FONTENUMPROC = function (var _para1:ENUMLOGFONT; var _para2:NEWTEXTMETRIC; _para3:longint; _para4:LPARAM):longint;stdcall;
  6126. FONTENUMEXPROC = function (var _para1:ENUMLOGFONTEX;var _para2:NEWTEXTMETRICEX; _para3:longint; _para4:LPARAM):longint;stdcall;
  6127. LPOVERLAPPED_COMPLETION_ROUTINE = procedure (_para1:DWORD; _para2:DWORD; _para3:LPOVERLAPPED);stdcall;
  6128. { Structures for the extensions to OpenGL }
  6129. POINTFLOAT = record
  6130. x : Single;
  6131. y : Single;
  6132. end;
  6133. _POINTFLOAT = POINTFLOAT;
  6134. TPOINTFLOAT = POINTFLOAT;
  6135. PPOINTFLOAT = ^POINTFLOAT;
  6136. GLYPHMETRICSFLOAT = record
  6137. gmfBlackBoxX : Single;
  6138. gmfBlackBoxY : Single;
  6139. gmfptGlyphOrigin : POINTFLOAT;
  6140. gmfCellIncX : Single;
  6141. gmfCellIncY : Single;
  6142. end;
  6143. LPGLYPHMETRICSFLOAT = ^GLYPHMETRICSFLOAT;
  6144. _GLYPHMETRICSFLOAT = GLYPHMETRICSFLOAT;
  6145. TGLYPHMETRICSFLOAT = GLYPHMETRICSFLOAT;
  6146. PGLYPHMETRICSFLOAT = ^GLYPHMETRICSFLOAT;
  6147. LAYERPLANEDESCRIPTOR = record
  6148. nSize : WORD;
  6149. nVersion : WORD;
  6150. dwFlags : DWORD;
  6151. iPixelType : BYTE;
  6152. cColorBits : BYTE;
  6153. cRedBits : BYTE;
  6154. cRedShift : BYTE;
  6155. cGreenBits : BYTE;
  6156. cGreenShift : BYTE;
  6157. cBlueBits : BYTE;
  6158. cBlueShift : BYTE;
  6159. cAlphaBits : BYTE;
  6160. cAlphaShift : BYTE;
  6161. cAccumBits : BYTE;
  6162. cAccumRedBits : BYTE;
  6163. cAccumGreenBits : BYTE;
  6164. cAccumBlueBits : BYTE;
  6165. cAccumAlphaBits : BYTE;
  6166. cDepthBits : BYTE;
  6167. cStencilBits : BYTE;
  6168. cAuxBuffers : BYTE;
  6169. iLayerPlane : BYTE;
  6170. bReserved : BYTE;
  6171. crTransparent : COLORREF;
  6172. end;
  6173. LPLAYERPLANEDESCRIPTOR = ^LAYERPLANEDESCRIPTOR;
  6174. tagLAYERPLANEDESCRIPTOR = LAYERPLANEDESCRIPTOR;
  6175. TLAYERPLANEDESCRIPTOR = LAYERPLANEDESCRIPTOR;
  6176. PLAYERPLANEDESCRIPTOR = ^LAYERPLANEDESCRIPTOR;
  6177. PIXELFORMATDESCRIPTOR = record
  6178. nSize : WORD;
  6179. nVersion : WORD;
  6180. dwFlags : DWORD;
  6181. iPixelType : BYTE;
  6182. cColorBits : BYTE;
  6183. cRedBits : BYTE;
  6184. cRedShift : BYTE;
  6185. cGreenBits : BYTE;
  6186. cGreenShift : BYTE;
  6187. cBlueBits : BYTE;
  6188. cBlueShift : BYTE;
  6189. cAlphaBits : BYTE;
  6190. cAlphaShift : BYTE;
  6191. cAccumBits : BYTE;
  6192. cAccumRedBits : BYTE;
  6193. cAccumGreenBits : BYTE;
  6194. cAccumBlueBits : BYTE;
  6195. cAccumAlphaBits : BYTE;
  6196. cDepthBits : BYTE;
  6197. cStencilBits : BYTE;
  6198. cAuxBuffers : BYTE;
  6199. iLayerType : BYTE;
  6200. bReserved : BYTE;
  6201. dwLayerMask : DWORD;
  6202. dwVisibleMask : DWORD;
  6203. dwDamageMask : DWORD;
  6204. end;
  6205. LPPIXELFORMATDESCRIPTOR = ^PIXELFORMATDESCRIPTOR;
  6206. tagPIXELFORMATDESCRIPTOR = PIXELFORMATDESCRIPTOR;
  6207. TPIXELFORMATDESCRIPTOR = PIXELFORMATDESCRIPTOR;
  6208. PPIXELFORMATDESCRIPTOR = ^PIXELFORMATDESCRIPTOR;
  6209. USER_INFO_2 = record
  6210. usri2_name : LPWSTR;
  6211. usri2_password : LPWSTR;
  6212. usri2_password_age : DWORD;
  6213. usri2_priv : DWORD;
  6214. usri2_home_dir : LPWSTR;
  6215. usri2_comment : LPWSTR;
  6216. usri2_flags : DWORD;
  6217. usri2_script_path : LPWSTR;
  6218. usri2_auth_flags : DWORD;
  6219. usri2_full_name : LPWSTR;
  6220. usri2_usr_comment : LPWSTR;
  6221. usri2_parms : LPWSTR;
  6222. usri2_workstations : LPWSTR;
  6223. usri2_last_logon : DWORD;
  6224. usri2_last_logoff : DWORD;
  6225. usri2_acct_expires : DWORD;
  6226. usri2_max_storage : DWORD;
  6227. usri2_units_per_week : DWORD;
  6228. usri2_logon_hours : PBYTE;
  6229. usri2_bad_pw_count : DWORD;
  6230. usri2_num_logons : DWORD;
  6231. usri2_logon_server : LPWSTR;
  6232. usri2_country_code : DWORD;
  6233. usri2_code_page : DWORD;
  6234. end;
  6235. PUSER_INFO_2 = ^USER_INFO_2;
  6236. LPUSER_INFO_2 = ^USER_INFO_2;
  6237. TUSERINFO2 = USER_INFO_2;
  6238. PUSERINFO2 = ^USER_INFO_2;
  6239. USER_INFO_0 = record
  6240. usri0_name : LPWSTR;
  6241. end;
  6242. PUSER_INFO_0 = ^USER_INFO_0;
  6243. LPUSER_INFO_0 = ^USER_INFO_0;
  6244. TUSERINFO0 = USER_INFO_0;
  6245. PUSERINFO0 = ^USER_INFO_0;
  6246. USER_INFO_3 = record
  6247. usri3_name : LPWSTR;
  6248. usri3_password : LPWSTR;
  6249. usri3_password_age : DWORD;
  6250. usri3_priv : DWORD;
  6251. usri3_home_dir : LPWSTR;
  6252. usri3_comment : LPWSTR;
  6253. usri3_flags : DWORD;
  6254. usri3_script_path : LPWSTR;
  6255. usri3_auth_flags : DWORD;
  6256. usri3_full_name : LPWSTR;
  6257. usri3_usr_comment : LPWSTR;
  6258. usri3_parms : LPWSTR;
  6259. usri3_workstations : LPWSTR;
  6260. usri3_last_logon : DWORD;
  6261. usri3_last_logoff : DWORD;
  6262. usri3_acct_expires : DWORD;
  6263. usri3_max_storage : DWORD;
  6264. usri3_units_per_week : DWORD;
  6265. usri3_logon_hours : PBYTE;
  6266. usri3_bad_pw_count : DWORD;
  6267. usri3_num_logons : DWORD;
  6268. usri3_logon_server : LPWSTR;
  6269. usri3_country_code : DWORD;
  6270. usri3_code_page : DWORD;
  6271. usri3_user_id : DWORD;
  6272. usri3_primary_group_id : DWORD;
  6273. usri3_profile : LPWSTR;
  6274. usri3_home_dir_drive : LPWSTR;
  6275. usri3_password_expired : DWORD;
  6276. end;
  6277. PUSER_INFO_3 = ^USER_INFO_3;
  6278. LPUSER_INFO_3 = ^USER_INFO_3;
  6279. TUSERINFO3 = USER_INFO_3;
  6280. PUSERINFO3 = ^USER_INFO_3;
  6281. GROUP_INFO_2 = record
  6282. grpi2_name : LPWSTR;
  6283. grpi2_comment : LPWSTR;
  6284. grpi2_group_id : DWORD;
  6285. grpi2_attributes : DWORD;
  6286. end;
  6287. PGROUP_INFO_2 = ^GROUP_INFO_2;
  6288. TGROUPINFO2 = GROUP_INFO_2;
  6289. PGROUPINFO2 = ^GROUP_INFO_2;
  6290. LOCALGROUP_INFO_0 = record
  6291. lgrpi0_name : LPWSTR;
  6292. end;
  6293. PLOCALGROUP_INFO_0 = ^LOCALGROUP_INFO_0;
  6294. LPLOCALGROUP_INFO_0 = ^LOCALGROUP_INFO_0;
  6295. TLOCALGROUPINFO0 = LOCALGROUP_INFO_0;
  6296. PLOCALGROUPINFO0 = ^LOCALGROUP_INFO_0;
  6297. { PE executable header. }
  6298. { Magic number, 0x5a4d }
  6299. { Bytes on last page of file, 0x90 }
  6300. { Pages in file, 0x3 }
  6301. { Relocations, 0x0 }
  6302. { Size of header in paragraphs, 0x4 }
  6303. { Minimum extra paragraphs needed, 0x0 }
  6304. { Maximum extra paragraphs needed, 0xFFFF }
  6305. { Initial (relative) SS value, 0x0 }
  6306. { Initial SP value, 0xb8 }
  6307. { Checksum, 0x0 }
  6308. { Initial IP value, 0x0 }
  6309. { Initial (relative) CS value, 0x0 }
  6310. { File address of relocation table, 0x40 }
  6311. { Overlay number, 0x0 }
  6312. { Reserved words, all 0x0 }
  6313. { OEM identifier (for e_oeminfo), 0x0 }
  6314. { OEM information; e_oemid specific, 0x0 }
  6315. { Reserved words, all 0x0 }
  6316. { File address of new exe header, 0x80 }
  6317. { We leave out the next two fields, since they aren't in the header file }
  6318. { DWORD dos_message[16]; text which always follows dos header }
  6319. { DWORD nt_signature; required NT signature, 0x4550 }
  6320. IMAGE_DOS_HEADER = record
  6321. e_magic : WORD;
  6322. e_cblp : WORD;
  6323. e_cp : WORD;
  6324. e_crlc : WORD;
  6325. e_cparhdr : WORD;
  6326. e_minalloc : WORD;
  6327. e_maxalloc : WORD;
  6328. e_ss : WORD;
  6329. e_sp : WORD;
  6330. e_csum : WORD;
  6331. e_ip : WORD;
  6332. e_cs : WORD;
  6333. e_lfarlc : WORD;
  6334. e_ovno : WORD;
  6335. e_res : array[0..3] of WORD;
  6336. e_oemid : WORD;
  6337. e_oeminfo : WORD;
  6338. e_res2 : array[0..9] of WORD;
  6339. case boolean of
  6340. true : (e_lfanew : LONG);
  6341. false: (_lfanew : LONG); // delphi naming
  6342. end;
  6343. PIMAGE_DOS_HEADER = ^IMAGE_DOS_HEADER;
  6344. TIMAGE_DOS_HEADER = IMAGE_DOS_HEADER;
  6345. TIMAGEDOSHEADER = IMAGE_DOS_HEADER;
  6346. PIMAGEDOSHEADER = ^IMAGE_DOS_HEADER;
  6347. _NOTIFYICONDATAA = record
  6348. cbSize: DWORD;
  6349. Wnd: HWND;
  6350. uID: UINT;
  6351. uFlags: UINT;
  6352. uCallbackMessage: UINT;
  6353. hIcon: HICON;
  6354. szTip: array [0..63] of Char;
  6355. end;
  6356. _NOTIFYICONDATA = _NOTIFYICONDATAA;
  6357. _NOTIFYICONDATAW = record
  6358. cbSize: DWORD;
  6359. Wnd: HWND;
  6360. uID: UINT;
  6361. uFlags: UINT;
  6362. uCallbackMessage: UINT;
  6363. hIcon: HICON;
  6364. szTip: array [0..63] of Word;
  6365. end;
  6366. TNotifyIconDataA = _NOTIFYICONDATAA;
  6367. TNotifyIconDataW = _NOTIFYICONDATAW;
  6368. TNotifyIconData = TNotifyIconDataA;
  6369. NOTIFYICONDATAA = _NOTIFYICONDATAA;
  6370. NOTIFYICONDATAW = _NOTIFYICONDATAW;
  6371. NOTIFYICONDATA = NOTIFYICONDATAA;
  6372. PNotifyIconDataA = ^TNotifyIconDataA;
  6373. PNotifyIconDataW = ^TNotifyIconDataW;
  6374. PNotifyIconData = PNotifyIconDataA;
  6375. TWOHandleArray = array[0..MAXIMUM_WAIT_OBJECTS-1] of HANDLE;
  6376. PWOHandleArray = ^TWOHandleArray;
  6377. MMRESULT = Longint;
  6378. type
  6379. PWaveFormatEx = ^TWaveFormatEx;
  6380. TWaveFormatEx = packed record
  6381. wFormatTag: Word; { format type }
  6382. nChannels: Word; { number of channels (i.e. mono, stereo, etc.) }
  6383. nSamplesPerSec: DWORD; { sample rate }
  6384. nAvgBytesPerSec: DWORD; { for buffer estimation }
  6385. nBlockAlign: Word; { block size of data }
  6386. wBitsPerSample: Word; { number of bits per sample of mono data }
  6387. cbSize: Word; { the count in bytes of the size of }
  6388. end;
  6389. _WIN32_FILE_ATTRIBUTE_DATA = packed record
  6390. dwFileAttributes: DWORD;
  6391. ftCreationTime: FILETIME;
  6392. ftLastAccessTime: FILETIME;
  6393. ftLastWriteTime: FILETIME;
  6394. nFileSizeHigh: DWORD;
  6395. nFileSizeLow: DWORD;
  6396. end;
  6397. WIN32_FILE_ATTRIBUTE_DATA = _WIN32_FILE_ATTRIBUTE_DATA ;
  6398. LPWIN32_FILE_ATTRIBUTE_DATA = ^_WIN32_FILE_ATTRIBUTE_DATA;
  6399. TWIN32FILEATTRIBUTEDATA = _WIN32_FILE_ATTRIBUTE_DATA ;
  6400. PWIN32FILEATTRIBUTEDATA = ^_WIN32_FILE_ATTRIBUTE_DATA;
  6401. // TrackMouseEvent. NT or higher only.
  6402. TTrackMouseEvent = Record
  6403. cbSize : DWORD;
  6404. dwFlags : DWORD;
  6405. hwndTrack : HWND;
  6406. dwHoverTime : DWORD;
  6407. end;
  6408. PTrackMouseEvent = ^TTrackMouseEvent;
  6409. // File header format.
  6410. //
  6411. PIMAGE_FILE_HEADER = ^IMAGE_FILE_HEADER;
  6412. _IMAGE_FILE_HEADER = record
  6413. Machine: WORD;
  6414. NumberOfSections: WORD;
  6415. TimeDateStamp: DWORD;
  6416. PointerToSymbolTable: DWORD;
  6417. NumberOfSymbols: DWORD;
  6418. SizeOfOptionalHeader: WORD;
  6419. Characteristics: WORD;
  6420. end;
  6421. IMAGE_FILE_HEADER = _IMAGE_FILE_HEADER;
  6422. TImageFileHeader = IMAGE_FILE_HEADER;
  6423. PImageFileHeader = PIMAGE_FILE_HEADER;
  6424. //
  6425. // Debug Format
  6426. //
  6427. PIMAGE_DEBUG_DIRECTORY = ^IMAGE_DEBUG_DIRECTORY;
  6428. _IMAGE_DEBUG_DIRECTORY = record
  6429. Characteristics: DWORD;
  6430. TimeDateStamp: DWORD;
  6431. MajorVersion: Word;
  6432. MinorVersion: Word;
  6433. Type_: DWORD;
  6434. SizeOfData: DWORD;
  6435. AddressOfRawData: DWORD;
  6436. PointerToRawData: DWORD;
  6437. end;
  6438. IMAGE_DEBUG_DIRECTORY = _IMAGE_DEBUG_DIRECTORY;
  6439. TImageDebugDirectory = IMAGE_DEBUG_DIRECTORY;
  6440. PImageDebugDirectory = PIMAGE_DEBUG_DIRECTORY;
  6441. //
  6442. // Optional header format.
  6443. //
  6444. PIMAGE_DATA_DIRECTORY = ^IMAGE_DATA_DIRECTORY;
  6445. _IMAGE_DATA_DIRECTORY = record
  6446. VirtualAddress: DWORD;
  6447. Size: DWORD;
  6448. end;
  6449. IMAGE_DATA_DIRECTORY = _IMAGE_DATA_DIRECTORY;
  6450. TIMAGE_DATA_DIRECTORY = _IMAGE_DATA_DIRECTORY;
  6451. TImageDataDirectory = IMAGE_DATA_DIRECTORY;
  6452. PImageDataDirectory = PIMAGE_DATA_DIRECTORY;
  6453. const
  6454. IMAGE_NUMBEROF_DIRECTORY_ENTRIES = 16;
  6455. type
  6456. PIMAGE_OPTIONAL_HEADER32 = ^IMAGE_OPTIONAL_HEADER32;
  6457. _IMAGE_OPTIONAL_HEADER = record
  6458. //
  6459. // Standard fields.
  6460. //
  6461. Magic: Word;
  6462. MajorLinkerVersion: Byte;
  6463. MinorLinkerVersion: Byte;
  6464. SizeOfCode: DWORD;
  6465. SizeOfInitializedData: DWORD;
  6466. SizeOfUninitializedData: DWORD;
  6467. AddressOfEntryPoint: DWORD;
  6468. BaseOfCode: DWORD;
  6469. BaseOfData: DWORD;
  6470. //
  6471. // NT additional fields.
  6472. //
  6473. ImageBase: DWORD;
  6474. SectionAlignment: DWORD;
  6475. FileAlignment: DWORD;
  6476. MajorOperatingSystemVersion: Word;
  6477. MinorOperatingSystemVersion: Word;
  6478. MajorImageVersion: Word;
  6479. MinorImageVersion: Word;
  6480. MajorSubsystemVersion: Word;
  6481. MinorSubsystemVersion: Word;
  6482. Win32VersionValue: DWORD;
  6483. SizeOfImage: DWORD;
  6484. SizeOfHeaders: DWORD;
  6485. CheckSum: DWORD;
  6486. Subsystem: Word;
  6487. DllCharacteristics: Word;
  6488. SizeOfStackReserve: DWORD;
  6489. SizeOfStackCommit: DWORD;
  6490. SizeOfHeapReserve: DWORD;
  6491. SizeOfHeapCommit: DWORD;
  6492. LoaderFlags: DWORD;
  6493. NumberOfRvaAndSizes: DWORD;
  6494. DataDirectory: array [0..IMAGE_NUMBEROF_DIRECTORY_ENTRIES - 1] of IMAGE_DATA_DIRECTORY;
  6495. end;
  6496. IMAGE_OPTIONAL_HEADER32 = _IMAGE_OPTIONAL_HEADER;
  6497. TImageOptionalHeader32 = IMAGE_OPTIONAL_HEADER32;
  6498. PImageOptionalHeader32 = PIMAGE_OPTIONAL_HEADER32;
  6499. PIMAGE_ROM_OPTIONAL_HEADER = ^IMAGE_ROM_OPTIONAL_HEADER;
  6500. _IMAGE_ROM_OPTIONAL_HEADER = record
  6501. Magic: Word;
  6502. MajorLinkerVersion: Byte;
  6503. MinorLinkerVersion: Byte;
  6504. SizeOfCode: DWORD;
  6505. SizeOfInitializedData: DWORD;
  6506. SizeOfUninitializedData: DWORD;
  6507. AddressOfEntryPoint: DWORD;
  6508. BaseOfCode: DWORD;
  6509. BaseOfData: DWORD;
  6510. BaseOfBss: DWORD;
  6511. GprMask: DWORD;
  6512. CprMask: array [0..3] of DWORD;
  6513. GpValue: DWORD;
  6514. end;
  6515. IMAGE_ROM_OPTIONAL_HEADER = _IMAGE_ROM_OPTIONAL_HEADER;
  6516. TIMAGE_ROM_OPTIONAL_HEADER = _IMAGE_ROM_OPTIONAL_HEADER;
  6517. TImageRomOptionalHeader = IMAGE_ROM_OPTIONAL_HEADER;
  6518. PImageRomOptionalHeader = PIMAGE_ROM_OPTIONAL_HEADER;
  6519. PIMAGE_OPTIONAL_HEADER64 = ^IMAGE_OPTIONAL_HEADER64;
  6520. _IMAGE_OPTIONAL_HEADER64 = record
  6521. Magic: Word;
  6522. MajorLinkerVersion: Byte;
  6523. MinorLinkerVersion: Byte;
  6524. SizeOfCode: DWORD;
  6525. SizeOfInitializedData: DWORD;
  6526. SizeOfUninitializedData: DWORD;
  6527. AddressOfEntryPoint: DWORD;
  6528. BaseOfCode: DWORD;
  6529. ImageBase: Int64;
  6530. SectionAlignment: DWORD;
  6531. FileAlignment: DWORD;
  6532. MajorOperatingSystemVersion: Word;
  6533. MinorOperatingSystemVersion: Word;
  6534. MajorImageVersion: Word;
  6535. MinorImageVersion: Word;
  6536. MajorSubsystemVersion: Word;
  6537. MinorSubsystemVersion: Word;
  6538. Win32VersionValue: DWORD;
  6539. SizeOfImage: DWORD;
  6540. SizeOfHeaders: DWORD;
  6541. CheckSum: DWORD;
  6542. Subsystem: Word;
  6543. DllCharacteristics: Word;
  6544. SizeOfStackReserve: Int64;
  6545. SizeOfStackCommit: Int64;
  6546. SizeOfHeapReserve: Int64;
  6547. SizeOfHeapCommit: Int64;
  6548. LoaderFlags: DWORD;
  6549. NumberOfRvaAndSizes: DWORD;
  6550. DataDirectory: array [0..IMAGE_NUMBEROF_DIRECTORY_ENTRIES - 1] of IMAGE_DATA_DIRECTORY;
  6551. end;
  6552. IMAGE_OPTIONAL_HEADER64 = _IMAGE_OPTIONAL_HEADER64;
  6553. TImageOptionalHeader64 = IMAGE_OPTIONAL_HEADER64;
  6554. PImageOptionalHeader64 = PIMAGE_OPTIONAL_HEADER64;
  6555. const
  6556. IMAGE_SIZEOF_ROM_OPTIONAL_HEADER = 56;
  6557. IMAGE_SIZEOF_STD_OPTIONAL_HEADER = 28;
  6558. IMAGE_SIZEOF_NT_OPTIONAL32_HEADER = 224;
  6559. IMAGE_SIZEOF_NT_OPTIONAL64_HEADER = 240;
  6560. IMAGE_NT_OPTIONAL_HDR32_MAGIC = $10b;
  6561. IMAGE_NT_OPTIONAL_HDR64_MAGIC = $20b;
  6562. IMAGE_ROM_OPTIONAL_HDR_MAGIC = $107;
  6563. type
  6564. IMAGE_OPTIONAL_HEADER = IMAGE_OPTIONAL_HEADER32;
  6565. PIMAGE_OPTIONAL_HEADER = PIMAGE_OPTIONAL_HEADER32;
  6566. TImageOptionalHeader = IMAGE_OPTIONAL_HEADER;
  6567. PImageOptionalHeader = PIMAGE_OPTIONAL_HEADER;
  6568. const
  6569. IMAGE_SIZEOF_NT_OPTIONAL_HEADER = IMAGE_SIZEOF_NT_OPTIONAL32_HEADER;
  6570. IMAGE_NT_OPTIONAL_HDR_MAGIC = IMAGE_NT_OPTIONAL_HDR32_MAGIC;
  6571. type
  6572. PIMAGE_NT_HEADERS64 = ^IMAGE_NT_HEADERS64;
  6573. _IMAGE_NT_HEADERS64 = record
  6574. Signature: DWORD;
  6575. FileHeader: IMAGE_FILE_HEADER;
  6576. OptionalHeader: IMAGE_OPTIONAL_HEADER64;
  6577. end;
  6578. IMAGE_NT_HEADERS64 = _IMAGE_NT_HEADERS64;
  6579. TImageNtHeaders64 = IMAGE_NT_HEADERS64;
  6580. PImageNtHeaders64 = PIMAGE_NT_HEADERS64;
  6581. PIMAGE_NT_HEADERS32 = ^IMAGE_NT_HEADERS32;
  6582. _IMAGE_NT_HEADERS = record
  6583. Signature: DWORD;
  6584. FileHeader: IMAGE_FILE_HEADER;
  6585. OptionalHeader: IMAGE_OPTIONAL_HEADER32;
  6586. end;
  6587. IMAGE_NT_HEADERS32 = _IMAGE_NT_HEADERS;
  6588. TImageNtHeaders32 = IMAGE_NT_HEADERS32;
  6589. PImageNtHeaders32 = PIMAGE_NT_HEADERS32;
  6590. PIMAGE_ROM_HEADERS = ^IMAGE_ROM_HEADERS;
  6591. _IMAGE_ROM_HEADERS = record
  6592. FileHeader: IMAGE_FILE_HEADER;
  6593. OptionalHeader: IMAGE_ROM_OPTIONAL_HEADER;
  6594. end;
  6595. IMAGE_ROM_HEADERS = _IMAGE_ROM_HEADERS;
  6596. TImageRomHeaders = IMAGE_ROM_HEADERS;
  6597. PImageRomHeaders = PIMAGE_ROM_HEADERS;
  6598. IMAGE_NT_HEADERS = IMAGE_NT_HEADERS32;
  6599. PIMAGE_NT_HEADERS = PIMAGE_NT_HEADERS32;
  6600. TImageNtHeaders = IMAGE_NT_HEADERS32;
  6601. PImageNtHeaders = PIMAGE_NT_HEADERS;
  6602. _GET_FILEEX_INFO_LEVELS = (GetFileExInfoStandard, GetFileExMaxInfoLevel);
  6603. GET_FILEEX_INFO_LEVELS = _GET_FILEEX_INFO_LEVELS;
  6604. TGetFileExInfoLevels = GET_FILEEX_INFO_LEVELS;
  6605. TGet_FileEx_Info_Levels = GET_FILEEX_INFO_LEVELS;
  6606. tagBSTRBLOB = record
  6607. cbsize : ULONG;
  6608. pdata : pbyte;
  6609. end;
  6610. BSTRBLOB=TagBSTRBlob;
  6611. TBSTRBLOB=BSTRBLOB;
  6612. PBSTRBLOB=^BSTRBLOB;
  6613. tagCLIPDATA = record
  6614. cbsize : ULONG;
  6615. ulClipFmt : long;
  6616. pclipdata : pbyte;
  6617. end;
  6618. CLIPDATA=TagCLIPDATA;
  6619. TCLIPDATA=CLIPDATA;
  6620. PCLIPDATA=^CLIPDATA;
  6621. TImage_Section_SubHeader= record
  6622. case longint of
  6623. 0 : ( PhysicalAddress : DWORD );
  6624. 1 : ( VirtualSize : DWORD );
  6625. end;
  6626. _IMAGE_SECTION_HEADER = record
  6627. Name : array[0..(IMAGE_SIZEOF_SHORT_NAME)-1] of BYTE;
  6628. Misc : TImage_Section_SubHeader;
  6629. VirtualAddress : DWORD;
  6630. SizeOfRawData : DWORD;
  6631. PointerToRawData : DWORD;
  6632. PointerToRelocations : DWORD;
  6633. PointerToLinenumbers : DWORD;
  6634. NumberOfRelocations : WORD;
  6635. NumberOfLinenumbers : WORD;
  6636. Characteristics : DWORD;
  6637. end;
  6638. IMAGE_SECTION_HEADER = _IMAGE_SECTION_HEADER;
  6639. TIMAGE_SECTION_HEADER = _IMAGE_SECTION_HEADER;
  6640. PIMAGE_SECTION_HEADER = ^_IMAGE_SECTION_HEADER;
  6641. PPIMAGE_SECTION_HEADER = ^PIMAGE_SECTION_HEADER;
  6642. IMAGESECTIONHEADER = _IMAGE_SECTION_HEADER;
  6643. TIMAGESECTIONHEADER = _IMAGE_SECTION_HEADER;
  6644. PIMAGESECTIONHEADER = ^_IMAGE_SECTION_HEADER;
  6645. _IMAGE_FUNCTION_ENTRY = record
  6646. StartingAddress,
  6647. EndingAddress,
  6648. EndOfPrologue : DWord;
  6649. end;
  6650. IMAGE_FUNCTION_ENTRY = _IMAGE_FUNCTION_ENTRY;
  6651. TIMAGE_FUNCTION_ENTRY= IMAGE_FUNCTION_ENTRY;
  6652. PIMAGE_FUNCTION_ENTRY= ^IMAGE_FUNCTION_ENTRY;
  6653. LPIMAGE_FUNCTION_ENTRY= PIMAGE_FUNCTION_ENTRY;
  6654. _IMAGE_FUNCTION_ENTRY64 = record
  6655. StartingAddress,
  6656. EndingAddress : ULONGLONG ;
  6657. case boolean of
  6658. false : (EndOfPrologue : ULONGLONG);
  6659. true : (UnwindInfoAddress : ULONGLONG);
  6660. end;
  6661. IMAGE_FUNCTION_ENTRY64 = _IMAGE_FUNCTION_ENTRY64;
  6662. TIMAGE_FUNCTION_ENTRY64 = _IMAGE_FUNCTION_ENTRY64;
  6663. PIMAGE_FUNCTION_ENTRY64 = ^_IMAGE_FUNCTION_ENTRY64;
  6664. LPIMAGE_FUNCTION_ENTRY64= ^_IMAGE_FUNCTION_ENTRY64;
  6665. _IMAGE_COFF_SYMBOLS_HEADER = record
  6666. NumberOfSymbols,
  6667. LvaToFirstSymbol,
  6668. NumberOfLinenumbers,
  6669. LvaToFirstLinenumber,
  6670. RvaToFirstByteOfCode,
  6671. RvaToLastByteOfCode,
  6672. RvaToFirstByteOfData,
  6673. RvaToLastByteOfData : DWORD;
  6674. end;
  6675. TIMAGE_COFF_SYMBOLS_HEADER = _IMAGE_COFF_SYMBOLS_HEADER;
  6676. IMAGE_COFF_SYMBOLS_HEADER = _IMAGE_COFF_SYMBOLS_HEADER;
  6677. PIMAGE_COFF_SYMBOLS_HEADER = ^IMAGE_COFF_SYMBOLS_HEADER;
  6678. LPIMAGE_COFF_SYMBOLS_HEADER= PIMAGE_COFF_SYMBOLS_HEADER;
  6679. _FPO_DATA = record
  6680. ulOffStart: DWORD; // offset 1st byte of function code
  6681. cbProcSize: DWORD; // # bytes in function
  6682. cdwLocals : DWORD; // # bytes in locals/4
  6683. bitvalues : word; //
  6684. {
  6685. WORD cdwParams; // # bytes in params/4
  6686. WORD cbProlog : 8; // # bytes in prolog
  6687. WORD cbRegs : 3; // # regs saved
  6688. WORD fHasSEH : 1; // TRUE if SEH in func
  6689. WORD fUseBP : 1; // TRUE if EBP has been allocated
  6690. WORD reserved : 1; // reserved for future use
  6691. WORD cbFrame : 2; // frame type
  6692. }
  6693. end;
  6694. FPO_DATA = _FPO_DATA;
  6695. TFPO_DATA = _FPO_DATA;
  6696. PFPO_DATA = ^_FPO_DATA;
  6697. LPFPO_DATA = PFPO_DATA;
  6698. IMAGE_LOAD_CONFIG_DIRECTORY32 = record
  6699. Size : DWORD;
  6700. TimeDateStamp : DWORD;
  6701. MajorVersion : WORD;
  6702. MinorVersion : WORD;
  6703. GlobalFlagsClear : DWORD;
  6704. GlobalFlagsSet : DWORD;
  6705. CriticalSectionDefaultTimeout : DWORD;
  6706. DeCommitFreeBlockThreshold : DWORD;
  6707. DeCommitTotalFreeThreshold : DWORD;
  6708. LockPrefixTable : DWORD;
  6709. MaximumAllocationSize : DWORD;
  6710. VirtualMemoryThreshold : DWORD;
  6711. ProcessHeapFlags : DWORD;
  6712. ProcessAffinityMask : DWORD;
  6713. CSDVersion : WORD;
  6714. Reserved1 : WORD;
  6715. EditList : DWORD;
  6716. SecurityCookie : DWORD;
  6717. SEHandlerTable : DWORD;
  6718. SEHandlerCount : DWORD;
  6719. end;
  6720. PIMAGE_LOAD_CONFIG_DIRECTORY32 = ^IMAGE_LOAD_CONFIG_DIRECTORY32;
  6721. TIMAGE_LOAD_CONFIG_DIRECTORY32 = IMAGE_LOAD_CONFIG_DIRECTORY32;
  6722. IMAGE_LOAD_CONFIG_DIRECTORY64 = record
  6723. Size : DWORD;
  6724. TimeDateStamp : DWORD;
  6725. MajorVersion : WORD;
  6726. MinorVersion : WORD;
  6727. GlobalFlagsClear : DWORD;
  6728. GlobalFlagsSet : DWORD;
  6729. CriticalSectionDefaultTimeout : DWORD;
  6730. DeCommitFreeBlockThreshold : ULONGLONG;
  6731. DeCommitTotalFreeThreshold : ULONGLONG;
  6732. LockPrefixTable : ULONGLONG;
  6733. MaximumAllocationSize : ULONGLONG;
  6734. VirtualMemoryThreshold : ULONGLONG;
  6735. ProcessAffinityMask : ULONGLONG;
  6736. ProcessHeapFlags : DWORD;
  6737. CSDVersion : WORD;
  6738. Reserved1 : WORD;
  6739. EditList : ULONGLONG;
  6740. SecurityCookie : ULONGLONG;
  6741. SEHandlerTable : ULONGLONG;
  6742. SEHandlerCount : ULONGLONG;
  6743. end;
  6744. PIMAGE_LOAD_CONFIG_DIRECTORY64 = ^IMAGE_LOAD_CONFIG_DIRECTORY64;
  6745. TIMAGE_LOAD_CONFIG_DIRECTORY64 = IMAGE_LOAD_CONFIG_DIRECTORY64;
  6746. {$ifdef _WIN64}
  6747. IMAGE_LOAD_CONFIG_DIRECTORY = IMAGE_LOAD_CONFIG_DIRECTORY64;
  6748. TIMAGE_LOAD_CONFIG_DIRECTORY = TIMAGE_LOAD_CONFIG_DIRECTORY64;
  6749. PIMAGE_LOAD_CONFIG_DIRECTORY = PIMAGE_LOAD_CONFIG_DIRECTORY64;
  6750. {$else}
  6751. IMAGE_LOAD_CONFIG_DIRECTORY = IMAGE_LOAD_CONFIG_DIRECTORY32;
  6752. TIMAGE_LOAD_CONFIG_DIRECTORY = TIMAGE_LOAD_CONFIG_DIRECTORY32;
  6753. PIMAGE_LOAD_CONFIG_DIRECTORY = PIMAGE_LOAD_CONFIG_DIRECTORY32;
  6754. {$endif}
  6755. tagCOMBOBOXINFO = record
  6756. cbSize: DWORD;
  6757. rcItem: TRect;
  6758. rcButton: TRect;
  6759. stateButton: DWORD;
  6760. hwndCombo: HWND;
  6761. hwndItem: HWND;
  6762. hwndList: HWND;
  6763. end;
  6764. TComboboxInfo = tagCOMBOBOXINFO;
  6765. PComboboxInfo = ^TComboboxInfo;
  6766. LPComboboxInfo = PComboboxInfo;
  6767. _TRIVERTEX = record
  6768. x : LONG;
  6769. y : LONG;
  6770. Red : COLOR16;
  6771. Green : COLOR16;
  6772. Blue : COLOR16;
  6773. Alpha : COLOR16;
  6774. end;
  6775. TRIVERTEX = _TRIVERTEX;
  6776. PTRIVERTEX = ^_TRIVERTEX;
  6777. LPTRIVERTEX = PTRIVERTEX;
  6778. _GRADIENT_TRIANGLE = record
  6779. Vertex1 : ULONG;
  6780. Vertex2 : ULONG;
  6781. Vertex3 : ULONG;
  6782. end;
  6783. GRADIENT_TRIANGLE = _GRADIENT_TRIANGLE;
  6784. TGRADIENT_TRIANGLE = _GRADIENT_TRIANGLE;
  6785. PGRADIENT_TRIANGLE = ^_GRADIENT_TRIANGLE;
  6786. LPGRADIENT_TRIANGLE = PGRADIENT_TRIANGLE;
  6787. _GRADIENT_RECT = record
  6788. UpperLeft : ULONG;
  6789. LowerRight : ULONG;
  6790. end;
  6791. GRADIENT_RECT = _GRADIENT_RECT;
  6792. TGRADIENT_RECT = _GRADIENT_RECT;
  6793. PGRADIENT_RECT = ^_GRADIENT_RECT;
  6794. LPGRADIENT_RECT = PGRADIENT_RECT;
  6795. const
  6796. SECURITY_DESCRIPTOR_MIN_LENGTH = SIZEOF(SECURITY_DESCRIPTOR);
  6797. {$endif read_interface}
  6798. {$ifdef read_implementation}
  6799. function fBinary(var a : DCB) : DWORD;
  6800. begin
  6801. fBinary:=(a.flags and bm_DCB_fBinary) shr bp_DCB_fBinary;
  6802. end;
  6803. procedure set_fBinary(var a : DCB; __fBinary : DWORD);
  6804. begin
  6805. a.flags:=a.flags or ((__fBinary shl bp_DCB_fBinary) and bm_DCB_fBinary);
  6806. end;
  6807. function fParity(var a : DCB) : DWORD;
  6808. begin
  6809. fParity:=(a.flags and bm_DCB_fParity) shr bp_DCB_fParity;
  6810. end;
  6811. procedure set_fParity(var a : DCB; __fParity : DWORD);
  6812. begin
  6813. a.flags:=a.flags or ((__fParity shl bp_DCB_fParity) and bm_DCB_fParity);
  6814. end;
  6815. function fOutxCtsFlow(var a : DCB) : DWORD;
  6816. begin
  6817. fOutxCtsFlow:=(a.flags and bm_DCB_fOutxCtsFlow) shr bp_DCB_fOutxCtsFlow;
  6818. end;
  6819. procedure set_fOutxCtsFlow(var a : DCB; __fOutxCtsFlow : DWORD);
  6820. begin
  6821. a.flags:=a.flags or ((__fOutxCtsFlow shl bp_DCB_fOutxCtsFlow) and bm_DCB_fOutxCtsFlow);
  6822. end;
  6823. function fOutxDsrFlow(var a : DCB) : DWORD;
  6824. begin
  6825. fOutxDsrFlow:=(a.flags and bm_DCB_fOutxDsrFlow) shr bp_DCB_fOutxDsrFlow;
  6826. end;
  6827. procedure set_fOutxDsrFlow(var a : DCB; __fOutxDsrFlow : DWORD);
  6828. begin
  6829. a.flags:=a.flags or ((__fOutxDsrFlow shl bp_DCB_fOutxDsrFlow) and bm_DCB_fOutxDsrFlow);
  6830. end;
  6831. function fDtrControl(var a : DCB) : DWORD;
  6832. begin
  6833. fDtrControl:=(a.flags and bm_DCB_fDtrControl) shr bp_DCB_fDtrControl;
  6834. end;
  6835. procedure set_fDtrControl(var a : DCB; __fDtrControl : DWORD);
  6836. begin
  6837. a.flags:=a.flags or ((__fDtrControl shl bp_DCB_fDtrControl) and bm_DCB_fDtrControl);
  6838. end;
  6839. function fDsrSensitivity(var a : DCB) : DWORD;
  6840. begin
  6841. fDsrSensitivity:=(a.flags and bm_DCB_fDsrSensitivity) shr bp_DCB_fDsrSensitivity;
  6842. end;
  6843. procedure set_fDsrSensitivity(var a : DCB; __fDsrSensitivity : DWORD);
  6844. begin
  6845. a.flags:=a.flags or ((__fDsrSensitivity shl bp_DCB_fDsrSensitivity) and bm_DCB_fDsrSensitivity);
  6846. end;
  6847. function fTXContinueOnXoff(var a : DCB) : DWORD;
  6848. begin
  6849. fTXContinueOnXoff:=(a.flags and bm_DCB_fTXContinueOnXoff) shr bp_DCB_fTXContinueOnXoff;
  6850. end;
  6851. procedure set_fTXContinueOnXoff(var a : DCB; __fTXContinueOnXoff : DWORD);
  6852. begin
  6853. a.flags:=a.flags or ((__fTXContinueOnXoff shl bp_DCB_fTXContinueOnXoff) and bm_DCB_fTXContinueOnXoff);
  6854. end;
  6855. function fOutX(var a : DCB) : DWORD;
  6856. begin
  6857. fOutX:=(a.flags and bm_DCB_fOutX) shr bp_DCB_fOutX;
  6858. end;
  6859. procedure set_fOutX(var a : DCB; __fOutX : DWORD);
  6860. begin
  6861. a.flags:=a.flags or ((__fOutX shl bp_DCB_fOutX) and bm_DCB_fOutX);
  6862. end;
  6863. function fInX(var a : DCB) : DWORD;
  6864. begin
  6865. fInX:=(a.flags and bm_DCB_fInX) shr bp_DCB_fInX;
  6866. end;
  6867. procedure set_fInX(var a : DCB; __fInX : DWORD);
  6868. begin
  6869. a.flags:=a.flags or ((__fInX shl bp_DCB_fInX) and bm_DCB_fInX);
  6870. end;
  6871. function fErrorChar(var a : DCB) : DWORD;
  6872. begin
  6873. fErrorChar:=(a.flags and bm_DCB_fErrorChar) shr bp_DCB_fErrorChar;
  6874. end;
  6875. procedure set_fErrorChar(var a : DCB; __fErrorChar : DWORD);
  6876. begin
  6877. a.flags:=a.flags or ((__fErrorChar shl bp_DCB_fErrorChar) and bm_DCB_fErrorChar);
  6878. end;
  6879. function fNull(var a : DCB) : DWORD;
  6880. begin
  6881. fNull:=(a.flags and bm_DCB_fNull) shr bp_DCB_fNull;
  6882. end;
  6883. procedure set_fNull(var a : DCB; __fNull : DWORD);
  6884. begin
  6885. a.flags:=a.flags or ((__fNull shl bp_DCB_fNull) and bm_DCB_fNull);
  6886. end;
  6887. function fRtsControl(var a : DCB) : DWORD;
  6888. begin
  6889. fRtsControl:=(a.flags and bm_DCB_fRtsControl) shr bp_DCB_fRtsControl;
  6890. end;
  6891. procedure set_fRtsControl(var a : DCB; __fRtsControl : DWORD);
  6892. begin
  6893. a.flags:=a.flags or ((__fRtsControl shl bp_DCB_fRtsControl) and bm_DCB_fRtsControl);
  6894. end;
  6895. function fAbortOnError(var a : DCB) : DWORD;
  6896. begin
  6897. fAbortOnError:=(a.flags and bm_DCB_fAbortOnError) shr bp_DCB_fAbortOnError;
  6898. end;
  6899. procedure set_fAbortOnError(var a : DCB; __fAbortOnError : DWORD);
  6900. begin
  6901. a.flags:=a.flags or ((__fAbortOnError shl bp_DCB_fAbortOnError) and bm_DCB_fAbortOnError);
  6902. end;
  6903. function fDummy2(var a : DCB) : DWORD;
  6904. begin
  6905. fDummy2:=(a.flags and bm_DCB_fDummy2) shr bp_DCB_fDummy2;
  6906. end;
  6907. procedure set_fDummy2(var a : DCB; __fDummy2 : DWORD);
  6908. begin
  6909. a.flags:=a.flags or ((__fDummy2 shl bp_DCB_fDummy2) and bm_DCB_fDummy2);
  6910. end;
  6911. function fCtsHold(var a : COMSTAT) : DWORD;
  6912. begin
  6913. fCtsHold:=(a.flag0 and bm_COMSTAT_fCtsHold) shr bp_COMSTAT_fCtsHold;
  6914. end;
  6915. procedure set_fCtsHold(var a : COMSTAT; __fCtsHold : DWORD);
  6916. begin
  6917. a.flag0:=a.flag0 or ((__fCtsHold shl bp_COMSTAT_fCtsHold) and bm_COMSTAT_fCtsHold);
  6918. end;
  6919. function fDsrHold(var a : COMSTAT) : DWORD;
  6920. begin
  6921. fDsrHold:=(a.flag0 and bm_COMSTAT_fDsrHold) shr bp_COMSTAT_fDsrHold;
  6922. end;
  6923. procedure set_fDsrHold(var a : COMSTAT; __fDsrHold : DWORD);
  6924. begin
  6925. a.flag0:=a.flag0 or ((__fDsrHold shl bp_COMSTAT_fDsrHold) and bm_COMSTAT_fDsrHold);
  6926. end;
  6927. function fRlsdHold(var a : COMSTAT) : DWORD;
  6928. begin
  6929. fRlsdHold:=(a.flag0 and bm_COMSTAT_fRlsdHold) shr bp_COMSTAT_fRlsdHold;
  6930. end;
  6931. procedure set_fRlsdHold(var a : COMSTAT; __fRlsdHold : DWORD);
  6932. begin
  6933. a.flag0:=a.flag0 or ((__fRlsdHold shl bp_COMSTAT_fRlsdHold) and bm_COMSTAT_fRlsdHold);
  6934. end;
  6935. function fXoffHold(var a : COMSTAT) : DWORD;
  6936. begin
  6937. fXoffHold:=(a.flag0 and bm_COMSTAT_fXoffHold) shr bp_COMSTAT_fXoffHold;
  6938. end;
  6939. procedure set_fXoffHold(var a : COMSTAT; __fXoffHold : DWORD);
  6940. begin
  6941. a.flag0:=a.flag0 or ((__fXoffHold shl bp_COMSTAT_fXoffHold) and bm_COMSTAT_fXoffHold);
  6942. end;
  6943. function fXoffSent(var a : COMSTAT) : DWORD;
  6944. begin
  6945. fXoffSent:=(a.flag0 and bm_COMSTAT_fXoffSent) shr bp_COMSTAT_fXoffSent;
  6946. end;
  6947. procedure set_fXoffSent(var a : COMSTAT; __fXoffSent : DWORD);
  6948. begin
  6949. a.flag0:=a.flag0 or ((__fXoffSent shl bp_COMSTAT_fXoffSent) and bm_COMSTAT_fXoffSent);
  6950. end;
  6951. function fEof(var a : COMSTAT) : DWORD;
  6952. begin
  6953. fEof:=(a.flag0 and bm_COMSTAT_fEof) shr bp_COMSTAT_fEof;
  6954. end;
  6955. procedure set_fEof(var a : COMSTAT; __fEof : DWORD);
  6956. begin
  6957. a.flag0:=a.flag0 or ((__fEof shl bp_COMSTAT_fEof) and bm_COMSTAT_fEof);
  6958. end;
  6959. function fTxim(var a : COMSTAT) : DWORD;
  6960. begin
  6961. fTxim:=(a.flag0 and bm_COMSTAT_fTxim) shr bp_COMSTAT_fTxim;
  6962. end;
  6963. procedure set_fTxim(var a : COMSTAT; __fTxim : DWORD);
  6964. begin
  6965. a.flag0:=a.flag0 or ((__fTxim shl bp_COMSTAT_fTxim) and bm_COMSTAT_fTxim);
  6966. end;
  6967. function fReserved(var a : COMSTAT) : DWORD;
  6968. begin
  6969. fReserved:=(a.flag0 and bm_COMSTAT_fReserved) shr bp_COMSTAT_fReserved;
  6970. end;
  6971. procedure set_fReserved(var a : COMSTAT; __fReserved : DWORD);
  6972. begin
  6973. a.flag0:=a.flag0 or ((__fReserved shl bp_COMSTAT_fReserved) and bm_COMSTAT_fReserved);
  6974. end;
  6975. function bAppReturnCode(var a : DDEACK) : word;
  6976. begin
  6977. bAppReturnCode:=(a.flag0 and bm_DDEACK_bAppReturnCode) shr bp_DDEACK_bAppReturnCode;
  6978. end;
  6979. procedure set_bAppReturnCode(var a : DDEACK; __bAppReturnCode : word);
  6980. begin
  6981. a.flag0:=a.flag0 or ((__bAppReturnCode shl bp_DDEACK_bAppReturnCode) and bm_DDEACK_bAppReturnCode);
  6982. end;
  6983. function reserved(var a : DDEACK) : word;
  6984. begin
  6985. reserved:=(a.flag0 and bm_DDEACK_reserved) shr bp_DDEACK_reserved;
  6986. end;
  6987. procedure set_reserved(var a : DDEACK; __reserved : word);
  6988. begin
  6989. a.flag0:=a.flag0 or ((__reserved shl bp_DDEACK_reserved) and bm_DDEACK_reserved);
  6990. end;
  6991. function fBusy(var a : DDEACK) : word;
  6992. begin
  6993. fBusy:=(a.flag0 and bm_DDEACK_fBusy) shr bp_DDEACK_fBusy;
  6994. end;
  6995. procedure set_fBusy(var a : DDEACK; __fBusy : word);
  6996. begin
  6997. a.flag0:=a.flag0 or ((__fBusy shl bp_DDEACK_fBusy) and bm_DDEACK_fBusy);
  6998. end;
  6999. function fAck(var a : DDEACK) : word;
  7000. begin
  7001. fAck:=(a.flag0 and bm_DDEACK_fAck) shr bp_DDEACK_fAck;
  7002. end;
  7003. procedure set_fAck(var a : DDEACK; __fAck : word);
  7004. begin
  7005. a.flag0:=a.flag0 or ((__fAck shl bp_DDEACK_fAck) and bm_DDEACK_fAck);
  7006. end;
  7007. function reserved(var a : DDEADVISE) : word;
  7008. begin
  7009. reserved:=(a.flag0 and bm_DDEADVISE_reserved) shr bp_DDEADVISE_reserved;
  7010. end;
  7011. procedure set_reserved(var a : DDEADVISE; __reserved : word);
  7012. begin
  7013. a.flag0:=a.flag0 or ((__reserved shl bp_DDEADVISE_reserved) and bm_DDEADVISE_reserved);
  7014. end;
  7015. function fDeferUpd(var a : DDEADVISE) : word;
  7016. begin
  7017. fDeferUpd:=(a.flag0 and bm_DDEADVISE_fDeferUpd) shr bp_DDEADVISE_fDeferUpd;
  7018. end;
  7019. procedure set_fDeferUpd(var a : DDEADVISE; __fDeferUpd : word);
  7020. begin
  7021. a.flag0:=a.flag0 or ((__fDeferUpd shl bp_DDEADVISE_fDeferUpd) and bm_DDEADVISE_fDeferUpd);
  7022. end;
  7023. function fAckReq(var a : DDEADVISE) : word;
  7024. begin
  7025. fAckReq:=(a.flag0 and bm_DDEADVISE_fAckReq) shr bp_DDEADVISE_fAckReq;
  7026. end;
  7027. procedure set_fAckReq(var a : DDEADVISE; __fAckReq : word);
  7028. begin
  7029. a.flag0:=a.flag0 or ((__fAckReq shl bp_DDEADVISE_fAckReq) and bm_DDEADVISE_fAckReq);
  7030. end;
  7031. function unused(var a : DDEDATA) : word;
  7032. begin
  7033. unused:=(a.flag0 and bm_DDEDATA_unused) shr bp_DDEDATA_unused;
  7034. end;
  7035. procedure set_unused(var a : DDEDATA; __unused : word);
  7036. begin
  7037. a.flag0:=a.flag0 or ((__unused shl bp_DDEDATA_unused) and bm_DDEDATA_unused);
  7038. end;
  7039. function fResponse(var a : DDEDATA) : word;
  7040. begin
  7041. fResponse:=(a.flag0 and bm_DDEDATA_fResponse) shr bp_DDEDATA_fResponse;
  7042. end;
  7043. procedure set_fResponse(var a : DDEDATA; __fResponse : word);
  7044. begin
  7045. a.flag0:=a.flag0 or ((__fResponse shl bp_DDEDATA_fResponse) and bm_DDEDATA_fResponse);
  7046. end;
  7047. function fRelease(var a : DDEDATA) : word;
  7048. begin
  7049. fRelease:=(a.flag0 and bm_DDEDATA_fRelease) shr bp_DDEDATA_fRelease;
  7050. end;
  7051. procedure set_fRelease(var a : DDEDATA; __fRelease : word);
  7052. begin
  7053. a.flag0:=a.flag0 or ((__fRelease shl bp_DDEDATA_fRelease) and bm_DDEDATA_fRelease);
  7054. end;
  7055. function reserved(var a : DDEDATA) : word;
  7056. begin
  7057. reserved:=(a.flag0 and bm_DDEDATA_reserved) shr bp_DDEDATA_reserved;
  7058. end;
  7059. procedure set_reserved(var a : DDEDATA; __reserved : word);
  7060. begin
  7061. a.flag0:=a.flag0 or ((__reserved shl bp_DDEDATA_reserved) and bm_DDEDATA_reserved);
  7062. end;
  7063. function fAckReq(var a : DDEDATA) : word;
  7064. begin
  7065. fAckReq:=(a.flag0 and bm_DDEDATA_fAckReq) shr bp_DDEDATA_fAckReq;
  7066. end;
  7067. procedure set_fAckReq(var a : DDEDATA; __fAckReq : word);
  7068. begin
  7069. a.flag0:=a.flag0 or ((__fAckReq shl bp_DDEDATA_fAckReq) and bm_DDEDATA_fAckReq);
  7070. end;
  7071. function unused(var a : DDELN) : word;
  7072. begin
  7073. unused:=(a.flag0 and bm_DDELN_unused) shr bp_DDELN_unused;
  7074. end;
  7075. procedure set_unused(var a : DDELN; __unused : word);
  7076. begin
  7077. a.flag0:=a.flag0 or ((__unused shl bp_DDELN_unused) and bm_DDELN_unused);
  7078. end;
  7079. function fRelease(var a : DDELN) : word;
  7080. begin
  7081. fRelease:=(a.flag0 and bm_DDELN_fRelease) shr bp_DDELN_fRelease;
  7082. end;
  7083. procedure set_fRelease(var a : DDELN; __fRelease : word);
  7084. begin
  7085. a.flag0:=a.flag0 or ((__fRelease shl bp_DDELN_fRelease) and bm_DDELN_fRelease);
  7086. end;
  7087. function fDeferUpd(var a : DDELN) : word;
  7088. begin
  7089. fDeferUpd:=(a.flag0 and bm_DDELN_fDeferUpd) shr bp_DDELN_fDeferUpd;
  7090. end;
  7091. procedure set_fDeferUpd(var a : DDELN; __fDeferUpd : word);
  7092. begin
  7093. a.flag0:=a.flag0 or ((__fDeferUpd shl bp_DDELN_fDeferUpd) and bm_DDELN_fDeferUpd);
  7094. end;
  7095. function fAckReq(var a : DDELN) : word;
  7096. begin
  7097. fAckReq:=(a.flag0 and bm_DDELN_fAckReq) shr bp_DDELN_fAckReq;
  7098. end;
  7099. procedure set_fAckReq(var a : DDELN; __fAckReq : word);
  7100. begin
  7101. a.flag0:=a.flag0 or ((__fAckReq shl bp_DDELN_fAckReq) and bm_DDELN_fAckReq);
  7102. end;
  7103. function unused(var a : DDEPOKE) : word;
  7104. begin
  7105. unused:=(a.flag0 and bm_DDEPOKE_unused) shr bp_DDEPOKE_unused;
  7106. end;
  7107. procedure set_unused(var a : DDEPOKE; __unused : word);
  7108. begin
  7109. a.flag0:=a.flag0 or ((__unused shl bp_DDEPOKE_unused) and bm_DDEPOKE_unused);
  7110. end;
  7111. function fRelease(var a : DDEPOKE) : word;
  7112. begin
  7113. fRelease:=(a.flag0 and bm_DDEPOKE_fRelease) shr bp_DDEPOKE_fRelease;
  7114. end;
  7115. procedure set_fRelease(var a : DDEPOKE; __fRelease : word);
  7116. begin
  7117. a.flag0:=a.flag0 or ((__fRelease shl bp_DDEPOKE_fRelease) and bm_DDEPOKE_fRelease);
  7118. end;
  7119. function fReserved(var a : DDEPOKE) : word;
  7120. begin
  7121. fReserved:=(a.flag0 and bm_DDEPOKE_fReserved) shr bp_DDEPOKE_fReserved;
  7122. end;
  7123. procedure set_fReserved(var a : DDEPOKE; __fReserved : word);
  7124. begin
  7125. a.flag0:=a.flag0 or ((__fReserved shl bp_DDEPOKE_fReserved) and bm_DDEPOKE_fReserved);
  7126. end;
  7127. function unused(var a : DDEUP) : word;
  7128. begin
  7129. unused:=(a.flag0 and bm_DDEUP_unused) shr bp_DDEUP_unused;
  7130. end;
  7131. procedure set_unused(var a : DDEUP; __unused : word);
  7132. begin
  7133. a.flag0:=a.flag0 or ((__unused shl bp_DDEUP_unused) and bm_DDEUP_unused);
  7134. end;
  7135. function fAck(var a : DDEUP) : word;
  7136. begin
  7137. fAck:=(a.flag0 and bm_DDEUP_fAck) shr bp_DDEUP_fAck;
  7138. end;
  7139. procedure set_fAck(var a : DDEUP; __fAck : word);
  7140. begin
  7141. a.flag0:=a.flag0 or ((__fAck shl bp_DDEUP_fAck) and bm_DDEUP_fAck);
  7142. end;
  7143. function fRelease(var a : DDEUP) : word;
  7144. begin
  7145. fRelease:=(a.flag0 and bm_DDEUP_fRelease) shr bp_DDEUP_fRelease;
  7146. end;
  7147. procedure set_fRelease(var a : DDEUP; __fRelease : word);
  7148. begin
  7149. a.flag0:=a.flag0 or ((__fRelease shl bp_DDEUP_fRelease) and bm_DDEUP_fRelease);
  7150. end;
  7151. function fReserved(var a : DDEUP) : word;
  7152. begin
  7153. fReserved:=(a.flag0 and bm_DDEUP_fReserved) shr bp_DDEUP_fReserved;
  7154. end;
  7155. procedure set_fReserved(var a : DDEUP; __fReserved : word);
  7156. begin
  7157. a.flag0:=a.flag0 or ((__fReserved shl bp_DDEUP_fReserved) and bm_DDEUP_fReserved);
  7158. end;
  7159. function fAckReq(var a : DDEUP) : word;
  7160. begin
  7161. fAckReq:=(a.flag0 and bm_DDEUP_fAckReq) shr bp_DDEUP_fAckReq;
  7162. end;
  7163. procedure set_fAckReq(var a : DDEUP; __fAckReq : word);
  7164. begin
  7165. a.flag0:=a.flag0 or ((__fAckReq shl bp_DDEUP_fAckReq) and bm_DDEUP_fAckReq);
  7166. end;
  7167. {$endif read_implementation}