struct.inc 256 KB

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