struct.inc 232 KB

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