struct.inc 198 KB

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