defines.inc 198 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527
  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. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  31. }
  32. {$ifdef read_interface}
  33. {$PACKRECORDS C}
  34. const
  35. UNICODE_NULL = WCHAR(#0);
  36. MAX_PATH = 260;
  37. LF_FACESIZE = 32;
  38. LF_FULLFACESIZE = 64;
  39. ELF_VENDOR_SIZE = 4;
  40. SECURITY_STATIC_TRACKING = 0;
  41. SECURITY_DYNAMIC_TRACKING = 1;
  42. MAX_DEFAULTCHAR = 2;
  43. MAX_LEADBYTES = 12;
  44. EXCEPTION_MAXIMUM_PARAMETERS = 15;
  45. CCHDEVICENAME = 32;
  46. CCHFORMNAME = 32;
  47. MENU_TEXT_LEN = 40;
  48. MAX_LANA = 254;
  49. NCBNAMSZ = 16;
  50. NETBIOS_NAME_LEN = 16;
  51. OFS_MAXPATHNAME = 128;
  52. MAX_TAB_STOPS = 32;
  53. ANYSIZE_ARRAY = 1;
  54. RAS_MaxCallbackNumber = 128;
  55. RAS_MaxDeviceName = 128;
  56. RAS_MaxDeviceType = 16;
  57. RAS_MaxEntryName = 256;
  58. RAS_MaxIpAddress = 15;
  59. RAS_MaxIpxAddress = 21;
  60. RAS_MaxPhoneNumber = 128;
  61. UNLEN = 256;
  62. PWLEN = 256;
  63. CNLEN = 15;
  64. DNLEN = 15;
  65. { Unsigned types max }
  66. MAXDWORD = $FFFFFFFF;
  67. MAXWORD = $FFFF;
  68. MAXBYTE = $FF;
  69. { Signed types max/min }
  70. MINCHAR = $80;
  71. MAXCHAR = $7F;
  72. MINSHORT = $8000;
  73. MAXSHORT = $7FFF;
  74. MINLONG = $80000000;
  75. MAXLONG = $7FFFFFFF;
  76. { _llseek }
  77. FILE_BEGIN = 0;
  78. FILE_CURRENT = 1;
  79. FILE_END = 2;
  80. { _lopen, LZOpenFile, OpenFile }
  81. OF_READ = 0;
  82. OF_READWRITE = 2;
  83. OF_WRITE = 1;
  84. OF_SHARE_COMPAT = 0;
  85. OF_SHARE_DENY_NONE = 64;
  86. OF_SHARE_DENY_READ = 48;
  87. OF_SHARE_DENY_WRITE = 32;
  88. OF_SHARE_EXCLUSIVE = 16;
  89. OF_CANCEL = 2048;
  90. OF_CREATE = 4096;
  91. OF_DELETE = 512;
  92. OF_EXIST = 16384;
  93. OF_PARSE = 256;
  94. OF_PROMPT = 8192;
  95. OF_REOPEN = 32768;
  96. OF_VERIFY = 1024;
  97. { ActivateKeyboardLayout, LoadKeyboardLayout }
  98. HKL_NEXT = 1;
  99. HKL_PREV = 0;
  100. KLF_REORDER = 8;
  101. KLF_UNLOADPREVIOUS = 4;
  102. KLF_ACTIVATE = 1;
  103. KLF_NOTELLSHELL = 128;
  104. KLF_REPLACELANG = 16;
  105. KLF_SUBSTITUTE_OK = 2;
  106. { AppendMenu }
  107. MF_BITMAP = $4;
  108. MF_DISABLED = $2;
  109. MF_ENABLED = 0;
  110. MF_GRAYED = $1;
  111. MF_HELP = $4000;
  112. MF_MENUBARBREAK = $20;
  113. MF_MENUBREAK = $40;
  114. MF_MOUSESELECT = $8000;
  115. MF_OWNERDRAW = $100;
  116. MF_POPUP = $10;
  117. MF_SEPARATOR = $800;
  118. MF_STRING = 0;
  119. MF_SYSMENU = $2000;
  120. MF_USECHECKBITMAPS = $200;
  121. { Ternary Raster Operations - BitBlt }
  122. BLACKNESS = $00000042;
  123. NOTSRCERASE = $001100A6;
  124. NOTSRCCOPY = $00330008;
  125. SRCERASE = $00440328;
  126. DSTINVERT = $00550009;
  127. PATINVERT = $005A0049;
  128. SRCINVERT = $00660046;
  129. SRCAND = $008800C6;
  130. MERGEPAINT = $00BB0226;
  131. MERGECOPY = $00C000CA;
  132. SRCCOPY = $00CC0020;
  133. SRCPAINT = $00EE0086;
  134. PATCOPY = $00F00021;
  135. PATPAINT = $00FB0A09;
  136. WHITENESS = $00FF0062;
  137. { Binary Raster Operations }
  138. R2_BLACK = 1;
  139. R2_COPYPEN = 13;
  140. R2_MASKNOTPEN = 3;
  141. R2_MASKPEN = 9;
  142. R2_MASKPENNOT = 5;
  143. R2_MERGENOTPEN = 12;
  144. R2_MERGEPEN = 15;
  145. R2_MERGEPENNOT = 14;
  146. R2_NOP = 11;
  147. R2_NOT = 6;
  148. R2_NOTCOPYPEN = 4;
  149. R2_NOTMASKPEN = 8;
  150. R2_NOTMERGEPEN = 2;
  151. R2_NOTXORPEN = 10;
  152. R2_WHITE = 16;
  153. R2_XORPEN = 7;
  154. { BroadcastSystemMessage }
  155. BSF_FLUSHDISK = 4;
  156. BSF_FORCEIFHUNG = 32;
  157. BSF_IGNORECURRENTTASK = 2;
  158. BSF_NOHANG = 8;
  159. BSF_POSTMESSAGE = 16;
  160. BSF_QUERY = 1;
  161. BSM_ALLCOMPONENTS = 0;
  162. BSM_APPLICATIONS = 8;
  163. BSM_INSTALLABLEDRIVERS = 4;
  164. BSM_NETDRIVER = 2;
  165. BSM_VXDS = 1;
  166. BROADCAST_QUERY_DENY = 1112363332;
  167. { BrowseCallbackProc }
  168. { CallNamedPipe }
  169. NMPWAIT_NOWAIT = 1;
  170. NMPWAIT_WAIT_FOREVER = -(1);
  171. NMPWAIT_USE_DEFAULT_WAIT = 0;
  172. { CascadeWindows, TileWindows }
  173. MDITILE_SKIPDISABLED = 2;
  174. MDITILE_HORIZONTAL = 1;
  175. MDITILE_VERTICAL = 0;
  176. { CBTProc }
  177. HCBT_ACTIVATE = 5;
  178. HCBT_CLICKSKIPPED = 6;
  179. HCBT_CREATEWND = 3;
  180. HCBT_DESTROYWND = 4;
  181. HCBT_KEYSKIPPED = 7;
  182. HCBT_MINMAX = 1;
  183. HCBT_MOVESIZE = 0;
  184. HCBT_QS = 2;
  185. HCBT_SETFOCUS = 9;
  186. HCBT_SYSCOMMAND = 8;
  187. { ChangeDisplaySettings }
  188. DM_BITSPERPEL = $40000;
  189. DM_PELSWIDTH = $80000;
  190. DM_PELSHEIGHT = $100000;
  191. DM_DISPLAYFLAGS = $200000;
  192. DM_DISPLAYFREQUENCY = $400000;
  193. DM_DISPLAYORIENTATION = LONGWORD($80);
  194. DM_DISPLAYQUERYORIENTATION= DWORD($01000000);
  195. DM_DISPLAYFIXEDOUTPUT = LONGWORD($20000000);
  196. CDS_UPDATEREGISTRY = 1;
  197. CDS_TEST = 2;
  198. CDS_FULLSCREEN = 4;
  199. CDS_GLOBAL = 8;
  200. CDS_SET_PRIMARY = $10;
  201. CDS_RESET = $40000000;
  202. CDS_SETRECT = $20000000;
  203. CDS_NORESET = $10000000;
  204. DISP_CHANGE_SUCCESSFUL = 0;
  205. DISP_CHANGE_RESTART = 1;
  206. DISP_CHANGE_BADFLAGS = -(4);
  207. DISP_CHANGE_FAILED = -(1);
  208. DISP_CHANGE_BADMODE = -(2);
  209. DISP_CHANGE_NOTUPDATED = -(3);
  210. DISP_CHANGE_BADPARAM = -5;
  211. DISP_CHANGE_BADDUALVIEW = -6;
  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 = $01;
  233. SERVICE_ACCEPT_PAUSE_CONTINUE = $02;
  234. SERVICE_ACCEPT_SHUTDOWN = $04;
  235. SERVICE_ACCEPT_PARAMCHANGE = $08;
  236. SERVICE_ACCEPT_NETBINDCHANGE = $10;
  237. SERVICE_ACCEPT_HARDWAREPROFILECHANGE = $20;
  238. SERVICE_ACCEPT_POWEREVENT = $40;
  239. SERVICE_ACCEPT_SESSIONCHANGE = $80;
  240. SERVICE_ACCEPT_PRESHUTDOWN = $100;
  241. SERVICE_ACCEPT_TIMECHANGE = $200;
  242. SERVICE_ACCEPT_TRIGGEREVENT = $400;
  243. { CheckDlgButton }
  244. BST_CHECKED = 1;
  245. BST_INDETERMINATE = 2;
  246. BST_UNCHECKED = 0;
  247. BST_FOCUS = 8;
  248. BST_PUSHED = 4;
  249. { CheckMenuItem, HiliteMenuItem }
  250. MF_BYCOMMAND = 0;
  251. MF_BYPOSITION = $400;
  252. MF_CHECKED = $8;
  253. MF_UNCHECKED = 0;
  254. MF_HILITE = $80;
  255. MF_UNHILITE = 0;
  256. { ChildWindowFromPointEx }
  257. CWP_ALL = 0;
  258. CWP_SKIPINVISIBLE = 1;
  259. CWP_SKIPDISABLED = 2;
  260. CWP_SKIPTRANSPARENT = 4;
  261. { ClearCommError }
  262. CE_BREAK = 16;
  263. CE_DNS = 2048;
  264. CE_FRAME = 8;
  265. CE_IOE = 1024;
  266. CE_MODE = 32768;
  267. CE_OOP = 4096;
  268. CE_OVERRUN = 2;
  269. CE_PTO = 512;
  270. CE_RXOVER = 1;
  271. CE_RXPARITY = 4;
  272. CE_TXFULL = 256;
  273. { ChooseMatchToTarget }
  274. { CombineRgn }
  275. RGN_AND = 1;
  276. RGN_COPY = 5;
  277. RGN_DIFF = 4;
  278. RGN_OR = 2;
  279. RGN_XOR = 3;
  280. NULLREGION = 1;
  281. SIMPLEREGION = 2;
  282. COMPLEXREGION = 3;
  283. ERROR = 0;
  284. { CommonDlgExtendedError }
  285. CDERR_DIALOGFAILURE = $ffff;
  286. CDERR_FINDRESFAILURE = 6;
  287. CDERR_INITIALIZATION = 2;
  288. CDERR_LOADRESFAILURE = 7;
  289. CDERR_LOADSTRFAILURE = 5;
  290. CDERR_LOCKRESFAILURE = 8;
  291. CDERR_MEMALLOCFAILURE = 9;
  292. CDERR_MEMLOCKFAILURE = 10;
  293. CDERR_NOHINSTANCE = 4;
  294. CDERR_NOHOOK = 11;
  295. CDERR_NOTEMPLATE = 3;
  296. CDERR_REGISTERMSGFAIL = 12;
  297. CDERR_STRUCTSIZE = 1;
  298. PDERR_CREATEICFAILURE = $1000 + 10;
  299. PDERR_DEFAULTDIFFERENT = $1000 + 12;
  300. PDERR_DNDMMISMATCH = $1000 + 9;
  301. PDERR_GETDEVMODEFAIL = $1000 + 5;
  302. PDERR_INITFAILURE = $1000 + 6;
  303. PDERR_LOADDRVFAILURE = $1000 + 4;
  304. PDERR_NODEFAULTPRN = $1000 + 8;
  305. PDERR_NODEVICES = $1000 + 7;
  306. PDERR_PARSEFAILURE = $1000 + 2;
  307. PDERR_PRINTERNOTFOUND = $1000 + 11;
  308. PDERR_RETDEFFAILURE = $1000 + 3;
  309. PDERR_SETUPFAILURE = $1000 + 1;
  310. CFERR_MAXLESSTHANMIN = $2000 + 2;
  311. CFERR_NOFONTS = $2000 + 1;
  312. FNERR_BUFFERTOOSMALL = $3000 + 3;
  313. FNERR_INVALIDFILENAME = $3000 + 2;
  314. FNERR_SUBCLASSFAILURE = $3000 + 1;
  315. FRERR_BUFFERLENGTHZERO = $4000 + 1;
  316. { CompareString, LCMapString }
  317. LOCALE_SYSTEM_DEFAULT = $800;
  318. LOCALE_USER_DEFAULT = $400;
  319. NORM_IGNORECASE = 1;
  320. NORM_IGNORENONSPACE = 2;
  321. NORM_IGNORESYMBOLS = 4;
  322. LINGUISTIC_IGNORECASE = $00000010;
  323. LINGUISTIC_IGNOREDIACRITIC = $00000020;
  324. NORM_IGNOREKANATYPE = $00010000;
  325. NORM_IGNOREWIDTH = $00020000;
  326. NORM_LINGUISTIC_CASING = $08000000;
  327. SORT_DIGITSASNUMBERS = $00000008;
  328. SORT_STRINGSORT = 4096;
  329. LCMAP_BYTEREV = 2048;
  330. LCMAP_FULLWIDTH = 8388608;
  331. LCMAP_HALFWIDTH = 4194304;
  332. LCMAP_HIRAGANA = 1048576;
  333. LCMAP_KATAKANA = 2097152;
  334. LCMAP_LOWERCASE = 256;
  335. LCMAP_SORTKEY = 1024;
  336. LCMAP_UPPERCASE = 512;
  337. { ContinueDebugEvent }
  338. DBG_CONTINUE = $10002;
  339. DBG_CONTROL_BREAK = $40010008;
  340. DBG_CONTROL_C = $40010005;
  341. DBG_EXCEPTION_NOT_HANDLED = $80010001;
  342. DBG_TERMINATE_THREAD = $40010003;
  343. DBG_TERMINATE_PROCESS = $40010004;
  344. { ControlService }
  345. SERVICE_CONTROL_STOP = $1;
  346. SERVICE_CONTROL_PAUSE = $2;
  347. SERVICE_CONTROL_CONTINUE = $3;
  348. SERVICE_CONTROL_INTERROGATE = $4;
  349. SERVICE_CONTROL_SHUTDOWN = $5;
  350. SERVICE_CONTROL_PARAMCHANGE = $6;
  351. SERVICE_CONTROL_NETBINDADD = $7;
  352. SERVICE_CONTROL_NETBINDREMOVE = $8;
  353. SERVICE_CONTROL_NETBINDENABLE = $9;
  354. SERVICE_CONTROL_NETBINDDISABLE = $A;
  355. SERVICE_CONTROL_DEVICEEVENT = $B;
  356. SERVICE_CONTROL_HARDWAREPROFILECHANGE = $C;
  357. SERVICE_CONTROL_POWEREVENT = $D;
  358. SERVICE_CONTROL_SESSIONCHANGE = $E;
  359. SERVICE_CONTROL_PRESHUTDOWN = $F;
  360. SERVICE_CONTROL_TIMECHANGE = $10;
  361. SERVICE_CONTROL_TRIGGEREVENT = $20;
  362. { CopyImage, LoadImage }
  363. IMAGE_BITMAP = 0;
  364. IMAGE_CURSOR = 2;
  365. IMAGE_ENHMETAFILE = 1;
  366. IMAGE_ICON = 1;
  367. LR_MONOCHROME = 1;
  368. LR_COLOR = 2;
  369. LR_COPYRETURNORG = 4;
  370. LR_COPYDELETEORG = 8;
  371. LR_DEFAULTSIZE = 64;
  372. LR_CREATEDIBSECTION = 8192;
  373. LR_COPYFROMRESOURCE = $4000;
  374. LR_SHARED = $8000;
  375. { CreateDesktop }
  376. DF_ALLOWOTHERACCOUNTHOOK = $1;
  377. DESKTOP_CREATEMENU = $4;
  378. DESKTOP_CREATEWINDOW = $2;
  379. DESKTOP_ENUMERATE = $40;
  380. DESKTOP_HOOKCONTROL = $8;
  381. DESKTOP_JOURNALPLAYBACK = $20;
  382. DESKTOP_JOURNALRECORD = $10;
  383. DESKTOP_READOBJECTS = $1;
  384. DESKTOP_SWITCHDESKTOP = $100;
  385. DESKTOP_WRITEOBJECTS = $80;
  386. WSF_VISIBLE = $1;
  387. { CreateDIBitmap }
  388. CBM_INIT = $4;
  389. DIB_PAL_COLORS = 1;
  390. DIB_RGB_COLORS = 0;
  391. { CreateFile, GetFileAttributes, SetFileAttributes }
  392. GENERIC_READ = $80000000;
  393. GENERIC_WRITE = $40000000;
  394. { file & pipe }
  395. FILE_READ_DATA = $0001;
  396. { directory }
  397. FILE_LIST_DIRECTORY = $0001;
  398. { file & pipe }
  399. FILE_WRITE_DATA = $0002;
  400. { directory }
  401. FILE_ADD_FILE = $0002;
  402. { file }
  403. FILE_APPEND_DATA = $0004;
  404. { directory }
  405. FILE_ADD_SUBDIRECTORY = $0004;
  406. { named pipe }
  407. FILE_CREATE_PIPE_INSTANCE = $0004;
  408. { file & directory }
  409. FILE_READ_EA = $0008;
  410. FILE_READ_PROPERTIES = FILE_READ_EA;
  411. { file & directory }
  412. FILE_WRITE_EA = $0010;
  413. FILE_WRITE_PROPERTIES = FILE_WRITE_EA;
  414. { file }
  415. FILE_EXECUTE = $0020;
  416. { directory }
  417. FILE_TRAVERSE = $0020;
  418. { directory }
  419. FILE_DELETE_CHILD = $0040;
  420. { all }
  421. FILE_READ_ATTRIBUTES = $0080;
  422. { all }
  423. FILE_WRITE_ATTRIBUTES = $0100;
  424. { displaced lower
  425. #define FILE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x1FF)
  426. #define FILE_GENERIC_READ (STANDARD_RIGHTS_READ |\
  427. FILE_READ_DATA |\
  428. FILE_READ_ATTRIBUTES |\
  429. FILE_READ_EA |\
  430. SYNCHRONIZE)
  431. #define FILE_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\
  432. FILE_WRITE_DATA |\
  433. FILE_WRITE_ATTRIBUTES |\
  434. FILE_WRITE_EA |\
  435. FILE_APPEND_DATA |\
  436. SYNCHRONIZE)
  437. #define FILE_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE |\
  438. FILE_READ_ATTRIBUTES |\
  439. FILE_EXECUTE |\
  440. SYNCHRONIZE)
  441. }
  442. FILE_SHARE_DELETE = 4;
  443. FILE_SHARE_READ = 1;
  444. FILE_SHARE_WRITE = 2;
  445. CONSOLE_TEXTMODE_BUFFER = 1;
  446. CREATE_NEW = 1;
  447. CREATE_ALWAYS = 2;
  448. OPEN_EXISTING = 3;
  449. OPEN_ALWAYS = 4;
  450. TRUNCATE_EXISTING = 5;
  451. FILE_ATTRIBUTE_READONLY = $0000001;
  452. FILE_ATTRIBUTE_HIDDEN = $0000002;
  453. FILE_ATTRIBUTE_SYSTEM = $0000004;
  454. FILE_ATTRIBUTE_DIRECTORY = $0000010;
  455. FILE_ATTRIBUTE_ARCHIVE = $0000020;
  456. FILE_ATTRIBUTE_DEVICE = $0000040;
  457. FILE_ATTRIBUTE_NORMAL = $0000080;
  458. FILE_ATTRIBUTE_TEMPORARY = $0000100;
  459. FILE_ATTRIBUTE_SPARSE_FILE = $0000200;
  460. FILE_ATTRIBUTE_REPARSE_POINT = $0000400;
  461. FILE_ATTRIBUTE_COMPRESSED = $0000800;
  462. FILE_ATTRIBUTE_OFFLINE = $0001000;
  463. FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = $0002000;
  464. FILE_ATTRIBUTE_ENCRYPTED = $0004000;
  465. FILE_ATTRIBUTE_INTEGRITY_STREAM = $0008000;
  466. FILE_ATTRIBUTE_VIRTUAL = $0010000;
  467. FILE_ATTRIBUTE_NO_SCRUB_DATA = $0020000;
  468. FILE_ATTRIBUTE_EA = $0040000;
  469. FILE_ATTRIBUTE_PINNED = $0080000;
  470. FILE_ATTRIBUTE_UNPINNED = $0100000;
  471. FILE_ATTRIBUTE_RECALL_ON_OPEN = $0040000; // same as EA ?
  472. FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS = $0400000;
  473. FILE_FLAG_WRITE_THROUGH = $80000000;
  474. FILE_FLAG_OVERLAPPED = 1073741824;
  475. FILE_FLAG_NO_BUFFERING = 536870912;
  476. FILE_FLAG_RANDOM_ACCESS = 268435456;
  477. FILE_FLAG_SEQUENTIAL_SCAN = 134217728;
  478. FILE_FLAG_DELETE_ON_CLOSE = 67108864;
  479. FILE_FLAG_BACKUP_SEMANTICS = 33554432;
  480. FILE_FLAG_POSIX_SEMANTICS = 16777216;
  481. IO_REPARSE_TAG_RESERVED_ZERO = 0;
  482. IO_REPARSE_TAG_RESERVED_ONE = 1;
  483. IO_REPARSE_TAG_RESERVED_RANGE = IO_REPARSE_TAG_RESERVED_ONE;
  484. IO_REPARSE_TAG_MOUNT_POINT = $A0000003;
  485. IO_REPARSE_TAG_HSM = $C0000004;
  486. IO_REPARSE_TAG_HSM2 = $80000006;
  487. IO_REPARSE_TAG_SIS = $80000007;
  488. IO_REPARSE_TAG_WIM = $80000008;
  489. IO_REPARSE_TAG_CSV = $80000009;
  490. IO_REPARSE_TAG_DFS = $8000000A;
  491. IO_REPARSE_TAG_SYMLINK = $A000000C;
  492. IO_REPARSE_TAG_DFSR = $80000012;
  493. SECURITY_ANONYMOUS = 0;
  494. SECURITY_IDENTIFICATION = 65536;
  495. SECURITY_IMPERSONATION = 131072;
  496. SECURITY_DELEGATION = 196608;
  497. SECURITY_CONTEXT_TRACKING = 262144;
  498. SECURITY_EFFECTIVE_ONLY = 524288;
  499. SECURITY_SQOS_PRESENT = 1048576;
  500. { CreateFileMapping, VirtualAlloc, VirtualFree, VirtualProtect }
  501. SEC_COMMIT = 134217728;
  502. SEC_IMAGE = 16777216;
  503. SEC_NOCACHE = 268435456;
  504. SEC_RESERVE = 67108864;
  505. PAGE_READONLY = 2;
  506. PAGE_READWRITE = 4;
  507. PAGE_WRITECOPY = 8;
  508. PAGE_EXECUTE = 16;
  509. PAGE_EXECUTE_READ = 32;
  510. PAGE_EXECUTE_READWRITE = 64;
  511. PAGE_EXECUTE_WRITECOPY = 128;
  512. PAGE_GUARD = 256;
  513. PAGE_NOACCESS = 1;
  514. PAGE_NOCACHE = 512;
  515. MEM_COMMIT = 4096;
  516. MEM_FREE = 65536;
  517. MEM_RESERVE = 8192;
  518. MEM_IMAGE = 16777216;
  519. MEM_MAPPED = 262144;
  520. MEM_PRIVATE = 131072;
  521. MEM_DECOMMIT = 16384;
  522. MEM_RELEASE = 32768;
  523. MEM_TOP_DOWN = 1048576;
  524. MEM_RESET = $80000;
  525. MEM_WRITE_WATCH = $200000;
  526. MEM_PHYSICAL = $400000;
  527. MEM_LARGE_PAGES = $20000000;
  528. MEM_4MB_PAGES = dword($80000000);
  529. EXCEPTION_GUARD_PAGE = $80000001;
  530. SECTION_EXTEND_SIZE = $10;
  531. SECTION_MAP_READ = $4;
  532. SECTION_MAP_WRITE = $2;
  533. SECTION_QUERY = $1;
  534. SECTION_ALL_ACCESS = $f001f;
  535. { CreateFont }
  536. FW_DONTCARE = 0;
  537. FW_THIN = 100;
  538. FW_EXTRALIGHT = 200;
  539. FW_LIGHT = 300;
  540. FW_NORMAL = 400;
  541. FW_REGULAR = FW_NORMAL;
  542. FW_MEDIUM = 500;
  543. FW_SEMIBOLD = 600;
  544. FW_BOLD = 700;
  545. FW_EXTRABOLD = 800;
  546. FW_HEAVY = 900;
  547. ANSI_CHARSET = 0;
  548. DEFAULT_CHARSET = 1;
  549. SYMBOL_CHARSET = 2;
  550. SHIFTJIS_CHARSET = 128;
  551. HANGEUL_CHARSET = 129;
  552. GB2312_CHARSET = 134;
  553. CHINESEBIG5_CHARSET = 136;
  554. GREEK_CHARSET = 161;
  555. TURKISH_CHARSET = 162;
  556. HEBREW_CHARSET = 177;
  557. ARABIC_CHARSET = 178;
  558. BALTIC_CHARSET = 186;
  559. RUSSIAN_CHARSET = 204;
  560. THAI_CHARSET = 222;
  561. EASTEUROPE_CHARSET = 238;
  562. OEM_CHARSET = 255;
  563. OUT_DEFAULT_PRECIS = 0;
  564. OUT_STRING_PRECIS = 1;
  565. OUT_CHARACTER_PRECIS = 2;
  566. OUT_STROKE_PRECIS = 3;
  567. OUT_TT_PRECIS = 4;
  568. OUT_DEVICE_PRECIS = 5;
  569. OUT_RASTER_PRECIS = 6;
  570. OUT_TT_ONLY_PRECIS = 7;
  571. OUT_OUTLINE_PRECIS = 8;
  572. CLIP_DEFAULT_PRECIS = 0;
  573. CLIP_CHARACTER_PRECIS = 1;
  574. CLIP_STROKE_PRECIS = 2;
  575. CLIP_MASK = 15;
  576. CLIP_LH_ANGLES = 16;
  577. CLIP_TT_ALWAYS = 32;
  578. CLIP_EMBEDDED = 128;
  579. DEFAULT_QUALITY = 0;
  580. DRAFT_QUALITY = 1;
  581. PROOF_QUALITY = 2;
  582. NONANTIALIASED_QUALITY = 3;
  583. ANTIALIASED_QUALITY = 4;
  584. DEFAULT_PITCH = 0;
  585. FIXED_PITCH = 1;
  586. VARIABLE_PITCH = 2;
  587. MONO_FONT = 8;
  588. FF_DECORATIVE = 80;
  589. FF_DONTCARE = 0;
  590. FF_MODERN = 48;
  591. FF_ROMAN = 16;
  592. FF_SCRIPT = 64;
  593. FF_SWISS = 32;
  594. { CreateHatchBrush }
  595. HS_BDIAGONAL = 3;
  596. HS_CROSS = 4;
  597. HS_DIAGCROSS = 5;
  598. HS_FDIAGONAL = 2;
  599. HS_HORIZONTAL = 0;
  600. HS_VERTICAL = 1;
  601. { CreateIconFromResourceEx }
  602. LR_DEFAULTCOLOR = 0;
  603. LR_LOADREALSIZE = 128;
  604. { already defined above !!
  605. #define LR_MONOCHROME (1)
  606. }
  607. { CreateMailslot, GetMailslotInfo }
  608. MAILSLOT_WAIT_FOREVER = $ffffffff;
  609. MAILSLOT_NO_MESSAGE = $ffffffff;
  610. { CreateMappedBitmap }
  611. CMB_MASKED = 2;
  612. { CreateNamedPipe }
  613. PIPE_ACCESS_DUPLEX = 3;
  614. PIPE_ACCESS_INBOUND = 1;
  615. PIPE_ACCESS_OUTBOUND = 2;
  616. WRITE_DAC = $40000;
  617. WRITE_OWNER = $80000;
  618. ACCESS_SYSTEM_SECURITY = $1000000;
  619. PIPE_TYPE_BYTE = 0;
  620. PIPE_TYPE_MESSAGE = 4;
  621. PIPE_READMODE_BYTE = 0;
  622. PIPE_READMODE_MESSAGE = 2;
  623. PIPE_WAIT = 0;
  624. PIPE_NOWAIT = 1;
  625. { CreatePen, ExtCreatePen }
  626. PS_GEOMETRIC = 65536;
  627. PS_COSMETIC = 0;
  628. PS_ALTERNATE = 8;
  629. PS_SOLID = 0;
  630. PS_DASH = 1;
  631. PS_DOT = 2;
  632. PS_DASHDOT = 3;
  633. PS_DASHDOTDOT = 4;
  634. PS_NULL = 5;
  635. PS_USERSTYLE = 7;
  636. PS_INSIDEFRAME = 6;
  637. PS_ENDCAP_ROUND = 0;
  638. PS_ENDCAP_SQUARE = 256;
  639. PS_ENDCAP_FLAT = 512;
  640. PS_JOIN_BEVEL = 4096;
  641. PS_JOIN_MITER = 8192;
  642. PS_JOIN_ROUND = 0;
  643. PS_STYLE_MASK = 15;
  644. PS_ENDCAP_MASK = 3840;
  645. PS_TYPE_MASK = 983040;
  646. { CreatePolygonRgn }
  647. ALTERNATE = 1;
  648. WINDING = 2;
  649. { CreateProcess }
  650. CREATE_NEW_CONSOLE = 16;
  651. CREATE_NEW_PROCESS_GROUP = 512;
  652. CREATE_SUSPENDED = 4;
  653. STACK_SIZE_PARAM_IS_A_RESERVATION = $10000;
  654. DEBUG_PROCESS = 1;
  655. DEBUG_ONLY_THIS_PROCESS = 2;
  656. DETACHED_PROCESS = 8;
  657. HIGH_PRIORITY_CLASS = 128;
  658. IDLE_PRIORITY_CLASS = 64;
  659. NORMAL_PRIORITY_CLASS = 32;
  660. REALTIME_PRIORITY_CLASS = 256;
  661. CREATE_UNICODE_ENVIRONMENT = $00000400;
  662. CREATE_SEPARATE_WOW_VDM = $00000800;
  663. CREATE_SHARED_WOW_VDM = $00001000;
  664. CREATE_FORCEDOS = $00002000;
  665. BELOW_NORMAL_PRIORITY_CLASS = $00004000;
  666. ABOVE_NORMAL_PRIORITY_CLASS = $00008000;
  667. INHERIT_PARENT_AFFINITY = $00010000;
  668. INHERIT_CALLER_PRIORITY = $00020000; // Deprecated
  669. CREATE_PROTECTED_PROCESS = $00040000;
  670. EXTENDED_STARTUPINFO_PRESENT = $00080000;
  671. PROCESS_MODE_BACKGROUND_BEGIN = $00100000;
  672. PROCESS_MODE_BACKGROUND_END = $00200000;
  673. CREATE_BREAKAWAY_FROM_JOB = $01000000;
  674. CREATE_PRESERVE_CODE_AUTHZ_LEVEL = $02000000;
  675. CREATE_DEFAULT_ERROR_MODE = $04000000;
  676. CREATE_NO_WINDOW = $08000000;
  677. PROFILE_USER = $10000000;
  678. PROFILE_KERNEL = $20000000;
  679. PROFILE_SERVER = $40000000;
  680. CREATE_IGNORE_SYSTEM_DEFAULT = $80000000;
  681. { CreateService }
  682. SERVICE_ALL_ACCESS = $f01ff;
  683. SERVICE_CHANGE_CONFIG = 2;
  684. SERVICE_ENUMERATE_DEPENDENTS = 8;
  685. SERVICE_INTERROGATE = 128;
  686. SERVICE_PAUSE_CONTINUE = 64;
  687. SERVICE_QUERY_CONFIG = 1;
  688. SERVICE_QUERY_STATUS = 4;
  689. SERVICE_START = 16;
  690. SERVICE_STOP = 32;
  691. SERVICE_USER_DEFINED_CONTROL = 256;
  692. SERVICE_DELETE = $10000;
  693. SERVICE_READ_CONTROL = $20000;
  694. SERVICE_GENERIC_EXECUTE = $20000000;
  695. { already defined above !!
  696. #define SERVICE_WIN32_OWN_PROCESS (16)
  697. #define SERVICE_WIN32_SHARE_PROCESS (32)
  698. #define SERVICE_KERNEL_DRIVER (1)
  699. #define SERVICE_FILE_SYSTEM_DRIVER (2)
  700. #define SERVICE_INTERACTIVE_PROCESS (256)
  701. #define SERVICE_BOOT_START (0)
  702. #define SERVICE_SYSTEM_START (1)
  703. #define SERVICE_AUTO_START (2)
  704. #define SERVICE_DEMAND_START (3)
  705. #define SERVICE_DISABLED (4)
  706. }
  707. SERVICE_ERROR_IGNORE = 0;
  708. SERVICE_ERROR_NORMAL = 1;
  709. SERVICE_ERROR_SEVERE = 2;
  710. SERVICE_ERROR_CRITICAL = 3;
  711. { CreateTapePartition, WriteTapemark }
  712. TAPE_FIXED_PARTITIONS = 0;
  713. TAPE_INITIATOR_PARTITIONS = $2;
  714. TAPE_SELECT_PARTITIONS = $1;
  715. TAPE_FILEMARKS = $1;
  716. TAPE_LONG_FILEMARKS = $3;
  717. TAPE_SETMARKS = 0;
  718. TAPE_SHORT_FILEMARKS = $2;
  719. { CreateWindow }
  720. CW_USEDEFAULT = longint($80000000);
  721. WS_BORDER = $800000;
  722. WS_CAPTION = $c00000;
  723. WS_CHILD = $40000000;
  724. WS_CHILDWINDOW = $40000000;
  725. WS_CLIPCHILDREN = $2000000;
  726. WS_CLIPSIBLINGS = $4000000;
  727. WS_DISABLED = $8000000;
  728. WS_DLGFRAME = $400000;
  729. WS_GROUP = $20000;
  730. WS_HSCROLL = $100000;
  731. WS_ICONIC = $20000000;
  732. WS_MAXIMIZE = $1000000;
  733. WS_MAXIMIZEBOX = $10000;
  734. WS_MINIMIZE = $20000000;
  735. WS_MINIMIZEBOX = $20000;
  736. WS_OVERLAPPED = 0;
  737. WS_OVERLAPPEDWINDOW = $cf0000;
  738. WS_POPUP = dword($80000000);
  739. WS_POPUPWINDOW = dword($80880000);
  740. WS_SIZEBOX = $40000;
  741. WS_SYSMENU = $80000;
  742. WS_TABSTOP = $10000;
  743. WS_THICKFRAME = $40000;
  744. WS_TILED = 0;
  745. WS_TILEDWINDOW = $cf0000;
  746. WS_VISIBLE = $10000000;
  747. WS_VSCROLL = $200000;
  748. MDIS_ALLCHILDSTYLES = $1;
  749. BS_3STATE = $5;
  750. BS_AUTO3STATE = $6;
  751. BS_AUTOCHECKBOX = $3;
  752. BS_AUTORADIOBUTTON = $9;
  753. BS_BITMAP = $80;
  754. BS_BOTTOM = $800;
  755. BS_CENTER = $300;
  756. BS_CHECKBOX = $2;
  757. BS_DEFPUSHBUTTON = $1;
  758. BS_GROUPBOX = $7;
  759. BS_ICON = $40;
  760. BS_LEFT = $100;
  761. BS_LEFTTEXT = $20;
  762. BS_MULTILINE = $2000;
  763. BS_NOTIFY = $4000;
  764. BS_OWNERDRAW = $b;
  765. BS_PUSHBUTTON = 0;
  766. BS_PUSHLIKE = $1000;
  767. BS_RADIOBUTTON = $4;
  768. BS_RIGHT = $200;
  769. BS_RIGHTBUTTON = $20;
  770. BS_TEXT = 0;
  771. BS_TOP = $400;
  772. BS_USERBUTTON = $8;
  773. BS_VCENTER = $c00;
  774. BS_FLAT = $8000;
  775. CBS_AUTOHSCROLL = $40;
  776. CBS_DISABLENOSCROLL = $800;
  777. CBS_DROPDOWN = $2;
  778. CBS_DROPDOWNLIST = $3;
  779. CBS_HASSTRINGS = $200;
  780. CBS_LOWERCASE = $4000;
  781. CBS_NOINTEGRALHEIGHT = $400;
  782. CBS_OEMCONVERT = $80;
  783. CBS_OWNERDRAWFIXED = $10;
  784. CBS_OWNERDRAWVARIABLE = $20;
  785. CBS_SIMPLE = $1;
  786. CBS_SORT = $100;
  787. CBS_UPPERCASE = $2000;
  788. ES_AUTOHSCROLL = $80;
  789. ES_AUTOVSCROLL = $40;
  790. ES_CENTER = $1;
  791. ES_LEFT = 0;
  792. ES_LOWERCASE = $10;
  793. ES_MULTILINE = $4;
  794. ES_NOHIDESEL = $100;
  795. ES_NUMBER = $2000;
  796. ES_OEMCONVERT = $400;
  797. ES_PASSWORD = $20;
  798. ES_READONLY = $800;
  799. ES_RIGHT = $2;
  800. ES_UPPERCASE = $8;
  801. ES_WANTRETURN = $1000;
  802. LBS_DISABLENOSCROLL = $1000;
  803. LBS_EXTENDEDSEL = $800;
  804. LBS_HASSTRINGS = $40;
  805. LBS_MULTICOLUMN = $200;
  806. LBS_MULTIPLESEL = $8;
  807. LBS_NODATA = $2000;
  808. LBS_NOINTEGRALHEIGHT = $100;
  809. LBS_NOREDRAW = $4;
  810. LBS_NOSEL = $4000;
  811. LBS_NOTIFY = $1;
  812. LBS_OWNERDRAWFIXED = $10;
  813. LBS_OWNERDRAWVARIABLE = $20;
  814. LBS_SORT = $2;
  815. LBS_STANDARD = $a00003;
  816. LBS_USETABSTOPS = $80;
  817. LBS_WANTKEYBOARDINPUT = $400;
  818. SBS_BOTTOMALIGN = $4;
  819. SBS_HORZ = 0;
  820. SBS_LEFTALIGN = $2;
  821. SBS_RIGHTALIGN = $4;
  822. SBS_SIZEBOX = $8;
  823. SBS_SIZEBOXBOTTOMRIGHTALIGN = $4;
  824. SBS_SIZEBOXTOPLEFTALIGN = $2;
  825. SBS_SIZEGRIP = $10;
  826. SBS_TOPALIGN = $2;
  827. SBS_VERT = $1;
  828. SS_BITMAP = $e;
  829. SS_BLACKFRAME = $7;
  830. SS_BLACKRECT = $4;
  831. SS_CENTER = $1;
  832. SS_CENTERIMAGE = $200;
  833. SS_ENHMETAFILE = $f;
  834. SS_ETCHEDFRAME = $12;
  835. SS_ETCHEDHORZ = $10;
  836. SS_ETCHEDVERT = $11;
  837. SS_GRAYFRAME = $8;
  838. SS_GRAYRECT = $5;
  839. SS_ICON = $3;
  840. SS_LEFT = 0;
  841. SS_LEFTNOWORDWRAP = $c;
  842. SS_NOPREFIX = $80;
  843. SS_NOTIFY = $100;
  844. SS_OWNERDRAW = $d;
  845. SS_REALSIZEIMAGE = $800;
  846. SS_RIGHT = $2;
  847. SS_RIGHTJUST = $400;
  848. SS_SIMPLE = $b;
  849. SS_SUNKEN = $1000;
  850. SS_USERITEM = $a;
  851. SS_WHITEFRAME = $9;
  852. SS_WHITERECT = $6;
  853. DS_3DLOOK = $4;
  854. DS_ABSALIGN = $1;
  855. DS_CENTER = $800;
  856. DS_CENTERMOUSE = $1000;
  857. DS_CONTEXTHELP = $2000;
  858. DS_CONTROL = $400;
  859. DS_FIXEDSYS = $8;
  860. DS_LOCALEDIT = $20;
  861. DS_MODALFRAME = $80;
  862. DS_NOFAILCREATE = $10;
  863. DS_NOIDLEMSG = $100;
  864. DS_SETFONT = $40;
  865. DS_SETFOREGROUND = $200;
  866. DS_SYSMODAL = $2;
  867. { CreateWindowEx }
  868. WS_EX_ACCEPTFILES = $10;
  869. WS_EX_APPWINDOW = $40000;
  870. WS_EX_CLIENTEDGE = $200;
  871. WS_EX_CONTEXTHELP = $400;
  872. WS_EX_CONTROLPARENT = $10000;
  873. WS_EX_DLGMODALFRAME = $1;
  874. WS_EX_LEFT = 0;
  875. WS_EX_LEFTSCROLLBAR = $4000;
  876. WS_EX_LTRREADING = 0;
  877. WS_EX_MDICHILD = $40;
  878. WS_EX_NOPARENTNOTIFY = $4;
  879. WS_EX_OVERLAPPEDWINDOW = $300;
  880. WS_EX_PALETTEWINDOW = $188;
  881. WS_EX_RIGHT = $1000;
  882. WS_EX_RIGHTSCROLLBAR = 0;
  883. WS_EX_RTLREADING = $2000;
  884. WS_EX_STATICEDGE = $20000;
  885. WS_EX_TOOLWINDOW = $80;
  886. WS_EX_TOPMOST = $8;
  887. WS_EX_TRANSPARENT = $20;
  888. WS_EX_WINDOWEDGE = $100;
  889. { CreateWindowStation }
  890. WINSTA_ACCESSCLIPBOARD = $4;
  891. WINSTA_ACCESSGLOBALATOMS = $20;
  892. WINSTA_CREATEDESKTOP = $8;
  893. WINSTA_ENUMDESKTOPS = $1;
  894. WINSTA_ENUMERATE = $100;
  895. WINSTA_EXITWINDOWS = $40;
  896. WINSTA_READATTRIBUTES = $2;
  897. WINSTA_READSCREEN = $200;
  898. WINSTA_WRITEATTRIBUTES = $10;
  899. { DdeCallback }
  900. { DdeClientTransaction }
  901. { DdeEnableCallback }
  902. { DdeGetLastError }
  903. { DdeInitialize }
  904. { DdeNameService }
  905. { DebugProc }
  906. WH_CALLWNDPROC = 4;
  907. WH_CALLWNDPROCRET = 12;
  908. WH_CBT = 5;
  909. WH_DEBUG = 9;
  910. WH_GETMESSAGE = 3;
  911. WH_JOURNALPLAYBACK = 1;
  912. WH_JOURNALRECORD = 0;
  913. WH_KEYBOARD = 2;
  914. WH_MOUSE = 7;
  915. WH_MSGFILTER = -(1);
  916. WH_SHELL = 10;
  917. WH_SYSMSGFILTER = 6;
  918. { already defined above !!
  919. #define WH_MSGFILTER (-1) }
  920. WH_FOREGROUNDIDLE = 11;
  921. { DefineDosDevice }
  922. DDD_RAW_TARGET_PATH = 1;
  923. DDD_REMOVE_DEFINITION = 2;
  924. DDD_EXACT_MATCH_ON_REMOVE = 4;
  925. { DeviceCapbilities }
  926. DC_BINNAMES = 12;
  927. DC_BINS = 6;
  928. DC_COPIES = 18;
  929. DC_DRIVER = 11;
  930. DC_DATATYPE_PRODUCED = 21;
  931. DC_DUPLEX = 7;
  932. DC_EMF_COMPLIANT = 20;
  933. DC_ENUMRESOLUTIONS = 13;
  934. DC_EXTRA = 9;
  935. DC_FIELDS = 1;
  936. DC_FILEDEPENDENCIES = 14;
  937. DC_MAXEXTENT = 5;
  938. DC_MINEXTENT = 4;
  939. DC_ORIENTATION = 17;
  940. DC_PAPERNAMES = 16;
  941. DC_PAPERS = 2;
  942. DC_PAPERSIZE = 3;
  943. DC_SIZE = 8;
  944. DC_TRUETYPE = 15;
  945. DCTT_BITMAP = $1;
  946. DCTT_DOWNLOAD = $2;
  947. DCTT_SUBDEV = $4;
  948. DC_VERSION = 10;
  949. DC_BINADJUST = 19;
  950. { already defined above !!
  951. #define DC_DATATYPE_PRODUCED (21)
  952. }
  953. { DeviceIoControl }
  954. { DlgDirList }
  955. DDL_ARCHIVE = 32;
  956. DDL_DIRECTORY = 16;
  957. DDL_DRIVES = 16384;
  958. DDL_EXCLUSIVE = 32768;
  959. DDL_HIDDEN = 2;
  960. DDL_READONLY = 1;
  961. DDL_READWRITE = 0;
  962. DDL_SYSTEM = 4;
  963. DDL_POSTMSGS = 8192;
  964. { DllEntryPoint }
  965. DLL_PROCESS_ATTACH = 1;
  966. DLL_THREAD_ATTACH = 2;
  967. DLL_PROCESS_DETACH = 0;
  968. DLL_THREAD_DETACH = 3;
  969. { DocumentProperties }
  970. DM_IN_BUFFER = 8;
  971. DM_MODIFY = 8;
  972. DM_IN_PROMPT = 4;
  973. DM_PROMPT = 4;
  974. DM_OUT_BUFFER = 2;
  975. DM_COPY = 2;
  976. DM_UPDATE = 1;
  977. { DrawAnimatedRects }
  978. IDANI_OPEN = 1;
  979. IDANI_CLOSE = 2;
  980. IDANI_CAPTION = 3;
  981. { DrawCaption }
  982. DC_ACTIVE = 1;
  983. DC_SMALLCAP = 2;
  984. DC_ICON = 4;
  985. DC_TEXT = 8;
  986. DC_INBUTTON = 16;
  987. DC_GRADIENT = 32;
  988. DC_BUTTONS = $1000;
  989. { DrawEdge }
  990. BDR_RAISEDINNER = 4;
  991. BDR_SUNKENINNER = 8;
  992. BDR_RAISEDOUTER = 1;
  993. BDR_SUNKENOUTER = 2;
  994. BDR_OUTER = BDR_RAISEDOUTER or BDR_SUNKENOUTER;
  995. BDR_INNER = BDR_RAISEDINNER or BDR_SUNKENINNER;
  996. BDR_RAISED = BDR_RAISEDOUTER or BDR_RAISEDINNER;
  997. BDR_SUNKEN = BDR_SUNKENOUTER or BDR_SUNKENINNER;
  998. EDGE_BUMP = 9;
  999. EDGE_ETCHED = 6;
  1000. EDGE_RAISED = 5;
  1001. EDGE_SUNKEN = 10;
  1002. BF_ADJUST = 8192;
  1003. BF_BOTTOM = 8;
  1004. BF_BOTTOMLEFT = 9;
  1005. BF_BOTTOMRIGHT = 12;
  1006. BF_DIAGONAL = 16;
  1007. BF_DIAGONAL_ENDBOTTOMLEFT = 25;
  1008. BF_DIAGONAL_ENDBOTTOMRIGHT = 28;
  1009. BF_DIAGONAL_ENDTOPLEFT = 19;
  1010. BF_DIAGONAL_ENDTOPRIGHT = 22;
  1011. BF_FLAT = 16384;
  1012. BF_LEFT = 1;
  1013. BF_MIDDLE = 2048;
  1014. BF_MONO = 32768;
  1015. BF_RECT = 15;
  1016. BF_RIGHT = 4;
  1017. BF_SOFT = 4096;
  1018. BF_TOP = 2;
  1019. BF_TOPLEFT = 3;
  1020. BF_TOPRIGHT = 6;
  1021. { DrawFrameControl }
  1022. DFC_BUTTON = 4;
  1023. DFC_CAPTION = 1;
  1024. DFC_MENU = 2;
  1025. DFC_SCROLL = 3;
  1026. DFCS_BUTTON3STATE = 8;
  1027. DFCS_BUTTONCHECK = 0;
  1028. DFCS_BUTTONPUSH = 16;
  1029. DFCS_BUTTONRADIO = 4;
  1030. DFCS_BUTTONRADIOIMAGE = 1;
  1031. DFCS_BUTTONRADIOMASK = 2;
  1032. DFCS_CAPTIONCLOSE = 0;
  1033. DFCS_CAPTIONHELP = 4;
  1034. DFCS_CAPTIONMAX = 2;
  1035. DFCS_CAPTIONMIN = 1;
  1036. DFCS_CAPTIONRESTORE = 3;
  1037. DFCS_MENUARROW = 0;
  1038. DFCS_MENUBULLET = 2;
  1039. DFCS_MENUCHECK = 1;
  1040. DFCS_SCROLLCOMBOBOX = 5;
  1041. DFCS_SCROLLDOWN = 1;
  1042. DFCS_SCROLLLEFT = 2;
  1043. DFCS_SCROLLRIGHT = 3;
  1044. DFCS_SCROLLSIZEGRIP = 8;
  1045. DFCS_SCROLLUP = 0;
  1046. DFCS_ADJUSTRECT = 8192;
  1047. DFCS_CHECKED = 1024;
  1048. DFCS_FLAT = 16384;
  1049. DFCS_INACTIVE = 256;
  1050. DFCS_MONO = 32768;
  1051. DFCS_PUSHED = 512;
  1052. DFCS_TRANSPARENT = 2048;
  1053. DFCS_HOT = 4096;
  1054. { DrawIconEx }
  1055. DI_COMPAT = 4;
  1056. DI_DEFAULTSIZE = 8;
  1057. DI_IMAGE = 2;
  1058. DI_MASK = 1;
  1059. DI_NORMAL = 3;
  1060. { DrawState }
  1061. DST_BITMAP = 4;
  1062. DST_COMPLEX = 0;
  1063. DST_ICON = 3;
  1064. DST_PREFIXTEXT = 2;
  1065. DST_TEXT = 1;
  1066. DSS_NORMAL = 0;
  1067. DSS_UNION = 16;
  1068. DSS_DISABLED = 32;
  1069. DSS_MONO = 128;
  1070. DSS_HIDEPREFIX = 512;
  1071. DSS_PREFIXONLY = 1024;
  1072. DSS_RIGHT = 32768;
  1073. { DrawStatusText }
  1074. SBT_NOBORDERS = 256;
  1075. SBT_OWNERDRAW = 4096;
  1076. SBT_POPOUT = 512;
  1077. SBT_RTLREADING = 1024;
  1078. { DrawText, DrawTextEx }
  1079. DT_BOTTOM = 8;
  1080. DT_CALCRECT = 1024;
  1081. DT_CENTER = 1;
  1082. DT_EDITCONTROL = 8192;
  1083. DT_END_ELLIPSIS = 32768;
  1084. DT_PATH_ELLIPSIS = 16384;
  1085. DT_EXPANDTABS = 64;
  1086. DT_EXTERNALLEADING = 512;
  1087. DT_LEFT = 0;
  1088. DT_MODIFYSTRING = 65536;
  1089. DT_NOCLIP = 256;
  1090. DT_NOPREFIX = 2048;
  1091. DT_RIGHT = 2;
  1092. DT_RTLREADING = 131072;
  1093. DT_SINGLELINE = 32;
  1094. DT_TABSTOP = 128;
  1095. DT_TOP = 0;
  1096. DT_VCENTER = 4;
  1097. DT_WORDBREAK = 16;
  1098. DT_INTERNAL = 4096;
  1099. DT_WORD_ELLIPSIS = $40000;
  1100. DT_HIDEPREFIX = $100000;
  1101. DT_PREFIXONLY = $200000;
  1102. { DuplicateHandle, MapViewOfFile }
  1103. DUPLICATE_CLOSE_SOURCE = 1;
  1104. DUPLICATE_SAME_ACCESS = 2;
  1105. FILE_MAP_ALL_ACCESS = $f001f;
  1106. FILE_MAP_READ = 4;
  1107. FILE_MAP_WRITE = 2;
  1108. FILE_MAP_COPY = 1;
  1109. MUTEX_ALL_ACCESS = $1f0001;
  1110. MUTEX_MODIFY_STATE = 1;
  1111. SYNCHRONIZE = $100000;
  1112. SEMAPHORE_ALL_ACCESS = $1f0003;
  1113. SEMAPHORE_MODIFY_STATE = 2;
  1114. EVENT_ALL_ACCESS = $1f0003;
  1115. EVENT_MODIFY_STATE = 2;
  1116. KEY_ALL_ACCESS = $f003f;
  1117. KEY_CREATE_LINK = 32;
  1118. KEY_CREATE_SUB_KEY = 4;
  1119. KEY_ENUMERATE_SUB_KEYS = 8;
  1120. KEY_EXECUTE = $20019;
  1121. KEY_NOTIFY = 16;
  1122. KEY_QUERY_VALUE = 1;
  1123. KEY_READ = $20019;
  1124. KEY_SET_VALUE = 2;
  1125. KEY_WOW64_64KEY = $0100;
  1126. KEY_WOW64_32KEY = $0200;
  1127. KEY_WRITE = $20006;
  1128. PROCESS_ALL_ACCESS = $1f0fff;
  1129. PROCESS_CREATE_PROCESS = 128;
  1130. PROCESS_CREATE_THREAD = 2;
  1131. PROCESS_DUP_HANDLE = 64;
  1132. PROCESS_QUERY_INFORMATION = 1024;
  1133. PROCESS_SET_INFORMATION = 512;
  1134. PROCESS_TERMINATE = 1;
  1135. PROCESS_VM_OPERATION = 8;
  1136. PROCESS_VM_READ = 16;
  1137. PROCESS_VM_WRITE = 32;
  1138. THREAD_ALL_ACCESS = $1f03ff;
  1139. THREAD_DIRECT_IMPERSONATION = 512;
  1140. THREAD_GET_CONTEXT = 8;
  1141. THREAD_IMPERSONATE = 256;
  1142. THREAD_QUERY_INFORMATION = 64;
  1143. THREAD_SET_CONTEXT = 16;
  1144. THREAD_SET_INFORMATION = 32;
  1145. THREAD_SET_THREAD_TOKEN = 128;
  1146. THREAD_SUSPEND_RESUME = 2;
  1147. THREAD_TERMINATE = 1;
  1148. { EditWordBreakProc }
  1149. WB_ISDELIMITER = 2;
  1150. WB_LEFT = 0;
  1151. WB_RIGHT = 1;
  1152. { EnableScrollBar }
  1153. SB_BOTH = 3;
  1154. SB_CTL = 2;
  1155. SB_HORZ = 0;
  1156. SB_VERT = 1;
  1157. ESB_DISABLE_BOTH = 3;
  1158. ESB_DISABLE_DOWN = 2;
  1159. ESB_DISABLE_LEFT = 1;
  1160. ESB_DISABLE_LTUP = 1;
  1161. ESB_DISABLE_RIGHT = 2;
  1162. ESB_DISABLE_RTDN = 2;
  1163. ESB_DISABLE_UP = 1;
  1164. ESB_ENABLE_BOTH = 0;
  1165. { Scroll Bar notifications }
  1166. SB_LINEUP = 0;
  1167. SB_LINEDOWN = 1;
  1168. SB_LINELEFT = 0;
  1169. SB_LINERIGHT = 1;
  1170. SB_PAGEUP = 2;
  1171. SB_PAGEDOWN = 3;
  1172. SB_PAGELEFT = 2;
  1173. SB_PAGERIGHT = 3;
  1174. SB_THUMBPOSITION = 4;
  1175. SB_THUMBTRACK = 5;
  1176. SB_ENDSCROLL = 8;
  1177. SB_LEFT = 6;
  1178. SB_RIGHT = 7;
  1179. SB_BOTTOM = 7;
  1180. SB_TOP = 6;
  1181. { EnumCalendarInfo }
  1182. ENUM_ALL_CALENDARS = dword(-1);
  1183. ENUM_CURRENT_SETTINGS = dword(-1);
  1184. ENUM_REGISTRY_SETTINGS = dword(-2);
  1185. { EnumDateFormats }
  1186. DATE_SHORTDATE = 1;
  1187. DATE_LONGDATE = 2;
  1188. { EnumDependentServices }
  1189. SERVICE_ACTIVE = 1;
  1190. SERVICE_INACTIVE = 2;
  1191. { EnumFontFamExProc }
  1192. DEVICE_FONTTYPE = 2;
  1193. RASTER_FONTTYPE = 1;
  1194. TRUETYPE_FONTTYPE = 4;
  1195. { EnumObjects, GetCurrentObject, GetObjectType }
  1196. OBJ_BRUSH = 2;
  1197. OBJ_PEN = 1;
  1198. OBJ_PAL = 5;
  1199. OBJ_FONT = 6;
  1200. OBJ_BITMAP = 7;
  1201. OBJ_EXTPEN = 11;
  1202. OBJ_REGION = 8;
  1203. OBJ_DC = 3;
  1204. OBJ_MEMDC = 10;
  1205. OBJ_METAFILE = 9;
  1206. OBJ_METADC = 4;
  1207. OBJ_ENHMETAFILE = 13;
  1208. OBJ_ENHMETADC = 12;
  1209. { EnumPrinters }
  1210. { EnumProtocols }
  1211. { EnumResLangProc }
  1212. // layout
  1213. LAYOUT_RTL = 1; // Right to left
  1214. LAYOUT_BTT = 2; // Bottom to top
  1215. LAYOUT_VBH = 4; // Vertical before horizontal
  1216. LAYOUT_ORIENTATIONMASK = (LAYOUT_RTL or LAYOUT_BTT or LAYOUT_VBH);
  1217. LAYOUT_BITMAPORIENTATIONPRESERVED = 8;
  1218. // DEVMODE dmDisplayFixedOutput
  1219. DMDFO_DEFAULT = 0;
  1220. DMDFO_STRETCH = 1;
  1221. DMDFO_CENTER = 2;
  1222. LOCALE_NAME_USER_DEFAULT : pwidechar = nil;
  1223. LOCALE_NAME_INVARIANT : pwidechar = '';
  1224. LOCALE_NAME_SYSTEM_DEFAULT : pwidechar = '!x-sys-default-locale';
  1225. //
  1226. // Predefined Resource Types
  1227. //
  1228. const
  1229. RT_CURSOR = MAKEINTRESOURCE(1);
  1230. RT_BITMAP = MAKEINTRESOURCE(2);
  1231. RT_ICON = MAKEINTRESOURCE(3);
  1232. RT_MENU = MAKEINTRESOURCE(4);
  1233. RT_DIALOG = MAKEINTRESOURCE(5);
  1234. RT_STRING = MAKEINTRESOURCE(6);
  1235. RT_FONTDIR = MAKEINTRESOURCE(7);
  1236. RT_FONT = MAKEINTRESOURCE(8);
  1237. RT_ACCELERATOR = MAKEINTRESOURCE(9);
  1238. RT_RCDATA = MAKEINTRESOURCE(10);
  1239. RT_MESSAGETABLE = MAKEINTRESOURCE(11);
  1240. DIFFERENCE = 11;
  1241. RT_GROUP_CURSOR = MAKEINTRESOURCE(ULONG_PTR(RT_CURSOR) + DIFFERENCE);
  1242. RT_GROUP_ICON = MAKEINTRESOURCE(ULONG_PTR(RT_ICON) + DIFFERENCE);
  1243. RT_VERSION = MAKEINTRESOURCE(16);
  1244. RT_DLGINCLUDE = MAKEINTRESOURCE(17);
  1245. RT_PLUGPLAY = MAKEINTRESOURCE(19);
  1246. RT_VXD = MAKEINTRESOURCE(20);
  1247. RT_ANICURSOR = MAKEINTRESOURCE(21);
  1248. RT_ANIICON = MAKEINTRESOURCE(22);
  1249. RT_HTML = MAKEINTRESOURCE(23);
  1250. RT_MANIFEST = MAKEINTRESOURCE(24);
  1251. { EnumServicesStatus }
  1252. const
  1253. SERVICE_WIN32 = 48;
  1254. SERVICE_DRIVER = 11;
  1255. { EnumSystemCodePages }
  1256. CP_INSTALLED = 1;
  1257. CP_SUPPORTED = 2;
  1258. { EnumSystemLocales }
  1259. LCID_INSTALLED = 1;
  1260. LCID_SUPPORTED = 2;
  1261. { EraseTape }
  1262. TAPE_ERASE_LONG = $1;
  1263. TAPE_ERASE_SHORT = 0;
  1264. { Escape }
  1265. SP_ERROR = -(1);
  1266. SP_OUTOFDISK = -(4);
  1267. SP_OUTOFMEMORY = -(5);
  1268. SP_USERABORT = -(3);
  1269. PHYSICALWIDTH = 110;
  1270. PHYSICALHEIGHT = 111;
  1271. PHYSICALOFFSETX = 112;
  1272. PHYSICALOFFSETY = 113;
  1273. SCALINGFACTORX = 114;
  1274. SCALINGFACTORY = 115;
  1275. QUERYESCSUPPORT = 8;
  1276. {ABORTDOC = 2; conflicts with AbortDoc function }
  1277. cABORTDOC = 2;
  1278. {ENDDOC = 11; conflicts with AbortDoc function }
  1279. cENDDOC = 11;
  1280. GETPHYSPAGESIZE = 12;
  1281. GETPRINTINGOFFSET = 13;
  1282. GETSCALINGFACTOR = 14;
  1283. NEWFRAME = 1;
  1284. NEXTBAND = 3;
  1285. PASSTHROUGH = 19;
  1286. {SETABORTPROC = 9; conflicts with AbortDoc function }
  1287. cSETABORTPROC = 9;
  1288. {STARTDOC = 10; conflicts with AbortDoc function }
  1289. cSTARTDOC = 10;
  1290. { EscapeCommFunction }
  1291. CLRDTR = 6;
  1292. CLRRTS = 4;
  1293. SETDTR = 5;
  1294. SETRTS = 3;
  1295. SETXOFF = 1;
  1296. SETXON = 2;
  1297. SETBREAK = 8;
  1298. CLRBREAK = 9;
  1299. { WM_QUERYENDSESSION/WM_ENDSESSION }
  1300. ENDSESSION_LOGOFF = dword($80000000); // all winver >= 0x400
  1301. ENDSESSION_CRITICAL = dword($40000000);
  1302. ENDSESSION_CLOSEAPP = dword($00000001);
  1303. { ExitWindowsEx }
  1304. EWX_FORCE = 4;
  1305. EWX_LOGOFF = 0;
  1306. EWX_POWEROFF = 8;
  1307. EWX_REBOOT = 2;
  1308. EWX_SHUTDOWN = 1;
  1309. EWX_FORCEIFHUNG = 16;
  1310. EWX_QUICKRESOLVE= 32; // win32_winnt>=0x500
  1311. EWX_RESTARTAPPS = 64; // win32_winnt>=0x600
  1312. { ExtFloodFill }
  1313. FLOODFILLBORDER = 0;
  1314. FLOODFILLSURFACE = 1;
  1315. { ExtTextOut }
  1316. ETO_CLIPPED = 4;
  1317. ETO_GLYPH_INDEX = 16;
  1318. ETO_OPAQUE = 2;
  1319. ETO_RTLREADING = 128;
  1320. { FillConsoleOutputAttribute }
  1321. FOREGROUND_BLUE = 1;
  1322. FOREGROUND_GREEN = 2;
  1323. FOREGROUND_RED = 4;
  1324. FOREGROUND_INTENSITY = 8;
  1325. BACKGROUND_BLUE = 16;
  1326. BACKGROUND_GREEN = 32;
  1327. BACKGROUND_RED = 64;
  1328. BACKGROUND_INTENSITY = 128;
  1329. { FindFirstChangeNotification }
  1330. FILE_NOTIFY_CHANGE_FILE_NAME = 1;
  1331. FILE_NOTIFY_CHANGE_DIR_NAME = 2;
  1332. FILE_NOTIFY_CHANGE_ATTRIBUTES = 4;
  1333. FILE_NOTIFY_CHANGE_SIZE = 8;
  1334. FILE_NOTIFY_CHANGE_LAST_WRITE = 16;
  1335. FILE_NOTIFY_CHANGE_LAST_ACCESS = 32;
  1336. FILE_NOTIFY_CHANGE_CREATION = 64;
  1337. FILE_NOTIFY_CHANGE_SECURITY = 256;
  1338. { FileNotifyInformation }
  1339. FILE_ACTION_ADDED = 1;
  1340. FILE_ACTION_REMOVED = 2;
  1341. FILE_ACTION_MODIFIED = 3;
  1342. FILE_ACTION_RENAMED_OLD_NAME = 4;
  1343. FILE_ACTION_RENAMED_NEW_NAME = 5;
  1344. { FindFirstPrinterChangeNotification }
  1345. { FindNextPrinterNotification }
  1346. { FMExtensionProc }
  1347. { FoldString }
  1348. MAP_FOLDCZONE = 16;
  1349. MAP_FOLDDIGITS = 128;
  1350. MAP_PRECOMPOSED = 32;
  1351. MAP_COMPOSITE = 64;
  1352. { ForegroundIdleProc }
  1353. HC_ACTION = 0;
  1354. { FormatMessage }
  1355. FORMAT_MESSAGE_ALLOCATE_BUFFER = 256;
  1356. FORMAT_MESSAGE_IGNORE_INSERTS = 512;
  1357. FORMAT_MESSAGE_FROM_STRING = 1024;
  1358. FORMAT_MESSAGE_FROM_HMODULE = 2048;
  1359. FORMAT_MESSAGE_FROM_SYSTEM = 4096;
  1360. FORMAT_MESSAGE_ARGUMENT_ARRAY = 8192;
  1361. FORMAT_MESSAGE_MAX_WIDTH_MASK = 255;
  1362. { GdiComment }
  1363. GDICOMMENT_WINDOWS_METAFILE = -(2147483647);
  1364. GDICOMMENT_BEGINGROUP = 2;
  1365. GDICOMMENT_ENDGROUP = 3;
  1366. GDICOMMENT_MULTIFORMATS = 1073741828;
  1367. GDICOMMENT_IDENTIFIER = 1128875079;
  1368. { GenerateConsoleCtrlEvent, HandlerRoutine }
  1369. CTRL_C_EVENT = 0;
  1370. CTRL_BREAK_EVENT = 1;
  1371. CTRL_CLOSE_EVENT = 2;
  1372. CTRL_LOGOFF_EVENT = 5;
  1373. CTRL_SHUTDOWN_EVENT = 6;
  1374. { GetAddressByName }
  1375. { GetArcDirection }
  1376. AD_COUNTERCLOCKWISE = 1;
  1377. AD_CLOCKWISE = 2;
  1378. { GetBinaryTypes }
  1379. SCS_32BIT_BINARY = 0;
  1380. SCS_DOS_BINARY = 1;
  1381. SCS_OS216_BINARY = 5;
  1382. SCS_PIF_BINARY = 3;
  1383. SCS_POSIX_BINARY = 4;
  1384. SCS_WOW_BINARY = 2;
  1385. { GetBoundsRect, SetBoundsRect }
  1386. DCB_DISABLE = 8;
  1387. DCB_ENABLE = 4;
  1388. DCB_RESET = 1;
  1389. DCB_SET = 3;
  1390. DCB_ACCUMULATE = 2;
  1391. { GetCharacterPlacement, GetFontLanguageInfo }
  1392. GCP_DBCS = 1;
  1393. GCP_ERROR = $8000;
  1394. GCP_CLASSIN = $80000;
  1395. GCP_DIACRITIC = 256;
  1396. GCP_DISPLAYZWG = $400000;
  1397. GCP_GLYPHSHAPE = 16;
  1398. GCP_JUSTIFY = $10000;
  1399. GCP_JUSTIFYIN = $200000;
  1400. GCP_KASHIDA = 1024;
  1401. GCP_LIGATE = 32;
  1402. GCP_MAXEXTENT = $100000;
  1403. GCP_NEUTRALOVERRIDE = $2000000;
  1404. GCP_NUMERICOVERRIDE = $1000000;
  1405. GCP_NUMERICSLATIN = $4000000;
  1406. GCP_NUMERICSLOCAL = $8000000;
  1407. GCP_REORDER = 2;
  1408. GCP_SYMSWAPOFF = $800000;
  1409. GCP_USEKERNING = 8;
  1410. FLI_GLYPHS = $40000;
  1411. FLI_MASK = $103b;
  1412. { GetClassLong, GetClassWord }
  1413. GCW_ATOM = -(32);
  1414. GCL_CBCLSEXTRA = -(20);
  1415. GCL_CBWNDEXTRA = -(18);
  1416. GCL_HBRBACKGROUND = -(10);
  1417. GCL_HCURSOR = -(12);
  1418. GCL_HICON = -(14);
  1419. GCL_HICONSM = -(34);
  1420. GCL_HMODULE = -(16);
  1421. GCL_MENUNAME = -(8);
  1422. GCL_STYLE = -(26);
  1423. GCL_WNDPROC = -(24);
  1424. { GetClipboardFormat, SetClipboardData }
  1425. CF_BITMAP = 2;
  1426. CF_DIB = 8;
  1427. CF_PALETTE = 9;
  1428. CF_ENHMETAFILE = 14;
  1429. CF_METAFILEPICT = 3;
  1430. CF_OEMTEXT = 7;
  1431. CF_TEXT = 1;
  1432. CF_UNICODETEXT = 13;
  1433. CF_DIF = 5;
  1434. CF_DSPBITMAP = 130;
  1435. CF_DSPENHMETAFILE = 142;
  1436. CF_DSPMETAFILEPICT = 131;
  1437. CF_DSPTEXT = 129;
  1438. CF_GDIOBJFIRST = 768;
  1439. CF_GDIOBJLAST = 1023;
  1440. CF_HDROP = 15;
  1441. CF_LOCALE = 16;
  1442. CF_OWNERDISPLAY = 128;
  1443. CF_PENDATA = 10;
  1444. CF_PRIVATEFIRST = 512;
  1445. CF_PRIVATELAST = 767;
  1446. CF_RIFF = 11;
  1447. CF_SYLK = 4;
  1448. CF_WAVE = 12;
  1449. CF_TIFF = 6;
  1450. { GetCommMask }
  1451. EV_BREAK = 64;
  1452. EV_CTS = 8;
  1453. EV_DSR = 16;
  1454. EV_ERR = 128;
  1455. EV_EVENT1 = 2048;
  1456. EV_EVENT2 = 4096;
  1457. EV_PERR = 512;
  1458. EV_RING = 256;
  1459. EV_RLSD = 32;
  1460. EV_RX80FULL = 1024;
  1461. EV_RXCHAR = 1;
  1462. EV_RXFLAG = 2;
  1463. EV_TXEMPTY = 4;
  1464. { GetCommModemStatus }
  1465. MS_CTS_ON = $10;
  1466. MS_DSR_ON = $20;
  1467. MS_RING_ON = $40;
  1468. MS_RLSD_ON = $80;
  1469. { GetComputerName }
  1470. MAX_COMPUTERNAME_LENGTH = 15;
  1471. { GetConsoleMode }
  1472. ENABLE_LINE_INPUT = 2;
  1473. ENABLE_ECHO_INPUT = 4;
  1474. ENABLE_PROCESSED_INPUT = 1;
  1475. ENABLE_WINDOW_INPUT = 8;
  1476. ENABLE_MOUSE_INPUT = 16;
  1477. ENABLE_PROCESSED_OUTPUT = 1;
  1478. ENABLE_WRAP_AT_EOL_OUTPUT = 2;
  1479. { GetCPInfo }
  1480. CP_ACP = 0;
  1481. CP_MACCP = 2;
  1482. CP_OEMCP = 1;
  1483. { GetDateFormat }
  1484. { already defined above !!
  1485. #define DATE_SHORTDATE (1)
  1486. #define DATE_LONGDATE (2)
  1487. }
  1488. DATE_USE_ALT_CALENDAR = 4;
  1489. { GetDCEx }
  1490. DCX_WINDOW = $1;
  1491. DCX_CACHE = $2;
  1492. DCX_PARENTCLIP = $20;
  1493. DCX_CLIPSIBLINGS = $10;
  1494. DCX_CLIPCHILDREN = $8;
  1495. DCX_NORESETATTRS = $4;
  1496. DCX_LOCKWINDOWUPDATE = $400;
  1497. DCX_EXCLUDERGN = $40;
  1498. DCX_INTERSECTRGN = $80;
  1499. DCX_VALIDATE = $200000;
  1500. { GetDeviceCaps }
  1501. DRIVERVERSION = 0;
  1502. TECHNOLOGY = 2;
  1503. DT_PLOTTER = 0;
  1504. DT_RASDISPLAY = 1;
  1505. DT_RASPRINTER = 2;
  1506. DT_RASCAMERA = 3;
  1507. DT_CHARSTREAM = 4;
  1508. DT_METAFILE = 5;
  1509. DT_DISPFILE = 6;
  1510. HORZSIZE = 4;
  1511. VERTSIZE = 6;
  1512. HORZRES = 8;
  1513. VERTRES = 10;
  1514. LOGPIXELSX = 88;
  1515. LOGPIXELSY = 90;
  1516. BITSPIXEL = 12;
  1517. PLANES = 14;
  1518. NUMBRUSHES = 16;
  1519. NUMPENS = 18;
  1520. NUMFONTS = 22;
  1521. NUMCOLORS = 24;
  1522. ASPECTX = 40;
  1523. ASPECTY = 42;
  1524. ASPECTXY = 44;
  1525. PDEVICESIZE = 26;
  1526. CLIPCAPS = 36;
  1527. SIZEPALETTE = 104;
  1528. NUMRESERVED = 106;
  1529. COLORRES = 108;
  1530. { already defined above !!
  1531. #define PHYSICALWIDTH (110)
  1532. #define PHYSICALHEIGHT (111)
  1533. #define PHYSICALOFFSETX (112)
  1534. #define PHYSICALOFFSETY (113)
  1535. #define SCALINGFACTORX (114)
  1536. #define SCALINGFACTORY (115)
  1537. }
  1538. VREFRESH = 116;
  1539. DESKTOPHORZRES = 118;
  1540. DESKTOPVERTRES = 117;
  1541. BLTALIGNMENT = 119;
  1542. RASTERCAPS = 38;
  1543. RC_BANDING = 2;
  1544. RC_BITBLT = 1;
  1545. RC_BITMAP64 = 8;
  1546. RC_DI_BITMAP = 128;
  1547. RC_DIBTODEV = 512;
  1548. RC_FLOODFILL = 4096;
  1549. RC_GDI20_OUTPUT = 16;
  1550. RC_PALETTE = 256;
  1551. RC_SCALING = 4;
  1552. RC_STRETCHBLT = 2048;
  1553. RC_STRETCHDIB = 8192;
  1554. CURVECAPS = 28;
  1555. CC_NONE = 0;
  1556. CC_CIRCLES = 1;
  1557. CC_PIE = 2;
  1558. CC_CHORD = 4;
  1559. CC_ELLIPSES = 8;
  1560. CC_WIDE = 16;
  1561. CC_STYLED = 32;
  1562. CC_WIDESTYLED = 64;
  1563. CC_INTERIORS = 128;
  1564. CC_ROUNDRECT = 256;
  1565. LINECAPS = 30;
  1566. LC_NONE = 0;
  1567. LC_POLYLINE = 2;
  1568. LC_MARKER = 4;
  1569. LC_POLYMARKER = 8;
  1570. LC_WIDE = 16;
  1571. LC_STYLED = 32;
  1572. LC_WIDESTYLED = 64;
  1573. LC_INTERIORS = 128;
  1574. POLYGONALCAPS = 32;
  1575. PC_NONE = 0;
  1576. PC_POLYGON = 1;
  1577. PC_RECTANGLE = 2;
  1578. PC_WINDPOLYGON = 4;
  1579. PC_SCANLINE = 8;
  1580. PC_WIDE = 16;
  1581. PC_STYLED = 32;
  1582. PC_WIDESTYLED = 64;
  1583. PC_INTERIORS = 128;
  1584. TEXTCAPS = 34;
  1585. TC_OP_CHARACTER = 1;
  1586. TC_OP_STROKE = 2;
  1587. TC_CP_STROKE = 4;
  1588. TC_CR_90 = 8;
  1589. TC_CR_ANY = 16;
  1590. TC_SF_X_YINDEP = 32;
  1591. TC_SA_DOUBLE = 64;
  1592. TC_SA_INTEGER = 128;
  1593. TC_SA_CONTIN = 256;
  1594. TC_EA_DOUBLE = 512;
  1595. TC_IA_ABLE = 1024;
  1596. TC_UA_ABLE = 2048;
  1597. TC_SO_ABLE = 4096;
  1598. TC_RA_ABLE = 8192;
  1599. TC_VA_ABLE = 16384;
  1600. TC_RESERVED = 32768;
  1601. TC_SCROLLBLT = 65536;
  1602. PC_PATHS = 512;
  1603. { GetDriveType }
  1604. DRIVE_REMOVABLE = 2;
  1605. DRIVE_FIXED = 3;
  1606. DRIVE_REMOTE = 4;
  1607. DRIVE_CDROM = 5;
  1608. DRIVE_RAMDISK = 6;
  1609. DRIVE_UNKNOWN = 0;
  1610. DRIVE_NO_ROOT_DIR = 1;
  1611. { GetExceptionCode }
  1612. EXCEPTION_ACCESS_VIOLATION = $c0000005;
  1613. EXCEPTION_BREAKPOINT = $80000003;
  1614. EXCEPTION_DATATYPE_MISALIGNMENT = $80000002;
  1615. EXCEPTION_SINGLE_STEP = $80000004;
  1616. EXCEPTION_ARRAY_BOUNDS_EXCEEDED = $c000008c;
  1617. EXCEPTION_FLT_DENORMAL_OPERAND = $c000008d;
  1618. EXCEPTION_FLT_DIVIDE_BY_ZERO = $c000008e;
  1619. EXCEPTION_FLT_INEXACT_RESULT = $c000008f;
  1620. EXCEPTION_FLT_INVALID_OPERATION = $c0000090;
  1621. EXCEPTION_FLT_OVERFLOW = $c0000091;
  1622. EXCEPTION_FLT_STACK_CHECK = $c0000092;
  1623. EXCEPTION_FLT_UNDERFLOW = $c0000093;
  1624. EXCEPTION_INT_DIVIDE_BY_ZERO = $c0000094;
  1625. EXCEPTION_INT_OVERFLOW = $c0000095;
  1626. EXCEPTION_INVALID_HANDLE = $c0000008;
  1627. EXCEPTION_PRIV_INSTRUCTION = $c0000096;
  1628. EXCEPTION_NONCONTINUABLE_EXCEPTION = $c0000025;
  1629. EXCEPTION_NONCONTINUABLE = $1;
  1630. EXCEPTION_STACK_OVERFLOW = $c00000fd;
  1631. EXCEPTION_INVALID_DISPOSITION = $c0000026;
  1632. EXCEPTION_IN_PAGE_ERROR = $c0000006;
  1633. EXCEPTION_ILLEGAL_INSTRUCTION = $c000001d;
  1634. EXCEPTION_POSSIBLE_DEADLOCK = $c0000194;
  1635. { GetFileType }
  1636. FILE_TYPE_UNKNOWN = 0;
  1637. FILE_TYPE_DISK = 1;
  1638. FILE_TYPE_CHAR = 2;
  1639. FILE_TYPE_PIPE = 3;
  1640. { GetGlyphOutline }
  1641. GGO_BITMAP = 1;
  1642. GGO_NATIVE = 2;
  1643. GGO_METRICS = 0;
  1644. GGO_GRAY2_BITMAP = 4;
  1645. GGO_GRAY4_BITMAP = 5;
  1646. GGO_GRAY8_BITMAP = 6;
  1647. GDI_ERROR = $ffffffff;
  1648. { GetGraphicsMode }
  1649. GM_COMPATIBLE = 1;
  1650. GM_ADVANCED = 2;
  1651. { GetHandleInformation }
  1652. HANDLE_FLAG_INHERIT = 1;
  1653. HANDLE_FLAG_PROTECT_FROM_CLOSE = 2;
  1654. { GetIconInfo }
  1655. IDC_ARROW = MAKEINTRESOURCE(32512);
  1656. IDC_IBEAM = MAKEINTRESOURCE(32513);
  1657. IDC_WAIT = MAKEINTRESOURCE(32514);
  1658. IDC_CROSS = MAKEINTRESOURCE(32515);
  1659. IDC_UPARROW = MAKEINTRESOURCE(32516);
  1660. IDC_SIZENWSE = MAKEINTRESOURCE(32642);
  1661. IDC_SIZENESW = MAKEINTRESOURCE(32643);
  1662. IDC_SIZEWE = MAKEINTRESOURCE(32644);
  1663. IDC_SIZENS = MAKEINTRESOURCE(32645);
  1664. IDC_SIZEALL = MAKEINTRESOURCE(32646);
  1665. IDC_NO = MAKEINTRESOURCE(32648);
  1666. IDC_APPSTARTING = MAKEINTRESOURCE(32650);
  1667. IDC_HELP = MAKEINTRESOURCE(32651);
  1668. IDI_APPLICATION = MAKEINTRESOURCE(32512);
  1669. IDI_HAND = MAKEINTRESOURCE(32513);
  1670. IDI_QUESTION = MAKEINTRESOURCE(32514);
  1671. IDI_EXCLAMATION = MAKEINTRESOURCE(32515);
  1672. IDI_ASTERISK = MAKEINTRESOURCE(32516);
  1673. IDI_WINLOGO = MAKEINTRESOURCE(32517);
  1674. IDC_SIZE = MAKEINTRESOURCE(32640);
  1675. IDC_ICON = MAKEINTRESOURCE(32641);
  1676. IDC_HAND = MAKEINTRESOURCE(32649);
  1677. { GetMapMode }
  1678. const
  1679. MM_ANISOTROPIC = 8;
  1680. MM_HIENGLISH = 5;
  1681. MM_HIMETRIC = 3;
  1682. MM_ISOTROPIC = 7;
  1683. MM_LOENGLISH = 4;
  1684. MM_LOMETRIC = 2;
  1685. MM_TEXT = 1;
  1686. MM_TWIPS = 6;
  1687. { GetMenuDefaultItem }
  1688. GMDI_GOINTOPOPUPS = $2;
  1689. GMDI_USEDISABLED = $1;
  1690. { PeekMessage }
  1691. PM_NOREMOVE = 0;
  1692. PM_REMOVE = 1;
  1693. PM_NOYIELD = 2;
  1694. { GetNamedPipeHandleState }
  1695. { PIPE_NOWAIT = 1; already above }
  1696. { PIPE_READMODE_MESSAGE = 2;already above }
  1697. { GetNamedPipeInfo }
  1698. PIPE_CLIENT_END = 0;
  1699. PIPE_SERVER_END = 1;
  1700. { PIPE_TYPE_MESSAGE = 4;already above }
  1701. { GetNextWindow, GetWindow }
  1702. GW_HWNDNEXT = 2;
  1703. GW_HWNDPREV = 3;
  1704. GW_CHILD = 5;
  1705. GW_HWNDFIRST = 0;
  1706. GW_HWNDLAST = 1;
  1707. GW_OWNER = 4;
  1708. { GetPath }
  1709. PT_MOVETO = 6;
  1710. PT_LINETO = 2;
  1711. PT_BEZIERTO = 4;
  1712. PT_CLOSEFIGURE = 1;
  1713. { GetProcessShutdownParameters }
  1714. SHUTDOWN_NORETRY = 1;
  1715. { GetQueueStatus }
  1716. QS_ALLEVENTS = 191;
  1717. QS_ALLINPUT = 255;
  1718. QS_HOTKEY = 128;
  1719. QS_INPUT = 7;
  1720. QS_KEY = 1;
  1721. QS_MOUSE = 6;
  1722. QS_MOUSEBUTTON = 4;
  1723. QS_MOUSEMOVE = 2;
  1724. QS_PAINT = 32;
  1725. QS_POSTMESSAGE = 8;
  1726. QS_SENDMESSAGE = 64;
  1727. QS_TIMER = 16;
  1728. { GetScrollInfo, SetScrollInfo }
  1729. SIF_ALL = 23;
  1730. SIF_PAGE = 2;
  1731. SIF_POS = 4;
  1732. SIF_RANGE = 1;
  1733. SIF_DISABLENOSCROLL = 8;
  1734. { GetStdHandle }
  1735. { !!! The 3 following constants are NOT handles. They remain 32-bit on Win64. }
  1736. STD_INPUT_HANDLE = DWORD(-10);
  1737. STD_OUTPUT_HANDLE = DWORD(-11);
  1738. STD_ERROR_HANDLE = DWORD(-12);
  1739. INVALID_HANDLE_VALUE = HANDLE(-1);
  1740. INVALID_FILE_SIZE = DWORD(-1);
  1741. INVALID_SET_FILE_POINTER = DWORD(-1);
  1742. INVALID_FILE_ATTRIBUTES = DWORD(-1);
  1743. { GetStockObject }
  1744. const
  1745. BLACK_BRUSH = 4;
  1746. DKGRAY_BRUSH = 3;
  1747. GRAY_BRUSH = 2;
  1748. HOLLOW_BRUSH = 5;
  1749. LTGRAY_BRUSH = 1;
  1750. NULL_BRUSH = 5;
  1751. WHITE_BRUSH = 0;
  1752. BLACK_PEN = 7;
  1753. NULL_PEN = 8;
  1754. WHITE_PEN = 6;
  1755. ANSI_FIXED_FONT = 11;
  1756. ANSI_VAR_FONT = 12;
  1757. DEVICE_DEFAULT_FONT = 14;
  1758. DEFAULT_GUI_FONT = 17;
  1759. OEM_FIXED_FONT = 10;
  1760. SYSTEM_FONT = 13;
  1761. SYSTEM_FIXED_FONT = 16;
  1762. DEFAULT_PALETTE = 15;
  1763. { GetStringTypeA }
  1764. CT_CTYPE1 = 1;
  1765. CT_CTYPE2 = 2;
  1766. CT_CTYPE3 = 4;
  1767. C1_UPPER = 1;
  1768. C1_LOWER = 2;
  1769. C1_DIGIT = 4;
  1770. C1_SPACE = 8;
  1771. C1_PUNCT = 16;
  1772. C1_CNTRL = 32;
  1773. C1_BLANK = 64;
  1774. C1_XDIGIT = 128;
  1775. C1_ALPHA = 256;
  1776. C2_LEFTTORIGHT = 1;
  1777. C2_RIGHTTOLEFT = 2;
  1778. C2_EUROPENUMBER = 3;
  1779. C2_EUROPESEPARATOR = 4;
  1780. C2_EUROPETERMINATOR = 5;
  1781. C2_ARABICNUMBER = 6;
  1782. C2_COMMONSEPARATOR = 7;
  1783. C2_BLOCKSEPARATOR = 8;
  1784. C2_SEGMENTSEPARATOR = 9;
  1785. C2_WHITESPACE = 10;
  1786. C2_OTHERNEUTRAL = 11;
  1787. C2_NOTAPPLICABLE = 0;
  1788. C3_NONSPACING = 1;
  1789. C3_DIACRITIC = 2;
  1790. C3_VOWELMARK = 4;
  1791. C3_SYMBOL = 8;
  1792. C3_KATAKANA = 16;
  1793. C3_HIRAGANA = 32;
  1794. C3_HALFWIDTH = 64;
  1795. C3_FULLWIDTH = 128;
  1796. C3_IDEOGRAPH = 256;
  1797. C3_KASHIDA = 512;
  1798. C3_ALPHA = 32768;
  1799. C3_NOTAPPLICABLE = 0;
  1800. { GetSysColor }
  1801. COLOR_3DDKSHADOW = 21;
  1802. COLOR_3DFACE = 15;
  1803. COLOR_3DHILIGHT = 20;
  1804. COLOR_3DLIGHT = 22;
  1805. COLOR_BTNHILIGHT = 20;
  1806. COLOR_3DSHADOW = 16;
  1807. COLOR_ACTIVEBORDER = 10;
  1808. COLOR_ACTIVECAPTION = 2;
  1809. COLOR_APPWORKSPACE = 12;
  1810. COLOR_BACKGROUND = 1;
  1811. COLOR_DESKTOP = 1;
  1812. COLOR_BTNFACE = 15;
  1813. COLOR_BTNHIGHLIGHT = 20;
  1814. COLOR_BTNSHADOW = 16;
  1815. COLOR_BTNTEXT = 18;
  1816. COLOR_CAPTIONTEXT = 9;
  1817. COLOR_GRAYTEXT = 17;
  1818. COLOR_HIGHLIGHT = 13;
  1819. COLOR_HIGHLIGHTTEXT = 14;
  1820. COLOR_INACTIVEBORDER = 11;
  1821. COLOR_INACTIVECAPTION = 3;
  1822. COLOR_INACTIVECAPTIONTEXT = 19;
  1823. COLOR_INFOBK = 24;
  1824. COLOR_INFOTEXT = 23;
  1825. COLOR_MENU = 4;
  1826. COLOR_MENUTEXT = 7;
  1827. COLOR_SCROLLBAR = 0;
  1828. COLOR_WINDOW = 5;
  1829. COLOR_WINDOWFRAME = 6;
  1830. COLOR_WINDOWTEXT = 8;
  1831. { GetSystemMetrics }
  1832. SM_CYMIN = 29;
  1833. SM_CXMIN = 28;
  1834. SM_ARRANGE = 56;
  1835. SM_CLEANBOOT = 67;
  1836. { The right value for SM_CEMETRICS for NT 3.5 is 75. For Windows 95
  1837. and NT 4.0, it is 76. The meaning is undocumented, anyhow.
  1838. win2000=83,XP=90, vista/w7=93, but I suspect that is not properly
  1839. updated for win7 (which should be 96) in platform SDK 7.
  1840. It seems to be the highest SM_ constant occupied.
  1841. }
  1842. SM_CMETRICS = 76;
  1843. SM_CMOUSEBUTTONS = 43;
  1844. SM_CXBORDER = 5;
  1845. SM_CYBORDER = 6;
  1846. SM_CXCURSOR = 13;
  1847. SM_CYCURSOR = 14;
  1848. SM_CXDLGFRAME = 7;
  1849. SM_CYDLGFRAME = 8;
  1850. SM_CXDOUBLECLK = 36;
  1851. SM_CYDOUBLECLK = 37;
  1852. SM_CXDRAG = 68;
  1853. SM_CYDRAG = 69;
  1854. SM_CXEDGE = 45;
  1855. SM_CYEDGE = 46;
  1856. SM_CXFIXEDFRAME = 7;
  1857. SM_CYFIXEDFRAME = 8;
  1858. SM_CXFRAME = 32;
  1859. SM_CYFRAME = 33;
  1860. SM_CXFULLSCREEN = 16;
  1861. SM_CYFULLSCREEN = 17;
  1862. SM_CXHSCROLL = 21;
  1863. SM_CYHSCROLL = 3;
  1864. SM_CXHTHUMB = 10;
  1865. SM_CXICON = 11;
  1866. SM_CYICON = 12;
  1867. SM_CXICONSPACING = 38;
  1868. SM_CYICONSPACING = 39;
  1869. SM_CXMAXIMIZED = 61;
  1870. SM_CYMAXIMIZED = 62;
  1871. SM_CXMAXTRACK = 59;
  1872. SM_CYMAXTRACK = 60;
  1873. SM_CXMENUCHECK = 71;
  1874. SM_CYMENUCHECK = 72;
  1875. SM_CXMENUSIZE = 54;
  1876. SM_CYMENUSIZE = 55;
  1877. SM_CXMINIMIZED = 57;
  1878. SM_CYMINIMIZED = 58;
  1879. SM_CXMINSPACING = 47;
  1880. SM_CYMINSPACING = 48;
  1881. SM_CXMINTRACK = 34;
  1882. SM_CYMINTRACK = 35;
  1883. SM_CXSCREEN = 0;
  1884. SM_CYSCREEN = 1;
  1885. SM_CXSIZE = 30;
  1886. SM_CYSIZE = 31;
  1887. SM_CXSIZEFRAME = 32;
  1888. SM_CYSIZEFRAME = 33;
  1889. SM_CXSMICON = 49;
  1890. SM_CYSMICON = 50;
  1891. SM_CXSMSIZE = 52;
  1892. SM_CYSMSIZE = 53;
  1893. SM_CXVSCROLL = 2;
  1894. {SM_CYHSCROLL = 3;already above }
  1895. {SM_CXHSCROLL = 21;already above }
  1896. SM_CYVSCROLL = 20;
  1897. SM_CYVTHUMB = 9;
  1898. SM_CYCAPTION = 4;
  1899. SM_CYKANJIWINDOW = 18;
  1900. SM_CYMENU = 15;
  1901. SM_CYSMCAPTION = 51;
  1902. SM_DBCSENABLED = 42;
  1903. SM_DEBUG = 22;
  1904. SM_MENUDROPALIGNMENT = 40;
  1905. SM_MIDEASTENABLED = 74;
  1906. SM_MOUSEPRESENT = 19;
  1907. SM_MOUSEWHEELPRESENT = 75; // w2k+
  1908. SM_NETWORK = 63;
  1909. SM_PENWINDOWS = 41;
  1910. SM_SECURE = 44;
  1911. SM_SHOWSOUNDS = 70;
  1912. SM_SLOWMACHINE = 73;
  1913. SM_SWAPBUTTON = 23;
  1914. SM_XVIRTUALSCREEN = 76; // w2k+
  1915. SM_YVIRTUALSCREEN = 77; // w2k+
  1916. SM_CXVIRTUALSCREEN = 78; // w2k+
  1917. SM_CYVIRTUALSCREEN = 79; // w2k+
  1918. SM_CMONITORS = 80; // w2k+
  1919. SM_SAMEDISPLAYFORMAT = 81; // w2k+
  1920. SM_IMMENABLED = 82; // w2k+
  1921. SM_CXFOCUSBORDER = 83; // w2k+
  1922. SM_CYFOCUSBORDER = 84; // w2k+
  1923. SM_TABLETPC = 86; // WinXP+
  1924. SM_MEDIACENTER = 87; // WinXP+
  1925. SM_STARTER = 88; // WinXP+
  1926. SM_SERVERR2 = 89; // WiNXP+
  1927. SM_MOUSEHORIZONTALWHEELPRESENT = 91; // Vista+
  1928. SM_CXPADDEDBORDER = 92; // Vista+
  1929. SM_DIGITIZER = 94; // win7+
  1930. SM_MAXIMUMTOUCHES = 95; // win7+
  1931. ARW_BOTTOMLEFT = 0;
  1932. ARW_BOTTOMRIGHT = $1;
  1933. ARW_HIDE = $8;
  1934. ARW_TOPLEFT = $2;
  1935. ARW_TOPRIGHT = $3;
  1936. ARW_DOWN = $4;
  1937. ARW_LEFT = 0;
  1938. ARW_RIGHT = 0;
  1939. ARW_UP = $4;
  1940. { GetSystemPaletteUse }
  1941. SYSPAL_NOSTATIC = 2;
  1942. SYSPAL_STATIC = 1;
  1943. SYSPAL_ERROR = 0;
  1944. { GetTapeParameters, SetTapeParameters }
  1945. GET_TAPE_MEDIA_INFORMATION = 0;
  1946. GET_TAPE_DRIVE_INFORMATION = 1;
  1947. SET_TAPE_MEDIA_INFORMATION = 0;
  1948. SET_TAPE_DRIVE_INFORMATION = 1;
  1949. { GetTapePosition }
  1950. TAPE_ABSOLUTE_POSITION = 0;
  1951. TAPE_LOGICAL_POSITION = $1;
  1952. { GetTextAlign }
  1953. TA_BASELINE = 24;
  1954. TA_BOTTOM = 8;
  1955. TA_TOP = 0;
  1956. TA_CENTER = 6;
  1957. TA_LEFT = 0;
  1958. TA_RIGHT = 2;
  1959. TA_RTLREADING = 256;
  1960. TA_NOUPDATECP = 0;
  1961. TA_UPDATECP = 1;
  1962. VTA_BASELINE = 24;
  1963. VTA_CENTER = 6;
  1964. { GetThreadPriority }
  1965. THREAD_PRIORITY_ABOVE_NORMAL = 1;
  1966. THREAD_PRIORITY_BELOW_NORMAL = -(1);
  1967. THREAD_PRIORITY_HIGHEST = 2;
  1968. THREAD_PRIORITY_IDLE = -(15);
  1969. THREAD_PRIORITY_LOWEST = -(2);
  1970. THREAD_PRIORITY_NORMAL = 0;
  1971. THREAD_PRIORITY_TIME_CRITICAL = 15;
  1972. THREAD_PRIORITY_ERROR_RETURN = 2147483647;
  1973. TLS_MINIMUM_AVAILABLE = 64;
  1974. { GetTimeFormat }
  1975. TIME_NOMINUTESORSECONDS = 1;
  1976. TIME_NOSECONDS = 2;
  1977. TIME_NOTIMEMARKER = 4;
  1978. TIME_FORCE24HOURFORMAT = 8;
  1979. { GetTimeZoneInformation }
  1980. { was #define dname def_expr }
  1981. const
  1982. TIME_ZONE_ID_INVALID = DWORD(-1);
  1983. TIME_ZONE_ID_UNKNOWN = 0;
  1984. TIME_ZONE_ID_STANDARD = 1;
  1985. TIME_ZONE_ID_DAYLIGHT = 2;
  1986. { GetUserObjectInformation }
  1987. UOI_FLAGS = 1;
  1988. UOI_NAME = 2;
  1989. UOI_TYPE = 3;
  1990. { GetVolumeInformation }
  1991. FS_CASE_IS_PRESERVED = 2;
  1992. FS_CASE_SENSITIVE = 1;
  1993. FS_UNICODE_STORED_ON_DISK = 4;
  1994. FS_PERSISTENT_ACLS = 8;
  1995. FS_FILE_COMPRESSION = 16;
  1996. FS_VOL_IS_COMPRESSED = 32768;
  1997. { GetWindowLong }
  1998. GWL_EXSTYLE = -(20);
  1999. GWL_STYLE = -(16);
  2000. GWL_WNDPROC = -(4);
  2001. GWL_HINSTANCE = -(6);
  2002. GWL_HWNDPARENT = -(8);
  2003. GWL_ID = -(12);
  2004. GWL_USERDATA = -(21);
  2005. DWL_DLGPROC = 4;
  2006. DWL_MSGRESULT = 0;
  2007. DWL_USER = 8;
  2008. { GlobalAlloc, GlobalFlags }
  2009. GMEM_FIXED = 0;
  2010. GMEM_MOVEABLE = 2;
  2011. GPTR = 64;
  2012. GHND = 66;
  2013. GMEM_DDESHARE = 8192;
  2014. GMEM_DISCARDABLE = 256;
  2015. GMEM_LOWER = 4096;
  2016. GMEM_NOCOMPACT = 16;
  2017. GMEM_NODISCARD = 32;
  2018. GMEM_NOT_BANKED = 4096;
  2019. GMEM_NOTIFY = 16384;
  2020. GMEM_SHARE = 8192;
  2021. GMEM_ZEROINIT = 64;
  2022. GMEM_DISCARDED = 16384;
  2023. GMEM_INVALID_HANDLE = 32768;
  2024. GMEM_LOCKCOUNT = 255;
  2025. { HeapAlloc, HeapReAlloc }
  2026. HEAP_GENERATE_EXCEPTIONS = 4;
  2027. HEAP_NO_SERIALIZE = 1;
  2028. HEAP_ZERO_MEMORY = 8;
  2029. HEAP_REALLOC_IN_PLACE_ONLY = 16;
  2030. { ImageList_Create }
  2031. ILC_COLOR = 0;
  2032. ILC_COLOR4 = 4;
  2033. ILC_COLOR8 = 8;
  2034. ILC_COLOR16 = 16;
  2035. ILC_COLOR24 = 24;
  2036. ILC_COLOR32 = 32;
  2037. ILC_COLORDDB = 254;
  2038. ILC_MASK = 1;
  2039. ILC_PALETTE = 2048;
  2040. { ImageList_Draw, ImageList_DrawEx }
  2041. ILD_BLEND25 = 2;
  2042. ILD_BLEND50 = 4;
  2043. ILD_SELECTED = 4;
  2044. ILD_BLEND = 4;
  2045. ILD_FOCUS = 2;
  2046. ILD_MASK = 16;
  2047. ILD_NORMAL = 0;
  2048. ILD_TRANSPARENT = 1;
  2049. CLR_NONE = $ffffffff;
  2050. CLR_DEFAULT = $ff000000;
  2051. CLR_INVALID = $FFFFFFFF;
  2052. { ImageList_LoadImage }
  2053. {LR_DEFAULTCOLOR = 0;already above }
  2054. LR_LOADFROMFILE = 16;
  2055. LR_LOADMAP3DCOLORS = 4096;
  2056. LR_LOADTRANSPARENT = 32;
  2057. { ImmConfigureIME }
  2058. IME_CONFIG_GENERAL = 1;
  2059. IME_CONFIG_REGISTERWORD = 2;
  2060. IME_CONFIG_SELECTDICTIONARY = 3;
  2061. { ImmGetConversionList }
  2062. GCL_CONVERSION = 1;
  2063. GCL_REVERSECONVERSION = 2;
  2064. GCL_REVERSE_LENGTH = 3;
  2065. { ImmGetGuideLine }
  2066. GGL_LEVEL = 1;
  2067. GGL_INDEX = 2;
  2068. GGL_STRING = 3;
  2069. GGL_PRIVATE = 4;
  2070. GL_LEVEL_ERROR = 2;
  2071. GL_LEVEL_FATAL = 1;
  2072. GL_LEVEL_INFORMATION = 4;
  2073. GL_LEVEL_NOGUIDELINE = 0;
  2074. GL_LEVEL_WARNING = 3;
  2075. GL_ID_CANNOTSAVE = 17;
  2076. GL_ID_NOCONVERT = 32;
  2077. GL_ID_NODICTIONARY = 16;
  2078. GL_ID_NOMODULE = 1;
  2079. GL_ID_READINGCONFLICT = 35;
  2080. GL_ID_TOOMANYSTROKE = 34;
  2081. GL_ID_TYPINGERROR = 33;
  2082. GL_ID_UNKNOWN = 0;
  2083. GL_ID_INPUTREADING = 36;
  2084. GL_ID_INPUTRADICAL = 37;
  2085. GL_ID_INPUTCODE = 38;
  2086. GL_ID_CHOOSECANDIDATE = 40;
  2087. GL_ID_REVERSECONVERSION = 41;
  2088. { ImmGetProperty }
  2089. IGP_PROPERTY = 4;
  2090. IGP_CONVERSION = 8;
  2091. IGP_SENTENCE = 12;
  2092. IGP_UI = 16;
  2093. IGP_SETCOMPSTR = 20;
  2094. IGP_SELECT = 24;
  2095. IME_PROP_AT_CARET = 65536;
  2096. IME_PROP_SPECIAL_UI = 131072;
  2097. IME_PROP_CANDLIST_START_FROM_1 = 262144;
  2098. IME_PROP_UNICODE = 524288;
  2099. UI_CAP_2700 = 1;
  2100. UI_CAP_ROT90 = 2;
  2101. UI_CAP_ROTANY = 4;
  2102. SCS_CAP_COMPSTR = 1;
  2103. SCS_CAP_MAKEREAD = 2;
  2104. SELECT_CAP_CONVERSION = 1;
  2105. SELECT_CAP_SENTENCE = 2;
  2106. { ImmNotifyIME }
  2107. NI_CHANGECANDIDATELIST = 19;
  2108. NI_CLOSECANDIDATE = 17;
  2109. NI_COMPOSITIONSTR = 21;
  2110. NI_OPENCANDIDATE = 16;
  2111. NI_SELECTCANDIDATESTR = 18;
  2112. NI_SETCANDIDATE_PAGESIZE = 23;
  2113. NI_SETCANDIDATE_PAGESTART = 22;
  2114. CPS_CANCEL = 4;
  2115. CPS_COMPLETE = 1;
  2116. CPS_CONVERT = 2;
  2117. CPS_REVERT = 3;
  2118. { ImmSetCompositionString }
  2119. SCS_SETSTR = 9;
  2120. SCS_CHANGEATTR = 18;
  2121. SCS_CHANGECLAUSE = 36;
  2122. { ImmUnregisterWord }
  2123. IME_REGWORD_STYLE_EUDC = 1;
  2124. IME_REGWORD_STYLE_USER_FIRST = $80000000;
  2125. IME_REGWORD_STYLE_USER_LAST = -(1);
  2126. { InitializeSecurityDescriptor }
  2127. SECURITY_DESCRIPTOR_REVISION = 1;
  2128. { IsTextUnicode }
  2129. IS_TEXT_UNICODE_ASCII16 = 1;
  2130. IS_TEXT_UNICODE_REVERSE_ASCII16 = 16;
  2131. IS_TEXT_UNICODE_STATISTICS = 2;
  2132. IS_TEXT_UNICODE_REVERSE_STATISTICS = 32;
  2133. IS_TEXT_UNICODE_CONTROLS = 4;
  2134. IS_TEXT_UNICODE_REVERSE_CONTROLS = 64;
  2135. IS_TEXT_UNICODE_SIGNATURE = 8;
  2136. IS_TEXT_UNICODE_REVERSE_SIGNATURE = 128;
  2137. IS_TEXT_UNICODE_ILLEGAL_CHARS = 256;
  2138. IS_TEXT_UNICODE_ODD_LENGTH = 512;
  2139. IS_TEXT_UNICODE_NULL_BYTES = 4096;
  2140. IS_TEXT_UNICODE_UNICODE_MASK = 15;
  2141. IS_TEXT_UNICODE_REVERSE_MASK = 240;
  2142. IS_TEXT_UNICODE_NOT_UNICODE_MASK = 3840;
  2143. IS_TEXT_UNICODE_NOT_ASCII_MASK = 61440;
  2144. { JournalPlaybackProc, KeyboardProc }
  2145. HC_GETNEXT = 1;
  2146. HC_SKIP = 2;
  2147. HC_SYSMODALOFF = 5;
  2148. HC_SYSMODALON = 4;
  2149. HC_NOREMOVE = 3;
  2150. { keybd_event }
  2151. KEYEVENTF_EXTENDEDKEY = 1;
  2152. KEYEVENTF_KEYUP = 2;
  2153. { LoadBitmap }
  2154. OBM_BTNCORNERS = 32758;
  2155. OBM_BTSIZE = 32761;
  2156. OBM_CHECK = 32760;
  2157. OBM_CHECKBOXES = 32759;
  2158. OBM_CLOSE = 32754;
  2159. OBM_COMBO = 32738;
  2160. OBM_DNARROW = 32752;
  2161. OBM_DNARROWD = 32742;
  2162. OBM_DNARROWI = 32736;
  2163. OBM_LFARROW = 32750;
  2164. OBM_LFARROWI = 32734;
  2165. OBM_LFARROWD = 32740;
  2166. OBM_MNARROW = 32739;
  2167. OBM_OLD_CLOSE = 32767;
  2168. OBM_OLD_DNARROW = 32764;
  2169. OBM_OLD_LFARROW = 32762;
  2170. OBM_OLD_REDUCE = 32757;
  2171. OBM_OLD_RESTORE = 32755;
  2172. OBM_OLD_RGARROW = 32763;
  2173. OBM_OLD_UPARROW = 32765;
  2174. OBM_OLD_ZOOM = 32756;
  2175. OBM_REDUCE = 32749;
  2176. OBM_REDUCED = 32746;
  2177. OBM_RESTORE = 32747;
  2178. OBM_RESTORED = 32744;
  2179. OBM_RGARROW = 32751;
  2180. OBM_RGARROWD = 32741;
  2181. OBM_RGARROWI = 32735;
  2182. OBM_SIZE = 32766;
  2183. OBM_UPARROW = 32753;
  2184. OBM_UPARROWD = 32743;
  2185. OBM_UPARROWI = 32737;
  2186. OBM_ZOOM = 32748;
  2187. OBM_ZOOMD = 32745;
  2188. { LoadLibraryEx }
  2189. DONT_RESOLVE_DLL_REFERENCES = $0001;
  2190. LOAD_LIBRARY_AS_DATAFILE = $0002;
  2191. // reserved for internal LOAD_PACKAGED_LIBRARY: $0004
  2192. LOAD_WITH_ALTERED_SEARCH_PATH = $0008;
  2193. LOAD_IGNORE_CODE_AUTHZ_LEVEL = $0010;
  2194. LOAD_LIBRARY_AS_IMAGE_RESOURCE = $0020;
  2195. LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE = $0040;
  2196. LOAD_LIBRARY_REQUIRE_SIGNED_TARGET = $0080;
  2197. LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = $0100;
  2198. LOAD_LIBRARY_SEARCH_APPLICATION_DIR = $0200;
  2199. LOAD_LIBRARY_SEARCH_USER_DIRS = $0400;
  2200. LOAD_LIBRARY_SEARCH_SYSTEM32 = $0800;
  2201. LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = $1000;
  2202. { LocalAlloc, LocalFlags }
  2203. LPTR = 64;
  2204. LHND = 66;
  2205. NONZEROLHND = 2;
  2206. NONZEROLPTR = 0;
  2207. LMEM_NONZEROLHND = 2;
  2208. LMEM_NONZEROLPTR = 0;
  2209. LMEM_FIXED = 0;
  2210. LMEM_MOVEABLE = 2;
  2211. LMEM_NOCOMPACT = 16;
  2212. LMEM_NODISCARD = 32;
  2213. LMEM_ZEROINIT = 64;
  2214. LMEM_MODIFY = 128;
  2215. LMEM_LOCKCOUNT = 255;
  2216. LMEM_DISCARDABLE = 3840;
  2217. LMEM_DISCARDED = 16384;
  2218. LMEM_INVALID_HANDLE = 32768;
  2219. { LockFileEx }
  2220. LOCKFILE_FAIL_IMMEDIATELY = 1;
  2221. LOCKFILE_EXCLUSIVE_LOCK = 2;
  2222. { LogonUser }
  2223. { LZCopy, LZInit, LZRead }
  2224. { MessageBeep, MessageBox }
  2225. MB_USERICON = $80;
  2226. MB_ICONASTERISK = $40;
  2227. MB_ICONEXCLAMATION = $30;
  2228. MB_ICONWARNING = $30;
  2229. MB_ICONERROR = $10;
  2230. MB_ICONHAND = $10;
  2231. MB_ICONQUESTION = $20;
  2232. MB_OK = 0;
  2233. MB_ABORTRETRYIGNORE = $2;
  2234. MB_APPLMODAL = 0;
  2235. MB_DEFAULT_DESKTOP_ONLY = $20000;
  2236. MB_HELP = $4000;
  2237. MB_RIGHT = $80000;
  2238. MB_RTLREADING = $100000;
  2239. MB_TOPMOST = $40000;
  2240. MB_DEFBUTTON1 = 0;
  2241. MB_DEFBUTTON2 = $100;
  2242. MB_DEFBUTTON3 = $200;
  2243. MB_DEFBUTTON4 = $300;
  2244. MB_ICONINFORMATION = $40;
  2245. MB_ICONSTOP = $10;
  2246. MB_OKCANCEL = $1;
  2247. MB_RETRYCANCEL = $5;
  2248. MB_SERVICE_NOTIFICATION = $40000;
  2249. MB_SETFOREGROUND = $10000;
  2250. MB_SYSTEMMODAL = $1000;
  2251. MB_TASKMODAL = $2000;
  2252. MB_YESNO = $4;
  2253. MB_YESNOCANCEL = $3;
  2254. IDABORT = 3;
  2255. IDCANCEL = 2;
  2256. IDCLOSE = 8;
  2257. IDHELP = 9;
  2258. IDIGNORE = 5;
  2259. IDNO = 7;
  2260. IDOK = 1;
  2261. IDRETRY = 4;
  2262. IDYES = 6;
  2263. { MessageProc }
  2264. MSGF_DIALOGBOX = 0;
  2265. MSGF_MENU = 2;
  2266. MSGF_NEXTWINDOW = 6;
  2267. MSGF_SCROLLBAR = 5;
  2268. MSGF_MAINLOOP = 8;
  2269. MSGF_USER = 4096;
  2270. { ModifyWorldTransform }
  2271. MWT_IDENTITY = 1;
  2272. MWT_LEFTMULTIPLY = 2;
  2273. MWT_RIGHTMULTIPLY = 3;
  2274. { mouse_event }
  2275. MOUSEEVENTF_ABSOLUTE = 32768;
  2276. MOUSEEVENTF_MOVE = 1;
  2277. MOUSEEVENTF_LEFTDOWN = 2;
  2278. MOUSEEVENTF_LEFTUP = 4;
  2279. MOUSEEVENTF_RIGHTDOWN = 8;
  2280. MOUSEEVENTF_RIGHTUP = 16;
  2281. MOUSEEVENTF_MIDDLEDOWN = 32;
  2282. MOUSEEVENTF_MIDDLEUP = 64;
  2283. { MoveFileEx }
  2284. MOVEFILE_REPLACE_EXISTING = 1;
  2285. MOVEFILE_COPY_ALLOWED = 2;
  2286. MOVEFILE_DELAY_UNTIL_REBOOT = 4;
  2287. { MsgWaitForMultipleObjects, WaitForMultipleObjectsEx }
  2288. WAIT_OBJECT_0 = 0;
  2289. WAIT_ABANDONED_0 = $80;
  2290. WAIT_TIMEOUT = $102;
  2291. WAIT_IO_COMPLETION = $c0;
  2292. WAIT_ABANDONED = $80;
  2293. WAIT_FAILED = $ffffffff;
  2294. MAXIMUM_WAIT_OBJECTS = $40;
  2295. MAXIMUM_SUSPEND_COUNT = $7f;
  2296. { MultiByteToWideChar }
  2297. MB_PRECOMPOSED = 1;
  2298. MB_COMPOSITE = 2;
  2299. MB_ERR_INVALID_CHARS = 8;
  2300. MB_USEGLYPHCHARS = 4;
  2301. { NDdeSetTrustedShare }
  2302. { NetAccessCheck }
  2303. { NetServerEnum }
  2304. { NetServiceControl }
  2305. { NetUserEnum }
  2306. { OpenProcessToken }
  2307. TOKEN_ADJUST_DEFAULT = 128;
  2308. TOKEN_ADJUST_GROUPS = 64;
  2309. TOKEN_ADJUST_PRIVILEGES = 32;
  2310. TOKEN_ALL_ACCESS = $f00ff;
  2311. TOKEN_ASSIGN_PRIMARY = 1;
  2312. TOKEN_DUPLICATE = 2;
  2313. TOKEN_EXECUTE = $20000;
  2314. TOKEN_IMPERSONATE = 4;
  2315. TOKEN_QUERY = 8;
  2316. TOKEN_QUERY_SOURCE = 16;
  2317. TOKEN_READ = $20008;
  2318. TOKEN_WRITE = $200e0;
  2319. { OpenSCManager }
  2320. SC_MANAGER_ALL_ACCESS = $f003f;
  2321. SC_MANAGER_CONNECT = 1;
  2322. SC_MANAGER_CREATE_SERVICE = 2;
  2323. SC_MANAGER_ENUMERATE_SERVICE = 4;
  2324. SC_MANAGER_LOCK = 8;
  2325. SC_MANAGER_QUERY_LOCK_STATUS = 16;
  2326. SC_MANAGER_MODIFY_BOOT_CONFIG = 32;
  2327. { PostMessage }
  2328. HWND_BROADCAST = HWND($FFFF);
  2329. WND_MESSAGE = HWND(-3);
  2330. { PrepareTape }
  2331. const
  2332. TAPE_FORMAT = $5;
  2333. TAPE_LOAD = 0;
  2334. TAPE_LOCK = $3;
  2335. TAPE_TENSION = $2;
  2336. TAPE_UNLOAD = $1;
  2337. TAPE_UNLOCK = $4;
  2338. { PropertySheet }
  2339. IS_PSREBOOTSYSTEM = 3;
  2340. IS_PSRESTARTWINDOWS = 2;
  2341. { PropSheetPageProc }
  2342. PSPCB_CREATE = 2;
  2343. PSPCB_RELEASE = 1;
  2344. { PurgeComm }
  2345. PURGE_TXABORT = 1;
  2346. PURGE_RXABORT = 2;
  2347. PURGE_TXCLEAR = 4;
  2348. PURGE_RXCLEAR = 8;
  2349. { QueryServiceObjectSecurity }
  2350. OWNER_SECURITY_INFORMATION = $1;
  2351. GROUP_SECURITY_INFORMATION = $2;
  2352. DACL_SECURITY_INFORMATION = $4;
  2353. SACL_SECURITY_INFORMATION = $8;
  2354. { ReadEventLog, ReportEvent }
  2355. EVENTLOG_FORWARDS_READ = 4;
  2356. EVENTLOG_BACKWARDS_READ = 8;
  2357. EVENTLOG_SEEK_READ = 2;
  2358. EVENTLOG_SEQUENTIAL_READ = 1;
  2359. EVENTLOG_ERROR_TYPE = 1;
  2360. EVENTLOG_WARNING_TYPE = 2;
  2361. EVENTLOG_INFORMATION_TYPE = 4;
  2362. EVENTLOG_AUDIT_SUCCESS = 8;
  2363. EVENTLOG_AUDIT_FAILURE = 16;
  2364. { RedrawWindow }
  2365. RDW_ERASE = 4;
  2366. RDW_FRAME = 1024;
  2367. RDW_INTERNALPAINT = 2;
  2368. RDW_INVALIDATE = 1;
  2369. RDW_NOERASE = 32;
  2370. RDW_NOFRAME = 2048;
  2371. RDW_NOINTERNALPAINT = 16;
  2372. RDW_VALIDATE = 8;
  2373. RDW_ERASENOW = 512;
  2374. RDW_UPDATENOW = 256;
  2375. RDW_ALLCHILDREN = 128;
  2376. RDW_NOCHILDREN = 64;
  2377. { RegCreateKey }
  2378. HKEY_CLASSES_ROOT = HKEY(longint($80000000));
  2379. HKEY_CURRENT_USER = HKEY(longint($80000001));
  2380. HKEY_LOCAL_MACHINE = HKEY(longint($80000002));
  2381. HKEY_USERS = HKEY(longint($80000003));
  2382. HKEY_PERFORMANCE_DATA = HKEY(longint($80000004));
  2383. HKEY_CURRENT_CONFIG = HKEY(longint($80000005));
  2384. HKEY_DYN_DATA = HKEY(longint($80000006));
  2385. Type
  2386. SE_OBJECT_TYPE = ( // enum in Delphi apparantly.
  2387. SE_UNKNOWN_OBJECT_TYPE = 0,
  2388. SE_FILE_OBJECT,
  2389. SE_SERVICE,
  2390. SE_PRINTER,
  2391. SE_REGISTRY_KEY,
  2392. SE_LMSHARE,
  2393. SE_KERNEL_OBJECT,
  2394. SE_WINDOW_OBJECT,
  2395. SE_DS_OBJECT,
  2396. SE_DS_OBJECT_ALL,
  2397. SE_PROVIDER_DEFINED_OBJECT,
  2398. SE_WMIGUID_OBJECT,
  2399. SE_REGISTRY_WOW64_32KEY);
  2400. { RegCreateKeyEx }
  2401. const
  2402. REG_OPTION_VOLATILE = $1;
  2403. REG_OPTION_NON_VOLATILE = 0;
  2404. REG_CREATED_NEW_KEY = $1;
  2405. REG_OPENED_EXISTING_KEY = $2;
  2406. { RegEnumValue }
  2407. REG_BINARY = 3;
  2408. REG_DWORD = 4;
  2409. REG_DWORD_LITTLE_ENDIAN = 4;
  2410. REG_DWORD_BIG_ENDIAN = 5;
  2411. REG_EXPAND_SZ = 2;
  2412. REG_FULL_RESOURCE_DESCRIPTOR = 9;
  2413. REG_LINK = 6;
  2414. REG_MULTI_SZ = 7;
  2415. REG_NONE = 0;
  2416. REG_RESOURCE_LIST = 8;
  2417. REG_RESOURCE_REQUIREMENTS_LIST = 10;
  2418. REG_SZ = 1;
  2419. REG_QWORD = 11;
  2420. { RegisterHotKey }
  2421. MOD_ALT = 1;
  2422. MOD_CONTROL = 2;
  2423. MOD_SHIFT = 4;
  2424. MOD_WIN = 8;
  2425. IDHOT_SNAPDESKTOP = -(2);
  2426. IDHOT_SNAPWINDOW = -(1);
  2427. { RegNotifyChangeKeyValue }
  2428. REG_NOTIFY_CHANGE_NAME = $1;
  2429. REG_NOTIFY_CHANGE_ATTRIBUTES = $2;
  2430. REG_NOTIFY_CHANGE_LAST_SET = $4;
  2431. REG_NOTIFY_CHANGE_SECURITY = $8;
  2432. { ScrollWindowEx }
  2433. SW_ERASE = 4;
  2434. SW_INVALIDATE = 2;
  2435. SW_SCROLLCHILDREN = 1;
  2436. { SendMessageTimeout }
  2437. SMTO_ABORTIFHUNG = 2;
  2438. SMTO_BLOCK = 1;
  2439. SMTO_NORMAL = 0;
  2440. { SetBkMode }
  2441. OPAQUE = 2;
  2442. TRANSPARENT = 1;
  2443. { SetDebugErrorLevel }
  2444. SLE_ERROR = 1;
  2445. SLE_MINORERROR = 2;
  2446. SLE_WARNING = 3;
  2447. { SetErrorMode }
  2448. SEM_FAILCRITICALERRORS = 1;
  2449. SEM_NOALIGNMENTFAULTEXCEPT = 4;
  2450. SEM_NOGPFAULTERRORBOX = 2;
  2451. SEM_NOOPENFILEERRORBOX = 32768;
  2452. { SetICMMode }
  2453. ICM_ON = 2;
  2454. ICM_OFF = 1;
  2455. ICM_QUERY = 3;
  2456. { SetJob }
  2457. { Locale Information }
  2458. LOCALE_ILANGUAGE = 1;
  2459. LOCALE_SLANGUAGE = 2;
  2460. LOCALE_SENGLANGUAGE = 4097;
  2461. LOCALE_SABBREVLANGNAME = 3;
  2462. LOCALE_SNATIVELANGNAME = 4;
  2463. LOCALE_ICOUNTRY = 5;
  2464. LOCALE_SCOUNTRY = 6;
  2465. LOCALE_SENGCOUNTRY = 4098;
  2466. LOCALE_SABBREVCTRYNAME = 7;
  2467. LOCALE_SNATIVECTRYNAME = 8;
  2468. LOCALE_IDEFAULTLANGUAGE = 9;
  2469. LOCALE_IDEFAULTCOUNTRY = 10;
  2470. LOCALE_IDEFAULTANSICODEPAGE = 4100;
  2471. LOCALE_IDEFAULTCODEPAGE = 11;
  2472. LOCALE_SLIST = 12;
  2473. LOCALE_IMEASURE = 13;
  2474. LOCALE_SDECIMAL = 14;
  2475. LOCALE_STHOUSAND = 15;
  2476. LOCALE_SGROUPING = 16;
  2477. LOCALE_IDIGITS = 17;
  2478. LOCALE_ILZERO = 18;
  2479. LOCALE_INEGNUMBER = 4112;
  2480. LOCALE_SCURRENCY = 20;
  2481. LOCALE_SMONDECIMALSEP = 22;
  2482. LOCALE_SMONTHOUSANDSEP = 23;
  2483. LOCALE_SMONGROUPING = 24;
  2484. LOCALE_ICURRDIGITS = 25;
  2485. LOCALE_ICURRENCY = 27;
  2486. LOCALE_INEGCURR = 28;
  2487. LOCALE_SDATE = 29;
  2488. LOCALE_STIME = 30;
  2489. LOCALE_STIMEFORMAT = 4099;
  2490. LOCALE_SSHORTDATE = 31;
  2491. LOCALE_SLONGDATE = 32;
  2492. LOCALE_IDATE = 33;
  2493. LOCALE_ILDATE = 34;
  2494. LOCALE_ITIME = 35;
  2495. LOCALE_ITLZERO = 37;
  2496. LOCALE_IDAYLZERO = 38;
  2497. LOCALE_IMONLZERO = 39;
  2498. LOCALE_S1159 = 40;
  2499. LOCALE_S2359 = 41;
  2500. LOCALE_ICALENDARTYPE = 4105;
  2501. LOCALE_IOPTIONALCALENDAR = 4107;
  2502. LOCALE_IFIRSTDAYOFWEEK = 4108;
  2503. LOCALE_IFIRSTWEEKOFYEAR = 4109;
  2504. LOCALE_SDAYNAME1 = 42;
  2505. LOCALE_SDAYNAME2 = 43;
  2506. LOCALE_SDAYNAME3 = 44;
  2507. LOCALE_SDAYNAME4 = 45;
  2508. LOCALE_SDAYNAME5 = 46;
  2509. LOCALE_SDAYNAME6 = 47;
  2510. LOCALE_SDAYNAME7 = 48;
  2511. LOCALE_SABBREVDAYNAME1 = 49;
  2512. LOCALE_SABBREVDAYNAME2 = 50;
  2513. LOCALE_SABBREVDAYNAME3 = 51;
  2514. LOCALE_SABBREVDAYNAME4 = 52;
  2515. LOCALE_SABBREVDAYNAME5 = 53;
  2516. LOCALE_SABBREVDAYNAME6 = 54;
  2517. LOCALE_SABBREVDAYNAME7 = 55;
  2518. LOCALE_SMONTHNAME1 = 56;
  2519. LOCALE_SMONTHNAME2 = 57;
  2520. LOCALE_SMONTHNAME3 = 58;
  2521. LOCALE_SMONTHNAME4 = 59;
  2522. LOCALE_SMONTHNAME5 = 60;
  2523. LOCALE_SMONTHNAME6 = 61;
  2524. LOCALE_SMONTHNAME7 = 62;
  2525. LOCALE_SMONTHNAME8 = 63;
  2526. LOCALE_SMONTHNAME9 = 64;
  2527. LOCALE_SMONTHNAME10 = 65;
  2528. LOCALE_SMONTHNAME11 = 66;
  2529. LOCALE_SMONTHNAME12 = 67;
  2530. LOCALE_SMONTHNAME13 = 4110;
  2531. LOCALE_SABBREVMONTHNAME1 = 68;
  2532. LOCALE_SABBREVMONTHNAME2 = 69;
  2533. LOCALE_SABBREVMONTHNAME3 = 70;
  2534. LOCALE_SABBREVMONTHNAME4 = 71;
  2535. LOCALE_SABBREVMONTHNAME5 = 72;
  2536. LOCALE_SABBREVMONTHNAME6 = 73;
  2537. LOCALE_SABBREVMONTHNAME7 = 74;
  2538. LOCALE_SABBREVMONTHNAME8 = 75;
  2539. LOCALE_SABBREVMONTHNAME9 = 76;
  2540. LOCALE_SABBREVMONTHNAME10 = 77;
  2541. LOCALE_SABBREVMONTHNAME11 = 78;
  2542. LOCALE_SABBREVMONTHNAME12 = 79;
  2543. LOCALE_SABBREVMONTHNAME13 = 4111;
  2544. LOCALE_SPOSITIVESIGN = 80;
  2545. LOCALE_SNEGATIVESIGN = 81;
  2546. LOCALE_IPOSSIGNPOSN = 82;
  2547. LOCALE_INEGSIGNPOSN = 83;
  2548. LOCALE_IPOSSYMPRECEDES = 84;
  2549. LOCALE_IPOSSEPBYSPACE = 85;
  2550. LOCALE_INEGSYMPRECEDES = 86;
  2551. LOCALE_INEGSEPBYSPACE = 87;
  2552. LOCALE_NOUSEROVERRIDE = $80000000;
  2553. LOCALE_USE_CP_ACP = $40000000; // use the system ACP
  2554. LOCALE_RETURN_NUMBER = $20000000; // return number instead
  2555. LOCALE_SISO639LANGNAME = $59;
  2556. LOCALE_SISO3166CTRYNAME = $5A;
  2557. { Calendar Type Information }
  2558. CAL_ICALINTVALUE = 1;
  2559. CAL_IYEAROFFSETRANGE = 3;
  2560. CAL_SABBREVDAYNAME1 = 14;
  2561. CAL_SABBREVDAYNAME2 = 15;
  2562. CAL_SABBREVDAYNAME3 = 16;
  2563. CAL_SABBREVDAYNAME4 = 17;
  2564. CAL_SABBREVDAYNAME5 = 18;
  2565. CAL_SABBREVDAYNAME6 = 19;
  2566. CAL_SABBREVDAYNAME7 = 20;
  2567. CAL_SABBREVMONTHNAME1 = 34;
  2568. CAL_SABBREVMONTHNAME2 = 35;
  2569. CAL_SABBREVMONTHNAME3 = 36;
  2570. CAL_SABBREVMONTHNAME4 = 37;
  2571. CAL_SABBREVMONTHNAME5 = 38;
  2572. CAL_SABBREVMONTHNAME6 = 39;
  2573. CAL_SABBREVMONTHNAME7 = 40;
  2574. CAL_SABBREVMONTHNAME8 = 41;
  2575. CAL_SABBREVMONTHNAME9 = 42;
  2576. CAL_SABBREVMONTHNAME10 = 43;
  2577. CAL_SABBREVMONTHNAME11 = 44;
  2578. CAL_SABBREVMONTHNAME12 = 45;
  2579. CAL_SABBREVMONTHNAME13 = 46;
  2580. CAL_SCALNAME = 2;
  2581. CAL_SDAYNAME1 = 7;
  2582. CAL_SDAYNAME2 = 8;
  2583. CAL_SDAYNAME3 = 9;
  2584. CAL_SDAYNAME4 = 10;
  2585. CAL_SDAYNAME5 = 11;
  2586. CAL_SDAYNAME6 = 12;
  2587. CAL_SDAYNAME7 = 13;
  2588. CAL_SERASTRING = 4;
  2589. CAL_SLONGDATE = 6;
  2590. CAL_SMONTHNAME1 = 21;
  2591. CAL_SMONTHNAME2 = 22;
  2592. CAL_SMONTHNAME3 = 23;
  2593. CAL_SMONTHNAME4 = 24;
  2594. CAL_SMONTHNAME5 = 25;
  2595. CAL_SMONTHNAME6 = 26;
  2596. CAL_SMONTHNAME7 = 27;
  2597. CAL_SMONTHNAME8 = 28;
  2598. CAL_SMONTHNAME9 = 29;
  2599. CAL_SMONTHNAME10 = 30;
  2600. CAL_SMONTHNAME11 = 31;
  2601. CAL_SMONTHNAME12 = 32;
  2602. CAL_SMONTHNAME13 = 33;
  2603. CAL_SSHORTDATE = 5;
  2604. { SetProcessWorkingSetSize }
  2605. PROCESS_SET_QUOTA = 256;
  2606. { SetPrinter }
  2607. { SetService }
  2608. { SetStretchBltMode }
  2609. BLACKONWHITE = 1;
  2610. COLORONCOLOR = 3;
  2611. HALFTONE = 4;
  2612. STRETCH_ANDSCANS = 1;
  2613. STRETCH_DELETESCANS = 3;
  2614. STRETCH_HALFTONE = 4;
  2615. STRETCH_ORSCANS = 2;
  2616. WHITEONBLACK = 2;
  2617. { SetSystemCursor }
  2618. OCR_NORMAL = 32512;
  2619. OCR_IBEAM = 32513;
  2620. OCR_WAIT = 32514;
  2621. OCR_CROSS = 32515;
  2622. OCR_UP = 32516;
  2623. OCR_SIZE = 32640;
  2624. OCR_ICON = 32641;
  2625. OCR_SIZENWSE = 32642;
  2626. OCR_SIZENESW = 32643;
  2627. OCR_SIZEWE = 32644;
  2628. OCR_SIZENS = 32645;
  2629. OCR_SIZEALL = 32646;
  2630. OCR_ICOCUR = 32647; // OBSOLETE: use OIC_WINLOGO
  2631. OCR_NO = 32648;
  2632. OCR_APPSTARTING = 32650;
  2633. OCR_HAND = 32649;
  2634. OIC_SAMPLE = 32512;
  2635. OIC_HAND = 32513;
  2636. OIC_QUES = 32514;
  2637. OIC_BANG = 32515;
  2638. OIC_NOTE = 32516;
  2639. OIC_WINLOGO = 32517;
  2640. OIC_WARNING = OIC_BANG;
  2641. OIC_ERROR = OIC_HAND;
  2642. OIC_INFORMATION = OIC_NOTE;
  2643. OIC_SHIELD = 32518;
  2644. { SetTapePosition }
  2645. TAPE_ABSOLUTE_BLOCK = $1;
  2646. TAPE_LOGICAL_BLOCK = $2;
  2647. TAPE_REWIND = 0;
  2648. TAPE_SPACE_END_OF_DATA = $4;
  2649. TAPE_SPACE_FILEMARKS = $6;
  2650. TAPE_SPACE_RELATIVE_BLOCKS = $5;
  2651. TAPE_SPACE_SEQUENTIAL_FMKS = $7;
  2652. TAPE_SPACE_SEQUENTIAL_SMKS = $9;
  2653. TAPE_SPACE_SETMARKS = $8;
  2654. { SetUnhandledExceptionFilter }
  2655. EXCEPTION_EXECUTE_HANDLER = 1;
  2656. EXCEPTION_CONTINUE_EXECUTION = -(1);
  2657. EXCEPTION_CONTINUE_SEARCH = 0;
  2658. { SetWindowPos, DeferWindowPos }
  2659. HWND_BOTTOM = HWND(1);
  2660. HWND_NOTOPMOST = HWND(-2);
  2661. HWND_TOP = HWND(0);
  2662. HWND_TOPMOST = HWND(-1);
  2663. const
  2664. SWP_DRAWFRAME = 32;
  2665. SWP_FRAMECHANGED = 32;
  2666. SWP_HIDEWINDOW = 128;
  2667. SWP_NOACTIVATE = 16;
  2668. SWP_NOCOPYBITS = 256;
  2669. SWP_NOMOVE = 2;
  2670. SWP_NOSIZE = 1;
  2671. SWP_NOREDRAW = 8;
  2672. SWP_NOZORDER = 4;
  2673. SWP_SHOWWINDOW = 64;
  2674. SWP_NOOWNERZORDER = 512;
  2675. SWP_NOREPOSITION = 512;
  2676. SWP_NOSENDCHANGING = 1024;
  2677. SWP_DEFERERASE = $2000;
  2678. SWP_ASYNCWINDOWPOS = $4000;
  2679. SWP_STATECHANGED = $8000; // used by windows but not documented (used even in wine)
  2680. { SHAddToRecentDocs }
  2681. { SHAppBarMessage }
  2682. { SHChangeNotify }
  2683. { ShellProc }
  2684. HSHELL_ACTIVATESHELLWINDOW = 3;
  2685. HSHELL_GETMINRECT = 5;
  2686. HSHELL_LANGUAGE = 8;
  2687. HSHELL_REDRAW = 6;
  2688. HSHELL_TASKMAN = 7;
  2689. HSHELL_WINDOWACTIVATED = 4;
  2690. HSHELL_WINDOWCREATED = 1;
  2691. HSHELL_WINDOWDESTROYED = 2;
  2692. { SHGetFileInfo }
  2693. { SHGetSpecialFolderLocation }
  2694. { ShowWindow }
  2695. SW_HIDE = 0;
  2696. SW_MAXIMIZE = 3;
  2697. SW_MINIMIZE = 6;
  2698. SW_NORMAL = 1;
  2699. SW_RESTORE = 9;
  2700. SW_SHOW = 5;
  2701. SW_SHOWDEFAULT = 10;
  2702. SW_SHOWMAXIMIZED = 3;
  2703. SW_SHOWMINIMIZED = 2;
  2704. SW_SHOWMINNOACTIVE = 7;
  2705. SW_SHOWNA = 8;
  2706. SW_SHOWNOACTIVATE = 4;
  2707. SW_SHOWNORMAL = 1;
  2708. WPF_RESTORETOMAXIMIZED = 2;
  2709. WPF_SETMINPOSITION = 1;
  2710. { Sleep }
  2711. INFINITE = $FFFFFFFF;
  2712. { SystemParametersInfo }
  2713. SPI_GETBEEP = 1;
  2714. SPI_SETBEEP = 2;
  2715. SPI_GETMOUSE = 3;
  2716. SPI_SETMOUSE = 4;
  2717. SPI_GETBORDER = 5;
  2718. SPI_SETBORDER = 6;
  2719. SPI_GETKEYBOARDSPEED = 10;
  2720. SPI_SETKEYBOARDSPEED = 11;
  2721. SPI_LANGDRIVER = 12;
  2722. SPI_ICONHORIZONTALSPACING = 13;
  2723. SPI_GETSCREENSAVETIMEOUT = 14;
  2724. SPI_SETSCREENSAVETIMEOUT = 15;
  2725. SPI_GETSCREENSAVEACTIVE = 16;
  2726. SPI_SETSCREENSAVEACTIVE = 17;
  2727. SPI_GETGRIDGRANULARITY = 18;
  2728. SPI_SETGRIDGRANULARITY = 19;
  2729. SPI_SETDESKWALLPAPER = 20;
  2730. SPI_SETDESKPATTERN = 21;
  2731. SPI_GETKEYBOARDDELAY = 22;
  2732. SPI_SETKEYBOARDDELAY = 23;
  2733. SPI_ICONVERTICALSPACING = 24;
  2734. SPI_GETICONTITLEWRAP = 25;
  2735. SPI_SETICONTITLEWRAP = 26;
  2736. SPI_GETMENUDROPALIGNMENT = 27;
  2737. SPI_SETMENUDROPALIGNMENT = 28;
  2738. SPI_SETDOUBLECLKWIDTH = 29;
  2739. SPI_SETDOUBLECLKHEIGHT = 30;
  2740. SPI_GETICONTITLELOGFONT = 31;
  2741. SPI_SETDOUBLECLICKTIME = 32;
  2742. SPI_SETMOUSEBUTTONSWAP = 33;
  2743. SPI_SETICONTITLELOGFONT = 34;
  2744. SPI_GETFASTTASKSWITCH = 35;
  2745. SPI_SETFASTTASKSWITCH = 36;
  2746. SPI_SETDRAGFULLWINDOWS = 37;
  2747. SPI_GETDRAGFULLWINDOWS = 38;
  2748. SPI_GETNONCLIENTMETRICS = 41;
  2749. SPI_SETNONCLIENTMETRICS = 42;
  2750. SPI_GETMINIMIZEDMETRICS = 43;
  2751. SPI_SETMINIMIZEDMETRICS = 44;
  2752. SPI_GETICONMETRICS = 45;
  2753. SPI_SETICONMETRICS = 46;
  2754. SPI_SETWORKAREA = 47;
  2755. SPI_GETWORKAREA = 48;
  2756. SPI_SETPENWINDOWS = 49;
  2757. SPI_GETFILTERKEYS = 50;
  2758. SPI_SETFILTERKEYS = 51;
  2759. SPI_GETTOGGLEKEYS = 52;
  2760. SPI_SETTOGGLEKEYS = 53;
  2761. SPI_GETMOUSEKEYS = 54;
  2762. SPI_SETMOUSEKEYS = 55;
  2763. SPI_GETSHOWSOUNDS = 56;
  2764. SPI_SETSHOWSOUNDS = 57;
  2765. SPI_GETSTICKYKEYS = 58;
  2766. SPI_SETSTICKYKEYS = 59;
  2767. SPI_GETACCESSTIMEOUT = 60;
  2768. SPI_SETACCESSTIMEOUT = 61;
  2769. SPI_GETSERIALKEYS = 62;
  2770. SPI_SETSERIALKEYS = 63;
  2771. SPI_GETSOUNDSENTRY = 64;
  2772. SPI_SETSOUNDSENTRY = 65;
  2773. SPI_GETHIGHCONTRAST = 66;
  2774. SPI_SETHIGHCONTRAST = 67;
  2775. SPI_GETKEYBOARDPREF = 68;
  2776. SPI_SETKEYBOARDPREF = 69;
  2777. SPI_GETSCREENREADER = 70;
  2778. SPI_SETSCREENREADER = 71;
  2779. SPI_GETANIMATION = 72;
  2780. SPI_SETANIMATION = 73;
  2781. SPI_GETFONTSMOOTHING = 74;
  2782. SPI_SETFONTSMOOTHING = 75;
  2783. SPI_SETDRAGWIDTH = 76;
  2784. SPI_SETDRAGHEIGHT = 77;
  2785. SPI_SETHANDHELD = 78;
  2786. SPI_GETLOWPOWERTIMEOUT = 79;
  2787. SPI_GETPOWEROFFTIMEOUT = 80;
  2788. SPI_SETLOWPOWERTIMEOUT = 81;
  2789. SPI_SETPOWEROFFTIMEOUT = 82;
  2790. SPI_GETLOWPOWERACTIVE = 83;
  2791. SPI_GETPOWEROFFACTIVE = 84;
  2792. SPI_SETLOWPOWERACTIVE = 85;
  2793. SPI_SETPOWEROFFACTIVE = 86;
  2794. SPI_SETCURSORS = 87;
  2795. SPI_SETICONS = 88;
  2796. SPI_GETDEFAULTINPUTLANG = 89;
  2797. SPI_SETDEFAULTINPUTLANG = 90;
  2798. SPI_SETLANGTOGGLE = 91;
  2799. SPI_GETWINDOWSEXTENSION = 92;
  2800. SPI_SETMOUSETRAILS = 93;
  2801. SPI_GETMOUSETRAILS = 94;
  2802. SPI_GETSNAPTODEFBUTTON = 95;
  2803. SPI_SETSNAPTODEFBUTTON = 96;
  2804. SPI_SCREENSAVERRUNNING = 97;
  2805. SPI_SETSCREENSAVERRUNNING = 97;
  2806. SPI_GETMOUSEHOVERWIDTH = 98;
  2807. SPI_SETMOUSEHOVERWIDTH = 99;
  2808. SPI_GETMOUSEHOVERHEIGHT = 100;
  2809. SPI_SETMOUSEHOVERHEIGHT = 101;
  2810. SPI_GETMOUSEHOVERTIME = 102;
  2811. SPI_SETMOUSEHOVERTIME = 103;
  2812. SPI_GETWHEELSCROLLLINES = 104;
  2813. SPI_SETWHEELSCROLLLINES = 105;
  2814. SPI_GETMENUSHOWDELAY = 106;
  2815. SPI_SETMENUSHOWDELAY = 107;
  2816. SPI_GETSHOWIMEUI = 110;
  2817. SPI_SETSHOWIMEUI = 111;
  2818. { Windows Me/2000 and higher }
  2819. SPI_GETMOUSESPEED = 112;
  2820. SPI_SETMOUSESPEED = 113;
  2821. SPI_GETSCREENSAVERRUNNING = 114;
  2822. SPI_GETDESKWALLPAPER = 115;
  2823. SPI_GETACTIVEWINDOWTRACKING = 4096;
  2824. SPI_SETACTIVEWINDOWTRACKING = 4097;
  2825. SPI_GETMENUANIMATION = 4098;
  2826. SPI_SETMENUANIMATION = 4099;
  2827. SPI_GETCOMBOBOXANIMATION = 4100;
  2828. SPI_SETCOMBOBOXANIMATION = 4101;
  2829. SPI_GETLISTBOXSMOOTHSCROLLING = 4102;
  2830. SPI_SETLISTBOXSMOOTHSCROLLING = 4103;
  2831. SPI_GETGRADIENTCAPTIONS = 4104;
  2832. SPI_SETGRADIENTCAPTIONS = 4105;
  2833. SPI_GETKEYBOARDCUES = 4106;
  2834. SPI_SETKEYBOARDCUES = 4107;
  2835. SPI_GETMENUUNDERLINES = 4106;
  2836. SPI_SETMENUUNDERLINES = 4107;
  2837. SPI_GETACTIVEWNDTRKZORDER = 4108;
  2838. SPI_SETACTIVEWNDTRKZORDER = 4109;
  2839. SPI_GETHOTTRACKING = 4110;
  2840. SPI_SETHOTTRACKING = 4111;
  2841. SPI_GETMENUFADE = 4114;
  2842. SPI_SETMENUFADE = 4115;
  2843. SPI_GETSELECTIONFADE = 4116;
  2844. SPI_SETSELECTIONFADE = 4117;
  2845. SPI_GETTOOLTIPANIMATION = 4118;
  2846. SPI_SETTOOLTIPANIMATION = 4119;
  2847. SPI_GETTOOLTIPFADE = 4120;
  2848. SPI_SETTOOLTIPFADE = 4121;
  2849. SPI_GETCURSORSHADOW = 4122;
  2850. SPI_SETCURSORSHADOW = 4123;
  2851. SPI_GETUIEFFECTS = 4158;
  2852. SPI_SETUIEFFECTS = 4159;
  2853. SPI_GETFOREGROUNDLOCKTIMEOUT = 8192;
  2854. SPI_SETFOREGROUNDLOCKTIMEOUT = 8193;
  2855. SPI_GETACTIVEWNDTRKTIMEOUT = 8194;
  2856. SPI_SETACTIVEWNDTRKTIMEOUT = 8195;
  2857. SPI_GETFOREGROUNDFLASHCOUNT = 8196;
  2858. SPI_SETFOREGROUNDFLASHCOUNT = 8197;
  2859. SPI_GETCARETWIDTH = 8198;
  2860. SPI_SETCARETWIDTH = 8199;
  2861. { Windows XP and higher }
  2862. SPI_GETMOUSESONAR = 4124;
  2863. SPI_SETMOUSESONAR = 4125;
  2864. SPI_GETMOUSECLICKLOCK = 4126;
  2865. SPI_SETMOUSECLICKLOCK = 4127;
  2866. SPI_GETMOUSEVANISH = 4128;
  2867. SPI_SETMOUSEVANISH = 4129;
  2868. SPI_GETFLATMENU = 4130;
  2869. SPI_SETFLATMENU = 4131;
  2870. SPI_GETDROPSHADOW = 4132;
  2871. SPI_SETDROPSHADOW = 4133;
  2872. SPI_GETBLOCKSENDINPUTRESETS = 4134;
  2873. SPI_SETBLOCKSENDINPUTRESETS = 4135;
  2874. SPI_GETMOUSECLICKLOCKTIME = 8200;
  2875. SPI_SETMOUSECLICKLOCKTIME = 8201;
  2876. SPI_GETFONTSMOOTHINGTYPE = 8202;
  2877. SPI_SETFONTSMOOTHINGTYPE = 8203;
  2878. SPI_GETFONTSMOOTHINGCONTRAST = 8204;
  2879. SPI_SETFONTSMOOTHINGCONTRAST = 8205;
  2880. SPI_GETFOCUSBORDERWIDTH = 8206;
  2881. SPI_SETFOCUSBORDERWIDTH = 8207;
  2882. SPI_GETFOCUSBORDERHEIGHT = 8208;
  2883. SPI_SETFOCUSBORDERHEIGHT = 8209;
  2884. SPI_GETFONTSMOOTHINGORIENTATION = 8210;
  2885. SPI_SETFONTSMOOTHINGORIENTATION = 8211;
  2886. { constants for SPI_GETFONTSMOOTHINGTYPE and SPI_SETFONTSMOOTHINGTYPE: }
  2887. FE_FONTSMOOTHINGSTANDARD = 1;
  2888. FE_FONTSMOOTHINGCLEARTYPE = 2;
  2889. FE_FONTSMOOTHINGDOCKING = 32768;
  2890. { constants for SPI_GETFONTSMOOTHINGORIENTATION and SPI_SETFONTSMOOTHINGORIENTATION: }
  2891. FE_FONTSMOOTHINGORIENTATIONBGR = 0;
  2892. FE_FONTSMOOTHINGORIENTATIONRGB = 1;
  2893. { Flags }
  2894. SPIF_UPDATEINIFILE = 1;
  2895. SPIF_SENDWININICHANGE = 2;
  2896. SPIF_SENDCHANGE = 2;
  2897. { TrackPopupMenu, TrackPopMenuEx }
  2898. TPM_CENTERALIGN = $4;
  2899. TPM_LEFTALIGN = 0;
  2900. TPM_RIGHTALIGN = $8;
  2901. TPM_LEFTBUTTON = 0;
  2902. TPM_RIGHTBUTTON = $2;
  2903. TPM_HORIZONTAL = 0;
  2904. TPM_VERTICAL = $40;
  2905. TPM_TOPALIGN = 0;
  2906. TPM_VCENTERALIGN= $10;
  2907. TPM_BOTTOMALIGN = $20;
  2908. TPM_NONOTIFY = $80;
  2909. TPM_RETURNCMD = $100;
  2910. TPM_RECURSE = $0001;
  2911. TPM_HORPOSANIMATION = $0400;
  2912. TPM_HORNEGANIMATION = $0800;
  2913. TPM_VERPOSANIMATION = $1000;
  2914. TPM_VERNEGANIMATION = $2000;
  2915. TPM_NOANIMATION = $4000;
  2916. TPM_LAYOUTRTL = $8000;
  2917. { TranslateCharsetInfo }
  2918. TCI_SRCCHARSET = 1;
  2919. TCI_SRCCODEPAGE = 2;
  2920. TCI_SRCFONTSIG = 3;
  2921. { VerFindFile }
  2922. VFFF_ISSHAREDFILE = 1;
  2923. VFF_CURNEDEST = 1;
  2924. VFF_FILEINUSE = 2;
  2925. VFF_BUFFTOOSMALL = 4;
  2926. { VerInstallFile }
  2927. VIFF_FORCEINSTALL = 1;
  2928. VIFF_DONTDELETEOLD = 2;
  2929. VIF_TEMPFILE = $1;
  2930. VIF_MISMATCH = $2;
  2931. VIF_SRCOLD = $4;
  2932. VIF_DIFFLANG = $8;
  2933. VIF_DIFFCODEPG = $10;
  2934. VIF_DIFFTYPE = $20;
  2935. VIF_WRITEPROT = $40;
  2936. VIF_FILEINUSE = $80;
  2937. VIF_OUTOFSPACE = $100;
  2938. VIF_ACCESSVIOLATION = $200;
  2939. VIF_SHARINGVIOLATION = $400;
  2940. VIF_CANNOTCREATE = $800;
  2941. VIF_CANNOTDELETE = $1000;
  2942. VIF_CANNOTDELETECUR = $4000;
  2943. VIF_CANNOTRENAME = $2000;
  2944. VIF_OUTOFMEMORY = $8000;
  2945. VIF_CANNOTREADSRC = $10000;
  2946. VIF_CANNOTREADDST = $20000;
  2947. VIF_BUFFTOOSMALL = $40000;
  2948. { WideCharToMultiByte }
  2949. WC_COMPOSITECHECK = 512;
  2950. WC_DISCARDNS = 16;
  2951. WC_SEPCHARS = 32;
  2952. WC_DEFAULTCHAR = 64;
  2953. WC_NO_BEST_FIT_CHARS = $400;
  2954. { WinHelp }
  2955. HELP_COMMAND = $102;
  2956. HELP_CONTENTS = $3;
  2957. HELP_CONTEXT = $1;
  2958. HELP_CONTEXTPOPUP = $8;
  2959. HELP_FORCEFILE = $9;
  2960. HELP_HELPONHELP = $4;
  2961. HELP_INDEX = $3;
  2962. HELP_KEY = $101;
  2963. HELP_MULTIKEY = $201;
  2964. HELP_PARTIALKEY = $105;
  2965. HELP_QUIT = $2;
  2966. HELP_SETCONTENTS = $5;
  2967. HELP_SETINDEX = $5;
  2968. HELP_CONTEXTMENU = $a;
  2969. HELP_FINDER = $b;
  2970. HELP_WM_HELP = $c;
  2971. HELP_SETPOPUP_POS = $d;
  2972. HELP_TCARD = $8000;
  2973. HELP_TCARD_DATA = $10;
  2974. HELP_TCARD_OTHER_CALLER = $11;
  2975. { WNetAddConnectino2 }
  2976. CONNECT_UPDATE_PROFILE = 1;
  2977. { WNetConnectionDialog, WNetDisconnectDialog, WNetOpenEnum }
  2978. RESOURCETYPE_DISK = 1;
  2979. RESOURCETYPE_PRINT = 2;
  2980. RESOURCETYPE_ANY = 0;
  2981. RESOURCE_CONNECTED = 1;
  2982. RESOURCE_GLOBALNET = 2;
  2983. RESOURCE_REMEMBERED = 3;
  2984. RESOURCEUSAGE_CONNECTABLE = 1;
  2985. RESOURCEUSAGE_CONTAINER = 2;
  2986. { WNetGetResourceInformation, WNetGetResourceParent }
  2987. WN_BAD_NETNAME = $43;
  2988. WN_EXTENDED_ERROR = $4b8;
  2989. WN_MORE_DATA = $ea;
  2990. WN_NO_NETWORK = $4c6;
  2991. WN_SUCCESS = 0;
  2992. WN_ACCESS_DENIED = $5;
  2993. WN_BAD_PROVIDER = $4b4;
  2994. WN_NOT_AUTHENTICATED = $4dc;
  2995. { WNetGetUniversalName }
  2996. UNIVERSAL_NAME_INFO_LEVEL = 1;
  2997. REMOTE_NAME_INFO_LEVEL = 2;
  2998. { GetExitCodeThread }
  2999. STILL_ACTIVE = $103;
  3000. { COMMPROP structure }
  3001. SP_SERIALCOMM = $1;
  3002. BAUD_075 = $1;
  3003. BAUD_110 = $2;
  3004. BAUD_134_5 = $4;
  3005. BAUD_150 = $8;
  3006. BAUD_300 = $10;
  3007. BAUD_600 = $20;
  3008. BAUD_1200 = $40;
  3009. BAUD_1800 = $80;
  3010. BAUD_2400 = $100;
  3011. BAUD_4800 = $200;
  3012. BAUD_7200 = $400;
  3013. BAUD_9600 = $800;
  3014. BAUD_14400 = $1000;
  3015. BAUD_19200 = $2000;
  3016. BAUD_38400 = $4000;
  3017. BAUD_56K = $8000;
  3018. BAUD_57600 = $40000;
  3019. BAUD_115200 = $20000;
  3020. BAUD_128K = $10000;
  3021. BAUD_USER = $10000000;
  3022. PST_FAX = $21;
  3023. PST_LAT = $101;
  3024. PST_MODEM = $6;
  3025. PST_NETWORK_BRIDGE = $100;
  3026. PST_PARALLELPORT = $2;
  3027. PST_RS232 = $1;
  3028. PST_RS422 = $3;
  3029. PST_RS423 = $4;
  3030. PST_RS449 = $5;
  3031. PST_SCANNER = $22;
  3032. PST_TCPIP_TELNET = $102;
  3033. PST_UNSPECIFIED = 0;
  3034. PST_X25 = $103;
  3035. PCF_16BITMODE = $200;
  3036. PCF_DTRDSR = $1;
  3037. PCF_INTTIMEOUTS = $80;
  3038. PCF_PARITY_CHECK = $8;
  3039. PCF_RLSD = $4;
  3040. PCF_RTSCTS = $2;
  3041. PCF_SETXCHAR = $20;
  3042. PCF_SPECIALCHARS = $100;
  3043. PCF_TOTALTIMEOUTS = $40;
  3044. PCF_XONXOFF = $10;
  3045. SP_BAUD = $2;
  3046. SP_DATABITS = $4;
  3047. SP_HANDSHAKING = $10;
  3048. SP_PARITY = $1;
  3049. SP_PARITY_CHECK = $20;
  3050. SP_RLSD = $40;
  3051. SP_STOPBITS = $8;
  3052. DATABITS_5 = 1;
  3053. DATABITS_6 = 2;
  3054. DATABITS_7 = 4;
  3055. DATABITS_8 = 8;
  3056. DATABITS_16 = 16;
  3057. DATABITS_16X = 32;
  3058. STOPBITS_10 = 1;
  3059. STOPBITS_15 = 2;
  3060. STOPBITS_20 = 4;
  3061. PARITY_NONE = 256;
  3062. PARITY_ODD = 512;
  3063. PARITY_EVEN = 1024;
  3064. PARITY_MARK = 2048;
  3065. PARITY_SPACE = 4096;
  3066. COMMPROP_INITIALIZED = $e73cf52e;
  3067. { DCB structure }
  3068. CBR_110 = 110;
  3069. CBR_300 = 300;
  3070. CBR_600 = 600;
  3071. CBR_1200 = 1200;
  3072. CBR_2400 = 2400;
  3073. CBR_4800 = 4800;
  3074. CBR_9600 = 9600;
  3075. CBR_14400 = 14400;
  3076. CBR_19200 = 19200;
  3077. CBR_38400 = 38400;
  3078. CBR_56000 = 56000;
  3079. CBR_57600 = 57600;
  3080. CBR_115200 = 115200;
  3081. CBR_128000 = 128000;
  3082. CBR_256000 = 256000;
  3083. DTR_CONTROL_DISABLE = 0;
  3084. DTR_CONTROL_ENABLE = 1;
  3085. DTR_CONTROL_HANDSHAKE = 2;
  3086. RTS_CONTROL_DISABLE = 0;
  3087. RTS_CONTROL_ENABLE = 1;
  3088. RTS_CONTROL_HANDSHAKE = 2;
  3089. RTS_CONTROL_TOGGLE = 3;
  3090. EVENPARITY = 2;
  3091. MARKPARITY = 3;
  3092. NOPARITY = 0;
  3093. ODDPARITY = 1;
  3094. SPACEPARITY = 4;
  3095. ONESTOPBIT = 0;
  3096. ONE5STOPBITS = 1;
  3097. TWOSTOPBITS = 2;
  3098. { Debugging events }
  3099. CREATE_PROCESS_DEBUG_EVENT = 3;
  3100. CREATE_THREAD_DEBUG_EVENT = 2;
  3101. EXCEPTION_DEBUG_EVENT = 1;
  3102. EXIT_PROCESS_DEBUG_EVENT = 5;
  3103. EXIT_THREAD_DEBUG_EVENT = 4;
  3104. LOAD_DLL_DEBUG_EVENT = 6;
  3105. OUTPUT_DEBUG_STRING_EVENT = 8;
  3106. UNLOAD_DLL_DEBUG_EVENT = 7;
  3107. RIP_EVENT = 9;
  3108. { PROCESS_HEAP_ENTRY structure }
  3109. PROCESS_HEAP_REGION = 1;
  3110. PROCESS_HEAP_UNCOMMITTED_RANGE = 2;
  3111. PROCESS_HEAP_ENTRY_BUSY = 4;
  3112. PROCESS_HEAP_ENTRY_MOVEABLE = 16;
  3113. PROCESS_HEAP_ENTRY_DDESHARE = 32;
  3114. { Win32s }
  3115. HINSTANCE_ERROR = 32;
  3116. { WIN32_STREAM_ID structure }
  3117. BACKUP_DATA = 1;
  3118. BACKUP_EA_DATA = 2;
  3119. BACKUP_SECURITY_DATA = 3;
  3120. BACKUP_ALTERNATE_DATA = 4;
  3121. BACKUP_LINK = 5;
  3122. STREAM_MODIFIED_WHEN_READ = 1;
  3123. STREAM_CONTAINS_SECURITY = 2;
  3124. { STARTUPINFO structure }
  3125. STARTF_USESHOWWINDOW = 1;
  3126. STARTF_USEPOSITION = 4;
  3127. STARTF_USESIZE = 2;
  3128. STARTF_USECOUNTCHARS = 8;
  3129. STARTF_USEFILLATTRIBUTE = 16;
  3130. STARTF_RUNFULLSCREEN = 32;
  3131. STARTF_FORCEONFEEDBACK = 64;
  3132. STARTF_FORCEOFFFEEDBACK = 128;
  3133. STARTF_USESTDHANDLES = 256;
  3134. STARTF_USEHOTKEY = 512;
  3135. { OSVERSIONINFO structure }
  3136. VER_PLATFORM_WIN32s = 0;
  3137. VER_PLATFORM_WIN32_WINDOWS = 1;
  3138. VER_PLATFORM_WIN32_NT = 2;
  3139. { More versions }
  3140. VER_SERVER_NT = $80000000;
  3141. VER_WORKSTATION_NT = $40000000;
  3142. VER_SUITE_SMALLBUSINESS = $00000001;
  3143. VER_SUITE_ENTERPRISE = $00000002;
  3144. VER_SUITE_BACKOFFICE = $00000004;
  3145. VER_SUITE_COMMUNICATIONS = $00000008;
  3146. VER_SUITE_TERMINAL = $00000010;
  3147. VER_SUITE_SMALLBUSINESS_RESTRICTED = $00000020;
  3148. VER_SUITE_EMBEDDEDNT = $00000040;
  3149. VER_SUITE_DATACENTER = $00000080;
  3150. VER_SUITE_SINGLEUSERTS = $00000100;
  3151. VER_SUITE_PERSONAL = $00000200;
  3152. VER_SUITE_BLADE = $00000400;
  3153. VER_SUITE_EMBEDDED_RESTRICTED = $00000800;
  3154. { PROPSHEETPAGE structure }
  3155. MAXPROPPAGES = 100;
  3156. PSP_DEFAULT = 0;
  3157. PSP_DLGINDIRECT = 1;
  3158. PSP_HASHELP = 32;
  3159. PSP_USECALLBACK = 128;
  3160. PSP_USEHICON = 2;
  3161. PSP_USEICONID = 4;
  3162. PSP_USEREFPARENT = 64;
  3163. PSP_USETITLE = 8;
  3164. PSP_RTLREADING = 16;
  3165. { PROPSHEETHEADER structure }
  3166. PSH_DEFAULT = 0;
  3167. PSH_HASHELP = 512;
  3168. PSH_MODELESS = 1024;
  3169. PSH_NOAPPLYNOW = 128;
  3170. PSH_PROPSHEETPAGE = 8;
  3171. PSH_PROPTITLE = 1;
  3172. PSH_USECALLBACK = 256;
  3173. PSH_USEHICON = 2;
  3174. PSH_USEICONID = 4;
  3175. PSH_USEPSTARTPAGE = 64;
  3176. PSH_WIZARD = 32;
  3177. PSH_RTLREADING = 2048;
  3178. PSCB_INITIALIZED = 1;
  3179. PSCB_PRECREATE = 2;
  3180. { PSN_APPLY message }
  3181. PSNRET_NOERROR = 0;
  3182. PSNRET_INVALID_NOCHANGEPAGE = 2;
  3183. { Property Sheet }
  3184. PSBTN_APPLYNOW = 4;
  3185. PSBTN_BACK = 0;
  3186. PSBTN_CANCEL = 5;
  3187. PSBTN_FINISH = 2;
  3188. PSBTN_HELP = 6;
  3189. PSBTN_NEXT = 1;
  3190. PSBTN_OK = 3;
  3191. PSWIZB_BACK = 1;
  3192. PSWIZB_NEXT = 2;
  3193. PSWIZB_FINISH = 4;
  3194. PSWIZB_DISABLEDFINISH = 8;
  3195. ID_PSREBOOTSYSTEM = 3;
  3196. ID_PSRESTARTWINDOWS = 2;
  3197. WIZ_BODYCX = 184;
  3198. WIZ_BODYX = 92;
  3199. WIZ_CXBMP = 80;
  3200. WIZ_CXDLG = 276;
  3201. WIZ_CYDLG = 140;
  3202. { VX_FIXEDFILEINFO structure }
  3203. VS_FILE_INFO = MAKEINTRESOURCE(16);
  3204. const
  3205. VS_VERSION_INFO = 1;
  3206. VS_FF_DEBUG = $1;
  3207. VS_FF_INFOINFERRED = $10;
  3208. VS_FF_PATCHED = $4;
  3209. VS_FF_PRERELEASE = $2;
  3210. VS_FF_PRIVATEBUILD = $8;
  3211. VS_FF_SPECIALBUILD = $20;
  3212. VOS_WINCE = $00050000;
  3213. VOS__WINDOWS16 = $00000001;
  3214. VOS__PM16 = $00000002;
  3215. VOS__PM32 = $00000003;
  3216. VOS__WINDOWS32 = $00000004;
  3217. VOS_UNKNOWN = 0;
  3218. VOS_BASE = 0;
  3219. VOS_DOS = $10000;
  3220. VOS_OS216 = $20000;
  3221. VOS_OS232 = $30000;
  3222. VOS_NT = $40000;
  3223. VOS_DOS_WINDOWS16 = $10001;
  3224. VOS_DOS_WINDOWS32 = $10004;
  3225. VOS_OS216_PM16 = $20002;
  3226. VOS_OS232_PM32 = $30003;
  3227. VOS_NT_WINDOWS32 = $40004;
  3228. VFT_UNKNOWN = 0;
  3229. VFT_APP = $1;
  3230. VFT_DLL = $2;
  3231. VFT_DRV = $3;
  3232. VFT_FONT = $4;
  3233. VFT_VXD = $5;
  3234. VFT_STATIC_LIB = $7;
  3235. VFT2_UNKNOWN = 0;
  3236. VFT2_DRV_PRINTER = $1;
  3237. VFT2_DRV_KEYBOARD = $2;
  3238. VFT2_DRV_LANGUAGE = $3;
  3239. VFT2_DRV_DISPLAY = $4;
  3240. VFT2_DRV_MOUSE = $5;
  3241. VFT2_DRV_NETWORK = $6;
  3242. VFT2_DRV_SYSTEM = $7;
  3243. VFT2_DRV_INSTALLABLE = $8;
  3244. VFT2_DRV_SOUND = $9;
  3245. VFT2_DRV_COMM = $0a;
  3246. VFT2_DRV_INPUTMETHOD = $0b;
  3247. VFT2_DRV_VERSIONED_PRINTER= $0c;
  3248. VFT2_FONT_RASTER = $1;
  3249. VFT2_FONT_VECTOR = $2;
  3250. VFT2_FONT_TRUETYPE = $3;
  3251. { PANOSE structure }
  3252. PAN_ANY = 0;
  3253. PAN_NO_FIT = 1;
  3254. PAN_FAMILY_TEXT_DISPLAY = 2;
  3255. PAN_FAMILY_SCRIPT = 3;
  3256. PAN_FAMILY_DECORATIVE = 4;
  3257. PAN_FAMILY_PICTORIAL = 5;
  3258. PAN_SERIF_COVE = 2;
  3259. PAN_SERIF_OBTUSE_COVE = 3;
  3260. PAN_SERIF_SQUARE_COVE = 4;
  3261. PAN_SERIF_OBTUSE_SQUARE_COVE = 5;
  3262. PAN_SERIF_SQUARE = 6;
  3263. PAN_SERIF_THIN = 7;
  3264. PAN_SERIF_BONE = 8;
  3265. PAN_SERIF_EXAGGERATED = 9;
  3266. PAN_SERIF_TRIANGLE = 10;
  3267. PAN_SERIF_NORMAL_SANS = 11;
  3268. PAN_SERIF_OBTUSE_SANS = 12;
  3269. PAN_SERIF_PERP_SANS = 13;
  3270. PAN_SERIF_FLARED = 14;
  3271. PAN_SERIF_ROUNDED = 15;
  3272. PAN_WEIGHT_VERY_LIGHT = 2;
  3273. PAN_WEIGHT_LIGHT = 3;
  3274. PAN_WEIGHT_THIN = 4;
  3275. PAN_WEIGHT_BOOK = 5;
  3276. PAN_WEIGHT_MEDIUM = 6;
  3277. PAN_WEIGHT_DEMI = 7;
  3278. PAN_WEIGHT_BOLD = 8;
  3279. PAN_WEIGHT_HEAVY = 9;
  3280. PAN_WEIGHT_BLACK = 10;
  3281. PAN_WEIGHT_NORD = 11;
  3282. PAN_PROP_OLD_STYLE = 2;
  3283. PAN_PROP_MODERN = 3;
  3284. PAN_PROP_EVEN_WIDTH = 4;
  3285. PAN_PROP_EXPANDED = 5;
  3286. PAN_PROP_CONDENSED = 6;
  3287. PAN_PROP_VERY_EXPANDED = 7;
  3288. PAN_PROP_VERY_CONDENSED = 8;
  3289. PAN_PROP_MONOSPACED = 9;
  3290. PAN_CONTRAST_NONE = 2;
  3291. PAN_CONTRAST_VERY_LOW = 3;
  3292. PAN_CONTRAST_LOW = 4;
  3293. PAN_CONTRAST_MEDIUM_LOW = 5;
  3294. PAN_CONTRAST_MEDIUM = 6;
  3295. PAN_CONTRAST_MEDIUM_HIGH = 7;
  3296. PAN_CONTRAST_HIGH = 8;
  3297. PAN_CONTRAST_VERY_HIGH = 9;
  3298. PAN_STROKE_GRADUAL_DIAG = 2;
  3299. PAN_STROKE_GRADUAL_TRAN = 3;
  3300. PAN_STROKE_GRADUAL_VERT = 4;
  3301. PAN_STROKE_GRADUAL_HORZ = 5;
  3302. PAN_STROKE_RAPID_VERT = 6;
  3303. PAN_STROKE_RAPID_HORZ = 7;
  3304. PAN_STROKE_INSTANT_VERT = 8;
  3305. PAN_STRAIGHT_ARMS_HORZ = 2;
  3306. PAN_STRAIGHT_ARMS_WEDGE = 3;
  3307. PAN_STRAIGHT_ARMS_VERT = 4;
  3308. PAN_STRAIGHT_ARMS_SINGLE_SERIF = 5;
  3309. PAN_STRAIGHT_ARMS_DOUBLE_SERIF = 6;
  3310. PAN_BENT_ARMS_HORZ = 7;
  3311. PAN_BENT_ARMS_VERT = 9;
  3312. PAN_BENT_ARMS_WEDGE = 8;
  3313. PAN_BENT_ARMS_SINGLE_SERIF = 10;
  3314. PAN_BENT_ARMS_DOUBLE_SERIF = 11;
  3315. PAN_LETT_NORMAL_CONTACT = 2;
  3316. PAN_LETT_NORMAL_WEIGHTED = 3;
  3317. PAN_LETT_NORMAL_BOXED = 4;
  3318. PAN_LETT_NORMAL_FLATTENED = 5;
  3319. PAN_LETT_NORMAL_ROUNDED = 6;
  3320. PAN_LETT_NORMAL_OFF_CENTER = 7;
  3321. PAN_LETT_NORMAL_SQUARE = 8;
  3322. PAN_LETT_OBLIQUE_CONTACT = 9;
  3323. PAN_LETT_OBLIQUE_WEIGHTED = 10;
  3324. PAN_LETT_OBLIQUE_BOXED = 11;
  3325. PAN_LETT_OBLIQUE_FLATTENED = 12;
  3326. PAN_LETT_OBLIQUE_ROUNDED = 13;
  3327. PAN_LETT_OBLIQUE_OFF_CENTER = 14;
  3328. PAN_LETT_OBLIQUE_SQUARE = 15;
  3329. PAN_MIDLINE_STANDARD_TRIMMED = 2;
  3330. PAN_MIDLINE_STANDARD_POINTED = 3;
  3331. PAN_MIDLINE_STANDARD_SERIFED = 4;
  3332. PAN_MIDLINE_HIGH_TRIMMED = 5;
  3333. PAN_MIDLINE_HIGH_POINTED = 6;
  3334. PAN_MIDLINE_HIGH_SERIFED = 7;
  3335. PAN_MIDLINE_CONSTANT_TRIMMED = 8;
  3336. PAN_MIDLINE_CONSTANT_POINTED = 9;
  3337. PAN_MIDLINE_CONSTANT_SERIFED = 10;
  3338. PAN_MIDLINE_LOW_TRIMMED = 11;
  3339. PAN_MIDLINE_LOW_POINTED = 12;
  3340. PAN_MIDLINE_LOW_SERIFED = 13;
  3341. PAN_XHEIGHT_CONSTANT_SMALL = 2;
  3342. PAN_XHEIGHT_CONSTANT_STD = 3;
  3343. PAN_XHEIGHT_CONSTANT_LARGE = 4;
  3344. PAN_XHEIGHT_DUCKING_SMALL = 5;
  3345. PAN_XHEIGHT_DUCKING_STD = 6;
  3346. PAN_XHEIGHT_DUCKING_LARGE = 7;
  3347. { PALETTENTRY structure }
  3348. PC_EXPLICIT = 2;
  3349. PC_NOCOLLAPSE = 4;
  3350. PC_RESERVED = 1;
  3351. { LOGBRUSH structure }
  3352. BS_DIBPATTERN = 5;
  3353. BS_DIBPATTERN8X8 = 8;
  3354. BS_DIBPATTERNPT = 6;
  3355. BS_HATCHED = 2;
  3356. BS_HOLLOW = 1;
  3357. BS_NULL = 1;
  3358. BS_PATTERN = 3;
  3359. BS_PATTERN8X8 = 7;
  3360. BS_SOLID = 0;
  3361. { DEVMODE structure }
  3362. DM_ORIENTATION = $1;
  3363. DM_PAPERSIZE = $2;
  3364. DM_PAPERLENGTH = $4;
  3365. DM_PAPERWIDTH = $8;
  3366. DM_SCALE = $10;
  3367. DM_POSITION = $00000020;
  3368. DM_NUP = $00000040;
  3369. DM_COPIES = $100;
  3370. DM_DEFAULTSOURCE = $200;
  3371. DM_PRINTQUALITY = $400;
  3372. DM_COLOR = $800;
  3373. DM_DUPLEX = $1000;
  3374. DM_YRESOLUTION = $2000;
  3375. DM_TTOPTION = $4000;
  3376. DM_COLLATE = $8000;
  3377. DM_FORMNAME = $10000;
  3378. DM_LOGPIXELS = $20000;
  3379. {DM_BITSPERPEL = $40000;
  3380. DM_PELSWIDTH = $80000;
  3381. DM_PELSHEIGHT = $100000;
  3382. DM_DISPLAYFLAGS = $200000;
  3383. DM_DISPLAYFREQUENCY = $400000;already above }
  3384. DM_ICMMETHOD = $800000;
  3385. DM_ICMINTENT = $1000000;
  3386. DM_MEDIATYPE = $2000000;
  3387. DM_DITHERTYPE = $4000000;
  3388. DM_PANNINGWIDTH = $08000000;
  3389. DM_PANNINGHEIGHT = $10000000;
  3390. DMORIENT_PORTRAIT = 1;
  3391. DMORIENT_LANDSCAPE = 2;
  3392. DMPAPER_LETTER = 1 ; // US Letter 8 1/2 x 11 in
  3393. DMPAPER_LETTERSMALL = 2 ; // US Letter Small 8 1/2 x 11 in
  3394. DMPAPER_TABLOID = 3 ; // US Tabloid 11 x 17 in
  3395. DMPAPER_LEDGER = 4 ; // US Ledger 17 x 11 in
  3396. DMPAPER_LEGAL = 5 ; // US Legal 8 1/2 x 14 in
  3397. DMPAPER_STATEMENT = 6 ; // US Statement 5 1/2 x 8 1/2 in
  3398. DMPAPER_EXECUTIVE = 7 ; // US Executive 7 1/4 x 10 1/2 in
  3399. DMPAPER_A3 = 8 ; // A3 297 x 420 mm
  3400. DMPAPER_A4 = 9 ; // A4 210 x 297 mm
  3401. DMPAPER_A4SMALL = 10 ; // A4 Small 210 x 297 mm
  3402. DMPAPER_A5 = 11 ; // A5 148 x 210 mm
  3403. DMPAPER_B4 = 12 ; // B4 (JIS) 257 x 364 mm
  3404. DMPAPER_B5 = 13 ; // B5 (JIS) 182 x 257 mm
  3405. DMPAPER_FOLIO = 14 ; // Folio 8 1/2 x 13 in
  3406. DMPAPER_QUARTO = 15 ; // Quarto 215 x 275 mm
  3407. DMPAPER_10X14 = 16 ; // 10 x 14 in
  3408. DMPAPER_11X17 = 17 ; // 11 x 17 in
  3409. DMPAPER_NOTE = 18 ; // US Note 8 1/2 x 11 in
  3410. DMPAPER_ENV_9 = 19 ; // US Envelope #9 3 7/8 x 8 7/8
  3411. DMPAPER_ENV_10 = 20 ; // US Envelope #10 4 1/8 x 9 1/2
  3412. DMPAPER_ENV_11 = 21 ; // US Envelope #11 4 1/2 x 10 3/8
  3413. DMPAPER_ENV_12 = 22 ; // US Envelope #12 4 3/4 x 11 in
  3414. DMPAPER_ENV_14 = 23 ; // US Envelope #14 5 x 11 1/2
  3415. DMPAPER_CSHEET = 24 ; // C size sheet
  3416. DMPAPER_DSHEET = 25 ; // D size sheet
  3417. DMPAPER_ESHEET = 26 ; // E size sheet
  3418. DMPAPER_ENV_DL = 27 ; // Envelope DL 110 x 220mm
  3419. DMPAPER_ENV_C5 = 28 ; // Envelope C5 162 x 229 mm
  3420. DMPAPER_ENV_C3 = 29 ; // Envelope C3 324 x 458 mm
  3421. DMPAPER_ENV_C4 = 30 ; // Envelope C4 229 x 324 mm
  3422. DMPAPER_ENV_C6 = 31 ; // Envelope C6 114 x 162 mm
  3423. DMPAPER_ENV_C65 = 32 ; // Envelope C65 114 x 229 mm
  3424. DMPAPER_ENV_B4 = 33 ; // Envelope B4 250 x 353 mm
  3425. DMPAPER_ENV_B5 = 34 ; // Envelope B5 176 x 250 mm
  3426. DMPAPER_ENV_B6 = 35 ; // Envelope B6 176 x 125 mm
  3427. DMPAPER_ENV_ITALY = 36 ; // Envelope 110 x 230 mm
  3428. DMPAPER_ENV_MONARCH = 37 ; // US Envelope Monarch 3.875 x 7.5 in
  3429. DMPAPER_ENV_PERSONAL = 38 ; // 6 3/4 US Envelope 3 5/8 x 6 1/2 in
  3430. DMPAPER_FANFOLD_US = 39 ; // US Std Fanfold 14 7/8 x 11 in
  3431. DMPAPER_FANFOLD_STD_GERMAN = 40 ; // German Std Fanfold 8 1/2 x 12 in
  3432. DMPAPER_FANFOLD_LGL_GERMAN = 41 ; // German Legal Fanfold 8 1/2 x 13 in
  3433. DMPAPER_ISO_B4 = 42 ; // B4 (ISO) 250 x 353 mm
  3434. DMPAPER_JAPANESE_POSTCARD = 43 ; // Japanese Postcard 100 x 148 mm
  3435. DMPAPER_9X11 = 44 ; // 9 x 11 in
  3436. DMPAPER_10X11 = 45 ; // 10 x 11 in
  3437. DMPAPER_15X11 = 46 ; // 15 x 11 in
  3438. DMPAPER_ENV_INVITE = 47 ; // Envelope Invite 220 x 220 mm
  3439. DMPAPER_RESERVED_48 = 48 ; // RESERVED--DO NOT USE
  3440. DMPAPER_RESERVED_49 = 49 ; // RESERVED--DO NOT USE
  3441. DMPAPER_LETTER_EXTRA = 50 ; // US Letter Extra 9 1/2 x 12 in
  3442. DMPAPER_LEGAL_EXTRA = 51 ; // US Legal Extra 9 1/2 x 15 in
  3443. DMPAPER_TABLOID_EXTRA = 52 ; // US Tabloid Extra 11.69 x 18 in
  3444. DMPAPER_A4_EXTRA = 53 ; // A4 Extra 9.27 x 12.69 in
  3445. DMPAPER_LETTER_TRANSVERSE = 54 ; // Letter Transverse 8 1/2 x 11 in
  3446. DMPAPER_A4_TRANSVERSE = 55 ; // A4 Transverse 210 x 297 mm
  3447. DMPAPER_LETTER_EXTRA_TRANSVERSE = 56 ; // Letter Extra Transverse 9 1/2 x 12 in
  3448. DMPAPER_A_PLUS = 57 ; // SuperA/SuperA/A4 227 x 356 mm
  3449. DMPAPER_B_PLUS = 58 ; // SuperB/SuperB/A3 305 x 487 mm
  3450. DMPAPER_LETTER_PLUS = 59 ; // US Letter Plus 8.5 x 12.69 in
  3451. DMPAPER_A4_PLUS = 60 ; // A4 Plus 210 x 330 mm
  3452. DMPAPER_A5_TRANSVERSE = 61 ; // A5 Transverse 148 x 210 mm
  3453. DMPAPER_B5_TRANSVERSE = 62 ; // B5 (JIS) Transverse 182 x 257 mm
  3454. DMPAPER_A3_EXTRA = 63 ; // A3 Extra 322 x 445 mm
  3455. DMPAPER_A5_EXTRA = 64 ; // A5 Extra 174 x 235 mm
  3456. DMPAPER_B5_EXTRA = 65 ; // B5 (ISO) Extra 201 x 276 mm
  3457. DMPAPER_A2 = 66 ; // A2 420 x 594 mm
  3458. DMPAPER_A3_TRANSVERSE = 67 ; // A3 Transverse 297 x 420 mm
  3459. DMPAPER_A3_EXTRA_TRANSVERSE = 68 ; // A3 Extra Transverse 322 x 445 mm
  3460. DMPAPER_DBL_JAPANESE_POSTCARD = 69 ; // Japanese Double Postcard 200 x 148 mm
  3461. DMPAPER_A6 = 70 ; // A6 105 x 148 mm
  3462. DMPAPER_JENV_KAKU2 = 71 ; // Japanese Envelope Kaku #2
  3463. DMPAPER_JENV_KAKU3 = 72 ; // Japanese Envelope Kaku #3
  3464. DMPAPER_JENV_CHOU3 = 73 ; // Japanese Envelope Chou #3
  3465. DMPAPER_JENV_CHOU4 = 74 ; // Japanese Envelope Chou #4
  3466. DMPAPER_LETTER_ROTATED = 75 ; // Letter Rotated 11 x 8 1/2 11 in
  3467. DMPAPER_A3_ROTATED = 76 ; // A3 Rotated 420 x 297 mm
  3468. DMPAPER_A4_ROTATED = 77 ; // A4 Rotated 297 x 210 mm
  3469. DMPAPER_A5_ROTATED = 78 ; // A5 Rotated 210 x 148 mm
  3470. DMPAPER_B4_JIS_ROTATED = 79 ; // B4 (JIS) Rotated 364 x 257 mm
  3471. DMPAPER_B5_JIS_ROTATED = 80 ; // B5 (JIS) Rotated 257 x 182 mm
  3472. DMPAPER_JAPANESE_POSTCARD_ROTATED = 81 ; // Japanese Postcard Rotated 148 x 100 mm
  3473. DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED = 82 ; // Double Japanese Postcard Rotated 148 x 200 mm
  3474. DMPAPER_A6_ROTATED = 83 ; // A6 Rotated 148 x 105 mm
  3475. DMPAPER_JENV_KAKU2_ROTATED = 84 ; // Japanese Envelope Kaku #2 Rotated
  3476. DMPAPER_JENV_KAKU3_ROTATED = 85 ; // Japanese Envelope Kaku #3 Rotated
  3477. DMPAPER_JENV_CHOU3_ROTATED = 86 ; // Japanese Envelope Chou #3 Rotated
  3478. DMPAPER_JENV_CHOU4_ROTATED = 87 ; // Japanese Envelope Chou #4 Rotated
  3479. DMPAPER_B6_JIS = 88 ; // B6 (JIS) 128 x 182 mm
  3480. DMPAPER_B6_JIS_ROTATED = 89 ; // B6 (JIS) Rotated 182 x 128 mm
  3481. DMPAPER_12X11 = 90 ; // 12 x 11 in
  3482. DMPAPER_JENV_YOU4 = 91 ; // Japanese Envelope You #4
  3483. DMPAPER_JENV_YOU4_ROTATED = 92 ; // Japanese Envelope You #4 Rotated
  3484. DMPAPER_P16K = 93 ; // PRC 16K 146 x 215 mm
  3485. DMPAPER_P32K = 94 ; // PRC 32K 97 x 151 mm
  3486. DMPAPER_P32KBIG = 95 ; // PRC 32K(Big) 97 x 151 mm
  3487. DMPAPER_PENV_1 = 96 ; // PRC Envelope #1 102 x 165 mm
  3488. DMPAPER_PENV_2 = 97 ; // PRC Envelope #2 102 x 176 mm
  3489. DMPAPER_PENV_3 = 98 ; // PRC Envelope #3 125 x 176 mm
  3490. DMPAPER_PENV_4 = 99 ; // PRC Envelope #4 110 x 208 mm
  3491. DMPAPER_PENV_5 = 100; // PRC Envelope #5 110 x 220 mm
  3492. DMPAPER_PENV_6 = 101; // PRC Envelope #6 120 x 230 mm {$IFDEF FPC}
  3493. DMPAPER_PENV_7 = 102; // PRC Envelope #7 160 x 230 mm
  3494. DMPAPER_PENV_8 = 103; // PRC Envelope #8 120 x 309 mm
  3495. DMPAPER_PENV_9 = 104; // PRC Envelope #9 229 x 324 mm
  3496. DMPAPER_PENV_10 = 105; // PRC Envelope #10 324 x 458 mm
  3497. DMPAPER_P16K_ROTATED = 106; // PRC 16K Rotated
  3498. DMPAPER_P32K_ROTATED = 107; // PRC 32K Rotated
  3499. DMPAPER_P32KBIG_ROTATED = 108; // PRC 32K(Big) Rotated
  3500. DMPAPER_PENV_1_ROTATED = 109; // PRC Envelope #1 Rotated 165 x 102 mm
  3501. DMPAPER_PENV_2_ROTATED = 110; // PRC Envelope #2 Rotated 176 x 102 mm
  3502. DMPAPER_PENV_3_ROTATED = 111; // PRC Envelope #3 Rotated 176 x 125 mm
  3503. DMPAPER_PENV_4_ROTATED = 112; // PRC Envelope #4 Rotated 208 x 110 mm
  3504. DMPAPER_PENV_5_ROTATED = 113; // PRC Envelope #5 Rotated 220 x 110 mm
  3505. DMPAPER_PENV_6_ROTATED = 114; // PRC Envelope #6 Rotated 230 x 120 mm
  3506. DMPAPER_PENV_7_ROTATED = 115; // PRC Envelope #7 Rotated 230 x 160 mm
  3507. DMPAPER_PENV_8_ROTATED = 116; // PRC Envelope #8 Rotated 309 x 120 mm
  3508. DMPAPER_PENV_9_ROTATED = 117; // PRC Envelope #9 Rotated 324 x 229 mm
  3509. DMPAPER_PENV_10_ROTATED = 118; // PRC Envelope #10 Rotated 458 x 324 mm
  3510. DMRES_HIGH = -(4);
  3511. DMRES_MEDIUM = -(3);
  3512. DMRES_LOW = -(2);
  3513. DMRES_DRAFT = -(1);
  3514. DMCOLOR_COLOR = 2;
  3515. DMCOLOR_MONOCHROME = 1;
  3516. DMDUP_SIMPLEX = 1;
  3517. DMDUP_HORIZONTAL = 3;
  3518. DMDUP_VERTICAL = 2;
  3519. DMTT_BITMAP = 1;
  3520. DMTT_DOWNLOAD = 2;
  3521. DMTT_SUBDEV = 3;
  3522. DMCOLLATE_TRUE = 1;
  3523. DMCOLLATE_FALSE = 0;
  3524. DM_GRAYSCALE = 1;
  3525. DM_INTERLACED = 2;
  3526. DMICMMETHOD_NONE = 1;
  3527. DMICMMETHOD_SYSTEM = 2;
  3528. DMICMMETHOD_DRIVER = 3;
  3529. DMICMMETHOD_DEVICE = 4;
  3530. DMICMMETHOD_USER = 256;
  3531. DMICM_SATURATE = 1;
  3532. DMICM_CONTRAST = 2;
  3533. DMICM_COLORMETRIC = 3;
  3534. DMICM_USER = 256;
  3535. DMMEDIA_STANDARD = 1;
  3536. DMMEDIA_GLOSSY = 3;
  3537. DMMEDIA_TRANSPARENCY = 2;
  3538. DMMEDIA_USER = 256;
  3539. DMDITHER_NONE = 1;
  3540. DMDITHER_COARSE = 2;
  3541. DMDITHER_FINE = 3;
  3542. DMDITHER_LINEART = 4;
  3543. DMDITHER_GRAYSCALE = 10;
  3544. DMDITHER_USER = 256;
  3545. { RGNDATAHEADER structure }
  3546. RDH_RECTANGLES = 1;
  3547. { TTPOLYGONHEADER structure }
  3548. TT_POLYGON_TYPE = 24;
  3549. { TTPOLYCURVE structure }
  3550. TT_PRIM_LINE = 1;
  3551. TT_PRIM_QSPLINE = 2;
  3552. { GCP_RESULTS structure }
  3553. GCPCLASS_ARABIC = 2;
  3554. GCPCLASS_HEBREW = 2;
  3555. GCPCLASS_LATIN = 1;
  3556. GCPCLASS_LATINNUMBER = 5;
  3557. GCPCLASS_LOCALNUMBER = 4;
  3558. GCPCLASS_LATINNUMERICSEPARATOR = 7;
  3559. GCPCLASS_LATINNUMERICTERMINATOR = 6;
  3560. GCPCLASS_NEUTRAL = 3;
  3561. GCPCLASS_NUMERICSEPARATOR = 8;
  3562. GCPCLASS_PREBOUNDLTR = 128;
  3563. GCPCLASS_PREBOUNDRTL = 64;
  3564. GCPCLASS_POSTBOUNDLTR = 32;
  3565. GCPCLASS_POSTBOUNDRTL = 16;
  3566. GCPGLYPH_LINKBEFORE = 32768;
  3567. GCPGLYPH_LINKAFTER = 16384;
  3568. { RASTERIZER_STATUS structure }
  3569. TT_AVAILABLE = 1;
  3570. TT_ENABLED = 2;
  3571. { COLORADJUSTMENT structure }
  3572. CA_NEGATIVE = 1;
  3573. CA_LOG_FILTER = 2;
  3574. ILLUMINANT_DEVICE_DEFAULT = 0;
  3575. ILLUMINANT_A = 1;
  3576. ILLUMINANT_B = 2;
  3577. ILLUMINANT_C = 3;
  3578. ILLUMINANT_D50 = 4;
  3579. ILLUMINANT_D55 = 5;
  3580. ILLUMINANT_D65 = 6;
  3581. ILLUMINANT_D75 = 7;
  3582. ILLUMINANT_F2 = 8;
  3583. ILLUMINANT_TUNGSTEN = 1;
  3584. ILLUMINANT_DAYLIGHT = 3;
  3585. ILLUMINANT_FLUORESCENT = 8;
  3586. ILLUMINANT_NTSC = 3;
  3587. { DOCINFO structure }
  3588. DI_APPBANDING = 1;
  3589. { EMRMETAHEADER structure }
  3590. EMR_HEADER = 1;
  3591. ENHMETA_SIGNATURE = 1179469088;
  3592. { RTF event masks }
  3593. ENM_CHANGE = 1;
  3594. ENM_CORRECTTEXT = 4194304;
  3595. ENM_DROPFILES = 1048576;
  3596. ENM_KEYEVENTS = 65536;
  3597. ENM_MOUSEEVENTS = 131072;
  3598. ENM_PROTECTED = 2097152;
  3599. ENM_REQUESTRESIZE = 262144;
  3600. ENM_SCROLL = 4;
  3601. ENM_SELCHANGE = 524288;
  3602. ENM_UPDATE = 2;
  3603. ENM_NONE = 0;
  3604. { RTF styles }
  3605. ES_DISABLENOSCROLL = 8192;
  3606. ES_EX_NOCALLOLEINIT = 16777216;
  3607. ES_NOIME = 524288;
  3608. ES_SAVESEL = 32768;
  3609. ES_SELFIME = 262144;
  3610. ES_SUNKEN = 16384;
  3611. ES_VERTICAL = 4194304;
  3612. ES_SELECTIONBAR = 16777216;
  3613. { EM_SETOPTIONS message }
  3614. ECOOP_SET = 1;
  3615. ECOOP_OR = 2;
  3616. ECOOP_AND = 3;
  3617. ECOOP_XOR = 4;
  3618. ECO_AUTOWORDSELECTION = 1;
  3619. ECO_AUTOVSCROLL = 64;
  3620. ECO_AUTOHSCROLL = 128;
  3621. ECO_NOHIDESEL = 256;
  3622. ECO_READONLY = 2048;
  3623. ECO_WANTRETURN = 4096;
  3624. ECO_SAVESEL = 32768;
  3625. ECO_SELECTIONBAR = 16777216;
  3626. ECO_VERTICAL = 4194304;
  3627. { EM_SETCHARFORMAT message }
  3628. SCF_WORD = 2;
  3629. SCF_SELECTION = 1;
  3630. { EM_STREAMOUT message }
  3631. SF_TEXT = 1;
  3632. SF_RTF = 2;
  3633. SF_RTFNOOBJS = 3;
  3634. SF_TEXTIZED = 4;
  3635. SFF_SELECTION = 32768;
  3636. SFF_PLAINRTF = 16384;
  3637. { EM_FINDWORDBREAK message }
  3638. WB_CLASSIFY = 3;
  3639. {WB_ISDELIMITER = 2;
  3640. WB_LEFT = 0; already above }
  3641. WB_LEFTBREAK = 6;
  3642. WB_PREVBREAK = 6;
  3643. WB_MOVEWORDLEFT = 4;
  3644. WB_MOVEWORDPREV = 4;
  3645. WB_MOVEWORDRIGHT = 5;
  3646. WB_MOVEWORDNEXT = 5;
  3647. {WB_RIGHT = 1;already above }
  3648. WB_RIGHTBREAK = 7;
  3649. WB_NEXTBREAK = 7;
  3650. { EM_GETPUNCTUATION message }
  3651. PC_LEADING = 2;
  3652. PC_FOLLOWING = 1;
  3653. PC_DELIMITER = 4;
  3654. PC_OVERFLOW = 3;
  3655. { EM_SETWORDWRAPMODE message }
  3656. WBF_WORDWRAP = 16;
  3657. WBF_WORDBREAK = 32;
  3658. WBF_OVERFLOW = 64;
  3659. WBF_LEVEL1 = 128;
  3660. WBF_LEVEL2 = 256;
  3661. WBF_CUSTOM = 512;
  3662. WBF_BREAKAFTER = 64;
  3663. WBF_BREAKLINE = 32;
  3664. WBF_ISWHITE = 16;
  3665. { CHARFORMAT structure }
  3666. CFM_BOLD = 1;
  3667. CFM_COLOR = 1073741824;
  3668. CFM_FACE = 536870912;
  3669. CFM_ITALIC = 2;
  3670. CFM_OFFSET = 268435456;
  3671. CFM_PROTECTED = 16;
  3672. CFM_SIZE = $80000000;
  3673. CFM_STRIKEOUT = 8;
  3674. CFM_UNDERLINE = 4;
  3675. CFE_AUTOCOLOR = 1073741824;
  3676. CFE_BOLD = 1;
  3677. CFE_ITALIC = 2;
  3678. CFE_STRIKEOUT = 8;
  3679. CFE_UNDERLINE = 4;
  3680. CFE_PROTECTED = 16;
  3681. { PARAFORMAT structure }
  3682. PFM_ALIGNMENT = 8;
  3683. PFM_NUMBERING = 32;
  3684. PFM_OFFSET = 4;
  3685. PFM_OFFSETINDENT = $80000000;
  3686. PFM_RIGHTINDENT = 2;
  3687. PFM_STARTINDENT = 1;
  3688. PFM_TABSTOPS = 16;
  3689. PFN_BULLET = 1;
  3690. PFA_LEFT = 1;
  3691. PFA_RIGHT = 2;
  3692. PFA_CENTER = 3;
  3693. { SELCHANGE structure }
  3694. SEL_EMPTY = 0;
  3695. SEL_TEXT = 1;
  3696. SEL_OBJECT = 2;
  3697. SEL_MULTICHAR = 4;
  3698. SEL_MULTIOBJECT = 8;
  3699. { RTF clipboard formats }
  3700. CF_RTF = 'Rich Text Format';
  3701. CF_RETEXTOBJ = 'RichEdit Text and Objects';
  3702. { DRAWITEMSTRUCT structure }
  3703. ODT_BUTTON = 4;
  3704. ODT_COMBOBOX = 3;
  3705. ODT_LISTBOX = 2;
  3706. ODT_LISTVIEW = 102;
  3707. ODT_MENU = 1;
  3708. ODT_STATIC = 5;
  3709. ODT_TAB = 101;
  3710. ODT_HEADER = 100;
  3711. ODA_DRAWENTIRE = 1;
  3712. ODA_FOCUS = 4;
  3713. ODA_SELECT = 2;
  3714. ODS_SELECTED = 1;
  3715. ODS_GRAYED = 2;
  3716. ODS_DISABLED = 4;
  3717. ODS_CHECKED = 8;
  3718. ODS_FOCUS = 16;
  3719. ODS_DEFAULT = 32;
  3720. ODS_HOTLIGHT = $0040;
  3721. ODS_INACTIVE = $0080;
  3722. ODS_NOACCEL = $0100;
  3723. ODS_NOFOCUSRECT = $0200;
  3724. ODS_COMBOBOXEDIT = $1000;
  3725. { Common control window classes }
  3726. ANIMATE_CLASSW = 'SysAnimate32';
  3727. HOTKEY_CLASSW = 'msctls_hotkey32';
  3728. PROGRESS_CLASSW = 'msctls_progress32';
  3729. STATUSCLASSNAMEW = 'msctls_statusbar32';
  3730. TOOLBARCLASSNAMEW = 'ToolbarWindow32';
  3731. TOOLTIPS_CLASSW = 'tooltips_class32';
  3732. TRACKBAR_CLASSW = 'msctls_trackbar32';
  3733. UPDOWN_CLASSW = 'msctls_updown32';
  3734. WC_HEADERW = 'SysHeader32';
  3735. WC_LISTVIEWW = 'SysListView32';
  3736. WC_TABCONTROLW = 'SysTabControl32';
  3737. WC_TREEVIEWW = 'SysTreeView32';
  3738. { Common control styles }
  3739. CCS_ADJUSTABLE = $20;
  3740. CCS_BOTTOM = $3;
  3741. CCS_NODIVIDER = $40;
  3742. CCS_NOMOVEY = $2;
  3743. CCS_NOPARENTALIGN = $8;
  3744. CCS_NORESIZE = $4;
  3745. CCS_TOP = $1;
  3746. ANIMATE_CLASSA = 'SysAnimate32';
  3747. HOTKEY_CLASSA = 'msctls_hotkey32';
  3748. PROGRESS_CLASSA = 'msctls_progress32';
  3749. STATUSCLASSNAMEA = 'msctls_statusbar32';
  3750. TOOLBARCLASSNAMEA = 'ToolbarWindow32';
  3751. TOOLTIPS_CLASSA = 'tooltips_class32';
  3752. TRACKBAR_CLASSA = 'msctls_trackbar32';
  3753. UPDOWN_CLASSA = 'msctls_updown32';
  3754. WC_HEADERA = 'SysHeader32';
  3755. WC_LISTVIEWA = 'SysListView32';
  3756. WC_TABCONTROLA = 'SysTabControl32';
  3757. WC_TREEVIEWA = 'SysTreeView32';
  3758. {$ifdef UNICODE}
  3759. const
  3760. ANIMATE_CLASS = ANIMATE_CLASSW;
  3761. HOTKEY_CLASS = HOTKEY_CLASSW;
  3762. PROGRESS_CLASS = PROGRESS_CLASSW;
  3763. STATUSCLASSNAME = STATUSCLASSNAMEW;
  3764. TOOLBARCLASSNAME = TOOLBARCLASSNAMEW;
  3765. TOOLTIPS_CLASS = TOOLTIPS_CLASSW;
  3766. TRACKBAR_CLASS = TRACKBAR_CLASSW;
  3767. UPDOWN_CLASS = UPDOWN_CLASSW;
  3768. WC_HEADER = WC_HEADERW;
  3769. WC_LISTVIEW = WC_LISTVIEWW;
  3770. WC_TABCONTROL = WC_TABCONTROLW;
  3771. WC_TREEVIEW = WC_TREEVIEWW;
  3772. {$else}
  3773. const
  3774. ANIMATE_CLASS = ANIMATE_CLASSA;
  3775. HOTKEY_CLASS = HOTKEY_CLASSA;
  3776. PROGRESS_CLASS = PROGRESS_CLASSA;
  3777. STATUSCLASSNAME = STATUSCLASSNAMEA;
  3778. TOOLBARCLASSNAME = TOOLBARCLASSNAMEA;
  3779. TOOLTIPS_CLASS = TOOLTIPS_CLASSA;
  3780. TRACKBAR_CLASS = TRACKBAR_CLASSA;
  3781. UPDOWN_CLASS = UPDOWN_CLASSA;
  3782. WC_HEADER = WC_HEADERA;
  3783. WC_LISTVIEW = WC_LISTVIEWA;
  3784. WC_TABCONTROL = WC_TABCONTROLA;
  3785. WC_TREEVIEW = WC_TREEVIEWA;
  3786. {$endif}
  3787. { UNICODE }
  3788. { Header control styles }
  3789. const
  3790. HDS_BUTTONS = 2;
  3791. HDS_HIDDEN = 8;
  3792. HDS_HORZ = 0;
  3793. { HD_ITEM structure }
  3794. HDI_BITMAP = 16;
  3795. HDI_FORMAT = 4;
  3796. HDI_HEIGHT = 1;
  3797. HDI_LPARAM = 8;
  3798. HDI_TEXT = 2;
  3799. HDI_WIDTH = 1;
  3800. HDF_CENTER = 2;
  3801. HDF_LEFT = 0;
  3802. HDF_RIGHT = 1;
  3803. HDF_RTLREADING = 4;
  3804. HDF_BITMAP = 8192;
  3805. HDF_OWNERDRAW = 32768;
  3806. HDF_STRING = 16384;
  3807. HDF_JUSTIFYMASK = 3;
  3808. { HD_HITTESTINFO structure }
  3809. HHT_NOWHERE = 1;
  3810. HHT_ONDIVIDER = 4;
  3811. HHT_ONDIVOPEN = 8;
  3812. HHT_ONHEADER = 2;
  3813. HHT_TOLEFT = 2048;
  3814. HHT_TORIGHT = 1024;
  3815. { TBADDBITMAP structure }
  3816. HINST_COMMCTRL = HINST(-1);
  3817. const
  3818. IDB_STD_LARGE_COLOR = 1;
  3819. IDB_STD_SMALL_COLOR = 0;
  3820. IDB_VIEW_LARGE_COLOR = 5;
  3821. IDB_VIEW_SMALL_COLOR = 4;
  3822. STD_COPY = 1;
  3823. STD_CUT = 0;
  3824. STD_DELETE = 5;
  3825. STD_FILENEW = 6;
  3826. STD_FILEOPEN = 7;
  3827. STD_FILESAVE = 8;
  3828. STD_FIND = 12;
  3829. STD_HELP = 11;
  3830. STD_PASTE = 2;
  3831. STD_PRINT = 14;
  3832. STD_PRINTPRE = 9;
  3833. STD_PROPERTIES = 10;
  3834. STD_REDOW = 4;
  3835. STD_REPLACE = 13;
  3836. STD_UNDO = 3;
  3837. VIEW_LARGEICONS = 0;
  3838. VIEW_SMALLICONS = 1;
  3839. VIEW_LIST = 2;
  3840. VIEW_DETAILS = 3;
  3841. VIEW_SORTNAME = 4;
  3842. VIEW_SORTSIZE = 5;
  3843. VIEW_SORTDATE = 6;
  3844. VIEW_SORTTYPE = 7;
  3845. { Toolbar styles }
  3846. TBSTYLE_ALTDRAG = 1024;
  3847. TBSTYLE_TOOLTIPS = 256;
  3848. TBSTYLE_WRAPABLE = 512;
  3849. TBSTYLE_BUTTON = 0;
  3850. TBSTYLE_CHECK = 2;
  3851. TBSTYLE_CHECKGROUP = 6;
  3852. TBSTYLE_GROUP = 4;
  3853. TBSTYLE_SEP = 1;
  3854. { Toolbar states }
  3855. TBSTATE_CHECKED = 1;
  3856. TBSTATE_ENABLED = 4;
  3857. TBSTATE_HIDDEN = 8;
  3858. TBSTATE_INDETERMINATE = 16;
  3859. TBSTATE_PRESSED = 2;
  3860. TBSTATE_WRAP = 32;
  3861. { Tooltip styles }
  3862. TTS_ALWAYSTIP = 1;
  3863. TTS_NOPREFIX = 2;
  3864. { TOOLINFO structure }
  3865. TTF_IDISHWND = 1;
  3866. TTF_CENTERTIP = 2;
  3867. TTF_RTLREADING = 4;
  3868. TTF_SUBCLASS = 16;
  3869. { TTM_SETDELAYTIME message }
  3870. TTDT_AUTOMATIC = 0;
  3871. TTDT_AUTOPOP = 2;
  3872. TTDT_INITIAL = 3;
  3873. TTDT_RESHOW = 1;
  3874. { Status window }
  3875. SBARS_SIZEGRIP = 256;
  3876. {SBARS_SIZEGRIP = 256;already above }
  3877. { DL_DRAGGING message }
  3878. DL_MOVECURSOR = 3;
  3879. DL_COPYCURSOR = 2;
  3880. DL_STOPCURSOR = 1;
  3881. { Up-down control styles }
  3882. UDS_ALIGNLEFT = 8;
  3883. UDS_ALIGNRIGHT = 4;
  3884. UDS_ARROWKEYS = 32;
  3885. UDS_AUTOBUDDY = 16;
  3886. UDS_HORZ = 64;
  3887. UDS_HOTTRACK = 256;
  3888. UDS_NOTHOUSANDS = 128;
  3889. UDS_SETBUDDYINT = 2;
  3890. UDS_WRAP = 1;
  3891. { UDM_SETRANGE message }
  3892. UD_MAXVAL = 32767;
  3893. UD_MINVAL = -(32767);
  3894. { HKM_GETHOTKEY message }
  3895. HOTKEYF_ALT = 4;
  3896. HOTKEYF_CONTROL = 2;
  3897. HOTKEYF_EXT = 8;
  3898. HOTKEYF_SHIFT = 1;
  3899. { HKM_SETRULES message }
  3900. HKCOMB_A = 8;
  3901. HKCOMB_C = 4;
  3902. HKCOMB_CA = 64;
  3903. HKCOMB_NONE = 1;
  3904. HKCOMB_S = 2;
  3905. HKCOMB_SA = 32;
  3906. HKCOMB_SC = 16;
  3907. HKCOMB_SCA = 128;
  3908. { Trackbar styles }
  3909. TBS_HORZ = 0;
  3910. TBS_VERT = 2;
  3911. TBS_AUTOTICKS = 1;
  3912. TBS_NOTICKS = 16;
  3913. TBS_TOP = 4;
  3914. TBS_BOTTOM = 0;
  3915. TBS_LEFT = 4;
  3916. TBS_RIGHT = 0;
  3917. TBS_BOTH = 8;
  3918. TBS_ENABLESELRANGE = 32;
  3919. TBS_FIXEDLENGTH = 64;
  3920. TBS_NOTHUMB = 128;
  3921. TB_BOTTOM = 7;
  3922. TB_ENDTRACK = 8;
  3923. TB_LINEDOWN = 1;
  3924. TB_LINEUP = 0;
  3925. TB_PAGEDOWN = 3;
  3926. TB_PAGEUP = 2;
  3927. TB_THUMBPOSITION = 4;
  3928. TB_THUMBTRACK = 5;
  3929. TB_TOP = 6;
  3930. { List view styles }
  3931. LVS_ALIGNLEFT = 2048;
  3932. LVS_ALIGNTOP = 0;
  3933. LVS_AUTOARRANGE = 256;
  3934. LVS_EDITLABELS = 512;
  3935. LVS_ICON = 0;
  3936. LVS_LIST = 3;
  3937. LVS_NOCOLUMNHEADER = 16384;
  3938. LVS_NOLABELWRAP = 128;
  3939. LVS_NOSCROLL = 8192;
  3940. LVS_NOSORTHEADER = 32768;
  3941. LVS_OWNERDRAWFIXED = 1024;
  3942. LVS_REPORT = 1;
  3943. LVS_SHAREIMAGELISTS = 64;
  3944. LVS_SHOWSELALWAYS = 8;
  3945. LVS_SINGLESEL = 4;
  3946. LVS_SMALLICON = 2;
  3947. LVS_SORTASCENDING = 16;
  3948. LVS_SORTDESCENDING = 32;
  3949. LVS_TYPESTYLEMASK = 64512;
  3950. LVSIL_NORMAL = 0;
  3951. LVSIL_SMALL = 1;
  3952. LVSIL_STATE = 2;
  3953. LVIS_CUT = 4;
  3954. LVIS_DROPHILITED = 8;
  3955. LVIS_FOCUSED = 1;
  3956. LVIS_SELECTED = 2;
  3957. LVIS_OVERLAYMASK = 3840;
  3958. LVIS_STATEIMAGEMASK = 61440;
  3959. LPSTR_TEXTCALLBACKW = LPWSTR(-1);
  3960. LPSTR_TEXTCALLBACKA = LPSTR(-1);
  3961. {$ifdef UNICODE}
  3962. LPSTR_TEXTCALLBACK = LPSTR_TEXTCALLBACKW;
  3963. {$else}
  3964. LPSTR_TEXTCALLBACK = LPSTR_TEXTCALLBACKA;
  3965. {$endif}
  3966. { UNICODE }
  3967. { LV_ITEM structure }
  3968. const
  3969. LVIF_TEXT = 1;
  3970. LVIF_IMAGE = 2;
  3971. LVIF_PARAM = 4;
  3972. LVIF_STATE = 8;
  3973. LVIF_DI_SETITEM = 4096;
  3974. { LVM_GETNEXTITEM structure }
  3975. LVNI_ABOVE = 256;
  3976. LVNI_ALL = 0;
  3977. LVNI_BELOW = 512;
  3978. LVNI_TOLEFT = 1024;
  3979. LVNI_TORIGHT = 2048;
  3980. LVNI_CUT = 4;
  3981. LVNI_DROPHILITED = 8;
  3982. LVNI_FOCUSED = 1;
  3983. LVNI_SELECTED = 2;
  3984. { LV_FINDINFO structure }
  3985. LVFI_PARAM = 1;
  3986. LVFI_PARTIAL = 8;
  3987. LVFI_STRING = 2;
  3988. LVFI_WRAP = 32;
  3989. LVFI_NEARESTXY = 64;
  3990. { LV_HITTESTINFO structure }
  3991. LVHT_ABOVE = 8;
  3992. LVHT_BELOW = 16;
  3993. LVHT_NOWHERE = 1;
  3994. LVHT_ONITEMICON = 2;
  3995. LVHT_ONITEMLABEL = 4;
  3996. LVHT_ONITEMSTATEICON = 8;
  3997. LVHT_TOLEFT = 64;
  3998. LVHT_TORIGHT = 32;
  3999. { LV_COLUMN structure }
  4000. LVCF_FMT = 1;
  4001. LVCF_SUBITEM = 8;
  4002. LVCF_TEXT = 4;
  4003. LVCF_WIDTH = 2;
  4004. LVCFMT_CENTER = 2;
  4005. LVCFMT_LEFT = 0;
  4006. LVCFMT_RIGHT = 1;
  4007. { ListView_GetItemRect }
  4008. LVIR_BOUNDS = 0;
  4009. LVIR_ICON = 1;
  4010. LVIR_LABEL = 2;
  4011. LVIR_SELECTBOUNDS = 3;
  4012. { LVM_ARRANGE message }
  4013. LVA_ALIGNLEFT = 1;
  4014. LVA_ALIGNTOP = 2;
  4015. LVA_DEFAULT = 0;
  4016. LVA_SNAPTOGRID = 5;
  4017. { LVM_SETCOLUMNWIDTH message }
  4018. LVSCW_AUTOSIZE = -(1);
  4019. LVSCW_AUTOSIZE_USEHEADER = -(2);
  4020. { Tree View styles }
  4021. TVS_DISABLEDRAGDROP = 16;
  4022. TVS_EDITLABELS = 8;
  4023. TVS_HASBUTTONS = 1;
  4024. TVS_HASLINES = 2;
  4025. TVS_LINESATROOT = 4;
  4026. TVS_SHOWSELALWAYS = 32;
  4027. { Tree View states }
  4028. TVIS_BOLD = 16;
  4029. TVIS_CUT = 4;
  4030. TVIS_DROPHILITED = 8;
  4031. TVIS_EXPANDED = 32;
  4032. TVIS_EXPANDEDONCE = 64;
  4033. TVIS_FOCUSED = 1;
  4034. TVIS_OVERLAYMASK = 3840;
  4035. TVIS_SELECTED = 2;
  4036. TVIS_STATEIMAGEMASK = 61440;
  4037. TVIS_USERMASK = 61440;
  4038. { TV_ITEM structure }
  4039. TVIF_CHILDREN = 64;
  4040. TVIF_HANDLE = 16;
  4041. TVIF_IMAGE = 2;
  4042. TVIF_PARAM = 4;
  4043. TVIF_SELECTEDIMAGE = 32;
  4044. TVIF_STATE = 8;
  4045. TVIF_TEXT = 1;
  4046. I_CHILDRENCALLBACK = -(1);
  4047. I_IMAGECALLBACK = -(1);
  4048. { TV_INSERTSTRUCT structure }
  4049. { added manually PM, TREEITEM is not defined in the C headers }
  4050. type
  4051. TREEITEM = record
  4052. end;
  4053. HTREEITEM = ^TREEITEM;
  4054. TTREEITEM = TREEITEM;
  4055. PTREEITEM = ^TREEITEM;
  4056. const
  4057. TVI_ROOT = HTREEITEM($FFFF0000);
  4058. TVI_FIRST =HTREEITEM($FFFF0001);
  4059. TVI_LAST = HTREEITEM($FFFF0002);
  4060. TVI_SORT = HTREEITEM($FFFF0003);
  4061. { TV_HITTESTINFO structure }
  4062. const
  4063. TVHT_ABOVE = 256;
  4064. TVHT_BELOW = 512;
  4065. TVHT_NOWHERE = 1;
  4066. TVHT_ONITEM = 70;
  4067. TVHT_ONITEMBUTTON = 16;
  4068. TVHT_ONITEMICON = 2;
  4069. TVHT_ONITEMINDENT = 8;
  4070. TVHT_ONITEMLABEL = 4;
  4071. TVHT_ONITEMRIGHT = 32;
  4072. TVHT_ONITEMSTATEICON = 64;
  4073. TVHT_TOLEFT = 2048;
  4074. TVHT_TORIGHT = 1024;
  4075. { TVM_EXPAND message }
  4076. TVE_COLLAPSE = 1;
  4077. TVE_COLLAPSERESET = 32768;
  4078. TVE_EXPAND = 2;
  4079. TVE_TOGGLE = 3;
  4080. { TVM_GETIMAGELIST message }
  4081. TVSIL_NORMAL = 0;
  4082. TVSIL_STATE = 2;
  4083. { TVM_GETNEXTITEM message }
  4084. TVGN_CARET = 9;
  4085. TVGN_CHILD = 4;
  4086. TVGN_DROPHILITE = 8;
  4087. TVGN_FIRSTVISIBLE = 5;
  4088. TVGN_NEXT = 1;
  4089. TVGN_NEXTVISIBLE = 6;
  4090. TVGN_PARENT = 3;
  4091. TVGN_PREVIOUS = 2;
  4092. TVGN_PREVIOUSVISIBLE = 7;
  4093. TVGN_ROOT = 0;
  4094. { TVN_SELCHANGED message }
  4095. TVC_BYKEYBOARD = 2;
  4096. TVC_BYMOUSE = 1;
  4097. TVC_UNKNOWN = 0;
  4098. { Tab control styles }
  4099. TCS_BUTTONS = 256;
  4100. TCS_FIXEDWIDTH = 1024;
  4101. TCS_FOCUSNEVER = 32768;
  4102. TCS_FOCUSONBUTTONDOWN = 4096;
  4103. TCS_FORCEICONLEFT = 16;
  4104. TCS_FORCELABELLEFT = 32;
  4105. TCS_MULTILINE = 512;
  4106. TCS_OWNERDRAWFIXED = 8192;
  4107. TCS_RAGGEDRIGHT = 2048;
  4108. TCS_RIGHTJUSTIFY = 0;
  4109. TCS_SINGLELINE = 0;
  4110. TCS_TABS = 0;
  4111. TCS_TOOLTIPS = 16384;
  4112. { TC_ITEM structure }
  4113. TCIF_TEXT = 1;
  4114. TCIF_IMAGE = 2;
  4115. TCIF_PARAM = 8;
  4116. TCIF_RTLREADING = 4;
  4117. { TC_HITTESTINFO structure }
  4118. TCHT_NOWHERE = 1;
  4119. TCHT_ONITEM = 6;
  4120. TCHT_ONITEMICON = 2;
  4121. TCHT_ONITEMLABEL = 4;
  4122. { Animation control styles }
  4123. ACS_AUTOPLAY = 4;
  4124. ACS_CENTER = 1;
  4125. ACS_TRANSPARENT = 2;
  4126. ACS_TIMER = 8; // don't use threads... use timers
  4127. { MODEMDEVCAPS structure }
  4128. DIALOPTION_BILLING = 64;
  4129. DIALOPTION_QUIET = 128;
  4130. DIALOPTION_DIALTONE = 256;
  4131. MDMVOLFLAG_LOW = 1;
  4132. MDMVOLFLAG_MEDIUM = 2;
  4133. MDMVOLFLAG_HIGH = 4;
  4134. MDMVOL_LOW = 0;
  4135. MDMVOL_MEDIUM = 1;
  4136. MDMVOL_HIGH = 2;
  4137. MDMSPKRFLAG_OFF = 1;
  4138. MDMSPKRFLAG_DIAL = 2;
  4139. MDMSPKRFLAG_ON = 4;
  4140. MDMSPKRFLAG_CALLSETUP = 8;
  4141. MDMSPKR_OFF = 0;
  4142. MDMSPKR_DIAL = 1;
  4143. MDMSPKR_ON = 2;
  4144. MDMSPKR_CALLSETUP = 3;
  4145. MDM_BLIND_DIAL = 512;
  4146. MDM_CCITT_OVERRIDE = 64;
  4147. MDM_CELLULAR = 8;
  4148. MDM_COMPRESSION = 1;
  4149. MDM_ERROR_CONTROL = 2;
  4150. MDM_FLOWCONTROL_HARD = 16;
  4151. MDM_FLOWCONTROL_SOFT = 32;
  4152. MDM_FORCED_EC = 4;
  4153. MDM_SPEED_ADJUST = 128;
  4154. MDM_TONE_DIAL = 256;
  4155. MDM_V23_OVERRIDE = 1024;
  4156. { Languages }
  4157. //
  4158. // Language IDs.
  4159. //
  4160. // The following two combinations of primary language ID and
  4161. // sublanguage ID have special semantics:
  4162. //
  4163. // Primary Language ID Sublanguage ID Result
  4164. // ------------------- --------------- ------------------------
  4165. // LANG_NEUTRAL SUBLANG_NEUTRAL Language neutral
  4166. // LANG_NEUTRAL SUBLANG_DEFAULT User default language
  4167. // LANG_NEUTRAL SUBLANG_SYS_DEFAULT System default language
  4168. // LANG_INVARIANT SUBLANG_NEUTRAL Invariant locale
  4169. //
  4170. //
  4171. // Primary language IDs.
  4172. //
  4173. LANG_NEUTRAL = $00;
  4174. LANG_INVARIANT = $7f;
  4175. LANG_AFRIKAANS = $36;
  4176. LANG_ALBANIAN = $1c;
  4177. LANG_ARABIC = $01;
  4178. LANG_ARMENIAN = $2b;
  4179. LANG_ASSAMESE = $4d;
  4180. LANG_AZERI = $2c;
  4181. LANG_BASQUE = $2d;
  4182. LANG_BELARUSIAN = $23;
  4183. LANG_BENGALI = $45;
  4184. LANG_BULGARIAN = $02;
  4185. LANG_CATALAN = $03;
  4186. LANG_CHINESE = $04;
  4187. LANG_CROATIAN = $1a;
  4188. LANG_CZECH = $05;
  4189. LANG_DANISH = $06;
  4190. LANG_DIVEHI = $65;
  4191. LANG_DUTCH = $13;
  4192. LANG_ENGLISH = $09;
  4193. LANG_ESTONIAN = $25;
  4194. LANG_FAEROESE = $38;
  4195. LANG_FARSI = $29;
  4196. LANG_FINNISH = $0b;
  4197. LANG_FRENCH = $0c;
  4198. LANG_GALICIAN = $56;
  4199. LANG_GEORGIAN = $37;
  4200. LANG_GERMAN = $07;
  4201. LANG_GREEK = $08;
  4202. LANG_GUJARATI = $47;
  4203. LANG_HEBREW = $0d;
  4204. LANG_HINDI = $39;
  4205. LANG_HUNGARIAN = $0e;
  4206. LANG_ICELANDIC = $0f;
  4207. LANG_INDONESIAN = $21;
  4208. LANG_ITALIAN = $10;
  4209. LANG_JAPANESE = $11;
  4210. LANG_KANNADA = $4b;
  4211. LANG_KASHMIRI = $60;
  4212. LANG_KAZAK = $3f;
  4213. LANG_KONKANI = $57;
  4214. LANG_KOREAN = $12;
  4215. LANG_KYRGYZ = $40;
  4216. LANG_LATVIAN = $26;
  4217. LANG_LITHUANIAN = $27;
  4218. LANG_MACEDONIAN = $2f; // the Former Yugoslav Republic of Macedonia
  4219. LANG_MALAY = $3e;
  4220. LANG_MALAYALAM = $4c;
  4221. LANG_MANIPURI = $58;
  4222. LANG_MARATHI = $4e;
  4223. LANG_MONGOLIAN = $50;
  4224. LANG_NEPALI = $61;
  4225. LANG_NORWEGIAN = $14;
  4226. LANG_ORIYA = $48;
  4227. LANG_POLISH = $15;
  4228. LANG_PORTUGUESE = $16;
  4229. LANG_PUNJABI = $46;
  4230. LANG_ROMANIAN = $18;
  4231. LANG_RUSSIAN = $19;
  4232. LANG_SANSKRIT = $4f;
  4233. LANG_SERBIAN = $1a;
  4234. LANG_SINDHI = $59;
  4235. LANG_SLOVAK = $1b;
  4236. LANG_SLOVENIAN = $24;
  4237. LANG_SPANISH = $0a;
  4238. LANG_SWAHILI = $41;
  4239. LANG_SWEDISH = $1d;
  4240. LANG_SYRIAC = $5a;
  4241. LANG_TAMIL = $49;
  4242. LANG_TATAR = $44;
  4243. LANG_TELUGU = $4a;
  4244. LANG_THAI = $1e;
  4245. LANG_TURKISH = $1f;
  4246. LANG_UKRAINIAN = $22;
  4247. LANG_URDU = $20;
  4248. LANG_UZBEK = $43;
  4249. LANG_VIETNAMESE = $2a;
  4250. //
  4251. // Sublanguage IDs.
  4252. //
  4253. // The name immediately following SUBLANG_ dictates which primary
  4254. // language ID that sublanguage ID can be combined with to form a
  4255. // valid language ID.
  4256. //
  4257. SUBLANG_NEUTRAL = $00; // language neutral
  4258. SUBLANG_DEFAULT = $01; // user default
  4259. SUBLANG_SYS_DEFAULT = $02; // system default
  4260. SUBLANG_ARABIC_SAUDI_ARABIA = $01; // Arabic (Saudi Arabia)
  4261. SUBLANG_ARABIC_IRAQ = $02; // Arabic (Iraq)
  4262. SUBLANG_ARABIC_EGYPT = $03; // Arabic (Egypt)
  4263. SUBLANG_ARABIC_LIBYA = $04; // Arabic (Libya)
  4264. SUBLANG_ARABIC_ALGERIA = $05; // Arabic (Algeria)
  4265. SUBLANG_ARABIC_MOROCCO = $06; // Arabic (Morocco)
  4266. SUBLANG_ARABIC_TUNISIA = $07; // Arabic (Tunisia)
  4267. SUBLANG_ARABIC_OMAN = $08; // Arabic (Oman)
  4268. SUBLANG_ARABIC_YEMEN = $09; // Arabic (Yemen)
  4269. SUBLANG_ARABIC_SYRIA = $0a; // Arabic (Syria)
  4270. SUBLANG_ARABIC_JORDAN = $0b; // Arabic (Jordan)
  4271. SUBLANG_ARABIC_LEBANON = $0c; // Arabic (Lebanon)
  4272. SUBLANG_ARABIC_KUWAIT = $0d; // Arabic (Kuwait)
  4273. SUBLANG_ARABIC_UAE = $0e; // Arabic (U.A.E)
  4274. SUBLANG_ARABIC_BAHRAIN = $0f; // Arabic (Bahrain)
  4275. SUBLANG_ARABIC_QATAR = $10; // Arabic (Qatar)
  4276. SUBLANG_AZERI_LATIN = $01; // Azeri (Latin)
  4277. SUBLANG_AZERI_CYRILLIC = $02; // Azeri (Cyrillic)
  4278. SUBLANG_CHINESE_TRADITIONAL = $01; // Chinese (Taiwan)
  4279. SUBLANG_CHINESE_SIMPLIFIED = $02; // Chinese (PR China)
  4280. SUBLANG_CHINESE_HONGKONG = $03; // Chinese (Hong Kong S.A.R., P.R.C.)
  4281. SUBLANG_CHINESE_SINGAPORE = $04; // Chinese (Singapore)
  4282. SUBLANG_CHINESE_MACAU = $05; // Chinese (Macau S.A.R.)
  4283. SUBLANG_DUTCH = $01; // Dutch
  4284. SUBLANG_DUTCH_BELGIAN = $02; // Dutch (Belgian)
  4285. SUBLANG_ENGLISH_US = $01; // English (USA)
  4286. SUBLANG_ENGLISH_UK = $02; // English (UK)
  4287. SUBLANG_ENGLISH_AUS = $03; // English (Australian)
  4288. SUBLANG_ENGLISH_CAN = $04; // English (Canadian)
  4289. SUBLANG_ENGLISH_NZ = $05; // English (New Zealand)
  4290. SUBLANG_ENGLISH_EIRE = $06; // English (Irish)
  4291. SUBLANG_ENGLISH_SOUTH_AFRICA = $07; // English (South Africa)
  4292. SUBLANG_ENGLISH_JAMAICA = $08; // English (Jamaica)
  4293. SUBLANG_ENGLISH_CARIBBEAN = $09; // English (Caribbean)
  4294. SUBLANG_ENGLISH_BELIZE = $0a; // English (Belize)
  4295. SUBLANG_ENGLISH_TRINIDAD = $0b; // English (Trinidad)
  4296. SUBLANG_ENGLISH_ZIMBABWE = $0c; // English (Zimbabwe)
  4297. SUBLANG_ENGLISH_PHILIPPINES = $0d; // English (Philippines)
  4298. SUBLANG_FRENCH = $01; // French
  4299. SUBLANG_FRENCH_BELGIAN = $02; // French (Belgian)
  4300. SUBLANG_FRENCH_CANADIAN = $03; // French (Canadian)
  4301. SUBLANG_FRENCH_SWISS = $04; // French (Swiss)
  4302. SUBLANG_FRENCH_LUXEMBOURG = $05; // French (Luxembourg)
  4303. SUBLANG_FRENCH_MONACO = $06; // French (Monaco)
  4304. SUBLANG_GERMAN = $01; // German
  4305. SUBLANG_GERMAN_SWISS = $02; // German (Swiss)
  4306. SUBLANG_GERMAN_AUSTRIAN = $03; // German (Austrian)
  4307. SUBLANG_GERMAN_LUXEMBOURG = $04; // German (Luxembourg)
  4308. SUBLANG_GERMAN_LIECHTENSTEIN = $05; // German (Liechtenstein)
  4309. SUBLANG_ITALIAN = $01; // Italian
  4310. SUBLANG_ITALIAN_SWISS = $02; // Italian (Swiss)
  4311. SUBLANG_KASHMIRI_SASIA = $02; // Kashmiri (South Asia)
  4312. SUBLANG_KASHMIRI_INDIA = $02; // For app compatibility only
  4313. SUBLANG_KOREAN = $01; // Korean (Extended Wansung)
  4314. SUBLANG_LITHUANIAN = $01; // Lithuanian
  4315. SUBLANG_MALAY_MALAYSIA = $01; // Malay (Malaysia)
  4316. SUBLANG_MALAY_BRUNEI_DARUSSALAM = $02; // Malay (Brunei Darussalam)
  4317. SUBLANG_NEPALI_INDIA = $02; // Nepali (India)
  4318. SUBLANG_NORWEGIAN_BOKMAL = $01; // Norwegian (Bokmal)
  4319. SUBLANG_NORWEGIAN_NYNORSK = $02; // Norwegian (Nynorsk)
  4320. SUBLANG_PORTUGUESE = $02; // Portuguese
  4321. SUBLANG_PORTUGUESE_BRAZILIAN = $01; // Portuguese (Brazilian)
  4322. SUBLANG_SERBIAN_LATIN = $02; // Serbian (Latin)
  4323. SUBLANG_SERBIAN_CYRILLIC = $03; // Serbian (Cyrillic)
  4324. SUBLANG_SPANISH = $01; // Spanish (Castilian)
  4325. SUBLANG_SPANISH_MEXICAN = $02; // Spanish (Mexican)
  4326. SUBLANG_SPANISH_MODERN = $03; // Spanish (Spain)
  4327. SUBLANG_SPANISH_GUATEMALA = $04; // Spanish (Guatemala)
  4328. SUBLANG_SPANISH_COSTA_RICA = $05; // Spanish (Costa Rica)
  4329. SUBLANG_SPANISH_PANAMA = $06; // Spanish (Panama)
  4330. SUBLANG_SPANISH_DOMINICAN_REPUBLIC = $07; // Spanish (Dominican Republic)
  4331. SUBLANG_SPANISH_VENEZUELA = $08; // Spanish (Venezuela)
  4332. SUBLANG_SPANISH_COLOMBIA = $09; // Spanish (Colombia)
  4333. SUBLANG_SPANISH_PERU = $0a; // Spanish (Peru)
  4334. SUBLANG_SPANISH_ARGENTINA = $0b; // Spanish (Argentina)
  4335. SUBLANG_SPANISH_ECUADOR = $0c; // Spanish (Ecuador)
  4336. SUBLANG_SPANISH_CHILE = $0d; // Spanish (Chile)
  4337. SUBLANG_SPANISH_URUGUAY = $0e; // Spanish (Uruguay)
  4338. SUBLANG_SPANISH_PARAGUAY = $0f; // Spanish (Paraguay)
  4339. SUBLANG_SPANISH_BOLIVIA = $10; // Spanish (Bolivia)
  4340. SUBLANG_SPANISH_EL_SALVADOR = $11; // Spanish (El Salvador)
  4341. SUBLANG_SPANISH_HONDURAS = $12; // Spanish (Honduras)
  4342. SUBLANG_SPANISH_NICARAGUA = $13; // Spanish (Nicaragua)
  4343. SUBLANG_SPANISH_PUERTO_RICO = $14; // Spanish (Puerto Rico)
  4344. SUBLANG_SWEDISH = $01; // Swedish
  4345. SUBLANG_SWEDISH_FINLAND = $02; // Swedish (Finland)
  4346. SUBLANG_URDU_PAKISTAN = $01; // Urdu (Pakistan)
  4347. SUBLANG_URDU_INDIA = $02; // Urdu (India)
  4348. SUBLANG_UZBEK_LATIN = $01; // Uzbek (Latin)
  4349. SUBLANG_UZBEK_CYRILLIC = $02; // Uzbek (Cyrillic)
  4350. //
  4351. // Sorting IDs.
  4352. //
  4353. SORT_DEFAULT = $0; // sorting default
  4354. SORT_JAPANESE_XJIS = $0; // Japanese XJIS order
  4355. SORT_JAPANESE_UNICODE = $1; // Japanese Unicode order
  4356. SORT_CHINESE_BIG5 = $0; // Chinese BIG5 order
  4357. SORT_CHINESE_PRCP = $0; // PRC Chinese Phonetic order
  4358. SORT_CHINESE_UNICODE = $1; // Chinese Unicode order
  4359. SORT_CHINESE_PRC = $2; // PRC Chinese Stroke Count order
  4360. SORT_CHINESE_BOPOMOFO = $3; // Traditional Chinese Bopomofo order
  4361. SORT_KOREAN_KSC = $0; // Korean KSC order
  4362. SORT_KOREAN_UNICODE = $1; // Korean Unicode order
  4363. SORT_GERMAN_PHONE_BOOK = $1; // German Phone Book order
  4364. SORT_HUNGARIAN_DEFAULT = $0; // Hungarian Default order
  4365. SORT_HUNGARIAN_TECHNICAL = $1; // Hungarian Technical order
  4366. SORT_GEORGIAN_TRADITIONAL = $0; // Georgian Traditional order
  4367. SORT_GEORGIAN_MODERN = $1; // Georgian Modern order
  4368. { SYSTEM_INFO structure }
  4369. PROCESSOR_INTEL_386 = 386;
  4370. PROCESSOR_INTEL_486 = 486;
  4371. PROCESSOR_INTEL_PENTIUM = 586;
  4372. PROCESSOR_MIPS_R4000 = 4000;
  4373. PROCESSOR_ALPHA_21064 = 21064;
  4374. { FSCTL_SET_COMPRESSION }
  4375. COMPRESSION_FORMAT_NONE = 0;
  4376. COMPRESSION_FORMAT_DEFAULT = 1;
  4377. COMPRESSION_FORMAT_LZNT1 = 2;
  4378. { TAPE_GET_DRIVE_PARAMETERS structure }
  4379. TAPE_DRIVE_COMPRESSION = 131072;
  4380. TAPE_DRIVE_ECC = 65536;
  4381. TAPE_DRIVE_ERASE_BOP_ONLY = 64;
  4382. TAPE_DRIVE_ERASE_LONG = 32;
  4383. TAPE_DRIVE_ERASE_IMMEDIATE = 128;
  4384. TAPE_DRIVE_ERASE_SHORT = 16;
  4385. TAPE_DRIVE_FIXED = 1;
  4386. TAPE_DRIVE_FIXED_BLOCK = 1024;
  4387. TAPE_DRIVE_INITIATOR = 4;
  4388. TAPE_DRIVE_PADDING = 262144;
  4389. TAPE_DRIVE_GET_ABSOLUTE_BLK = 1048576;
  4390. TAPE_DRIVE_GET_LOGICAL_BLK = 2097152;
  4391. TAPE_DRIVE_REPORT_SMKS = 524288;
  4392. TAPE_DRIVE_SELECT = 2;
  4393. TAPE_DRIVE_SET_EOT_WZ_SIZE = 4194304;
  4394. TAPE_DRIVE_TAPE_CAPACITY = 256;
  4395. TAPE_DRIVE_TAPE_REMAINING = 512;
  4396. TAPE_DRIVE_VARIABLE_BLOCK = 2048;
  4397. TAPE_DRIVE_WRITE_PROTECT = 4096;
  4398. TAPE_DRIVE_ABS_BLK_IMMED = -(2147475456);
  4399. TAPE_DRIVE_ABSOLUTE_BLK = -(2147479552);
  4400. TAPE_DRIVE_END_OF_DATA = -(2147418112);
  4401. TAPE_DRIVE_FILEMARKS = -(2147221504);
  4402. TAPE_DRIVE_LOAD_UNLOAD = -(2147483647);
  4403. TAPE_DRIVE_LOAD_UNLD_IMMED = -(2147483616);
  4404. TAPE_DRIVE_LOCK_UNLOCK = -(2147483644);
  4405. TAPE_DRIVE_LOCK_UNLK_IMMED = -(2147483520);
  4406. TAPE_DRIVE_LOG_BLK_IMMED = -(2147450880);
  4407. TAPE_DRIVE_LOGICAL_BLK = -(2147467264);
  4408. TAPE_DRIVE_RELATIVE_BLKS = -(2147352576);
  4409. TAPE_DRIVE_REVERSE_POSITION = -(2143289344);
  4410. TAPE_DRIVE_REWIND_IMMEDIATE = -(2147483640);
  4411. TAPE_DRIVE_SEQUENTIAL_FMKS = -(2146959360);
  4412. TAPE_DRIVE_SEQUENTIAL_SMKS = -(2145386496);
  4413. TAPE_DRIVE_SET_BLOCK_SIZE = -(2147483632);
  4414. TAPE_DRIVE_SET_COMPRESSION = -(2147483136);
  4415. TAPE_DRIVE_SET_ECC = -(2147483392);
  4416. TAPE_DRIVE_SET_PADDING = -(2147482624);
  4417. TAPE_DRIVE_SET_REPORT_SMKS = -(2147481600);
  4418. TAPE_DRIVE_SETMARKS = -(2146435072);
  4419. TAPE_DRIVE_SPACE_IMMEDIATE = -(2139095040);
  4420. TAPE_DRIVE_TENSION = -(2147483646);
  4421. TAPE_DRIVE_TENSION_IMMED = -(2147483584);
  4422. TAPE_DRIVE_WRITE_FILEMARKS = -(2113929216);
  4423. TAPE_DRIVE_WRITE_LONG_FMKS = -(2013265920);
  4424. TAPE_DRIVE_WRITE_MARK_IMMED = -(1879048192);
  4425. TAPE_DRIVE_WRITE_SETMARKS = -(2130706432);
  4426. TAPE_DRIVE_WRITE_SHORT_FMKS = -(2080374784);
  4427. { Standard rights }
  4428. STANDARD_RIGHTS_REQUIRED = $f0000;
  4429. STANDARD_RIGHTS_WRITE = $20000;
  4430. STANDARD_RIGHTS_READ = $20000;
  4431. STANDARD_RIGHTS_EXECUTE = $20000;
  4432. STANDARD_RIGHTS_ALL = $1f0000;
  4433. SPECIFIC_RIGHTS_ALL = $ffff;
  4434. { ACCESS_MASK }
  4435. MAXIMUM_ALLOWED = $2000000;
  4436. GENERIC_ALL = $10000000;
  4437. { SID }
  4438. SECURITY_NULL_RID = 0;
  4439. SECURITY_WORLD_RID = 0;
  4440. SECURITY_LOCAL_RID = 0;
  4441. SECURITY_CREATOR_OWNER_RID = 0;
  4442. SECURITY_CREATOR_GROUP_RID = $1;
  4443. SECURITY_DIALUP_RID = $1;
  4444. SECURITY_NETWORK_RID = $2;
  4445. SECURITY_BATCH_RID = $3;
  4446. SECURITY_INTERACTIVE_RID = $4;
  4447. SECURITY_LOGON_IDS_RID = $5;
  4448. SECURITY_LOGON_IDS_RID_COUNT = $3;
  4449. SECURITY_SERVICE_RID = $6;
  4450. SECURITY_LOCAL_SYSTEM_RID = $12;
  4451. SECURITY_BUILTIN_DOMAIN_RID = $20;
  4452. DOMAIN_USER_RID_ADMIN = $1f4;
  4453. DOMAIN_USER_RID_GUEST = $1f5;
  4454. DOMAIN_GROUP_RID_ADMINS = $200;
  4455. DOMAIN_GROUP_RID_USERS = $201;
  4456. DOMAIN_ALIAS_RID_ADMINS = $220;
  4457. DOMAIN_ALIAS_RID_USERS = $221;
  4458. DOMAIN_ALIAS_RID_GUESTS = $222;
  4459. DOMAIN_ALIAS_RID_POWER_USERS = $223;
  4460. DOMAIN_ALIAS_RID_ACCOUNT_OPS = $224;
  4461. DOMAIN_ALIAS_RID_SYSTEM_OPS = $225;
  4462. DOMAIN_ALIAS_RID_PRINT_OPS = $226;
  4463. DOMAIN_ALIAS_RID_BACKUP_OPS = $227;
  4464. DOMAIN_ALIAS_RID_REPLICATOR = $228;
  4465. { TOKEN_GROUPS structure }
  4466. SE_GROUP_MANDATORY = $1;
  4467. SE_GROUP_ENABLED_BY_DEFAULT = $2;
  4468. SE_GROUP_ENABLED = $4;
  4469. SE_GROUP_OWNER = $8;
  4470. SE_GROUP_LOGON_ID = $c0000000;
  4471. { ACL Defines }
  4472. ACL_REVISION = 2;
  4473. { ACE_HEADER structure }
  4474. ACCESS_ALLOWED_ACE_TYPE = $0;
  4475. ACCESS_DENIED_ACE_TYPE = $1;
  4476. SYSTEM_AUDIT_ACE_TYPE = $2;
  4477. SYSTEM_ALARM_ACE_TYPE = $3;
  4478. { ACE flags in the ACE_HEADER structure }
  4479. OBJECT_INHERIT_ACE = $1;
  4480. CONTAINER_INHERIT_ACE = $2;
  4481. NO_PROPAGATE_INHERIT_ACE = $4;
  4482. INHERIT_ONLY_ACE = $8;
  4483. SUCCESSFUL_ACCESS_ACE_FLAG = $40;
  4484. FAILED_ACCESS_ACE_FLAG = $80;
  4485. { SECURITY_DESCRIPTOR_CONTROL }
  4486. {SECURITY_DESCRIPTOR_REVISION = 1;already defined above }
  4487. SE_OWNER_DEFAULTED = 1;
  4488. SE_GROUP_DEFAULTED = 2;
  4489. SE_DACL_PRESENT = 4;
  4490. SE_DACL_DEFAULTED = 8;
  4491. SE_SACL_PRESENT = 16;
  4492. SE_SACL_DEFAULTED = 32;
  4493. SE_SELF_RELATIVE = 32768;
  4494. { PRIVILEGE_SET }
  4495. SE_PRIVILEGE_ENABLED_BY_DEFAULT = $1;
  4496. SE_PRIVILEGE_ENABLED = $2;
  4497. SE_PRIVILEGE_USED_FOR_ACCESS = $80000000;
  4498. PRIVILEGE_SET_ALL_NECESSARY = $1;
  4499. { OPENFILENAME structure }
  4500. OFN_READONLY = $1;
  4501. OFN_OVERWRITEPROMPT = $2;
  4502. OFN_HIDEREADONLY = $4;
  4503. OFN_NOCHANGEDIR = $8;
  4504. OFN_SHOWHELP = $10;
  4505. OFN_ENABLEHOOK = $20;
  4506. OFN_ENABLETEMPLATE = $40;
  4507. OFN_ENABLETEMPLATEHANDLE = $80;
  4508. OFN_NOVALIDATE = $100;
  4509. OFN_ALLOWMULTISELECT = $200;
  4510. OFN_EXTENSIONDIFFERENT = $400;
  4511. OFN_PATHMUSTEXIST = $800;
  4512. OFN_FILEMUSTEXIST = $1000;
  4513. OFN_CREATEPROMPT = $2000;
  4514. OFN_SHAREAWARE = $4000;
  4515. OFN_NOREADONLYRETURN = $8000;
  4516. OFN_NOTESTFILECREATE = $10000;
  4517. OFN_NONETWORKBUTTON = $20000;
  4518. OFN_NOLONGNAMES = $40000;
  4519. OFN_EXPLORER = $80000;
  4520. OFN_NODEREFERENCELINKS = $100000;
  4521. OFN_LONGNAMES = $200000;
  4522. OFN_ENABLEINCLUDENOTIFY = $00400000;
  4523. OFN_ENABLESIZING = $00800000;
  4524. OFN_DONTADDTORECENT = $02000000;
  4525. OFN_FORCESHOWHIDDEN = $10000000;
  4526. { SHAREVISTRING message }
  4527. OFN_SHAREFALLTHROUGH = $2;
  4528. OFN_SHARENOWARN = $1;
  4529. OFN_SHAREWARN = 0;
  4530. OFN_EX_NOPLACESBAR = $00000001;
  4531. { Open/Save notifications }
  4532. CDN_INITDONE = $fffffda7;
  4533. CDN_SELCHANGE = $fffffda6;
  4534. CDN_FOLDERCHANGE = $fffffda5;
  4535. CDN_SHAREVIOLATION = $fffffda4;
  4536. CDN_HELP = $fffffda3;
  4537. CDN_FILEOK = $fffffda2;
  4538. CDN_TYPECHANGE = $fffffda1;
  4539. { Open/Save messages }
  4540. CDM_GETFILEPATH = $465;
  4541. CDM_GETFOLDERIDLIST = $467;
  4542. CDM_GETFOLDERPATH = $466;
  4543. CDM_GETSPEC = $464;
  4544. CDM_HIDECONTROL = $469;
  4545. CDM_SETCONTROLTEXT = $468;
  4546. CDM_SETDEFEXT = $46a;
  4547. { CHOOSECOLOR structure }
  4548. CC_ENABLEHOOK = $10;
  4549. CC_ENABLETEMPLATE = $20;
  4550. CC_ENABLETEMPLATEHANDLE = $40;
  4551. CC_FULLOPEN = $2;
  4552. CC_PREVENTFULLOPEN = $4;
  4553. CC_RGBINIT = $1;
  4554. CC_SHOWHELP = $8;
  4555. CC_SOLIDCOLOR = $80;
  4556. { FINDREPLACE structure }
  4557. FR_DIALOGTERM = $40;
  4558. FR_DOWN = $1;
  4559. FR_ENABLEHOOK = $100;
  4560. FR_ENABLETEMPLATE = $200;
  4561. FR_ENABLETEMPLATEHANDLE = $2000;
  4562. FR_FINDNEXT = $8;
  4563. FR_HIDEUPDOWN = $4000;
  4564. FR_HIDEMATCHCASE = $8000;
  4565. FR_HIDEWHOLEWORD = $10000;
  4566. FR_MATCHCASE = $4;
  4567. FR_NOMATCHCASE = $800;
  4568. FR_NOUPDOWN = $400;
  4569. FR_NOWHOLEWORD = $1000;
  4570. FR_REPLACE = $10;
  4571. FR_REPLACEALL = $20;
  4572. FR_SHOWHELP = $80;
  4573. FR_WHOLEWORD = $2;
  4574. { CHOOSEFONT structure }
  4575. CF_APPLY = $200;
  4576. CF_ANSIONLY = $400;
  4577. CF_BOTH = $3;
  4578. CF_TTONLY = $40000;
  4579. CF_EFFECTS = $100;
  4580. CF_ENABLEHOOK = $8;
  4581. CF_ENABLETEMPLATE = $10;
  4582. CF_ENABLETEMPLATEHANDLE = $20;
  4583. CF_FIXEDPITCHONLY = $4000;
  4584. CF_FORCEFONTEXIST = $10000;
  4585. CF_INITTOLOGFONTSTRUCT = $40;
  4586. CF_LIMITSIZE = $2000;
  4587. CF_NOOEMFONTS = $800;
  4588. CF_NOFACESEL = $80000;
  4589. CF_NOSCRIPTSEL = $800000;
  4590. CF_NOSTYLESEL = $100000;
  4591. CF_NOSIZESEL = $200000;
  4592. CF_NOSIMULATIONS = $1000;
  4593. CF_NOVECTORFONTS = $800;
  4594. CF_NOVERTFONTS = $1000000;
  4595. CF_PRINTERFONTS = $2;
  4596. CF_SCALABLEONLY = $20000;
  4597. CF_SCREENFONTS = $1;
  4598. CF_SCRIPTSONLY = $400;
  4599. CF_SELECTSCRIPT = $400000;
  4600. CF_SHOWHELP = $4;
  4601. CF_USESTYLE = $80;
  4602. CF_WYSIWYG = $8000;
  4603. BOLD_FONTTYPE = $100;
  4604. ITALIC_FONTTYPE = $200;
  4605. PRINTER_FONTTYPE = $4000;
  4606. REGULAR_FONTTYPE = $400;
  4607. SCREEN_FONTTYPE = $2000;
  4608. SIMULATED_FONTTYPE = $8000;
  4609. { Common dialog messages }
  4610. COLOROKSTRINGW = 'commdlg_ColorOK';
  4611. FILEOKSTRINGW = 'commdlg_FileNameOK';
  4612. FINDMSGSTRINGW = 'commdlg_FindReplace';
  4613. HELPMSGSTRINGW = 'commdlg_help';
  4614. LBSELCHSTRINGW = 'commdlg_LBSelChangedNotify';
  4615. SETRGBSTRINGW = 'commdlg_SetRGBColor';
  4616. SHAREVISTRINGW = 'commdlg_ShareViolation';
  4617. COLOROKSTRINGA = 'commdlg_ColorOK';
  4618. FILEOKSTRINGA = 'commdlg_FileNameOK';
  4619. FINDMSGSTRINGA = 'commdlg_FindReplace';
  4620. HELPMSGSTRINGA = 'commdlg_help';
  4621. LBSELCHSTRINGA = 'commdlg_LBSelChangedNotify';
  4622. SETRGBSTRINGA = 'commdlg_SetRGBColor';
  4623. SHAREVISTRINGA = 'commdlg_ShareViolation';
  4624. {$ifdef UNICODE}
  4625. const
  4626. COLOROKSTRING = COLOROKSTRINGW;
  4627. FILEOKSTRING = FILEOKSTRINGW;
  4628. FINDMSGSTRING = FINDMSGSTRINGW;
  4629. HELPMSGSTRING = HELPMSGSTRINGW;
  4630. LBSELCHSTRING = LBSELCHSTRINGW;
  4631. SETRGBSTRING = SETRGBSTRINGW;
  4632. SHAREVISTRING = SHAREVISTRINGW;
  4633. {$else}
  4634. const
  4635. COLOROKSTRING = COLOROKSTRINGA;
  4636. FILEOKSTRING = FILEOKSTRINGA;
  4637. FINDMSGSTRING = FINDMSGSTRINGA;
  4638. HELPMSGSTRING = HELPMSGSTRINGA;
  4639. LBSELCHSTRING = LBSELCHSTRINGA;
  4640. SETRGBSTRING = SETRGBSTRINGA;
  4641. SHAREVISTRING = SHAREVISTRINGA;
  4642. {$endif}
  4643. { LBSELCHSTRING message }
  4644. const
  4645. CD_LBSELCHANGE = 0;
  4646. CD_LBSELADD = 2;
  4647. CD_LBSELSUB = 1;
  4648. CD_LBSELNOITEMS = -(1);
  4649. { DEVNAMES structure }
  4650. DN_DEFAULTPRN = 1;
  4651. { PRINTDLG structure }
  4652. PD_ALLPAGES = 0;
  4653. PD_COLLATE = 16;
  4654. PD_DISABLEPRINTTOFILE = 524288;
  4655. PD_ENABLEPRINTHOOK = 4096;
  4656. PD_ENABLEPRINTTEMPLATE = 16384;
  4657. PD_ENABLEPRINTTEMPLATEHANDLE = 65536;
  4658. PD_ENABLESETUPHOOK = 8192;
  4659. PD_ENABLESETUPTEMPLATE = 32768;
  4660. PD_ENABLESETUPTEMPLATEHANDLE = 131072;
  4661. PD_HIDEPRINTTOFILE = 1048576;
  4662. PD_NOPAGENUMS = 8;
  4663. PD_NOSELECTION = 4;
  4664. PD_NOWARNING = 128;
  4665. PD_PAGENUMS = 2;
  4666. PD_PRINTSETUP = 64;
  4667. PD_PRINTTOFILE = 32;
  4668. PD_RETURNDC = 256;
  4669. PD_RETURNDEFAULT = 1024;
  4670. PD_RETURNIC = 512;
  4671. PD_SELECTION = 1;
  4672. PD_SHOWHELP = 2048;
  4673. PD_USEDEVMODECOPIES = 262144;
  4674. PD_USEDEVMODECOPIESANDCOLLATE = 262144;
  4675. { PAGESETUPDLG structure }
  4676. PSD_DEFAULTMINMARGINS = 0;
  4677. PSD_DISABLEMARGINS = 16;
  4678. PSD_DISABLEORIENTATION = 256;
  4679. PSD_DISABLEPAGEPAINTING = 524288;
  4680. PSD_DISABLEPAPER = 512;
  4681. PSD_DISABLEPRINTER = 32;
  4682. PSD_ENABLEPAGEPAINTHOOK = 262144;
  4683. PSD_ENABLEPAGESETUPHOOK = 8192;
  4684. PSD_ENABLEPAGESETUPTEMPLATE = 32768;
  4685. PSD_ENABLEPAGESETUPTEMPLATEHANDLE = 131072;
  4686. PSD_INHUNDREDTHSOFMILLIMETERS = 8;
  4687. PSD_INTHOUSANDTHSOFINCHES = 4;
  4688. PSD_INWININIINTLMEASURE = 0;
  4689. PSD_MARGINS = 2;
  4690. PSD_MINMARGINS = 1;
  4691. PSD_NOWARNING = 128;
  4692. PSD_RETURNDEFAULT = 1024;
  4693. PSD_SHOWHELP = 2048;
  4694. { WM_SHOWWINDOW message }
  4695. SW_OTHERUNZOOM = 4;
  4696. SW_OTHERZOOM = 2;
  4697. SW_PARENTCLOSING = 1;
  4698. SW_PARENTOPENING = 3;
  4699. AW_HOR_POSITIVE = $00000001;
  4700. AW_HOR_NEGATIVE = $00000002;
  4701. AW_VER_POSITIVE = $00000004;
  4702. AW_VER_NEGATIVE = $00000008;
  4703. AW_CENTER = $00000010;
  4704. AW_HIDE = $00010000;
  4705. AW_ACTIVATE = $00020000;
  4706. AW_SLIDE = $00040000;
  4707. AW_BLEND = $00080000;
  4708. { Virtual Key codes }
  4709. VK_LBUTTON = 1;
  4710. VK_RBUTTON = 2;
  4711. VK_CANCEL = 3;
  4712. VK_MBUTTON = 4;
  4713. VK_XBUTTON1 = 5;
  4714. VK_XBUTTON2 = 6;
  4715. VK_BACK = 8;
  4716. VK_TAB = 9;
  4717. VK_CLEAR = 12;
  4718. VK_RETURN = 13;
  4719. VK_SHIFT = 16;
  4720. VK_CONTROL = 17;
  4721. VK_MENU = 18;
  4722. VK_PAUSE = 19;
  4723. VK_CAPITAL = 20;
  4724. VK_KANA = 21;
  4725. VK_HANGEUL = 21;
  4726. VK_HANGUL = 21;
  4727. VK_JUNJA = 23;
  4728. VK_FINAL = 24;
  4729. VK_HANJA = 25;
  4730. VK_KANJI = 25;
  4731. VK_ESCAPE = 27;
  4732. VK_CONVERT = 28;
  4733. VK_NONCONVERT = 29;
  4734. VK_ACCEPT = 30;
  4735. VK_MODECHANGE = 31;
  4736. VK_SPACE = 32;
  4737. VK_PRIOR = 33;
  4738. VK_NEXT = 34;
  4739. VK_END = 35;
  4740. VK_HOME = 36;
  4741. VK_LEFT = 37;
  4742. VK_UP = 38;
  4743. VK_RIGHT = 39;
  4744. VK_DOWN = 40;
  4745. VK_SELECT = 41;
  4746. VK_PRINT = 42;
  4747. VK_EXECUTE = 43;
  4748. VK_SNAPSHOT = 44;
  4749. VK_INSERT = 45;
  4750. VK_DELETE = 46;
  4751. VK_HELP = 47;
  4752. VK_0 = 48;
  4753. VK_1 = 49;
  4754. VK_2 = 50;
  4755. VK_3 = 51;
  4756. VK_4 = 52;
  4757. VK_5 = 53;
  4758. VK_6 = 54;
  4759. VK_7 = 55;
  4760. VK_8 = 56;
  4761. VK_9 = 57;
  4762. VK_A = 65;
  4763. VK_B = 66;
  4764. VK_C = 67;
  4765. VK_D = 68;
  4766. VK_E = 69;
  4767. VK_F = 70;
  4768. VK_G = 71;
  4769. VK_H = 72;
  4770. VK_I = 73;
  4771. VK_J = 74;
  4772. VK_K = 75;
  4773. VK_L = 76;
  4774. VK_M = 77;
  4775. VK_N = 78;
  4776. VK_O = 79;
  4777. VK_P = 80;
  4778. VK_Q = 81;
  4779. VK_R = 82;
  4780. VK_S = 83;
  4781. VK_T = 84;
  4782. VK_U = 85;
  4783. VK_V = 86;
  4784. VK_W = 87;
  4785. VK_X = 88;
  4786. VK_Y = 89;
  4787. VK_Z = 90;
  4788. VK_LWIN = 91;
  4789. VK_RWIN = 92;
  4790. VK_APPS = 93;
  4791. VK_SLEEP = 95;
  4792. VK_NUMPAD0 = 96;
  4793. VK_NUMPAD1 = 97;
  4794. VK_NUMPAD2 = 98;
  4795. VK_NUMPAD3 = 99;
  4796. VK_NUMPAD4 = 100;
  4797. VK_NUMPAD5 = 101;
  4798. VK_NUMPAD6 = 102;
  4799. VK_NUMPAD7 = 103;
  4800. VK_NUMPAD8 = 104;
  4801. VK_NUMPAD9 = 105;
  4802. VK_MULTIPLY = 106;
  4803. VK_ADD = 107;
  4804. VK_SEPARATOR = 108;
  4805. VK_SUBTRACT = 109;
  4806. VK_DECIMAL = 110;
  4807. VK_DIVIDE = 111;
  4808. VK_F1 = 112;
  4809. VK_F2 = 113;
  4810. VK_F3 = 114;
  4811. VK_F4 = 115;
  4812. VK_F5 = 116;
  4813. VK_F6 = 117;
  4814. VK_F7 = 118;
  4815. VK_F8 = 119;
  4816. VK_F9 = 120;
  4817. VK_F10 = 121;
  4818. VK_F11 = 122;
  4819. VK_F12 = 123;
  4820. VK_F13 = 124;
  4821. VK_F14 = 125;
  4822. VK_F15 = 126;
  4823. VK_F16 = 127;
  4824. VK_F17 = 128;
  4825. VK_F18 = 129;
  4826. VK_F19 = 130;
  4827. VK_F20 = 131;
  4828. VK_F21 = 132;
  4829. VK_F22 = 133;
  4830. VK_F23 = 134;
  4831. VK_F24 = 135;
  4832. { GetAsyncKeyState }
  4833. VK_NUMLOCK = 144;
  4834. VK_SCROLL = 145;
  4835. VK_OEM_NEC_EQUAL = 146;
  4836. VK_OEM_FJ_JISHO = 146;
  4837. VK_OEM_FJ_MASSHOU = 147;
  4838. VK_OEM_FJ_TOUROKU = 148;
  4839. VK_OEM_FJ_LOYA = 149;
  4840. VK_OEM_FJ_ROYA = 150;
  4841. VK_LSHIFT = 160;
  4842. VK_LCONTROL = 162;
  4843. VK_LMENU = 164;
  4844. VK_RSHIFT = 161;
  4845. VK_RCONTROL = 163;
  4846. VK_RMENU = 165;
  4847. VK_BROWSER_BACK = 166;
  4848. VK_BROWSER_FORWARD = 167;
  4849. VK_BROWSER_REFRESH = 168;
  4850. VK_BROWSER_STOP = 169;
  4851. VK_BROWSER_SEARCH = 170;
  4852. VK_BROWSER_FAVORITES = 171;
  4853. VK_BROWSER_HOME = 172;
  4854. VK_VOLUME_MUTE = 173;
  4855. VK_VOLUME_DOWN = 174;
  4856. VK_VOLUME_UP = 175;
  4857. VK_MEDIA_NEXT_TRACK = 176;
  4858. VK_MEDIA_PREV_TRACK = 177;
  4859. VK_MEDIA_STOP = 178;
  4860. VK_MEDIA_PLAY_PAUSE = 179;
  4861. VK_LAUNCH_MAIL = 180;
  4862. VK_LAUNCH_MEDIA_SELECT = 181;
  4863. VK_LAUNCH_APP1 = 182;
  4864. VK_LAUNCH_APP2 = 183;
  4865. VK_OEM_1 = 186;
  4866. VK_OEM_PLUS = 187;
  4867. VK_OEM_COMMA = 188;
  4868. VK_OEM_MINUS = 189;
  4869. VK_OEM_PERIOD = 190;
  4870. VK_OEM_2 = 191;
  4871. VK_OEM_3 = 192;
  4872. VK_OEM_4 = 219;
  4873. VK_OEM_5 = 220;
  4874. VK_OEM_6 = 221;
  4875. VK_OEM_7 = 222;
  4876. VK_OEM_8 = 223;
  4877. VK_OEM_AX = 225;
  4878. VK_OEM_102 = 226;
  4879. VK_ICO_HELP = 227;
  4880. VK_ICO_00 = 228;
  4881. { ImmGetVirtualKey }
  4882. VK_PROCESSKEY = 229;
  4883. VK_ICO_CLEAR = 230;
  4884. VK_PACKET = 231;
  4885. VK_OEM_RESET = 233;
  4886. VK_OEM_JUMP = 234;
  4887. VK_OEM_PA1 = 235;
  4888. VK_OEM_PA2 = 236;
  4889. VK_OEM_PA3 = 237;
  4890. VK_OEM_WSCTRL = 238;
  4891. VK_OEM_CUSEL = 239;
  4892. VK_OEM_ATTN = 240;
  4893. VK_OEM_FINISH = 241;
  4894. VK_OEM_COPY = 242;
  4895. VK_OEM_AUTO = 243;
  4896. VK_OEM_ENLW = 244;
  4897. VK_OEM_BACKTAB = 245;
  4898. VK_ATTN = 246;
  4899. VK_CRSEL = 247;
  4900. VK_EXSEL = 248;
  4901. VK_EREOF = 249;
  4902. VK_PLAY = 250;
  4903. VK_ZOOM = 251;
  4904. VK_NONAME = 252;
  4905. VK_PA1 = 253;
  4906. VK_OEM_CLEAR = 254;
  4907. { Keystroke Message Flags }
  4908. KF_ALTDOWN = 8192;
  4909. KF_DLGMODE = 2048;
  4910. KF_EXTENDED = 256;
  4911. KF_MENUMODE = 4096;
  4912. KF_REPEAT = 16384;
  4913. KF_UP = 32768;
  4914. { GetKeyboardLayoutName }
  4915. KL_NAMELENGTH = 9;
  4916. { WM_ACTIVATE message }
  4917. WA_ACTIVE = 1;
  4918. WA_CLICKACTIVE = 2;
  4919. WA_INACTIVE = 0;
  4920. { WM_ACTIVATE message }
  4921. PWR_CRITICALRESUME = 3;
  4922. PWR_SUSPENDREQUEST = 1;
  4923. PWR_SUSPENDRESUME = 2;
  4924. PWR_FAIL = -(1);
  4925. PWR_OK = 1;
  4926. { WM_NOTIFYFORMAT message }
  4927. NF_QUERY = 3;
  4928. NF_REQUERY = 4;
  4929. NFR_ANSI = 1;
  4930. NFR_UNICODE = 2;
  4931. { WM_SIZING message }
  4932. WMSZ_BOTTOM = 6;
  4933. WMSZ_BOTTOMLEFT = 7;
  4934. WMSZ_BOTTOMRIGHT = 8;
  4935. WMSZ_LEFT = 1;
  4936. WMSZ_RIGHT = 2;
  4937. WMSZ_TOP = 3;
  4938. WMSZ_TOPLEFT = 4;
  4939. WMSZ_TOPRIGHT = 5;
  4940. { WM_MOUSEACTIVATE message }
  4941. MA_ACTIVATE = 1;
  4942. MA_ACTIVATEANDEAT = 2;
  4943. MA_NOACTIVATE = 3;
  4944. MA_NOACTIVATEANDEAT = 4;
  4945. { WM_SIZE message }
  4946. SIZE_MAXHIDE = 4;
  4947. SIZE_MAXIMIZED = 2;
  4948. SIZE_MAXSHOW = 3;
  4949. SIZE_MINIMIZED = 1;
  4950. SIZE_RESTORED = 0;
  4951. { WM_NCCALCSIZE message }
  4952. WVR_ALIGNTOP = 16;
  4953. WVR_ALIGNLEFT = 32;
  4954. WVR_ALIGNBOTTOM = 64;
  4955. WVR_ALIGNRIGHT = 128;
  4956. WVR_HREDRAW = 256;
  4957. WVR_VREDRAW = 512;
  4958. WVR_REDRAW = 768;
  4959. WVR_VALIDRECTS = 1024;
  4960. { WM_NCHITTEST message }
  4961. HTBOTTOM = 15;
  4962. HTBOTTOMLEFT = 16;
  4963. HTBOTTOMRIGHT = 17;
  4964. HTCAPTION = 2;
  4965. HTCLIENT = 1;
  4966. HTERROR = -(2);
  4967. HTGROWBOX = 4;
  4968. HTHSCROLL = 6;
  4969. HTLEFT = 10;
  4970. HTMENU = 5;
  4971. HTNOWHERE = 0;
  4972. HTREDUCE = 8;
  4973. HTRIGHT = 11;
  4974. HTSIZE = 4;
  4975. HTSYSMENU = 3;
  4976. HTTOP = 12;
  4977. HTTOPLEFT = 13;
  4978. HTTOPRIGHT = 14;
  4979. HTTRANSPARENT = -(1);
  4980. HTVSCROLL = 7;
  4981. HTZOOM = 9;
  4982. HTBORDER = 18;
  4983. HTSIZEFIRST = HTLEFT;
  4984. HTSIZELAST = HTBOTTOMRIGHT;
  4985. HTOBJECT = 19;
  4986. HTCLOSE = 20;
  4987. HTHELP = 21;
  4988. HTMINBUTTON = HTREDUCE;
  4989. HTMAXBUTTON = HTZOOM;
  4990. { Mouse messages }
  4991. MK_LBUTTON = 1;
  4992. MK_RBUTTON = 2;
  4993. MK_SHIFT = 4;
  4994. MK_CONTROL = 8;
  4995. MK_MBUTTON = 16;
  4996. MK_XBUTTON1 = 32;
  4997. MK_XBUTTON2 = 64;
  4998. { WNDCLASS structure }
  4999. CS_BYTEALIGNCLIENT = 4096;
  5000. CS_BYTEALIGNWINDOW = 8192;
  5001. CS_CLASSDC = 64;
  5002. CS_DBLCLKS = 8;
  5003. CS_GLOBALCLASS = 16384;
  5004. CS_HREDRAW = 2;
  5005. CS_KEYCVTWINDOW = 4;
  5006. CS_NOCLOSE = 512;
  5007. CS_NOKEYCVT = 256;
  5008. CS_OWNDC = 32;
  5009. CS_PARENTDC = 128;
  5010. CS_SAVEBITS = 2048;
  5011. CS_VREDRAW = 1;
  5012. CS_IME = $10000;
  5013. CS_DROPSHADOW = $20000;
  5014. DLGWINDOWEXTRA = 30;
  5015. { ACCEL structure }
  5016. FALT = 16;
  5017. FCONTROL = 8;
  5018. FNOINVERT = 2;
  5019. FSHIFT = 4;
  5020. FVIRTKEY = 1;
  5021. { WM_MENUCHAR return constants }
  5022. MNC_IGNORE = 0;
  5023. MNC_CLOSE = 1;
  5024. MNC_EXECUTE = 2;
  5025. MNC_SELECT = 3;
  5026. { MENUINFO structure }
  5027. MIM_MAXHEIGHT = 1;
  5028. MIM_BACKGROUND = 2;
  5029. MIM_HELPID = 4;
  5030. MIM_MENUDATA = 8;
  5031. MIM_STYLE = 16;
  5032. MIM_APPLYTOSUBMENUS = $80000000;
  5033. MNS_CHECKORBMP = $4000000;
  5034. MNS_NOTIFYBYPOS = $8000000;
  5035. MNS_AUTODISMISS = $10000000;
  5036. MNS_DRAGDROP = $20000000;
  5037. MNS_MODELESS = $40000000;
  5038. MNS_NOCHECK = $80000000;
  5039. { MENUITEMINFO structure }
  5040. MIIM_CHECKMARKS = 8;
  5041. MIIM_DATA = 32;
  5042. MIIM_ID = 2;
  5043. MIIM_STATE = 1;
  5044. MIIM_SUBMENU = 4;
  5045. MIIM_TYPE = 16;
  5046. MIIM_STRING = 64;
  5047. MIIM_BITMAP = 128;
  5048. MIIM_FTYPE = 256;
  5049. MFT_BITMAP = $4;
  5050. MFT_MENUBARBREAK = $20;
  5051. MFT_MENUBREAK = $40;
  5052. MFT_OWNERDRAW = $100;
  5053. MFT_RADIOCHECK = $200;
  5054. MFT_RIGHTJUSTIFY = $4000;
  5055. MFT_SEPARATOR = $800;
  5056. MFT_RIGHTORDER = $2000;
  5057. MFT_STRING = 0;
  5058. MFS_CHECKED = $8;
  5059. MFS_DEFAULT = $1000;
  5060. MFS_DISABLED = $3;
  5061. MFS_ENABLED = 0;
  5062. MFS_GRAYED = $3;
  5063. MFS_HILITE = $80;
  5064. MFS_UNCHECKED = 0;
  5065. MFS_UNHILITE = 0;
  5066. HBMMENU_CALLBACK = -1;
  5067. HBMMENU_SYSTEM = 1;
  5068. HBMMENU_MBAR_RESTORE = 2;
  5069. HBMMENU_MBAR_MINIMIZE = 3;
  5070. HBMMENU_MBAR_CLOSE = 5;
  5071. HBMMENU_MBAR_CLOSE_D = 6;
  5072. HBMMENU_MBAR_MINIMIZE_D = 7;
  5073. HBMMENU_POPUP_CLOSE = 8;
  5074. HBMMENU_POPUP_RESTORE = 9;
  5075. HBMMENU_POPUP_MAXIMIZE = 10;
  5076. HBMMENU_POPUP_MINIMIZE = 11;
  5077. { SERIALKEYS structure }
  5078. SERKF_AVAILABLE = 2;
  5079. SERKF_INDICATOR = 4;
  5080. SERKF_SERIALKEYSON = 1;
  5081. { FILTERKEYS structure }
  5082. FKF_AVAILABLE = 2;
  5083. FKF_CLICKON = 64;
  5084. FKF_FILTERKEYSON = 1;
  5085. FKF_HOTKEYACTIVE = 4;
  5086. FKF_HOTKEYSOUND = 16;
  5087. FKF_CONFIRMHOTKEY = 8;
  5088. FKF_INDICATOR = 32;
  5089. { HELPINFO structure }
  5090. HELPINFO_MENUITEM = 2;
  5091. HELPINFO_WINDOW = 1;
  5092. { WM_PRINT message }
  5093. PRF_CHECKVISIBLE = $1;
  5094. PRF_CHILDREN = $10;
  5095. PRF_CLIENT = $4;
  5096. PRF_ERASEBKGND = $8;
  5097. PRF_NONCLIENT = $2;
  5098. PRF_OWNED = $20;
  5099. { MapWindowPoints }
  5100. HWND_DESKTOP = HWND(0);
  5101. { WM_SYSCOMMAND message }
  5102. const
  5103. SC_CLOSE = 61536;
  5104. SC_CONTEXTHELP = 61824;
  5105. SC_DEFAULT = 61792;
  5106. SC_HOTKEY = 61776;
  5107. SC_HSCROLL = 61568;
  5108. SC_KEYMENU = 61696;
  5109. SC_MAXIMIZE = 61488;
  5110. SC_ZOOM = 61488;
  5111. SC_MINIMIZE = 61472;
  5112. SC_ICON = 61472;
  5113. SC_MONITORPOWER = 61808;
  5114. SC_MOUSEMENU = 61584;
  5115. SC_MOVE = 61456;
  5116. SC_NEXTWINDOW = 61504;
  5117. SC_PREVWINDOW = 61520;
  5118. SC_RESTORE = 61728;
  5119. SC_SCREENSAVE = 61760;
  5120. SC_SIZE = 61440;
  5121. SC_TASKLIST = 61744;
  5122. SC_VSCROLL = 61552;
  5123. { DM_GETDEFID message }
  5124. DC_HASDEFID = 21323;
  5125. { WM_GETDLGCODE message }
  5126. DLGC_BUTTON = 8192;
  5127. DLGC_DEFPUSHBUTTON = 16;
  5128. DLGC_HASSETSEL = 8;
  5129. DLGC_RADIOBUTTON = 64;
  5130. DLGC_STATIC = 256;
  5131. DLGC_UNDEFPUSHBUTTON = 32;
  5132. DLGC_WANTALLKEYS = 4;
  5133. DLGC_WANTARROWS = 1;
  5134. DLGC_WANTCHARS = 128;
  5135. DLGC_WANTMESSAGE = 4;
  5136. DLGC_WANTTAB = 2;
  5137. { EM_SETMARGINS message }
  5138. EC_LEFTMARGIN = 1;
  5139. EC_RIGHTMARGIN = 2;
  5140. EC_USEFONTINFO = 65535;
  5141. { LB_SETCOUNT message }
  5142. LB_ERR = -(1);
  5143. LB_ERRSPACE = -(2);
  5144. LB_OKAY = 0;
  5145. { CB_DIR message }
  5146. CB_ERR = -(1);
  5147. CB_ERRSPACE = -(2);
  5148. { WM_IME_CONTROL message }
  5149. IMC_GETCANDIDATEPOS = 7;
  5150. IMC_GETCOMPOSITIONFONT = 9;
  5151. IMC_GETCOMPOSITIONWINDOW = 11;
  5152. IMC_GETSTATUSWINDOWPOS = 15;
  5153. IMC_CLOSESTATUSWINDOW = 33;
  5154. IMC_OPENSTATUSWINDOW = 34;
  5155. IMC_SETCANDIDATEPOS = 8;
  5156. IMC_SETCOMPOSITIONFONT = 10;
  5157. IMC_SETCOMPOSITIONWINDOW = 12;
  5158. IMC_SETSTATUSWINDOWPOS = 16;
  5159. { WM_IME_CONTROL message }
  5160. IMN_CHANGECANDIDATE = 3;
  5161. IMN_CLOSECANDIDATE = 4;
  5162. IMN_CLOSESTATUSWINDOW = 1;
  5163. IMN_GUIDELINE = 13;
  5164. IMN_OPENCANDIDATE = 5;
  5165. IMN_OPENSTATUSWINDOW = 2;
  5166. IMN_SETCANDIDATEPOS = 9;
  5167. IMN_SETCOMPOSITIONFONT = 10;
  5168. IMN_SETCOMPOSITIONWINDOW = 11;
  5169. IMN_SETCONVERSIONMODE = 6;
  5170. IMN_SETOPENSTATUS = 8;
  5171. IMN_SETSENTENCEMODE = 7;
  5172. IMN_SETSTATUSWINDOWPOS = 12;
  5173. IMN_PRIVATE = 14;
  5174. { STICKYKEYS structure }
  5175. SKF_AUDIBLEFEEDBACK = 64;
  5176. SKF_AVAILABLE = 2;
  5177. SKF_CONFIRMHOTKEY = 8;
  5178. SKF_HOTKEYACTIVE = 4;
  5179. SKF_HOTKEYSOUND = 16;
  5180. SKF_INDICATOR = 32;
  5181. SKF_STICKYKEYSON = 1;
  5182. SKF_TRISTATE = 128;
  5183. SKF_TWOKEYSOFF = 256;
  5184. { MOUSEKEYS structure }
  5185. MKF_AVAILABLE = 2;
  5186. MKF_CONFIRMHOTKEY = 8;
  5187. MKF_HOTKEYACTIVE = 4;
  5188. MKF_HOTKEYSOUND = 16;
  5189. MKF_INDICATOR = 32;
  5190. MKF_MOUSEKEYSON = 1;
  5191. MKF_MODIFIERS = 64;
  5192. MKF_REPLACENUMBERS = 128;
  5193. { SOUNDSENTRY structure }
  5194. SSF_AVAILABLE = 2;
  5195. SSF_SOUNDSENTRYON = 1;
  5196. SSTF_BORDER = 2;
  5197. SSTF_CHARS = 1;
  5198. SSTF_DISPLAY = 3;
  5199. SSTF_NONE = 0;
  5200. SSGF_DISPLAY = 3;
  5201. SSGF_NONE = 0;
  5202. SSWF_CUSTOM = 4;
  5203. SSWF_DISPLAY = 3;
  5204. SSWF_NONE = 0;
  5205. SSWF_TITLE = 1;
  5206. SSWF_WINDOW = 2;
  5207. { ACCESSTIMEOUT structure }
  5208. ATF_ONOFFFEEDBACK = 2;
  5209. ATF_TIMEOUTON = 1;
  5210. { HIGHCONTRAST structure }
  5211. HCF_AVAILABLE = 2;
  5212. HCF_CONFIRMHOTKEY = 8;
  5213. HCF_HIGHCONTRASTON = 1;
  5214. HCF_HOTKEYACTIVE = 4;
  5215. HCF_HOTKEYAVAILABLE = 64;
  5216. HCF_HOTKEYSOUND = 16;
  5217. HCF_INDICATOR = 32;
  5218. { TOGGLEKEYS structure }
  5219. TKF_AVAILABLE = 2;
  5220. TKF_CONFIRMHOTKEY = 8;
  5221. TKF_HOTKEYACTIVE = 4;
  5222. TKF_HOTKEYSOUND = 16;
  5223. TKF_TOGGLEKEYSON = 1;
  5224. { Installable Policy }
  5225. PP_DISPLAYERRORS = 1;
  5226. { SERVICE_INFO structure }
  5227. RESOURCEDISPLAYTYPE_DOMAIN = 1;
  5228. RESOURCEDISPLAYTYPE_FILE = 4;
  5229. RESOURCEDISPLAYTYPE_GENERIC = 0;
  5230. RESOURCEDISPLAYTYPE_GROUP = 5;
  5231. RESOURCEDISPLAYTYPE_SERVER = 2;
  5232. RESOURCEDISPLAYTYPE_SHARE = 3;
  5233. { KEY_EVENT_RECORD structure }
  5234. CAPSLOCK_ON = 128;
  5235. ENHANCED_KEY = 256;
  5236. LEFT_ALT_PRESSED = 2;
  5237. LEFT_CTRL_PRESSED = 8;
  5238. NUMLOCK_ON = 32;
  5239. RIGHT_ALT_PRESSED = 1;
  5240. RIGHT_CTRL_PRESSED = 4;
  5241. SCROLLLOCK_ON = 64;
  5242. SHIFT_PRESSED = 16;
  5243. { MOUSE_EVENT_RECORD structure }
  5244. FROM_LEFT_1ST_BUTTON_PRESSED = 1;
  5245. RIGHTMOST_BUTTON_PRESSED = 2;
  5246. FROM_LEFT_2ND_BUTTON_PRESSED = 4;
  5247. FROM_LEFT_3RD_BUTTON_PRESSED = 8;
  5248. FROM_LEFT_4TH_BUTTON_PRESSED = 16;
  5249. DOUBLE_CLICK = 2;
  5250. MOUSE_MOVED = 1;
  5251. { INPUT_RECORD structure }
  5252. KEY_EVENT = 1;
  5253. _MOUSE_EVENT = 2; {conflict with function mouse_event}
  5254. cMOUSE_EVENT = 2;
  5255. WINDOW_BUFFER_SIZE_EVENT = 4;
  5256. MENU_EVENT = 8;
  5257. FOCUS_EVENT = 16;
  5258. { BITMAPINFOHEADER structure }
  5259. BI_RGB = 0;
  5260. BI_RLE8 = 1;
  5261. BI_RLE4 = 2;
  5262. BI_BITFIELDS = 3;
  5263. { Extensions to OpenGL }
  5264. { ChoosePixelFormat }
  5265. PFD_DOUBLEBUFFER = $1;
  5266. PFD_STEREO = $2;
  5267. PFD_DRAW_TO_WINDOW = $4;
  5268. PFD_DRAW_TO_BITMAP = $8;
  5269. PFD_SUPPORT_GDI = $10;
  5270. PFD_SUPPORT_OPENGL = $20;
  5271. PFD_DEPTH_DONTCARE = $20000000;
  5272. PFD_DOUBLEBUFFER_DONTCARE = $40000000;
  5273. PFD_STEREO_DONTCARE = $80000000;
  5274. PFD_TYPE_RGBA = 0;
  5275. PFD_TYPE_COLORINDEX = 1;
  5276. PFD_MAIN_PLANE = 0;
  5277. PFD_OVERLAY_PLANE = 1;
  5278. PFD_UNDERLAY_PLANE = -(1);
  5279. { wglUseFontOutlines }
  5280. WGL_FONT_LINES = 0;
  5281. WGL_FONT_POLYGONS = 1;
  5282. { LAYERPLANEDESCRIPTOR structure }
  5283. { PIXELFORMATDESCRIPTOR structure }
  5284. PFD_GENERIC_FORMAT = $40;
  5285. PFD_NEED_PALETTE = $80;
  5286. PFD_NEED_SYSTEM_PALETTE = $100;
  5287. PFD_SWAP_EXCHANGE = $200;
  5288. PFD_SWAP_COPY = $400;
  5289. PFD_SWAP_LAYER_BUFFERS = $800;
  5290. PFD_GENERIC_ACCELERATED = $1000;
  5291. PFD_SUPPORT_DIRECTDRAW = $2000;
  5292. PFD_DIRECT3D_ACCELERATED = $4000;
  5293. PFD_SUPPORT_COMPOSITION = $8000;
  5294. { TEXTMETRIC structure }
  5295. TMPF_FIXED_PITCH = $1;
  5296. TMPF_VECTOR = $2;
  5297. TMPF_TRUETYPE = $4;
  5298. TMPF_DEVICE = $8;
  5299. WM_CTLCOLOR = 25;
  5300. LWA_COLORKEY = $00000001;
  5301. LWA_ALPHA = $00000002;
  5302. ULW_COLORKEY = $00000001;
  5303. ULW_ALPHA = $00000002;
  5304. ULW_OPAQUE = $00000004;
  5305. WS_EX_LAYERED = $00080000;
  5306. WS_EX_NOINHERITLAYOUT= $00100000;
  5307. WS_EX_LAYOUTRTL = $00400000;
  5308. WS_EX_COMPOSITED = $02000000;
  5309. WS_EX_NOACTIVATE = $08000000;
  5310. C3_LEXICAL = 1024;
  5311. FLASHW_STOP = $00000000;
  5312. FLASHW_CAPTION = $00000001;
  5313. FLASHW_TRAY = $00000002;
  5314. FLASHW_ALL = (FLASHW_CAPTION or FLASHW_TRAY);
  5315. FLASHW_TIMER = $00000004;
  5316. FLASHW_TIMERNOFG = $0000000C;
  5317. CLASS_E_NOTLICENSED = DWORD($80040112);
  5318. { --------------------- old stuff, need to organize! --------------- }
  5319. { BEGINNING of windowsx.h stuff from old headers: }
  5320. { Not convertable by H2PAS
  5321. #define __CRACK_VOID_F(fn,args) (void)(fn args)
  5322. #define __CRACK_BOOL_F(fn,args) (BOOL)(fn args)
  5323. #define __CRACK_HMENU_F(fn,args) (HMENU)(fn args)
  5324. #define __CRACK_HWND_F(fn,args) (HWND)(fn args)
  5325. #define __CRACK_LONG_F(fn, args) (LRESULT)(fn args)
  5326. #define __CRACK_ZERO_F(fn, args) (fn args,0)
  5327. }
  5328. { was #define dname(params) def_expr }
  5329. function GetFirstChild(h:HWND):HWND;
  5330. { was #define dname(params) def_expr }
  5331. function GetNextSibling(h:HWND):HWND;
  5332. { was #define dname(params) def_expr }
  5333. function GetWindowID(h:HWND):longint;
  5334. { was #define dname(params) def_expr }
  5335. function SubclassWindow(h:HWND; p:LONG):LONG;
  5336. { was #define dname(params) def_expr }
  5337. { argument types are unknown }
  5338. { return type might be wrong }
  5339. function GET_WM_COMMAND_CMD(w,l : longint) : longint;
  5340. { return type might be wrong }
  5341. { was #define dname(params) def_expr }
  5342. { argument types are unknown }
  5343. { return type might be wrong }
  5344. function GET_WM_COMMAND_ID(w,l : longint) : longint;
  5345. { return type might be wrong }
  5346. { was #define dname(params) def_expr }
  5347. { argument types are unknown }
  5348. function GET_WM_CTLCOLOR_HDC(w,l,msg : longint) : HDC;
  5349. { was #define dname(params) def_expr }
  5350. { argument types are unknown }
  5351. function GET_WM_CTLCOLOR_HWND(w,l,msg : longint) : HWND;
  5352. { was #define dname(params) def_expr }
  5353. { argument types are unknown }
  5354. { return type might be wrong }
  5355. function GET_WM_HSCROLL_CODE(w,l : longint) : longint;
  5356. { return type might be wrong }
  5357. { was #define dname(params) def_expr }
  5358. { argument types are unknown }
  5359. function GET_WM_HSCROLL_HWND(w,l : longint) : HWND;
  5360. { was #define dname(params) def_expr }
  5361. { argument types are unknown }
  5362. { return type might be wrong }
  5363. function GET_WM_HSCROLL_POS(w,l : longint) : longint;
  5364. { return type might be wrong }
  5365. { was #define dname(params) def_expr }
  5366. { argument types are unknown }
  5367. { return type might be wrong }
  5368. function GET_WM_MDIACTIVATE_FACTIVATE(h,a,b : longint) : longint;
  5369. { return type might be wrong }
  5370. { was #define dname(params) def_expr }
  5371. { argument types are unknown }
  5372. function GET_WM_MDIACTIVATE_HWNDACTIVATE(a,b : longint) : HWND;
  5373. { was #define dname(params) def_expr }
  5374. { argument types are unknown }
  5375. function GET_WM_MDIACTIVATE_HWNDDEACT(a,b : longint) : HWND;
  5376. { was #define dname(params) def_expr }
  5377. { argument types are unknown }
  5378. { return type might be wrong }
  5379. function GET_WM_VSCROLL_CODE(w,l : longint) : longint;
  5380. { return type might be wrong }
  5381. { was #define dname(params) def_expr }
  5382. { argument types are unknown }
  5383. function GET_WM_VSCROLL_HWND(w,l : longint) : HWND;
  5384. { was #define dname(params) def_expr }
  5385. { argument types are unknown }
  5386. { return type might be wrong }
  5387. function GET_WM_VSCROLL_POS(w,l : longint) : longint;
  5388. { return type might be wrong }
  5389. { Not convertable by H2PAS
  5390. #define FORWARD_WM_CLOSE(h, fn) __CRACK_VOID_F(fn,(h, WM_CLOSE, 0, 0))
  5391. #define FORWARD_WM_COMMAND(h, id, c, n, fn) __CRACK_VOID_F(fn,(h, WM_COMMAND, MAKEWPARAM(id,n), (LPARAM)c))
  5392. #define FORWARD_WM_CREATE(h, p, fn) __CRACK_BOOL_F(fn,(h, WM_CREATE, 0, (LPARAM)p))
  5393. #define FORWARD_WM_DESTROY(h, fn) __CRACK_VOID_F(fn,(h, WM_DESTROY, 0, 0))
  5394. #define FORWARD_WM_ENABLE(h, e, fn) __CRACK_VOID_F(fn,(h, WM_ENABLE, (WPARAM)e, 0))
  5395. #define FORWARD_WM_INITDIALOG(h, c, l, fn) __CRACK_BOOL_F(fn,(h, WM_INITDIALOG, (WPARAM)c, l))
  5396. #define FORWARD_WM_MDICASCADE(h, c, fn) __CRACK_BOOL_F(fn,(h, WM_MDICASCADE, (WPARAM)c, 0))
  5397. #define FORWARD_WM_MDIDESTROY(h, d, fn) __CRACK_VOID_F(fn,(h, WM_MDIDESTROY, (WPARAM)d, 0))
  5398. #define FORWARD_WM_MDIGETACTIVE(h, fn) __CRACK_HWND_F(fn,(h, WM_MDIGETACTIVE, 0, 0))
  5399. #define FORWARD_WM_MDIICONARRANGE(h, fn) __CRACK_VOID_F(fn,(h, WM_MDIICONARRANGE, 0, 0))
  5400. #define FORWARD_WM_MDISETMENU(h, fr, hf, hw, fn) __CRACK_HMENU_F(fn,(h, WM_MDISETMENU, (WPARAM)((fr) ? (hf) : 0), (LPARAM)(hw)))
  5401. #define FORWARD_WM_MDITILE(h, c, fn) __CRACK_BOOL_F(fn,(h, WM_MDITILE, (WPARAM)(c), 0))
  5402. #define FORWARD_WM_PAINT(h, fn) __CRACK_VOID_F(fn,(h, WM_PAINT, 0, 0))
  5403. #define FORWARD_WM_QUERYENDSESSION(h, fn) __CRACK_BOOL_F(fn,(h, WM_QUERYENDSESSION, 0, 0))
  5404. #define FORWARD_WM_SIZE(h, state, cx, cy, fn) __CRACK_VOID_F(fn,(h, WM_SIZE, (WPARAM)state, MAKELPARAM(cx, cy)))
  5405. #define FORWARD_WM_SYSCOMMAND(h, c, x, y, fn) __CRACK_VOID_F(fn,(h, WM_SYSCOMMAND, (WPARAM)c, MAKELPARAM(x, y)))
  5406. #define HANDLE_WM_CLOSE(h, w, l, fn) __CRACK_ZERO_F(fn,(h));
  5407. #define HANDLE_WM_COMMAND(h, w, l, fn) __CRACK_ZERO_F(fn,(h, SEXT_LOWORD(w), (HWND)l, HIWORD(w)))
  5408. #define HANDLE_WM_CREATE(h, w, l, fn) (LRESULT)((fn(h, (CREATESTRUCT )l)) ? 0 : -1)
  5409. #define HANDLE_WM_DESTROY(h, w, l, fn) __CRACK_ZERO_F(fn,(h))
  5410. #define HANDLE_WM_ENABLE(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (BOOL)w))
  5411. #define HANDLE_WM_INITDIALOG(h, w, l, fn) __CRACK_LONG_F(fn,(h, (HWND)w, l))
  5412. #define HANDLE_WM_MDICASCADE(h, w, l, fn) __CRACK_LONG_F(fn, (h, (UINT)w)
  5413. #define HANDLE_WM_MDIDESTROY(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (HWND)w))
  5414. #define HANDLE_WM_MDIGETACTIVE(h, w, l, fn) __CRACK_LONG_F(fn,(h))
  5415. #define HANDLE_WM_MDIICONARRANGE(h, w, l, fn) __CRACK_ZERO_F(fn,(h))
  5416. #define HANDLE_WM_MDISETMENU(h, w, l, fn) __CRACK_LONG_F(fn,(h, (BOOL)w, (HMENU)w, (HMENU)l)
  5417. #define HANDLE_WM_MDITILE(h, w, l, fn) __CRACK_LONG_F(fn,(h, (UINT)w))
  5418. #define HANDLE_WM_PAINT(h, w, l, fn) __CRACK_ZERO_F(fn,(h))
  5419. #define HANDLE_WM_QUERYENDSESSION(h, w, l, fn) MAKELRESULT(fn(h), 0)
  5420. #define HANDLE_WM_SIZE(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (UINT)w, SEXT_LOWORD(l), SEXT_HIWORD(l)))
  5421. #define HANDLE_WM_SYSCOMMAND(h, w, l, fn) __CRACK_ZERO_F(fn,(h, (UINT)w, SEXT_LOWORD(l), SEXT_HIWORD(l)))
  5422. }
  5423. { Totally disgusting! get wParam and lParam from the environment ! }
  5424. { Not convertable by H2PAS
  5425. #define HANDLE_MSG(h, message, fn) case message: return HANDLE_##message(h, wParam, lParam, fn)
  5426. }
  5427. { END OF windowsx.h stuff from old headers }
  5428. { ------------------------------------------------------------------ }
  5429. { BEGINNING of shellapi.h stuff from old headers }
  5430. const
  5431. SE_ERR_SHARE = 26;
  5432. SE_ERR_ASSOCINCOMPLETE = 27;
  5433. SE_ERR_DDETIMEOUT = 28;
  5434. SE_ERR_DDEFAIL = 29;
  5435. SE_ERR_DDEBUSY = 30;
  5436. SE_ERR_NOASSOC = 31;
  5437. { END OF shellapi.h stuff from old headers }
  5438. { ------------------------------------------------------------------ }
  5439. { From ddeml.h in old Cygnus headers }
  5440. XCLASS_BOOL = $1000;
  5441. XCLASS_DATA = $2000;
  5442. XCLASS_FLAGS = $4000;
  5443. XCLASS_MASK = $fc00;
  5444. XCLASS_NOTIFICATION = $8000;
  5445. XTYPF_NOBLOCK = $0002;
  5446. XTYP_ADVDATA = $4010;
  5447. XTYP_ADVREQ = $2022;
  5448. XTYP_ADVSTART = $1030;
  5449. XTYP_ADVSTOP = $8040;
  5450. XTYP_CONNECT = $1062;
  5451. XTYP_CONNECT_CONFIRM = $8072;
  5452. XTYP_DISCONNECT = $80c2;
  5453. XTYP_EXECUTE = $4050;
  5454. XTYP_POKE = $4090;
  5455. XTYP_REQUEST = $20b0;
  5456. XTYP_WILDCONNECT = $20E2;
  5457. XTYP_REGISTER = $80A2;
  5458. XTYP_ERROR = $8002;
  5459. XTYP_XACT_COMPLETE = $8080;
  5460. XTYP_UNREGISTER = $80D2;
  5461. DMLERR_DLL_USAGE = $4004;
  5462. DMLERR_INVALIDPARAMETER = $4006;
  5463. DMLERR_NOTPROCESSED = $4009;
  5464. DMLERR_POSTMSG_FAILED = $400c;
  5465. DMLERR_SERVER_DIED = $400e;
  5466. DMLERR_SYS_ERROR = $400f;
  5467. DMLERR_BUSY = $4001;
  5468. DMLERR_DATAACKTIMEOUT = $4002;
  5469. DMLERR_ADVACKTIMEOUT = $4000;
  5470. DMLERR_DLL_NOT_INITIALIZED = $4003;
  5471. DMLERR_LOW_MEMORY = $4007;
  5472. DMLERR_MEMORY_ERROR = $4008;
  5473. DMLERR_POKEACKTIMEOUT = $400b;
  5474. DMLERR_NO_CONV_ESTABLISHED = $400a;
  5475. DMLERR_REENTRANCY = $400d;
  5476. DMLERR_UNFOUND_QUEUE_ID = $4011;
  5477. DMLERR_UNADVACKTIMEOUT = $4010;
  5478. DMLERR_EXECACKTIMEOUT = $4005;
  5479. DDE_FACK = $8000;
  5480. DDE_FNOTPROCESSED = $0000;
  5481. DNS_REGISTER = $0001;
  5482. DNS_UNREGISTER = $0002;
  5483. CP_WINANSI = 1004;
  5484. CP_WINUNICODE = 1200;
  5485. { Not convertable by H2PAS
  5486. #define EXPENTRY CALLBACK
  5487. }
  5488. APPCLASS_STANDARD = $00000000;
  5489. { End of stuff from ddeml.h in old Cygnus headers }
  5490. { ----------------------------------------------- }
  5491. BKMODE_LAST = 2;
  5492. CTLCOLOR_MSGBOX = 0;
  5493. CTLCOLOR_EDIT = 1;
  5494. CTLCOLOR_LISTBOX = 2;
  5495. CTLCOLOR_BTN = 3;
  5496. CTLCOLOR_DLG = 4;
  5497. CTLCOLOR_SCROLLBAR = 5;
  5498. CTLCOLOR_STATIC = 6;
  5499. CTLCOLOR_MAX = 7;
  5500. META_SETMAPMODE = $0103;
  5501. META_SETWINDOWORG = $020B;
  5502. META_SETWINDOWEXT = $020C;
  5503. POLYFILL_LAST = 2;
  5504. STATUS_WAIT_0 = $00000000;
  5505. STATUS_ABANDONED_WAIT_0 = $00000080;
  5506. STATUS_USER_APC = $000000C0;
  5507. STATUS_TIMEOUT = $00000102;
  5508. STATUS_PENDING = $00000103;
  5509. STATUS_GUARD_PAGE_VIOLATION = $80000001;
  5510. STATUS_DATATYPE_MISALIGNMENT = $80000002;
  5511. STATUS_BREAKPOINT = $80000003;
  5512. STATUS_SINGLE_STEP = $80000004;
  5513. STATUS_ACCESS_VIOLATION = $C0000005;
  5514. STATUS_IN_PAGE_ERROR = $C0000006;
  5515. STATUS_INVALID_HANDLE = $C0000008;
  5516. STATUS_NO_MEMORY = $C0000017;
  5517. STATUS_ILLEGAL_INSTRUCTION = $C000001D;
  5518. STATUS_NONCONTINUABLE_EXCEPTION = $C0000025;
  5519. STATUS_INVALID_DISPOSITION = $C0000026;
  5520. STATUS_ARRAY_BOUNDS_EXCEEDED = $C000008C;
  5521. STATUS_FLOAT_DENORMAL_OPERAND = $C000008D;
  5522. STATUS_FLOAT_DIVIDE_BY_ZERO = $C000008E;
  5523. STATUS_FLOAT_INEXACT_RESULT = $C000008F;
  5524. STATUS_FLOAT_INVALID_OPERATION = $C0000090;
  5525. STATUS_FLOAT_OVERFLOW = $C0000091;
  5526. STATUS_FLOAT_STACK_CHECK = $C0000092;
  5527. STATUS_FLOAT_UNDERFLOW = $C0000093;
  5528. STATUS_INTEGER_DIVIDE_BY_ZERO = $C0000094;
  5529. STATUS_INTEGER_OVERFLOW = $C0000095;
  5530. STATUS_PRIVILEGED_INSTRUCTION = $C0000096;
  5531. STATUS_STACK_OVERFLOW = $C00000FD;
  5532. STATUS_CONTROL_C_EXIT = $C000013A;
  5533. STATUS_FLOAT_MULTIPLE_FAULTS = $C00002B4;
  5534. STATUS_FLOAT_MULTIPLE_TRAPS = $C00002B5;
  5535. STATUS_REG_NAT_CONSUMPTION = $C00002C9;
  5536. STATUS_SXS_EARLY_DEACTIVATION = $C015000F;
  5537. STATUS_SXS_INVALID_DEACTIVATION = $C0150010;
  5538. {$define EXCEPTION_CTRL_C}
  5539. PROCESSOR_ARCHITECTURE_INTEL = 0;
  5540. PROCESSOR_ARCHITECTURE_MIPS = 1;
  5541. PROCESSOR_ARCHITECTURE_ALPHA = 2;
  5542. PROCESSOR_ARCHITECTURE_PPC = 3;
  5543. { was #define dname(params) def_expr }
  5544. function FreeModule(h:HINST):WINBOOL;
  5545. { was #define dname(params) def_expr }
  5546. { argument types are unknown }
  5547. { return type might be wrong }
  5548. function MakeProcInstance(p,i : longint) : longint;
  5549. { return type might be wrong }
  5550. { was #define dname(params) def_expr }
  5551. { argument types are unknown }
  5552. { return type might be wrong }
  5553. function FreeProcInstance(p : longint) : longint;
  5554. { return type might be wrong }
  5555. const
  5556. { _fmemcpy = memcpy; these are functions }
  5557. { Used by wxwindows. }
  5558. SIZEFULLSCREEN = SIZE_MAXIMIZED;
  5559. SIZENORMAL = SIZE_RESTORED;
  5560. SIZEICONIC = SIZE_MINIMIZED;
  5561. { NPLOGPALETTE = PLOGPALETTE; probably a type }
  5562. { In the old winnt.h }
  5563. (* Not convertable by H2PAS anyhow with if 0
  5564. #if 0
  5565. #ifdef __ANAL__
  5566. #define DECLARE_HANDLE(h) struct h##__ { int dummy; }; typedef struct h##__ h
  5567. #else
  5568. #define DECLARE_HANDLE(h) typedef void h
  5569. #endif
  5570. DECLARE_HANDLE(HANDLE);
  5571. #endif
  5572. *)
  5573. const
  5574. EXCEPTION_READ_FAULT = 0; // Access violation was caused by a read
  5575. EXCEPTION_WRITE_FAULT = 1; // Access violation was caused by a write
  5576. {$ifdef cpuia64}
  5577. EXCEPTION_EXECUTE_FAULT = 2; // Access violation was caused by an instruction fetch
  5578. {$else}
  5579. EXCEPTION_EXECUTE_FAULT = 8;
  5580. {$endif}
  5581. {$ifdef cpupowerpc32}
  5582. { ppc }
  5583. const
  5584. CONTEXT_CONTROL = 1;
  5585. CONTEXT_FLOATING_POINT = 2;
  5586. CONTEXT_INTEGER = 4;
  5587. CONTEXT_DEBUG_REGISTERS = 8;
  5588. CONTEXT_FULL = (CONTEXT_CONTROL or CONTEXT_FLOATING_POINT) or CONTEXT_INTEGER;
  5589. CONTEXT_DEBUGGER = CONTEXT_FULL;
  5590. {$endif}
  5591. {$ifdef cpui386}
  5592. { x86 }
  5593. { The doc refered me to winnt.h, so I had to look... }
  5594. const
  5595. SIZE_OF_80387_REGISTERS = 80;
  5596. { Values for contextflags }
  5597. CONTEXT_i386 = $10000; // this assumes that i386 and
  5598. CONTEXT_i486 = $10000; // i486 have identical context records
  5599. CONTEXT_CONTROL = CONTEXT_i386 or 1; // SS:SP, CS:IP, FLAGS, BP
  5600. CONTEXT_INTEGER = CONTEXT_i386 or 2; // AX, BX, CX, DX, SI, DI
  5601. CONTEXT_SEGMENTS = CONTEXT_i386 or 4; // DS, ES, FS, GS
  5602. CONTEXT_FLOATING_POINT = CONTEXT_i386 or 8; // 387 state
  5603. CONTEXT_DEBUG_REGISTERS = CONTEXT_i386 or $10; // DB 0-3,6,7
  5604. CONTEXT_EXTENDED_REGISTERS = CONTEXT_i386 or $20; // cpu specific extensions
  5605. CONTEXT_FULL = (CONTEXT_CONTROL or CONTEXT_INTEGER) or CONTEXT_SEGMENTS;
  5606. CONTEXT_ALL = CONTEXT_FULL or CONTEXT_FLOATING_POINT or CONTEXT_DEBUG_REGISTERS or CONTEXT_EXTENDED_REGISTERS;
  5607. { our own invention }
  5608. FLAG_TRACE_BIT = $100;
  5609. CONTEXT_DEBUGGER = CONTEXT_FULL or CONTEXT_FLOATING_POINT;
  5610. {$endif}
  5611. {$ifdef cpux86_64}
  5612. const
  5613. INITIAL_MXCSR = $1f80; // initial MXCSR value
  5614. INITIAL_FPCSR = $027f; // initial FPCSR value
  5615. CONTEXT_AMD64 = $100000;
  5616. CONTEXT_CONTROL = (CONTEXT_AMD64 or $00000001);
  5617. CONTEXT_INTEGER = (CONTEXT_AMD64 or $00000002);
  5618. CONTEXT_SEGMENTS = (CONTEXT_AMD64 or $00000004);
  5619. CONTEXT_FLOATING_POINT = (CONTEXT_AMD64 or $00000008);
  5620. CONTEXT_DEBUG_REGISTERS = (CONTEXT_AMD64 or $00000010);
  5621. CONTEXT_FULL = (CONTEXT_CONTROL or CONTEXT_INTEGER or CONTEXT_FLOATING_POINT);
  5622. CONTEXT_ALL = (CONTEXT_CONTROL or CONTEXT_INTEGER or CONTEXT_SEGMENTS or CONTEXT_FLOATING_POINT or CONTEXT_DEBUG_REGISTERS);
  5623. CONTEXT_EXCEPTION_ACTIVE = $08000000;
  5624. CONTEXT_SERVICE_ACTIVE = $10000000;
  5625. CONTEXT_EXCEPTION_REQUEST = $40000000;
  5626. CONTEXT_EXCEPTION_REPORTING = $80000000;
  5627. {$endif}
  5628. const
  5629. { ASCIICHAR = AsciiChar; this is the kind of thing that can
  5630. make problems for FPC !! }
  5631. { ignored in H2PAS
  5632. #define FAR
  5633. handled in H2PAS
  5634. #define PACKED __attribute__((packed))
  5635. }
  5636. FILTER_TEMP_DUPLICATE_ACCOUNT = $0001;
  5637. FILTER_NORMAL_ACCOUNT = $0002;
  5638. FILTER_INTERDOMAIN_TRUST_ACCOUNT = $0008;
  5639. FILTER_WORKSTATION_TRUST_ACCOUNT = $0010;
  5640. FILTER_SERVER_TRUST_ACCOUNT = $0020;
  5641. LOGON32_LOGON_INTERACTIVE = $02;
  5642. LOGON32_LOGON_NETWORK = $03;
  5643. LOGON32_LOGON_BATCH = $04;
  5644. LOGON32_LOGON_SERVICE = $05;
  5645. LOGON32_LOGON_UNLOCK = $07;
  5646. LOGON32_LOGON_NETWORK_CLEARTEXT=$08; // $0500+
  5647. LOGON32_LOGON_NEW_CREDENTIALS =$09; // $0500+
  5648. LOGON32_PROVIDER_DEFAULT = $00;
  5649. LOGON32_PROVIDER_WINNT35 = $01;
  5650. LOGON32_PROVIDER_WINNT40 = $02;
  5651. LOGON32_PROVIDER_WINNT50 = $03;
  5652. QID_SYNC = $FFFFFFFF;
  5653. { Magic numbers in PE executable header. }
  5654. { e_magic field }
  5655. IMAGE_DOS_SIGNATURE = $5a4d;
  5656. { nt_signature field }
  5657. IMAGE_NT_SIGNATURE = CARDINAL($4550);
  5658. IMAGE_OS2_SIGNATURE = $454E; // NE
  5659. IMAGE_OS2_SIGNATURE_LE = $454C; // LE
  5660. IMAGE_VXD_SIGNATURE = $454C; // LE
  5661. { Severity values }
  5662. SEVERITY_SUCCESS = 0;
  5663. SEVERITY_ERROR = 1;
  5664. { Variant type codes (wtypes.h).
  5665. Some, not all though }
  5666. VT_EMPTY = 0;
  5667. VT_NULL = 1;
  5668. VT_I2 = 2;
  5669. VT_I4 = 3;
  5670. VT_R4 = 4;
  5671. VT_R8 = 5;
  5672. VT_BSTR = 8;
  5673. VT_ERROR = 10;
  5674. VT_BOOL = 11;
  5675. VT_UI1 = 17;
  5676. VT_BYREF = $4000;
  5677. VT_RESERVED = $8000;
  5678. { Define the facility codes }
  5679. const
  5680. FACILITY_WINDOWS = 8;
  5681. FACILITY_STORAGE = 3;
  5682. FACILITY_RPC = 1;
  5683. FACILITY_SSPI = 9;
  5684. FACILITY_WIN32 = 7;
  5685. FACILITY_CONTROL = 10;
  5686. FACILITY_NULL = 0;
  5687. FACILITY_INTERNET = 12;
  5688. FACILITY_ITF = 4;
  5689. FACILITY_DISPATCH = 2;
  5690. FACILITY_CERT = 11;
  5691. { Manually added, bug 2672}
  5692. ICON_SMALL = 0;
  5693. ICON_BIG = 1;
  5694. // For the TRackMouseEvent
  5695. TME_HOVER = $00000001;
  5696. TME_LEAVE = $00000002;
  5697. TME_QUERY = $40000000;
  5698. TME_CANCEL = DWORD($80000000);
  5699. HOVER_DEFAULT = DWORD($FFFFFFFF);
  5700. // Manually added, bug 3270
  5701. COLOR_HOTLIGHT = 26;
  5702. COLOR_GRADIENTACTIVECAPTION = 27;
  5703. COLOR_GRADIENTINACTIVECAPTION = 28;
  5704. COLOR_MENUHILIGHT = 29;
  5705. COLOR_MENUBAR = 30;
  5706. SYSRGN = 4;
  5707. UIS_SET = 1;
  5708. UIS_CLEAR = 2;
  5709. UIS_INITIALIZE = 3;
  5710. UISF_HIDEFOCUS = $1;
  5711. UISF_HIDEACCEL = $2;
  5712. UISF_ACTIVE = $4;
  5713. const
  5714. IMAGE_DEBUG_TYPE_UNKNOWN = 0;
  5715. IMAGE_DEBUG_TYPE_COFF = 1;
  5716. IMAGE_DEBUG_TYPE_CODEVIEW = 2;
  5717. IMAGE_DEBUG_TYPE_FPO = 3;
  5718. IMAGE_DEBUG_TYPE_MISC = 4;
  5719. IMAGE_DEBUG_TYPE_EXCEPTION = 5;
  5720. IMAGE_DEBUG_TYPE_FIXUP = 6;
  5721. IMAGE_DEBUG_TYPE_OMAP_TO_SRC = 7;
  5722. IMAGE_DEBUG_TYPE_OMAP_FROM_SRC = 8;
  5723. IMAGE_DEBUG_TYPE_BORLAND = 9;
  5724. IMAGE_DEBUG_TYPE_RESERVED10 = 10;
  5725. IMAGE_DEBUG_TYPE_CLSID = 11;
  5726. IMAGE_SUBSYSTEM_UNKNOWN = 0; // Unknown subsystem.
  5727. IMAGE_SUBSYSTEM_NATIVE = 1; // Image doesn't require a subsystem.
  5728. IMAGE_SUBSYSTEM_WINDOWS_GUI = 2; // Image runs in the Windows GUI subsystem.
  5729. IMAGE_SUBSYSTEM_WINDOWS_CUI = 3; // Image runs in the Windows character subsystem.
  5730. IMAGE_SUBSYSTEM_OS2_CUI = 5; // image runs in the OS/2 character subsystem.
  5731. IMAGE_SUBSYSTEM_POSIX_CUI = 7; // image runs in the Posix character subsystem.
  5732. IMAGE_SUBSYSTEM_NATIVE_WINDOWS = 8; // image is a native Win9x driver.
  5733. IMAGE_SUBSYSTEM_WINDOWS_CE_GUI = 9; // Image runs in the Windows CE subsystem.
  5734. IMAGE_SUBSYSTEM_EFI_APPLICATION = 10;
  5735. IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER = 11;
  5736. IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER = 12;
  5737. IMAGE_SUBSYSTEM_EFI_ROM = 13;
  5738. IMAGE_SUBSYSTEM_XBOX = 14;
  5739. IMAGE_SUBSYSTEM_RESERVED8 = IMAGE_SUBSYSTEM_NATIVE_WINDOWS; // older Delphi's? See JCLPEImage
  5740. // DllCharacteristics Entries
  5741. // IMAGE_LIBRARY_PROCESS_INIT 0x0001 // Reserved.
  5742. // IMAGE_LIBRARY_PROCESS_TERM 0x0002 // Reserved.
  5743. // IMAGE_LIBRARY_THREAD_INIT 0x0004 // Reserved.
  5744. // IMAGE_LIBRARY_THREAD_TERM 0x0008 // Reserved.
  5745. IMAGE_DLLCHARACTERISTICS_NO_ISOLATION = $0200; // Image understands isolation and doesn't want it
  5746. IMAGE_DLLCHARACTERISTICS_NO_SEH = $0400; // Image does not use SEH. No SE handler may reside in this image
  5747. IMAGE_DLLCHARACTERISTICS_NO_BIND = $0800; // Do not bind this image.
  5748. IMAGE_DLLCHARACTERISTICS_WDM_DRIVER = $2000; // Driver uses WDM model
  5749. IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE = $8000;
  5750. // Directory Entries
  5751. IMAGE_DIRECTORY_ENTRY_EXPORT = 0; // Export Directory
  5752. IMAGE_DIRECTORY_ENTRY_IMPORT = 1; // Import Directory
  5753. IMAGE_DIRECTORY_ENTRY_RESOURCE = 2; // Resource Directory
  5754. IMAGE_DIRECTORY_ENTRY_EXCEPTION = 3; // Exception Directory
  5755. IMAGE_DIRECTORY_ENTRY_SECURITY = 4; // Security Directory
  5756. IMAGE_DIRECTORY_ENTRY_BASERELOC = 5; // Base Relocation Table
  5757. IMAGE_DIRECTORY_ENTRY_DEBUG = 6; // Debug Directory
  5758. IMAGE_DIRECTORY_ENTRY_COPYRIGHT = 7; // (X86 usage)
  5759. IMAGE_DIRECTORY_ENTRY_ARCHITECTURE = 7; // Architecture Specific Data
  5760. IMAGE_DIRECTORY_ENTRY_GLOBALPTR = 8; // RVA of GP
  5761. IMAGE_DIRECTORY_ENTRY_TLS = 9; // TLS Directory
  5762. IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG = 10; // Load Configuration Directory
  5763. IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT = 11; // Bound Import Directory in headers
  5764. IMAGE_DIRECTORY_ENTRY_IAT = 12; // Import Address Table
  5765. IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT = 13; // Delay Load Import Descriptors
  5766. IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR = 14; // COM Runtime descriptor
  5767. STRRET_WSTR = 0;
  5768. STRRET_OFFSET = 1;
  5769. STRRET_CSTR = 2;
  5770. GA_PARENT = 1; { The window's direct parent window }
  5771. GA_ROOT = 2; { The window's root window }
  5772. GA_ROOTOWNER = 3; { The window's owner }
  5773. AC_SRC_OVER = $00;
  5774. AC_SRC_ALPHA = $01;
  5775. DMDO_DEFAULT = 0;
  5776. DMDO_90 = 1;
  5777. DMDO_180 = 2;
  5778. DMDO_270 = 3;
  5779. FIND_FIRST_EX_CASE_SENSITIVE = $00000001;
  5780. FIND_FIRST_EX_LARGE_FETCH = $00000002;
  5781. GPT_ATTRIBUTE_PLATFORM_REQUIRED = $0000000000000001;
  5782. //
  5783. // The following are GPT partition attributes applicable when the
  5784. // PartitionType is PARTITION_BASIC_DATA_GUID.
  5785. //
  5786. GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER =qword($8000000000000000);
  5787. GPT_BASIC_DATA_ATTRIBUTE_HIDDEN =qword($4000000000000000);
  5788. GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY =qword($2000000000000000);
  5789. GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY =qword($1000000000000000);
  5790. IMAGE_FILE_MACHINE_UNKNOWN = 0;
  5791. IMAGE_FILE_MACHINE_I386 = $014c; // Intel 386.
  5792. IMAGE_FILE_MACHINE_R3000 = $0162; // MIPS little-endian, = $160 big-endian
  5793. IMAGE_FILE_MACHINE_R4000 = $0166; // MIPS little-endian
  5794. IMAGE_FILE_MACHINE_R10000 = $0168; // MIPS little-endian
  5795. IMAGE_FILE_MACHINE_WCEMIPSV2 = $0169; // MIPS little-endian WCE v2
  5796. IMAGE_FILE_MACHINE_ALPHA = $0184; // Alpha_AXP
  5797. IMAGE_FILE_MACHINE_SH3 = $01a2; // SH3 little-endian
  5798. IMAGE_FILE_MACHINE_SH3DSP = $01a3;
  5799. IMAGE_FILE_MACHINE_SH3E = $01a4; // SH3E little-endian
  5800. IMAGE_FILE_MACHINE_SH4 = $01a6; // SH4 little-endian
  5801. IMAGE_FILE_MACHINE_SH5 = $01a8; // SH5
  5802. IMAGE_FILE_MACHINE_ARM = $01c0; // ARM Little-Endian
  5803. IMAGE_FILE_MACHINE_THUMB = $01c2;
  5804. IMAGE_FILE_MACHINE_AM33 = $01d3;
  5805. IMAGE_FILE_MACHINE_POWERPC = $01F0; // IBM PowerPC Little-Endian
  5806. IMAGE_FILE_MACHINE_POWERPCFP = $01f1;
  5807. IMAGE_FILE_MACHINE_IA64 = $0200; // Intel 64
  5808. IMAGE_FILE_MACHINE_MIPS16 = $0266; // MIPS
  5809. IMAGE_FILE_MACHINE_ALPHA64 = $0284; // ALPHA64
  5810. IMAGE_FILE_MACHINE_MIPSFPU = $0366; // MIPS
  5811. IMAGE_FILE_MACHINE_MIPSFPU16 = $0466; // MIPS
  5812. IMAGE_FILE_MACHINE_AXP64 = IMAGE_FILE_MACHINE_ALPHA64;
  5813. IMAGE_FILE_MACHINE_TRICORE = $0520; // Infineon
  5814. IMAGE_FILE_MACHINE_CEF = $0CEF;
  5815. IMAGE_FILE_MACHINE_EBC = $0EBC; // EFI Byte Code
  5816. IMAGE_FILE_MACHINE_AMD64 = $8664; // AMD64 (K8)
  5817. IMAGE_FILE_MACHINE_M32R = $9041; // M32R little-endian
  5818. IMAGE_FILE_MACHINE_CEE = $C0EE;
  5819. IMAGE_FILE_LARGE_ADDRESS_AWARE = $20; // for peflags.
  5820. //
  5821. // Section characteristics.
  5822. //
  5823. // IMAGE_SCN_TYPE_REG = $00000000; // Reserved.
  5824. // IMAGE_SCN_TYPE_DSECT = $00000001; // Reserved.
  5825. // IMAGE_SCN_TYPE_NOLOAD = $00000002; // Reserved.
  5826. // IMAGE_SCN_TYPE_GROUP = $00000004; // Reserved.
  5827. IMAGE_SCN_TYPE_NO_PAD = $00000008; // Reserved.
  5828. // IMAGE_SCN_TYPE_COPY = $00000010; // Reserved.
  5829. IMAGE_SCN_CNT_CODE = $00000020; // Section contains code.
  5830. IMAGE_SCN_CNT_INITIALIZED_DATA = $00000040; // Section contains initialized data.
  5831. IMAGE_SCN_CNT_UNINITIALIZED_DATA = $00000080; // Section contains uninitialized data.
  5832. IMAGE_SCN_LNK_OTHER = $00000100; // Reserved.
  5833. IMAGE_SCN_LNK_INFO = $00000200; // Section contains comments or some other type of information.
  5834. // IMAGE_SCN_TYPE_OVER = $00000400 // Reserved.
  5835. IMAGE_SCN_LNK_REMOVE = $00000800; // Section contents will not become part of image.
  5836. IMAGE_SCN_LNK_COMDAT = $00001000; // Section contents comdat.
  5837. // = $00002000 // Reserved.
  5838. // IMAGE_SCN_MEM_PROTECTED - Obsolete = $00004000
  5839. IMAGE_SCN_NO_DEFER_SPEC_EXC = $00004000; // Reset speculative exceptions handling bits in the TLB entries for this section.
  5840. IMAGE_SCN_GPREL = $00008000; // Section content can be accessed relative to GP
  5841. IMAGE_SCN_MEM_FARDATA = $00008000;
  5842. // IMAGE_SCN_MEM_SYSHEAP - Obsolete = $00010000;
  5843. IMAGE_SCN_MEM_PURGEABLE = $00020000;
  5844. IMAGE_SCN_MEM_16BIT = $00020000;
  5845. IMAGE_SCN_MEM_LOCKED = $00040000;
  5846. IMAGE_SCN_MEM_PRELOAD = $00080000;
  5847. IMAGE_SCN_ALIGN_1BYTES = $00100000; //
  5848. IMAGE_SCN_ALIGN_2BYTES = $00200000; //
  5849. IMAGE_SCN_ALIGN_4BYTES = $00300000; //
  5850. IMAGE_SCN_ALIGN_8BYTES = $00400000; //
  5851. IMAGE_SCN_ALIGN_16BYTES = $00500000; // Default alignment if no others are specified.
  5852. IMAGE_SCN_ALIGN_32BYTES = $00600000; //
  5853. IMAGE_SCN_ALIGN_64BYTES = $00700000; //
  5854. IMAGE_SCN_ALIGN_128BYTES = $00800000; //
  5855. IMAGE_SCN_ALIGN_256BYTES = $00900000; //
  5856. IMAGE_SCN_ALIGN_512BYTES = $00A00000; //
  5857. IMAGE_SCN_ALIGN_1024BYTES = $00B00000; //
  5858. IMAGE_SCN_ALIGN_2048BYTES = $00C00000; //
  5859. IMAGE_SCN_ALIGN_4096BYTES = $00D00000; //
  5860. IMAGE_SCN_ALIGN_8192BYTES = $00E00000; //
  5861. // Unused = $00F00000;
  5862. IMAGE_SCN_ALIGN_MASK = $00F00000;
  5863. IMAGE_SCN_LNK_NRELOC_OVFL = $01000000; // Section contains extended relocations.
  5864. IMAGE_SCN_MEM_DISCARDABLE = $02000000; // Section can be discarded.
  5865. IMAGE_SCN_MEM_NOT_CACHED = $04000000; // Section is not cachable.
  5866. IMAGE_SCN_MEM_NOT_PAGED = $08000000; // Section is not pageable.
  5867. IMAGE_SCN_MEM_SHARED = $10000000; // Section is shareable.
  5868. IMAGE_SCN_MEM_EXECUTE = $20000000; // Section is executable.
  5869. IMAGE_SCN_MEM_READ = $40000000; // Section is readable.
  5870. IMAGE_SCN_MEM_WRITE = $80000000; // Section is writeable.
  5871. //
  5872. // TLS Characteristic Flags
  5873. //
  5874. IMAGE_SCN_SCALE_INDEX = $00000001; // Tls index is scaled
  5875. GWLP_WNDPROC = -4;
  5876. GWLP_HINSTANCE = -6;
  5877. GWLP_HWNDPARENT = -8;
  5878. GWLP_USERDATA = -21;
  5879. GWLP_ID = -12;
  5880. GCLP_MENUNAME = -8;
  5881. GCLP_HBRBACKGROUND = -10;
  5882. GCLP_HCURSOR = -12;
  5883. GCLP_HICON = -14;
  5884. GCLP_HMODULE = -16;
  5885. GCLP_WNDPROC = -24;
  5886. GCLP_HICONSM = -34;
  5887. IMAGE_ORDINAL_FLAG64 = uint64($8000000000000000);
  5888. IMAGE_ORDINAL_FLAG32 = uint32($80000000);
  5889. bm__IMAGE_TLS_DIRECTORY64_Reserved0 = $FFFFF;
  5890. bp__IMAGE_TLS_DIRECTORY64_Reserved0 = 0;
  5891. bm__IMAGE_TLS_DIRECTORY64_Alignment = $F00000;
  5892. bp__IMAGE_TLS_DIRECTORY64_Alignment = 20;
  5893. bm__IMAGE_TLS_DIRECTORY64_Reserved1 = $FF000000;
  5894. bp__IMAGE_TLS_DIRECTORY64_Reserved1 = 24;
  5895. bm__IMAGE_TLS_DIRECTORY32_Reserved0 = $FFFFF;
  5896. bp__IMAGE_TLS_DIRECTORY32_Reserved0 = 0;
  5897. bm__IMAGE_TLS_DIRECTORY32_Alignment = $F00000;
  5898. bp__IMAGE_TLS_DIRECTORY32_Alignment = 20;
  5899. bm__IMAGE_TLS_DIRECTORY32_Reserved1 = $FF000000;
  5900. bp__IMAGE_TLS_DIRECTORY32_Reserved1 = 24;
  5901. {$ifdef WIN64}
  5902. IMAGE_ORDINAL_FLAG = IMAGE_ORDINAL_FLAG64;
  5903. {$else}
  5904. IMAGE_ORDINAL_FLAG = IMAGE_ORDINAL_FLAG32;
  5905. {$endif}
  5906. // #if(WINVER >= 0x0500)
  5907. {/*
  5908. * WM_MENUDRAG return values.
  5909. */}
  5910. const
  5911. MND_CONTINUE = 0;
  5912. MND_ENDMENU = 1;
  5913. {/*
  5914. * MENUGETOBJECTINFO dwFlags values
  5915. */}
  5916. const
  5917. MNGOF_TOPGAP = $00000001;
  5918. MNGOF_BOTTOMGAP = $00000002;
  5919. {/*
  5920. * WM_MENUGETOBJECT return values
  5921. */}
  5922. const
  5923. MNGO_NOINTERFACE = $00000000;
  5924. MNGO_NOERROR = $00000001;
  5925. //#endif /* WINVER >= 0x0500 */
  5926. // Menubar information
  5927. const
  5928. // Constants for the tagMENUBARINFO.FocusedBits bit mask
  5929. MBIFB_BAR_FOCUSED = $00000001;
  5930. MBIFB_FOCUSED = $00000002;
  5931. const
  5932. //
  5933. // Define possible return codes from the CopyFileEx callback routine
  5934. //
  5935. PROGRESS_CONTINUE = 0;
  5936. PROGRESS_CANCEL = 1;
  5937. PROGRESS_STOP = 2;
  5938. PROGRESS_QUIET = 3;
  5939. //
  5940. // Define CopyFileEx callback routine state change values
  5941. //
  5942. CALLBACK_CHUNK_FINISHED = $00000000;
  5943. CALLBACK_STREAM_SWITCH = $00000001;
  5944. //
  5945. // Define CopyFileEx option flags
  5946. //
  5947. COPY_FILE_FAIL_IF_EXISTS = $00000001;
  5948. COPY_FILE_RESTARTABLE = $00000002;
  5949. COPY_FILE_OPEN_SOURCE_FOR_WRITE = $00000004;
  5950. COPY_FILE_ALLOW_DECRYPTED_DESTINATION = $00000008;
  5951. //
  5952. // Gap for private copyfile flags
  5953. //
  5954. COPY_FILE_COPY_SYMLINK = $00000800;
  5955. COPY_FILE_NO_BUFFERING = $00001000;
  5956. //
  5957. // CopyFile2 flags
  5958. //
  5959. COPY_FILE_REQUEST_SECURITY_PRIVILEGES = $00002000;
  5960. COPY_FILE_RESUME_FROM_PAUSE = $00004000;
  5961. COPY_FILE_NO_OFFLOAD = $00040000;
  5962. //
  5963. // Define ReplaceFile option flags
  5964. //
  5965. REPLACEFILE_WRITE_THROUGH = $00000001;
  5966. REPLACEFILE_IGNORE_MERGE_ERRORS = $00000002;
  5967. REPLACEFILE_IGNORE_ACL_ERRORS = $00000004;
  5968. // WM_INPUT wParam
  5969. (*
  5970. * The input is in the regular message flow,
  5971. * the app is required to call DefWindowProc
  5972. * so that the system can perform clean ups.
  5973. *)
  5974. RIM_INPUT = 0;
  5975. (*
  5976. * The input is sink only. The app is expected
  5977. * to behave nicely.
  5978. *)
  5979. RIM_INPUTSINK = 1;
  5980. (*
  5981. * Type of the raw input
  5982. *)
  5983. RIM_TYPEMOUSE = 0;
  5984. RIM_TYPEKEYBOARD = 1;
  5985. RIM_TYPEHID = 2;
  5986. (*
  5987. * Define the mouse button state indicators.
  5988. *)
  5989. RI_MOUSE_LEFT_BUTTON_DOWN = $0001; // Left Button changed to down.
  5990. RI_MOUSE_LEFT_BUTTON_UP = $0002; // Left Button changed to up.
  5991. RI_MOUSE_RIGHT_BUTTON_DOWN = $0004; // Right Button changed to down.
  5992. RI_MOUSE_RIGHT_BUTTON_UP = $0008; // Right Button changed to up.
  5993. RI_MOUSE_MIDDLE_BUTTON_DOWN = $0010; // Middle Button changed to down.
  5994. RI_MOUSE_MIDDLE_BUTTON_UP = $0020; // Middle Button changed to up.
  5995. RI_MOUSE_BUTTON_1_DOWN = RI_MOUSE_LEFT_BUTTON_DOWN;
  5996. RI_MOUSE_BUTTON_1_UP = RI_MOUSE_LEFT_BUTTON_UP;
  5997. RI_MOUSE_BUTTON_2_DOWN = RI_MOUSE_RIGHT_BUTTON_DOWN;
  5998. RI_MOUSE_BUTTON_2_UP = RI_MOUSE_RIGHT_BUTTON_UP;
  5999. RI_MOUSE_BUTTON_3_DOWN = RI_MOUSE_MIDDLE_BUTTON_DOWN;
  6000. RI_MOUSE_BUTTON_3_UP = RI_MOUSE_MIDDLE_BUTTON_UP;
  6001. RI_MOUSE_BUTTON_4_DOWN = $0040;
  6002. RI_MOUSE_BUTTON_4_UP = $0080;
  6003. RI_MOUSE_BUTTON_5_DOWN = $0100;
  6004. RI_MOUSE_BUTTON_5_UP = $0200;
  6005. (*
  6006. * If usButtonFlags has RI_MOUSE_WHEEL, the wheel delta is stored in usButtonData.
  6007. * Take it as a signed value.
  6008. *)
  6009. RI_MOUSE_WHEEL = $0400;
  6010. (*
  6011. * Define the mouse indicator flags.
  6012. *)
  6013. MOUSE_MOVE_RELATIVE = 0;
  6014. MOUSE_MOVE_ABSOLUTE = 1;
  6015. MOUSE_VIRTUAL_DESKTOP = $02; // the coordinates are mapped to the virtual desktop
  6016. MOUSE_ATTRIBUTES_CHANGED = $04; // requery for mouse attributes
  6017. //#if(WINVER >= 0x0600)
  6018. MOUSE_MOVE_NOCOALESCE = $08; // do not coalesce mouse moves
  6019. //#endif /* WINVER >= 0x0600 */
  6020. (*
  6021. * Define the keyboard overrun MakeCode.
  6022. *)
  6023. KEYBOARD_OVERRUN_MAKE_CODE = $FF;
  6024. (*
  6025. * Define the keyboard input data Flags.
  6026. *)
  6027. RI_KEY_MAKE = 0;
  6028. RI_KEY_BREAK = 1;
  6029. RI_KEY_E0 = 2;
  6030. RI_KEY_E1 = 4;
  6031. RI_KEY_TERMSRV_SET_LED = 8;
  6032. RI_KEY_TERMSRV_SHADOW = $10;
  6033. (*
  6034. * Flags for GetRawInputData
  6035. *)
  6036. RID_INPUT = $10000003;
  6037. RID_HEADER = $10000005;
  6038. (*
  6039. * Raw Input Device Information
  6040. *)
  6041. RIDI_PREPARSEDDATA = $20000005;
  6042. RIDI_DEVICENAME = $20000007; // the return valus is the character length, not the byte size
  6043. RIDI_DEVICEINFO = $2000000b;
  6044. RIDEV_REMOVE = $00000001;
  6045. RIDEV_EXCLUDE = $00000010;
  6046. RIDEV_PAGEONLY = $00000020;
  6047. RIDEV_NOLEGACY = $00000030;
  6048. RIDEV_INPUTSINK = $00000100;
  6049. RIDEV_CAPTUREMOUSE = $00000200; // effective when mouse nolegacy is specified, otherwise it would be an error
  6050. RIDEV_NOHOTKEYS = $00000200; // effective for keyboard.
  6051. RIDEV_APPKEYS = $00000400; // effective for keyboard.
  6052. //#if(_WIN32_WINNT >= 0x0501)
  6053. RIDEV_EXINPUTSINK = $00001000;
  6054. RIDEV_DEVNOTIFY = $00002000;
  6055. //#endif /* _WIN32_WINNT >= 0x0501 */
  6056. RIDEV_EXMODEMASK = $000000F0;
  6057. //#if(_WIN32_WINNT >= 0x0501)
  6058. (*
  6059. * Flags for the WM_INPUT_DEVICE_CHANGE message.
  6060. *)
  6061. GIDC_ARRIVAL = 1;
  6062. GIDC_REMOVAL = 2;
  6063. //#endif /* _WIN32_WINNT >= 0x0501 */
  6064. //
  6065. // map types for the MapVirtualKey and MapVirtualKeyEx functions
  6066. //
  6067. MAPVK_VK_TO_VSC = 0;
  6068. MAPVK_VSC_TO_VK = 1;
  6069. MAPVK_VK_TO_CHAR = 2;
  6070. MAPVK_VSC_TO_VK_EX = 3;
  6071. //#if(WINVER >= 0x0600)
  6072. MAPVK_VK_TO_VSC_EX = 4;
  6073. //#endif /* WINVER >= 0x0600 */
  6074. //
  6075. // Wincon.h
  6076. //
  6077. NLS_DBCSCHAR = $00010000; { DBCS for JPN: SBCS/DBCS mode. }
  6078. NLS_ALPHANUMERIC = $00000000; { DBCS for JPN: Alphanumeric mode. }
  6079. NLS_KATAKANA = $00020000; { DBCS for JPN: Katakana mode. }
  6080. NLS_HIRAGANA = $00040000; { DBCS for JPN: Hiragana mode. }
  6081. NLS_ROMAN = $00400000; { DBCS for JPN: Roman/Noroman mode. }
  6082. NLS_IME_CONVERSION = $00800000; { DBCS for JPN: IME conversion. }
  6083. NLS_IME_DISABLE = $20000000; { DBCS for JPN: IME enable/disable. }
  6084. MOUSE_WHEELED = $0004;
  6085. MOUSE_HWHEELED = $0008;
  6086. COMMON_LVB_LEADING_BYTE = $0100; { Leading Byte of DBCS }
  6087. COMMON_LVB_TRAILING_BYTE = $0200; { Trailing Byte of DBCS }
  6088. COMMON_LVB_GRID_HORIZONTAL = $0400; { DBCS: Grid attribute: top horizontal. }
  6089. COMMON_LVB_GRID_LVERTICAL = $0800; { DBCS: Grid attribute: left vertical. }
  6090. COMMON_LVB_GRID_RVERTICAL = $1000; { DBCS: Grid attribute: right vertical. }
  6091. COMMON_LVB_REVERSE_VIDEO = $4000; { DBCS: Reverse fore/back ground attribute. }
  6092. COMMON_LVB_UNDERSCORE = $8000; { DBCS: Underscore. }
  6093. COMMON_LVB_SBCSDBCS = $0300; { SBCS or DBCS flag. }
  6094. HISTORY_NO_DUP_FLAG = $1;
  6095. CONSOLE_NO_SELECTION = $0000;
  6096. CONSOLE_SELECTION_IN_PROGRESS = $0001; { selection has begun }
  6097. CONSOLE_SELECTION_NOT_EMPTY = $0002; { non-null select rectangle }
  6098. CONSOLE_MOUSE_SELECTION = $0004; { selecting with mouse }
  6099. CONSOLE_MOUSE_DOWN = $0008; { mouse is down }
  6100. ENABLE_INSERT_MODE = $0020;
  6101. ENABLE_QUICK_EDIT_MODE = $0040;
  6102. ENABLE_EXTENDED_FLAGS = $0080;
  6103. ENABLE_AUTO_POSITION = $0100;
  6104. ENABLE_VIRTUAL_TERMINAL_INPUT = $0200;
  6105. ENABLE_VIRTUAL_TERMINAL_PROCESSING = $0004;
  6106. DISABLE_NEWLINE_AUTO_RETURN = $0008;
  6107. ENABLE_LVB_GRID_WORLDWIDE = $0010;
  6108. CONSOLE_FULLSCREEN = 1; { fullscreen console }
  6109. CONSOLE_FULLSCREEN_HARDWARE = 2; { console owns the hardware }
  6110. CONSOLE_FULLSCREEN_MODE = 1;
  6111. CONSOLE_WINDOWED_MODE = 2;
  6112. {$endif read_interface}
  6113. {$ifdef read_implementation}
  6114. { was #define dname(params) def_expr }
  6115. function GetFirstChild(h:HWND):HWND;
  6116. begin
  6117. GetFirstChild:=GetTopWindow(h);
  6118. end;
  6119. { was #define dname(params) def_expr }
  6120. function GetNextSibling(h:HWND):HWND;
  6121. begin
  6122. GetNextSibling:=GetWindow(h,GW_HWNDNEXT);
  6123. end;
  6124. { was #define dname(params) def_expr }
  6125. function GetWindowID(h:HWND):longint;
  6126. begin
  6127. GetWindowID:=GetDlgCtrlID(h);
  6128. end;
  6129. { was #define dname(params) def_expr }
  6130. function SubclassWindow(h:HWND; p:LONG):LONG;
  6131. begin
  6132. SubclassWindow:=SetWindowLong(h,GWL_WNDPROC,p);
  6133. end;
  6134. { was #define dname(params) def_expr }
  6135. { argument types are unknown }
  6136. { return type might be wrong }
  6137. function GET_WM_COMMAND_CMD(w,l : longint) : longint;
  6138. { return type might be wrong }
  6139. begin
  6140. GET_WM_COMMAND_CMD:=HIWORD(w);
  6141. end;
  6142. { was #define dname(params) def_expr }
  6143. { argument types are unknown }
  6144. { return type might be wrong }
  6145. function GET_WM_COMMAND_ID(w,l : longint) : longint;
  6146. { return type might be wrong }
  6147. begin
  6148. GET_WM_COMMAND_ID:=LOWORD(w);
  6149. end;
  6150. { was #define dname(params) def_expr }
  6151. { argument types are unknown }
  6152. function GET_WM_CTLCOLOR_HDC(w,l,msg : longint) : HDC;
  6153. begin
  6154. GET_WM_CTLCOLOR_HDC:=HDC(w);
  6155. end;
  6156. { was #define dname(params) def_expr }
  6157. { argument types are unknown }
  6158. function GET_WM_CTLCOLOR_HWND(w,l,msg : longint) : HWND;
  6159. begin
  6160. GET_WM_CTLCOLOR_HWND:=HWND(l);
  6161. end;
  6162. { was #define dname(params) def_expr }
  6163. { argument types are unknown }
  6164. { return type might be wrong }
  6165. function GET_WM_HSCROLL_CODE(w,l : longint) : longint;
  6166. { return type might be wrong }
  6167. begin
  6168. GET_WM_HSCROLL_CODE:=LOWORD(w);
  6169. end;
  6170. { was #define dname(params) def_expr }
  6171. { argument types are unknown }
  6172. function GET_WM_HSCROLL_HWND(w,l : longint) : HWND;
  6173. begin
  6174. GET_WM_HSCROLL_HWND:=HWND(l);
  6175. end;
  6176. { was #define dname(params) def_expr }
  6177. { argument types are unknown }
  6178. { return type might be wrong }
  6179. function GET_WM_HSCROLL_POS(w,l : longint) : longint;
  6180. { return type might be wrong }
  6181. begin
  6182. GET_WM_HSCROLL_POS:=HIWORD(w);
  6183. end;
  6184. { was #define dname(params) def_expr }
  6185. { argument types are unknown }
  6186. { return type might be wrong }
  6187. function GET_WM_MDIACTIVATE_FACTIVATE(h,a,b : longint) : longint;
  6188. { return type might be wrong }
  6189. begin
  6190. GET_WM_MDIACTIVATE_FACTIVATE:=longint(b = LONG(h));
  6191. end;
  6192. { was #define dname(params) def_expr }
  6193. { argument types are unknown }
  6194. function GET_WM_MDIACTIVATE_HWNDACTIVATE(a,b : longint) : HWND;
  6195. begin
  6196. GET_WM_MDIACTIVATE_HWNDACTIVATE:=HWND(b);
  6197. end;
  6198. { was #define dname(params) def_expr }
  6199. { argument types are unknown }
  6200. function GET_WM_MDIACTIVATE_HWNDDEACT(a,b : longint) : HWND;
  6201. begin
  6202. GET_WM_MDIACTIVATE_HWNDDEACT:=HWND(a);
  6203. end;
  6204. { was #define dname(params) def_expr }
  6205. { argument types are unknown }
  6206. { return type might be wrong }
  6207. function GET_WM_VSCROLL_CODE(w,l : longint) : longint;
  6208. { return type might be wrong }
  6209. begin
  6210. GET_WM_VSCROLL_CODE:=LOWORD(w);
  6211. end;
  6212. { was #define dname(params) def_expr }
  6213. { argument types are unknown }
  6214. function GET_WM_VSCROLL_HWND(w,l : longint) : HWND;
  6215. begin
  6216. GET_WM_VSCROLL_HWND:=HWND(l);
  6217. end;
  6218. { was #define dname(params) def_expr }
  6219. { argument types are unknown }
  6220. { return type might be wrong }
  6221. function GET_WM_VSCROLL_POS(w,l : longint) : longint;
  6222. { return type might be wrong }
  6223. begin
  6224. GET_WM_VSCROLL_POS:=HIWORD(w);
  6225. end;
  6226. { was #define dname(params) def_expr }
  6227. function FreeModule(h:HINST):WINBOOL;
  6228. begin
  6229. FreeModule:=FreeLibrary(h);
  6230. end;
  6231. { was #define dname(params) def_expr }
  6232. { argument types are unknown }
  6233. { return type might be wrong }
  6234. function MakeProcInstance(p,i : longint) : longint;
  6235. { return type might be wrong }
  6236. begin
  6237. MakeProcInstance:=p;
  6238. end;
  6239. { was #define dname(params) def_expr }
  6240. { argument types are unknown }
  6241. { return type might be wrong }
  6242. function FreeProcInstance(p : longint) : longint;
  6243. { return type might be wrong }
  6244. begin
  6245. FreeProcInstance:=p;
  6246. end;
  6247. {$endif read_implementation}