defines.inc 186 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996
  1. {
  2. This file is part of the Free Pascal run time library.
  3. This unit contains the constant definitions for the Win32 API
  4. Copyright (c) 1999-2000 by Florian Klaempfl,
  5. member of the Free Pascal development team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {
  13. Defines.h
  14. Windows32 API definitions
  15. Copyright (C) 1996, 1997 Free Software Foundation, Inc.
  16. Author: Scott Christley <[email protected]>
  17. This file is part of the Windows32 API Library.
  18. This library is free software; you can redistribute it and/or
  19. modify it under the terms of the GNU Library General Public
  20. License as published by the Free Software Foundation; either
  21. version 2 of the License, or (at your option) any later version.
  22. This library is distributed in the hope that it will be useful,
  23. but WITHOUT ANY WARRANTY; without even the implied warranty of
  24. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  25. Library General Public License for more details.
  26. If you are interested in a warranty or support for this source code,
  27. contact Scott Christley <[email protected]> for more information.
  28. License along with this library; see the file COPYING.LIB.
  29. If not, write to the Free Software Foundation,
  30. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  31. }
  32. {$ifdef read_interface}
  33. {$PACKRECORDS C}
  34. const
  35. UNICODE_NULL = widechar(#0);
  36. NULL=0; //+windef
  37. //FALSE=0; //+windef, removed can't compile
  38. //TRUE=1; //+windef, removed can't compile
  39. MAX_PATH = 260; //windef
  40. LF_FACESIZE = 32;
  41. LF_FULLFACESIZE = 64;
  42. ELF_VENDOR_SIZE = 4;
  43. SECURITY_STATIC_TRACKING = 0;
  44. SECURITY_DYNAMIC_TRACKING = 1;
  45. MAX_DEFAULTCHAR = 2;
  46. MAX_LEADBYTES = 12;
  47. EXCEPTION_MAXIMUM_PARAMETERS = 15; //winnt
  48. CCHDEVICENAME = 32;
  49. CCHFORMNAME = 32;
  50. MENU_TEXT_LEN = 40;
  51. MAX_LANA = 254;
  52. NCBNAMSZ = 16;
  53. NETBIOS_NAME_LEN = 16;
  54. OFS_MAXPATHNAME = 128;
  55. MAX_TAB_STOPS = 32;
  56. RAS_MaxCallbackNumber = 128;
  57. RAS_MaxDeviceName = 128;
  58. RAS_MaxDeviceType = 16;
  59. RAS_MaxEntryName = 256;
  60. RAS_MaxIpAddress = 15;
  61. RAS_MaxIpxAddress = 21;
  62. RAS_MaxPhoneNumber = 128;
  63. UNLEN = 256;
  64. PWLEN = 256;
  65. CNLEN = 15;
  66. DNLEN = 15;
  67. { Unsigned types max }
  68. MAXDWORD = $FFFFFFFF; //winnt
  69. MAXWORD = $FFFF; //winnt
  70. MAXBYTE = $FF; //winnt
  71. { Signed types max/min }
  72. MINCHAR = $80; //winnt
  73. MAXCHAR = $7F; //winnt
  74. MINSHORT = $8000; //winnt
  75. MAXSHORT = $7FFF; //winnt
  76. MINLONG = $80000000; //winnt
  77. MAXLONG = $7FFFFFFF; //winnt
  78. { _llseek }
  79. FILE_BEGIN = 0;
  80. FILE_CURRENT = 1;
  81. FILE_END = 2;
  82. { _lopen, LZOpenFile, OpenFile }
  83. OF_READ = 0;
  84. OF_READWRITE = 2;
  85. OF_WRITE = 1;
  86. OF_SHARE_COMPAT = 0;
  87. OF_SHARE_DENY_NONE = 64;
  88. OF_SHARE_DENY_READ = 48;
  89. OF_SHARE_DENY_WRITE = 32;
  90. OF_SHARE_EXCLUSIVE = 16;
  91. OF_CANCEL = 2048;
  92. OF_CREATE = 4096;
  93. OF_DELETE = 512;
  94. OF_EXIST = 16384;
  95. OF_PARSE = 256;
  96. OF_PROMPT = 8192;
  97. OF_REOPEN = 32768;
  98. OF_VERIFY = 1024;
  99. { ActivateKeyboardLayout, LoadKeyboardLayout }
  100. HKL_NEXT = 1;
  101. HKL_PREV = 0;
  102. KLF_REORDER = 8;
  103. KLF_UNLOADPREVIOUS = 4;
  104. KLF_ACTIVATE = 1;
  105. KLF_NOTELLSHELL = 128;
  106. KLF_REPLACELANG = 16;
  107. KLF_SUBSTITUTE_OK = 2;
  108. { AppendMenu }
  109. MF_BITMAP = $4;
  110. MF_DISABLED = $2;
  111. MF_ENABLED = 0;
  112. MF_GRAYED = $1;
  113. MF_HELP = $4000;
  114. MF_MENUBARBREAK = $20;
  115. MF_MENUBREAK = $40;
  116. MF_MOUSESELECT = $8000;
  117. MF_OWNERDRAW = $100;
  118. MF_POPUP = $10;
  119. MF_SEPARATOR = $800;
  120. MF_STRING = 0;
  121. MF_SYSMENU = $2000;
  122. MF_USECHECKBITMAPS = $200;
  123. { Ternary Raster Operations - BitBlt }
  124. BLACKNESS = $00000042;
  125. NOTSRCERASE = $001100A6;
  126. NOTSRCCOPY = $00330008;
  127. SRCERASE = $00440328;
  128. DSTINVERT = $00550009;
  129. PATINVERT = $005A0049;
  130. SRCINVERT = $00660046;
  131. SRCAND = $008800C6;
  132. MERGEPAINT = $00BB0226;
  133. MERGECOPY = $00C000CA;
  134. SRCCOPY = $00CC0020;
  135. SRCPAINT = $00EE0086;
  136. PATCOPY = $00F00021;
  137. PATPAINT = $00FB0A09;
  138. WHITENESS = $00FF0062;
  139. { Binary Raster Operations }
  140. R2_BLACK = 1;
  141. R2_COPYPEN = 13;
  142. R2_MASKNOTPEN = 3;
  143. R2_MASKPEN = 9;
  144. R2_MASKPENNOT = 5;
  145. R2_MERGENOTPEN = 12;
  146. R2_MERGEPEN = 15;
  147. R2_MERGEPENNOT = 14;
  148. R2_NOP = 11;
  149. R2_NOT = 6;
  150. R2_NOTCOPYPEN = 4;
  151. R2_NOTMASKPEN = 8;
  152. R2_NOTMERGEPEN = 2;
  153. R2_NOTXORPEN = 10;
  154. R2_WHITE = 16;
  155. R2_XORPEN = 7;
  156. { BroadcastSystemMessage }
  157. BSF_FLUSHDISK = 4;
  158. BSF_FORCEIFHUNG = 32;
  159. BSF_IGNORECURRENTTASK = 2;
  160. BSF_NOHANG = 8;
  161. BSF_POSTMESSAGE = 16;
  162. BSF_QUERY = 1;
  163. BSM_ALLCOMPONENTS = 0;
  164. BSM_APPLICATIONS = 8;
  165. BSM_INSTALLABLEDRIVERS = 4;
  166. BSM_NETDRIVER = 2;
  167. BSM_VXDS = 1;
  168. BROADCAST_QUERY_DENY = 1112363332;
  169. { CascadeWindows, TileWindows }
  170. MDITILE_SKIPDISABLED = 2;
  171. MDITILE_HORIZONTAL = 1;
  172. MDITILE_VERTICAL = 0;
  173. { CBTProc }
  174. HCBT_ACTIVATE = 5;
  175. HCBT_CLICKSKIPPED = 6;
  176. HCBT_CREATEWND = 3;
  177. HCBT_DESTROYWND = 4;
  178. HCBT_KEYSKIPPED = 7;
  179. HCBT_MINMAX = 1;
  180. HCBT_MOVESIZE = 0;
  181. HCBT_QS = 2;
  182. HCBT_SETFOCUS = 9;
  183. HCBT_SYSCOMMAND = 8;
  184. { ChangeDisplaySettings }
  185. DM_BITSPERPEL = $40000;
  186. DM_PELSWIDTH = $80000;
  187. DM_PELSHEIGHT = $100000;
  188. DM_DISPLAYFLAGS = $200000;
  189. DM_DISPLAYFREQUENCY = $400000;
  190. DM_DISPLAYORIENTATION = $00800000;
  191. DM_DISPLAYQUERYORIENTATION = $01000000;
  192. { rotation angle for screen rotation }
  193. DMDO_0 = 0;
  194. DMDO_90 = 1;
  195. DMDO_180 = 2;
  196. DMDO_270 = 4;
  197. DMDO_DEFAULT = DMDO_0;
  198. CDS_UPDATEREGISTRY = 1;
  199. CDS_TEST = 2;
  200. CDS_FULLSCREEN = 4;
  201. CDS_GLOBAL = 8;
  202. CDS_SET_PRIMARY = $10;
  203. CDS_RESET = $40000000;
  204. CDS_SETRECT = $20000000;
  205. CDS_NORESET = $10000000;
  206. DISP_CHANGE_SUCCESSFUL = 0;
  207. DISP_CHANGE_RESTART = 1;
  208. DISP_CHANGE_BADFLAGS = -(4);
  209. DISP_CHANGE_FAILED = -(1);
  210. DISP_CHANGE_BADMODE = -(2);
  211. DISP_CHANGE_NOTUPDATED = -(3);
  212. { ChangeServiceConfig }
  213. SERVICE_NO_CHANGE = -(1);
  214. SERVICE_WIN32_OWN_PROCESS = 16;
  215. SERVICE_WIN32_SHARE_PROCESS = 32;
  216. SERVICE_KERNEL_DRIVER = 1;
  217. SERVICE_FILE_SYSTEM_DRIVER = 2;
  218. SERVICE_INTERACTIVE_PROCESS = 256;
  219. SERVICE_BOOT_START = 0;
  220. SERVICE_SYSTEM_START = 1;
  221. SERVICE_AUTO_START = 2;
  222. SERVICE_DEMAND_START = 3;
  223. SERVICE_DISABLED = 4;
  224. { SERVICE_STATUS structure }
  225. SERVICE_STOPPED = 1;
  226. SERVICE_START_PENDING = 2;
  227. SERVICE_STOP_PENDING = 3;
  228. SERVICE_RUNNING = 4;
  229. SERVICE_CONTINUE_PENDING = 5;
  230. SERVICE_PAUSE_PENDING = 6;
  231. SERVICE_PAUSED = 7;
  232. SERVICE_ACCEPT_STOP = 1;
  233. SERVICE_ACCEPT_PAUSE_CONTINUE = 2;
  234. SERVICE_ACCEPT_SHUTDOWN = 4;
  235. { CheckDlgButton }
  236. BST_CHECKED = 1;
  237. BST_INDETERMINATE = 2;
  238. BST_UNCHECKED = 0;
  239. BST_FOCUS = 8;
  240. BST_PUSHED = 4;
  241. { CheckMenuItem, HiliteMenuItem }
  242. MF_BYCOMMAND = 0;
  243. MF_BYPOSITION = $400;
  244. MF_CHECKED = $8;
  245. MF_UNCHECKED = 0;
  246. MF_HILITE = $80;
  247. MF_UNHILITE = 0;
  248. { ChildWindowFromPointEx }
  249. CWP_ALL = 0;
  250. CWP_SKIPINVISIBLE = 1;
  251. CWP_SKIPDISABLED = 2;
  252. CWP_SKIPTRANSPARENT = 4;
  253. { ClearCommError }
  254. CE_BREAK = 16;
  255. CE_DNS = 2048;
  256. CE_FRAME = 8;
  257. CE_IOE = 1024;
  258. CE_MODE = 32768;
  259. CE_OOP = 4096;
  260. CE_OVERRUN = 2;
  261. CE_PTO = 512;
  262. CE_RXOVER = 1;
  263. CE_RXPARITY = 4;
  264. CE_TXFULL = 256;
  265. { ChooseMatchToTarget }
  266. { CombineRgn }
  267. RGN_AND = 1;
  268. RGN_COPY = 5;
  269. RGN_DIFF = 4;
  270. RGN_OR = 2;
  271. RGN_XOR = 3;
  272. NULLREGION = 1;
  273. SIMPLEREGION = 2;
  274. COMPLEXREGION = 3;
  275. ERROR = 0;
  276. { CommonDlgExtendedError }
  277. CDERR_DIALOGFAILURE = $ffff;
  278. CDERR_FINDRESFAILURE = 6;
  279. CDERR_INITIALIZATION = 2;
  280. CDERR_LOADRESFAILURE = 7;
  281. CDERR_LOADSTRFAILURE = 5;
  282. CDERR_LOCKRESFAILURE = 8;
  283. CDERR_MEMALLOCFAILURE = 9;
  284. CDERR_MEMLOCKFAILURE = 10;
  285. CDERR_NOHINSTANCE = 4;
  286. CDERR_NOHOOK = 11;
  287. CDERR_NOTEMPLATE = 3;
  288. CDERR_REGISTERMSGFAIL = 12;
  289. CDERR_STRUCTSIZE = 1;
  290. PDERR_CREATEICFAILURE = $1000 + 10;
  291. PDERR_DEFAULTDIFFERENT = $1000 + 12;
  292. PDERR_DNDMMISMATCH = $1000 + 9;
  293. PDERR_GETDEVMODEFAIL = $1000 + 5;
  294. PDERR_INITFAILURE = $1000 + 6;
  295. PDERR_LOADDRVFAILURE = $1000 + 4;
  296. PDERR_NODEFAULTPRN = $1000 + 8;
  297. PDERR_NODEVICES = $1000 + 7;
  298. PDERR_PARSEFAILURE = $1000 + 2;
  299. PDERR_PRINTERNOTFOUND = $1000 + 11;
  300. PDERR_RETDEFFAILURE = $1000 + 3;
  301. PDERR_SETUPFAILURE = $1000 + 1;
  302. CFERR_MAXLESSTHANMIN = $2000 + 2;
  303. CFERR_NOFONTS = $2000 + 1;
  304. FNERR_BUFFERTOOSMALL = $3000 + 3;
  305. FNERR_INVALIDFILENAME = $3000 + 2;
  306. FNERR_SUBCLASSFAILURE = $3000 + 1;
  307. FRERR_BUFFERLENGTHZERO = $4000 + 1;
  308. { CompareString, LCMapString }
  309. //LOCALE_SYSTEM_DEFAULT = $800; //-winnt, replaced by function
  310. //LOCALE_USER_DEFAULT = $400; //-winnt, replaced by function
  311. NORM_IGNORECASE = 1;
  312. NORM_IGNOREKANATYPE = 65536;
  313. NORM_IGNORENONSPACE = 2;
  314. NORM_IGNORESYMBOLS = 4;
  315. NORM_IGNOREWIDTH = 131072;
  316. SORT_STRINGSORT = 4096;
  317. LCMAP_BYTEREV = 2048;
  318. LCMAP_FULLWIDTH = 8388608;
  319. LCMAP_HALFWIDTH = 4194304;
  320. LCMAP_HIRAGANA = 1048576;
  321. LCMAP_KATAKANA = 2097152;
  322. LCMAP_LOWERCASE = 256;
  323. LCMAP_SORTKEY = 1024;
  324. LCMAP_UPPERCASE = 512;
  325. { ContinueDebugEvent }
  326. DBG_CONTINUE = $10002;
  327. DBG_CONTROL_BREAK = $40010008;
  328. DBG_CONTROL_C = $40010005;
  329. DBG_EXCEPTION_NOT_HANDLED = $80010001;
  330. DBG_TERMINATE_THREAD = $40010003;
  331. DBG_TERMINATE_PROCESS = $40010004;
  332. { ControlService }
  333. SERVICE_CONTROL_STOP = 1;
  334. SERVICE_CONTROL_PAUSE = 2;
  335. SERVICE_CONTROL_CONTINUE = 3;
  336. SERVICE_CONTROL_INTERROGATE = 4;
  337. SERVICE_CONTROL_SHUTDOWN = 5;
  338. { CopyImage, LoadImage }
  339. IMAGE_BITMAP = 0;
  340. IMAGE_CURSOR = 2;
  341. IMAGE_ENHMETAFILE = 1;
  342. IMAGE_ICON = 1;
  343. LR_COPYDELETEORG = 8;
  344. LR_COPYRETURNORG = 4;
  345. LR_MONOCHROME = 1;
  346. LR_CREATEDIBSECTION = 8192;
  347. LR_DEFAULTSIZE = 64;
  348. { CreateDesktop }
  349. DF_ALLOWOTHERACCOUNTHOOK = $1;
  350. DESKTOP_CREATEMENU = $4;
  351. DESKTOP_CREATEWINDOW = $2;
  352. DESKTOP_ENUMERATE = $40;
  353. DESKTOP_HOOKCONTROL = $8;
  354. DESKTOP_JOURNALPLAYBACK = $20;
  355. DESKTOP_JOURNALRECORD = $10;
  356. DESKTOP_READOBJECTS = $1;
  357. DESKTOP_SWITCHDESKTOP = $100;
  358. DESKTOP_WRITEOBJECTS = $80;
  359. WSF_VISIBLE = $1;
  360. { CreateDIBitmap }
  361. CBM_INIT = $4;
  362. DIB_PAL_COLORS = 1;
  363. DIB_RGB_COLORS = 0;
  364. { file & pipe }
  365. FILE_READ_DATA = $0001;
  366. { directory }
  367. FILE_LIST_DIRECTORY = $0001;
  368. { file & pipe }
  369. FILE_WRITE_DATA = $0002;
  370. { directory }
  371. FILE_ADD_FILE = $0002;
  372. { file }
  373. FILE_APPEND_DATA = $0004;
  374. { directory }
  375. FILE_ADD_SUBDIRECTORY = $0004;
  376. { named pipe }
  377. FILE_CREATE_PIPE_INSTANCE = $0004;
  378. { file & directory }
  379. FILE_READ_EA = $0008;
  380. FILE_READ_PROPERTIES = FILE_READ_EA;
  381. { file & directory }
  382. FILE_WRITE_EA = $0010;
  383. FILE_WRITE_PROPERTIES = FILE_WRITE_EA;
  384. { file }
  385. FILE_EXECUTE = $0020;
  386. { directory }
  387. FILE_TRAVERSE = $0020;
  388. { directory }
  389. FILE_DELETE_CHILD = $0040;
  390. { all }
  391. FILE_READ_ATTRIBUTES = $0080;
  392. { all }
  393. FILE_WRITE_ATTRIBUTES = $0100;
  394. { displaced lower
  395. #define FILE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x1FF)
  396. #define FILE_GENERIC_READ (STANDARD_RIGHTS_READ |\
  397. FILE_READ_DATA |\
  398. FILE_READ_ATTRIBUTES |\
  399. FILE_READ_EA |\
  400. SYNCHRONIZE)
  401. #define FILE_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\
  402. FILE_WRITE_DATA |\
  403. FILE_WRITE_ATTRIBUTES |\
  404. FILE_WRITE_EA |\
  405. FILE_APPEND_DATA |\
  406. SYNCHRONIZE)
  407. #define FILE_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE |\
  408. FILE_READ_ATTRIBUTES |\
  409. FILE_EXECUTE |\
  410. SYNCHRONIZE)
  411. }
  412. FILE_SHARE_DELETE = 4;
  413. FILE_SHARE_READ = 1;
  414. FILE_SHARE_WRITE = 2;
  415. CONSOLE_TEXTMODE_BUFFER = 1;
  416. CREATE_NEW = 1;
  417. CREATE_ALWAYS = 2;
  418. OPEN_EXISTING = 3;
  419. OPEN_ALWAYS = 4;
  420. TRUNCATE_EXISTING = 5;
  421. FILE_ATTRIBUTE_ARCHIVE = 32;
  422. FILE_ATTRIBUTE_COMPRESSED = 2048;
  423. FILE_ATTRIBUTE_NORMAL = 128;
  424. FILE_ATTRIBUTE_DIRECTORY = 16;
  425. FILE_ATTRIBUTE_HIDDEN = 2;
  426. FILE_ATTRIBUTE_READONLY = 1;
  427. FILE_ATTRIBUTE_SYSTEM = 4;
  428. FILE_ATTRIBUTE_TEMPORARY = 256;
  429. FILE_FLAG_WRITE_THROUGH = $80000000;
  430. FILE_FLAG_OVERLAPPED = 1073741824;
  431. FILE_FLAG_NO_BUFFERING = 536870912;
  432. FILE_FLAG_RANDOM_ACCESS = 268435456;
  433. FILE_FLAG_SEQUENTIAL_SCAN = 134217728;
  434. FILE_FLAG_DELETE_ON_CLOSE = 67108864;
  435. FILE_FLAG_BACKUP_SEMANTICS = 33554432;
  436. FILE_FLAG_POSIX_SEMANTICS = 16777216;
  437. SECURITY_ANONYMOUS = 0;
  438. SECURITY_IDENTIFICATION = 65536;
  439. SECURITY_IMPERSONATION = 131072;
  440. SECURITY_DELEGATION = 196608;
  441. SECURITY_CONTEXT_TRACKING = 262144;
  442. SECURITY_EFFECTIVE_ONLY = 524288;
  443. SECURITY_SQOS_PRESENT = 1048576;
  444. { CreateFileMapping, VirtualAlloc, VirtualFree, VirtualProtect }
  445. SEC_COMMIT = 134217728;
  446. SEC_IMAGE = 16777216;
  447. SEC_NOCACHE = 268435456;
  448. SEC_RESERVE = 67108864;
  449. PAGE_READONLY = 2;
  450. PAGE_READWRITE = 4;
  451. PAGE_WRITECOPY = 8;
  452. PAGE_EXECUTE = 16;
  453. PAGE_EXECUTE_READ = 32;
  454. PAGE_EXECUTE_READWRITE = 64;
  455. PAGE_EXECUTE_WRITECOPY = 128;
  456. PAGE_GUARD = 256;
  457. PAGE_NOACCESS = 1;
  458. PAGE_NOCACHE = 512;
  459. MEM_COMMIT = 4096;
  460. MEM_FREE = 65536;
  461. MEM_RESERVE = 8192;
  462. MEM_IMAGE = 16777216;
  463. MEM_MAPPED = 262144;
  464. MEM_PRIVATE = 131072;
  465. MEM_DECOMMIT = 16384;
  466. MEM_RELEASE = 32768;
  467. MEM_TOP_DOWN = 1048576;
  468. EXCEPTION_GUARD_PAGE = $80000001;
  469. SECTION_EXTEND_SIZE = $10;
  470. SECTION_MAP_READ = $4;
  471. SECTION_MAP_WRITE = $2;
  472. SECTION_QUERY = $1;
  473. SECTION_ALL_ACCESS = $f001f;
  474. { CreateFont }
  475. FW_DONTCARE = 0;
  476. FW_THIN = 100;
  477. FW_EXTRALIGHT = 200;
  478. FW_LIGHT = 300;
  479. FW_NORMAL = 400;
  480. FW_REGULAR = FW_NORMAL;
  481. FW_MEDIUM = 500;
  482. FW_SEMIBOLD = 600;
  483. FW_BOLD = 700;
  484. FW_EXTRABOLD = 800;
  485. FW_HEAVY = 900;
  486. ANSI_CHARSET = 0;
  487. DEFAULT_CHARSET = 1;
  488. SYMBOL_CHARSET = 2;
  489. SHIFTJIS_CHARSET = 128;
  490. HANGEUL_CHARSET = 129;
  491. GB2312_CHARSET = 134;
  492. CHINESEBIG5_CHARSET = 136;
  493. GREEK_CHARSET = 161;
  494. TURKISH_CHARSET = 162;
  495. HEBREW_CHARSET = 177;
  496. ARABIC_CHARSET = 178;
  497. BALTIC_CHARSET = 186;
  498. RUSSIAN_CHARSET = 204;
  499. THAI_CHARSET = 222;
  500. EASTEUROPE_CHARSET = 238;
  501. OEM_CHARSET = 255;
  502. OEM_CERTIFY_TRUST = 2; //+windef
  503. OEM_CERTIFY_RUN = 1; //+windef
  504. OEM_CERTIFY_FALSE = 0; //+windef
  505. OUT_DEFAULT_PRECIS = 0;
  506. OUT_STRING_PRECIS = 1;
  507. OUT_CHARACTER_PRECIS = 2;
  508. OUT_STROKE_PRECIS = 3;
  509. OUT_TT_PRECIS = 4;
  510. OUT_DEVICE_PRECIS = 5;
  511. OUT_RASTER_PRECIS = 6;
  512. OUT_TT_ONLY_PRECIS = 7;
  513. OUT_OUTLINE_PRECIS = 8;
  514. CLIP_DEFAULT_PRECIS = 0;
  515. CLIP_CHARACTER_PRECIS = 1;
  516. CLIP_STROKE_PRECIS = 2;
  517. CLIP_MASK = 15;
  518. CLIP_LH_ANGLES = 16;
  519. CLIP_TT_ALWAYS = 32;
  520. CLIP_EMBEDDED = 128;
  521. DEFAULT_QUALITY = 0;
  522. DRAFT_QUALITY = 1;
  523. PROOF_QUALITY = 2;
  524. NONANTIALIASED_QUALITY = 3;
  525. ANTIALIASED_QUALITY = 4;
  526. DEFAULT_PITCH = 0;
  527. FIXED_PITCH = 1;
  528. VARIABLE_PITCH = 2;
  529. MONO_FONT = 8;
  530. FF_DECORATIVE = 80;
  531. FF_DONTCARE = 0;
  532. FF_MODERN = 48;
  533. FF_ROMAN = 16;
  534. FF_SCRIPT = 64;
  535. FF_SWISS = 32;
  536. { CreateHatchBrush }
  537. HS_BDIAGONAL = 3;
  538. HS_CROSS = 4;
  539. HS_DIAGCROSS = 5;
  540. HS_FDIAGONAL = 2;
  541. HS_HORIZONTAL = 0;
  542. HS_VERTICAL = 1;
  543. { CreateIconFromResourceEx }
  544. LR_DEFAULTCOLOR = 0;
  545. LR_LOADREALSIZE = 128;
  546. { already defined above !!
  547. #define LR_MONOCHROME (1)
  548. }
  549. { CreateMappedBitmap }
  550. CMB_MASKED = 2;
  551. { CreateNamedPipe }
  552. PIPE_ACCESS_DUPLEX = 3;
  553. PIPE_ACCESS_INBOUND = 1;
  554. PIPE_ACCESS_OUTBOUND = 2;
  555. //WRITE_DAC = $40000; //~winnt, moved to ACCESS_TYPES
  556. //WRITE_OWNER = $80000; //~winnt, moved to ACCESS_TYPES
  557. //ACCESS_SYSTEM_SECURITY = $1000000; //~winnt, moved to ACCESS_TYPES
  558. PIPE_TYPE_BYTE = 0;
  559. PIPE_TYPE_MESSAGE = 4;
  560. PIPE_READMODE_BYTE = 0;
  561. PIPE_READMODE_MESSAGE = 2;
  562. PIPE_WAIT = 0;
  563. PIPE_NOWAIT = 1;
  564. { CreatePen, ExtCreatePen }
  565. PS_GEOMETRIC = 65536;
  566. PS_COSMETIC = 0;
  567. PS_ALTERNATE = 8;
  568. PS_SOLID = 0;
  569. PS_DASH = 1;
  570. PS_DOT = 2;
  571. PS_DASHDOT = 3;
  572. PS_DASHDOTDOT = 4;
  573. PS_NULL = 5;
  574. PS_USERSTYLE = 7;
  575. PS_INSIDEFRAME = 6;
  576. PS_ENDCAP_ROUND = 0;
  577. PS_ENDCAP_SQUARE = 256;
  578. PS_ENDCAP_FLAT = 512;
  579. PS_JOIN_BEVEL = 4096;
  580. PS_JOIN_MITER = 8192;
  581. PS_JOIN_ROUND = 0;
  582. PS_STYLE_MASK = 15;
  583. PS_ENDCAP_MASK = 3840;
  584. PS_TYPE_MASK = 983040;
  585. { CreateProcess }
  586. CREATE_DEFAULT_ERROR_MODE = 67108864;
  587. CREATE_NEW_CONSOLE = 16;
  588. CREATE_NEW_PROCESS_GROUP = 512;
  589. CREATE_SEPARATE_WOW_VDM = 2048;
  590. CREATE_SUSPENDED = 4;
  591. CREATE_UNICODE_ENVIRONMENT = 1024;
  592. DEBUG_PROCESS = 1;
  593. DEBUG_ONLY_THIS_PROCESS = 2;
  594. DETACHED_PROCESS = 8;
  595. HIGH_PRIORITY_CLASS = 128;
  596. IDLE_PRIORITY_CLASS = 64;
  597. NORMAL_PRIORITY_CLASS = 32;
  598. REALTIME_PRIORITY_CLASS = 256;
  599. { CreateService }
  600. SERVICE_ALL_ACCESS = $f01ff;
  601. SERVICE_CHANGE_CONFIG = 2;
  602. SERVICE_ENUMERATE_DEPENDENTS = 8;
  603. SERVICE_INTERROGATE = 128;
  604. SERVICE_PAUSE_CONTINUE = 64;
  605. SERVICE_QUERY_CONFIG = 1;
  606. SERVICE_QUERY_STATUS = 4;
  607. SERVICE_START = 16;
  608. SERVICE_STOP = 32;
  609. SERVICE_USER_DEFINED_CONTROL = 256;
  610. SERVICE_DELETE = $10000;
  611. SERVICE_READ_CONTROL = $20000;
  612. SERVICE_GENERIC_EXECUTE = $20000000;
  613. { already defined above !!
  614. #define SERVICE_WIN32_OWN_PROCESS (16)
  615. #define SERVICE_WIN32_SHARE_PROCESS (32)
  616. #define SERVICE_KERNEL_DRIVER (1)
  617. #define SERVICE_FILE_SYSTEM_DRIVER (2)
  618. #define SERVICE_INTERACTIVE_PROCESS (256)
  619. #define SERVICE_BOOT_START (0)
  620. #define SERVICE_SYSTEM_START (1)
  621. #define SERVICE_AUTO_START (2)
  622. #define SERVICE_DEMAND_START (3)
  623. #define SERVICE_DISABLED (4)
  624. }
  625. SERVICE_ERROR_IGNORE = 0;
  626. SERVICE_ERROR_NORMAL = 1;
  627. SERVICE_ERROR_SEVERE = 2;
  628. SERVICE_ERROR_CRITICAL = 3;
  629. { CreateTapePartition, WriteTapemark }
  630. TAPE_FIXED_PARTITIONS = 0;
  631. TAPE_INITIATOR_PARTITIONS = $2;
  632. TAPE_SELECT_PARTITIONS = $1;
  633. TAPE_FILEMARKS = $1;
  634. TAPE_LONG_FILEMARKS = $3;
  635. TAPE_SETMARKS = 0;
  636. TAPE_SHORT_FILEMARKS = $2;
  637. { CreateWindow }
  638. CW_USEDEFAULT = longint($80000000);
  639. WS_BORDER = $800000;
  640. WS_CAPTION = $c00000;
  641. WS_CHILD = $40000000;
  642. { WS_CHILDWINDOW = $40000000; // Not declared in WinCE }
  643. WS_CLIPCHILDREN = $2000000;
  644. WS_CLIPSIBLINGS = $4000000;
  645. WS_DISABLED = $8000000;
  646. WS_DLGFRAME = $400000;
  647. WS_GROUP = $20000;
  648. WS_HSCROLL = $100000;
  649. WS_MAXIMIZEBOX = $20000;
  650. WS_MINIMIZEBOX = $10000;
  651. WS_OVERLAPPED = WS_BORDER or WS_CAPTION;
  652. WS_POPUP = $80000000;
  653. WS_SIZEBOX = $40000;
  654. WS_SYSMENU = $80000;
  655. WS_TABSTOP = $10000;
  656. WS_THICKFRAME = $40000;
  657. WS_VISIBLE = $10000000;
  658. WS_VSCROLL = $200000;
  659. BS_3STATE = $5;
  660. BS_AUTO3STATE = $6;
  661. BS_AUTOCHECKBOX = $3;
  662. BS_AUTORADIOBUTTON = $9;
  663. BS_BITMAP = $80;
  664. BS_BOTTOM = $800;
  665. BS_CENTER = $300;
  666. BS_CHECKBOX = $2;
  667. BS_DEFPUSHBUTTON = $1;
  668. BS_GROUPBOX = $7;
  669. BS_ICON = $40;
  670. BS_LEFT = $100;
  671. BS_LEFTTEXT = $20;
  672. BS_MULTILINE = $2000;
  673. BS_NOTIFY = $4000;
  674. BS_OWNERDRAW = $b;
  675. BS_PUSHBUTTON = 0;
  676. BS_PUSHLIKE = $1000;
  677. BS_RADIOBUTTON = $4;
  678. BS_RIGHT = $200;
  679. BS_RIGHTBUTTON = BS_LEFTTEXT;
  680. BS_TEXT = 0;
  681. BS_TOP = $400;
  682. { BS_USERBUTTON = $8; // Unsupported under WinCE. }
  683. BS_VCENTER = $c00;
  684. { BS_FLAT = $8000; // Unsupported under WinCE. }
  685. CBS_AUTOHSCROLL = $40;
  686. CBS_DISABLENOSCROLL = $800;
  687. CBS_DROPDOWN = $2;
  688. CBS_DROPDOWNLIST = $3;
  689. CBS_HASSTRINGS = $200;
  690. CBS_LOWERCASE = $4000;
  691. CBS_NOINTEGRALHEIGHT = $400;
  692. CBS_OEMCONVERT = $80;
  693. { CBS_OWNERDRAWFIXED = $10; // Unsupported under WinCE. }
  694. { CBS_OWNERDRAWVARIABLE = $20; // Unsupported under WinCE. }
  695. { CBS_SIMPLE = $1; // Unsupported under WinCE. }
  696. CBS_SORT = $100;
  697. CBS_UPPERCASE = $2000;
  698. { Extended combo box styles }
  699. CBS_EX_CONSTSTRINGDATA = $00000002;
  700. { If you specify the CBS_EX_CONSTSTRINGDATA style when the application
  701. inserts a string into the list part of a combo box, the combo box
  702. stores the pointer passed to it by the application rather than copying
  703. the string. This saves RAM resources when you have a large table of
  704. strings in ROM that you want to insert into a combo box. }
  705. { Edit Control Styles }
  706. ES_AUTOHSCROLL = $80;
  707. ES_AUTOVSCROLL = $40;
  708. ES_CENTER = $1;
  709. ES_LEFT = 0;
  710. ES_LOWERCASE = $10;
  711. ES_MULTILINE = $4;
  712. ES_NOHIDESEL = $100;
  713. ES_NUMBER = $2000;
  714. ES_OEMCONVERT = $400;
  715. ES_PASSWORD = $20;
  716. ES_READONLY = $800;
  717. ES_RIGHT = $2;
  718. ES_UPPERCASE = $8;
  719. ES_WANTRETURN = $1000;
  720. ES_COMBOBOX = $0200; { Indicates that the edit control is part of a combo box. }
  721. { List box styles }
  722. LBS_DISABLENOSCROLL = $1000;
  723. LBS_EXTENDEDSEL = $800;
  724. LBS_HASSTRINGS = $40;
  725. LBS_MULTICOLUMN = $200;
  726. LBS_MULTIPLESEL = $8;
  727. LBS_NODATA = $2000;
  728. LBS_NOINTEGRALHEIGHT = $100;
  729. LBS_NOREDRAW = $4;
  730. LBS_NOSEL = $4000;
  731. LBS_NOTIFY = $1;
  732. LBS_OWNERDRAWFIXED = $10;
  733. LBS_OWNERDRAWVARIABLE = $20;
  734. LBS_SORT = $2;
  735. // LBS_STANDARD = $a00003;
  736. LBS_USETABSTOPS = $80;
  737. LBS_WANTKEYBOARDINPUT = $400;
  738. LBS_STANDARD = LBS_NOTIFY or LBS_SORT or WS_VSCROLL or WS_BORDER;
  739. { Extended list box styles }
  740. LBS_EX_CONSTSTRINGDATA = $00000002;
  741. { Windows CE supports the LBS_EX_CONSTSTRINGDATA style that saves RAM
  742. resources when you have a large table of strings in ROM that you want
  743. to insert into a list box. }
  744. { Scroll bar styles }
  745. { SBS_BOTTOMALIGN = $4; // Unsupported under WinCE. }
  746. SBS_HORZ = 0;
  747. { SBS_LEFTALIGN = $2; // Unsupported under WinCE. }
  748. { SBS_RIGHTALIGN = $4; // Unsupported under WinCE. }
  749. { SBS_SIZEBOX = $8; // Unsupported under WinCE. }
  750. { SBS_SIZEBOXBOTTOMRIGHTALIGN = $4; // Unsupported under WinCE. }
  751. { SBS_SIZEBOXTOPLEFTALIGN = $2; // Unsupported under WinCE. }
  752. { SBS_SIZEGRIP = $10; // Unsupported under WinCE. }
  753. { SBS_TOPALIGN = $2; // Unsupported under WinCE. }
  754. SBS_VERT = $1;
  755. { Static control styles }
  756. SS_BITMAP = $e;
  757. { SS_BLACKFRAME = $7; // Unsupported under WinCE. }
  758. { SS_BLACKRECT = $4; // Unsupported under WinCE. }
  759. SS_CENTER = $1;
  760. SS_CENTERIMAGE = $200;
  761. { SS_ENHMETAFILE = $f; // Unsupported under WinCE. }
  762. { SS_ETCHEDFRAME = $12; // Unsupported under WinCE. }
  763. { SS_ETCHEDHORZ = $10; // Unsupported under WinCE. }
  764. { SS_ETCHEDVERT = $11; // Unsupported under WinCE. }
  765. { SS_GRAYFRAME = $8; // Unsupported under WinCE. }
  766. { SS_GRAYRECT = $5; // Unsupported under WinCE. }
  767. SS_ICON = $3;
  768. SS_LEFT = 0;
  769. SS_LEFTNOWORDWRAP = $c;
  770. SS_NOPREFIX = $80;
  771. SS_NOTIFY = $100;
  772. { SS_OWNERDRAW = $d; // Unsupported under WinCE. }
  773. { SS_REALSIZEIMAGE = $800; // Unsupported under WinCE. }
  774. SS_RIGHT = $2;
  775. { SS_RIGHTJUST = $400; // Unsupported under WinCE. }
  776. { SS_SIMPLE = $b; // Unsupported under WinCE. }
  777. { SS_SUNKEN = $1000; // Unsupported under WinCE. }
  778. { SS_USERITEM = $a; // Unsupported under WinCE. }
  779. { SS_WHITEFRAME = $9; // Unsupported under WinCE. }
  780. { SS_WHITERECT = $6; // Unsupported under WinCE. }
  781. { Dialog styles }
  782. { DS_ABSALIGN = $1; // Unsupported under WinCE. }
  783. { DS_SYSMODAL = $2; // Unsupported under WinCE. }
  784. DS_3DLOOK = $4;
  785. { DS_FIXEDSYS = $8; // Unsupported under WinCE. }
  786. { DS_NOFAILCREATE = $10; // Unsupported under WinCE. }
  787. DS_LOCALEDIT = $20; { Edit items get Local storage. }
  788. DS_SETFONT = $40; { User specified font for Dlg controls. }
  789. DS_MODALFRAME = $80; { Can be combined with WS_CAPTION. }
  790. { DS_NOIDLEMSG = $100; // Unsupported under WinCE. }
  791. DS_SETFOREGROUND = $200; { not in Windows 3.1 }
  792. DS_CONTROL = $400;
  793. DS_CENTER = $800;
  794. { DS_CENTERMOUSE = $1000; // Unsupported under WinCE. }
  795. { DS_CONTEXTHELP = $2000; // Unsupported under WinCE. }
  796. DS_NOCLOSEBTN = $4000;
  797. { CreateWindowEx }
  798. { WS_EX_LEFT = 0; // Not declared. }
  799. { WS_EX_LTRREADING = 0; // Not declared. }
  800. { WS_EX_RIGHTSCROLLBAR = 0; // Not declared. }
  801. WS_EX_DLGMODALFRAME = $1;
  802. { WS_EX_NOPARENTNOTIFY = $4; // Unsupported under WinCE. }
  803. WS_EX_TOPMOST = $8;
  804. { WS_EX_ACCEPTFILES = $10; // Unsupported under WinCE. }
  805. { WS_EX_TRANSPARENT = $20; // Unsupported under WinCE. }
  806. { WS_EX_MDICHILD = $40; // Unsupported under WinCE. }
  807. WS_EX_TOOLWINDOW = $80;
  808. { WS_EX_PALETTEWINDOW = $188; // Unsupported under WinCE. }
  809. WS_EX_WINDOWEDGE = $100;
  810. WS_EX_CLIENTEDGE = $200;
  811. WS_EX_OVERLAPPEDWINDOW = WS_EX_WINDOWEDGE or WS_EX_CLIENTEDGE;
  812. WS_EX_CONTEXTHELP = $400;
  813. WS_EX_RIGHT = $1000;
  814. WS_EX_RTLREADING = $2000;
  815. WS_EX_LEFTSCROLLBAR = $4000;
  816. { WS_EX_CONTROLPARENT = $10000; // Unsupported under WinCE. }
  817. WS_EX_STATICEDGE = $20000;
  818. { WS_EX_APPWINDOW = $40000; // Unsupported under WinCE. }
  819. WS_EX_NOANIMATION = $4000000;
  820. WS_EX_NOACTIVATE = $8000000;
  821. WS_EX_INK = $10000000;
  822. WS_EX_ABOVESTARTUP = $20000000;
  823. WS_EX_NODRAG = $40000000;
  824. WS_EX_CAPTIONOKBTN = $80000000;
  825. WS_EX_NOINHERITLAYOUT = $00100000; // Disable inheritence of mirroring by children
  826. WS_EX_LAYOUTRTL = $00400000; // Right to left mirroring
  827. { CreateWindowStation }
  828. WINSTA_ACCESSCLIPBOARD = $4;
  829. WINSTA_ACCESSGLOBALATOMS = $20;
  830. WINSTA_CREATEDESKTOP = $8;
  831. WINSTA_ENUMDESKTOPS = $1;
  832. WINSTA_ENUMERATE = $100;
  833. WINSTA_EXITWINDOWS = $40;
  834. WINSTA_READATTRIBUTES = $2;
  835. WINSTA_READSCREEN = $200;
  836. WINSTA_WRITEATTRIBUTES = $10;
  837. { DdeCallback }
  838. { DdeClientTransaction }
  839. { DdeEnableCallback }
  840. { DdeGetLastError }
  841. { DdeInitialize }
  842. { DdeNameService }
  843. { DebugProc }
  844. WH_CALLWNDPROC = 4;
  845. WH_CALLWNDPROCRET = 12;
  846. WH_CBT = 5;
  847. WH_DEBUG = 9;
  848. WH_GETMESSAGE = 3;
  849. WH_JOURNALPLAYBACK = 1;
  850. WH_JOURNALRECORD = 0;
  851. WH_KEYBOARD = 2;
  852. WH_MOUSE = 7;
  853. WH_MSGFILTER = -(1);
  854. WH_SHELL = 10;
  855. WH_SYSMSGFILTER = 6;
  856. { already defined above !!
  857. #define WH_MSGFILTER (-1) }
  858. WH_FOREGROUNDIDLE = 11;
  859. { DefineDosDevice }
  860. DDD_RAW_TARGET_PATH = 1;
  861. DDD_REMOVE_DEFINITION = 2;
  862. DDD_EXACT_MATCH_ON_REMOVE = 4;
  863. { DeviceCapbilities }
  864. DC_BINNAMES = 12; //windef
  865. DC_BINS = 6; //windef
  866. DC_COPIES = 18; //windef
  867. DC_DRIVER = 11; //windef
  868. DC_DATATYPE_PRODUCED = 21;
  869. DC_DUPLEX = 7; //windef
  870. DC_EMF_COMPLIANT = 20;
  871. DC_ENUMRESOLUTIONS = 13; //windef
  872. DC_EXTRA = 9; //windef
  873. DC_FIELDS = 1; //windef
  874. DC_FILEDEPENDENCIES = 14; //windef
  875. DC_MAXEXTENT = 5; //windef
  876. DC_MINEXTENT = 4; //windef
  877. DC_ORIENTATION = 17; //windef
  878. DC_PAPERNAMES = 16; //windef
  879. DC_PAPERS = 2; //windef
  880. DC_PAPERSIZE = 3; //windef
  881. DC_SIZE = 8; //windef
  882. DC_TRUETYPE = 15; //windef
  883. DCTT_BITMAP = $1;
  884. DCTT_DOWNLOAD = $2;
  885. DCTT_SUBDEV = $4;
  886. DC_VERSION = 10; //windef
  887. DC_BINADJUST = 19;
  888. { already defined above !!
  889. #define DC_DATATYPE_PRODUCED (21)
  890. }
  891. { DeviceIoControl }
  892. { DlgDirList }
  893. DDL_ARCHIVE = 32;
  894. DDL_DIRECTORY = 16;
  895. DDL_DRIVES = 16384;
  896. DDL_EXCLUSIVE = 32768;
  897. DDL_HIDDEN = 2;
  898. DDL_READONLY = 1;
  899. DDL_READWRITE = 0;
  900. DDL_SYSTEM = 4;
  901. DDL_POSTMSGS = 8192;
  902. { DllEntryPoint }
  903. DLL_PROCESS_ATTACH = 1;
  904. DLL_THREAD_ATTACH = 2;
  905. DLL_PROCESS_DETACH = 0;
  906. DLL_THREAD_DETACH = 3;
  907. { DocumentProperties }
  908. DM_IN_BUFFER = 8; //windef
  909. DM_MODIFY = 8; //windef
  910. DM_IN_PROMPT = 4; //windef
  911. DM_PROMPT = 4; //windef
  912. DM_OUT_BUFFER = 2; //windef
  913. DM_COPY = 2; //windef
  914. DM_UPDATE = 1; //windef
  915. { DrawAnimatedRects }
  916. IDANI_OPEN = 1;
  917. IDANI_CLOSE = 2;
  918. { DrawCaption }
  919. DC_ACTIVE = 1;
  920. DC_SMALLCAP = 2;
  921. { DrawEdge }
  922. BDR_RAISEDINNER = 4;
  923. BDR_SUNKENINNER = 8;
  924. BDR_RAISEDOUTER = 1;
  925. BDR_SUNKENOUTER = 1;
  926. EDGE_BUMP = 9;
  927. EDGE_ETCHED = 6;
  928. EDGE_RAISED = 5;
  929. EDGE_SUNKEN = 10;
  930. BF_ADJUST = 8192;
  931. BF_BOTTOM = 8;
  932. BF_BOTTOMLEFT = 9;
  933. BF_BOTTOMRIGHT = 12;
  934. BF_DIAGONAL = 16;
  935. BF_DIAGONAL_ENDBOTTOMLEFT = 25;
  936. BF_DIAGONAL_ENDBOTTOMRIGHT = 28;
  937. BF_DIAGONAL_ENDTOPLEFT = 19;
  938. BF_DIAGONAL_ENDTOPRIGHT = 22;
  939. BF_FLAT = 16384;
  940. BF_LEFT = 1;
  941. BF_MIDDLE = 2048;
  942. BF_MONO = 32768;
  943. BF_RECT = 15;
  944. BF_RIGHT = 4;
  945. BF_SOFT = 4096;
  946. BF_TOP = 2;
  947. BF_TOPLEFT = 3;
  948. BF_TOPRIGHT = 6;
  949. { DrawFrameControl }
  950. DFC_BUTTON = 4;
  951. DFC_CAPTION = 1;
  952. DFC_MENU = 2;
  953. DFC_SCROLL = 3;
  954. DFCS_BUTTON3STATE = 8;
  955. DFCS_BUTTONCHECK = 0;
  956. DFCS_BUTTONPUSH = 16;
  957. DFCS_BUTTONRADIO = 4;
  958. DFCS_BUTTONRADIOIMAGE = 1;
  959. DFCS_BUTTONRADIOMASK = 2;
  960. DFCS_CAPTIONCLOSE = 0;
  961. DFCS_CAPTIONHELP = 4;
  962. DFCS_CAPTIONMAX = 2;
  963. DFCS_CAPTIONMIN = 1;
  964. DFCS_CAPTIONRESTORE = 3;
  965. DFCS_MENUARROW = 0;
  966. DFCS_MENUBULLET = 2;
  967. DFCS_MENUCHECK = 1;
  968. DFCS_SCROLLCOMBOBOX = 5;
  969. DFCS_SCROLLDOWN = 1;
  970. DFCS_SCROLLLEFT = 2;
  971. DFCS_SCROLLRIGHT = 3;
  972. DFCS_SCROLLSIZEGRIP = 8;
  973. DFCS_SCROLLUP = 0;
  974. DFCS_ADJUSTRECT = 8192;
  975. DFCS_CHECKED = 1024;
  976. DFCS_FLAT = 16384;
  977. DFCS_INACTIVE = 256;
  978. DFCS_MONO = 32768;
  979. DFCS_PUSHED = 512;
  980. { DrawIconEx }
  981. DI_COMPAT = 4;
  982. DI_DEFAULTSIZE = 8;
  983. DI_IMAGE = 2;
  984. DI_MASK = 1;
  985. DI_NORMAL = 3;
  986. { DrawState }
  987. DST_BITMAP = 4;
  988. DST_COMPLEX = 0;
  989. DST_ICON = 3;
  990. DST_PREFIXTEXT = 2;
  991. DST_TEXT = 1;
  992. DSS_NORMAL = 0;
  993. DSS_UNION = 16;
  994. DSS_DISABLED = 32;
  995. DSS_MONO = 128;
  996. { DrawStatusText }
  997. SBT_NOBORDERS = 256;
  998. SBT_OWNERDRAW = 4096;
  999. SBT_POPOUT = 512;
  1000. SBT_RTLREADING = 1024;
  1001. { DrawText, DrawTextEx }
  1002. DT_BOTTOM = 8;
  1003. DT_CALCRECT = 1024;
  1004. DT_CENTER = 1;
  1005. DT_EDITCONTROL = 8192;
  1006. DT_END_ELLIPSIS = 32768;
  1007. DT_PATH_ELLIPSIS = 16384;
  1008. DT_EXPANDTABS = 64;
  1009. DT_EXTERNALLEADING = 512;
  1010. DT_LEFT = 0;
  1011. DT_MODIFYSTRING = 65536;
  1012. DT_NOCLIP = 256;
  1013. DT_NOPREFIX = 2048;
  1014. DT_RIGHT = 2;
  1015. DT_RTLREADING = 131072;
  1016. DT_SINGLELINE = 32;
  1017. DT_TABSTOP = 128;
  1018. DT_TOP = 0;
  1019. DT_VCENTER = 4;
  1020. DT_WORDBREAK = 16;
  1021. DT_INTERNAL = 4096;
  1022. { DuplicateHandle, MapViewOfFile }
  1023. DUPLICATE_CLOSE_SOURCE = 1;
  1024. DUPLICATE_SAME_ACCESS = 2;
  1025. FILE_MAP_ALL_ACCESS = $f001f;
  1026. FILE_MAP_READ = 4;
  1027. FILE_MAP_WRITE = 2;
  1028. FILE_MAP_COPY = 1;
  1029. MUTEX_ALL_ACCESS = $1f0001;
  1030. MUTEX_MODIFY_STATE = 1;
  1031. //SYNCHRONIZE = $100000; //~winnt, move to ACCESS_TYPE
  1032. SEMAPHORE_ALL_ACCESS = $1f0003;
  1033. SEMAPHORE_MODIFY_STATE = 2;
  1034. EVENT_ALL_ACCESS = $1f0003;
  1035. EVENT_MODIFY_STATE = 2;
  1036. KEY_ALL_ACCESS = $f003f;
  1037. KEY_CREATE_LINK = 32;
  1038. KEY_CREATE_SUB_KEY = 4;
  1039. KEY_ENUMERATE_SUB_KEYS = 8;
  1040. KEY_EXECUTE = $20019;
  1041. KEY_NOTIFY = 16;
  1042. KEY_QUERY_VALUE = 1;
  1043. KEY_READ = $20019;
  1044. KEY_SET_VALUE = 2;
  1045. KEY_WRITE = $20006;
  1046. PROCESS_ALL_ACCESS = $1f0fff;
  1047. PROCESS_CREATE_PROCESS = 128;
  1048. PROCESS_CREATE_THREAD = 2;
  1049. PROCESS_DUP_HANDLE = 64;
  1050. PROCESS_QUERY_INFORMATION = 1024;
  1051. PROCESS_SET_INFORMATION = 512;
  1052. PROCESS_TERMINATE = 1;
  1053. PROCESS_VM_OPERATION = 8;
  1054. PROCESS_VM_READ = 16;
  1055. PROCESS_VM_WRITE = 32;
  1056. THREAD_ALL_ACCESS = $1f03ff;
  1057. THREAD_DIRECT_IMPERSONATION = 512;
  1058. THREAD_GET_CONTEXT = 8;
  1059. THREAD_IMPERSONATE = 256;
  1060. THREAD_QUERY_INFORMATION = 64;
  1061. THREAD_SET_CONTEXT = 16;
  1062. THREAD_SET_INFORMATION = 32;
  1063. THREAD_SET_THREAD_TOKEN = 128;
  1064. THREAD_SUSPEND_RESUME = 2;
  1065. THREAD_TERMINATE = 1;
  1066. { EditWordBreakProc }
  1067. WB_ISDELIMITER = 2;
  1068. WB_LEFT = 0;
  1069. WB_RIGHT = 1;
  1070. { EnableScrollBar }
  1071. SB_BOTH = 3;
  1072. SB_CTL = 2;
  1073. SB_HORZ = 0;
  1074. SB_VERT = 1;
  1075. ESB_DISABLE_BOTH = 3;
  1076. ESB_DISABLE_DOWN = 2;
  1077. ESB_DISABLE_LEFT = 1;
  1078. ESB_DISABLE_LTUP = 1;
  1079. ESB_DISABLE_RIGHT = 2;
  1080. ESB_DISABLE_RTDN = 2;
  1081. ESB_DISABLE_UP = 1;
  1082. ESB_ENABLE_BOTH = 0;
  1083. { Scroll Bar notifications }
  1084. SB_LINEUP = 0;
  1085. SB_LINEDOWN = 1;
  1086. SB_LINELEFT = 0;
  1087. SB_LINERIGHT = 1;
  1088. SB_PAGEUP = 2;
  1089. SB_PAGEDOWN = 3;
  1090. SB_PAGELEFT = 2;
  1091. SB_PAGERIGHT = 3;
  1092. SB_THUMBPOSITION = 4;
  1093. SB_THUMBTRACK = 5;
  1094. SB_ENDSCROLL = 8;
  1095. SB_LEFT = 6;
  1096. SB_RIGHT = 7;
  1097. SB_BOTTOM = 7;
  1098. SB_TOP = 6;
  1099. { EnumCalendarInfo }
  1100. ENUM_ALL_CALENDARS = -(1);
  1101. { EnumDateFormats }
  1102. DATE_SHORTDATE = 1;
  1103. DATE_LONGDATE = 2;
  1104. { EnumDependentServices }
  1105. SERVICE_ACTIVE = 1;
  1106. SERVICE_INACTIVE = 2;
  1107. { EnumFontFamExProc }
  1108. DEVICE_FONTTYPE = 2;
  1109. RASTER_FONTTYPE = 1;
  1110. TRUETYPE_FONTTYPE = 4;
  1111. { EnumObjects, GetCurrentObject, GetObjectType }
  1112. OBJ_BRUSH = 2;
  1113. OBJ_PEN = 1;
  1114. OBJ_PAL = 5;
  1115. OBJ_FONT = 6;
  1116. OBJ_BITMAP = 7;
  1117. OBJ_EXTPEN = 11;
  1118. OBJ_REGION = 8;
  1119. OBJ_DC = 3;
  1120. OBJ_MEMDC = 10;
  1121. OBJ_METAFILE = 9;
  1122. OBJ_METADC = 4;
  1123. OBJ_ENHMETAFILE = 13;
  1124. OBJ_ENHMETADC = 12;
  1125. { EnumPrinters }
  1126. { EnumProtocols }
  1127. { EnumResLangProc }
  1128. RT_ACCELERATOR = MAKEINTRESOURCE(9);
  1129. RT_BITMAP = MAKEINTRESOURCE(2);
  1130. RT_DIALOG = MAKEINTRESOURCE(5);
  1131. RT_FONT = MAKEINTRESOURCE(8);
  1132. RT_FONTDIR = MAKEINTRESOURCE(7);
  1133. RT_MENU = MAKEINTRESOURCE(4);
  1134. RT_RCDATA = MAKEINTRESOURCE(10);
  1135. RT_STRING = MAKEINTRESOURCE(6);
  1136. RT_MESSAGETABLE = MAKEINTRESOURCE(11);
  1137. RT_CURSOR = MAKEINTRESOURCE(1);
  1138. RT_GROUP_CURSOR = MAKEINTRESOURCE(12);
  1139. RT_ICON = MAKEINTRESOURCE(3);
  1140. RT_GROUP_ICON = MAKEINTRESOURCE(13);
  1141. RT_VERSION = MAKEINTRESOURCE(16);
  1142. { EnumServicesStatus }
  1143. const
  1144. SERVICE_WIN32 = 48;
  1145. SERVICE_DRIVER = 11;
  1146. { EnumSystemCodePages }
  1147. CP_INSTALLED = 1;
  1148. CP_SUPPORTED = 2;
  1149. { EnumSystemLocales }
  1150. LCID_INSTALLED = 1;
  1151. LCID_SUPPORTED = 2;
  1152. { EraseTape }
  1153. TAPE_ERASE_LONG = $1;
  1154. TAPE_ERASE_SHORT = 0;
  1155. { Escape }
  1156. SP_ERROR = -(1);
  1157. SP_OUTOFDISK = -(4);
  1158. SP_OUTOFMEMORY = -(5);
  1159. SP_USERABORT = -(3);
  1160. PHYSICALWIDTH = 110;
  1161. PHYSICALHEIGHT = 111;
  1162. PHYSICALOFFSETX = 112;
  1163. PHYSICALOFFSETY = 113;
  1164. SCALINGFACTORX = 114;
  1165. SCALINGFACTORY = 115;
  1166. QUERYESCSUPPORT = 8;
  1167. {ABORTDOC = 2; conflicts with AbortDoc function }
  1168. cABORTDOC = 2;
  1169. {ENDDOC = 11; conflicts with AbortDoc function }
  1170. cENDDOC = 11;
  1171. GETPHYSPAGESIZE = 12;
  1172. GETPRINTINGOFFSET = 13;
  1173. GETSCALINGFACTOR = 14;
  1174. NEWFRAME = 1;
  1175. NEXTBAND = 3;
  1176. PASSTHROUGH = 19;
  1177. {SETABORTPROC = 9; conflicts with AbortDoc function }
  1178. cSETABORTPROC = 9;
  1179. {STARTDOC = 10; conflicts with AbortDoc function }
  1180. cSTARTDOC = 10;
  1181. { EscapeCommFunction }
  1182. CLRDTR = 6; //winbase
  1183. CLRRTS = 4; //winbase
  1184. SETDTR = 5; //winbase
  1185. SETRTS = 3; //winbase
  1186. SETXOFF = 1; //winbase
  1187. SETXON = 2; //winbase
  1188. SETBREAK = 8; //winbase
  1189. CLRBREAK = 9; //winbase
  1190. // Some CE devices share a UART between an IRDA port and a serial port.
  1191. // These escape functions allow control over the mode.
  1192. SETIR = 10; // Set the port to IR mode. //+winbase
  1193. CLRIR = 11; // Set the port to non-IR mode. //+winbase
  1194. { ExitWindowsEx }
  1195. EWX_FORCE = 4;
  1196. EWX_LOGOFF = 0;
  1197. EWX_POWEROFF = 8;
  1198. EWX_REBOOT = 2;
  1199. EWX_SHUTDOWN = 1;
  1200. { ExtFloodFill }
  1201. FLOODFILLBORDER = 0;
  1202. FLOODFILLSURFACE = 1;
  1203. { ExtTextOut }
  1204. ETO_CLIPPED = 4;
  1205. ETO_GLYPH_INDEX = 16;
  1206. ETO_OPAQUE = 2;
  1207. ETO_RTLREADING = 128;
  1208. { FindFirstChangeNotification }
  1209. FILE_NOTIFY_CHANGE_FILE_NAME = 1;
  1210. FILE_NOTIFY_CHANGE_DIR_NAME = 2;
  1211. FILE_NOTIFY_CHANGE_ATTRIBUTES = 4;
  1212. FILE_NOTIFY_CHANGE_SIZE = 8;
  1213. FILE_NOTIFY_CHANGE_LAST_WRITE = 16;
  1214. FILE_NOTIFY_CHANGE_SECURITY = 256;
  1215. { FindFirstPrinterChangeNotification }
  1216. { FindNextPrinterNotification }
  1217. { FMExtensionProc }
  1218. { FoldString }
  1219. MAP_FOLDCZONE = 16;
  1220. MAP_FOLDDIGITS = 128;
  1221. MAP_PRECOMPOSED = 32;
  1222. MAP_COMPOSITE = 64;
  1223. { ForegroundIdleProc }
  1224. HC_ACTION = 0;
  1225. { FormatMessage }
  1226. FORMAT_MESSAGE_ALLOCATE_BUFFER = 256;
  1227. FORMAT_MESSAGE_IGNORE_INSERTS = 512;
  1228. FORMAT_MESSAGE_FROM_STRING = 1024;
  1229. FORMAT_MESSAGE_FROM_HMODULE = 2048;
  1230. FORMAT_MESSAGE_FROM_SYSTEM = 4096;
  1231. FORMAT_MESSAGE_ARGUMENT_ARRAY = 8192;
  1232. FORMAT_MESSAGE_MAX_WIDTH_MASK = 255;
  1233. { GdiComment }
  1234. GDICOMMENT_WINDOWS_METAFILE = -(2147483647);
  1235. GDICOMMENT_BEGINGROUP = 2;
  1236. GDICOMMENT_ENDGROUP = 3;
  1237. GDICOMMENT_MULTIFORMATS = 1073741828;
  1238. GDICOMMENT_IDENTIFIER = 1128875079;
  1239. { GenerateConsoleCtrlEvent, HandlerRoutine }
  1240. CTRL_C_EVENT = 0;
  1241. CTRL_BREAK_EVENT = 1;
  1242. CTRL_CLOSE_EVENT = 2;
  1243. CTRL_LOGOFF_EVENT = 5;
  1244. CTRL_SHUTDOWN_EVENT = 6;
  1245. { GetAddressByName }
  1246. { GetArcDirection }
  1247. AD_COUNTERCLOCKWISE = 1;
  1248. AD_CLOCKWISE = 2;
  1249. { GetClassLong, GetClassWord }
  1250. GCW_ATOM = -(32);
  1251. GCL_CBCLSEXTRA = -(20);
  1252. GCL_CBWNDEXTRA = -(18);
  1253. GCL_HBRBACKGROUND = -(10);
  1254. GCL_HCURSOR = -(12);
  1255. GCL_HICON = -(14);
  1256. GCL_HICONSM = -(34);
  1257. GCL_HMODULE = -(16);
  1258. GCL_MENUNAME = -(8);
  1259. GCL_STYLE = -(26);
  1260. GCL_WNDPROC = -(24);
  1261. { GetClipboardFormat, SetClipboardData }
  1262. CF_BITMAP = 2;
  1263. CF_DIB = 8;
  1264. CF_PALETTE = 9;
  1265. CF_ENHMETAFILE = 14;
  1266. CF_METAFILEPICT = 3;
  1267. CF_OEMTEXT = 7;
  1268. CF_TEXT = 1;
  1269. CF_UNICODETEXT = 13;
  1270. CF_DIF = 5;
  1271. CF_DSPBITMAP = 130;
  1272. CF_DSPENHMETAFILE = 142;
  1273. CF_DSPMETAFILEPICT = 131;
  1274. CF_DSPTEXT = 129;
  1275. CF_GDIOBJFIRST = 768;
  1276. CF_GDIOBJLAST = 1023;
  1277. CF_HDROP = 15;
  1278. CF_LOCALE = 16;
  1279. CF_OWNERDISPLAY = 128;
  1280. CF_PENDATA = 10;
  1281. CF_PRIVATEFIRST = 512;
  1282. CF_PRIVATELAST = 767;
  1283. CF_RIFF = 11;
  1284. CF_SYLK = 4;
  1285. CF_WAVE = 12;
  1286. CF_TIFF = 6;
  1287. { GetCommMask }
  1288. EV_BREAK = 64;
  1289. EV_CTS = 8;
  1290. EV_DSR = 16;
  1291. EV_ERR = 128;
  1292. EV_EVENT1 = 2048;
  1293. EV_EVENT2 = 4096;
  1294. EV_PERR = 512;
  1295. EV_RING = 256;
  1296. EV_RLSD = 32;
  1297. EV_RX80FULL = 1024;
  1298. EV_RXCHAR = 1;
  1299. EV_RXFLAG = 2;
  1300. EV_TXEMPTY = 4;
  1301. EV_POWER = $2000; // WINCE Power event. //+winbase
  1302. { GetCommModemStatus }
  1303. MS_CTS_ON = $10;
  1304. MS_DSR_ON = $20;
  1305. MS_RING_ON = $40;
  1306. MS_RLSD_ON = $80;
  1307. { GetComputerName }
  1308. MAX_COMPUTERNAME_LENGTH = 15;
  1309. { GetCPInfo }
  1310. CP_ACP = 0;
  1311. CP_MACCP = 2;
  1312. CP_OEMCP = 1;
  1313. { WinCE 5.0+}
  1314. CP_UTF7 = 65000;
  1315. CP_UTF8 = 65001;
  1316. { GetDateFormat }
  1317. { already defined above !!
  1318. #define DATE_SHORTDATE (1)
  1319. #define DATE_LONGDATE (2)
  1320. }
  1321. DATE_USE_ALT_CALENDAR = 4;
  1322. { GetDCEx }
  1323. DCX_WINDOW = $1;
  1324. DCX_CACHE = $2;
  1325. DCX_PARENTCLIP = $20;
  1326. DCX_CLIPSIBLINGS = $10;
  1327. DCX_CLIPCHILDREN = $8;
  1328. DCX_NORESETATTRS = $4;
  1329. DCX_LOCKWINDOWUPDATE = $400;
  1330. DCX_EXCLUDERGN = $40;
  1331. DCX_INTERSECTRGN = $80;
  1332. DCX_VALIDATE = $200000;
  1333. { GetDeviceCaps }
  1334. DRIVERVERSION = 0;
  1335. TECHNOLOGY = 2;
  1336. DT_PLOTTER = 0;
  1337. DT_RASDISPLAY = 1;
  1338. DT_RASPRINTER = 2;
  1339. DT_RASCAMERA = 3;
  1340. DT_CHARSTREAM = 4;
  1341. DT_METAFILE = 5;
  1342. DT_DISPFILE = 6;
  1343. HORZSIZE = 4;
  1344. VERTSIZE = 6;
  1345. HORZRES = 8;
  1346. VERTRES = 10;
  1347. LOGPIXELSX = 88;
  1348. LOGPIXELSY = 90;
  1349. BITSPIXEL = 12;
  1350. PLANES = 14;
  1351. NUMBRUSHES = 16;
  1352. NUMPENS = 18;
  1353. NUMFONTS = 22;
  1354. NUMCOLORS = 24;
  1355. ASPECTX = 40;
  1356. ASPECTY = 42;
  1357. ASPECTXY = 44;
  1358. PDEVICESIZE = 26;
  1359. CLIPCAPS = 36;
  1360. SIZEPALETTE = 104;
  1361. NUMRESERVED = 106;
  1362. COLORRES = 108;
  1363. { already defined above !!
  1364. #define PHYSICALWIDTH (110)
  1365. #define PHYSICALHEIGHT (111)
  1366. #define PHYSICALOFFSETX (112)
  1367. #define PHYSICALOFFSETY (113)
  1368. #define SCALINGFACTORX (114)
  1369. #define SCALINGFACTORY (115)
  1370. }
  1371. VREFRESH = 116;
  1372. DESKTOPHORZRES = 118;
  1373. DESKTOPVERTRES = 117;
  1374. BLTALIGNMENT = 119;
  1375. RASTERCAPS = 38;
  1376. RC_BANDING = 2;
  1377. RC_BITBLT = 1;
  1378. RC_BITMAP64 = 8;
  1379. RC_DI_BITMAP = 128;
  1380. RC_DIBTODEV = 512;
  1381. RC_FLOODFILL = 4096;
  1382. RC_GDI20_OUTPUT = 16;
  1383. RC_PALETTE = 256;
  1384. RC_SCALING = 4;
  1385. RC_STRETCHBLT = 2048;
  1386. RC_STRETCHDIB = 8192;
  1387. CURVECAPS = 28;
  1388. CC_NONE = 0;
  1389. CC_CIRCLES = 1;
  1390. CC_PIE = 2;
  1391. CC_CHORD = 4;
  1392. CC_ELLIPSES = 8;
  1393. CC_WIDE = 16;
  1394. CC_STYLED = 32;
  1395. CC_WIDESTYLED = 64;
  1396. CC_INTERIORS = 128;
  1397. CC_ROUNDRECT = 256;
  1398. LINECAPS = 30;
  1399. LC_NONE = 0;
  1400. LC_POLYLINE = 2;
  1401. LC_MARKER = 4;
  1402. LC_POLYMARKER = 8;
  1403. LC_WIDE = 16;
  1404. LC_STYLED = 32;
  1405. LC_WIDESTYLED = 64;
  1406. LC_INTERIORS = 128;
  1407. POLYGONALCAPS = 32;
  1408. PC_NONE = 0;
  1409. PC_POLYGON = 1;
  1410. PC_RECTANGLE = 2;
  1411. PC_WINDPOLYGON = 4;
  1412. PC_SCANLINE = 8;
  1413. PC_WIDE = 16;
  1414. PC_STYLED = 32;
  1415. PC_WIDESTYLED = 64;
  1416. PC_INTERIORS = 128;
  1417. TEXTCAPS = 34;
  1418. TC_OP_CHARACTER = 1;
  1419. TC_OP_STROKE = 2;
  1420. TC_CP_STROKE = 4;
  1421. TC_CR_90 = 8;
  1422. TC_CR_ANY = 16;
  1423. TC_SF_X_YINDEP = 32;
  1424. TC_SA_DOUBLE = 64;
  1425. TC_SA_INTEGER = 128;
  1426. TC_SA_CONTIN = 256;
  1427. TC_EA_DOUBLE = 512;
  1428. TC_IA_ABLE = 1024;
  1429. TC_UA_ABLE = 2048;
  1430. TC_SO_ABLE = 4096;
  1431. TC_RA_ABLE = 8192;
  1432. TC_VA_ABLE = 16384;
  1433. TC_RESERVED = 32768;
  1434. TC_SCROLLBLT = 65536;
  1435. PC_PATHS = 512;
  1436. { GetDriveType }
  1437. DRIVE_REMOVABLE = 2;
  1438. DRIVE_FIXED = 3;
  1439. DRIVE_REMOTE = 4;
  1440. DRIVE_CDROM = 5;
  1441. DRIVE_RAMDISK = 6;
  1442. DRIVE_UNKNOWN = 0;
  1443. DRIVE_NO_ROOT_DIR = 1;
  1444. { GetExceptionCode }
  1445. EXCEPTION_ACCESS_VIOLATION = $c0000005;
  1446. EXCEPTION_BREAKPOINT = $80000003;
  1447. EXCEPTION_DATATYPE_MISALIGNMENT = $80000002;
  1448. EXCEPTION_SINGLE_STEP = $80000004;
  1449. EXCEPTION_ARRAY_BOUNDS_EXCEEDED = $c000008c;
  1450. EXCEPTION_FLT_DENORMAL_OPERAND = $c000008d;
  1451. EXCEPTION_FLT_DIVIDE_BY_ZERO = $c000008e;
  1452. EXCEPTION_FLT_INEXACT_RESULT = $c000008f;
  1453. EXCEPTION_FLT_INVALID_OPERATION = $c0000090;
  1454. EXCEPTION_FLT_OVERFLOW = $c0000091;
  1455. EXCEPTION_FLT_STACK_CHECK = $c0000092;
  1456. EXCEPTION_FLT_UNDERFLOW = $c0000093;
  1457. EXCEPTION_INT_DIVIDE_BY_ZERO = $c0000094;
  1458. EXCEPTION_INT_OVERFLOW = $c0000095;
  1459. EXCEPTION_INVALID_HANDLE = $c0000008;
  1460. EXCEPTION_PRIV_INSTRUCTION = $c0000096;
  1461. EXCEPTION_NONCONTINUABLE_EXCEPTION = $c0000025;
  1462. EXCEPTION_NONCONTINUABLE = $1; //winnt
  1463. EXCEPTION_UNWINDING = $2; //+winnt
  1464. EXCEPTION_EXIT_UNWIND = $4; //+winnt
  1465. EXCEPTION_STACK_INVALID = $8; //+winnt
  1466. EXCEPTION_NESTED_CALL = $10; //+winnt
  1467. EXCEPTION_TARGET_UNWIND = $20; //+winnt
  1468. EXCEPTION_COLLIDED_UNWIND = $40; //+winnt
  1469. EXCEPTION_UNWIND = EXCEPTION_UNWINDING or EXCEPTION_EXIT_UNWIND or
  1470. EXCEPTION_TARGET_UNWIND or EXCEPTION_COLLIDED_UNWIND; //+winnt
  1471. EXCEPTION_STACK_OVERFLOW = $c00000fd;
  1472. EXCEPTION_INVALID_DISPOSITION = $c0000026;
  1473. EXCEPTION_IN_PAGE_ERROR = $c0000006;
  1474. EXCEPTION_ILLEGAL_INSTRUCTION = $c000001d;
  1475. EXCEPTION_POSSIBLE_DEADLOCK = $c0000194;
  1476. function IS_UNWINDING( Flag : Longint) : boolean; //+winnt
  1477. function IS_DISPATCHING( Flag : Longint) : boolean; //+winnt
  1478. function IS_TARGET_UNWIND( Flag : Longint) : Longint; //+winnt
  1479. { GetFileType }
  1480. const
  1481. FILE_TYPE_UNKNOWN = 0;
  1482. FILE_TYPE_DISK = 1;
  1483. FILE_TYPE_CHAR = 2;
  1484. FILE_TYPE_PIPE = 3;
  1485. GDI_ERROR = $ffffffff;
  1486. { GetGraphicsMode }
  1487. GM_COMPATIBLE = 1;
  1488. GM_ADVANCED = 2;
  1489. { GetIconInfo }
  1490. IDC_ARROW = MAKEINTRESOURCE(32512);
  1491. IDC_IBEAM = MAKEINTRESOURCE(32513);
  1492. IDC_WAIT = MAKEINTRESOURCE(32514);
  1493. IDC_CROSS = MAKEINTRESOURCE(32515);
  1494. IDC_UPARROW = MAKEINTRESOURCE(32516);
  1495. IDC_SIZENWSE = MAKEINTRESOURCE(32642);
  1496. IDC_SIZENESW = MAKEINTRESOURCE(32643);
  1497. IDC_SIZEWE = MAKEINTRESOURCE(32644);
  1498. IDC_SIZENS = MAKEINTRESOURCE(32645);
  1499. IDC_SIZEALL = MAKEINTRESOURCE(32646);
  1500. IDC_NO = MAKEINTRESOURCE(32648);
  1501. IDC_APPSTARTING = MAKEINTRESOURCE(32650);
  1502. IDC_HELP = MAKEINTRESOURCE(32651);
  1503. IDI_APPLICATION = MAKEINTRESOURCE(32512);
  1504. IDI_HAND = MAKEINTRESOURCE(32513);
  1505. IDI_QUESTION = MAKEINTRESOURCE(32514);
  1506. IDI_EXCLAMATION = MAKEINTRESOURCE(32515);
  1507. IDI_ASTERISK = MAKEINTRESOURCE(32516);
  1508. IDI_WINLOGO = MAKEINTRESOURCE(32517);
  1509. IDC_SIZE = MAKEINTRESOURCE(32640);
  1510. IDC_ICON = MAKEINTRESOURCE(32641);
  1511. IDC_HAND = MAKEINTRESOURCE(32649);
  1512. { GetMapMode }
  1513. const
  1514. MM_ANISOTROPIC = 8;
  1515. MM_HIENGLISH = 5;
  1516. MM_HIMETRIC = 3;
  1517. MM_ISOTROPIC = 7;
  1518. MM_LOENGLISH = 4;
  1519. MM_LOMETRIC = 2;
  1520. MM_TEXT = 1;
  1521. MM_TWIPS = 6;
  1522. { GetMenuDefaultItem }
  1523. GMDI_GOINTOPOPUPS = $2;
  1524. GMDI_USEDISABLED = $1;
  1525. { PeekMessage }
  1526. PM_NOREMOVE = 0;
  1527. PM_REMOVE = 1;
  1528. PM_NOYIELD = 2;
  1529. { GetNextWindow, GetWindow }
  1530. GW_HWNDNEXT = 2;
  1531. GW_HWNDPREV = 3;
  1532. GW_CHILD = 5;
  1533. GW_HWNDFIRST = 0;
  1534. GW_HWNDLAST = 1;
  1535. GW_OWNER = 4;
  1536. GW_MAX = 5; //+winuser
  1537. { GetQueueStatus }
  1538. QS_ALLEVENTS = 191;
  1539. QS_ALLINPUT = 255;
  1540. QS_HOTKEY = 128;
  1541. QS_INPUT = 7;
  1542. QS_KEY = 1;
  1543. QS_MOUSE = 6;
  1544. QS_MOUSEBUTTON = 4;
  1545. QS_MOUSEMOVE = 2;
  1546. QS_PAINT = 32;
  1547. QS_POSTMESSAGE = 8;
  1548. QS_SENDMESSAGE = 64;
  1549. QS_TIMER = 16;
  1550. { GetScrollInfo, SetScrollInfo }
  1551. { SIF_ALL = 23; }
  1552. SIF_PAGE = 2;
  1553. SIF_POS = 4;
  1554. SIF_RANGE = 1;
  1555. SIF_DISABLENOSCROLL = 8;
  1556. SIF_TRACKPOS = $10;
  1557. SIF_ALL = SIF_RANGE or SIF_PAGE or SIF_POS or SIF_TRACKPOS;
  1558. { GetStdHandle }
  1559. { was #define dname def_expr }
  1560. STD_INPUT_HANDLE = DWORD(-(10));
  1561. STD_OUTPUT_HANDLE = DWORD(-(11));
  1562. STD_ERROR_HANDLE = DWORD(-(12));
  1563. { was #define dname def_expr }
  1564. INVALID_HANDLE_VALUE = HANDLE(-1);
  1565. { GetStockObject }
  1566. BLACK_BRUSH = 4;
  1567. DKGRAY_BRUSH = 3;
  1568. GRAY_BRUSH = 2;
  1569. HOLLOW_BRUSH = 5;
  1570. LTGRAY_BRUSH = 1;
  1571. NULL_BRUSH = 5;
  1572. WHITE_BRUSH = 0;
  1573. BLACK_PEN = 7;
  1574. NULL_PEN = 8;
  1575. WHITE_PEN = 6;
  1576. ANSI_FIXED_FONT = 11;
  1577. ANSI_VAR_FONT = 12;
  1578. DEVICE_DEFAULT_FONT = 14;
  1579. DEFAULT_GUI_FONT = 17;
  1580. OEM_FIXED_FONT = 10;
  1581. SYSTEM_FONT = 13;
  1582. SYSTEM_FIXED_FONT = 16;
  1583. DEFAULT_PALETTE = 15;
  1584. { GetStringTypeA }
  1585. CT_CTYPE1 = 1;
  1586. CT_CTYPE2 = 2;
  1587. CT_CTYPE3 = 4;
  1588. C1_UPPER = 1;
  1589. C1_LOWER = 2;
  1590. C1_DIGIT = 4;
  1591. C1_SPACE = 8;
  1592. C1_PUNCT = 16;
  1593. C1_CNTRL = 32;
  1594. C1_BLANK = 64;
  1595. C1_XDIGIT = 128;
  1596. C1_ALPHA = 256;
  1597. C2_LEFTTORIGHT = 1;
  1598. C2_RIGHTTOLEFT = 2;
  1599. C2_EUROPENUMBER = 3;
  1600. C2_EUROPESEPARATOR = 4;
  1601. C2_EUROPETERMINATOR = 5;
  1602. C2_ARABICNUMBER = 6;
  1603. C2_COMMONSEPARATOR = 7;
  1604. C2_BLOCKSEPARATOR = 8;
  1605. C2_SEGMENTSEPARATOR = 9;
  1606. C2_WHITESPACE = 10;
  1607. C2_OTHERNEUTRAL = 11;
  1608. C2_NOTAPPLICABLE = 0;
  1609. C3_NONSPACING = 1;
  1610. C3_DIACRITIC = 2;
  1611. C3_VOWELMARK = 4;
  1612. C3_SYMBOL = 8;
  1613. C3_KATAKANA = 16;
  1614. C3_HIRAGANA = 32;
  1615. C3_HALFWIDTH = 64;
  1616. C3_FULLWIDTH = 128;
  1617. C3_IDEOGRAPH = 256;
  1618. C3_KASHIDA = 512;
  1619. C3_ALPHA = 32768;
  1620. C3_NOTAPPLICABLE = 0;
  1621. { GetSysColor }
  1622. {$IFDEF WINCE}
  1623. SYS_COLOR_INDEX_FLAG =$40000000;
  1624. {$ELSE}
  1625. SYS_COLOR_INDEX_FLAG =0;
  1626. {$ENDIF WINCE}
  1627. COLOR_SCROLLBAR = 0 or SYS_COLOR_INDEX_FLAG;
  1628. COLOR_BACKGROUND = 1 or SYS_COLOR_INDEX_FLAG;
  1629. COLOR_ACTIVECAPTION = 2 or SYS_COLOR_INDEX_FLAG;
  1630. COLOR_INACTIVECAPTION = 3 or SYS_COLOR_INDEX_FLAG;
  1631. COLOR_MENU = 4 or SYS_COLOR_INDEX_FLAG;
  1632. COLOR_WINDOW = 5 or SYS_COLOR_INDEX_FLAG;
  1633. COLOR_WINDOWFRAME = 6 or SYS_COLOR_INDEX_FLAG;
  1634. COLOR_MENUTEXT = 7 or SYS_COLOR_INDEX_FLAG;
  1635. COLOR_WINDOWTEXT = 8 or SYS_COLOR_INDEX_FLAG;
  1636. COLOR_CAPTIONTEXT = 9 or SYS_COLOR_INDEX_FLAG;
  1637. COLOR_ACTIVEBORDER =10 or SYS_COLOR_INDEX_FLAG;
  1638. COLOR_INACTIVEBORDER =11 or SYS_COLOR_INDEX_FLAG;
  1639. COLOR_APPWORKSPACE =12 or SYS_COLOR_INDEX_FLAG;
  1640. COLOR_HIGHLIGHT =13 or SYS_COLOR_INDEX_FLAG;
  1641. COLOR_HIGHLIGHTTEXT =14 or SYS_COLOR_INDEX_FLAG;
  1642. COLOR_BTNFACE =15 or SYS_COLOR_INDEX_FLAG;
  1643. COLOR_BTNSHADOW =16 or SYS_COLOR_INDEX_FLAG;
  1644. COLOR_GRAYTEXT =17 or SYS_COLOR_INDEX_FLAG;
  1645. COLOR_BTNTEXT =18 or SYS_COLOR_INDEX_FLAG;
  1646. COLOR_INACTIVECAPTIONTEXT =19 or SYS_COLOR_INDEX_FLAG;
  1647. COLOR_BTNHIGHLIGHT =20 or SYS_COLOR_INDEX_FLAG;
  1648. COLOR_3DDKSHADOW =21 or SYS_COLOR_INDEX_FLAG;
  1649. COLOR_3DLIGHT =22 or SYS_COLOR_INDEX_FLAG;
  1650. COLOR_INFOTEXT =23 or SYS_COLOR_INDEX_FLAG;
  1651. COLOR_INFOBK =24 or SYS_COLOR_INDEX_FLAG;
  1652. COLOR_STATIC =25 or SYS_COLOR_INDEX_FLAG;
  1653. COLOR_STATICTEXT =26 or SYS_COLOR_INDEX_FLAG;
  1654. COLOR_GRADIENTACTIVECAPTION =27 or SYS_COLOR_INDEX_FLAG;
  1655. COLOR_GRADIENTINACTIVECAPTION =28 or SYS_COLOR_INDEX_FLAG;
  1656. C_SYS_COLOR_TYPES =29;
  1657. COLOR_DESKTOP =COLOR_BACKGROUND;
  1658. COLOR_3DFACE =COLOR_BTNFACE;
  1659. COLOR_3DSHADOW =COLOR_BTNSHADOW;
  1660. COLOR_3DHIGHLIGHT =COLOR_BTNHIGHLIGHT;
  1661. COLOR_3DHILIGHT =COLOR_BTNHIGHLIGHT;
  1662. { GetSystemMetrics }
  1663. SM_CYMIN = 29;
  1664. SM_CXMIN = 28;
  1665. SM_ARRANGE = 56;
  1666. SM_CLEANBOOT = 67;
  1667. { The right value for SM_CEMETRICS for NT 3.5 is 75. For Windows 95
  1668. and NT 4.0, it is 76. The meaning is undocumented, anyhow. }
  1669. SM_CMETRICS = 76;
  1670. SM_CMOUSEBUTTONS = 43;
  1671. SM_CXBORDER = 5;
  1672. SM_CYBORDER = 6;
  1673. SM_CXCURSOR = 13;
  1674. SM_CYCURSOR = 14;
  1675. SM_CXDLGFRAME = 7;
  1676. SM_CYDLGFRAME = 8;
  1677. SM_CXDOUBLECLK = 36;
  1678. SM_CYDOUBLECLK = 37;
  1679. SM_CXDRAG = 68;
  1680. SM_CYDRAG = 69;
  1681. SM_CXEDGE = 45;
  1682. SM_CYEDGE = 46;
  1683. SM_CXFIXEDFRAME = 7;
  1684. SM_CYFIXEDFRAME = 8;
  1685. SM_CXFRAME = 32;
  1686. SM_CYFRAME = 33;
  1687. SM_CXFULLSCREEN = 16;
  1688. SM_CYFULLSCREEN = 17;
  1689. SM_CXHSCROLL = 21;
  1690. SM_CYHSCROLL = 3;
  1691. SM_CXHTHUMB = 10;
  1692. SM_CXICON = 11;
  1693. SM_CYICON = 12;
  1694. SM_CXICONSPACING = 38;
  1695. SM_CYICONSPACING = 39;
  1696. SM_CXMAXIMIZED = 61;
  1697. SM_CYMAXIMIZED = 62;
  1698. SM_CXMAXTRACK = 59;
  1699. SM_CYMAXTRACK = 60;
  1700. SM_CXMENUCHECK = 71;
  1701. SM_CYMENUCHECK = 72;
  1702. SM_CXMENUSIZE = 54;
  1703. SM_CYMENUSIZE = 55;
  1704. SM_CXMINIMIZED = 57;
  1705. SM_CYMINIMIZED = 58;
  1706. SM_CXMINSPACING = 47;
  1707. SM_CYMINSPACING = 48;
  1708. SM_CXMINTRACK = 34;
  1709. SM_CYMINTRACK = 35;
  1710. SM_CXSCREEN = 0;
  1711. SM_CYSCREEN = 1;
  1712. SM_CXSIZE = 30;
  1713. SM_CYSIZE = 31;
  1714. SM_CXSIZEFRAME = 32;
  1715. SM_CYSIZEFRAME = 33;
  1716. SM_CXSMICON = 49;
  1717. SM_CYSMICON = 50;
  1718. SM_CXSMSIZE = 52;
  1719. SM_CYSMSIZE = 53;
  1720. SM_CXVSCROLL = 2;
  1721. {SM_CYHSCROLL = 3;already above }
  1722. {SM_CXHSCROLL = 21;already above }
  1723. SM_CYVSCROLL = 20;
  1724. SM_CYVTHUMB = 9;
  1725. SM_CYCAPTION = 4;
  1726. SM_CYKANJIWINDOW = 18;
  1727. SM_CYMENU = 15;
  1728. SM_CYSMCAPTION = 51;
  1729. SM_DBCSENABLED = 42;
  1730. SM_DEBUG = 22;
  1731. SM_MENUDROPALIGNMENT = 40;
  1732. SM_MIDEASTENABLED = 74;
  1733. SM_MOUSEPRESENT = 19;
  1734. SM_MOUSEWHEELPRESENT = 75;
  1735. SM_NETWORK = 63;
  1736. SM_PENWINDOWS = 41;
  1737. SM_SECURE = 44;
  1738. SM_SHOWSOUNDS = 70;
  1739. SM_SLOWMACHINE = 73;
  1740. SM_SWAPBUTTON = 23;
  1741. ARW_BOTTOMLEFT = 0;
  1742. ARW_BOTTOMRIGHT = $1;
  1743. ARW_HIDE = $8;
  1744. ARW_TOPLEFT = $2;
  1745. ARW_TOPRIGHT = $3;
  1746. ARW_DOWN = $4;
  1747. ARW_LEFT = 0;
  1748. ARW_RIGHT = 0;
  1749. ARW_UP = $4;
  1750. { GetSystemPaletteUse }
  1751. SYSPAL_NOSTATIC = 2;
  1752. SYSPAL_STATIC = 1;
  1753. SYSPAL_ERROR = 0;
  1754. { GetTextAlign }
  1755. TA_BASELINE = 24;
  1756. TA_BOTTOM = 8;
  1757. TA_TOP = 0;
  1758. TA_CENTER = 6;
  1759. TA_LEFT = 0;
  1760. TA_RIGHT = 2;
  1761. TA_RTLREADING = 256;
  1762. TA_NOUPDATECP = 0;
  1763. TA_UPDATECP = 1;
  1764. VTA_BASELINE = 24;
  1765. VTA_CENTER = 6;
  1766. { GetThreadPriority }
  1767. THREAD_PRIORITY_TIME_CRITICAL = 0;
  1768. THREAD_PRIORITY_HIGHEST = 1;
  1769. THREAD_PRIORITY_ABOVE_NORMAL = 2;
  1770. THREAD_PRIORITY_NORMAL = 3;
  1771. THREAD_PRIORITY_BELOW_NORMAL = 4;
  1772. THREAD_PRIORITY_LOWEST = 5;
  1773. THREAD_PRIORITY_ABOVE_IDLE = 6;
  1774. THREAD_PRIORITY_IDLE = 7;
  1775. THREAD_PRIORITY_ERROR_RETURN = 2147483647;
  1776. TLS_MINIMUM_AVAILABLE = 64;
  1777. { GetTimeFormat }
  1778. TIME_NOMINUTESORSECONDS = 1;
  1779. TIME_NOSECONDS = 2;
  1780. TIME_NOTIMEMARKER = 4;
  1781. TIME_FORCE24HOURFORMAT = 8;
  1782. { GetTimeZoneInformation }
  1783. { was #define dname def_expr }
  1784. const
  1785. TIME_ZONE_ID_INVALID = DWORD(-1);
  1786. TIME_ZONE_ID_UNKNOWN = 0;
  1787. TIME_ZONE_ID_STANDARD = 1;
  1788. TIME_ZONE_ID_DAYLIGHT = 2;
  1789. { GetWindowLong }
  1790. GWL_EXSTYLE = -(20);
  1791. GWL_STYLE = -(16);
  1792. GWL_WNDPROC = -(4);
  1793. GWL_HINSTANCE = -(6);
  1794. GWL_HWNDPARENT = -(8);
  1795. GWL_ID = -(12);
  1796. GWL_USERDATA = -(21);
  1797. DWL_DLGPROC = 4;
  1798. DWL_MSGRESULT = 0;
  1799. DWL_USER = 8;
  1800. { LocalAlloc, LocalFlags }
  1801. LMEM_FIXED = $0000;
  1802. LMEM_MOVEABLE = $0002;
  1803. LMEM_NOCOMPACT = $0010; //**** Used for Moveable Memory ***/
  1804. LMEM_NODISCARD = $0020; //**** Ignored *****/
  1805. LMEM_ZEROINIT = $0040;
  1806. LMEM_MODIFY = $0080; //*** Used only in LocalReAlloc() **/
  1807. LMEM_DISCARDABLE = $0F00; //**** Ignored ****/
  1808. LMEM_VALID_FLAGS = $0F72;
  1809. LMEM_INVALID_HANDLE = $8000;
  1810. LMEM_DDESHARE = $0000; //**** Ignored ****/
  1811. LMEM_LOWER = $0000; //**** Ignored ****/
  1812. LMEM_NOT_BANKED = $0000; //**** Ignored ****/
  1813. LMEM_NOTIFY = $0000; //**** Ignored ****/
  1814. LMEM_SHARE = $0000; //**** Ignored ****/
  1815. LPTR = LMEM_FIXED or LMEM_ZEROINIT;
  1816. LHND = LMEM_MOVEABLE or LMEM_ZEROINIT;
  1817. NONZEROLHND = LMEM_MOVEABLE;
  1818. NONZEROLPTR = LMEM_FIXED;
  1819. //* Flags returned by LocalFlags (in addition to LMEM_DISCARDABLE) */
  1820. LMEM_DISCARDED = $4000;
  1821. LMEM_LOCKCOUNT = $00FF;
  1822. { GlobalAlloc, GlobalFlags }
  1823. GMEM_FIXED = LMEM_FIXED;
  1824. GMEM_MOVEABLE = LMEM_MOVEABLE;
  1825. GPTR = LPTR;
  1826. GHND = LHND;
  1827. GMEM_DDESHARE = LMEM_DDESHARE;
  1828. GMEM_DISCARDABLE = LMEM_DISCARDABLE;
  1829. GMEM_LOWER = LMEM_LOWER;
  1830. GMEM_NOCOMPACT = LMEM_NOCOMPACT;
  1831. GMEM_NODISCARD = LMEM_NODISCARD;
  1832. GMEM_NOT_BANKED = LMEM_NOT_BANKED;
  1833. GMEM_NOTIFY = LMEM_NOTIFY;
  1834. GMEM_SHARE = LMEM_SHARE;
  1835. GMEM_ZEROINIT = LMEM_ZEROINIT;
  1836. { HeapAlloc, HeapReAlloc }
  1837. HEAP_GENERATE_EXCEPTIONS = 4;
  1838. HEAP_NO_SERIALIZE = 1;
  1839. HEAP_ZERO_MEMORY = 8;
  1840. STATUS_NO_MEMORY = $c0000017;
  1841. STATUS_ACCESS_VIOLATION = $c0000005;
  1842. HEAP_REALLOC_IN_PLACE_ONLY = 16;
  1843. { ImageList_Create }
  1844. ILC_COLOR = 0;
  1845. ILC_COLOR4 = 4;
  1846. ILC_COLOR8 = 8;
  1847. ILC_COLOR16 = 16;
  1848. ILC_COLOR24 = 24;
  1849. ILC_COLOR32 = 32;
  1850. ILC_COLORDDB = 254;
  1851. ILC_MASK = 1;
  1852. ILC_PALETTE = 2048;
  1853. { ImageList_Draw, ImageList_DrawEx }
  1854. ILD_BLEND25 = 2;
  1855. ILD_BLEND50 = 4;
  1856. ILD_SELECTED = 4;
  1857. ILD_BLEND = 4;
  1858. ILD_FOCUS = 2;
  1859. ILD_MASK = 16;
  1860. ILD_NORMAL = 0;
  1861. ILD_TRANSPARENT = 1;
  1862. CLR_NONE = $ffffffff;
  1863. CLR_DEFAULT = $ff000000;
  1864. CLR_INVALID = $FFFFFFFF;
  1865. { ImageList_LoadImage }
  1866. {LR_DEFAULTCOLOR = 0;already above }
  1867. LR_LOADFROMFILE = 16;
  1868. LR_LOADMAP3DCOLORS = 4096;
  1869. LR_LOADTRANSPARENT = 32;
  1870. {LR_MONOCHROME = 1;already above }
  1871. { ImmConfigureIME }
  1872. IME_CONFIG_GENERAL = 1;
  1873. IME_CONFIG_REGISTERWORD = 2;
  1874. IME_CONFIG_SELECTDICTIONARY = 3;
  1875. { ImmGetConversionList }
  1876. GCL_CONVERSION = 1;
  1877. GCL_REVERSECONVERSION = 2;
  1878. GCL_REVERSE_LENGTH = 3;
  1879. { ImmGetGuideLine }
  1880. GGL_LEVEL = 1;
  1881. GGL_INDEX = 2;
  1882. GGL_STRING = 3;
  1883. GGL_PRIVATE = 4;
  1884. GL_LEVEL_ERROR = 2;
  1885. GL_LEVEL_FATAL = 1;
  1886. GL_LEVEL_INFORMATION = 4;
  1887. GL_LEVEL_NOGUIDELINE = 0;
  1888. GL_LEVEL_WARNING = 3;
  1889. GL_ID_CANNOTSAVE = 17;
  1890. GL_ID_NOCONVERT = 32;
  1891. GL_ID_NODICTIONARY = 16;
  1892. GL_ID_NOMODULE = 1;
  1893. GL_ID_READINGCONFLICT = 35;
  1894. GL_ID_TOOMANYSTROKE = 34;
  1895. GL_ID_TYPINGERROR = 33;
  1896. GL_ID_UNKNOWN = 0;
  1897. GL_ID_INPUTREADING = 36;
  1898. GL_ID_INPUTRADICAL = 37;
  1899. GL_ID_INPUTCODE = 38;
  1900. GL_ID_CHOOSECANDIDATE = 40;
  1901. GL_ID_REVERSECONVERSION = 41;
  1902. { ImmGetProperty }
  1903. IGP_PROPERTY = 4;
  1904. IGP_CONVERSION = 8;
  1905. IGP_SENTENCE = 12;
  1906. IGP_UI = 16;
  1907. IGP_SETCOMPSTR = 20;
  1908. IGP_SELECT = 24;
  1909. IME_PROP_AT_CARET = 65536;
  1910. IME_PROP_SPECIAL_UI = 131072;
  1911. IME_PROP_CANDLIST_START_FROM_1 = 262144;
  1912. IME_PROP_UNICODE = 524288;
  1913. UI_CAP_2700 = 1;
  1914. UI_CAP_ROT90 = 2;
  1915. UI_CAP_ROTANY = 4;
  1916. SCS_CAP_COMPSTR = 1;
  1917. SCS_CAP_MAKEREAD = 2;
  1918. SELECT_CAP_CONVERSION = 1;
  1919. SELECT_CAP_SENTENCE = 2;
  1920. { ImmNotifyIME }
  1921. NI_CHANGECANDIDATELIST = 19;
  1922. NI_CLOSECANDIDATE = 17;
  1923. NI_COMPOSITIONSTR = 21;
  1924. NI_OPENCANDIDATE = 16;
  1925. NI_SELECTCANDIDATESTR = 18;
  1926. NI_SETCANDIDATE_PAGESIZE = 23;
  1927. NI_SETCANDIDATE_PAGESTART = 22;
  1928. CPS_CANCEL = 4;
  1929. CPS_COMPLETE = 1;
  1930. CPS_CONVERT = 2;
  1931. CPS_REVERT = 3;
  1932. { ImmSetCompositionString }
  1933. SCS_SETSTR = 9;
  1934. SCS_CHANGEATTR = 18;
  1935. SCS_CHANGECLAUSE = 36;
  1936. { ImmUnregisterWord }
  1937. IME_REGWORD_STYLE_EUDC = 1;
  1938. IME_REGWORD_STYLE_USER_FIRST = $80000000;
  1939. IME_REGWORD_STYLE_USER_LAST = -(1);
  1940. { InitCommonControlEx } //+commctrl
  1941. I_IMAGENONE = -2; // Desktop listview uses this same value for I_IMAGENONE when (_WIN32_IE >= 0x0501)
  1942. ICC_LISTVIEW_CLASSES = $00000001; // listview, header
  1943. ICC_TREEVIEW_CLASSES = $00000002; // treeview, tooltips
  1944. ICC_BAR_CLASSES = $00000004; // toolbar, statusbar, trackbar, tooltips
  1945. ICC_TAB_CLASSES = $00000008; // tab, tooltips
  1946. ICC_UPDOWN_CLASS = $00000010; // updown
  1947. ICC_PROGRESS_CLASS = $00000020; // progress
  1948. ICC_WIN95_CLASSES = $0000007F; // ! was ICC_WIN95_CLASSES = $000000FF
  1949. ICC_DATE_CLASSES = $00000100; // month picker, date picker, time picker, updown
  1950. ICC_COOL_CLASSES = $00000400; // rebar (coolbar) control
  1951. ICC_INTERNET_CLASSES = $00000800; // IP Address control
  1952. ICC_TOOLTIP_CLASSES = $00001000; // Tooltip static & button
  1953. ICC_CAPEDIT_CLASS = $00002000; // All-caps edit control
  1954. ICC_FE_CLASSES = $40000000; // FE specific input subclasses
  1955. { InitializeSecurityDescriptor }
  1956. SECURITY_DESCRIPTOR_REVISION = 1;
  1957. { IsTextUnicode }
  1958. IS_TEXT_UNICODE_ASCII16 = 1;
  1959. IS_TEXT_UNICODE_REVERSE_ASCII16 = 16;
  1960. IS_TEXT_UNICODE_STATISTICS = 2;
  1961. IS_TEXT_UNICODE_REVERSE_STATISTICS = 32;
  1962. IS_TEXT_UNICODE_CONTROLS = 4;
  1963. IS_TEXT_UNICODE_REVERSE_CONTROLS = 64;
  1964. IS_TEXT_UNICODE_SIGNATURE = 8;
  1965. IS_TEXT_UNICODE_REVERSE_SIGNATURE = 128;
  1966. IS_TEXT_UNICODE_ILLEGAL_CHARS = 256;
  1967. IS_TEXT_UNICODE_ODD_LENGTH = 512;
  1968. IS_TEXT_UNICODE_NULL_BYTES = 4096;
  1969. IS_TEXT_UNICODE_UNICODE_MASK = 15;
  1970. IS_TEXT_UNICODE_REVERSE_MASK = 240;
  1971. IS_TEXT_UNICODE_NOT_UNICODE_MASK = 3840;
  1972. IS_TEXT_UNICODE_NOT_ASCII_MASK = 61440;
  1973. { JournalPlaybackProc, KeyboardProc }
  1974. HC_GETNEXT = 1;
  1975. HC_SKIP = 2;
  1976. HC_SYSMODALOFF = 5;
  1977. HC_SYSMODALON = 4;
  1978. HC_NOREMOVE = 3;
  1979. { keybd_event }
  1980. KEYEVENTF_EXTENDEDKEY = 1;
  1981. KEYEVENTF_KEYUP = 2;
  1982. KEYEVENTF_SILENT = 4;
  1983. { LoadBitmap }
  1984. OBM_BTNCORNERS = 32758;
  1985. OBM_BTSIZE = 32761;
  1986. OBM_CHECK = 32760;
  1987. OBM_CHECKBOXES = 32759;
  1988. OBM_CLOSE = 32754;
  1989. OBM_COMBO = 32738;
  1990. OBM_DNARROW = 32752;
  1991. OBM_DNARROWD = 32742;
  1992. OBM_DNARROWI = 32736;
  1993. OBM_LFARROW = 32750;
  1994. OBM_LFARROWI = 32734;
  1995. OBM_LFARROWD = 32740;
  1996. OBM_MNARROW = 32739;
  1997. OBM_OLD_CLOSE = 32767;
  1998. OBM_OLD_DNARROW = 32764;
  1999. OBM_OLD_LFARROW = 32762;
  2000. OBM_OLD_REDUCE = 32757;
  2001. OBM_OLD_RESTORE = 32755;
  2002. OBM_OLD_RGARROW = 32763;
  2003. OBM_OLD_UPARROW = 32765;
  2004. OBM_OLD_ZOOM = 32756;
  2005. OBM_REDUCE = 32749;
  2006. OBM_REDUCED = 32746;
  2007. OBM_RESTORE = 32747;
  2008. OBM_RESTORED = 32744;
  2009. OBM_RGARROW = 32751;
  2010. OBM_RGARROWD = 32741;
  2011. OBM_RGARROWI = 32735;
  2012. OBM_SIZE = 32766;
  2013. OBM_UPARROW = 32753;
  2014. OBM_UPARROWD = 32743;
  2015. OBM_UPARROWI = 32737;
  2016. OBM_ZOOM = 32748;
  2017. OBM_ZOOMD = 32745;
  2018. { LoadLibraryEx }
  2019. DONT_RESOLVE_DLL_REFERENCES = 1;
  2020. LOAD_LIBRARY_AS_DATAFILE = 2;
  2021. LOAD_WITH_ALTERED_SEARCH_PATH = 8;
  2022. { MessageBeep, MessageBox }
  2023. MB_USERICON = $80;
  2024. MB_ICONASTERISK = $40;
  2025. MB_ICONEXCLAMATION = $30;
  2026. MB_ICONWARNING = $30;
  2027. MB_ICONERROR = $10;
  2028. MB_ICONHAND = $10;
  2029. MB_ICONQUESTION = $20;
  2030. MB_OK = 0;
  2031. MB_ABORTRETRYIGNORE = $2;
  2032. MB_APPLMODAL = 0;
  2033. MB_DEFAULT_DESKTOP_ONLY = $20000;
  2034. MB_HELP = $4000;
  2035. MB_RIGHT = $80000;
  2036. MB_RTLREADING = $100000;
  2037. MB_TOPMOST = $40000;
  2038. MB_DEFBUTTON1 = 0;
  2039. MB_DEFBUTTON2 = $100;
  2040. MB_DEFBUTTON3 = $200;
  2041. MB_DEFBUTTON4 = $300;
  2042. MB_ICONINFORMATION = $40;
  2043. MB_ICONSTOP = $10;
  2044. MB_OKCANCEL = $1;
  2045. MB_RETRYCANCEL = $5;
  2046. MB_SERVICE_NOTIFICATION = $40000;
  2047. MB_SETFOREGROUND = $10000;
  2048. MB_SYSTEMMODAL = $1000;
  2049. MB_TASKMODAL = $2000;
  2050. MB_YESNO = $4;
  2051. MB_YESNOCANCEL = $3;
  2052. IDABORT = 3;
  2053. IDCANCEL = 2;
  2054. IDCLOSE = 8;
  2055. IDHELP = 9;
  2056. IDIGNORE = 5;
  2057. IDNO = 7;
  2058. IDOK = 1;
  2059. IDRETRY = 4;
  2060. IDYES = 6;
  2061. { MessageProc }
  2062. MSGF_DIALOGBOX = 0;
  2063. MSGF_MENU = 2;
  2064. MSGF_NEXTWINDOW = 6;
  2065. MSGF_SCROLLBAR = 5;
  2066. MSGF_MAINLOOP = 8;
  2067. MSGF_USER = 4096;
  2068. { ModifyWorldTransform }
  2069. MWT_IDENTITY = 1;
  2070. MWT_LEFTMULTIPLY = 2;
  2071. MWT_RIGHTMULTIPLY = 3;
  2072. { mouse_event }
  2073. MOUSEEVENTF_ABSOLUTE = 32768;
  2074. MOUSEEVENTF_MOVE = 1;
  2075. MOUSEEVENTF_LEFTDOWN = 2;
  2076. MOUSEEVENTF_LEFTUP = 4;
  2077. MOUSEEVENTF_RIGHTDOWN = 8;
  2078. MOUSEEVENTF_RIGHTUP = 16;
  2079. MOUSEEVENTF_MIDDLEDOWN = 32;
  2080. MOUSEEVENTF_MIDDLEUP = 64;
  2081. { MoveFileEx }
  2082. MOVEFILE_REPLACE_EXISTING = 1;
  2083. MOVEFILE_COPY_ALLOWED = 2;
  2084. MOVEFILE_DELAY_UNTIL_REBOOT = 4;
  2085. { MsgWaitForMultipleObjects, WaitForMultipleObjectsEx }
  2086. WAIT_OBJECT_0 = 0;
  2087. WAIT_ABANDONED_0 = $80;
  2088. WAIT_TIMEOUT = $102;
  2089. WAIT_IO_COMPLETION = $c0;
  2090. WAIT_ABANDONED = $80;
  2091. WAIT_FAILED = $ffffffff;
  2092. MAXIMUM_WAIT_OBJECTS = $40; //winnt
  2093. MAXIMUM_SUSPEND_COUNT = MAXCHAR; //~winnt
  2094. { MultiByteToWideChar }
  2095. MB_PRECOMPOSED = 1;
  2096. MB_COMPOSITE = 2;
  2097. MB_ERR_INVALID_CHARS = 8;
  2098. MB_USEGLYPHCHARS = 4;
  2099. { PostMessage }
  2100. { was #define dname def_expr }
  2101. HWND_BROADCAST = HWND($FFFF);
  2102. const
  2103. { PropertySheet }
  2104. IS_PSREBOOTSYSTEM = 3;
  2105. IS_PSRESTARTWINDOWS = 2;
  2106. { PropSheetPageProc }
  2107. PSPCB_CREATE = 2;
  2108. PSPCB_RELEASE = 1;
  2109. { PurgeComm }
  2110. PURGE_TXABORT = 1;
  2111. PURGE_RXABORT = 2;
  2112. PURGE_TXCLEAR = 4;
  2113. PURGE_RXCLEAR = 8;
  2114. { QueryServiceObjectSecurity }
  2115. OWNER_SECURITY_INFORMATION = $1;
  2116. GROUP_SECURITY_INFORMATION = $2;
  2117. DACL_SECURITY_INFORMATION = $4;
  2118. SACL_SECURITY_INFORMATION = $8;
  2119. { RedrawWindow }
  2120. RDW_ERASE = 4;
  2121. RDW_FRAME = 1024;
  2122. RDW_INTERNALPAINT = 2;
  2123. RDW_INVALIDATE = 1;
  2124. RDW_NOERASE = 32;
  2125. RDW_NOFRAME = 2048;
  2126. RDW_NOINTERNALPAINT = 16;
  2127. RDW_VALIDATE = 8;
  2128. RDW_ERASENOW = 512;
  2129. RDW_UPDATENOW = 256;
  2130. RDW_ALLCHILDREN = 128;
  2131. RDW_NOCHILDREN = 64;
  2132. { RegCreateKey }
  2133. HKEY_CLASSES_ROOT = HKEY($80000000);
  2134. HKEY_CURRENT_USER = HKEY($80000001);
  2135. HKEY_LOCAL_MACHINE = HKEY($80000002);
  2136. HKEY_USERS = HKEY($80000003);
  2137. HKEY_PERFORMANCE_DATA = HKEY($80000004);
  2138. HKEY_CURRENT_CONFIG = HKEY($80000005);
  2139. HKEY_DYN_DATA = HKEY($80000006);
  2140. { RegCreateKeyEx }
  2141. const
  2142. REG_OPTION_VOLATILE = $1;
  2143. REG_OPTION_NON_VOLATILE = 0;
  2144. REG_CREATED_NEW_KEY = $1;
  2145. REG_OPENED_EXISTING_KEY = $2;
  2146. { RegEnumValue }
  2147. REG_BINARY = 3;
  2148. REG_DWORD = 4;
  2149. REG_DWORD_LITTLE_ENDIAN = 4;
  2150. REG_DWORD_BIG_ENDIAN = 5;
  2151. REG_EXPAND_SZ = 2;
  2152. REG_FULL_RESOURCE_DESCRIPTOR = 9;
  2153. REG_LINK = 6;
  2154. REG_MULTI_SZ = 7;
  2155. REG_NONE = 0;
  2156. REG_RESOURCE_LIST = 8;
  2157. REG_RESOURCE_REQUIREMENTS_LIST = 10;
  2158. REG_SZ = 1;
  2159. { RegisterHotKey }
  2160. MOD_ALT = 1;
  2161. MOD_CONTROL = 2;
  2162. MOD_SHIFT = 4;
  2163. MOD_WIN = 8;
  2164. IDHOT_SNAPDESKTOP = -(2);
  2165. IDHOT_SNAPWINDOW = -(1);
  2166. { RegNotifyChangeKeyValue }
  2167. REG_NOTIFY_CHANGE_NAME = $1;
  2168. REG_NOTIFY_CHANGE_ATTRIBUTES = $2;
  2169. REG_NOTIFY_CHANGE_LAST_SET = $4;
  2170. REG_NOTIFY_CHANGE_SECURITY = $8;
  2171. { ScrollWindowEx }
  2172. SW_ERASE = 4;
  2173. SW_INVALIDATE = 2;
  2174. SW_SCROLLCHILDREN = 1;
  2175. { SendMessageTimeout }
  2176. SMTO_ABORTIFHUNG = 2;
  2177. SMTO_BLOCK = 1;
  2178. SMTO_NORMAL = 0;
  2179. { SetBkMode }
  2180. OPAQUE = 2;
  2181. TRANSPARENT = 1;
  2182. { SetDebugErrorLevel }
  2183. SLE_ERROR = 1;
  2184. SLE_MINORERROR = 2;
  2185. SLE_WARNING = 3;
  2186. { SetErrorMode }
  2187. SEM_FAILCRITICALERRORS = 1;
  2188. SEM_NOALIGNMENTFAULTEXCEPT = 4;
  2189. SEM_NOGPFAULTERRORBOX = 2;
  2190. SEM_NOOPENFILEERRORBOX = 32768;
  2191. { SetICMMode }
  2192. ICM_ON = 2;
  2193. ICM_OFF = 1;
  2194. ICM_QUERY = 3;
  2195. { SetJob }
  2196. { Locale Information }
  2197. LOCALE_ILANGUAGE = 1;
  2198. LOCALE_SLANGUAGE = 2;
  2199. LOCALE_SENGLANGUAGE = 4097;
  2200. LOCALE_SABBREVLANGNAME = 3;
  2201. LOCALE_SNATIVELANGNAME = 4;
  2202. LOCALE_ICOUNTRY = 5;
  2203. LOCALE_SCOUNTRY = 6;
  2204. LOCALE_SENGCOUNTRY = 4098;
  2205. LOCALE_SABBREVCTRYNAME = 7;
  2206. LOCALE_SNATIVECTRYNAME = 8;
  2207. LOCALE_IDEFAULTLANGUAGE = 9;
  2208. LOCALE_IDEFAULTCOUNTRY = 10;
  2209. LOCALE_IDEFAULTANSICODEPAGE = 4100;
  2210. LOCALE_IDEFAULTCODEPAGE = 11;
  2211. LOCALE_SLIST = 12;
  2212. LOCALE_IMEASURE = 13;
  2213. LOCALE_SDECIMAL = 14;
  2214. LOCALE_STHOUSAND = 15;
  2215. LOCALE_SGROUPING = 16;
  2216. LOCALE_IDIGITS = 17;
  2217. LOCALE_ILZERO = 18;
  2218. LOCALE_INEGNUMBER = 4112;
  2219. LOCALE_SCURRENCY = 20;
  2220. LOCALE_SMONDECIMALSEP = 22;
  2221. LOCALE_SMONTHOUSANDSEP = 23;
  2222. LOCALE_SMONGROUPING = 24;
  2223. LOCALE_ICURRDIGITS = 25;
  2224. LOCALE_ICURRENCY = 27;
  2225. LOCALE_INEGCURR = 28;
  2226. LOCALE_SDATE = 29;
  2227. LOCALE_STIME = 30;
  2228. LOCALE_STIMEFORMAT = 4099;
  2229. LOCALE_SSHORTDATE = 31;
  2230. LOCALE_SLONGDATE = 32;
  2231. LOCALE_IDATE = 33;
  2232. LOCALE_ILDATE = 34;
  2233. LOCALE_ITIME = 35;
  2234. LOCALE_ITLZERO = 37;
  2235. LOCALE_IDAYLZERO = 38;
  2236. LOCALE_IMONLZERO = 39;
  2237. LOCALE_S1159 = 40;
  2238. LOCALE_S2359 = 41;
  2239. LOCALE_ICALENDARTYPE = 4105;
  2240. LOCALE_IOPTIONALCALENDAR = 4107;
  2241. LOCALE_IFIRSTDAYOFWEEK = 4108;
  2242. LOCALE_IFIRSTWEEKOFYEAR = 4109;
  2243. LOCALE_SDAYNAME1 = 42;
  2244. LOCALE_SDAYNAME2 = 43;
  2245. LOCALE_SDAYNAME3 = 44;
  2246. LOCALE_SDAYNAME4 = 45;
  2247. LOCALE_SDAYNAME5 = 46;
  2248. LOCALE_SDAYNAME6 = 47;
  2249. LOCALE_SDAYNAME7 = 48;
  2250. LOCALE_SABBREVDAYNAME1 = 49;
  2251. LOCALE_SABBREVDAYNAME2 = 50;
  2252. LOCALE_SABBREVDAYNAME3 = 51;
  2253. LOCALE_SABBREVDAYNAME4 = 52;
  2254. LOCALE_SABBREVDAYNAME5 = 53;
  2255. LOCALE_SABBREVDAYNAME6 = 54;
  2256. LOCALE_SABBREVDAYNAME7 = 55;
  2257. LOCALE_SMONTHNAME1 = 56;
  2258. LOCALE_SMONTHNAME2 = 57;
  2259. LOCALE_SMONTHNAME3 = 58;
  2260. LOCALE_SMONTHNAME4 = 59;
  2261. LOCALE_SMONTHNAME5 = 60;
  2262. LOCALE_SMONTHNAME6 = 61;
  2263. LOCALE_SMONTHNAME7 = 62;
  2264. LOCALE_SMONTHNAME8 = 63;
  2265. LOCALE_SMONTHNAME9 = 64;
  2266. LOCALE_SMONTHNAME10 = 65;
  2267. LOCALE_SMONTHNAME11 = 66;
  2268. LOCALE_SMONTHNAME12 = 67;
  2269. LOCALE_SMONTHNAME13 = 4110;
  2270. LOCALE_SABBREVMONTHNAME1 = 68;
  2271. LOCALE_SABBREVMONTHNAME2 = 69;
  2272. LOCALE_SABBREVMONTHNAME3 = 70;
  2273. LOCALE_SABBREVMONTHNAME4 = 71;
  2274. LOCALE_SABBREVMONTHNAME5 = 72;
  2275. LOCALE_SABBREVMONTHNAME6 = 73;
  2276. LOCALE_SABBREVMONTHNAME7 = 74;
  2277. LOCALE_SABBREVMONTHNAME8 = 75;
  2278. LOCALE_SABBREVMONTHNAME9 = 76;
  2279. LOCALE_SABBREVMONTHNAME10 = 77;
  2280. LOCALE_SABBREVMONTHNAME11 = 78;
  2281. LOCALE_SABBREVMONTHNAME12 = 79;
  2282. LOCALE_SABBREVMONTHNAME13 = 4111;
  2283. LOCALE_SPOSITIVESIGN = 80;
  2284. LOCALE_SNEGATIVESIGN = 81;
  2285. LOCALE_IPOSSIGNPOSN = 82;
  2286. LOCALE_INEGSIGNPOSN = 83;
  2287. LOCALE_IPOSSYMPRECEDES = 84;
  2288. LOCALE_IPOSSEPBYSPACE = 85;
  2289. LOCALE_INEGSYMPRECEDES = 86;
  2290. LOCALE_INEGSEPBYSPACE = 87;
  2291. LOCALE_NOUSEROVERRIDE = $80000000;
  2292. LOCALE_USE_CP_ACP = $40000000; // use the system ACP
  2293. LOCALE_RETURN_NUMBER = $20000000; // return number instead
  2294. { Calendar Type Information }
  2295. CAL_ICALINTVALUE = 1;
  2296. CAL_IYEAROFFSETRANGE = 3;
  2297. CAL_SABBREVDAYNAME1 = 14;
  2298. CAL_SABBREVDAYNAME2 = 15;
  2299. CAL_SABBREVDAYNAME3 = 16;
  2300. CAL_SABBREVDAYNAME4 = 17;
  2301. CAL_SABBREVDAYNAME5 = 18;
  2302. CAL_SABBREVDAYNAME6 = 19;
  2303. CAL_SABBREVDAYNAME7 = 20;
  2304. CAL_SABBREVMONTHNAME1 = 34;
  2305. CAL_SABBREVMONTHNAME2 = 35;
  2306. CAL_SABBREVMONTHNAME3 = 36;
  2307. CAL_SABBREVMONTHNAME4 = 37;
  2308. CAL_SABBREVMONTHNAME5 = 38;
  2309. CAL_SABBREVMONTHNAME6 = 39;
  2310. CAL_SABBREVMONTHNAME7 = 40;
  2311. CAL_SABBREVMONTHNAME8 = 41;
  2312. CAL_SABBREVMONTHNAME9 = 42;
  2313. CAL_SABBREVMONTHNAME10 = 43;
  2314. CAL_SABBREVMONTHNAME11 = 44;
  2315. CAL_SABBREVMONTHNAME12 = 45;
  2316. CAL_SABBREVMONTHNAME13 = 46;
  2317. CAL_SCALNAME = 2;
  2318. CAL_SDAYNAME1 = 7;
  2319. CAL_SDAYNAME2 = 8;
  2320. CAL_SDAYNAME3 = 9;
  2321. CAL_SDAYNAME4 = 10;
  2322. CAL_SDAYNAME5 = 11;
  2323. CAL_SDAYNAME6 = 12;
  2324. CAL_SDAYNAME7 = 13;
  2325. CAL_SERASTRING = 4;
  2326. CAL_SLONGDATE = 6;
  2327. CAL_SMONTHNAME1 = 21;
  2328. CAL_SMONTHNAME2 = 22;
  2329. CAL_SMONTHNAME3 = 23;
  2330. CAL_SMONTHNAME4 = 24;
  2331. CAL_SMONTHNAME5 = 25;
  2332. CAL_SMONTHNAME6 = 26;
  2333. CAL_SMONTHNAME7 = 27;
  2334. CAL_SMONTHNAME8 = 28;
  2335. CAL_SMONTHNAME9 = 29;
  2336. CAL_SMONTHNAME10 = 30;
  2337. CAL_SMONTHNAME11 = 31;
  2338. CAL_SMONTHNAME12 = 32;
  2339. CAL_SMONTHNAME13 = 33;
  2340. CAL_SSHORTDATE = 5;
  2341. { SetProcessWorkingSetSize }
  2342. PROCESS_SET_QUOTA = 256;
  2343. { SetPrinter }
  2344. { SetService }
  2345. { SetStretchBltMode }
  2346. BLACKONWHITE = 1;
  2347. COLORONCOLOR = 3;
  2348. HALFTONE = 4;
  2349. STRETCH_ANDSCANS = 1;
  2350. STRETCH_DELETESCANS = 3;
  2351. STRETCH_HALFTONE = 4;
  2352. STRETCH_ORSCANS = 2;
  2353. WHITEONBLACK = 2;
  2354. { SetSystemCursor }
  2355. OCR_NORMAL = 32512;
  2356. OCR_IBEAM = 32513;
  2357. OCR_WAIT = 32514;
  2358. OCR_CROSS = 32515;
  2359. OCR_UP = 32516;
  2360. OCR_SIZE = 32640;
  2361. OCR_ICON = 32641;
  2362. OCR_SIZENWSE = 32642;
  2363. OCR_SIZENESW = 32643;
  2364. OCR_SIZEWE = 32644;
  2365. OCR_SIZENS = 32645;
  2366. OCR_SIZEALL = 32646;
  2367. OCR_NO = 32648;
  2368. OCR_APPSTARTING = 32650;
  2369. { SetTapePosition }
  2370. TAPE_ABSOLUTE_BLOCK = $1;
  2371. TAPE_LOGICAL_BLOCK = $2;
  2372. TAPE_REWIND = 0;
  2373. TAPE_SPACE_END_OF_DATA = $4;
  2374. TAPE_SPACE_FILEMARKS = $6;
  2375. TAPE_SPACE_RELATIVE_BLOCKS = $5;
  2376. TAPE_SPACE_SEQUENTIAL_FMKS = $7;
  2377. TAPE_SPACE_SEQUENTIAL_SMKS = $9;
  2378. TAPE_SPACE_SETMARKS = $8;
  2379. { SetUnhandledExceptionFilter }
  2380. EXCEPTION_EXECUTE_HANDLER = 1;
  2381. EXCEPTION_CONTINUE_EXECUTION = -(1);
  2382. EXCEPTION_CONTINUE_SEARCH = 0;
  2383. { SetWindowPos, DeferWindowPos }
  2384. HWND_BOTTOM = HWND(1);
  2385. HWND_NOTOPMOST = HWND(-(2));
  2386. HWND_TOP = HWND(0);
  2387. HWND_TOPMOST = HWND(-(1));
  2388. const
  2389. SWP_DRAWFRAME = 32;
  2390. SWP_FRAMECHANGED = 32;
  2391. SWP_HIDEWINDOW = 128;
  2392. SWP_NOACTIVATE = 16;
  2393. SWP_NOCOPYBITS = 256;
  2394. SWP_NOMOVE = 2;
  2395. SWP_NOSIZE = 1;
  2396. SWP_NOREDRAW = 8;
  2397. SWP_NOZORDER = 4;
  2398. SWP_SHOWWINDOW = 64;
  2399. SWP_NOOWNERZORDER = 512;
  2400. SWP_NOREPOSITION = 512;
  2401. SWP_NOSENDCHANGING = 1024;
  2402. { SHAddToRecentDocs }
  2403. { SHAppBarMessage }
  2404. { SHChangeNotify }
  2405. { ShellProc }
  2406. HSHELL_ACTIVATESHELLWINDOW = 3;
  2407. HSHELL_GETMINRECT = 5;
  2408. HSHELL_LANGUAGE = 8;
  2409. HSHELL_REDRAW = 6;
  2410. HSHELL_TASKMAN = 7;
  2411. HSHELL_WINDOWACTIVATED = 4;
  2412. HSHELL_WINDOWCREATED = 1;
  2413. HSHELL_WINDOWDESTROYED = 2;
  2414. { SHGetFileInfo }
  2415. // supported SHGetFileInfo input flags
  2416. SHGFI_ICON = $000000100; // get icon
  2417. SHGFI_DISPLAYNAME = $000000200; // get display name
  2418. SHGFI_TYPENAME = $000000400; // get type name
  2419. SHGFI_ATTRIBUTES = $000000800; // get attributes
  2420. SHGFI_SYSICONINDEX = $000004000; // get system icon index
  2421. SHGFI_LARGEICON = $000000000; // get large icon
  2422. SHGFI_SMALLICON = $000000001; // get small icon
  2423. SHGFI_USEFILEATTRIBUTES = $000000010; // use passed dwFileAttribute
  2424. SHGFI_PIDL = $000000008; // pszPath is a pidl
  2425. // supported SHGetFileInfo output attributes
  2426. SFGAO_LINK = $00010000; // Shortcut (link)
  2427. SFGAO_READONLY = $00040000; // read-only
  2428. SFGAO_FOLDER = $20000000; // It's a folder.
  2429. { SHGetSpecialFolderLocation }
  2430. { ShowWindow }
  2431. SW_HIDE = 0;
  2432. SW_MAXIMIZE = 3;
  2433. SW_MINIMIZE = 6;
  2434. SW_NORMAL = 1;
  2435. SW_RESTORE = 9;
  2436. SW_SHOW = 5;
  2437. SW_SHOWDEFAULT = 10;
  2438. SW_SHOWMAXIMIZED = 3;
  2439. SW_SHOWMINIMIZED = 2;
  2440. SW_SHOWMINNOACTIVE = 7;
  2441. SW_SHOWNA = 8;
  2442. SW_SHOWNOACTIVATE = 4;
  2443. SW_SHOWNORMAL = 1;
  2444. WPF_RESTORETOMAXIMIZED = 2;
  2445. WPF_SETMINPOSITION = 1;
  2446. { SID }
  2447. ////////////////////////////////////////////////////////////////////////
  2448. // //
  2449. // Security Id (SID) //
  2450. // //
  2451. ////////////////////////////////////////////////////////////////////////
  2452. //
  2453. //
  2454. // Pictorially the structure of an SID is as follows:
  2455. //
  2456. // 1 1 1 1 1 1
  2457. // 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  2458. // +---------------------------------------------------------------+
  2459. // | SubAuthorityCount |Reserved1 (SBZ)| Revision |
  2460. // +---------------------------------------------------------------+
  2461. // | IdentifierAuthority[0] |
  2462. // +---------------------------------------------------------------+
  2463. // | IdentifierAuthority[1] |
  2464. // +---------------------------------------------------------------+
  2465. // | IdentifierAuthority[2] |
  2466. // +---------------------------------------------------------------+
  2467. // | |
  2468. // +- - - - - - - - SubAuthority[] - - - - - - - - -+
  2469. // | |
  2470. // +---------------------------------------------------------------+
  2471. //
  2472. //
  2473. SID_REVISION =1; // Current revision level
  2474. SID_MAX_SUB_AUTHORITIES = 15;
  2475. SID_RECOMMENDED_SUB_AUTHORITIES = 1; // Will change to around 6
  2476. // in a future release.
  2477. { Sleep }
  2478. INFINITE = $FFFFFFFF;
  2479. { SystemParametersInfo }
  2480. SPI_GETACCESSTIMEOUT = 60;
  2481. SPI_GETANIMATION = 72;
  2482. SPI_GETBEEP = 1;
  2483. SPI_GETBORDER = 5;
  2484. SPI_GETDEFAULTINPUTLANG = 89;
  2485. SPI_GETDRAGFULLWINDOWS = 38;
  2486. SPI_GETFASTTASKSWITCH = 35;
  2487. SPI_GETFILTERKEYS = 50;
  2488. SPI_GETFONTSMOOTHING = 74;
  2489. SPI_GETGRIDGRANULARITY = 18;
  2490. SPI_GETHIGHCONTRAST = 66;
  2491. SPI_GETICONMETRICS = 45;
  2492. SPI_GETICONTITLELOGFONT = 31;
  2493. SPI_GETICONTITLEWRAP = 25;
  2494. SPI_GETKEYBOARDDELAY = 22;
  2495. SPI_GETKEYBOARDPREF = 68;
  2496. SPI_GETKEYBOARDSPEED = 10;
  2497. SPI_GETLOWPOWERACTIVE = 83;
  2498. SPI_GETLOWPOWERTIMEOUT = 79;
  2499. SPI_GETMENUDROPALIGNMENT = 27;
  2500. SPI_GETMINIMIZEDMETRICS = 43;
  2501. SPI_GETMOUSE = 3;
  2502. SPI_GETMOUSEKEYS = 54;
  2503. SPI_GETMOUSETRAILS = 94;
  2504. SPI_GETNONCLIENTMETRICS = 41;
  2505. SPI_GETPOWEROFFACTIVE = 84;
  2506. SPI_GETPOWEROFFTIMEOUT = 80;
  2507. SPI_GETSCREENREADER = 70;
  2508. SPI_GETSCREENSAVEACTIVE = 16;
  2509. SPI_GETSCREENSAVETIMEOUT = 14;
  2510. SPI_GETSERIALKEYS = 62;
  2511. SPI_GETSHOWSOUNDS = 56;
  2512. SPI_GETSOUNDSENTRY = 64;
  2513. SPI_GETSTICKYKEYS = 58;
  2514. SPI_GETTOGGLEKEYS = 52;
  2515. SPI_GETWINDOWSEXTENSION = 92;
  2516. SPI_GETWORKAREA = 48;
  2517. SPI_ICONHORIZONTALSPACING = 13;
  2518. SPI_ICONVERTICALSPACING = 24;
  2519. SPI_LANGDRIVER = 12;
  2520. SPI_SCREENSAVERRUNNING = 97;
  2521. SPI_SETACCESSTIMEOUT = 61;
  2522. SPI_SETANIMATION = 73;
  2523. SPI_SETBEEP = 2;
  2524. SPI_SETBORDER = 6;
  2525. SPI_SETDEFAULTINPUTLANG = 90;
  2526. SPI_SETDESKPATTERN = 21;
  2527. SPI_SETDESKWALLPAPER = 20;
  2528. SPI_SETDOUBLECLICKTIME = 32;
  2529. SPI_SETDOUBLECLKHEIGHT = 30;
  2530. SPI_SETDOUBLECLKWIDTH = 29;
  2531. SPI_SETDRAGFULLWINDOWS = 37;
  2532. SPI_SETDRAGHEIGHT = 77;
  2533. SPI_SETDRAGWIDTH = 76;
  2534. SPI_SETFASTTASKSWITCH = 36;
  2535. SPI_SETFILTERKEYS = 51;
  2536. SPI_SETFONTSMOOTHING = 75;
  2537. SPI_SETGRIDGRANULARITY = 19;
  2538. SPI_SETHANDHELD = 78;
  2539. SPI_SETHIGHCONTRAST = 67;
  2540. SPI_SETICONMETRICS = 46;
  2541. SPI_SETICONTITLELOGFONT = 34;
  2542. SPI_SETICONTITLEWRAP = 26;
  2543. SPI_SETKEYBOARDDELAY = 23;
  2544. SPI_SETKEYBOARDPREF = 69;
  2545. SPI_SETKEYBOARDSPEED = 11;
  2546. SPI_SETLANGTOGGLE = 91;
  2547. SPI_SETLOWPOWERACTIVE = 85;
  2548. SPI_SETLOWPOWERTIMEOUT = 81;
  2549. SPI_SETMENUDROPALIGNMENT = 28;
  2550. SPI_SETMINIMIZEDMETRICS = 44;
  2551. SPI_SETMOUSE = 4;
  2552. SPI_SETMOUSEBUTTONSWAP = 33;
  2553. SPI_SETMOUSEKEYS = 55;
  2554. SPI_SETMOUSETRAILS = 93;
  2555. SPI_SETNONCLIENTMETRICS = 42;
  2556. SPI_SETPENWINDOWS = 49;
  2557. SPI_SETPOWEROFFACTIVE = 86;
  2558. SPI_SETPOWEROFFTIMEOUT = 82;
  2559. SPI_SETSCREENREADER = 71;
  2560. SPI_SETSCREENSAVEACTIVE = 17;
  2561. SPI_SETSCREENSAVETIMEOUT = 15;
  2562. SPI_SETSERIALKEYS = 63;
  2563. SPI_SETSHOWSOUNDS = 57;
  2564. SPI_SETSOUNDSENTRY = 65;
  2565. SPI_SETSTICKYKEYS = 59;
  2566. SPI_SETTOGGLEKEYS = 53;
  2567. SPI_SETWORKAREA = 47;
  2568. SPI_SETBATTERYIDLETIMEOUT = 251;
  2569. SPI_GETBATTERYIDLETIMEOUT = 252;
  2570. SPI_SETEXTERNALIDLETIMEOUT = 253;
  2571. SPI_GETEXTERNALIDLETIMEOUT = 254;
  2572. SPI_SETWAKEUPIDLETIMEOUT = 255;
  2573. SPI_GETWAKEUPIDLETIMEOUT = 256;
  2574. SPI_GETPLATFORMTYPE = 257;
  2575. SPI_GETOEMINFO = 258;
  2576. SPIF_UPDATEINIFILE = 1;
  2577. SPIF_SENDWININICHANGE = 2;
  2578. SPIF_SENDCHANGE = 2;
  2579. { TrackPopupMenu, TrackPopMenuEx }
  2580. TPM_CENTERALIGN = $4;
  2581. TPM_LEFTALIGN = 0;
  2582. TPM_RIGHTALIGN = $8;
  2583. TPM_LEFTBUTTON = 0;
  2584. TPM_RIGHTBUTTON = $2;
  2585. TPM_HORIZONTAL = 0;
  2586. TPM_BOTTOMALIGN = $20;
  2587. TPM_VERTICAL = $40;
  2588. { TranslateCharsetInfo }
  2589. TCI_SRCCHARSET = 1;
  2590. TCI_SRCCODEPAGE = 2;
  2591. TCI_SRCFONTSIG = 3;
  2592. { WideCharToMultiByte }
  2593. WC_COMPOSITECHECK = 512;
  2594. WC_DISCARDNS = 16;
  2595. WC_SEPCHARS = 32;
  2596. WC_DEFAULTCHAR = 64;
  2597. { WinHelp }
  2598. HELP_COMMAND = $102;
  2599. HELP_CONTENTS = $3;
  2600. HELP_CONTEXT = $1;
  2601. HELP_CONTEXTPOPUP = $8;
  2602. HELP_FORCEFILE = $9;
  2603. HELP_HELPONHELP = $4;
  2604. HELP_INDEX = $3;
  2605. HELP_KEY = $101;
  2606. HELP_MULTIKEY = $201;
  2607. HELP_PARTIALKEY = $105;
  2608. HELP_QUIT = $2;
  2609. HELP_SETCONTENTS = $5;
  2610. HELP_SETINDEX = $5;
  2611. HELP_CONTEXTMENU = $a;
  2612. HELP_FINDER = $b;
  2613. HELP_WM_HELP = $c;
  2614. HELP_TCARD = $8000;
  2615. HELP_TCARD_DATA = $10;
  2616. HELP_TCARD_OTHER_CALLER = $11;
  2617. { WNetAddConnectino2 }
  2618. CONNECT_UPDATE_PROFILE = 1;
  2619. { WNetConnectionDialog, WNetDisconnectDialog, WNetOpenEnum }
  2620. RESOURCETYPE_DISK = 1;
  2621. RESOURCETYPE_PRINT = 2;
  2622. RESOURCETYPE_ANY = 0;
  2623. RESOURCE_CONNECTED = 1;
  2624. RESOURCE_GLOBALNET = 2;
  2625. RESOURCE_REMEMBERED = 3;
  2626. RESOURCEUSAGE_CONNECTABLE = 1;
  2627. RESOURCEUSAGE_CONTAINER = 2;
  2628. { WNetGetResourceInformation, WNetGetResourceParent }
  2629. WN_BAD_NETNAME = $43;
  2630. WN_EXTENDED_ERROR = $4b8;
  2631. WN_MORE_DATA = $ea;
  2632. WN_NO_NETWORK = $4c6;
  2633. WN_SUCCESS = 0;
  2634. WN_ACCESS_DENIED = $5;
  2635. WN_BAD_PROVIDER = $4b4;
  2636. WN_NOT_AUTHENTICATED = $4dc;
  2637. { WNetGetUniversalName }
  2638. UNIVERSAL_NAME_INFO_LEVEL = 1;
  2639. REMOTE_NAME_INFO_LEVEL = 2;
  2640. { GetExitCodeThread }
  2641. STILL_ACTIVE = $103;
  2642. { kfuncs consts } //+kfuncs
  2643. {$ifdef CPUARM}
  2644. PUserKData = $FFFFC800;
  2645. {$else}
  2646. PUserKData = $00005800;
  2647. {$endif CPUARM}
  2648. EVENT_PULSE = 1;
  2649. EVENT_RESET = 2;
  2650. EVENT_SET = 3;
  2651. SYSHANDLE_OFFSET = $004;
  2652. NUM_SYS_HANDLES = 32;
  2653. SYS_HANDLE_BASE = 64;
  2654. SH_WIN32 = 0;
  2655. SH_CURTHREAD = 1;
  2656. SH_CURPROC = 2;
  2657. SH_LAST_NOTIFY = 16; // Last set notified on Thread/Process Termination
  2658. SH_GDI = 16;
  2659. SH_WMGR = 17;
  2660. SH_WNET = 18; // WNet APIs for network redirector
  2661. SH_COMM = 19; // Communications not "COM"
  2662. SH_FILESYS_APIS = 20; // File system APIS
  2663. SH_SHELL = 21;
  2664. SH_DEVMGR_APIS = 22; // File system device manager
  2665. SH_TAPI = 23;
  2666. SH_PATCHER = 24;
  2667. SH_SERVICES = 26;
  2668. SH_LASTRESERVED = 26;
  2669. TLS_FUNCALLOC = 0;
  2670. TLS_FUNCFREE = 1;
  2671. { COMMPROP structure }
  2672. SP_SERIALCOMM = $1;
  2673. BAUD_075 = $1;
  2674. BAUD_110 = $2;
  2675. BAUD_134_5 = $4;
  2676. BAUD_150 = $8;
  2677. BAUD_300 = $10;
  2678. BAUD_600 = $20;
  2679. BAUD_1200 = $40;
  2680. BAUD_1800 = $80;
  2681. BAUD_2400 = $100;
  2682. BAUD_4800 = $200;
  2683. BAUD_7200 = $400;
  2684. BAUD_9600 = $800;
  2685. BAUD_14400 = $1000;
  2686. BAUD_19200 = $2000;
  2687. BAUD_38400 = $4000;
  2688. BAUD_56K = $8000;
  2689. BAUD_57600 = $40000;
  2690. BAUD_115200 = $20000;
  2691. BAUD_128K = $10000;
  2692. BAUD_USER = $10000000;
  2693. PST_FAX = $21;
  2694. PST_LAT = $101;
  2695. PST_MODEM = $6;
  2696. PST_NETWORK_BRIDGE = $100;
  2697. PST_PARALLELPORT = $2;
  2698. PST_RS232 = $1;
  2699. PST_RS422 = $3;
  2700. PST_RS423 = $4;
  2701. PST_RS449 = $5;
  2702. PST_SCANNER = $22;
  2703. PST_TCPIP_TELNET = $102;
  2704. PST_UNSPECIFIED = 0;
  2705. PST_X25 = $103;
  2706. PCF_16BITMODE = $200;
  2707. PCF_DTRDSR = $1;
  2708. PCF_INTTIMEOUTS = $80;
  2709. PCF_PARITY_CHECK = $8;
  2710. PCF_RLSD = $4;
  2711. PCF_RTSCTS = $2;
  2712. PCF_SETXCHAR = $20;
  2713. PCF_SPECIALCHARS = $100;
  2714. PCF_TOTALTIMEOUTS = $40;
  2715. PCF_XONXOFF = $10;
  2716. SP_BAUD = $2;
  2717. SP_DATABITS = $4;
  2718. SP_HANDSHAKING = $10;
  2719. SP_PARITY = $1;
  2720. SP_PARITY_CHECK = $20;
  2721. SP_RLSD = $40;
  2722. SP_STOPBITS = $8;
  2723. DATABITS_5 = 1;
  2724. DATABITS_6 = 2;
  2725. DATABITS_7 = 4;
  2726. DATABITS_8 = 8;
  2727. DATABITS_16 = 16;
  2728. DATABITS_16X = 32;
  2729. STOPBITS_10 = 1;
  2730. STOPBITS_15 = 2;
  2731. STOPBITS_20 = 4;
  2732. PARITY_NONE = 256;
  2733. PARITY_ODD = 512;
  2734. PARITY_EVEN = 1024;
  2735. PARITY_MARK = 2048;
  2736. PARITY_SPACE = 4096;
  2737. COMMPROP_INITIALIZED = $e73cf52e;
  2738. { DCB structure }
  2739. CBR_110 = 110;
  2740. CBR_300 = 300;
  2741. CBR_600 = 600;
  2742. CBR_1200 = 1200;
  2743. CBR_2400 = 2400;
  2744. CBR_4800 = 4800;
  2745. CBR_9600 = 9600;
  2746. CBR_14400 = 14400;
  2747. CBR_19200 = 19200;
  2748. CBR_38400 = 38400;
  2749. CBR_56000 = 56000;
  2750. CBR_57600 = 57600;
  2751. CBR_115200 = 115200;
  2752. CBR_128000 = 128000;
  2753. CBR_256000 = 256000;
  2754. DTR_CONTROL_DISABLE = 0;
  2755. DTR_CONTROL_ENABLE = 1;
  2756. DTR_CONTROL_HANDSHAKE = 2;
  2757. RTS_CONTROL_DISABLE = 0;
  2758. RTS_CONTROL_ENABLE = 1;
  2759. RTS_CONTROL_HANDSHAKE = 2;
  2760. RTS_CONTROL_TOGGLE = 3;
  2761. EVENPARITY = 2;
  2762. MARKPARITY = 3;
  2763. NOPARITY = 0;
  2764. ODDPARITY = 1;
  2765. SPACEPARITY = 4;
  2766. ONESTOPBIT = 0;
  2767. ONE5STOPBITS = 1;
  2768. TWOSTOPBITS = 2;
  2769. { Debugging events }
  2770. CREATE_PROCESS_DEBUG_EVENT = 3;
  2771. CREATE_THREAD_DEBUG_EVENT = 2;
  2772. EXCEPTION_DEBUG_EVENT = 1;
  2773. EXIT_PROCESS_DEBUG_EVENT = 5;
  2774. EXIT_THREAD_DEBUG_EVENT = 4;
  2775. LOAD_DLL_DEBUG_EVENT = 6;
  2776. OUTPUT_DEBUG_STRING_EVENT = 8;
  2777. UNLOAD_DLL_DEBUG_EVENT = 7;
  2778. RIP_EVENT = 9;
  2779. { PROCESS_HEAP_ENTRY structure }
  2780. PROCESS_HEAP_REGION = 1;
  2781. PROCESS_HEAP_UNCOMMITTED_RANGE = 2;
  2782. PROCESS_HEAP_ENTRY_BUSY = 4;
  2783. PROCESS_HEAP_ENTRY_MOVEABLE = 16;
  2784. PROCESS_HEAP_ENTRY_DDESHARE = 32;
  2785. { Win32s }
  2786. HINSTANCE_ERROR = 32;
  2787. { WIN32_STREAM_ID structure }
  2788. BACKUP_DATA = 1;
  2789. BACKUP_EA_DATA = 2;
  2790. BACKUP_SECURITY_DATA = 3;
  2791. BACKUP_ALTERNATE_DATA = 4;
  2792. BACKUP_LINK = 5;
  2793. STREAM_MODIFIED_WHEN_READ = 1;
  2794. STREAM_CONTAINS_SECURITY = 2;
  2795. { STARTUPINFO structure }
  2796. STARTF_USESHOWWINDOW = 1;
  2797. STARTF_USEPOSITION = 4;
  2798. STARTF_USESIZE = 2;
  2799. STARTF_USECOUNTCHARS = 8;
  2800. STARTF_USEFILLATTRIBUTE = 16;
  2801. STARTF_RUNFULLSCREEN = 32;
  2802. STARTF_FORCEONFEEDBACK = 64;
  2803. STARTF_FORCEOFFFEEDBACK = 128;
  2804. STARTF_USESTDHANDLES = 256;
  2805. STARTF_USEHOTKEY = 512;
  2806. { OSVERSIONINFO structure }
  2807. VER_PLATFORM_WIN32s = 0;
  2808. VER_PLATFORM_WIN32_WINDOWS = 1;
  2809. VER_PLATFORM_WIN32_NT = 2;
  2810. { More versions }
  2811. VER_SERVER_NT = $80000000; //winnt
  2812. VER_WORKSTATION_NT = $40000000; //winnt
  2813. VER_SUITE_SMALLBUSINESS = $00000001; //winnt
  2814. VER_SUITE_ENTERPRISE = $00000002; //winnt
  2815. VER_SUITE_BACKOFFICE = $00000004; //winnt
  2816. VER_SUITE_COMMUNICATIONS = $00000008; //winnt
  2817. VER_SUITE_TERMINAL = $00000010; //winnt
  2818. VER_SUITE_SMALLBUSINESS_RESTRICTED = $00000020; //winnt
  2819. VER_SUITE_EMBEDDEDNT = $00000040;
  2820. VER_SUITE_DATACENTER = $00000080;
  2821. VER_SUITE_SINGLEUSERTS = $00000100;
  2822. VER_SUITE_PERSONAL = $00000200;
  2823. VER_SUITE_BLADE = $00000400;
  2824. VER_SUITE_EMBEDDED_RESTRICTED = $00000800;
  2825. { PROPSHEETPAGE structure }
  2826. MAXPROPPAGES = 100;
  2827. PSP_DEFAULT = 0;
  2828. PSP_DLGINDIRECT = 1;
  2829. PSP_HASHELP = 32;
  2830. PSP_USECALLBACK = 128;
  2831. PSP_USEHICON = 2;
  2832. PSP_USEICONID = 4;
  2833. PSP_USEREFPARENT = 64;
  2834. PSP_USETITLE = 8;
  2835. PSP_RTLREADING = 16;
  2836. PSP_PREMATURE = $0400; //prsht
  2837. { PROPSHEETHEADER structure } //prsht
  2838. PSH_DEFAULT = 0;
  2839. PSH_PROPTITLE = 1;
  2840. PSH_USEHICON = 2;
  2841. PSH_USEICONID = 4;
  2842. PSH_PROPSHEETPAGE = 8;
  2843. PSH_WIZARDHASFINISH = $0010;
  2844. PSH_WIZARD = 32;
  2845. PSH_USEPSTARTPAGE = 64;
  2846. PSH_NOAPPLYNOW = 128;
  2847. PSH_USECALLBACK = 256;
  2848. PSH_HASHELP = 512;
  2849. PSH_MODELESS = 1024;
  2850. PSH_RTLREADING = 2048;
  2851. PSH_WIZARDCONTEXTHELP = $1000;
  2852. PSH_MAXIMIZE = $2000;
  2853. PSH_NOCANCELBUTTON = $80000000; //specific ppc
  2854. PSCB_INITIALIZED = 1;
  2855. PSCB_PRECREATE = 2;
  2856. PSCB_GETVERSION = 3;
  2857. PSCB_GETTITLE = 4;
  2858. PSCB_GETLINKTEXT = 5;
  2859. { PSN_APPLY message } //prsht
  2860. PSNRET_NOERROR = 0;
  2861. PSNRET_INVALID = 1;
  2862. PSNRET_INVALID_NOCHANGEPAGE = 2;
  2863. { Property Sheet }
  2864. PROP_SM_CXDLG = 212;
  2865. PROP_SM_CYDLG = 188;
  2866. PROP_MED_CXDLG = 227;
  2867. PROP_MED_CYDLG = 215;
  2868. PROP_LG_CXDLG = 252;
  2869. PROP_LG_CYDLG = 218;
  2870. PSBTN_APPLYNOW = 4;
  2871. PSBTN_BACK = 0;
  2872. PSBTN_CANCEL = 5;
  2873. PSBTN_FINISH = 2;
  2874. PSBTN_HELP = 6;
  2875. PSBTN_MAX = 6; //prsht
  2876. PSBTN_NEXT = 1;
  2877. PSBTN_OK = 3;
  2878. PSWIZB_BACK = 1;
  2879. PSWIZB_NEXT = 2;
  2880. PSWIZB_FINISH = 4;
  2881. PSWIZB_DISABLEDFINISH = 8;
  2882. ID_PSREBOOTSYSTEM = 3;
  2883. ID_PSRESTARTWINDOWS = 2;
  2884. WIZ_BODYCX = 184;
  2885. WIZ_BODYX = 92;
  2886. WIZ_CXBMP = 80;
  2887. WIZ_CXDLG = 276;
  2888. WIZ_CYDLG = 140;
  2889. { VX_FIXEDFILEINFO structure }
  2890. VS_FILE_INFO = MAKEINTRESOURCE(16);
  2891. const
  2892. VS_VERSION_INFO = 1;
  2893. VS_FF_DEBUG = $1;
  2894. VS_FF_INFOINFERRED = $10;
  2895. VS_FF_PATCHED = $4;
  2896. VS_FF_PRERELEASE = $2;
  2897. VS_FF_PRIVATEBUILD = $8;
  2898. VS_FF_SPECIALBUILD = $20;
  2899. VOS_UNKNOWN = 0;
  2900. VOS_DOS = $10000;
  2901. VOS_OS216 = $20000;
  2902. VOS_OS232 = $30000;
  2903. VOS_NT = $40000;
  2904. VOS_DOS_WINDOWS16 = $10001;
  2905. VOS_DOS_WINDOWS32 = $10004;
  2906. VOS_OS216_PM16 = $20002;
  2907. VOS_OS232_PM32 = $30003;
  2908. VOS_NT_WINDOWS32 = $40004;
  2909. VFT_UNKNOWN = 0;
  2910. VFT_APP = $1;
  2911. VFT_DLL = $2;
  2912. VFT_DRV = $3;
  2913. VFT_FONT = $4;
  2914. VFT_VXD = $5;
  2915. VFT_STATIC_LIB = $7;
  2916. VFT2_UNKNOWN = 0;
  2917. VFT2_DRV_PRINTER = $1;
  2918. VFT2_DRV_KEYBOARD = $2;
  2919. VFT2_DRV_LANGUAGE = $3;
  2920. VFT2_DRV_DISPLAY = $4;
  2921. VFT2_DRV_MOUSE = $5;
  2922. VFT2_DRV_NETWORK = $6;
  2923. VFT2_DRV_SYSTEM = $7;
  2924. VFT2_DRV_INSTALLABLE = $8;
  2925. VFT2_DRV_SOUND = $9;
  2926. VFT2_FONT_RASTER = $1;
  2927. VFT2_FONT_VECTOR = $2;
  2928. VFT2_FONT_TRUETYPE = $3;
  2929. { PANOSE structure }
  2930. PAN_ANY = 0;
  2931. PAN_NO_FIT = 1;
  2932. PAN_FAMILY_TEXT_DISPLAY = 2;
  2933. PAN_FAMILY_SCRIPT = 3;
  2934. PAN_FAMILY_DECORATIVE = 4;
  2935. PAN_FAMILY_PICTORIAL = 5;
  2936. PAN_SERIF_COVE = 2;
  2937. PAN_SERIF_OBTUSE_COVE = 3;
  2938. PAN_SERIF_SQUARE_COVE = 4;
  2939. PAN_SERIF_OBTUSE_SQUARE_COVE = 5;
  2940. PAN_SERIF_SQUARE = 6;
  2941. PAN_SERIF_THIN = 7;
  2942. PAN_SERIF_BONE = 8;
  2943. PAN_SERIF_EXAGGERATED = 9;
  2944. PAN_SERIF_TRIANGLE = 10;
  2945. PAN_SERIF_NORMAL_SANS = 11;
  2946. PAN_SERIF_OBTUSE_SANS = 12;
  2947. PAN_SERIF_PERP_SANS = 13;
  2948. PAN_SERIF_FLARED = 14;
  2949. PAN_SERIF_ROUNDED = 15;
  2950. PAN_WEIGHT_VERY_LIGHT = 2;
  2951. PAN_WEIGHT_LIGHT = 3;
  2952. PAN_WEIGHT_THIN = 4;
  2953. PAN_WEIGHT_BOOK = 5;
  2954. PAN_WEIGHT_MEDIUM = 6;
  2955. PAN_WEIGHT_DEMI = 7;
  2956. PAN_WEIGHT_BOLD = 8;
  2957. PAN_WEIGHT_HEAVY = 9;
  2958. PAN_WEIGHT_BLACK = 10;
  2959. PAN_WEIGHT_NORD = 11;
  2960. PAN_PROP_OLD_STYLE = 2;
  2961. PAN_PROP_MODERN = 3;
  2962. PAN_PROP_EVEN_WIDTH = 4;
  2963. PAN_PROP_EXPANDED = 5;
  2964. PAN_PROP_CONDENSED = 6;
  2965. PAN_PROP_VERY_EXPANDED = 7;
  2966. PAN_PROP_VERY_CONDENSED = 8;
  2967. PAN_PROP_MONOSPACED = 9;
  2968. PAN_CONTRAST_NONE = 2;
  2969. PAN_CONTRAST_VERY_LOW = 3;
  2970. PAN_CONTRAST_LOW = 4;
  2971. PAN_CONTRAST_MEDIUM_LOW = 5;
  2972. PAN_CONTRAST_MEDIUM = 6;
  2973. PAN_CONTRAST_MEDIUM_HIGH = 7;
  2974. PAN_CONTRAST_HIGH = 8;
  2975. PAN_CONTRAST_VERY_HIGH = 9;
  2976. PAN_STROKE_GRADUAL_DIAG = 2;
  2977. PAN_STROKE_GRADUAL_TRAN = 3;
  2978. PAN_STROKE_GRADUAL_VERT = 4;
  2979. PAN_STROKE_GRADUAL_HORZ = 5;
  2980. PAN_STROKE_RAPID_VERT = 6;
  2981. PAN_STROKE_RAPID_HORZ = 7;
  2982. PAN_STROKE_INSTANT_VERT = 8;
  2983. PAN_STRAIGHT_ARMS_HORZ = 2;
  2984. PAN_STRAIGHT_ARMS_WEDGE = 3;
  2985. PAN_STRAIGHT_ARMS_VERT = 4;
  2986. PAN_STRAIGHT_ARMS_SINGLE_SERIF = 5;
  2987. PAN_STRAIGHT_ARMS_DOUBLE_SERIF = 6;
  2988. PAN_BENT_ARMS_HORZ = 7;
  2989. PAN_BENT_ARMS_VERT = 9;
  2990. PAN_BENT_ARMS_WEDGE = 8;
  2991. PAN_BENT_ARMS_SINGLE_SERIF = 10;
  2992. PAN_BENT_ARMS_DOUBLE_SERIF = 11;
  2993. PAN_LETT_NORMAL_CONTACT = 2;
  2994. PAN_LETT_NORMAL_WEIGHTED = 3;
  2995. PAN_LETT_NORMAL_BOXED = 4;
  2996. PAN_LETT_NORMAL_FLATTENED = 5;
  2997. PAN_LETT_NORMAL_ROUNDED = 6;
  2998. PAN_LETT_NORMAL_OFF_CENTER = 7;
  2999. PAN_LETT_NORMAL_SQUARE = 8;
  3000. PAN_LETT_OBLIQUE_CONTACT = 9;
  3001. PAN_LETT_OBLIQUE_WEIGHTED = 10;
  3002. PAN_LETT_OBLIQUE_BOXED = 11;
  3003. PAN_LETT_OBLIQUE_FLATTENED = 12;
  3004. PAN_LETT_OBLIQUE_ROUNDED = 13;
  3005. PAN_LETT_OBLIQUE_OFF_CENTER = 14;
  3006. PAN_LETT_OBLIQUE_SQUARE = 15;
  3007. PAN_MIDLINE_STANDARD_TRIMMED = 2;
  3008. PAN_MIDLINE_STANDARD_POINTED = 3;
  3009. PAN_MIDLINE_STANDARD_SERIFED = 4;
  3010. PAN_MIDLINE_HIGH_TRIMMED = 5;
  3011. PAN_MIDLINE_HIGH_POINTED = 6;
  3012. PAN_MIDLINE_HIGH_SERIFED = 7;
  3013. PAN_MIDLINE_CONSTANT_TRIMMED = 8;
  3014. PAN_MIDLINE_CONSTANT_POINTED = 9;
  3015. PAN_MIDLINE_CONSTANT_SERIFED = 10;
  3016. PAN_MIDLINE_LOW_TRIMMED = 11;
  3017. PAN_MIDLINE_LOW_POINTED = 12;
  3018. PAN_MIDLINE_LOW_SERIFED = 13;
  3019. PAN_XHEIGHT_CONSTANT_SMALL = 2;
  3020. PAN_XHEIGHT_CONSTANT_STD = 3;
  3021. PAN_XHEIGHT_CONSTANT_LARGE = 4;
  3022. PAN_XHEIGHT_DUCKING_SMALL = 5;
  3023. PAN_XHEIGHT_DUCKING_STD = 6;
  3024. PAN_XHEIGHT_DUCKING_LARGE = 7;
  3025. { PALETTENTRY structure }
  3026. PC_EXPLICIT = 2;
  3027. PC_NOCOLLAPSE = 4;
  3028. PC_RESERVED = 1;
  3029. { LOGBRUSH structure }
  3030. BS_DIBPATTERN = 5;
  3031. BS_DIBPATTERN8X8 = 8;
  3032. BS_DIBPATTERNPT = 6;
  3033. BS_HATCHED = 2;
  3034. BS_HOLLOW = 1;
  3035. BS_NULL = 1;
  3036. BS_PATTERN = 3;
  3037. BS_PATTERN8X8 = 7;
  3038. BS_SOLID = 0;
  3039. { DEVMODE structure }
  3040. DM_ORIENTATION = $1;
  3041. DM_PAPERSIZE = $2;
  3042. DM_PAPERLENGTH = $4;
  3043. DM_PAPERWIDTH = $8;
  3044. DM_SCALE = $10;
  3045. DM_COPIES = $100;
  3046. DM_DEFAULTSOURCE = $200;
  3047. DM_PRINTQUALITY = $400;
  3048. DM_COLOR = $800;
  3049. DM_DUPLEX = $1000;
  3050. DM_YRESOLUTION = $2000;
  3051. DM_TTOPTION = $4000;
  3052. DM_COLLATE = $8000;
  3053. DM_FORMNAME = $10000;
  3054. DM_LOGPIXELS = $20000;
  3055. {DM_BITSPERPEL = $40000;
  3056. DM_PELSWIDTH = $80000;
  3057. DM_PELSHEIGHT = $100000;
  3058. DM_DISPLAYFLAGS = $200000;
  3059. DM_DISPLAYFREQUENCY = $400000;already above }
  3060. DM_ICMMETHOD = $800000;
  3061. DM_ICMINTENT = $1000000;
  3062. DM_MEDIATYPE = $2000000;
  3063. DM_DITHERTYPE = $4000000;
  3064. { orientation selections }
  3065. DMORIENT_LANDSCAPE = 2;
  3066. DMORIENT_PORTRAIT = 1;
  3067. { paper selections }
  3068. DMPAPER_LETTER = 1;
  3069. DMPAPER_LEGAL = 5;
  3070. DMPAPER_A4 = 9;
  3071. DMPAPER_CSHEET = 24;
  3072. DMPAPER_DSHEET = 25;
  3073. DMPAPER_ESHEET = 26;
  3074. DMPAPER_LETTERSMALL = 2;
  3075. DMPAPER_TABLOID = 3;
  3076. DMPAPER_LEDGER = 4;
  3077. DMPAPER_STATEMENT = 6;
  3078. DMPAPER_EXECUTIVE = 7;
  3079. DMPAPER_A3 = 8;
  3080. DMPAPER_A4SMALL = 10;
  3081. DMPAPER_A5 = 11;
  3082. DMPAPER_B4 = 12;
  3083. DMPAPER_B5 = 13;
  3084. DMPAPER_FOLIO = 14;
  3085. DMPAPER_QUARTO = 15;
  3086. DMPAPER_10X14 = 16;
  3087. DMPAPER_11X17 = 17;
  3088. DMPAPER_NOTE = 18;
  3089. DMPAPER_ENV_9 = 19;
  3090. DMPAPER_ENV_10 = 20;
  3091. DMPAPER_ENV_11 = 21;
  3092. DMPAPER_ENV_12 = 22;
  3093. DMPAPER_ENV_14 = 23;
  3094. DMPAPER_ENV_DL = 27;
  3095. DMPAPER_ENV_C5 = 28;
  3096. DMPAPER_ENV_C3 = 29;
  3097. DMPAPER_ENV_C4 = 30;
  3098. DMPAPER_ENV_C6 = 31;
  3099. DMPAPER_ENV_C65 = 32;
  3100. DMPAPER_ENV_B4 = 33;
  3101. DMPAPER_ENV_B5 = 34;
  3102. DMPAPER_ENV_B6 = 35;
  3103. DMPAPER_ENV_ITALY = 36;
  3104. DMPAPER_ENV_MONARCH = 37;
  3105. DMPAPER_ENV_PERSONAL = 38;
  3106. DMPAPER_FANFOLD_US = 39;
  3107. DMPAPER_FANFOLD_STD_GERMAN = 40;
  3108. DMPAPER_FANFOLD_LGL_GERMAN = 41;
  3109. { print qualities }
  3110. DMRES_HIGH = -(4);
  3111. DMRES_MEDIUM = -(3);
  3112. DMRES_LOW = -(2);
  3113. DMRES_DRAFT = -(1);
  3114. { color enable/disable for color printers }
  3115. DMCOLOR_COLOR = 2;
  3116. DMCOLOR_MONOCHROME = 1;
  3117. DMDUP_SIMPLEX = 1;
  3118. DMDUP_HORIZONTAL = 3;
  3119. DMDUP_VERTICAL = 2;
  3120. DMTT_BITMAP = 1;
  3121. DMTT_DOWNLOAD = 2;
  3122. DMTT_SUBDEV = 3;
  3123. DMCOLLATE_TRUE = 1;
  3124. DMCOLLATE_FALSE = 0;
  3125. DM_GRAYSCALE = 1;
  3126. DM_INTERLACED = 2;
  3127. DMICMMETHOD_NONE = 1;
  3128. DMICMMETHOD_SYSTEM = 2;
  3129. DMICMMETHOD_DRIVER = 3;
  3130. DMICMMETHOD_DEVICE = 4;
  3131. DMICMMETHOD_USER = 256;
  3132. DMICM_SATURATE = 1;
  3133. DMICM_CONTRAST = 2;
  3134. DMICM_COLORMETRIC = 3;
  3135. DMICM_USER = 256;
  3136. DMMEDIA_STANDARD = 1;
  3137. DMMEDIA_GLOSSY = 3;
  3138. DMMEDIA_TRANSPARENCY = 2;
  3139. DMMEDIA_USER = 256;
  3140. DMDITHER_NONE = 1;
  3141. DMDITHER_COARSE = 2;
  3142. DMDITHER_FINE = 3;
  3143. DMDITHER_LINEART = 4;
  3144. DMDITHER_GRAYSCALE = 10;
  3145. DMDITHER_USER = 256;
  3146. { RGNDATAHEADER structure }
  3147. RDH_RECTANGLES = 1;
  3148. { TTPOLYGONHEADER structure }
  3149. TT_POLYGON_TYPE = 24;
  3150. { TTPOLYCURVE structure }
  3151. TT_PRIM_LINE = 1;
  3152. TT_PRIM_QSPLINE = 2;
  3153. { GCP_RESULTS structure }
  3154. GCPCLASS_ARABIC = 2;
  3155. GCPCLASS_HEBREW = 2;
  3156. GCPCLASS_LATIN = 1;
  3157. GCPCLASS_LATINNUMBER = 5;
  3158. GCPCLASS_LOCALNUMBER = 4;
  3159. GCPCLASS_LATINNUMERICSEPARATOR = 7;
  3160. GCPCLASS_LATINNUMERICTERMINATOR = 6;
  3161. GCPCLASS_NEUTRAL = 3;
  3162. GCPCLASS_NUMERICSEPARATOR = 8;
  3163. GCPCLASS_PREBOUNDLTR = 128;
  3164. GCPCLASS_PREBOUNDRTL = 64;
  3165. GCPCLASS_POSTBOUNDLTR = 32;
  3166. GCPCLASS_POSTBOUNDRTL = 16;
  3167. GCPGLYPH_LINKBEFORE = 32768;
  3168. GCPGLYPH_LINKAFTER = 16384;
  3169. { RASTERIZER_STATUS structure }
  3170. TT_AVAILABLE = 1;
  3171. TT_ENABLED = 2;
  3172. { COLORADJUSTMENT structure }
  3173. CA_NEGATIVE = 1;
  3174. CA_LOG_FILTER = 2;
  3175. ILLUMINANT_DEVICE_DEFAULT = 0;
  3176. ILLUMINANT_A = 1;
  3177. ILLUMINANT_B = 2;
  3178. ILLUMINANT_C = 3;
  3179. ILLUMINANT_D50 = 4;
  3180. ILLUMINANT_D55 = 5;
  3181. ILLUMINANT_D65 = 6;
  3182. ILLUMINANT_D75 = 7;
  3183. ILLUMINANT_F2 = 8;
  3184. ILLUMINANT_TUNGSTEN = 1;
  3185. ILLUMINANT_DAYLIGHT = 3;
  3186. ILLUMINANT_FLUORESCENT = 8;
  3187. ILLUMINANT_NTSC = 3;
  3188. { DOCINFO structure }
  3189. DI_APPBANDING = 1;
  3190. { EMRMETAHEADER structure }
  3191. EMR_HEADER = 1;
  3192. ENHMETA_SIGNATURE = 1179469088;
  3193. { RTF event masks }
  3194. ENM_CHANGE = 1;
  3195. ENM_CORRECTTEXT = 4194304;
  3196. ENM_DROPFILES = 1048576;
  3197. ENM_KEYEVENTS = 65536;
  3198. ENM_MOUSEEVENTS = 131072;
  3199. ENM_PROTECTED = 2097152;
  3200. ENM_REQUESTRESIZE = 262144;
  3201. ENM_SCROLL = 4;
  3202. ENM_SELCHANGE = 524288;
  3203. ENM_UPDATE = 2;
  3204. ENM_NONE = 0;
  3205. { RTF styles }
  3206. ES_DISABLENOSCROLL = 8192;
  3207. ES_EX_NOCALLOLEINIT = 16777216;
  3208. ES_NOIME = 524288;
  3209. ES_SAVESEL = 32768;
  3210. ES_SELFIME = 262144;
  3211. ES_SUNKEN = 16384;
  3212. ES_VERTICAL = 4194304;
  3213. ES_SELECTIONBAR = 16777216;
  3214. { EM_SETOPTIONS message }
  3215. ECOOP_SET = 1;
  3216. ECOOP_OR = 2;
  3217. ECOOP_AND = 3;
  3218. ECOOP_XOR = 4;
  3219. ECO_AUTOWORDSELECTION = 1;
  3220. ECO_AUTOVSCROLL = 64;
  3221. ECO_AUTOHSCROLL = 128;
  3222. ECO_NOHIDESEL = 256;
  3223. ECO_READONLY = 2048;
  3224. ECO_WANTRETURN = 4096;
  3225. ECO_SAVESEL = 32768;
  3226. ECO_SELECTIONBAR = 16777216;
  3227. ECO_VERTICAL = 4194304;
  3228. { EM_SETCHARFORMAT message }
  3229. SCF_WORD = 2;
  3230. SCF_SELECTION = 1;
  3231. { EM_STREAMOUT message }
  3232. SF_TEXT = 1;
  3233. SF_RTF = 2;
  3234. SF_RTFNOOBJS = 3;
  3235. SF_TEXTIZED = 4;
  3236. SFF_SELECTION = 32768;
  3237. SFF_PLAINRTF = 16384;
  3238. { EM_FINDWORDBREAK message }
  3239. WB_CLASSIFY = 3;
  3240. {WB_ISDELIMITER = 2;
  3241. WB_LEFT = 0; already above }
  3242. WB_LEFTBREAK = 6;
  3243. WB_PREVBREAK = 6;
  3244. WB_MOVEWORDLEFT = 4;
  3245. WB_MOVEWORDPREV = 4;
  3246. WB_MOVEWORDRIGHT = 5;
  3247. WB_MOVEWORDNEXT = 5;
  3248. {WB_RIGHT = 1;already above }
  3249. WB_RIGHTBREAK = 7;
  3250. WB_NEXTBREAK = 7;
  3251. { EM_GETPUNCTUATION message }
  3252. PC_LEADING = 2;
  3253. PC_FOLLOWING = 1;
  3254. PC_DELIMITER = 4;
  3255. PC_OVERFLOW = 3;
  3256. { EM_SETWORDWRAPMODE message }
  3257. WBF_WORDWRAP = 16;
  3258. WBF_WORDBREAK = 32;
  3259. WBF_OVERFLOW = 64;
  3260. WBF_LEVEL1 = 128;
  3261. WBF_LEVEL2 = 256;
  3262. WBF_CUSTOM = 512;
  3263. WBF_BREAKAFTER = 64;
  3264. WBF_BREAKLINE = 32;
  3265. WBF_ISWHITE = 16;
  3266. { CHARFORMAT structure }
  3267. CFM_BOLD = 1;
  3268. CFM_COLOR = 1073741824;
  3269. CFM_FACE = 536870912;
  3270. CFM_ITALIC = 2;
  3271. CFM_OFFSET = 268435456;
  3272. CFM_PROTECTED = 16;
  3273. CFM_SIZE = $80000000;
  3274. CFM_STRIKEOUT = 8;
  3275. CFM_UNDERLINE = 4;
  3276. CFE_AUTOCOLOR = 1073741824;
  3277. CFE_BOLD = 1;
  3278. CFE_ITALIC = 2;
  3279. CFE_STRIKEOUT = 8;
  3280. CFE_UNDERLINE = 4;
  3281. CFE_PROTECTED = 16;
  3282. { PARAFORMAT structure }
  3283. PFM_ALIGNMENT = 8;
  3284. PFM_NUMBERING = 32;
  3285. PFM_OFFSET = 4;
  3286. PFM_OFFSETINDENT = $80000000;
  3287. PFM_RIGHTINDENT = 2;
  3288. PFM_STARTINDENT = 1;
  3289. PFM_TABSTOPS = 16;
  3290. PFN_BULLET = 1;
  3291. PFA_LEFT = 1;
  3292. PFA_RIGHT = 2;
  3293. PFA_CENTER = 3;
  3294. { SELCHANGE structure }
  3295. SEL_EMPTY = 0;
  3296. SEL_TEXT = 1;
  3297. SEL_OBJECT = 2;
  3298. SEL_MULTICHAR = 4;
  3299. SEL_MULTIOBJECT = 8;
  3300. { RTF clipboard formats }
  3301. CF_RTF = 'Rich Text Format';
  3302. CF_RETEXTOBJ = 'RichEdit Text and Objects';
  3303. { DRAWITEMSTRUCT structure }
  3304. ODT_BUTTON = 4;
  3305. ODT_COMBOBOX = 3;
  3306. ODT_LISTBOX = 2;
  3307. ODT_LISTVIEW = 102;
  3308. ODT_MENU = 1;
  3309. ODT_STATIC = 5;
  3310. ODT_TAB = 101;
  3311. ODT_HEADER = 100;
  3312. ODA_DRAWENTIRE = 1;
  3313. ODA_FOCUS = 4;
  3314. ODA_SELECT = 2;
  3315. ODS_CHECKED = 8;
  3316. ODS_COMBOBOXEDIT = 4096;
  3317. ODS_DEFAULT = 32;
  3318. ODS_DISABLED = 4;
  3319. ODS_FOCUS = 16;
  3320. ODS_GRAYED = 2;
  3321. ODS_SELECTED = 1;
  3322. { Common control window classes }
  3323. ANIMATE_CLASSW = 'SysAnimate32';
  3324. HOTKEY_CLASSW = 'msctls_hotkey32';
  3325. PROGRESS_CLASSW = 'msctls_progress32';
  3326. STATUSCLASSNAMEW = 'msctls_statusbar32';
  3327. TOOLBARCLASSNAMEW = 'ToolbarWindow32';
  3328. TOOLTIPS_CLASSW = 'tooltips_class32';
  3329. TRACKBAR_CLASSW = 'msctls_trackbar32';
  3330. UPDOWN_CLASSW = 'msctls_updown32';
  3331. WC_HEADERW = 'SysHeader32';
  3332. WC_LISTVIEWW = 'SysListView32';
  3333. WC_TABCONTROLW = 'SysTabControl32';
  3334. WC_TREEVIEWW = 'SysTreeView32';
  3335. { Common control styles }
  3336. CCS_ADJUSTABLE = $20;
  3337. CCS_BOTTOM = $3;
  3338. CCS_NODIVIDER = $40;
  3339. CCS_NOMOVEY = $2;
  3340. CCS_NOPARENTALIGN = $8;
  3341. CCS_NORESIZE = $4;
  3342. CCS_TOP = $1;
  3343. CCS_VERT = $80;
  3344. ANIMATE_CLASSA = 'SysAnimate32';
  3345. HOTKEY_CLASSA = 'msctls_hotkey32';
  3346. PROGRESS_CLASSA = 'msctls_progress32';
  3347. STATUSCLASSNAMEA = 'msctls_statusbar32';
  3348. TOOLBARCLASSNAMEA = 'ToolbarWindow32';
  3349. TOOLTIPS_CLASSA = 'tooltips_class32';
  3350. TRACKBAR_CLASSA = 'msctls_trackbar32';
  3351. UPDOWN_CLASSA = 'msctls_updown32';
  3352. WC_HEADERA = 'SysHeader32';
  3353. WC_LISTVIEWA = 'SysListView32';
  3354. WC_TABCONTROLA = 'SysTabControl32';
  3355. WC_TREEVIEWA = 'SysTreeView32';
  3356. {$ifdef UNICODE}
  3357. const
  3358. ANIMATE_CLASS = ANIMATE_CLASSW;
  3359. HOTKEY_CLASS = HOTKEY_CLASSW;
  3360. PROGRESS_CLASS = PROGRESS_CLASSW;
  3361. STATUSCLASSNAME = STATUSCLASSNAMEW;
  3362. TOOLBARCLASSNAME = TOOLBARCLASSNAMEW;
  3363. TOOLTIPS_CLASS = TOOLTIPS_CLASSW;
  3364. TRACKBAR_CLASS = TRACKBAR_CLASSW;
  3365. UPDOWN_CLASS = UPDOWN_CLASSW;
  3366. WC_HEADER = WC_HEADERW;
  3367. WC_LISTVIEW = WC_LISTVIEWW;
  3368. WC_TABCONTROL = WC_TABCONTROLW;
  3369. WC_TREEVIEW = WC_TREEVIEWW;
  3370. {$else}
  3371. const
  3372. ANIMATE_CLASS = ANIMATE_CLASSA;
  3373. HOTKEY_CLASS = HOTKEY_CLASSA;
  3374. PROGRESS_CLASS = PROGRESS_CLASSA;
  3375. STATUSCLASSNAME = STATUSCLASSNAMEA;
  3376. TOOLBARCLASSNAME = TOOLBARCLASSNAMEA;
  3377. TOOLTIPS_CLASS = TOOLTIPS_CLASSA;
  3378. TRACKBAR_CLASS = TRACKBAR_CLASSA;
  3379. UPDOWN_CLASS = UPDOWN_CLASSA;
  3380. WC_HEADER = WC_HEADERA;
  3381. WC_LISTVIEW = WC_LISTVIEWA;
  3382. WC_TABCONTROL = WC_TABCONTROLA;
  3383. WC_TREEVIEW = WC_TREEVIEWA;
  3384. {$endif}
  3385. { UNICODE }
  3386. { Header control styles }
  3387. const
  3388. HDS_BUTTONS = 2;
  3389. HDS_HIDDEN = 8;
  3390. HDS_HORZ = 0;
  3391. { HD_ITEM structure }
  3392. HDI_BITMAP = 16;
  3393. HDI_FORMAT = 4;
  3394. HDI_HEIGHT = 1;
  3395. HDI_LPARAM = 8;
  3396. HDI_TEXT = 2;
  3397. HDI_WIDTH = 1;
  3398. HDF_CENTER = 2;
  3399. HDF_LEFT = 0;
  3400. HDF_RIGHT = 1;
  3401. HDF_RTLREADING = 4;
  3402. HDF_BITMAP = 8192;
  3403. HDF_OWNERDRAW = 32768;
  3404. HDF_STRING = 16384;
  3405. HDF_JUSTIFYMASK = 3;
  3406. { HD_HITTESTINFO structure }
  3407. HHT_NOWHERE = 1;
  3408. HHT_ONDIVIDER = 4;
  3409. HHT_ONDIVOPEN = 8;
  3410. HHT_ONHEADER = 2;
  3411. HHT_TOLEFT = 2048;
  3412. HHT_TORIGHT = 1024;
  3413. { TBADDBITMAP structure }
  3414. HINST_COMMCTRL = HINST(-(1));
  3415. const
  3416. IDB_STD_LARGE_COLOR = 1;
  3417. IDB_STD_SMALL_COLOR = 0;
  3418. IDB_VIEW_LARGE_COLOR = 5;
  3419. IDB_VIEW_SMALL_COLOR = 4;
  3420. STD_COPY = 1;
  3421. STD_CUT = 0;
  3422. STD_DELETE = 5;
  3423. STD_FILENEW = 6;
  3424. STD_FILEOPEN = 7;
  3425. STD_FILESAVE = 8;
  3426. STD_FIND = 12;
  3427. STD_HELP = 11;
  3428. STD_PASTE = 2;
  3429. STD_PRINT = 14;
  3430. STD_PRINTPRE = 9;
  3431. STD_PROPERTIES = 10;
  3432. STD_REDOW = 4;
  3433. STD_REPLACE = 13;
  3434. STD_UNDO = 3;
  3435. VIEW_LARGEICONS = 0;
  3436. VIEW_SMALLICONS = 1;
  3437. VIEW_LIST = 2;
  3438. VIEW_DETAILS = 3;
  3439. VIEW_SORTNAME = 4;
  3440. VIEW_SORTSIZE = 5;
  3441. VIEW_SORTDATE = 6;
  3442. VIEW_SORTTYPE = 7;
  3443. { Toolbar styles }
  3444. TBSTYLE_ALTDRAG = 1024;
  3445. TBSTYLE_TOOLTIPS = 256;
  3446. TBSTYLE_WRAPABLE = 512;
  3447. TBSTYLE_BUTTON = 0;
  3448. TBSTYLE_CHECK = 2;
  3449. TBSTYLE_CHECKGROUP = 6;
  3450. TBSTYLE_GROUP = 4;
  3451. TBSTYLE_SEP = 1;
  3452. TBSTYLE_DROPDOWN = $0008;
  3453. TBSTYLE_AUTOSIZE = $0010; // automatically calculate the cx of the button
  3454. TBSTYLE_FLAT = $0800;
  3455. TBSTYLE_LIST = $1000;
  3456. TBSTYLE_CUSTOMERASE = $2000;
  3457. TBSTYLE_TRANSPARENT = $8000;
  3458. { Toolbar states }
  3459. TBSTATE_CHECKED = 1;
  3460. TBSTATE_ENABLED = 4;
  3461. TBSTATE_HIDDEN = 8;
  3462. TBSTATE_INDETERMINATE = 16;
  3463. TBSTATE_PRESSED = 2;
  3464. TBSTATE_WRAP = 32;
  3465. TBSTATE_ELLIPSES = $40;
  3466. TBSTATE_HIGHLIGHTED = $80;
  3467. { Tooltip styles }
  3468. TTS_ALWAYSTIP = 1;
  3469. TTS_NOPREFIX = 2;
  3470. { TOOLINFO structure }
  3471. TTF_IDISHWND = 1;
  3472. TTF_CENTERTIP = 2;
  3473. TTF_RTLREADING = 4;
  3474. TTF_SUBCLASS = 16;
  3475. { TTM_SETDELAYTIME message }
  3476. TTDT_AUTOMATIC = 0;
  3477. TTDT_AUTOPOP = 2;
  3478. TTDT_INITIAL = 3;
  3479. TTDT_RESHOW = 1;
  3480. { Status window }
  3481. SBARS_SIZEGRIP = 256;
  3482. {SBARS_SIZEGRIP = 256;already above }
  3483. { DL_DRAGGING message }
  3484. DL_MOVECURSOR = 3;
  3485. DL_COPYCURSOR = 2;
  3486. DL_STOPCURSOR = 1;
  3487. { Up-down control styles }
  3488. UDS_ALIGNLEFT = 8;
  3489. UDS_ALIGNRIGHT = 4;
  3490. UDS_ARROWKEYS = 32;
  3491. UDS_AUTOBUDDY = 16;
  3492. UDS_HORZ = 64;
  3493. UDS_NOTHOUSANDS = 128;
  3494. UDS_SETBUDDYINT = 2;
  3495. UDS_WRAP = 1;
  3496. { UDM_SETRANGE message }
  3497. UD_MAXVAL = 32767;
  3498. UD_MINVAL = -(32767);
  3499. { HKM_GETHOTKEY message }
  3500. HOTKEYF_ALT = 4;
  3501. HOTKEYF_CONTROL = 2;
  3502. HOTKEYF_EXT = 8;
  3503. HOTKEYF_SHIFT = 1;
  3504. { HKM_SETRULES message }
  3505. HKCOMB_A = 8;
  3506. HKCOMB_C = 4;
  3507. HKCOMB_CA = 64;
  3508. HKCOMB_NONE = 1;
  3509. HKCOMB_S = 2;
  3510. HKCOMB_SA = 32;
  3511. HKCOMB_SC = 16;
  3512. HKCOMB_SCA = 128;
  3513. { Trackbar styles }
  3514. TBS_HORZ = 0;
  3515. TBS_VERT = 2;
  3516. TBS_AUTOTICKS = 1;
  3517. TBS_NOTICKS = 16;
  3518. TBS_TOP = 4;
  3519. TBS_BOTTOM = 0;
  3520. TBS_LEFT = 4;
  3521. TBS_RIGHT = 0;
  3522. TBS_BOTH = 8;
  3523. TBS_ENABLESELRANGE = 32;
  3524. TBS_FIXEDLENGTH = 64;
  3525. TBS_NOTHUMB = 128;
  3526. TB_BOTTOM = 7;
  3527. TB_ENDTRACK = 8;
  3528. TB_LINEDOWN = 1;
  3529. TB_LINEUP = 0;
  3530. TB_PAGEDOWN = 3;
  3531. TB_PAGEUP = 2;
  3532. TB_THUMBPOSITION = 4;
  3533. TB_THUMBTRACK = 5;
  3534. TB_TOP = 6;
  3535. { List view styles }
  3536. LVS_ALIGNLEFT = 2048;
  3537. LVS_ALIGNTOP = 0;
  3538. LVS_AUTOARRANGE = 256;
  3539. LVS_EDITLABELS = 512;
  3540. LVS_ICON = 0;
  3541. LVS_LIST = 3;
  3542. LVS_NOCOLUMNHEADER = 16384;
  3543. LVS_NOLABELWRAP = 128;
  3544. LVS_NOSCROLL = 8192;
  3545. LVS_NOSORTHEADER = 32768;
  3546. LVS_OWNERDRAWFIXED = 1024;
  3547. LVS_OWNERDATA = $1000;
  3548. LVS_REPORT = 1;
  3549. LVS_SHAREIMAGELISTS = 64;
  3550. LVS_SHOWSELALWAYS = 8;
  3551. LVS_SINGLESEL = 4;
  3552. LVS_SMALLICON = 2;
  3553. LVS_SORTASCENDING = 16;
  3554. LVS_SORTDESCENDING = 32;
  3555. LVS_TYPESTYLEMASK = 64512;
  3556. //extended styles
  3557. LVS_EX_GRIDLINES = $00000001;
  3558. LVS_EX_SUBITEMIMAGES = $00000002;
  3559. LVS_EX_CHECKBOXES = $00000004;
  3560. LVS_EX_TRACKSELECT = $00000008;
  3561. LVS_EX_HEADERDRAGDROP = $00000010;
  3562. LVS_EX_FULLROWSELECT = $00000020; // applies to report mode only
  3563. LVS_EX_ONECLICKACTIVATE = $00000040;
  3564. LVS_EX_NOHSCROLL = $10000000;
  3565. LVS_EX_GRADIENT = $20000000; // draw a background gradient
  3566. LVSIL_NORMAL = 0;
  3567. LVSIL_SMALL = 1;
  3568. LVSIL_STATE = 2;
  3569. LVIS_CUT = 4;
  3570. LVIS_DROPHILITED = 8;
  3571. LVIS_FOCUSED = 1;
  3572. LVIS_SELECTED = 2;
  3573. LVIS_OVERLAYMASK = 3840;
  3574. LVIS_STATEIMAGEMASK = 61440;
  3575. // progress bar styles
  3576. PBS_SMOOTH = 01;
  3577. PBS_VERTICAL = 04;
  3578. LPSTR_TEXTCALLBACKW = LPWSTR(-(1));
  3579. LPSTR_TEXTCALLBACKA = LPSTR(-(1));
  3580. {$ifdef UNICODE}
  3581. {const this is a function in fact !!
  3582. LPSTR_TEXTCALLBACK = LPSTR_TEXTCALLBACKW;}
  3583. LPSTR_TEXTCALLBACK = LPWSTR(-(1));
  3584. {$else}
  3585. {const
  3586. LPSTR_TEXTCALLBACK = LPSTR_TEXTCALLBACKA; }
  3587. LPSTR_TEXTCALLBACK =LPSTR(-(1));
  3588. {$endif}
  3589. { LV_ITEM structure }
  3590. const
  3591. LVIF_TEXT = 1;
  3592. LVIF_IMAGE = 2;
  3593. LVIF_PARAM = 4;
  3594. LVIF_STATE = 8;
  3595. LVIF_INDENT = $10;
  3596. LVIF_DI_SETITEM = 4096;
  3597. { LVM_GETNEXTITEM structure }
  3598. LVNI_ABOVE = 256;
  3599. LVNI_ALL = 0;
  3600. LVNI_BELOW = 512;
  3601. LVNI_TOLEFT = 1024;
  3602. LVNI_TORIGHT = 2048;
  3603. LVNI_CUT = 4;
  3604. LVNI_DROPHILITED = 8;
  3605. LVNI_FOCUSED = 1;
  3606. LVNI_SELECTED = 2;
  3607. { LV_FINDINFO structure }
  3608. LVFI_PARAM = 1;
  3609. LVFI_PARTIAL = 8;
  3610. LVFI_STRING = 2;
  3611. LVFI_WRAP = 32;
  3612. LVFI_NEARESTXY = 64;
  3613. { LV_HITTESTINFO structure }
  3614. LVHT_ABOVE = 8;
  3615. LVHT_BELOW = 16;
  3616. LVHT_NOWHERE = 1;
  3617. LVHT_ONITEMICON = 2;
  3618. LVHT_ONITEMLABEL = 4;
  3619. LVHT_ONITEMSTATEICON = 8;
  3620. LVHT_TOLEFT = 64;
  3621. LVHT_TORIGHT = 32;
  3622. LVHT_ONITEM = LVHT_ONITEMICON or LVHT_ONITEMLABEL or LVHT_ONITEMSTATEICON;
  3623. { LV_COLUMN structure }
  3624. LVCF_FMT = 1;
  3625. LVCF_SUBITEM = 8;
  3626. LVCF_TEXT = 4;
  3627. LVCF_WIDTH = 2;
  3628. LVCF_IMAGE = $10;
  3629. LVCF_ORDER = $20;
  3630. LVCFMT_CENTER = 2;
  3631. LVCFMT_LEFT = 0;
  3632. LVCFMT_RIGHT = 1;
  3633. LVCFMT_JUSTIFYMASK = $0003;
  3634. LVCFMT_IMAGE = $0800;
  3635. LVCFMT_BITMAP_ON_RIGHT = $1000;
  3636. { ListView_GetItemRect }
  3637. LVIR_BOUNDS = 0;
  3638. LVIR_ICON = 1;
  3639. LVIR_LABEL = 2;
  3640. LVIR_SELECTBOUNDS = 3;
  3641. { LVM_ARRANGE message }
  3642. LVA_ALIGNLEFT = 1;
  3643. LVA_ALIGNTOP = 2;
  3644. LVA_DEFAULT = 0;
  3645. LVA_SNAPTOGRID = 5;
  3646. { LVM_SETCOLUMNWIDTH message }
  3647. LVSCW_AUTOSIZE = -(1);
  3648. LVSCW_AUTOSIZE_USEHEADER = -(2);
  3649. { Tree View styles }
  3650. TVS_DISABLEDRAGDROP = 16;
  3651. TVS_EDITLABELS = 8;
  3652. TVS_HASBUTTONS = 1;
  3653. TVS_HASLINES = 2;
  3654. TVS_LINESATROOT = 4;
  3655. TVS_SHOWSELALWAYS = 32;
  3656. TVS_CHECKBOXES = $0100;
  3657. TVS_SINGLEEXPAND = $0400;
  3658. { Tree View states }
  3659. TVIS_BOLD = 16;
  3660. TVIS_CUT = 4;
  3661. TVIS_DROPHILITED = 8;
  3662. TVIS_EXPANDED = 32;
  3663. TVIS_EXPANDEDONCE = 64;
  3664. TVIS_FOCUSED = 1;
  3665. TVIS_OVERLAYMASK = 3840;
  3666. TVIS_SELECTED = 2;
  3667. TVIS_STATEIMAGEMASK = 61440;
  3668. TVIS_USERMASK = 61440;
  3669. { TV_ITEM structure }
  3670. TVIF_CHILDREN = 64;
  3671. TVIF_HANDLE = 16;
  3672. TVIF_IMAGE = 2;
  3673. TVIF_PARAM = 4;
  3674. TVIF_SELECTEDIMAGE = 32;
  3675. TVIF_STATE = 8;
  3676. TVIF_TEXT = 1;
  3677. I_CHILDRENCALLBACK = -(1);
  3678. I_IMAGECALLBACK = -(1);
  3679. { TV_INSERTSTRUCT structure }
  3680. { added manually PM, TREEITEM is not defined in the C headers }
  3681. type
  3682. HTREEITEM = THandle;
  3683. const
  3684. TVI_ROOT = HTREEITEM($FFFF0000);
  3685. TVI_FIRST =HTREEITEM($FFFF0001);
  3686. TVI_LAST = HTREEITEM($FFFF0002);
  3687. TVI_SORT = HTREEITEM($FFFF0003);
  3688. { TV_HITTESTINFO structure }
  3689. const
  3690. TVHT_ABOVE = 256;
  3691. TVHT_BELOW = 512;
  3692. TVHT_NOWHERE = 1;
  3693. TVHT_ONITEM = 70;
  3694. TVHT_ONITEMBUTTON = 16;
  3695. TVHT_ONITEMICON = 2;
  3696. TVHT_ONITEMINDENT = 8;
  3697. TVHT_ONITEMLABEL = 4;
  3698. TVHT_ONITEMRIGHT = 32;
  3699. TVHT_ONITEMSTATEICON = 64;
  3700. TVHT_TOLEFT = 2048;
  3701. TVHT_TORIGHT = 1024;
  3702. { TVM_EXPAND message }
  3703. TVE_COLLAPSE = 1;
  3704. TVE_COLLAPSERESET = 32768;
  3705. TVE_EXPAND = 2;
  3706. TVE_TOGGLE = 3;
  3707. { TVM_GETIMAGELIST message }
  3708. TVSIL_NORMAL = 0;
  3709. TVSIL_STATE = 2;
  3710. { TVM_GETNEXTITEM message }
  3711. TVGN_CARET = 9;
  3712. TVGN_CHILD = 4;
  3713. TVGN_DROPHILITE = 8;
  3714. TVGN_FIRSTVISIBLE = 5;
  3715. TVGN_NEXT = 1;
  3716. TVGN_NEXTVISIBLE = 6;
  3717. TVGN_PARENT = 3;
  3718. TVGN_PREVIOUS = 2;
  3719. TVGN_PREVIOUSVISIBLE = 7;
  3720. TVGN_ROOT = 0;
  3721. { TVN_SELCHANGED message }
  3722. TVC_BYKEYBOARD = 2;
  3723. TVC_BYMOUSE = 1;
  3724. TVC_UNKNOWN = 0;
  3725. { Tab control styles } //commctrl
  3726. TCS_RIGHTJUSTIFY = 0;
  3727. TCS_SINGLELINE = 0;
  3728. TCS_TABS = 0;
  3729. TCS_SCROLLOPPOSITE = $0001; // assumes multiline tab
  3730. TCS_BOTTOM = $0002;
  3731. TCS_RIGHT = $0002;
  3732. TCS_MULTISELECT = $0004; // allow multi-select in button mode
  3733. TCS_FLATBUTTONS = $0008;
  3734. TCS_FORCEICONLEFT = 16;
  3735. TCS_FORCELABELLEFT = 32;
  3736. TCS_HOTTRACK = $0040;
  3737. TCS_VERTICAL = $0080;
  3738. TCS_BUTTONS = 256;
  3739. TCS_MULTILINE = 512;
  3740. TCS_FIXEDWIDTH = 1024;
  3741. TCS_RAGGEDRIGHT = 2048;
  3742. TCS_FOCUSONBUTTONDOWN = 4096;
  3743. TCS_OWNERDRAWFIXED = 8192;
  3744. TCS_TOOLTIPS= 16384;
  3745. TCS_FOCUSNEVER = 32768;
  3746. TCS_EX_FLATSEPARATORS = $00000001;
  3747. { TC_ITEM structure }
  3748. TCIF_TEXT = 1;
  3749. TCIF_IMAGE = 2;
  3750. TCIF_PARAM = 8;
  3751. TCIF_RTLREADING = 4;
  3752. { TC_HITTESTINFO structure }
  3753. TCHT_NOWHERE = 1;
  3754. TCHT_ONITEM = 6;
  3755. TCHT_ONITEMICON = 2;
  3756. TCHT_ONITEMLABEL = 4;
  3757. { Animation control styles }
  3758. ACS_AUTOPLAY = 4;
  3759. ACS_CENTER = 1;
  3760. ACS_TRANSPARENT = 2;
  3761. { MODEMDEVCAPS structure }
  3762. DIALOPTION_BILLING = 64;
  3763. DIALOPTION_QUIET = 128;
  3764. DIALOPTION_DIALTONE = 256;
  3765. MDMVOLFLAG_LOW = 1;
  3766. MDMVOLFLAG_MEDIUM = 2;
  3767. MDMVOLFLAG_HIGH = 4;
  3768. MDMVOL_LOW = 0;
  3769. MDMVOL_MEDIUM = 1;
  3770. MDMVOL_HIGH = 2;
  3771. MDMSPKRFLAG_OFF = 1;
  3772. MDMSPKRFLAG_DIAL = 2;
  3773. MDMSPKRFLAG_ON = 4;
  3774. MDMSPKRFLAG_CALLSETUP = 8;
  3775. MDMSPKR_OFF = 0;
  3776. MDMSPKR_DIAL = 1;
  3777. MDMSPKR_ON = 2;
  3778. MDMSPKR_CALLSETUP = 3;
  3779. MDM_BLIND_DIAL = 512;
  3780. MDM_CCITT_OVERRIDE = 64;
  3781. MDM_CELLULAR = 8;
  3782. MDM_COMPRESSION = 1;
  3783. MDM_ERROR_CONTROL = 2;
  3784. MDM_FLOWCONTROL_HARD = 16;
  3785. MDM_FLOWCONTROL_SOFT = 32;
  3786. MDM_FORCED_EC = 4;
  3787. MDM_SPEED_ADJUST = 128;
  3788. MDM_TONE_DIAL = 256;
  3789. MDM_V23_OVERRIDE = 1024;
  3790. { Languages }
  3791. //
  3792. // Language IDs.
  3793. //
  3794. // The following two combinations of primary language ID and
  3795. // sublanguage ID have special semantics:
  3796. //
  3797. // Primary Language ID Sublanguage ID Result
  3798. // ------------------- --------------- ------------------------
  3799. // LANG_NEUTRAL SUBLANG_NEUTRAL Language neutral
  3800. // LANG_NEUTRAL SUBLANG_DEFAULT User default language
  3801. // LANG_NEUTRAL SUBLANG_SYS_DEFAULT System default language
  3802. // LANG_INVARIANT SUBLANG_NEUTRAL Invariant locale
  3803. //
  3804. //
  3805. // Primary language IDs.
  3806. //
  3807. LANG_NEUTRAL = $00;
  3808. LANG_INVARIANT = $7f;
  3809. LANG_AFRIKAANS = $36;
  3810. LANG_ALBANIAN = $1c;
  3811. LANG_ARABIC = $01;
  3812. LANG_ARMENIAN = $2b;
  3813. LANG_ASSAMESE = $4d;
  3814. LANG_AZERI = $2c;
  3815. LANG_BASQUE = $2d;
  3816. LANG_BELARUSIAN = $23;
  3817. LANG_BENGALI = $45;
  3818. LANG_BULGARIAN = $02;
  3819. LANG_CATALAN = $03;
  3820. LANG_CHINESE = $04;
  3821. LANG_CROATIAN = $1a;
  3822. LANG_CZECH = $05;
  3823. LANG_DANISH = $06;
  3824. LANG_DIVEHI = $65;
  3825. LANG_DUTCH = $13;
  3826. LANG_ENGLISH = $09;
  3827. LANG_ESTONIAN = $25;
  3828. LANG_FAEROESE = $38;
  3829. LANG_FARSI = $29;
  3830. LANG_FINNISH = $0b;
  3831. LANG_FRENCH = $0c;
  3832. LANG_GALICIAN = $56;
  3833. LANG_GEORGIAN = $37;
  3834. LANG_GERMAN = $07;
  3835. LANG_GREEK = $08;
  3836. LANG_GUJARATI = $47;
  3837. LANG_HEBREW = $0d;
  3838. LANG_HINDI = $39;
  3839. LANG_HUNGARIAN = $0e;
  3840. LANG_ICELANDIC = $0f;
  3841. LANG_INDONESIAN = $21;
  3842. LANG_ITALIAN = $10;
  3843. LANG_JAPANESE = $11;
  3844. LANG_KANNADA = $4b;
  3845. LANG_KASHMIRI = $60;
  3846. LANG_KAZAK = $3f;
  3847. LANG_KONKANI = $57;
  3848. LANG_KOREAN = $12;
  3849. LANG_KYRGYZ = $40;
  3850. LANG_LATVIAN = $26;
  3851. LANG_LITHUANIAN = $27;
  3852. LANG_MACEDONIAN = $2f; // the Former Yugoslav Republic of Macedonia
  3853. LANG_MALAY = $3e;
  3854. LANG_MALAYALAM = $4c;
  3855. LANG_MANIPURI = $58;
  3856. LANG_MARATHI = $4e;
  3857. LANG_MONGOLIAN = $50;
  3858. LANG_NEPALI = $61;
  3859. LANG_NORWEGIAN = $14;
  3860. LANG_ORIYA = $48;
  3861. LANG_POLISH = $15;
  3862. LANG_PORTUGUESE = $16;
  3863. LANG_PUNJABI = $46;
  3864. LANG_ROMANIAN = $18;
  3865. LANG_RUSSIAN = $19;
  3866. LANG_SANSKRIT = $4f;
  3867. LANG_SERBIAN = $1a;
  3868. LANG_SINDHI = $59;
  3869. LANG_SLOVAK = $1b;
  3870. LANG_SLOVENIAN = $24;
  3871. LANG_SPANISH = $0a;
  3872. LANG_SWAHILI = $41;
  3873. LANG_SWEDISH = $1d;
  3874. LANG_SYRIAC = $5a;
  3875. LANG_TAMIL = $49;
  3876. LANG_TATAR = $44;
  3877. LANG_TELUGU = $4a;
  3878. LANG_THAI = $1e;
  3879. LANG_TURKISH = $1f;
  3880. LANG_UKRAINIAN = $22;
  3881. LANG_URDU = $20;
  3882. LANG_UZBEK = $43;
  3883. LANG_VIETNAMESE = $2a;
  3884. //
  3885. // Sublanguage IDs.
  3886. //
  3887. // The name immediately following SUBLANG_ dictates which primary
  3888. // language ID that sublanguage ID can be combined with to form a
  3889. // valid language ID.
  3890. //
  3891. SUBLANG_NEUTRAL = $00; // language neutral
  3892. SUBLANG_DEFAULT = $01; // user default
  3893. SUBLANG_SYS_DEFAULT = $02; // system default
  3894. SUBLANG_ARABIC_SAUDI_ARABIA = $01; // Arabic (Saudi Arabia)
  3895. SUBLANG_ARABIC_IRAQ = $02; // Arabic (Iraq)
  3896. SUBLANG_ARABIC_EGYPT = $03; // Arabic (Egypt)
  3897. SUBLANG_ARABIC_LIBYA = $04; // Arabic (Libya)
  3898. SUBLANG_ARABIC_ALGERIA = $05; // Arabic (Algeria)
  3899. SUBLANG_ARABIC_MOROCCO = $06; // Arabic (Morocco)
  3900. SUBLANG_ARABIC_TUNISIA = $07; // Arabic (Tunisia)
  3901. SUBLANG_ARABIC_OMAN = $08; // Arabic (Oman)
  3902. SUBLANG_ARABIC_YEMEN = $09; // Arabic (Yemen)
  3903. SUBLANG_ARABIC_SYRIA = $0a; // Arabic (Syria)
  3904. SUBLANG_ARABIC_JORDAN = $0b; // Arabic (Jordan)
  3905. SUBLANG_ARABIC_LEBANON = $0c; // Arabic (Lebanon)
  3906. SUBLANG_ARABIC_KUWAIT = $0d; // Arabic (Kuwait)
  3907. SUBLANG_ARABIC_UAE = $0e; // Arabic (U.A.E)
  3908. SUBLANG_ARABIC_BAHRAIN = $0f; // Arabic (Bahrain)
  3909. SUBLANG_ARABIC_QATAR = $10; // Arabic (Qatar)
  3910. SUBLANG_AZERI_LATIN = $01; // Azeri (Latin)
  3911. SUBLANG_AZERI_CYRILLIC = $02; // Azeri (Cyrillic)
  3912. SUBLANG_CHINESE_TRADITIONAL = $01; // Chinese (Taiwan)
  3913. SUBLANG_CHINESE_SIMPLIFIED = $02; // Chinese (PR China)
  3914. SUBLANG_CHINESE_HONGKONG = $03; // Chinese (Hong Kong S.A.R., P.R.C.)
  3915. SUBLANG_CHINESE_SINGAPORE = $04; // Chinese (Singapore)
  3916. SUBLANG_CHINESE_MACAU = $05; // Chinese (Macau S.A.R.)
  3917. SUBLANG_DUTCH = $01; // Dutch
  3918. SUBLANG_DUTCH_BELGIAN = $02; // Dutch (Belgian)
  3919. SUBLANG_ENGLISH_US = $01; // English (USA)
  3920. SUBLANG_ENGLISH_UK = $02; // English (UK)
  3921. SUBLANG_ENGLISH_AUS = $03; // English (Australian)
  3922. SUBLANG_ENGLISH_CAN = $04; // English (Canadian)
  3923. SUBLANG_ENGLISH_NZ = $05; // English (New Zealand)
  3924. SUBLANG_ENGLISH_EIRE = $06; // English (Irish)
  3925. SUBLANG_ENGLISH_SOUTH_AFRICA = $07; // English (South Africa)
  3926. SUBLANG_ENGLISH_JAMAICA = $08; // English (Jamaica)
  3927. SUBLANG_ENGLISH_CARIBBEAN = $09; // English (Caribbean)
  3928. SUBLANG_ENGLISH_BELIZE = $0a; // English (Belize)
  3929. SUBLANG_ENGLISH_TRINIDAD = $0b; // English (Trinidad)
  3930. SUBLANG_ENGLISH_ZIMBABWE = $0c; // English (Zimbabwe)
  3931. SUBLANG_ENGLISH_PHILIPPINES = $0d; // English (Philippines)
  3932. SUBLANG_FRENCH = $01; // French
  3933. SUBLANG_FRENCH_BELGIAN = $02; // French (Belgian)
  3934. SUBLANG_FRENCH_CANADIAN = $03; // French (Canadian)
  3935. SUBLANG_FRENCH_SWISS = $04; // French (Swiss)
  3936. SUBLANG_FRENCH_LUXEMBOURG = $05; // French (Luxembourg)
  3937. SUBLANG_FRENCH_MONACO = $06; // French (Monaco)
  3938. SUBLANG_GERMAN = $01; // German
  3939. SUBLANG_GERMAN_SWISS = $02; // German (Swiss)
  3940. SUBLANG_GERMAN_AUSTRIAN = $03; // German (Austrian)
  3941. SUBLANG_GERMAN_LUXEMBOURG = $04; // German (Luxembourg)
  3942. SUBLANG_GERMAN_LIECHTENSTEIN = $05; // German (Liechtenstein)
  3943. SUBLANG_ITALIAN = $01; // Italian
  3944. SUBLANG_ITALIAN_SWISS = $02; // Italian (Swiss)
  3945. SUBLANG_KASHMIRI_SASIA = $02; // Kashmiri (South Asia)
  3946. SUBLANG_KASHMIRI_INDIA = $02; // For app compatibility only
  3947. SUBLANG_KOREAN = $01; // Korean (Extended Wansung)
  3948. SUBLANG_LITHUANIAN = $01; // Lithuanian
  3949. SUBLANG_MALAY_MALAYSIA = $01; // Malay (Malaysia)
  3950. SUBLANG_MALAY_BRUNEI_DARUSSALAM = $02; // Malay (Brunei Darussalam)
  3951. SUBLANG_NEPALI_INDIA = $02; // Nepali (India)
  3952. SUBLANG_NORWEGIAN_BOKMAL = $01; // Norwegian (Bokmal)
  3953. SUBLANG_NORWEGIAN_NYNORSK = $02; // Norwegian (Nynorsk)
  3954. SUBLANG_PORTUGUESE = $02; // Portuguese
  3955. SUBLANG_PORTUGUESE_BRAZILIAN = $01; // Portuguese (Brazilian)
  3956. SUBLANG_SERBIAN_LATIN = $02; // Serbian (Latin)
  3957. SUBLANG_SERBIAN_CYRILLIC = $03; // Serbian (Cyrillic)
  3958. SUBLANG_SPANISH = $01; // Spanish (Castilian)
  3959. SUBLANG_SPANISH_MEXICAN = $02; // Spanish (Mexican)
  3960. SUBLANG_SPANISH_MODERN = $03; // Spanish (Spain)
  3961. SUBLANG_SPANISH_GUATEMALA = $04; // Spanish (Guatemala)
  3962. SUBLANG_SPANISH_COSTA_RICA = $05; // Spanish (Costa Rica)
  3963. SUBLANG_SPANISH_PANAMA = $06; // Spanish (Panama)
  3964. SUBLANG_SPANISH_DOMINICAN_REPUBLIC = $07; // Spanish (Dominican Republic)
  3965. SUBLANG_SPANISH_VENEZUELA = $08; // Spanish (Venezuela)
  3966. SUBLANG_SPANISH_COLOMBIA = $09; // Spanish (Colombia)
  3967. SUBLANG_SPANISH_PERU = $0a; // Spanish (Peru)
  3968. SUBLANG_SPANISH_ARGENTINA = $0b; // Spanish (Argentina)
  3969. SUBLANG_SPANISH_ECUADOR = $0c; // Spanish (Ecuador)
  3970. SUBLANG_SPANISH_CHILE = $0d; // Spanish (Chile)
  3971. SUBLANG_SPANISH_URUGUAY = $0e; // Spanish (Uruguay)
  3972. SUBLANG_SPANISH_PARAGUAY = $0f; // Spanish (Paraguay)
  3973. SUBLANG_SPANISH_BOLIVIA = $10; // Spanish (Bolivia)
  3974. SUBLANG_SPANISH_EL_SALVADOR = $11; // Spanish (El Salvador)
  3975. SUBLANG_SPANISH_HONDURAS = $12; // Spanish (Honduras)
  3976. SUBLANG_SPANISH_NICARAGUA = $13; // Spanish (Nicaragua)
  3977. SUBLANG_SPANISH_PUERTO_RICO = $14; // Spanish (Puerto Rico)
  3978. SUBLANG_SWEDISH = $01; // Swedish
  3979. SUBLANG_SWEDISH_FINLAND = $02; // Swedish (Finland)
  3980. SUBLANG_URDU_PAKISTAN = $01; // Urdu (Pakistan)
  3981. SUBLANG_URDU_INDIA = $02; // Urdu (India)
  3982. SUBLANG_UZBEK_LATIN = $01; // Uzbek (Latin)
  3983. SUBLANG_UZBEK_CYRILLIC = $02; // Uzbek (Cyrillic)
  3984. //
  3985. // Sorting IDs.
  3986. //
  3987. SORT_DEFAULT = $0; // sorting default
  3988. SORT_JAPANESE_XJIS = $0; // Japanese XJIS order
  3989. SORT_JAPANESE_UNICODE = $1; // Japanese Unicode order
  3990. SORT_CHINESE_BIG5 = $0; // Chinese BIG5 order
  3991. SORT_CHINESE_PRCP = $0; // PRC Chinese Phonetic order
  3992. SORT_CHINESE_UNICODE = $1; // Chinese Unicode order
  3993. SORT_CHINESE_PRC = $2; // PRC Chinese Stroke Count order
  3994. SORT_CHINESE_BOPOMOFO = $3; // Traditional Chinese Bopomofo order
  3995. SORT_KOREAN_KSC = $0; // Korean KSC order
  3996. SORT_KOREAN_UNICODE = $1; // Korean Unicode order
  3997. SORT_GERMAN_PHONE_BOOK = $1; // German Phone Book order
  3998. SORT_HUNGARIAN_DEFAULT = $0; // Hungarian Default order
  3999. SORT_HUNGARIAN_TECHNICAL = $1; // Hungarian Technical order
  4000. SORT_GEORGIAN_TRADITIONAL = $0; // Georgian Traditional order
  4001. SORT_GEORGIAN_MODERN = $1; // Georgian Modern order
  4002. { SYSTEM_INFO structure }
  4003. PROCESSOR_INTEL_386 = 386;
  4004. PROCESSOR_INTEL_486 = 486;
  4005. PROCESSOR_INTEL_PENTIUM = 586;
  4006. PROCESSOR_MIPS_R4000 = 4000; // incl R4101 & R3910 for Windows CE
  4007. PROCESSOR_ALPHA_21064 = 21064;
  4008. PROCESSOR_INTEL_PENTIUMII = 686;
  4009. PROCESSOR_MIPS_R5000 = 5000; // incl R5432 for Windows CE
  4010. PROCESSOR_PPC_403 = 403;
  4011. PROCESSOR_PPC_601 = 601;
  4012. PROCESSOR_PPC_603 = 603;
  4013. PROCESSOR_PPC_604 = 604;
  4014. PROCESSOR_PPC_620 = 620;
  4015. PROCESSOR_HITACHI_SH3 = 10003; // Windows CE
  4016. PROCESSOR_HITACHI_SH3E = 10004; // Windows CE
  4017. PROCESSOR_HITACHI_SH4 = 10005; // Windows CE
  4018. PROCESSOR_MOTOROLA_821 = 821; // Windows CE
  4019. PROCESSOR_SHx_SH3 = 103; // Windows CE
  4020. PROCESSOR_SHx_SH3DSP = 105; // Windows CE
  4021. PROCESSOR_SHx_SH4 = 104; // Windows CE
  4022. PROCESSOR_STRONGARM = 2577; // Windows CE - 0xA11
  4023. PROCESSOR_ARM720 = 1824; // Windows CE - 0x720
  4024. PROCESSOR_ARM820 = 2080; // Windows CE - 0x820
  4025. PROCESSOR_ARM920 = 2336; // Windows CE - 0x920
  4026. PROCESSOR_ARM_7TDMI = 70001; // Windows CE
  4027. PROCESSOR_ARCHITECTURE_INTEL = 0;
  4028. PROCESSOR_ARCHITECTURE_MIPS = 1;
  4029. PROCESSOR_ARCHITECTURE_ALPHA = 2;
  4030. PROCESSOR_ARCHITECTURE_PPC = 3;
  4031. PROCESSOR_ARCHITECTURE_SHX = 4;
  4032. PROCESSOR_ARCHITECTURE_ARM = 5;
  4033. PROCESSOR_ARCHITECTURE_IA64 = 6;
  4034. PROCESSOR_ARCHITECTURE_ALPHA64 = 7;
  4035. PROCESSOR_ARCHITECTURE_UNKNOWN = $FFFF;
  4036. PROCESSOR_X86_32BIT_CORE = 1;
  4037. PROCESSOR_MIPS16_CORE = 1;
  4038. PROCESSOR_MIPSII_CORE = 2;
  4039. PROCESSOR_MIPSIV_CORE = 3;
  4040. PROCESSOR_HITACHI_SH3_CORE = 1;
  4041. PROCESSOR_HITACHI_SH4_CORE = 2;
  4042. PROCESSOR_ARM_V4_CORE = 1;
  4043. PROCESSOR_ARM_V4I_CORE = 2;
  4044. PROCESSOR_ARM_V4T_CORE = 3;
  4045. PROCESSOR_FEATURE_NOFP = 0;
  4046. PROCESSOR_FEATURE_FP = 1;
  4047. PROCESSOR_FEATURE_DSP = PROCESSOR_FEATURE_FP;
  4048. PROCESSOR_QUERY_INSTRUCTION = $00000000;
  4049. {
  4050. #define PROCESSOR_INSTRUCTION_CODE(arch, core, feature) \
  4051. ((arch) << 24 | (core) << 16 | (feature))
  4052. }
  4053. PROCESSOR_X86_32BIT_INSTRUCTION = (PROCESSOR_ARCHITECTURE_INTEL shl 24) or
  4054. (PROCESSOR_X86_32BIT_CORE shl 16) or
  4055. PROCESSOR_FEATURE_FP;
  4056. PROCESSOR_MIPS_MIPS16_INSTRUCTION = (PROCESSOR_ARCHITECTURE_MIPS shl 24) or
  4057. (PROCESSOR_MIPS16_CORE shl 16) or
  4058. PROCESSOR_FEATURE_NOFP;
  4059. PROCESSOR_MIPS_MIPSII_INSTRUCTION = (PROCESSOR_ARCHITECTURE_MIPS shl 24) or
  4060. (PROCESSOR_MIPSII_CORE shl 16) or
  4061. PROCESSOR_FEATURE_NOFP;
  4062. PROCESSOR_MIPS_MIPSIIFP_INSTRUCTION = (PROCESSOR_ARCHITECTURE_MIPS shl 24) or
  4063. (PROCESSOR_MIPSII_CORE shl 16) or
  4064. PROCESSOR_FEATURE_FP;
  4065. PROCESSOR_MIPS_MIPSIV_INSTRUCTION = (PROCESSOR_ARCHITECTURE_MIPS shl 24) or
  4066. (PROCESSOR_MIPSIV_CORE shl 16) or
  4067. PROCESSOR_FEATURE_NOFP;
  4068. PROCESSOR_MIPS_MIPSIVFP_INSTRUCTION = (PROCESSOR_ARCHITECTURE_MIPS shl 24) or
  4069. (PROCESSOR_MIPSIV_CORE shl 16) or
  4070. PROCESSOR_FEATURE_FP;
  4071. PROCESSOR_HITACHI_SH3_INSTRUCTION = (PROCESSOR_ARCHITECTURE_SHX shl 24) or
  4072. (PROCESSOR_HITACHI_SH3_CORE shl 16) or
  4073. PROCESSOR_FEATURE_NOFP;
  4074. PROCESSOR_HITACHI_SH3DSP_INSTRUCTION = (PROCESSOR_ARCHITECTURE_SHX shl 24) or
  4075. (PROCESSOR_HITACHI_SH3_CORE shl 16) or
  4076. PROCESSOR_FEATURE_DSP;
  4077. PROCESSOR_HITACHI_SH4_INSTRUCTION = (PROCESSOR_ARCHITECTURE_SHX shl 24) or
  4078. (PROCESSOR_HITACHI_SH4_CORE shl 16) or
  4079. PROCESSOR_FEATURE_FP;
  4080. PROCESSOR_ARM_V4_INSTRUCTION = (PROCESSOR_ARCHITECTURE_ARM shl 24) or
  4081. (PROCESSOR_ARM_V4_CORE shl 16) or
  4082. PROCESSOR_FEATURE_NOFP;
  4083. PROCESSOR_ARM_V4FP_INSTRUCTION = (PROCESSOR_ARCHITECTURE_ARM shl 24) or
  4084. (PROCESSOR_ARM_V4_CORE shl 16) or
  4085. PROCESSOR_FEATURE_FP;
  4086. PROCESSOR_ARM_V4I_INSTRUCTION = (PROCESSOR_ARCHITECTURE_ARM shl 24) or
  4087. (PROCESSOR_ARM_V4I_CORE shl 16) or
  4088. PROCESSOR_FEATURE_NOFP;
  4089. PROCESSOR_ARM_V4IFP_INSTRUCTION = (PROCESSOR_ARCHITECTURE_ARM shl 24) or
  4090. (PROCESSOR_ARM_V4I_CORE shl 16) or
  4091. PROCESSOR_FEATURE_FP;
  4092. PROCESSOR_ARM_V4T_INSTRUCTION = (PROCESSOR_ARCHITECTURE_ARM shl 24) or
  4093. (PROCESSOR_ARM_V4T_CORE shl 16) or
  4094. PROCESSOR_FEATURE_NOFP;
  4095. PROCESSOR_ARM_V4TFP_INSTRUCTION = (PROCESSOR_ARCHITECTURE_ARM shl 24) or
  4096. (PROCESSOR_ARM_V4T_CORE shl 16) or
  4097. PROCESSOR_FEATURE_FP;
  4098. PF_FLOATING_POINT_PRECISION_ERRATA = 0;
  4099. PF_FLOATING_POINT_EMULATED = 1;
  4100. PF_COMPARE_EXCHANGE_DOUBLE = 2;
  4101. PF_MMX_INSTRUCTIONS_AVAILABLE = 3;
  4102. PF_PPC_MOVEMEM_64BIT_OK = 4;
  4103. PF_ALPHA_BYTE_INSTRUCTIONS = 5;
  4104. PF_XMMI_INSTRUCTIONS_AVAILABLE = 6;
  4105. PF_3DNOW_INSTRUCTIONS_AVAILABLE = 7;
  4106. PF_RDTSC_INSTRUCTION_AVAILABLE = 8;
  4107. PF_PAE_ENABLED = 9;
  4108. PF_XMMI64_INSTRUCTIONS_AVAILABLE = 10;
  4109. { Table from MSDN. Instruction set compatibility.
  4110. OS instructions set Supported instruction sets
  4111. --------------------------------------------------------------------------------
  4112. PROCESSOR_X86_32BIT_INSTRUCTION PROCESSOR_X86_32BIT_INSTRUCTION
  4113. PROCESSOR_MIPS_MIPS16_INSTRUCTION PROCESSOR_MIPS_MIPS16_INSTRUCTION
  4114. PROCESSOR_MIPS_MIPSII_INSTRUCTION
  4115. PROCESSOR_MIPS_MIPSII_INSTRUCTION PROCESSOR_MIPS_MIPSII_INSTRUCTION
  4116. PROCESSOR_MIPS_MIPSIIFP_INSTRUCTION PROCESSOR_MIPS_MIPSIIFP_INSTRUCTION
  4117. PROCESSOR_MIPS_MIPSIV_INSTRUCTION PROCESSOR_MIPS_MIPSIV_INSTRUCTION
  4118. PROCESSOR_MIPS_MIPSIVFP_INSTRUCTION PROCESSOR_MIPS_MIPSIVFP_INSTRUCTION
  4119. PROCESSOR_HITACHI_SH3_INSTRUCTION PROCESSOR_HITACHI_SH3_INSTRUCTION
  4120. PROCESSOR_HITACHI_SH3DSP_INSTRUCTION PROCESSOR_HITACHI_SH3DSP_INSTRUCTION
  4121. PROCESSOR_HITACHI_SH3_INSTRUCTION
  4122. PROCESSOR_HITACHI_SH4_INSTRUCTION PROCESSOR_HITACHI_SH4_INSTRUCTION
  4123. PROCESSOR_ARM_V4_INSTRUCTION PROCESSOR_ARM_V4_INSTRUCTION
  4124. PROCESSOR_ARM_V4FP_INSTRUCTION PROCESSOR_ARM_V4FP_INSTRUCTION
  4125. PROCESSOR_ARM_V4_INSTRUCTION
  4126. PROCESSOR_ARM_V4I_INSTRUCTION PROCESSOR_ARM_V4I_INSTRUCTION
  4127. PROCESSOR_ARM_V4T_INSTRUCTION
  4128. PROCESSOR_ARM_V4IFP_INSTRUCTION PROCESSOR_ARM_V4IFP_INSTRUCTION
  4129. PROCESSOR_ARM_V4TFP_INSTRUCTION
  4130. PROCESSOR_ARM_V4I_INSTRUCTION
  4131. PROCESSOR_ARM_V4T_INSTRUCTION
  4132. PROCESSOR_ARM_V4T_INSTRUCTION PROCESSOR_ ARM_V4I_INSTRUCTION
  4133. PROCESSOR_ARM_V4T_INSTRUCTION
  4134. PROCESSOR_ARM_V4TFP_INSTRUCTION PROCESSOR_ARM_V4TFP_INSTRUCTION
  4135. PROCESSOR_ARM_V4IFP_INSTRUCTION
  4136. PROCESSOR_ARM_V4I_INSTRUCTION
  4137. PROCESSOR_ARM_V4T_INSTRUCTION
  4138. }
  4139. { FSCTL_SET_COMPRESSION }
  4140. COMPRESSION_FORMAT_NONE = 0;
  4141. COMPRESSION_FORMAT_DEFAULT = 1;
  4142. COMPRESSION_FORMAT_LZNT1 = 2;
  4143. { TAPE_GET_DRIVE_PARAMETERS structure }
  4144. TAPE_DRIVE_COMPRESSION = 131072;
  4145. TAPE_DRIVE_ECC = 65536;
  4146. TAPE_DRIVE_ERASE_BOP_ONLY = 64;
  4147. TAPE_DRIVE_ERASE_LONG = 32;
  4148. TAPE_DRIVE_ERASE_IMMEDIATE = 128;
  4149. TAPE_DRIVE_ERASE_SHORT = 16;
  4150. TAPE_DRIVE_FIXED = 1;
  4151. TAPE_DRIVE_FIXED_BLOCK = 1024;
  4152. TAPE_DRIVE_INITIATOR = 4;
  4153. TAPE_DRIVE_PADDING = 262144;
  4154. TAPE_DRIVE_GET_ABSOLUTE_BLK = 1048576;
  4155. TAPE_DRIVE_GET_LOGICAL_BLK = 2097152;
  4156. TAPE_DRIVE_REPORT_SMKS = 524288;
  4157. TAPE_DRIVE_SELECT = 2;
  4158. TAPE_DRIVE_SET_EOT_WZ_SIZE = 4194304;
  4159. TAPE_DRIVE_TAPE_CAPACITY = 256;
  4160. TAPE_DRIVE_TAPE_REMAINING = 512;
  4161. TAPE_DRIVE_VARIABLE_BLOCK = 2048;
  4162. TAPE_DRIVE_WRITE_PROTECT = 4096;
  4163. TAPE_DRIVE_ABS_BLK_IMMED = -(2147475456);
  4164. TAPE_DRIVE_ABSOLUTE_BLK = -(2147479552);
  4165. TAPE_DRIVE_END_OF_DATA = -(2147418112);
  4166. TAPE_DRIVE_FILEMARKS = -(2147221504);
  4167. TAPE_DRIVE_LOAD_UNLOAD = -(2147483647);
  4168. TAPE_DRIVE_LOAD_UNLD_IMMED = -(2147483616);
  4169. TAPE_DRIVE_LOCK_UNLOCK = -(2147483644);
  4170. TAPE_DRIVE_LOCK_UNLK_IMMED = -(2147483520);
  4171. TAPE_DRIVE_LOG_BLK_IMMED = -(2147450880);
  4172. TAPE_DRIVE_LOGICAL_BLK = -(2147467264);
  4173. TAPE_DRIVE_RELATIVE_BLKS = -(2147352576);
  4174. TAPE_DRIVE_REVERSE_POSITION = -(2143289344);
  4175. TAPE_DRIVE_REWIND_IMMEDIATE = -(2147483640);
  4176. TAPE_DRIVE_SEQUENTIAL_FMKS = -(2146959360);
  4177. TAPE_DRIVE_SEQUENTIAL_SMKS = -(2145386496);
  4178. TAPE_DRIVE_SET_BLOCK_SIZE = -(2147483632);
  4179. TAPE_DRIVE_SET_COMPRESSION = -(2147483136);
  4180. TAPE_DRIVE_SET_ECC = -(2147483392);
  4181. TAPE_DRIVE_SET_PADDING = -(2147482624);
  4182. TAPE_DRIVE_SET_REPORT_SMKS = -(2147481600);
  4183. TAPE_DRIVE_SETMARKS = -(2146435072);
  4184. TAPE_DRIVE_SPACE_IMMEDIATE = -(2139095040);
  4185. TAPE_DRIVE_TENSION = -(2147483646);
  4186. TAPE_DRIVE_TENSION_IMMED = -(2147483584);
  4187. TAPE_DRIVE_WRITE_FILEMARKS = -(2113929216);
  4188. TAPE_DRIVE_WRITE_LONG_FMKS = -(2013265920);
  4189. TAPE_DRIVE_WRITE_MARK_IMMED = -(1879048192);
  4190. TAPE_DRIVE_WRITE_SETMARKS = -(2130706432);
  4191. TAPE_DRIVE_WRITE_SHORT_FMKS = -(2080374784);
  4192. { ACCESS_MASK, ACCESS TYPES }
  4193. // DELETE = $00010000; //+winnt // The name conflicts with Delete procedure
  4194. READ_CONTROL = $00020000; //+winnt
  4195. WRITE_DAC = $00040000; //winnt
  4196. WRITE_OWNER = $00080000; //winnt
  4197. SYNCHRONIZE = $00100000; //winnt
  4198. //
  4199. // MaximumAllowed access type
  4200. //
  4201. MAXIMUM_ALLOWED = $2000000; //winnt
  4202. GENERIC_READ = $80000000; //winnt
  4203. GENERIC_WRITE = $40000000; //winnt
  4204. GENERIC_EXECUTE = $20000000; //+winnt
  4205. GENERIC_ALL = $10000000; //winnt
  4206. { Standard rights }
  4207. STANDARD_RIGHTS_REQUIRED = $f0000; //winnt
  4208. STANDARD_RIGHTS_WRITE = READ_CONTROL; //~winnt
  4209. STANDARD_RIGHTS_READ = READ_CONTROL; //~winnt
  4210. STANDARD_RIGHTS_EXECUTE = READ_CONTROL; //~winnt
  4211. STANDARD_RIGHTS_ALL = $1f0000;
  4212. SPECIFIC_RIGHTS_ALL = $ffff;
  4213. //
  4214. // AccessSystemAcl access type
  4215. //
  4216. ACCESS_SYSTEM_SECURITY = $1000000;
  4217. { SID }
  4218. /////////////////////////////////////////////////////////////////////////////
  4219. // //
  4220. // Universal well-known SIDs //
  4221. // //
  4222. // Null SID S-1-0-0 //
  4223. // World S-1-1-0 //
  4224. // Local S-1-2-0 //
  4225. // Creator Owner ID S-1-3-0 //
  4226. // Creator Group ID S-1-3-1 //
  4227. // Creator Owner Server ID S-1-3-2 //
  4228. // Creator Group Server ID S-1-3-3 //
  4229. // //
  4230. // (Non-unique IDs) S-1-4 //
  4231. // //
  4232. /////////////////////////////////////////////////////////////////////////////
  4233. SECURITY_NULL_SID_AUTHORITY : SID_IDENTIFIER_AUTHORITY_REC = ( 0,0,0,0,0,0); //+winnt
  4234. SECURITY_WORLD_SID_AUTHORITY : SID_IDENTIFIER_AUTHORITY_REC = (0,0,0,0,0,1); //+winnt
  4235. SECURITY_LOCAL_SID_AUTHORITY : SID_IDENTIFIER_AUTHORITY_REC = (0,0,0,0,0,2); //+winnt
  4236. SECURITY_CREATOR_SID_AUTHORITY : SID_IDENTIFIER_AUTHORITY_REC = (0,0,0,0,0,3);//+winnt
  4237. SECURITY_NON_UNIQUE_AUTHORITY : SID_IDENTIFIER_AUTHORITY_REC = (0,0,0,0,0,4); //+winnt
  4238. SECURITY_NULL_RID = 0; //winnt
  4239. SECURITY_WORLD_RID = 0; //winnt
  4240. SECURITY_LOCAL_RID = 0; //winnt
  4241. SECURITY_CREATOR_OWNER_RID = 0; //winnt
  4242. SECURITY_CREATOR_GROUP_RID = $1; //winnt
  4243. SECURITY_CREATOR_OWNER_SERVER_RID = $2; //+winnt
  4244. SECURITY_CREATOR_GROUP_SERVER_RID = $3; //+winnt
  4245. /////////////////////////////////////////////////////////////////////////////
  4246. // //
  4247. // NT well-known SIDs //
  4248. // //
  4249. // NT Authority S-1-5 //
  4250. // Dialup S-1-5-1 //
  4251. // //
  4252. // Network S-1-5-2 //
  4253. // Batch S-1-5-3 //
  4254. // Interactive S-1-5-4 //
  4255. // Service S-1-5-6 //
  4256. // AnonymousLogon S-1-5-7 (aka null logon session) //
  4257. // Proxy S-1-5-8 //
  4258. // ServerLogon S-1-5-9 (aka domain controller account) //
  4259. // Self S-1-5-10 (self RID) //
  4260. // Authenticated User S-1-5-11 (Authenticated user somewhere) //
  4261. // Restricted Code S-1-5-12 (Running restricted code) //
  4262. // //
  4263. // (Logon IDs) S-1-5-5-X-Y //
  4264. // //
  4265. // (NT non-unique IDs) S-1-5-0x15-... //
  4266. // //
  4267. // (Built-in domain) s-1-5-0x20 //
  4268. // //
  4269. /////////////////////////////////////////////////////////////////////////////
  4270. SECURITY_NT_AUTHORITY : SID_IDENTIFIER_AUTHORITY_REC = (0,0,0,0,0,5); //+winnt
  4271. SECURITY_DIALUP_RID = $1; //winnt
  4272. SECURITY_NETWORK_RID = $2; //winnt
  4273. SECURITY_BATCH_RID = $3; //winnt
  4274. SECURITY_INTERACTIVE_RID = $4; //winnt
  4275. SECURITY_LOGON_IDS_RID = $5; //winnt
  4276. SECURITY_LOGON_IDS_RID_COUNT = $3; //winnt
  4277. SECURITY_SERVICE_RID = $6; //winnt
  4278. SECURITY_ANONYMOUS_LOGON_RID = $00000007; //+winnt
  4279. SECURITY_PROXY_RID = $00000008; //+winnt
  4280. SECURITY_ENTERPRISE_CONTROLLERS_RID = $00000009; //+winnt
  4281. SECURITY_SERVER_LOGON_RID = SECURITY_ENTERPRISE_CONTROLLERS_RID; //+winnt
  4282. SECURITY_PRINCIPAL_SELF_RID = $0000000A; //+winnt
  4283. SECURITY_AUTHENTICATED_USER_RID = $0000000B; //+winnt
  4284. SECURITY_RESTRICTED_CODE_RID = $0000000C; //+winnt
  4285. SECURITY_LOCAL_SYSTEM_RID = $12; //winnt
  4286. SECURITY_NT_NON_UNIQUE = $00000015; //+winnt
  4287. SECURITY_BUILTIN_DOMAIN_RID = $20; //winnt
  4288. // Well-known users ...
  4289. DOMAIN_USER_RID_ADMIN = $1f4; //winnt
  4290. DOMAIN_USER_RID_GUEST = $1f5; //winnt
  4291. DOMAIN_USER_RID_KRBTGT = $000001F6; //+winnt
  4292. // well-known groups ...
  4293. DOMAIN_GROUP_RID_ADMINS = $200; //winnt
  4294. DOMAIN_GROUP_RID_USERS = $201; //winnt
  4295. DOMAIN_GROUP_RID_GUESTS = $00000202; //+winnt
  4296. DOMAIN_GROUP_RID_COMPUTERS = $00000203; //+winnt
  4297. DOMAIN_GROUP_RID_CONTROLLERS = $00000204; //+winnt
  4298. DOMAIN_GROUP_RID_CERT_ADMINS = $00000205; //+winnt
  4299. DOMAIN_GROUP_RID_SCHEMA_ADMINS = $00000206; //+winnt
  4300. DOMAIN_GROUP_RID_ENTERPRISE_ADMINS = $00000207; //+winnt
  4301. // well-known aliases ...
  4302. DOMAIN_ALIAS_RID_ADMINS = $220; //winnt
  4303. DOMAIN_ALIAS_RID_USERS = $221; //winnt
  4304. DOMAIN_ALIAS_RID_GUESTS = $222; //winnt
  4305. DOMAIN_ALIAS_RID_POWER_USERS = $223; //winnt
  4306. DOMAIN_ALIAS_RID_ACCOUNT_OPS = $224; //winnt
  4307. DOMAIN_ALIAS_RID_SYSTEM_OPS = $225; //winnt
  4308. DOMAIN_ALIAS_RID_PRINT_OPS = $226; //winnt
  4309. DOMAIN_ALIAS_RID_BACKUP_OPS = $227; //winnt
  4310. DOMAIN_ALIAS_RID_REPLICATOR = $228; //winnt
  4311. //
  4312. // Allocate the System Luid. The first 1000 LUIDs are reserved.
  4313. // Use #999 here (0x3E7 = 999)
  4314. //
  4315. SYSTEM_LUID : LUID = ( LowPart: $3E7; HighPart: $0 );
  4316. ANONYMOUS_LOGON_LUID : LUID = (LowPart: $3e6; HighPart: $0 );
  4317. //
  4318. // Group attributes
  4319. //
  4320. SE_GROUP_MANDATORY = $1; //winnt
  4321. SE_GROUP_ENABLED_BY_DEFAULT = $2; //winnt
  4322. SE_GROUP_ENABLED = $4; //winnt
  4323. SE_GROUP_OWNER = $8; //winnt
  4324. SE_GROUP_USE_FOR_DENY_ONLY = $00000010; //+winnt
  4325. SE_GROUP_LOGON_ID = $c0000000; //winnt
  4326. { ACL Defines }
  4327. ACL_REVISION = 2;
  4328. ACL_REVISION_DS = 4; //+winnt
  4329. // This is the history of ACL revisions. Add a new one whenever
  4330. // ACL_REVISION is updated
  4331. ACL_REVISION1=1; //+winnt
  4332. ACL_REVISION2=2; //+winnt
  4333. ACL_REVISION3=3; //+winnt
  4334. ACL_REVISION4=4; //+winnt
  4335. MIN_ACL_REVISION=ACL_REVISION2; //+winnt
  4336. MAX_ACL_REVISION=ACL_REVISION4; //+winnt
  4337. { ACE_HEADER structure }
  4338. ACCESS_MIN_MS_ACE_TYPE = $0; //+winnt
  4339. ACCESS_ALLOWED_ACE_TYPE = $0;
  4340. ACCESS_DENIED_ACE_TYPE = $1;
  4341. SYSTEM_AUDIT_ACE_TYPE = $2;
  4342. SYSTEM_ALARM_ACE_TYPE = $3;
  4343. ACCESS_MAX_MS_V2_ACE_TYPE = $3; //+winnt
  4344. ACCESS_ALLOWED_COMPOUND_ACE_TYPE = $4; //+winnt
  4345. ACCESS_MAX_MS_V3_ACE_TYPE = $4;
  4346. ACCESS_MIN_MS_OBJECT_ACE_TYPE = $5; //+winnt
  4347. ACCESS_ALLOWED_OBJECT_ACE_TYPE = $5; //+winnt
  4348. ACCESS_DENIED_OBJECT_ACE_TYPE = $6; //+winnt
  4349. SYSTEM_AUDIT_OBJECT_ACE_TYPE = $7; //+winnt
  4350. SYSTEM_ALARM_OBJECT_ACE_TYPE = $8; //+winnt
  4351. ACCESS_MAX_MS_OBJECT_ACE_TYPE = $8; //+winnt
  4352. ACCESS_MAX_MS_V4_ACE_TYPE = $8; //+winnt
  4353. ACCESS_MAX_MS_ACE_TYPE = $8; //+winnt
  4354. { ACE flags in the ACE_HEADER structure }
  4355. //
  4356. // The following are the inherit flags that go into the AceFlags field
  4357. // of an Ace header.
  4358. //
  4359. OBJECT_INHERIT_ACE = $1; //winnt
  4360. CONTAINER_INHERIT_ACE = $2; //winnt
  4361. NO_PROPAGATE_INHERIT_ACE = $4; //winnt
  4362. INHERIT_ONLY_ACE = $8; //winnt
  4363. INHERITED_ACE = $10; //+winnt
  4364. VALID_INHERIT_FLAGS = $1F; //+winnt
  4365. // The following are the currently defined ACE flags that go into the
  4366. // AceFlags field of an ACE header. Each ACE type has its own set of
  4367. // AceFlags.
  4368. //
  4369. // SUCCESSFUL_ACCESS_ACE_FLAG - used only with system audit and alarm ACE
  4370. // types to indicate that a message is generated for successful accesses.
  4371. //
  4372. // FAILED_ACCESS_ACE_FLAG - used only with system audit and alarm ACE types
  4373. // to indicate that a message is generated for failed accesses.
  4374. //
  4375. //
  4376. // SYSTEM_AUDIT and SYSTEM_ALARM AceFlags
  4377. //
  4378. // These control the signaling of audit and alarms for success or failure.
  4379. //
  4380. SUCCESSFUL_ACCESS_ACE_FLAG = $40; //winnt
  4381. FAILED_ACCESS_ACE_FLAG = $80; //winnt
  4382. { SECURITY_DESCRIPTOR_CONTROL }
  4383. {SECURITY_DESCRIPTOR_REVISION = 1;already defined above }
  4384. SECURITY_DESCRIPTOR_MIN_LENGTH = 20;
  4385. SE_OWNER_DEFAULTED = 1;
  4386. SE_GROUP_DEFAULTED = 2;
  4387. SE_DACL_PRESENT = 4;
  4388. SE_DACL_DEFAULTED = 8;
  4389. SE_SACL_PRESENT = 16;
  4390. SE_SACL_DEFAULTED = 32;
  4391. SE_SELF_RELATIVE = 32768;
  4392. { PRIVILEGE_SET }
  4393. SE_PRIVILEGE_ENABLED_BY_DEFAULT = $1;
  4394. SE_PRIVILEGE_ENABLED = $2;
  4395. SE_PRIVILEGE_USED_FOR_ACCESS = $80000000;
  4396. PRIVILEGE_SET_ALL_NECESSARY = $1;
  4397. { OPENFILENAME structure }
  4398. OFN_ALLOWMULTISELECT = $200;
  4399. OFN_CREATEPROMPT = $2000;
  4400. OFN_ENABLEHOOK = $20;
  4401. OFN_ENABLETEMPLATE = $40;
  4402. OFN_ENABLETEMPLATEHANDLE = $80;
  4403. OFN_EXPLORER = $80000;
  4404. OFN_EXTENSIONDIFFERENT = $400;
  4405. OFN_FILEMUSTEXIST = $1000;
  4406. OFN_HIDEREADONLY = $4;
  4407. OFN_LONGNAMES = $200000;
  4408. OFN_NOCHANGEDIR = $8;
  4409. OFN_NODEREFERENCELINKS = $100000;
  4410. OFN_NOLONGNAMES = $40000;
  4411. OFN_NONETWORKBUTTON = $20000;
  4412. OFN_NOREADONLYRETURN = $8000;
  4413. OFN_NOTESTFILECREATE = $10000;
  4414. OFN_NOVALIDATE = $100;
  4415. OFN_OVERWRITEPROMPT = $2;
  4416. OFN_PATHMUSTEXIST = $800;
  4417. OFN_READONLY = $1;
  4418. OFN_SHAREAWARE = $4000;
  4419. OFN_SHOWHELP = $10;
  4420. OFN_PROJECT = $00400000;
  4421. OFN_PROPERTY = $00800000;
  4422. OFN_SHOW_ALL = $01000000;
  4423. { SHAREVISTRING message }
  4424. OFN_SHAREFALLTHROUGH = $2;
  4425. OFN_SHARENOWARN = $1;
  4426. OFN_SHAREWARN = 0;
  4427. { Open/Save notifications }
  4428. CDN_INITDONE = $fffffda7;
  4429. CDN_SELCHANGE = $fffffda6;
  4430. CDN_FOLDERCHANGE = $fffffda5;
  4431. CDN_SHAREVIOLATION = $fffffda4;
  4432. CDN_HELP = $fffffda3;
  4433. CDN_FILEOK = $fffffda2;
  4434. CDN_TYPECHANGE = $fffffda1;
  4435. { Open/Save messages }
  4436. CDM_GETFILEPATH = $465;
  4437. CDM_GETFOLDERIDLIST = $467;
  4438. CDM_GETFOLDERPATH = $466;
  4439. CDM_GETSPEC = $464;
  4440. CDM_HIDECONTROL = $469;
  4441. CDM_SETCONTROLTEXT = $468;
  4442. CDM_SETDEFEXT = $46a;
  4443. { CHOOSECOLOR structure }
  4444. CC_ENABLEHOOK = $10;
  4445. CC_ENABLETEMPLATE = $20;
  4446. CC_ENABLETEMPLATEHANDLE = $40;
  4447. CC_FULLOPEN = $2;
  4448. CC_PREVENTFULLOPEN = $4;
  4449. CC_RGBINIT = $1;
  4450. CC_SHOWHELP = $8;
  4451. CC_SOLIDCOLOR = $80;
  4452. { FINDREPLACE structure }
  4453. FR_DIALOGTERM = $40;
  4454. FR_DOWN = $1;
  4455. FR_ENABLEHOOK = $100;
  4456. FR_ENABLETEMPLATE = $200;
  4457. FR_ENABLETEMPLATEHANDLE = $2000;
  4458. FR_FINDNEXT = $8;
  4459. FR_HIDEUPDOWN = $4000;
  4460. FR_HIDEMATCHCASE = $8000;
  4461. FR_HIDEWHOLEWORD = $10000;
  4462. FR_MATCHCASE = $4;
  4463. FR_NOMATCHCASE = $800;
  4464. FR_NOUPDOWN = $400;
  4465. FR_NOWHOLEWORD = $1000;
  4466. FR_REPLACE = $10;
  4467. FR_REPLACEALL = $20;
  4468. FR_SHOWHELP = $80;
  4469. FR_WHOLEWORD = $2;
  4470. { CHOOSEFONT structure }
  4471. CF_APPLY = $200;
  4472. CF_ANSIONLY = $400;
  4473. CF_BOTH = $3;
  4474. CF_TTONLY = $40000;
  4475. CF_EFFECTS = $100;
  4476. CF_ENABLEHOOK = $8;
  4477. CF_ENABLETEMPLATE = $10;
  4478. CF_ENABLETEMPLATEHANDLE = $20;
  4479. CF_FIXEDPITCHONLY = $4000;
  4480. CF_FORCEFONTEXIST = $10000;
  4481. CF_INITTOLOGFONTSTRUCT = $40;
  4482. CF_LIMITSIZE = $2000;
  4483. CF_NOOEMFONTS = $800;
  4484. CF_NOFACESEL = $80000;
  4485. CF_NOSCRIPTSEL = $800000;
  4486. CF_NOSTYLESEL = $100000;
  4487. CF_NOSIZESEL = $200000;
  4488. CF_NOSIMULATIONS = $1000;
  4489. CF_NOVECTORFONTS = $800;
  4490. CF_NOVERTFONTS = $1000000;
  4491. CF_PRINTERFONTS = $2;
  4492. CF_SCALABLEONLY = $20000;
  4493. CF_SCREENFONTS = $1;
  4494. CF_SCRIPTSONLY = $400;
  4495. CF_SELECTSCRIPT = $400000;
  4496. CF_SHOWHELP = $4;
  4497. CF_USESTYLE = $80;
  4498. CF_WYSIWYG = $8000;
  4499. BOLD_FONTTYPE = $100;
  4500. ITALIC_FONTTYPE = $200;
  4501. PRINTER_FONTTYPE = $4000;
  4502. REGULAR_FONTTYPE = $400;
  4503. SCREEN_FONTTYPE = $2000;
  4504. SIMULATED_FONTTYPE = $8000;
  4505. { Common dialog messages }
  4506. COLOROKSTRINGW = 'commdlg_ColorOK';
  4507. FILEOKSTRINGW = 'commdlg_FileNameOK';
  4508. FINDMSGSTRINGW = 'commdlg_FindReplace';
  4509. HELPMSGSTRINGW = 'commdlg_help';
  4510. LBSELCHSTRINGW = 'commdlg_LBSelChangedNotify';
  4511. SETRGBSTRINGW = 'commdlg_SetRGBColor';
  4512. SHAREVISTRINGW = 'commdlg_ShareViolation';
  4513. COLOROKSTRINGA = 'commdlg_ColorOK';
  4514. FILEOKSTRINGA = 'commdlg_FileNameOK';
  4515. FINDMSGSTRINGA = 'commdlg_FindReplace';
  4516. HELPMSGSTRINGA = 'commdlg_help';
  4517. LBSELCHSTRINGA = 'commdlg_LBSelChangedNotify';
  4518. SETRGBSTRINGA = 'commdlg_SetRGBColor';
  4519. SHAREVISTRINGA = 'commdlg_ShareViolation';
  4520. {$ifdef UNICODE}
  4521. const
  4522. COLOROKSTRING = COLOROKSTRINGW;
  4523. FILEOKSTRING = FILEOKSTRINGW;
  4524. FINDMSGSTRING = FINDMSGSTRINGW;
  4525. HELPMSGSTRING = HELPMSGSTRINGW;
  4526. LBSELCHSTRING = LBSELCHSTRINGW;
  4527. SETRGBSTRING = SETRGBSTRINGW;
  4528. SHAREVISTRING = SHAREVISTRINGW;
  4529. {$else}
  4530. const
  4531. COLOROKSTRING = COLOROKSTRINGA;
  4532. FILEOKSTRING = FILEOKSTRINGA;
  4533. FINDMSGSTRING = FINDMSGSTRINGA;
  4534. HELPMSGSTRING = HELPMSGSTRINGA;
  4535. LBSELCHSTRING = LBSELCHSTRINGA;
  4536. SETRGBSTRING = SETRGBSTRINGA;
  4537. SHAREVISTRING = SHAREVISTRINGA;
  4538. {$endif}
  4539. { LBSELCHSTRING message }
  4540. const
  4541. CD_LBSELCHANGE = 0;
  4542. CD_LBSELADD = 2;
  4543. CD_LBSELSUB = 1;
  4544. CD_LBSELNOITEMS = -(1);
  4545. { DEVNAMES structure }
  4546. DN_DEFAULTPRN = 1;
  4547. { PRINTDLG structure }
  4548. PD_ALLPAGES = 0;
  4549. PD_COLLATE = 16;
  4550. PD_DISABLEPRINTTOFILE = 524288;
  4551. PD_ENABLEPRINTHOOK = 4096;
  4552. PD_ENABLEPRINTTEMPLATE = 16384;
  4553. PD_ENABLEPRINTTEMPLATEHANDLE = 65536;
  4554. PD_ENABLESETUPHOOK = 8192;
  4555. PD_ENABLESETUPTEMPLATE = 32768;
  4556. PD_ENABLESETUPTEMPLATEHANDLE = 131072;
  4557. PD_HIDEPRINTTOFILE = 1048576;
  4558. PD_NOPAGENUMS = 8;
  4559. PD_NOSELECTION = 4;
  4560. PD_NOWARNING = 128;
  4561. PD_PAGENUMS = 2;
  4562. PD_PRINTSETUP = 64;
  4563. PD_PRINTTOFILE = 32;
  4564. PD_RETURNDC = 256;
  4565. PD_RETURNDEFAULT = 1024;
  4566. PD_RETURNIC = 512;
  4567. PD_SELECTION = 1;
  4568. PD_SHOWHELP = 2048;
  4569. PD_USEDEVMODECOPIES = 262144;
  4570. PD_USEDEVMODECOPIESANDCOLLATE = 262144;
  4571. { PAGESETUPDLG structure }
  4572. PSD_DEFAULTMINMARGINS = 0;
  4573. PSD_DISABLEMARGINS = 16;
  4574. PSD_DISABLEORIENTATION = 256;
  4575. PSD_DISABLEPAGEPAINTING = 524288;
  4576. PSD_DISABLEPAPER = 512;
  4577. PSD_DISABLEPRINTER = 32;
  4578. PSD_ENABLEPAGEPAINTHOOK = 262144;
  4579. PSD_ENABLEPAGESETUPHOOK = 8192;
  4580. PSD_ENABLEPAGESETUPTEMPLATE = 32768;
  4581. PSD_ENABLEPAGESETUPTEMPLATEHANDLE = 131072;
  4582. PSD_INHUNDREDTHSOFMILLIMETERS = 8;
  4583. PSD_INTHOUSANDTHSOFINCHES = 4;
  4584. PSD_INWININIINTLMEASURE = 0;
  4585. PSD_MARGINS = 2;
  4586. PSD_MINMARGINS = 1;
  4587. PSD_NOWARNING = 128;
  4588. PSD_RETURNDEFAULT = 1024;
  4589. PSD_SHOWHELP = 2048;
  4590. { WM_SHOWWINDOW message }
  4591. SW_OTHERUNZOOM = 4;
  4592. SW_OTHERZOOM = 2;
  4593. SW_PARENTCLOSING = 1;
  4594. SW_PARENTOPENING = 3;
  4595. { Virtual Key codes }
  4596. VK_LBUTTON = 1;
  4597. VK_RBUTTON = 2;
  4598. VK_CANCEL = 3;
  4599. VK_MBUTTON = 4;
  4600. VK_BACK = 8;
  4601. VK_TAB = 9;
  4602. VK_CLEAR = 12;
  4603. VK_RETURN = 13;
  4604. VK_SHIFT = 16;
  4605. VK_CONTROL = 17;
  4606. VK_MENU = 18;
  4607. VK_PAUSE = 19;
  4608. VK_CAPITAL = 20;
  4609. VK_ESCAPE = 27;
  4610. VK_SPACE = 32;
  4611. VK_PRIOR = 33;
  4612. VK_NEXT = 34;
  4613. VK_END = 35;
  4614. VK_HOME = 36;
  4615. VK_LEFT = 37;
  4616. VK_UP = 38;
  4617. VK_RIGHT = 39;
  4618. VK_DOWN = 40;
  4619. VK_SELECT = 41;
  4620. VK_PRINT = 42;
  4621. VK_EXECUTE = 43;
  4622. VK_SNAPSHOT = 44;
  4623. VK_INSERT = 45;
  4624. VK_DELETE = 46;
  4625. VK_HELP = 47;
  4626. VK_0 = 48;
  4627. VK_1 = 49;
  4628. VK_2 = 50;
  4629. VK_3 = 51;
  4630. VK_4 = 52;
  4631. VK_5 = 53;
  4632. VK_6 = 54;
  4633. VK_7 = 55;
  4634. VK_8 = 56;
  4635. VK_9 = 57;
  4636. VK_A = 65;
  4637. VK_B = 66;
  4638. VK_C = 67;
  4639. VK_D = 68;
  4640. VK_E = 69;
  4641. VK_F = 70;
  4642. VK_G = 71;
  4643. VK_H = 72;
  4644. VK_I = 73;
  4645. VK_J = 74;
  4646. VK_K = 75;
  4647. VK_L = 76;
  4648. VK_M = 77;
  4649. VK_N = 78;
  4650. VK_O = 79;
  4651. VK_P = 80;
  4652. VK_Q = 81;
  4653. VK_R = 82;
  4654. VK_S = 83;
  4655. VK_T = 84;
  4656. VK_U = 85;
  4657. VK_V = 86;
  4658. VK_W = 87;
  4659. VK_X = 88;
  4660. VK_Y = 89;
  4661. VK_Z = 90;
  4662. VK_LWIN = 91;
  4663. VK_RWIN = 92;
  4664. VK_APPS = 93;
  4665. VK_NUMPAD0 = 96;
  4666. VK_NUMPAD1 = 97;
  4667. VK_NUMPAD2 = 98;
  4668. VK_NUMPAD3 = 99;
  4669. VK_NUMPAD4 = 100;
  4670. VK_NUMPAD5 = 101;
  4671. VK_NUMPAD6 = 102;
  4672. VK_NUMPAD7 = 103;
  4673. VK_NUMPAD8 = 104;
  4674. VK_NUMPAD9 = 105;
  4675. VK_MULTIPLY = 106;
  4676. VK_ADD = 107;
  4677. VK_SEPARATOR = 108;
  4678. VK_SUBTRACT = 109;
  4679. VK_DECIMAL = 110;
  4680. VK_DIVIDE = 111;
  4681. VK_F1 = 112;
  4682. VK_F2 = 113;
  4683. VK_F3 = 114;
  4684. VK_F4 = 115;
  4685. VK_F5 = 116;
  4686. VK_F6 = 117;
  4687. VK_F7 = 118;
  4688. VK_F8 = 119;
  4689. VK_F9 = 120;
  4690. VK_F10 = 121;
  4691. VK_F11 = 122;
  4692. VK_F12 = 123;
  4693. VK_F13 = 124;
  4694. VK_F14 = 125;
  4695. VK_F15 = 126;
  4696. VK_F16 = 127;
  4697. VK_F17 = 128;
  4698. VK_F18 = 129;
  4699. VK_F19 = 130;
  4700. VK_F20 = 131;
  4701. VK_F21 = 132;
  4702. VK_F22 = 133;
  4703. VK_F23 = 134;
  4704. VK_F24 = 135;
  4705. { GetAsyncKeyState }
  4706. VK_NUMLOCK = 144;
  4707. VK_SCROLL = 145;
  4708. VK_LSHIFT = 160;
  4709. VK_LCONTROL = 162;
  4710. VK_LMENU = 164;
  4711. VK_RSHIFT = 161;
  4712. VK_RCONTROL = 163;
  4713. VK_RMENU = 165;
  4714. { ImmGetVirtualKey }
  4715. VK_PROCESSKEY = 229;
  4716. // these constants are xda-specific:
  4717. VK_TOUCHPAD = $01; // VK_LBUTTON
  4718. VK_ANSWER = $72; // VK_F5
  4719. VK_HANGUP = $73; // VK_F4
  4720. VK_VOLUME = $75; // VK_F6
  4721. VK_TOPBUTTONS = $5b; // VK_LWIN
  4722. // VK_TOPBUTTONS is sent together with one of these:
  4723. VK_CALENDER = $C1;
  4724. VK_CONTACTS = $C2;
  4725. // note that when holding the navigator button down continuously,
  4726. // occasionally the OS will report no keys pressed down.
  4727. VK_NAVIGATOR_MOVE = $84; // VK_F21
  4728. // VK_NAVIGATOR_MOVE is sent together with one of these:
  4729. VK_NAVIGATE_LEFT = $25; // VK_LEFT
  4730. VK_NAVIGATE_UP = $26; // VK_UP
  4731. VK_NAVIGATE_RIGHT = $27; // VK_RIGHT
  4732. VK_NAVIGATE_DOWN = $28; // VK_DOWN
  4733. VK_NAVIGATOR_SELECT = $86; // VK_F23
  4734. VK_ONOFF = $DF; // VK_OFF
  4735. { Keystroke Message Flags }
  4736. KF_ALTDOWN = 8192;
  4737. KF_DLGMODE = 2048;
  4738. KF_EXTENDED = 256;
  4739. KF_MENUMODE = 4096;
  4740. KF_REPEAT = 16384;
  4741. KF_UP = 32768;
  4742. { GetKeyboardLayoutName }
  4743. KL_NAMELENGTH = 9;
  4744. { WM_ACTIVATE message }
  4745. WA_ACTIVE = 1;
  4746. WA_CLICKACTIVE = 2;
  4747. WA_INACTIVE = 0;
  4748. { WM_ACTIVATE message }
  4749. PWR_CRITICALRESUME = 3;
  4750. PWR_SUSPENDREQUEST = 1;
  4751. PWR_SUSPENDRESUME = 2;
  4752. PWR_FAIL = -(1);
  4753. PWR_OK = 1;
  4754. { WM_NOTIFYFORMAT message }
  4755. NF_QUERY = 3;
  4756. NF_REQUERY = 4;
  4757. NFR_ANSI = 1;
  4758. NFR_UNICODE = 2;
  4759. { WM_SIZING message }
  4760. WMSZ_BOTTOM = 6;
  4761. WMSZ_BOTTOMLEFT = 7;
  4762. WMSZ_BOTTOMRIGHT = 8;
  4763. WMSZ_LEFT = 1;
  4764. WMSZ_RIGHT = 2;
  4765. WMSZ_TOP = 3;
  4766. WMSZ_TOPLEFT = 4;
  4767. WMSZ_TOPRIGHT = 5;
  4768. { WM_MOUSEACTIVATE message }
  4769. MA_ACTIVATE = 1;
  4770. MA_ACTIVATEANDEAT = 2;
  4771. MA_NOACTIVATE = 3;
  4772. MA_NOACTIVATEANDEAT = 4;
  4773. { WM_SIZE message }
  4774. SIZE_MAXHIDE = 4;
  4775. SIZE_MAXIMIZED = 2;
  4776. SIZE_MAXSHOW = 3;
  4777. SIZE_MINIMIZED = 1;
  4778. SIZE_RESTORED = 0;
  4779. { WM_NCCALCSIZE message }
  4780. WVR_ALIGNTOP = 16;
  4781. WVR_ALIGNLEFT = 32;
  4782. WVR_ALIGNBOTTOM = 64;
  4783. WVR_ALIGNRIGHT = 128;
  4784. WVR_HREDRAW = 256;
  4785. WVR_VREDRAW = 512;
  4786. WVR_REDRAW = 768;
  4787. WVR_VALIDRECTS = 1024;
  4788. { WM_NCHITTEST message }
  4789. HTBOTTOM = 15;
  4790. HTBOTTOMLEFT = 16;
  4791. HTBOTTOMRIGHT = 17;
  4792. HTCAPTION = 2;
  4793. HTCLIENT = 1;
  4794. HTERROR = -(2);
  4795. HTGROWBOX = 4;
  4796. HTHSCROLL = 6;
  4797. HTLEFT = 10;
  4798. HTMENU = 5;
  4799. HTNOWHERE = 0;
  4800. HTREDUCE = 8;
  4801. HTRIGHT = 11;
  4802. HTSIZE = 4;
  4803. HTSYSMENU = 3;
  4804. HTTOP = 12;
  4805. HTTOPLEFT = 13;
  4806. HTTOPRIGHT = 14;
  4807. HTTRANSPARENT = -(1);
  4808. HTVSCROLL = 7;
  4809. HTZOOM = 9;
  4810. { Mouse messages }
  4811. MK_CONTROL = 8;
  4812. MK_LBUTTON = 1;
  4813. MK_MBUTTON = 16;
  4814. MK_RBUTTON = 2;
  4815. MK_SHIFT = 4;
  4816. { WNDCLASS structure }
  4817. CS_VREDRAW = 1;
  4818. CS_HREDRAW = 2;
  4819. CS_DBLCLKS = 8;
  4820. CS_PARENTDC = 128;
  4821. CS_NOCLOSE = 512;
  4822. CS_SAVEBITS = 2048;
  4823. CS_GLOBALCLASS = 16384;
  4824. CS_IME = $10000;
  4825. DLGWINDOWEXTRA = 32;
  4826. { ACCEL structure }
  4827. FALT = 16;
  4828. FCONTROL = 8;
  4829. FNOINVERT = 2;
  4830. FSHIFT = 4;
  4831. FVIRTKEY = 1;
  4832. { MENUITEMINFO structure }
  4833. MIIM_CHECKMARKS = 8;
  4834. MIIM_DATA = 32;
  4835. MIIM_ID = 2;
  4836. MIIM_STATE = 1;
  4837. MIIM_SUBMENU = 4;
  4838. MIIM_TYPE = 16;
  4839. MFT_BITMAP = $4;
  4840. MFT_MENUBARBREAK = $20;
  4841. MFT_MENUBREAK = $40;
  4842. MFT_OWNERDRAW = $100;
  4843. MFT_RADIOCHECK = $200;
  4844. MFT_RIGHTJUSTIFY = $4000;
  4845. MFT_SEPARATOR = $800;
  4846. MFT_STRING = 0;
  4847. MFS_CHECKED = $8;
  4848. MFS_DEFAULT = $1000;
  4849. MFS_DISABLED = $3;
  4850. MFS_ENABLED = 0;
  4851. MFS_GRAYED = $3;
  4852. MFS_HILITE = $80;
  4853. MFS_UNCHECKED = 0;
  4854. MFS_UNHILITE = 0;
  4855. { SERIALKEYS structure }
  4856. SERKF_AVAILABLE = 2;
  4857. SERKF_INDICATOR = 4;
  4858. SERKF_SERIALKEYSON = 1;
  4859. { FILTERKEYS structure }
  4860. FKF_AVAILABLE = 2;
  4861. FKF_CLICKON = 64;
  4862. FKF_FILTERKEYSON = 1;
  4863. FKF_HOTKEYACTIVE = 4;
  4864. FKF_HOTKEYSOUND = 16;
  4865. FKF_CONFIRMHOTKEY = 8;
  4866. FKF_INDICATOR = 32;
  4867. { HELPINFO structure }
  4868. HELPINFO_MENUITEM = 2;
  4869. HELPINFO_WINDOW = 1;
  4870. { WM_PRINT message }
  4871. PRF_CHECKVISIBLE = $1;
  4872. PRF_CHILDREN = $10;
  4873. PRF_CLIENT = $4;
  4874. PRF_ERASEBKGND = $8;
  4875. PRF_NONCLIENT = $2;
  4876. PRF_OWNED = $20;
  4877. { MapWindowPoints }
  4878. { was #define dname def_expr }
  4879. HWND_DESKTOP = HWND(0);
  4880. { WM_SYSCOMMAND message }
  4881. const
  4882. SC_CLOSE = 61536;
  4883. SC_CONTEXTHELP = 61824;
  4884. SC_DEFAULT = 61792;
  4885. SC_HOTKEY = 61776;
  4886. SC_HSCROLL = 61568;
  4887. SC_KEYMENU = 61696;
  4888. SC_MAXIMIZE = 61488;
  4889. SC_ZOOM = 61488;
  4890. SC_MINIMIZE = 61472;
  4891. SC_ICON = 61472;
  4892. SC_MONITORPOWER = 61808;
  4893. SC_MOUSEMENU = 61584;
  4894. SC_MOVE = 61456;
  4895. SC_NEXTWINDOW = 61504;
  4896. SC_PREVWINDOW = 61520;
  4897. SC_RESTORE = 61728;
  4898. SC_SCREENSAVE = 61760;
  4899. SC_SIZE = 61440;
  4900. SC_TASKLIST = 61744;
  4901. SC_VSCROLL = 61552;
  4902. { DM_GETDEFID message }
  4903. DC_HASDEFID = 21323;
  4904. { WM_GETDLGCODE message }
  4905. DLGC_BUTTON = 8192;
  4906. DLGC_DEFPUSHBUTTON = 16;
  4907. DLGC_HASSETSEL = 8;
  4908. DLGC_RADIOBUTTON = 64;
  4909. DLGC_STATIC = 256;
  4910. DLGC_UNDEFPUSHBUTTON = 32;
  4911. DLGC_WANTALLKEYS = 4;
  4912. DLGC_WANTARROWS = 1;
  4913. DLGC_WANTCHARS = 128;
  4914. DLGC_WANTMESSAGE = 4;
  4915. DLGC_WANTTAB = 2;
  4916. { EM_SETMARGINS message }
  4917. EC_LEFTMARGIN = 1;
  4918. EC_RIGHTMARGIN = 2;
  4919. EC_USEFONTINFO = 65535;
  4920. { LB_SETCOUNT message }
  4921. LB_ERR = -(1);
  4922. LB_ERRSPACE = -(2);
  4923. LB_OKAY = 0;
  4924. { CB_DIR message }
  4925. CB_OKAY = 0;
  4926. CB_ERR = -(1);
  4927. CB_ERRSPACE = -(2);
  4928. { WM_IME_CONTROL message }
  4929. IMC_GETCANDIDATEPOS = 7;
  4930. IMC_GETCOMPOSITIONFONT = 9;
  4931. IMC_GETCOMPOSITIONWINDOW = 11;
  4932. IMC_GETSTATUSWINDOWPOS = 15;
  4933. IMC_CLOSESTATUSWINDOW = 33;
  4934. IMC_OPENSTATUSWINDOW = 34;
  4935. IMC_SETCANDIDATEPOS = 8;
  4936. IMC_SETCOMPOSITIONFONT = 10;
  4937. IMC_SETCOMPOSITIONWINDOW = 12;
  4938. IMC_SETSTATUSWINDOWPOS = 16;
  4939. { WM_IME_CONTROL message }
  4940. IMN_CHANGECANDIDATE = 3;
  4941. IMN_CLOSECANDIDATE = 4;
  4942. IMN_CLOSESTATUSWINDOW = 1;
  4943. IMN_GUIDELINE = 13;
  4944. IMN_OPENCANDIDATE = 5;
  4945. IMN_OPENSTATUSWINDOW = 2;
  4946. IMN_SETCANDIDATEPOS = 9;
  4947. IMN_SETCOMPOSITIONFONT = 10;
  4948. IMN_SETCOMPOSITIONWINDOW = 11;
  4949. IMN_SETCONVERSIONMODE = 6;
  4950. IMN_SETOPENSTATUS = 8;
  4951. IMN_SETSENTENCEMODE = 7;
  4952. IMN_SETSTATUSWINDOWPOS = 12;
  4953. IMN_PRIVATE = 14;
  4954. { STICKYKEYS structure }
  4955. SKF_AUDIBLEFEEDBACK = 64;
  4956. SKF_AVAILABLE = 2;
  4957. SKF_CONFIRMHOTKEY = 8;
  4958. SKF_HOTKEYACTIVE = 4;
  4959. SKF_HOTKEYSOUND = 16;
  4960. SKF_INDICATOR = 32;
  4961. SKF_STICKYKEYSON = 1;
  4962. SKF_TRISTATE = 128;
  4963. SKF_TWOKEYSOFF = 256;
  4964. { MOUSEKEYS structure }
  4965. MKF_AVAILABLE = 2;
  4966. MKF_CONFIRMHOTKEY = 8;
  4967. MKF_HOTKEYACTIVE = 4;
  4968. MKF_HOTKEYSOUND = 16;
  4969. MKF_INDICATOR = 32;
  4970. MKF_MOUSEKEYSON = 1;
  4971. MKF_MODIFIERS = 64;
  4972. MKF_REPLACENUMBERS = 128;
  4973. { SOUNDSENTRY structure }
  4974. SSF_AVAILABLE = 2;
  4975. SSF_SOUNDSENTRYON = 1;
  4976. SSTF_BORDER = 2;
  4977. SSTF_CHARS = 1;
  4978. SSTF_DISPLAY = 3;
  4979. SSTF_NONE = 0;
  4980. SSGF_DISPLAY = 3;
  4981. SSGF_NONE = 0;
  4982. SSWF_CUSTOM = 4;
  4983. SSWF_DISPLAY = 3;
  4984. SSWF_NONE = 0;
  4985. SSWF_TITLE = 1;
  4986. SSWF_WINDOW = 2;
  4987. { ACCESSTIMEOUT structure }
  4988. ATF_ONOFFFEEDBACK = 2;
  4989. ATF_TIMEOUTON = 1;
  4990. { HIGHCONTRAST structure }
  4991. HCF_AVAILABLE = 2;
  4992. HCF_CONFIRMHOTKEY = 8;
  4993. HCF_HIGHCONTRASTON = 1;
  4994. HCF_HOTKEYACTIVE = 4;
  4995. HCF_HOTKEYAVAILABLE = 64;
  4996. HCF_HOTKEYSOUND = 16;
  4997. HCF_INDICATOR = 32;
  4998. { TOGGLEKEYS structure }
  4999. TKF_AVAILABLE = 2;
  5000. TKF_CONFIRMHOTKEY = 8;
  5001. TKF_HOTKEYACTIVE = 4;
  5002. TKF_HOTKEYSOUND = 16;
  5003. TKF_TOGGLEKEYSON = 1;
  5004. { Installable Policy }
  5005. PP_DISPLAYERRORS = 1;
  5006. { SERVICE_INFO structure }
  5007. RESOURCEDISPLAYTYPE_DOMAIN = 1;
  5008. RESOURCEDISPLAYTYPE_FILE = 4;
  5009. RESOURCEDISPLAYTYPE_GENERIC = 0;
  5010. RESOURCEDISPLAYTYPE_GROUP = 5;
  5011. RESOURCEDISPLAYTYPE_SERVER = 2;
  5012. RESOURCEDISPLAYTYPE_SHARE = 3;
  5013. { KEY_EVENT_RECORD structure }
  5014. CAPSLOCK_ON = 128;
  5015. ENHANCED_KEY = 256;
  5016. LEFT_ALT_PRESSED = 2;
  5017. LEFT_CTRL_PRESSED = 8;
  5018. NUMLOCK_ON = 32;
  5019. RIGHT_ALT_PRESSED = 1;
  5020. RIGHT_CTRL_PRESSED = 4;
  5021. SCROLLLOCK_ON = 64;
  5022. SHIFT_PRESSED = 16;
  5023. { MOUSE_EVENT_RECORD structure }
  5024. FROM_LEFT_1ST_BUTTON_PRESSED = 1;
  5025. RIGHTMOST_BUTTON_PRESSED = 2;
  5026. FROM_LEFT_2ND_BUTTON_PRESSED = 4;
  5027. FROM_LEFT_3RD_BUTTON_PRESSED = 8;
  5028. FROM_LEFT_4TH_BUTTON_PRESSED = 16;
  5029. DOUBLE_CLICK = 2;
  5030. MOUSE_MOVED = 1;
  5031. { INPUT_RECORD structure }
  5032. KEY_EVENT = 1;
  5033. _MOUSE_EVENT = 2; {conflict with function mouse_event}
  5034. cMOUSE_EVENT = 2;
  5035. WINDOW_BUFFER_SIZE_EVENT = 4;
  5036. MENU_EVENT = 8;
  5037. FOCUS_EVENT = 16;
  5038. { BITMAPINFOHEADER structure }
  5039. BI_RGB = 0;
  5040. BI_RLE8 = 1;
  5041. BI_RLE4 = 2;
  5042. BI_BITFIELDS = 3;
  5043. { Extensions to OpenGL }
  5044. { wglUseFontOutlines }
  5045. WGL_FONT_LINES = 0;
  5046. WGL_FONT_POLYGONS = 1;
  5047. { LAYERPLANEDESCRIPTOR structure }
  5048. { PIXELFORMATDESCRIPTOR structure }
  5049. PFD_GENERIC_FORMAT = $40;
  5050. PFD_NEED_PALETTE = $80;
  5051. PFD_NEED_SYSTEM_PALETTE = $100;
  5052. PFD_SWAP_EXCHANGE = $200;
  5053. PFD_SWAP_COPY = $400;
  5054. PFD_SWAP_LAYER_BUFFERS = $800;
  5055. PFD_GENERIC_ACCELERATED = $1000;
  5056. PFD_SUPPORT_DIRECTDRAW = $2000;
  5057. { TEXTMETRIC structure }
  5058. TMPF_FIXED_PITCH = $1;
  5059. TMPF_VECTOR = $2;
  5060. TMPF_TRUETYPE = $4;
  5061. TMPF_DEVICE = $8;
  5062. WM_CTLCOLOR = 25;
  5063. { --------------------- old stuff, need to organize! --------------- }
  5064. { BEGINNING of windowsx.h stuff from old headers: }
  5065. { Not convertable by H2PAS
  5066. #define __CRACK_VOID_F(fn,args) (void)(fn args)
  5067. #define __CRACK_BOOL_F(fn,args) (BOOL)(fn args)
  5068. #define __CRACK_HMENU_F(fn,args) (HMENU)(fn args)
  5069. #define __CRACK_HWND_F(fn,args) (HWND)(fn args)
  5070. #define __CRACK_LONG_F(fn, args) (LRESULT)(fn args)
  5071. #define __CRACK_ZERO_F(fn, args) (fn args,0)
  5072. }
  5073. { was #define dname(params) def_expr }
  5074. function GetFirstChild(h:HWND):HWND;
  5075. { was #define dname(params) def_expr }
  5076. function GetNextSibling(h:HWND):HWND;
  5077. { was #define dname(params) def_expr }
  5078. function GetWindowID(h:HWND):longint;
  5079. { was #define dname(params) def_expr }
  5080. function SubclassWindow(h:HWND; p:LONG):LONG;
  5081. { was #define dname(params) def_expr }
  5082. { argument types are unknown }
  5083. { return type might be wrong }
  5084. function GET_WM_COMMAND_CMD(w,l : longint) : longint;
  5085. { return type might be wrong }
  5086. { was #define dname(params) def_expr }
  5087. { argument types are unknown }
  5088. { return type might be wrong }
  5089. function GET_WM_COMMAND_ID(w,l : longint) : longint;
  5090. { return type might be wrong }
  5091. { was #define dname(params) def_expr }
  5092. { argument types are unknown }
  5093. function GET_WM_CTLCOLOR_HDC(w,l,msg : longint) : HDC;
  5094. { was #define dname(params) def_expr }
  5095. { argument types are unknown }
  5096. function GET_WM_CTLCOLOR_HWND(w,l,msg : longint) : HWND;
  5097. { was #define dname(params) def_expr }
  5098. { argument types are unknown }
  5099. { return type might be wrong }
  5100. function GET_WM_HSCROLL_CODE(w,l : longint) : longint;
  5101. { return type might be wrong }
  5102. { was #define dname(params) def_expr }
  5103. { argument types are unknown }
  5104. function GET_WM_HSCROLL_HWND(w,l : longint) : HWND;
  5105. { was #define dname(params) def_expr }
  5106. { argument types are unknown }
  5107. { return type might be wrong }
  5108. function GET_WM_HSCROLL_POS(w,l : longint) : longint;
  5109. { return type might be wrong }
  5110. { was #define dname(params) def_expr }
  5111. { argument types are unknown }
  5112. { return type might be wrong }
  5113. function GET_WM_MDIACTIVATE_FACTIVATE(h,a,b : longint) : longint;
  5114. { return type might be wrong }
  5115. { was #define dname(params) def_expr }
  5116. { argument types are unknown }
  5117. function GET_WM_MDIACTIVATE_HWNDACTIVATE(a,b : longint) : HWND;
  5118. { was #define dname(params) def_expr }
  5119. { argument types are unknown }
  5120. function GET_WM_MDIACTIVATE_HWNDDEACT(a,b : longint) : HWND;
  5121. { was #define dname(params) def_expr }
  5122. { argument types are unknown }
  5123. { return type might be wrong }
  5124. function GET_WM_VSCROLL_CODE(w,l : longint) : longint;
  5125. { return type might be wrong }
  5126. { was #define dname(params) def_expr }
  5127. { argument types are unknown }
  5128. function GET_WM_VSCROLL_HWND(w,l : longint) : HWND;
  5129. { was #define dname(params) def_expr }
  5130. { argument types are unknown }
  5131. { return type might be wrong }
  5132. function GET_WM_VSCROLL_POS(w,l : longint) : longint;
  5133. { return type might be wrong }
  5134. { Not convertable by H2PAS
  5135. #define FORWARD_WM_CLOSE(h, fn) __CRACK_VOID_F(fn,(h, WM_CLOSE, 0, 0))
  5136. #define FORWARD_WM_COMMAND(h, id, c, n, fn) __CRACK_VOID_F(fn,(h, WM_COMMAND, MAKEWPARAM(id,n), (LPARAM)c))
  5137. #define FORWARD_WM_CREATE(h, p, fn) __CRACK_BOOL_F(fn,(h, WM_CREATE, 0, (LPARAM)p))
  5138. #define FORWARD_WM_DESTROY(h, fn) __CRACK_VOID_F(fn,(h, WM_DESTROY, 0, 0))
  5139. #define FORWARD_WM_ENABLE(h, e, fn) __CRACK_VOID_F(fn,(h, WM_ENABLE, (WPARAM)e, 0))
  5140. #define FORWARD_WM_INITDIALOG(h, c, l, fn) __CRACK_BOOL_F(fn,(h, WM_INITDIALOG, (WPARAM)c, l))
  5141. #define FORWARD_WM_MDICASCADE(h, c, fn) __CRACK_BOOL_F(fn,(h, WM_MDICASCADE, (WPARAM)c, 0))
  5142. #define FORWARD_WM_MDIDESTROY(h, d, fn) __CRACK_VOID_F(fn,(h, WM_MDIDESTROY, (WPARAM)d, 0))
  5143. #define FORWARD_WM_MDIGETACTIVE(h, fn) __CRACK_HWND_F(fn,(h, WM_MDIGETACTIVE, 0, 0))
  5144. #define FORWARD_WM_MDIICONARRANGE(h, fn) __CRACK_VOID_F(fn,(h, WM_MDIICONARRANGE, 0, 0))
  5145. #define FORWARD_WM_MDISETMENU(h, fr, hf, hw, fn) __CRACK_HMENU_F(fn,(h, WM_MDISETMENU, (WPARAM)((fr) ? (hf) : 0), (LPARAM)(hw)))
  5146. #define FORWARD_WM_MDITILE(h, c, fn) __CRACK_BOOL_F(fn,(h, WM_MDITILE, (WPARAM)(c), 0))
  5147. #define FORWARD_WM_PAINT(h, fn) __CRACK_VOID_F(fn,(h, WM_PAINT, 0, 0))
  5148. #define FORWARD_WM_QUERYENDSESSION(h, fn) __CRACK_BOOL_F(fn,(h, WM_QUERYENDSESSION, 0, 0))
  5149. #define FORWARD_WM_SIZE(h, state, cx, cy, fn) __CRACK_VOID_F(fn,(h, WM_SIZE, (WPARAM)state, MAKELPARAM(cx, cy)))
  5150. #define FORWARD_WM_SYSCOMMAND(h, c, x, y, fn) __CRACK_VOID_F(fn,(h, WM_SYSCOMMAND, (WPARAM)c, MAKELPARAM(x, y)))
  5151. #define HANDLE_WM_CLOSE(h, w, l, fn) __CRACK_ZERO_F(fn,(h));
  5152. #define HANDLE_WM_COMMAND(h, w, l, fn) __CRACK_ZERO_F(fn,(h, SEXT_LOWORD(w), (HWND)l, HIWORD(w)))
  5153. #define HANDLE_WM_CREATE(h, w, l, fn) (LRESULT)((fn(h, (CREATESTRUCT )l)) ? 0 : -1)
  5154. #define HANDLE_WM_DESTROY(h, w, l, fn) __CRACK_ZERO_F(fn,(h))
  5155. #define HANDLE_WM_ENABLE(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (BOOL)w))
  5156. #define HANDLE_WM_INITDIALOG(h, w, l, fn) __CRACK_LONG_F(fn,(h, (HWND)w, l))
  5157. #define HANDLE_WM_MDICASCADE(h, w, l, fn) __CRACK_LONG_F(fn, (h, (UINT)w)
  5158. #define HANDLE_WM_MDIDESTROY(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (HWND)w))
  5159. #define HANDLE_WM_MDIGETACTIVE(h, w, l, fn) __CRACK_LONG_F(fn,(h))
  5160. #define HANDLE_WM_MDIICONARRANGE(h, w, l, fn) __CRACK_ZERO_F(fn,(h))
  5161. #define HANDLE_WM_MDISETMENU(h, w, l, fn) __CRACK_LONG_F(fn,(h, (BOOL)w, (HMENU)w, (HMENU)l)
  5162. #define HANDLE_WM_MDITILE(h, w, l, fn) __CRACK_LONG_F(fn,(h, (UINT)w))
  5163. #define HANDLE_WM_PAINT(h, w, l, fn) __CRACK_ZERO_F(fn,(h))
  5164. #define HANDLE_WM_QUERYENDSESSION(h, w, l, fn) MAKELRESULT(fn(h), 0)
  5165. #define HANDLE_WM_SIZE(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (UINT)w, SEXT_LOWORD(l), SEXT_HIWORD(l)))
  5166. #define HANDLE_WM_SYSCOMMAND(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (UINT)w, SEXT_LOWORD(l), SEXT_HIWORD(l)))
  5167. }
  5168. { Totally disgusting! get wParam and lParam from the environment ! }
  5169. { Not convertable by H2PAS
  5170. #define HANDLE_MSG(h, message, fn) case message: return HANDLE_##message(h, wParam, lParam, fn)
  5171. }
  5172. { END OF windowsx.h stuff from old headers }
  5173. { ------------------------------------------------------------------ }
  5174. { BEGINNING of shellapi.h stuff from old headers }
  5175. const
  5176. SE_ERR_SHARE = 26;
  5177. SE_ERR_ASSOCINCOMPLETE = 27;
  5178. SE_ERR_DDETIMEOUT = 28;
  5179. SE_ERR_DDEFAIL = 29;
  5180. SE_ERR_DDEBUSY = 30;
  5181. SE_ERR_NOASSOC = 31;
  5182. { END OF shellapi.h stuff from old headers }
  5183. { ------------------------------------------------------------------ }
  5184. { From ddeml.h in old Cygnus headers }
  5185. XCLASS_BOOL = $1000;
  5186. XCLASS_DATA = $2000;
  5187. XCLASS_FLAGS = $4000;
  5188. XCLASS_MASK = $fc00;
  5189. XCLASS_NOTIFICATION = $8000;
  5190. XTYPF_NOBLOCK = $0002;
  5191. XTYP_ADVDATA = $4010;
  5192. XTYP_ADVREQ = $2022;
  5193. XTYP_ADVSTART = $1030;
  5194. XTYP_ADVSTOP = $8040;
  5195. XTYP_CONNECT = $1062;
  5196. XTYP_CONNECT_CONFIRM = $8072;
  5197. XTYP_DISCONNECT = $80c2;
  5198. XTYP_EXECUTE = $4050;
  5199. XTYP_POKE = $4090;
  5200. XTYP_REQUEST = $20b0;
  5201. XTYP_WILDCONNECT = $20E2;
  5202. XTYP_REGISTER = $80A2;
  5203. XTYP_ERROR = $8002;
  5204. XTYP_XACT_COMPLETE = $8080;
  5205. XTYP_UNREGISTER = $80D2;
  5206. DMLERR_DLL_USAGE = $4004;
  5207. DMLERR_INVALIDPARAMETER = $4006;
  5208. DMLERR_NOTPROCESSED = $4009;
  5209. DMLERR_POSTMSG_FAILED = $400c;
  5210. DMLERR_SERVER_DIED = $400e;
  5211. DMLERR_SYS_ERROR = $400f;
  5212. DMLERR_BUSY = $4001;
  5213. DMLERR_DATAACKTIMEOUT = $4002;
  5214. DMLERR_ADVACKTIMEOUT = $4000;
  5215. DMLERR_DLL_NOT_INITIALIZED = $4003;
  5216. DMLERR_LOW_MEMORY = $4007;
  5217. DMLERR_MEMORY_ERROR = $4008;
  5218. DMLERR_POKEACKTIMEOUT = $400b;
  5219. DMLERR_NO_CONV_ESTABLISHED = $400a;
  5220. DMLERR_REENTRANCY = $400d;
  5221. DMLERR_UNFOUND_QUEUE_ID = $4011;
  5222. DMLERR_UNADVACKTIMEOUT = $4010;
  5223. DMLERR_EXECACKTIMEOUT = $4005;
  5224. DDE_FACK = $8000;
  5225. DDE_FNOTPROCESSED = $0000;
  5226. DNS_REGISTER = $0001;
  5227. DNS_UNREGISTER = $0002;
  5228. CP_WINANSI = 1004;
  5229. CP_WINUNICODE = 1200;
  5230. { Not convertable by H2PAS
  5231. #define EXPENTRY CALLBACK
  5232. }
  5233. APPCLASS_STANDARD = $00000000;
  5234. { End of stuff from ddeml.h in old Cygnus headers }
  5235. { ----------------------------------------------- }
  5236. BKMODE_LAST = 2;
  5237. CTLCOLOR_MSGBOX = 0;
  5238. CTLCOLOR_EDIT = 1;
  5239. CTLCOLOR_LISTBOX = 2;
  5240. CTLCOLOR_BTN = 3;
  5241. CTLCOLOR_DLG = 4;
  5242. CTLCOLOR_SCROLLBAR = 5;
  5243. CTLCOLOR_STATIC = 6;
  5244. CTLCOLOR_MAX = 7;
  5245. META_SETMAPMODE = $0103;
  5246. META_SETWINDOWORG = $020B;
  5247. META_SETWINDOWEXT = $020C;
  5248. POLYFILL_LAST = 2;
  5249. STATUS_WAIT_0 = $00000000;
  5250. STATUS_ABANDONED_WAIT_0 = $00000080;
  5251. STATUS_USER_APC = $000000C0;
  5252. STATUS_TIMEOUT = $00000102;
  5253. STATUS_PENDING = $00000103;
  5254. STATUS_GUARD_PAGE_VIOLATION = $80000001;
  5255. STATUS_DATATYPE_MISALIGNMENT = $80000002;
  5256. STATUS_BREAKPOINT = $80000003;
  5257. STATUS_SINGLE_STEP = $80000004;
  5258. STATUS_IN_PAGE_ERROR = $C0000006;
  5259. STATUS_INVALID_HANDLE = $C0000008;
  5260. STATUS_ILLEGAL_INSTRUCTION = $C000001D;
  5261. STATUS_NONCONTINUABLE_EXCEPTION = $C0000025;
  5262. STATUS_INVALID_DISPOSITION = $C0000026;
  5263. STATUS_ARRAY_BOUNDS_EXCEEDED = $C000008C;
  5264. STATUS_FLOAT_DENORMAL_OPERAND = $C000008D;
  5265. STATUS_FLOAT_DIVIDE_BY_ZERO = $C000008E;
  5266. STATUS_FLOAT_INEXACT_RESULT = $C000008F;
  5267. STATUS_FLOAT_INVALID_OPERATION = $C0000090;
  5268. STATUS_FLOAT_OVERFLOW = $C0000091;
  5269. STATUS_FLOAT_STACK_CHECK = $C0000092;
  5270. STATUS_FLOAT_UNDERFLOW = $C0000093;
  5271. STATUS_INTEGER_DIVIDE_BY_ZERO = $C0000094;
  5272. STATUS_INTEGER_OVERFLOW = $C0000095;
  5273. STATUS_PRIVILEGED_INSTRUCTION = $C0000096;
  5274. STATUS_STACK_OVERFLOW = $C00000FD;
  5275. STATUS_CONTROL_C_EXIT = $C000013A;
  5276. {$define EXCEPTION_CTRL_C}
  5277. { Declared above.
  5278. PROCESSOR_ARCHITECTURE_INTEL = 0;
  5279. PROCESSOR_ARCHITECTURE_MIPS = 1;
  5280. PROCESSOR_ARCHITECTURE_ALPHA = 2;
  5281. PROCESSOR_ARCHITECTURE_PPC = 3;
  5282. }
  5283. { was #define dname(params) def_expr }
  5284. function FreeModule(h:HINST):WINBOOL;
  5285. { was #define dname(params) def_expr }
  5286. { argument types are unknown }
  5287. { return type might be wrong }
  5288. function MakeProcInstance(p,i : longint) : longint;
  5289. { return type might be wrong }
  5290. { was #define dname(params) def_expr }
  5291. { argument types are unknown }
  5292. { return type might be wrong }
  5293. function FreeProcInstance(p : longint) : longint;
  5294. { return type might be wrong }
  5295. const
  5296. { _fmemcpy = memcpy; these are functions }
  5297. { Used by wxwindows. }
  5298. SIZEFULLSCREEN = SIZE_MAXIMIZED;
  5299. SIZENORMAL = SIZE_RESTORED;
  5300. SIZEICONIC = SIZE_MINIMIZED;
  5301. { NPLOGPALETTE = PLOGPALETTE; probably a type }
  5302. { In the old winnt.h }
  5303. (* Not convertable by H2PAS anyhow with if 0
  5304. #if 0
  5305. #ifdef __ANAL__
  5306. #define DECLARE_HANDLE(h) struct h##__ { int dummy; }; typedef struct h##__ h
  5307. #else
  5308. #define DECLARE_HANDLE(h) typedef void h
  5309. #endif
  5310. DECLARE_HANDLE(HANDLE);
  5311. #endif
  5312. *)
  5313. {$ifdef i386} //+winnt
  5314. { x86 }
  5315. { The doc refered me to winnt.h, so I had to look... }
  5316. const
  5317. SIZE_OF_80387_REGISTERS = 80; //winnt
  5318. MAXIMUM_SUPPORTED_EXTENSION = 512; //winnt
  5319. { Values for contextflags }
  5320. CONTEXT_i386 = $10000;
  5321. CONTEXT_i486 = $10000; //+winnt
  5322. CONTEXT_CONTROL = CONTEXT_i386 or 1;
  5323. CONTEXT_INTEGER = CONTEXT_i386 or 2;
  5324. CONTEXT_SEGMENTS = CONTEXT_i386 or 4;
  5325. CONTEXT_FLOATING_POINT = CONTEXT_i386 or 8;
  5326. CONTEXT_DEBUG_REGISTERS = CONTEXT_i386 or $10;
  5327. CONTEXT_EXTENDED_REGISTERS = CONTEXT_i386 or $20; //+winnt
  5328. CONTEXT_FULL = (CONTEXT_CONTROL or CONTEXT_INTEGER) or CONTEXT_SEGMENTS;
  5329. { our own invention }
  5330. FLAG_TRACE_BIT = $100;
  5331. CONTEXT_DEBUGGER = CONTEXT_FULL or CONTEXT_FLOATING_POINT;
  5332. {$endif i386}
  5333. {$ifdef _MIPS_} //+winnt all block added
  5334. //
  5335. // Processor Feature Values used in IsProcessorFeaturePresent API
  5336. //
  5337. PF_MIPS_MIPSII = $81000001; // MIPSII instruction set
  5338. PF_MIPS_MIPSIII = $81000002; // MIPSIII instruction set
  5339. PF_MIPS_MIPSIV = $81000003; // MIPSIV instruction set
  5340. PF_MIPS_SMART_ASE = $81000004; // MIPS smart card arch. specific ext.
  5341. PF_MIPS_MIPS16 = $81000005; // MIPS16 instruction set
  5342. PF_MIPS_MIPS32 = $81000006; // MIPS32 instruction set
  5343. PF_MIPS_MIPS64 = $81000007; // MIPS64 instruction set
  5344. PF_MIPS_FPU = $81000008; // FPU support
  5345. PF_MIPS_CPU_4KEX = $81000009; // "R4K" exception model
  5346. PF_MIPS_CPU_4KTLB = $8100000A; // "R4K" TLB handler
  5347. PF_MIPS_CPU_32FPR = $8100000B; // 32 dbl. prec. FP registers
  5348. PF_MIPS_CPU_COUNTER = $8100000C; // Cycle count/compare
  5349. PF_MIPS_CPU_WATCH = $8100000D; // watchpoint registers
  5350. PF_MIPS_CPU_DIVEC = $8100000E; // dedicated interrupt vector
  5351. PF_MIPS_CPU_VCE = $8100000F; // virt. coherence conflict possible
  5352. PF_MIPS_CPU_CACHE_CDEX = $81000010; // Create_Dirty_Exclusive CACHE op
  5353. PF_MIPS_CPU_MCHECK = $81000011; // Machine check exception
  5354. PF_MIPS_CPU_EJTAG = $81000012; // EJTAG exception
  5355. PF_MIPS_PERF_COUNTER = $81000013; // perf counter
  5356. PF_MIPS_ARCH_2 = $81000014; // arch. release 2
  5357. CONTEXT_R4000 = $00010000; // r4000 context
  5358. CONTEXT_CONTROL = CONTEXT_R4000 or $00000001;
  5359. CONTEXT_FLOATING_POINT = CONTEXT_R4000 or $00000002;
  5360. CONTEXT_INTEGER = CONTEXT_R4000 or $00000004;
  5361. CONTEXT_EXTENDED_FLOAT = CONTEXT_FLOATING_POINT or $00000008;
  5362. CONTEXT_EXTENDED_INTEGER = CONTEXT_INTEGER or $00000010;
  5363. CONTEXT_FULL = CONTEXT_CONTROL or CONTEXT_FLOATING_POINT or
  5364. CONTEXT_INTEGER or CONTEXT_EXTENDED_INTEGER;
  5365. {$ifdef _MIPS64} //+winnt
  5366. CONTEXT32_LENGTH=$1B8;
  5367. {$else}
  5368. CONTEXT32_LENGTH=$130; // The original 32-bit Context length (pre NT 4.0)
  5369. {$endif _MIPS64}
  5370. {$endif _MIPS_} //+winnt
  5371. {$ifdef _PPC_} //~winnt, now _PPC_ instead of __PPC__, moved after mips
  5372. const
  5373. CONTEXT_CONTROL = 1;
  5374. CONTEXT_FLOATING_POINT = 2;
  5375. CONTEXT_INTEGER = 4;
  5376. CONTEXT_DEBUG_REGISTERS = 8;
  5377. CONTEXT_FULL = (CONTEXT_CONTROL or CONTEXT_FLOATING_POINT) or CONTEXT_INTEGER;
  5378. CONTEXT_DEBUGGER = CONTEXT_FULL;
  5379. {$endif _PPC_} //~winnt
  5380. {$ifdef _MPPC_} //+winnt all block
  5381. const
  5382. CONTEXT_CONTROL = 1;
  5383. CONTEXT_FLOATING_POINT = 2;
  5384. CONTEXT_INTEGER = 4;
  5385. CONTEXT_DEBUG_REGISTERS = 8;
  5386. CONTEXT_FULL = (CONTEXT_CONTROL or CONTEXT_FLOATING_POINT) or CONTEXT_INTEGER;
  5387. {$endif _MPPC_} //+winnt
  5388. {$ifdef _IA64_} //+winnt all block
  5389. SIZE_OF_80387_REGISTERS = 80;
  5390. CONTEXT_IA64 = $00080000; // IA64 context
  5391. CONTEXT_CONTROL = CONTEXT_IA64 or $00000001;
  5392. CONTEXT_LOWER_FLOATING_POINT = CONTEXT_IA64 or $00000002;
  5393. CONTEXT_HIGHER_FLOATING_POINT = CONTEXT_IA64 or $00000004;
  5394. CONTEXT_INTEGER = CONTEXT_IA64 or $00000008;
  5395. CONTEXT_DEBUG = CONTEXT_IA64 or $00000010;
  5396. CONTEXT_FLOATING_POINT = CONTEXT_LOWER_FLOATING_POINT or CONTEXT_HIGHER_FLOATING_POINT;
  5397. CONTEXT_FULL = CONTEXT_CONTROL or CONTEXT_FLOATING_POINT or CONTEXT_INTEGER;
  5398. CONTEXT_i386 = $00010000; // this assumes that i386 and
  5399. CONTEXT_i486 = $00010000; // i486 have identical context records
  5400. CONTEXT_X86 = $00010000; // X86 have identical context records
  5401. CONTEXT86_CONTROL = CONTEXT_i386 or $00000001; // SS:SP, CS:IP, FLAGS, BP
  5402. CONTEXT86_INTEGER = CONTEXT_i386 or $00000002; // AX, BX, CX, DX, SI, DI
  5403. CONTEXT86_SEGMENTS = CONTEXT_i386 or $00000004; // DS, ES, FS, GS
  5404. CONTEXT86_FLOATING_POINT = CONTEXT_i386 or $00000008; // 387 state
  5405. CONTEXT86_DEBUG_REGISTERS = CONTEXT_i386 or $00000010; // DB 0-3,6,7
  5406. CONTEXT86_FULL = CONTEXT86_CONTROL or CONTEXT86_INTEGER or CONTEXT86_SEGMENTS; // context corresponding to set flags will be returned.
  5407. {$endif _IA64_} //+winnt
  5408. {$ifdef SHx} //+winnt all block added
  5409. //
  5410. // Processor Feature Values used in IsProcessorFeaturePresent API
  5411. //
  5412. PF_SHX_SH3 = $82000001;
  5413. PF_SHX_SH4 = $82000002;
  5414. PF_SHX_SH5 = $82000003;
  5415. PF_SHX_DSP = $82000004;
  5416. PF_SHX_FPU = $82000005;
  5417. //
  5418. // The following flags control the contents of the CONTEXT structure.
  5419. //
  5420. CONTEXT_SH3 = $00000040;
  5421. CONTEXT_SH4 = $000000c0; // CONTEXT_SH3 | 0x80 - must contain the SH3 bits
  5422. {$ifdef SH3}
  5423. CONTEXT_CONTROL = CONTEXT_SH3 or $00000001;
  5424. CONTEXT_INTEGER = CONTEXT_SH3 or $00000002;
  5425. CONTEXT_DEBUG_REGISTERS = CONTEXT_SH3 or $00000008;
  5426. CONTEXT_DSP_REGISTERS = CONTEXT_SH3 or $00000010;
  5427. CONTEXT_FULL = CONTEXT_CONTROL or CONTEXT_INTEGER or CONTEXT_DEBUG_REGISTERS or CONTEXT_DSP_REGISTERS;
  5428. {$else} // SH4
  5429. CONTEXT_CONTROL = CONTEXT_SH4 or $00000001;
  5430. CONTEXT_INTEGER = CONTEXT_SH4 or $00000002;
  5431. CONTEXT_DEBUG_REGISTERS = CONTEXT_SH4 or $00000008;
  5432. CONTEXT_FLOATING_POINT = CONTEXT_SH4 or $00000004;
  5433. CONTEXT_FULL = CONTEXT_CONTROL or CONTEXT_INTEGER or CONTEXT_DEBUG_REGISTERS or CONTEXT_FLOATING_POINT;
  5434. {$endif SH3}
  5435. {$endif SHx} //+winnt
  5436. {$ifdef CPUARM} //+winnt all block added
  5437. //
  5438. // Processor Feature Values used in IsProcessorFeaturePresent API
  5439. //
  5440. PF_ARM_V4 = $80000001;
  5441. PF_ARM_V5 = $80000002;
  5442. PF_ARM_V6 = $80000003;
  5443. PF_ARM_V7 = $80000004;
  5444. PF_ARM_THUMB = $80000005;
  5445. PF_ARM_JAZELLE = $80000006;
  5446. PF_ARM_DSP = $80000007;
  5447. PF_ARM_MOVE_CP = $80000008;
  5448. PF_ARM_VFP10 = $80000009;
  5449. PF_ARM_MPU = $8000000A;
  5450. PF_ARM_WRITE_BUFFER = $8000000B;
  5451. PF_ARM_MBX = $8000000C;
  5452. PF_ARM_L2CACHE = $8000000D;
  5453. PF_ARM_PHYSICALLY_TAGGED_CACHE = $8000000E;
  5454. PF_ARM_VFP_SINGLE_PRECISION = $8000000F;
  5455. PF_ARM_VFP_DOUBLE_PRECISION = $80000010;
  5456. PF_ARM_ITCM = $80000011;
  5457. PF_ARM_DTCM = $80000012;
  5458. PF_ARM_UNIFIED_CACHE = $80000013;
  5459. PF_ARM_WRITE_BACK_CACHE = $80000014;
  5460. PF_ARM_CACHE_CAN_BE_LOCKED_DOWN = $80000015;
  5461. PF_ARM_L2CACHE_MEMORY_MAPPED = $80000016;
  5462. PF_ARM_L2CACHE_COPROC = $80000017;
  5463. // Specific OEM extentions
  5464. PF_ARM_INTEL_XSCALE = $80010001;
  5465. PF_ARM_INTEL_PMU = $80010002;
  5466. PF_ARM_INTEL_WMMX = $80010003;
  5467. CONTEXT_ARM = $0000040;
  5468. CONTEXT_CONTROL = CONTEXT_ARM or $00000001;
  5469. CONTEXT_INTEGER = CONTEXT_ARM or $00000002;
  5470. CONTEXT_FLOATING_POINT = CONTEXT_ARM or $00000004;
  5471. CONTEXT_FULL = CONTEXT_CONTROL or CONTEXT_INTEGER or CONTEXT_FLOATING_POINT;
  5472. NUM_VFP_REGS = 32;
  5473. NUM_EXTRA_CONTROL_REGS = 8;
  5474. {$endif CPUARM} //+winnt
  5475. const
  5476. { ASCIICHAR = AsciiChar; this is the kind of thing that can
  5477. make problems for FPC !! }
  5478. { ignored in H2PAS
  5479. #define FAR
  5480. handled in H2PAS
  5481. #define PACKED __attribute__((packed))
  5482. }
  5483. FILTER_TEMP_DUPLICATE_ACCOUNT = $0001;
  5484. FILTER_NORMAL_ACCOUNT = $0002;
  5485. FILTER_INTERDOMAIN_TRUST_ACCOUNT = $0008;
  5486. FILTER_WORKSTATION_TRUST_ACCOUNT = $0010;
  5487. FILTER_SERVER_TRUST_ACCOUNT = $0020;
  5488. LOGON32_LOGON_INTERACTIVE = $02;
  5489. LOGON32_LOGON_BATCH = $04;
  5490. LOGON32_LOGON_SERVICE = $05;
  5491. LOGON32_PROVIDER_DEFAULT = $00;
  5492. LOGON32_PROVIDER_WINNT35 = $01;
  5493. QID_SYNC = $FFFFFFFF;
  5494. { Magic numbers in PE executable header. }
  5495. { e_magic field }
  5496. IMAGE_DOS_SIGNATURE = $5a4d;
  5497. { nt_signature field }
  5498. IMAGE_NT_SIGNATURE = $4550;
  5499. { Severity values }
  5500. SEVERITY_SUCCESS = 0;
  5501. SEVERITY_ERROR = 1;
  5502. { Variant type codes (wtypes.h).
  5503. Some, not all though }
  5504. VT_EMPTY = 0;
  5505. VT_NULL = 1;
  5506. VT_I2 = 2;
  5507. VT_I4 = 3;
  5508. VT_R4 = 4;
  5509. VT_R8 = 5;
  5510. VT_BSTR = 8;
  5511. VT_ERROR = 10;
  5512. VT_BOOL = 11;
  5513. VT_UI1 = 17;
  5514. VT_BYREF = $4000;
  5515. VT_RESERVED = $8000;
  5516. { Define the facility codes }
  5517. const
  5518. FACILITY_WINDOWS = 8;
  5519. FACILITY_STORAGE = 3;
  5520. FACILITY_RPC = 1;
  5521. FACILITY_SSPI = 9;
  5522. FACILITY_WIN32 = 7;
  5523. FACILITY_CONTROL = 10;
  5524. FACILITY_NULL = 0;
  5525. FACILITY_INTERNET = 12;
  5526. FACILITY_ITF = 4;
  5527. FACILITY_DISPATCH = 2;
  5528. FACILITY_CERT = 11;
  5529. { Manually added, bug 2672}
  5530. ICON_SMALL = 0;
  5531. ICON_BIG = 1;
  5532. // Manually added, bug 3270
  5533. COLOR_HOTLIGHT = 26;
  5534. //COLOR_GRADIENTACTIVECAPTION = 27; moved to GetSysColor
  5535. //COLOR_GRADIENTINACTIVECAPTION = 28;
  5536. COLOR_MENUHILIGHT = 29;
  5537. COLOR_MENUBAR = 30;
  5538. WM_APP = $8000;
  5539. // ShellExecuteEx mask
  5540. SEE_MASK_NOCLOSEPROCESS = $00000040;
  5541. SEE_MASK_FLAG_NO_UI = $00000400;
  5542. const
  5543. INPUT_MOUSE = 0;
  5544. INPUT_KEYBOARD = 1;
  5545. INPUT_HARDWARE = 2;
  5546. // Constants used by GetMessageSource function.
  5547. const
  5548. MSGSRC_UNKNOWN = 0;
  5549. MSGSRC_SOFTWARE_POST = 1;
  5550. MSGSRC_HARDWARE_KEYBOARD = 2;
  5551. {$endif read_interface}
  5552. {$ifdef read_implementation}
  5553. { was #define dname(params) def_expr }
  5554. { argument types are unknown }
  5555. { return type might be wrong }
  5556. function IS_UNWINDING( Flag : Longint) : boolean;
  5557. begin
  5558. IS_UNWINDING:=(Flag and EXCEPTION_UNWIND)<>0;
  5559. end;
  5560. { was #define dname(params) def_expr }
  5561. { argument types are unknown }
  5562. { return type might be wrong }
  5563. function IS_DISPATCHING( Flag : Longint) : boolean;
  5564. begin
  5565. IS_DISPATCHING:=(Flag and EXCEPTION_UNWIND)=0;
  5566. end;
  5567. { was #define dname(params) def_expr }
  5568. { argument types are unknown }
  5569. { return type might be wrong }
  5570. function IS_TARGET_UNWIND( Flag : Longint) : Longint;
  5571. begin
  5572. IS_TARGET_UNWIND:=(Flag and EXCEPTION_TARGET_UNWIND);
  5573. end;
  5574. { was #define dname(params) def_expr }
  5575. { argument types are unknown }
  5576. { return type might be wrong }
  5577. function MakeProcInstance(p,i : longint) : longint;
  5578. { return type might be wrong }
  5579. begin
  5580. MakeProcInstance:=p;
  5581. end;
  5582. { was #define dname(params) def_expr }
  5583. { argument types are unknown }
  5584. { return type might be wrong }
  5585. function FreeProcInstance(p : longint) : longint;
  5586. { return type might be wrong }
  5587. begin
  5588. FreeProcInstance:=p;
  5589. end;
  5590. { was #define dname(params) def_expr }
  5591. { argument types are unknown }
  5592. { return type might be wrong }
  5593. function GET_WM_COMMAND_CMD(w,l : longint) : longint;
  5594. { return type might be wrong }
  5595. begin
  5596. GET_WM_COMMAND_CMD:=HIWORD(w);
  5597. end;
  5598. { was #define dname(params) def_expr }
  5599. { argument types are unknown }
  5600. { return type might be wrong }
  5601. function GET_WM_COMMAND_ID(w,l : longint) : longint;
  5602. { return type might be wrong }
  5603. begin
  5604. GET_WM_COMMAND_ID:=LOWORD(w);
  5605. end;
  5606. { was #define dname(params) def_expr }
  5607. { argument types are unknown }
  5608. function GET_WM_CTLCOLOR_HDC(w,l,msg : longint) : HDC;
  5609. begin
  5610. GET_WM_CTLCOLOR_HDC:=HDC(w);
  5611. end;
  5612. { was #define dname(params) def_expr }
  5613. { argument types are unknown }
  5614. function GET_WM_CTLCOLOR_HWND(w,l,msg : longint) : HWND;
  5615. begin
  5616. GET_WM_CTLCOLOR_HWND:=HWND(l);
  5617. end;
  5618. { was #define dname(params) def_expr }
  5619. { argument types are unknown }
  5620. { return type might be wrong }
  5621. function GET_WM_HSCROLL_CODE(w,l : longint) : longint;
  5622. { return type might be wrong }
  5623. begin
  5624. GET_WM_HSCROLL_CODE:=LOWORD(w);
  5625. end;
  5626. { was #define dname(params) def_expr }
  5627. { argument types are unknown }
  5628. function GET_WM_HSCROLL_HWND(w,l : longint) : HWND;
  5629. begin
  5630. GET_WM_HSCROLL_HWND:=HWND(l);
  5631. end;
  5632. { was #define dname(params) def_expr }
  5633. { argument types are unknown }
  5634. { return type might be wrong }
  5635. function GET_WM_HSCROLL_POS(w,l : longint) : longint;
  5636. { return type might be wrong }
  5637. begin
  5638. GET_WM_HSCROLL_POS:=HIWORD(w);
  5639. end;
  5640. { was #define dname(params) def_expr }
  5641. { argument types are unknown }
  5642. { return type might be wrong }
  5643. function GET_WM_MDIACTIVATE_FACTIVATE(h,a,b : longint) : longint;
  5644. { return type might be wrong }
  5645. begin
  5646. GET_WM_MDIACTIVATE_FACTIVATE:=longint(b = LONG(h));
  5647. end;
  5648. { was #define dname(params) def_expr }
  5649. { argument types are unknown }
  5650. function GET_WM_MDIACTIVATE_HWNDACTIVATE(a,b : longint) : HWND;
  5651. begin
  5652. GET_WM_MDIACTIVATE_HWNDACTIVATE:=HWND(b);
  5653. end;
  5654. { was #define dname(params) def_expr }
  5655. { argument types are unknown }
  5656. function GET_WM_MDIACTIVATE_HWNDDEACT(a,b : longint) : HWND;
  5657. begin
  5658. GET_WM_MDIACTIVATE_HWNDDEACT:=HWND(a);
  5659. end;
  5660. { was #define dname(params) def_expr }
  5661. { argument types are unknown }
  5662. { return type might be wrong }
  5663. function GET_WM_VSCROLL_CODE(w,l : longint) : longint;
  5664. { return type might be wrong }
  5665. begin
  5666. GET_WM_VSCROLL_CODE:=LOWORD(w);
  5667. end;
  5668. { was #define dname(params) def_expr }
  5669. { argument types are unknown }
  5670. function GET_WM_VSCROLL_HWND(w,l : longint) : HWND;
  5671. begin
  5672. GET_WM_VSCROLL_HWND:=HWND(l);
  5673. end;
  5674. { was #define dname(params) def_expr }
  5675. { argument types are unknown }
  5676. { return type might be wrong }
  5677. function GET_WM_VSCROLL_POS(w,l : longint) : longint;
  5678. { return type might be wrong }
  5679. begin
  5680. GET_WM_VSCROLL_POS:=HIWORD(w);
  5681. end;
  5682. { was #define dname(params) def_expr }
  5683. function FreeModule(h:HINST):WINBOOL;
  5684. begin
  5685. FreeModule:=FreeLibrary(h);
  5686. end;
  5687. { was #define dname(params) def_expr }
  5688. function GetNextSibling(h:HWND):HWND;
  5689. begin
  5690. GetNextSibling:=GetWindow(h,GW_HWNDNEXT);
  5691. end;
  5692. { was #define dname(params) def_expr }
  5693. function GetWindowID(h:HWND):longint;
  5694. begin
  5695. GetWindowID:=GetDlgCtrlID(h);
  5696. end;
  5697. { was #define dname(params) def_expr }
  5698. function SubclassWindow(h:HWND; p:LONG):LONG;
  5699. begin
  5700. SubclassWindow:=SetWindowLong(h,GWL_WNDPROC,p);
  5701. end;
  5702. { was #define dname(params) def_expr }
  5703. function GetFirstChild(h:HWND):HWND;
  5704. begin
  5705. //GetFirstChild:=GetTopWindow(h);
  5706. GetFirstChild:=GetWindow(h,GW_CHILD);
  5707. end;
  5708. {$ifdef WINCE}
  5709. {$endif WINCE}
  5710. {$ifdef WIN32}
  5711. {$endif WIN32}
  5712. {$endif read_implementation}