1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607 |
- {******************************************************************************}
- { }
- { Graphics Device Interface API interface Unit for Object Pascal }
- { }
- { Portions created by Microsoft are Copyright (C) 1995-2001 Microsoft }
- { Corporation. All Rights Reserved. }
- { }
- { The original file is: wingdi.h, released June 2000. The original Pascal }
- { code is: WinGDI.pas, released December 2000. The initial developer of the }
- { Pascal code is Marcel van Brakel (brakelm att chello dott nl). }
- { }
- { Portions created by Marcel van Brakel are Copyright (C) 1999-2001 }
- { Marcel van Brakel. All Rights Reserved. }
- { }
- { Obtained through: Joint Endeavour of Delphi Innovators (Project JEDI) }
- { }
- { You may retrieve the latest version of this file at the Project JEDI }
- { APILIB home page, located at http://jedi-apilib.sourceforge.net }
- { }
- { The contents of this file are used with permission, subject to the Mozilla }
- { Public License Version 1.1 (the "License"); you may not use this file except }
- { in compliance with the License. You may obtain a copy of the License at }
- { http://www.mozilla.org/MPL/MPL-1.1.html }
- { }
- { Software distributed under the License is distributed on an "AS IS" basis, }
- { WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for }
- { the specific language governing rights and limitations under the License. }
- { }
- { Alternatively, the contents of this file may be used under the terms of the }
- { GNU Lesser General Public License (the "LGPL License"), in which case the }
- { provisions of the LGPL License are applicable instead of those above. }
- { If you wish to allow use of your version of this file only under the terms }
- { of the LGPL License and not to allow others to use your version of this file }
- { under the MPL, indicate your decision by deleting the provisions above and }
- { replace them with the notice and other provisions required by the LGPL }
- { License. If you do not delete the provisions above, a recipient may use }
- { your version of this file under either the MPL or the LGPL License. }
- { }
- { For more information about the LGPL: http://www.gnu.org/copyleft/lesser.html }
- { }
- {******************************************************************************}
- unit JwaWinGDI;
- {$WEAKPACKAGEUNIT}
- {$HPPEMIT ''}
- {$HPPEMIT '#include "WinGDI.h"'}
- {$HPPEMIT ''}
- {$I jediapilib.inc}
- interface
- uses
- JwaWinNT, JwaWinType;
- // Binary raster ops
- const
- R2_BLACK = 1; // 0
- {$EXTERNALSYM R2_BLACK}
- R2_NOTMERGEPEN = 2; // DPon
- {$EXTERNALSYM R2_NOTMERGEPEN}
- R2_MASKNOTPEN = 3; // DPna
- {$EXTERNALSYM R2_MASKNOTPEN}
- R2_NOTCOPYPEN = 4; // PN
- {$EXTERNALSYM R2_NOTCOPYPEN}
- R2_MASKPENNOT = 5; // PDna
- {$EXTERNALSYM R2_MASKPENNOT}
- R2_NOT = 6; // Dn
- {$EXTERNALSYM R2_NOT}
- R2_XORPEN = 7; // DPx
- {$EXTERNALSYM R2_XORPEN}
- R2_NOTMASKPEN = 8; // DPan
- {$EXTERNALSYM R2_NOTMASKPEN}
- R2_MASKPEN = 9; // DPa
- {$EXTERNALSYM R2_MASKPEN}
- R2_NOTXORPEN = 10; // DPxn
- {$EXTERNALSYM R2_NOTXORPEN}
- R2_NOP = 11; // D
- {$EXTERNALSYM R2_NOP}
- R2_MERGENOTPEN = 12; // DPno
- {$EXTERNALSYM R2_MERGENOTPEN}
- R2_COPYPEN = 13; // P
- {$EXTERNALSYM R2_COPYPEN}
- R2_MERGEPENNOT = 14; // PDno
- {$EXTERNALSYM R2_MERGEPENNOT}
- R2_MERGEPEN = 15; // DPo
- {$EXTERNALSYM R2_MERGEPEN}
- R2_WHITE = 16; // 1
- {$EXTERNALSYM R2_WHITE}
- R2_LAST = 16;
- {$EXTERNALSYM R2_LAST}
- // Ternary raster operations
- SRCCOPY = DWORD($00CC0020); // dest = source
- {$EXTERNALSYM SRCCOPY}
- SRCPAINT = DWORD($00EE0086); // dest = source OR dest
- {$EXTERNALSYM SRCPAINT}
- SRCAND = DWORD($008800C6); // dest = source AND dest
- {$EXTERNALSYM SRCAND}
- SRCINVERT = DWORD($00660046); // dest = source XOR dest
- {$EXTERNALSYM SRCINVERT}
- SRCERASE = DWORD($00440328); // dest = source AND (NOT dest )
- {$EXTERNALSYM SRCERASE}
- NOTSRCCOPY = DWORD($00330008); // dest = (NOT source)
- {$EXTERNALSYM NOTSRCCOPY}
- NOTSRCERASE = DWORD($001100A6); // dest = (NOT src) AND (NOT dest)
- {$EXTERNALSYM NOTSRCERASE}
- MERGECOPY = DWORD($00C000CA); // dest = (source AND pattern)
- {$EXTERNALSYM MERGECOPY}
- MERGEPAINT = DWORD($00BB0226); // dest = (NOT source) OR dest
- {$EXTERNALSYM MERGEPAINT}
- PATCOPY = DWORD($00F00021); // dest = pattern
- {$EXTERNALSYM PATCOPY}
- PATPAINT = DWORD($00FB0A09); // dest = DPSnoo
- {$EXTERNALSYM PATPAINT}
- PATINVERT = DWORD($005A0049); // dest = pattern XOR dest
- {$EXTERNALSYM PATINVERT}
- DSTINVERT = DWORD($00550009); // dest = (NOT dest)
- {$EXTERNALSYM DSTINVERT}
- BLACKNESS = DWORD($00000042); // dest = BLACK
- {$EXTERNALSYM BLACKNESS}
- WHITENESS = DWORD($00FF0062); // dest = WHITE
- {$EXTERNALSYM WHITENESS}
- NOMIRRORBITMAP = DWORD($80000000); // Do not Mirror the bitmap in this call
- {$EXTERNALSYM NOMIRRORBITMAP}
- CAPTUREBLT = DWORD($40000000); // Include layered windows
- {$EXTERNALSYM CAPTUREBLT}
- // Quaternary raster codes
- function MAKEROP4(Fore, Back: DWORD): DWORD;
- {$EXTERNALSYM MAKEROP4}
- const
- GDI_ERROR = DWORD($FFFFFFFF);
- {$EXTERNALSYM GDI_ERROR}
- HGDI_ERROR = HANDLE($FFFFFFFF);
- {$EXTERNALSYM HGDI_ERROR}
- // Region Flags
- ERROR = 0;
- {$EXTERNALSYM ERROR}
- NULLREGION = 1;
- {$EXTERNALSYM NULLREGION}
- SIMPLEREGION = 2;
- {$EXTERNALSYM SIMPLEREGION}
- COMPLEXREGION = 3;
- {$EXTERNALSYM COMPLEXREGION}
- RGN_ERROR = ERROR;
- {$EXTERNALSYM RGN_ERROR}
- // CombineRgn() Styles
- RGN_AND = 1;
- {$EXTERNALSYM RGN_AND}
- RGN_OR = 2;
- {$EXTERNALSYM RGN_OR}
- RGN_XOR = 3;
- {$EXTERNALSYM RGN_XOR}
- RGN_DIFF = 4;
- {$EXTERNALSYM RGN_DIFF}
- RGN_COPY = 5;
- {$EXTERNALSYM RGN_COPY}
- RGN_MIN = RGN_AND;
- {$EXTERNALSYM RGN_MIN}
- RGN_MAX = RGN_COPY;
- {$EXTERNALSYM RGN_MAX}
- // StretchBlt() Modes
- BLACKONWHITE = 1;
- {$EXTERNALSYM BLACKONWHITE}
- WHITEONBLACK = 2;
- {$EXTERNALSYM WHITEONBLACK}
- COLORONCOLOR = 3;
- {$EXTERNALSYM COLORONCOLOR}
- HALFTONE = 4;
- {$EXTERNALSYM HALFTONE}
- MAXSTRETCHBLTMODE = 4;
- {$EXTERNALSYM MAXSTRETCHBLTMODE}
- // New StretchBlt() Modes
- STRETCH_ANDSCANS = BLACKONWHITE;
- {$EXTERNALSYM STRETCH_ANDSCANS}
- STRETCH_ORSCANS = WHITEONBLACK;
- {$EXTERNALSYM STRETCH_ORSCANS}
- STRETCH_DELETESCANS = COLORONCOLOR;
- {$EXTERNALSYM STRETCH_DELETESCANS}
- STRETCH_HALFTONE = HALFTONE;
- {$EXTERNALSYM STRETCH_HALFTONE}
- // PolyFill() Modes
- ALTERNATE = 1;
- {$EXTERNALSYM ALTERNATE}
- WINDING = 2;
- {$EXTERNALSYM WINDING}
- POLYFILL_LAST = 2;
- {$EXTERNALSYM POLYFILL_LAST}
- // Layout Orientation Options
- LAYOUT_RTL = $00000001; // Right to left
- {$EXTERNALSYM LAYOUT_RTL}
- LAYOUT_BTT = $00000002; // Bottom to top
- {$EXTERNALSYM LAYOUT_BTT}
- LAYOUT_VBH = $00000004; // Vertical before horizontal
- {$EXTERNALSYM LAYOUT_VBH}
- LAYOUT_ORIENTATIONMASK = LAYOUT_RTL or LAYOUT_BTT or LAYOUT_VBH;
- {$EXTERNALSYM LAYOUT_ORIENTATIONMASK}
- LAYOUT_BITMAPORIENTATIONPRESERVED = $00000008;
- {$EXTERNALSYM LAYOUT_BITMAPORIENTATIONPRESERVED}
- // Text Alignment Options
- TA_NOUPDATECP = 0;
- {$EXTERNALSYM TA_NOUPDATECP}
- TA_UPDATECP = 1;
- {$EXTERNALSYM TA_UPDATECP}
- TA_LEFT = 0;
- {$EXTERNALSYM TA_LEFT}
- TA_RIGHT = 2;
- {$EXTERNALSYM TA_RIGHT}
- TA_CENTER = 6;
- {$EXTERNALSYM TA_CENTER}
- TA_TOP = 0;
- {$EXTERNALSYM TA_TOP}
- TA_BOTTOM = 8;
- {$EXTERNALSYM TA_BOTTOM}
- TA_BASELINE = 24;
- {$EXTERNALSYM TA_BASELINE}
- TA_RTLREADING = 256;
- {$EXTERNALSYM TA_RTLREADING}
- TA_MASK = TA_BASELINE + TA_CENTER + TA_UPDATECP + TA_RTLREADING;
- {$EXTERNALSYM TA_MASK}
- VTA_BASELINE = TA_BASELINE;
- {$EXTERNALSYM VTA_BASELINE}
- VTA_LEFT = TA_BOTTOM;
- {$EXTERNALSYM VTA_LEFT}
- VTA_RIGHT = TA_TOP;
- {$EXTERNALSYM VTA_RIGHT}
- VTA_CENTER = TA_CENTER;
- {$EXTERNALSYM VTA_CENTER}
- VTA_BOTTOM = TA_RIGHT;
- {$EXTERNALSYM VTA_BOTTOM}
- VTA_TOP = TA_LEFT;
- {$EXTERNALSYM VTA_TOP}
- ETO_OPAQUE = $0002;
- {$EXTERNALSYM ETO_OPAQUE}
- ETO_CLIPPED = $0004;
- {$EXTERNALSYM ETO_CLIPPED}
- ETO_GLYPH_INDEX = $0010;
- {$EXTERNALSYM ETO_GLYPH_INDEX}
- ETO_RTLREADING = $0080;
- {$EXTERNALSYM ETO_RTLREADING}
- ETO_NUMERICSLOCAL = $0400;
- {$EXTERNALSYM ETO_NUMERICSLOCAL}
- ETO_NUMERICSLATIN = $0800;
- {$EXTERNALSYM ETO_NUMERICSLATIN}
- ETO_IGNORELANGUAGE = $1000;
- {$EXTERNALSYM ETO_IGNORELANGUAGE}
- ETO_PDY = $2000;
- {$EXTERNALSYM ETO_PDY}
- ASPECT_FILTERING = $0001;
- {$EXTERNALSYM ASPECT_FILTERING}
- // Bounds Accumulation APIs
- DCB_RESET = $0001;
- {$EXTERNALSYM DCB_RESET}
- DCB_ACCUMULATE = $0002;
- {$EXTERNALSYM DCB_ACCUMULATE}
- DCB_DIRTY = DCB_ACCUMULATE;
- {$EXTERNALSYM DCB_DIRTY}
- DCB_SET = DCB_RESET or DCB_ACCUMULATE;
- {$EXTERNALSYM DCB_SET}
- DCB_ENABLE = $0004;
- {$EXTERNALSYM DCB_ENABLE}
- DCB_DISABLE = $0008;
- {$EXTERNALSYM DCB_DISABLE}
- // Metafile Functions
- META_SETBKCOLOR = $0201;
- {$EXTERNALSYM META_SETBKCOLOR}
- META_SETBKMODE = $0102;
- {$EXTERNALSYM META_SETBKMODE}
- META_SETMAPMODE = $0103;
- {$EXTERNALSYM META_SETMAPMODE}
- META_SETROP2 = $0104;
- {$EXTERNALSYM META_SETROP2}
- META_SETRELABS = $0105;
- {$EXTERNALSYM META_SETRELABS}
- META_SETPOLYFILLMODE = $0106;
- {$EXTERNALSYM META_SETPOLYFILLMODE}
- META_SETSTRETCHBLTMODE = $0107;
- {$EXTERNALSYM META_SETSTRETCHBLTMODE}
- META_SETTEXTCHAREXTRA = $0108;
- {$EXTERNALSYM META_SETTEXTCHAREXTRA}
- META_SETTEXTCOLOR = $0209;
- {$EXTERNALSYM META_SETTEXTCOLOR}
- META_SETTEXTJUSTIFICATION = $020A;
- {$EXTERNALSYM META_SETTEXTJUSTIFICATION}
- META_SETWINDOWORG = $020B;
- {$EXTERNALSYM META_SETWINDOWORG}
- META_SETWINDOWEXT = $020C;
- {$EXTERNALSYM META_SETWINDOWEXT}
- META_SETVIEWPORTORG = $020D;
- {$EXTERNALSYM META_SETVIEWPORTORG}
- META_SETVIEWPORTEXT = $020E;
- {$EXTERNALSYM META_SETVIEWPORTEXT}
- META_OFFSETWINDOWORG = $020F;
- {$EXTERNALSYM META_OFFSETWINDOWORG}
- META_SCALEWINDOWEXT = $0410;
- {$EXTERNALSYM META_SCALEWINDOWEXT}
- META_OFFSETVIEWPORTORG = $0211;
- {$EXTERNALSYM META_OFFSETVIEWPORTORG}
- META_SCALEVIEWPORTEXT = $0412;
- {$EXTERNALSYM META_SCALEVIEWPORTEXT}
- META_LINETO = $0213;
- {$EXTERNALSYM META_LINETO}
- META_MOVETO = $0214;
- {$EXTERNALSYM META_MOVETO}
- META_EXCLUDECLIPRECT = $0415;
- {$EXTERNALSYM META_EXCLUDECLIPRECT}
- META_INTERSECTCLIPRECT = $0416;
- {$EXTERNALSYM META_INTERSECTCLIPRECT}
- META_ARC = $0817;
- {$EXTERNALSYM META_ARC}
- META_ELLIPSE = $0418;
- {$EXTERNALSYM META_ELLIPSE}
- META_FLOODFILL = $0419;
- {$EXTERNALSYM META_FLOODFILL}
- META_PIE = $081A;
- {$EXTERNALSYM META_PIE}
- META_RECTANGLE = $041B;
- {$EXTERNALSYM META_RECTANGLE}
- META_ROUNDRECT = $061C;
- {$EXTERNALSYM META_ROUNDRECT}
- META_PATBLT = $061D;
- {$EXTERNALSYM META_PATBLT}
- META_SAVEDC = $001E;
- {$EXTERNALSYM META_SAVEDC}
- META_SETPIXEL = $041F;
- {$EXTERNALSYM META_SETPIXEL}
- META_OFFSETCLIPRGN = $0220;
- {$EXTERNALSYM META_OFFSETCLIPRGN}
- META_TEXTOUT = $0521;
- {$EXTERNALSYM META_TEXTOUT}
- META_BITBLT = $0922;
- {$EXTERNALSYM META_BITBLT}
- META_STRETCHBLT = $0B23;
- {$EXTERNALSYM META_STRETCHBLT}
- META_POLYGON = $0324;
- {$EXTERNALSYM META_POLYGON}
- META_POLYLINE = $0325;
- {$EXTERNALSYM META_POLYLINE}
- META_ESCAPE = $0626;
- {$EXTERNALSYM META_ESCAPE}
- META_RESTOREDC = $0127;
- {$EXTERNALSYM META_RESTOREDC}
- META_FILLREGION = $0228;
- {$EXTERNALSYM META_FILLREGION}
- META_FRAMEREGION = $0429;
- {$EXTERNALSYM META_FRAMEREGION}
- META_INVERTREGION = $012A;
- {$EXTERNALSYM META_INVERTREGION}
- META_PAINTREGION = $012B;
- {$EXTERNALSYM META_PAINTREGION}
- META_SELECTCLIPREGION = $012C;
- {$EXTERNALSYM META_SELECTCLIPREGION}
- META_SELECTOBJECT = $012D;
- {$EXTERNALSYM META_SELECTOBJECT}
- META_SETTEXTALIGN = $012E;
- {$EXTERNALSYM META_SETTEXTALIGN}
- META_CHORD = $0830;
- {$EXTERNALSYM META_CHORD}
- META_SETMAPPERFLAGS = $0231;
- {$EXTERNALSYM META_SETMAPPERFLAGS}
- META_EXTTEXTOUT = $0a32;
- {$EXTERNALSYM META_EXTTEXTOUT}
- META_SETDIBTODEV = $0d33;
- {$EXTERNALSYM META_SETDIBTODEV}
- META_SELECTPALETTE = $0234;
- {$EXTERNALSYM META_SELECTPALETTE}
- META_REALIZEPALETTE = $0035;
- {$EXTERNALSYM META_REALIZEPALETTE}
- META_ANIMATEPALETTE = $0436;
- {$EXTERNALSYM META_ANIMATEPALETTE}
- META_SETPALENTRIES = $0037;
- {$EXTERNALSYM META_SETPALENTRIES}
- META_POLYPOLYGON = $0538;
- {$EXTERNALSYM META_POLYPOLYGON}
- META_RESIZEPALETTE = $0139;
- {$EXTERNALSYM META_RESIZEPALETTE}
- META_DIBBITBLT = $0940;
- {$EXTERNALSYM META_DIBBITBLT}
- META_DIBSTRETCHBLT = $0b41;
- {$EXTERNALSYM META_DIBSTRETCHBLT}
- META_DIBCREATEPATTERNBRUSH = $0142;
- {$EXTERNALSYM META_DIBCREATEPATTERNBRUSH}
- META_STRETCHDIB = $0f43;
- {$EXTERNALSYM META_STRETCHDIB}
- META_EXTFLOODFILL = $0548;
- {$EXTERNALSYM META_EXTFLOODFILL}
- META_SETLAYOUT = $0149;
- {$EXTERNALSYM META_SETLAYOUT}
- META_DELETEOBJECT = $01f0;
- {$EXTERNALSYM META_DELETEOBJECT}
- META_CREATEPALETTE = $00f7;
- {$EXTERNALSYM META_CREATEPALETTE}
- META_CREATEPATTERNBRUSH = $01F9;
- {$EXTERNALSYM META_CREATEPATTERNBRUSH}
- META_CREATEPENINDIRECT = $02FA;
- {$EXTERNALSYM META_CREATEPENINDIRECT}
- META_CREATEFONTINDIRECT = $02FB;
- {$EXTERNALSYM META_CREATEFONTINDIRECT}
- META_CREATEBRUSHINDIRECT = $02FC;
- {$EXTERNALSYM META_CREATEBRUSHINDIRECT}
- META_CREATEREGION = $06FF;
- {$EXTERNALSYM META_CREATEREGION}
- type
- PDrawPatRect = ^TDrawPatRect;
- _DRAWPATRECT = record
- ptPosition: POINT;
- ptSize: POINT;
- wStyle: WORD;
- wPattern: WORD;
- end;
- {$EXTERNALSYM _DRAWPATRECT}
- DRAWPATRECT = _DRAWPATRECT;
- {$EXTERNALSYM DRAWPATRECT}
- TDrawPatRect = _DRAWPATRECT;
- // GDI Escapes
- const
- NEWFRAME = 1;
- {$EXTERNALSYM NEWFRAME}
- _ABORTDOC = 2; // Underscore prfix by translator (nameclash)
- {$EXTERNALSYM ABORTDOC}
- NEXTBAND = 3;
- {$EXTERNALSYM NEXTBAND}
- SETCOLORTABLE = 4;
- {$EXTERNALSYM SETCOLORTABLE}
- GETCOLORTABLE = 5;
- {$EXTERNALSYM GETCOLORTABLE}
- FLUSHOUTPUT = 6;
- {$EXTERNALSYM FLUSHOUTPUT}
- DRAFTMODE = 7;
- {$EXTERNALSYM DRAFTMODE}
- QUERYESCSUPPORT = 8;
- {$EXTERNALSYM QUERYESCSUPPORT}
- SETABORTPROC_ = 9; // Underscore prfix by translator (nameclash)
- {$EXTERNALSYM SETABORTPROC}
- STARTDOC_ = 10; // Underscore prfix by translator (nameclash)
- {$EXTERNALSYM STARTDOC}
- ENDDOC_ = 11; // Underscore prfix by translator (nameclash)
- {$EXTERNALSYM ENDDOC}
- GETPHYSPAGESIZE = 12;
- {$EXTERNALSYM GETPHYSPAGESIZE}
- GETPRINTINGOFFSET = 13;
- {$EXTERNALSYM GETPRINTINGOFFSET}
- GETSCALINGFACTOR = 14;
- {$EXTERNALSYM GETSCALINGFACTOR}
- MFCOMMENT = 15;
- {$EXTERNALSYM MFCOMMENT}
- GETPENWIDTH = 16;
- {$EXTERNALSYM GETPENWIDTH}
- SETCOPYCOUNT = 17;
- {$EXTERNALSYM SETCOPYCOUNT}
- SELECTPAPERSOURCE = 18;
- {$EXTERNALSYM SELECTPAPERSOURCE}
- DEVICEDATA = 19;
- {$EXTERNALSYM DEVICEDATA}
- PASSTHROUGH = 19;
- {$EXTERNALSYM PASSTHROUGH}
- GETTECHNOLGY = 20;
- {$EXTERNALSYM GETTECHNOLGY}
- GETTECHNOLOGY = 20;
- {$EXTERNALSYM GETTECHNOLOGY}
- SETLINECAP = 21;
- {$EXTERNALSYM SETLINECAP}
- SETLINEJOIN = 22;
- {$EXTERNALSYM SETLINEJOIN}
- SETMITERLIMIT_ = 23; // underscore prefix by translator (nameclash)
- {$EXTERNALSYM SETMITERLIMIT}
- BANDINFO = 24;
- {$EXTERNALSYM BANDINFO}
- DRAWPATTERNRECT = 25;
- {$EXTERNALSYM DRAWPATTERNRECT}
- GETVECTORPENSIZE = 26;
- {$EXTERNALSYM GETVECTORPENSIZE}
- GETVECTORBRUSHSIZE = 27;
- {$EXTERNALSYM GETVECTORBRUSHSIZE}
- ENABLEDUPLEX = 28;
- {$EXTERNALSYM ENABLEDUPLEX}
- GETSETPAPERBINS = 29;
- {$EXTERNALSYM GETSETPAPERBINS}
- GETSETPRINTORIENT = 30;
- {$EXTERNALSYM GETSETPRINTORIENT}
- ENUMPAPERBINS = 31;
- {$EXTERNALSYM ENUMPAPERBINS}
- SETDIBSCALING = 32;
- {$EXTERNALSYM SETDIBSCALING}
- EPSPRINTING = 33;
- {$EXTERNALSYM EPSPRINTING}
- ENUMPAPERMETRICS = 34;
- {$EXTERNALSYM ENUMPAPERMETRICS}
- GETSETPAPERMETRICS = 35;
- {$EXTERNALSYM GETSETPAPERMETRICS}
- POSTSCRIPT_DATA = 37;
- {$EXTERNALSYM POSTSCRIPT_DATA}
- POSTSCRIPT_IGNORE = 38;
- {$EXTERNALSYM POSTSCRIPT_IGNORE}
- MOUSETRAILS = 39;
- {$EXTERNALSYM MOUSETRAILS}
- GETDEVICEUNITS = 42;
- {$EXTERNALSYM GETDEVICEUNITS}
- GETEXTENDEDTEXTMETRICS = 256;
- {$EXTERNALSYM GETEXTENDEDTEXTMETRICS}
- GETEXTENTTABLE = 257;
- {$EXTERNALSYM GETEXTENTTABLE}
- GETPAIRKERNTABLE = 258;
- {$EXTERNALSYM GETPAIRKERNTABLE}
- GETTRACKKERNTABLE = 259;
- {$EXTERNALSYM GETTRACKKERNTABLE}
- EXTTEXTOUT_ = 512; // underscore prefix by translator (nameclash)
- {$EXTERNALSYM EXTTEXTOUT}
- GETFACENAME = 513;
- {$EXTERNALSYM GETFACENAME}
- DOWNLOADFACE = 514;
- {$EXTERNALSYM DOWNLOADFACE}
- ENABLERELATIVEWIDTHS = 768;
- {$EXTERNALSYM ENABLERELATIVEWIDTHS}
- ENABLEPAIRKERNING = 769;
- {$EXTERNALSYM ENABLEPAIRKERNING}
- SETKERNTRACK = 770;
- {$EXTERNALSYM SETKERNTRACK}
- SETALLJUSTVALUES = 771;
- {$EXTERNALSYM SETALLJUSTVALUES}
- SETCHARSET = 772;
- {$EXTERNALSYM SETCHARSET}
- STRETCHBLT_ESCAPE = 2048; // suffix _ESCAPE by translator because of
- // name-clash with StretchBlt function
- {$EXTERNALSYM STRETCHBLT}
- METAFILE_DRIVER = 2049;
- {$EXTERNALSYM METAFILE_DRIVER}
- GETSETSCREENPARAMS = 3072;
- {$EXTERNALSYM GETSETSCREENPARAMS}
- QUERYDIBSUPPORT = 3073;
- {$EXTERNALSYM QUERYDIBSUPPORT}
- BEGIN_PATH = 4096;
- {$EXTERNALSYM BEGIN_PATH}
- CLIP_TO_PATH = 4097;
- {$EXTERNALSYM CLIP_TO_PATH}
- END_PATH = 4098;
- {$EXTERNALSYM END_PATH}
- EXT_DEVICE_CAPS = 4099;
- {$EXTERNALSYM EXT_DEVICE_CAPS}
- RESTORE_CTM = 4100;
- {$EXTERNALSYM RESTORE_CTM}
- SAVE_CTM = 4101;
- {$EXTERNALSYM SAVE_CTM}
- SET_ARC_DIRECTION = 4102;
- {$EXTERNALSYM SET_ARC_DIRECTION}
- SET_BACKGROUND_COLOR = 4103;
- {$EXTERNALSYM SET_BACKGROUND_COLOR}
- SET_POLY_MODE = 4104;
- {$EXTERNALSYM SET_POLY_MODE}
- SET_SCREEN_ANGLE = 4105;
- {$EXTERNALSYM SET_SCREEN_ANGLE}
- SET_SPREAD = 4106;
- {$EXTERNALSYM SET_SPREAD}
- TRANSFORM_CTM = 4107;
- {$EXTERNALSYM TRANSFORM_CTM}
- SET_CLIP_BOX = 4108;
- {$EXTERNALSYM SET_CLIP_BOX}
- SET_BOUNDS = 4109;
- {$EXTERNALSYM SET_BOUNDS}
- SET_MIRROR_MODE = 4110;
- {$EXTERNALSYM SET_MIRROR_MODE}
- OPENCHANNEL = 4110;
- {$EXTERNALSYM OPENCHANNEL}
- DOWNLOADHEADER = 4111;
- {$EXTERNALSYM DOWNLOADHEADER}
- CLOSECHANNEL = 4112;
- {$EXTERNALSYM CLOSECHANNEL}
- POSTSCRIPT_PASSTHROUGH = 4115;
- {$EXTERNALSYM POSTSCRIPT_PASSTHROUGH}
- ENCAPSULATED_POSTSCRIPT = 4116;
- {$EXTERNALSYM ENCAPSULATED_POSTSCRIPT}
- POSTSCRIPT_IDENTIFY = 4117; // new escape for NT5 pscript driver
- {$EXTERNALSYM POSTSCRIPT_IDENTIFY}
- POSTSCRIPT_INJECTION = 4118; // new escape for NT5 pscript driver
- {$EXTERNALSYM POSTSCRIPT_INJECTION}
- CHECKJPEGFORMAT = 4119;
- {$EXTERNALSYM CHECKJPEGFORMAT}
- CHECKPNGFORMAT = 4120;
- {$EXTERNALSYM CHECKPNGFORMAT}
- GET_PS_FEATURESETTING = 4121; // new escape for NT5 pscript driver
- {$EXTERNALSYM GET_PS_FEATURESETTING}
- SPCLPASSTHROUGH2 = 4568; // new escape for NT5 pscript driver
- {$EXTERNALSYM SPCLPASSTHROUGH2}
- //
- // Parameters for POSTSCRIPT_IDENTIFY escape
- //
- PSIDENT_GDICENTRIC = 0;
- {$EXTERNALSYM PSIDENT_GDICENTRIC}
- PSIDENT_PSCENTRIC = 1;
- {$EXTERNALSYM PSIDENT_PSCENTRIC}
- //
- // Header structure for the input buffer to POSTSCRIPT_INJECTION escape
- //
- type
- PPsInjectData = ^TPsInjectData;
- _PSINJECTDATA = record
- DataBytes: DWORD; // number of raw data bytes (NOT including this header)
- InjectionPoint: WORD; // injection point
- PageNumber: WORD; // page number to apply the injection
- // Followed by raw data to be injected
- end;
- {$EXTERNALSYM _PSINJECTDATA}
- PSINJECTDATA = _PSINJECTDATA;
- {$EXTERNALSYM PSINJECTDATA}
- TPsInjectData = _PSINJECTDATA;
- //
- // Constants for PSINJECTDATA.InjectionPoint field
- //
- const
- PSINJECT_BEGINSTREAM = 1;
- {$EXTERNALSYM PSINJECT_BEGINSTREAM}
- PSINJECT_PSADOBE = 2;
- {$EXTERNALSYM PSINJECT_PSADOBE}
- PSINJECT_PAGESATEND = 3;
- {$EXTERNALSYM PSINJECT_PAGESATEND}
- PSINJECT_PAGES = 4;
- {$EXTERNALSYM PSINJECT_PAGES}
- PSINJECT_DOCNEEDEDRES = 5;
- {$EXTERNALSYM PSINJECT_DOCNEEDEDRES}
- PSINJECT_DOCSUPPLIEDRES = 6;
- {$EXTERNALSYM PSINJECT_DOCSUPPLIEDRES}
- PSINJECT_PAGEORDER = 7;
- {$EXTERNALSYM PSINJECT_PAGEORDER}
- PSINJECT_ORIENTATION = 8;
- {$EXTERNALSYM PSINJECT_ORIENTATION}
- PSINJECT_BOUNDINGBOX = 9;
- {$EXTERNALSYM PSINJECT_BOUNDINGBOX}
- PSINJECT_DOCUMENTPROCESSCOLORS = 10;
- {$EXTERNALSYM PSINJECT_DOCUMENTPROCESSCOLORS}
- PSINJECT_COMMENTS = 11;
- {$EXTERNALSYM PSINJECT_COMMENTS}
- PSINJECT_BEGINDEFAULTS = 12;
- {$EXTERNALSYM PSINJECT_BEGINDEFAULTS}
- PSINJECT_ENDDEFAULTS = 13;
- {$EXTERNALSYM PSINJECT_ENDDEFAULTS}
- PSINJECT_BEGINPROLOG = 14;
- {$EXTERNALSYM PSINJECT_BEGINPROLOG}
- PSINJECT_ENDPROLOG = 15;
- {$EXTERNALSYM PSINJECT_ENDPROLOG}
- PSINJECT_BEGINSETUP = 16;
- {$EXTERNALSYM PSINJECT_BEGINSETUP}
- PSINJECT_ENDSETUP = 17;
- {$EXTERNALSYM PSINJECT_ENDSETUP}
- PSINJECT_TRAILER = 18;
- {$EXTERNALSYM PSINJECT_TRAILER}
- PSINJECT_EOF = 19;
- {$EXTERNALSYM PSINJECT_EOF}
- PSINJECT_ENDSTREAM = 20;
- {$EXTERNALSYM PSINJECT_ENDSTREAM}
- PSINJECT_DOCUMENTPROCESSCOLORSATEND = 21;
- {$EXTERNALSYM PSINJECT_DOCUMENTPROCESSCOLORSATEND}
- PSINJECT_PAGENUMBER = 100;
- {$EXTERNALSYM PSINJECT_PAGENUMBER}
- PSINJECT_BEGINPAGESETUP = 101;
- {$EXTERNALSYM PSINJECT_BEGINPAGESETUP}
- PSINJECT_ENDPAGESETUP = 102;
- {$EXTERNALSYM PSINJECT_ENDPAGESETUP}
- PSINJECT_PAGETRAILER = 103;
- {$EXTERNALSYM PSINJECT_PAGETRAILER}
- PSINJECT_PLATECOLOR = 104;
- {$EXTERNALSYM PSINJECT_PLATECOLOR}
- PSINJECT_SHOWPAGE = 105;
- {$EXTERNALSYM PSINJECT_SHOWPAGE}
- PSINJECT_PAGEBBOX = 106;
- {$EXTERNALSYM PSINJECT_PAGEBBOX}
- PSINJECT_ENDPAGECOMMENTS = 107;
- {$EXTERNALSYM PSINJECT_ENDPAGECOMMENTS}
- PSINJECT_VMSAVE = 200;
- {$EXTERNALSYM PSINJECT_VMSAVE}
- PSINJECT_VMRESTORE = 201;
- {$EXTERNALSYM PSINJECT_VMRESTORE}
- //
- // Parameter for GET_PS_FEATURESETTING escape
- //
- FEATURESETTING_NUP = 0;
- {$EXTERNALSYM FEATURESETTING_NUP}
- FEATURESETTING_OUTPUT = 1;
- {$EXTERNALSYM FEATURESETTING_OUTPUT}
- FEATURESETTING_PSLEVEL = 2;
- {$EXTERNALSYM FEATURESETTING_PSLEVEL}
- FEATURESETTING_CUSTPAPER = 3;
- {$EXTERNALSYM FEATURESETTING_CUSTPAPER}
- FEATURESETTING_MIRROR = 4;
- {$EXTERNALSYM FEATURESETTING_MIRROR}
- FEATURESETTING_NEGATIVE = 5;
- {$EXTERNALSYM FEATURESETTING_NEGATIVE}
- FEATURESETTING_PROTOCOL = 6;
- {$EXTERNALSYM FEATURESETTING_PROTOCOL}
- //
- // The range of selectors between FEATURESETTING_PRIVATE_BEGIN and
- // FEATURESETTING_PRIVATE_END is reserved by Microsoft for private use
- //
- FEATURESETTING_PRIVATE_BEGIN = $1000;
- {$EXTERNALSYM FEATURESETTING_PRIVATE_BEGIN}
- FEATURESETTING_PRIVATE_END = $1FFF;
- {$EXTERNALSYM FEATURESETTING_PRIVATE_END}
- //
- // Information about output options
- //
- type
- PPsFeatureOutput = ^TPsFeatureOutput;
- _PSFEATURE_OUTPUT = record
- bPageIndependent: BOOL;
- bSetPageDevice: BOOL;
- end;
- {$EXTERNALSYM _PSFEATURE_OUTPUT}
- PSFEATURE_OUTPUT = _PSFEATURE_OUTPUT;
- {$EXTERNALSYM PSFEATURE_OUTPUT}
- PPSFEATURE_OUTPUT = ^PSFEATURE_OUTPUT;
- {$EXTERNALSYM PPSFEATURE_OUTPUT}
- TPsFeatureOutput = _PSFEATURE_OUTPUT;
- //
- // Information about custom paper size
- //
- PPsFeatureCustPaper = ^TPsFeatureCustPaper;
- _PSFEATURE_CUSTPAPER = record
- lOrientation: LONG;
- lWidth: LONG;
- lHeight: LONG;
- lWidthOffset: LONG;
- lHeightOffset: LONG;
- end;
- {$EXTERNALSYM _PSFEATURE_CUSTPAPER}
- PSFEATURE_CUSTPAPER = _PSFEATURE_CUSTPAPER;
- {$EXTERNALSYM PSFEATURE_CUSTPAPER}
- PPSFEATURE_CUSTPAPER = ^PSFEATURE_CUSTPAPER;
- {$EXTERNALSYM PPSFEATURE_CUSTPAPER}
- TPsFeatureCustPaper = _PSFEATURE_CUSTPAPER;
- // Value returned for FEATURESETTING_PROTOCOL
- const
- PSPROTOCOL_ASCII = 0;
- {$EXTERNALSYM PSPROTOCOL_ASCII}
- PSPROTOCOL_BCP = 1;
- {$EXTERNALSYM PSPROTOCOL_BCP}
- PSPROTOCOL_TBCP = 2;
- {$EXTERNALSYM PSPROTOCOL_TBCP}
- PSPROTOCOL_BINARY = 3;
- {$EXTERNALSYM PSPROTOCOL_BINARY}
- // Flag returned from QUERYDIBSUPPORT
- QDI_SETDIBITS = 1;
- {$EXTERNALSYM QDI_SETDIBITS}
- QDI_GETDIBITS = 2;
- {$EXTERNALSYM QDI_GETDIBITS}
- QDI_DIBTOSCREEN = 4;
- {$EXTERNALSYM QDI_DIBTOSCREEN}
- QDI_STRETCHDIB = 8;
- {$EXTERNALSYM QDI_STRETCHDIB}
- // Spooler Error Codes
- SP_NOTREPORTED = $4000;
- {$EXTERNALSYM SP_NOTREPORTED}
- SP_ERROR = DWORD(-1);
- {$EXTERNALSYM SP_ERROR}
- SP_APPABORT = DWORD(-2);
- {$EXTERNALSYM SP_APPABORT}
- SP_USERABORT = DWORD(-3);
- {$EXTERNALSYM SP_USERABORT}
- SP_OUTOFDISK = DWORD(-4);
- {$EXTERNALSYM SP_OUTOFDISK}
- SP_OUTOFMEMORY = DWORD(-5);
- {$EXTERNALSYM SP_OUTOFMEMORY}
- PR_JOBSTATUS = $0000;
- {$EXTERNALSYM PR_JOBSTATUS}
- // Object Definitions for EnumObjects()
- OBJ_PEN = 1;
- {$EXTERNALSYM OBJ_PEN}
- OBJ_BRUSH = 2;
- {$EXTERNALSYM OBJ_BRUSH}
- OBJ_DC = 3;
- {$EXTERNALSYM OBJ_DC}
- OBJ_METADC = 4;
- {$EXTERNALSYM OBJ_METADC}
- OBJ_PAL = 5;
- {$EXTERNALSYM OBJ_PAL}
- OBJ_FONT = 6;
- {$EXTERNALSYM OBJ_FONT}
- OBJ_BITMAP = 7;
- {$EXTERNALSYM OBJ_BITMAP}
- OBJ_REGION = 8;
- {$EXTERNALSYM OBJ_REGION}
- OBJ_METAFILE = 9;
- {$EXTERNALSYM OBJ_METAFILE}
- OBJ_MEMDC = 10;
- {$EXTERNALSYM OBJ_MEMDC}
- OBJ_EXTPEN = 11;
- {$EXTERNALSYM OBJ_EXTPEN}
- OBJ_ENHMETADC = 12;
- {$EXTERNALSYM OBJ_ENHMETADC}
- OBJ_ENHMETAFILE = 13;
- {$EXTERNALSYM OBJ_ENHMETAFILE}
- OBJ_COLORSPACE = 14;
- {$EXTERNALSYM OBJ_COLORSPACE}
- // xform stuff
- MWT_IDENTITY = 1;
- {$EXTERNALSYM MWT_IDENTITY}
- MWT_LEFTMULTIPLY = 2;
- {$EXTERNALSYM MWT_LEFTMULTIPLY}
- MWT_RIGHTMULTIPLY = 3;
- {$EXTERNALSYM MWT_RIGHTMULTIPLY}
- MWT_MIN = MWT_IDENTITY;
- {$EXTERNALSYM MWT_MIN}
- MWT_MAX = MWT_RIGHTMULTIPLY;
- {$EXTERNALSYM MWT_MAX}
- type
- PXform = ^TXform;
- tagXFORM = record
- eM11: FLOAT;
- eM12: FLOAT;
- eM21: FLOAT;
- eM22: FLOAT;
- eDx: FLOAT;
- eDy: FLOAT;
- end;
- {$EXTERNALSYM tagXFORM}
- XFORM = tagXFORM;
- {$EXTERNALSYM XFORM}
- LPXFORM = ^XFORM;
- {$EXTERNALSYM LPXFORM}
- TXform = XFORM;
- // Bitmap Header Definition
- PBitmap = ^TBitmap;
- tagBITMAP = record
- bmType: LONG;
- bmWidth: LONG;
- bmHeight: LONG;
- bmWidthBytes: LONG;
- bmPlanes: WORD;
- bmBitsPixel: WORD;
- bmBits: LPVOID;
- end;
- {$EXTERNALSYM tagBITMAP}
- BITMAP = tagBITMAP;
- {$EXTERNALSYM BITMAP}
- LPBITMAP = ^BITMAP;
- {$EXTERNALSYM LPBITMAP}
- NPBITMAP = ^BITMAP;
- {$EXTERNALSYM NPBITMAP}
- TBitmap = BITMAP;
- // #include <pshpack1.h>
- PRgbTriple = ^TRgbTriple;
- tagRGBTRIPLE = packed record
- rgbtBlue: BYTE;
- rgbtGreen: BYTE;
- rgbtRed: BYTE;
- end;
- {$EXTERNALSYM tagRGBTRIPLE}
- RGBTRIPLE = tagRGBTRIPLE;
- {$EXTERNALSYM RGBTRIPLE}
- TRgbTriple = RGBTRIPLE;
- // #include <poppack.h>
- PRgbQuad = ^TRgbQuad;
- tagRGBQUAD = record
- rgbBlue: BYTE;
- rgbGreen: BYTE;
- rgbRed: BYTE;
- rgbReserved: BYTE;
- end;
- {$EXTERNALSYM tagRGBQUAD}
- RGBQUAD = tagRGBQUAD;
- {$EXTERNALSYM RGBQUAD}
- LPRGBQUAD = ^RGBQUAD;
- {$EXTERNALSYM LPRGBQUAD}
- TRgbQuad = RGBQUAD;
- // Image Color Matching color definitions
- const
- CS_ENABLE = $00000001;
- {$EXTERNALSYM CS_ENABLE}
- CS_DISABLE = $00000002;
- {$EXTERNALSYM CS_DISABLE}
- CS_DELETE_TRANSFORM = $00000003;
- {$EXTERNALSYM CS_DELETE_TRANSFORM}
- // Logcolorspace signature
- LCS_SIGNATURE = 'PSOC';
- {$EXTERNALSYM LCS_SIGNATURE}
- // Logcolorspace lcsType values
- LCS_sRGB = 'sRGB';
- {$EXTERNALSYM LCS_sRGB}
- LCS_WINDOWS_COLOR_SPACE = 'Win '; // Windows default color space
- {$EXTERNALSYM LCS_WINDOWS_COLOR_SPACE}
- type
- LCSCSTYPE = LONG;
- {$EXTERNALSYM LCSCSTYPE}
- const
- LCS_CALIBRATED_RGB = $00000000;
- {$EXTERNALSYM LCS_CALIBRATED_RGB}
- type
- LCSGAMUTMATCH = LONG;
- {$EXTERNALSYM LCSGAMUTMATCH }
- const
- LCS_GM_BUSINESS = $00000001;
- {$EXTERNALSYM LCS_GM_BUSINESS}
- LCS_GM_GRAPHICS = $00000002;
- {$EXTERNALSYM LCS_GM_GRAPHICS}
- LCS_GM_IMAGES = $00000004;
- {$EXTERNALSYM LCS_GM_IMAGES}
- LCS_GM_ABS_COLORIMETRIC = $00000008;
- {$EXTERNALSYM LCS_GM_ABS_COLORIMETRIC}
- // ICM Defines for results from CheckColorInGamut()
- CM_OUT_OF_GAMUT = 255;
- {$EXTERNALSYM CM_OUT_OF_GAMUT}
- CM_IN_GAMUT = 0;
- {$EXTERNALSYM CM_IN_GAMUT}
- // UpdateICMRegKey Constants
- ICM_ADDPROFILE = 1;
- {$EXTERNALSYM ICM_ADDPROFILE}
- ICM_DELETEPROFILE = 2;
- {$EXTERNALSYM ICM_DELETEPROFILE}
- ICM_QUERYPROFILE = 3;
- {$EXTERNALSYM ICM_QUERYPROFILE}
- ICM_SETDEFAULTPROFILE = 4;
- {$EXTERNALSYM ICM_SETDEFAULTPROFILE}
- ICM_REGISTERICMATCHER = 5;
- {$EXTERNALSYM ICM_REGISTERICMATCHER}
- ICM_UNREGISTERICMATCHER = 6;
- {$EXTERNALSYM ICM_UNREGISTERICMATCHER}
- ICM_QUERYMATCH = 7;
- {$EXTERNALSYM ICM_QUERYMATCH}
- // Macros to retrieve CMYK values from a COLORREF
- function GetKValue(cmyk: COLORREF): BYTE;
- {$EXTERNALSYM GetKValue}
- function GetYValue(cmyk: COLORREF): BYTE;
- {$EXTERNALSYM GetYValue}
- function GetMValue(cmyk: COLORREF): BYTE;
- {$EXTERNALSYM GetMValue}
- function GetCValue(cmyk: COLORREF): BYTE;
- {$EXTERNALSYM GetCValue}
- function CMYK(c, m, y, k: BYTE): COLORREF;
- {$EXTERNALSYM CMYK}
- type
- FXPT16DOT16 = Longint;
- {$EXTERNALSYM FXPT16DOT16}
- LPFXPT16DOT16 = ^FXPT16DOT16;
- {$EXTERNALSYM LPFXPT16DOT16}
- FXPT2DOT30 = Longint;
- {$EXTERNALSYM FXPT2DOT30}
- LPFXPT2DOT30 = ^FXPT2DOT30;
- {$EXTERNALSYM LPFXPT2DOT30}
- // ICM Color Definitions
- // The following two structures are used for defining RGB's in terms of CIEXYZ.
- PCieXyz = ^TCieXyz;
- tagCIEXYZ = record
- ciexyzX: FXPT2DOT30;
- ciexyzY: FXPT2DOT30;
- ciexyzZ: FXPT2DOT30;
- end;
- {$EXTERNALSYM tagCIEXYZ}
- CIEXYZ = tagCIEXYZ;
- {$EXTERNALSYM CIEXYZ}
- LPCIEXYZ = ^CIEXYZ;
- {$EXTERNALSYM LPCIEXYZ}
- TCieXyz = CIEXYZ;
- PCieXyzTriple = ^TCieXyzTriple;
- tagCIEXYZTRIPLE = record
- ciexyzRed: CIEXYZ;
- ciexyzGreen: CIEXYZ;
- ciexyzBlue: CIEXYZ;
- end;
- {$EXTERNALSYM tagCIEXYZTRIPLE}
- CIEXYZTRIPLE = tagCIEXYZTRIPLE;
- {$EXTERNALSYM CIEXYZTRIPLE}
- LPCIEXYZTRIPLE = ^CIEXYZTRIPLE;
- {$EXTERNALSYM LPCIEXYZTRIPLE}
- TCieXyzTriple = CIEXYZTRIPLE;
- // The next structures the logical color space. Unlike pens and brushes,
- // but like palettes, there is only one way to create a LogColorSpace.
- // A pointer to it must be passed, its elements can't be pushed as
- // arguments.
- PLogColorSpaceA = ^TLogColorSpaceA;
- tagLOGCOLORSPACEA = record
- lcsSignature: DWORD;
- lcsVersion: DWORD;
- lcsSize: DWORD;
- lcsCSType: LCSCSTYPE;
- lcsIntent: LCSGAMUTMATCH;
- lcsEndpoints: CIEXYZTRIPLE;
- lcsGammaRed: DWORD;
- lcsGammaGreen: DWORD;
- lcsGammaBlue: DWORD;
- lcsFilename: array [0..MAX_PATH - 1] of CHAR;
- end;
- {$EXTERNALSYM tagLOGCOLORSPACEA}
- LOGCOLORSPACEA = tagLOGCOLORSPACEA;
- {$EXTERNALSYM LOGCOLORSPACEA}
- LPLOGCOLORSPACEA = ^LOGCOLORSPACEA;
- {$EXTERNALSYM LPLOGCOLORSPACEA}
- TLogColorSpaceA = LOGCOLORSPACEA;
- PLogColorSpaceW = ^TLogColorSpaceW;
- tagLOGCOLORSPACEW = record
- lcsSignature: DWORD;
- lcsVersion: DWORD;
- lcsSize: DWORD;
- lcsCSType: LCSCSTYPE;
- lcsIntent: LCSGAMUTMATCH;
- lcsEndpoints: CIEXYZTRIPLE;
- lcsGammaRed: DWORD;
- lcsGammaGreen: DWORD;
- lcsGammaBlue: DWORD;
- lcsFilename: array [0..MAX_PATH - 1] of WCHAR;
- end;
- {$EXTERNALSYM tagLOGCOLORSPACEW}
- LOGCOLORSPACEW = tagLOGCOLORSPACEW;
- {$EXTERNALSYM LOGCOLORSPACEW}
- LPLOGCOLORSPACEW = ^LOGCOLORSPACEW;
- {$EXTERNALSYM LPLOGCOLORSPACEW}
- TLogColorSpaceW = LOGCOLORSPACEW;
- {$IFDEF UNICODE}
- LOGCOLORSPACE = LOGCOLORSPACEW;
- {$EXTERNALSYM LOGCOLORSPACE}
- LPLOGCOLORSPACE = LPLOGCOLORSPACEW;
- {$EXTERNALSYM LPLOGCOLORSPACE}
- TLogColorSpace = TLogColorSpaceW;
- PLogColorSpace = PLogColorSpaceW;
- {$ELSE}
- LOGCOLORSPACE = LOGCOLORSPACEA;
- {$EXTERNALSYM LOGCOLORSPACE}
- LPLOGCOLORSPACE = LPLOGCOLORSPACEA;
- {$EXTERNALSYM LPLOGCOLORSPACE}
- TLogColorSpace = TLogColorSpaceA;
- PLogColorSpace = PLogColorSpaceA;
- {$ENDIF UNICODE}
- // structures for defining DIBs
- PBitmapCoreHeader = ^TBitmapCoreHeader;
- tagBITMAPCOREHEADER = record
- bcSize: DWORD;
- bcWidth: WORD;
- bcHeight: WORD;
- bcPlanes: WORD;
- bcBitCount: WORD;
- end;
- {$EXTERNALSYM tagBITMAPCOREHEADER}
- BITMAPCOREHEADER = tagBITMAPCOREHEADER;
- {$EXTERNALSYM BITMAPCOREHEADER}
- LPBITMAPCOREHEADER = ^BITMAPCOREHEADER;
- {$EXTERNALSYM LPBITMAPCOREHEADER}
- TBitmapCoreHeader = BITMAPCOREHEADER;
- PBitmapInfoHeader = ^TBitmapInfoHeader;
- tagBITMAPINFOHEADER = record
- biSize: DWORD;
- biWidth: LONG;
- biHeight: LONG;
- biPlanes: WORD;
- biBitCount: WORD;
- biCompression: DWORD;
- biSizeImage: DWORD;
- biXPelsPerMeter: LONG;
- biYPelsPerMeter: LONG;
- biClrUsed: DWORD;
- biClrImportant: DWORD;
- end;
- {$EXTERNALSYM tagBITMAPINFOHEADER}
- BITMAPINFOHEADER = tagBITMAPINFOHEADER;
- {$EXTERNALSYM BITMAPINFOHEADER}
- LPBITMAPINFOHEADER = ^BITMAPINFOHEADER;
- {$EXTERNALSYM LPBITMAPINFOHEADER}
- TBitmapInfoHeader = BITMAPINFOHEADER;
- PBitmapV4Header = ^TBitmapV4Header;
- BITMAPV4HEADER = record
- bV4Size: DWORD;
- bV4Width: LONG;
- bV4Height: LONG;
- bV4Planes: WORD;
- bV4BitCount: WORD;
- bV4V4Compression: DWORD;
- bV4SizeImage: DWORD;
- bV4XPelsPerMeter: LONG;
- bV4YPelsPerMeter: LONG;
- bV4ClrUsed: DWORD;
- bV4ClrImportant: DWORD;
- bV4RedMask: DWORD;
- bV4GreenMask: DWORD;
- bV4BlueMask: DWORD;
- bV4AlphaMask: DWORD;
- bV4CSType: DWORD;
- bV4Endpoints: CIEXYZTRIPLE;
- bV4GammaRed: DWORD;
- bV4GammaGreen: DWORD;
- bV4GammaBlue: DWORD;
- end;
- {$EXTERNALSYM BITMAPV4HEADER}
- LPBITMAPV4HEADER = ^BITMAPV4HEADER;
- {$EXTERNALSYM LPBITMAPV4HEADER}
- TBitmapV4Header = BITMAPV4HEADER;
- PBitmapV5Header = ^TBitmapV5Header;
- BITMAPV5HEADER = record
- bV5Size: DWORD;
- bV5Width: LONG;
- bV5Height: LONG;
- bV5Planes: WORD;
- bV5BitCount: WORD;
- bV5Compression: DWORD;
- bV5SizeImage: DWORD;
- bV5XPelsPerMeter: LONG;
- bV5YPelsPerMeter: LONG;
- bV5ClrUsed: DWORD;
- bV5ClrImportant: DWORD;
- bV5RedMask: DWORD;
- bV5GreenMask: DWORD;
- bV5BlueMask: DWORD;
- bV5AlphaMask: DWORD;
- bV5CSType: DWORD;
- bV5Endpoints: CIEXYZTRIPLE;
- bV5GammaRed: DWORD;
- bV5GammaGreen: DWORD;
- bV5GammaBlue: DWORD;
- bV5Intent: DWORD;
- bV5ProfileData: DWORD;
- bV5ProfileSize: DWORD;
- bV5Reserved: DWORD;
- end;
- {$EXTERNALSYM BITMAPV5HEADER}
- LPBITMAPV5HEADER = ^BITMAPV5HEADER;
- {$EXTERNALSYM LPBITMAPV5HEADER}
- TBitmapV5Header = BITMAPV5HEADER;
- // Values for bV5CSType
- const
- PROFILE_LINKED = 'LINK';
- {$EXTERNALSYM PROFILE_LINKED}
- PROFILE_EMBEDDED = 'MBED';
- {$EXTERNALSYM PROFILE_EMBEDDED}
- // constants for the biCompression field
- BI_RGB = 0;
- {$EXTERNALSYM BI_RGB}
- BI_RLE8 = 1;
- {$EXTERNALSYM BI_RLE8}
- BI_RLE4 = 2;
- {$EXTERNALSYM BI_RLE4}
- BI_BITFIELDS = 3;
- {$EXTERNALSYM BI_BITFIELDS}
- BI_JPEG = 4;
- {$EXTERNALSYM BI_JPEG}
- BI_PNG = 5;
- {$EXTERNALSYM BI_PNG}
- type
- PBitmapInfo = ^TBitmapInfo;
- tagBITMAPINFO = record
- bmiHeader: BITMAPINFOHEADER;
- bmiColors: array [0..0] of RGBQUAD;
- end;
- {$EXTERNALSYM tagBITMAPINFO}
- BITMAPINFO = tagBITMAPINFO;
- {$EXTERNALSYM BITMAPINFO}
- LPBITMAPINFO = ^BITMAPINFO;
- {$EXTERNALSYM LPBITMAPINFO}
- TBitmapInfo = BITMAPINFO;
- PBitmapCoreInfo = ^TBitmapCoreInfo;
- tagBITMAPCOREINFO = record
- bmciHeader: BITMAPCOREHEADER;
- bmciColors: array [0..0] of RGBTRIPLE;
- end;
- {$EXTERNALSYM tagBITMAPCOREINFO}
- BITMAPCOREINFO = tagBITMAPCOREINFO;
- {$EXTERNALSYM BITMAPCOREINFO}
- LPBITMAPCOREINFO = ^BITMAPCOREINFO;
- {$EXTERNALSYM LPBITMAPCOREINFO}
- TBitmapCoreInfo = BITMAPCOREINFO;
- // #include <pshpack2.h>
- PBitmapFileHeader = ^TBitmapFileHeader;
- tagBITMAPFILEHEADER = packed record
- bfType: WORD;
- bfSize: DWORD;
- bfReserved1: WORD;
- bfReserved2: WORD;
- bfOffBits: DWORD;
- end;
- {$EXTERNALSYM tagBITMAPFILEHEADER}
- BITMAPFILEHEADER = tagBITMAPFILEHEADER;
- {$EXTERNALSYM BITMAPFILEHEADER}
- LPBITMAPFILEHEADER = ^BITMAPFILEHEADER;
- {$EXTERNALSYM BITMAPFILEHEADER}
- TBitmapFileHeader = BITMAPFILEHEADER;
- // #include <poppack.h>
- function MAKEPOINTS(l: DWORD): POINTS;
- {$EXTERNALSYM MAKEPOINTS}
- type
- PFontSignature = ^TFontSignature;
- tagFONTSIGNATURE = record
- fsUsb: array [0..3] of DWORD;
- fsCsb: array [0..1] of DWORD;
- end;
- {$EXTERNALSYM tagFONTSIGNATURE}
- FONTSIGNATURE = tagFONTSIGNATURE;
- {$EXTERNALSYM FONTSIGNATURE}
- LPFONTSIGNATURE = ^FONTSIGNATURE;
- {$EXTERNALSYM LPFONTSIGNATURE}
- TFontSignature = FONTSIGNATURE;
- PCharSetInfo = ^TCharSetInfo;
- tagCHARSETINFO = record
- ciCharset: UINT;
- ciACP: UINT;
- fs: FONTSIGNATURE;
- end;
- {$EXTERNALSYM tagCHARSETINFO}
- CHARSETINFO = tagCHARSETINFO;
- {$EXTERNALSYM CHARSETINFO}
- LPCHARSETINFO = ^CHARSETINFO;
- {$EXTERNALSYM LPCHARSETINFO}
- NPCHARSETINFO = ^CHARSETINFO;
- {$EXTERNALSYM NPCHARSETINFO}
- TCharSetInfo = CHARSETINFO;
- const
- TCI_SRCCHARSET = 1;
- {$EXTERNALSYM TCI_SRCCHARSET}
- TCI_SRCCODEPAGE = 2;
- {$EXTERNALSYM TCI_SRCCODEPAGE}
- TCI_SRCFONTSIG = 3;
- {$EXTERNALSYM TCI_SRCFONTSIG}
- TCI_SRCLOCALE = $1000;
- {$EXTERNALSYM TCI_SRCLOCALE}
- type
- PLocaleSignature = ^TLocaleSignature;
- tagLOCALESIGNATURE = record
- lsUsb: array [0..3] of DWORD;
- lsCsbDefault: array [0..1] of DWORD;
- lsCsbSupported: array [0..1] of DWORD;
- end;
- {$EXTERNALSYM tagLOCALESIGNATURE}
- LOCALESIGNATURE = tagLOCALESIGNATURE;
- {$EXTERNALSYM LOCALESIGNATURE}
- LPLOCALESIGNATURE = ^LOCALESIGNATURE;
- {$EXTERNALSYM LPLOCALESIGNATURE}
- TLocaleSignature = LOCALESIGNATURE;
- // Clipboard Metafile Picture Structure
- PHandleTable = ^THandleTable;
- tagHANDLETABLE = record
- objectHandle: array [0..0] of HGDIOBJ;
- end;
- {$EXTERNALSYM tagHANDLETABLE}
- HANDLETABLE = tagHANDLETABLE;
- {$EXTERNALSYM HANDLETABLE}
- LPHANDLETABLE = ^HANDLETABLE;
- {$EXTERNALSYM LPHANDLETABLE}
- THandleTable = HANDLETABLE;
- PMetaRecord = ^TMetaRecord;
- tagMETARECORD = record
- rdSize: DWORD;
- rdFunction: WORD;
- rdParm: array [0..0] of WORD;
- end;
- {$EXTERNALSYM tagMETARECORD}
- METARECORD = tagMETARECORD;
- {$EXTERNALSYM METARECORD}
- LPMETARECORD = ^METARECORD;
- {$EXTERNALSYM LPMETARECORD}
- TMetaRecord = METARECORD;
- PMetaFilePict = ^TMetaFilePict;
- tagMETAFILEPICT = record
- mm: LONG;
- xExt: LONG;
- yExt: LONG;
- hMF: HMETAFILE;
- end;
- {$EXTERNALSYM tagMETAFILEPICT}
- METAFILEPICT = tagMETAFILEPICT;
- {$EXTERNALSYM METAFILEPICT}
- LPMETAFILEPICT = ^METAFILEPICT;
- {$EXTERNALSYM LPMETAFILEPICT}
- TMetaFilePict = METAFILEPICT;
- // #include <pshpack2.h>
- PMetaHeader = ^TMetaHeader;
- tagMETAHEADER = packed record
- mtType: WORD;
- mtHeaderSize: WORD;
- mtVersion: WORD;
- mtSize: DWORD;
- mtNoObjects: WORD;
- mtMaxRecord: DWORD;
- mtNoParameters: WORD;
- end;
- {$EXTERNALSYM tagMETAHEADER}
- METAHEADER = tagMETAHEADER;
- {$EXTERNALSYM METAHEADER}
- LPMETAHEADER = ^METAHEADER;
- {$EXTERNALSYM LPMETAHEADER}
- TMetaHeader = METAHEADER;
- // #include <poppack.h>
- // Enhanced Metafile structures
- PEnhMetaRecord = ^TEnhMetaRecord;
- tagENHMETARECORD = record
- iType: DWORD; // Record type EMR_XXX
- nSize: DWORD; // Record size in bytes
- dParm: array [0..0] of DWORD; // Parameters
- end;
- {$EXTERNALSYM tagENHMETARECORD}
- ENHMETARECORD = tagENHMETARECORD;
- {$EXTERNALSYM ENHMETARECORD}
- LPENHMETARECORD = ^ENHMETARECORD;
- {$EXTERNALSYM LPENHMETARECORD}
- TEnhMetaRecord = ENHMETARECORD;
- PEnhMetaHeader = ^TEnhMetaHeader;
- tagENHMETAHEADER = record
- iType: DWORD; // Record type EMR_HEADER
- nSize: DWORD; // Record size in bytes. This may be greater
- // than the sizeof(ENHMETAHEADER).
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- rclFrame: RECTL; // Inclusive-inclusive Picture Frame of metafile in .01 mm units
- dSignature: DWORD; // Signature. Must be ENHMETA_SIGNATURE.
- nVersion: DWORD; // Version number
- nBytes: DWORD; // Size of the metafile in bytes
- nRecords: DWORD; // Number of records in the metafile
- nHandles: WORD; // Number of handles in the handle table
- // Handle index zero is reserved.
- sReserved: WORD; // Reserved. Must be zero.
- nDescription: DWORD; // Number of chars in the unicode description string
- // This is 0 if there is no description string
- offDescription: DWORD; // Offset to the metafile description record.
- // This is 0 if there is no description string
- nPalEntries: DWORD; // Number of entries in the metafile palette.
- szlDevice: SIZEL; // Size of the reference device in pels
- szlMillimeters: SIZEL; // Size of the reference device in millimeters
- cbPixelFormat: DWORD; // Size of PIXELFORMATDESCRIPTOR information
- // This is 0 if no pixel format is set
- offPixelFormat: DWORD; // Offset to PIXELFORMATDESCRIPTOR
- // This is 0 if no pixel format is set
- bOpenGL: DWORD; // TRUE if OpenGL commands are present in
- // the metafile, otherwise FALSE
- {$IFDEF WIN98ME_UP}
- szlMicrometers: SIZEL; // Size of the reference device in micrometers
- {$ENDIF WIN98ME_UP}
- end;
- {$EXTERNALSYM tagENHMETAHEADER}
- ENHMETAHEADER = tagENHMETAHEADER;
- {$EXTERNALSYM ENHMETAHEADER}
- LPENHMETAHEADER = ^ENHMETAHEADER;
- {$EXTERNALSYM LPENHMETAHEADER}
- TEnhMetaHeader = tagENHMETAHEADER;
- // tmPitchAndFamily flags
- const
- TMPF_FIXED_PITCH = $01;
- {$EXTERNALSYM TMPF_FIXED_PITCH}
- TMPF_VECTOR = $02;
- {$EXTERNALSYM TMPF_VECTOR}
- TMPF_DEVICE = $08;
- {$EXTERNALSYM TMPF_DEVICE}
- TMPF_TRUETYPE = $04;
- {$EXTERNALSYM TMPF_TRUETYPE}
- //
- // BCHAR definition for APPs
- //
- type
- {$IFDEF UNICODE}
- BCHAR = WCHAR;
- {$EXTERNALSYM BCHAR}
- {$ELSE}
- BCHAR = BYTE;
- {$EXTERNALSYM BCHAR}
- {$ENDIF UNICODE}
- type
- PTextMetricA = ^TTextMetricA;
- tagTEXTMETRICA = record
- tmHeight: LONG;
- tmAscent: LONG;
- tmDescent: LONG;
- tmInternalLeading: LONG;
- tmExternalLeading: LONG;
- tmAveCharWidth: LONG;
- tmMaxCharWidth: LONG;
- tmWeight: LONG;
- tmOverhang: LONG;
- tmDigitizedAspectX: LONG;
- tmDigitizedAspectY: LONG;
- tmFirstChar: BYTE;
- tmLastChar: BYTE;
- tmDefaultChar: BYTE;
- tmBreakChar: BYTE;
- tmItalic: BYTE;
- tmUnderlined: BYTE;
- tmStruckOut: BYTE;
- tmPitchAndFamily: BYTE;
- tmCharSet: BYTE;
- end;
- {$EXTERNALSYM tagTEXTMETRICA}
- TEXTMETRICA = tagTEXTMETRICA;
- {$EXTERNALSYM TEXTMETRICA}
- LPTEXTMETRICA = ^TEXTMETRICA;
- {$EXTERNALSYM LPTEXTMETRICA}
- NPTEXTMETRICA = ^TEXTMETRICA;
- {$EXTERNALSYM NPTEXTMETRICA}
- TTextMetricA = TEXTMETRICA;
- PTextMetricW = ^TTextMetricW;
- tagTEXTMETRICW = record
- tmHeight: LONG;
- tmAscent: LONG;
- tmDescent: LONG;
- tmInternalLeading: LONG;
- tmExternalLeading: LONG;
- tmAveCharWidth: LONG;
- tmMaxCharWidth: LONG;
- tmWeight: LONG;
- tmOverhang: LONG;
- tmDigitizedAspectX: LONG;
- tmDigitizedAspectY: LONG;
- tmFirstChar: WCHAR;
- tmLastChar: WCHAR;
- tmDefaultChar: WCHAR;
- tmBreakChar: WCHAR;
- tmItalic: BYTE;
- tmUnderlined: BYTE;
- tmStruckOut: BYTE;
- tmPitchAndFamily: BYTE;
- tmCharSet: BYTE;
- end;
- {$EXTERNALSYM tagTEXTMETRICW}
- TEXTMETRICW = tagTEXTMETRICW;
- {$EXTERNALSYM TEXTMETRICW}
- LPTEXTMETRICW = ^TEXTMETRICW;
- {$EXTERNALSYM LPTEXTMETRICW}
- NPTEXTMETRICW = ^TEXTMETRICW;
- {$EXTERNALSYM NPTEXTMETRICW}
- TTextMetricW = TEXTMETRICW;
- {$IFDEF UNICODE}
- TEXTMETRIC = TEXTMETRICW;
- {$EXTERNALSYM TEXTMETRIC}
- PTEXTMETRIC = PTEXTMETRICW;
- {$EXTERNALSYM PTEXTMETRIC}
- NPTEXTMETRIC = NPTEXTMETRICW;
- {$EXTERNALSYM NPTEXTMETRIC}
- LPTEXTMETRIC = LPTEXTMETRICW;
- {$EXTERNALSYM LPTEXTMETRIC}
- TTextMetric = TTextMetricW;
- {$ELSE}
- TEXTMETRIC = TEXTMETRICA;
- {$EXTERNALSYM TEXTMETRIC}
- NPTEXTMETRIC = NPTEXTMETRICA;
- {$EXTERNALSYM NPTEXTMETRIC}
- LPTEXTMETRIC = LPTEXTMETRICA;
- {$EXTERNALSYM LPTEXTMETRIC}
- TTextMetric = TTextMetricA;
- {$ENDIF UNICODE}
- // ntmFlags field flags
- const
- NTM_REGULAR = $00000040;
- {$EXTERNALSYM NTM_REGULAR}
- NTM_BOLD = $00000020;
- {$EXTERNALSYM NTM_BOLD}
- NTM_ITALIC = $00000001;
- {$EXTERNALSYM NTM_ITALIC}
- // new in NT 5.0
- NTM_NONNEGATIVE_AC = $00010000;
- {$EXTERNALSYM NTM_NONNEGATIVE_AC}
- NTM_PS_OPENTYPE = $00020000;
- {$EXTERNALSYM NTM_PS_OPENTYPE}
- NTM_TT_OPENTYPE = $00040000;
- {$EXTERNALSYM NTM_TT_OPENTYPE}
- NTM_MULTIPLEMASTER = $00080000;
- {$EXTERNALSYM NTM_MULTIPLEMASTER}
- NTM_TYPE1 = $00100000;
- {$EXTERNALSYM NTM_TYPE1}
- NTM_DSIG = $00200000;
- {$EXTERNALSYM NTM_DSIG}
- // #include <pshpack4.h>
- type
- PNewTextMetricA = ^TNewTextMetricA;
- tagNEWTEXTMETRICA = record
- tmHeight: LONG;
- tmAscent: LONG;
- tmDescent: LONG;
- tmInternalLeading: LONG;
- tmExternalLeading: LONG;
- tmAveCharWidth: LONG;
- tmMaxCharWidth: LONG;
- tmWeight: LONG;
- tmOverhang: LONG;
- tmDigitizedAspectX: LONG;
- tmDigitizedAspectY: LONG;
- tmFirstChar: BYTE;
- tmLastChar: BYTE;
- tmDefaultChar: BYTE;
- tmBreakChar: BYTE;
- tmItalic: BYTE;
- tmUnderlined: BYTE;
- tmStruckOut: BYTE;
- tmPitchAndFamily: BYTE;
- tmCharSet: BYTE;
- ntmFlags: DWORD;
- ntmSizeEM: UINT;
- ntmCellHeight: UINT;
- ntmAvgWidth: UINT;
- end;
- {$EXTERNALSYM tagNEWTEXTMETRICA}
- NEWTEXTMETRICA = tagNEWTEXTMETRICA;
- {$EXTERNALSYM NEWTEXTMETRICA}
- LPNEWTEXTMETRICA = ^NEWTEXTMETRICA;
- {$EXTERNALSYM LPNEWTEXTMETRICA}
- NPNEWTEXTMETRICA = ^NEWTEXTMETRICA;
- {$EXTERNALSYM NPNEWTEXTMETRICA}
- TNewTextMetricA = NEWTEXTMETRICA;
- PNewTextMetricW = ^TNewTextMetricW;
- tagNEWTEXTMETRICW = record
- tmHeight: LONG;
- tmAscent: LONG;
- tmDescent: LONG;
- tmInternalLeading: LONG;
- tmExternalLeading: LONG;
- tmAveCharWidth: LONG;
- tmMaxCharWidth: LONG;
- tmWeight: LONG;
- tmOverhang: LONG;
- tmDigitizedAspectX: LONG;
- tmDigitizedAspectY: LONG;
- tmFirstChar: WCHAR;
- tmLastChar: WCHAR;
- tmDefaultChar: WCHAR;
- tmBreakChar: WCHAR;
- tmItalic: BYTE;
- tmUnderlined: BYTE;
- tmStruckOut: BYTE;
- tmPitchAndFamily: BYTE;
- tmCharSet: BYTE;
- ntmFlags: DWORD;
- ntmSizeEM: UINT;
- ntmCellHeight: UINT;
- ntmAvgWidth: UINT;
- end;
- {$EXTERNALSYM tagNEWTEXTMETRICW}
- NEWTEXTMETRICW = tagNEWTEXTMETRICW;
- {$EXTERNALSYM NEWTEXTMETRICW}
- LPNEWTEXTMETRICW = ^NEWTEXTMETRICW;
- {$EXTERNALSYM LPNEWTEXTMETRICW}
- NPNEWTEXTMETRICW = ^NEWTEXTMETRICW;
- {$EXTERNALSYM NPNEWTEXTMETRICW}
- TNewTextMetricW = NEWTEXTMETRICW;
- {$IFDEF UNICODE}
- NEWTEXTMETRIC = NEWTEXTMETRICW;
- {$EXTERNALSYM NEWTEXTMETRIC}
- PNEWTEXTMETRIC = PNEWTEXTMETRICW;
- {$EXTERNALSYM PNEWTEXTMETRIC}
- NPNEWTEXTMETRIC = NPNEWTEXTMETRICW;
- {$EXTERNALSYM NPNEWTEXTMETRIC}
- LPNEWTEXTMETRIC = LPNEWTEXTMETRICW;
- {$EXTERNALSYM LPNEWTEXTMETRIC}
- TNewTextMetric = TNewTextMetricW;
- {$ELSE}
- NEWTEXTMETRIC = NEWTEXTMETRICW;
- {$EXTERNALSYM NEWTEXTMETRIC}
- PNEWTEXTMETRIC = PNEWTEXTMETRICW;
- {$EXTERNALSYM PNEWTEXTMETRIC}
- NPNEWTEXTMETRIC = NPNEWTEXTMETRICW;
- {$EXTERNALSYM NPNEWTEXTMETRIC}
- LPNEWTEXTMETRIC = LPNEWTEXTMETRICW;
- {$EXTERNALSYM LPNEWTEXTMETRIC}
- TNewTextMetric = TNewTextMetricW;
- {$ENDIF UNICODE}
- // #include <poppack.h>
- PNewTextMetricExA = ^TNewTextMetricExA;
- tagNEWTEXTMETRICEXA = record
- ntmTm: NEWTEXTMETRICA;
- ntmFontSig: FONTSIGNATURE;
- end;
- {$EXTERNALSYM tagNEWTEXTMETRICEXA}
- NEWTEXTMETRICEXA = tagNEWTEXTMETRICEXA;
- {$EXTERNALSYM NEWTEXTMETRICEXA}
- TNewTextMetricExA = NEWTEXTMETRICEXA;
- PNewTextMetricExW = ^TNewTextMetricExW;
- tagNEWTEXTMETRICEXW = record
- ntmTm: NEWTEXTMETRICW;
- ntmFontSig: FONTSIGNATURE;
- end;
- {$EXTERNALSYM tagNEWTEXTMETRICEXW}
- NEWTEXTMETRICEXW = tagNEWTEXTMETRICEXW;
- {$EXTERNALSYM NEWTEXTMETRICEXW}
- TNewTextMetricExW = NEWTEXTMETRICEXW;
- {$IFDEF UNICODE}
- NEWTEXTMETRICEX = NEWTEXTMETRICEXW;
- {$EXTERNALSYM NEWTEXTMETRICEX}
- TNewTextMetricEx = TNewTextMetricExW;
- PNewTextMetricEx = PNewTextMetricExW;
- {$ELSE}
- NEWTEXTMETRICEX = NEWTEXTMETRICEXA;
- {$EXTERNALSYM NEWTEXTMETRICEX}
- TNewTextMetricEx = TNewTextMetricExA;
- PNewTextMetricEx = PNewTextMetricExA;
- {$ENDIF UNICODE}
- // GDI Logical Objects:
- // Pel Array
- PPelArray = ^TPelArray;
- tagPELARRAY = record
- paXCount: LONG;
- paYCount: LONG;
- paXExt: LONG;
- paYExt: LONG;
- paRGBs: BYTE;
- end;
- {$EXTERNALSYM tagPELARRAY}
- PELARRAY = tagPELARRAY;
- {$EXTERNALSYM PELARRAY}
- LPPELARRAY = ^PELARRAY;
- {$EXTERNALSYM LPPELARRAY}
- TPelArray = PELARRAY;
- // Logical Brush (or Pattern)
- PLogBrush = ^TLogBrush;
- tagLOGBRUSH = record
- lbStyle: UINT;
- lbColor: COLORREF;
- lbHatch: ULONG_PTR; // Sundown: lbHatch could hold a HANDLE
- end;
- {$EXTERNALSYM tagLOGBRUSH}
- LOGBRUSH = tagLOGBRUSH;
- {$EXTERNALSYM LOGBRUSH}
- LPLOGBRUSH = ^LOGBRUSH;
- {$EXTERNALSYM LPLOGBRUSH}
- NPLOGBRUSH = ^LOGBRUSH;
- {$EXTERNALSYM NPLOGBRUSH}
- TLogBrush = LOGBRUSH;
- PLogBrush32 = ^TLogBrush32;
- tagLOGBRUSH32 = record
- lbStyle: UINT;
- lbColor: COLORREF;
- lbHatch: ULONG;
- end;
- {$EXTERNALSYM tagLOGBRUSH32}
- LOGBRUSH32 = tagLOGBRUSH32;
- {$EXTERNALSYM LOGBRUSH32}
- LPLOGBRUSH32 = ^LOGBRUSH32;
- {$EXTERNALSYM LPLOGBRUSH32}
- NPLOGBRUSH32 = ^LOGBRUSH32;
- {$EXTERNALSYM NPLOGBRUSH32}
- TLogBrush32 = LOGBRUSH32;
- PATTERN = LOGBRUSH;
- {$EXTERNALSYM PATTERN}
- PPATTERN = ^PATTERN;
- {$EXTERNALSYM PPATTERN}
- LPPATTERN = ^PATTERN;
- {$EXTERNALSYM LPPATTERN}
- NPPATTERN = ^PATTERN;
- {$EXTERNALSYM NPPATTERN}
- // Logical Pen
- PLogPen = ^TLogPen;
- tagLOGPEN = record
- lopnStyle: UINT;
- lopnWidth: POINT;
- lopnColor: COLORREF;
- end;
- {$EXTERNALSYM tagLOGPEN}
- LOGPEN = tagLOGPEN;
- {$EXTERNALSYM LOGPEN}
- LPLOGPEN = ^LOGPEN;
- {$EXTERNALSYM LPLOGPEN}
- NPLOGPEN = ^LOGPEN;
- {$EXTERNALSYM NPLOGPEN}
- TLogPen = LOGPEN;
- PExtLogPen = ^TExtLogPen;
- tagEXTLOGPEN = record
- elpPenStyle: DWORD;
- elpWidth: DWORD;
- elpBrushStyle: UINT;
- elpColor: COLORREF;
- elpHatch: ULONG_PTR; // Sundown: elpHatch could take a HANDLE
- elpNumEntries: DWORD;
- elpStyleEntry: array [0..0] of DWORD;
- end;
- {$EXTERNALSYM tagEXTLOGPEN}
- EXTLOGPEN = tagEXTLOGPEN;
- {$EXTERNALSYM EXTLOGPEN}
- LPEXTLOGPEN = ^EXTLOGPEN;
- {$EXTERNALSYM LPEXTLOGPEN}
- NPEXTLOGPEN = ^EXTLOGPEN;
- {$EXTERNALSYM NPEXTLOGPEN}
- TExtLogPen = EXTLOGPEN;
- PPaletteEntry = ^TPaletteEntry;
- tagPALETTEENTRY = record
- peRed: BYTE;
- peGreen: BYTE;
- peBlue: BYTE;
- peFlags: BYTE;
- end;
- {$EXTERNALSYM tagPALETTEENTRY}
- PALETTEENTRY = tagPALETTEENTRY;
- {$EXTERNALSYM PALETTEENTRY}
- LPPALETTEENTRY = ^PALETTEENTRY;
- {$EXTERNALSYM LPPALETTEENTRY}
- TPaletteEntry = PALETTEENTRY;
- // Logical Palette
- PLogPalette = ^TLogPalette;
- tagLOGPALETTE = record
- palVersion: WORD;
- palNumEntries: WORD;
- palPalEntry: array [0..0] of PALETTEENTRY;
- end;
- {$EXTERNALSYM tagLOGPALETTE}
- LOGPALETTE = tagLOGPALETTE;
- {$EXTERNALSYM LOGPALETTE}
- LPLOGPALETTE = ^LOGPALETTE;
- {$EXTERNALSYM LPLOGPALETTE}
- NPLOGPALETTE = ^LOGPALETTE;
- {$EXTERNALSYM NPLOGPALETTE}
- TLogPalette = LOGPALETTE;
- // Logical Font
- const
- LF_FACESIZE = 32;
- {$EXTERNALSYM LF_FACESIZE}
- type
- PLogFontA = ^TLogFontA;
- tagLOGFONTA = record
- lfHeight: LONG;
- lfWidth: LONG;
- lfEscapement: LONG;
- lfOrientation: LONG;
- lfWeight: LONG;
- lfItalic: BYTE;
- lfUnderline: BYTE;
- lfStrikeOut: BYTE;
- lfCharSet: BYTE;
- lfOutPrecision: BYTE;
- lfClipPrecision: BYTE;
- lfQuality: BYTE;
- lfPitchAndFamily: BYTE;
- lfFaceName: array [0..LF_FACESIZE - 1] of CHAR;
- end;
- {$EXTERNALSYM tagLOGFONTA}
- LOGFONTA = tagLOGFONTA;
- {$EXTERNALSYM LOGFONTA}
- LPLOGFONTA = ^LOGFONTA;
- {$EXTERNALSYM LPLOGFONTA}
- NPLOGFONTA = ^LOGFONTA;
- {$EXTERNALSYM NPLOGFONTA}
- TLogFontA = LOGFONTA;
- PLogFontW = ^TLogFontW;
- tagLOGFONTW = record
- lfHeight: LONG;
- lfWidth: LONG;
- lfEscapement: LONG;
- lfOrientation: LONG;
- lfWeight: LONG;
- lfItalic: BYTE;
- lfUnderline: BYTE;
- lfStrikeOut: BYTE;
- lfCharSet: BYTE;
- lfOutPrecision: BYTE;
- lfClipPrecision: BYTE;
- lfQuality: BYTE;
- lfPitchAndFamily: BYTE;
- lfFaceName: array [0..LF_FACESIZE - 1] of WCHAR;
- end;
- {$EXTERNALSYM tagLOGFONTW}
- LOGFONTW = tagLOGFONTW;
- {$EXTERNALSYM LOGFONTW}
- LPLOGFONTW = ^LOGFONTW;
- {$EXTERNALSYM LPLOGFONTW}
- NPLOGFONTW = ^LOGFONTW;
- {$EXTERNALSYM NPLOGFONTW}
- TLogFontW = LOGFONTW;
- {$IFDEF UNICODE}
- LOGFONT = LOGFONTW;
- {$EXTERNALSYM LOGFONT}
- PLOGFONT = PLOGFONTW;
- {$EXTERNALSYM PLOGFONT}
- NPLOGFONT = NPLOGFONTW;
- {$EXTERNALSYM NPLOGFONT}
- LPLOGFONT = LPLOGFONTW;
- {$EXTERNALSYM LPLOGFONT}
- TLogFont = TLogFontW;
- {$ELSE}
- LOGFONT = LOGFONTA;
- {$EXTERNALSYM LOGFONT}
- PLOGFONT = PLOGFONTA;
- {$EXTERNALSYM PLOGFONT}
- NPLOGFONT = NPLOGFONTA;
- {$EXTERNALSYM NPLOGFONT}
- LPLOGFONT = LPLOGFONTA;
- {$EXTERNALSYM LPLOGFONT}
- TLogFont = TLogFontA;
- {$ENDIF UNICODE}
- const
- LF_FULLFACESIZE = 64;
- {$EXTERNALSYM LF_FULLFACESIZE}
- // Structure passed to FONTENUMPROC
- type
- PEnumLogFontA = ^TEnumLogFontA;
- tagENUMLOGFONTA = record
- elfLogFont: LOGFONTA;
- elfFullName: array [ 0..LF_FULLFACESIZE - 1] of BYTE;
- elfStyle: array [0..LF_FACESIZE - 1] of BYTE;
- end;
- {$EXTERNALSYM tagENUMLOGFONTA}
- ENUMLOGFONTA = tagENUMLOGFONTA;
- {$EXTERNALSYM ENUMLOGFONTA}
- LPENUMLOGFONTA = ^ENUMLOGFONTA;
- {$EXTERNALSYM LPENUMLOGFONTA}
- TEnumLogFontA = ENUMLOGFONTA;
- // Structure passed to FONTENUMPROC
- PEnumLogFontW = ^TEnumLogFontW;
- tagENUMLOGFONTW = record
- elfLogFont: LOGFONTW;
- elfFullName: array [0..LF_FULLFACESIZE - 1] of WCHAR;
- elfStyle: array [0..LF_FACESIZE - 1] of WCHAR;
- end;
- {$EXTERNALSYM tagENUMLOGFONTW}
- ENUMLOGFONTW = tagENUMLOGFONTW;
- {$EXTERNALSYM ENUMLOGFONTW}
- LPENUMLOGFONTW = ^ENUMLOGFONTW;
- {$EXTERNALSYM LPENUMLOGFONTW}
- TEnumLogFontW = ENUMLOGFONTW;
- {$IFDEF UNICODE}
- ENUMLOGFONT = ENUMLOGFONTW;
- {$EXTERNALSYM ENUMLOGFONT}
- LPENUMLOGFONT = LPENUMLOGFONTW;
- {$EXTERNALSYM LPENUMLOGFONT}
- TEnumLogFont = TEnumLogFontW;
- PEnumLogFont = PEnumLogFontW;
- {$ELSE}
- ENUMLOGFONT = ENUMLOGFONTA;
- {$EXTERNALSYM ENUMLOGFONT}
- LPENUMLOGFONT = LPENUMLOGFONTA;
- {$EXTERNALSYM LPENUMLOGFONT}
- TEnumLogFont = TEnumLogFontA;
- PEnumLogFont = PEnumLogFontA;
- {$ENDIF UNICODE}
- PEnumLogFontExA = ^TEnumLogFontExA;
- tagENUMLOGFONTEXA = record
- elfLogFont: LOGFONTA;
- elfFullName: array [0..LF_FULLFACESIZE - 1] of BYTE;
- elfStyle: array [0..LF_FACESIZE - 1] of BYTE;
- elfScript: array [0..LF_FACESIZE - 1] of BYTE;
- end;
- {$EXTERNALSYM tagENUMLOGFONTEXA}
- ENUMLOGFONTEXA = tagENUMLOGFONTEXA;
- {$EXTERNALSYM ENUMLOGFONTEXA}
- LPENUMLOGFONTEXA = ^ENUMLOGFONTEXA;
- {$EXTERNALSYM LPENUMLOGFONTEXA}
- TEnumLogFontExA = ENUMLOGFONTEXA;
- PEnumLogFontExW = ^TEnumLogFontExW;
- tagENUMLOGFONTEXW = record
- elfLogFont: LOGFONTW;
- elfFullName: array [0..LF_FULLFACESIZE - 1] of WCHAR;
- elfStyle: array [0..LF_FACESIZE - 1] of WCHAR;
- elfScript: array [0..LF_FACESIZE - 1] of WCHAR;
- end;
- {$EXTERNALSYM tagENUMLOGFONTEXW}
- ENUMLOGFONTEXW = tagENUMLOGFONTEXW;
- {$EXTERNALSYM ENUMLOGFONTEXW}
- LPENUMLOGFONTEXW = ^ENUMLOGFONTEXW;
- {$EXTERNALSYM LPENUMLOGFONTEXW}
- TEnumLogFontExW = ENUMLOGFONTEXW;
- {$IFDEF UNICODE}
- ENUMLOGFONTEX = ENUMLOGFONTEXW;
- {$EXTERNALSYM ENUMLOGFONTEX}
- LPENUMLOGFONTEX = LPENUMLOGFONTEXW;
- {$EXTERNALSYM LPENUMLOGFONTEX}
- TEnumLogFontEx = TEnumLogFontExW;
- PEnumLogFontEx = PEnumLogFontExW;
- {$ELSE}
- ENUMLOGFONTEX = ENUMLOGFONTEXA;
- {$EXTERNALSYM ENUMLOGFONTEX}
- LPENUMLOGFONTEX = LPENUMLOGFONTEXA;
- {$EXTERNALSYM LPENUMLOGFONTEX}
- TEnumLogFontEx = TEnumLogFontExA;
- PEnumLogFontEx = PEnumLogFontExA;
- {$ENDIF UNICODE}
- const
- OUT_DEFAULT_PRECIS = 0;
- {$EXTERNALSYM OUT_DEFAULT_PRECIS}
- OUT_STRING_PRECIS = 1;
- {$EXTERNALSYM OUT_STRING_PRECIS}
- OUT_CHARACTER_PRECIS = 2;
- {$EXTERNALSYM OUT_CHARACTER_PRECIS}
- OUT_STROKE_PRECIS = 3;
- {$EXTERNALSYM OUT_STROKE_PRECIS}
- OUT_TT_PRECIS = 4;
- {$EXTERNALSYM OUT_TT_PRECIS}
- OUT_DEVICE_PRECIS = 5;
- {$EXTERNALSYM OUT_DEVICE_PRECIS}
- OUT_RASTER_PRECIS = 6;
- {$EXTERNALSYM OUT_RASTER_PRECIS}
- OUT_TT_ONLY_PRECIS = 7;
- {$EXTERNALSYM OUT_TT_ONLY_PRECIS}
- OUT_OUTLINE_PRECIS = 8;
- {$EXTERNALSYM OUT_OUTLINE_PRECIS}
- OUT_SCREEN_OUTLINE_PRECIS = 9;
- {$EXTERNALSYM OUT_SCREEN_OUTLINE_PRECIS}
- OUT_PS_ONLY_PRECIS = 10;
- {$EXTERNALSYM OUT_PS_ONLY_PRECIS}
- CLIP_DEFAULT_PRECIS = 0;
- {$EXTERNALSYM CLIP_DEFAULT_PRECIS}
- CLIP_CHARACTER_PRECIS = 1;
- {$EXTERNALSYM CLIP_CHARACTER_PRECIS}
- CLIP_STROKE_PRECIS = 2;
- {$EXTERNALSYM CLIP_STROKE_PRECIS}
- CLIP_MASK = $f;
- {$EXTERNALSYM CLIP_MASK}
- CLIP_LH_ANGLES = 1 shl 4;
- {$EXTERNALSYM CLIP_LH_ANGLES}
- CLIP_TT_ALWAYS = 2 shl 4;
- {$EXTERNALSYM CLIP_TT_ALWAYS}
- CLIP_DFA_DISABLE = 4 shl 4;
- {$EXTERNALSYM CLIP_DFA_DISABLE}
- CLIP_EMBEDDED = 8 shl 4;
- {$EXTERNALSYM CLIP_EMBEDDED}
- DEFAULT_QUALITY = 0;
- {$EXTERNALSYM DEFAULT_QUALITY}
- DRAFT_QUALITY = 1;
- {$EXTERNALSYM DRAFT_QUALITY}
- PROOF_QUALITY = 2;
- {$EXTERNALSYM PROOF_QUALITY}
- NONANTIALIASED_QUALITY = 3;
- {$EXTERNALSYM NONANTIALIASED_QUALITY}
- ANTIALIASED_QUALITY = 4;
- {$EXTERNALSYM ANTIALIASED_QUALITY}
- CLEARTYPE_QUALITY = 5;
- {$EXTERNALSYM CLEARTYPE_QUALITY}
- //#if (_WIN32_WINNT >= 0x0501)
- CLEARTYPE_NATURAL_QUALITY = 6;
- {$EXTERNALSYM CLEARTYPE_NATURAL_QUALITY}
- //#endif
- DEFAULT_PITCH = 0;
- {$EXTERNALSYM DEFAULT_PITCH}
- FIXED_PITCH = 1;
- {$EXTERNALSYM FIXED_PITCH}
- VARIABLE_PITCH = 2;
- {$EXTERNALSYM VARIABLE_PITCH}
- MONO_FONT = 8;
- {$EXTERNALSYM MONO_FONT}
- ANSI_CHARSET = 0;
- {$EXTERNALSYM ANSI_CHARSET}
- DEFAULT_CHARSET = 1;
- {$EXTERNALSYM DEFAULT_CHARSET}
- SYMBOL_CHARSET = 2;
- {$EXTERNALSYM SYMBOL_CHARSET}
- SHIFTJIS_CHARSET = 128;
- {$EXTERNALSYM SHIFTJIS_CHARSET}
- HANGEUL_CHARSET = 129;
- {$EXTERNALSYM HANGEUL_CHARSET}
- HANGUL_CHARSET = 129;
- {$EXTERNALSYM HANGUL_CHARSET}
- GB2312_CHARSET = 134;
- {$EXTERNALSYM GB2312_CHARSET}
- CHINESEBIG5_CHARSET = 136;
- {$EXTERNALSYM CHINESEBIG5_CHARSET}
- OEM_CHARSET = 255;
- {$EXTERNALSYM OEM_CHARSET}
- JOHAB_CHARSET = 130;
- {$EXTERNALSYM JOHAB_CHARSET}
- HEBREW_CHARSET = 177;
- {$EXTERNALSYM HEBREW_CHARSET}
- ARABIC_CHARSET = 178;
- {$EXTERNALSYM ARABIC_CHARSET}
- GREEK_CHARSET = 161;
- {$EXTERNALSYM GREEK_CHARSET}
- TURKISH_CHARSET = 162;
- {$EXTERNALSYM TURKISH_CHARSET}
- VIETNAMESE_CHARSET = 163;
- {$EXTERNALSYM VIETNAMESE_CHARSET}
- THAI_CHARSET = 222;
- {$EXTERNALSYM THAI_CHARSET}
- EASTEUROPE_CHARSET = 238;
- {$EXTERNALSYM EASTEUROPE_CHARSET}
- RUSSIAN_CHARSET = 204;
- {$EXTERNALSYM RUSSIAN_CHARSET}
- MAC_CHARSET = 77;
- {$EXTERNALSYM MAC_CHARSET}
- BALTIC_CHARSET = 186;
- {$EXTERNALSYM BALTIC_CHARSET}
- FS_LATIN1 = $00000001;
- {$EXTERNALSYM FS_LATIN1}
- FS_LATIN2 = $00000002;
- {$EXTERNALSYM FS_LATIN2}
- FS_CYRILLIC = $00000004;
- {$EXTERNALSYM FS_CYRILLIC}
- FS_GREEK = $00000008;
- {$EXTERNALSYM FS_GREEK}
- FS_TURKISH = $00000010;
- {$EXTERNALSYM FS_TURKISH}
- FS_HEBREW = $00000020;
- {$EXTERNALSYM FS_HEBREW}
- FS_ARABIC = $00000040;
- {$EXTERNALSYM FS_ARABIC}
- FS_BALTIC = $00000080;
- {$EXTERNALSYM FS_BALTIC}
- FS_VIETNAMESE = $00000100;
- {$EXTERNALSYM FS_VIETNAMESE}
- FS_THAI = $00010000;
- {$EXTERNALSYM FS_THAI}
- FS_JISJAPAN = $00020000;
- {$EXTERNALSYM FS_JISJAPAN}
- FS_CHINESESIMP = $00040000;
- {$EXTERNALSYM FS_CHINESESIMP}
- FS_WANSUNG = $00080000;
- {$EXTERNALSYM FS_WANSUNG}
- FS_CHINESETRAD = $00100000;
- {$EXTERNALSYM FS_CHINESETRAD}
- FS_JOHAB = $00200000;
- {$EXTERNALSYM FS_JOHAB}
- FS_SYMBOL = $80000000;
- {$EXTERNALSYM FS_SYMBOL}
- // Font Families
- FF_DONTCARE = 0 shl 4; // Don't care or don't know.
- {$EXTERNALSYM FF_DONTCARE}
- FF_ROMAN = 1 shl 4; // Variable stroke width, serifed.
- {$EXTERNALSYM FF_ROMAN}
- // Times Roman, Century Schoolbook, etc.
- FF_SWISS = 2 shl 4; // Variable stroke width, sans-serifed.
- {$EXTERNALSYM FF_SWISS}
- // Helvetica, Swiss, etc.
- FF_MODERN = 3 shl 4; // Constant stroke width, serifed or sans-serifed.
- {$EXTERNALSYM FF_MODERN}
- // Pica, Elite, Courier, etc.
- FF_SCRIPT = 4 shl 4; // Cursive, etc.
- {$EXTERNALSYM FF_SCRIPT}
- FF_DECORATIVE = 5 shl 4; // Old English, etc.
- {$EXTERNALSYM FF_DECORATIVE}
- // Font Weights
- FW_DONTCARE = 0;
- {$EXTERNALSYM FW_DONTCARE}
- FW_THIN = 100;
- {$EXTERNALSYM FW_THIN}
- FW_EXTRALIGHT = 200;
- {$EXTERNALSYM FW_EXTRALIGHT}
- FW_LIGHT = 300;
- {$EXTERNALSYM FW_LIGHT}
- FW_NORMAL = 400;
- {$EXTERNALSYM FW_NORMAL}
- FW_MEDIUM = 500;
- {$EXTERNALSYM FW_MEDIUM}
- FW_SEMIBOLD = 600;
- {$EXTERNALSYM FW_SEMIBOLD}
- FW_BOLD = 700;
- {$EXTERNALSYM FW_BOLD}
- FW_EXTRABOLD = 800;
- {$EXTERNALSYM FW_EXTRABOLD}
- FW_HEAVY = 900;
- {$EXTERNALSYM FW_HEAVY}
- FW_ULTRALIGHT = FW_EXTRALIGHT;
- {$EXTERNALSYM FW_ULTRALIGHT}
- FW_REGULAR = FW_NORMAL;
- {$EXTERNALSYM FW_REGULAR}
- FW_DEMIBOLD = FW_SEMIBOLD;
- {$EXTERNALSYM FW_DEMIBOLD}
- FW_ULTRABOLD = FW_EXTRABOLD;
- {$EXTERNALSYM FW_ULTRABOLD}
- FW_BLACK = FW_HEAVY;
- {$EXTERNALSYM FW_BLACK}
- PANOSE_COUNT = 10;
- {$EXTERNALSYM PANOSE_COUNT}
- PAN_FAMILYTYPE_INDEX = 0;
- {$EXTERNALSYM PAN_FAMILYTYPE_INDEX}
- PAN_SERIFSTYLE_INDEX = 1;
- {$EXTERNALSYM PAN_SERIFSTYLE_INDEX}
- PAN_WEIGHT_INDEX = 2;
- {$EXTERNALSYM PAN_WEIGHT_INDEX}
- PAN_PROPORTION_INDEX = 3;
- {$EXTERNALSYM PAN_PROPORTION_INDEX}
- PAN_CONTRAST_INDEX = 4;
- {$EXTERNALSYM PAN_CONTRAST_INDEX}
- PAN_STROKEVARIATION_INDEX = 5;
- {$EXTERNALSYM PAN_STROKEVARIATION_INDEX}
- PAN_ARMSTYLE_INDEX = 6;
- {$EXTERNALSYM PAN_ARMSTYLE_INDEX}
- PAN_LETTERFORM_INDEX = 7;
- {$EXTERNALSYM PAN_LETTERFORM_INDEX}
- PAN_MIDLINE_INDEX = 8;
- {$EXTERNALSYM PAN_MIDLINE_INDEX}
- PAN_XHEIGHT_INDEX = 9;
- {$EXTERNALSYM PAN_XHEIGHT_INDEX}
- PAN_CULTURE_LATIN = 0;
- {$EXTERNALSYM PAN_CULTURE_LATIN}
- type
- PPanose = ^TPanose;
- tagPANOSE = record
- bFamilyType: BYTE;
- bSerifStyle: BYTE;
- bWeight: BYTE;
- bProportion: BYTE;
- bContrast: BYTE;
- bStrokeVariation: BYTE;
- bArmStyle: BYTE;
- bLetterform: BYTE;
- bMidline: BYTE;
- bXHeight: BYTE;
- end;
- {$EXTERNALSYM tagPANOSE}
- PANOSE = tagPANOSE;
- {$EXTERNALSYM PANOSE}
- LPPANOSE = ^PANOSE;
- {$EXTERNALSYM LPPANOSE}
- TPanose = PANOSE;
- const
- PAN_ANY = 0; // Any
- {$EXTERNALSYM PAN_ANY}
- PAN_NO_FIT = 1; // No Fit
- {$EXTERNALSYM PAN_NO_FIT}
- PAN_FAMILY_TEXT_DISPLAY = 2; // Text and Display
- {$EXTERNALSYM PAN_FAMILY_TEXT_DISPLAY}
- PAN_FAMILY_SCRIPT = 3; // Script
- {$EXTERNALSYM PAN_FAMILY_SCRIPT}
- PAN_FAMILY_DECORATIVE = 4; // Decorative
- {$EXTERNALSYM PAN_FAMILY_DECORATIVE}
- PAN_FAMILY_PICTORIAL = 5; // Pictorial
- {$EXTERNALSYM PAN_FAMILY_PICTORIAL}
- PAN_SERIF_COVE = 2; // Cove
- {$EXTERNALSYM PAN_SERIF_COVE}
- PAN_SERIF_OBTUSE_COVE = 3; // Obtuse Cove
- {$EXTERNALSYM PAN_SERIF_OBTUSE_COVE}
- PAN_SERIF_SQUARE_COVE = 4; // Square Cove
- {$EXTERNALSYM PAN_SERIF_SQUARE_COVE}
- PAN_SERIF_OBTUSE_SQUARE_COVE = 5; // Obtuse Square Cove
- {$EXTERNALSYM PAN_SERIF_OBTUSE_SQUARE_COVE}
- PAN_SERIF_SQUARE = 6; // Square
- {$EXTERNALSYM PAN_SERIF_SQUARE}
- PAN_SERIF_THIN = 7; // Thin
- {$EXTERNALSYM PAN_SERIF_THIN}
- PAN_SERIF_BONE = 8; // Bone
- {$EXTERNALSYM PAN_SERIF_BONE}
- PAN_SERIF_EXAGGERATED = 9; // Exaggerated
- {$EXTERNALSYM PAN_SERIF_EXAGGERATED}
- PAN_SERIF_TRIANGLE = 10; // Triangle
- {$EXTERNALSYM PAN_SERIF_TRIANGLE}
- PAN_SERIF_NORMAL_SANS = 11; // Normal Sans
- {$EXTERNALSYM PAN_SERIF_NORMAL_SANS}
- PAN_SERIF_OBTUSE_SANS = 12; // Obtuse Sans
- {$EXTERNALSYM PAN_SERIF_OBTUSE_SANS}
- PAN_SERIF_PERP_SANS = 13; // Prep Sans
- {$EXTERNALSYM PAN_SERIF_PERP_SANS}
- PAN_SERIF_FLARED = 14; // Flared
- {$EXTERNALSYM PAN_SERIF_FLARED}
- PAN_SERIF_ROUNDED = 15; // Rounded
- {$EXTERNALSYM PAN_SERIF_ROUNDED}
- PAN_WEIGHT_VERY_LIGHT = 2; // Very Light
- {$EXTERNALSYM PAN_WEIGHT_VERY_LIGHT}
- PAN_WEIGHT_LIGHT = 3; // Light
- {$EXTERNALSYM PAN_WEIGHT_LIGHT}
- PAN_WEIGHT_THIN = 4; // Thin
- {$EXTERNALSYM PAN_WEIGHT_THIN}
- PAN_WEIGHT_BOOK = 5; // Book
- {$EXTERNALSYM PAN_WEIGHT_BOOK}
- PAN_WEIGHT_MEDIUM = 6; // Medium
- {$EXTERNALSYM PAN_WEIGHT_MEDIUM}
- PAN_WEIGHT_DEMI = 7; // Demi
- {$EXTERNALSYM PAN_WEIGHT_DEMI}
- PAN_WEIGHT_BOLD = 8; // Bold
- {$EXTERNALSYM PAN_WEIGHT_BOLD}
- PAN_WEIGHT_HEAVY = 9; // Heavy
- {$EXTERNALSYM PAN_WEIGHT_HEAVY}
- PAN_WEIGHT_BLACK = 10; // Black
- {$EXTERNALSYM PAN_WEIGHT_BLACK}
- PAN_WEIGHT_NORD = 11; // Nord
- {$EXTERNALSYM PAN_WEIGHT_NORD}
- PAN_PROP_OLD_STYLE = 2; // Old Style
- {$EXTERNALSYM PAN_PROP_OLD_STYLE}
- PAN_PROP_MODERN = 3; // Modern
- {$EXTERNALSYM PAN_PROP_MODERN}
- PAN_PROP_EVEN_WIDTH = 4; // Even Width
- {$EXTERNALSYM PAN_PROP_EVEN_WIDTH}
- PAN_PROP_EXPANDED = 5; // Expanded
- {$EXTERNALSYM PAN_PROP_EXPANDED}
- PAN_PROP_CONDENSED = 6; // Condensed
- {$EXTERNALSYM PAN_PROP_CONDENSED}
- PAN_PROP_VERY_EXPANDED = 7; // Very Expanded
- {$EXTERNALSYM PAN_PROP_VERY_EXPANDED}
- PAN_PROP_VERY_CONDENSED = 8; // Very Condensed
- {$EXTERNALSYM PAN_PROP_VERY_CONDENSED}
- PAN_PROP_MONOSPACED = 9; // Monospaced
- {$EXTERNALSYM PAN_PROP_MONOSPACED}
- PAN_CONTRAST_NONE = 2; // None
- {$EXTERNALSYM PAN_CONTRAST_NONE}
- PAN_CONTRAST_VERY_LOW = 3; // Very Low
- {$EXTERNALSYM PAN_CONTRAST_VERY_LOW}
- PAN_CONTRAST_LOW = 4; // Low
- {$EXTERNALSYM PAN_CONTRAST_LOW}
- PAN_CONTRAST_MEDIUM_LOW = 5; // Medium Low
- {$EXTERNALSYM PAN_CONTRAST_MEDIUM_LOW}
- PAN_CONTRAST_MEDIUM = 6; // Medium
- {$EXTERNALSYM PAN_CONTRAST_MEDIUM}
- PAN_CONTRAST_MEDIUM_HIGH = 7; // Mediim High
- {$EXTERNALSYM PAN_CONTRAST_MEDIUM_HIGH}
- PAN_CONTRAST_HIGH = 8; // High
- {$EXTERNALSYM PAN_CONTRAST_HIGH}
- PAN_CONTRAST_VERY_HIGH = 9; // Very High
- {$EXTERNALSYM PAN_CONTRAST_VERY_HIGH}
- PAN_STROKE_GRADUAL_DIAG = 2; // Gradual/Diagonal
- {$EXTERNALSYM PAN_STROKE_GRADUAL_DIAG}
- PAN_STROKE_GRADUAL_TRAN = 3; // Gradual/Transitional
- {$EXTERNALSYM PAN_STROKE_GRADUAL_TRAN}
- PAN_STROKE_GRADUAL_VERT = 4; // Gradual/Vertical
- {$EXTERNALSYM PAN_STROKE_GRADUAL_VERT}
- PAN_STROKE_GRADUAL_HORZ = 5; // Gradual/Horizontal
- {$EXTERNALSYM PAN_STROKE_GRADUAL_HORZ}
- PAN_STROKE_RAPID_VERT = 6; // Rapid/Vertical
- {$EXTERNALSYM PAN_STROKE_RAPID_VERT}
- PAN_STROKE_RAPID_HORZ = 7; // Rapid/Horizontal
- {$EXTERNALSYM PAN_STROKE_RAPID_HORZ}
- PAN_STROKE_INSTANT_VERT = 8; // Instant/Vertical
- {$EXTERNALSYM PAN_STROKE_INSTANT_VERT}
- PAN_STRAIGHT_ARMS_HORZ = 2; // Straight Arms/Horizontal
- {$EXTERNALSYM PAN_STRAIGHT_ARMS_HORZ}
- PAN_STRAIGHT_ARMS_WEDGE = 3; // Straight Arms/Wedge
- {$EXTERNALSYM PAN_STRAIGHT_ARMS_WEDGE}
- PAN_STRAIGHT_ARMS_VERT = 4; // Straight Arms/Vertical
- {$EXTERNALSYM PAN_STRAIGHT_ARMS_VERT}
- PAN_STRAIGHT_ARMS_SINGLE_SERIF = 5; // Straight Arms/Single-Serif
- {$EXTERNALSYM PAN_STRAIGHT_ARMS_SINGLE_SERIF}
- PAN_STRAIGHT_ARMS_DOUBLE_SERIF = 6; // Straight Arms/Double-Serif
- {$EXTERNALSYM PAN_STRAIGHT_ARMS_DOUBLE_SERIF}
- PAN_BENT_ARMS_HORZ = 7; // Non-Straight Arms/Horizontal
- {$EXTERNALSYM PAN_BENT_ARMS_HORZ}
- PAN_BENT_ARMS_WEDGE = 8; // Non-Straight Arms/Wedge
- {$EXTERNALSYM PAN_BENT_ARMS_WEDGE}
- PAN_BENT_ARMS_VERT = 9; // Non-Straight Arms/Vertical
- {$EXTERNALSYM PAN_BENT_ARMS_VERT}
- PAN_BENT_ARMS_SINGLE_SERIF = 10; // Non-Straight Arms/Single-Serif
- {$EXTERNALSYM PAN_BENT_ARMS_SINGLE_SERIF}
- PAN_BENT_ARMS_DOUBLE_SERIF = 11; // Non-Straight Arms/Double-Serif
- {$EXTERNALSYM PAN_BENT_ARMS_DOUBLE_SERIF}
- PAN_LETT_NORMAL_CONTACT = 2; // Normal/Contact
- {$EXTERNALSYM PAN_LETT_NORMAL_CONTACT}
- PAN_LETT_NORMAL_WEIGHTED = 3; // Normal/Weighted
- {$EXTERNALSYM PAN_LETT_NORMAL_WEIGHTED}
- PAN_LETT_NORMAL_BOXED = 4; // Normal/Boxed
- {$EXTERNALSYM PAN_LETT_NORMAL_BOXED}
- PAN_LETT_NORMAL_FLATTENED = 5; // Normal/Flattened
- {$EXTERNALSYM PAN_LETT_NORMAL_FLATTENED}
- PAN_LETT_NORMAL_ROUNDED = 6; // Normal/Rounded
- {$EXTERNALSYM PAN_LETT_NORMAL_ROUNDED}
- PAN_LETT_NORMAL_OFF_CENTER = 7; // Normal/Off Center
- {$EXTERNALSYM PAN_LETT_NORMAL_OFF_CENTER}
- PAN_LETT_NORMAL_SQUARE = 8; // Normal/Square
- {$EXTERNALSYM PAN_LETT_NORMAL_SQUARE}
- PAN_LETT_OBLIQUE_CONTACT = 9; // Oblique/Contact
- {$EXTERNALSYM PAN_LETT_OBLIQUE_CONTACT}
- PAN_LETT_OBLIQUE_WEIGHTED = 10; // Oblique/Weighted
- {$EXTERNALSYM PAN_LETT_OBLIQUE_WEIGHTED}
- PAN_LETT_OBLIQUE_BOXED = 11; // Oblique/Boxed
- {$EXTERNALSYM PAN_LETT_OBLIQUE_BOXED}
- PAN_LETT_OBLIQUE_FLATTENED = 12; // Oblique/Flattened
- {$EXTERNALSYM PAN_LETT_OBLIQUE_FLATTENED}
- PAN_LETT_OBLIQUE_ROUNDED = 13; // Oblique/Rounded
- {$EXTERNALSYM PAN_LETT_OBLIQUE_ROUNDED}
- PAN_LETT_OBLIQUE_OFF_CENTER = 14; // Oblique/Off Center
- {$EXTERNALSYM PAN_LETT_OBLIQUE_OFF_CENTER}
- PAN_LETT_OBLIQUE_SQUARE = 15; // Oblique/Square
- {$EXTERNALSYM PAN_LETT_OBLIQUE_SQUARE}
- PAN_MIDLINE_STANDARD_TRIMMED = 2; // Standard/Trimmed
- {$EXTERNALSYM PAN_MIDLINE_STANDARD_TRIMMED}
- PAN_MIDLINE_STANDARD_POINTED = 3; // Standard/Pointed
- {$EXTERNALSYM PAN_MIDLINE_STANDARD_POINTED}
- PAN_MIDLINE_STANDARD_SERIFED = 4; // Standard/Serifed
- {$EXTERNALSYM PAN_MIDLINE_STANDARD_SERIFED}
- PAN_MIDLINE_HIGH_TRIMMED = 5; // High/Trimmed
- {$EXTERNALSYM PAN_MIDLINE_HIGH_TRIMMED}
- PAN_MIDLINE_HIGH_POINTED = 6; // High/Pointed
- {$EXTERNALSYM PAN_MIDLINE_HIGH_POINTED}
- PAN_MIDLINE_HIGH_SERIFED = 7; // High/Serifed
- {$EXTERNALSYM PAN_MIDLINE_HIGH_SERIFED}
- PAN_MIDLINE_CONSTANT_TRIMMED = 8; // Constant/Trimmed
- {$EXTERNALSYM PAN_MIDLINE_CONSTANT_TRIMMED}
- PAN_MIDLINE_CONSTANT_POINTED = 9; // Constant/Pointed
- {$EXTERNALSYM PAN_MIDLINE_CONSTANT_POINTED}
- PAN_MIDLINE_CONSTANT_SERIFED = 10; // Constant/Serifed
- {$EXTERNALSYM PAN_MIDLINE_CONSTANT_SERIFED}
- PAN_MIDLINE_LOW_TRIMMED = 11; // Low/Trimmed
- {$EXTERNALSYM PAN_MIDLINE_LOW_TRIMMED}
- PAN_MIDLINE_LOW_POINTED = 12; // Low/Pointed
- {$EXTERNALSYM PAN_MIDLINE_LOW_POINTED}
- PAN_MIDLINE_LOW_SERIFED = 13; // Low/Serifed
- {$EXTERNALSYM PAN_MIDLINE_LOW_SERIFED}
- PAN_XHEIGHT_CONSTANT_SMALL = 2; // Constant/Small
- {$EXTERNALSYM PAN_XHEIGHT_CONSTANT_SMALL}
- PAN_XHEIGHT_CONSTANT_STD = 3; // Constant/Standard
- {$EXTERNALSYM PAN_XHEIGHT_CONSTANT_STD}
- PAN_XHEIGHT_CONSTANT_LARGE = 4; // Constant/Large
- {$EXTERNALSYM PAN_XHEIGHT_CONSTANT_LARGE}
- PAN_XHEIGHT_DUCKING_SMALL = 5; // Ducking/Small
- {$EXTERNALSYM PAN_XHEIGHT_DUCKING_SMALL}
- PAN_XHEIGHT_DUCKING_STD = 6; // Ducking/Standard
- {$EXTERNALSYM PAN_XHEIGHT_DUCKING_STD}
- PAN_XHEIGHT_DUCKING_LARGE = 7; // Ducking/Large
- {$EXTERNALSYM PAN_XHEIGHT_DUCKING_LARGE}
- ELF_VENDOR_SIZE = 4;
- {$EXTERNALSYM ELF_VENDOR_SIZE}
- // The extended logical font
- // An extension of the ENUMLOGFONT
- type
- PExtLogFontA = ^TExtLogFontA;
- tagEXTLOGFONTA = record
- elfLogFont: LOGFONTA;
- elfFullName: array [0..LF_FULLFACESIZE - 1] of BYTE;
- elfStyle: array [0..LF_FACESIZE - 1] of BYTE;
- elfVersion: DWORD;
- elfStyleSize: DWORD;
- elfMatch: DWORD;
- elfReserved: DWORD;
- elfVendorId: array [0..ELF_VENDOR_SIZE - 1] of BYTE;
- elfCulture: DWORD;
- elfPanose: PANOSE;
- end;
- {$EXTERNALSYM tagEXTLOGFONTA}
- EXTLOGFONTA = tagEXTLOGFONTA;
- {$EXTERNALSYM EXTLOGFONTA}
- LPEXTLOGFONTA = ^EXTLOGFONTA;
- {$EXTERNALSYM LPEXTLOGFONTA}
- NPEXTLOGFONTA = ^EXTLOGFONTA;
- {$EXTERNALSYM NPEXTLOGFONTA}
- TExtLogFontA = EXTLOGFONTA;
- PExtLogFontW = ^TExtLogFontW;
- tagEXTLOGFONTW = record
- elfLogFont: LOGFONTW;
- elfFullName: array [0..LF_FULLFACESIZE - 1] of WCHAR;
- elfStyle: array [0..LF_FACESIZE - 1] of WCHAR;
- elfVersion: DWORD;
- elfStyleSize: DWORD;
- elfMatch: DWORD;
- elfReserved: DWORD;
- elfVendorId: array [0..ELF_VENDOR_SIZE - 1] of BYTE;
- elfCulture: DWORD;
- elfPanose: PANOSE;
- end;
- {$EXTERNALSYM tagEXTLOGFONTW}
- EXTLOGFONTW = tagEXTLOGFONTW;
- {$EXTERNALSYM EXTLOGFONTW}
- LPEXTLOGFONTW = ^EXTLOGFONTW;
- {$EXTERNALSYM LPEXTLOGFONTW}
- NPEXTLOGFONTW = ^EXTLOGFONTW;
- {$EXTERNALSYM NPEXTLOGFONTW}
- TExtLogFontW = EXTLOGFONTW;
- {$IFDEF UNICODE}
- EXTLOGFONT = EXTLOGFONTW;
- {$EXTERNALSYM EXTLOGFONT}
- PEXTLOGFONT = PEXTLOGFONTW;
- {$EXTERNALSYM PEXTLOGFONT}
- NPEXTLOGFONT = NPEXTLOGFONTW;
- {$EXTERNALSYM NPEXTLOGFONT}
- LPEXTLOGFONT = LPEXTLOGFONTW;
- {$EXTERNALSYM LPEXTLOGFONT}
- TExtLogFont = TExtLogFontW;
- {$ELSE}
- EXTLOGFONT = EXTLOGFONTA;
- {$EXTERNALSYM EXTLOGFONT}
- PEXTLOGFONT = PEXTLOGFONTA;
- {$EXTERNALSYM PEXTLOGFONT}
- NPEXTLOGFONT = NPEXTLOGFONTA;
- {$EXTERNALSYM NPEXTLOGFONT}
- LPEXTLOGFONT = LPEXTLOGFONTA;
- {$EXTERNALSYM LPEXTLOGFONT}
- TExtLogFont = TExtLogFontA;
- {$ENDIF UNICODE}
- const
- ELF_VERSION = 0;
- {$EXTERNALSYM ELF_VERSION}
- ELF_CULTURE_LATIN = 0;
- {$EXTERNALSYM ELF_CULTURE_LATIN}
- // EnumFonts Masks
- RASTER_FONTTYPE = $0001;
- {$EXTERNALSYM RASTER_FONTTYPE}
- DEVICE_FONTTYPE = $002;
- {$EXTERNALSYM DEVICE_FONTTYPE}
- TRUETYPE_FONTTYPE = $004;
- {$EXTERNALSYM TRUETYPE_FONTTYPE}
- function RGB(r, g, b: BYTE): COLORREF;
- {$EXTERNALSYM RGB}
- function PALETTERGB(r, g, b: BYTE): COLORREF;
- {$EXTERNALSYM PALETTERGB}
- function PALETTEINDEX(i: WORD): COLORREF;
- {$EXTERNALSYM PALETTEINDEX}
- // palette entry flags
- const
- PC_RESERVED = $01; // palette index used for animation
- {$EXTERNALSYM PC_RESERVED}
- PC_EXPLICIT = $02; // palette index is explicit to device
- {$EXTERNALSYM PC_EXPLICIT}
- PC_NOCOLLAPSE = $04; // do not match color to system palette
- {$EXTERNALSYM PC_NOCOLLAPSE}
- function GetRValue(rgb: COLORREF): BYTE;
- {$EXTERNALSYM GetRValue}
- function GetGValue(rgb: COLORREF): BYTE;
- {$EXTERNALSYM GetGValue}
- function GetBValue(rgb: COLORREF): BYTE;
- {$EXTERNALSYM GetBValue}
- // Background Modes
- const
- TRANSPARENT = 1;
- {$EXTERNALSYM TRANSPARENT}
- OPAQUE = 2;
- {$EXTERNALSYM OPAQUE}
- BKMODE_LAST = 2;
- {$EXTERNALSYM BKMODE_LAST}
- // Graphics Modes
- GM_COMPATIBLE = 1;
- {$EXTERNALSYM GM_COMPATIBLE}
- GM_ADVANCED = 2;
- {$EXTERNALSYM GM_ADVANCED}
- GM_LAST = 2;
- {$EXTERNALSYM GM_LAST}
- // PolyDraw and GetPath point types
- PT_CLOSEFIGURE = $01;
- {$EXTERNALSYM PT_CLOSEFIGURE}
- PT_LINETO = $02;
- {$EXTERNALSYM PT_LINETO}
- PT_BEZIERTO = $04;
- {$EXTERNALSYM PT_BEZIERTO}
- PT_MOVETO = $06;
- {$EXTERNALSYM PT_MOVETO}
- // Mapping Modes
- MM_TEXT = 1;
- {$EXTERNALSYM MM_TEXT}
- MM_LOMETRIC = 2;
- {$EXTERNALSYM MM_LOMETRIC}
- MM_HIMETRIC = 3;
- {$EXTERNALSYM MM_HIMETRIC}
- MM_LOENGLISH = 4;
- {$EXTERNALSYM MM_LOENGLISH}
- MM_HIENGLISH = 5;
- {$EXTERNALSYM MM_HIENGLISH}
- MM_TWIPS = 6;
- {$EXTERNALSYM MM_TWIPS}
- MM_ISOTROPIC = 7;
- {$EXTERNALSYM MM_ISOTROPIC}
- MM_ANISOTROPIC = 8;
- {$EXTERNALSYM MM_ANISOTROPIC}
- // Min and Max Mapping Mode values
- MM_MIN = MM_TEXT;
- {$EXTERNALSYM MM_MIN}
- MM_MAX = MM_ANISOTROPIC;
- {$EXTERNALSYM MM_MAX}
- MM_MAX_FIXEDSCALE = MM_TWIPS;
- {$EXTERNALSYM MM_MAX_FIXEDSCALE}
- // Coordinate Modes
- ABSOLUTE = 1;
- {$EXTERNALSYM ABSOLUTE}
- RELATIVE = 2;
- {$EXTERNALSYM RELATIVE}
- // Stock Logical Objects
- WHITE_BRUSH = 0;
- {$EXTERNALSYM WHITE_BRUSH}
- LTGRAY_BRUSH = 1;
- {$EXTERNALSYM LTGRAY_BRUSH}
- GRAY_BRUSH = 2;
- {$EXTERNALSYM GRAY_BRUSH}
- DKGRAY_BRUSH = 3;
- {$EXTERNALSYM DKGRAY_BRUSH}
- BLACK_BRUSH = 4;
- {$EXTERNALSYM BLACK_BRUSH}
- NULL_BRUSH = 5;
- {$EXTERNALSYM NULL_BRUSH}
- HOLLOW_BRUSH = NULL_BRUSH;
- {$EXTERNALSYM HOLLOW_BRUSH}
- WHITE_PEN = 6;
- {$EXTERNALSYM WHITE_PEN}
- BLACK_PEN = 7;
- {$EXTERNALSYM BLACK_PEN}
- NULL_PEN = 8;
- {$EXTERNALSYM NULL_PEN}
- OEM_FIXED_FONT = 10;
- {$EXTERNALSYM OEM_FIXED_FONT}
- ANSI_FIXED_FONT = 11;
- {$EXTERNALSYM ANSI_FIXED_FONT}
- ANSI_VAR_FONT = 12;
- {$EXTERNALSYM ANSI_VAR_FONT}
- SYSTEM_FONT = 13;
- {$EXTERNALSYM SYSTEM_FONT}
- DEVICE_DEFAULT_FONT = 14;
- {$EXTERNALSYM DEVICE_DEFAULT_FONT}
- DEFAULT_PALETTE = 15;
- {$EXTERNALSYM DEFAULT_PALETTE}
- SYSTEM_FIXED_FONT = 16;
- {$EXTERNALSYM SYSTEM_FIXED_FONT}
- DEFAULT_GUI_FONT = 17;
- {$EXTERNALSYM DEFAULT_GUI_FONT}
- DC_BRUSH = 18;
- {$EXTERNALSYM DC_BRUSH}
- DC_PEN = 19;
- {$EXTERNALSYM DC_PEN}
- {$IFDEF WIN2000_UP}
- STOCK_LAST = 19;
- {$EXTERNALSYM STOCK_LAST}
- {$ELSE}
- {$IFDEF WIN95_UP}
- STOCK_LAST = 17;
- {$EXTERNALSYM STOCK_LAST}
- {$ELSE}
- STOCK_LAST = 16;
- {$EXTERNALSYM STOCK_LAST}
- {$ENDIF WIN95_UP}
- {$ENDIF WIN2000_UP}
- CLR_INVALID = DWORD($FFFFFFFF);
- {$EXTERNALSYM CLR_INVALID}
- // Brush Styles
- BS_SOLID = 0;
- {$EXTERNALSYM BS_SOLID}
- BS_NULL = 1;
- {$EXTERNALSYM BS_NULL}
- BS_HOLLOW = BS_NULL;
- {$EXTERNALSYM BS_HOLLOW}
- BS_HATCHED = 2;
- {$EXTERNALSYM BS_HATCHED}
- BS_PATTERN = 3;
- {$EXTERNALSYM BS_PATTERN}
- BS_INDEXED = 4;
- {$EXTERNALSYM BS_INDEXED}
- BS_DIBPATTERN = 5;
- {$EXTERNALSYM BS_DIBPATTERN}
- BS_DIBPATTERNPT = 6;
- {$EXTERNALSYM BS_DIBPATTERNPT}
- BS_PATTERN8X8 = 7;
- {$EXTERNALSYM BS_PATTERN8X8}
- BS_DIBPATTERN8X8 = 8;
- {$EXTERNALSYM BS_DIBPATTERN8X8}
- BS_MONOPATTERN = 9;
- {$EXTERNALSYM BS_MONOPATTERN}
- // Hatch Styles
- HS_HORIZONTAL = 0; // -----
- {$EXTERNALSYM HS_HORIZONTAL}
- HS_VERTICAL = 1; // |||||
- {$EXTERNALSYM HS_VERTICAL}
- HS_FDIAGONAL = 2; // \\\\\
- {$EXTERNALSYM HS_FDIAGONAL}
- HS_BDIAGONAL = 3; // /////
- {$EXTERNALSYM HS_BDIAGONAL}
- HS_CROSS = 4; // +++++
- {$EXTERNALSYM HS_CROSS}
- HS_DIAGCROSS = 5; // xxxxx
- {$EXTERNALSYM HS_DIAGCROSS}
- // Pen Styles
- PS_SOLID = 0;
- {$EXTERNALSYM PS_SOLID}
- PS_DASH = 1; // -------
- {$EXTERNALSYM PS_DASH}
- PS_DOT = 2; // .......
- {$EXTERNALSYM PS_DOT}
- PS_DASHDOT = 3; // _._._._
- {$EXTERNALSYM PS_DASHDOT}
- PS_DASHDOTDOT = 4; // _.._.._
- {$EXTERNALSYM PS_DASHDOTDOT}
- PS_NULL = 5;
- {$EXTERNALSYM PS_NULL}
- PS_INSIDEFRAME = 6;
- {$EXTERNALSYM PS_INSIDEFRAME}
- PS_USERSTYLE = 7;
- {$EXTERNALSYM PS_USERSTYLE}
- PS_ALTERNATE = 8;
- {$EXTERNALSYM PS_ALTERNATE}
- PS_STYLE_MASK = $0000000F;
- {$EXTERNALSYM PS_STYLE_MASK}
- PS_ENDCAP_ROUND = $00000000;
- {$EXTERNALSYM PS_ENDCAP_ROUND}
- PS_ENDCAP_SQUARE = $00000100;
- {$EXTERNALSYM PS_ENDCAP_SQUARE}
- PS_ENDCAP_FLAT = $00000200;
- {$EXTERNALSYM PS_ENDCAP_FLAT}
- PS_ENDCAP_MASK = $00000F00;
- {$EXTERNALSYM PS_ENDCAP_MASK}
- PS_JOIN_ROUND = $00000000;
- {$EXTERNALSYM PS_JOIN_ROUND}
- PS_JOIN_BEVEL = $00001000;
- {$EXTERNALSYM PS_JOIN_BEVEL}
- PS_JOIN_MITER = $00002000;
- {$EXTERNALSYM PS_JOIN_MITER}
- PS_JOIN_MASK = $0000F000;
- {$EXTERNALSYM PS_JOIN_MASK}
- PS_COSMETIC = $00000000;
- {$EXTERNALSYM PS_COSMETIC}
- PS_GEOMETRIC = $00010000;
- {$EXTERNALSYM PS_GEOMETRIC}
- PS_TYPE_MASK = $000F0000;
- {$EXTERNALSYM PS_TYPE_MASK}
- AD_COUNTERCLOCKWISE = 1;
- {$EXTERNALSYM AD_COUNTERCLOCKWISE}
- AD_CLOCKWISE = 2;
- {$EXTERNALSYM AD_CLOCKWISE}
- // Device Parameters for GetDeviceCaps()
- DRIVERVERSION = 0; // Device driver version
- {$EXTERNALSYM DRIVERVERSION}
- TECHNOLOGY = 2; // Device classification
- {$EXTERNALSYM TECHNOLOGY}
- HORZSIZE = 4; // Horizontal size in millimeters
- {$EXTERNALSYM HORZSIZE}
- VERTSIZE = 6; // Vertical size in millimeters
- {$EXTERNALSYM VERTSIZE}
- HORZRES = 8; // Horizontal width in pixels
- {$EXTERNALSYM HORZRES}
- VERTRES = 10; // Vertical height in pixels
- {$EXTERNALSYM VERTRES}
- BITSPIXEL = 12; // Number of bits per pixel
- {$EXTERNALSYM BITSPIXEL}
- PLANES = 14; // Number of planes
- {$EXTERNALSYM PLANES}
- NUMBRUSHES = 16; // Number of brushes the device has
- {$EXTERNALSYM NUMBRUSHES}
- NUMPENS = 18; // Number of pens the device has
- {$EXTERNALSYM NUMPENS}
- NUMMARKERS = 20; // Number of markers the device has
- {$EXTERNALSYM NUMMARKERS}
- NUMFONTS = 22; // Number of fonts the device has
- {$EXTERNALSYM NUMFONTS}
- NUMCOLORS = 24; // Number of colors the device supports
- {$EXTERNALSYM NUMCOLORS}
- PDEVICESIZE = 26; // Size required for device descriptor
- {$EXTERNALSYM PDEVICESIZE}
- CURVECAPS = 28; // Curve capabilities
- {$EXTERNALSYM CURVECAPS}
- LINECAPS = 30; // Line capabilities
- {$EXTERNALSYM LINECAPS}
- POLYGONALCAPS = 32; // Polygonal capabilities
- {$EXTERNALSYM POLYGONALCAPS}
- TEXTCAPS = 34; // Text capabilities
- {$EXTERNALSYM TEXTCAPS}
- CLIPCAPS = 36; // Clipping capabilities
- {$EXTERNALSYM CLIPCAPS}
- RASTERCAPS = 38; // Bitblt capabilities
- {$EXTERNALSYM RASTERCAPS}
- ASPECTX = 40; // Length of the X leg
- {$EXTERNALSYM ASPECTX}
- ASPECTY = 42; // Length of the Y leg
- {$EXTERNALSYM ASPECTY}
- ASPECTXY = 44; // Length of the hypotenuse
- {$EXTERNALSYM ASPECTXY}
- LOGPIXELSX = 88; // Logical pixels/inch in X
- {$EXTERNALSYM LOGPIXELSX}
- LOGPIXELSY = 90; // Logical pixels/inch in Y
- {$EXTERNALSYM LOGPIXELSY}
- SIZEPALETTE = 104; // Number of entries in physical palette
- {$EXTERNALSYM SIZEPALETTE}
- NUMRESERVED = 106; // Number of reserved entries in palette
- {$EXTERNALSYM NUMRESERVED}
- COLORRES = 108; // Actual color resolution
- {$EXTERNALSYM COLORRES}
- // Printing related DeviceCaps. These replace the appropriate Escapes
- PHYSICALWIDTH = 110; // Physical Width in device units
- {$EXTERNALSYM PHYSICALWIDTH}
- PHYSICALHEIGHT = 111; // Physical Height in device units
- {$EXTERNALSYM PHYSICALHEIGHT}
- PHYSICALOFFSETX = 112; // Physical Printable Area x margin
- {$EXTERNALSYM PHYSICALOFFSETX}
- PHYSICALOFFSETY = 113; // Physical Printable Area y margin
- {$EXTERNALSYM PHYSICALOFFSETY}
- SCALINGFACTORX = 114; // Scaling factor x
- {$EXTERNALSYM SCALINGFACTORX}
- SCALINGFACTORY = 115; // Scaling factor y
- {$EXTERNALSYM SCALINGFACTORY}
- // Display driver specific
- VREFRESH = 116; // Current vertical refresh rate of the
- {$EXTERNALSYM VREFRESH}
- // display device (for displays only) in Hz
- DESKTOPVERTRES = 117; // Horizontal width of entire desktop in
- {$EXTERNALSYM DESKTOPVERTRES}
- // pixels
- DESKTOPHORZRES = 118; // Vertical height of entire desktop in
- {$EXTERNALSYM DESKTOPHORZRES}
- // pixels
- BLTALIGNMENT = 119; // Preferred blt alignment
- {$EXTERNALSYM BLTALIGNMENT}
- SHADEBLENDCAPS = 120; // Shading and blending caps
- {$EXTERNALSYM SHADEBLENDCAPS}
- COLORMGMTCAPS = 121; // Color Management caps
- {$EXTERNALSYM COLORMGMTCAPS}
- // Device Capability Masks:
- // Device Technologies
- DT_PLOTTER = 0; // Vector plotter
- {$EXTERNALSYM DT_PLOTTER}
- DT_RASDISPLAY = 1; // Raster display
- {$EXTERNALSYM DT_RASDISPLAY}
- DT_RASPRINTER = 2; // Raster printer
- {$EXTERNALSYM DT_RASPRINTER}
- DT_RASCAMERA = 3; // Raster camera
- {$EXTERNALSYM DT_RASCAMERA}
- DT_CHARSTREAM = 4; // Character-stream, PLP
- {$EXTERNALSYM DT_CHARSTREAM}
- DT_METAFILE = 5; // Metafile, VDM
- {$EXTERNALSYM DT_METAFILE}
- DT_DISPFILE = 6; // Display-file
- {$EXTERNALSYM DT_DISPFILE}
- // Curve Capabilities
- CC_NONE = 0; // Curves not supported
- {$EXTERNALSYM CC_NONE}
- CC_CIRCLES = 1; // Can do circles
- {$EXTERNALSYM CC_CIRCLES}
- CC_PIE = 2; // Can do pie wedges
- {$EXTERNALSYM CC_PIE}
- CC_CHORD = 4; // Can do chord arcs
- {$EXTERNALSYM CC_CHORD}
- CC_ELLIPSES = 8; // Can do ellipese
- {$EXTERNALSYM CC_ELLIPSES}
- CC_WIDE = 16; // Can do wide lines
- {$EXTERNALSYM CC_WIDE}
- CC_STYLED = 32; // Can do styled lines
- {$EXTERNALSYM CC_STYLED}
- CC_WIDESTYLED = 64; // Can do wide styled lines
- {$EXTERNALSYM CC_WIDESTYLED}
- CC_INTERIORS = 128; // Can do interiors
- {$EXTERNALSYM CC_INTERIORS}
- CC_ROUNDRECT = 256;
- {$EXTERNALSYM CC_ROUNDRECT}
- // Line Capabilities
- LC_NONE = 0; // Lines not supported
- {$EXTERNALSYM LC_NONE}
- LC_POLYLINE = 2; // Can do polylines
- {$EXTERNALSYM LC_POLYLINE}
- LC_MARKER = 4; // Can do markers
- {$EXTERNALSYM LC_MARKER}
- LC_POLYMARKER = 8; // Can do polymarkers
- {$EXTERNALSYM LC_POLYMARKER}
- LC_WIDE = 16; // Can do wide lines
- {$EXTERNALSYM LC_WIDE}
- LC_STYLED = 32; // Can do styled lines
- {$EXTERNALSYM LC_STYLED}
- LC_WIDESTYLED = 64; // Can do wide styled lines
- {$EXTERNALSYM LC_WIDESTYLED}
- LC_INTERIORS = 128; // Can do interiors
- {$EXTERNALSYM LC_INTERIORS}
- // Polygonal Capabilities
- PC_NONE = 0; // Polygonals not supported
- {$EXTERNALSYM PC_NONE}
- PC_POLYGON = 1; // Can do polygons
- {$EXTERNALSYM PC_POLYGON}
- PC_RECTANGLE = 2; // Can do rectangles
- {$EXTERNALSYM PC_RECTANGLE}
- PC_WINDPOLYGON = 4; // Can do winding polygons
- {$EXTERNALSYM PC_WINDPOLYGON}
- PC_TRAPEZOID = 4; // Can do trapezoids
- {$EXTERNALSYM PC_TRAPEZOID}
- PC_SCANLINE = 8; // Can do scanlines
- {$EXTERNALSYM PC_SCANLINE}
- PC_WIDE = 16; // Can do wide borders
- {$EXTERNALSYM PC_WIDE}
- PC_STYLED = 32; // Can do styled borders
- {$EXTERNALSYM PC_STYLED}
- PC_WIDESTYLED = 64; // Can do wide styled borders
- {$EXTERNALSYM PC_WIDESTYLED}
- PC_INTERIORS = 128; // Can do interiors
- {$EXTERNALSYM PC_INTERIORS}
- PC_POLYPOLYGON = 256; // Can do polypolygons
- {$EXTERNALSYM PC_POLYPOLYGON}
- PC_PATHS = 512; // Can do paths
- {$EXTERNALSYM PC_PATHS}
- // Clipping Capabilities
- CP_NONE = 0; // No clipping of output
- {$EXTERNALSYM CP_NONE}
- CP_RECTANGLE = 1; // Output clipped to rects
- {$EXTERNALSYM CP_RECTANGLE}
- CP_REGION = 2; // obsolete
- {$EXTERNALSYM CP_REGION}
- // Text Capabilities
- TC_OP_CHARACTER = $00000001; // Can do OutputPrecision CHARACTER
- {$EXTERNALSYM TC_OP_CHARACTER}
- TC_OP_STROKE = $00000002; // Can do OutputPrecision STROKE
- {$EXTERNALSYM TC_OP_STROKE}
- TC_CP_STROKE = $00000004; // Can do ClipPrecision STROKE
- {$EXTERNALSYM TC_CP_STROKE}
- TC_CR_90 = $00000008; // Can do CharRotAbility 90
- {$EXTERNALSYM TC_CR_90}
- TC_CR_ANY = $00000010; // Can do CharRotAbility ANY
- {$EXTERNALSYM TC_CR_ANY}
- TC_SF_X_YINDEP = $00000020; // Can do ScaleFreedom X_YINDEPENDENT
- {$EXTERNALSYM TC_SF_X_YINDEP}
- TC_SA_DOUBLE = $00000040; // Can do ScaleAbility DOUBLE
- {$EXTERNALSYM TC_SA_DOUBLE}
- TC_SA_INTEGER = $00000080; // Can do ScaleAbility INTEGER
- {$EXTERNALSYM TC_SA_INTEGER}
- TC_SA_CONTIN = $00000100; // Can do ScaleAbility CONTINUOUS
- {$EXTERNALSYM TC_SA_CONTIN}
- TC_EA_DOUBLE = $00000200; // Can do EmboldenAbility DOUBLE
- {$EXTERNALSYM TC_EA_DOUBLE}
- TC_IA_ABLE = $00000400; // Can do ItalisizeAbility ABLE
- {$EXTERNALSYM TC_IA_ABLE}
- TC_UA_ABLE = $00000800; // Can do UnderlineAbility ABLE
- {$EXTERNALSYM TC_UA_ABLE}
- TC_SO_ABLE = $00001000; // Can do StrikeOutAbility ABLE
- {$EXTERNALSYM TC_SO_ABLE}
- TC_RA_ABLE = $00002000; // Can do RasterFontAble ABLE
- {$EXTERNALSYM TC_RA_ABLE}
- TC_VA_ABLE = $00004000; // Can do VectorFontAble ABLE
- {$EXTERNALSYM TC_VA_ABLE}
- TC_RESERVED = $00008000;
- {$EXTERNALSYM TC_RESERVED}
- TC_SCROLLBLT = $00010000; // Don't do text scroll with blt
- {$EXTERNALSYM TC_SCROLLBLT}
- // Raster Capabilities
- RC_BITBLT = 1; // Can do standard BLT.
- {$EXTERNALSYM RC_BITBLT}
- RC_BANDING = 2; // Device requires banding support
- {$EXTERNALSYM RC_BANDING}
- RC_SCALING = 4; // Device requires scaling support
- {$EXTERNALSYM RC_SCALING}
- RC_BITMAP64 = 8; // Device can support >64K bitmap
- {$EXTERNALSYM RC_BITMAP64}
- RC_GDI20_OUTPUT = $0010; // has 2.0 output calls
- {$EXTERNALSYM RC_GDI20_OUTPUT}
- RC_GDI20_STATE = $0020;
- {$EXTERNALSYM RC_GDI20_STATE}
- RC_SAVEBITMAP = $0040;
- {$EXTERNALSYM RC_SAVEBITMAP}
- RC_DI_BITMAP = $0080; // supports DIB to memory
- {$EXTERNALSYM RC_DI_BITMAP}
- RC_PALETTE = $0100; // supports a palette
- {$EXTERNALSYM RC_PALETTE}
- RC_DIBTODEV = $0200; // supports DIBitsToDevice
- {$EXTERNALSYM RC_DIBTODEV}
- RC_BIGFONT = $0400; // supports >64K fonts
- {$EXTERNALSYM RC_BIGFONT}
- RC_STRETCHBLT = $0800; // supports StretchBlt
- {$EXTERNALSYM RC_STRETCHBLT}
- RC_FLOODFILL = $1000; // supports FloodFill
- {$EXTERNALSYM RC_FLOODFILL}
- RC_STRETCHDIB = $2000; // supports StretchDIBits
- {$EXTERNALSYM RC_STRETCHDIB}
- RC_OP_DX_OUTPUT = $4000;
- {$EXTERNALSYM RC_OP_DX_OUTPUT}
- RC_DEVBITS = $8000;
- {$EXTERNALSYM RC_DEVBITS}
- // Shading and blending caps
- SB_NONE = $00000000;
- {$EXTERNALSYM SB_NONE}
- SB_CONST_ALPHA = $00000001;
- {$EXTERNALSYM SB_CONST_ALPHA}
- SB_PIXEL_ALPHA = $00000002;
- {$EXTERNALSYM SB_PIXEL_ALPHA}
- SB_PREMULT_ALPHA = $00000004;
- {$EXTERNALSYM SB_PREMULT_ALPHA}
- SB_GRAD_RECT = $00000010;
- {$EXTERNALSYM SB_GRAD_RECT}
- SB_GRAD_TRI = $00000020;
- {$EXTERNALSYM SB_GRAD_TRI}
- // Color Management caps
- CM_NONE = $00000000;
- {$EXTERNALSYM CM_NONE}
- CM_DEVICE_ICM = $00000001;
- {$EXTERNALSYM CM_DEVICE_ICM}
- CM_GAMMA_RAMP = $00000002;
- {$EXTERNALSYM CM_GAMMA_RAMP}
- CM_CMYK_COLOR = $00000004;
- {$EXTERNALSYM CM_CMYK_COLOR}
- // DIB color table identifiers
- DIB_RGB_COLORS = 0; // color table in RGBs
- {$EXTERNALSYM DIB_RGB_COLORS}
- DIB_PAL_COLORS = 1; // color table in palette indices
- {$EXTERNALSYM DIB_PAL_COLORS}
- // constants for Get/SetSystemPaletteUse()
- SYSPAL_ERROR = 0;
- {$EXTERNALSYM SYSPAL_ERROR}
- SYSPAL_STATIC = 1;
- {$EXTERNALSYM SYSPAL_STATIC}
- SYSPAL_NOSTATIC = 2;
- {$EXTERNALSYM SYSPAL_NOSTATIC}
- SYSPAL_NOSTATIC256 = 3;
- {$EXTERNALSYM SYSPAL_NOSTATIC256}
- // constants for CreateDIBitmap
- CBM_INIT = $04; // initialize bitmap
- {$EXTERNALSYM CBM_INIT}
- // ExtFloodFill style flags
- FLOODFILLBORDER = 0;
- {$EXTERNALSYM FLOODFILLBORDER}
- FLOODFILLSURFACE = 1;
- {$EXTERNALSYM FLOODFILLSURFACE}
- // size of a device name string
- CCHDEVICENAME = 32;
- {$EXTERNALSYM CCHDEVICENAME}
- // size of a form name string
- CCHFORMNAME = 32;
- {$EXTERNALSYM CCHFORMNAME}
- {$IFDEF WIN98ME}
- {$IFNDEF WINNT4}
- {$DEFINE WIN98ME_UP_EXCEPT_NT4}
- {$ENDIF !WINNT4}
- {$ENDIF WIN98ME}
- type
- TDmDisplayFlagsUnion = record
- case Integer of
- 0: (
- dmDisplayFlags: DWORD);
- 1: (
- dmNup: DWORD);
- end;
- _devicemodeA = record
- dmDeviceName: array [0..CCHDEVICENAME - 1] of BYTE;
- dmSpecVersion: WORD;
- dmDriverVersion: WORD;
- dmSize: WORD;
- dmDriverExtra: WORD;
- dmFields: DWORD;
- union1: record
- case Integer of
- // printer only fields
- 0: (
- dmOrientation: Smallint;
- dmPaperSize: Smallint;
- dmPaperLength: Smallint;
- dmPaperWidth: Smallint;
- dmScale: Smallint;
- dmCopies: Smallint;
- dmDefaultSource: Smallint;
- dmPrintQuality: Smallint);
- // display only fields
- 1: (
- dmPosition: POINTL;
- dmDisplayOrientation: DWORD;
- dmDisplayFixedOutput: DWORD);
- end;
- dmColor: Shortint;
- dmDuplex: Shortint;
- dmYResolution: Shortint;
- dmTTOption: Shortint;
- dmCollate: Shortint;
- dmFormName: array [0..CCHFORMNAME - 1] of BYTE;
- dmLogPixels: WORD;
- dmBitsPerPel: DWORD;
- dmPelsWidth: DWORD;
- dmPelsHeight: DWORD;
- dmDisplayFlags: TDmDisplayFlagsUnion;
- dmDisplayFrequency: DWORD;
- dmICMMethod: DWORD;
- dmICMIntent: DWORD;
- dmMediaType: DWORD;
- dmDitherType: DWORD;
- dmReserved1: DWORD;
- dmReserved2: DWORD;
- {$IFDEF WIN98ME_UP_EXCEPT_NT4}
- dmPanningWidth: DWORD;
- dmPanningHeight: DWORD;
- {$ENDIF WIN98ME_UP_EXCEPT_NT4}
- end;
- {$EXTERNALSYM _devicemodeA}
- DEVMODEA = _devicemodeA;
- {$EXTERNALSYM DEVMODEA}
- PDEVMODEA = ^DEVMODEA;
- {$EXTERNALSYM PDEVMODEA}
- LPDEVMODEA = ^DEVMODEA;
- {$EXTERNALSYM LPDEVMODEA}
- NPDEVMODEA = ^DEVMODEA;
- {$EXTERNALSYM NPDEVMODEA}
- TDevModeA = _devicemodeA;
- _devicemodeW = record
- dmDeviceName: array [0..CCHDEVICENAME - 1] of WCHAR;
- dmSpecVersion: WORD;
- dmDriverVersion: WORD;
- dmSize: WORD;
- dmDriverExtra: WORD;
- dmFields: DWORD;
- union1: record
- case Integer of
- // printer only fields
- 0: (
- dmOrientation: Smallint;
- dmPaperSize: Smallint;
- dmPaperLength: Smallint;
- dmPaperWidth: Smallint;
- dmScale: Smallint;
- dmCopies: Smallint;
- dmDefaultSource: Smallint;
- dmPrintQuality: Smallint);
- // display only fields
- 1: (
- dmPosition: POINTL;
- dmDisplayOrientation: DWORD;
- dmDisplayFixedOutput: DWORD);
- end;
- dmColor: Shortint;
- dmDuplex: Shortint;
- dmYResolution: Shortint;
- dmTTOption: Shortint;
- dmCollate: Shortint;
- dmFormName: array [0..CCHFORMNAME - 1] of WCHAR;
- dmLogPixels: WORD;
- dmBitsPerPel: DWORD;
- dmPelsWidth: DWORD;
- dmPelsHeight: DWORD;
- dmDiusplayFlags: TDmDisplayFlagsUnion;
- dmDisplayFrequency: DWORD;
- dmICMMethod: DWORD;
- dmICMIntent: DWORD;
- dmMediaType: DWORD;
- dmDitherType: DWORD;
- dmReserved1: DWORD;
- dmReserved2: DWORD;
- {$IFDEF WIN98ME_UP_EXCEPT_NT4}
- dmPanningWidth: DWORD;
- dmPanningHeight: DWORD;
- {$ENDIF WIN98ME_UP_EXCEPT_NT4}
- end;
- {$EXTERNALSYM _devicemodeW}
- DEVMODEW = _devicemodeW;
- {$EXTERNALSYM DEVMODEW}
- PDEVMODEW = ^DEVMODEW;
- {$EXTERNALSYM PDEVMODEW}
- LPDEVMODEW = ^DEVMODEW;
- {$EXTERNALSYM LPDEVMODEW}
- NPDEVMODEW = ^DEVMODEW;
- {$EXTERNALSYM NPDEVMODEW}
- TDevModeW = _devicemodeW;
- {$IFDEF UNICODE}
- DEVMODE = DEVMODEW;
- {$EXTERNALSYM DEVMODE}
- PDEVMODE = PDEVMODEW;
- {$EXTERNALSYM PDEVMODE}
- NPDEVMODE = NPDEVMODEW;
- {$EXTERNALSYM NPDEVMODE}
- LPDEVMODE = LPDEVMODEW;
- {$EXTERNALSYM LPDEVMODE}
- TDevMode = TDevModeW;
- {$ELSE}
- DEVMODE = DEVMODEA;
- {$EXTERNALSYM DEVMODE}
- PDEVMODE = PDEVMODEA;
- {$EXTERNALSYM PDEVMODE}
- NPDEVMODE = NPDEVMODEA;
- {$EXTERNALSYM NPDEVMODE}
- LPDEVMODE = LPDEVMODEA;
- {$EXTERNALSYM LPDEVMODE}
- TDevMode = TDevModeA;
- {$ENDIF UNICODE}
- // current version of specification
- const
- {$IFDEF WIN98ME_UP_EXCEPT_NT4}
- DM_SPECVERSION = $0401;
- {$EXTERNALSYM DM_SPECVERSION}
- {$ELSE}
- DM_SPECVERSION = $0400;
- {$EXTERNALSYM DM_SPECVERSION}
- {$ENDIF WIN98ME_UP_EXCEPT_NT4}
- {$UNDEF WIN98ME_UP_EXCEPT_NT4}
- // field selection bits
- const
- DM_ORIENTATION = $00000001;
- {$EXTERNALSYM DM_ORIENTATION}
- DM_PAPERSIZE = $00000002;
- {$EXTERNALSYM DM_PAPERSIZE}
- DM_PAPERLENGTH = $00000004;
- {$EXTERNALSYM DM_PAPERLENGTH}
- DM_PAPERWIDTH = $00000008;
- {$EXTERNALSYM DM_PAPERWIDTH}
- DM_SCALE = $00000010;
- {$EXTERNALSYM DM_SCALE}
- DM_POSITION = $00000020;
- {$EXTERNALSYM DM_POSITION}
- DM_NUP = $00000040;
- {$EXTERNALSYM DM_NUP}
- //#if(WINVER >= 0x0501)
- DM_DISPLAYORIENTATION = $00000080;
- {$EXTERNALSYM DM_DISPLAYORIENTATION}
- //#endif /* WINVER >= 0x0501 */
- DM_COPIES = $00000100;
- {$EXTERNALSYM DM_COPIES}
- DM_DEFAULTSOURCE = $00000200;
- {$EXTERNALSYM DM_DEFAULTSOURCE}
- DM_PRINTQUALITY = $00000400;
- {$EXTERNALSYM DM_PRINTQUALITY}
- DM_COLOR = $00000800;
- {$EXTERNALSYM DM_COLOR}
- DM_DUPLEX = $00001000;
- {$EXTERNALSYM DM_DUPLEX}
- DM_YRESOLUTION = $00002000;
- {$EXTERNALSYM DM_YRESOLUTION}
- DM_TTOPTION = $00004000;
- {$EXTERNALSYM DM_TTOPTION}
- DM_COLLATE = $00008000;
- {$EXTERNALSYM DM_COLLATE}
- DM_FORMNAME = $00010000;
- {$EXTERNALSYM DM_FORMNAME}
- DM_LOGPIXELS = $00020000;
- {$EXTERNALSYM DM_LOGPIXELS}
- DM_BITSPERPEL = $00040000;
- {$EXTERNALSYM DM_BITSPERPEL}
- DM_PELSWIDTH = $00080000;
- {$EXTERNALSYM DM_PELSWIDTH}
- DM_PELSHEIGHT = $00100000;
- {$EXTERNALSYM DM_PELSHEIGHT}
- DM_DISPLAYFLAGS = $00200000;
- {$EXTERNALSYM DM_DISPLAYFLAGS}
- DM_DISPLAYFREQUENCY = $00400000;
- {$EXTERNALSYM DM_DISPLAYFREQUENCY}
- DM_ICMMETHOD = $00800000;
- {$EXTERNALSYM DM_ICMMETHOD}
- DM_ICMINTENT = $01000000;
- {$EXTERNALSYM DM_ICMINTENT}
- DM_MEDIATYPE = $02000000;
- {$EXTERNALSYM DM_MEDIATYPE}
- DM_DITHERTYPE = $04000000;
- {$EXTERNALSYM DM_DITHERTYPE}
- DM_PANNINGWIDTH = $08000000;
- {$EXTERNALSYM DM_PANNINGWIDTH}
- DM_PANNINGHEIGHT = $10000000;
- {$EXTERNALSYM DM_PANNINGHEIGHT}
- //#if(WINVER >= 0x0501)
- DM_DISPLAYFIXEDOUTPUT = $20000000;
- {$EXTERNALSYM DM_DISPLAYFIXEDOUTPUT}
- //#endif /* WINVER >= 0x0501 */
- // orientation selections
- DMORIENT_PORTRAIT = 1;
- {$EXTERNALSYM DMORIENT_PORTRAIT}
- DMORIENT_LANDSCAPE = 2;
- {$EXTERNALSYM DMORIENT_LANDSCAPE}
- // paper selections
- DMPAPER_LETTER = 1; // Letter 8 1/2 x 11 in
- {$EXTERNALSYM DMPAPER_LETTER}
- DMPAPER_FIRST = DMPAPER_LETTER;
- {$EXTERNALSYM DMPAPER_FIRST}
- DMPAPER_LETTERSMALL = 2; // Letter Small 8 1/2 x 11 in
- {$EXTERNALSYM DMPAPER_LETTERSMALL}
- DMPAPER_TABLOID = 3; // Tabloid 11 x 17 in
- {$EXTERNALSYM DMPAPER_TABLOID}
- DMPAPER_LEDGER = 4; // Ledger 17 x 11 in
- {$EXTERNALSYM DMPAPER_LEDGER}
- DMPAPER_LEGAL = 5; // Legal 8 1/2 x 14 in
- {$EXTERNALSYM DMPAPER_LEGAL}
- DMPAPER_STATEMENT = 6; // Statement 5 1/2 x 8 1/2 in
- {$EXTERNALSYM DMPAPER_STATEMENT}
- DMPAPER_EXECUTIVE = 7; // Executive 7 1/4 x 10 1/2 in
- {$EXTERNALSYM DMPAPER_EXECUTIVE}
- DMPAPER_A3 = 8; // A3 297 x 420 mm
- {$EXTERNALSYM DMPAPER_A3}
- DMPAPER_A4 = 9; // A4 210 x 297 mm
- {$EXTERNALSYM DMPAPER_A4}
- DMPAPER_A4SMALL = 10; // A4 Small 210 x 297 mm
- {$EXTERNALSYM DMPAPER_A4SMALL}
- DMPAPER_A5 = 11; // A5 148 x 210 mm
- {$EXTERNALSYM DMPAPER_A5}
- DMPAPER_B4 = 12; // B4 (JIS) 250 x 354
- {$EXTERNALSYM DMPAPER_B4}
- DMPAPER_B5 = 13; // B5 (JIS) 182 x 257 mm
- {$EXTERNALSYM DMPAPER_B5}
- DMPAPER_FOLIO = 14; // Folio 8 1/2 x 13 in
- {$EXTERNALSYM DMPAPER_FOLIO}
- DMPAPER_QUARTO = 15; // Quarto 215 x 275 mm
- {$EXTERNALSYM DMPAPER_QUARTO}
- DMPAPER_10X14 = 16; // 10x14 in
- {$EXTERNALSYM DMPAPER_10X14}
- DMPAPER_11X17 = 17; // 11x17 in
- {$EXTERNALSYM DMPAPER_11X17}
- DMPAPER_NOTE = 18; // Note 8 1/2 x 11 in
- {$EXTERNALSYM DMPAPER_NOTE}
- DMPAPER_ENV_9 = 19; // Envelope #9 3 7/8 x 8 7/8
- {$EXTERNALSYM DMPAPER_ENV_9}
- DMPAPER_ENV_10 = 20; // Envelope #10 4 1/8 x 9 1/2
- {$EXTERNALSYM DMPAPER_ENV_10}
- DMPAPER_ENV_11 = 21; // Envelope #11 4 1/2 x 10 3/8
- {$EXTERNALSYM DMPAPER_ENV_11}
- DMPAPER_ENV_12 = 22; // Envelope #12 4 \276 x 11
- {$EXTERNALSYM DMPAPER_ENV_12}
- DMPAPER_ENV_14 = 23; // Envelope #14 5 x 11 1/2
- {$EXTERNALSYM DMPAPER_ENV_14}
- DMPAPER_CSHEET = 24; // C size sheet
- {$EXTERNALSYM DMPAPER_CSHEET}
- DMPAPER_DSHEET = 25; // D size sheet
- {$EXTERNALSYM DMPAPER_DSHEET}
- DMPAPER_ESHEET = 26; // E size sheet
- {$EXTERNALSYM DMPAPER_ESHEET}
- DMPAPER_ENV_DL = 27; // Envelope DL 110 x 220mm
- {$EXTERNALSYM DMPAPER_ENV_DL}
- DMPAPER_ENV_C5 = 28; // Envelope C5 162 x 229 mm
- {$EXTERNALSYM DMPAPER_ENV_C5}
- DMPAPER_ENV_C3 = 29; // Envelope C3 324 x 458 mm
- {$EXTERNALSYM DMPAPER_ENV_C3}
- DMPAPER_ENV_C4 = 30; // Envelope C4 229 x 324 mm
- {$EXTERNALSYM DMPAPER_ENV_C4}
- DMPAPER_ENV_C6 = 31; // Envelope C6 114 x 162 mm
- {$EXTERNALSYM DMPAPER_ENV_C6}
- DMPAPER_ENV_C65 = 32; // Envelope C65 114 x 229 mm
- {$EXTERNALSYM DMPAPER_ENV_C65}
- DMPAPER_ENV_B4 = 33; // Envelope B4 250 x 353 mm
- {$EXTERNALSYM DMPAPER_ENV_B4}
- DMPAPER_ENV_B5 = 34; // Envelope B5 176 x 250 mm
- {$EXTERNALSYM DMPAPER_ENV_B5}
- DMPAPER_ENV_B6 = 35; // Envelope B6 176 x 125 mm
- {$EXTERNALSYM DMPAPER_ENV_B6}
- DMPAPER_ENV_ITALY = 36; // Envelope 110 x 230 mm
- {$EXTERNALSYM DMPAPER_ENV_ITALY}
- DMPAPER_ENV_MONARCH = 37; // Envelope Monarch 3.875 x 7.5 in
- {$EXTERNALSYM DMPAPER_ENV_MONARCH}
- DMPAPER_ENV_PERSONAL = 38; // 6 3/4 Envelope 3 5/8 x 6 1/2 in
- {$EXTERNALSYM DMPAPER_ENV_PERSONAL}
- DMPAPER_FANFOLD_US = 39; // US Std Fanfold 14 7/8 x 11 in
- {$EXTERNALSYM DMPAPER_FANFOLD_US}
- DMPAPER_FANFOLD_STD_GERMAN = 40; // German Std Fanfold 8 1/2 x 12 in
- {$EXTERNALSYM DMPAPER_FANFOLD_STD_GERMAN}
- DMPAPER_FANFOLD_LGL_GERMAN = 41; // German Legal Fanfold 8 1/2 x 13 in
- {$EXTERNALSYM DMPAPER_FANFOLD_LGL_GERMAN}
- DMPAPER_ISO_B4 = 42; // B4 (ISO) 250 x 353 mm
- {$EXTERNALSYM DMPAPER_ISO_B4}
- DMPAPER_JAPANESE_POSTCARD = 43; // Japanese Postcard 100 x 148 mm
- {$EXTERNALSYM DMPAPER_JAPANESE_POSTCARD}
- DMPAPER_9X11 = 44; // 9 x 11 in
- {$EXTERNALSYM DMPAPER_9X11}
- DMPAPER_10X11 = 45; // 10 x 11 in
- {$EXTERNALSYM DMPAPER_10X11}
- DMPAPER_15X11 = 46; // 15 x 11 in
- {$EXTERNALSYM DMPAPER_15X11}
- DMPAPER_ENV_INVITE = 47; // Envelope Invite 220 x 220 mm
- {$EXTERNALSYM DMPAPER_ENV_INVITE}
- DMPAPER_RESERVED_48 = 48; // RESERVED--DO NOT USE
- {$EXTERNALSYM DMPAPER_RESERVED_48}
- DMPAPER_RESERVED_49 = 49; // RESERVED--DO NOT USE
- {$EXTERNALSYM DMPAPER_RESERVED_49}
- DMPAPER_LETTER_EXTRA = 50; // Letter Extra 9 \275 x 12 in
- {$EXTERNALSYM DMPAPER_LETTER_EXTRA}
- DMPAPER_LEGAL_EXTRA = 51; // Legal Extra 9 \275 x 15 in
- {$EXTERNALSYM DMPAPER_LEGAL_EXTRA}
- DMPAPER_TABLOID_EXTRA = 52; // Tabloid Extra 11.69 x 18 in
- {$EXTERNALSYM DMPAPER_TABLOID_EXTRA}
- DMPAPER_A4_EXTRA = 53; // A4 Extra 9.27 x 12.69 in
- {$EXTERNALSYM DMPAPER_A4_EXTRA}
- DMPAPER_LETTER_TRANSVERSE = 54; // Letter Transverse 8 \275 x 11 in
- {$EXTERNALSYM DMPAPER_LETTER_TRANSVERSE}
- DMPAPER_A4_TRANSVERSE = 55; // A4 Transverse 210 x 297 mm
- {$EXTERNALSYM DMPAPER_A4_TRANSVERSE}
- DMPAPER_LETTER_EXTRA_TRANSVERSE = 56; // Letter Extra Transverse 9\275 x 12 in
- {$EXTERNALSYM DMPAPER_LETTER_EXTRA_TRANSVERSE}
- DMPAPER_A_PLUS = 57; // SuperA/SuperA/A4 227 x 356 mm
- {$EXTERNALSYM DMPAPER_A_PLUS}
- DMPAPER_B_PLUS = 58; // SuperB/SuperB/A3 305 x 487 mm
- {$EXTERNALSYM DMPAPER_B_PLUS}
- DMPAPER_LETTER_PLUS = 59; // Letter Plus 8.5 x 12.69 in
- {$EXTERNALSYM DMPAPER_LETTER_PLUS}
- DMPAPER_A4_PLUS = 60; // A4 Plus 210 x 330 mm
- {$EXTERNALSYM DMPAPER_A4_PLUS}
- DMPAPER_A5_TRANSVERSE = 61; // A5 Transverse 148 x 210 mm
- {$EXTERNALSYM DMPAPER_A5_TRANSVERSE}
- DMPAPER_B5_TRANSVERSE = 62; // B5 (JIS) Transverse 182 x 257 mm
- {$EXTERNALSYM DMPAPER_B5_TRANSVERSE}
- DMPAPER_A3_EXTRA = 63; // A3 Extra 322 x 445 mm
- {$EXTERNALSYM DMPAPER_A3_EXTRA}
- DMPAPER_A5_EXTRA = 64; // A5 Extra 174 x 235 mm
- {$EXTERNALSYM DMPAPER_A5_EXTRA}
- DMPAPER_B5_EXTRA = 65; // B5 (ISO) Extra 201 x 276 mm
- {$EXTERNALSYM DMPAPER_B5_EXTRA}
- DMPAPER_A2 = 66; // A2 420 x 594 mm
- {$EXTERNALSYM DMPAPER_A2}
- DMPAPER_A3_TRANSVERSE = 67; // A3 Transverse 297 x 420 mm
- {$EXTERNALSYM DMPAPER_A3_TRANSVERSE}
- DMPAPER_A3_EXTRA_TRANSVERSE = 68; // A3 Extra Transverse 322 x 445 mm
- {$EXTERNALSYM DMPAPER_A3_EXTRA_TRANSVERSE}
- DMPAPER_DBL_JAPANESE_POSTCARD = 69; // Japanese Double Postcard 200 x 148 mm
- {$EXTERNALSYM DMPAPER_DBL_JAPANESE_POSTCARD}
- DMPAPER_A6 = 70; // A6 105 x 148 mm
- {$EXTERNALSYM DMPAPER_A6}
- DMPAPER_JENV_KAKU2 = 71; // Japanese Envelope Kaku #2
- {$EXTERNALSYM DMPAPER_JENV_KAKU2}
- DMPAPER_JENV_KAKU3 = 72; // Japanese Envelope Kaku #3
- {$EXTERNALSYM DMPAPER_JENV_KAKU3}
- DMPAPER_JENV_CHOU3 = 73; // Japanese Envelope Chou #3
- {$EXTERNALSYM DMPAPER_JENV_CHOU3}
- DMPAPER_JENV_CHOU4 = 74; // Japanese Envelope Chou #4
- {$EXTERNALSYM DMPAPER_JENV_CHOU4}
- DMPAPER_LETTER_ROTATED = 75; // Letter Rotated 11 x 8 1/2 11 in
- {$EXTERNALSYM DMPAPER_LETTER_ROTATED}
- DMPAPER_A3_ROTATED = 76; // A3 Rotated 420 x 297 mm
- {$EXTERNALSYM DMPAPER_A3_ROTATED}
- DMPAPER_A4_ROTATED = 77; // A4 Rotated 297 x 210 mm
- {$EXTERNALSYM DMPAPER_A4_ROTATED}
- DMPAPER_A5_ROTATED = 78; // A5 Rotated 210 x 148 mm
- {$EXTERNALSYM DMPAPER_A5_ROTATED}
- DMPAPER_B4_JIS_ROTATED = 79; // B4 (JIS) Rotated 364 x 257 mm
- {$EXTERNALSYM DMPAPER_B4_JIS_ROTATED}
- DMPAPER_B5_JIS_ROTATED = 80; // B5 (JIS) Rotated 257 x 182 mm
- {$EXTERNALSYM DMPAPER_B5_JIS_ROTATED}
- DMPAPER_JAPANESE_POSTCARD_ROTATED = 81; // Japanese Postcard Rotated 148 x 100 mm
- {$EXTERNALSYM DMPAPER_JAPANESE_POSTCARD_ROTATED}
- DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED = 82; // Double Japanese Postcard Rotated 148 x 200 mm
- {$EXTERNALSYM DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED}
- DMPAPER_A6_ROTATED = 83; // A6 Rotated 148 x 105 mm
- {$EXTERNALSYM DMPAPER_A6_ROTATED}
- DMPAPER_JENV_KAKU2_ROTATED = 84; // Japanese Envelope Kaku #2 Rotated
- {$EXTERNALSYM DMPAPER_JENV_KAKU2_ROTATED}
- DMPAPER_JENV_KAKU3_ROTATED = 85; // Japanese Envelope Kaku #3 Rotated
- {$EXTERNALSYM DMPAPER_JENV_KAKU3_ROTATED}
- DMPAPER_JENV_CHOU3_ROTATED = 86; // Japanese Envelope Chou #3 Rotated
- {$EXTERNALSYM DMPAPER_JENV_CHOU3_ROTATED}
- DMPAPER_JENV_CHOU4_ROTATED = 87; // Japanese Envelope Chou #4 Rotated
- {$EXTERNALSYM DMPAPER_JENV_CHOU4_ROTATED}
- DMPAPER_B6_JIS = 88; // B6 (JIS) 128 x 182 mm
- {$EXTERNALSYM DMPAPER_B6_JIS}
- DMPAPER_B6_JIS_ROTATED = 89; // B6 (JIS) Rotated 182 x 128 mm
- {$EXTERNALSYM DMPAPER_B6_JIS_ROTATED}
- DMPAPER_12X11 = 90; // 12 x 11 in
- {$EXTERNALSYM DMPAPER_12X11}
- DMPAPER_JENV_YOU4 = 91; // Japanese Envelope You #4
- {$EXTERNALSYM DMPAPER_JENV_YOU4}
- DMPAPER_JENV_YOU4_ROTATED = 92; // Japanese Envelope You #4 Rotated
- {$EXTERNALSYM DMPAPER_JENV_YOU4_ROTATED}
- DMPAPER_P16K = 93; // PRC 16K 146 x 215 mm
- {$EXTERNALSYM DMPAPER_P16K}
- DMPAPER_P32K = 94; // PRC 32K 97 x 151 mm
- {$EXTERNALSYM DMPAPER_P32K}
- DMPAPER_P32KBIG = 95; // PRC 32K(Big) 97 x 151 mm
- {$EXTERNALSYM DMPAPER_P32KBIG}
- DMPAPER_PENV_1 = 96; // PRC Envelope #1 102 x 165 mm
- {$EXTERNALSYM DMPAPER_PENV_1}
- DMPAPER_PENV_2 = 97; // PRC Envelope #2 102 x 176 mm
- {$EXTERNALSYM DMPAPER_PENV_2}
- DMPAPER_PENV_3 = 98; // PRC Envelope #3 125 x 176 mm
- {$EXTERNALSYM DMPAPER_PENV_3}
- DMPAPER_PENV_4 = 99; // PRC Envelope #4 110 x 208 mm
- {$EXTERNALSYM DMPAPER_PENV_4}
- DMPAPER_PENV_5 = 100; // PRC Envelope #5 110 x 220 mm
- {$EXTERNALSYM DMPAPER_PENV_5}
- DMPAPER_PENV_6 = 101; // PRC Envelope #6 120 x 230 mm
- {$EXTERNALSYM DMPAPER_PENV_6}
- DMPAPER_PENV_7 = 102; // PRC Envelope #7 160 x 230 mm
- {$EXTERNALSYM DMPAPER_PENV_7}
- DMPAPER_PENV_8 = 103; // PRC Envelope #8 120 x 309 mm
- {$EXTERNALSYM DMPAPER_PENV_8}
- DMPAPER_PENV_9 = 104; // PRC Envelope #9 229 x 324 mm
- {$EXTERNALSYM DMPAPER_PENV_9}
- DMPAPER_PENV_10 = 105; // PRC Envelope #10 324 x 458 mm
- {$EXTERNALSYM DMPAPER_PENV_10}
- DMPAPER_P16K_ROTATED = 106; // PRC 16K Rotated
- {$EXTERNALSYM DMPAPER_P16K_ROTATED}
- DMPAPER_P32K_ROTATED = 107; // PRC 32K Rotated
- {$EXTERNALSYM DMPAPER_P32K_ROTATED}
- DMPAPER_P32KBIG_ROTATED = 108; // PRC 32K(Big) Rotated
- {$EXTERNALSYM DMPAPER_P32KBIG_ROTATED}
- DMPAPER_PENV_1_ROTATED = 109; // PRC Envelope #1 Rotated 165 x 102 mm
- {$EXTERNALSYM DMPAPER_PENV_1_ROTATED}
- DMPAPER_PENV_2_ROTATED = 110; // PRC Envelope #2 Rotated 176 x 102 mm
- {$EXTERNALSYM DMPAPER_PENV_2_ROTATED}
- DMPAPER_PENV_3_ROTATED = 111; // PRC Envelope #3 Rotated 176 x 125 mm
- {$EXTERNALSYM DMPAPER_PENV_3_ROTATED}
- DMPAPER_PENV_4_ROTATED = 112; // PRC Envelope #4 Rotated 208 x 110 mm
- {$EXTERNALSYM DMPAPER_PENV_4_ROTATED}
- DMPAPER_PENV_5_ROTATED = 113; // PRC Envelope #5 Rotated 220 x 110 mm
- {$EXTERNALSYM DMPAPER_PENV_5_ROTATED}
- DMPAPER_PENV_6_ROTATED = 114; // PRC Envelope #6 Rotated 230 x 120 mm
- {$EXTERNALSYM DMPAPER_PENV_6_ROTATED}
- DMPAPER_PENV_7_ROTATED = 115; // PRC Envelope #7 Rotated 230 x 160 mm
- {$EXTERNALSYM DMPAPER_PENV_7_ROTATED}
- DMPAPER_PENV_8_ROTATED = 116; // PRC Envelope #8 Rotated 309 x 120 mm
- {$EXTERNALSYM DMPAPER_PENV_8_ROTATED}
- DMPAPER_PENV_9_ROTATED = 117; // PRC Envelope #9 Rotated 324 x 229 mm
- {$EXTERNALSYM DMPAPER_PENV_9_ROTATED}
- DMPAPER_PENV_10_ROTATED = 118; // PRC Envelope #10 Rotated 458 x 324 mm
- {$EXTERNALSYM DMPAPER_PENV_10_ROTATED}
- {$IFDEF WIN98ME_UP}
- DMPAPER_LAST = DMPAPER_PENV_10_ROTATED;
- {$EXTERNALSYM DMPAPER_LAST}
- {$ELSE}
- DMPAPER_LAST = DMPAPER_A3_EXTRA_TRANSVERSE;
- {$EXTERNALSYM DMPAPER_LAST}
- {$ENDIF WIN98ME_UP}
- DMPAPER_USER = 256;
- {$EXTERNALSYM DMPAPER_USER}
- // bin selections
- DMBIN_UPPER = 1;
- {$EXTERNALSYM DMBIN_UPPER}
- DMBIN_FIRST = DMBIN_UPPER;
- {$EXTERNALSYM DMBIN_FIRST}
- DMBIN_ONLYONE = 1;
- {$EXTERNALSYM DMBIN_ONLYONE}
- DMBIN_LOWER = 2;
- {$EXTERNALSYM DMBIN_LOWER}
- DMBIN_MIDDLE = 3;
- {$EXTERNALSYM DMBIN_MIDDLE}
- DMBIN_MANUAL = 4;
- {$EXTERNALSYM DMBIN_MANUAL}
- DMBIN_ENVELOPE = 5;
- {$EXTERNALSYM DMBIN_ENVELOPE}
- DMBIN_ENVMANUAL = 6;
- {$EXTERNALSYM DMBIN_ENVMANUAL}
- DMBIN_AUTO = 7;
- {$EXTERNALSYM DMBIN_AUTO}
- DMBIN_TRACTOR = 8;
- {$EXTERNALSYM DMBIN_TRACTOR}
- DMBIN_SMALLFMT = 9;
- {$EXTERNALSYM DMBIN_SMALLFMT}
- DMBIN_LARGEFMT = 10;
- {$EXTERNALSYM DMBIN_LARGEFMT}
- DMBIN_LARGECAPACITY = 11;
- {$EXTERNALSYM DMBIN_LARGECAPACITY}
- DMBIN_CASSETTE = 14;
- {$EXTERNALSYM DMBIN_CASSETTE}
- DMBIN_FORMSOURCE = 15;
- {$EXTERNALSYM DMBIN_FORMSOURCE}
- DMBIN_LAST = DMBIN_FORMSOURCE;
- {$EXTERNALSYM DMBIN_LAST}
- DMBIN_USER = 256; // device specific bins start here
- {$EXTERNALSYM DMBIN_USER}
- // print qualities
- DMRES_DRAFT = DWORD(-1);
- {$EXTERNALSYM DMRES_DRAFT}
- DMRES_LOW = DWORD(-2);
- {$EXTERNALSYM DMRES_LOW}
- DMRES_MEDIUM = DWORD(-3);
- {$EXTERNALSYM DMRES_MEDIUM}
- DMRES_HIGH = DWORD(-4);
- {$EXTERNALSYM DMRES_HIGH}
- // color enable/disable for color printers
- DMCOLOR_MONOCHROME = 1;
- {$EXTERNALSYM DMCOLOR_MONOCHROME}
- DMCOLOR_COLOR = 2;
- {$EXTERNALSYM DMCOLOR_COLOR}
- // duplex enable
- DMDUP_SIMPLEX = 1;
- {$EXTERNALSYM DMDUP_SIMPLEX}
- DMDUP_VERTICAL = 2;
- {$EXTERNALSYM DMDUP_VERTICAL}
- DMDUP_HORIZONTAL = 3;
- {$EXTERNALSYM DMDUP_HORIZONTAL}
- // TrueType options
- DMTT_BITMAP = 1; // print TT fonts as graphics
- {$EXTERNALSYM DMTT_BITMAP}
- DMTT_DOWNLOAD = 2; // download TT fonts as soft fonts
- {$EXTERNALSYM DMTT_DOWNLOAD}
- DMTT_SUBDEV = 3; // substitute device fonts for TT fonts
- {$EXTERNALSYM DMTT_SUBDEV}
- DMTT_DOWNLOAD_OUTLINE = 4; // download TT fonts as outline soft fonts
- {$EXTERNALSYM DMTT_DOWNLOAD_OUTLINE}
- // Collation selections
- DMCOLLATE_FALSE = 0;
- {$EXTERNALSYM DMCOLLATE_FALSE}
- DMCOLLATE_TRUE = 1;
- {$EXTERNALSYM DMCOLLATE_TRUE}
- //#if(WINVER >= 0x0501)
- // DEVMODE dmDisplayOrientation specifiations
- DMDO_DEFAULT = 0;
- {$EXTERNALSYM DMDO_DEFAULT}
- DMDO_90 = 1;
- {$EXTERNALSYM DMDO_90}
- DMDO_180 = 2;
- {$EXTERNALSYM DMDO_180}
- DMDO_270 = 3;
- {$EXTERNALSYM DMDO_270}
- // DEVMODE dmDisplayFixedOutput specifiations
- DMDFO_DEFAULT = 0;
- {$EXTERNALSYM DMDFO_DEFAULT}
- DMDFO_STRETCH = 1;
- {$EXTERNALSYM DMDFO_STRETCH}
- DMDFO_CENTER = 2;
- {$EXTERNALSYM DMDFO_CENTER}
- //#endif /* WINVER >= 0x0501 */
- // DEVMODE dmDisplayFlags flags
- // #define DM_GRAYSCALE 0x00000001 /* This flag is no longer valid */
- // #define DM_INTERLACED 0x00000002 /* This flag is no longer valid */
- DMDISPLAYFLAGS_TEXTMODE = $00000004;
- {$EXTERNALSYM DMDISPLAYFLAGS_TEXTMODE}
- // dmNup , multiple logical page per physical page options
- DMNUP_SYSTEM = 1;
- {$EXTERNALSYM DMNUP_SYSTEM}
- DMNUP_ONEUP = 2;
- {$EXTERNALSYM DMNUP_ONEUP}
- // ICM methods
- DMICMMETHOD_NONE = 1; // ICM disabled
- {$EXTERNALSYM DMICMMETHOD_NONE}
- DMICMMETHOD_SYSTEM = 2; // ICM handled by system
- {$EXTERNALSYM DMICMMETHOD_SYSTEM}
- DMICMMETHOD_DRIVER = 3; // ICM handled by driver
- {$EXTERNALSYM DMICMMETHOD_DRIVER}
- DMICMMETHOD_DEVICE = 4; // ICM handled by device
- {$EXTERNALSYM DMICMMETHOD_DEVICE}
- DMICMMETHOD_USER = 256; // Device-specific methods start here
- {$EXTERNALSYM DMICMMETHOD_USER}
- // ICM Intents
- DMICM_SATURATE = 1; // Maximize color saturation
- {$EXTERNALSYM DMICM_SATURATE}
- DMICM_CONTRAST = 2; // Maximize color contrast
- {$EXTERNALSYM DMICM_CONTRAST}
- DMICM_COLORIMETRIC = 3; // Use specific color metric
- {$EXTERNALSYM DMICM_COLORIMETRIC}
- DMICM_ABS_COLORIMETRIC = 4; // Use specific color metric
- {$EXTERNALSYM DMICM_ABS_COLORIMETRIC}
- DMICM_USER = 256; // Device-specific intents start here
- {$EXTERNALSYM DMICM_USER}
- // Media types
- DMMEDIA_STANDARD = 1; // Standard paper
- {$EXTERNALSYM DMMEDIA_STANDARD}
- DMMEDIA_TRANSPARENCY = 2; // Transparency
- {$EXTERNALSYM DMMEDIA_TRANSPARENCY}
- DMMEDIA_GLOSSY = 3; // Glossy paper
- {$EXTERNALSYM DMMEDIA_GLOSSY}
- DMMEDIA_USER = 256; // Device-specific media start here
- {$EXTERNALSYM DMMEDIA_USER}
- // Dither types
- DMDITHER_NONE = 1; // No dithering
- {$EXTERNALSYM DMDITHER_NONE}
- DMDITHER_COARSE = 2; // Dither with a coarse brush
- {$EXTERNALSYM DMDITHER_COARSE}
- DMDITHER_FINE = 3; // Dither with a fine brush
- {$EXTERNALSYM DMDITHER_FINE}
- DMDITHER_LINEART = 4; // LineArt dithering
- {$EXTERNALSYM DMDITHER_LINEART}
- DMDITHER_ERRORDIFFUSION = 5; // LineArt dithering
- {$EXTERNALSYM DMDITHER_ERRORDIFFUSION}
- DMDITHER_RESERVED6 = 6; // LineArt dithering
- {$EXTERNALSYM DMDITHER_RESERVED6}
- DMDITHER_RESERVED7 = 7; // LineArt dithering
- {$EXTERNALSYM DMDITHER_RESERVED7}
- DMDITHER_RESERVED8 = 8; // LineArt dithering
- {$EXTERNALSYM DMDITHER_RESERVED8}
- DMDITHER_RESERVED9 = 9; // LineArt dithering
- {$EXTERNALSYM DMDITHER_RESERVED9}
- DMDITHER_GRAYSCALE = 10; // Device does grayscaling
- {$EXTERNALSYM DMDITHER_GRAYSCALE}
- DMDITHER_USER = 256; // Device-specific dithers start here
- {$EXTERNALSYM DMDITHER_USER}
- type
- PDisplayDeviceA = ^TDisplayDeviceA;
- _DISPLAY_DEVICEA = record
- cb: DWORD;
- DeviceName: array [0..32 - 1] of CHAR;
- DeviceString: array [0..128 - 1] of CHAR;
- StateFlags: DWORD;
- DeviceID: array [0..128 - 1] of CHAR;
- DeviceKey: array [0..128 - 1] of CHAR;
- end;
- {$EXTERNALSYM _DISPLAY_DEVICEA}
- DISPLAY_DEVICEA = _DISPLAY_DEVICEA;
- {$EXTERNALSYM DISPLAY_DEVICEA}
- LPDISPLAY_DEVICEA = ^DISPLAY_DEVICEA;
- {$EXTERNALSYM LPDISPLAY_DEVICEA}
- PDISPLAY_DEVICEA = ^DISPLAY_DEVICEA;
- {$EXTERNALSYM PDISPLAY_DEVICEA}
- TDisplayDeviceA = _DISPLAY_DEVICEA;
- PDisplayDeviceW = ^TDisplayDeviceW;
- _DISPLAY_DEVICEW = record
- cb: DWORD;
- DeviceName: array [0..32 - 1] of WCHAR;
- DeviceString: array [0..128 - 1] of WCHAR;
- StateFlags: DWORD;
- DeviceID: array [0..128 - 1] of WCHAR;
- DeviceKey: array [0..128 - 1] of WCHAR;
- end;
- {$EXTERNALSYM _DISPLAY_DEVICEW}
- DISPLAY_DEVICEW = _DISPLAY_DEVICEW;
- {$EXTERNALSYM DISPLAY_DEVICEW}
- LPDISPLAY_DEVICEW = ^DISPLAY_DEVICEW;
- {$EXTERNALSYM LPDISPLAY_DEVICEW}
- PDISPLAY_DEVICEW = ^DISPLAY_DEVICEW;
- {$EXTERNALSYM PDISPLAY_DEVICEW}
- TDisplayDeviceW = _DISPLAY_DEVICEW;
- {$IFDEF UNICODE}
- DISPLAY_DEVICE = DISPLAY_DEVICEW;
- {$EXTERNALSYM DISPLAY_DEVICE}
- PDISPLAY_DEVICE = PDISPLAY_DEVICEW;
- {$EXTERNALSYM PDISPLAY_DEVICE}
- LPDISPLAY_DEVICE = LPDISPLAY_DEVICEW;
- {$EXTERNALSYM LPDISPLAY_DEVICE}
- TDisplayDevice = TDisplayDeviceW;
- PDisplayDevice = PDisplayDeviceW;
- {$ELSE}
- DISPLAY_DEVICE = DISPLAY_DEVICEA;
- {$EXTERNALSYM DISPLAY_DEVICE}
- PDISPLAY_DEVICE = PDISPLAY_DEVICEA;
- {$EXTERNALSYM PDISPLAY_DEVICE}
- LPDISPLAY_DEVICE = LPDISPLAY_DEVICEA;
- {$EXTERNALSYM LPDISPLAY_DEVICE}
- TDisplayDevice = TDisplayDeviceA;
- PDisplayDevice = PDisplayDeviceA;
- {$ENDIF UNICODE}
- const
- DISPLAY_DEVICE_ATTACHED_TO_DESKTOP = $00000001;
- {$EXTERNALSYM DISPLAY_DEVICE_ATTACHED_TO_DESKTOP}
- DISPLAY_DEVICE_MULTI_DRIVER = $00000002;
- {$EXTERNALSYM DISPLAY_DEVICE_MULTI_DRIVER}
- DISPLAY_DEVICE_PRIMARY_DEVICE = $00000004;
- {$EXTERNALSYM DISPLAY_DEVICE_PRIMARY_DEVICE}
- DISPLAY_DEVICE_MIRRORING_DRIVER = $00000008;
- {$EXTERNALSYM DISPLAY_DEVICE_MIRRORING_DRIVER}
- DISPLAY_DEVICE_VGA_COMPATIBLE = $00000010;
- {$EXTERNALSYM DISPLAY_DEVICE_VGA_COMPATIBLE}
- DISPLAY_DEVICE_REMOVABLE = $00000020;
- {$EXTERNALSYM DISPLAY_DEVICE_REMOVABLE}
- DISPLAY_DEVICE_MODESPRUNED = $08000000;
- {$EXTERNALSYM DISPLAY_DEVICE_MODESPRUNED}
- DISPLAY_DEVICE_REMOTE = $04000000;
- {$EXTERNALSYM DISPLAY_DEVICE_REMOTE}
- DISPLAY_DEVICE_DISCONNECT = $02000000;
- {$EXTERNALSYM DISPLAY_DEVICE_DISCONNECT}
- // Child device state
- DISPLAY_DEVICE_ACTIVE = $00000001;
- {$EXTERNALSYM DISPLAY_DEVICE_ACTIVE}
- DISPLAY_DEVICE_ATTACHED = $00000002;
- {$EXTERNALSYM DISPLAY_DEVICE_ATTACHED}
- // GetRegionData/ExtCreateRegion
- RDH_RECTANGLES = 1;
- {$EXTERNALSYM RDH_RECTANGLES}
- type
- PRgnDataHeader = ^TRgnDataHeader;
- _RGNDATAHEADER = record
- dwSize: DWORD;
- iType: DWORD;
- nCount: DWORD;
- nRgnSize: DWORD;
- rcBound: RECT;
- end;
- {$EXTERNALSYM _RGNDATAHEADER}
- RGNDATAHEADER = _RGNDATAHEADER;
- {$EXTERNALSYM RGNDATAHEADER}
- TRgnDataHeader = _RGNDATAHEADER;
- PRgnData = ^TRgnData;
- _RGNDATA = record
- rdh: RGNDATAHEADER;
- Buffer: array [0..0] of Char;
- end;
- {$EXTERNALSYM _RGNDATA}
- RGNDATA = _RGNDATA;
- {$EXTERNALSYM RGNDATA}
- LPRGNDATA = ^RGNDATA;
- {$EXTERNALSYM LPRGNDATA}
- NPRGNDATA = ^RGNDATA;
- {$EXTERNALSYM NPRGNDATA}
- TRgnData = _RGNDATA;
- // for GetRandomRgn
- const
- SYSRGN = 4;
- {$EXTERNALSYM SYSRGN}
- type
- PAbc = ^TAbc;
- _ABC = record
- abcA: Integer;
- abcB: UINT;
- abcC: Integer;
- end;
- {$EXTERNALSYM _ABC}
- ABC = _ABC;
- {$EXTERNALSYM ABC}
- LPABC = ^ABC;
- {$EXTERNALSYM LPABC}
- NPABC = ^ABC;
- {$EXTERNALSYM NPABC}
- TAbc = _ABC;
- PAbcFloat = ^TAbcFloat;
- _ABCFLOAT = record
- abcfA: FLOAT;
- abcfB: FLOAT;
- abcfC: FLOAT;
- end;
- {$EXTERNALSYM _ABCFLOAT}
- ABCFLOAT = _ABCFLOAT;
- {$EXTERNALSYM ABCFLOAT}
- LPABCFLOAT = ^ABCFLOAT;
- {$EXTERNALSYM LPABCFLOAT}
- NPABCFLOAT = ^ABCFLOAT;
- {$EXTERNALSYM NPABCFLOAT}
- TAbcFloat = _ABCFLOAT;
- POutlineTextMetricA = ^TOutlineTextMetricA;
- _OUTLINETEXTMETRICA = record
- otmSize: UINT;
- otmTextMetrics: TEXTMETRICA;
- otmFiller: BYTE;
- otmPanoseNumber: PANOSE;
- otmfsSelection: UINT;
- otmfsType: UINT;
- otmsCharSlopeRise: Integer;
- otmsCharSlopeRun: Integer;
- otmItalicAngle: Integer;
- otmEMSquare: UINT;
- otmAscent: Integer;
- otmDescent: Integer;
- otmLineGap: UINT;
- otmsCapEmHeight: UINT;
- otmsXHeight: UINT;
- otmrcFontBox: RECT;
- otmMacAscent: Integer;
- otmMacDescent: Integer;
- otmMacLineGap: UINT;
- otmusMinimumPPEM: UINT;
- otmptSubscriptSize: POINT;
- otmptSubscriptOffset: POINT;
- otmptSuperscriptSize: POINT;
- otmptSuperscriptOffset: POINT;
- otmsStrikeoutSize: UINT;
- otmsStrikeoutPosition: Integer;
- otmsUnderscoreSize: Integer;
- otmsUnderscorePosition: Integer;
- otmpFamilyName: PSTR;
- otmpFaceName: PSTR;
- otmpStyleName: PSTR;
- otmpFullName: PSTR;
- end;
- {$EXTERNALSYM _OUTLINETEXTMETRICA}
- OUTLINETEXTMETRICA = _OUTLINETEXTMETRICA;
- {$EXTERNALSYM OUTLINETEXTMETRICA}
- LPOUTLINETEXTMETRICA = ^OUTLINETEXTMETRICA;
- {$EXTERNALSYM LPOUTLINETEXTMETRICA}
- NPOUTLINETEXTMETRICA = ^OUTLINETEXTMETRICA;
- {$EXTERNALSYM NPOUTLINETEXTMETRICA}
- TOutlineTextMetricA = _OUTLINETEXTMETRICA;
- POutlineTextMetricW = ^TOutlineTextMetricW;
- _OUTLINETEXTMETRICW = record
- otmSize: UINT;
- otmTextMetrics: TEXTMETRICW;
- otmFiller: BYTE;
- otmPanoseNumber: PANOSE;
- otmfsSelection: UINT;
- otmfsType: UINT;
- otmsCharSlopeRise: Integer;
- otmsCharSlopeRun: Integer;
- otmItalicAngle: Integer;
- otmEMSquare: UINT;
- otmAscent: Integer;
- otmDescent: Integer;
- otmLineGap: UINT;
- otmsCapEmHeight: UINT;
- otmsXHeight: UINT;
- otmrcFontBox: RECT;
- otmMacAscent: Integer;
- otmMacDescent: Integer;
- otmMacLineGap: UINT;
- otmusMinimumPPEM: UINT;
- otmptSubscriptSize: POINT;
- otmptSubscriptOffset: POINT;
- otmptSuperscriptSize: POINT;
- otmptSuperscriptOffset: POINT;
- otmsStrikeoutSize: UINT;
- otmsStrikeoutPosition: Integer;
- otmsUnderscoreSize: Integer;
- otmsUnderscorePosition: Integer;
- otmpFamilyName: PSTR;
- otmpFaceName: PSTR;
- otmpStyleName: PSTR;
- otmpFullName: PSTR;
- end;
- {$EXTERNALSYM _OUTLINETEXTMETRICW}
- OUTLINETEXTMETRICW = _OUTLINETEXTMETRICW;
- {$EXTERNALSYM OUTLINETEXTMETRICW}
- LPOUTLINETEXTMETRICW = ^OUTLINETEXTMETRICW;
- {$EXTERNALSYM LPOUTLINETEXTMETRICW}
- NPOUTLINETEXTMETRICW = ^OUTLINETEXTMETRICW;
- {$EXTERNALSYM NPOUTLINETEXTMETRICW}
- TOutlineTextMetricW = _OUTLINETEXTMETRICW;
- {$IFDEF UNICODE}
- OUTLINETEXTMETRIC = OUTLINETEXTMETRICW;
- {$EXTERNALSYM OUTLINETEXTMETRIC}
- POUTLINETEXTMETRIC = POUTLINETEXTMETRICW;
- {$EXTERNALSYM POUTLINETEXTMETRIC}
- NPOUTLINETEXTMETRIC = NPOUTLINETEXTMETRICW;
- {$EXTERNALSYM NPOUTLINETEXTMETRIC}
- LPOUTLINETEXTMETRIC = LPOUTLINETEXTMETRICW;
- {$EXTERNALSYM LPOUTLINETEXTMETRIC}
- TOutlineTextMetric = TOutlineTextMetricW;
- {$ELSE}
- OUTLINETEXTMETRIC = OUTLINETEXTMETRICA;
- {$EXTERNALSYM OUTLINETEXTMETRIC}
- POUTLINETEXTMETRIC = POUTLINETEXTMETRICA;
- {$EXTERNALSYM POUTLINETEXTMETRIC}
- NPOUTLINETEXTMETRIC = NPOUTLINETEXTMETRICA;
- {$EXTERNALSYM NPOUTLINETEXTMETRIC}
- LPOUTLINETEXTMETRIC = LPOUTLINETEXTMETRICA;
- {$EXTERNALSYM LPOUTLINETEXTMETRIC}
- TOutlineTextMetric = TOutlineTextMetricA;
- {$ENDIF UNICODE}
- PPolytextA = ^TPolytextA;
- tagPOLYTEXTA = record
- x: Integer;
- y: Integer;
- n: UINT;
- lpstr: LPCSTR;
- uiFlags: UINT;
- rcl: RECT;
- pdx: PINT;
- end;
- {$EXTERNALSYM tagPOLYTEXTA}
- POLYTEXTA = tagPOLYTEXTA;
- {$EXTERNALSYM POLYTEXTA}
- LPPOLYTEXTA = ^POLYTEXTA;
- {$EXTERNALSYM LPPOLYTEXTA}
- NPPOLYTEXTA = ^POLYTEXTA;
- {$EXTERNALSYM NPPOLYTEXTA}
- TPolytextA = POLYTEXTA;
- PPolytextW = ^TPolytextW;
- tagPOLYTEXTW = record
- x: Integer;
- y: Integer;
- n: UINT;
- lpstr: LPCWSTR;
- uiFlags: UINT;
- rcl: RECT;
- pdx: PINT;
- end;
- {$EXTERNALSYM tagPOLYTEXTW}
- POLYTEXTW = tagPOLYTEXTW;
- {$EXTERNALSYM POLYTEXTW}
- LPPOLYTEXTW = ^POLYTEXTW;
- {$EXTERNALSYM LPPOLYTEXTW}
- NPPOLYTEXTW = ^POLYTEXTW;
- {$EXTERNALSYM NPPOLYTEXTW}
- TPolytextW = POLYTEXTW;
- {$IFDEF UNICODE}
- POLYTEXT = POLYTEXTW;
- {$EXTERNALSYM POLYTEXT}
- PPOLYTEXT = PPOLYTEXTW;
- {$EXTERNALSYM PPOLYTEXT}
- NPPOLYTEXT = NPPOLYTEXTW;
- {$EXTERNALSYM NPPOLYTEXT}
- LPPOLYTEXT = LPPOLYTEXTW;
- {$EXTERNALSYM LPPOLYTEXT}
- TPolyText = TPolyTextW;
- {$ELSE}
- POLYTEXT = POLYTEXTA;
- {$EXTERNALSYM POLYTEXT}
- PPOLYTEXT = PPOLYTEXTA;
- {$EXTERNALSYM PPOLYTEXT}
- NPPOLYTEXT = NPPOLYTEXTA;
- {$EXTERNALSYM NPPOLYTEXT}
- LPPOLYTEXT = LPPOLYTEXTA;
- {$EXTERNALSYM LPPOLYTEXT}
- TPolyText = TPolyTextA;
- {$ENDIF UNICODE}
- PFixed = ^TFixed;
- _FIXED = record
- fract: WORD;
- value: short;
- end;
- {$EXTERNALSYM _FIXED}
- FIXED = _FIXED;
- {$EXTERNALSYM FIXED}
- TFixed = _FIXED;
- PMat2 = ^TMat2;
- _MAT2 = record
- eM11: FIXED;
- eM12: FIXED;
- eM21: FIXED;
- eM22: FIXED;
- end;
- {$EXTERNALSYM _MAT2}
- MAT2 = _MAT2;
- {$EXTERNALSYM MAT2}
- LPMAT2 = ^MAT2;
- {$EXTERNALSYM LPMAT2}
- TMat2 = _MAT2;
- PGlyphMetrics = ^TGlyphMetrics;
- _GLYPHMETRICS = record
- gmBlackBoxX: UINT;
- gmBlackBoxY: UINT;
- gmptGlyphOrigin: POINT;
- gmCellIncX: short;
- gmCellIncY: short;
- end;
- {$EXTERNALSYM _GLYPHMETRICS}
- GLYPHMETRICS = _GLYPHMETRICS;
- {$EXTERNALSYM GLYPHMETRICS}
- LPGLYPHMETRICS = ^GLYPHMETRICS;
- {$EXTERNALSYM LPGLYPHMETRICS}
- TGlyphMetrics = _GLYPHMETRICS;
- // GetGlyphOutline constants
- const
- GGO_METRICS = 0;
- {$EXTERNALSYM GGO_METRICS}
- GGO_BITMAP = 1;
- {$EXTERNALSYM GGO_BITMAP}
- GGO_NATIVE = 2;
- {$EXTERNALSYM GGO_NATIVE}
- GGO_BEZIER = 3;
- {$EXTERNALSYM GGO_BEZIER}
- GGO_GRAY2_BITMAP = 4;
- {$EXTERNALSYM GGO_GRAY2_BITMAP}
- GGO_GRAY4_BITMAP = 5;
- {$EXTERNALSYM GGO_GRAY4_BITMAP}
- GGO_GRAY8_BITMAP = 6;
- {$EXTERNALSYM GGO_GRAY8_BITMAP}
- GGO_GLYPH_INDEX = $0080;
- {$EXTERNALSYM GGO_GLYPH_INDEX}
- GGO_UNHINTED = $0100;
- {$EXTERNALSYM GGO_UNHINTED}
- TT_POLYGON_TYPE = 24;
- {$EXTERNALSYM TT_POLYGON_TYPE}
- TT_PRIM_LINE = 1;
- {$EXTERNALSYM TT_PRIM_LINE}
- TT_PRIM_QSPLINE = 2;
- {$EXTERNALSYM TT_PRIM_QSPLINE}
- TT_PRIM_CSPLINE = 3;
- {$EXTERNALSYM TT_PRIM_CSPLINE}
- type
- PPointFx = ^TPointFx;
- tagPOINTFX = record
- x: FIXED;
- y: FIXED;
- end;
- {$EXTERNALSYM tagPOINTFX}
- POINTFX = tagPOINTFX;
- {$EXTERNALSYM POINTFX}
- LPPOINTFX = ^POINTFX;
- {$EXTERNALSYM LPPOINTFX}
- TPointFx = POINTFX;
- PTtPolyCurve = ^TTtPolyCurve;
- tagTTPOLYCURVE = record
- wType: WORD;
- cpfx: WORD;
- apfx: array [0..0] of POINTFX;
- end;
- {$EXTERNALSYM tagTTPOLYCURVE}
- TTPOLYCURVE = tagTTPOLYCURVE;
- {$EXTERNALSYM TTPOLYCURVE}
- LPTTPOLYCURVE = ^TTPOLYCURVE;
- {$EXTERNALSYM LPTTPOLYCURVE}
- TTtPolyCurve = TTPOLYCURVE;
- PTtPolygonHeader = ^TTtPolygonHeader;
- tagTTPOLYGONHEADER = record
- cb: DWORD;
- dwType: DWORD;
- pfxStart: POINTFX;
- end;
- {$EXTERNALSYM tagTTPOLYGONHEADER}
- TTPOLYGONHEADER = tagTTPOLYGONHEADER;
- {$EXTERNALSYM TTPOLYGONHEADER}
- LPTTPOLYGONHEADER = ^TTPOLYGONHEADER;
- {$EXTERNALSYM LPTTPOLYGONHEADER}
- TTtPolygonHeader = TTPOLYGONHEADER;
- const
- GCP_DBCS = $0001;
- {$EXTERNALSYM GCP_DBCS}
- GCP_REORDER = $0002;
- {$EXTERNALSYM GCP_REORDER}
- GCP_USEKERNING = $0008;
- {$EXTERNALSYM GCP_USEKERNING}
- GCP_GLYPHSHAPE = $0010;
- {$EXTERNALSYM GCP_GLYPHSHAPE}
- GCP_LIGATE = $0020;
- {$EXTERNALSYM GCP_LIGATE}
- ////#define GCP_GLYPHINDEXING 0x0080
- GCP_DIACRITIC = $0100;
- {$EXTERNALSYM GCP_DIACRITIC}
- GCP_KASHIDA = $0400;
- {$EXTERNALSYM GCP_KASHIDA}
- GCP_ERROR = $8000;
- {$EXTERNALSYM GCP_ERROR}
- FLI_MASK = $103B;
- {$EXTERNALSYM FLI_MASK}
- GCP_JUSTIFY = $00010000;
- {$EXTERNALSYM GCP_JUSTIFY}
- ////#define GCP_NODIACRITICS 0x00020000L
- FLI_GLYPHS = $00040000;
- {$EXTERNALSYM FLI_GLYPHS}
- GCP_CLASSIN = $00080000;
- {$EXTERNALSYM GCP_CLASSIN}
- GCP_MAXEXTENT = $00100000;
- {$EXTERNALSYM GCP_MAXEXTENT}
- GCP_JUSTIFYIN = $00200000;
- {$EXTERNALSYM GCP_JUSTIFYIN}
- GCP_DISPLAYZWG = $00400000;
- {$EXTERNALSYM GCP_DISPLAYZWG}
- GCP_SYMSWAPOFF = $00800000;
- {$EXTERNALSYM GCP_SYMSWAPOFF}
- GCP_NUMERICOVERRIDE = $01000000;
- {$EXTERNALSYM GCP_NUMERICOVERRIDE}
- GCP_NEUTRALOVERRIDE = $02000000;
- {$EXTERNALSYM GCP_NEUTRALOVERRIDE}
- GCP_NUMERICSLATIN = $04000000;
- {$EXTERNALSYM GCP_NUMERICSLATIN}
- GCP_NUMERICSLOCAL = $08000000;
- {$EXTERNALSYM GCP_NUMERICSLOCAL}
- GCPCLASS_LATIN = 1;
- {$EXTERNALSYM GCPCLASS_LATIN}
- GCPCLASS_HEBREW = 2;
- {$EXTERNALSYM GCPCLASS_HEBREW}
- GCPCLASS_ARABIC = 2;
- {$EXTERNALSYM GCPCLASS_ARABIC}
- GCPCLASS_NEUTRAL = 3;
- {$EXTERNALSYM GCPCLASS_NEUTRAL}
- GCPCLASS_LOCALNUMBER = 4;
- {$EXTERNALSYM GCPCLASS_LOCALNUMBER}
- GCPCLASS_LATINNUMBER = 5;
- {$EXTERNALSYM GCPCLASS_LATINNUMBER}
- GCPCLASS_LATINNUMERICTERMINATOR = 6;
- {$EXTERNALSYM GCPCLASS_LATINNUMERICTERMINATOR}
- GCPCLASS_LATINNUMERICSEPARATOR = 7;
- {$EXTERNALSYM GCPCLASS_LATINNUMERICSEPARATOR}
- GCPCLASS_NUMERICSEPARATOR = 8;
- {$EXTERNALSYM GCPCLASS_NUMERICSEPARATOR}
- GCPCLASS_PREBOUNDLTR = $80;
- {$EXTERNALSYM GCPCLASS_PREBOUNDLTR}
- GCPCLASS_PREBOUNDRTL = $40;
- {$EXTERNALSYM GCPCLASS_PREBOUNDRTL}
- GCPCLASS_POSTBOUNDLTR = $20;
- {$EXTERNALSYM GCPCLASS_POSTBOUNDLTR}
- GCPCLASS_POSTBOUNDRTL = $10;
- {$EXTERNALSYM GCPCLASS_POSTBOUNDRTL}
- GCPGLYPH_LINKBEFORE = $8000;
- {$EXTERNALSYM GCPGLYPH_LINKBEFORE}
- GCPGLYPH_LINKAFTER = $4000;
- {$EXTERNALSYM GCPGLYPH_LINKAFTER}
- type
- PGcpResultsA = ^TGcpResultsA;
- tagGCP_RESULTSA = record
- lStructSize: DWORD;
- lpOutString: LPSTR;
- lpOrder: LPUINT;
- lpDx: PINT;
- lpCaretPos: PINT;
- lpClass: LPSTR;
- lpGlyphs: LPWSTR;
- nGlyphs: UINT;
- nMaxFit: Integer;
- end;
- {$EXTERNALSYM tagGCP_RESULTSA}
- GCP_RESULTSA = tagGCP_RESULTSA;
- {$EXTERNALSYM GCP_RESULTSA}
- LPGCP_RESULTSA = ^GCP_RESULTSA;
- {$EXTERNALSYM LPGCP_RESULTSA}
- TGcpResultsA = GCP_RESULTSA;
- PGcpResultsW = ^TGcpResultsW;
- tagGCP_RESULTSW = record
- lStructSize: DWORD;
- lpOutString: LPWSTR;
- lpOrder: LPUINT;
- lpDx: PINT;
- lpCaretPos: PINT;
- lpClass: LPSTR;
- lpGlyphs: LPWSTR;
- nGlyphs: UINT;
- nMaxFit: Integer;
- end;
- {$EXTERNALSYM tagGCP_RESULTSW}
- GCP_RESULTSW = tagGCP_RESULTSW;
- {$EXTERNALSYM GCP_RESULTSW}
- LPGCP_RESULTSW = ^GCP_RESULTSW;
- {$EXTERNALSYM LPGCP_RESULTSW}
- TGcpResultsW = GCP_RESULTSW;
- {$IFDEF UNICODE}
- GCP_RESULTS = GCP_RESULTSW;
- {$EXTERNALSYM GCP_RESULTS}
- LPGCP_RESULTS = LPGCP_RESULTSW;
- {$EXTERNALSYM LPGCP_RESULTS}
- TGcpResults = TGcpResultsW;
- PGcpResults = PGcpResultsW;
- {$ELSE}
- GCP_RESULTS = GCP_RESULTSA;
- {$EXTERNALSYM GCP_RESULTS}
- LPGCP_RESULTS = LPGCP_RESULTSA;
- {$EXTERNALSYM LPGCP_RESULTS}
- TGcpResults = TGcpResultsA;
- PGcpResults = PGcpResultsA;
- {$ENDIF UNICODE}
- PRasterizerStatus = ^TRasterizerStatus;
- _RASTERIZER_STATUS = record
- nSize: short;
- wFlags: short;
- nLanguageID: short;
- end;
- {$EXTERNALSYM _RASTERIZER_STATUS}
- RASTERIZER_STATUS = _RASTERIZER_STATUS;
- {$EXTERNALSYM RASTERIZER_STATUS}
- LPRASTERIZER_STATUS = ^RASTERIZER_STATUS;
- {$EXTERNALSYM LPRASTERIZER_STATUS}
- TRasterizerStatus = _RASTERIZER_STATUS;
- // bits defined in wFlags of RASTERIZER_STATUS
- const
- TT_AVAILABLE = $0001;
- {$EXTERNALSYM TT_AVAILABLE}
- TT_ENABLED = $0002;
- {$EXTERNALSYM TT_ENABLED}
- // Pixel format descriptor
- type
- PPixelFormatDescriptor = ^TPixelFormatDescriptor;
- tagPIXELFORMATDESCRIPTOR = record
- nSize: WORD;
- nVersion: WORD;
- dwFlags: DWORD;
- iPixelType: BYTE;
- cColorBits: BYTE;
- cRedBits: BYTE;
- cRedShift: BYTE;
- cGreenBits: BYTE;
- cGreenShift: BYTE;
- cBlueBits: BYTE;
- cBlueShift: BYTE;
- cAlphaBits: BYTE;
- cAlphaShift: BYTE;
- cAccumBits: BYTE;
- cAccumRedBits: BYTE;
- cAccumGreenBits: BYTE;
- cAccumBlueBits: BYTE;
- cAccumAlphaBits: BYTE;
- cDepthBits: BYTE;
- cStencilBits: BYTE;
- cAuxBuffers: BYTE;
- iLayerType: BYTE;
- bReserved: BYTE;
- dwLayerMask: DWORD;
- dwVisibleMask: DWORD;
- dwDamageMask: DWORD;
- end;
- {$EXTERNALSYM tagPIXELFORMATDESCRIPTOR}
- PIXELFORMATDESCRIPTOR = tagPIXELFORMATDESCRIPTOR;
- {$EXTERNALSYM PIXELFORMATDESCRIPTOR}
- LPPIXELFORMATDESCRIPTOR = ^PIXELFORMATDESCRIPTOR;
- {$EXTERNALSYM LPPIXELFORMATDESCRIPTOR}
- TPixelFormatDescriptor = PIXELFORMATDESCRIPTOR;
- // pixel types
- const
- PFD_TYPE_RGBA = 0;
- {$EXTERNALSYM PFD_TYPE_RGBA}
- PFD_TYPE_COLORINDEX = 1;
- {$EXTERNALSYM PFD_TYPE_COLORINDEX}
- // layer types
- PFD_MAIN_PLANE = 0;
- {$EXTERNALSYM PFD_MAIN_PLANE}
- PFD_OVERLAY_PLANE = 1;
- {$EXTERNALSYM PFD_OVERLAY_PLANE}
- PFD_UNDERLAY_PLANE = DWORD(-1);
- {$EXTERNALSYM PFD_UNDERLAY_PLANE}
- // PIXELFORMATDESCRIPTOR flags
- PFD_DOUBLEBUFFER = $00000001;
- {$EXTERNALSYM PFD_DOUBLEBUFFER}
- PFD_STEREO = $00000002;
- {$EXTERNALSYM PFD_STEREO}
- PFD_DRAW_TO_WINDOW = $00000004;
- {$EXTERNALSYM PFD_DRAW_TO_WINDOW}
- PFD_DRAW_TO_BITMAP = $00000008;
- {$EXTERNALSYM PFD_DRAW_TO_BITMAP}
- PFD_SUPPORT_GDI = $00000010;
- {$EXTERNALSYM PFD_SUPPORT_GDI}
- PFD_SUPPORT_OPENGL = $00000020;
- {$EXTERNALSYM PFD_SUPPORT_OPENGL}
- PFD_GENERIC_FORMAT = $00000040;
- {$EXTERNALSYM PFD_GENERIC_FORMAT}
- PFD_NEED_PALETTE = $00000080;
- {$EXTERNALSYM PFD_NEED_PALETTE}
- PFD_NEED_SYSTEM_PALETTE = $00000100;
- {$EXTERNALSYM PFD_NEED_SYSTEM_PALETTE}
- PFD_SWAP_EXCHANGE = $00000200;
- {$EXTERNALSYM PFD_SWAP_EXCHANGE}
- PFD_SWAP_COPY = $00000400;
- {$EXTERNALSYM PFD_SWAP_COPY}
- PFD_SWAP_LAYER_BUFFERS = $00000800;
- {$EXTERNALSYM PFD_SWAP_LAYER_BUFFERS}
- PFD_GENERIC_ACCELERATED = $00001000;
- {$EXTERNALSYM PFD_GENERIC_ACCELERATED}
- PFD_SUPPORT_DIRECTDRAW = $00002000;
- {$EXTERNALSYM PFD_SUPPORT_DIRECTDRAW}
- // PIXELFORMATDESCRIPTOR flags for use in ChoosePixelFormat only
- PFD_DEPTH_DONTCARE = DWORD($20000000);
- {$EXTERNALSYM PFD_DEPTH_DONTCARE}
- PFD_DOUBLEBUFFER_DONTCARE = DWORD($40000000);
- {$EXTERNALSYM PFD_DOUBLEBUFFER_DONTCARE}
- PFD_STEREO_DONTCARE = DWORD($80000000);
- {$EXTERNALSYM PFD_STEREO_DONTCARE}
- type
- OLDFONTENUMPROCA = function(lpelf: LPLOGFONTA; lpntm: LPTEXTMETRICA; FontType: DWORD; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM OLDFONTENUMPROCA}
- OLDFONTENUMPROCW = function(lpelf: LPLOGFONTW; lpntm: LPTEXTMETRICW; FontType: DWORD; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM OLDFONTENUMPROCW}
- OLDFONTENUMPROC = function(lpelf: LPLOGFONT; lpntm: LPTEXTMETRIC; FontType: DWORD; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM OLDFONTENUMPROC}
- FONTENUMPROCA = OLDFONTENUMPROCA;
- {$EXTERNALSYM FONTENUMPROCA}
- FONTENUMPROCW = OLDFONTENUMPROCW;
- {$EXTERNALSYM FONTENUMPROCW}
- FONTENUMPROC = OLDFONTENUMPROC;
- {$EXTERNALSYM FONTENUMPROC}
- GOBJENUMPROC = function(lpLogObject: LPVOID; lpData: LPARAM): Integer; stdcall;
- {$EXTERNALSYM GOBJENUMPROC}
- LINEDDAPROC = procedure(X, Y: Integer; lpData: LPARAM); stdcall;
- {$EXTERNALSYM LINEDDAPROC}
- function AddFontResourceA(lpszFileName: LPCSTR): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceA}
- function AddFontResourceW(lpszFileName: LPCWSTR): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceW}
- function AddFontResource(lpszFileName: LPCTSTR): Integer; stdcall;
- {$EXTERNALSYM AddFontResource}
- function AnimatePalette(hPal: HPALETTE; iStartIndex: UINT; cEntries: UINT; ppe: PPALETTEENTRY): BOOL; stdcall;
- {$EXTERNALSYM AnimatePalette}
- function Arc(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect, nxStartArc, nyStartArc, nXEndArc, nYEndArc: Integer): BOOL; stdcall;
- {$EXTERNALSYM Arc}
- function BitBlt(hdcDEst: HDC; nXDest, nYDest, nWidth, nHeight: Integer; hdcSrc: HDC; nXSrc, nYSrc: Integer; dwRop: DWORD): BOOL; stdcall;
- {$EXTERNALSYM BitBlt}
- function CancelDC(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM CancelDC}
- function Chord(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect, nXRadial1, nYRadial1, nXRadial2, nYRadial2: Integer): BOOL; stdcall;
- {$EXTERNALSYM Chord}
- function ChoosePixelFormat(hdc: HDC; const ppfd: PIXELFORMATDESCRIPTOR): Integer; stdcall;
- {$EXTERNALSYM ChoosePixelFormat}
- function CloseMetaFile(hdc: HDC): HMETAFILE; stdcall;
- {$EXTERNALSYM CloseMetaFile}
- function CombineRgn(hrgnDest, hrgnSrc1, hrgnSrc2: HRGN; fnCombineMode: Integer): Integer; stdcall;
- {$EXTERNALSYM CombineRgn}
- function CopyMetaFileA(hmfSrc: HMETAFILE; lpszFile: LPCSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM CopyMetaFileA}
- function CopyMetaFileW(hmfSrc: HMETAFILE; lpszFile: LPCWSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM CopyMetaFileW}
- function CopyMetaFile(hmfSrc: HMETAFILE; lpszFile: LPCTSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM CopyMetaFile}
- function CreateBitmap(nWidth, nHeight: Integer; Cplanes, cBitsPerPel: UINT; lpvBits: PVOID): HBITMAP; stdcall;
- {$EXTERNALSYM CreateBitmap}
- function CreateBitmapIndirect(const lpbm: BITMAP): HBITMAP; stdcall;
- {$EXTERNALSYM CreateBitmapIndirect}
- function CreateBrushIndirect(const lplb: LOGBRUSH): HBRUSH; stdcall;
- {$EXTERNALSYM CreateBrushIndirect}
- function CreateCompatibleBitmap(hdc: HDC; nWidth, nHeight: Integer): HBITMAP; stdcall;
- {$EXTERNALSYM CreateCompatibleBitmap}
- function CreateDiscardableBitmap(hdc: HDC; nWidth, nHeight: Integer): HBITMAP; stdcall;
- {$EXTERNALSYM CreateDiscardableBitmap}
- function CreateCompatibleDC(hdc: HDC): HDC; stdcall;
- {$EXTERNALSYM CreateCompatibleDC}
- function CreateDCA(lpszDriver, lpszDevice, lpszOutput: LPCSTR; lpInitData: LPDEVMODEA): HDC; stdcall;
- {$EXTERNALSYM CreateDCA}
- function CreateDCW(lpszDriver, lpszDevice, lpszOutput: LPCWSTR; lpInitData: LPDEVMODEW): HDC; stdcall;
- {$EXTERNALSYM CreateDCW}
- function CreateDC(lpszDriver, lpszDevice, lpszOutput: LPCTSTR; lpInitData: LPDEVMODE): HDC; stdcall;
- {$EXTERNALSYM CreateDC}
- function CreateDIBitmap(hdc: HDC; const lpbmih: BITMAPINFOHEADER; fdwInit: DWORD; lpbInit: PVOID; const lpbmi: BITMAPINFO; fuUsage: UINT): HBITMAP; stdcall;
- {$EXTERNALSYM CreateDIBitmap}
- function CreateDIBPatternBrush(hglbDIBPacked: HGLOBAL; fuColorSpec: UINT): HBRUSH; stdcall;
- {$EXTERNALSYM CreateDIBPatternBrush}
- function CreateDIBPatternBrushPt(lpPackedDIB: PVOID; iUsage: UINT): HBRUSH; stdcall;
- {$EXTERNALSYM CreateDIBPatternBrushPt}
- function CreateEllipticRgn(nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): HRGN; stdcall;
- {$EXTERNALSYM CreateEllipticRgn}
- function CreateEllipticRgnIndirect(const lprc: RECT): HRGN; stdcall;
- {$EXTERNALSYM CreateEllipticRgnIndirect}
- function CreateFontIndirectA(const lplf: LOGFONTA): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectA}
- function CreateFontIndirectW(const lplf: LOGFONTW): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectW}
- function CreateFontIndirect(const lplf: LOGFONT): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirect}
- function CreateFontA(nHeight, nWidth, nEscapement, nOrientation, fnWeight: Integer; fdwItalic, fdwUnderline, fdwStrikeOut, fdwCharSet, fdwOutputPrecision, fdwClipPrecision, fdwQuality, fdwPitchAndFamily: DWORD; lpszFace: LPCSTR): HFONT; stdcall;
- {$EXTERNALSYM CreateFontA}
- function CreateFontW(nHeight, nWidth, nEscapement, nOrientation, fnWeight: Integer; fdwItalic, fdwUnderline, fdwStrikeOut, fdwCharSet, fdwOutputPrecision, fdwClipPrecision, fdwQuality, fdwPitchAndFamily: DWORD; lpszFace: LPCWSTR): HFONT; stdcall;
- {$EXTERNALSYM CreateFontW}
- function CreateFont(nHeight, nWidth, nEscapement, nOrientation, fnWeight: Integer; fdwItalic, fdwUnderline, fdwStrikeOut, fdwCharSet, fdwOutputPrecision, fdwClipPrecision, fdwQuality, fdwPitchAndFamily: DWORD; lpszFace: LPCTSTR): HFONT; stdcall;
- {$EXTERNALSYM CreateFont}
- function CreateHatchBrush(fnStyle: Integer; clrref: COLORREF): HBRUSH; stdcall;
- {$EXTERNALSYM CreateHatchBrush}
- function CreateICA(lpszDriver, lpszDevice, lpszOutput: LPCSTR; lpdvmInit: LPDEVMODEA): HDC; stdcall;
- {$EXTERNALSYM CreateICA}
- function CreateICW(lpszDriver, lpszDevice, lpszOutput: LPCWSTR; lpdvmInit: LPDEVMODEW): HDC; stdcall;
- {$EXTERNALSYM CreateICW}
- function CreateIC(lpszDriver, lpszDevice, lpszOutput: LPCWSTR; lpdvmInit: LPDEVMODE): HDC; stdcall;
- {$EXTERNALSYM CreateIC}
- function CreateMetaFileA(lpszFile: LPCSTR): HDC; stdcall;
- {$EXTERNALSYM CreateMetaFileA}
- function CreateMetaFileW(lpszFile: LPCWSTR): HDC; stdcall;
- {$EXTERNALSYM CreateMetaFileW}
- function CreateMetaFile(lpszFile: LPCTSTR): HDC; stdcall;
- {$EXTERNALSYM CreateMetaFile}
- function CreatePalette(const lplgpl: LOGPALETTE): HPALETTE; stdcall;
- {$EXTERNALSYM CreatePalette}
- function CreatePen(fnPenStyle, nWidth: Integer; crColor: COLORREF): HPEN; stdcall;
- {$EXTERNALSYM CreatePen}
- function CreatePenIndirect(const lplgpn: LOGPEN): HPEN; stdcall;
- {$EXTERNALSYM CreatePenIndirect}
- function CreatePolyPolygonRgn(lppt: LPPOINT; lpPolyCounts: LPINT; nCount, fnPolyFillMode: Integer): HRGN; stdcall;
- {$EXTERNALSYM CreatePolyPolygonRgn}
- function CreatePatternBrush(hbmp: HBITMAP): HBRUSH; stdcall;
- {$EXTERNALSYM CreatePatternBrush}
- function CreateRectRgn(nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): HRGN; stdcall;
- {$EXTERNALSYM CreateRectRgn}
- function CreateRectRgnIndirect(const lprc: RECT): HRGN; stdcall;
- {$EXTERNALSYM CreateRectRgnIndirect}
- function CreateRoundRectRgn(nLeftRect, nTopRect, nRightRect, nBottomRect, nWidthEllipse, nHeightEllipse: Integer): HRGN; stdcall;
- {$EXTERNALSYM CreateRoundRectRgn}
- function CreateScalableFontResourceA(fdwHidden: DWORD; lpszFontRes, lpszFontFile, lpszCurrentPath: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM CreateScalableFontResourceA}
- function CreateScalableFontResourceW(fdwHidden: DWORD; lpszFontRes, lpszFontFile, lpszCurrentPath: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM CreateScalableFontResourceW}
- function CreateScalableFontResource(fdwHidden: DWORD; lpszFontRes, lpszFontFile, lpszCurrentPath: LPCTSTR): BOOL; stdcall;
- {$EXTERNALSYM CreateScalableFontResource}
- function CreateSolidBrush(crColor: COLORREF): HBRUSH; stdcall;
- {$EXTERNALSYM CreateSolidBrush}
- function DeleteDC(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM DeleteDC}
- function DeleteMetaFile(hmf: HMETAFILE): BOOL; stdcall;
- {$EXTERNALSYM DeleteMetaFile}
- function DeleteObject(hObject: HGDIOBJ): BOOL; stdcall;
- {$EXTERNALSYM DeleteObject}
- function DescribePixelFormat(hdc: HDC; iPixelFormat: Integer; nBytes: UINT; ppfd: LPPIXELFORMATDESCRIPTOR): Integer; stdcall;
- {$EXTERNALSYM DescribePixelFormat}
- // mode selections for the device mode function
- const
- DM_UPDATE = 1;
- {$EXTERNALSYM DM_UPDATE}
- DM_COPY = 2;
- {$EXTERNALSYM DM_COPY}
- DM_PROMPT = 4;
- {$EXTERNALSYM DM_PROMPT}
- DM_MODIFY = 8;
- {$EXTERNALSYM DM_MODIFY}
- DM_IN_BUFFER = DM_MODIFY;
- {$EXTERNALSYM DM_IN_BUFFER}
- DM_IN_PROMPT = DM_PROMPT;
- {$EXTERNALSYM DM_IN_PROMPT}
- DM_OUT_BUFFER = DM_COPY;
- {$EXTERNALSYM DM_OUT_BUFFER}
- DM_OUT_DEFAULT = DM_UPDATE;
- {$EXTERNALSYM DM_OUT_DEFAULT}
- // device capabilities indices
- DC_FIELDS = 1;
- {$EXTERNALSYM DC_FIELDS}
- DC_PAPERS = 2;
- {$EXTERNALSYM DC_PAPERS}
- DC_PAPERSIZE = 3;
- {$EXTERNALSYM DC_PAPERSIZE}
- DC_MINEXTENT = 4;
- {$EXTERNALSYM DC_MINEXTENT}
- DC_MAXEXTENT = 5;
- {$EXTERNALSYM DC_MAXEXTENT}
- DC_BINS = 6;
- {$EXTERNALSYM DC_BINS}
- DC_DUPLEX = 7;
- {$EXTERNALSYM DC_DUPLEX}
- DC_SIZE = 8;
- {$EXTERNALSYM DC_SIZE}
- DC_EXTRA = 9;
- {$EXTERNALSYM DC_EXTRA}
- DC_VERSION = 10;
- {$EXTERNALSYM DC_VERSION}
- DC_DRIVER = 11;
- {$EXTERNALSYM DC_DRIVER}
- DC_BINNAMES = 12;
- {$EXTERNALSYM DC_BINNAMES}
- DC_ENUMRESOLUTIONS = 13;
- {$EXTERNALSYM DC_ENUMRESOLUTIONS}
- DC_FILEDEPENDENCIES = 14;
- {$EXTERNALSYM DC_FILEDEPENDENCIES}
- DC_TRUETYPE = 15;
- {$EXTERNALSYM DC_TRUETYPE}
- DC_PAPERNAMES = 16;
- {$EXTERNALSYM DC_PAPERNAMES}
- DC_ORIENTATION = 17;
- {$EXTERNALSYM DC_ORIENTATION}
- DC_COPIES = 18;
- {$EXTERNALSYM DC_COPIES}
- DC_BINADJUST = 19;
- {$EXTERNALSYM DC_BINADJUST}
- DC_EMF_COMPLIANT = 20;
- {$EXTERNALSYM DC_EMF_COMPLIANT}
- DC_DATATYPE_PRODUCED = 21;
- {$EXTERNALSYM DC_DATATYPE_PRODUCED}
- DC_COLLATE = 22;
- {$EXTERNALSYM DC_COLLATE}
- DC_MANUFACTURER = 23;
- {$EXTERNALSYM DC_MANUFACTURER}
- DC_MODEL = 24;
- {$EXTERNALSYM DC_MODEL}
- DC_PERSONALITY = 25;
- {$EXTERNALSYM DC_PERSONALITY}
- DC_PRINTRATE = 26;
- {$EXTERNALSYM DC_PRINTRATE}
- DC_PRINTRATEUNIT = 27;
- {$EXTERNALSYM DC_PRINTRATEUNIT}
- PRINTRATEUNIT_PPM = 1;
- {$EXTERNALSYM PRINTRATEUNIT_PPM}
- PRINTRATEUNIT_CPS = 2;
- {$EXTERNALSYM PRINTRATEUNIT_CPS}
- PRINTRATEUNIT_LPM = 3;
- {$EXTERNALSYM PRINTRATEUNIT_LPM}
- PRINTRATEUNIT_IPM = 4;
- {$EXTERNALSYM PRINTRATEUNIT_IPM}
- DC_PRINTERMEM = 28;
- {$EXTERNALSYM DC_PRINTERMEM}
- DC_MEDIAREADY = 29;
- {$EXTERNALSYM DC_MEDIAREADY}
- DC_STAPLE = 30;
- {$EXTERNALSYM DC_STAPLE}
- DC_PRINTRATEPPM = 31;
- {$EXTERNALSYM DC_PRINTRATEPPM}
- DC_COLORDEVICE = 32;
- {$EXTERNALSYM DC_COLORDEVICE}
- DC_NUP = 33;
- {$EXTERNALSYM DC_NUP}
- DC_MEDIATYPENAMES = 34;
- {$EXTERNALSYM DC_MEDIATYPENAMES}
- DC_MEDIATYPES = 35;
- {$EXTERNALSYM DC_MEDIATYPES}
- // bit fields of the return value (DWORD) for DC_TRUETYPE
- DCTT_BITMAP = $0000001;
- {$EXTERNALSYM DCTT_BITMAP}
- DCTT_DOWNLOAD = $0000002;
- {$EXTERNALSYM DCTT_DOWNLOAD}
- DCTT_SUBDEV = $0000004;
- {$EXTERNALSYM DCTT_SUBDEV}
- DCTT_DOWNLOAD_OUTLINE = $0000008;
- {$EXTERNALSYM DCTT_DOWNLOAD_OUTLINE}
- // return values for DC_BINADJUST
- DCBA_FACEUPNONE = $0000;
- {$EXTERNALSYM DCBA_FACEUPNONE}
- DCBA_FACEUPCENTER = $0001;
- {$EXTERNALSYM DCBA_FACEUPCENTER}
- DCBA_FACEUPLEFT = $0002;
- {$EXTERNALSYM DCBA_FACEUPLEFT}
- DCBA_FACEUPRIGHT = $0003;
- {$EXTERNALSYM DCBA_FACEUPRIGHT}
- DCBA_FACEDOWNNONE = $0100;
- {$EXTERNALSYM DCBA_FACEDOWNNONE}
- DCBA_FACEDOWNCENTER = $0101;
- {$EXTERNALSYM DCBA_FACEDOWNCENTER}
- DCBA_FACEDOWNLEFT = $0102;
- {$EXTERNALSYM DCBA_FACEDOWNLEFT}
- DCBA_FACEDOWNRIGHT = $0103;
- {$EXTERNALSYM DCBA_FACEDOWNRIGHT}
- function DeviceCapabilitiesA(pDevice, pPort: LPCSTR; fwCapability: WORD; pOutput: LPSTR; pDevMode: LPDEVMODEA): Integer; stdcall;
- {$EXTERNALSYM DeviceCapabilitiesA}
- function DeviceCapabilitiesW(pDevice, pPort: LPCWSTR; fwCapability: WORD; pOutput: LPWSTR; pDevMode: LPDEVMODEW): Integer; stdcall;
- {$EXTERNALSYM DeviceCapabilitiesW}
- function DeviceCapabilities(pDevice, pPort: LPCTSTR; fwCapability: WORD; pOutput: LPTSTR; pDevMode: LPDEVMODE): Integer; stdcall;
- {$EXTERNALSYM DeviceCapabilities}
- function DrawEscape(hdc: HDC; nEscape, cbInput: Integer; lpszInData: LPCSTR): Integer; stdcall;
- {$EXTERNALSYM DrawEscape}
- function Ellipse(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): BOOL; stdcall;
- {$EXTERNALSYM Ellipse}
- function EnumFontFamiliesExA(hdc: HDC; lpLogFont: LPLOGFONTA; lpEnumFontFamExProc: FONTENUMPROCA; lParam: LPARAM; dwFlags: DWORD): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesExA}
- function EnumFontFamiliesExW(hdc: HDC; lpLogFont: LPLOGFONTW; lpEnumFontFamExProc: FONTENUMPROCW; lParam: LPARAM; dwFlags: DWORD): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesExW}
- function EnumFontFamiliesEx(hdc: HDC; lpLogFont: LPLOGFONT; lpEnumFontFamExProc: FONTENUMPROC; lParam: LPARAM; dwFlags: DWORD): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesEx}
- function EnumFontFamiliesA(hdc: HDC; lpszFamily: LPCSTR; lpEnumFontFamProc: FONTENUMPROCA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesA}
- function EnumFontFamiliesW(hdc: HDC; lpszFamily: LPCWSTR; lpEnumFontFamProc: FONTENUMPROCW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamiliesW}
- function EnumFontFamilies(hdc: HDC; lpszFamily: LPCTSTR; lpEnumFontFamProc: FONTENUMPROC; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontFamilies}
- function EnumFontsA(hdc: HDC; lpFaceName: LPCSTR; lpFontFunc: FONTENUMPROCA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontsA}
- function EnumFontsW(hdc: HDC; lpFaceName: LPCWSTR; lpFontFunc: FONTENUMPROCW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFontsW}
- function EnumFonts(hdc: HDC; lpFaceName: LPCTSTR; lpFontFunc: FONTENUMPROC; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumFonts}
- function EnumObjects(hdc: HDC; mObjectType: Integer; lpObjectFunc: GOBJENUMPROC; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumObjects}
- function EqualRgn(hSrcRgn1, hSrcRgn2: HRGN): BOOL; stdcall;
- {$EXTERNALSYM EqualRgn}
- function Escape(hdc: HDC; nEscape, cbInput: Integer; lpvInData: LPCSTR; lpvOutData: LPVOID): Integer; stdcall;
- {$EXTERNALSYM Escape}
- function ExtEscape(hdc: HDC; nEscape, cbInput: Integer; lpszInData: LPCSTR; cbOutput: Integer; lpszOutData: LPSTR): Integer; stdcall;
- {$EXTERNALSYM ExtEscape}
- function ExcludeClipRect(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): Integer; stdcall;
- {$EXTERNALSYM ExcludeClipRect}
- function ExtCreateRegion(lpXForm: LPXFORM; nCount: DWORD; lpRgnData: LPRGNDATA): HRGN; stdcall;
- {$EXTERNALSYM ExtCreateRegion}
- function ExtFloodFill(hdc: HDC; nXStart, nYStart: Integer; crColor: COLORREF; fuFillType: UINT): BOOL; stdcall;
- {$EXTERNALSYM ExtFloodFill}
- function FillRgn(hdc: HDC; hrgn: HRGN; hbr: HBRUSH): BOOL; stdcall;
- {$EXTERNALSYM FillRgn}
- function FloodFill(hdc: HDC; nXStart, nYStart: Integer; crFill: COLORREF): BOOL; stdcall;
- {$EXTERNALSYM FloodFill}
- function FrameRgn(hdc: HDC; hrgn: HRGN; hbr: HBRUSH; nWidth, nHeight: Integer): BOOL; stdcall;
- {$EXTERNALSYM FrameRgn}
- function GetROP2(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetROP2}
- function GetAspectRatioFilterEx(hdc: HDC; var lpAspectRatio: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetAspectRatioFilterEx}
- function GetBkColor(hdc: HDC): COLORREF; stdcall;
- {$EXTERNALSYM GetBkColor}
- function GetDCBrushColor(hdc: HDC): COLORREF; stdcall;
- {$EXTERNALSYM GetDCBrushColor}
- function GetDCPenColor(hdc: HDC): COLORREF; stdcall;
- {$EXTERNALSYM GetDCPenColor}
- function GetBkMode(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetBkMode}
- function GetBitmapBits(hbmp: HBITMAP; cbBuffer: LONG; lpvBits: LPVOID): LONG; stdcall;
- {$EXTERNALSYM GetBitmapBits}
- function GetBitmapDimensionEx(hBitmap: HBITMAP; var lpDimension: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetBitmapDimensionEx}
- function GetBoundsRect(hdc: HDC; var lprcBounds: RECT; flags: UINT): UINT; stdcall;
- {$EXTERNALSYM GetBoundsRect}
- function GetBrushOrgEx(hdc: HDC; var lppt: POINT): BOOL; stdcall;
- {$EXTERNALSYM GetBrushOrgEx}
- function GetCharWidthA(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthA}
- function GetCharWidthW(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthW}
- function GetCharWidth(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidth}
- function GetCharWidth32A(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidth32A}
- function GetCharWidth32W(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidth32W}
- function GetCharWidth32(hdc: HDC; iFirstChar, iLastChar: UINT; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidth32}
- function GetCharWidthFloatA(hdc: HDC; iFirstChar, iLastChar: UINT; pxBuffer: PFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthFloatA}
- function GetCharWidthFloatW(hdc: HDC; iFirstChar, iLastChar: UINT; pxBuffer: PFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthFloatW}
- function GetCharWidthFloat(hdc: HDC; iFirstChar, iLastChar: UINT; pxBuffer: PFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthFloat}
- function GetCharABCWidthsA(hdc: HDC; uFirstChar, uLastChar: UINT; lpAbc: LPABC): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsA}
- function GetCharABCWidthsW(hdc: HDC; uFirstChar, uLastChar: UINT; lpAbc: LPABC): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsW}
- function GetCharABCWidths(hdc: HDC; uFirstChar, uLastChar: UINT; lpAbc: LPABC): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidths}
- function GetCharABCWidthsFloatA(hdc: HDC; iFirstChar, iLastChar: UINT; lpAbcF: LPABCFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsFloatA}
- function GetCharABCWidthsFloatW(hdc: HDC; iFirstChar, iLastChar: UINT; lpAbcF: LPABCFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsFloatW}
- function GetCharABCWidthsFloat(hdc: HDC; iFirstChar, iLastChar: UINT; lpAbcF: LPABCFLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsFloat}
- function GetClipBox(hdc: HDC; var lprc: RECT): Integer; stdcall;
- {$EXTERNALSYM GetClipBox}
- function GetClipRgn(hdc: HDC; hrgn: HRGN): Integer; stdcall;
- {$EXTERNALSYM GetClipRgn}
- function GetMetaRgn(hdc: HDC; hrgn: HRGN): Integer; stdcall;
- {$EXTERNALSYM GetMetaRgn}
- function GetCurrentObject(hdc: HDC; uObjectType: UINT): HGDIOBJ; stdcall;
- {$EXTERNALSYM GetCurrentObject}
- function GetCurrentPositionEx(hdc: HDC; var lpPoint: POINT): BOOL; stdcall;
- {$EXTERNALSYM GetCurrentPositionEx}
- function GetDeviceCaps(hdc: HDC; nIndex: Integer): Integer; stdcall;
- {$EXTERNALSYM GetDeviceCaps}
- function GetDIBits(hdc: HDC; hbmp: HBITMAP; uStartScan, cScanLines: UINT; lpvBits: LPVOID; var lpbi: BITMAPINFO; uUsage: UINT): Integer; stdcall;
- {$EXTERNALSYM GetDIBits}
- function GetFontData(hdc: HDC; dwTable, dwOffset: DWORD; lpvBuffer: LPVOID; cbData: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetFontData}
- function GetGlyphOutlineA(hdc: HDC; uChar, uFormat: UINT; var lpgm: GLYPHMETRICS; cbBuffer: DWORD; lpvBuffer: LPVOID; const lpMat2: MAT2): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphOutlineA}
- function GetGlyphOutlineW(hdc: HDC; uChar, uFormat: UINT; var lpgm: GLYPHMETRICS; cbBuffer: DWORD; lpvBuffer: LPVOID; const lpMat2: MAT2): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphOutlineW}
- function GetGlyphOutline(hdc: HDC; uChar, uFormat: UINT; var lpgm: GLYPHMETRICS; cbBuffer: DWORD; lpvBuffer: LPVOID; const lpMat2: MAT2): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphOutline}
- function GetGraphicsMode(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetGraphicsMode}
- function GetMapMode(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetMapMode}
- function GetMetaFileBitsEx(hmf: HMETAFILE; nSize: UINT; lpvData: LPVOID): UINT; stdcall;
- {$EXTERNALSYM GetMetaFileBitsEx}
- function GetMetaFileA(lpszMetaFile: LPCSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM GetMetaFileA}
- function GetMetaFileW(lpszMetaFile: LPCWSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM GetMetaFileW}
- function GetMetaFile(lpszMetaFile: LPCTSTR): HMETAFILE; stdcall;
- {$EXTERNALSYM GetMetaFile}
- function GetNearestColor(hdc: HDC; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM GetNearestColor}
- function GetNearestPaletteIndex(hPal: HPALETTE; crColor: COLORREF): UINT; stdcall;
- {$EXTERNALSYM GetNearestPaletteIndex}
- function GetObjectType(h: HGDIOBJ): DWORD; stdcall;
- {$EXTERNALSYM GetObjectType}
- function GetOutlineTextMetricsA(hdc: HDC; cbData: UINT; lpOTM: LPOUTLINETEXTMETRICA): UINT; stdcall;
- {$EXTERNALSYM GetOutlineTextMetricsA}
- function GetOutlineTextMetricsW(hdc: HDC; cbData: UINT; lpOTM: LPOUTLINETEXTMETRICW): UINT; stdcall;
- {$EXTERNALSYM GetOutlineTextMetricsW}
- function GetOutlineTextMetrics(hdc: HDC; cbData: UINT; lpOTM: LPOUTLINETEXTMETRIC): UINT; stdcall;
- {$EXTERNALSYM GetOutlineTextMetrics}
- function GetPaletteEntries(hPal: HPALETTE; iStartIndex, nEntries: UINT; lppe: LPPALETTEENTRY): UINT; stdcall;
- {$EXTERNALSYM GetPaletteEntries}
- function GetPixel(hdc: HDC; nXPos, nYPos: Integer): COLORREF; stdcall;
- {$EXTERNALSYM GetPixel}
- function GetPixelFormat(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetPixelFormat}
- function GetPolyFillMode(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetPolyFillMode}
- function GetRasterizerCaps(var lprs: RASTERIZER_STATUS; cb: UINT): BOOL; stdcall;
- {$EXTERNALSYM GetRasterizerCaps}
- function GetRandomRgn(hdc: HDC; hrgn: HRGN; iNum: Integer): Integer; stdcall;
- {$EXTERNALSYM GetRandomRgn}
- function GetRegionData(hrgn: HRGN; dwCount: DWORD; lpRgnData: LPRGNDATA): DWORD; stdcall;
- {$EXTERNALSYM GetRegionData}
- function GetRgnBox(hrgn: HRGN; var lprc: RECT): Integer; stdcall;
- {$EXTERNALSYM GetRgnBox}
- function GetStockObject(fnObject: Integer): HGDIOBJ; stdcall;
- {$EXTERNALSYM GetStockObject}
- function GetStretchBltMode(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetStretchBltMode}
- function GetSystemPaletteEntries(hdc: HDC; iStartIndex, nEntries: UINT; lppe: LPPALETTEENTRY): UINT; stdcall;
- {$EXTERNALSYM GetSystemPaletteEntries}
- function GetSystemPaletteUse(hdc: HDC): UINT; stdcall;
- {$EXTERNALSYM GetSystemPaletteUse}
- function GetTextCharacterExtra(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetTextCharacterExtra}
- function GetTextAlign(hdc: HDC): UINT; stdcall;
- {$EXTERNALSYM GetTextAlign}
- function GetTextColor(hdc: HDC): COLORREF; stdcall;
- {$EXTERNALSYM GetTextColor}
- function GetTextExtentPointA(hdc: HDC; lpString: LPCSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPointA}
- function GetTextExtentPointW(hdc: HDC; lpString: LPCWSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPointW}
- function GetTextExtentPoint(hdc: HDC; lpString: LPCTSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPoint}
- function GetTextExtentPoint32A(hdc: HDC; lpString: LPCSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPoint32A}
- function GetTextExtentPoint32W(hdc: HDC; lpString: LPCWSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPoint32W}
- function GetTextExtentPoint32(hdc: HDC; lpString: LPCTSTR; cbString: Integer; var Size: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPoint32}
- function GetTextExtentExPointA(hdc: HDC; lpszStr: LPCSTR; cchString, nMaxExtend: Integer; lpnFit, alpDx: LPINT; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentExPointA}
- function GetTextExtentExPointW(hdc: HDC; lpszStr: LPCWSTR; cchString, nMaxExtend: Integer; lpnFit, alpDx: LPINT; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentExPointW}
- function GetTextExtentExPoint(hdc: HDC; lpszStr: LPCTSTR; cchString, nMaxExtend: Integer; lpnFit, alpDx: LPINT; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentExPoint}
- function GetTextCharset(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetTextCharset}
- function GetTextCharsetInfo(hdc: HDC; lpSig: LPFONTSIGNATURE; dwFlags: DWORD): Integer; stdcall;
- {$EXTERNALSYM GetTextCharsetInfo}
- function TranslateCharsetInfo(lpSrc: LPDWORD; lpCs: LPCHARSETINFO; dwFlags: DWORD): BOOL; stdcall;
- {$EXTERNALSYM TranslateCharsetInfo}
- function GetFontLanguageInfo(hdc: HDC): DWORD; stdcall;
- {$EXTERNALSYM GetFontLanguageInfo}
- function GetCharacterPlacementA(hdc: HDC; lpString: LPCSTR; nCount, nMaxExtend: Integer; var lpResults: GCP_RESULTSA; dwFlags: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetCharacterPlacementA}
- function GetCharacterPlacementW(hdc: HDC; lpString: LPCWSTR; nCount, nMaxExtend: Integer; var lpResults: GCP_RESULTSW; dwFlags: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetCharacterPlacementW}
- function GetCharacterPlacement(hdc: HDC; lpString: LPCTSTR; nCount, nMaxExtend: Integer; var lpResults: GCP_RESULTS; dwFlags: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetCharacterPlacement}
- type
- PWcRange = ^TWcRange;
- tagWCRANGE = record
- wcLow: WCHAR;
- cGlyphs: USHORT;
- end;
- {$EXTERNALSYM tagWCRANGE}
- WCRANGE = tagWCRANGE;
- {$EXTERNALSYM WCRANGE}
- LPWCRANGE = ^WCRANGE;
- {$EXTERNALSYM LPWCRANGE}
- TWcRange = WCRANGE;
- PGlyphSet = ^TGlyphSet;
- tagGLYPHSET = record
- cbThis: DWORD;
- flAccel: DWORD;
- cGlyphsSupported: DWORD;
- cRanges: DWORD;
- ranges: array [0..0] of WCRANGE;
- end;
- {$EXTERNALSYM tagGLYPHSET}
- GLYPHSET = tagGLYPHSET;
- {$EXTERNALSYM GLYPHSET}
- LPGLYPHSET = ^GLYPHSET;
- {$EXTERNALSYM LPGLYPHSET}
- TGlyphSet = GLYPHSET;
- // flAccel flags for the GLYPHSET structure above
- const
- GS_8BIT_INDICES = $00000001;
- {$EXTERNALSYM GS_8BIT_INDICES}
- // flags for GetGlyphIndices
- GGI_MARK_NONEXISTING_GLYPHS = $0001;
- {$EXTERNALSYM GGI_MARK_NONEXISTING_GLYPHS}
- function GetFontUnicodeRanges(hdc: HDC; lpgs: LPGLYPHSET): DWORD; stdcall;
- {$EXTERNALSYM GetFontUnicodeRanges}
- function GetGlyphIndicesA(hdc: HDC; lpstr: LPCSTR; c: Integer; pgi: LPWORD; fl: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphIndicesA}
- function GetGlyphIndicesW(hdc: HDC; lpstr: LPCWSTR; c: Integer; pgi: LPWORD; fl: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphIndicesW}
- function GetGlyphIndices(hdc: HDC; lpstr: LPCTSTR; c: Integer; pgi: LPWORD; fl: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GetGlyphIndices}
- function GetTextExtentPointI(hdc: HDC; pgiIn: LPWORD; cgi: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentPointI}
- function GetTextExtentExPointI(hdc: HDC; pgiIn: LPWORD; cgi, nMaxExtend: Integer;
- lpnFit, alpDx: LPINT; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM GetTextExtentExPointI}
- function GetCharWidthI(hdc: HDC; giFirst, cgi: UINT; pgi: LPWORD; lpBuffer: LPINT): BOOL; stdcall;
- {$EXTERNALSYM GetCharWidthI}
- function GetCharABCWidthsI(hdc: HDC; giFirst, cgi: UINT; pgi: LPWORD; lpAbc: LPABC): BOOL; stdcall;
- {$EXTERNALSYM GetCharABCWidthsI}
- const
- STAMP_DESIGNVECTOR = $8000000 + Ord('d') + (Ord('v') shl 8);
- {$EXTERNALSYM STAMP_DESIGNVECTOR}
- STAMP_AXESLIST = $8000000 + Ord('a') + (Ord('l') shl 8);
- {$EXTERNALSYM STAMP_AXESLIST}
- MM_MAX_NUMAXES = 16;
- {$EXTERNALSYM MM_MAX_NUMAXES}
- type
- PDesignVector = ^TDesignVector;
- tagDESIGNVECTOR = record
- dvReserved: DWORD;
- dvNumAxes: DWORD;
- dvValues: array [0..MM_MAX_NUMAXES - 1] of LONG;
- end;
- {$EXTERNALSYM tagDESIGNVECTOR}
- DESIGNVECTOR = tagDESIGNVECTOR;
- {$EXTERNALSYM DESIGNVECTOR}
- LPDESIGNVECTOR = ^DESIGNVECTOR;
- {$EXTERNALSYM LPDESIGNVECTOR}
- TDesignVector = DESIGNVECTOR;
- function AddFontResourceExA(lpszFilename: LPCSTR; fl: DWORD; pdv: PVOID): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceExA}
- function AddFontResourceExW(lpszFilename: LPCWSTR; fl: DWORD; pdv: PVOID): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceExW}
- function AddFontResourceEx(lpszFilename: LPCTSTR; fl: DWORD; pdv: PVOID): Integer; stdcall;
- {$EXTERNALSYM AddFontResourceEx}
- function RemoveFontResourceExA(lpFilename: LPCSTR; fl: DWORD; pdv: PVOID): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceExA}
- function RemoveFontResourceExW(lpFilename: LPCWSTR; fl: DWORD; pdv: PVOID): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceExW}
- function RemoveFontResourceEx(lpFilename: LPCTSTR; fl: DWORD; pdv: PVOID): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceEx}
- function AddFontMemResourceEx(pbFont: PVOID; cbFont: DWORD; pdv: PVOID; pcFonts: LPDWORD): HANDLE; stdcall;
- {$EXTERNALSYM AddFontMemResourceEx}
- function RemoveFontMemResourceEx(fh: HANDLE): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontMemResourceEx}
- const
- FR_PRIVATE = $10;
- {$EXTERNALSYM FR_PRIVATE}
- FR_NOT_ENUM = $20;
- {$EXTERNALSYM FR_NOT_ENUM}
- // The actual size of the DESIGNVECTOR and ENUMLOGFONTEXDV structures
- // is determined by dvNumAxes,
- // MM_MAX_NUMAXES only detemines the maximal size allowed
- const
- MM_MAX_AXES_NAMELEN = 16;
- {$EXTERNALSYM MM_MAX_AXES_NAMELEN}
- type
- PAxisInfoA = ^TAxisInfoA;
- tagAXISINFOA = record
- axMinValue: LONG;
- axMaxValue: LONG;
- axAxisName: array [0..MM_MAX_AXES_NAMELEN - 1] of BYTE;
- end;
- {$EXTERNALSYM tagAXISINFOA}
- AXISINFOA = tagAXISINFOA;
- {$EXTERNALSYM AXISINFOA}
- LPAXISINFOA = ^AXISINFOA;
- {$EXTERNALSYM LPAXISINFOA}
- TAxisInfoA = AXISINFOA;
- PAxisInfoW = ^TAxisInfoW;
- tagAXISINFOW = record
- axMinValue: LONG;
- axMaxValue: LONG;
- axAxisName: array [0..MM_MAX_AXES_NAMELEN - 1] of WCHAR;
- end;
- {$EXTERNALSYM tagAXISINFOW}
- AXISINFOW = tagAXISINFOW;
- {$EXTERNALSYM AXISINFOW}
- LPAXISINFOW = ^AXISINFOW;
- {$EXTERNALSYM LPAXISINFOW}
- TAxisInfoW = AXISINFOW;
- {$IFDEF UNICODE}
- AXISINFO = AXISINFOW;
- {$EXTERNALSYM AXISINFO}
- PAXISINFO = PAXISINFOW;
- {$EXTERNALSYM PAXISINFO}
- LPAXISINFO = LPAXISINFOW;
- {$EXTERNALSYM LPAXISINFO}
- TAxisInfo = TAxisInfoW;
- {$ELSE}
- AXISINFO = AXISINFOA;
- {$EXTERNALSYM AXISINFO}
- PAXISINFO = PAXISINFOA;
- {$EXTERNALSYM PAXISINFO}
- LPAXISINFO = LPAXISINFOA;
- {$EXTERNALSYM LPAXISINFO}
- TAxisInfo = TAxisInfoA;
- {$ENDIF UNICODE}
- PAxesListA = ^TAxesListA;
- tagAXESLISTA = record
- axlReserved: DWORD;
- axlNumAxes: DWORD;
- axlAxisInfo: array [0..MM_MAX_NUMAXES - 1] of AXISINFOA;
- end;
- {$EXTERNALSYM tagAXESLISTA}
- AXESLISTA = tagAXESLISTA;
- {$EXTERNALSYM AXESLISTA}
- LPAXESLISTA = ^AXESLISTA;
- {$EXTERNALSYM LPAXESLISTA}
- TAxesListA = tagAXESLISTA;
- PAxesListW = ^TAxesListW;
- tagAXESLISTW = record
- axlReserved: DWORD;
- axlNumAxes: DWORD;
- axlAxisInfo: array [0..MM_MAX_NUMAXES - 1] of AXISINFOW;
- end;
- {$EXTERNALSYM tagAXESLISTW}
- AXESLISTW = tagAXESLISTW;
- {$EXTERNALSYM AXESLISTW}
- LPAXESLISTW = ^AXESLISTW;
- {$EXTERNALSYM LPAXESLISTW}
- TAxesListW = tagAXESLISTW;
- {$IFDEF UNICODE}
- AXESLIST = AXESLISTW;
- {$EXTERNALSYM AXESLIST}
- PAXESLIST = PAXESLISTW;
- {$EXTERNALSYM PAXESLIST}
- LPAXESLIST = LPAXESLISTW;
- {$EXTERNALSYM LPAXESLIST}
- TAxesList = TAxesListW;
- {$ELSE}
- AXESLIST = AXESLISTA;
- {$EXTERNALSYM AXESLIST}
- PAXESLIST = PAXESLISTA;
- {$EXTERNALSYM PAXESLIST}
- LPAXESLIST = LPAXESLISTA;
- {$EXTERNALSYM LPAXESLIST}
- TAxesList = TAxesListA;
- {$ENDIF UNICODE}
- // The actual size of the AXESLIST and ENUMTEXTMETRIC structure is
- // determined by axlNumAxes,
- // MM_MAX_NUMAXES only detemines the maximal size allowed
- PEnumLogFontExDVA = ^TEnumLogFontExDVA;
- tagENUMLOGFONTEXDVA = record
- elfEnumLogfontEx: ENUMLOGFONTEXA;
- elfDesignVector: DESIGNVECTOR;
- end;
- {$EXTERNALSYM tagENUMLOGFONTEXDVA}
- ENUMLOGFONTEXDVA = tagENUMLOGFONTEXDVA;
- {$EXTERNALSYM ENUMLOGFONTEXDVA}
- LPENUMLOGFONTEXDVA = ^ENUMLOGFONTEXDVA;
- {$EXTERNALSYM LPENUMLOGFONTEXDVA}
- TEnumLogFontExDVA = tagENUMLOGFONTEXDVA;
- PEnumLogFontExDVW = ^TEnumLogFontExDVW;
- tagENUMLOGFONTEXDVW = record
- elfEnumLogfontEx: ENUMLOGFONTEXW;
- elfDesignVector: DESIGNVECTOR;
- end;
- {$EXTERNALSYM tagENUMLOGFONTEXDVw}
- ENUMLOGFONTEXDVW = tagENUMLOGFONTEXDVW;
- {$EXTERNALSYM ENUMLOGFONTEXDVW}
- LPENUMLOGFONTEXDVW = ^ENUMLOGFONTEXDVW;
- {$EXTERNALSYM LPENUMLOGFONTEXDVW}
- TEnumLogFontExDVW = tagENUMLOGFONTEXDVW;
- {$IFDEF UNICODE}
- ENUMLOGFONTEXDV = ENUMLOGFONTEXDVW;
- {$EXTERNALSYM ENUMLOGFONTEXDV}
- PENUMLOGFONTEXDV = PENUMLOGFONTEXDVW;
- {$EXTERNALSYM PENUMLOGFONTEXDV}
- LPENUMLOGFONTEXDV = LPENUMLOGFONTEXDVW;
- {$EXTERNALSYM LPENUMLOGFONTEXDV}
- TEnumLogFontExDV = TEnumLogFontExDVW;
- {$ELSE}
- ENUMLOGFONTEXDV = ENUMLOGFONTEXDVA;
- {$EXTERNALSYM ENUMLOGFONTEXDV}
- PENUMLOGFONTEXDV = PENUMLOGFONTEXDVA;
- {$EXTERNALSYM PENUMLOGFONTEXDV}
- LPENUMLOGFONTEXDV = LPENUMLOGFONTEXDVA;
- {$EXTERNALSYM LPENUMLOGFONTEXDV}
- TEnumLogFontExDV = TEnumLogFontExDVA;
- {$ENDIF UNICODE}
- function CreateFontIndirectExA(penumlfex: LPENUMLOGFONTEXDVA): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectExA}
- function CreateFontIndirectExW(penumlfex: LPENUMLOGFONTEXDVW): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectExW}
- function CreateFontIndirectEx(penumlfex: LPENUMLOGFONTEXDV): HFONT; stdcall;
- {$EXTERNALSYM CreateFontIndirectEx}
- type
- PEnumTextMetricA = ^TEnumTextMetricA;
- tagENUMTEXTMETRICA = record
- etmNewTextMetricEx: NEWTEXTMETRICEXA;
- etmAxesList: AXESLISTA;
- end;
- {$EXTERNALSYM tagENUMTEXTMETRICA}
- ENUMTEXTMETRICA = tagENUMTEXTMETRICA;
- {$EXTERNALSYM ENUMTEXTMETRICA}
- LPENUMTEXTMETRICA = ^ENUMTEXTMETRICA;
- {$EXTERNALSYM LPENUMTEXTMETRICA}
- TEnumTextMetricA = tagENUMTEXTMETRICA;
- PEnumTextMetricW = ^TEnumTextMetricW;
- tagENUMTEXTMETRICW = record
- etmNewTextMetricEx: NEWTEXTMETRICEXW;
- etmAxesList: AXESLISTW;
- end;
- {$EXTERNALSYM tagENUMTEXTMETRICW}
- ENUMTEXTMETRICW = tagENUMTEXTMETRICW;
- {$EXTERNALSYM ENUMTEXTMETRICW}
- LPENUMTEXTMETRICW = ^ENUMTEXTMETRICW;
- {$EXTERNALSYM LPENUMTEXTMETRICW}
- TEnumTextMetricW = tagENUMTEXTMETRICW;
- {$IFDEF UNICODE}
- ENUMTEXTMETRIC = ENUMTEXTMETRICW;
- {$EXTERNALSYM ENUMTEXTMETRIC}
- PENUMTEXTMETRIC = PENUMTEXTMETRICW;
- {$EXTERNALSYM PENUMTEXTMETRIC}
- LPENUMTEXTMETRIC = LPENUMTEXTMETRICW;
- {$EXTERNALSYM LPENUMTEXTMETRIC}
- TEnumTextMetric = TEnumTextMetricW;
- {$ELSE}
- ENUMTEXTMETRIC = ENUMTEXTMETRICA;
- {$EXTERNALSYM ENUMTEXTMETRIC}
- PENUMTEXTMETRIC = PENUMTEXTMETRICA;
- {$EXTERNALSYM PENUMTEXTMETRIC}
- LPENUMTEXTMETRIC = LPENUMTEXTMETRICA;
- {$EXTERNALSYM LPENUMTEXTMETRIC}
- TEnumTextMetric = TEnumTextMetricA;
- {$ENDIF UNICODE}
- function GetViewportExtEx(hdc: HDC; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetViewportExtEx}
- function GetViewportOrgEx(hdc: HDC; var lpPoint: POINT): BOOL; stdcall;
- {$EXTERNALSYM GetViewportOrgEx}
- function GetWindowExtEx(hdc: HDC; var lpSize: TSize): BOOL; stdcall;
- {$EXTERNALSYM GetWindowExtEx}
- function GetWindowOrgEx(hdc: HDC; var lpPoint: POINT): BOOL; stdcall;
- {$EXTERNALSYM GetWindowOrgEx}
- function IntersectClipRect(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): Integer; stdcall;
- {$EXTERNALSYM IntersectClipRect}
- function InvertRgn(hdc: HDC; hrgn: HRGN): BOOL; stdcall;
- {$EXTERNALSYM InvertRgn}
- function LineDDA(nXStart, nYStart, nXEnd, nYEnd: Integer; lpLineFunc: LINEDDAPROC; lpData: LPARAM): BOOL; stdcall;
- {$EXTERNALSYM LineDDA}
- function LineTo(hdc: HDC; nXEnd, nYEnd: Integer): BOOL; stdcall;
- {$EXTERNALSYM LineTo}
- function MaskBlt(hdc: HDC; nXDest, nYDest, nWidth, nHeight: Integer; hdcSrc: HDC; nXSrc, nYSrc: Integer; hbmMask: HBITMAP; xMask, yMask: Integer; dwRop: DWORD): BOOL; stdcall;
- {$EXTERNALSYM MaskBlt}
- function PlgBlt(hdc: HDC; lpPoint: LPPOINT; hdcSrc: HDC; nXSrc, nYSrc, nWidth, nHeight: Integer; hbmMask: HBITMAP; xMask, yMask: Integer): BOOL; stdcall;
- {$EXTERNALSYM PlgBlt}
- function OffsetClipRgn(hdc: HDC; nXOffset, nYOffset: Integer): Integer; stdcall;
- {$EXTERNALSYM OffsetClipRgn}
- function OffsetRgn(hrgn: HRGN; nXOffset, nYOffset: Integer): Integer; stdcall;
- {$EXTERNALSYM OffsetRgn}
- function PatBlt(hdc: HDC; nXLeft, nYLeft, nWidth, nHeight: Integer; dwRop: DWORD): BOOL; stdcall;
- {$EXTERNALSYM PatBlt}
- function Pie(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect, nXRadial1, nYRadial1, nXRadial2, nYRadial2: Integer): BOOL; stdcall;
- {$EXTERNALSYM Pie}
- function PlayMetaFile(hdc: HDC; hmf: HMETAFILE): BOOL; stdcall;
- {$EXTERNALSYM PlayMetaFile}
- function PaintRgn(hdc: HDC; hrgn: HRGN): BOOL; stdcall;
- {$EXTERNALSYM PaintRgn}
- function PolyPolygon(hdc: HDC; lpPoints: LPPOINT; lpPolyCounts: LPINT; nCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyPolygon}
- function PtInRegion(hrgn: HRGN; X, Y: Integer): BOOL; stdcall;
- {$EXTERNALSYM PtInRegion}
- function PtVisible(hdc: HDC; X, Y: Integer): BOOL; stdcall;
- {$EXTERNALSYM PtVisible}
- function RectInRegion(hrgn: HRGN; const lprc: RECT): BOOL; stdcall;
- {$EXTERNALSYM RectInRegion}
- function RectVisible(hdc: HDC; const lprc: RECT): BOOL; stdcall;
- {$EXTERNALSYM RectVisible}
- function Rectangle(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): BOOL; stdcall;
- {$EXTERNALSYM Rectangle}
- function RestoreDC(hdc: HDC; nSavedDc: Integer): BOOL; stdcall;
- {$EXTERNALSYM RestoreDC}
- function ResetDCA(hdc: HDC; const lpInitData: DEVMODEA): HDC; stdcall;
- {$EXTERNALSYM ResetDCA}
- function ResetDCW(hdc: HDC; const lpInitData: DEVMODEW): HDC; stdcall;
- {$EXTERNALSYM ResetDCW}
- function ResetDC(hdc: HDC; const lpInitData: DEVMODE): HDC; stdcall;
- {$EXTERNALSYM ResetDC}
- function RealizePalette(hdc: HDC): UINT; stdcall;
- {$EXTERNALSYM RealizePalette}
- function RemoveFontResourceA(lpFileName: LPCSTR): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceA}
- function RemoveFontResourceW(lpFileName: LPCWSTR): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResourceW}
- function RemoveFontResource(lpFileName: LPCTSTR): BOOL; stdcall;
- {$EXTERNALSYM RemoveFontResource}
- function RoundRect(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect, nWidth, nHeight: Integer): BOOL; stdcall;
- {$EXTERNALSYM RoundRect}
- function ResizePalette(hPal: HPALETTE; nEntries: UINT): BOOL; stdcall;
- {$EXTERNALSYM ResizePalette}
- function SaveDC(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM SaveDC}
- function SelectClipRgn(hdc: HDC; hrgn: HRGN): Integer; stdcall;
- {$EXTERNALSYM SelectClipRgn}
- function ExtSelectClipRgn(hdc: HDC; hrgn: HRGN; fnMode: Integer): Integer; stdcall;
- {$EXTERNALSYM ExtSelectClipRgn}
- function SetMetaRgn(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM SetMetaRgn}
- function SelectObject(hdc: HDC; hgdiobj: HGDIOBJ): HGDIOBJ; stdcall;
- {$EXTERNALSYM SelectObject}
- function SelectPalette(hdc: HDC; hpal: HPALETTE; nForceBackground: BOOL): HPALETTE; stdcall;
- {$EXTERNALSYM SelectPalette}
- function SetBkColor(hdc: HDC; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM SetBkColor}
- function SetDCBrushColor(hdc: HDC; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM SetDCBrushColor}
- function SetDCPenColor(hdc: HDC; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM SetDCPenColor}
- function SetBkMode(hdc: HDC; iBlMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetBkMode}
- function SetBitmapBits(hbmp: HBITMAP; cBytes: DWORD; lpBits: LPVOID): LONG; stdcall;
- {$EXTERNALSYM SetBitmapBits}
- function SetBoundsRect(hdc: HDC; lprcBounds: LPRECT; flags: UINT): UINT; stdcall;
- {$EXTERNALSYM SetBoundsRect}
- function SetDIBits(hdc: HDC; hbmp: HBITMAP; uStartScan, cScanLines: UINT; lpvBits: LPVOID; const lpbmi: BITMAPINFO; fuColorUse: UINT): Integer; stdcall;
- {$EXTERNALSYM SetDIBits}
- function SetDIBitsToDevice(hdc: HDC; xDest, yDest: Integer; dwWidth, dwHeight: DWORD; XSrc, YSrc: Integer; uStartScan, cScanLines: UINT; lpvBits: LPVOID; const lpbmi: BITMAPINFO; fuColorUse: UINT): Integer; stdcall;
- {$EXTERNALSYM SetDIBitsToDevice}
- function SetMapperFlags(hdc: HDC; dwFlag: DWORD): DWORD; stdcall;
- {$EXTERNALSYM SetMapperFlags}
- function SetGraphicsMode(hdc: HDC; iMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetGraphicsMode}
- function SetMapMode(hdc: HDC; fnMapMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetMapMode}
- function SetLayout(hdc: HDC; dwLayOut: DWORD): DWORD; stdcall;
- {$EXTERNALSYM SetLayout}
- function GetLayout(hdc: HDC): DWORD; stdcall;
- {$EXTERNALSYM GetLayout}
- function SetMetaFileBitsEx(nSize: UINT; lpData: LPBYTE): HMETAFILE; stdcall;
- {$EXTERNALSYM SetMetaFileBitsEx}
- function SetPaletteEntries(hPal: HPALETTE; cStart, nEntries: UINT; lppe: LPPALETTEENTRY): UINT; stdcall;
- {$EXTERNALSYM SetPaletteEntries}
- function SetPixel(hdc: HDC; X, Y: Integer; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM SetPixel}
- function SetPixelV(hdc: HDC; X, Y: Integer; crColor: COLORREF): BOOL; stdcall;
- {$EXTERNALSYM SetPixelV}
- function SetPixelFormat(hdc: HDC; iPixelFormat: Integer; const ppfd: PIXELFORMATDESCRIPTOR): BOOL; stdcall;
- {$EXTERNALSYM SetPixelFormat}
- function SetPolyFillMode(hdc: HDC; iPolyFillMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetPolyFillMode}
- function StretchBlt(hdc: HDC; nXOriginDest, nYOriginDest, nWidthDest, nHeightDest: Integer; hdcSrc: HDC; nXOriginSrc, nYOriginSrc, nWidthSrc, nHeightSrc: Integer; dwRop: DWORD): BOOL; stdcall;
- {$EXTERNALSYM StretchBlt}
- function SetRectRgn(hrgn: HRGN; nLeftRect, nTopRect, nRightRect, nBottomRect: Integer): BOOL; stdcall;
- {$EXTERNALSYM SetRectRgn}
- function StretchDIBits(hdc: HDC; XDest, YDest, nDestWidth, nYDestHeight, XSrc, YSrc, nSrcWidth, nSrcHeight: Integer; lpBits: LPVOID; const lpBitsInfo: BITMAPINFO; iUsage: UINT; dwRop: DWORD): Integer; stdcall;
- {$EXTERNALSYM StretchDIBits}
- function SetROP2(hdc: HDC; fnDrawMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetROP2}
- function SetStretchBltMode(hdc: HDC; iStretchMode: Integer): Integer; stdcall;
- {$EXTERNALSYM SetStretchBltMode}
- function SetSystemPaletteUse(hdc: HDC; uUsage: UINT): UINT; stdcall;
- {$EXTERNALSYM SetSystemPaletteUse}
- function SetTextCharacterExtra(hdc: HDC; nCharExtra: Integer): Integer; stdcall;
- {$EXTERNALSYM SetTextCharacterExtra}
- function SetTextColor(hdc: HDC; crColor: COLORREF): COLORREF; stdcall;
- {$EXTERNALSYM SetTextColor}
- function SetTextAlign(hdc: HDC; fMode: UINT): UINT; stdcall;
- {$EXTERNALSYM SetTextAlign}
- function SetTextJustification(hdc: HDC; nBreakExtra, nBreakCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM SetTextJustification}
- function UpdateColors(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM UpdateColors}
- //
- // image blt
- //
- type
- COLOR16 = USHORT;
- {$EXTERNALSYM COLOR16}
- PTriVertex = ^TTriVertex;
- _TRIVERTEX = record
- x: LONG;
- y: LONG;
- Red: COLOR16;
- Green: COLOR16;
- Blue: COLOR16;
- Alpha: COLOR16;
- end;
- {$EXTERNALSYM _TRIVERTEX}
- TRIVERTEX = _TRIVERTEX;
- {$EXTERNALSYM TRIVERTEX}
- LPTRIVERTEX = ^TRIVERTEX;
- {$EXTERNALSYM LPTRIVERTEX}
- TTriVertex = _TRIVERTEX;
- PGradientTriangle = ^TGradientTriangle;
- _GRADIENT_TRIANGLE = record
- Vertex1: ULONG;
- Vertex2: ULONG;
- Vertex3: ULONG;
- end;
- {$EXTERNALSYM _GRADIENT_TRIANGLE}
- GRADIENT_TRIANGLE = _GRADIENT_TRIANGLE;
- {$EXTERNALSYM GRADIENT_TRIANGLE}
- LPGRADIENT_TRIANGLE = ^GRADIENT_TRIANGLE;
- {$EXTERNALSYM LPGRADIENT_TRIANGLE}
- PGRADIENT_TRIANGLE = ^GRADIENT_TRIANGLE;
- {$EXTERNALSYM PGRADIENT_TRIANGLE}
- TGradientTriangle = _GRADIENT_TRIANGLE;
- PGradientRect = ^TGradientRect;
- _GRADIENT_RECT = record
- UpperLeft: ULONG;
- LowerRight: ULONG;
- end;
- {$EXTERNALSYM _GRADIENT_RECT}
- GRADIENT_RECT = _GRADIENT_RECT;
- {$EXTERNALSYM GRADIENT_RECT}
- LPGRADIENT_RECT = ^GRADIENT_RECT;
- {$EXTERNALSYM LPGRADIENT_RECT}
- PGRADIENT_RECT = ^GRADIENT_RECT;
- {$EXTERNALSYM PGRADIENT_RECT}
- TGradientRect = _GRADIENT_RECT;
- PBlendFunction = ^TBlendFunction;
- _BLENDFUNCTION = record
- BlendOp: BYTE;
- BlendFlags: BYTE;
- SourceConstantAlpha: BYTE;
- AlphaFormat: BYTE;
- end;
- {$EXTERNALSYM _BLENDFUNCTION}
- BLENDFUNCTION = _BLENDFUNCTION;
- {$EXTERNALSYM BLENDFUNCTION}
- LPBLENDFUNCTION = ^BLENDFUNCTION;
- {$EXTERNALSYM LPBLENDFUNCTION}
- TBlendFunction = _BLENDFUNCTION;
- //
- // currentlly defined blend function
- //
- const
- AC_SRC_OVER = $00;
- {$EXTERNALSYM AC_SRC_OVER}
- //
- // alpha format flags
- //
- AC_SRC_ALPHA = $01;
- {$EXTERNALSYM AC_SRC_ALPHA}
- function AlphaBlend(hdcDest: HDC; nXOriginDest, nYOriginDest, nWidthDest,
- nHeightDest: Integer; hdcSrc: HDC; nXOriginSrc, nYOriginSrc, nWidthSrc,
- nHeightSrc: Integer; blendFunction: BLENDFUNCTION): BOOL; stdcall;
- {$EXTERNALSYM AlphaBlend}
- function TransparentBlt(hdcSrc: HDC; nXOriginSrc, nYOriginSrc, nWidthSrc,
- nHeightSrc: Integer; hdcDest: HDC; nXOriginDest, nYOriginDest, nWidthDest,
- nHeightDest: Integer; blendFunction: BLENDFUNCTION): BOOL; stdcall;
- {$EXTERNALSYM TransparentBlt}
- //
- // gradient drawing modes
- //
- const
- GRADIENT_FILL_RECT_H = $00000000;
- {$EXTERNALSYM GRADIENT_FILL_RECT_H}
- GRADIENT_FILL_RECT_V = $00000001;
- {$EXTERNALSYM GRADIENT_FILL_RECT_V}
- GRADIENT_FILL_TRIANGLE = $00000002;
- {$EXTERNALSYM GRADIENT_FILL_TRIANGLE}
- GRADIENT_FILL_OP_FLAG = $000000ff;
- {$EXTERNALSYM GRADIENT_FILL_OP_FLAG}
- function GradientFill(hdc: HDC; pVertex: PTRIVERTEX; dwNumVertex: ULONG; pMesh: PVOID; dwNumMesh, dwMode: ULONG): BOOL; stdcall;
- {$EXTERNALSYM GradientFill}
- function PlayMetaFileRecord(hdc: HDC; lpHandleTable: LPHANDLETABLE; lpMetaRecord: LPMETARECORD; nHandles: UINT): BOOL; stdcall;
- {$EXTERNALSYM PlayMetaFileRecord}
- type
- MFENUMPROC = function(hdc: HDC; lpHTable: LPHANDLETABLE; lpMFR: LPMETARECORD; nObj: Integer; lpClientData: LPARAM): Integer; stdcall;
- {$EXTERNALSYM MFENUMPROC}
- function EnumMetaFile(hdc: HDC; hemf: HMETAFILE; lpMetaFunc: MFENUMPROC; lParam: LPARAM): BOOL; stdcall;
- {$EXTERNALSYM EnumMetaFile}
- type
- ENHMFENUMPROC = function(hdc: HDC; lpHTable: LPHANDLETABLE; lpEMFR: LPENHMETARECORD; nObj: Integer; lpData: LPARAM): Integer; stdcall;
- {$EXTERNALSYM ENHMFENUMPROC}
- // Enhanced Metafile Function Declarations
- function CloseEnhMetaFile(hdc: HDC): HENHMETAFILE; stdcall;
- {$EXTERNALSYM CloseEnhMetaFile}
- function CopyEnhMetaFileA(hemfSrc: HENHMETAFILE; lpszFile: LPCSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM CopyEnhMetaFileA}
- function CopyEnhMetaFileW(hemfSrc: HENHMETAFILE; lpszFile: LPCWSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM CopyEnhMetaFileW}
- function CopyEnhMetaFile(hemfSrc: HENHMETAFILE; lpszFile: LPCTSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM CopyEnhMetaFile}
- function CreateEnhMetaFileA(hdcRef: HDC; lpFileName: LPCSTR; const lpRect: RECT; lpDescription: LPCSTR): HDC; stdcall;
- {$EXTERNALSYM CreateEnhMetaFileA}
- function CreateEnhMetaFileW(hdcRef: HDC; lpFileName: LPCWSTR; const lpRect: RECT; lpDescription: LPCWSTR): HDC; stdcall;
- {$EXTERNALSYM CreateEnhMetaFileW}
- function CreateEnhMetaFile(hdcRef: HDC; lpFileName: LPCTSTR; const lpRect: RECT; lpDescription: LPCTSTR): HDC; stdcall;
- {$EXTERNALSYM CreateEnhMetaFile}
- function DeleteEnhMetaFile(hemf: HENHMETAFILE): BOOL; stdcall;
- {$EXTERNALSYM DeleteEnhMetaFile}
- function EnumEnhMetaFile(hdc: HDC; hemf: HENHMETAFILE; lpEnhMetaFunc: ENHMFENUMPROC; lpData: LPVOID; const lpRect: RECT): BOOL; stdcall;
- {$EXTERNALSYM EnumEnhMetaFile}
- function GetEnhMetaFileA(lpszMetaFile: LPCSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM GetEnhMetaFileA}
- function GetEnhMetaFileW(lpszMetaFile: LPCWSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM GetEnhMetaFileW}
- function GetEnhMetaFile(lpszMetaFile: LPCTSTR): HENHMETAFILE; stdcall;
- {$EXTERNALSYM GetEnhMetaFile}
- function GetEnhMetaFileBits(hemf: HENHMETAFILE; cbBuffer: UINT; lpBuffer: LPBYTE): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileBits}
- function GetEnhMetaFileDescriptionA(hemf: HENHMETAFILE; cchBuffer: UINT; lpszDescription: LPSTR): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileDescriptionA}
- function GetEnhMetaFileDescriptionW(hemf: HENHMETAFILE; cchBuffer: UINT; lpszDescription: LPWSTR): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileDescriptionW}
- function GetEnhMetaFileDescription(hemf: HENHMETAFILE; cchBuffer: UINT; lpszDescription: LPTSTR): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileDescription}
- function GetEnhMetaFileHeader(hemf: HENHMETAFILE; cbBuffer: UINT; lpemh: LPENHMETAHEADER ): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFileHeader}
- function GetEnhMetaFilePaletteEntries(hemf: HENHMETAFILE; cEntries: UINT; lppe: LPPALETTEENTRY ): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFilePaletteEntries}
- function GetEnhMetaFilePixelFormat(hemf: HENHMETAFILE; cbBuffer: UINT; var ppfd: PIXELFORMATDESCRIPTOR): UINT; stdcall;
- {$EXTERNALSYM GetEnhMetaFilePixelFormat}
- function GetWinMetaFileBits(hemf: HENHMETAFILE; cbBuffer: UINT; lpbBuffer: LPBYTE; fnMapMode: Integer; hdcRef: HDC): UINT; stdcall;
- {$EXTERNALSYM GetWinMetaFileBits}
- function PlayEnhMetaFile(hdc: HDC; hemf: HENHMETAFILE; const lpRect: RECT): BOOL; stdcall;
- {$EXTERNALSYM PlayEnhMetaFile}
- function PlayEnhMetaFileRecord(hdc: HDC; lpHandleTable: LPHANDLETABLE; lpEnhMetaRecord: LPENHMETARECORD; nHandles: UINT): BOOL; stdcall;
- {$EXTERNALSYM PlayEnhMetaFileRecord}
- function SetEnhMetaFileBits(cbBuffer: UINT; lpData: LPBYTE): HENHMETAFILE; stdcall;
- {$EXTERNALSYM SetEnhMetaFileBits}
- function SetWinMetaFileBits(cbBuffer: UINT; lpbBuffer: LPBYTE; hdcRef: HDC; const lpmfp: METAFILEPICT): HENHMETAFILE; stdcall;
- {$EXTERNALSYM SetWinMetaFileBits}
- function GdiComment(hdc: HDC; cbSize: UINT; lpData: LPBYTE): BOOL; stdcall;
- {$EXTERNALSYM GdiComment}
- function GetTextMetricsA(hdc: HDC; var lptm: TEXTMETRICA): BOOL; stdcall;
- {$EXTERNALSYM GetTextMetricsA}
- function GetTextMetricsW(hdc: HDC; var lptm: TEXTMETRICW): BOOL; stdcall;
- {$EXTERNALSYM GetTextMetricsW}
- function GetTextMetrics(hdc: HDC; var lptm: TEXTMETRIC): BOOL; stdcall;
- {$EXTERNALSYM GetTextMetrics}
- // new GDI
- type
- PDibSection = ^TDibSection;
- tagDIBSECTION = record
- dsBm: BITMAP;
- dsBmih: BITMAPINFOHEADER;
- dsBitfields: array [0..2] of DWORD;
- dshSection: HANDLE;
- dsOffset: DWORD;
- end;
- {$EXTERNALSYM tagDIBSECTION}
- DIBSECTION = tagDIBSECTION;
- {$EXTERNALSYM DIBSECTION}
- LPDIBSECTION = ^DIBSECTION;
- {$EXTERNALSYM LPDIBSECTION}
- TDibSection = DIBSECTION;
- function AngleArc(hdc: HDC; X, Y: Integer; dwRadius: DWORD; eStartAngle, eSweepAngle: FLOAT): BOOL; stdcall;
- {$EXTERNALSYM AngleArc}
- function PolyPolyline(hdc: HDC; lppt: LPPOINT; lpdwPolyPoints: LPDWORD; cCount: DWORD): BOOL; stdcall;
- {$EXTERNALSYM PolyPolyline}
- function GetWorldTransform(hdc: HDC; lpXform: LPXFORM): BOOL; stdcall;
- {$EXTERNALSYM GetWorldTransform}
- function SetWorldTransform(hdc: HDC; lpXform: LPXFORM): BOOL; stdcall;
- {$EXTERNALSYM SetWorldTransform}
- function ModifyWorldTransform(hdc: HDC; lpXform: LPXFORM; iMode: DWORD): BOOL; stdcall;
- {$EXTERNALSYM ModifyWorldTransform}
- function CombineTransform(lpxformResult, lpXform1, lpXform2: LPXFORM): BOOL; stdcall;
- {$EXTERNALSYM CombineTransform}
- function CreateDIBSection(hdc: HDC; pbmi: LPBITMAPINFO; iUsage: UINT;
- ppvBits: PPVOID; hSection: HANDLE; dwOffset: DWORD): HBITMAP; stdcall;
- {$EXTERNALSYM CreateDIBSection}
- function GetDIBColorTable(hdc: HDC; uStartIndex, cEntries: UINT; pColors: PRGBQUAD): UINT; stdcall;
- {$EXTERNALSYM GetDIBColorTable}
- function SetDIBColorTable(hdc: HDC; uStartIndex, cEntries: UINT; pColors: PRGBQUAD): UINT; stdcall;
- {$EXTERNALSYM SetDIBColorTable}
- // Flags value for COLORADJUSTMENT
- const
- CA_NEGATIVE = $0001;
- {$EXTERNALSYM CA_NEGATIVE}
- CA_LOG_FILTER = $0002;
- {$EXTERNALSYM CA_LOG_FILTER}
- // IlluminantIndex values
- ILLUMINANT_DEVICE_DEFAULT = 0;
- {$EXTERNALSYM ILLUMINANT_DEVICE_DEFAULT}
- ILLUMINANT_A = 1;
- {$EXTERNALSYM ILLUMINANT_A}
- ILLUMINANT_B = 2;
- {$EXTERNALSYM ILLUMINANT_B}
- ILLUMINANT_C = 3;
- {$EXTERNALSYM ILLUMINANT_C}
- ILLUMINANT_D50 = 4;
- {$EXTERNALSYM ILLUMINANT_D50}
- ILLUMINANT_D55 = 5;
- {$EXTERNALSYM ILLUMINANT_D55}
- ILLUMINANT_D65 = 6;
- {$EXTERNALSYM ILLUMINANT_D65}
- ILLUMINANT_D75 = 7;
- {$EXTERNALSYM ILLUMINANT_D75}
- ILLUMINANT_F2 = 8;
- {$EXTERNALSYM ILLUMINANT_F2}
- ILLUMINANT_MAX_INDEX = ILLUMINANT_F2;
- {$EXTERNALSYM ILLUMINANT_MAX_INDEX}
- ILLUMINANT_TUNGSTEN = ILLUMINANT_A;
- {$EXTERNALSYM ILLUMINANT_TUNGSTEN}
- ILLUMINANT_DAYLIGHT = ILLUMINANT_C;
- {$EXTERNALSYM ILLUMINANT_DAYLIGHT}
- ILLUMINANT_FLUORESCENT = ILLUMINANT_F2;
- {$EXTERNALSYM ILLUMINANT_FLUORESCENT}
- ILLUMINANT_NTSC = ILLUMINANT_C;
- {$EXTERNALSYM ILLUMINANT_NTSC}
- // Min and max for RedGamma, GreenGamma, BlueGamma
- RGB_GAMMA_MIN = WORD(02500);
- {$EXTERNALSYM RGB_GAMMA_MIN}
- RGB_GAMMA_MAX = WORD(65000);
- {$EXTERNALSYM RGB_GAMMA_MAX}
- // Min and max for ReferenceBlack and ReferenceWhite
- REFERENCE_WHITE_MIN = WORD(6000);
- {$EXTERNALSYM REFERENCE_WHITE_MIN}
- REFERENCE_WHITE_MAX = WORD(10000);
- {$EXTERNALSYM REFERENCE_WHITE_MAX}
- REFERENCE_BLACK_MIN = WORD(0);
- {$EXTERNALSYM REFERENCE_BLACK_MIN}
- REFERENCE_BLACK_MAX = WORD(4000);
- {$EXTERNALSYM REFERENCE_BLACK_MAX}
- // Min and max for Contrast, Brightness, Colorfulness, RedGreenTint
- COLOR_ADJ_MIN = SHORT(-100);
- {$EXTERNALSYM COLOR_ADJ_MIN}
- COLOR_ADJ_MAX = SHORT(100);
- {$EXTERNALSYM COLOR_ADJ_MAX}
- type
- PColorAdjustment = ^TColorAdjustment;
- tagCOLORADJUSTMENT = record
- caSize: WORD;
- caFlags: WORD;
- caIlluminantIndex: WORD;
- caRedGamma: WORD;
- caGreenGamma: WORD;
- caBlueGamma: WORD;
- caReferenceBlack: WORD;
- caReferenceWhite: WORD;
- caContrast: SHORT;
- caBrightness: SHORT;
- caColorfulness: SHORT;
- caRedGreenTint: SHORT;
- end;
- {$EXTERNALSYM tagCOLORADJUSTMENT}
- COLORADJUSTMENT = tagCOLORADJUSTMENT;
- {$EXTERNALSYM COLORADJUSTMENT}
- LPCOLORADJUSTMENT = ^COLORADJUSTMENT;
- {$EXTERNALSYM LPCOLORADJUSTMENT}
- TColorAdjustment = COLORADJUSTMENT;
- function SetColorAdjustment(hdc: HDC; lpca: LPCOLORADJUSTMENT): BOOL; stdcall;
- {$EXTERNALSYM SetColorAdjustment}
- function GetColorAdjustment(hdc: HDC; lpca: LPCOLORADJUSTMENT): BOOL; stdcall;
- {$EXTERNALSYM GetColorAdjustment}
- function CreateHalftonePalette(hdc: HDC): HPALETTE; stdcall;
- {$EXTERNALSYM CreateHalftonePalette}
- type
- ABORTPROC = function(hdc: HDC; iError: Integer): BOOL; stdcall;
- {$EXTERNALSYM ABORTPROC}
- PDocInfoA = ^TDocInfoA;
- _DOCINFOA = record
- cbSize: Integer;
- lpszDocName: LPCSTR;
- lpszOutput: LPCSTR;
- lpszDatatype: LPCSTR;
- fwType: DWORD;
- end;
- {$EXTERNALSYM _DOCINFOA}
- DOCINFOA = _DOCINFOA;
- {$EXTERNALSYM DOCINFOA}
- LPDOCINFOA = ^DOCINFOA;
- {$EXTERNALSYM LPDOCINFOA}
- TDocInfoA = _DOCINFOA;
- PDocInfoW = ^TDocInfoW;
- _DOCINFOW = record
- cbSize: Integer;
- lpszDocName: LPCWSTR;
- lpszOutput: LPCWSTR;
- lpszDatatype: LPCWSTR;
- fwType: DWORD;
- end;
- {$EXTERNALSYM _DOCINFOW}
- DOCINFOW = _DOCINFOW;
- {$EXTERNALSYM DOCINFOW}
- LPDOCINFOW = ^DOCINFOW;
- {$EXTERNALSYM LPDOCINFOW}
- TDocInfoW = _DOCINFOW;
- {$IFDEF UNICODE}
- DOCINFO = DOCINFOW;
- {$EXTERNALSYM DOCINFO}
- LPDOCINFO = LPDOCINFOW;
- {$EXTERNALSYM LPDOCINFO}
- TDocInfo = TDocInfoW;
- PDocInfo = PDocInfoW;
- {$ELSE}
- DOCINFO = DOCINFOA;
- {$EXTERNALSYM DOCINFO}
- LPDOCINFO = LPDOCINFOA;
- {$EXTERNALSYM LPDOCINFO}
- TDocInfo = TDocInfoA;
- PDocInfo = PDocInfoA;
- {$ENDIF UNICODE}
- const
- DI_APPBANDING = $00000001;
- {$EXTERNALSYM DI_APPBANDING}
- DI_ROPS_READ_DESTINATION = $00000002;
- {$EXTERNALSYM DI_ROPS_READ_DESTINATION}
- function StartDocA(hdc: HDC; const lpdi: DOCINFOA): Integer; stdcall;
- {$EXTERNALSYM StartDocA}
- function StartDocW(hdc: HDC; const lpdi: DOCINFOW): Integer; stdcall;
- {$EXTERNALSYM StartDocW}
- function StartDoc(hdc: HDC; const lpdi: DOCINFO): Integer; stdcall;
- {$EXTERNALSYM StartDoc}
- function EndDoc(dc: HDC): Integer; stdcall;
- {$EXTERNALSYM EndDoc}
- function StartPage(dc: HDC): Integer; stdcall;
- {$EXTERNALSYM StartPage}
- function EndPage(dc: HDC): Integer; stdcall;
- {$EXTERNALSYM EndPage}
- function AbortDoc(dc: HDC): Integer; stdcall;
- {$EXTERNALSYM AbortDoc}
- function SetAbortProc(dc: HDC; lpAbortProc: ABORTPROC): Integer; stdcall;
- {$EXTERNALSYM SetAbortProc}
- function AbortPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM AbortPath}
- function ArcTo(hdc: HDC; nLeftRect, nTopRect, nRightRect, nBottomRect, nXRadial1, nYRadial1, nXRadial2, nYRadial2: Integer): BOOL; stdcall;
- {$EXTERNALSYM ArcTo}
- function BeginPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM BeginPath}
- function CloseFigure(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM CloseFigure}
- function EndPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM EndPath}
- function FillPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM FillPath}
- function FlattenPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM FlattenPath}
- function GetPath(hdc: HDC; lpPoints: LPPOINT; lpTypes: LPBYTE; nSize: Integer): Integer; stdcall;
- {$EXTERNALSYM GetPath}
- function PathToRegion(hdc: HDC): HRGN; stdcall;
- {$EXTERNALSYM PathToRegion}
- function PolyDraw(hdc: HDC; lppt: LPPOINT; lpbTypes: LPBYTE; cCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyDraw}
- function SelectClipPath(hdc: HDC; iMode: Integer): BOOL; stdcall;
- {$EXTERNALSYM SelectClipPath}
- function SetArcDirection(hdc: HDC; ArcDirection: Integer): Integer; stdcall;
- {$EXTERNALSYM SetArcDirection}
- function SetMiterLimit(hdc: HDC; eNewLimit: FLOAT; peOldLimit: PFLOAT): BOOL; stdcall;
- {$EXTERNALSYM SetMiterLimit}
- function StrokeAndFillPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM StrokeAndFillPath}
- function StrokePath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM StrokePath}
- function WidenPath(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM WidenPath}
- function ExtCreatePen(dwPenStyle, dwWidth: DWORD; const lplb: LOGBRUSH; dwStyleCount: DWORD; lpStyle: DWORD): HPEN; stdcall;
- {$EXTERNALSYM ExtCreatePen}
- function GetMiterLimit(hdc: HDC; var peLimit: FLOAT): BOOL; stdcall;
- {$EXTERNALSYM GetMiterLimit}
- function GetArcDirection(hdc: HDC): Integer; stdcall;
- {$EXTERNALSYM GetArcDirection}
- function GetObjectA(hgdiobj: HGDIOBJ; cbBuffer: Integer; lpvObject: LPVOID): Integer; stdcall;
- {$EXTERNALSYM GetObjectA}
- function GetObjectW(hgdiobj: HGDIOBJ; cbBuffer: Integer; lpvObject: LPVOID): Integer; stdcall;
- {$EXTERNALSYM GetObjectW}
- function GetObject(hgdiobj: HGDIOBJ; cbBuffer: Integer; lpvObject: LPVOID): Integer; stdcall;
- {$EXTERNALSYM GetObject}
- function MoveToEx(hdc: HDC; X, Y: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM MoveToEx}
- function TextOutA(hdc: HDC; nXStart, nYStart: Integer; lpString: LPCSTR; cbString: Integer): BOOL; stdcall;
- {$EXTERNALSYM TextOutA}
- function TextOutW(hdc: HDC; nXStart, nYStart: Integer; lpString: LPCWSTR; cbString: Integer): BOOL; stdcall;
- {$EXTERNALSYM TextOutW}
- function TextOut(hdc: HDC; nXStart, nYStart: Integer; lpString: LPCTSTR; cbString: Integer): BOOL; stdcall;
- {$EXTERNALSYM TextOut}
- function ExtTextOutA(hdc: HDC; X, Y: Integer; fuOptions: UINT; lprc: LPRECT; lpString: LPCSTR; cbCount: UINT; lpDx: LPINT): BOOL; stdcall;
- {$EXTERNALSYM ExtTextOutA}
- function ExtTextOutW(hdc: HDC; X, Y: Integer; fuOptions: UINT; lprc: LPRECT; lpString: LPCWSTR; cbCount: UINT; lpDx: LPINT): BOOL; stdcall;
- {$EXTERNALSYM ExtTextOutW}
- function ExtTextOut(hdc: HDC; X, Y: Integer; fuOptions: UINT; lprc: LPRECT; lpString: LPCTSTR; cbCount: UINT; lpDx: LPINT): BOOL; stdcall;
- {$EXTERNALSYM ExtTextOut}
- function PolyTextOutA(hdc: HDC; pptxt: LPPOLYTEXTA; cStrings: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyTextOutA}
- function PolyTextOutW(hdc: HDC; pptxt: LPPOLYTEXTW; cStrings: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyTextOutW}
- function PolyTextOut(hdc: HDC; pptxt: LPPOLYTEXT; cStrings: Integer): BOOL; stdcall;
- {$EXTERNALSYM PolyTextOut}
- function CreatePolygonRgn(lppt: LPPOINT; cPoints, fnPolyFillMode: Integer): HRGN; stdcall;
- {$EXTERNALSYM CreatePolygonRgn}
- function DPtoLP(hdc: HDC; lpPoints: LPPOINT; nCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM DPtoLP}
- function LPtoDP(hdc: HDC; lpPoints: LPPOINT; nCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM LPtoDP}
- function Polygon(hdc: HDC; lpPoints: LPPOINT; nCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM Polygon}
- function Polyline(hdc: HDC; lppt: LPPOINT; nCount: Integer): BOOL; stdcall;
- {$EXTERNALSYM Polyline}
- function PolyBezier(hdc: HDC; lppt: LPPOINT; cPoints: DWORD): BOOL; stdcall;
- {$EXTERNALSYM PolyBezier}
- function PolyBezierTo(hdc: HDC; lppt: LPPOINT; cCount: DWORD): BOOL; stdcall;
- {$EXTERNALSYM PolyBezierTo}
- function PolylineTo(hdc: HDC; lppt: LPPOINT; cCount: DWORD): BOOL; stdcall;
- {$EXTERNALSYM PolylineTo}
- function SetViewportExtEx(hdc: HDC; nXExtend, nYExtend: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM SetViewportExtEx}
- function SetViewportOrgEx(hdc: HDC; X, Y: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM SetViewportOrgEx}
- function SetWindowExtEx(hdc: HDC; nXExtend, nYExtend: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM SetWindowExtEx}
- function SetWindowOrgEx(hdc: HDC; X, Y: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM SetWindowOrgEx}
- function OffsetViewportOrgEx(hdc: HDC; nXOffset, nYOffset: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM OffsetViewportOrgEx}
- function OffsetWindowOrgEx(hdc: HDC; nXOffset, nYOffset: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM OffsetWindowOrgEx}
- function ScaleViewportExtEx(hdc: HDC; Xnum, Xdenom, Ynum, Ydenom: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM ScaleViewportExtEx}
- function ScaleWindowExtEx(hdc: HDC; Xnum, Xdenom, Ynum, Ydenom: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM ScaleWindowExtEx}
- function SetBitmapDimensionEx(hBitmap: HBITMAP; nWidth, nHeight: Integer; lpSize: LPSIZE): BOOL; stdcall;
- {$EXTERNALSYM SetBitmapDimensionEx}
- function SetBrushOrgEx(hdc: HDC; nXOrg, nYOrg: Integer; lppt: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM SetBrushOrgEx}
- function GetTextFaceA(hdc: HDC; nCount: Integer; lpFaceName: LPSTR): Integer; stdcall;
- {$EXTERNALSYM GetTextFaceA}
- function GetTextFaceW(hdc: HDC; nCount: Integer; lpFaceName: LPWSTR): Integer; stdcall;
- {$EXTERNALSYM GetTextFaceW}
- function GetTextFace(hdc: HDC; nCount: Integer; lpFaceName: LPTSTR): Integer; stdcall;
- {$EXTERNALSYM GetTextFace}
- const
- FONTMAPPER_MAX = 10;
- {$EXTERNALSYM FONTMAPPER_MAX}
- type
- PKerningPair = ^TKerningPair;
- tagKERNINGPAIR = record
- wFirst: WORD;
- wSecond: WORD;
- iKernAmount: Integer;
- end;
- {$EXTERNALSYM tagKERNINGPAIR}
- KERNINGPAIR = tagKERNINGPAIR;
- {$EXTERNALSYM KERNINGPAIR}
- LPKERNINGPAIR = ^KERNINGPAIR;
- {$EXTERNALSYM LPKERNINGPAIR}
- TKerningPair = KERNINGPAIR;
- function GetKerningPairsA(hDc: HDC; nNumPairs: DWORD; lpkrnpair: LPKERNINGPAIR): DWORD; stdcall;
- {$EXTERNALSYM GetKerningPairsA}
- function GetKerningPairsW(hDc: HDC; nNumPairs: DWORD; lpkrnpair: LPKERNINGPAIR): DWORD; stdcall;
- {$EXTERNALSYM GetKerningPairsW}
- function GetKerningPairs(hDc: HDC; nNumPairs: DWORD; lpkrnpair: LPKERNINGPAIR): DWORD; stdcall;
- {$EXTERNALSYM GetKerningPairs}
- function GetDCOrgEx(hdc: HDC; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM GetDCOrgEx}
- function FixBrushOrgEx(hDc: HDC; I1, I2: Integer; lpPoint: LPPOINT): BOOL; stdcall;
- {$EXTERNALSYM FixBrushOrgEx}
- function UnrealizeObject(hgdiobj: HGDIOBJ): BOOL; stdcall;
- {$EXTERNALSYM UnrealizeObject}
- function GdiFlush: BOOL; stdcall;
- {$EXTERNALSYM GdiFlush}
- function GdiSetBatchLimit(dwLimit: DWORD): DWORD; stdcall;
- {$EXTERNALSYM GdiSetBatchLimit}
- function GdiGetBatchLimit: DWORD; stdcall;
- {$EXTERNALSYM GdiGetBatchLimit}
- const
- ICM_OFF = 1;
- {$EXTERNALSYM ICM_OFF}
- ICM_ON = 2;
- {$EXTERNALSYM ICM_ON}
- ICM_QUERY = 3;
- {$EXTERNALSYM ICM_QUERY}
- ICM_DONE_OUTSIDEDC = 4;
- {$EXTERNALSYM ICM_DONE_OUTSIDEDC}
- type
- ICMENUMPROCA = function(lpszFileName: LPSTR; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM ICMENUMPROCA}
- ICMENUMPROCW = function(lpszFileName: LPWSTR; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM ICMENUMPROCW}
- ICMENUMPROC = function(lpszFileName: LPTSTR; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM ICMENUMPROC}
- function SetICMMode(hDc: HDC; iEnableICM: Integer): Integer; stdcall;
- {$EXTERNALSYM SetICMMode}
- function CheckColorsInGamut(hDc: HDC; lpRGBTriples, lpBuffer: LPVOID; nCount: DWORD): BOOL; stdcall;
- {$EXTERNALSYM CheckColorsInGamut}
- function GetColorSpace(hDc: HDC): HCOLORSPACE; stdcall;
- {$EXTERNALSYM GetColorSpace}
- function GetLogColorSpaceA(hColorSpace: HCOLORSPACE; lpBuffer: LPLOGCOLORSPACEA; nSize: DWORD): BOOL; stdcall;
- {$EXTERNALSYM GetLogColorSpaceA}
- function GetLogColorSpaceW(hColorSpace: HCOLORSPACE; lpBuffer: LPLOGCOLORSPACEW; nSize: DWORD): BOOL; stdcall;
- {$EXTERNALSYM GetLogColorSpaceW}
- function GetLogColorSpace(hColorSpace: HCOLORSPACE; lpBuffer: LPLOGCOLORSPACE; nSize: DWORD): BOOL; stdcall;
- {$EXTERNALSYM GetLogColorSpace}
- function CreateColorSpaceA(lpLogColorSpace: LPLOGCOLORSPACEA): HCOLORSPACE; stdcall;
- {$EXTERNALSYM CreateColorSpaceA}
- function CreateColorSpaceW(lpLogColorSpace: LPLOGCOLORSPACEW): HCOLORSPACE; stdcall;
- {$EXTERNALSYM CreateColorSpaceW}
- function CreateColorSpace(lpLogColorSpace: LPLOGCOLORSPACE): HCOLORSPACE; stdcall;
- {$EXTERNALSYM CreateColorSpace}
- function SetColorSpace(hDc: HDC; hColorSpace: HCOLORSPACE): HCOLORSPACE; stdcall;
- {$EXTERNALSYM SetColorSpace}
- function DeleteColorSpace(hColorSpace: HCOLORSPACE): BOOL; stdcall;
- {$EXTERNALSYM DeleteColorSpace}
- function GetICMProfileA(hDc: HDC; lpcbName: LPDWORD; lpszFilename: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM GetICMProfileA}
- function GetICMProfileW(hDc: HDC; lpcbName: LPDWORD; lpszFilename: LPWSTR): BOOL; stdcall;
- {$EXTERNALSYM GetICMProfileW}
- function GetICMProfile(hDc: HDC; lpcbName: LPDWORD; lpszFilename: LPTSTR): BOOL; stdcall;
- {$EXTERNALSYM GetICMProfile}
- function SetICMProfileA(hDc: HDC; lpFileName: LPSTR): BOOL; stdcall;
- {$EXTERNALSYM SetICMProfileA}
- function SetICMProfileW(hDc: HDC; lpFileName: LPWSTR): BOOL; stdcall;
- {$EXTERNALSYM SetICMProfileW}
- function SetICMProfile(hDc: HDC; lpFileName: LPTSTR): BOOL; stdcall;
- {$EXTERNALSYM SetICMProfile}
- function GetDeviceGammaRamp(hDc: HDC; lpRamp: LPVOID): BOOL; stdcall;
- {$EXTERNALSYM GetDeviceGammaRamp}
- function SetDeviceGammaRamp(hDc: HDC; lpRamp: LPVOID): BOOL; stdcall;
- {$EXTERNALSYM SetDeviceGammaRamp}
- function ColorMatchToTarget(hDc, hdcTarget: HDC; uiAction: DWORD): BOOL; stdcall;
- {$EXTERNALSYM ColorMatchToTarget}
- function EnumICMProfilesA(hDc: HDC; lpEnumProc: ICMENUMPROCA; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumICMProfilesA}
- function EnumICMProfilesW(hDc: HDC; lpEnumProc: ICMENUMPROCW; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumICMProfilesW}
- function EnumICMProfiles(hDc: HDC; lpEnumProc: ICMENUMPROC; lParam: LPARAM): Integer; stdcall;
- {$EXTERNALSYM EnumICMProfiles}
- function UpdateICMRegKeyA(dwReserved: DWORD; lpszCMID, lpszFileName: LPSTR; nCommand: UINT): BOOL; stdcall;
- {$EXTERNALSYM UpdateICMRegKeyA}
- function UpdateICMRegKeyW(dwReserved: DWORD; lpszCMID, lpszFileName: LPWSTR; nCommand: UINT): BOOL; stdcall;
- {$EXTERNALSYM UpdateICMRegKeyW}
- function UpdateICMRegKey(dwReserved: DWORD; lpszCMID, lpszFileName: LPTSTR; nCommand: UINT): BOOL; stdcall;
- {$EXTERNALSYM UpdateICMRegKey}
- function ColorCorrectPalette(hDc: HDC; hColorPalette: HPALETTE; dwFirstEntry, dwNumOfEntries: DWORD): BOOL; stdcall;
- {$EXTERNALSYM ColorCorrectPalette}
- // Enhanced metafile constants.
- const
- ENHMETA_SIGNATURE = $464D4520;
- {$EXTERNALSYM ENHMETA_SIGNATURE}
- // Stock object flag used in the object handle index in the enhanced
- // metafile records.
- // E.g. The object handle index (META_STOCK_OBJECT | BLACK_BRUSH)
- // represents the stock object BLACK_BRUSH.
- ENHMETA_STOCK_OBJECT = DWORD($80000000);
- {$EXTERNALSYM ENHMETA_STOCK_OBJECT}
- // Enhanced metafile record types.
- EMR_HEADER = 1;
- {$EXTERNALSYM EMR_HEADER}
- EMR_POLYBEZIER = 2;
- {$EXTERNALSYM EMR_POLYBEZIER}
- EMR_POLYGON = 3;
- {$EXTERNALSYM EMR_POLYGON}
- EMR_POLYLINE = 4;
- {$EXTERNALSYM EMR_POLYLINE}
- EMR_POLYBEZIERTO = 5;
- {$EXTERNALSYM EMR_POLYBEZIERTO}
- EMR_POLYLINETO = 6;
- {$EXTERNALSYM EMR_POLYLINETO}
- EMR_POLYPOLYLINE = 7;
- {$EXTERNALSYM EMR_POLYPOLYLINE}
- EMR_POLYPOLYGON = 8;
- {$EXTERNALSYM EMR_POLYPOLYGON}
- EMR_SETWINDOWEXTEX = 9;
- {$EXTERNALSYM EMR_SETWINDOWEXTEX}
- EMR_SETWINDOWORGEX = 10;
- {$EXTERNALSYM EMR_SETWINDOWORGEX}
- EMR_SETVIEWPORTEXTEX = 11;
- {$EXTERNALSYM EMR_SETVIEWPORTEXTEX}
- EMR_SETVIEWPORTORGEX = 12;
- {$EXTERNALSYM EMR_SETVIEWPORTORGEX}
- EMR_SETBRUSHORGEX = 13;
- {$EXTERNALSYM EMR_SETBRUSHORGEX}
- EMR_EOF = 14;
- {$EXTERNALSYM EMR_EOF}
- EMR_SETPIXELV = 15;
- {$EXTERNALSYM EMR_SETPIXELV}
- EMR_SETMAPPERFLAGS = 16;
- {$EXTERNALSYM EMR_SETMAPPERFLAGS}
- EMR_SETMAPMODE = 17;
- {$EXTERNALSYM EMR_SETMAPMODE}
- EMR_SETBKMODE = 18;
- {$EXTERNALSYM EMR_SETBKMODE}
- EMR_SETPOLYFILLMODE = 19;
- {$EXTERNALSYM EMR_SETPOLYFILLMODE}
- EMR_SETROP2 = 20;
- {$EXTERNALSYM EMR_SETROP2}
- EMR_SETSTRETCHBLTMODE = 21;
- {$EXTERNALSYM EMR_SETSTRETCHBLTMODE}
- EMR_SETTEXTALIGN = 22;
- {$EXTERNALSYM EMR_SETTEXTALIGN}
- EMR_SETCOLORADJUSTMENT = 23;
- {$EXTERNALSYM EMR_SETCOLORADJUSTMENT}
- EMR_SETTEXTCOLOR = 24;
- {$EXTERNALSYM EMR_SETTEXTCOLOR}
- EMR_SETBKCOLOR = 25;
- {$EXTERNALSYM EMR_SETBKCOLOR}
- EMR_OFFSETCLIPRGN = 26;
- {$EXTERNALSYM EMR_OFFSETCLIPRGN}
- EMR_MOVETOEX = 27;
- {$EXTERNALSYM EMR_MOVETOEX}
- EMR_SETMETARGN = 28;
- {$EXTERNALSYM EMR_SETMETARGN}
- EMR_EXCLUDECLIPRECT = 29;
- {$EXTERNALSYM EMR_EXCLUDECLIPRECT}
- EMR_INTERSECTCLIPRECT = 30;
- {$EXTERNALSYM EMR_INTERSECTCLIPRECT}
- EMR_SCALEVIEWPORTEXTEX = 31;
- {$EXTERNALSYM EMR_SCALEVIEWPORTEXTEX}
- EMR_SCALEWINDOWEXTEX = 32;
- {$EXTERNALSYM EMR_SCALEWINDOWEXTEX}
- EMR_SAVEDC = 33;
- {$EXTERNALSYM EMR_SAVEDC}
- EMR_RESTOREDC = 34;
- {$EXTERNALSYM EMR_RESTOREDC}
- EMR_SETWORLDTRANSFORM = 35;
- {$EXTERNALSYM EMR_SETWORLDTRANSFORM}
- EMR_MODIFYWORLDTRANSFORM = 36;
- {$EXTERNALSYM EMR_MODIFYWORLDTRANSFORM}
- EMR_SELECTOBJECT = 37;
- {$EXTERNALSYM EMR_SELECTOBJECT}
- EMR_CREATEPEN = 38;
- {$EXTERNALSYM EMR_CREATEPEN}
- EMR_CREATEBRUSHINDIRECT = 39;
- {$EXTERNALSYM EMR_CREATEBRUSHINDIRECT}
- EMR_DELETEOBJECT = 40;
- {$EXTERNALSYM EMR_DELETEOBJECT}
- EMR_ANGLEARC = 41;
- {$EXTERNALSYM EMR_ANGLEARC}
- EMR_ELLIPSE = 42;
- {$EXTERNALSYM EMR_ELLIPSE}
- EMR_RECTANGLE = 43;
- {$EXTERNALSYM EMR_RECTANGLE}
- EMR_ROUNDRECT = 44;
- {$EXTERNALSYM EMR_ROUNDRECT}
- EMR_ARC = 45;
- {$EXTERNALSYM EMR_ARC}
- EMR_CHORD = 46;
- {$EXTERNALSYM EMR_CHORD}
- EMR_PIE = 47;
- {$EXTERNALSYM EMR_PIE}
- EMR_SELECTPALETTE = 48;
- {$EXTERNALSYM EMR_SELECTPALETTE}
- EMR_CREATEPALETTE = 49;
- {$EXTERNALSYM EMR_CREATEPALETTE}
- EMR_SETPALETTEENTRIES = 50;
- {$EXTERNALSYM EMR_SETPALETTEENTRIES}
- EMR_RESIZEPALETTE = 51;
- {$EXTERNALSYM EMR_RESIZEPALETTE}
- EMR_REALIZEPALETTE = 52;
- {$EXTERNALSYM EMR_REALIZEPALETTE}
- EMR_EXTFLOODFILL = 53;
- {$EXTERNALSYM EMR_EXTFLOODFILL}
- EMR_LINETO = 54;
- {$EXTERNALSYM EMR_LINETO}
- EMR_ARCTO = 55;
- {$EXTERNALSYM EMR_ARCTO}
- EMR_POLYDRAW = 56;
- {$EXTERNALSYM EMR_POLYDRAW}
- EMR_SETARCDIRECTION = 57;
- {$EXTERNALSYM EMR_SETARCDIRECTION}
- EMR_SETMITERLIMIT = 58;
- {$EXTERNALSYM EMR_SETMITERLIMIT}
- EMR_BEGINPATH = 59;
- {$EXTERNALSYM EMR_BEGINPATH}
- EMR_ENDPATH = 60;
- {$EXTERNALSYM EMR_ENDPATH}
- EMR_CLOSEFIGURE = 61;
- {$EXTERNALSYM EMR_CLOSEFIGURE}
- EMR_FILLPATH = 62;
- {$EXTERNALSYM EMR_FILLPATH}
- EMR_STROKEANDFILLPATH = 63;
- {$EXTERNALSYM EMR_STROKEANDFILLPATH}
- EMR_STROKEPATH = 64;
- {$EXTERNALSYM EMR_STROKEPATH}
- EMR_FLATTENPATH = 65;
- {$EXTERNALSYM EMR_FLATTENPATH}
- EMR_WIDENPATH = 66;
- {$EXTERNALSYM EMR_WIDENPATH}
- EMR_SELECTCLIPPATH = 67;
- {$EXTERNALSYM EMR_SELECTCLIPPATH}
- EMR_ABORTPATH = 68;
- {$EXTERNALSYM EMR_ABORTPATH}
- EMR_GDICOMMENT = 70;
- {$EXTERNALSYM EMR_GDICOMMENT}
- EMR_FILLRGN = 71;
- {$EXTERNALSYM EMR_FILLRGN}
- EMR_FRAMERGN = 72;
- {$EXTERNALSYM EMR_FRAMERGN}
- EMR_INVERTRGN = 73;
- {$EXTERNALSYM EMR_INVERTRGN}
- EMR_PAINTRGN = 74;
- {$EXTERNALSYM EMR_PAINTRGN}
- EMR_EXTSELECTCLIPRGN = 75;
- {$EXTERNALSYM EMR_EXTSELECTCLIPRGN}
- EMR_BITBLT = 76;
- {$EXTERNALSYM EMR_BITBLT}
- EMR_STRETCHBLT = 77;
- {$EXTERNALSYM EMR_STRETCHBLT}
- EMR_MASKBLT = 78;
- {$EXTERNALSYM EMR_MASKBLT}
- EMR_PLGBLT = 79;
- {$EXTERNALSYM EMR_PLGBLT}
- EMR_SETDIBITSTODEVICE = 80;
- {$EXTERNALSYM EMR_SETDIBITSTODEVICE}
- EMR_STRETCHDIBITS = 81;
- {$EXTERNALSYM EMR_STRETCHDIBITS}
- EMR_EXTCREATEFONTINDIRECTW = 82;
- {$EXTERNALSYM EMR_EXTCREATEFONTINDIRECTW}
- EMR_EXTTEXTOUTA = 83;
- {$EXTERNALSYM EMR_EXTTEXTOUTA}
- EMR_EXTTEXTOUTW = 84;
- {$EXTERNALSYM EMR_EXTTEXTOUTW}
- EMR_POLYBEZIER16 = 85;
- {$EXTERNALSYM EMR_POLYBEZIER16}
- EMR_POLYGON16 = 86;
- {$EXTERNALSYM EMR_POLYGON16}
- EMR_POLYLINE16 = 87;
- {$EXTERNALSYM EMR_POLYLINE16}
- EMR_POLYBEZIERTO16 = 88;
- {$EXTERNALSYM EMR_POLYBEZIERTO16}
- EMR_POLYLINETO16 = 89;
- {$EXTERNALSYM EMR_POLYLINETO16}
- EMR_POLYPOLYLINE16 = 90;
- {$EXTERNALSYM EMR_POLYPOLYLINE16}
- EMR_POLYPOLYGON16 = 91;
- {$EXTERNALSYM EMR_POLYPOLYGON16}
- EMR_POLYDRAW16 = 92;
- {$EXTERNALSYM EMR_POLYDRAW16}
- EMR_CREATEMONOBRUSH = 93;
- {$EXTERNALSYM EMR_CREATEMONOBRUSH}
- EMR_CREATEDIBPATTERNBRUSHPT = 94;
- {$EXTERNALSYM EMR_CREATEDIBPATTERNBRUSHPT}
- EMR_EXTCREATEPEN = 95;
- {$EXTERNALSYM EMR_EXTCREATEPEN}
- EMR_POLYTEXTOUTA = 96;
- {$EXTERNALSYM EMR_POLYTEXTOUTA}
- EMR_POLYTEXTOUTW = 97;
- {$EXTERNALSYM EMR_POLYTEXTOUTW}
- EMR_SETICMMODE = 98;
- {$EXTERNALSYM EMR_SETICMMODE}
- EMR_CREATECOLORSPACE = 99;
- {$EXTERNALSYM EMR_CREATECOLORSPACE}
- EMR_SETCOLORSPACE = 100;
- {$EXTERNALSYM EMR_SETCOLORSPACE}
- EMR_DELETECOLORSPACE = 101;
- {$EXTERNALSYM EMR_DELETECOLORSPACE}
- EMR_GLSRECORD = 102;
- {$EXTERNALSYM EMR_GLSRECORD}
- EMR_GLSBOUNDEDRECORD = 103;
- {$EXTERNALSYM EMR_GLSBOUNDEDRECORD}
- EMR_PIXELFORMAT = 104;
- {$EXTERNALSYM EMR_PIXELFORMAT}
- EMR_RESERVED_105 = 105;
- {$EXTERNALSYM EMR_RESERVED_105}
- EMR_RESERVED_106 = 106;
- {$EXTERNALSYM EMR_RESERVED_106}
- EMR_RESERVED_107 = 107;
- {$EXTERNALSYM EMR_RESERVED_107}
- EMR_RESERVED_108 = 108;
- {$EXTERNALSYM EMR_RESERVED_108}
- EMR_RESERVED_109 = 109;
- {$EXTERNALSYM EMR_RESERVED_109}
- EMR_RESERVED_110 = 110;
- {$EXTERNALSYM EMR_RESERVED_110}
- EMR_COLORCORRECTPALETTE = 111;
- {$EXTERNALSYM EMR_COLORCORRECTPALETTE}
- EMR_SETICMPROFILEA = 112;
- {$EXTERNALSYM EMR_SETICMPROFILEA}
- EMR_SETICMPROFILEW = 113;
- {$EXTERNALSYM EMR_SETICMPROFILEW}
- EMR_ALPHABLEND = 114;
- {$EXTERNALSYM EMR_ALPHABLEND}
- EMR_SETLAYOUT = 115;
- {$EXTERNALSYM EMR_SETLAYOUT}
- EMR_TRANSPARENTBLT = 116;
- {$EXTERNALSYM EMR_TRANSPARENTBLT}
- EMR_RESERVED_117 = 117;
- {$EXTERNALSYM EMR_RESERVED_117}
- EMR_GRADIENTFILL = 118;
- {$EXTERNALSYM EMR_GRADIENTFILL}
- EMR_RESERVED_119 = 119;
- {$EXTERNALSYM EMR_RESERVED_119}
- EMR_RESERVED_120 = 120;
- {$EXTERNALSYM EMR_RESERVED_120}
- EMR_COLORMATCHTOTARGETW = 121;
- {$EXTERNALSYM EMR_COLORMATCHTOTARGETW}
- EMR_CREATECOLORSPACEW = 122;
- {$EXTERNALSYM EMR_CREATECOLORSPACEW}
- EMR_MIN = 1;
- {$EXTERNALSYM EMR_MIN}
- {$IFDEF WIN98ME_UP}
- EMR_MAX = 122;
- {$EXTERNALSYM EMR_MAX}
- {$ELSE}
- EMR_MAX = 104;
- {$EXTERNALSYM EMR_MAX}
- {$ENDIF WIN98ME_UP}
- // Base record type for the enhanced metafile.
- type
- PEmr = ^TEmr;
- tagEMR = record
- iType: DWORD; // Enhanced metafile record type
- nSize: DWORD; // Length of the record in bytes.
- // This must be a multiple of 4.
- end;
- {$EXTERNALSYM tagEMR}
- EMR = tagEMR;
- {$EXTERNALSYM EMR}
- TEmr = EMR;
- // Base text record type for the enhanced metafile.
- PEmrText = ^TEmrText;
- tagEMRTEXT = record
- ptlReference: POINTL;
- nChars: DWORD;
- offString: DWORD; // Offset to the string
- fOptions: DWORD;
- rcl: RECTL;
- offDx: DWORD; // Offset to the inter-character spacing array.
- // This is always given.
- end;
- {$EXTERNALSYM tagEMRTEXT}
- EMRTEXT = tagEMRTEXT;
- {$EXTERNALSYM EMRTEXT}
- TEmrText = EMRTEXT;
- // Record structures for the enhanced metafile.
- PAbortPath = ^TAbortPath;
- tagABORTPATH = record
- emr: EMR;
- end;
- {$EXTERNALSYM tagABORTPATH}
- TAbortPath = tagABORTPATH;
- EMRABORTPATH = tagABORTPATH;
- {$EXTERNALSYM EMRABORTPATH}
- PEMRABORTPATH = ^EMRABORTPATH;
- {$EXTERNALSYM PEMRABORTPATH}
- EMRBEGINPATH = tagABORTPATH;
- {$EXTERNALSYM EMRBEGINPATH}
- PEMRBEGINPATH = ^EMRBEGINPATH;
- {$EXTERNALSYM PEMRBEGINPATH}
- EMRENDPATH = tagABORTPATH;
- {$EXTERNALSYM EMRENDPATH}
- PEMRENDPATH = ^EMRENDPATH;
- {$EXTERNALSYM PEMRENDPATH}
- EMRCLOSEFIGURE = tagABORTPATH;
- {$EXTERNALSYM EMRCLOSEFIGURE}
- PEMRCLOSEFIGURE = ^EMRCLOSEFIGURE;
- {$EXTERNALSYM PEMRCLOSEFIGURE}
- EMRFLATTENPATH = tagABORTPATH;
- {$EXTERNALSYM EMRFLATTENPATH}
- PEMRFLATTENPATH = ^EMRFLATTENPATH;
- {$EXTERNALSYM PEMRFLATTENPATH}
- EMRWIDENPATH = tagABORTPATH;
- {$EXTERNALSYM EMRWIDENPATH}
- PEMRWIDENPATH = ^EMRWIDENPATH;
- {$EXTERNALSYM PEMRWIDENPATH}
- EMRSETMETARGN = tagABORTPATH;
- {$EXTERNALSYM EMRSETMETARGN}
- PEMRSETMETARGN = ^EMRSETMETARGN;
- {$EXTERNALSYM PEMRSETMETARGN}
- EMRSAVEDC = tagABORTPATH;
- {$EXTERNALSYM EMRSAVEDC}
- PEMRSAVEDC = ^EMRSAVEDC;
- {$EXTERNALSYM PEMRSAVEDC}
- EMRREALIZEPALETTE = tagABORTPATH;
- {$EXTERNALSYM EMRREALIZEPALETTE}
- PEMRREALIZEPALETTE = ^EMRREALIZEPALETTE;
- {$EXTERNALSYM PEMRREALIZEPALETTE}
- PEmrSelectClipPath = ^TEmrSelectClipPath;
- tagEMRSELECTCLIPPATH = record
- emr: EMR;
- iMode: DWORD;
- end;
- {$EXTERNALSYM tagEMRSELECTCLIPPATH}
- EMRSELECTCLIPPATH = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSELECTCLIPPATH}
- LPEMRSELECTCLIPPATH = ^EMRSELECTCLIPPATH;
- {$EXTERNALSYM LPEMRSELECTCLIPPATH}
- TEmrSelectClipPath = EMRSELECTCLIPPATH;
- EMRSETBKMODE = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETBKMODE}
- PEMRSETBKMODE = ^EMRSETBKMODE;
- {$EXTERNALSYM PEMRSETBKMODE}
- EMRSETMAPMODE = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETMAPMODE}
- PEMRSETMAPMODE = ^EMRSETMAPMODE;
- {$EXTERNALSYM PEMRSETMAPMODE}
- EMRSETLAYOUT = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETLAYOUT}
- PEMRSETLAYOUT = ^EMRSETLAYOUT;
- {$EXTERNALSYM PEMRSETLAYOUT}
- EMRSETPOLYFILLMODE = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETPOLYFILLMODE}
- PEMRSETPOLYFILLMODE = EMRSETPOLYFILLMODE;
- {$EXTERNALSYM PEMRSETPOLYFILLMODE}
- EMRSETROP2 = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETROP2}
- PEMRSETROP2 = ^EMRSETROP2;
- {$EXTERNALSYM PEMRSETROP2}
- EMRSETSTRETCHBLTMODE = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETSTRETCHBLTMODE}
- PEMRSETSTRETCHBLTMODE = ^EMRSETSTRETCHBLTMODE;
- {$EXTERNALSYM PEMRSETSTRETCHBLTMODE}
- EMRSETICMMODE = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETICMMODE}
- PEMRSETICMMODE = ^EMRSETICMMODE;
- {$EXTERNALSYM PEMRSETICMMODE}
- EMRSETTEXTALIGN = tagEMRSELECTCLIPPATH;
- {$EXTERNALSYM EMRSETTEXTALIGN}
- PEMRSETTEXTALIGN = ^EMRSETTEXTALIGN;
- {$EXTERNALSYM PEMRSETTEXTALIGN}
- PEmrSetMiterLimit = ^TEmrSetMiterLimit;
- tagEMRSETMITERLIMIT = record
- emr: EMR;
- eMiterLimit: FLOAT;
- end;
- {$EXTERNALSYM tagEMRSETMITERLIMIT}
- EMRSETMITERLIMIT = tagEMRSETMITERLIMIT;
- {$EXTERNALSYM EMRSETMITERLIMIT}
- TEmrSetMiterLimit = EMRSETMITERLIMIT;
- PEmrRestoreDc = ^TEmrRestoreDc;
- tagEMRRESTOREDC = record
- emr: EMR;
- iRelative: LONG; // Specifies a relative instance
- end;
- {$EXTERNALSYM tagEMRRESTOREDC}
- EMRRESTOREDC = tagEMRRESTOREDC;
- {$EXTERNALSYM EMRRESTOREDC}
- TEmrRestoreDc = EMRRESTOREDC;
- PEmrSetArcDirection = ^TEmrSetArcDirection;
- tagEMRSETARCDIRECTION = record
- emr: EMR;
- iArcDirection: DWORD; // Specifies the arc direction in the
- // advanced graphics mode.
- end;
- {$EXTERNALSYM tagEMRSETARCDIRECTION}
- EMRSETARCDIRECTION = tagEMRSETARCDIRECTION;
- {$EXTERNALSYM EMRSETARCDIRECTION}
- TEmrSetArcDirection = EMRSETARCDIRECTION;
- PEmrSetMapperFlags = ^TEmrSetMapperFlags;
- tagEMRSETMAPPERFLAGS = record
- emr: EMR;
- dwFlags: DWORD;
- end;
- {$EXTERNALSYM tagEMRSETMAPPERFLAGS}
- EMRSETMAPPERFLAGS = tagEMRSETMAPPERFLAGS;
- {$EXTERNALSYM EMRSETMAPPERFLAGS}
- TEmrSetMapperFlags = EMRSETMAPPERFLAGS;
- PEmrSetTextColor = ^TEmrSetTextColor;
- tagEMRSETTEXTCOLOR = record
- emr: EMR;
- crColor: COLORREF;
- end;
- {$EXTERNALSYM tagEMRSETTEXTCOLOR}
- EMRSETTEXTCOLOR = tagEMRSETTEXTCOLOR;
- {$EXTERNALSYM EMRSETTEXTCOLOR}
- EMRSETBKCOLOR = tagEMRSETTEXTCOLOR;
- {$EXTERNALSYM EMRSETBKCOLOR}
- PEMRSETBKCOLOR = ^EMRSETTEXTCOLOR;
- {$EXTERNALSYM PEMRSETBKCOLOR}
- TEmrSetTextColor = EMRSETTEXTCOLOR;
- PEmrSelectObject = ^TEmrSelectObject;
- tagEMRSELECTOBJECT = record
- emr: EMR;
- ihObject: DWORD; // Object handle index
- end;
- {$EXTERNALSYM tagEMRSELECTOBJECT}
- EMRSELECTOBJECT = tagEMRSELECTOBJECT;
- {$EXTERNALSYM EMRSELECTOBJECT}
- EMRDELETEOBJECT = tagEMRSELECTOBJECT;
- {$EXTERNALSYM EMRDELETEOBJECT}
- PEMRDELETEOBJECT = ^EMRDELETEOBJECT;
- {$EXTERNALSYM PEMRDELETEOBJECT}
- TEmrSelectObject = EMRSELECTOBJECT;
- PEmrSelectPalette = ^TEmrSelectPalette;
- tagEMRSELECTPALETTE = record
- emr: EMR;
- ihPal: DWORD; // Palette handle index, background mode only
- end;
- {$EXTERNALSYM tagEMRSELECTPALETTE}
- EMRSELECTPALETTE = tagEMRSELECTPALETTE;
- {$EXTERNALSYM EMRSELECTPALETTE}
- TEmrSelectPalette = EMRSELECTPALETTE;
- PEmrResizePalette = ^TEmrResizePalette;
- tagEMRRESIZEPALETTE = record
- emr: EMR;
- ihPal: DWORD; // Palette handle index
- cEntries: DWORD;
- end;
- {$EXTERNALSYM tagEMRRESIZEPALETTE}
- EMRRESIZEPALETTE = tagEMRRESIZEPALETTE;
- {$EXTERNALSYM EMRRESIZEPALETTE}
- TEmrResizePalette = EMRRESIZEPALETTE;
- PEmrSetPaletteEntries = ^TEmrSetPaletteEntries;
- tagEMRSETPALETTEENTRIES = record
- emr: EMR;
- ihPal: DWORD; // Palette handle index
- iStart: DWORD;
- cEntries: DWORD;
- aPalEntries: array [0..0] of PALETTEENTRY; // The peFlags fields do not contain any flags
- end;
- {$EXTERNALSYM tagEMRSETPALETTEENTRIES}
- EMRSETPALETTEENTRIES = tagEMRSETPALETTEENTRIES;
- {$EXTERNALSYM EMRSETPALETTEENTRIES}
- TEmrSetPaletteEntries = EMRSETPALETTEENTRIES;
- PEmrSetColorAdjustment = ^TEmrSetColorAdjustment;
- tagEMRSETCOLORADJUSTMENT = record
- emr: EMR;
- ColorAdjustment: COLORADJUSTMENT;
- end;
- {$EXTERNALSYM tagEMRSETCOLORADJUSTMENT}
- EMRSETCOLORADJUSTMENT = tagEMRSETCOLORADJUSTMENT;
- {$EXTERNALSYM EMRSETCOLORADJUSTMENT}
- TEmrSetColorAdjustment = EMRSETCOLORADJUSTMENT;
- PEmrGdiComment = ^TEmrGdiComment;
- tagEMRGDICOMMENT = record
- emr: EMR;
- cbData: DWORD; // Size of data in bytes
- Data: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRGDICOMMENT}
- EMRGDICOMMENT = tagEMRGDICOMMENT;
- {$EXTERNALSYM EMRGDICOMMENT}
- TEmrGdiComment = EMRGDICOMMENT;
- PEmrEof = ^TEmrEof;
- tagEMREOF = record
- emr: EMR;
- nPalEntries: DWORD; // Number of palette entries
- offPalEntries: DWORD; // Offset to the palette entries
- nSizeLast: DWORD; // Same as nSize and must be the last DWORD
- // of the record. The palette entries,
- // if exist, precede this field.
- end;
- {$EXTERNALSYM tagEMREOF}
- EMREOF = tagEMREOF;
- {$EXTERNALSYM EMREOF}
- TEmrEof = EMREOF;
- PEmrLineTo = ^TEmrLineTo;
- tagEMRLINETO = record
- emr: EMR;
- ptl: POINTL;
- end;
- {$EXTERNALSYM tagEMRLINETO}
- EMRLINETO = tagEMRLINETO;
- {$EXTERNALSYM EMRLINETO}
- EMRMOVETOEX = tagEMRLINETO;
- {$EXTERNALSYM EMRMOVETOEX}
- PEMRMOVETOEX = ^EMRMOVETOEX;
- {$EXTERNALSYM PEMRMOVETOEX}
- TEmrLineTo = EMRLINETO;
- PEmrOffsetClipRgn = ^TEmrOffsetClipRgn;
- tagEMROFFSETCLIPRGN = record
- emr: EMR;
- ptlOffset: POINTL;
- end;
- {$EXTERNALSYM tagEMROFFSETCLIPRGN}
- EMROFFSETCLIPRGN = tagEMROFFSETCLIPRGN;
- {$EXTERNALSYM EMROFFSETCLIPRGN}
- TEmrOffsetClipRgn = EMROFFSETCLIPRGN;
- PEmrFillPath = ^TEmrFillPath;
- tagEMRFILLPATH = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- end;
- {$EXTERNALSYM tagEMRFILLPATH}
- EMRFILLPATH = tagEMRFILLPATH;
- {$EXTERNALSYM EMRFILLPATH}
- EMRSTROKEANDFILLPATH = tagEMRFILLPATH;
- {$EXTERNALSYM EMRSTROKEANDFILLPATH}
- PEMRSTROKEANDFILLPATH = ^EMRSTROKEANDFILLPATH;
- {$EXTERNALSYM PEMRSTROKEANDFILLPATH}
- EMRSTROKEPATH = tagEMRFILLPATH;
- {$EXTERNALSYM EMRSTROKEPATH}
- PEMRSTROKEPATH = ^EMRSTROKEPATH;
- {$EXTERNALSYM PEMRSTROKEPATH}
- TEmrFillPath = EMRFILLPATH;
- PEmrExcludeClipRect = ^TEmrExcludeClipRect;
- tagEMREXCLUDECLIPRECT = record
- emr: EMR;
- rclClip: RECTL;
- end;
- {$EXTERNALSYM tagEMREXCLUDECLIPRECT}
- EMREXCLUDECLIPRECT = tagEMREXCLUDECLIPRECT;
- {$EXTERNALSYM EMREXCLUDECLIPRECT}
- EMRINTERSECTCLIPRECT = tagEMREXCLUDECLIPRECT;
- {$EXTERNALSYM EMRINTERSECTCLIPRECT}
- PEMRINTERSECTCLIPRECT = ^EMRINTERSECTCLIPRECT;
- {$EXTERNALSYM PEMRINTERSECTCLIPRECT}
- TEmrExcludeClipRect = EMREXCLUDECLIPRECT;
- PEmrSetViewPortOrgEx = ^TEmrSetViewPortOrgEx;
- tagEMRSETVIEWPORTORGEX = record
- emr: EMR;
- ptlOrigin: POINTL;
- end;
- {$EXTERNALSYM tagEMRSETVIEWPORTORGEX}
- EMRSETVIEWPORTORGEX = tagEMRSETVIEWPORTORGEX;
- {$EXTERNALSYM EMRSETVIEWPORTORGEX}
- EMRSETWINDOWORGEX = tagEMRSETVIEWPORTORGEX;
- {$EXTERNALSYM EMRSETWINDOWORGEX}
- PEMRSETWINDOWORGEX = ^EMRSETWINDOWORGEX;
- {$EXTERNALSYM PEMRSETWINDOWORGEX}
- EMRSETBRUSHORGEX = tagEMRSETVIEWPORTORGEX;
- {$EXTERNALSYM EMRSETBRUSHORGEX}
- PEMRSETBRUSHORGEX = ^EMRSETBRUSHORGEX;
- {$EXTERNALSYM PEMRSETBRUSHORGEX}
- TEmrSetViewPortOrgEx = EMRSETVIEWPORTORGEX;
- PEmrSetViewPortExtEx = ^TEmrSetViewPortExtEx;
- tagEMRSETVIEWPORTEXTEX = record
- emr: EMR;
- szlExtent: SIZEL;
- end;
- {$EXTERNALSYM tagEMRSETVIEWPORTEXTEX}
- EMRSETVIEWPORTEXTEX = tagEMRSETVIEWPORTEXTEX;
- {$EXTERNALSYM EMRSETVIEWPORTEXTEX}
- EMRSETWINDOWEXTEX = tagEMRSETVIEWPORTEXTEX;
- {$EXTERNALSYM EMRSETWINDOWEXTEX}
- TEmrSetViewPortExtEx = EMRSETVIEWPORTEXTEX;
- PEmrScaleViewPortExtEx = ^TEmrScaleViewPortExtEx;
- tagEMRSCALEVIEWPORTEXTEX = record
- emr: EMR;
- xNum: LONG;
- xDenom: LONG;
- yNum: LONG;
- yDenom: LONG;
- end;
- {$EXTERNALSYM tagEMRSCALEVIEWPORTEXTEX}
- EMRSCALEVIEWPORTEXTEX = tagEMRSCALEVIEWPORTEXTEX;
- {$EXTERNALSYM EMRSCALEVIEWPORTEXTEX}
- EMRSCALEWINDOWEXTEX = tagEMRSCALEVIEWPORTEXTEX;
- {$EXTERNALSYM EMRSCALEWINDOWEXTEX}
- PEMRSCALEWINDOWEXTEX = ^EMRSCALEWINDOWEXTEX;
- {$EXTERNALSYM PEMRSCALEWINDOWEXTEX}
- TEmrScaleViewPortExtEx = EMRSCALEVIEWPORTEXTEX;
- PEmrSetWorldTransform = ^TEmrSetWorldTransform;
- tagEMRSETWORLDTRANSFORM = record
- emr: EMR;
- xform: XFORM;
- end;
- {$EXTERNALSYM tagEMRSETWORLDTRANSFORM}
- EMRSETWORLDTRANSFORM = tagEMRSETWORLDTRANSFORM;
- {$EXTERNALSYM EMRSETWORLDTRANSFORM}
- TEmrSetWorldTransform = EMRSETWORLDTRANSFORM;
- PEmrModifyWorldTransform = ^TEmrModifyWorldTransform;
- tagEMRMODIFYWORLDTRANSFORM = record
- emr: EMR;
- xform: XFORM;
- iMode: DWORD;
- end;
- {$EXTERNALSYM tagEMRMODIFYWORLDTRANSFORM}
- EMRMODIFYWORLDTRANSFORM = tagEMRMODIFYWORLDTRANSFORM;
- {$EXTERNALSYM EMRMODIFYWORLDTRANSFORM}
- TEmrModifyWorldTransform = EMRMODIFYWORLDTRANSFORM;
- PEmrSetPixelV = ^TEmrSetPixelV;
- tagEMRSETPIXELV = record
- emr: EMR;
- ptlPixel: POINTL;
- crColor: COLORREF;
- end;
- {$EXTERNALSYM tagEMRSETPIXELV}
- EMRSETPIXELV = tagEMRSETPIXELV;
- {$EXTERNALSYM EMRSETPIXELV}
- TEmrSetPixelV = EMRSETPIXELV;
- PEmrExtFloodFill = ^TEmrExtFloodFill;
- tagEMREXTFLOODFILL = record
- emr: EMR;
- ptlStart: POINTL;
- crColor: COLORREF;
- iMode: DWORD;
- end;
- {$EXTERNALSYM tagEMREXTFLOODFILL}
- EMREXTFLOODFILL = tagEMREXTFLOODFILL;
- {$EXTERNALSYM EMREXTFLOODFILL}
- TEmrExtFloodFill = EMREXTFLOODFILL;
- PEmrEllipse = ^TEmrEllipse;
- tagEMRELLIPSE = record
- emr: EMR;
- rclBox: RECTL; // Inclusive-inclusive bounding rectangle
- end;
- {$EXTERNALSYM tagEMRELLIPSE}
- EMRELLIPSE = tagEMRELLIPSE;
- {$EXTERNALSYM EMRELLIPSE}
- EMRRECTANGLE = tagEMRELLIPSE;
- {$EXTERNALSYM EMRRECTANGLE}
- PEMRRECTANGLE = ^EMRRECTANGLE;
- {$EXTERNALSYM PEMRRECTANGLE}
- TEmrEllipse = EMRELLIPSE;
- PEmrRoundRect = ^TEmrRoundRect;
- tagEMRROUNDRECT = record
- emr: EMR;
- rclBox: RECTL; // Inclusive-inclusive bounding rectangle
- szlCorner: SIZEL;
- end;
- {$EXTERNALSYM tagEMRROUNDRECT}
- EMRROUNDRECT = tagEMRROUNDRECT;
- {$EXTERNALSYM EMRROUNDRECT}
- TEmrRoundRect = EMRROUNDRECT;
- PEmrArc = ^TEmrArc;
- tagEMRARC = record
- emr: EMR;
- rclBox: RECTL; // Inclusive-inclusive bounding rectangle
- ptlStart: POINTL;
- ptlEnd: POINTL;
- end;
- {$EXTERNALSYM tagEMRARC}
- EMRARC = tagEMRARC;
- {$EXTERNALSYM EMRARC}
- EMRARCTO = tagEMRARC;
- {$EXTERNALSYM EMRARCTO}
- PEMRARCTO = ^EMRARCTO;
- {$EXTERNALSYM PEMRARCTO}
- EMRCHORD = tagEMRARC;
- {$EXTERNALSYM EMRCHORD}
- PEMRCHORD = ^EMRCHORD;
- {$EXTERNALSYM PEMRCHORD}
- EMRPIE = tagEMRARC;
- {$EXTERNALSYM EMRPIE}
- PEMRPIE = ^EMRPIE;
- {$EXTERNALSYM PEMRPIE}
- TEmrArc = EMRARC;
- PEmrAngleArc = ^TEmrAngleArc;
- tagEMRANGLEARC = record
- emr: EMR;
- ptlCenter: POINTL;
- nRadius: DWORD;
- eStartAngle: FLOAT;
- eSweepAngle: FLOAT;
- end;
- {$EXTERNALSYM tagEMRANGLEARC}
- EMRANGLEARC = tagEMRANGLEARC;
- {$EXTERNALSYM EMRANGLEARC}
- TEmrAngleArc = EMRANGLEARC;
- PEmrPolyline = ^TEmrPolyline;
- tagEMRPOLYLINE = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cptl: DWORD;
- aptl: array [0..0] of POINTL;
- end;
- {$EXTERNALSYM tagEMRPOLYLINE}
- EMRPOLYLINE = tagEMRPOLYLINE;
- {$EXTERNALSYM EMRPOLYLINE}
- EMRPOLYBEZIER = tagEMRPOLYLINE;
- {$EXTERNALSYM EMRPOLYBEZIER}
- PEMRPOLYBEZIER = ^EMRPOLYBEZIER;
- {$EXTERNALSYM PEMRPOLYBEZIER}
- EMRPOLYGON = tagEMRPOLYLINE;
- {$EXTERNALSYM EMRPOLYGON}
- PEMRPOLYGON = ^EMRPOLYGON;
- {$EXTERNALSYM PEMRPOLYGON}
- EMRPOLYBEZIERTO = tagEMRPOLYLINE;
- {$EXTERNALSYM EMRPOLYBEZIERTO}
- PEMRPOLYBEZIERTO = ^EMRPOLYBEZIERTO;
- {$EXTERNALSYM PEMRPOLYBEZIERTO}
- EMRPOLYLINETO = tagEMRPOLYLINE;
- {$EXTERNALSYM EMRPOLYLINETO}
- PEMRPOLYLINETO = ^EMRPOLYLINETO;
- {$EXTERNALSYM PEMRPOLYLINETO}
- TEmrPolyline = EMRPOLYLINE;
- PEmrPolyline16 = ^TEmrPolyline16;
- tagEMRPOLYLINE16 = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cpts: DWORD;
- apts: array [0..0] of POINTS;
- end;
- {$EXTERNALSYM tagEMRPOLYLINE16}
- EMRPOLYLINE16 = tagEMRPOLYLINE16;
- {$EXTERNALSYM EMRPOLYLINE16}
- EMRPOLYBEZIER16 = tagEMRPOLYLINE16;
- {$EXTERNALSYM EMRPOLYBEZIER16}
- PEMRPOLYBEZIER16 = ^EMRPOLYBEZIER16;
- {$EXTERNALSYM PEMRPOLYBEZIER16}
- EMRPOLYGON16 = tagEMRPOLYLINE16;
- {$EXTERNALSYM EMRPOLYGON16}
- PEMRPOLYGON16 = ^EMRPOLYGON16;
- {$EXTERNALSYM PEMRPOLYGON16}
- EMRPOLYBEZIERTO16 = tagEMRPOLYLINE16;
- {$EXTERNALSYM EMRPOLYBEZIERTO16}
- PEMRPOLYBEZIERTO16 = ^EMRPOLYBEZIERTO16;
- {$EXTERNALSYM PEMRPOLYBEZIERTO16}
- EMRPOLYLINETO16 = tagEMRPOLYLINE16;
- {$EXTERNALSYM EMRPOLYLINETO16}
- PEMRPOLYLINETO16 = ^EMRPOLYLINETO16;
- {$EXTERNALSYM PEMRPOLYLINETO16}
- TEmrPolyline16 = EMRPOLYLINE16;
- PEmrPolyDraw = ^TEmrPolyDraw;
- tagEMRPOLYDRAW = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cptl: DWORD; // Number of points
- aptl: array [0..0] of POINTL; // Array of points
- abTypes: array [0..0] of BYTE; // Array of point types
- end;
- {$EXTERNALSYM tagEMRPOLYDRAW}
- EMRPOLYDRAW = tagEMRPOLYDRAW;
- {$EXTERNALSYM EMRPOLYDRAW}
- TEmrPolyDraw = EMRPOLYDRAW;
- PEmrPolyDraw16 = ^TEmrPolyDraw16;
- tagEMRPOLYDRAW16 = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cpts: DWORD; // Number of points
- apts: array [0..0] of POINTS; // Array of points
- abTypes: array [0..0] of BYTE; // Array of point types
- end;
- {$EXTERNALSYM tagEMRPOLYDRAW16}
- EMRPOLYDRAW16 = tagEMRPOLYDRAW16;
- {$EXTERNALSYM EMRPOLYDRAW16}
- TEmrPolyDraw16 = EMRPOLYDRAW16;
- PEmrPolyPolyline = ^TEmrPolyPolyline;
- tagEMRPOLYPOLYLINE = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- nPolys: DWORD; // Number of polys
- cptl: DWORD; // Total number of points in all polys
- aPolyCounts: array [0..0] of DWORD; // Array of point counts for each poly
- aptl: array [0..0] of POINTL; // Array of points
- end;
- {$EXTERNALSYM tagEMRPOLYPOLYLINE}
- EMRPOLYPOLYLINE = tagEMRPOLYPOLYLINE;
- {$EXTERNALSYM EMRPOLYPOLYLINE}
- EMRPOLYPOLYGON = tagEMRPOLYPOLYLINE;
- {$EXTERNALSYM EMRPOLYPOLYGON}
- TEmrPolyPolyline = EMRPOLYPOLYLINE;
- PEmrPolyPolyline16 = ^TEmrPolyPolyline16;
- tagEMRPOLYPOLYLINE16 = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- nPolys: DWORD; // Number of polys
- cpts: DWORD; // Total number of points in all polys
- aPolyCounts: array [0..0] of DWORD; // Array of point counts for each poly
- apts: array [0..0] of POINTS; // Array of points
- end;
- {$EXTERNALSYM tagEMRPOLYPOLYLINE16}
- EMRPOLYPOLYLINE16 = tagEMRPOLYPOLYLINE16;
- {$EXTERNALSYM EMRPOLYPOLYLINE16}
- EMRPOLYPOLYGON16 = tagEMRPOLYPOLYLINE16;
- {$EXTERNALSYM EMRPOLYPOLYGON16}
- PEMRPOLYPOLYGON16 = ^EMRPOLYPOLYGON16;
- {$EXTERNALSYM PEMRPOLYPOLYGON16}
- TEmrPolyPolyline16 = EMRPOLYPOLYLINE16;
- PEmrInvertRgn = ^TEmrInvertRgn;
- tagEMRINVERTRGN = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cbRgnData: DWORD; // Size of region data in bytes
- RgnData: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRINVERTRGN}
- EMRINVERTRGN = tagEMRINVERTRGN;
- {$EXTERNALSYM EMRINVERTRGN}
- EMRPAINTRGN = tagEMRINVERTRGN;
- {$EXTERNALSYM EMRPAINTRGN}
- TEmrInvertRgn = EMRINVERTRGN;
- PEmrFillRgn = ^TEmrFillRgn;
- tagEMRFILLRGN = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cbRgnData: DWORD; // Size of region data in bytes
- ihBrush: DWORD; // Brush handle index
- RgnData: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRFILLRGN}
- EMRFILLRGN = tagEMRFILLRGN;
- {$EXTERNALSYM EMRFILLRGN}
- TEmrFillRgn = EMRFILLRGN;
- PEmrFrameRgn = ^TEmrFrameRgn;
- tagEMRFRAMERGN = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- cbRgnData: DWORD; // Size of region data in bytes
- ihBrush: DWORD; // Brush handle index
- szlStroke: SIZEL;
- RgnData: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRFRAMERGN}
- EMRFRAMERGN = tagEMRFRAMERGN;
- {$EXTERNALSYM EMRFRAMERGN}
- TEmrFrameRgn = EMRFRAMERGN;
- PEmrExtSelectClipRgn = ^TEmrExtSelectClipRgn;
- tagEMREXTSELECTCLIPRGN = record
- emr: EMR;
- cbRgnData: DWORD; // Size of region data in bytes
- iMode: DWORD;
- RgnData: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMREXTSELECTCLIPRGN}
- EMREXTSELECTCLIPRGN = tagEMREXTSELECTCLIPRGN;
- {$EXTERNALSYM EMREXTSELECTCLIPRGN}
- TEmrExtSelectClipRgn = EMREXTSELECTCLIPRGN;
- PEmrExtTextOutA = ^TEmrExtTextOutA;
- tagEMREXTTEXTOUTA = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- iGraphicsMode: DWORD; // Current graphics mode
- exScale: FLOAT; // X and Y scales from Page units to .01mm units
- eyScale: FLOAT; // if graphics mode is GM_COMPATIBLE.
- emrtext: EMRTEXT; // This is followed by the string and spacing array
- end;
- {$EXTERNALSYM tagEMREXTTEXTOUTA}
- EMREXTTEXTOUTA = tagEMREXTTEXTOUTA;
- {$EXTERNALSYM EMREXTTEXTOUTA}
- EMREXTTEXTOUTW = tagEMREXTTEXTOUTA;
- {$EXTERNALSYM EMREXTTEXTOUTW}
- PEMREXTTEXTOUTW = ^EMREXTTEXTOUTW;
- {$EXTERNALSYM PEMREXTTEXTOUTW}
- TEmrExtTextOutA = EMREXTTEXTOUTA;
- PEmrPolyTextOutA = ^TEmrPolyTextOutA;
- tagEMRPOLYTEXTOUTA = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- iGraphicsMode: DWORD; // Current graphics mode
- exScale: FLOAT; // X and Y scales from Page units to .01mm units
- eyScale: FLOAT; // if graphics mode is GM_COMPATIBLE.
- cStrings: LONG;
- aemrtext: array [0..0] of EMRTEXT; // Array of EMRTEXT structures. This is
- // followed by the strings and spacing arrays.
- end;
- {$EXTERNALSYM tagEMRPOLYTEXTOUTA}
- EMRPOLYTEXTOUTA = tagEMRPOLYTEXTOUTA;
- {$EXTERNALSYM EMRPOLYTEXTOUTA}
- EMRPOLYTEXTOUTW = tagEMRPOLYTEXTOUTA;
- {$EXTERNALSYM EMRPOLYTEXTOUTW}
- PEMRPOLYTEXTOUTW = ^EMRPOLYTEXTOUTW;
- {$EXTERNALSYM PEMRPOLYTEXTOUTW}
- TEmrPolyTextOutA = EMRPOLYTEXTOUTA;
- PEmrBitBlt = ^TEmrBitBlt;
- tagEMRBITBLT = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- cxDest: LONG;
- cyDest: LONG;
- dwRop: DWORD;
- xSrc: LONG;
- ySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage
- // (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- end;
- {$EXTERNALSYM tagEMRBITBLT}
- EMRBITBLT = tagEMRBITBLT;
- {$EXTERNALSYM EMRBITBLT}
- TEmrBitBlt = EMRBITBLT;
- PEmrStretchBlt = ^TEmrStretchBlt;
- tagEMRSTRETCHBLT = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- cxDest: LONG;
- cyDest: LONG;
- dwRop: DWORD;
- xSrc: LONG;
- ySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage
- // (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- cxSrc: LONG;
- cySrc: LONG;
- end;
- {$EXTERNALSYM tagEMRSTRETCHBLT}
- EMRSTRETCHBLT = tagEMRSTRETCHBLT;
- {$EXTERNALSYM EMRSTRETCHBLT}
- TEmrStretchBlt = EMRSTRETCHBLT;
- PEmrMaskBlt = ^TEmrMaskBlt;
- tagEMRMASKBLT = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- cxDest: LONG;
- cyDest: LONG;
- dwRop: DWORD;
- xSrc: LONG;
- ySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage
- // (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- xMask: LONG;
- yMask: LONG;
- iUsageMask: DWORD; // Mask bitmap info color table usage
- offBmiMask: DWORD; // Offset to the mask BITMAPINFO structure if any
- cbBmiMask: DWORD; // Size of the mask BITMAPINFO structure if any
- offBitsMask: DWORD; // Offset to the mask bitmap bits if any
- cbBitsMask: DWORD; // Size of the mask bitmap bits if any
- end;
- {$EXTERNALSYM tagEMRMASKBLT}
- EMRMASKBLT = tagEMRMASKBLT;
- {$EXTERNALSYM EMRMASKBLT}
- TEmrMaskBlt = EMRMASKBLT;
- PEmrPlgBlt = ^TEmrPlgBlt;
- tagEMRPLGBLT = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- aptlDest: array[0..2] of POINTL;
- xSrc: LONG;
- ySrc: LONG;
- cxSrc: LONG;
- cySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage
- // (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- xMask: LONG;
- yMask: LONG;
- iUsageMask: DWORD; // Mask bitmap info color table usage
- offBmiMask: DWORD; // Offset to the mask BITMAPINFO structure if any
- cbBmiMask: DWORD; // Size of the mask BITMAPINFO structure if any
- offBitsMask: DWORD; // Offset to the mask bitmap bits if any
- cbBitsMask: DWORD; // Size of the mask bitmap bits if any
- end;
- {$EXTERNALSYM tagEMRPLGBLT}
- EMRPLGBLT = tagEMRPLGBLT;
- {$EXTERNALSYM EMRPLGBLT}
- TEmrPlgBlt = EMRPLGBLT;
- PEmrSetDiBitsToDevice = ^TEmrSetDiBitsToDevice;
- tagEMRSETDIBITSTODEVICE = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- xSrc: LONG;
- ySrc: LONG;
- cxSrc: LONG;
- cySrc: LONG;
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- iUsageSrc: DWORD; // Source bitmap info color table usage
- iStartScan: DWORD;
- cScans: DWORD;
- end;
- {$EXTERNALSYM tagEMRSETDIBITSTODEVICE}
- EMRSETDIBITSTODEVICE = tagEMRSETDIBITSTODEVICE;
- {$EXTERNALSYM EMRSETDIBITSTODEVICE}
- TEmrSetDiBitsToDevice = EMRSETDIBITSTODEVICE;
- PEmrStretchDiBits = ^TEmrStretchDiBits;
- tagEMRSTRETCHDIBITS = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- xSrc: LONG;
- ySrc: LONG;
- cxSrc: LONG;
- cySrc: LONG;
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- iUsageSrc: DWORD; // Source bitmap info color table usage
- dwRop: DWORD;
- cxDest: LONG;
- cyDest: LONG;
- end;
- {$EXTERNALSYM tagEMRSTRETCHDIBITS}
- EMRSTRETCHDIBITS = tagEMRSTRETCHDIBITS;
- {$EXTERNALSYM EMRSTRETCHDIBITS}
- TEmrStretchDiBits = EMRSTRETCHDIBITS;
- PEmrExtCreateFontIndirectW = ^TEmrExtCreateFontIndirectW;
- tagEMREXTCREATEFONTINDIRECTW = record
- emr: EMR;
- ihFont: DWORD; // Font handle index
- elfw: EXTLOGFONTW;
- end;
- {$EXTERNALSYM tagEMREXTCREATEFONTINDIRECTW}
- EMREXTCREATEFONTINDIRECTW = tagEMREXTCREATEFONTINDIRECTW;
- {$EXTERNALSYM EMREXTCREATEFONTINDIRECTW}
- TEmrExtCreateFontIndirectW = EMREXTCREATEFONTINDIRECTW;
- PEmrCreatePalette = ^TEmrCreatePalette;
- tagEMRCREATEPALETTE = record
- emr: EMR;
- ihPal: DWORD; // Palette handle index
- lgpl: LOGPALETTE; // The peFlags fields in the palette entries
- // do not contain any flags
- end;
- {$EXTERNALSYM tagEMRCREATEPALETTE}
- EMRCREATEPALETTE = tagEMRCREATEPALETTE;
- {$EXTERNALSYM EMRCREATEPALETTE}
- TEmrCreatePalette = EMRCREATEPALETTE;
- PEmrCreatePen = ^TEmrCreatePen;
- tagEMRCREATEPEN = record
- emr: EMR;
- ihPen: DWORD; // Pen handle index
- lopn: LOGPEN;
- end;
- {$EXTERNALSYM tagEMRCREATEPEN}
- EMRCREATEPEN = tagEMRCREATEPEN;
- {$EXTERNALSYM EMRCREATEPEN}
- TEmrCreatePen = EMRCREATEPEN;
- PEmrExtCreatePen = ^TEmrExtCreatePen;
- tagEMREXTCREATEPEN = record
- emr: EMR;
- ihPen: DWORD; // Pen handle index
- offBmi: DWORD; // Offset to the BITMAPINFO structure if any
- cbBmi: DWORD; // Size of the BITMAPINFO structure if any
- // The bitmap info is followed by the bitmap
- // bits to form a packed DIB.
- offBits: DWORD; // Offset to the brush bitmap bits if any
- cbBits: DWORD; // Size of the brush bitmap bits if any
- elp: EXTLOGPEN; // The extended pen with the style array.
- end;
- {$EXTERNALSYM tagEMREXTCREATEPEN}
- EMREXTCREATEPEN = tagEMREXTCREATEPEN;
- {$EXTERNALSYM EMREXTCREATEPEN}
- TEmrExtCreatePen = EMREXTCREATEPEN;
- PEmrCreateBrushIndirect = ^TEmrCreateBrushIndirect;
- tagEMRCREATEBRUSHINDIRECT = record
- emr: EMR;
- ihBrush: DWORD; // Brush handle index
- lb: LOGBRUSH32; // The style must be BS_SOLID, BS_HOLLOW,
- // BS_NULL or BS_HATCHED.
- end;
- {$EXTERNALSYM tagEMRCREATEBRUSHINDIRECT}
- EMRCREATEBRUSHINDIRECT = tagEMRCREATEBRUSHINDIRECT;
- {$EXTERNALSYM EMRCREATEBRUSHINDIRECT}
- TEmrCreateBrushIndirect = EMRCREATEBRUSHINDIRECT;
- PEmrCreateMonoBrush = ^TEmrCreateMonoBrush;
- tagEMRCREATEMONOBRUSH = record
- emr: EMR;
- ihBrush: DWORD; // Brush handle index
- iUsage: DWORD; // Bitmap info color table usage
- offBmi: DWORD; // Offset to the BITMAPINFO structure
- cbBmi: DWORD; // Size of the BITMAPINFO structure
- offBits: DWORD; // Offset to the bitmap bits
- cbBits: DWORD; // Size of the bitmap bits
- end;
- {$EXTERNALSYM tagEMRCREATEMONOBRUSH}
- EMRCREATEMONOBRUSH = tagEMRCREATEMONOBRUSH;
- {$EXTERNALSYM EMRCREATEMONOBRUSH}
- TEmrCreateMonoBrush = EMRCREATEMONOBRUSH;
- PEmrCreateDibPatternBrushPt = ^TEmrCreateDibPatternBrushPt;
- tagEMRCREATEDIBPATTERNBRUSHPT = record
- emr: EMR;
- ihBrush: DWORD; // Brush handle index
- iUsage: DWORD; // Bitmap info color table usage
- offBmi: DWORD; // Offset to the BITMAPINFO structure
- cbBmi: DWORD; // Size of the BITMAPINFO structure
- // The bitmap info is followed by the bitmap
- // bits to form a packed DIB.
- offBits: DWORD; // Offset to the bitmap bits
- cbBits: DWORD; // Size of the bitmap bits
- end;
- {$EXTERNALSYM tagEMRCREATEDIBPATTERNBRUSHPT}
- EMRCREATEDIBPATTERNBRUSHPT = tagEMRCREATEDIBPATTERNBRUSHPT;
- {$EXTERNALSYM EMRCREATEDIBPATTERNBRUSHPT}
- TEmrCreateDibPatternBrushPt = EMRCREATEDIBPATTERNBRUSHPT;
- PEmrFormat = ^TEmrFormat;
- tagEMRFORMAT = record
- dSignature: DWORD; // Format signature, e.g. ENHMETA_SIGNATURE.
- nVersion: DWORD; // Format version number.
- cbData: DWORD; // Size of data in bytes.
- offData: DWORD; // Offset to data from GDICOMMENT_IDENTIFIER.
- // It must begin at a DWORD offset.
- end;
- {$EXTERNALSYM tagEMRFORMAT}
- EMRFORMAT = tagEMRFORMAT;
- {$EXTERNALSYM EMRFORMAT}
- TEmrFormat = EMRFORMAT;
- PEmrGlsRecord = ^TEmrGlsRecord;
- tagEMRGLSRECORD = record
- emr: EMR;
- cbData: DWORD; // Size of data in bytes
- Data: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRGLSRECORD}
- EMRGLSRECORD = tagEMRGLSRECORD;
- {$EXTERNALSYM EMRGLSRECORD}
- TEmrGlsRecord = EMRGLSRECORD;
- PEmrGlsBoundedRecord = ^TEmrGlsBoundedRecord;
- tagEMRGLSBOUNDEDRECORD = record
- emr: EMR;
- rclBounds: RECTL; // Bounds in recording coordinates
- cbData: DWORD; // Size of data in bytes
- Data: array [0..0] of BYTE;
- end;
- {$EXTERNALSYM tagEMRGLSBOUNDEDRECORD}
- EMRGLSBOUNDEDRECORD = tagEMRGLSBOUNDEDRECORD;
- {$EXTERNALSYM EMRGLSBOUNDEDRECORD}
- TEmrGlsBoundedRecord = EMRGLSBOUNDEDRECORD;
- PEmrPixelFormat = ^TEmrPixelFormat;
- tagEMRPIXELFORMAT = record
- emr: EMR;
- pfd: PIXELFORMATDESCRIPTOR;
- end;
- {$EXTERNALSYM tagEMRPIXELFORMAT}
- EMRPIXELFORMAT = tagEMRPIXELFORMAT;
- {$EXTERNALSYM EMRPIXELFORMAT}
- TEmrPixelFormat = EMRPIXELFORMAT;
- PEmrCreateColorSpace = ^TEmrCreateColorSpace;
- tagEMRCREATECOLORSPACE = record
- emr: EMR;
- ihCS: DWORD; // ColorSpace handle index
- lcs: LOGCOLORSPACEA; // Ansi version of LOGCOLORSPACE
- end;
- {$EXTERNALSYM tagEMRCREATECOLORSPACE}
- EMRCREATECOLORSPACE = tagEMRCREATECOLORSPACE;
- {$EXTERNALSYM EMRCREATECOLORSPACE}
- TEmrCreateColorSpace = EMRCREATECOLORSPACE;
- PEmrSetColorSpace = ^TEmrSetColorSpace;
- tagEMRSETCOLORSPACE = record
- emr: EMR;
- ihCS: DWORD; // ColorSpace handle index
- end;
- {$EXTERNALSYM tagEMRSETCOLORSPACE}
- EMRSETCOLORSPACE = tagEMRSETCOLORSPACE;
- {$EXTERNALSYM EMRSETCOLORSPACE}
- EMRSELECTCOLORSPACE = tagEMRSETCOLORSPACE;
- {$EXTERNALSYM EMRSELECTCOLORSPACE}
- PEMRSELECTCOLORSPACE = ^EMRSELECTCOLORSPACE;
- {$EXTERNALSYM PEMRSELECTCOLORSPACE}
- EMRDELETECOLORSPACE = tagEMRSETCOLORSPACE;
- {$EXTERNALSYM EMRDELETECOLORSPACE}
- PEMRDELETECOLORSPACE = ^EMRDELETECOLORSPACE;
- {$EXTERNALSYM PEMRDELETECOLORSPACE}
- TEmrSetColorSpace = EMRSETCOLORSPACE;
- PEmrExtEscape = ^TEmrExtEscape;
- tagEMREXTESCAPE = record
- emr: EMR;
- iEscape: INT; // Escape code
- cbEscData: INT; // Size of escape data
- EscData: array [0..0] of BYTE; // Escape data
- end;
- {$EXTERNALSYM tagEMREXTESCAPE}
- EMREXTESCAPE = tagEMREXTESCAPE;
- {$EXTERNALSYM EMREXTESCAPE}
- EMRDRAWESCAPE = tagEMREXTESCAPE;
- {$EXTERNALSYM EMRDRAWESCAPE}
- PEMRDRAWESCAPE = ^EMRDRAWESCAPE;
- {$EXTERNALSYM PEMRDRAWESCAPE}
- TEmrExtEscape = EMREXTESCAPE;
- PEmrNamedEscape = ^TEmrNamedEscape;
- tagEMRNAMEDESCAPE = record
- emr: EMR;
- iEscape: INT; // Escape code
- cbDriver: INT; // Size of driver name
- cbEscData: INT; // Size of escape data
- EscData: array [0..0] of BYTE; // Driver name and Escape data
- end;
- {$EXTERNALSYM tagEMRNAMEDESCAPE}
- EMRNAMEDESCAPE = tagEMRNAMEDESCAPE;
- {$EXTERNALSYM EMRNAMEDESCAPE}
- TEmrNamedEscape = EMRNAMEDESCAPE;
- const
- SETICMPROFILE_EMBEDED = $00000001;
- {$EXTERNALSYM SETICMPROFILE_EMBEDED}
- type
- PEmrSetIcmProfile = ^TEmrSetIcmProfile;
- tagEMRSETICMPROFILE = record
- emr: EMR;
- dwFlags: DWORD; // flags
- cbName: DWORD; // Size of desired profile name
- cbData: DWORD; // Size of raw profile data if attached
- Data: array [0..0] of BYTE; // Array size is cbName + cbData
- end;
- {$EXTERNALSYM tagEMRSETICMPROFILE}
- EMRSETICMPROFILE = tagEMRSETICMPROFILE;
- {$EXTERNALSYM EMRSETICMPROFILE}
- EMRSETICMPROFILEA = tagEMRSETICMPROFILE;
- {$EXTERNALSYM EMRSETICMPROFILEA}
- PEMRSETICMPROFILEA = ^EMRSETICMPROFILEA;
- {$EXTERNALSYM PEMRSETICMPROFILEA}
- EMRSETICMPROFILEW = tagEMRSETICMPROFILE;
- {$EXTERNALSYM EMRSETICMPROFILEW}
- PEMRSETICMPROFILEW = ^EMRSETICMPROFILEW;
- {$EXTERNALSYM PEMRSETICMPROFILEW}
- TEmrSetIcmProfile = EMRSETICMPROFILE;
- const
- CREATECOLORSPACE_EMBEDED = $00000001;
- {$EXTERNALSYM CREATECOLORSPACE_EMBEDED}
- type
- PEmrCreateColorSpaceW = ^TEmrCreateColorSpaceW;
- tagEMRCREATECOLORSPACEW = record
- emr: EMR;
- ihCS: DWORD; // ColorSpace handle index
- lcs: LOGCOLORSPACEW; // Unicode version of logical color space structure
- dwFlags: DWORD; // flags
- cbData: DWORD; // size of raw source profile data if attached
- Data: array [0..0] of BYTE; // Array size is cbData
- end;
- {$EXTERNALSYM tagEMRCREATECOLORSPACEW}
- EMRCREATECOLORSPACEW = tagEMRCREATECOLORSPACEW;
- {$EXTERNALSYM EMRCREATECOLORSPACEW}
- TEmrCreateColorSpaceW = EMRCREATECOLORSPACEW;
- const
- COLORMATCHTOTARGET_EMBEDED = $00000001;
- {$EXTERNALSYM COLORMATCHTOTARGET_EMBEDED}
- type
- PColorMatchToTarget = ^TColorMatchToTarget;
- tagCOLORMATCHTOTARGET = record
- emr: EMR;
- dwAction: DWORD; // CS_ENABLE, CS_DISABLE or CS_DELETE_TRANSFORM
- dwFlags: DWORD; // flags
- cbName: DWORD; // Size of desired target profile name
- cbData: DWORD; // Size of raw target profile data if attached
- Data: array [0..0] of BYTE; // Array size is cbName + cbData
- end;
- {$EXTERNALSYM tagCOLORMATCHTOTARGET}
- //COLORMATCHTOTARGET = tagCOLORMATCHTOTARGET;
- //{$EXTERNALSYM COLORMATCHTOTARGET}
- TColorMatchToTarget = tagCOLORMATCHTOTARGET;
- PColorCorrectPalette = ^TColorCorrectPalette;
- tagCOLORCORRECTPALETTE = record
- emr: EMR;
- ihPalette: DWORD; // Palette handle index
- nFirstEntry: DWORD; // Index of first entry to correct
- nPalEntries: DWORD; // Number of palette entries to correct
- nReserved: DWORD; // Reserved
- end;
- {$EXTERNALSYM tagCOLORCORRECTPALETTE}
- //COLORCORRECTPALETTE = tagCOLORCORRECTPALETTE;
- //{$EXTERNALSYM COLORCORRECTPALETTE}
- TColorCorrectPalette = tagCOLORCORRECTPALETTE;
- PEmrAlphaBlend = ^TEmrAlphaBlend;
- tagEMRALPHABLEND = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- cxDest: LONG;
- cyDest: LONG;
- dwRop: DWORD;
- xSrc: LONG;
- ySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- cxSrc: LONG;
- cySrc: LONG;
- end;
- {$EXTERNALSYM tagEMRALPHABLEND}
- EMRALPHABLEND = tagEMRALPHABLEND;
- {$EXTERNALSYM EMRALPHABLEND}
- TEmrAlphaBlend = EMRALPHABLEND;
- PEmrGradientFill = ^TEmrGradientFill;
- tagEMRGRADIENTFILL = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- nVer: DWORD;
- nTri: DWORD;
- ulMode: ULONG;
- Ver: array [0..0] of TRIVERTEX;
- end;
- {$EXTERNALSYM tagEMRGRADIENTFILL}
- EMRGRADIENTFILL = tagEMRGRADIENTFILL;
- {$EXTERNALSYM EMRGRADIENTFILL}
- TEmrGradientFill = EMRGRADIENTFILL;
- PEmrTransparentBlt = ^TEmrTransparentBlt;
- tagEMRTRANSPARENTBLT = record
- emr: EMR;
- rclBounds: RECTL; // Inclusive-inclusive bounds in device units
- xDest: LONG;
- yDest: LONG;
- cxDest: LONG;
- cyDest: LONG;
- dwRop: DWORD;
- xSrc: LONG;
- ySrc: LONG;
- xformSrc: XFORM; // Source DC transform
- crBkColorSrc: COLORREF; // Source DC BkColor in RGB
- iUsageSrc: DWORD; // Source bitmap info color table usage
- // (DIB_RGB_COLORS)
- offBmiSrc: DWORD; // Offset to the source BITMAPINFO structure
- cbBmiSrc: DWORD; // Size of the source BITMAPINFO structure
- offBitsSrc: DWORD; // Offset to the source bitmap bits
- cbBitsSrc: DWORD; // Size of the source bitmap bits
- cxSrc: LONG;
- cySrc: LONG;
- end;
- {$EXTERNALSYM tagEMRTRANSPARENTBLT}
- EMRTRANSPARENTBLT = tagEMRTRANSPARENTBLT;
- {$EXTERNALSYM EMRTRANSPARENTBLT}
- TEmrTransparentBlt = EMRTRANSPARENTBLT;
- const
- GDICOMMENT_IDENTIFIER = $43494447;
- {$EXTERNALSYM GDICOMMENT_IDENTIFIER}
- GDICOMMENT_WINDOWS_METAFILE = DWORD($80000001);
- {$EXTERNALSYM GDICOMMENT_WINDOWS_METAFILE}
- GDICOMMENT_BEGINGROUP = $00000002;
- {$EXTERNALSYM GDICOMMENT_BEGINGROUP}
- GDICOMMENT_ENDGROUP = $00000003;
- {$EXTERNALSYM GDICOMMENT_ENDGROUP}
- GDICOMMENT_MULTIFORMATS = $40000004;
- {$EXTERNALSYM GDICOMMENT_MULTIFORMATS}
- EPS_SIGNATURE = $46535045;
- {$EXTERNALSYM EPS_SIGNATURE}
- GDICOMMENT_UNICODE_STRING = $00000040;
- {$EXTERNALSYM GDICOMMENT_UNICODE_STRING}
- GDICOMMENT_UNICODE_END = $00000080;
- {$EXTERNALSYM GDICOMMENT_UNICODE_END}
- // OpenGL wgl prototypes
- function wglCopyContext(hglrcSrc, hglrcDest: HGLRC; mask: UINT): BOOL; stdcall;
- {$EXTERNALSYM wglCopyContext}
- function wglCreateContext(hdc: HDC): HGLRC; stdcall;
- {$EXTERNALSYM wglCreateContext}
- function wglCreateLayerContext(hdc: HDC; iLayerPlane: Integer): HGLRC; stdcall;
- {$EXTERNALSYM wglCreateLayerContext}
- function wglDeleteContext(hglrc: HGLRC): BOOL; stdcall;
- {$EXTERNALSYM wglDeleteContext}
- function wglGetCurrentContext: HGLRC; stdcall;
- {$EXTERNALSYM wglGetCurrentContext}
- function wglGetCurrentDC: HDC; stdcall;
- {$EXTERNALSYM wglGetCurrentDC}
- function wglGetProcAddress(lpszProc: LPCSTR): PROC; stdcall;
- {$EXTERNALSYM wglGetProcAddress}
- function wglMakeCurrent(hdc: HDC; hglrc: HGLRC): BOOL; stdcall;
- {$EXTERNALSYM wglMakeCurrent}
- function wglShareLists(hglrc1, hglrc2: HGLRC): BOOL; stdcall;
- {$EXTERNALSYM wglShareLists}
- function wglUseFontBitmapsA(hdc: HDC; first, count, listBase: DWORD): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontBitmapsA}
- function wglUseFontBitmapsW(hdc: HDC; first, count, listBase: DWORD): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontBitmapsW}
- function wglUseFontBitmaps(hdc: HDC; first, count, listBase: DWORD): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontBitmaps}
- function SwapBuffers(hdc: HDC): BOOL; stdcall;
- {$EXTERNALSYM SwapBuffers}
- type
- PPointFloat = ^TPointFloat;
- _POINTFLOAT = record
- x: FLOAT;
- y: FLOAT;
- end;
- {$EXTERNALSYM _POINTFLOAT}
- POINTFLOAT = _POINTFLOAT;
- {$EXTERNALSYM POINTFLOAT}
- TPointFloat = _POINTFLOAT;
- PGlyphMetricsFloat = ^TGlyphMetricsFloat;
- _GLYPHMETRICSFLOAT = record
- gmfBlackBoxX: FLOAT;
- gmfBlackBoxY: FLOAT;
- gmfptGlyphOrigin: POINTFLOAT;
- gmfCellIncX: FLOAT;
- gmfCellIncY: FLOAT;
- end;
- {$EXTERNALSYM _GLYPHMETRICSFLOAT}
- GLYPHMETRICSFLOAT = _GLYPHMETRICSFLOAT;
- {$EXTERNALSYM GLYPHMETRICSFLOAT}
- LPGLYPHMETRICSFLOAT = ^GLYPHMETRICSFLOAT;
- {$EXTERNALSYM LPGLYPHMETRICSFLOAT}
- TGlyphMetricsFloat = _GLYPHMETRICSFLOAT;
- const
- WGL_FONT_LINES = 0;
- {$EXTERNALSYM WGL_FONT_LINES}
- WGL_FONT_POLYGONS = 1;
- {$EXTERNALSYM WGL_FONT_POLYGONS}
- function wglUseFontOutlinesA(hdc: HDC; first, count, listBase: DWORD; deviation,
- extrusion: FLOAT; format: Integer; lpgmf: LPGLYPHMETRICSFLOAT): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontOutlinesA}
- function wglUseFontOutlinesW(hdc: HDC; first, count, listBase: DWORD; deviation,
- extrusion: FLOAT; format: Integer; lpgmf: LPGLYPHMETRICSFLOAT): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontOutlinesW}
- function wglUseFontOutlines(hdc: HDC; first, count, listBase: DWORD; deviation,
- extrusion: FLOAT; format: Integer; lpgmf: LPGLYPHMETRICSFLOAT): BOOL; stdcall;
- {$EXTERNALSYM wglUseFontOutlines}
- // Layer plane descriptor
- type
- PLayerPlaneDescriptor = ^TLayerPlaneDescriptor;
- tagLAYERPLANEDESCRIPTOR = record
- nSize: WORD;
- nVersion: WORD;
- dwFlags: DWORD;
- iPixelType: BYTE;
- cColorBits: BYTE;
- cRedBits: BYTE;
- cRedShift: BYTE;
- cGreenBits: BYTE;
- cGreenShift: BYTE;
- cBlueBits: BYTE;
- cBlueShift: BYTE;
- cAlphaBits: BYTE;
- cAlphaShift: BYTE;
- cAccumBits: BYTE;
- cAccumRedBits: BYTE;
- cAccumGreenBits: BYTE;
- cAccumBlueBits: BYTE;
- cAccumAlphaBits: BYTE;
- cDepthBits: BYTE;
- cStencilBits: BYTE;
- cAuxBuffers: BYTE;
- iLayerPlane: BYTE;
- bReserved: BYTE;
- crTransparent: COLORREF;
- end;
- {$EXTERNALSYM tagLAYERPLANEDESCRIPTOR}
- LAYERPLANEDESCRIPTOR = tagLAYERPLANEDESCRIPTOR;
- {$EXTERNALSYM LAYERPLANEDESCRIPTOR}
- LPLAYERPLANEDESCRIPTOR = ^LAYERPLANEDESCRIPTOR;
- {$EXTERNALSYM LPLAYERPLANEDESCRIPTOR}
- TLayerPlaneDescriptor = LAYERPLANEDESCRIPTOR;
- // LAYERPLANEDESCRIPTOR flags
- const
- LPD_DOUBLEBUFFER = $00000001;
- {$EXTERNALSYM LPD_DOUBLEBUFFER}
- LPD_STEREO = $00000002;
- {$EXTERNALSYM LPD_STEREO}
- LPD_SUPPORT_GDI = $00000010;
- {$EXTERNALSYM LPD_SUPPORT_GDI}
- LPD_SUPPORT_OPENGL = $00000020;
- {$EXTERNALSYM LPD_SUPPORT_OPENGL}
- LPD_SHARE_DEPTH = $00000040;
- {$EXTERNALSYM LPD_SHARE_DEPTH}
- LPD_SHARE_STENCIL = $00000080;
- {$EXTERNALSYM LPD_SHARE_STENCIL}
- LPD_SHARE_ACCUM = $00000100;
- {$EXTERNALSYM LPD_SHARE_ACCUM}
- LPD_SWAP_EXCHANGE = $00000200;
- {$EXTERNALSYM LPD_SWAP_EXCHANGE}
- LPD_SWAP_COPY = $00000400;
- {$EXTERNALSYM LPD_SWAP_COPY}
- LPD_TRANSPARENT = $00001000;
- {$EXTERNALSYM LPD_TRANSPARENT}
- LPD_TYPE_RGBA = 0;
- {$EXTERNALSYM LPD_TYPE_RGBA}
- LPD_TYPE_COLORINDEX = 1;
- {$EXTERNALSYM LPD_TYPE_COLORINDEX}
- // wglSwapLayerBuffers flags
- WGL_SWAP_MAIN_PLANE = $00000001;
- {$EXTERNALSYM WGL_SWAP_MAIN_PLANE}
- WGL_SWAP_OVERLAY1 = $00000002;
- {$EXTERNALSYM WGL_SWAP_OVERLAY1}
- WGL_SWAP_OVERLAY2 = $00000004;
- {$EXTERNALSYM WGL_SWAP_OVERLAY2}
- WGL_SWAP_OVERLAY3 = $00000008;
- {$EXTERNALSYM WGL_SWAP_OVERLAY3}
- WGL_SWAP_OVERLAY4 = $00000010;
- {$EXTERNALSYM WGL_SWAP_OVERLAY4}
- WGL_SWAP_OVERLAY5 = $00000020;
- {$EXTERNALSYM WGL_SWAP_OVERLAY5}
- WGL_SWAP_OVERLAY6 = $00000040;
- {$EXTERNALSYM WGL_SWAP_OVERLAY6}
- WGL_SWAP_OVERLAY7 = $00000080;
- {$EXTERNALSYM WGL_SWAP_OVERLAY7}
- WGL_SWAP_OVERLAY8 = $00000100;
- {$EXTERNALSYM WGL_SWAP_OVERLAY8}
- WGL_SWAP_OVERLAY9 = $00000200;
- {$EXTERNALSYM WGL_SWAP_OVERLAY9}
- WGL_SWAP_OVERLAY10 = $00000400;
- {$EXTERNALSYM WGL_SWAP_OVERLAY10}
- WGL_SWAP_OVERLAY11 = $00000800;
- {$EXTERNALSYM WGL_SWAP_OVERLAY11}
- WGL_SWAP_OVERLAY12 = $00001000;
- {$EXTERNALSYM WGL_SWAP_OVERLAY12}
- WGL_SWAP_OVERLAY13 = $00002000;
- {$EXTERNALSYM WGL_SWAP_OVERLAY13}
- WGL_SWAP_OVERLAY14 = $00004000;
- {$EXTERNALSYM WGL_SWAP_OVERLAY14}
- WGL_SWAP_OVERLAY15 = $00008000;
- {$EXTERNALSYM WGL_SWAP_OVERLAY15}
- WGL_SWAP_UNDERLAY1 = $00010000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY1}
- WGL_SWAP_UNDERLAY2 = $00020000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY2}
- WGL_SWAP_UNDERLAY3 = $00040000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY3}
- WGL_SWAP_UNDERLAY4 = $00080000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY4}
- WGL_SWAP_UNDERLAY5 = $00100000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY5}
- WGL_SWAP_UNDERLAY6 = $00200000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY6}
- WGL_SWAP_UNDERLAY7 = $00400000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY7}
- WGL_SWAP_UNDERLAY8 = $00800000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY8}
- WGL_SWAP_UNDERLAY9 = $01000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY9}
- WGL_SWAP_UNDERLAY10 = $02000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY10}
- WGL_SWAP_UNDERLAY11 = $04000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY11}
- WGL_SWAP_UNDERLAY12 = $08000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY12}
- WGL_SWAP_UNDERLAY13 = $10000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY13}
- WGL_SWAP_UNDERLAY14 = $20000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY14}
- WGL_SWAP_UNDERLAY15 = $40000000;
- {$EXTERNALSYM WGL_SWAP_UNDERLAY15}
- function wglDescribeLayerPlane(hdc: HDC; iPixelFormat, iLayerPlane: Integer;
- nBytes: UINT; plpd: LPLAYERPLANEDESCRIPTOR): BOOL; stdcall;
- {$EXTERNALSYM wglDescribeLayerPlane}
- function wglSetLayerPaletteEntries(hdc: HDC; iLayerPlane, iStart, cEntries: Integer;
- pcr: LPCOLORREF): Integer; stdcall;
- {$EXTERNALSYM wglSetLayerPaletteEntries}
- function wglGetLayerPaletteEntries(hdc: HDC; iLayerPlane, iStart, cEntries: Integer;
- pcr: LPCOLORREF): Integer; stdcall;
- {$EXTERNALSYM wglGetLayerPaletteEntries}
- function wglRealizeLayerPalette(hdc: HDC; iLayerPlane: Integer; bRealize: BOOL): BOOL; stdcall;
- {$EXTERNALSYM wglRealizeLayerPalette}
- function wglSwapLayerBuffers(hdc: HDC; fuPlanes: UINT): BOOL; stdcall;
- {$EXTERNALSYM wglSwapLayerBuffers}
- type
- PWglSwap = ^TWglSwap;
- _WGLSWAP = record
- hdc: HDC;
- uiFlags: UINT;
- end;
- {$EXTERNALSYM _WGLSWAP}
- WGLSWAP = _WGLSWAP;
- {$EXTERNALSYM WGLSWAP}
- LPWGLSWAP = ^WGLSWAP;
- {$EXTERNALSYM LPWGLSWAP}
- TWglSwap = _WGLSWAP;
- const
- WGL_SWAPMULTIPLE_MAX = 16;
- {$EXTERNALSYM WGL_SWAPMULTIPLE_MAX}
- function wglSwapMultipleBuffers(fuCount: UINT; lpBuffers: LPWGLSWAP): DWORD; stdcall;
- {$EXTERNALSYM wglSwapMultipleBuffers}
- implementation
- const
- gdi32 = 'gdi32.dll';
- msimg32 = 'msimg32.dll';
- winspool32 = 'winspool32.drv';
- opengl32 = 'opengl32.dll';
- {$IFDEF UNICODE}
- AWSuffix = 'W';
- {$ELSE}
- AWSuffix = 'A';
- {$ENDIF UNICODE}
- function MAKEROP4(Fore, Back: DWORD): DWORD;
- begin
- Result := ((Back shl 8) and DWORD($FF000000)) or Fore;
- end;
- function GetKValue(cmyk: COLORREF): BYTE;
- begin
- Result := BYTE(cmyk);
- end;
- function GetYValue(cmyk: COLORREF): BYTE;
- begin
- Result := BYTE(cmyk shr 8);
- end;
- function GetMValue(cmyk: COLORREF): BYTE;
- begin
- Result := BYTE(cmyk shr 16);
- end;
- function GetCValue(cmyk: COLORREF): BYTE;
- begin
- Result := BYTE(cmyk shr 24);
- end;
- function CMYK(c, m, y, k: BYTE): COLORREF;
- begin
- Result := COLORREF(k or (y shl 8) or (m shl 16) or (c shl 24));
- end;
- function MAKEPOINTS(l: DWORD): POINTS;
- begin
- Result.x := LOWORD(l);
- Result.y := HIWORD(l);
- end;
- function RGB(r, g, b: BYTE): COLORREF;
- begin
- Result := COLORREF(r or (g shl 8) or (b shl 16));
- end;
- function PALETTERGB(r, g, b: BYTE): COLORREF;
- begin
- Result := $02000000 or RGB(r, g, b);
- end;
- function PALETTEINDEX(i: WORD): COLORREF;
- begin
- Result := COLORREF($01000000 or DWORD(i));
- end;
- function GetRValue(rgb: COLORREF): BYTE;
- begin
- Result := BYTE(RGB);
- end;
- function GetGValue(rgb: COLORREF): BYTE;
- begin
- Result := BYTE(rgb shr 8);
- end;
- function GetBValue(rgb: COLORREF): BYTE;
- begin
- Result := BYTE(rgb shr 16);
- end;
- {$IFDEF DYNAMIC_LINK}
- var
- _AddFontResourceA: Pointer;
- function AddFontResourceA;
- begin
- GetProcedureAddress(_AddFontResourceA, gdi32, 'AddFontResourceA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AddFontResourceA]
- end;
- end;
- var
- _AddFontResourceW: Pointer;
- function AddFontResourceW;
- begin
- GetProcedureAddress(_AddFontResourceW, gdi32, 'AddFontResourceW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AddFontResourceW]
- end;
- end;
- var
- _AddFontResource: Pointer;
- function AddFontResource;
- begin
- GetProcedureAddress(_AddFontResource, gdi32, 'AddFontResource' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AddFontResource]
- end;
- end;
- var
- _AnimatePalette: Pointer;
- function AnimatePalette;
- begin
- GetProcedureAddress(_AnimatePalette, gdi32, 'AnimatePalette');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AnimatePalette]
- end;
- end;
- var
- _Arc: Pointer;
- function Arc;
- begin
- GetProcedureAddress(_Arc, gdi32, 'Arc');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_Arc]
- end;
- end;
- var
- _BitBlt: Pointer;
- function BitBlt;
- begin
- GetProcedureAddress(_BitBlt, gdi32, 'BitBlt');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_BitBlt]
- end;
- end;
- var
- _CancelDC: Pointer;
- function CancelDC;
- begin
- GetProcedureAddress(_CancelDC, gdi32, 'CancelDC');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CancelDC]
- end;
- end;
- var
- _Chord: Pointer;
- function Chord;
- begin
- GetProcedureAddress(_Chord, gdi32, 'Chord');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_Chord]
- end;
- end;
- var
- _ChoosePixelFormat: Pointer;
- function ChoosePixelFormat;
- begin
- GetProcedureAddress(_ChoosePixelFormat, gdi32, 'ChoosePixelFormat');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ChoosePixelFormat]
- end;
- end;
- var
- _CloseMetaFile: Pointer;
- function CloseMetaFile;
- begin
- GetProcedureAddress(_CloseMetaFile, gdi32, 'CloseMetaFile');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CloseMetaFile]
- end;
- end;
- var
- _CombineRgn: Pointer;
- function CombineRgn;
- begin
- GetProcedureAddress(_CombineRgn, gdi32, 'CombineRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CombineRgn]
- end;
- end;
- var
- _CopyMetaFileA: Pointer;
- function CopyMetaFileA;
- begin
- GetProcedureAddress(_CopyMetaFileA, gdi32, 'CopyMetaFileA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CopyMetaFileA]
- end;
- end;
- var
- _CopyMetaFileW: Pointer;
- function CopyMetaFileW;
- begin
- GetProcedureAddress(_CopyMetaFileW, gdi32, 'CopyMetaFileW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CopyMetaFileW]
- end;
- end;
- var
- _CopyMetaFile: Pointer;
- function CopyMetaFile;
- begin
- GetProcedureAddress(_CopyMetaFile, gdi32, 'CopyMetaFile' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CopyMetaFile]
- end;
- end;
- var
- _CreateBitmap: Pointer;
- function CreateBitmap;
- begin
- GetProcedureAddress(_CreateBitmap, gdi32, 'CreateBitmap');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateBitmap]
- end;
- end;
- var
- _CreateBitmapIndirect: Pointer;
- function CreateBitmapIndirect;
- begin
- GetProcedureAddress(_CreateBitmapIndirect, gdi32, 'CreateBitmapIndirect');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateBitmapIndirect]
- end;
- end;
- var
- _CreateBrushIndirect: Pointer;
- function CreateBrushIndirect;
- begin
- GetProcedureAddress(_CreateBrushIndirect, gdi32, 'CreateBrushIndirect');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateBrushIndirect]
- end;
- end;
- var
- _CreateCompatibleBitmap: Pointer;
- function CreateCompatibleBitmap;
- begin
- GetProcedureAddress(_CreateCompatibleBitmap, gdi32, 'CreateCompatibleBitmap');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateCompatibleBitmap]
- end;
- end;
- var
- _CreateDiscardableBitmap: Pointer;
- function CreateDiscardableBitmap;
- begin
- GetProcedureAddress(_CreateDiscardableBitmap, gdi32, 'CreateDiscardableBitmap');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateDiscardableBitmap]
- end;
- end;
- var
- _CreateCompatibleDC: Pointer;
- function CreateCompatibleDC;
- begin
- GetProcedureAddress(_CreateCompatibleDC, gdi32, 'CreateCompatibleDC');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateCompatibleDC]
- end;
- end;
- var
- _CreateDCA: Pointer;
- function CreateDCA;
- begin
- GetProcedureAddress(_CreateDCA, gdi32, 'CreateDCA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateDCA]
- end;
- end;
- var
- _CreateDCW: Pointer;
- function CreateDCW;
- begin
- GetProcedureAddress(_CreateDCW, gdi32, 'CreateDCW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateDCW]
- end;
- end;
- var
- _CreateDC: Pointer;
- function CreateDC;
- begin
- GetProcedureAddress(_CreateDC, gdi32, 'CreateDC' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateDC]
- end;
- end;
- var
- _CreateDIBitmap: Pointer;
- function CreateDIBitmap;
- begin
- GetProcedureAddress(_CreateDIBitmap, gdi32, 'CreateDIBitmap');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateDIBitmap]
- end;
- end;
- var
- _CreateDIBPatternBrush: Pointer;
- function CreateDIBPatternBrush;
- begin
- GetProcedureAddress(_CreateDIBPatternBrush, gdi32, 'CreateDIBPatternBrush');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateDIBPatternBrush]
- end;
- end;
- var
- _CreateDIBPatternBrushPt: Pointer;
- function CreateDIBPatternBrushPt;
- begin
- GetProcedureAddress(_CreateDIBPatternBrushPt, gdi32, 'CreateDIBPatternBrushPt');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateDIBPatternBrushPt]
- end;
- end;
- var
- _CreateEllipticRgn: Pointer;
- function CreateEllipticRgn;
- begin
- GetProcedureAddress(_CreateEllipticRgn, gdi32, 'CreateEllipticRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateEllipticRgn]
- end;
- end;
- var
- _CreateEllipticRgnIndirect: Pointer;
- function CreateEllipticRgnIndirect;
- begin
- GetProcedureAddress(_CreateEllipticRgnIndirect, gdi32, 'CreateEllipticRgnIndirect');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateEllipticRgnIndirect]
- end;
- end;
- var
- _CreateFontIndirectA: Pointer;
- function CreateFontIndirectA;
- begin
- GetProcedureAddress(_CreateFontIndirectA, gdi32, 'CreateFontIndirectA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateFontIndirectA]
- end;
- end;
- var
- _CreateFontIndirectW: Pointer;
- function CreateFontIndirectW;
- begin
- GetProcedureAddress(_CreateFontIndirectW, gdi32, 'CreateFontIndirectW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateFontIndirectW]
- end;
- end;
- var
- _CreateFontIndirect: Pointer;
- function CreateFontIndirect;
- begin
- GetProcedureAddress(_CreateFontIndirect, gdi32, 'CreateFontIndirect' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateFontIndirect]
- end;
- end;
- var
- _CreateFontA: Pointer;
- function CreateFontA;
- begin
- GetProcedureAddress(_CreateFontA, gdi32, 'CreateFontA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateFontA]
- end;
- end;
- var
- _CreateFontW: Pointer;
- function CreateFontW;
- begin
- GetProcedureAddress(_CreateFontW, gdi32, 'CreateFontW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateFontW]
- end;
- end;
- var
- _CreateFont: Pointer;
- function CreateFont;
- begin
- GetProcedureAddress(_CreateFont, gdi32, 'CreateFont' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateFont]
- end;
- end;
- var
- _CreateHatchBrush: Pointer;
- function CreateHatchBrush;
- begin
- GetProcedureAddress(_CreateHatchBrush, gdi32, 'CreateHatchBrush');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateHatchBrush]
- end;
- end;
- var
- _CreateICA: Pointer;
- function CreateICA;
- begin
- GetProcedureAddress(_CreateICA, gdi32, 'CreateICA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateICA]
- end;
- end;
- var
- _CreateICW: Pointer;
- function CreateICW;
- begin
- GetProcedureAddress(_CreateICW, gdi32, 'CreateICW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateICW]
- end;
- end;
- var
- _CreateIC: Pointer;
- function CreateIC;
- begin
- GetProcedureAddress(_CreateIC, gdi32, 'CreateIC' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateIC]
- end;
- end;
- var
- _CreateMetaFileA: Pointer;
- function CreateMetaFileA;
- begin
- GetProcedureAddress(_CreateMetaFileA, gdi32, 'CreateMetaFileA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateMetaFileA]
- end;
- end;
- var
- _CreateMetaFileW: Pointer;
- function CreateMetaFileW;
- begin
- GetProcedureAddress(_CreateMetaFileW, gdi32, 'CreateMetaFileW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateMetaFileW]
- end;
- end;
- var
- _CreateMetaFile: Pointer;
- function CreateMetaFile;
- begin
- GetProcedureAddress(_CreateMetaFile, gdi32, 'CreateMetaFile' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateMetaFile]
- end;
- end;
- var
- _CreatePalette: Pointer;
- function CreatePalette;
- begin
- GetProcedureAddress(_CreatePalette, gdi32, 'CreatePalette');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreatePalette]
- end;
- end;
- var
- _CreatePen: Pointer;
- function CreatePen;
- begin
- GetProcedureAddress(_CreatePen, gdi32, 'CreatePen');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreatePen]
- end;
- end;
- var
- _CreatePenIndirect: Pointer;
- function CreatePenIndirect;
- begin
- GetProcedureAddress(_CreatePenIndirect, gdi32, 'CreatePenIndirect');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreatePenIndirect]
- end;
- end;
- var
- _CreatePolyPolygonRgn: Pointer;
- function CreatePolyPolygonRgn;
- begin
- GetProcedureAddress(_CreatePolyPolygonRgn, gdi32, 'CreatePolyPolygonRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreatePolyPolygonRgn]
- end;
- end;
- var
- _CreatePatternBrush: Pointer;
- function CreatePatternBrush;
- begin
- GetProcedureAddress(_CreatePatternBrush, gdi32, 'CreatePatternBrush');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreatePatternBrush]
- end;
- end;
- var
- _CreateRectRgn: Pointer;
- function CreateRectRgn;
- begin
- GetProcedureAddress(_CreateRectRgn, gdi32, 'CreateRectRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateRectRgn]
- end;
- end;
- var
- _CreateRectRgnIndirect: Pointer;
- function CreateRectRgnIndirect;
- begin
- GetProcedureAddress(_CreateRectRgnIndirect, gdi32, 'CreateRectRgnIndirect');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateRectRgnIndirect]
- end;
- end;
- var
- _CreateRoundRectRgn: Pointer;
- function CreateRoundRectRgn;
- begin
- GetProcedureAddress(_CreateRoundRectRgn, gdi32, 'CreateRoundRectRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateRoundRectRgn]
- end;
- end;
- var
- _CreateScalableFontResourceA: Pointer;
- function CreateScalableFontResourceA;
- begin
- GetProcedureAddress(_CreateScalableFontResourceA, gdi32, 'CreateScalableFontResourceA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateScalableFontResourceA]
- end;
- end;
- var
- _CreateScalableFontResourceW: Pointer;
- function CreateScalableFontResourceW;
- begin
- GetProcedureAddress(_CreateScalableFontResourceW, gdi32, 'CreateScalableFontResourceW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateScalableFontResourceW]
- end;
- end;
- var
- _CreateScalableFontResource: Pointer;
- function CreateScalableFontResource;
- begin
- GetProcedureAddress(_CreateScalableFontResource, gdi32, 'CreateScalableFontResource' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateScalableFontResource]
- end;
- end;
- var
- _CreateSolidBrush: Pointer;
- function CreateSolidBrush;
- begin
- GetProcedureAddress(_CreateSolidBrush, gdi32, 'CreateSolidBrush');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateSolidBrush]
- end;
- end;
- var
- _DeleteDC: Pointer;
- function DeleteDC;
- begin
- GetProcedureAddress(_DeleteDC, gdi32, 'DeleteDC');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DeleteDC]
- end;
- end;
- var
- _DeleteMetaFile: Pointer;
- function DeleteMetaFile;
- begin
- GetProcedureAddress(_DeleteMetaFile, gdi32, 'DeleteMetaFile');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DeleteMetaFile]
- end;
- end;
- var
- _DeleteObject: Pointer;
- function DeleteObject;
- begin
- GetProcedureAddress(_DeleteObject, gdi32, 'DeleteObject');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DeleteObject]
- end;
- end;
- var
- _DescribePixelFormat: Pointer;
- function DescribePixelFormat;
- begin
- GetProcedureAddress(_DescribePixelFormat, gdi32, 'DescribePixelFormat');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DescribePixelFormat]
- end;
- end;
- var
- _DeviceCapabilitiesA: Pointer;
- function DeviceCapabilitiesA;
- begin
- GetProcedureAddress(_DeviceCapabilitiesA, winspool32, 'DeviceCapabilitiesA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DeviceCapabilitiesA]
- end;
- end;
- var
- _DeviceCapabilitiesW: Pointer;
- function DeviceCapabilitiesW;
- begin
- GetProcedureAddress(_DeviceCapabilitiesW, winspool32, 'DeviceCapabilitiesW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DeviceCapabilitiesW]
- end;
- end;
- var
- _DeviceCapabilities: Pointer;
- function DeviceCapabilities;
- begin
- GetProcedureAddress(_DeviceCapabilities, winspool32, 'DeviceCapabilities' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DeviceCapabilities]
- end;
- end;
- var
- _DrawEscape: Pointer;
- function DrawEscape;
- begin
- GetProcedureAddress(_DrawEscape, gdi32, 'DrawEscape');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DrawEscape]
- end;
- end;
- var
- _Ellipse: Pointer;
- function Ellipse;
- begin
- GetProcedureAddress(_Ellipse, gdi32, 'Ellipse');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_Ellipse]
- end;
- end;
- var
- _EnumFontFamiliesExA: Pointer;
- function EnumFontFamiliesExA;
- begin
- GetProcedureAddress(_EnumFontFamiliesExA, gdi32, 'EnumFontFamiliesExA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumFontFamiliesExA]
- end;
- end;
- var
- _EnumFontFamiliesExW: Pointer;
- function EnumFontFamiliesExW;
- begin
- GetProcedureAddress(_EnumFontFamiliesExW, gdi32, 'EnumFontFamiliesExW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumFontFamiliesExW]
- end;
- end;
- var
- _EnumFontFamiliesEx: Pointer;
- function EnumFontFamiliesEx;
- begin
- GetProcedureAddress(_EnumFontFamiliesEx, gdi32, 'EnumFontFamiliesEx' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumFontFamiliesEx]
- end;
- end;
- var
- _EnumFontFamiliesA: Pointer;
- function EnumFontFamiliesA;
- begin
- GetProcedureAddress(_EnumFontFamiliesA, gdi32, 'EnumFontFamiliesA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumFontFamiliesA]
- end;
- end;
- var
- _EnumFontFamiliesW: Pointer;
- function EnumFontFamiliesW;
- begin
- GetProcedureAddress(_EnumFontFamiliesW, gdi32, 'EnumFontFamiliesW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumFontFamiliesW]
- end;
- end;
- var
- _EnumFontFamilies: Pointer;
- function EnumFontFamilies;
- begin
- GetProcedureAddress(_EnumFontFamilies, gdi32, 'EnumFontFamilies' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumFontFamilies]
- end;
- end;
- var
- _EnumFontsA: Pointer;
- function EnumFontsA;
- begin
- GetProcedureAddress(_EnumFontsA, gdi32, 'EnumFontsA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumFontsA]
- end;
- end;
- var
- _EnumFontsW: Pointer;
- function EnumFontsW;
- begin
- GetProcedureAddress(_EnumFontsW, gdi32, 'EnumFontsW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumFontsW]
- end;
- end;
- var
- _EnumFonts: Pointer;
- function EnumFonts;
- begin
- GetProcedureAddress(_EnumFonts, gdi32, 'EnumFonts' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumFonts]
- end;
- end;
- var
- _EnumObjects: Pointer;
- function EnumObjects;
- begin
- GetProcedureAddress(_EnumObjects, gdi32, 'EnumObjects');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumObjects]
- end;
- end;
- var
- _EqualRgn: Pointer;
- function EqualRgn;
- begin
- GetProcedureAddress(_EqualRgn, gdi32, 'EqualRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EqualRgn]
- end;
- end;
- var
- _Escape: Pointer;
- function Escape;
- begin
- GetProcedureAddress(_Escape, gdi32, 'Escape');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_Escape]
- end;
- end;
- var
- _ExtEscape: Pointer;
- function ExtEscape;
- begin
- GetProcedureAddress(_ExtEscape, gdi32, 'ExtEscape');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ExtEscape]
- end;
- end;
- var
- _ExcludeClipRect: Pointer;
- function ExcludeClipRect;
- begin
- GetProcedureAddress(_ExcludeClipRect, gdi32, 'ExcludeClipRect');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ExcludeClipRect]
- end;
- end;
- var
- _ExtCreateRegion: Pointer;
- function ExtCreateRegion;
- begin
- GetProcedureAddress(_ExtCreateRegion, gdi32, 'ExtCreateRegion');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ExtCreateRegion]
- end;
- end;
- var
- _ExtFloodFill: Pointer;
- function ExtFloodFill;
- begin
- GetProcedureAddress(_ExtFloodFill, gdi32, 'ExtFloodFill');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ExtFloodFill]
- end;
- end;
- var
- _FillRgn: Pointer;
- function FillRgn;
- begin
- GetProcedureAddress(_FillRgn, gdi32, 'FillRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_FillRgn]
- end;
- end;
- var
- _FloodFill: Pointer;
- function FloodFill;
- begin
- GetProcedureAddress(_FloodFill, gdi32, 'FloodFill');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_FloodFill]
- end;
- end;
- var
- _FrameRgn: Pointer;
- function FrameRgn;
- begin
- GetProcedureAddress(_FrameRgn, gdi32, 'FrameRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_FrameRgn]
- end;
- end;
- var
- _GetROP2: Pointer;
- function GetROP2;
- begin
- GetProcedureAddress(_GetROP2, gdi32, 'GetROP2');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetROP2]
- end;
- end;
- var
- _GetAspectRatioFilterEx: Pointer;
- function GetAspectRatioFilterEx;
- begin
- GetProcedureAddress(_GetAspectRatioFilterEx, gdi32, 'GetAspectRatioFilterEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetAspectRatioFilterEx]
- end;
- end;
- var
- _GetBkColor: Pointer;
- function GetBkColor;
- begin
- GetProcedureAddress(_GetBkColor, gdi32, 'GetBkColor');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetBkColor]
- end;
- end;
- var
- _GetDCBrushColor: Pointer;
- function GetDCBrushColor;
- begin
- GetProcedureAddress(_GetDCBrushColor, gdi32, 'GetDCBrushColor');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetDCBrushColor]
- end;
- end;
- var
- _GetDCPenColor: Pointer;
- function GetDCPenColor;
- begin
- GetProcedureAddress(_GetDCPenColor, gdi32, 'GetDCPenColor');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetDCPenColor]
- end;
- end;
- var
- _GetBkMode: Pointer;
- function GetBkMode;
- begin
- GetProcedureAddress(_GetBkMode, gdi32, 'GetBkMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetBkMode]
- end;
- end;
- var
- _GetBitmapBits: Pointer;
- function GetBitmapBits;
- begin
- GetProcedureAddress(_GetBitmapBits, gdi32, 'GetBitmapBits');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetBitmapBits]
- end;
- end;
- var
- _GetBitmapDimensionEx: Pointer;
- function GetBitmapDimensionEx;
- begin
- GetProcedureAddress(_GetBitmapDimensionEx, gdi32, 'GetBitmapDimensionEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetBitmapDimensionEx]
- end;
- end;
- var
- _GetBoundsRect: Pointer;
- function GetBoundsRect;
- begin
- GetProcedureAddress(_GetBoundsRect, gdi32, 'GetBoundsRect');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetBoundsRect]
- end;
- end;
- var
- _GetBrushOrgEx: Pointer;
- function GetBrushOrgEx;
- begin
- GetProcedureAddress(_GetBrushOrgEx, gdi32, 'GetBrushOrgEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetBrushOrgEx]
- end;
- end;
- var
- _GetCharWidthA: Pointer;
- function GetCharWidthA;
- begin
- GetProcedureAddress(_GetCharWidthA, gdi32, 'GetCharWidthA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharWidthA]
- end;
- end;
- var
- _GetCharWidthW: Pointer;
- function GetCharWidthW;
- begin
- GetProcedureAddress(_GetCharWidthW, gdi32, 'GetCharWidthW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharWidthW]
- end;
- end;
- var
- _GetCharWidth: Pointer;
- function GetCharWidth;
- begin
- GetProcedureAddress(_GetCharWidth, gdi32, 'GetCharWidth' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharWidth]
- end;
- end;
- var
- _GetCharWidth32A: Pointer;
- function GetCharWidth32A;
- begin
- GetProcedureAddress(_GetCharWidth32A, gdi32, 'GetCharWidth32A');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharWidth32A]
- end;
- end;
- var
- _GetCharWidth32W: Pointer;
- function GetCharWidth32W;
- begin
- GetProcedureAddress(_GetCharWidth32W, gdi32, 'GetCharWidth32W');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharWidth32W]
- end;
- end;
- var
- _GetCharWidth32: Pointer;
- function GetCharWidth32;
- begin
- GetProcedureAddress(_GetCharWidth32, gdi32, 'GetCharWidth32' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharWidth32]
- end;
- end;
- var
- _GetCharWidthFloatA: Pointer;
- function GetCharWidthFloatA;
- begin
- GetProcedureAddress(_GetCharWidthFloatA, gdi32, 'GetCharWidthFloatA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharWidthFloatA]
- end;
- end;
- var
- _GetCharWidthFloatW: Pointer;
- function GetCharWidthFloatW;
- begin
- GetProcedureAddress(_GetCharWidthFloatW, gdi32, 'GetCharWidthFloatW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharWidthFloatW]
- end;
- end;
- var
- _GetCharWidthFloat: Pointer;
- function GetCharWidthFloat;
- begin
- GetProcedureAddress(_GetCharWidthFloat, gdi32, 'GetCharWidthFloat' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharWidthFloat]
- end;
- end;
- var
- _GetCharABCWidthsA: Pointer;
- function GetCharABCWidthsA;
- begin
- GetProcedureAddress(_GetCharABCWidthsA, gdi32, 'GetCharABCWidthsA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharABCWidthsA]
- end;
- end;
- var
- _GetCharABCWidthsW: Pointer;
- function GetCharABCWidthsW;
- begin
- GetProcedureAddress(_GetCharABCWidthsW, gdi32, 'GetCharABCWidthsW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharABCWidthsW]
- end;
- end;
- var
- _GetCharABCWidths: Pointer;
- function GetCharABCWidths;
- begin
- GetProcedureAddress(_GetCharABCWidths, gdi32, 'GetCharABCWidths' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharABCWidths]
- end;
- end;
- var
- _GetCharABCWidthsFloatA: Pointer;
- function GetCharABCWidthsFloatA;
- begin
- GetProcedureAddress(_GetCharABCWidthsFloatA, gdi32, 'GetCharABCWidthsFloatA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharABCWidthsFloatA]
- end;
- end;
- var
- _GetCharABCWidthsFloatW: Pointer;
- function GetCharABCWidthsFloatW;
- begin
- GetProcedureAddress(_GetCharABCWidthsFloatW, gdi32, 'GetCharABCWidthsFloatW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharABCWidthsFloatW]
- end;
- end;
- var
- _GetCharABCWidthsFloat: Pointer;
- function GetCharABCWidthsFloat;
- begin
- GetProcedureAddress(_GetCharABCWidthsFloat, gdi32, 'GetCharABCWidthsFloat' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharABCWidthsFloat]
- end;
- end;
- var
- _GetClipBox: Pointer;
- function GetClipBox;
- begin
- GetProcedureAddress(_GetClipBox, gdi32, 'GetClipBox');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetClipBox]
- end;
- end;
- var
- _GetClipRgn: Pointer;
- function GetClipRgn;
- begin
- GetProcedureAddress(_GetClipRgn, gdi32, 'GetClipRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetClipRgn]
- end;
- end;
- var
- _GetMetaRgn: Pointer;
- function GetMetaRgn;
- begin
- GetProcedureAddress(_GetMetaRgn, gdi32, 'GetMetaRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetMetaRgn]
- end;
- end;
- var
- _GetCurrentObject: Pointer;
- function GetCurrentObject;
- begin
- GetProcedureAddress(_GetCurrentObject, gdi32, 'GetCurrentObject');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCurrentObject]
- end;
- end;
- var
- _GetCurrentPositionEx: Pointer;
- function GetCurrentPositionEx;
- begin
- GetProcedureAddress(_GetCurrentPositionEx, gdi32, 'GetCurrentPositionEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCurrentPositionEx]
- end;
- end;
- var
- _GetDeviceCaps: Pointer;
- function GetDeviceCaps;
- begin
- GetProcedureAddress(_GetDeviceCaps, gdi32, 'GetDeviceCaps');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetDeviceCaps]
- end;
- end;
- var
- _GetDIBits: Pointer;
- function GetDIBits;
- begin
- GetProcedureAddress(_GetDIBits, gdi32, 'GetDIBits');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetDIBits]
- end;
- end;
- var
- _GetFontData: Pointer;
- function GetFontData;
- begin
- GetProcedureAddress(_GetFontData, gdi32, 'GetFontData');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetFontData]
- end;
- end;
- var
- _GetGlyphOutlineA: Pointer;
- function GetGlyphOutlineA;
- begin
- GetProcedureAddress(_GetGlyphOutlineA, gdi32, 'GetGlyphOutlineA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetGlyphOutlineA]
- end;
- end;
- var
- _GetGlyphOutlineW: Pointer;
- function GetGlyphOutlineW;
- begin
- GetProcedureAddress(_GetGlyphOutlineW, gdi32, 'GetGlyphOutlineW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetGlyphOutlineW]
- end;
- end;
- var
- _GetGlyphOutline: Pointer;
- function GetGlyphOutline;
- begin
- GetProcedureAddress(_GetGlyphOutline, gdi32, 'GetGlyphOutline' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetGlyphOutline]
- end;
- end;
- var
- _GetGraphicsMode: Pointer;
- function GetGraphicsMode;
- begin
- GetProcedureAddress(_GetGraphicsMode, gdi32, 'GetGraphicsMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetGraphicsMode]
- end;
- end;
- var
- _GetMapMode: Pointer;
- function GetMapMode;
- begin
- GetProcedureAddress(_GetMapMode, gdi32, 'GetMapMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetMapMode]
- end;
- end;
- var
- _GetMetaFileBitsEx: Pointer;
- function GetMetaFileBitsEx;
- begin
- GetProcedureAddress(_GetMetaFileBitsEx, gdi32, 'GetMetaFileBitsEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetMetaFileBitsEx]
- end;
- end;
- var
- _GetMetaFileA: Pointer;
- function GetMetaFileA;
- begin
- GetProcedureAddress(_GetMetaFileA, gdi32, 'GetMetaFileA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetMetaFileA]
- end;
- end;
- var
- _GetMetaFileW: Pointer;
- function GetMetaFileW;
- begin
- GetProcedureAddress(_GetMetaFileW, gdi32, 'GetMetaFileW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetMetaFileW]
- end;
- end;
- var
- _GetMetaFile: Pointer;
- function GetMetaFile;
- begin
- GetProcedureAddress(_GetMetaFile, gdi32, 'GetMetaFile' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetMetaFile]
- end;
- end;
- var
- _GetNearestColor: Pointer;
- function GetNearestColor;
- begin
- GetProcedureAddress(_GetNearestColor, gdi32, 'GetNearestColor');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetNearestColor]
- end;
- end;
- var
- _GetNearestPaletteIndex: Pointer;
- function GetNearestPaletteIndex;
- begin
- GetProcedureAddress(_GetNearestPaletteIndex, gdi32, 'GetNearestPaletteIndex');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetNearestPaletteIndex]
- end;
- end;
- var
- _GetObjectType: Pointer;
- function GetObjectType;
- begin
- GetProcedureAddress(_GetObjectType, gdi32, 'GetObjectType');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetObjectType]
- end;
- end;
- var
- _GetOutlineTextMetricsA: Pointer;
- function GetOutlineTextMetricsA;
- begin
- GetProcedureAddress(_GetOutlineTextMetricsA, gdi32, 'GetOutlineTextMetricsA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetOutlineTextMetricsA]
- end;
- end;
- var
- _GetOutlineTextMetricsW: Pointer;
- function GetOutlineTextMetricsW;
- begin
- GetProcedureAddress(_GetOutlineTextMetricsW, gdi32, 'GetOutlineTextMetricsW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetOutlineTextMetricsW]
- end;
- end;
- var
- _GetOutlineTextMetrics: Pointer;
- function GetOutlineTextMetrics;
- begin
- GetProcedureAddress(_GetOutlineTextMetrics, gdi32, 'GetOutlineTextMetrics' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetOutlineTextMetrics]
- end;
- end;
- var
- _GetPaletteEntries: Pointer;
- function GetPaletteEntries;
- begin
- GetProcedureAddress(_GetPaletteEntries, gdi32, 'GetPaletteEntries');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetPaletteEntries]
- end;
- end;
- var
- _GetPixel: Pointer;
- function GetPixel;
- begin
- GetProcedureAddress(_GetPixel, gdi32, 'GetPixel');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetPixel]
- end;
- end;
- var
- _GetPixelFormat: Pointer;
- function GetPixelFormat;
- begin
- GetProcedureAddress(_GetPixelFormat, gdi32, 'GetPixelFormat');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetPixelFormat]
- end;
- end;
- var
- _GetPolyFillMode: Pointer;
- function GetPolyFillMode;
- begin
- GetProcedureAddress(_GetPolyFillMode, gdi32, 'GetPolyFillMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetPolyFillMode]
- end;
- end;
- var
- _GetRasterizerCaps: Pointer;
- function GetRasterizerCaps;
- begin
- GetProcedureAddress(_GetRasterizerCaps, gdi32, 'GetRasterizerCaps');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetRasterizerCaps]
- end;
- end;
- var
- _GetRandomRgn: Pointer;
- function GetRandomRgn;
- begin
- GetProcedureAddress(_GetRandomRgn, gdi32, 'GetRandomRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetRandomRgn]
- end;
- end;
- var
- _GetRegionData: Pointer;
- function GetRegionData;
- begin
- GetProcedureAddress(_GetRegionData, gdi32, 'GetRegionData');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetRegionData]
- end;
- end;
- var
- _GetRgnBox: Pointer;
- function GetRgnBox;
- begin
- GetProcedureAddress(_GetRgnBox, gdi32, 'GetRgnBox');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetRgnBox]
- end;
- end;
- var
- _GetStockObject: Pointer;
- function GetStockObject;
- begin
- GetProcedureAddress(_GetStockObject, gdi32, 'GetStockObject');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetStockObject]
- end;
- end;
- var
- _GetStretchBltMode: Pointer;
- function GetStretchBltMode;
- begin
- GetProcedureAddress(_GetStretchBltMode, gdi32, 'GetStretchBltMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetStretchBltMode]
- end;
- end;
- var
- _GetSystemPaletteEntries: Pointer;
- function GetSystemPaletteEntries;
- begin
- GetProcedureAddress(_GetSystemPaletteEntries, gdi32, 'GetSystemPaletteEntries');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetSystemPaletteEntries]
- end;
- end;
- var
- _GetSystemPaletteUse: Pointer;
- function GetSystemPaletteUse;
- begin
- GetProcedureAddress(_GetSystemPaletteUse, gdi32, 'GetSystemPaletteUse');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetSystemPaletteUse]
- end;
- end;
- var
- _GetTextCharacterExtra: Pointer;
- function GetTextCharacterExtra;
- begin
- GetProcedureAddress(_GetTextCharacterExtra, gdi32, 'GetTextCharacterExtra');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextCharacterExtra]
- end;
- end;
- var
- _GetTextAlign: Pointer;
- function GetTextAlign;
- begin
- GetProcedureAddress(_GetTextAlign, gdi32, 'GetTextAlign');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextAlign]
- end;
- end;
- var
- _GetTextColor: Pointer;
- function GetTextColor;
- begin
- GetProcedureAddress(_GetTextColor, gdi32, 'GetTextColor');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextColor]
- end;
- end;
- var
- _GetTextExtentPointA: Pointer;
- function GetTextExtentPointA;
- begin
- GetProcedureAddress(_GetTextExtentPointA, gdi32, 'GetTextExtentPointA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentPointA]
- end;
- end;
- var
- _GetTextExtentPointW: Pointer;
- function GetTextExtentPointW;
- begin
- GetProcedureAddress(_GetTextExtentPointW, gdi32, 'GetTextExtentPointW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentPointW]
- end;
- end;
- var
- _GetTextExtentPoint: Pointer;
- function GetTextExtentPoint;
- begin
- GetProcedureAddress(_GetTextExtentPoint, gdi32, 'GetTextExtentPoint' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentPoint]
- end;
- end;
- var
- _GetTextExtentPoint32A: Pointer;
- function GetTextExtentPoint32A;
- begin
- GetProcedureAddress(_GetTextExtentPoint32A, gdi32, 'GetTextExtentPoint32A');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentPoint32A]
- end;
- end;
- var
- _GetTextExtentPoint32W: Pointer;
- function GetTextExtentPoint32W;
- begin
- GetProcedureAddress(_GetTextExtentPoint32W, gdi32, 'GetTextExtentPoint32W');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentPoint32W]
- end;
- end;
- var
- _GetTextExtentPoint32: Pointer;
- function GetTextExtentPoint32;
- begin
- GetProcedureAddress(_GetTextExtentPoint32, gdi32, 'GetTextExtentPoint32' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentPoint32]
- end;
- end;
- var
- _GetTextExtentExPointA: Pointer;
- function GetTextExtentExPointA;
- begin
- GetProcedureAddress(_GetTextExtentExPointA, gdi32, 'GetTextExtentExPointA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentExPointA]
- end;
- end;
- var
- _GetTextExtentExPointW: Pointer;
- function GetTextExtentExPointW;
- begin
- GetProcedureAddress(_GetTextExtentExPointW, gdi32, 'GetTextExtentExPointW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentExPointW]
- end;
- end;
- var
- _GetTextExtentExPoint: Pointer;
- function GetTextExtentExPoint;
- begin
- GetProcedureAddress(_GetTextExtentExPoint, gdi32, 'GetTextExtentExPoint' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentExPoint]
- end;
- end;
- var
- _GetTextCharset: Pointer;
- function GetTextCharset;
- begin
- GetProcedureAddress(_GetTextCharset, gdi32, 'GetTextCharset');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextCharset]
- end;
- end;
- var
- _GetTextCharsetInfo: Pointer;
- function GetTextCharsetInfo;
- begin
- GetProcedureAddress(_GetTextCharsetInfo, gdi32, 'GetTextCharsetInfo');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextCharsetInfo]
- end;
- end;
- var
- _TranslateCharsetInfo: Pointer;
- function TranslateCharsetInfo;
- begin
- GetProcedureAddress(_TranslateCharsetInfo, gdi32, 'TranslateCharsetInfo');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_TranslateCharsetInfo]
- end;
- end;
- var
- _GetFontLanguageInfo: Pointer;
- function GetFontLanguageInfo;
- begin
- GetProcedureAddress(_GetFontLanguageInfo, gdi32, 'GetFontLanguageInfo');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetFontLanguageInfo]
- end;
- end;
- var
- _GetCharacterPlacementA: Pointer;
- function GetCharacterPlacementA;
- begin
- GetProcedureAddress(_GetCharacterPlacementA, gdi32, 'GetCharacterPlacementA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharacterPlacementA]
- end;
- end;
- var
- _GetCharacterPlacementW: Pointer;
- function GetCharacterPlacementW;
- begin
- GetProcedureAddress(_GetCharacterPlacementW, gdi32, 'GetCharacterPlacementW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharacterPlacementW]
- end;
- end;
- var
- _GetCharacterPlacement: Pointer;
- function GetCharacterPlacement;
- begin
- GetProcedureAddress(_GetCharacterPlacement, gdi32, 'GetCharacterPlacement' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharacterPlacement]
- end;
- end;
- var
- _GetFontUnicodeRanges: Pointer;
- function GetFontUnicodeRanges;
- begin
- GetProcedureAddress(_GetFontUnicodeRanges, gdi32, 'GetFontUnicodeRanges');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetFontUnicodeRanges]
- end;
- end;
- var
- _GetGlyphIndicesA: Pointer;
- function GetGlyphIndicesA;
- begin
- GetProcedureAddress(_GetGlyphIndicesA, gdi32, 'GetGlyphIndicesA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetGlyphIndicesA]
- end;
- end;
- var
- _GetGlyphIndicesW: Pointer;
- function GetGlyphIndicesW;
- begin
- GetProcedureAddress(_GetGlyphIndicesW, gdi32, 'GetGlyphIndicesW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetGlyphIndicesW]
- end;
- end;
- var
- _GetGlyphIndices: Pointer;
- function GetGlyphIndices;
- begin
- GetProcedureAddress(_GetGlyphIndices, gdi32, 'GetGlyphIndices' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetGlyphIndices]
- end;
- end;
- var
- _GetTextExtentPointI: Pointer;
- function GetTextExtentPointI;
- begin
- GetProcedureAddress(_GetTextExtentPointI, gdi32, 'GetTextExtentPointI');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentPointI]
- end;
- end;
- var
- _GetTextExtentExPointI: Pointer;
- function GetTextExtentExPointI;
- begin
- GetProcedureAddress(_GetTextExtentExPointI, gdi32, 'GetTextExtentExPointI');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextExtentExPointI]
- end;
- end;
- var
- _GetCharWidthI: Pointer;
- function GetCharWidthI;
- begin
- GetProcedureAddress(_GetCharWidthI, gdi32, 'GetCharWidthI');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharWidthI]
- end;
- end;
- var
- _GetCharABCWidthsI: Pointer;
- function GetCharABCWidthsI;
- begin
- GetProcedureAddress(_GetCharABCWidthsI, gdi32, 'GetCharABCWidthsI');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetCharABCWidthsI]
- end;
- end;
- var
- _AddFontResourceExA: Pointer;
- function AddFontResourceExA;
- begin
- GetProcedureAddress(_AddFontResourceExA, gdi32, 'AddFontResourceExA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AddFontResourceExA]
- end;
- end;
- var
- _AddFontResourceExW: Pointer;
- function AddFontResourceExW;
- begin
- GetProcedureAddress(_AddFontResourceExW, gdi32, 'AddFontResourceExW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AddFontResourceExW]
- end;
- end;
- var
- _AddFontResourceEx: Pointer;
- function AddFontResourceEx;
- begin
- GetProcedureAddress(_AddFontResourceEx, gdi32, 'AddFontResourceEx' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AddFontResourceEx]
- end;
- end;
- var
- _RemoveFontResourceExA: Pointer;
- function RemoveFontResourceExA;
- begin
- GetProcedureAddress(_RemoveFontResourceExA, gdi32, 'RemoveFontResourceExA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RemoveFontResourceExA]
- end;
- end;
- var
- _RemoveFontResourceExW: Pointer;
- function RemoveFontResourceExW;
- begin
- GetProcedureAddress(_RemoveFontResourceExW, gdi32, 'RemoveFontResourceExW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RemoveFontResourceExW]
- end;
- end;
- var
- _RemoveFontResourceEx: Pointer;
- function RemoveFontResourceEx;
- begin
- GetProcedureAddress(_RemoveFontResourceEx, gdi32, 'RemoveFontResourceEx' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RemoveFontResourceEx]
- end;
- end;
- var
- _AddFontMemResourceEx: Pointer;
- function AddFontMemResourceEx;
- begin
- GetProcedureAddress(_AddFontMemResourceEx, gdi32, 'AddFontMemResourceEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AddFontMemResourceEx]
- end;
- end;
- var
- _RemoveFontMemResourceEx: Pointer;
- function RemoveFontMemResourceEx;
- begin
- GetProcedureAddress(_RemoveFontMemResourceEx, gdi32, 'RemoveFontMemResourceEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RemoveFontMemResourceEx]
- end;
- end;
- var
- _CreateFontIndirectExA: Pointer;
- function CreateFontIndirectExA;
- begin
- GetProcedureAddress(_CreateFontIndirectExA, gdi32, 'CreateFontIndirectExA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateFontIndirectExA]
- end;
- end;
- var
- _CreateFontIndirectExW: Pointer;
- function CreateFontIndirectExW;
- begin
- GetProcedureAddress(_CreateFontIndirectExW, gdi32, 'CreateFontIndirectExW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateFontIndirectExW]
- end;
- end;
- var
- _CreateFontIndirectEx: Pointer;
- function CreateFontIndirectEx;
- begin
- GetProcedureAddress(_CreateFontIndirectEx, gdi32, 'CreateFontIndirectEx' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateFontIndirectEx]
- end;
- end;
- var
- _GetViewportExtEx: Pointer;
- function GetViewportExtEx;
- begin
- GetProcedureAddress(_GetViewportExtEx, gdi32, 'GetViewportExtEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetViewportExtEx]
- end;
- end;
- var
- _GetViewportOrgEx: Pointer;
- function GetViewportOrgEx;
- begin
- GetProcedureAddress(_GetViewportOrgEx, gdi32, 'GetViewportOrgEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetViewportOrgEx]
- end;
- end;
- var
- _GetWindowExtEx: Pointer;
- function GetWindowExtEx;
- begin
- GetProcedureAddress(_GetWindowExtEx, gdi32, 'GetWindowExtEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetWindowExtEx]
- end;
- end;
- var
- _GetWindowOrgEx: Pointer;
- function GetWindowOrgEx;
- begin
- GetProcedureAddress(_GetWindowOrgEx, gdi32, 'GetWindowOrgEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetWindowOrgEx]
- end;
- end;
- var
- _IntersectClipRect: Pointer;
- function IntersectClipRect;
- begin
- GetProcedureAddress(_IntersectClipRect, gdi32, 'IntersectClipRect');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_IntersectClipRect]
- end;
- end;
- var
- _InvertRgn: Pointer;
- function InvertRgn;
- begin
- GetProcedureAddress(_InvertRgn, gdi32, 'InvertRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_InvertRgn]
- end;
- end;
- var
- _LineDDA: Pointer;
- function LineDDA;
- begin
- GetProcedureAddress(_LineDDA, gdi32, 'LineDDA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_LineDDA]
- end;
- end;
- var
- _LineTo: Pointer;
- function LineTo;
- begin
- GetProcedureAddress(_LineTo, gdi32, 'LineTo');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_LineTo]
- end;
- end;
- var
- _MaskBlt: Pointer;
- function MaskBlt;
- begin
- GetProcedureAddress(_MaskBlt, gdi32, 'MaskBlt');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_MaskBlt]
- end;
- end;
- var
- _PlgBlt: Pointer;
- function PlgBlt;
- begin
- GetProcedureAddress(_PlgBlt, gdi32, 'PlgBlt');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PlgBlt]
- end;
- end;
- var
- _OffsetClipRgn: Pointer;
- function OffsetClipRgn;
- begin
- GetProcedureAddress(_OffsetClipRgn, gdi32, 'OffsetClipRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_OffsetClipRgn]
- end;
- end;
- var
- _OffsetRgn: Pointer;
- function OffsetRgn;
- begin
- GetProcedureAddress(_OffsetRgn, gdi32, 'OffsetRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_OffsetRgn]
- end;
- end;
- var
- _PatBlt: Pointer;
- function PatBlt;
- begin
- GetProcedureAddress(_PatBlt, gdi32, 'PatBlt');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PatBlt]
- end;
- end;
- var
- _Pie: Pointer;
- function Pie;
- begin
- GetProcedureAddress(_Pie, gdi32, 'Pie');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_Pie]
- end;
- end;
- var
- _PlayMetaFile: Pointer;
- function PlayMetaFile;
- begin
- GetProcedureAddress(_PlayMetaFile, gdi32, 'PlayMetaFile');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PlayMetaFile]
- end;
- end;
- var
- _PaintRgn: Pointer;
- function PaintRgn;
- begin
- GetProcedureAddress(_PaintRgn, gdi32, 'PaintRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PaintRgn]
- end;
- end;
- var
- _PolyPolygon: Pointer;
- function PolyPolygon;
- begin
- GetProcedureAddress(_PolyPolygon, gdi32, 'PolyPolygon');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PolyPolygon]
- end;
- end;
- var
- _PtInRegion: Pointer;
- function PtInRegion;
- begin
- GetProcedureAddress(_PtInRegion, gdi32, 'PtInRegion');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PtInRegion]
- end;
- end;
- var
- _PtVisible: Pointer;
- function PtVisible;
- begin
- GetProcedureAddress(_PtVisible, gdi32, 'PtVisible');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PtVisible]
- end;
- end;
- var
- _RectInRegion: Pointer;
- function RectInRegion;
- begin
- GetProcedureAddress(_RectInRegion, gdi32, 'RectInRegion');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RectInRegion]
- end;
- end;
- var
- _RectVisible: Pointer;
- function RectVisible;
- begin
- GetProcedureAddress(_RectVisible, gdi32, 'RectVisible');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RectVisible]
- end;
- end;
- var
- _Rectangle: Pointer;
- function Rectangle;
- begin
- GetProcedureAddress(_Rectangle, gdi32, 'Rectangle');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_Rectangle]
- end;
- end;
- var
- _RestoreDC: Pointer;
- function RestoreDC;
- begin
- GetProcedureAddress(_RestoreDC, gdi32, 'RestoreDC');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RestoreDC]
- end;
- end;
- var
- _ResetDCA: Pointer;
- function ResetDCA;
- begin
- GetProcedureAddress(_ResetDCA, gdi32, 'ResetDCA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ResetDCA]
- end;
- end;
- var
- _ResetDCW: Pointer;
- function ResetDCW;
- begin
- GetProcedureAddress(_ResetDCW, gdi32, 'ResetDCW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ResetDCW]
- end;
- end;
- var
- _ResetDC: Pointer;
- function ResetDC;
- begin
- GetProcedureAddress(_ResetDC, gdi32, 'ResetDC' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ResetDC]
- end;
- end;
- var
- _RealizePalette: Pointer;
- function RealizePalette;
- begin
- GetProcedureAddress(_RealizePalette, gdi32, 'RealizePalette');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RealizePalette]
- end;
- end;
- var
- _RemoveFontResourceA: Pointer;
- function RemoveFontResourceA;
- begin
- GetProcedureAddress(_RemoveFontResourceA, gdi32, 'RemoveFontResourceA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RemoveFontResourceA]
- end;
- end;
- var
- _RemoveFontResourceW: Pointer;
- function RemoveFontResourceW;
- begin
- GetProcedureAddress(_RemoveFontResourceW, gdi32, 'RemoveFontResourceW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RemoveFontResourceW]
- end;
- end;
- var
- _RemoveFontResource: Pointer;
- function RemoveFontResource;
- begin
- GetProcedureAddress(_RemoveFontResource, gdi32, 'RemoveFontResource' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RemoveFontResource]
- end;
- end;
- var
- _RoundRect: Pointer;
- function RoundRect;
- begin
- GetProcedureAddress(_RoundRect, gdi32, 'RoundRect');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_RoundRect]
- end;
- end;
- var
- _ResizePalette: Pointer;
- function ResizePalette;
- begin
- GetProcedureAddress(_ResizePalette, gdi32, 'ResizePalette');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ResizePalette]
- end;
- end;
- var
- _SaveDC: Pointer;
- function SaveDC;
- begin
- GetProcedureAddress(_SaveDC, gdi32, 'SaveDC');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SaveDC]
- end;
- end;
- var
- _SelectClipRgn: Pointer;
- function SelectClipRgn;
- begin
- GetProcedureAddress(_SelectClipRgn, gdi32, 'SelectClipRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SelectClipRgn]
- end;
- end;
- var
- _ExtSelectClipRgn: Pointer;
- function ExtSelectClipRgn;
- begin
- GetProcedureAddress(_ExtSelectClipRgn, gdi32, 'ExtSelectClipRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ExtSelectClipRgn]
- end;
- end;
- var
- _SetMetaRgn: Pointer;
- function SetMetaRgn;
- begin
- GetProcedureAddress(_SetMetaRgn, gdi32, 'SetMetaRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetMetaRgn]
- end;
- end;
- var
- _SelectObject: Pointer;
- function SelectObject;
- begin
- GetProcedureAddress(_SelectObject, gdi32, 'SelectObject');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SelectObject]
- end;
- end;
- var
- _SelectPalette: Pointer;
- function SelectPalette;
- begin
- GetProcedureAddress(_SelectPalette, gdi32, 'SelectPalette');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SelectPalette]
- end;
- end;
- var
- _SetBkColor: Pointer;
- function SetBkColor;
- begin
- GetProcedureAddress(_SetBkColor, gdi32, 'SetBkColor');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetBkColor]
- end;
- end;
- var
- _SetDCBrushColor: Pointer;
- function SetDCBrushColor;
- begin
- GetProcedureAddress(_SetDCBrushColor, gdi32, 'SetDCBrushColor');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetDCBrushColor]
- end;
- end;
- var
- _SetDCPenColor: Pointer;
- function SetDCPenColor;
- begin
- GetProcedureAddress(_SetDCPenColor, gdi32, 'SetDCPenColor');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetDCPenColor]
- end;
- end;
- var
- _SetBkMode: Pointer;
- function SetBkMode;
- begin
- GetProcedureAddress(_SetBkMode, gdi32, 'SetBkMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetBkMode]
- end;
- end;
- var
- _SetBitmapBits: Pointer;
- function SetBitmapBits;
- begin
- GetProcedureAddress(_SetBitmapBits, gdi32, 'SetBitmapBits');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetBitmapBits]
- end;
- end;
- var
- _SetBoundsRect: Pointer;
- function SetBoundsRect;
- begin
- GetProcedureAddress(_SetBoundsRect, gdi32, 'SetBoundsRect');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetBoundsRect]
- end;
- end;
- var
- _SetDIBits: Pointer;
- function SetDIBits;
- begin
- GetProcedureAddress(_SetDIBits, gdi32, 'SetDIBits');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetDIBits]
- end;
- end;
- var
- _SetDIBitsToDevice: Pointer;
- function SetDIBitsToDevice;
- begin
- GetProcedureAddress(_SetDIBitsToDevice, gdi32, 'SetDIBitsToDevice');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetDIBitsToDevice]
- end;
- end;
- var
- _SetMapperFlags: Pointer;
- function SetMapperFlags;
- begin
- GetProcedureAddress(_SetMapperFlags, gdi32, 'SetMapperFlags');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetMapperFlags]
- end;
- end;
- var
- _SetGraphicsMode: Pointer;
- function SetGraphicsMode;
- begin
- GetProcedureAddress(_SetGraphicsMode, gdi32, 'SetGraphicsMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetGraphicsMode]
- end;
- end;
- var
- _SetMapMode: Pointer;
- function SetMapMode;
- begin
- GetProcedureAddress(_SetMapMode, gdi32, 'SetMapMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetMapMode]
- end;
- end;
- var
- _SetLayout: Pointer;
- function SetLayout;
- begin
- GetProcedureAddress(_SetLayout, gdi32, 'SetLayout');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetLayout]
- end;
- end;
- var
- _GetLayout: Pointer;
- function GetLayout;
- begin
- GetProcedureAddress(_GetLayout, gdi32, 'GetLayout');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetLayout]
- end;
- end;
- var
- _SetMetaFileBitsEx: Pointer;
- function SetMetaFileBitsEx;
- begin
- GetProcedureAddress(_SetMetaFileBitsEx, gdi32, 'SetMetaFileBitsEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetMetaFileBitsEx]
- end;
- end;
- var
- _SetPaletteEntries: Pointer;
- function SetPaletteEntries;
- begin
- GetProcedureAddress(_SetPaletteEntries, gdi32, 'SetPaletteEntries');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetPaletteEntries]
- end;
- end;
- var
- _SetPixel: Pointer;
- function SetPixel;
- begin
- GetProcedureAddress(_SetPixel, gdi32, 'SetPixel');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetPixel]
- end;
- end;
- var
- _SetPixelV: Pointer;
- function SetPixelV;
- begin
- GetProcedureAddress(_SetPixelV, gdi32, 'SetPixelV');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetPixelV]
- end;
- end;
- var
- _SetPixelFormat: Pointer;
- function SetPixelFormat;
- begin
- GetProcedureAddress(_SetPixelFormat, gdi32, 'SetPixelFormat');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetPixelFormat]
- end;
- end;
- var
- _SetPolyFillMode: Pointer;
- function SetPolyFillMode;
- begin
- GetProcedureAddress(_SetPolyFillMode, gdi32, 'SetPolyFillMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetPolyFillMode]
- end;
- end;
- var
- _StretchBlt: Pointer;
- function StretchBlt;
- begin
- GetProcedureAddress(_StretchBlt, gdi32, 'StretchBlt');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_StretchBlt]
- end;
- end;
- var
- _SetRectRgn: Pointer;
- function SetRectRgn;
- begin
- GetProcedureAddress(_SetRectRgn, gdi32, 'SetRectRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetRectRgn]
- end;
- end;
- var
- _StretchDIBits: Pointer;
- function StretchDIBits;
- begin
- GetProcedureAddress(_StretchDIBits, gdi32, 'StretchDIBits');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_StretchDIBits]
- end;
- end;
- var
- _SetROP2: Pointer;
- function SetROP2;
- begin
- GetProcedureAddress(_SetROP2, gdi32, 'SetROP2');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetROP2]
- end;
- end;
- var
- _SetStretchBltMode: Pointer;
- function SetStretchBltMode;
- begin
- GetProcedureAddress(_SetStretchBltMode, gdi32, 'SetStretchBltMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetStretchBltMode]
- end;
- end;
- var
- _SetSystemPaletteUse: Pointer;
- function SetSystemPaletteUse;
- begin
- GetProcedureAddress(_SetSystemPaletteUse, gdi32, 'SetSystemPaletteUse');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetSystemPaletteUse]
- end;
- end;
- var
- _SetTextCharacterExtra: Pointer;
- function SetTextCharacterExtra;
- begin
- GetProcedureAddress(_SetTextCharacterExtra, gdi32, 'SetTextCharacterExtra');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetTextCharacterExtra]
- end;
- end;
- var
- _SetTextColor: Pointer;
- function SetTextColor;
- begin
- GetProcedureAddress(_SetTextColor, gdi32, 'SetTextColor');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetTextColor]
- end;
- end;
- var
- _SetTextAlign: Pointer;
- function SetTextAlign;
- begin
- GetProcedureAddress(_SetTextAlign, gdi32, 'SetTextAlign');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetTextAlign]
- end;
- end;
- var
- _SetTextJustification: Pointer;
- function SetTextJustification;
- begin
- GetProcedureAddress(_SetTextJustification, gdi32, 'SetTextJustification');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetTextJustification]
- end;
- end;
- var
- _UpdateColors: Pointer;
- function UpdateColors;
- begin
- GetProcedureAddress(_UpdateColors, gdi32, 'UpdateColors');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_UpdateColors]
- end;
- end;
- var
- _AlphaBlend: Pointer;
- function AlphaBlend;
- begin
- GetProcedureAddress(_AlphaBlend, msimg32, 'AlphaBlend');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AlphaBlend]
- end;
- end;
- var
- _TransparentBlt: Pointer;
- function TransparentBlt;
- begin
- GetProcedureAddress(_TransparentBlt, msimg32, 'TransparentBlt');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_TransparentBlt]
- end;
- end;
- var
- _GradientFill: Pointer;
- function GradientFill;
- begin
- GetProcedureAddress(_GradientFill, msimg32, 'GradientFill');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GradientFill]
- end;
- end;
- var
- _PlayMetaFileRecord: Pointer;
- function PlayMetaFileRecord;
- begin
- GetProcedureAddress(_PlayMetaFileRecord, gdi32, 'PlayMetaFileRecord');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PlayMetaFileRecord]
- end;
- end;
- var
- _EnumMetaFile: Pointer;
- function EnumMetaFile;
- begin
- GetProcedureAddress(_EnumMetaFile, gdi32, 'EnumMetaFile');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumMetaFile]
- end;
- end;
- var
- _CloseEnhMetaFile: Pointer;
- function CloseEnhMetaFile;
- begin
- GetProcedureAddress(_CloseEnhMetaFile, gdi32, 'CloseEnhMetaFile');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CloseEnhMetaFile]
- end;
- end;
- var
- _CopyEnhMetaFileA: Pointer;
- function CopyEnhMetaFileA;
- begin
- GetProcedureAddress(_CopyEnhMetaFileA, gdi32, 'CopyEnhMetaFileA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CopyEnhMetaFileA]
- end;
- end;
- var
- _CopyEnhMetaFileW: Pointer;
- function CopyEnhMetaFileW;
- begin
- GetProcedureAddress(_CopyEnhMetaFileW, gdi32, 'CopyEnhMetaFileW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CopyEnhMetaFileW]
- end;
- end;
- var
- _CopyEnhMetaFile: Pointer;
- function CopyEnhMetaFile;
- begin
- GetProcedureAddress(_CopyEnhMetaFile, gdi32, 'CopyEnhMetaFile' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CopyEnhMetaFile]
- end;
- end;
- var
- _CreateEnhMetaFileA: Pointer;
- function CreateEnhMetaFileA;
- begin
- GetProcedureAddress(_CreateEnhMetaFileA, gdi32, 'CreateEnhMetaFileA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateEnhMetaFileA]
- end;
- end;
- var
- _CreateEnhMetaFileW: Pointer;
- function CreateEnhMetaFileW;
- begin
- GetProcedureAddress(_CreateEnhMetaFileW, gdi32, 'CreateEnhMetaFileW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateEnhMetaFileW]
- end;
- end;
- var
- _CreateEnhMetaFile: Pointer;
- function CreateEnhMetaFile;
- begin
- GetProcedureAddress(_CreateEnhMetaFile, gdi32, 'CreateEnhMetaFile' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateEnhMetaFile]
- end;
- end;
- var
- _DeleteEnhMetaFile: Pointer;
- function DeleteEnhMetaFile;
- begin
- GetProcedureAddress(_DeleteEnhMetaFile, gdi32, 'DeleteEnhMetaFile');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DeleteEnhMetaFile]
- end;
- end;
- var
- _EnumEnhMetaFile: Pointer;
- function EnumEnhMetaFile;
- begin
- GetProcedureAddress(_EnumEnhMetaFile, gdi32, 'EnumEnhMetaFile');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumEnhMetaFile]
- end;
- end;
- var
- _GetEnhMetaFileA: Pointer;
- function GetEnhMetaFileA;
- begin
- GetProcedureAddress(_GetEnhMetaFileA, gdi32, 'GetEnhMetaFileA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetEnhMetaFileA]
- end;
- end;
- var
- _GetEnhMetaFileW: Pointer;
- function GetEnhMetaFileW;
- begin
- GetProcedureAddress(_GetEnhMetaFileW, gdi32, 'GetEnhMetaFileW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetEnhMetaFileW]
- end;
- end;
- var
- _GetEnhMetaFile: Pointer;
- function GetEnhMetaFile;
- begin
- GetProcedureAddress(_GetEnhMetaFile, gdi32, 'GetEnhMetaFile' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetEnhMetaFile]
- end;
- end;
- var
- _GetEnhMetaFileBits: Pointer;
- function GetEnhMetaFileBits;
- begin
- GetProcedureAddress(_GetEnhMetaFileBits, gdi32, 'GetEnhMetaFileBits');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetEnhMetaFileBits]
- end;
- end;
- var
- _GetEnhMetaFileDescriptionA: Pointer;
- function GetEnhMetaFileDescriptionA;
- begin
- GetProcedureAddress(_GetEnhMetaFileDescriptionA, gdi32, 'GetEnhMetaFileDescriptionA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetEnhMetaFileDescriptionA]
- end;
- end;
- var
- _GetEnhMetaFileDescriptionW: Pointer;
- function GetEnhMetaFileDescriptionW;
- begin
- GetProcedureAddress(_GetEnhMetaFileDescriptionW, gdi32, 'GetEnhMetaFileDescriptionW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetEnhMetaFileDescriptionW]
- end;
- end;
- var
- _GetEnhMetaFileDescription: Pointer;
- function GetEnhMetaFileDescription;
- begin
- GetProcedureAddress(_GetEnhMetaFileDescription, gdi32, 'GetEnhMetaFileDescription' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetEnhMetaFileDescription]
- end;
- end;
- var
- _GetEnhMetaFileHeader: Pointer;
- function GetEnhMetaFileHeader;
- begin
- GetProcedureAddress(_GetEnhMetaFileHeader, gdi32, 'GetEnhMetaFileHeader');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetEnhMetaFileHeader]
- end;
- end;
- var
- _GetEnhMetaFilePaletteEntries: Pointer;
- function GetEnhMetaFilePaletteEntries;
- begin
- GetProcedureAddress(_GetEnhMetaFilePaletteEntries, gdi32, 'GetEnhMetaFilePaletteEntries');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetEnhMetaFilePaletteEntries]
- end;
- end;
- var
- _GetEnhMetaFilePixelFormat: Pointer;
- function GetEnhMetaFilePixelFormat;
- begin
- GetProcedureAddress(_GetEnhMetaFilePixelFormat, gdi32, 'GetEnhMetaFilePixelFormat');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetEnhMetaFilePixelFormat]
- end;
- end;
- var
- _GetWinMetaFileBits: Pointer;
- function GetWinMetaFileBits;
- begin
- GetProcedureAddress(_GetWinMetaFileBits, gdi32, 'GetWinMetaFileBits');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetWinMetaFileBits]
- end;
- end;
- var
- _PlayEnhMetaFile: Pointer;
- function PlayEnhMetaFile;
- begin
- GetProcedureAddress(_PlayEnhMetaFile, gdi32, 'PlayEnhMetaFile');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PlayEnhMetaFile]
- end;
- end;
- var
- _PlayEnhMetaFileRecord: Pointer;
- function PlayEnhMetaFileRecord;
- begin
- GetProcedureAddress(_PlayEnhMetaFileRecord, gdi32, 'PlayEnhMetaFileRecord');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PlayEnhMetaFileRecord]
- end;
- end;
- var
- _SetEnhMetaFileBits: Pointer;
- function SetEnhMetaFileBits;
- begin
- GetProcedureAddress(_SetEnhMetaFileBits, gdi32, 'SetEnhMetaFileBits');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetEnhMetaFileBits]
- end;
- end;
- var
- _SetWinMetaFileBits: Pointer;
- function SetWinMetaFileBits;
- begin
- GetProcedureAddress(_SetWinMetaFileBits, gdi32, 'SetWinMetaFileBits');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetWinMetaFileBits]
- end;
- end;
- var
- _GdiComment: Pointer;
- function GdiComment;
- begin
- GetProcedureAddress(_GdiComment, gdi32, 'GdiComment');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GdiComment]
- end;
- end;
- var
- _GetTextMetricsA: Pointer;
- function GetTextMetricsA;
- begin
- GetProcedureAddress(_GetTextMetricsA, gdi32, 'GetTextMetricsA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextMetricsA]
- end;
- end;
- var
- _GetTextMetricsW: Pointer;
- function GetTextMetricsW;
- begin
- GetProcedureAddress(_GetTextMetricsW, gdi32, 'GetTextMetricsW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextMetricsW]
- end;
- end;
- var
- _GetTextMetrics: Pointer;
- function GetTextMetrics;
- begin
- GetProcedureAddress(_GetTextMetrics, gdi32, 'GetTextMetrics' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextMetrics]
- end;
- end;
- var
- _AngleArc: Pointer;
- function AngleArc;
- begin
- GetProcedureAddress(_AngleArc, gdi32, 'AngleArc');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AngleArc]
- end;
- end;
- var
- _PolyPolyline: Pointer;
- function PolyPolyline;
- begin
- GetProcedureAddress(_PolyPolyline, gdi32, 'PolyPolyline');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PolyPolyline]
- end;
- end;
- var
- _GetWorldTransform: Pointer;
- function GetWorldTransform;
- begin
- GetProcedureAddress(_GetWorldTransform, gdi32, 'GetWorldTransform');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetWorldTransform]
- end;
- end;
- var
- _SetWorldTransform: Pointer;
- function SetWorldTransform;
- begin
- GetProcedureAddress(_SetWorldTransform, gdi32, 'SetWorldTransform');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetWorldTransform]
- end;
- end;
- var
- _ModifyWorldTransform: Pointer;
- function ModifyWorldTransform;
- begin
- GetProcedureAddress(_ModifyWorldTransform, gdi32, 'ModifyWorldTransform');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ModifyWorldTransform]
- end;
- end;
- var
- _CombineTransform: Pointer;
- function CombineTransform;
- begin
- GetProcedureAddress(_CombineTransform, gdi32, 'CombineTransform');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CombineTransform]
- end;
- end;
- var
- _CreateDIBSection: Pointer;
- function CreateDIBSection;
- begin
- GetProcedureAddress(_CreateDIBSection, gdi32, 'CreateDIBSection');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateDIBSection]
- end;
- end;
- var
- _GetDIBColorTable: Pointer;
- function GetDIBColorTable;
- begin
- GetProcedureAddress(_GetDIBColorTable, gdi32, 'GetDIBColorTable');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetDIBColorTable]
- end;
- end;
- var
- _SetDIBColorTable: Pointer;
- function SetDIBColorTable;
- begin
- GetProcedureAddress(_SetDIBColorTable, gdi32, 'SetDIBColorTable');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetDIBColorTable]
- end;
- end;
- var
- _SetColorAdjustment: Pointer;
- function SetColorAdjustment;
- begin
- GetProcedureAddress(_SetColorAdjustment, gdi32, 'SetColorAdjustment');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetColorAdjustment]
- end;
- end;
- var
- _GetColorAdjustment: Pointer;
- function GetColorAdjustment;
- begin
- GetProcedureAddress(_GetColorAdjustment, gdi32, 'GetColorAdjustment');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetColorAdjustment]
- end;
- end;
- var
- _CreateHalftonePalette: Pointer;
- function CreateHalftonePalette;
- begin
- GetProcedureAddress(_CreateHalftonePalette, gdi32, 'CreateHalftonePalette');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateHalftonePalette]
- end;
- end;
- var
- _StartDocA: Pointer;
- function StartDocA;
- begin
- GetProcedureAddress(_StartDocA, gdi32, 'StartDocA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_StartDocA]
- end;
- end;
- var
- _StartDocW: Pointer;
- function StartDocW;
- begin
- GetProcedureAddress(_StartDocW, gdi32, 'StartDocW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_StartDocW]
- end;
- end;
- var
- _StartDoc: Pointer;
- function StartDoc;
- begin
- GetProcedureAddress(_StartDoc, gdi32, 'StartDoc' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_StartDoc]
- end;
- end;
- var
- __EndDoc: Pointer;
- function EndDoc;
- begin
- GetProcedureAddress(__EndDoc, gdi32, 'EndDoc');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [__EndDoc]
- end;
- end;
- var
- _StartPage: Pointer;
- function StartPage;
- begin
- GetProcedureAddress(_StartPage, gdi32, 'StartPage');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_StartPage]
- end;
- end;
- var
- _EndPage: Pointer;
- function EndPage;
- begin
- GetProcedureAddress(_EndPage, gdi32, 'EndPage');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EndPage]
- end;
- end;
- var
- __AbortDoc: Pointer;
- function AbortDoc;
- begin
- GetProcedureAddress(__AbortDoc, gdi32, 'AbortDoc');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [__AbortDoc]
- end;
- end;
- var
- _SetAbortProc: Pointer;
- function SetAbortProc;
- begin
- GetProcedureAddress(_SetAbortProc, gdi32, 'SetAbortProc');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetAbortProc]
- end;
- end;
- var
- _AbortPath: Pointer;
- function AbortPath;
- begin
- GetProcedureAddress(_AbortPath, gdi32, 'AbortPath');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_AbortPath]
- end;
- end;
- var
- _ArcTo: Pointer;
- function ArcTo;
- begin
- GetProcedureAddress(_ArcTo, gdi32, 'ArcTo');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ArcTo]
- end;
- end;
- var
- _BeginPath: Pointer;
- function BeginPath;
- begin
- GetProcedureAddress(_BeginPath, gdi32, 'BeginPath');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_BeginPath]
- end;
- end;
- var
- _CloseFigure: Pointer;
- function CloseFigure;
- begin
- GetProcedureAddress(_CloseFigure, gdi32, 'CloseFigure');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CloseFigure]
- end;
- end;
- var
- _EndPath: Pointer;
- function EndPath;
- begin
- GetProcedureAddress(_EndPath, gdi32, 'EndPath');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EndPath]
- end;
- end;
- var
- _FillPath: Pointer;
- function FillPath;
- begin
- GetProcedureAddress(_FillPath, gdi32, 'FillPath');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_FillPath]
- end;
- end;
- var
- _FlattenPath: Pointer;
- function FlattenPath;
- begin
- GetProcedureAddress(_FlattenPath, gdi32, 'FlattenPath');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_FlattenPath]
- end;
- end;
- var
- _GetPath: Pointer;
- function GetPath;
- begin
- GetProcedureAddress(_GetPath, gdi32, 'GetPath');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetPath]
- end;
- end;
- var
- _PathToRegion: Pointer;
- function PathToRegion;
- begin
- GetProcedureAddress(_PathToRegion, gdi32, 'PathToRegion');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PathToRegion]
- end;
- end;
- var
- _PolyDraw: Pointer;
- function PolyDraw;
- begin
- GetProcedureAddress(_PolyDraw, gdi32, 'PolyDraw');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PolyDraw]
- end;
- end;
- var
- _SelectClipPath: Pointer;
- function SelectClipPath;
- begin
- GetProcedureAddress(_SelectClipPath, gdi32, 'SelectClipPath');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SelectClipPath]
- end;
- end;
- var
- _SetArcDirection: Pointer;
- function SetArcDirection;
- begin
- GetProcedureAddress(_SetArcDirection, gdi32, 'SetArcDirection');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetArcDirection]
- end;
- end;
- var
- _SetMiterLimit: Pointer;
- function SetMiterLimit;
- begin
- GetProcedureAddress(_SetMiterLimit, gdi32, 'SetMiterLimit');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetMiterLimit]
- end;
- end;
- var
- _StrokeAndFillPath: Pointer;
- function StrokeAndFillPath;
- begin
- GetProcedureAddress(_StrokeAndFillPath, gdi32, 'StrokeAndFillPath');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_StrokeAndFillPath]
- end;
- end;
- var
- _StrokePath: Pointer;
- function StrokePath;
- begin
- GetProcedureAddress(_StrokePath, gdi32, 'StrokePath');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_StrokePath]
- end;
- end;
- var
- _WidenPath: Pointer;
- function WidenPath;
- begin
- GetProcedureAddress(_WidenPath, gdi32, 'WidenPath');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_WidenPath]
- end;
- end;
- var
- _ExtCreatePen: Pointer;
- function ExtCreatePen;
- begin
- GetProcedureAddress(_ExtCreatePen, gdi32, 'ExtCreatePen');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ExtCreatePen]
- end;
- end;
- var
- _GetMiterLimit: Pointer;
- function GetMiterLimit;
- begin
- GetProcedureAddress(_GetMiterLimit, gdi32, 'GetMiterLimit');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetMiterLimit]
- end;
- end;
- var
- _GetArcDirection: Pointer;
- function GetArcDirection;
- begin
- GetProcedureAddress(_GetArcDirection, gdi32, 'GetArcDirection');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetArcDirection]
- end;
- end;
- var
- _GetObjectA: Pointer;
- function GetObjectA;
- begin
- GetProcedureAddress(_GetObjectA, gdi32, 'GetObjectA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetObjectA]
- end;
- end;
- var
- _GetObjectW: Pointer;
- function GetObjectW;
- begin
- GetProcedureAddress(_GetObjectW, gdi32, 'GetObjectW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetObjectW]
- end;
- end;
- var
- _GetObject: Pointer;
- function GetObject;
- begin
- GetProcedureAddress(_GetObject, gdi32, 'GetObject' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetObject]
- end;
- end;
- var
- _MoveToEx: Pointer;
- function MoveToEx;
- begin
- GetProcedureAddress(_MoveToEx, gdi32, 'MoveToEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_MoveToEx]
- end;
- end;
- var
- _TextOutA: Pointer;
- function TextOutA;
- begin
- GetProcedureAddress(_TextOutA, gdi32, 'TextOutA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_TextOutA]
- end;
- end;
- var
- _TextOutW: Pointer;
- function TextOutW;
- begin
- GetProcedureAddress(_TextOutW, gdi32, 'TextOutW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_TextOutW]
- end;
- end;
- var
- _TextOut: Pointer;
- function TextOut;
- begin
- GetProcedureAddress(_TextOut, gdi32, 'TextOut' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_TextOut]
- end;
- end;
- var
- _ExtTextOutA: Pointer;
- function ExtTextOutA;
- begin
- GetProcedureAddress(_ExtTextOutA, gdi32, 'ExtTextOutA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ExtTextOutA]
- end;
- end;
- var
- _ExtTextOutW: Pointer;
- function ExtTextOutW;
- begin
- GetProcedureAddress(_ExtTextOutW, gdi32, 'ExtTextOutW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ExtTextOutW]
- end;
- end;
- var
- _ExtTextOut: Pointer;
- function ExtTextOut;
- begin
- GetProcedureAddress(_ExtTextOut, gdi32, 'ExtTextOut' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ExtTextOut]
- end;
- end;
- var
- _PolyTextOutA: Pointer;
- function PolyTextOutA;
- begin
- GetProcedureAddress(_PolyTextOutA, gdi32, 'PolyTextOutA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PolyTextOutA]
- end;
- end;
- var
- _PolyTextOutW: Pointer;
- function PolyTextOutW;
- begin
- GetProcedureAddress(_PolyTextOutW, gdi32, 'PolyTextOutW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PolyTextOutW]
- end;
- end;
- var
- _PolyTextOut: Pointer;
- function PolyTextOut;
- begin
- GetProcedureAddress(_PolyTextOut, gdi32, 'PolyTextOut' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PolyTextOut]
- end;
- end;
- var
- _CreatePolygonRgn: Pointer;
- function CreatePolygonRgn;
- begin
- GetProcedureAddress(_CreatePolygonRgn, gdi32, 'CreatePolygonRgn');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreatePolygonRgn]
- end;
- end;
- var
- _DPtoLP: Pointer;
- function DPtoLP;
- begin
- GetProcedureAddress(_DPtoLP, gdi32, 'DPtoLP');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DPtoLP]
- end;
- end;
- var
- _LPtoDP: Pointer;
- function LPtoDP;
- begin
- GetProcedureAddress(_LPtoDP, gdi32, 'LPtoDP');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_LPtoDP]
- end;
- end;
- var
- _Polygon: Pointer;
- function Polygon;
- begin
- GetProcedureAddress(_Polygon, gdi32, 'Polygon');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_Polygon]
- end;
- end;
- var
- _Polyline: Pointer;
- function Polyline;
- begin
- GetProcedureAddress(_Polyline, gdi32, 'Polyline');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_Polyline]
- end;
- end;
- var
- _PolyBezier: Pointer;
- function PolyBezier;
- begin
- GetProcedureAddress(_PolyBezier, gdi32, 'PolyBezier');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PolyBezier]
- end;
- end;
- var
- _PolyBezierTo: Pointer;
- function PolyBezierTo;
- begin
- GetProcedureAddress(_PolyBezierTo, gdi32, 'PolyBezierTo');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PolyBezierTo]
- end;
- end;
- var
- _PolylineTo: Pointer;
- function PolylineTo;
- begin
- GetProcedureAddress(_PolylineTo, gdi32, 'PolylineTo');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_PolylineTo]
- end;
- end;
- var
- _SetViewportExtEx: Pointer;
- function SetViewportExtEx;
- begin
- GetProcedureAddress(_SetViewportExtEx, gdi32, 'SetViewportExtEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetViewportExtEx]
- end;
- end;
- var
- _SetViewportOrgEx: Pointer;
- function SetViewportOrgEx;
- begin
- GetProcedureAddress(_SetViewportOrgEx, gdi32, 'SetViewportOrgEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetViewportOrgEx]
- end;
- end;
- var
- _SetWindowExtEx: Pointer;
- function SetWindowExtEx;
- begin
- GetProcedureAddress(_SetWindowExtEx, gdi32, 'SetWindowExtEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetWindowExtEx]
- end;
- end;
- var
- _SetWindowOrgEx: Pointer;
- function SetWindowOrgEx;
- begin
- GetProcedureAddress(_SetWindowOrgEx, gdi32, 'SetWindowOrgEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetWindowOrgEx]
- end;
- end;
- var
- _OffsetViewportOrgEx: Pointer;
- function OffsetViewportOrgEx;
- begin
- GetProcedureAddress(_OffsetViewportOrgEx, gdi32, 'OffsetViewportOrgEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_OffsetViewportOrgEx]
- end;
- end;
- var
- _OffsetWindowOrgEx: Pointer;
- function OffsetWindowOrgEx;
- begin
- GetProcedureAddress(_OffsetWindowOrgEx, gdi32, 'OffsetWindowOrgEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_OffsetWindowOrgEx]
- end;
- end;
- var
- _ScaleViewportExtEx: Pointer;
- function ScaleViewportExtEx;
- begin
- GetProcedureAddress(_ScaleViewportExtEx, gdi32, 'ScaleViewportExtEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ScaleViewportExtEx]
- end;
- end;
- var
- _ScaleWindowExtEx: Pointer;
- function ScaleWindowExtEx;
- begin
- GetProcedureAddress(_ScaleWindowExtEx, gdi32, 'ScaleWindowExtEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ScaleWindowExtEx]
- end;
- end;
- var
- _SetBitmapDimensionEx: Pointer;
- function SetBitmapDimensionEx;
- begin
- GetProcedureAddress(_SetBitmapDimensionEx, gdi32, 'SetBitmapDimensionEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetBitmapDimensionEx]
- end;
- end;
- var
- _SetBrushOrgEx: Pointer;
- function SetBrushOrgEx;
- begin
- GetProcedureAddress(_SetBrushOrgEx, gdi32, 'SetBrushOrgEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetBrushOrgEx]
- end;
- end;
- var
- _GetTextFaceA: Pointer;
- function GetTextFaceA;
- begin
- GetProcedureAddress(_GetTextFaceA, gdi32, 'GetTextFaceA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextFaceA]
- end;
- end;
- var
- _GetTextFaceW: Pointer;
- function GetTextFaceW;
- begin
- GetProcedureAddress(_GetTextFaceW, gdi32, 'GetTextFaceW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextFaceW]
- end;
- end;
- var
- _GetTextFace: Pointer;
- function GetTextFace;
- begin
- GetProcedureAddress(_GetTextFace, gdi32, 'GetTextFace' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetTextFace]
- end;
- end;
- var
- _GetKerningPairsA: Pointer;
- function GetKerningPairsA;
- begin
- GetProcedureAddress(_GetKerningPairsA, gdi32, 'GetKerningPairsA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetKerningPairsA]
- end;
- end;
- var
- _GetKerningPairsW: Pointer;
- function GetKerningPairsW;
- begin
- GetProcedureAddress(_GetKerningPairsW, gdi32, 'GetKerningPairsW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetKerningPairsW]
- end;
- end;
- var
- _GetKerningPairs: Pointer;
- function GetKerningPairs;
- begin
- GetProcedureAddress(_GetKerningPairs, gdi32, 'GetKerningPairs' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetKerningPairs]
- end;
- end;
- var
- _GetDCOrgEx: Pointer;
- function GetDCOrgEx;
- begin
- GetProcedureAddress(_GetDCOrgEx, gdi32, 'GetDCOrgEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetDCOrgEx]
- end;
- end;
- var
- _FixBrushOrgEx: Pointer;
- function FixBrushOrgEx;
- begin
- GetProcedureAddress(_FixBrushOrgEx, gdi32, 'FixBrushOrgEx');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_FixBrushOrgEx]
- end;
- end;
- var
- _UnrealizeObject: Pointer;
- function UnrealizeObject;
- begin
- GetProcedureAddress(_UnrealizeObject, gdi32, 'UnrealizeObject');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_UnrealizeObject]
- end;
- end;
- var
- _GdiFlush: Pointer;
- function GdiFlush;
- begin
- GetProcedureAddress(_GdiFlush, gdi32, 'GdiFlush');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GdiFlush]
- end;
- end;
- var
- _GdiSetBatchLimit: Pointer;
- function GdiSetBatchLimit;
- begin
- GetProcedureAddress(_GdiSetBatchLimit, gdi32, 'GdiSetBatchLimit');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GdiSetBatchLimit]
- end;
- end;
- var
- _GdiGetBatchLimit: Pointer;
- function GdiGetBatchLimit;
- begin
- GetProcedureAddress(_GdiGetBatchLimit, gdi32, 'GdiGetBatchLimit');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GdiGetBatchLimit]
- end;
- end;
- var
- _SetICMMode: Pointer;
- function SetICMMode;
- begin
- GetProcedureAddress(_SetICMMode, gdi32, 'SetICMMode');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetICMMode]
- end;
- end;
- var
- _CheckColorsInGamut: Pointer;
- function CheckColorsInGamut;
- begin
- GetProcedureAddress(_CheckColorsInGamut, gdi32, 'CheckColorsInGamut');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CheckColorsInGamut]
- end;
- end;
- var
- _GetColorSpace: Pointer;
- function GetColorSpace;
- begin
- GetProcedureAddress(_GetColorSpace, gdi32, 'GetColorSpace');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetColorSpace]
- end;
- end;
- var
- _GetLogColorSpaceA: Pointer;
- function GetLogColorSpaceA;
- begin
- GetProcedureAddress(_GetLogColorSpaceA, gdi32, 'GetLogColorSpaceA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetLogColorSpaceA]
- end;
- end;
- var
- _GetLogColorSpaceW: Pointer;
- function GetLogColorSpaceW;
- begin
- GetProcedureAddress(_GetLogColorSpaceW, gdi32, 'GetLogColorSpaceW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetLogColorSpaceW]
- end;
- end;
- var
- _GetLogColorSpace: Pointer;
- function GetLogColorSpace;
- begin
- GetProcedureAddress(_GetLogColorSpace, gdi32, 'GetLogColorSpace' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetLogColorSpace]
- end;
- end;
- var
- _CreateColorSpaceA: Pointer;
- function CreateColorSpaceA;
- begin
- GetProcedureAddress(_CreateColorSpaceA, gdi32, 'CreateColorSpaceA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateColorSpaceA]
- end;
- end;
- var
- _CreateColorSpaceW: Pointer;
- function CreateColorSpaceW;
- begin
- GetProcedureAddress(_CreateColorSpaceW, gdi32, 'CreateColorSpaceW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateColorSpaceW]
- end;
- end;
- var
- _CreateColorSpace: Pointer;
- function CreateColorSpace;
- begin
- GetProcedureAddress(_CreateColorSpace, gdi32, 'CreateColorSpace' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_CreateColorSpace]
- end;
- end;
- var
- _SetColorSpace: Pointer;
- function SetColorSpace;
- begin
- GetProcedureAddress(_SetColorSpace, gdi32, 'SetColorSpace');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetColorSpace]
- end;
- end;
- var
- _DeleteColorSpace: Pointer;
- function DeleteColorSpace;
- begin
- GetProcedureAddress(_DeleteColorSpace, gdi32, 'DeleteColorSpace');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_DeleteColorSpace]
- end;
- end;
- var
- _GetICMProfileA: Pointer;
- function GetICMProfileA;
- begin
- GetProcedureAddress(_GetICMProfileA, gdi32, 'GetICMProfileA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetICMProfileA]
- end;
- end;
- var
- _GetICMProfileW: Pointer;
- function GetICMProfileW;
- begin
- GetProcedureAddress(_GetICMProfileW, gdi32, 'GetICMProfileW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetICMProfileW]
- end;
- end;
- var
- _GetICMProfile: Pointer;
- function GetICMProfile;
- begin
- GetProcedureAddress(_GetICMProfile, gdi32, 'GetICMProfile' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetICMProfile]
- end;
- end;
- var
- _SetICMProfileA: Pointer;
- function SetICMProfileA;
- begin
- GetProcedureAddress(_SetICMProfileA, gdi32, 'SetICMProfileA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetICMProfileA]
- end;
- end;
- var
- _SetICMProfileW: Pointer;
- function SetICMProfileW;
- begin
- GetProcedureAddress(_SetICMProfileW, gdi32, 'SetICMProfileW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetICMProfileW]
- end;
- end;
- var
- _SetICMProfile: Pointer;
- function SetICMProfile;
- begin
- GetProcedureAddress(_SetICMProfile, gdi32, 'SetICMProfile' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetICMProfile]
- end;
- end;
- var
- _GetDeviceGammaRamp: Pointer;
- function GetDeviceGammaRamp;
- begin
- GetProcedureAddress(_GetDeviceGammaRamp, gdi32, 'GetDeviceGammaRamp');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_GetDeviceGammaRamp]
- end;
- end;
- var
- _SetDeviceGammaRamp: Pointer;
- function SetDeviceGammaRamp;
- begin
- GetProcedureAddress(_SetDeviceGammaRamp, gdi32, 'SetDeviceGammaRamp');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SetDeviceGammaRamp]
- end;
- end;
- var
- _ColorMatchToTarget: Pointer;
- function ColorMatchToTarget;
- begin
- GetProcedureAddress(_ColorMatchToTarget, gdi32, 'ColorMatchToTarget');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ColorMatchToTarget]
- end;
- end;
- var
- _EnumICMProfilesA: Pointer;
- function EnumICMProfilesA;
- begin
- GetProcedureAddress(_EnumICMProfilesA, gdi32, 'EnumICMProfilesA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumICMProfilesA]
- end;
- end;
- var
- _EnumICMProfilesW: Pointer;
- function EnumICMProfilesW;
- begin
- GetProcedureAddress(_EnumICMProfilesW, gdi32, 'EnumICMProfilesW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumICMProfilesW]
- end;
- end;
- var
- _EnumICMProfiles: Pointer;
- function EnumICMProfiles;
- begin
- GetProcedureAddress(_EnumICMProfiles, gdi32, 'EnumICMProfiles' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_EnumICMProfiles]
- end;
- end;
- var
- _UpdateICMRegKeyA: Pointer;
- function UpdateICMRegKeyA;
- begin
- GetProcedureAddress(_UpdateICMRegKeyA, gdi32, 'UpdateICMRegKeyA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_UpdateICMRegKeyA]
- end;
- end;
- var
- _UpdateICMRegKeyW: Pointer;
- function UpdateICMRegKeyW;
- begin
- GetProcedureAddress(_UpdateICMRegKeyW, gdi32, 'UpdateICMRegKeyW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_UpdateICMRegKeyW]
- end;
- end;
- var
- _UpdateICMRegKey: Pointer;
- function UpdateICMRegKey;
- begin
- GetProcedureAddress(_UpdateICMRegKey, gdi32, 'UpdateICMRegKey' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_UpdateICMRegKey]
- end;
- end;
- var
- _ColorCorrectPalette: Pointer;
- function ColorCorrectPalette;
- begin
- GetProcedureAddress(_ColorCorrectPalette, gdi32, 'ColorCorrectPalette');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_ColorCorrectPalette]
- end;
- end;
- var
- _wglCopyContext: Pointer;
- function wglCopyContext;
- begin
- GetProcedureAddress(_wglCopyContext, opengl32, 'wglCopyContext');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglCopyContext]
- end;
- end;
- var
- _wglCreateContext: Pointer;
- function wglCreateContext;
- begin
- GetProcedureAddress(_wglCreateContext, opengl32, 'wglCreateContext');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglCreateContext]
- end;
- end;
- var
- _wglCreateLayerContext: Pointer;
- function wglCreateLayerContext;
- begin
- GetProcedureAddress(_wglCreateLayerContext, opengl32, 'wglCreateLayerContext');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglCreateLayerContext]
- end;
- end;
- var
- _wglDeleteContext: Pointer;
- function wglDeleteContext;
- begin
- GetProcedureAddress(_wglDeleteContext, opengl32, 'wglDeleteContext');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglDeleteContext]
- end;
- end;
- var
- _wglGetCurrentContext: Pointer;
- function wglGetCurrentContext;
- begin
- GetProcedureAddress(_wglGetCurrentContext, opengl32, 'wglGetCurrentContext');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglGetCurrentContext]
- end;
- end;
- var
- _wglGetCurrentDC: Pointer;
- function wglGetCurrentDC;
- begin
- GetProcedureAddress(_wglGetCurrentDC, opengl32, 'wglGetCurrentDC');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglGetCurrentDC]
- end;
- end;
- var
- _wglGetProcAddress: Pointer;
- function wglGetProcAddress;
- begin
- GetProcedureAddress(_wglGetProcAddress, opengl32, 'wglGetProcAddress');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglGetProcAddress]
- end;
- end;
- var
- _wglMakeCurrent: Pointer;
- function wglMakeCurrent;
- begin
- GetProcedureAddress(_wglMakeCurrent, opengl32, 'wglMakeCurrent');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglMakeCurrent]
- end;
- end;
- var
- _wglShareLists: Pointer;
- function wglShareLists;
- begin
- GetProcedureAddress(_wglShareLists, opengl32, 'wglShareLists');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglShareLists]
- end;
- end;
- var
- _wglUseFontBitmapsA: Pointer;
- function wglUseFontBitmapsA;
- begin
- GetProcedureAddress(_wglUseFontBitmapsA, opengl32, 'wglUseFontBitmapsA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglUseFontBitmapsA]
- end;
- end;
- var
- _wglUseFontBitmapsW: Pointer;
- function wglUseFontBitmapsW;
- begin
- GetProcedureAddress(_wglUseFontBitmapsW, opengl32, 'wglUseFontBitmapsW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglUseFontBitmapsW]
- end;
- end;
- var
- _wglUseFontBitmaps: Pointer;
- function wglUseFontBitmaps;
- begin
- GetProcedureAddress(_wglUseFontBitmaps, opengl32, 'wglUseFontBitmaps' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglUseFontBitmaps]
- end;
- end;
- var
- _SwapBuffers: Pointer;
- function SwapBuffers;
- begin
- GetProcedureAddress(_SwapBuffers, opengl32, 'SwapBuffers');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_SwapBuffers]
- end;
- end;
- var
- _wglUseFontOutlinesA: Pointer;
- function wglUseFontOutlinesA;
- begin
- GetProcedureAddress(_wglUseFontOutlinesA, opengl32, 'wglUseFontOutlinesA');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglUseFontOutlinesA]
- end;
- end;
- var
- _wglUseFontOutlinesW: Pointer;
- function wglUseFontOutlinesW;
- begin
- GetProcedureAddress(_wglUseFontOutlinesW, opengl32, 'wglUseFontOutlinesW');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglUseFontOutlinesW]
- end;
- end;
- var
- _wglUseFontOutlines: Pointer;
- function wglUseFontOutlines;
- begin
- GetProcedureAddress(_wglUseFontOutlines, opengl32, 'wglUseFontOutlines' + AWSuffix);
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglUseFontOutlines]
- end;
- end;
- var
- _wglDescribeLayerPlane: Pointer;
- function wglDescribeLayerPlane;
- begin
- GetProcedureAddress(_wglDescribeLayerPlane, opengl32, 'wglDescribeLayerPlane');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglDescribeLayerPlane]
- end;
- end;
- var
- _wglSetLayerPaletteEntries: Pointer;
- function wglSetLayerPaletteEntries;
- begin
- GetProcedureAddress(_wglSetLayerPaletteEntries, opengl32, 'wglSetLayerPaletteEntries');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglSetLayerPaletteEntries]
- end;
- end;
- var
- _wglGetLayerPaletteEntries: Pointer;
- function wglGetLayerPaletteEntries;
- begin
- GetProcedureAddress(_wglGetLayerPaletteEntries, opengl32, 'wglGetLayerPaletteEntries');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglGetLayerPaletteEntries]
- end;
- end;
- var
- _wglRealizeLayerPalette: Pointer;
- function wglRealizeLayerPalette;
- begin
- GetProcedureAddress(_wglRealizeLayerPalette, opengl32, 'wglRealizeLayerPalette');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglRealizeLayerPalette]
- end;
- end;
- var
- _wglSwapLayerBuffers: Pointer;
- function wglSwapLayerBuffers;
- begin
- GetProcedureAddress(_wglSwapLayerBuffers, opengl32, 'wglSwapLayerBuffers');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglSwapLayerBuffers]
- end;
- end;
- var
- _wglSwapMultipleBuffers: Pointer;
- function wglSwapMultipleBuffers;
- begin
- GetProcedureAddress(_wglSwapMultipleBuffers, opengl32, 'wglSwapMultipleBuffers');
- asm
- MOV ESP, EBP
- POP EBP
- JMP [_wglSwapMultipleBuffers]
- end;
- end;
- {$ELSE}
- function AddFontResourceA; external gdi32 name 'AddFontResourceA';
- function AddFontResourceW; external gdi32 name 'AddFontResourceW';
- function AddFontResource; external gdi32 name 'AddFontResource' + AWSuffix;
- function AnimatePalette; external gdi32 name 'AnimatePalette';
- function Arc; external gdi32 name 'Arc';
- function BitBlt; external gdi32 name 'BitBlt';
- function CancelDC; external gdi32 name 'CancelDC';
- function Chord; external gdi32 name 'Chord';
- function ChoosePixelFormat; external gdi32 name 'ChoosePixelFormat';
- function CloseMetaFile; external gdi32 name 'CloseMetaFile';
- function CombineRgn; external gdi32 name 'CombineRgn';
- function CopyMetaFileA; external gdi32 name 'CopyMetaFileA';
- function CopyMetaFileW; external gdi32 name 'CopyMetaFileW';
- function CopyMetaFile; external gdi32 name 'CopyMetaFile' + AWSuffix;
- function CreateBitmap; external gdi32 name 'CreateBitmap';
- function CreateBitmapIndirect; external gdi32 name 'CreateBitmapIndirect';
- function CreateBrushIndirect; external gdi32 name 'CreateBrushIndirect';
- function CreateCompatibleBitmap; external gdi32 name 'CreateCompatibleBitmap';
- function CreateDiscardableBitmap; external gdi32 name 'CreateDiscardableBitmap';
- function CreateCompatibleDC; external gdi32 name 'CreateCompatibleDC';
- function CreateDCA; external gdi32 name 'CreateDCA';
- function CreateDCW; external gdi32 name 'CreateDCW';
- function CreateDC; external gdi32 name 'CreateDC' + AWSuffix;
- function CreateDIBitmap; external gdi32 name 'CreateDIBitmap';
- function CreateDIBPatternBrush; external gdi32 name 'CreateDIBPatternBrush';
- function CreateDIBPatternBrushPt; external gdi32 name 'CreateDIBPatternBrushPt';
- function CreateEllipticRgn; external gdi32 name 'CreateEllipticRgn';
- function CreateEllipticRgnIndirect; external gdi32 name 'CreateEllipticRgnIndirect';
- function CreateFontIndirectA; external gdi32 name 'CreateFontIndirectA';
- function CreateFontIndirectW; external gdi32 name 'CreateFontIndirectW';
- function CreateFontIndirect; external gdi32 name 'CreateFontIndirect' + AWSuffix;
- function CreateFontA; external gdi32 name 'CreateFontA';
- function CreateFontW; external gdi32 name 'CreateFontW';
- function CreateFont; external gdi32 name 'CreateFont' + AWSuffix;
- function CreateHatchBrush; external gdi32 name 'CreateHatchBrush';
- function CreateICA; external gdi32 name 'CreateICA';
- function CreateICW; external gdi32 name 'CreateICW';
- function CreateIC; external gdi32 name 'CreateIC' + AWSuffix;
- function CreateMetaFileA; external gdi32 name 'CreateMetaFileA';
- function CreateMetaFileW; external gdi32 name 'CreateMetaFileW';
- function CreateMetaFile; external gdi32 name 'CreateMetaFile' + AWSuffix;
- function CreatePalette; external gdi32 name 'CreatePalette';
- function CreatePen; external gdi32 name 'CreatePen';
- function CreatePenIndirect; external gdi32 name 'CreatePenIndirect';
- function CreatePolyPolygonRgn; external gdi32 name 'CreatePolyPolygonRgn';
- function CreatePatternBrush; external gdi32 name 'CreatePatternBrush';
- function CreateRectRgn; external gdi32 name 'CreateRectRgn';
- function CreateRectRgnIndirect; external gdi32 name 'CreateRectRgnIndirect';
- function CreateRoundRectRgn; external gdi32 name 'CreateRoundRectRgn';
- function CreateScalableFontResourceA; external gdi32 name 'CreateScalableFontResourceA';
- function CreateScalableFontResourceW; external gdi32 name 'CreateScalableFontResourceW';
- function CreateScalableFontResource; external gdi32 name 'CreateScalableFontResource' + AWSuffix;
- function CreateSolidBrush; external gdi32 name 'CreateSolidBrush';
- function DeleteDC; external gdi32 name 'DeleteDC';
- function DeleteMetaFile; external gdi32 name 'DeleteMetaFile';
- function DeleteObject; external gdi32 name 'DeleteObject';
- function DescribePixelFormat; external gdi32 name 'DescribePixelFormat';
- function DeviceCapabilitiesA; external winspool32 name 'DeviceCapabilitiesA';
- function DeviceCapabilitiesW; external winspool32 name 'DeviceCapabilitiesW';
- function DeviceCapabilities; external winspool32 name 'DeviceCapabilities' + AWSuffix;
- function DrawEscape; external gdi32 name 'DrawEscape';
- function Ellipse; external gdi32 name 'Ellipse';
- function EnumFontFamiliesExA; external gdi32 name 'EnumFontFamiliesExA';
- function EnumFontFamiliesExW; external gdi32 name 'EnumFontFamiliesExW';
- function EnumFontFamiliesEx; external gdi32 name 'EnumFontFamiliesEx' + AWSuffix;
- function EnumFontFamiliesA; external gdi32 name 'EnumFontFamiliesA';
- function EnumFontFamiliesW; external gdi32 name 'EnumFontFamiliesW';
- function EnumFontFamilies; external gdi32 name 'EnumFontFamilies' + AWSuffix;
- function EnumFontsA; external gdi32 name 'EnumFontsA';
- function EnumFontsW; external gdi32 name 'EnumFontsW';
- function EnumFonts; external gdi32 name 'EnumFonts' + AWSuffix;
- function EnumObjects; external gdi32 name 'EnumObjects';
- function EqualRgn; external gdi32 name 'EqualRgn';
- function Escape; external gdi32 name 'Escape';
- function ExtEscape; external gdi32 name 'ExtEscape';
- function ExcludeClipRect; external gdi32 name 'ExcludeClipRect';
- function ExtCreateRegion; external gdi32 name 'ExtCreateRegion';
- function ExtFloodFill; external gdi32 name 'ExtFloodFill';
- function FillRgn; external gdi32 name 'FillRgn';
- function FloodFill; external gdi32 name 'FloodFill';
- function FrameRgn; external gdi32 name 'FrameRgn';
- function GetROP2; external gdi32 name 'GetROP2';
- function GetAspectRatioFilterEx; external gdi32 name 'GetAspectRatioFilterEx';
- function GetBkColor; external gdi32 name 'GetBkColor';
- function GetDCBrushColor; external gdi32 name 'GetDCBrushColor';
- function GetDCPenColor; external gdi32 name 'GetDCPenColor';
- function GetBkMode; external gdi32 name 'GetBkMode';
- function GetBitmapBits; external gdi32 name 'GetBitmapBits';
- function GetBitmapDimensionEx; external gdi32 name 'GetBitmapDimensionEx';
- function GetBoundsRect; external gdi32 name 'GetBoundsRect';
- function GetBrushOrgEx; external gdi32 name 'GetBrushOrgEx';
- function GetCharWidthA; external gdi32 name 'GetCharWidthA';
- function GetCharWidthW; external gdi32 name 'GetCharWidthW';
- function GetCharWidth; external gdi32 name 'GetCharWidth' + AWSuffix;
- function GetCharWidth32A; external gdi32 name 'GetCharWidth32A';
- function GetCharWidth32W; external gdi32 name 'GetCharWidth32W';
- function GetCharWidth32; external gdi32 name 'GetCharWidth32' + AWSuffix;
- function GetCharWidthFloatA; external gdi32 name 'GetCharWidthFloatA';
- function GetCharWidthFloatW; external gdi32 name 'GetCharWidthFloatW';
- function GetCharWidthFloat; external gdi32 name 'GetCharWidthFloat' + AWSuffix;
- function GetCharABCWidthsA; external gdi32 name 'GetCharABCWidthsA';
- function GetCharABCWidthsW; external gdi32 name 'GetCharABCWidthsW';
- function GetCharABCWidths; external gdi32 name 'GetCharABCWidths' + AWSuffix;
- function GetCharABCWidthsFloatA; external gdi32 name 'GetCharABCWidthsFloatA';
- function GetCharABCWidthsFloatW; external gdi32 name 'GetCharABCWidthsFloatW';
- function GetCharABCWidthsFloat; external gdi32 name 'GetCharABCWidthsFloat' + AWSuffix;
- function GetClipBox; external gdi32 name 'GetClipBox';
- function GetClipRgn; external gdi32 name 'GetClipRgn';
- function GetMetaRgn; external gdi32 name 'GetMetaRgn';
- function GetCurrentObject; external gdi32 name 'GetCurrentObject';
- function GetCurrentPositionEx; external gdi32 name 'GetCurrentPositionEx';
- function GetDeviceCaps; external gdi32 name 'GetDeviceCaps';
- function GetDIBits; external gdi32 name 'GetDIBits';
- function GetFontData; external gdi32 name 'GetFontData';
- function GetGlyphOutlineA; external gdi32 name 'GetGlyphOutlineA';
- function GetGlyphOutlineW; external gdi32 name 'GetGlyphOutlineW';
- function GetGlyphOutline; external gdi32 name 'GetGlyphOutline' + AWSuffix;
- function GetGraphicsMode; external gdi32 name 'GetGraphicsMode';
- function GetMapMode; external gdi32 name 'GetMapMode';
- function GetMetaFileBitsEx; external gdi32 name 'GetMetaFileBitsEx';
- function GetMetaFileA; external gdi32 name 'GetMetaFileA';
- function GetMetaFileW; external gdi32 name 'GetMetaFileW';
- function GetMetaFile; external gdi32 name 'GetMetaFile' + AWSuffix;
- function GetNearestColor; external gdi32 name 'GetNearestColor';
- function GetNearestPaletteIndex; external gdi32 name 'GetNearestPaletteIndex';
- function GetObjectType; external gdi32 name 'GetObjectType';
- function GetOutlineTextMetricsA; external gdi32 name 'GetOutlineTextMetricsA';
- function GetOutlineTextMetricsW; external gdi32 name 'GetOutlineTextMetricsW';
- function GetOutlineTextMetrics; external gdi32 name 'GetOutlineTextMetrics' + AWSuffix;
- function GetPaletteEntries; external gdi32 name 'GetPaletteEntries';
- function GetPixel; external gdi32 name 'GetPixel';
- function GetPixelFormat; external gdi32 name 'GetPixelFormat';
- function GetPolyFillMode; external gdi32 name 'GetPolyFillMode';
- function GetRasterizerCaps; external gdi32 name 'GetRasterizerCaps';
- function GetRandomRgn; external gdi32 name 'GetRandomRgn';
- function GetRegionData; external gdi32 name 'GetRegionData';
- function GetRgnBox; external gdi32 name 'GetRgnBox';
- function GetStockObject; external gdi32 name 'GetStockObject';
- function GetStretchBltMode; external gdi32 name 'GetStretchBltMode';
- function GetSystemPaletteEntries; external gdi32 name 'GetSystemPaletteEntries';
- function GetSystemPaletteUse; external gdi32 name 'GetSystemPaletteUse';
- function GetTextCharacterExtra; external gdi32 name 'GetTextCharacterExtra';
- function GetTextAlign; external gdi32 name 'GetTextAlign';
- function GetTextColor; external gdi32 name 'GetTextColor';
- function GetTextExtentPointA; external gdi32 name 'GetTextExtentPointA';
- function GetTextExtentPointW; external gdi32 name 'GetTextExtentPointW';
- function GetTextExtentPoint; external gdi32 name 'GetTextExtentPoint' + AWSuffix;
- function GetTextExtentPoint32A; external gdi32 name 'GetTextExtentPoint32A';
- function GetTextExtentPoint32W; external gdi32 name 'GetTextExtentPoint32W';
- function GetTextExtentPoint32; external gdi32 name 'GetTextExtentPoint32' + AWSuffix;
- function GetTextExtentExPointA; external gdi32 name 'GetTextExtentExPointA';
- function GetTextExtentExPointW; external gdi32 name 'GetTextExtentExPointW';
- function GetTextExtentExPoint; external gdi32 name 'GetTextExtentExPoint' + AWSuffix;
- function GetTextCharset; external gdi32 name 'GetTextCharset';
- function GetTextCharsetInfo; external gdi32 name 'GetTextCharsetInfo';
- function TranslateCharsetInfo; external gdi32 name 'TranslateCharsetInfo';
- function GetFontLanguageInfo; external gdi32 name 'GetFontLanguageInfo';
- function GetCharacterPlacementA; external gdi32 name 'GetCharacterPlacementA';
- function GetCharacterPlacementW; external gdi32 name 'GetCharacterPlacementW';
- function GetCharacterPlacement; external gdi32 name 'GetCharacterPlacement' + AWSuffix;
- function GetFontUnicodeRanges; external gdi32 name 'GetFontUnicodeRanges';
- function GetGlyphIndicesA; external gdi32 name 'GetGlyphIndicesA';
- function GetGlyphIndicesW; external gdi32 name 'GetGlyphIndicesW';
- function GetGlyphIndices; external gdi32 name 'GetGlyphIndices' + AWSuffix;
- function GetTextExtentPointI; external gdi32 name 'GetTextExtentPointI';
- function GetTextExtentExPointI; external gdi32 name 'GetTextExtentExPointI';
- function GetCharWidthI; external gdi32 name 'GetCharWidthI';
- function GetCharABCWidthsI; external gdi32 name 'GetCharABCWidthsI';
- function AddFontResourceExA; external gdi32 name 'AddFontResourceExA';
- function AddFontResourceExW; external gdi32 name 'AddFontResourceExW';
- function AddFontResourceEx; external gdi32 name 'AddFontResourceEx' + AWSuffix;
- function RemoveFontResourceExA; external gdi32 name 'RemoveFontResourceExA';
- function RemoveFontResourceExW; external gdi32 name 'RemoveFontResourceExW';
- function RemoveFontResourceEx; external gdi32 name 'RemoveFontResourceEx' + AWSuffix;
- function AddFontMemResourceEx; external gdi32 name 'AddFontMemResourceEx';
- function RemoveFontMemResourceEx; external gdi32 name 'RemoveFontMemResourceEx';
- function CreateFontIndirectExA; external gdi32 name 'CreateFontIndirectExA';
- function CreateFontIndirectExW; external gdi32 name 'CreateFontIndirectExW';
- function CreateFontIndirectEx; external gdi32 name 'CreateFontIndirectEx' + AWSuffix;
- function GetViewportExtEx; external gdi32 name 'GetViewportExtEx';
- function GetViewportOrgEx; external gdi32 name 'GetViewportOrgEx';
- function GetWindowExtEx; external gdi32 name 'GetWindowExtEx';
- function GetWindowOrgEx; external gdi32 name 'GetWindowOrgEx';
- function IntersectClipRect; external gdi32 name 'IntersectClipRect';
- function InvertRgn; external gdi32 name 'InvertRgn';
- function LineDDA; external gdi32 name 'LineDDA';
- function LineTo; external gdi32 name 'LineTo';
- function MaskBlt; external gdi32 name 'MaskBlt';
- function PlgBlt; external gdi32 name 'PlgBlt';
- function OffsetClipRgn; external gdi32 name 'OffsetClipRgn';
- function OffsetRgn; external gdi32 name 'OffsetRgn';
- function PatBlt; external gdi32 name 'PatBlt';
- function Pie; external gdi32 name 'Pie';
- function PlayMetaFile; external gdi32 name 'PlayMetaFile';
- function PaintRgn; external gdi32 name 'PaintRgn';
- function PolyPolygon; external gdi32 name 'PolyPolygon';
- function PtInRegion; external gdi32 name 'PtInRegion';
- function PtVisible; external gdi32 name 'PtVisible';
- function RectInRegion; external gdi32 name 'RectInRegion';
- function RectVisible; external gdi32 name 'RectVisible';
- function Rectangle; external gdi32 name 'Rectangle';
- function RestoreDC; external gdi32 name 'RestoreDC';
- function ResetDCA; external gdi32 name 'ResetDCA';
- function ResetDCW; external gdi32 name 'ResetDCW';
- function ResetDC; external gdi32 name 'ResetDC' + AWSuffix;
- function RealizePalette; external gdi32 name 'RealizePalette';
- function RemoveFontResourceA; external gdi32 name 'RemoveFontResourceA';
- function RemoveFontResourceW; external gdi32 name 'RemoveFontResourceW';
- function RemoveFontResource; external gdi32 name 'RemoveFontResource' + AWSuffix;
- function RoundRect; external gdi32 name 'RoundRect';
- function ResizePalette; external gdi32 name 'ResizePalette';
- function SaveDC; external gdi32 name 'SaveDC';
- function SelectClipRgn; external gdi32 name 'SelectClipRgn';
- function ExtSelectClipRgn; external gdi32 name 'ExtSelectClipRgn';
- function SetMetaRgn; external gdi32 name 'SetMetaRgn';
- function SelectObject; external gdi32 name 'SelectObject';
- function SelectPalette; external gdi32 name 'SelectPalette';
- function SetBkColor; external gdi32 name 'SetBkColor';
- function SetDCBrushColor; external gdi32 name 'SetDCBrushColor';
- function SetDCPenColor; external gdi32 name 'SetDCPenColor';
- function SetBkMode; external gdi32 name 'SetBkMode';
- function SetBitmapBits; external gdi32 name 'SetBitmapBits';
- function SetBoundsRect; external gdi32 name 'SetBoundsRect';
- function SetDIBits; external gdi32 name 'SetDIBits';
- function SetDIBitsToDevice; external gdi32 name 'SetDIBitsToDevice';
- function SetMapperFlags; external gdi32 name 'SetMapperFlags';
- function SetGraphicsMode; external gdi32 name 'SetGraphicsMode';
- function SetMapMode; external gdi32 name 'SetMapMode';
- function SetLayout; external gdi32 name 'SetLayout';
- function GetLayout; external gdi32 name 'GetLayout';
- function SetMetaFileBitsEx; external gdi32 name 'SetMetaFileBitsEx';
- function SetPaletteEntries; external gdi32 name 'SetPaletteEntries';
- function SetPixel; external gdi32 name 'SetPixel';
- function SetPixelV; external gdi32 name 'SetPixelV';
- function SetPixelFormat; external gdi32 name 'SetPixelFormat';
- function SetPolyFillMode; external gdi32 name 'SetPolyFillMode';
- function StretchBlt; external gdi32 name 'StretchBlt';
- function SetRectRgn; external gdi32 name 'SetRectRgn';
- function StretchDIBits; external gdi32 name 'StretchDIBits';
- function SetROP2; external gdi32 name 'SetROP2';
- function SetStretchBltMode; external gdi32 name 'SetStretchBltMode';
- function SetSystemPaletteUse; external gdi32 name 'SetSystemPaletteUse';
- function SetTextCharacterExtra; external gdi32 name 'SetTextCharacterExtra';
- function SetTextColor; external gdi32 name 'SetTextColor';
- function SetTextAlign; external gdi32 name 'SetTextAlign';
- function SetTextJustification; external gdi32 name 'SetTextJustification';
- function UpdateColors; external gdi32 name 'UpdateColors';
- function AlphaBlend; external msimg32 name 'AlphaBlend';
- function TransparentBlt; external msimg32 name 'TransparentBlt';
- function GradientFill; external msimg32 name 'GradientFill';
- function PlayMetaFileRecord; external gdi32 name 'PlayMetaFileRecord';
- function EnumMetaFile; external gdi32 name 'EnumMetaFile';
- function CloseEnhMetaFile; external gdi32 name 'CloseEnhMetaFile';
- function CopyEnhMetaFileA; external gdi32 name 'CopyEnhMetaFileA';
- function CopyEnhMetaFileW; external gdi32 name 'CopyEnhMetaFileW';
- function CopyEnhMetaFile; external gdi32 name 'CopyEnhMetaFile' + AWSuffix;
- function CreateEnhMetaFileA; external gdi32 name 'CreateEnhMetaFileA';
- function CreateEnhMetaFileW; external gdi32 name 'CreateEnhMetaFileW';
- function CreateEnhMetaFile; external gdi32 name 'CreateEnhMetaFile' + AWSuffix;
- function DeleteEnhMetaFile; external gdi32 name 'DeleteEnhMetaFile';
- function EnumEnhMetaFile; external gdi32 name 'EnumEnhMetaFile';
- function GetEnhMetaFileA; external gdi32 name 'GetEnhMetaFileA';
- function GetEnhMetaFileW; external gdi32 name 'GetEnhMetaFileW';
- function GetEnhMetaFile; external gdi32 name 'GetEnhMetaFile' + AWSuffix;
- function GetEnhMetaFileBits; external gdi32 name 'GetEnhMetaFileBits';
- function GetEnhMetaFileDescriptionA; external gdi32 name 'GetEnhMetaFileDescriptionA';
- function GetEnhMetaFileDescriptionW; external gdi32 name 'GetEnhMetaFileDescriptionW';
- function GetEnhMetaFileDescription; external gdi32 name 'GetEnhMetaFileDescription' + AWSuffix;
- function GetEnhMetaFileHeader; external gdi32 name 'GetEnhMetaFileHeader';
- function GetEnhMetaFilePaletteEntries; external gdi32 name 'GetEnhMetaFilePaletteEntries';
- function GetEnhMetaFilePixelFormat; external gdi32 name 'GetEnhMetaFilePixelFormat';
- function GetWinMetaFileBits; external gdi32 name 'GetWinMetaFileBits';
- function PlayEnhMetaFile; external gdi32 name 'PlayEnhMetaFile';
- function PlayEnhMetaFileRecord; external gdi32 name 'PlayEnhMetaFileRecord';
- function SetEnhMetaFileBits; external gdi32 name 'SetEnhMetaFileBits';
- function SetWinMetaFileBits; external gdi32 name 'SetWinMetaFileBits';
- function GdiComment; external gdi32 name 'GdiComment';
- function GetTextMetricsA; external gdi32 name 'GetTextMetricsA';
- function GetTextMetricsW; external gdi32 name 'GetTextMetricsW';
- function GetTextMetrics; external gdi32 name 'GetTextMetrics' + AWSuffix;
- function AngleArc; external gdi32 name 'AngleArc';
- function PolyPolyline; external gdi32 name 'PolyPolyline';
- function GetWorldTransform; external gdi32 name 'GetWorldTransform';
- function SetWorldTransform; external gdi32 name 'SetWorldTransform';
- function ModifyWorldTransform; external gdi32 name 'ModifyWorldTransform';
- function CombineTransform; external gdi32 name 'CombineTransform';
- function CreateDIBSection; external gdi32 name 'CreateDIBSection';
- function GetDIBColorTable; external gdi32 name 'GetDIBColorTable';
- function SetDIBColorTable; external gdi32 name 'SetDIBColorTable';
- function SetColorAdjustment; external gdi32 name 'SetColorAdjustment';
- function GetColorAdjustment; external gdi32 name 'GetColorAdjustment';
- function CreateHalftonePalette; external gdi32 name 'CreateHalftonePalette';
- function StartDocA; external gdi32 name 'StartDocA';
- function StartDocW; external gdi32 name 'StartDocW';
- function StartDoc; external gdi32 name 'StartDoc' + AWSuffix;
- function EndDoc; external gdi32 name 'EndDoc';
- function StartPage; external gdi32 name 'StartPage';
- function EndPage; external gdi32 name 'EndPage';
- function AbortDoc; external gdi32 name 'AbortDoc';
- function SetAbortProc; external gdi32 name 'SetAbortProc';
- function AbortPath; external gdi32 name 'AbortPath';
- function ArcTo; external gdi32 name 'ArcTo';
- function BeginPath; external gdi32 name 'BeginPath';
- function CloseFigure; external gdi32 name 'CloseFigure';
- function EndPath; external gdi32 name 'EndPath';
- function FillPath; external gdi32 name 'FillPath';
- function FlattenPath; external gdi32 name 'FlattenPath';
- function GetPath; external gdi32 name 'GetPath';
- function PathToRegion; external gdi32 name 'PathToRegion';
- function PolyDraw; external gdi32 name 'PolyDraw';
- function SelectClipPath; external gdi32 name 'SelectClipPath';
- function SetArcDirection; external gdi32 name 'SetArcDirection';
- function SetMiterLimit; external gdi32 name 'SetMiterLimit';
- function StrokeAndFillPath; external gdi32 name 'StrokeAndFillPath';
- function StrokePath; external gdi32 name 'StrokePath';
- function WidenPath; external gdi32 name 'WidenPath';
- function ExtCreatePen; external gdi32 name 'ExtCreatePen';
- function GetMiterLimit; external gdi32 name 'GetMiterLimit';
- function GetArcDirection; external gdi32 name 'GetArcDirection';
- function GetObjectA; external gdi32 name 'GetObjectA';
- function GetObjectW; external gdi32 name 'GetObjectW';
- function GetObject; external gdi32 name 'GetObject' + AWSuffix;
- function MoveToEx; external gdi32 name 'MoveToEx';
- function TextOutA; external gdi32 name 'TextOutA';
- function TextOutW; external gdi32 name 'TextOutW';
- function TextOut; external gdi32 name 'TextOut' + AWSuffix;
- function ExtTextOutA; external gdi32 name 'ExtTextOutA';
- function ExtTextOutW; external gdi32 name 'ExtTextOutW';
- function ExtTextOut; external gdi32 name 'ExtTextOut' + AWSuffix;
- function PolyTextOutA; external gdi32 name 'PolyTextOutA';
- function PolyTextOutW; external gdi32 name 'PolyTextOutW';
- function PolyTextOut; external gdi32 name 'PolyTextOut' + AWSuffix;
- function CreatePolygonRgn; external gdi32 name 'CreatePolygonRgn';
- function DPtoLP; external gdi32 name 'DPtoLP';
- function LPtoDP; external gdi32 name 'LPtoDP';
- function Polygon; external gdi32 name 'Polygon';
- function Polyline; external gdi32 name 'Polyline';
- function PolyBezier; external gdi32 name 'PolyBezier';
- function PolyBezierTo; external gdi32 name 'PolyBezierTo';
- function PolylineTo; external gdi32 name 'PolylineTo';
- function SetViewportExtEx; external gdi32 name 'SetViewportExtEx';
- function SetViewportOrgEx; external gdi32 name 'SetViewportOrgEx';
- function SetWindowExtEx; external gdi32 name 'SetWindowExtEx';
- function SetWindowOrgEx; external gdi32 name 'SetWindowOrgEx';
- function OffsetViewportOrgEx; external gdi32 name 'OffsetViewportOrgEx';
- function OffsetWindowOrgEx; external gdi32 name 'OffsetWindowOrgEx';
- function ScaleViewportExtEx; external gdi32 name 'ScaleViewportExtEx';
- function ScaleWindowExtEx; external gdi32 name 'ScaleWindowExtEx';
- function SetBitmapDimensionEx; external gdi32 name 'SetBitmapDimensionEx';
- function SetBrushOrgEx; external gdi32 name 'SetBrushOrgEx';
- function GetTextFaceA; external gdi32 name 'GetTextFaceA';
- function GetTextFaceW; external gdi32 name 'GetTextFaceW';
- function GetTextFace; external gdi32 name 'GetTextFace' + AWSuffix;
- function GetKerningPairsA; external gdi32 name 'GetKerningPairsA';
- function GetKerningPairsW; external gdi32 name 'GetKerningPairsW';
- function GetKerningPairs; external gdi32 name 'GetKerningPairs' + AWSuffix;
- function GetDCOrgEx; external gdi32 name 'GetDCOrgEx';
- function FixBrushOrgEx; external gdi32 name 'FixBrushOrgEx';
- function UnrealizeObject; external gdi32 name 'UnrealizeObject';
- function GdiFlush; external gdi32 name 'GdiFlush';
- function GdiSetBatchLimit; external gdi32 name 'GdiSetBatchLimit';
- function GdiGetBatchLimit; external gdi32 name 'GdiGetBatchLimit';
- function SetICMMode; external gdi32 name 'SetICMMode';
- function CheckColorsInGamut; external gdi32 name 'CheckColorsInGamut';
- function GetColorSpace; external gdi32 name 'GetColorSpace';
- function GetLogColorSpaceA; external gdi32 name 'GetLogColorSpaceA';
- function GetLogColorSpaceW; external gdi32 name 'GetLogColorSpaceW';
- function GetLogColorSpace; external gdi32 name 'GetLogColorSpace' + AWSuffix;
- function CreateColorSpaceA; external gdi32 name 'CreateColorSpaceA';
- function CreateColorSpaceW; external gdi32 name 'CreateColorSpaceW';
- function CreateColorSpace; external gdi32 name 'CreateColorSpace' + AWSuffix;
- function SetColorSpace; external gdi32 name 'SetColorSpace';
- function DeleteColorSpace; external gdi32 name 'DeleteColorSpace';
- function GetICMProfileA; external gdi32 name 'GetICMProfileA';
- function GetICMProfileW; external gdi32 name 'GetICMProfileW';
- function GetICMProfile; external gdi32 name 'GetICMProfile' + AWSuffix;
- function SetICMProfileA; external gdi32 name 'SetICMProfileA';
- function SetICMProfileW; external gdi32 name 'SetICMProfileW';
- function SetICMProfile; external gdi32 name 'SetICMProfile' + AWSuffix;
- function GetDeviceGammaRamp; external gdi32 name 'GetDeviceGammaRamp';
- function SetDeviceGammaRamp; external gdi32 name 'SetDeviceGammaRamp';
- function ColorMatchToTarget; external gdi32 name 'ColorMatchToTarget';
- function EnumICMProfilesA; external gdi32 name 'EnumICMProfilesA';
- function EnumICMProfilesW; external gdi32 name 'EnumICMProfilesW';
- function EnumICMProfiles; external gdi32 name 'EnumICMProfiles' + AWSuffix;
- function UpdateICMRegKeyA; external gdi32 name 'UpdateICMRegKeyA';
- function UpdateICMRegKeyW; external gdi32 name 'UpdateICMRegKeyW';
- function UpdateICMRegKey; external gdi32 name 'UpdateICMRegKey' + AWSuffix;
- function ColorCorrectPalette; external gdi32 name 'ColorCorrectPalette';
- function wglCopyContext; external opengl32 name 'wglCopyContext';
- function wglCreateContext; external opengl32 name 'wglCreateContext';
- function wglCreateLayerContext; external opengl32 name 'wglCreateLayerContext';
- function wglDeleteContext; external opengl32 name 'wglDeleteContext';
- function wglGetCurrentContext; external opengl32 name 'wglGetCurrentContext';
- function wglGetCurrentDC; external opengl32 name 'wglGetCurrentDC';
- function wglGetProcAddress; external opengl32 name 'wglGetProcAddress';
- function wglMakeCurrent; external opengl32 name 'wglMakeCurrent';
- function wglShareLists; external opengl32 name 'wglShareLists';
- function wglUseFontBitmapsA; external opengl32 name 'wglUseFontBitmapsA';
- function wglUseFontBitmapsW; external opengl32 name 'wglUseFontBitmapsW';
- function wglUseFontBitmaps; external opengl32 name 'wglUseFontBitmaps' + AWSuffix;
- function SwapBuffers; external opengl32 name 'SwapBuffers';
- function wglUseFontOutlinesA; external opengl32 name 'wglUseFontOutlinesA';
- function wglUseFontOutlinesW; external opengl32 name 'wglUseFontOutlinesW';
- function wglUseFontOutlines; external opengl32 name 'wglUseFontOutlines' + AWSuffix;
- function wglDescribeLayerPlane; external opengl32 name 'wglDescribeLayerPlane';
- function wglSetLayerPaletteEntries; external opengl32 name 'wglSetLayerPaletteEntries';
- function wglGetLayerPaletteEntries; external opengl32 name 'wglGetLayerPaletteEntries';
- function wglRealizeLayerPalette; external opengl32 name 'wglRealizeLayerPalette';
- function wglSwapLayerBuffers; external opengl32 name 'wglSwapLayerBuffers';
- function wglSwapMultipleBuffers; external opengl32 name 'wglSwapMultipleBuffers';
- {$ENDIF DYNAMIC_LINK}
- end.
|