struct.inc 251 KB

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