win32con.py 118 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071
  1. # Generated by h2py from commdlg.h (plus modifications 4jan98)
  2. WINVER = 1280
  3. WM_USER = 1024
  4. PY_0U = 0
  5. OFN_READONLY = 1
  6. OFN_OVERWRITEPROMPT = 2
  7. OFN_HIDEREADONLY = 4
  8. OFN_NOCHANGEDIR = 8
  9. OFN_SHOWHELP = 16
  10. OFN_ENABLEHOOK = 32
  11. OFN_ENABLETEMPLATE = 64
  12. OFN_ENABLETEMPLATEHANDLE = 128
  13. OFN_NOVALIDATE = 256
  14. OFN_ALLOWMULTISELECT = 512
  15. OFN_EXTENSIONDIFFERENT = 1024
  16. OFN_PATHMUSTEXIST = 2048
  17. OFN_FILEMUSTEXIST = 4096
  18. OFN_CREATEPROMPT = 8192
  19. OFN_SHAREAWARE = 16384
  20. OFN_NOREADONLYRETURN = 32768
  21. OFN_NOTESTFILECREATE = 65536
  22. OFN_NONETWORKBUTTON = 131072
  23. OFN_NOLONGNAMES = 262144
  24. OFN_EXPLORER = 524288 # new look commdlg
  25. OFN_NODEREFERENCELINKS = 1048576
  26. OFN_LONGNAMES = 2097152 # force long names for 3.x modules
  27. OFN_ENABLEINCLUDENOTIFY = 4194304 # send include message to callback
  28. OFN_ENABLESIZING = 8388608
  29. OFN_DONTADDTORECENT = 33554432
  30. OFN_FORCESHOWHIDDEN = 268435456 # Show All files including System and hidden files
  31. OFN_EX_NOPLACESBAR = 1
  32. OFN_SHAREFALLTHROUGH = 2
  33. OFN_SHARENOWARN = 1
  34. OFN_SHAREWARN = 0
  35. CDN_FIRST = (PY_0U-601)
  36. CDN_LAST = (PY_0U-699)
  37. CDN_INITDONE = (CDN_FIRST - 0)
  38. CDN_SELCHANGE = (CDN_FIRST - 1)
  39. CDN_FOLDERCHANGE = (CDN_FIRST - 2)
  40. CDN_SHAREVIOLATION = (CDN_FIRST - 3)
  41. CDN_HELP = (CDN_FIRST - 4)
  42. CDN_FILEOK = (CDN_FIRST - 5)
  43. CDN_TYPECHANGE = (CDN_FIRST - 6)
  44. CDN_INCLUDEITEM = (CDN_FIRST - 7)
  45. CDM_FIRST = (WM_USER + 100)
  46. CDM_LAST = (WM_USER + 200)
  47. CDM_GETSPEC = (CDM_FIRST + 0)
  48. CDM_GETFILEPATH = (CDM_FIRST + 1)
  49. CDM_GETFOLDERPATH = (CDM_FIRST + 2)
  50. CDM_GETFOLDERIDLIST = (CDM_FIRST + 3)
  51. CDM_SETCONTROLTEXT = (CDM_FIRST + 4)
  52. CDM_HIDECONTROL = (CDM_FIRST + 5)
  53. CDM_SETDEFEXT = (CDM_FIRST + 6)
  54. CC_RGBINIT = 1
  55. CC_FULLOPEN = 2
  56. CC_PREVENTFULLOPEN = 4
  57. CC_SHOWHELP = 8
  58. CC_ENABLEHOOK = 16
  59. CC_ENABLETEMPLATE = 32
  60. CC_ENABLETEMPLATEHANDLE = 64
  61. CC_SOLIDCOLOR = 128
  62. CC_ANYCOLOR = 256
  63. FR_DOWN = 1
  64. FR_WHOLEWORD = 2
  65. FR_MATCHCASE = 4
  66. FR_FINDNEXT = 8
  67. FR_REPLACE = 16
  68. FR_REPLACEALL = 32
  69. FR_DIALOGTERM = 64
  70. FR_SHOWHELP = 128
  71. FR_ENABLEHOOK = 256
  72. FR_ENABLETEMPLATE = 512
  73. FR_NOUPDOWN = 1024
  74. FR_NOMATCHCASE = 2048
  75. FR_NOWHOLEWORD = 4096
  76. FR_ENABLETEMPLATEHANDLE = 8192
  77. FR_HIDEUPDOWN = 16384
  78. FR_HIDEMATCHCASE = 32768
  79. FR_HIDEWHOLEWORD = 65536
  80. CF_SCREENFONTS = 1
  81. CF_PRINTERFONTS = 2
  82. CF_BOTH = (CF_SCREENFONTS | CF_PRINTERFONTS)
  83. CF_SHOWHELP = 4
  84. CF_ENABLEHOOK = 8
  85. CF_ENABLETEMPLATE = 16
  86. CF_ENABLETEMPLATEHANDLE = 32
  87. CF_INITTOLOGFONTSTRUCT = 64
  88. CF_USESTYLE = 128
  89. CF_EFFECTS = 256
  90. CF_APPLY = 512
  91. CF_ANSIONLY = 1024
  92. CF_SCRIPTSONLY = CF_ANSIONLY
  93. CF_NOVECTORFONTS = 2048
  94. CF_NOOEMFONTS = CF_NOVECTORFONTS
  95. CF_NOSIMULATIONS = 4096
  96. CF_LIMITSIZE = 8192
  97. CF_FIXEDPITCHONLY = 16384
  98. CF_WYSIWYG = 32768 # must also have CF_SCREENFONTS & CF_PRINTERFONTS
  99. CF_FORCEFONTEXIST = 65536
  100. CF_SCALABLEONLY = 131072
  101. CF_TTONLY = 262144
  102. CF_NOFACESEL = 524288
  103. CF_NOSTYLESEL = 1048576
  104. CF_NOSIZESEL = 2097152
  105. CF_SELECTSCRIPT = 4194304
  106. CF_NOSCRIPTSEL = 8388608
  107. CF_NOVERTFONTS = 16777216
  108. SIMULATED_FONTTYPE = 32768
  109. PRINTER_FONTTYPE = 16384
  110. SCREEN_FONTTYPE = 8192
  111. BOLD_FONTTYPE = 256
  112. ITALIC_FONTTYPE = 512
  113. REGULAR_FONTTYPE = 1024
  114. OPENTYPE_FONTTYPE = 65536
  115. TYPE1_FONTTYPE = 131072
  116. DSIG_FONTTYPE = 262144
  117. WM_CHOOSEFONT_GETLOGFONT = (WM_USER + 1)
  118. WM_CHOOSEFONT_SETLOGFONT = (WM_USER + 101)
  119. WM_CHOOSEFONT_SETFLAGS = (WM_USER + 102)
  120. LBSELCHSTRINGA = "commdlg_LBSelChangedNotify"
  121. SHAREVISTRINGA = "commdlg_ShareViolation"
  122. FILEOKSTRINGA = "commdlg_FileNameOK"
  123. COLOROKSTRINGA = "commdlg_ColorOK"
  124. SETRGBSTRINGA = "commdlg_SetRGBColor"
  125. HELPMSGSTRINGA = "commdlg_help"
  126. FINDMSGSTRINGA = "commdlg_FindReplace"
  127. LBSELCHSTRING = LBSELCHSTRINGA
  128. SHAREVISTRING = SHAREVISTRINGA
  129. FILEOKSTRING = FILEOKSTRINGA
  130. COLOROKSTRING = COLOROKSTRINGA
  131. SETRGBSTRING = SETRGBSTRINGA
  132. HELPMSGSTRING = HELPMSGSTRINGA
  133. FINDMSGSTRING = FINDMSGSTRINGA
  134. CD_LBSELNOITEMS = -1
  135. CD_LBSELCHANGE = 0
  136. CD_LBSELSUB = 1
  137. CD_LBSELADD = 2
  138. PD_ALLPAGES = 0
  139. PD_SELECTION = 1
  140. PD_PAGENUMS = 2
  141. PD_NOSELECTION = 4
  142. PD_NOPAGENUMS = 8
  143. PD_COLLATE = 16
  144. PD_PRINTTOFILE = 32
  145. PD_PRINTSETUP = 64
  146. PD_NOWARNING = 128
  147. PD_RETURNDC = 256
  148. PD_RETURNIC = 512
  149. PD_RETURNDEFAULT = 1024
  150. PD_SHOWHELP = 2048
  151. PD_ENABLEPRINTHOOK = 4096
  152. PD_ENABLESETUPHOOK = 8192
  153. PD_ENABLEPRINTTEMPLATE = 16384
  154. PD_ENABLESETUPTEMPLATE = 32768
  155. PD_ENABLEPRINTTEMPLATEHANDLE = 65536
  156. PD_ENABLESETUPTEMPLATEHANDLE = 131072
  157. PD_USEDEVMODECOPIES = 262144
  158. PD_DISABLEPRINTTOFILE = 524288
  159. PD_HIDEPRINTTOFILE = 1048576
  160. PD_NONETWORKBUTTON = 2097152
  161. DN_DEFAULTPRN = 1
  162. WM_PSD_PAGESETUPDLG = (WM_USER )
  163. WM_PSD_FULLPAGERECT = (WM_USER+1)
  164. WM_PSD_MINMARGINRECT = (WM_USER+2)
  165. WM_PSD_MARGINRECT = (WM_USER+3)
  166. WM_PSD_GREEKTEXTRECT = (WM_USER+4)
  167. WM_PSD_ENVSTAMPRECT = (WM_USER+5)
  168. WM_PSD_YAFULLPAGERECT = (WM_USER+6)
  169. PSD_DEFAULTMINMARGINS = 0 # default (printer's)
  170. PSD_INWININIINTLMEASURE = 0 # 1st of 4 possible
  171. PSD_MINMARGINS = 1 # use caller's
  172. PSD_MARGINS = 2 # use caller's
  173. PSD_INTHOUSANDTHSOFINCHES = 4 # 2nd of 4 possible
  174. PSD_INHUNDREDTHSOFMILLIMETERS = 8 # 3rd of 4 possible
  175. PSD_DISABLEMARGINS = 16
  176. PSD_DISABLEPRINTER = 32
  177. PSD_NOWARNING = 128 # must be same as PD_*
  178. PSD_DISABLEORIENTATION = 256
  179. PSD_RETURNDEFAULT = 1024 # must be same as PD_*
  180. PSD_DISABLEPAPER = 512
  181. PSD_SHOWHELP = 2048 # must be same as PD_*
  182. PSD_ENABLEPAGESETUPHOOK = 8192 # must be same as PD_*
  183. PSD_ENABLEPAGESETUPTEMPLATE = 32768 # must be same as PD_*
  184. PSD_ENABLEPAGESETUPTEMPLATEHANDLE = 131072 # must be same as PD_*
  185. PSD_ENABLEPAGEPAINTHOOK = 262144
  186. PSD_DISABLEPAGEPAINTING = 524288
  187. PSD_NONETWORKBUTTON = 2097152 # must be same as PD_*
  188. # Generated by h2py from winreg.h
  189. HKEY_CLASSES_ROOT = -2147483648
  190. HKEY_CURRENT_USER = -2147483647
  191. HKEY_LOCAL_MACHINE = -2147483646
  192. HKEY_USERS = -2147483645
  193. HKEY_PERFORMANCE_DATA = -2147483644
  194. HKEY_CURRENT_CONFIG = -2147483643
  195. HKEY_DYN_DATA = -2147483642
  196. HKEY_PERFORMANCE_TEXT = -2147483568 # ?? 4Jan98
  197. HKEY_PERFORMANCE_NLSTEXT = -2147483552 # ?? 4Jan98
  198. # Generated by h2py from winuser.h
  199. HWND_BROADCAST = 65535
  200. HWND_DESKTOP = 0
  201. HWND_TOP = 0
  202. HWND_BOTTOM = 1
  203. HWND_TOPMOST = -1
  204. HWND_NOTOPMOST = -2
  205. HWND_MESSAGE = -3
  206. # winuser.h line 4601
  207. SM_CXSCREEN = 0
  208. SM_CYSCREEN = 1
  209. SM_CXVSCROLL = 2
  210. SM_CYHSCROLL = 3
  211. SM_CYCAPTION = 4
  212. SM_CXBORDER = 5
  213. SM_CYBORDER = 6
  214. SM_CXDLGFRAME = 7
  215. SM_CYDLGFRAME = 8
  216. SM_CYVTHUMB = 9
  217. SM_CXHTHUMB = 10
  218. SM_CXICON = 11
  219. SM_CYICON = 12
  220. SM_CXCURSOR = 13
  221. SM_CYCURSOR = 14
  222. SM_CYMENU = 15
  223. SM_CXFULLSCREEN = 16
  224. SM_CYFULLSCREEN = 17
  225. SM_CYKANJIWINDOW = 18
  226. SM_MOUSEPRESENT = 19
  227. SM_CYVSCROLL = 20
  228. SM_CXHSCROLL = 21
  229. SM_DEBUG = 22
  230. SM_SWAPBUTTON = 23
  231. SM_RESERVED1 = 24
  232. SM_RESERVED2 = 25
  233. SM_RESERVED3 = 26
  234. SM_RESERVED4 = 27
  235. SM_CXMIN = 28
  236. SM_CYMIN = 29
  237. SM_CXSIZE = 30
  238. SM_CYSIZE = 31
  239. SM_CXFRAME = 32
  240. SM_CYFRAME = 33
  241. SM_CXMINTRACK = 34
  242. SM_CYMINTRACK = 35
  243. SM_CXDOUBLECLK = 36
  244. SM_CYDOUBLECLK = 37
  245. SM_CXICONSPACING = 38
  246. SM_CYICONSPACING = 39
  247. SM_MENUDROPALIGNMENT = 40
  248. SM_PENWINDOWS = 41
  249. SM_DBCSENABLED = 42
  250. SM_CMOUSEBUTTONS = 43
  251. SM_CXFIXEDFRAME = SM_CXDLGFRAME
  252. SM_CYFIXEDFRAME = SM_CYDLGFRAME
  253. SM_CXSIZEFRAME = SM_CXFRAME
  254. SM_CYSIZEFRAME = SM_CYFRAME
  255. SM_SECURE = 44
  256. SM_CXEDGE = 45
  257. SM_CYEDGE = 46
  258. SM_CXMINSPACING = 47
  259. SM_CYMINSPACING = 48
  260. SM_CXSMICON = 49
  261. SM_CYSMICON = 50
  262. SM_CYSMCAPTION = 51
  263. SM_CXSMSIZE = 52
  264. SM_CYSMSIZE = 53
  265. SM_CXMENUSIZE = 54
  266. SM_CYMENUSIZE = 55
  267. SM_ARRANGE = 56
  268. SM_CXMINIMIZED = 57
  269. SM_CYMINIMIZED = 58
  270. SM_CXMAXTRACK = 59
  271. SM_CYMAXTRACK = 60
  272. SM_CXMAXIMIZED = 61
  273. SM_CYMAXIMIZED = 62
  274. SM_NETWORK = 63
  275. SM_CLEANBOOT = 67
  276. SM_CXDRAG = 68
  277. SM_CYDRAG = 69
  278. SM_SHOWSOUNDS = 70
  279. SM_CXMENUCHECK = 71
  280. SM_CYMENUCHECK = 72
  281. SM_SLOWMACHINE = 73
  282. SM_MIDEASTENABLED = 74
  283. SM_MOUSEWHEELPRESENT = 75
  284. SM_XVIRTUALSCREEN = 76
  285. SM_YVIRTUALSCREEN = 77
  286. SM_CXVIRTUALSCREEN = 78
  287. SM_CYVIRTUALSCREEN = 79
  288. SM_CMONITORS = 80
  289. SM_SAMEDISPLAYFORMAT = 81
  290. SM_CMETRICS = 83
  291. MNC_IGNORE = 0
  292. MNC_CLOSE = 1
  293. MNC_EXECUTE = 2
  294. MNC_SELECT = 3
  295. MNS_NOCHECK = -2147483648
  296. MNS_MODELESS = 1073741824
  297. MNS_DRAGDROP = 536870912
  298. MNS_AUTODISMISS = 268435456
  299. MNS_NOTIFYBYPOS = 134217728
  300. MNS_CHECKORBMP = 67108864
  301. MIM_MAXHEIGHT = 1
  302. MIM_BACKGROUND = 2
  303. MIM_HELPID = 4
  304. MIM_MENUDATA = 8
  305. MIM_STYLE = 16
  306. MIM_APPLYTOSUBMENUS = -2147483648
  307. MND_CONTINUE = 0
  308. MND_ENDMENU = 1
  309. MNGOF_GAP = 3
  310. MNGO_NOINTERFACE = 0
  311. MNGO_NOERROR = 1
  312. MIIM_STATE = 1
  313. MIIM_ID = 2
  314. MIIM_SUBMENU = 4
  315. MIIM_CHECKMARKS = 8
  316. MIIM_TYPE = 16
  317. MIIM_DATA = 32
  318. MIIM_STRING = 64
  319. MIIM_BITMAP = 128
  320. MIIM_FTYPE = 256
  321. HBMMENU_CALLBACK = -1
  322. HBMMENU_SYSTEM = 1
  323. HBMMENU_MBAR_RESTORE = 2
  324. HBMMENU_MBAR_MINIMIZE = 3
  325. HBMMENU_MBAR_CLOSE = 5
  326. HBMMENU_MBAR_CLOSE_D = 6
  327. HBMMENU_MBAR_MINIMIZE_D = 7
  328. HBMMENU_POPUP_CLOSE = 8
  329. HBMMENU_POPUP_RESTORE = 9
  330. HBMMENU_POPUP_MAXIMIZE = 10
  331. HBMMENU_POPUP_MINIMIZE = 11
  332. GMDI_USEDISABLED = 1
  333. GMDI_GOINTOPOPUPS = 2
  334. TPM_LEFTBUTTON = 0
  335. TPM_RIGHTBUTTON = 2
  336. TPM_LEFTALIGN = 0
  337. TPM_CENTERALIGN = 4
  338. TPM_RIGHTALIGN = 8
  339. TPM_TOPALIGN = 0
  340. TPM_VCENTERALIGN = 16
  341. TPM_BOTTOMALIGN = 32
  342. TPM_HORIZONTAL = 0
  343. TPM_VERTICAL = 64
  344. TPM_NONOTIFY = 128
  345. TPM_RETURNCMD = 256
  346. TPM_RECURSE = 1
  347. DOF_EXECUTABLE = 32769
  348. DOF_DOCUMENT = 32770
  349. DOF_DIRECTORY = 32771
  350. DOF_MULTIPLE = 32772
  351. DOF_PROGMAN = 1
  352. DOF_SHELLDATA = 2
  353. DO_DROPFILE = 1162627398
  354. DO_PRINTFILE = 1414419024
  355. DT_TOP = 0
  356. DT_LEFT = 0
  357. DT_CENTER = 1
  358. DT_RIGHT = 2
  359. DT_VCENTER = 4
  360. DT_BOTTOM = 8
  361. DT_WORDBREAK = 16
  362. DT_SINGLELINE = 32
  363. DT_EXPANDTABS = 64
  364. DT_TABSTOP = 128
  365. DT_NOCLIP = 256
  366. DT_EXTERNALLEADING = 512
  367. DT_CALCRECT = 1024
  368. DT_NOPREFIX = 2048
  369. DT_INTERNAL = 4096
  370. DT_EDITCONTROL = 8192
  371. DT_PATH_ELLIPSIS = 16384
  372. DT_END_ELLIPSIS = 32768
  373. DT_MODIFYSTRING = 65536
  374. DT_RTLREADING = 131072
  375. DT_WORD_ELLIPSIS = 262144
  376. DST_COMPLEX = 0
  377. DST_TEXT = 1
  378. DST_PREFIXTEXT = 2
  379. DST_ICON = 3
  380. DST_BITMAP = 4
  381. DSS_NORMAL = 0
  382. DSS_UNION = 16
  383. DSS_DISABLED = 32
  384. DSS_MONO = 128
  385. DSS_RIGHT = 32768
  386. DCX_WINDOW = 1
  387. DCX_CACHE = 2
  388. DCX_NORESETATTRS = 4
  389. DCX_CLIPCHILDREN = 8
  390. DCX_CLIPSIBLINGS = 16
  391. DCX_PARENTCLIP = 32
  392. DCX_EXCLUDERGN = 64
  393. DCX_INTERSECTRGN = 128
  394. DCX_EXCLUDEUPDATE = 256
  395. DCX_INTERSECTUPDATE = 512
  396. DCX_LOCKWINDOWUPDATE = 1024
  397. DCX_VALIDATE = 2097152
  398. CUDR_NORMAL = 0
  399. CUDR_NOSNAPTOGRID = 1
  400. CUDR_NORESOLVEPOSITIONS = 2
  401. CUDR_NOCLOSEGAPS = 4
  402. CUDR_NEGATIVECOORDS = 8
  403. CUDR_NOPRIMARY = 16
  404. RDW_INVALIDATE = 1
  405. RDW_INTERNALPAINT = 2
  406. RDW_ERASE = 4
  407. RDW_VALIDATE = 8
  408. RDW_NOINTERNALPAINT = 16
  409. RDW_NOERASE = 32
  410. RDW_NOCHILDREN = 64
  411. RDW_ALLCHILDREN = 128
  412. RDW_UPDATENOW = 256
  413. RDW_ERASENOW = 512
  414. RDW_FRAME = 1024
  415. RDW_NOFRAME = 2048
  416. SW_SCROLLCHILDREN = 1
  417. SW_INVALIDATE = 2
  418. SW_ERASE = 4
  419. SW_SMOOTHSCROLL = 16 # Use smooth scrolling
  420. ESB_ENABLE_BOTH = 0
  421. ESB_DISABLE_BOTH = 3
  422. ESB_DISABLE_LEFT = 1
  423. ESB_DISABLE_RIGHT = 2
  424. ESB_DISABLE_UP = 1
  425. ESB_DISABLE_DOWN = 2
  426. ESB_DISABLE_LTUP = ESB_DISABLE_LEFT
  427. ESB_DISABLE_RTDN = ESB_DISABLE_RIGHT
  428. HELPINFO_WINDOW = 1
  429. HELPINFO_MENUITEM = 2
  430. MB_OK = 0
  431. MB_OKCANCEL = 1
  432. MB_ABORTRETRYIGNORE = 2
  433. MB_YESNOCANCEL = 3
  434. MB_YESNO = 4
  435. MB_RETRYCANCEL = 5
  436. MB_ICONHAND = 16
  437. MB_ICONQUESTION = 32
  438. MB_ICONEXCLAMATION = 48
  439. MB_ICONASTERISK = 64
  440. MB_ICONWARNING = MB_ICONEXCLAMATION
  441. MB_ICONERROR = MB_ICONHAND
  442. MB_ICONINFORMATION = MB_ICONASTERISK
  443. MB_ICONSTOP = MB_ICONHAND
  444. MB_DEFBUTTON1 = 0
  445. MB_DEFBUTTON2 = 256
  446. MB_DEFBUTTON3 = 512
  447. MB_DEFBUTTON4 = 768
  448. MB_APPLMODAL = 0
  449. MB_SYSTEMMODAL = 4096
  450. MB_TASKMODAL = 8192
  451. MB_HELP = 16384
  452. MB_NOFOCUS = 32768
  453. MB_SETFOREGROUND = 65536
  454. MB_DEFAULT_DESKTOP_ONLY = 131072
  455. MB_TOPMOST = 262144
  456. MB_RIGHT = 524288
  457. MB_RTLREADING = 1048576
  458. MB_SERVICE_NOTIFICATION = 2097152
  459. MB_TYPEMASK = 15
  460. MB_USERICON = 128
  461. MB_ICONMASK = 240
  462. MB_DEFMASK = 3840
  463. MB_MODEMASK = 12288
  464. MB_MISCMASK = 49152
  465. # winuser.h line 6373
  466. CWP_ALL = 0
  467. CWP_SKIPINVISIBLE = 1
  468. CWP_SKIPDISABLED = 2
  469. CWP_SKIPTRANSPARENT = 4
  470. CTLCOLOR_MSGBOX = 0
  471. CTLCOLOR_EDIT = 1
  472. CTLCOLOR_LISTBOX = 2
  473. CTLCOLOR_BTN = 3
  474. CTLCOLOR_DLG = 4
  475. CTLCOLOR_SCROLLBAR = 5
  476. CTLCOLOR_STATIC = 6
  477. CTLCOLOR_MAX = 7
  478. COLOR_SCROLLBAR = 0
  479. COLOR_BACKGROUND = 1
  480. COLOR_ACTIVECAPTION = 2
  481. COLOR_INACTIVECAPTION = 3
  482. COLOR_MENU = 4
  483. COLOR_WINDOW = 5
  484. COLOR_WINDOWFRAME = 6
  485. COLOR_MENUTEXT = 7
  486. COLOR_WINDOWTEXT = 8
  487. COLOR_CAPTIONTEXT = 9
  488. COLOR_ACTIVEBORDER = 10
  489. COLOR_INACTIVEBORDER = 11
  490. COLOR_APPWORKSPACE = 12
  491. COLOR_HIGHLIGHT = 13
  492. COLOR_HIGHLIGHTTEXT = 14
  493. COLOR_BTNFACE = 15
  494. COLOR_BTNSHADOW = 16
  495. COLOR_GRAYTEXT = 17
  496. COLOR_BTNTEXT = 18
  497. COLOR_INACTIVECAPTIONTEXT = 19
  498. COLOR_BTNHIGHLIGHT = 20
  499. COLOR_3DDKSHADOW = 21
  500. COLOR_3DLIGHT = 22
  501. COLOR_INFOTEXT = 23
  502. COLOR_INFOBK = 24
  503. COLOR_HOTLIGHT = 26
  504. COLOR_GRADIENTACTIVECAPTION = 27
  505. COLOR_GRADIENTINACTIVECAPTION = 28
  506. COLOR_DESKTOP = COLOR_BACKGROUND
  507. COLOR_3DFACE = COLOR_BTNFACE
  508. COLOR_3DSHADOW = COLOR_BTNSHADOW
  509. COLOR_3DHIGHLIGHT = COLOR_BTNHIGHLIGHT
  510. COLOR_3DHILIGHT = COLOR_BTNHIGHLIGHT
  511. COLOR_BTNHILIGHT = COLOR_BTNHIGHLIGHT
  512. GW_HWNDFIRST = 0
  513. GW_HWNDLAST = 1
  514. GW_HWNDNEXT = 2
  515. GW_HWNDPREV = 3
  516. GW_OWNER = 4
  517. GW_CHILD = 5
  518. GW_ENABLEDPOPUP = 6
  519. GW_MAX = 6
  520. MF_INSERT = 0
  521. MF_CHANGE = 128
  522. MF_APPEND = 256
  523. MF_DELETE = 512
  524. MF_REMOVE = 4096
  525. MF_BYCOMMAND = 0
  526. MF_BYPOSITION = 1024
  527. MF_SEPARATOR = 2048
  528. MF_ENABLED = 0
  529. MF_GRAYED = 1
  530. MF_DISABLED = 2
  531. MF_UNCHECKED = 0
  532. MF_CHECKED = 8
  533. MF_USECHECKBITMAPS = 512
  534. MF_STRING = 0
  535. MF_BITMAP = 4
  536. MF_OWNERDRAW = 256
  537. MF_POPUP = 16
  538. MF_MENUBARBREAK = 32
  539. MF_MENUBREAK = 64
  540. MF_UNHILITE = 0
  541. MF_HILITE = 128
  542. MF_DEFAULT = 4096
  543. MF_SYSMENU = 8192
  544. MF_HELP = 16384
  545. MF_RIGHTJUSTIFY = 16384
  546. MF_MOUSESELECT = 32768
  547. MF_END = 128
  548. MFT_STRING = MF_STRING
  549. MFT_BITMAP = MF_BITMAP
  550. MFT_MENUBARBREAK = MF_MENUBARBREAK
  551. MFT_MENUBREAK = MF_MENUBREAK
  552. MFT_OWNERDRAW = MF_OWNERDRAW
  553. MFT_RADIOCHECK = 512
  554. MFT_SEPARATOR = MF_SEPARATOR
  555. MFT_RIGHTORDER = 8192
  556. MFT_RIGHTJUSTIFY = MF_RIGHTJUSTIFY
  557. MFS_GRAYED = 3
  558. MFS_DISABLED = MFS_GRAYED
  559. MFS_CHECKED = MF_CHECKED
  560. MFS_HILITE = MF_HILITE
  561. MFS_ENABLED = MF_ENABLED
  562. MFS_UNCHECKED = MF_UNCHECKED
  563. MFS_UNHILITE = MF_UNHILITE
  564. MFS_DEFAULT = MF_DEFAULT
  565. MFS_MASK = 4235
  566. MFS_HOTTRACKDRAWN = 268435456
  567. MFS_CACHEDBMP = 536870912
  568. MFS_BOTTOMGAPDROP = 1073741824
  569. MFS_TOPGAPDROP = -2147483648
  570. MFS_GAPDROP = -1073741824
  571. SC_SIZE = 61440
  572. SC_MOVE = 61456
  573. SC_MINIMIZE = 61472
  574. SC_MAXIMIZE = 61488
  575. SC_NEXTWINDOW = 61504
  576. SC_PREVWINDOW = 61520
  577. SC_CLOSE = 61536
  578. SC_VSCROLL = 61552
  579. SC_HSCROLL = 61568
  580. SC_MOUSEMENU = 61584
  581. SC_KEYMENU = 61696
  582. SC_ARRANGE = 61712
  583. SC_RESTORE = 61728
  584. SC_TASKLIST = 61744
  585. SC_SCREENSAVE = 61760
  586. SC_HOTKEY = 61776
  587. SC_DEFAULT = 61792
  588. SC_MONITORPOWER = 61808
  589. SC_CONTEXTHELP = 61824
  590. SC_SEPARATOR = 61455
  591. SC_ICON = SC_MINIMIZE
  592. SC_ZOOM = SC_MAXIMIZE
  593. IDC_ARROW = 32512
  594. IDC_IBEAM = 32513
  595. IDC_WAIT = 32514
  596. IDC_CROSS = 32515
  597. IDC_UPARROW = 32516
  598. IDC_SIZE = 32640 # OBSOLETE: use IDC_SIZEALL
  599. IDC_ICON = 32641 # OBSOLETE: use IDC_ARROW
  600. IDC_SIZENWSE = 32642
  601. IDC_SIZENESW = 32643
  602. IDC_SIZEWE = 32644
  603. IDC_SIZENS = 32645
  604. IDC_SIZEALL = 32646
  605. IDC_NO = 32648
  606. IDC_HAND = 32649
  607. IDC_APPSTARTING = 32650
  608. IDC_HELP = 32651
  609. IMAGE_BITMAP = 0
  610. IMAGE_ICON = 1
  611. IMAGE_CURSOR = 2
  612. IMAGE_ENHMETAFILE = 3
  613. LR_DEFAULTCOLOR = 0
  614. LR_MONOCHROME = 1
  615. LR_COLOR = 2
  616. LR_COPYRETURNORG = 4
  617. LR_COPYDELETEORG = 8
  618. LR_LOADFROMFILE = 16
  619. LR_LOADTRANSPARENT = 32
  620. LR_DEFAULTSIZE = 64
  621. LR_LOADREALSIZE = 128
  622. LR_LOADMAP3DCOLORS = 4096
  623. LR_CREATEDIBSECTION = 8192
  624. LR_COPYFROMRESOURCE = 16384
  625. LR_SHARED = 32768
  626. DI_MASK = 1
  627. DI_IMAGE = 2
  628. DI_NORMAL = 3
  629. DI_COMPAT = 4
  630. DI_DEFAULTSIZE = 8
  631. RES_ICON = 1
  632. RES_CURSOR = 2
  633. OBM_CLOSE = 32754
  634. OBM_UPARROW = 32753
  635. OBM_DNARROW = 32752
  636. OBM_RGARROW = 32751
  637. OBM_LFARROW = 32750
  638. OBM_REDUCE = 32749
  639. OBM_ZOOM = 32748
  640. OBM_RESTORE = 32747
  641. OBM_REDUCED = 32746
  642. OBM_ZOOMD = 32745
  643. OBM_RESTORED = 32744
  644. OBM_UPARROWD = 32743
  645. OBM_DNARROWD = 32742
  646. OBM_RGARROWD = 32741
  647. OBM_LFARROWD = 32740
  648. OBM_MNARROW = 32739
  649. OBM_COMBO = 32738
  650. OBM_UPARROWI = 32737
  651. OBM_DNARROWI = 32736
  652. OBM_RGARROWI = 32735
  653. OBM_LFARROWI = 32734
  654. OBM_OLD_CLOSE = 32767
  655. OBM_SIZE = 32766
  656. OBM_OLD_UPARROW = 32765
  657. OBM_OLD_DNARROW = 32764
  658. OBM_OLD_RGARROW = 32763
  659. OBM_OLD_LFARROW = 32762
  660. OBM_BTSIZE = 32761
  661. OBM_CHECK = 32760
  662. OBM_CHECKBOXES = 32759
  663. OBM_BTNCORNERS = 32758
  664. OBM_OLD_REDUCE = 32757
  665. OBM_OLD_ZOOM = 32756
  666. OBM_OLD_RESTORE = 32755
  667. OCR_NORMAL = 32512
  668. OCR_IBEAM = 32513
  669. OCR_WAIT = 32514
  670. OCR_CROSS = 32515
  671. OCR_UP = 32516
  672. OCR_SIZE = 32640
  673. OCR_ICON = 32641
  674. OCR_SIZENWSE = 32642
  675. OCR_SIZENESW = 32643
  676. OCR_SIZEWE = 32644
  677. OCR_SIZENS = 32645
  678. OCR_SIZEALL = 32646
  679. OCR_ICOCUR = 32647
  680. OCR_NO = 32648
  681. OCR_HAND = 32649
  682. OCR_APPSTARTING = 32650
  683. # winuser.h line 7455
  684. OIC_SAMPLE = 32512
  685. OIC_HAND = 32513
  686. OIC_QUES = 32514
  687. OIC_BANG = 32515
  688. OIC_NOTE = 32516
  689. OIC_WINLOGO = 32517
  690. OIC_WARNING = OIC_BANG
  691. OIC_ERROR = OIC_HAND
  692. OIC_INFORMATION = OIC_NOTE
  693. ORD_LANGDRIVER = 1
  694. IDI_APPLICATION = 32512
  695. IDI_HAND = 32513
  696. IDI_QUESTION = 32514
  697. IDI_EXCLAMATION = 32515
  698. IDI_ASTERISK = 32516
  699. IDI_WINLOGO = 32517
  700. IDI_WARNING = IDI_EXCLAMATION
  701. IDI_ERROR = IDI_HAND
  702. IDI_INFORMATION = IDI_ASTERISK
  703. IDOK = 1
  704. IDCANCEL = 2
  705. IDABORT = 3
  706. IDRETRY = 4
  707. IDIGNORE = 5
  708. IDYES = 6
  709. IDNO = 7
  710. IDCLOSE = 8
  711. IDHELP = 9
  712. ES_LEFT = 0
  713. ES_CENTER = 1
  714. ES_RIGHT = 2
  715. ES_MULTILINE = 4
  716. ES_UPPERCASE = 8
  717. ES_LOWERCASE = 16
  718. ES_PASSWORD = 32
  719. ES_AUTOVSCROLL = 64
  720. ES_AUTOHSCROLL = 128
  721. ES_NOHIDESEL = 256
  722. ES_OEMCONVERT = 1024
  723. ES_READONLY = 2048
  724. ES_WANTRETURN = 4096
  725. ES_NUMBER = 8192
  726. EN_SETFOCUS = 256
  727. EN_KILLFOCUS = 512
  728. EN_CHANGE = 768
  729. EN_UPDATE = 1024
  730. EN_ERRSPACE = 1280
  731. EN_MAXTEXT = 1281
  732. EN_HSCROLL = 1537
  733. EN_VSCROLL = 1538
  734. EC_LEFTMARGIN = 1
  735. EC_RIGHTMARGIN = 2
  736. EC_USEFONTINFO = 65535
  737. EMSIS_COMPOSITIONSTRING = 1
  738. EIMES_GETCOMPSTRATONCE = 1
  739. EIMES_CANCELCOMPSTRINFOCUS = 2
  740. EIMES_COMPLETECOMPSTRKILLFOCUS = 4
  741. EM_GETSEL = 176
  742. EM_SETSEL = 177
  743. EM_GETRECT = 178
  744. EM_SETRECT = 179
  745. EM_SETRECTNP = 180
  746. EM_SCROLL = 181
  747. EM_LINESCROLL = 182
  748. EM_SCROLLCARET = 183
  749. EM_GETMODIFY = 184
  750. EM_SETMODIFY = 185
  751. EM_GETLINECOUNT = 186
  752. EM_LINEINDEX = 187
  753. EM_SETHANDLE = 188
  754. EM_GETHANDLE = 189
  755. EM_GETTHUMB = 190
  756. EM_LINELENGTH = 193
  757. EM_REPLACESEL = 194
  758. EM_GETLINE = 196
  759. EM_LIMITTEXT = 197
  760. EM_CANUNDO = 198
  761. EM_UNDO = 199
  762. EM_FMTLINES = 200
  763. EM_LINEFROMCHAR = 201
  764. EM_SETTABSTOPS = 203
  765. EM_SETPASSWORDCHAR = 204
  766. EM_EMPTYUNDOBUFFER = 205
  767. EM_GETFIRSTVISIBLELINE = 206
  768. EM_SETREADONLY = 207
  769. EM_SETWORDBREAKPROC = 208
  770. EM_GETWORDBREAKPROC = 209
  771. EM_GETPASSWORDCHAR = 210
  772. EM_SETMARGINS = 211
  773. EM_GETMARGINS = 212
  774. EM_SETLIMITTEXT = EM_LIMITTEXT
  775. EM_GETLIMITTEXT = 213
  776. EM_POSFROMCHAR = 214
  777. EM_CHARFROMPOS = 215
  778. EM_SETIMESTATUS = 216
  779. EM_GETIMESTATUS = 217
  780. WB_LEFT = 0
  781. WB_RIGHT = 1
  782. WB_ISDELIMITER = 2
  783. BS_PUSHBUTTON = 0
  784. BS_DEFPUSHBUTTON = 1
  785. BS_CHECKBOX = 2
  786. BS_AUTOCHECKBOX = 3
  787. BS_RADIOBUTTON = 4
  788. BS_3STATE = 5
  789. BS_AUTO3STATE = 6
  790. BS_GROUPBOX = 7
  791. BS_USERBUTTON = 8
  792. BS_AUTORADIOBUTTON = 9
  793. BS_OWNERDRAW = 11
  794. BS_LEFTTEXT = 32
  795. BS_TEXT = 0
  796. BS_ICON = 64
  797. BS_BITMAP = 128
  798. BS_LEFT = 256
  799. BS_RIGHT = 512
  800. BS_CENTER = 768
  801. BS_TOP = 1024
  802. BS_BOTTOM = 2048
  803. BS_VCENTER = 3072
  804. BS_PUSHLIKE = 4096
  805. BS_MULTILINE = 8192
  806. BS_NOTIFY = 16384
  807. BS_FLAT = 32768
  808. BS_RIGHTBUTTON = BS_LEFTTEXT
  809. BN_CLICKED = 0
  810. BN_PAINT = 1
  811. BN_HILITE = 2
  812. BN_UNHILITE = 3
  813. BN_DISABLE = 4
  814. BN_DOUBLECLICKED = 5
  815. BN_PUSHED = BN_HILITE
  816. BN_UNPUSHED = BN_UNHILITE
  817. BN_DBLCLK = BN_DOUBLECLICKED
  818. BN_SETFOCUS = 6
  819. BN_KILLFOCUS = 7
  820. BM_GETCHECK = 240
  821. BM_SETCHECK = 241
  822. BM_GETSTATE = 242
  823. BM_SETSTATE = 243
  824. BM_SETSTYLE = 244
  825. BM_CLICK = 245
  826. BM_GETIMAGE = 246
  827. BM_SETIMAGE = 247
  828. BST_UNCHECKED = 0
  829. BST_CHECKED = 1
  830. BST_INDETERMINATE = 2
  831. BST_PUSHED = 4
  832. BST_FOCUS = 8
  833. SS_LEFT = 0
  834. SS_CENTER = 1
  835. SS_RIGHT = 2
  836. SS_ICON = 3
  837. SS_BLACKRECT = 4
  838. SS_GRAYRECT = 5
  839. SS_WHITERECT = 6
  840. SS_BLACKFRAME = 7
  841. SS_GRAYFRAME = 8
  842. SS_WHITEFRAME = 9
  843. SS_USERITEM = 10
  844. SS_SIMPLE = 11
  845. SS_LEFTNOWORDWRAP = 12
  846. SS_BITMAP = 14
  847. SS_OWNERDRAW = 13
  848. SS_ENHMETAFILE = 15
  849. SS_ETCHEDHORZ = 16
  850. SS_ETCHEDVERT = 17
  851. SS_ETCHEDFRAME = 18
  852. SS_TYPEMASK = 31
  853. SS_NOPREFIX = 128
  854. SS_NOTIFY = 256
  855. SS_CENTERIMAGE = 512
  856. SS_RIGHTJUST = 1024
  857. SS_REALSIZEIMAGE = 2048
  858. SS_SUNKEN = 4096
  859. SS_ENDELLIPSIS = 16384
  860. SS_PATHELLIPSIS = 32768
  861. SS_WORDELLIPSIS = 49152
  862. SS_ELLIPSISMASK = 49152
  863. STM_SETICON = 368
  864. STM_GETICON = 369
  865. STM_SETIMAGE = 370
  866. STM_GETIMAGE = 371
  867. STN_CLICKED = 0
  868. STN_DBLCLK = 1
  869. STN_ENABLE = 2
  870. STN_DISABLE = 3
  871. STM_MSGMAX = 372
  872. DWL_MSGRESULT = 0
  873. DWL_DLGPROC = 4
  874. DWL_USER = 8
  875. DDL_READWRITE = 0
  876. DDL_READONLY = 1
  877. DDL_HIDDEN = 2
  878. DDL_SYSTEM = 4
  879. DDL_DIRECTORY = 16
  880. DDL_ARCHIVE = 32
  881. DDL_POSTMSGS = 8192
  882. DDL_DRIVES = 16384
  883. DDL_EXCLUSIVE = 32768
  884. #from winuser.h line 153
  885. RT_CURSOR = 1
  886. RT_BITMAP = 2
  887. RT_ICON = 3
  888. RT_MENU = 4
  889. RT_DIALOG = 5
  890. RT_STRING = 6
  891. RT_FONTDIR = 7
  892. RT_FONT = 8
  893. RT_ACCELERATOR = 9
  894. RT_RCDATA = 10
  895. RT_MESSAGETABLE = 11
  896. DIFFERENCE = 11
  897. RT_GROUP_CURSOR = (RT_CURSOR + DIFFERENCE)
  898. RT_GROUP_ICON = (RT_ICON + DIFFERENCE)
  899. RT_VERSION = 16
  900. RT_DLGINCLUDE = 17
  901. RT_PLUGPLAY = 19
  902. RT_VXD = 20
  903. RT_ANICURSOR = 21
  904. RT_ANIICON = 22
  905. RT_HTML = 23
  906. # from winuser.h line 218
  907. SB_HORZ = 0
  908. SB_VERT = 1
  909. SB_CTL = 2
  910. SB_BOTH = 3
  911. SB_LINEUP = 0
  912. SB_LINELEFT = 0
  913. SB_LINEDOWN = 1
  914. SB_LINERIGHT = 1
  915. SB_PAGEUP = 2
  916. SB_PAGELEFT = 2
  917. SB_PAGEDOWN = 3
  918. SB_PAGERIGHT = 3
  919. SB_THUMBPOSITION = 4
  920. SB_THUMBTRACK = 5
  921. SB_TOP = 6
  922. SB_LEFT = 6
  923. SB_BOTTOM = 7
  924. SB_RIGHT = 7
  925. SB_ENDSCROLL = 8
  926. SW_HIDE = 0
  927. SW_SHOWNORMAL = 1
  928. SW_NORMAL = 1
  929. SW_SHOWMINIMIZED = 2
  930. SW_SHOWMAXIMIZED = 3
  931. SW_MAXIMIZE = 3
  932. SW_SHOWNOACTIVATE = 4
  933. SW_SHOW = 5
  934. SW_MINIMIZE = 6
  935. SW_SHOWMINNOACTIVE = 7
  936. SW_SHOWNA = 8
  937. SW_RESTORE = 9
  938. SW_SHOWDEFAULT = 10
  939. SW_FORCEMINIMIZE = 11
  940. SW_MAX = 11
  941. HIDE_WINDOW = 0
  942. SHOW_OPENWINDOW = 1
  943. SHOW_ICONWINDOW = 2
  944. SHOW_FULLSCREEN = 3
  945. SHOW_OPENNOACTIVATE = 4
  946. SW_PARENTCLOSING = 1
  947. SW_OTHERZOOM = 2
  948. SW_PARENTOPENING = 3
  949. SW_OTHERUNZOOM = 4
  950. AW_HOR_POSITIVE = 1
  951. AW_HOR_NEGATIVE = 2
  952. AW_VER_POSITIVE = 4
  953. AW_VER_NEGATIVE = 8
  954. AW_CENTER = 16
  955. AW_HIDE = 65536
  956. AW_ACTIVATE = 131072
  957. AW_SLIDE = 262144
  958. AW_BLEND = 524288
  959. KF_EXTENDED = 256
  960. KF_DLGMODE = 2048
  961. KF_MENUMODE = 4096
  962. KF_ALTDOWN = 8192
  963. KF_REPEAT = 16384
  964. KF_UP = 32768
  965. VK_LBUTTON = 1
  966. VK_RBUTTON = 2
  967. VK_CANCEL = 3
  968. VK_MBUTTON = 4
  969. VK_BACK = 8
  970. VK_TAB = 9
  971. VK_CLEAR = 12
  972. VK_RETURN = 13
  973. VK_SHIFT = 16
  974. VK_CONTROL = 17
  975. VK_MENU = 18
  976. VK_PAUSE = 19
  977. VK_CAPITAL = 20
  978. VK_KANA = 21
  979. VK_HANGEUL = 21 # old name - should be here for compatibility
  980. VK_HANGUL = 21
  981. VK_JUNJA = 23
  982. VK_FINAL = 24
  983. VK_HANJA = 25
  984. VK_KANJI = 25
  985. VK_ESCAPE = 27
  986. VK_CONVERT = 28
  987. VK_NONCONVERT = 29
  988. VK_ACCEPT = 30
  989. VK_MODECHANGE = 31
  990. VK_SPACE = 32
  991. VK_PRIOR = 33
  992. VK_NEXT = 34
  993. VK_END = 35
  994. VK_HOME = 36
  995. VK_LEFT = 37
  996. VK_UP = 38
  997. VK_RIGHT = 39
  998. VK_DOWN = 40
  999. VK_SELECT = 41
  1000. VK_PRINT = 42
  1001. VK_EXECUTE = 43
  1002. VK_SNAPSHOT = 44
  1003. VK_INSERT = 45
  1004. VK_DELETE = 46
  1005. VK_HELP = 47
  1006. VK_LWIN = 91
  1007. VK_RWIN = 92
  1008. VK_APPS = 93
  1009. VK_NUMPAD0 = 96
  1010. VK_NUMPAD1 = 97
  1011. VK_NUMPAD2 = 98
  1012. VK_NUMPAD3 = 99
  1013. VK_NUMPAD4 = 100
  1014. VK_NUMPAD5 = 101
  1015. VK_NUMPAD6 = 102
  1016. VK_NUMPAD7 = 103
  1017. VK_NUMPAD8 = 104
  1018. VK_NUMPAD9 = 105
  1019. VK_MULTIPLY = 106
  1020. VK_ADD = 107
  1021. VK_SEPARATOR = 108
  1022. VK_SUBTRACT = 109
  1023. VK_DECIMAL = 110
  1024. VK_DIVIDE = 111
  1025. VK_F1 = 112
  1026. VK_F2 = 113
  1027. VK_F3 = 114
  1028. VK_F4 = 115
  1029. VK_F5 = 116
  1030. VK_F6 = 117
  1031. VK_F7 = 118
  1032. VK_F8 = 119
  1033. VK_F9 = 120
  1034. VK_F10 = 121
  1035. VK_F11 = 122
  1036. VK_F12 = 123
  1037. VK_F13 = 124
  1038. VK_F14 = 125
  1039. VK_F15 = 126
  1040. VK_F16 = 127
  1041. VK_F17 = 128
  1042. VK_F18 = 129
  1043. VK_F19 = 130
  1044. VK_F20 = 131
  1045. VK_F21 = 132
  1046. VK_F22 = 133
  1047. VK_F23 = 134
  1048. VK_F24 = 135
  1049. VK_NUMLOCK = 144
  1050. VK_SCROLL = 145
  1051. VK_LSHIFT = 160
  1052. VK_RSHIFT = 161
  1053. VK_LCONTROL = 162
  1054. VK_RCONTROL = 163
  1055. VK_LMENU = 164
  1056. VK_RMENU = 165
  1057. VK_PROCESSKEY = 229
  1058. VK_ATTN = 246
  1059. VK_CRSEL = 247
  1060. VK_EXSEL = 248
  1061. VK_EREOF = 249
  1062. VK_PLAY = 250
  1063. VK_ZOOM = 251
  1064. VK_NONAME = 252
  1065. VK_PA1 = 253
  1066. VK_OEM_CLEAR = 254
  1067. # multi-media related "keys"
  1068. MOUSEEVENTF_XDOWN = 0x0080
  1069. MOUSEEVENTF_XUP = 0x0100
  1070. MOUSEEVENTF_WHEEL = 0x0800
  1071. VK_XBUTTON1 = 0x05
  1072. VK_XBUTTON2 = 0x06
  1073. VK_VOLUME_MUTE = 0xAD
  1074. VK_VOLUME_DOWN = 0xAE
  1075. VK_VOLUME_UP = 0xAF
  1076. VK_MEDIA_NEXT_TRACK = 0xB0
  1077. VK_MEDIA_PREV_TRACK = 0xB1
  1078. VK_MEDIA_PLAY_PAUSE = 0xB3
  1079. VK_BROWSER_BACK = 0xA6
  1080. VK_BROWSER_FORWARD = 0xA7
  1081. WH_MIN = (-1)
  1082. WH_MSGFILTER = (-1)
  1083. WH_JOURNALRECORD = 0
  1084. WH_JOURNALPLAYBACK = 1
  1085. WH_KEYBOARD = 2
  1086. WH_GETMESSAGE = 3
  1087. WH_CALLWNDPROC = 4
  1088. WH_CBT = 5
  1089. WH_SYSMSGFILTER = 6
  1090. WH_MOUSE = 7
  1091. WH_HARDWARE = 8
  1092. WH_DEBUG = 9
  1093. WH_SHELL = 10
  1094. WH_FOREGROUNDIDLE = 11
  1095. WH_CALLWNDPROCRET = 12
  1096. WH_KEYBOARD_LL = 13
  1097. WH_MOUSE_LL = 14
  1098. WH_MAX = 14
  1099. WH_MINHOOK = WH_MIN
  1100. WH_MAXHOOK = WH_MAX
  1101. HC_ACTION = 0
  1102. HC_GETNEXT = 1
  1103. HC_SKIP = 2
  1104. HC_NOREMOVE = 3
  1105. HC_NOREM = HC_NOREMOVE
  1106. HC_SYSMODALON = 4
  1107. HC_SYSMODALOFF = 5
  1108. HCBT_MOVESIZE = 0
  1109. HCBT_MINMAX = 1
  1110. HCBT_QS = 2
  1111. HCBT_CREATEWND = 3
  1112. HCBT_DESTROYWND = 4
  1113. HCBT_ACTIVATE = 5
  1114. HCBT_CLICKSKIPPED = 6
  1115. HCBT_KEYSKIPPED = 7
  1116. HCBT_SYSCOMMAND = 8
  1117. HCBT_SETFOCUS = 9
  1118. MSGF_DIALOGBOX = 0
  1119. MSGF_MESSAGEBOX = 1
  1120. MSGF_MENU = 2
  1121. #MSGF_MOVE = 3
  1122. #MSGF_SIZE = 4
  1123. MSGF_SCROLLBAR = 5
  1124. MSGF_NEXTWINDOW = 6
  1125. #MSGF_MAINLOOP = 8
  1126. MSGF_MAX = 8
  1127. MSGF_USER = 4096
  1128. HSHELL_WINDOWCREATED = 1
  1129. HSHELL_WINDOWDESTROYED = 2
  1130. HSHELL_ACTIVATESHELLWINDOW = 3
  1131. HSHELL_WINDOWACTIVATED = 4
  1132. HSHELL_GETMINRECT = 5
  1133. HSHELL_REDRAW = 6
  1134. HSHELL_TASKMAN = 7
  1135. HSHELL_LANGUAGE = 8
  1136. HSHELL_ACCESSIBILITYSTATE = 11
  1137. ACCESS_STICKYKEYS = 1
  1138. ACCESS_FILTERKEYS = 2
  1139. ACCESS_MOUSEKEYS = 3
  1140. # winuser.h line 624
  1141. LLKHF_EXTENDED = 1
  1142. LLKHF_INJECTED = 16
  1143. LLKHF_ALTDOWN = 32
  1144. LLKHF_UP = 128
  1145. LLKHF_LOWER_IL_INJECTED = 2
  1146. LLMHF_INJECTED = 1
  1147. LLMHF_LOWER_IL_INJECTED = 2
  1148. # line 692
  1149. HKL_PREV = 0
  1150. HKL_NEXT = 1
  1151. KLF_ACTIVATE = 1
  1152. KLF_SUBSTITUTE_OK = 2
  1153. KLF_UNLOADPREVIOUS = 4
  1154. KLF_REORDER = 8
  1155. KLF_REPLACELANG = 16
  1156. KLF_NOTELLSHELL = 128
  1157. KLF_SETFORPROCESS = 256
  1158. KL_NAMELENGTH = 9
  1159. DESKTOP_READOBJECTS = 1
  1160. DESKTOP_CREATEWINDOW = 2
  1161. DESKTOP_CREATEMENU = 4
  1162. DESKTOP_HOOKCONTROL = 8
  1163. DESKTOP_JOURNALRECORD = 16
  1164. DESKTOP_JOURNALPLAYBACK = 32
  1165. DESKTOP_ENUMERATE = 64
  1166. DESKTOP_WRITEOBJECTS = 128
  1167. DESKTOP_SWITCHDESKTOP = 256
  1168. DF_ALLOWOTHERACCOUNTHOOK = 1
  1169. WINSTA_ENUMDESKTOPS = 1
  1170. WINSTA_READATTRIBUTES = 2
  1171. WINSTA_ACCESSCLIPBOARD = 4
  1172. WINSTA_CREATEDESKTOP = 8
  1173. WINSTA_WRITEATTRIBUTES = 16
  1174. WINSTA_ACCESSGLOBALATOMS = 32
  1175. WINSTA_EXITWINDOWS = 64
  1176. WINSTA_ENUMERATE = 256
  1177. WINSTA_READSCREEN = 512
  1178. WSF_VISIBLE = 1
  1179. UOI_FLAGS = 1
  1180. UOI_NAME = 2
  1181. UOI_TYPE = 3
  1182. UOI_USER_SID = 4
  1183. GWL_WNDPROC = (-4)
  1184. GWL_HINSTANCE = (-6)
  1185. GWL_HWNDPARENT = (-8)
  1186. GWL_STYLE = (-16)
  1187. GWL_EXSTYLE = (-20)
  1188. GWL_USERDATA = (-21)
  1189. GWL_ID = (-12)
  1190. GCL_MENUNAME = (-8)
  1191. GCL_HBRBACKGROUND = (-10)
  1192. GCL_HCURSOR = (-12)
  1193. GCL_HICON = (-14)
  1194. GCL_HMODULE = (-16)
  1195. GCL_CBWNDEXTRA = (-18)
  1196. GCL_CBCLSEXTRA = (-20)
  1197. GCL_WNDPROC = (-24)
  1198. GCL_STYLE = (-26)
  1199. GCW_ATOM = (-32)
  1200. GCL_HICONSM = (-34)
  1201. # line 1291
  1202. WM_NULL = 0
  1203. WM_CREATE = 1
  1204. WM_DESTROY = 2
  1205. WM_MOVE = 3
  1206. WM_SIZE = 5
  1207. WM_ACTIVATE = 6
  1208. WA_INACTIVE = 0
  1209. WA_ACTIVE = 1
  1210. WA_CLICKACTIVE = 2
  1211. WM_SETFOCUS = 7
  1212. WM_KILLFOCUS = 8
  1213. WM_ENABLE = 10
  1214. WM_SETREDRAW = 11
  1215. WM_SETTEXT = 12
  1216. WM_GETTEXT = 13
  1217. WM_GETTEXTLENGTH = 14
  1218. WM_PAINT = 15
  1219. WM_CLOSE = 16
  1220. WM_QUERYENDSESSION = 17
  1221. WM_QUIT = 18
  1222. WM_QUERYOPEN = 19
  1223. WM_ERASEBKGND = 20
  1224. WM_SYSCOLORCHANGE = 21
  1225. WM_ENDSESSION = 22
  1226. WM_SHOWWINDOW = 24
  1227. WM_WININICHANGE = 26
  1228. WM_SETTINGCHANGE = WM_WININICHANGE
  1229. WM_DEVMODECHANGE = 27
  1230. WM_ACTIVATEAPP = 28
  1231. WM_FONTCHANGE = 29
  1232. WM_TIMECHANGE = 30
  1233. WM_CANCELMODE = 31
  1234. WM_SETCURSOR = 32
  1235. WM_MOUSEACTIVATE = 33
  1236. WM_CHILDACTIVATE = 34
  1237. WM_QUEUESYNC = 35
  1238. WM_GETMINMAXINFO = 36
  1239. WM_PAINTICON = 38
  1240. WM_ICONERASEBKGND = 39
  1241. WM_NEXTDLGCTL = 40
  1242. WM_SPOOLERSTATUS = 42
  1243. WM_DRAWITEM = 43
  1244. WM_MEASUREITEM = 44
  1245. WM_DELETEITEM = 45
  1246. WM_VKEYTOITEM = 46
  1247. WM_CHARTOITEM = 47
  1248. WM_SETFONT = 48
  1249. WM_GETFONT = 49
  1250. WM_SETHOTKEY = 50
  1251. WM_GETHOTKEY = 51
  1252. WM_QUERYDRAGICON = 55
  1253. WM_COMPAREITEM = 57
  1254. WM_GETOBJECT = 61
  1255. WM_COMPACTING = 65
  1256. WM_COMMNOTIFY = 68
  1257. WM_WINDOWPOSCHANGING = 70
  1258. WM_WINDOWPOSCHANGED = 71
  1259. WM_POWER = 72
  1260. PWR_OK = 1
  1261. PWR_FAIL = (-1)
  1262. PWR_SUSPENDREQUEST = 1
  1263. PWR_SUSPENDRESUME = 2
  1264. PWR_CRITICALRESUME = 3
  1265. WM_COPYDATA = 74
  1266. WM_CANCELJOURNAL = 75
  1267. WM_NOTIFY = 78
  1268. WM_INPUTLANGCHANGEREQUEST = 80
  1269. WM_INPUTLANGCHANGE = 81
  1270. WM_TCARD = 82
  1271. WM_HELP = 83
  1272. WM_USERCHANGED = 84
  1273. WM_NOTIFYFORMAT = 85
  1274. NFR_ANSI = 1
  1275. NFR_UNICODE = 2
  1276. NF_QUERY = 3
  1277. NF_REQUERY = 4
  1278. WM_CONTEXTMENU = 123
  1279. WM_STYLECHANGING = 124
  1280. WM_STYLECHANGED = 125
  1281. WM_DISPLAYCHANGE = 126
  1282. WM_GETICON = 127
  1283. WM_SETICON = 128
  1284. WM_NCCREATE = 129
  1285. WM_NCDESTROY = 130
  1286. WM_NCCALCSIZE = 131
  1287. WM_NCHITTEST = 132
  1288. WM_NCPAINT = 133
  1289. WM_NCACTIVATE = 134
  1290. WM_GETDLGCODE = 135
  1291. WM_SYNCPAINT = 136
  1292. WM_NCMOUSEMOVE = 160
  1293. WM_NCLBUTTONDOWN = 161
  1294. WM_NCLBUTTONUP = 162
  1295. WM_NCLBUTTONDBLCLK = 163
  1296. WM_NCRBUTTONDOWN = 164
  1297. WM_NCRBUTTONUP = 165
  1298. WM_NCRBUTTONDBLCLK = 166
  1299. WM_NCMBUTTONDOWN = 167
  1300. WM_NCMBUTTONUP = 168
  1301. WM_NCMBUTTONDBLCLK = 169
  1302. WM_KEYFIRST = 256
  1303. WM_KEYDOWN = 256
  1304. WM_KEYUP = 257
  1305. WM_CHAR = 258
  1306. WM_DEADCHAR = 259
  1307. WM_SYSKEYDOWN = 260
  1308. WM_SYSKEYUP = 261
  1309. WM_SYSCHAR = 262
  1310. WM_SYSDEADCHAR = 263
  1311. WM_KEYLAST = 264
  1312. WM_IME_STARTCOMPOSITION = 269
  1313. WM_IME_ENDCOMPOSITION = 270
  1314. WM_IME_COMPOSITION = 271
  1315. WM_IME_KEYLAST = 271
  1316. WM_INITDIALOG = 272
  1317. WM_COMMAND = 273
  1318. WM_SYSCOMMAND = 274
  1319. WM_TIMER = 275
  1320. WM_HSCROLL = 276
  1321. WM_VSCROLL = 277
  1322. WM_INITMENU = 278
  1323. WM_INITMENUPOPUP = 279
  1324. WM_MENUSELECT = 287
  1325. WM_MENUCHAR = 288
  1326. WM_ENTERIDLE = 289
  1327. WM_MENURBUTTONUP = 290
  1328. WM_MENUDRAG = 291
  1329. WM_MENUGETOBJECT = 292
  1330. WM_UNINITMENUPOPUP = 293
  1331. WM_MENUCOMMAND = 294
  1332. WM_CTLCOLORMSGBOX = 306
  1333. WM_CTLCOLOREDIT = 307
  1334. WM_CTLCOLORLISTBOX = 308
  1335. WM_CTLCOLORBTN = 309
  1336. WM_CTLCOLORDLG = 310
  1337. WM_CTLCOLORSCROLLBAR = 311
  1338. WM_CTLCOLORSTATIC = 312
  1339. WM_MOUSEFIRST = 512
  1340. WM_MOUSEMOVE = 512
  1341. WM_LBUTTONDOWN = 513
  1342. WM_LBUTTONUP = 514
  1343. WM_LBUTTONDBLCLK = 515
  1344. WM_RBUTTONDOWN = 516
  1345. WM_RBUTTONUP = 517
  1346. WM_RBUTTONDBLCLK = 518
  1347. WM_MBUTTONDOWN = 519
  1348. WM_MBUTTONUP = 520
  1349. WM_MBUTTONDBLCLK = 521
  1350. WM_MOUSEWHEEL = 522
  1351. WM_MOUSELAST = 522
  1352. WHEEL_DELTA = 120 # Value for rolling one detent
  1353. WHEEL_PAGESCROLL = -1 # Scroll one page
  1354. WM_PARENTNOTIFY = 528
  1355. MENULOOP_WINDOW = 0
  1356. MENULOOP_POPUP = 1
  1357. WM_ENTERMENULOOP = 529
  1358. WM_EXITMENULOOP = 530
  1359. WM_NEXTMENU = 531
  1360. WM_SIZING = 532
  1361. WM_CAPTURECHANGED = 533
  1362. WM_MOVING = 534
  1363. WM_POWERBROADCAST = 536
  1364. PBT_APMQUERYSUSPEND = 0
  1365. PBT_APMQUERYSTANDBY = 1
  1366. PBT_APMQUERYSUSPENDFAILED = 2
  1367. PBT_APMQUERYSTANDBYFAILED = 3
  1368. PBT_APMSUSPEND = 4
  1369. PBT_APMSTANDBY = 5
  1370. PBT_APMRESUMECRITICAL = 6
  1371. PBT_APMRESUMESUSPEND = 7
  1372. PBT_APMRESUMESTANDBY = 8
  1373. PBTF_APMRESUMEFROMFAILURE = 1
  1374. PBT_APMBATTERYLOW = 9
  1375. PBT_APMPOWERSTATUSCHANGE = 10
  1376. PBT_APMOEMEVENT = 11
  1377. PBT_APMRESUMEAUTOMATIC = 18
  1378. WM_DEVICECHANGE = 537
  1379. WM_MDICREATE = 544
  1380. WM_MDIDESTROY = 545
  1381. WM_MDIACTIVATE = 546
  1382. WM_MDIRESTORE = 547
  1383. WM_MDINEXT = 548
  1384. WM_MDIMAXIMIZE = 549
  1385. WM_MDITILE = 550
  1386. WM_MDICASCADE = 551
  1387. WM_MDIICONARRANGE = 552
  1388. WM_MDIGETACTIVE = 553
  1389. WM_MDISETMENU = 560
  1390. WM_ENTERSIZEMOVE = 561
  1391. WM_EXITSIZEMOVE = 562
  1392. WM_DROPFILES = 563
  1393. WM_MDIREFRESHMENU = 564
  1394. WM_IME_SETCONTEXT = 641
  1395. WM_IME_NOTIFY = 642
  1396. WM_IME_CONTROL = 643
  1397. WM_IME_COMPOSITIONFULL = 644
  1398. WM_IME_SELECT = 645
  1399. WM_IME_CHAR = 646
  1400. WM_IME_REQUEST = 648
  1401. WM_IME_KEYDOWN = 656
  1402. WM_IME_KEYUP = 657
  1403. WM_MOUSEHOVER = 673
  1404. WM_MOUSELEAVE = 675
  1405. WM_CUT = 768
  1406. WM_COPY = 769
  1407. WM_PASTE = 770
  1408. WM_CLEAR = 771
  1409. WM_UNDO = 772
  1410. WM_RENDERFORMAT = 773
  1411. WM_RENDERALLFORMATS = 774
  1412. WM_DESTROYCLIPBOARD = 775
  1413. WM_DRAWCLIPBOARD = 776
  1414. WM_PAINTCLIPBOARD = 777
  1415. WM_VSCROLLCLIPBOARD = 778
  1416. WM_SIZECLIPBOARD = 779
  1417. WM_ASKCBFORMATNAME = 780
  1418. WM_CHANGECBCHAIN = 781
  1419. WM_HSCROLLCLIPBOARD = 782
  1420. WM_QUERYNEWPALETTE = 783
  1421. WM_PALETTEISCHANGING = 784
  1422. WM_PALETTECHANGED = 785
  1423. WM_HOTKEY = 786
  1424. WM_PRINT = 791
  1425. WM_PRINTCLIENT = 792
  1426. WM_HANDHELDFIRST = 856
  1427. WM_HANDHELDLAST = 863
  1428. WM_AFXFIRST = 864
  1429. WM_AFXLAST = 895
  1430. WM_PENWINFIRST = 896
  1431. WM_PENWINLAST = 911
  1432. WM_APP = 32768
  1433. WMSZ_LEFT = 1
  1434. WMSZ_RIGHT = 2
  1435. WMSZ_TOP = 3
  1436. WMSZ_TOPLEFT = 4
  1437. WMSZ_TOPRIGHT = 5
  1438. WMSZ_BOTTOM = 6
  1439. WMSZ_BOTTOMLEFT = 7
  1440. WMSZ_BOTTOMRIGHT = 8
  1441. #ST_BEGINSWP = 0
  1442. #ST_ENDSWP = 1
  1443. HTERROR = (-2)
  1444. HTTRANSPARENT = (-1)
  1445. HTNOWHERE = 0
  1446. HTCLIENT = 1
  1447. HTCAPTION = 2
  1448. HTSYSMENU = 3
  1449. HTGROWBOX = 4
  1450. HTSIZE = HTGROWBOX
  1451. HTMENU = 5
  1452. HTHSCROLL = 6
  1453. HTVSCROLL = 7
  1454. HTMINBUTTON = 8
  1455. HTMAXBUTTON = 9
  1456. HTLEFT = 10
  1457. HTRIGHT = 11
  1458. HTTOP = 12
  1459. HTTOPLEFT = 13
  1460. HTTOPRIGHT = 14
  1461. HTBOTTOM = 15
  1462. HTBOTTOMLEFT = 16
  1463. HTBOTTOMRIGHT = 17
  1464. HTBORDER = 18
  1465. HTREDUCE = HTMINBUTTON
  1466. HTZOOM = HTMAXBUTTON
  1467. HTSIZEFIRST = HTLEFT
  1468. HTSIZELAST = HTBOTTOMRIGHT
  1469. HTOBJECT = 19
  1470. HTCLOSE = 20
  1471. HTHELP = 21
  1472. SMTO_NORMAL = 0
  1473. SMTO_BLOCK = 1
  1474. SMTO_ABORTIFHUNG = 2
  1475. SMTO_NOTIMEOUTIFNOTHUNG = 8
  1476. MA_ACTIVATE = 1
  1477. MA_ACTIVATEANDEAT = 2
  1478. MA_NOACTIVATE = 3
  1479. MA_NOACTIVATEANDEAT = 4
  1480. ICON_SMALL = 0
  1481. ICON_BIG = 1
  1482. SIZE_RESTORED = 0
  1483. SIZE_MINIMIZED = 1
  1484. SIZE_MAXIMIZED = 2
  1485. SIZE_MAXSHOW = 3
  1486. SIZE_MAXHIDE = 4
  1487. SIZENORMAL = SIZE_RESTORED
  1488. SIZEICONIC = SIZE_MINIMIZED
  1489. SIZEFULLSCREEN = SIZE_MAXIMIZED
  1490. SIZEZOOMSHOW = SIZE_MAXSHOW
  1491. SIZEZOOMHIDE = SIZE_MAXHIDE
  1492. WVR_ALIGNTOP = 16
  1493. WVR_ALIGNLEFT = 32
  1494. WVR_ALIGNBOTTOM = 64
  1495. WVR_ALIGNRIGHT = 128
  1496. WVR_HREDRAW = 256
  1497. WVR_VREDRAW = 512
  1498. WVR_REDRAW = (WVR_HREDRAW | WVR_VREDRAW)
  1499. WVR_VALIDRECTS = 1024
  1500. MK_LBUTTON = 1
  1501. MK_RBUTTON = 2
  1502. MK_SHIFT = 4
  1503. MK_CONTROL = 8
  1504. MK_MBUTTON = 16
  1505. TME_HOVER = 1
  1506. TME_LEAVE = 2
  1507. TME_QUERY = 1073741824
  1508. TME_CANCEL = -2147483648
  1509. HOVER_DEFAULT = -1
  1510. WS_OVERLAPPED = 0
  1511. WS_POPUP = -2147483648
  1512. WS_CHILD = 1073741824
  1513. WS_MINIMIZE = 536870912
  1514. WS_VISIBLE = 268435456
  1515. WS_DISABLED = 134217728
  1516. WS_CLIPSIBLINGS = 67108864
  1517. WS_CLIPCHILDREN = 33554432
  1518. WS_MAXIMIZE = 16777216
  1519. WS_CAPTION = 12582912
  1520. WS_BORDER = 8388608
  1521. WS_DLGFRAME = 4194304
  1522. WS_VSCROLL = 2097152
  1523. WS_HSCROLL = 1048576
  1524. WS_SYSMENU = 524288
  1525. WS_THICKFRAME = 262144
  1526. WS_GROUP = 131072
  1527. WS_TABSTOP = 65536
  1528. WS_MINIMIZEBOX = 131072
  1529. WS_MAXIMIZEBOX = 65536
  1530. WS_TILED = WS_OVERLAPPED
  1531. WS_ICONIC = WS_MINIMIZE
  1532. WS_SIZEBOX = WS_THICKFRAME
  1533. WS_OVERLAPPEDWINDOW = (WS_OVERLAPPED | \
  1534. WS_CAPTION | \
  1535. WS_SYSMENU | \
  1536. WS_THICKFRAME | \
  1537. WS_MINIMIZEBOX | \
  1538. WS_MAXIMIZEBOX)
  1539. WS_POPUPWINDOW = (WS_POPUP | \
  1540. WS_BORDER | \
  1541. WS_SYSMENU)
  1542. WS_CHILDWINDOW = (WS_CHILD)
  1543. WS_TILEDWINDOW = WS_OVERLAPPEDWINDOW
  1544. WS_EX_DLGMODALFRAME = 1
  1545. WS_EX_NOPARENTNOTIFY = 4
  1546. WS_EX_TOPMOST = 8
  1547. WS_EX_ACCEPTFILES = 16
  1548. WS_EX_TRANSPARENT = 32
  1549. WS_EX_MDICHILD = 64
  1550. WS_EX_TOOLWINDOW = 128
  1551. WS_EX_WINDOWEDGE = 256
  1552. WS_EX_CLIENTEDGE = 512
  1553. WS_EX_CONTEXTHELP = 1024
  1554. WS_EX_RIGHT = 4096
  1555. WS_EX_LEFT = 0
  1556. WS_EX_RTLREADING = 8192
  1557. WS_EX_LTRREADING = 0
  1558. WS_EX_LEFTSCROLLBAR = 16384
  1559. WS_EX_RIGHTSCROLLBAR = 0
  1560. WS_EX_CONTROLPARENT = 65536
  1561. WS_EX_STATICEDGE = 131072
  1562. WS_EX_APPWINDOW = 262144
  1563. WS_EX_OVERLAPPEDWINDOW = (WS_EX_WINDOWEDGE | WS_EX_CLIENTEDGE)
  1564. WS_EX_PALETTEWINDOW = (WS_EX_WINDOWEDGE | WS_EX_TOOLWINDOW | WS_EX_TOPMOST)
  1565. WS_EX_LAYERED = 0x00080000
  1566. WS_EX_NOINHERITLAYOUT = 0x00100000
  1567. WS_EX_LAYOUTRTL = 0x00400000
  1568. WS_EX_COMPOSITED = 0x02000000
  1569. WS_EX_NOACTIVATE = 0x08000000
  1570. CS_VREDRAW = 1
  1571. CS_HREDRAW = 2
  1572. #CS_KEYCVTWINDOW = 0x0004
  1573. CS_DBLCLKS = 8
  1574. CS_OWNDC = 32
  1575. CS_CLASSDC = 64
  1576. CS_PARENTDC = 128
  1577. #CS_NOKEYCVT = 0x0100
  1578. CS_NOCLOSE = 512
  1579. CS_SAVEBITS = 2048
  1580. CS_BYTEALIGNCLIENT = 4096
  1581. CS_BYTEALIGNWINDOW = 8192
  1582. CS_GLOBALCLASS = 16384
  1583. CS_IME = 65536
  1584. PRF_CHECKVISIBLE = 1
  1585. PRF_NONCLIENT = 2
  1586. PRF_CLIENT = 4
  1587. PRF_ERASEBKGND = 8
  1588. PRF_CHILDREN = 16
  1589. PRF_OWNED = 32
  1590. BDR_RAISEDOUTER = 1
  1591. BDR_SUNKENOUTER = 2
  1592. BDR_RAISEDINNER = 4
  1593. BDR_SUNKENINNER = 8
  1594. BDR_OUTER = 3
  1595. BDR_INNER = 12
  1596. #BDR_RAISED = 0x0005
  1597. #BDR_SUNKEN = 0x000a
  1598. EDGE_RAISED = (BDR_RAISEDOUTER | BDR_RAISEDINNER)
  1599. EDGE_SUNKEN = (BDR_SUNKENOUTER | BDR_SUNKENINNER)
  1600. EDGE_ETCHED = (BDR_SUNKENOUTER | BDR_RAISEDINNER)
  1601. EDGE_BUMP = (BDR_RAISEDOUTER | BDR_SUNKENINNER)
  1602. # winuser.h line 2879
  1603. ISMEX_NOSEND = 0
  1604. ISMEX_SEND = 1
  1605. ISMEX_NOTIFY = 2
  1606. ISMEX_CALLBACK = 4
  1607. ISMEX_REPLIED = 8
  1608. CW_USEDEFAULT = -2147483648
  1609. FLASHW_STOP = 0
  1610. FLASHW_CAPTION = 1
  1611. FLASHW_TRAY = 2
  1612. FLASHW_ALL = (FLASHW_CAPTION | FLASHW_TRAY)
  1613. FLASHW_TIMER = 4
  1614. FLASHW_TIMERNOFG = 12
  1615. # winuser.h line 7963
  1616. DS_ABSALIGN = 1
  1617. DS_SYSMODAL = 2
  1618. DS_LOCALEDIT = 32
  1619. DS_SETFONT = 64
  1620. DS_MODALFRAME = 128
  1621. DS_NOIDLEMSG = 256
  1622. DS_SETFOREGROUND = 512
  1623. DS_3DLOOK = 4
  1624. DS_FIXEDSYS = 8
  1625. DS_NOFAILCREATE = 16
  1626. DS_CONTROL = 1024
  1627. DS_CENTER = 2048
  1628. DS_CENTERMOUSE = 4096
  1629. DS_CONTEXTHELP = 8192
  1630. DM_GETDEFID = (WM_USER+0)
  1631. DM_SETDEFID = (WM_USER+1)
  1632. DM_REPOSITION = (WM_USER+2)
  1633. #PSM_PAGEINFO = (WM_USER+100)
  1634. #PSM_SHEETINFO = (WM_USER+101)
  1635. #PSI_SETACTIVE = 0x0001
  1636. #PSI_KILLACTIVE = 0x0002
  1637. #PSI_APPLY = 0x0003
  1638. #PSI_RESET = 0x0004
  1639. #PSI_HASHELP = 0x0005
  1640. #PSI_HELP = 0x0006
  1641. #PSI_CHANGED = 0x0001
  1642. #PSI_GUISTART = 0x0002
  1643. #PSI_REBOOT = 0x0003
  1644. #PSI_GETSIBLINGS = 0x0004
  1645. DC_HASDEFID = 21323
  1646. DLGC_WANTARROWS = 1
  1647. DLGC_WANTTAB = 2
  1648. DLGC_WANTALLKEYS = 4
  1649. DLGC_WANTMESSAGE = 4
  1650. DLGC_HASSETSEL = 8
  1651. DLGC_DEFPUSHBUTTON = 16
  1652. DLGC_UNDEFPUSHBUTTON = 32
  1653. DLGC_RADIOBUTTON = 64
  1654. DLGC_WANTCHARS = 128
  1655. DLGC_STATIC = 256
  1656. DLGC_BUTTON = 8192
  1657. LB_CTLCODE = 0
  1658. LB_OKAY = 0
  1659. LB_ERR = (-1)
  1660. LB_ERRSPACE = (-2)
  1661. LBN_ERRSPACE = (-2)
  1662. LBN_SELCHANGE = 1
  1663. LBN_DBLCLK = 2
  1664. LBN_SELCANCEL = 3
  1665. LBN_SETFOCUS = 4
  1666. LBN_KILLFOCUS = 5
  1667. LB_ADDSTRING = 384
  1668. LB_INSERTSTRING = 385
  1669. LB_DELETESTRING = 386
  1670. LB_SELITEMRANGEEX = 387
  1671. LB_RESETCONTENT = 388
  1672. LB_SETSEL = 389
  1673. LB_SETCURSEL = 390
  1674. LB_GETSEL = 391
  1675. LB_GETCURSEL = 392
  1676. LB_GETTEXT = 393
  1677. LB_GETTEXTLEN = 394
  1678. LB_GETCOUNT = 395
  1679. LB_SELECTSTRING = 396
  1680. LB_DIR = 397
  1681. LB_GETTOPINDEX = 398
  1682. LB_FINDSTRING = 399
  1683. LB_GETSELCOUNT = 400
  1684. LB_GETSELITEMS = 401
  1685. LB_SETTABSTOPS = 402
  1686. LB_GETHORIZONTALEXTENT = 403
  1687. LB_SETHORIZONTALEXTENT = 404
  1688. LB_SETCOLUMNWIDTH = 405
  1689. LB_ADDFILE = 406
  1690. LB_SETTOPINDEX = 407
  1691. LB_GETITEMRECT = 408
  1692. LB_GETITEMDATA = 409
  1693. LB_SETITEMDATA = 410
  1694. LB_SELITEMRANGE = 411
  1695. LB_SETANCHORINDEX = 412
  1696. LB_GETANCHORINDEX = 413
  1697. LB_SETCARETINDEX = 414
  1698. LB_GETCARETINDEX = 415
  1699. LB_SETITEMHEIGHT = 416
  1700. LB_GETITEMHEIGHT = 417
  1701. LB_FINDSTRINGEXACT = 418
  1702. LB_SETLOCALE = 421
  1703. LB_GETLOCALE = 422
  1704. LB_SETCOUNT = 423
  1705. LB_INITSTORAGE = 424
  1706. LB_ITEMFROMPOINT = 425
  1707. LB_MSGMAX = 432
  1708. LBS_NOTIFY = 1
  1709. LBS_SORT = 2
  1710. LBS_NOREDRAW = 4
  1711. LBS_MULTIPLESEL = 8
  1712. LBS_OWNERDRAWFIXED = 16
  1713. LBS_OWNERDRAWVARIABLE = 32
  1714. LBS_HASSTRINGS = 64
  1715. LBS_USETABSTOPS = 128
  1716. LBS_NOINTEGRALHEIGHT = 256
  1717. LBS_MULTICOLUMN = 512
  1718. LBS_WANTKEYBOARDINPUT = 1024
  1719. LBS_EXTENDEDSEL = 2048
  1720. LBS_DISABLENOSCROLL = 4096
  1721. LBS_NODATA = 8192
  1722. LBS_NOSEL = 16384
  1723. LBS_STANDARD = (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)
  1724. CB_OKAY = 0
  1725. CB_ERR = (-1)
  1726. CB_ERRSPACE = (-2)
  1727. CBN_ERRSPACE = (-1)
  1728. CBN_SELCHANGE = 1
  1729. CBN_DBLCLK = 2
  1730. CBN_SETFOCUS = 3
  1731. CBN_KILLFOCUS = 4
  1732. CBN_EDITCHANGE = 5
  1733. CBN_EDITUPDATE = 6
  1734. CBN_DROPDOWN = 7
  1735. CBN_CLOSEUP = 8
  1736. CBN_SELENDOK = 9
  1737. CBN_SELENDCANCEL = 10
  1738. CBS_SIMPLE = 1
  1739. CBS_DROPDOWN = 2
  1740. CBS_DROPDOWNLIST = 3
  1741. CBS_OWNERDRAWFIXED = 16
  1742. CBS_OWNERDRAWVARIABLE = 32
  1743. CBS_AUTOHSCROLL = 64
  1744. CBS_OEMCONVERT = 128
  1745. CBS_SORT = 256
  1746. CBS_HASSTRINGS = 512
  1747. CBS_NOINTEGRALHEIGHT = 1024
  1748. CBS_DISABLENOSCROLL = 2048
  1749. CBS_UPPERCASE = 8192
  1750. CBS_LOWERCASE = 16384
  1751. CB_GETEDITSEL = 320
  1752. CB_LIMITTEXT = 321
  1753. CB_SETEDITSEL = 322
  1754. CB_ADDSTRING = 323
  1755. CB_DELETESTRING = 324
  1756. CB_DIR = 325
  1757. CB_GETCOUNT = 326
  1758. CB_GETCURSEL = 327
  1759. CB_GETLBTEXT = 328
  1760. CB_GETLBTEXTLEN = 329
  1761. CB_INSERTSTRING = 330
  1762. CB_RESETCONTENT = 331
  1763. CB_FINDSTRING = 332
  1764. CB_SELECTSTRING = 333
  1765. CB_SETCURSEL = 334
  1766. CB_SHOWDROPDOWN = 335
  1767. CB_GETITEMDATA = 336
  1768. CB_SETITEMDATA = 337
  1769. CB_GETDROPPEDCONTROLRECT = 338
  1770. CB_SETITEMHEIGHT = 339
  1771. CB_GETITEMHEIGHT = 340
  1772. CB_SETEXTENDEDUI = 341
  1773. CB_GETEXTENDEDUI = 342
  1774. CB_GETDROPPEDSTATE = 343
  1775. CB_FINDSTRINGEXACT = 344
  1776. CB_SETLOCALE = 345
  1777. CB_GETLOCALE = 346
  1778. CB_GETTOPINDEX = 347
  1779. CB_SETTOPINDEX = 348
  1780. CB_GETHORIZONTALEXTENT = 349
  1781. CB_SETHORIZONTALEXTENT = 350
  1782. CB_GETDROPPEDWIDTH = 351
  1783. CB_SETDROPPEDWIDTH = 352
  1784. CB_INITSTORAGE = 353
  1785. CB_MSGMAX = 354
  1786. SBS_HORZ = 0
  1787. SBS_VERT = 1
  1788. SBS_TOPALIGN = 2
  1789. SBS_LEFTALIGN = 2
  1790. SBS_BOTTOMALIGN = 4
  1791. SBS_RIGHTALIGN = 4
  1792. SBS_SIZEBOXTOPLEFTALIGN = 2
  1793. SBS_SIZEBOXBOTTOMRIGHTALIGN = 4
  1794. SBS_SIZEBOX = 8
  1795. SBS_SIZEGRIP = 16
  1796. SBM_SETPOS = 224
  1797. SBM_GETPOS = 225
  1798. SBM_SETRANGE = 226
  1799. SBM_SETRANGEREDRAW = 230
  1800. SBM_GETRANGE = 227
  1801. SBM_ENABLE_ARROWS = 228
  1802. SBM_SETSCROLLINFO = 233
  1803. SBM_GETSCROLLINFO = 234
  1804. SIF_RANGE = 1
  1805. SIF_PAGE = 2
  1806. SIF_POS = 4
  1807. SIF_DISABLENOSCROLL = 8
  1808. SIF_TRACKPOS = 16
  1809. SIF_ALL = (SIF_RANGE | SIF_PAGE | SIF_POS | SIF_TRACKPOS)
  1810. MDIS_ALLCHILDSTYLES = 1
  1811. MDITILE_VERTICAL = 0
  1812. MDITILE_HORIZONTAL = 1
  1813. MDITILE_SKIPDISABLED = 2
  1814. IMC_GETCANDIDATEPOS = 7
  1815. IMC_SETCANDIDATEPOS = 8
  1816. IMC_GETCOMPOSITIONFONT = 9
  1817. IMC_SETCOMPOSITIONFONT = 10
  1818. IMC_GETCOMPOSITIONWINDOW = 11
  1819. IMC_SETCOMPOSITIONWINDOW = 12
  1820. IMC_GETSTATUSWINDOWPOS = 15
  1821. IMC_SETSTATUSWINDOWPOS = 16
  1822. IMC_CLOSESTATUSWINDOW = 33
  1823. IMC_OPENSTATUSWINDOW = 34
  1824. # Generated by h2py from \msvc20\include\winnt.h
  1825. # hacked and split by mhammond.
  1826. DELETE = (65536)
  1827. READ_CONTROL = (131072)
  1828. WRITE_DAC = (262144)
  1829. WRITE_OWNER = (524288)
  1830. SYNCHRONIZE = (1048576)
  1831. STANDARD_RIGHTS_REQUIRED = (983040)
  1832. STANDARD_RIGHTS_READ = (READ_CONTROL)
  1833. STANDARD_RIGHTS_WRITE = (READ_CONTROL)
  1834. STANDARD_RIGHTS_EXECUTE = (READ_CONTROL)
  1835. STANDARD_RIGHTS_ALL = (2031616)
  1836. SPECIFIC_RIGHTS_ALL = (65535)
  1837. ACCESS_SYSTEM_SECURITY = (16777216)
  1838. MAXIMUM_ALLOWED = (33554432)
  1839. GENERIC_READ = (-2147483648)
  1840. GENERIC_WRITE = (1073741824)
  1841. GENERIC_EXECUTE = (536870912)
  1842. GENERIC_ALL = (268435456)
  1843. SERVICE_KERNEL_DRIVER = 1
  1844. SERVICE_FILE_SYSTEM_DRIVER = 2
  1845. SERVICE_ADAPTER = 4
  1846. SERVICE_RECOGNIZER_DRIVER = 8
  1847. SERVICE_DRIVER = (SERVICE_KERNEL_DRIVER | \
  1848. SERVICE_FILE_SYSTEM_DRIVER | \
  1849. SERVICE_RECOGNIZER_DRIVER)
  1850. SERVICE_WIN32_OWN_PROCESS = 16
  1851. SERVICE_WIN32_SHARE_PROCESS = 32
  1852. SERVICE_WIN32 = (SERVICE_WIN32_OWN_PROCESS | \
  1853. SERVICE_WIN32_SHARE_PROCESS)
  1854. SERVICE_INTERACTIVE_PROCESS = 256
  1855. SERVICE_TYPE_ALL = (SERVICE_WIN32 | \
  1856. SERVICE_ADAPTER | \
  1857. SERVICE_DRIVER | \
  1858. SERVICE_INTERACTIVE_PROCESS)
  1859. SERVICE_BOOT_START = 0
  1860. SERVICE_SYSTEM_START = 1
  1861. SERVICE_AUTO_START = 2
  1862. SERVICE_DEMAND_START = 3
  1863. SERVICE_DISABLED = 4
  1864. SERVICE_ERROR_IGNORE = 0
  1865. SERVICE_ERROR_NORMAL = 1
  1866. SERVICE_ERROR_SEVERE = 2
  1867. SERVICE_ERROR_CRITICAL = 3
  1868. TAPE_ERASE_SHORT = 0
  1869. TAPE_ERASE_LONG = 1
  1870. TAPE_LOAD = 0
  1871. TAPE_UNLOAD = 1
  1872. TAPE_TENSION = 2
  1873. TAPE_LOCK = 3
  1874. TAPE_UNLOCK = 4
  1875. TAPE_FORMAT = 5
  1876. TAPE_SETMARKS = 0
  1877. TAPE_FILEMARKS = 1
  1878. TAPE_SHORT_FILEMARKS = 2
  1879. TAPE_LONG_FILEMARKS = 3
  1880. TAPE_ABSOLUTE_POSITION = 0
  1881. TAPE_LOGICAL_POSITION = 1
  1882. TAPE_PSEUDO_LOGICAL_POSITION = 2
  1883. TAPE_REWIND = 0
  1884. TAPE_ABSOLUTE_BLOCK = 1
  1885. TAPE_LOGICAL_BLOCK = 2
  1886. TAPE_PSEUDO_LOGICAL_BLOCK = 3
  1887. TAPE_SPACE_END_OF_DATA = 4
  1888. TAPE_SPACE_RELATIVE_BLOCKS = 5
  1889. TAPE_SPACE_FILEMARKS = 6
  1890. TAPE_SPACE_SEQUENTIAL_FMKS = 7
  1891. TAPE_SPACE_SETMARKS = 8
  1892. TAPE_SPACE_SEQUENTIAL_SMKS = 9
  1893. TAPE_DRIVE_FIXED = 1
  1894. TAPE_DRIVE_SELECT = 2
  1895. TAPE_DRIVE_INITIATOR = 4
  1896. TAPE_DRIVE_ERASE_SHORT = 16
  1897. TAPE_DRIVE_ERASE_LONG = 32
  1898. TAPE_DRIVE_ERASE_BOP_ONLY = 64
  1899. TAPE_DRIVE_ERASE_IMMEDIATE = 128
  1900. TAPE_DRIVE_TAPE_CAPACITY = 256
  1901. TAPE_DRIVE_TAPE_REMAINING = 512
  1902. TAPE_DRIVE_FIXED_BLOCK = 1024
  1903. TAPE_DRIVE_VARIABLE_BLOCK = 2048
  1904. TAPE_DRIVE_WRITE_PROTECT = 4096
  1905. TAPE_DRIVE_EOT_WZ_SIZE = 8192
  1906. TAPE_DRIVE_ECC = 65536
  1907. TAPE_DRIVE_COMPRESSION = 131072
  1908. TAPE_DRIVE_PADDING = 262144
  1909. TAPE_DRIVE_REPORT_SMKS = 524288
  1910. TAPE_DRIVE_GET_ABSOLUTE_BLK = 1048576
  1911. TAPE_DRIVE_GET_LOGICAL_BLK = 2097152
  1912. TAPE_DRIVE_SET_EOT_WZ_SIZE = 4194304
  1913. TAPE_DRIVE_LOAD_UNLOAD = -2147483647
  1914. TAPE_DRIVE_TENSION = -2147483646
  1915. TAPE_DRIVE_LOCK_UNLOCK = -2147483644
  1916. TAPE_DRIVE_REWIND_IMMEDIATE = -2147483640
  1917. TAPE_DRIVE_SET_BLOCK_SIZE = -2147483632
  1918. TAPE_DRIVE_LOAD_UNLD_IMMED = -2147483616
  1919. TAPE_DRIVE_TENSION_IMMED = -2147483584
  1920. TAPE_DRIVE_LOCK_UNLK_IMMED = -2147483520
  1921. TAPE_DRIVE_SET_ECC = -2147483392
  1922. TAPE_DRIVE_SET_COMPRESSION = -2147483136
  1923. TAPE_DRIVE_SET_PADDING = -2147482624
  1924. TAPE_DRIVE_SET_REPORT_SMKS = -2147481600
  1925. TAPE_DRIVE_ABSOLUTE_BLK = -2147479552
  1926. TAPE_DRIVE_ABS_BLK_IMMED = -2147475456
  1927. TAPE_DRIVE_LOGICAL_BLK = -2147467264
  1928. TAPE_DRIVE_LOG_BLK_IMMED = -2147450880
  1929. TAPE_DRIVE_END_OF_DATA = -2147418112
  1930. TAPE_DRIVE_RELATIVE_BLKS = -2147352576
  1931. TAPE_DRIVE_FILEMARKS = -2147221504
  1932. TAPE_DRIVE_SEQUENTIAL_FMKS = -2146959360
  1933. TAPE_DRIVE_SETMARKS = -2146435072
  1934. TAPE_DRIVE_SEQUENTIAL_SMKS = -2145386496
  1935. TAPE_DRIVE_REVERSE_POSITION = -2143289344
  1936. TAPE_DRIVE_SPACE_IMMEDIATE = -2139095040
  1937. TAPE_DRIVE_WRITE_SETMARKS = -2130706432
  1938. TAPE_DRIVE_WRITE_FILEMARKS = -2113929216
  1939. TAPE_DRIVE_WRITE_SHORT_FMKS = -2080374784
  1940. TAPE_DRIVE_WRITE_LONG_FMKS = -2013265920
  1941. TAPE_DRIVE_WRITE_MARK_IMMED = -1879048192
  1942. TAPE_DRIVE_FORMAT = -1610612736
  1943. TAPE_DRIVE_FORMAT_IMMEDIATE = -1073741824
  1944. TAPE_FIXED_PARTITIONS = 0
  1945. TAPE_SELECT_PARTITIONS = 1
  1946. TAPE_INITIATOR_PARTITIONS = 2
  1947. # Generated by h2py from \msvc20\include\winnt.h
  1948. # hacked and split by mhammond.
  1949. APPLICATION_ERROR_MASK = 536870912
  1950. ERROR_SEVERITY_SUCCESS = 0
  1951. ERROR_SEVERITY_INFORMATIONAL = 1073741824
  1952. ERROR_SEVERITY_WARNING = -2147483648
  1953. ERROR_SEVERITY_ERROR = -1073741824
  1954. MINCHAR = 128
  1955. MAXCHAR = 127
  1956. MINSHORT = 32768
  1957. MAXSHORT = 32767
  1958. MINLONG = -2147483648
  1959. MAXLONG = 2147483647
  1960. MAXBYTE = 255
  1961. MAXWORD = 65535
  1962. MAXDWORD = -1
  1963. LANG_NEUTRAL = 0
  1964. LANG_BULGARIAN = 2
  1965. LANG_CHINESE = 4
  1966. LANG_CROATIAN = 26
  1967. LANG_CZECH = 5
  1968. LANG_DANISH = 6
  1969. LANG_DUTCH = 19
  1970. LANG_ENGLISH = 9
  1971. LANG_FINNISH = 11
  1972. LANG_FRENCH = 12
  1973. LANG_GERMAN = 7
  1974. LANG_GREEK = 8
  1975. LANG_HUNGARIAN = 14
  1976. LANG_ICELANDIC = 15
  1977. LANG_ITALIAN = 16
  1978. LANG_JAPANESE = 17
  1979. LANG_KOREAN = 18
  1980. LANG_NORWEGIAN = 20
  1981. LANG_POLISH = 21
  1982. LANG_PORTUGUESE = 22
  1983. LANG_ROMANIAN = 24
  1984. LANG_RUSSIAN = 25
  1985. LANG_SLOVAK = 27
  1986. LANG_SLOVENIAN = 36
  1987. LANG_SPANISH = 10
  1988. LANG_SWEDISH = 29
  1989. LANG_TURKISH = 31
  1990. SUBLANG_NEUTRAL = 0
  1991. SUBLANG_DEFAULT = 1
  1992. SUBLANG_SYS_DEFAULT = 2
  1993. SUBLANG_CHINESE_TRADITIONAL = 1
  1994. SUBLANG_CHINESE_SIMPLIFIED = 2
  1995. SUBLANG_CHINESE_HONGKONG = 3
  1996. SUBLANG_CHINESE_SINGAPORE = 4
  1997. SUBLANG_DUTCH = 1
  1998. SUBLANG_DUTCH_BELGIAN = 2
  1999. SUBLANG_ENGLISH_US = 1
  2000. SUBLANG_ENGLISH_UK = 2
  2001. SUBLANG_ENGLISH_AUS = 3
  2002. SUBLANG_ENGLISH_CAN = 4
  2003. SUBLANG_ENGLISH_NZ = 5
  2004. SUBLANG_ENGLISH_EIRE = 6
  2005. SUBLANG_FRENCH = 1
  2006. SUBLANG_FRENCH_BELGIAN = 2
  2007. SUBLANG_FRENCH_CANADIAN = 3
  2008. SUBLANG_FRENCH_SWISS = 4
  2009. SUBLANG_GERMAN = 1
  2010. SUBLANG_GERMAN_SWISS = 2
  2011. SUBLANG_GERMAN_AUSTRIAN = 3
  2012. SUBLANG_ITALIAN = 1
  2013. SUBLANG_ITALIAN_SWISS = 2
  2014. SUBLANG_NORWEGIAN_BOKMAL = 1
  2015. SUBLANG_NORWEGIAN_NYNORSK = 2
  2016. SUBLANG_PORTUGUESE = 2
  2017. SUBLANG_PORTUGUESE_BRAZILIAN = 1
  2018. SUBLANG_SPANISH = 1
  2019. SUBLANG_SPANISH_MEXICAN = 2
  2020. SUBLANG_SPANISH_MODERN = 3
  2021. SORT_DEFAULT = 0
  2022. SORT_JAPANESE_XJIS = 0
  2023. SORT_JAPANESE_UNICODE = 1
  2024. SORT_CHINESE_BIG5 = 0
  2025. SORT_CHINESE_UNICODE = 1
  2026. SORT_KOREAN_KSC = 0
  2027. SORT_KOREAN_UNICODE = 1
  2028. def PRIMARYLANGID(lgid): return ((lgid) & 1023)
  2029. def SUBLANGID(lgid): return ((lgid) >> 10)
  2030. NLS_VALID_LOCALE_MASK = 1048575
  2031. CONTEXT_PORTABLE_32BIT = 1048576
  2032. CONTEXT_ALPHA = 131072
  2033. CONTEXT_CONTROL = (CONTEXT_ALPHA | 1)
  2034. CONTEXT_FLOATING_POINT = (CONTEXT_ALPHA | 2)
  2035. CONTEXT_INTEGER = (CONTEXT_ALPHA | 4)
  2036. CONTEXT_FULL = (CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER)
  2037. SIZE_OF_80387_REGISTERS = 80
  2038. CONTEXT_FULL = (CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER)
  2039. CONTEXT_CONTROL = 1
  2040. CONTEXT_FLOATING_POINT = 2
  2041. CONTEXT_INTEGER = 4
  2042. CONTEXT_FULL = (CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER)
  2043. PROCESS_TERMINATE = (1)
  2044. PROCESS_CREATE_THREAD = (2)
  2045. PROCESS_VM_OPERATION = (8)
  2046. PROCESS_VM_READ = (16)
  2047. PROCESS_VM_WRITE = (32)
  2048. PROCESS_DUP_HANDLE = (64)
  2049. PROCESS_CREATE_PROCESS = (128)
  2050. PROCESS_SET_QUOTA = (256)
  2051. PROCESS_SET_INFORMATION = (512)
  2052. PROCESS_QUERY_INFORMATION = (1024)
  2053. PROCESS_SUSPEND_RESUME = (2048)
  2054. PROCESS_QUERY_LIMITED_INFORMATION = (4096)
  2055. PROCESS_SET_LIMITED_INFORMATION = (8192)
  2056. PROCESS_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 4095)
  2057. THREAD_TERMINATE = (1)
  2058. THREAD_SUSPEND_RESUME = (2)
  2059. THREAD_GET_CONTEXT = (8)
  2060. THREAD_SET_CONTEXT = (16)
  2061. THREAD_SET_INFORMATION = (32)
  2062. THREAD_QUERY_INFORMATION = (64)
  2063. THREAD_SET_THREAD_TOKEN = (128)
  2064. THREAD_IMPERSONATE = (256)
  2065. THREAD_DIRECT_IMPERSONATION = (512)
  2066. THREAD_SET_LIMITED_INFORMATION = (1024)
  2067. THREAD_QUERY_LIMITED_INFORMATION = (2048)
  2068. THREAD_RESUME = (4096)
  2069. TLS_MINIMUM_AVAILABLE = 64
  2070. EVENT_MODIFY_STATE = 2
  2071. MUTANT_QUERY_STATE = 1
  2072. SEMAPHORE_MODIFY_STATE = 2
  2073. TIME_ZONE_ID_UNKNOWN = 0
  2074. TIME_ZONE_ID_STANDARD = 1
  2075. TIME_ZONE_ID_DAYLIGHT = 2
  2076. PROCESSOR_INTEL_386 = 386
  2077. PROCESSOR_INTEL_486 = 486
  2078. PROCESSOR_INTEL_PENTIUM = 586
  2079. PROCESSOR_INTEL_860 = 860
  2080. PROCESSOR_MIPS_R2000 = 2000
  2081. PROCESSOR_MIPS_R3000 = 3000
  2082. PROCESSOR_MIPS_R4000 = 4000
  2083. PROCESSOR_ALPHA_21064 = 21064
  2084. PROCESSOR_PPC_601 = 601
  2085. PROCESSOR_PPC_603 = 603
  2086. PROCESSOR_PPC_604 = 604
  2087. PROCESSOR_PPC_620 = 620
  2088. SECTION_QUERY = 1
  2089. SECTION_MAP_WRITE = 2
  2090. SECTION_MAP_READ = 4
  2091. SECTION_MAP_EXECUTE = 8
  2092. SECTION_EXTEND_SIZE = 16
  2093. PAGE_NOACCESS = 1
  2094. PAGE_READONLY = 2
  2095. PAGE_READWRITE = 4
  2096. PAGE_WRITECOPY = 8
  2097. PAGE_EXECUTE = 16
  2098. PAGE_EXECUTE_READ = 32
  2099. PAGE_EXECUTE_READWRITE = 64
  2100. PAGE_EXECUTE_WRITECOPY = 128
  2101. PAGE_GUARD = 256
  2102. PAGE_NOCACHE = 512
  2103. MEM_COMMIT = 4096
  2104. MEM_RESERVE = 8192
  2105. MEM_DECOMMIT = 16384
  2106. MEM_RELEASE = 32768
  2107. MEM_FREE = 65536
  2108. MEM_PRIVATE = 131072
  2109. MEM_MAPPED = 262144
  2110. MEM_TOP_DOWN = 1048576
  2111. # Generated by h2py from \msvc20\include\winnt.h
  2112. # hacked and split by mhammond.
  2113. SEC_FILE = 8388608
  2114. SEC_IMAGE = 16777216
  2115. SEC_RESERVE = 67108864
  2116. SEC_COMMIT = 134217728
  2117. SEC_NOCACHE = 268435456
  2118. MEM_IMAGE = SEC_IMAGE
  2119. FILE_SHARE_READ = 1
  2120. FILE_SHARE_WRITE = 2
  2121. FILE_SHARE_DELETE = 4
  2122. FILE_ATTRIBUTE_READONLY = 1
  2123. FILE_ATTRIBUTE_HIDDEN = 2
  2124. FILE_ATTRIBUTE_SYSTEM = 4
  2125. FILE_ATTRIBUTE_DIRECTORY = 16
  2126. FILE_ATTRIBUTE_ARCHIVE = 32
  2127. FILE_ATTRIBUTE_DEVICE = 64
  2128. FILE_ATTRIBUTE_NORMAL = 128
  2129. FILE_ATTRIBUTE_TEMPORARY = 256
  2130. FILE_ATTRIBUTE_SPARSE_FILE = 512
  2131. FILE_ATTRIBUTE_REPARSE_POINT = 1024
  2132. FILE_ATTRIBUTE_COMPRESSED = 2048
  2133. FILE_ATTRIBUTE_OFFLINE = 4096
  2134. FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = 8192
  2135. FILE_ATTRIBUTE_ENCRYPTED = 16384
  2136. FILE_ATTRIBUTE_VIRTUAL = 65536
  2137. # These FILE_ATTRIBUTE_* flags are apparently old definitions from Windows 95
  2138. # and conflict with current values above - but they live on for b/w compat...
  2139. FILE_ATTRIBUTE_ATOMIC_WRITE = 512
  2140. FILE_ATTRIBUTE_XACTION_WRITE = 1024
  2141. FILE_NOTIFY_CHANGE_FILE_NAME = 1
  2142. FILE_NOTIFY_CHANGE_DIR_NAME = 2
  2143. FILE_NOTIFY_CHANGE_ATTRIBUTES = 4
  2144. FILE_NOTIFY_CHANGE_SIZE = 8
  2145. FILE_NOTIFY_CHANGE_LAST_WRITE = 16
  2146. FILE_NOTIFY_CHANGE_SECURITY = 256
  2147. FILE_CASE_SENSITIVE_SEARCH = 1
  2148. FILE_CASE_PRESERVED_NAMES = 2
  2149. FILE_UNICODE_ON_DISK = 4
  2150. FILE_PERSISTENT_ACLS = 8
  2151. FILE_FILE_COMPRESSION = 16
  2152. FILE_NAMED_STREAMS = 262144
  2153. FILE_PERSISTENT_ACLS = 0x00000008
  2154. FILE_READ_ONLY_VOLUME = 0x00080000
  2155. FILE_SEQUENTIAL_WRITE_ONCE = 0x00100000
  2156. FILE_SUPPORTS_ENCRYPTION = 0x00020000
  2157. FILE_SUPPORTS_EXTENDED_ATTRIBUTES = 0x00800000
  2158. FILE_SUPPORTS_HARD_LINKS = 0x00400000
  2159. FILE_SUPPORTS_OBJECT_IDS = 0x00010000
  2160. FILE_SUPPORTS_OPEN_BY_FILE_ID = 0x01000000
  2161. FILE_SUPPORTS_REPARSE_POINTS = 0x00000080
  2162. FILE_SUPPORTS_SPARSE_FILES = 0x00000040
  2163. FILE_SUPPORTS_TRANSACTIONS = 0x00200000
  2164. FILE_SUPPORTS_USN_JOURNAL = 0x02000000
  2165. FILE_UNICODE_ON_DISK = 0x00000004
  2166. FILE_VOLUME_IS_COMPRESSED = 0x00008000
  2167. FILE_VOLUME_QUOTAS = 0x00000020
  2168. FILE_VOLUME_IS_COMPRESSED = 32768
  2169. IO_COMPLETION_MODIFY_STATE = 2
  2170. DUPLICATE_CLOSE_SOURCE = 1
  2171. DUPLICATE_SAME_ACCESS = 2
  2172. SID_MAX_SUB_AUTHORITIES = (15)
  2173. SECURITY_NULL_RID = (0)
  2174. SECURITY_WORLD_RID = (0)
  2175. SECURITY_LOCAL_RID = (0X00000000)
  2176. SECURITY_CREATOR_OWNER_RID = (0)
  2177. SECURITY_CREATOR_GROUP_RID = (1)
  2178. SECURITY_DIALUP_RID = (1)
  2179. SECURITY_NETWORK_RID = (2)
  2180. SECURITY_BATCH_RID = (3)
  2181. SECURITY_INTERACTIVE_RID = (4)
  2182. SECURITY_SERVICE_RID = (6)
  2183. SECURITY_ANONYMOUS_LOGON_RID = (7)
  2184. SECURITY_LOGON_IDS_RID = (5)
  2185. SECURITY_LOGON_IDS_RID_COUNT = (3)
  2186. SECURITY_LOCAL_SYSTEM_RID = (18)
  2187. SECURITY_NT_NON_UNIQUE = (21)
  2188. SECURITY_BUILTIN_DOMAIN_RID = (32)
  2189. DOMAIN_USER_RID_ADMIN = (500)
  2190. DOMAIN_USER_RID_GUEST = (501)
  2191. DOMAIN_GROUP_RID_ADMINS = (512)
  2192. DOMAIN_GROUP_RID_USERS = (513)
  2193. DOMAIN_GROUP_RID_GUESTS = (514)
  2194. DOMAIN_ALIAS_RID_ADMINS = (544)
  2195. DOMAIN_ALIAS_RID_USERS = (545)
  2196. DOMAIN_ALIAS_RID_GUESTS = (546)
  2197. DOMAIN_ALIAS_RID_POWER_USERS = (547)
  2198. DOMAIN_ALIAS_RID_ACCOUNT_OPS = (548)
  2199. DOMAIN_ALIAS_RID_SYSTEM_OPS = (549)
  2200. DOMAIN_ALIAS_RID_PRINT_OPS = (550)
  2201. DOMAIN_ALIAS_RID_BACKUP_OPS = (551)
  2202. DOMAIN_ALIAS_RID_REPLICATOR = (552)
  2203. SE_GROUP_MANDATORY = (1)
  2204. SE_GROUP_ENABLED_BY_DEFAULT = (2)
  2205. SE_GROUP_ENABLED = (4)
  2206. SE_GROUP_OWNER = (8)
  2207. SE_GROUP_LOGON_ID = (-1073741824)
  2208. ACL_REVISION = (2)
  2209. ACL_REVISION1 = (1)
  2210. ACL_REVISION2 = (2)
  2211. ACCESS_ALLOWED_ACE_TYPE = (0)
  2212. ACCESS_DENIED_ACE_TYPE = (1)
  2213. SYSTEM_AUDIT_ACE_TYPE = (2)
  2214. SYSTEM_ALARM_ACE_TYPE = (3)
  2215. OBJECT_INHERIT_ACE = (1)
  2216. CONTAINER_INHERIT_ACE = (2)
  2217. NO_PROPAGATE_INHERIT_ACE = (4)
  2218. INHERIT_ONLY_ACE = (8)
  2219. VALID_INHERIT_FLAGS = (15)
  2220. SUCCESSFUL_ACCESS_ACE_FLAG = (64)
  2221. FAILED_ACCESS_ACE_FLAG = (128)
  2222. SECURITY_DESCRIPTOR_REVISION = (1)
  2223. SECURITY_DESCRIPTOR_REVISION1 = (1)
  2224. SECURITY_DESCRIPTOR_MIN_LENGTH = (20)
  2225. SE_OWNER_DEFAULTED = (1)
  2226. SE_GROUP_DEFAULTED = (2)
  2227. SE_DACL_PRESENT = (4)
  2228. SE_DACL_DEFAULTED = (8)
  2229. SE_SACL_PRESENT = (16)
  2230. SE_SACL_DEFAULTED = (32)
  2231. SE_SELF_RELATIVE = (32768)
  2232. SE_PRIVILEGE_ENABLED_BY_DEFAULT = (1)
  2233. SE_PRIVILEGE_ENABLED = (2)
  2234. SE_PRIVILEGE_USED_FOR_ACCESS = (-2147483648)
  2235. PRIVILEGE_SET_ALL_NECESSARY = (1)
  2236. SE_CREATE_TOKEN_NAME = "SeCreateTokenPrivilege"
  2237. SE_ASSIGNPRIMARYTOKEN_NAME = "SeAssignPrimaryTokenPrivilege"
  2238. SE_LOCK_MEMORY_NAME = "SeLockMemoryPrivilege"
  2239. SE_INCREASE_QUOTA_NAME = "SeIncreaseQuotaPrivilege"
  2240. SE_UNSOLICITED_INPUT_NAME = "SeUnsolicitedInputPrivilege"
  2241. SE_MACHINE_ACCOUNT_NAME = "SeMachineAccountPrivilege"
  2242. SE_TCB_NAME = "SeTcbPrivilege"
  2243. SE_SECURITY_NAME = "SeSecurityPrivilege"
  2244. SE_TAKE_OWNERSHIP_NAME = "SeTakeOwnershipPrivilege"
  2245. SE_LOAD_DRIVER_NAME = "SeLoadDriverPrivilege"
  2246. SE_SYSTEM_PROFILE_NAME = "SeSystemProfilePrivilege"
  2247. SE_SYSTEMTIME_NAME = "SeSystemtimePrivilege"
  2248. SE_PROF_SINGLE_PROCESS_NAME = "SeProfileSingleProcessPrivilege"
  2249. SE_INC_BASE_PRIORITY_NAME = "SeIncreaseBasePriorityPrivilege"
  2250. SE_CREATE_PAGEFILE_NAME = "SeCreatePagefilePrivilege"
  2251. SE_CREATE_PERMANENT_NAME = "SeCreatePermanentPrivilege"
  2252. SE_BACKUP_NAME = "SeBackupPrivilege"
  2253. SE_RESTORE_NAME = "SeRestorePrivilege"
  2254. SE_SHUTDOWN_NAME = "SeShutdownPrivilege"
  2255. SE_DEBUG_NAME = "SeDebugPrivilege"
  2256. SE_AUDIT_NAME = "SeAuditPrivilege"
  2257. SE_SYSTEM_ENVIRONMENT_NAME = "SeSystemEnvironmentPrivilege"
  2258. SE_CHANGE_NOTIFY_NAME = "SeChangeNotifyPrivilege"
  2259. SE_REMOTE_SHUTDOWN_NAME = "SeRemoteShutdownPrivilege"
  2260. TOKEN_ASSIGN_PRIMARY = (1)
  2261. TOKEN_DUPLICATE = (2)
  2262. TOKEN_IMPERSONATE = (4)
  2263. TOKEN_QUERY = (8)
  2264. TOKEN_QUERY_SOURCE = (16)
  2265. TOKEN_ADJUST_PRIVILEGES = (32)
  2266. TOKEN_ADJUST_GROUPS = (64)
  2267. TOKEN_ADJUST_DEFAULT = (128)
  2268. TOKEN_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED |\
  2269. TOKEN_ASSIGN_PRIMARY |\
  2270. TOKEN_DUPLICATE |\
  2271. TOKEN_IMPERSONATE |\
  2272. TOKEN_QUERY |\
  2273. TOKEN_QUERY_SOURCE |\
  2274. TOKEN_ADJUST_PRIVILEGES |\
  2275. TOKEN_ADJUST_GROUPS |\
  2276. TOKEN_ADJUST_DEFAULT)
  2277. TOKEN_READ = (STANDARD_RIGHTS_READ |\
  2278. TOKEN_QUERY)
  2279. TOKEN_WRITE = (STANDARD_RIGHTS_WRITE |\
  2280. TOKEN_ADJUST_PRIVILEGES |\
  2281. TOKEN_ADJUST_GROUPS |\
  2282. TOKEN_ADJUST_DEFAULT)
  2283. TOKEN_EXECUTE = (STANDARD_RIGHTS_EXECUTE)
  2284. TOKEN_SOURCE_LENGTH = 8
  2285. KEY_QUERY_VALUE = (1)
  2286. KEY_SET_VALUE = (2)
  2287. KEY_CREATE_SUB_KEY = (4)
  2288. KEY_ENUMERATE_SUB_KEYS = (8)
  2289. KEY_NOTIFY = (16)
  2290. KEY_CREATE_LINK = (32)
  2291. KEY_WOW64_32KEY = 512
  2292. KEY_WOW64_64KEY = 256
  2293. KEY_WOW64_RES = 768
  2294. KEY_READ = ((STANDARD_RIGHTS_READ |\
  2295. KEY_QUERY_VALUE |\
  2296. KEY_ENUMERATE_SUB_KEYS |\
  2297. KEY_NOTIFY) \
  2298. & \
  2299. (~SYNCHRONIZE))
  2300. KEY_WRITE = ((STANDARD_RIGHTS_WRITE |\
  2301. KEY_SET_VALUE |\
  2302. KEY_CREATE_SUB_KEY) \
  2303. & \
  2304. (~SYNCHRONIZE))
  2305. KEY_EXECUTE = ((KEY_READ) \
  2306. & \
  2307. (~SYNCHRONIZE))
  2308. KEY_ALL_ACCESS = ((STANDARD_RIGHTS_ALL |\
  2309. KEY_QUERY_VALUE |\
  2310. KEY_SET_VALUE |\
  2311. KEY_CREATE_SUB_KEY |\
  2312. KEY_ENUMERATE_SUB_KEYS |\
  2313. KEY_NOTIFY |\
  2314. KEY_CREATE_LINK) \
  2315. & \
  2316. (~SYNCHRONIZE))
  2317. REG_NOTIFY_CHANGE_ATTRIBUTES = (2)
  2318. REG_NOTIFY_CHANGE_SECURITY = (8)
  2319. REG_RESOURCE_REQUIREMENTS_LIST = ( 10 )
  2320. REG_NONE = ( 0 ) # No value type
  2321. REG_SZ = ( 1 ) # Unicode nul terminated string
  2322. REG_EXPAND_SZ = ( 2 ) # Unicode nul terminated string
  2323. # (with environment variable references)
  2324. REG_BINARY = ( 3 ) # Free form binary
  2325. REG_DWORD = ( 4 ) # 32-bit number
  2326. REG_DWORD_LITTLE_ENDIAN = ( 4 ) # 32-bit number (same as REG_DWORD)
  2327. REG_DWORD_BIG_ENDIAN = ( 5 ) # 32-bit number
  2328. REG_LINK = ( 6 ) # Symbolic Link (unicode)
  2329. REG_MULTI_SZ = ( 7 ) # Multiple Unicode strings
  2330. REG_RESOURCE_LIST = ( 8 ) # Resource list in the resource map
  2331. REG_FULL_RESOURCE_DESCRIPTOR =( 9 ) # Resource list in the hardware description
  2332. REG_RESOURCE_REQUIREMENTS_LIST = ( 10 )
  2333. REG_QWORD = ( 11 ) # 64-bit number
  2334. REG_QWORD_LITTLE_ENDIAN = ( 11 ) # 64-bit number (same as REG_QWORD)
  2335. # Generated by h2py from \msvc20\include\winnt.h
  2336. # hacked and split by mhammond.
  2337. # Included from string.h
  2338. _NLSCMPERROR = 2147483647
  2339. NULL = 0
  2340. HEAP_NO_SERIALIZE = 1
  2341. HEAP_GROWABLE = 2
  2342. HEAP_GENERATE_EXCEPTIONS = 4
  2343. HEAP_ZERO_MEMORY = 8
  2344. HEAP_REALLOC_IN_PLACE_ONLY = 16
  2345. HEAP_TAIL_CHECKING_ENABLED = 32
  2346. HEAP_FREE_CHECKING_ENABLED = 64
  2347. HEAP_DISABLE_COALESCE_ON_FREE = 128
  2348. IS_TEXT_UNICODE_ASCII16 = 1
  2349. IS_TEXT_UNICODE_REVERSE_ASCII16 = 16
  2350. IS_TEXT_UNICODE_STATISTICS = 2
  2351. IS_TEXT_UNICODE_REVERSE_STATISTICS = 32
  2352. IS_TEXT_UNICODE_CONTROLS = 4
  2353. IS_TEXT_UNICODE_REVERSE_CONTROLS = 64
  2354. IS_TEXT_UNICODE_SIGNATURE = 8
  2355. IS_TEXT_UNICODE_REVERSE_SIGNATURE = 128
  2356. IS_TEXT_UNICODE_ILLEGAL_CHARS = 256
  2357. IS_TEXT_UNICODE_ODD_LENGTH = 512
  2358. IS_TEXT_UNICODE_DBCS_LEADBYTE = 1024
  2359. IS_TEXT_UNICODE_NULL_BYTES = 4096
  2360. IS_TEXT_UNICODE_UNICODE_MASK = 15
  2361. IS_TEXT_UNICODE_REVERSE_MASK = 240
  2362. IS_TEXT_UNICODE_NOT_UNICODE_MASK = 3840
  2363. IS_TEXT_UNICODE_NOT_ASCII_MASK = 61440
  2364. COMPRESSION_FORMAT_NONE = (0)
  2365. COMPRESSION_FORMAT_DEFAULT = (1)
  2366. COMPRESSION_FORMAT_LZNT1 = (2)
  2367. COMPRESSION_ENGINE_STANDARD = (0)
  2368. COMPRESSION_ENGINE_MAXIMUM = (256)
  2369. MESSAGE_RESOURCE_UNICODE = 1
  2370. RTL_CRITSECT_TYPE = 0
  2371. RTL_RESOURCE_TYPE = 1
  2372. DLL_PROCESS_ATTACH = 1
  2373. DLL_THREAD_ATTACH = 2
  2374. DLL_THREAD_DETACH = 3
  2375. DLL_PROCESS_DETACH = 0
  2376. EVENTLOG_SEQUENTIAL_READ = 0X0001
  2377. EVENTLOG_SEEK_READ = 0X0002
  2378. EVENTLOG_FORWARDS_READ = 0X0004
  2379. EVENTLOG_BACKWARDS_READ = 0X0008
  2380. EVENTLOG_SUCCESS = 0X0000
  2381. EVENTLOG_ERROR_TYPE = 1
  2382. EVENTLOG_WARNING_TYPE = 2
  2383. EVENTLOG_INFORMATION_TYPE = 4
  2384. EVENTLOG_AUDIT_SUCCESS = 8
  2385. EVENTLOG_AUDIT_FAILURE = 16
  2386. EVENTLOG_START_PAIRED_EVENT = 1
  2387. EVENTLOG_END_PAIRED_EVENT = 2
  2388. EVENTLOG_END_ALL_PAIRED_EVENTS = 4
  2389. EVENTLOG_PAIRED_EVENT_ACTIVE = 8
  2390. EVENTLOG_PAIRED_EVENT_INACTIVE = 16
  2391. # Generated by h2py from \msvc20\include\winnt.h
  2392. # hacked and split by mhammond.
  2393. OWNER_SECURITY_INFORMATION = (0X00000001)
  2394. GROUP_SECURITY_INFORMATION = (0X00000002)
  2395. DACL_SECURITY_INFORMATION = (0X00000004)
  2396. SACL_SECURITY_INFORMATION = (0X00000008)
  2397. IMAGE_SIZEOF_FILE_HEADER = 20
  2398. IMAGE_FILE_MACHINE_UNKNOWN = 0
  2399. IMAGE_NUMBEROF_DIRECTORY_ENTRIES = 16
  2400. IMAGE_SIZEOF_ROM_OPTIONAL_HEADER = 56
  2401. IMAGE_SIZEOF_STD_OPTIONAL_HEADER = 28
  2402. IMAGE_SIZEOF_NT_OPTIONAL_HEADER = 224
  2403. IMAGE_NT_OPTIONAL_HDR_MAGIC = 267
  2404. IMAGE_ROM_OPTIONAL_HDR_MAGIC = 263
  2405. IMAGE_SIZEOF_SHORT_NAME = 8
  2406. IMAGE_SIZEOF_SECTION_HEADER = 40
  2407. IMAGE_SIZEOF_SYMBOL = 18
  2408. IMAGE_SYM_CLASS_NULL = 0
  2409. IMAGE_SYM_CLASS_AUTOMATIC = 1
  2410. IMAGE_SYM_CLASS_EXTERNAL = 2
  2411. IMAGE_SYM_CLASS_STATIC = 3
  2412. IMAGE_SYM_CLASS_REGISTER = 4
  2413. IMAGE_SYM_CLASS_EXTERNAL_DEF = 5
  2414. IMAGE_SYM_CLASS_LABEL = 6
  2415. IMAGE_SYM_CLASS_UNDEFINED_LABEL = 7
  2416. IMAGE_SYM_CLASS_MEMBER_OF_STRUCT = 8
  2417. IMAGE_SYM_CLASS_ARGUMENT = 9
  2418. IMAGE_SYM_CLASS_STRUCT_TAG = 10
  2419. IMAGE_SYM_CLASS_MEMBER_OF_UNION = 11
  2420. IMAGE_SYM_CLASS_UNION_TAG = 12
  2421. IMAGE_SYM_CLASS_TYPE_DEFINITION = 13
  2422. IMAGE_SYM_CLASS_UNDEFINED_STATIC = 14
  2423. IMAGE_SYM_CLASS_ENUM_TAG = 15
  2424. IMAGE_SYM_CLASS_MEMBER_OF_ENUM = 16
  2425. IMAGE_SYM_CLASS_REGISTER_PARAM = 17
  2426. IMAGE_SYM_CLASS_BIT_FIELD = 18
  2427. IMAGE_SYM_CLASS_BLOCK = 100
  2428. IMAGE_SYM_CLASS_FUNCTION = 101
  2429. IMAGE_SYM_CLASS_END_OF_STRUCT = 102
  2430. IMAGE_SYM_CLASS_FILE = 103
  2431. IMAGE_SYM_CLASS_SECTION = 104
  2432. IMAGE_SYM_CLASS_WEAK_EXTERNAL = 105
  2433. N_BTMASK = 15
  2434. N_TMASK = 48
  2435. N_TMASK1 = 192
  2436. N_TMASK2 = 240
  2437. N_BTSHFT = 4
  2438. N_TSHIFT = 2
  2439. IMAGE_SIZEOF_AUX_SYMBOL = 18
  2440. IMAGE_COMDAT_SELECT_NODUPLICATES = 1
  2441. IMAGE_COMDAT_SELECT_ANY = 2
  2442. IMAGE_COMDAT_SELECT_SAME_SIZE = 3
  2443. IMAGE_COMDAT_SELECT_EXACT_MATCH = 4
  2444. IMAGE_COMDAT_SELECT_ASSOCIATIVE = 5
  2445. IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY = 1
  2446. IMAGE_WEAK_EXTERN_SEARCH_LIBRARY = 2
  2447. IMAGE_WEAK_EXTERN_SEARCH_ALIAS = 3
  2448. IMAGE_SIZEOF_RELOCATION = 10
  2449. IMAGE_REL_I386_SECTION = 10
  2450. IMAGE_REL_I386_SECREL = 11
  2451. IMAGE_REL_MIPS_REFHALF = 1
  2452. IMAGE_REL_MIPS_REFWORD = 2
  2453. IMAGE_REL_MIPS_JMPADDR = 3
  2454. IMAGE_REL_MIPS_REFHI = 4
  2455. IMAGE_REL_MIPS_REFLO = 5
  2456. IMAGE_REL_MIPS_GPREL = 6
  2457. IMAGE_REL_MIPS_LITERAL = 7
  2458. IMAGE_REL_MIPS_SECTION = 10
  2459. IMAGE_REL_MIPS_SECREL = 11
  2460. IMAGE_REL_MIPS_REFWORDNB = 34
  2461. IMAGE_REL_MIPS_PAIR = 37
  2462. IMAGE_REL_ALPHA_ABSOLUTE = 0
  2463. IMAGE_REL_ALPHA_REFLONG = 1
  2464. IMAGE_REL_ALPHA_REFQUAD = 2
  2465. IMAGE_REL_ALPHA_GPREL32 = 3
  2466. IMAGE_REL_ALPHA_LITERAL = 4
  2467. IMAGE_REL_ALPHA_LITUSE = 5
  2468. IMAGE_REL_ALPHA_GPDISP = 6
  2469. IMAGE_REL_ALPHA_BRADDR = 7
  2470. IMAGE_REL_ALPHA_HINT = 8
  2471. IMAGE_REL_ALPHA_INLINE_REFLONG = 9
  2472. IMAGE_REL_ALPHA_REFHI = 10
  2473. IMAGE_REL_ALPHA_REFLO = 11
  2474. IMAGE_REL_ALPHA_PAIR = 12
  2475. IMAGE_REL_ALPHA_MATCH = 13
  2476. IMAGE_REL_ALPHA_SECTION = 14
  2477. IMAGE_REL_ALPHA_SECREL = 15
  2478. IMAGE_REL_ALPHA_REFLONGNB = 16
  2479. IMAGE_SIZEOF_BASE_RELOCATION = 8
  2480. IMAGE_REL_BASED_ABSOLUTE = 0
  2481. IMAGE_REL_BASED_HIGH = 1
  2482. IMAGE_REL_BASED_LOW = 2
  2483. IMAGE_REL_BASED_HIGHLOW = 3
  2484. IMAGE_REL_BASED_HIGHADJ = 4
  2485. IMAGE_REL_BASED_MIPS_JMPADDR = 5
  2486. IMAGE_SIZEOF_LINENUMBER = 6
  2487. IMAGE_ARCHIVE_START_SIZE = 8
  2488. IMAGE_ARCHIVE_START = "!<arch>\n"
  2489. IMAGE_ARCHIVE_END = "`\n"
  2490. IMAGE_ARCHIVE_PAD = "\n"
  2491. IMAGE_ARCHIVE_LINKER_MEMBER = "/ "
  2492. IMAGE_ARCHIVE_LONGNAMES_MEMBER = "// "
  2493. IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR = 60
  2494. IMAGE_ORDINAL_FLAG = -2147483648
  2495. def IMAGE_SNAP_BY_ORDINAL(Ordinal): return ((Ordinal & IMAGE_ORDINAL_FLAG) != 0)
  2496. def IMAGE_ORDINAL(Ordinal): return (Ordinal & 65535)
  2497. IMAGE_RESOURCE_NAME_IS_STRING = -2147483648
  2498. IMAGE_RESOURCE_DATA_IS_DIRECTORY = -2147483648
  2499. IMAGE_DEBUG_TYPE_UNKNOWN = 0
  2500. IMAGE_DEBUG_TYPE_COFF = 1
  2501. IMAGE_DEBUG_TYPE_CODEVIEW = 2
  2502. IMAGE_DEBUG_TYPE_FPO = 3
  2503. IMAGE_DEBUG_TYPE_MISC = 4
  2504. IMAGE_DEBUG_TYPE_EXCEPTION = 5
  2505. IMAGE_DEBUG_TYPE_FIXUP = 6
  2506. IMAGE_DEBUG_TYPE_OMAP_TO_SRC = 7
  2507. IMAGE_DEBUG_TYPE_OMAP_FROM_SRC = 8
  2508. FRAME_FPO = 0
  2509. FRAME_TRAP = 1
  2510. FRAME_TSS = 2
  2511. SIZEOF_RFPO_DATA = 16
  2512. IMAGE_DEBUG_MISC_EXENAME = 1
  2513. IMAGE_SEPARATE_DEBUG_SIGNATURE = 18756
  2514. # Generated by h2py from \msvcnt\include\wingdi.h
  2515. # hacked and split manually by mhammond.
  2516. NEWFRAME = 1
  2517. ABORTDOC = 2
  2518. NEXTBAND = 3
  2519. SETCOLORTABLE = 4
  2520. GETCOLORTABLE = 5
  2521. FLUSHOUTPUT = 6
  2522. DRAFTMODE = 7
  2523. QUERYESCSUPPORT = 8
  2524. SETABORTPROC = 9
  2525. STARTDOC = 10
  2526. ENDDOC = 11
  2527. GETPHYSPAGESIZE = 12
  2528. GETPRINTINGOFFSET = 13
  2529. GETSCALINGFACTOR = 14
  2530. MFCOMMENT = 15
  2531. GETPENWIDTH = 16
  2532. SETCOPYCOUNT = 17
  2533. SELECTPAPERSOURCE = 18
  2534. DEVICEDATA = 19
  2535. PASSTHROUGH = 19
  2536. GETTECHNOLGY = 20
  2537. GETTECHNOLOGY = 20
  2538. SETLINECAP = 21
  2539. SETLINEJOIN = 22
  2540. SETMITERLIMIT = 23
  2541. BANDINFO = 24
  2542. DRAWPATTERNRECT = 25
  2543. GETVECTORPENSIZE = 26
  2544. GETVECTORBRUSHSIZE = 27
  2545. ENABLEDUPLEX = 28
  2546. GETSETPAPERBINS = 29
  2547. GETSETPRINTORIENT = 30
  2548. ENUMPAPERBINS = 31
  2549. SETDIBSCALING = 32
  2550. EPSPRINTING = 33
  2551. ENUMPAPERMETRICS = 34
  2552. GETSETPAPERMETRICS = 35
  2553. POSTSCRIPT_DATA = 37
  2554. POSTSCRIPT_IGNORE = 38
  2555. MOUSETRAILS = 39
  2556. GETDEVICEUNITS = 42
  2557. GETEXTENDEDTEXTMETRICS = 256
  2558. GETEXTENTTABLE = 257
  2559. GETPAIRKERNTABLE = 258
  2560. GETTRACKKERNTABLE = 259
  2561. EXTTEXTOUT = 512
  2562. GETFACENAME = 513
  2563. DOWNLOADFACE = 514
  2564. ENABLERELATIVEWIDTHS = 768
  2565. ENABLEPAIRKERNING = 769
  2566. SETKERNTRACK = 770
  2567. SETALLJUSTVALUES = 771
  2568. SETCHARSET = 772
  2569. STRETCHBLT = 2048
  2570. GETSETSCREENPARAMS = 3072
  2571. BEGIN_PATH = 4096
  2572. CLIP_TO_PATH = 4097
  2573. END_PATH = 4098
  2574. EXT_DEVICE_CAPS = 4099
  2575. RESTORE_CTM = 4100
  2576. SAVE_CTM = 4101
  2577. SET_ARC_DIRECTION = 4102
  2578. SET_BACKGROUND_COLOR = 4103
  2579. SET_POLY_MODE = 4104
  2580. SET_SCREEN_ANGLE = 4105
  2581. SET_SPREAD = 4106
  2582. TRANSFORM_CTM = 4107
  2583. SET_CLIP_BOX = 4108
  2584. SET_BOUNDS = 4109
  2585. SET_MIRROR_MODE = 4110
  2586. OPENCHANNEL = 4110
  2587. DOWNLOADHEADER = 4111
  2588. CLOSECHANNEL = 4112
  2589. POSTSCRIPT_PASSTHROUGH = 4115
  2590. ENCAPSULATED_POSTSCRIPT = 4116
  2591. SP_NOTREPORTED = 16384
  2592. SP_ERROR = (-1)
  2593. SP_APPABORT = (-2)
  2594. SP_USERABORT = (-3)
  2595. SP_OUTOFDISK = (-4)
  2596. SP_OUTOFMEMORY = (-5)
  2597. PR_JOBSTATUS = 0
  2598. ## GDI object types
  2599. OBJ_PEN = 1
  2600. OBJ_BRUSH = 2
  2601. OBJ_DC = 3
  2602. OBJ_METADC = 4
  2603. OBJ_PAL = 5
  2604. OBJ_FONT = 6
  2605. OBJ_BITMAP = 7
  2606. OBJ_REGION = 8
  2607. OBJ_METAFILE = 9
  2608. OBJ_MEMDC = 10
  2609. OBJ_EXTPEN = 11
  2610. OBJ_ENHMETADC = 12
  2611. OBJ_ENHMETAFILE = 13
  2612. OBJ_COLORSPACE = 14
  2613. MWT_IDENTITY = 1
  2614. MWT_LEFTMULTIPLY = 2
  2615. MWT_RIGHTMULTIPLY = 3
  2616. MWT_MIN = MWT_IDENTITY
  2617. MWT_MAX = MWT_RIGHTMULTIPLY
  2618. BI_RGB = 0
  2619. BI_RLE8 = 1
  2620. BI_RLE4 = 2
  2621. BI_BITFIELDS = 3
  2622. TMPF_FIXED_PITCH = 1
  2623. TMPF_VECTOR = 2
  2624. TMPF_DEVICE = 8
  2625. TMPF_TRUETYPE = 4
  2626. NTM_REGULAR = 64
  2627. NTM_BOLD = 32
  2628. NTM_ITALIC = 1
  2629. LF_FACESIZE = 32
  2630. LF_FULLFACESIZE = 64
  2631. OUT_DEFAULT_PRECIS = 0
  2632. OUT_STRING_PRECIS = 1
  2633. OUT_CHARACTER_PRECIS = 2
  2634. OUT_STROKE_PRECIS = 3
  2635. OUT_TT_PRECIS = 4
  2636. OUT_DEVICE_PRECIS = 5
  2637. OUT_RASTER_PRECIS = 6
  2638. OUT_TT_ONLY_PRECIS = 7
  2639. OUT_OUTLINE_PRECIS = 8
  2640. CLIP_DEFAULT_PRECIS = 0
  2641. CLIP_CHARACTER_PRECIS = 1
  2642. CLIP_STROKE_PRECIS = 2
  2643. CLIP_MASK = 15
  2644. CLIP_LH_ANGLES = (1<<4)
  2645. CLIP_TT_ALWAYS = (2<<4)
  2646. CLIP_EMBEDDED = (8<<4)
  2647. DEFAULT_QUALITY = 0
  2648. DRAFT_QUALITY = 1
  2649. PROOF_QUALITY = 2
  2650. NONANTIALIASED_QUALITY = 3
  2651. ANTIALIASED_QUALITY = 4
  2652. CLEARTYPE_QUALITY = 5
  2653. CLEARTYPE_NATURAL_QUALITY = 6
  2654. DEFAULT_PITCH = 0
  2655. FIXED_PITCH = 1
  2656. VARIABLE_PITCH = 2
  2657. ANSI_CHARSET = 0
  2658. DEFAULT_CHARSET = 1
  2659. SYMBOL_CHARSET = 2
  2660. SHIFTJIS_CHARSET = 128
  2661. HANGEUL_CHARSET = 129
  2662. CHINESEBIG5_CHARSET = 136
  2663. OEM_CHARSET = 255
  2664. JOHAB_CHARSET = 130
  2665. HEBREW_CHARSET = 177
  2666. ARABIC_CHARSET = 178
  2667. GREEK_CHARSET = 161
  2668. TURKISH_CHARSET = 162
  2669. VIETNAMESE_CHARSET = 163
  2670. THAI_CHARSET = 222
  2671. EASTEUROPE_CHARSET = 238
  2672. RUSSIAN_CHARSET = 204
  2673. MAC_CHARSET = 77
  2674. BALTIC_CHARSET = 186
  2675. FF_DONTCARE = (0<<4)
  2676. FF_ROMAN = (1<<4)
  2677. FF_SWISS = (2<<4)
  2678. FF_MODERN = (3<<4)
  2679. FF_SCRIPT = (4<<4)
  2680. FF_DECORATIVE = (5<<4)
  2681. FW_DONTCARE = 0
  2682. FW_THIN = 100
  2683. FW_EXTRALIGHT = 200
  2684. FW_LIGHT = 300
  2685. FW_NORMAL = 400
  2686. FW_MEDIUM = 500
  2687. FW_SEMIBOLD = 600
  2688. FW_BOLD = 700
  2689. FW_EXTRABOLD = 800
  2690. FW_HEAVY = 900
  2691. FW_ULTRALIGHT = FW_EXTRALIGHT
  2692. FW_REGULAR = FW_NORMAL
  2693. FW_DEMIBOLD = FW_SEMIBOLD
  2694. FW_ULTRABOLD = FW_EXTRABOLD
  2695. FW_BLACK = FW_HEAVY
  2696. # Generated by h2py from \msvcnt\include\wingdi.h
  2697. # hacked and split manually by mhammond.
  2698. BS_SOLID = 0
  2699. BS_NULL = 1
  2700. BS_HOLLOW = BS_NULL
  2701. BS_HATCHED = 2
  2702. BS_PATTERN = 3
  2703. BS_INDEXED = 4
  2704. BS_DIBPATTERN = 5
  2705. BS_DIBPATTERNPT = 6
  2706. BS_PATTERN8X8 = 7
  2707. BS_DIBPATTERN8X8 = 8
  2708. HS_HORIZONTAL = 0
  2709. HS_VERTICAL = 1
  2710. HS_FDIAGONAL = 2
  2711. HS_BDIAGONAL = 3
  2712. HS_CROSS = 4
  2713. HS_DIAGCROSS = 5
  2714. HS_FDIAGONAL1 = 6
  2715. HS_BDIAGONAL1 = 7
  2716. HS_SOLID = 8
  2717. HS_DENSE1 = 9
  2718. HS_DENSE2 = 10
  2719. HS_DENSE3 = 11
  2720. HS_DENSE4 = 12
  2721. HS_DENSE5 = 13
  2722. HS_DENSE6 = 14
  2723. HS_DENSE7 = 15
  2724. HS_DENSE8 = 16
  2725. HS_NOSHADE = 17
  2726. HS_HALFTONE = 18
  2727. HS_SOLIDCLR = 19
  2728. HS_DITHEREDCLR = 20
  2729. HS_SOLIDTEXTCLR = 21
  2730. HS_DITHEREDTEXTCLR = 22
  2731. HS_SOLIDBKCLR = 23
  2732. HS_DITHEREDBKCLR = 24
  2733. HS_API_MAX = 25
  2734. PS_SOLID = 0
  2735. PS_DASH = 1
  2736. PS_DOT = 2
  2737. PS_DASHDOT = 3
  2738. PS_DASHDOTDOT = 4
  2739. PS_NULL = 5
  2740. PS_INSIDEFRAME = 6
  2741. PS_USERSTYLE = 7
  2742. PS_ALTERNATE = 8
  2743. PS_STYLE_MASK = 15
  2744. PS_ENDCAP_ROUND = 0
  2745. PS_ENDCAP_SQUARE = 256
  2746. PS_ENDCAP_FLAT = 512
  2747. PS_ENDCAP_MASK = 3840
  2748. PS_JOIN_ROUND = 0
  2749. PS_JOIN_BEVEL = 4096
  2750. PS_JOIN_MITER = 8192
  2751. PS_JOIN_MASK = 61440
  2752. PS_COSMETIC = 0
  2753. PS_GEOMETRIC = 65536
  2754. PS_TYPE_MASK = 983040
  2755. AD_COUNTERCLOCKWISE = 1
  2756. AD_CLOCKWISE = 2
  2757. DRIVERVERSION = 0
  2758. TECHNOLOGY = 2
  2759. HORZSIZE = 4
  2760. VERTSIZE = 6
  2761. HORZRES = 8
  2762. VERTRES = 10
  2763. BITSPIXEL = 12
  2764. PLANES = 14
  2765. NUMBRUSHES = 16
  2766. NUMPENS = 18
  2767. NUMMARKERS = 20
  2768. NUMFONTS = 22
  2769. NUMCOLORS = 24
  2770. PDEVICESIZE = 26
  2771. CURVECAPS = 28
  2772. LINECAPS = 30
  2773. POLYGONALCAPS = 32
  2774. TEXTCAPS = 34
  2775. CLIPCAPS = 36
  2776. RASTERCAPS = 38
  2777. ASPECTX = 40
  2778. ASPECTY = 42
  2779. ASPECTXY = 44
  2780. LOGPIXELSX = 88
  2781. LOGPIXELSY = 90
  2782. SIZEPALETTE = 104
  2783. NUMRESERVED = 106
  2784. COLORRES = 108
  2785. PHYSICALWIDTH = 110
  2786. PHYSICALHEIGHT = 111
  2787. PHYSICALOFFSETX = 112
  2788. PHYSICALOFFSETY = 113
  2789. SCALINGFACTORX = 114
  2790. SCALINGFACTORY = 115
  2791. VREFRESH = 116
  2792. DESKTOPVERTRES = 117
  2793. DESKTOPHORZRES = 118
  2794. BLTALIGNMENT = 119
  2795. SHADEBLENDCAPS = 120
  2796. COLORMGMTCAPS = 121
  2797. DT_PLOTTER = 0
  2798. DT_RASDISPLAY = 1
  2799. DT_RASPRINTER = 2
  2800. DT_RASCAMERA = 3
  2801. DT_CHARSTREAM = 4
  2802. DT_METAFILE = 5
  2803. DT_DISPFILE = 6
  2804. CC_NONE = 0
  2805. CC_CIRCLES = 1
  2806. CC_PIE = 2
  2807. CC_CHORD = 4
  2808. CC_ELLIPSES = 8
  2809. CC_WIDE = 16
  2810. CC_STYLED = 32
  2811. CC_WIDESTYLED = 64
  2812. CC_INTERIORS = 128
  2813. CC_ROUNDRECT = 256
  2814. LC_NONE = 0
  2815. LC_POLYLINE = 2
  2816. LC_MARKER = 4
  2817. LC_POLYMARKER = 8
  2818. LC_WIDE = 16
  2819. LC_STYLED = 32
  2820. LC_WIDESTYLED = 64
  2821. LC_INTERIORS = 128
  2822. PC_NONE = 0
  2823. PC_POLYGON = 1
  2824. PC_RECTANGLE = 2
  2825. PC_WINDPOLYGON = 4
  2826. PC_TRAPEZOID = 4
  2827. PC_SCANLINE = 8
  2828. PC_WIDE = 16
  2829. PC_STYLED = 32
  2830. PC_WIDESTYLED = 64
  2831. PC_INTERIORS = 128
  2832. CP_NONE = 0
  2833. CP_RECTANGLE = 1
  2834. CP_REGION = 2
  2835. TC_OP_CHARACTER = 1
  2836. TC_OP_STROKE = 2
  2837. TC_CP_STROKE = 4
  2838. TC_CR_90 = 8
  2839. TC_CR_ANY = 16
  2840. TC_SF_X_YINDEP = 32
  2841. TC_SA_DOUBLE = 64
  2842. TC_SA_INTEGER = 128
  2843. TC_SA_CONTIN = 256
  2844. TC_EA_DOUBLE = 512
  2845. TC_IA_ABLE = 1024
  2846. TC_UA_ABLE = 2048
  2847. TC_SO_ABLE = 4096
  2848. TC_RA_ABLE = 8192
  2849. TC_VA_ABLE = 16384
  2850. TC_RESERVED = 32768
  2851. TC_SCROLLBLT = 65536
  2852. RC_BITBLT = 1
  2853. RC_BANDING = 2
  2854. RC_SCALING = 4
  2855. RC_BITMAP64 = 8
  2856. RC_GDI20_OUTPUT = 16
  2857. RC_GDI20_STATE = 32
  2858. RC_SAVEBITMAP = 64
  2859. RC_DI_BITMAP = 128
  2860. RC_PALETTE = 256
  2861. RC_DIBTODEV = 512
  2862. RC_BIGFONT = 1024
  2863. RC_STRETCHBLT = 2048
  2864. RC_FLOODFILL = 4096
  2865. RC_STRETCHDIB = 8192
  2866. RC_OP_DX_OUTPUT = 16384
  2867. RC_DEVBITS = 32768
  2868. DIB_RGB_COLORS = 0
  2869. DIB_PAL_COLORS = 1
  2870. DIB_PAL_INDICES = 2
  2871. DIB_PAL_PHYSINDICES = 2
  2872. DIB_PAL_LOGINDICES = 4
  2873. SYSPAL_ERROR = 0
  2874. SYSPAL_STATIC = 1
  2875. SYSPAL_NOSTATIC = 2
  2876. CBM_CREATEDIB = 2
  2877. CBM_INIT = 4
  2878. FLOODFILLBORDER = 0
  2879. FLOODFILLSURFACE = 1
  2880. CCHDEVICENAME = 32
  2881. CCHFORMNAME = 32
  2882. # Generated by h2py from \msvcnt\include\wingdi.h
  2883. # hacked and split manually by mhammond.
  2884. # DEVMODE.dmFields
  2885. DM_SPECVERSION = 800
  2886. DM_ORIENTATION = 1
  2887. DM_PAPERSIZE = 2
  2888. DM_PAPERLENGTH = 4
  2889. DM_PAPERWIDTH = 8
  2890. DM_SCALE = 16
  2891. DM_POSITION = 32
  2892. DM_NUP = 64
  2893. DM_DISPLAYORIENTATION = 128
  2894. DM_COPIES = 256
  2895. DM_DEFAULTSOURCE = 512
  2896. DM_PRINTQUALITY = 1024
  2897. DM_COLOR = 2048
  2898. DM_DUPLEX = 4096
  2899. DM_YRESOLUTION = 8192
  2900. DM_TTOPTION = 16384
  2901. DM_COLLATE = 32768
  2902. DM_FORMNAME = 65536
  2903. DM_LOGPIXELS = 131072
  2904. DM_BITSPERPEL = 262144
  2905. DM_PELSWIDTH = 524288
  2906. DM_PELSHEIGHT = 1048576
  2907. DM_DISPLAYFLAGS = 2097152
  2908. DM_DISPLAYFREQUENCY = 4194304
  2909. DM_ICMMETHOD = 8388608
  2910. DM_ICMINTENT = 16777216
  2911. DM_MEDIATYPE = 33554432
  2912. DM_DITHERTYPE = 67108864
  2913. DM_PANNINGWIDTH = 134217728
  2914. DM_PANNINGHEIGHT = 268435456
  2915. DM_DISPLAYFIXEDOUTPUT = 536870912
  2916. # DEVMODE.dmOrientation
  2917. DMORIENT_PORTRAIT = 1
  2918. DMORIENT_LANDSCAPE = 2
  2919. # DEVMODE.dmDisplayOrientation
  2920. DMDO_DEFAULT = 0
  2921. DMDO_90 = 1
  2922. DMDO_180 = 2
  2923. DMDO_270 = 3
  2924. # DEVMODE.dmDisplayFixedOutput
  2925. DMDFO_DEFAULT = 0
  2926. DMDFO_STRETCH = 1
  2927. DMDFO_CENTER = 2
  2928. # DEVMODE.dmPaperSize
  2929. DMPAPER_LETTER = 1
  2930. DMPAPER_LETTERSMALL = 2
  2931. DMPAPER_TABLOID = 3
  2932. DMPAPER_LEDGER = 4
  2933. DMPAPER_LEGAL = 5
  2934. DMPAPER_STATEMENT = 6
  2935. DMPAPER_EXECUTIVE = 7
  2936. DMPAPER_A3 = 8
  2937. DMPAPER_A4 = 9
  2938. DMPAPER_A4SMALL = 10
  2939. DMPAPER_A5 = 11
  2940. DMPAPER_B4 = 12
  2941. DMPAPER_B5 = 13
  2942. DMPAPER_FOLIO = 14
  2943. DMPAPER_QUARTO = 15
  2944. DMPAPER_10X14 = 16
  2945. DMPAPER_11X17 = 17
  2946. DMPAPER_NOTE = 18
  2947. DMPAPER_ENV_9 = 19
  2948. DMPAPER_ENV_10 = 20
  2949. DMPAPER_ENV_11 = 21
  2950. DMPAPER_ENV_12 = 22
  2951. DMPAPER_ENV_14 = 23
  2952. DMPAPER_CSHEET = 24
  2953. DMPAPER_DSHEET = 25
  2954. DMPAPER_ESHEET = 26
  2955. DMPAPER_ENV_DL = 27
  2956. DMPAPER_ENV_C5 = 28
  2957. DMPAPER_ENV_C3 = 29
  2958. DMPAPER_ENV_C4 = 30
  2959. DMPAPER_ENV_C6 = 31
  2960. DMPAPER_ENV_C65 = 32
  2961. DMPAPER_ENV_B4 = 33
  2962. DMPAPER_ENV_B5 = 34
  2963. DMPAPER_ENV_B6 = 35
  2964. DMPAPER_ENV_ITALY = 36
  2965. DMPAPER_ENV_MONARCH = 37
  2966. DMPAPER_ENV_PERSONAL = 38
  2967. DMPAPER_FANFOLD_US = 39
  2968. DMPAPER_FANFOLD_STD_GERMAN = 40
  2969. DMPAPER_FANFOLD_LGL_GERMAN = 41
  2970. DMPAPER_ISO_B4 = 42
  2971. DMPAPER_JAPANESE_POSTCARD = 43
  2972. DMPAPER_9X11 = 44
  2973. DMPAPER_10X11 = 45
  2974. DMPAPER_15X11 = 46
  2975. DMPAPER_ENV_INVITE = 47
  2976. DMPAPER_RESERVED_48 = 48
  2977. DMPAPER_RESERVED_49 = 49
  2978. DMPAPER_LETTER_EXTRA = 50
  2979. DMPAPER_LEGAL_EXTRA = 51
  2980. DMPAPER_TABLOID_EXTRA = 52
  2981. DMPAPER_A4_EXTRA = 53
  2982. DMPAPER_LETTER_TRANSVERSE = 54
  2983. DMPAPER_A4_TRANSVERSE = 55
  2984. DMPAPER_LETTER_EXTRA_TRANSVERSE = 56
  2985. DMPAPER_A_PLUS = 57
  2986. DMPAPER_B_PLUS = 58
  2987. DMPAPER_LETTER_PLUS = 59
  2988. DMPAPER_A4_PLUS = 60
  2989. DMPAPER_A5_TRANSVERSE = 61
  2990. DMPAPER_B5_TRANSVERSE = 62
  2991. DMPAPER_A3_EXTRA = 63
  2992. DMPAPER_A5_EXTRA = 64
  2993. DMPAPER_B5_EXTRA = 65
  2994. DMPAPER_A2 = 66
  2995. DMPAPER_A3_TRANSVERSE = 67
  2996. DMPAPER_A3_EXTRA_TRANSVERSE = 68
  2997. DMPAPER_DBL_JAPANESE_POSTCARD = 69
  2998. DMPAPER_A6 = 70
  2999. DMPAPER_JENV_KAKU2 = 71
  3000. DMPAPER_JENV_KAKU3 = 72
  3001. DMPAPER_JENV_CHOU3 = 73
  3002. DMPAPER_JENV_CHOU4 = 74
  3003. DMPAPER_LETTER_ROTATED = 75
  3004. DMPAPER_A3_ROTATED = 76
  3005. DMPAPER_A4_ROTATED = 77
  3006. DMPAPER_A5_ROTATED = 78
  3007. DMPAPER_B4_JIS_ROTATED = 79
  3008. DMPAPER_B5_JIS_ROTATED = 80
  3009. DMPAPER_JAPANESE_POSTCARD_ROTATED = 81
  3010. DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED = 82
  3011. DMPAPER_A6_ROTATED = 83
  3012. DMPAPER_JENV_KAKU2_ROTATED = 84
  3013. DMPAPER_JENV_KAKU3_ROTATED = 85
  3014. DMPAPER_JENV_CHOU3_ROTATED = 86
  3015. DMPAPER_JENV_CHOU4_ROTATED = 87
  3016. DMPAPER_B6_JIS = 88
  3017. DMPAPER_B6_JIS_ROTATED = 89
  3018. DMPAPER_12X11 = 90
  3019. DMPAPER_JENV_YOU4 = 91
  3020. DMPAPER_JENV_YOU4_ROTATED = 92
  3021. DMPAPER_P16K = 93
  3022. DMPAPER_P32K = 94
  3023. DMPAPER_P32KBIG = 95
  3024. DMPAPER_PENV_1 = 96
  3025. DMPAPER_PENV_2 = 97
  3026. DMPAPER_PENV_3 = 98
  3027. DMPAPER_PENV_4 = 99
  3028. DMPAPER_PENV_5 = 100
  3029. DMPAPER_PENV_6 = 101
  3030. DMPAPER_PENV_7 = 102
  3031. DMPAPER_PENV_8 = 103
  3032. DMPAPER_PENV_9 = 104
  3033. DMPAPER_PENV_10 = 105
  3034. DMPAPER_P16K_ROTATED = 106
  3035. DMPAPER_P32K_ROTATED = 107
  3036. DMPAPER_P32KBIG_ROTATED = 108
  3037. DMPAPER_PENV_1_ROTATED = 109
  3038. DMPAPER_PENV_2_ROTATED = 110
  3039. DMPAPER_PENV_3_ROTATED = 111
  3040. DMPAPER_PENV_4_ROTATED = 112
  3041. DMPAPER_PENV_5_ROTATED = 113
  3042. DMPAPER_PENV_6_ROTATED = 114
  3043. DMPAPER_PENV_7_ROTATED = 115
  3044. DMPAPER_PENV_8_ROTATED = 116
  3045. DMPAPER_PENV_9_ROTATED = 117
  3046. DMPAPER_PENV_10_ROTATED = 118
  3047. DMPAPER_LAST = DMPAPER_PENV_10_ROTATED
  3048. DMPAPER_USER = 256
  3049. # DEVMODE.dmDefaultSource
  3050. DMBIN_UPPER = 1
  3051. DMBIN_ONLYONE = 1
  3052. DMBIN_LOWER = 2
  3053. DMBIN_MIDDLE = 3
  3054. DMBIN_MANUAL = 4
  3055. DMBIN_ENVELOPE = 5
  3056. DMBIN_ENVMANUAL = 6
  3057. DMBIN_AUTO = 7
  3058. DMBIN_TRACTOR = 8
  3059. DMBIN_SMALLFMT = 9
  3060. DMBIN_LARGEFMT = 10
  3061. DMBIN_LARGECAPACITY = 11
  3062. DMBIN_CASSETTE = 14
  3063. DMBIN_FORMSOURCE = 15
  3064. DMBIN_LAST = DMBIN_FORMSOURCE
  3065. DMBIN_USER = 256
  3066. # DEVMODE.dmPrintQuality
  3067. DMRES_DRAFT = (-1)
  3068. DMRES_LOW = (-2)
  3069. DMRES_MEDIUM = (-3)
  3070. DMRES_HIGH = (-4)
  3071. # DEVMODE.dmColor
  3072. DMCOLOR_MONOCHROME = 1
  3073. DMCOLOR_COLOR = 2
  3074. # DEVMODE.dmDuplex
  3075. DMDUP_SIMPLEX = 1
  3076. DMDUP_VERTICAL = 2
  3077. DMDUP_HORIZONTAL = 3
  3078. # DEVMODE.dmTTOption
  3079. DMTT_BITMAP = 1
  3080. DMTT_DOWNLOAD = 2
  3081. DMTT_SUBDEV = 3
  3082. DMTT_DOWNLOAD_OUTLINE = 4
  3083. # DEVMODE.dmCollate
  3084. DMCOLLATE_FALSE = 0
  3085. DMCOLLATE_TRUE = 1
  3086. # DEVMODE.dmDisplayFlags
  3087. DM_GRAYSCALE = 1
  3088. DM_INTERLACED = 2
  3089. # DEVMODE.dmICMMethod
  3090. DMICMMETHOD_NONE = 1
  3091. DMICMMETHOD_SYSTEM = 2
  3092. DMICMMETHOD_DRIVER = 3
  3093. DMICMMETHOD_DEVICE = 4
  3094. DMICMMETHOD_USER = 256
  3095. # DEVMODE.dmICMIntent
  3096. DMICM_SATURATE = 1
  3097. DMICM_CONTRAST = 2
  3098. DMICM_COLORIMETRIC = 3
  3099. DMICM_ABS_COLORIMETRIC = 4
  3100. DMICM_USER = 256
  3101. # DEVMODE.dmMediaType
  3102. DMMEDIA_STANDARD = 1
  3103. DMMEDIA_TRANSPARENCY = 2
  3104. DMMEDIA_GLOSSY = 3
  3105. DMMEDIA_USER = 256
  3106. # DEVMODE.dmDitherType
  3107. DMDITHER_NONE = 1
  3108. DMDITHER_COARSE = 2
  3109. DMDITHER_FINE = 3
  3110. DMDITHER_LINEART = 4
  3111. DMDITHER_ERRORDIFFUSION = 5
  3112. DMDITHER_RESERVED6 = 6
  3113. DMDITHER_RESERVED7 = 7
  3114. DMDITHER_RESERVED8 = 8
  3115. DMDITHER_RESERVED9 = 9
  3116. DMDITHER_GRAYSCALE = 10
  3117. DMDITHER_USER = 256
  3118. # DEVMODE.dmNup
  3119. DMNUP_SYSTEM = 1
  3120. DMNUP_ONEUP = 2
  3121. # used with ExtEscape
  3122. FEATURESETTING_NUP = 0
  3123. FEATURESETTING_OUTPUT = 1
  3124. FEATURESETTING_PSLEVEL = 2
  3125. FEATURESETTING_CUSTPAPER = 3
  3126. FEATURESETTING_MIRROR = 4
  3127. FEATURESETTING_NEGATIVE = 5
  3128. FEATURESETTING_PROTOCOL = 6
  3129. FEATURESETTING_PRIVATE_BEGIN = 0x1000
  3130. FEATURESETTING_PRIVATE_END = 0x1FFF
  3131. RDH_RECTANGLES = 1
  3132. GGO_METRICS = 0
  3133. GGO_BITMAP = 1
  3134. GGO_NATIVE = 2
  3135. TT_POLYGON_TYPE = 24
  3136. TT_PRIM_LINE = 1
  3137. TT_PRIM_QSPLINE = 2
  3138. TT_AVAILABLE = 1
  3139. TT_ENABLED = 2
  3140. DM_UPDATE = 1
  3141. DM_COPY = 2
  3142. DM_PROMPT = 4
  3143. DM_MODIFY = 8
  3144. DM_IN_BUFFER = DM_MODIFY
  3145. DM_IN_PROMPT = DM_PROMPT
  3146. DM_OUT_BUFFER = DM_COPY
  3147. DM_OUT_DEFAULT = DM_UPDATE
  3148. # DISPLAY_DEVICE.StateFlags
  3149. DISPLAY_DEVICE_ATTACHED_TO_DESKTOP = 1
  3150. DISPLAY_DEVICE_MULTI_DRIVER = 2
  3151. DISPLAY_DEVICE_PRIMARY_DEVICE = 4
  3152. DISPLAY_DEVICE_MIRRORING_DRIVER = 8
  3153. DISPLAY_DEVICE_VGA_COMPATIBLE = 16
  3154. DISPLAY_DEVICE_REMOVABLE = 32
  3155. DISPLAY_DEVICE_MODESPRUNED = 134217728
  3156. DISPLAY_DEVICE_REMOTE = 67108864
  3157. DISPLAY_DEVICE_DISCONNECT = 33554432
  3158. # DeviceCapabilities types
  3159. DC_FIELDS = 1
  3160. DC_PAPERS = 2
  3161. DC_PAPERSIZE = 3
  3162. DC_MINEXTENT = 4
  3163. DC_MAXEXTENT = 5
  3164. DC_BINS = 6
  3165. DC_DUPLEX = 7
  3166. DC_SIZE = 8
  3167. DC_EXTRA = 9
  3168. DC_VERSION = 10
  3169. DC_DRIVER = 11
  3170. DC_BINNAMES = 12
  3171. DC_ENUMRESOLUTIONS = 13
  3172. DC_FILEDEPENDENCIES = 14
  3173. DC_TRUETYPE = 15
  3174. DC_PAPERNAMES = 16
  3175. DC_ORIENTATION = 17
  3176. DC_COPIES = 18
  3177. DC_BINADJUST = 19
  3178. DC_EMF_COMPLIANT = 20
  3179. DC_DATATYPE_PRODUCED = 21
  3180. DC_COLLATE = 22
  3181. DC_MANUFACTURER = 23
  3182. DC_MODEL = 24
  3183. DC_PERSONALITY = 25
  3184. DC_PRINTRATE = 26
  3185. DC_PRINTRATEUNIT = 27
  3186. DC_PRINTERMEM = 28
  3187. DC_MEDIAREADY = 29
  3188. DC_STAPLE = 30
  3189. DC_PRINTRATEPPM = 31
  3190. DC_COLORDEVICE = 32
  3191. DC_NUP = 33
  3192. DC_MEDIATYPENAMES = 34
  3193. DC_MEDIATYPES = 35
  3194. PRINTRATEUNIT_PPM = 1
  3195. PRINTRATEUNIT_CPS = 2
  3196. PRINTRATEUNIT_LPM = 3
  3197. PRINTRATEUNIT_IPM = 4
  3198. # TrueType constants
  3199. DCTT_BITMAP = 1
  3200. DCTT_DOWNLOAD = 2
  3201. DCTT_SUBDEV = 4
  3202. DCTT_DOWNLOAD_OUTLINE = 8
  3203. DCBA_FACEUPNONE = 0
  3204. DCBA_FACEUPCENTER = 1
  3205. DCBA_FACEUPLEFT = 2
  3206. DCBA_FACEUPRIGHT = 3
  3207. DCBA_FACEDOWNNONE = 256
  3208. DCBA_FACEDOWNCENTER = 257
  3209. DCBA_FACEDOWNLEFT = 258
  3210. DCBA_FACEDOWNRIGHT = 259
  3211. CA_NEGATIVE = 1
  3212. CA_LOG_FILTER = 2
  3213. ILLUMINANT_DEVICE_DEFAULT = 0
  3214. ILLUMINANT_A = 1
  3215. ILLUMINANT_B = 2
  3216. ILLUMINANT_C = 3
  3217. ILLUMINANT_D50 = 4
  3218. ILLUMINANT_D55 = 5
  3219. ILLUMINANT_D65 = 6
  3220. ILLUMINANT_D75 = 7
  3221. ILLUMINANT_F2 = 8
  3222. ILLUMINANT_MAX_INDEX = ILLUMINANT_F2
  3223. ILLUMINANT_TUNGSTEN = ILLUMINANT_A
  3224. ILLUMINANT_DAYLIGHT = ILLUMINANT_C
  3225. ILLUMINANT_FLUORESCENT = ILLUMINANT_F2
  3226. ILLUMINANT_NTSC = ILLUMINANT_C
  3227. # Generated by h2py from \msvcnt\include\wingdi.h
  3228. # hacked and split manually by mhammond.
  3229. FONTMAPPER_MAX = 10
  3230. ENHMETA_SIGNATURE = 1179469088
  3231. ENHMETA_STOCK_OBJECT = -2147483648
  3232. EMR_HEADER = 1
  3233. EMR_POLYBEZIER = 2
  3234. EMR_POLYGON = 3
  3235. EMR_POLYLINE = 4
  3236. EMR_POLYBEZIERTO = 5
  3237. EMR_POLYLINETO = 6
  3238. EMR_POLYPOLYLINE = 7
  3239. EMR_POLYPOLYGON = 8
  3240. EMR_SETWINDOWEXTEX = 9
  3241. EMR_SETWINDOWORGEX = 10
  3242. EMR_SETVIEWPORTEXTEX = 11
  3243. EMR_SETVIEWPORTORGEX = 12
  3244. EMR_SETBRUSHORGEX = 13
  3245. EMR_EOF = 14
  3246. EMR_SETPIXELV = 15
  3247. EMR_SETMAPPERFLAGS = 16
  3248. EMR_SETMAPMODE = 17
  3249. EMR_SETBKMODE = 18
  3250. EMR_SETPOLYFILLMODE = 19
  3251. EMR_SETROP2 = 20
  3252. EMR_SETSTRETCHBLTMODE = 21
  3253. EMR_SETTEXTALIGN = 22
  3254. EMR_SETCOLORADJUSTMENT = 23
  3255. EMR_SETTEXTCOLOR = 24
  3256. EMR_SETBKCOLOR = 25
  3257. EMR_OFFSETCLIPRGN = 26
  3258. EMR_MOVETOEX = 27
  3259. EMR_SETMETARGN = 28
  3260. EMR_EXCLUDECLIPRECT = 29
  3261. EMR_INTERSECTCLIPRECT = 30
  3262. EMR_SCALEVIEWPORTEXTEX = 31
  3263. EMR_SCALEWINDOWEXTEX = 32
  3264. EMR_SAVEDC = 33
  3265. EMR_RESTOREDC = 34
  3266. EMR_SETWORLDTRANSFORM = 35
  3267. EMR_MODIFYWORLDTRANSFORM = 36
  3268. EMR_SELECTOBJECT = 37
  3269. EMR_CREATEPEN = 38
  3270. EMR_CREATEBRUSHINDIRECT = 39
  3271. EMR_DELETEOBJECT = 40
  3272. EMR_ANGLEARC = 41
  3273. EMR_ELLIPSE = 42
  3274. EMR_RECTANGLE = 43
  3275. EMR_ROUNDRECT = 44
  3276. EMR_ARC = 45
  3277. EMR_CHORD = 46
  3278. EMR_PIE = 47
  3279. EMR_SELECTPALETTE = 48
  3280. EMR_CREATEPALETTE = 49
  3281. EMR_SETPALETTEENTRIES = 50
  3282. EMR_RESIZEPALETTE = 51
  3283. EMR_REALIZEPALETTE = 52
  3284. EMR_EXTFLOODFILL = 53
  3285. EMR_LINETO = 54
  3286. EMR_ARCTO = 55
  3287. EMR_POLYDRAW = 56
  3288. EMR_SETARCDIRECTION = 57
  3289. EMR_SETMITERLIMIT = 58
  3290. EMR_BEGINPATH = 59
  3291. EMR_ENDPATH = 60
  3292. EMR_CLOSEFIGURE = 61
  3293. EMR_FILLPATH = 62
  3294. EMR_STROKEANDFILLPATH = 63
  3295. EMR_STROKEPATH = 64
  3296. EMR_FLATTENPATH = 65
  3297. EMR_WIDENPATH = 66
  3298. EMR_SELECTCLIPPATH = 67
  3299. EMR_ABORTPATH = 68
  3300. EMR_GDICOMMENT = 70
  3301. EMR_FILLRGN = 71
  3302. EMR_FRAMERGN = 72
  3303. EMR_INVERTRGN = 73
  3304. EMR_PAINTRGN = 74
  3305. EMR_EXTSELECTCLIPRGN = 75
  3306. EMR_BITBLT = 76
  3307. EMR_STRETCHBLT = 77
  3308. EMR_MASKBLT = 78
  3309. EMR_PLGBLT = 79
  3310. EMR_SETDIBITSTODEVICE = 80
  3311. EMR_STRETCHDIBITS = 81
  3312. EMR_EXTCREATEFONTINDIRECTW = 82
  3313. EMR_EXTTEXTOUTA = 83
  3314. EMR_EXTTEXTOUTW = 84
  3315. EMR_POLYBEZIER16 = 85
  3316. EMR_POLYGON16 = 86
  3317. EMR_POLYLINE16 = 87
  3318. EMR_POLYBEZIERTO16 = 88
  3319. EMR_POLYLINETO16 = 89
  3320. EMR_POLYPOLYLINE16 = 90
  3321. EMR_POLYPOLYGON16 = 91
  3322. EMR_POLYDRAW16 = 92
  3323. EMR_CREATEMONOBRUSH = 93
  3324. EMR_CREATEDIBPATTERNBRUSHPT = 94
  3325. EMR_EXTCREATEPEN = 95
  3326. EMR_POLYTEXTOUTA = 96
  3327. EMR_POLYTEXTOUTW = 97
  3328. EMR_MIN = 1
  3329. EMR_MAX = 97
  3330. # Generated by h2py from \msvcnt\include\wingdi.h
  3331. # hacked and split manually by mhammond.
  3332. PANOSE_COUNT = 10
  3333. PAN_FAMILYTYPE_INDEX = 0
  3334. PAN_SERIFSTYLE_INDEX = 1
  3335. PAN_WEIGHT_INDEX = 2
  3336. PAN_PROPORTION_INDEX = 3
  3337. PAN_CONTRAST_INDEX = 4
  3338. PAN_STROKEVARIATION_INDEX = 5
  3339. PAN_ARMSTYLE_INDEX = 6
  3340. PAN_LETTERFORM_INDEX = 7
  3341. PAN_MIDLINE_INDEX = 8
  3342. PAN_XHEIGHT_INDEX = 9
  3343. PAN_CULTURE_LATIN = 0
  3344. PAN_ANY = 0
  3345. PAN_NO_FIT = 1
  3346. PAN_FAMILY_TEXT_DISPLAY = 2
  3347. PAN_FAMILY_SCRIPT = 3
  3348. PAN_FAMILY_DECORATIVE = 4
  3349. PAN_FAMILY_PICTORIAL = 5
  3350. PAN_SERIF_COVE = 2
  3351. PAN_SERIF_OBTUSE_COVE = 3
  3352. PAN_SERIF_SQUARE_COVE = 4
  3353. PAN_SERIF_OBTUSE_SQUARE_COVE = 5
  3354. PAN_SERIF_SQUARE = 6
  3355. PAN_SERIF_THIN = 7
  3356. PAN_SERIF_BONE = 8
  3357. PAN_SERIF_EXAGGERATED = 9
  3358. PAN_SERIF_TRIANGLE = 10
  3359. PAN_SERIF_NORMAL_SANS = 11
  3360. PAN_SERIF_OBTUSE_SANS = 12
  3361. PAN_SERIF_PERP_SANS = 13
  3362. PAN_SERIF_FLARED = 14
  3363. PAN_SERIF_ROUNDED = 15
  3364. PAN_WEIGHT_VERY_LIGHT = 2
  3365. PAN_WEIGHT_LIGHT = 3
  3366. PAN_WEIGHT_THIN = 4
  3367. PAN_WEIGHT_BOOK = 5
  3368. PAN_WEIGHT_MEDIUM = 6
  3369. PAN_WEIGHT_DEMI = 7
  3370. PAN_WEIGHT_BOLD = 8
  3371. PAN_WEIGHT_HEAVY = 9
  3372. PAN_WEIGHT_BLACK = 10
  3373. PAN_WEIGHT_NORD = 11
  3374. PAN_PROP_OLD_STYLE = 2
  3375. PAN_PROP_MODERN = 3
  3376. PAN_PROP_EVEN_WIDTH = 4
  3377. PAN_PROP_EXPANDED = 5
  3378. PAN_PROP_CONDENSED = 6
  3379. PAN_PROP_VERY_EXPANDED = 7
  3380. PAN_PROP_VERY_CONDENSED = 8
  3381. PAN_PROP_MONOSPACED = 9
  3382. PAN_CONTRAST_NONE = 2
  3383. PAN_CONTRAST_VERY_LOW = 3
  3384. PAN_CONTRAST_LOW = 4
  3385. PAN_CONTRAST_MEDIUM_LOW = 5
  3386. PAN_CONTRAST_MEDIUM = 6
  3387. PAN_CONTRAST_MEDIUM_HIGH = 7
  3388. PAN_CONTRAST_HIGH = 8
  3389. PAN_CONTRAST_VERY_HIGH = 9
  3390. PAN_STROKE_GRADUAL_DIAG = 2
  3391. PAN_STROKE_GRADUAL_TRAN = 3
  3392. PAN_STROKE_GRADUAL_VERT = 4
  3393. PAN_STROKE_GRADUAL_HORZ = 5
  3394. PAN_STROKE_RAPID_VERT = 6
  3395. PAN_STROKE_RAPID_HORZ = 7
  3396. PAN_STROKE_INSTANT_VERT = 8
  3397. PAN_STRAIGHT_ARMS_HORZ = 2
  3398. PAN_STRAIGHT_ARMS_WEDGE = 3
  3399. PAN_STRAIGHT_ARMS_VERT = 4
  3400. PAN_STRAIGHT_ARMS_SINGLE_SERIF = 5
  3401. PAN_STRAIGHT_ARMS_DOUBLE_SERIF = 6
  3402. PAN_BENT_ARMS_HORZ = 7
  3403. PAN_BENT_ARMS_WEDGE = 8
  3404. PAN_BENT_ARMS_VERT = 9
  3405. PAN_BENT_ARMS_SINGLE_SERIF = 10
  3406. PAN_BENT_ARMS_DOUBLE_SERIF = 11
  3407. PAN_LETT_NORMAL_CONTACT = 2
  3408. PAN_LETT_NORMAL_WEIGHTED = 3
  3409. PAN_LETT_NORMAL_BOXED = 4
  3410. PAN_LETT_NORMAL_FLATTENED = 5
  3411. PAN_LETT_NORMAL_ROUNDED = 6
  3412. PAN_LETT_NORMAL_OFF_CENTER = 7
  3413. PAN_LETT_NORMAL_SQUARE = 8
  3414. PAN_LETT_OBLIQUE_CONTACT = 9
  3415. PAN_LETT_OBLIQUE_WEIGHTED = 10
  3416. PAN_LETT_OBLIQUE_BOXED = 11
  3417. PAN_LETT_OBLIQUE_FLATTENED = 12
  3418. PAN_LETT_OBLIQUE_ROUNDED = 13
  3419. PAN_LETT_OBLIQUE_OFF_CENTER = 14
  3420. PAN_LETT_OBLIQUE_SQUARE = 15
  3421. PAN_MIDLINE_STANDARD_TRIMMED = 2
  3422. PAN_MIDLINE_STANDARD_POINTED = 3
  3423. PAN_MIDLINE_STANDARD_SERIFED = 4
  3424. PAN_MIDLINE_HIGH_TRIMMED = 5
  3425. PAN_MIDLINE_HIGH_POINTED = 6
  3426. PAN_MIDLINE_HIGH_SERIFED = 7
  3427. PAN_MIDLINE_CONSTANT_TRIMMED = 8
  3428. PAN_MIDLINE_CONSTANT_POINTED = 9
  3429. PAN_MIDLINE_CONSTANT_SERIFED = 10
  3430. PAN_MIDLINE_LOW_TRIMMED = 11
  3431. PAN_MIDLINE_LOW_POINTED = 12
  3432. PAN_MIDLINE_LOW_SERIFED = 13
  3433. PAN_XHEIGHT_CONSTANT_SMALL = 2
  3434. PAN_XHEIGHT_CONSTANT_STD = 3
  3435. PAN_XHEIGHT_CONSTANT_LARGE = 4
  3436. PAN_XHEIGHT_DUCKING_SMALL = 5
  3437. PAN_XHEIGHT_DUCKING_STD = 6
  3438. PAN_XHEIGHT_DUCKING_LARGE = 7
  3439. ELF_VENDOR_SIZE = 4
  3440. ELF_VERSION = 0
  3441. ELF_CULTURE_LATIN = 0
  3442. RASTER_FONTTYPE = 1
  3443. DEVICE_FONTTYPE = 2
  3444. TRUETYPE_FONTTYPE = 4
  3445. def PALETTEINDEX(i): return ((16777216 | (i)))
  3446. PC_RESERVED = 1
  3447. PC_EXPLICIT = 2
  3448. PC_NOCOLLAPSE = 4
  3449. def GetRValue(rgb): return rgb & 0xff
  3450. def GetGValue(rgb): return (rgb >> 8) & 0xff
  3451. def GetBValue(rgb): return (rgb >> 16) & 0xff
  3452. TRANSPARENT = 1
  3453. OPAQUE = 2
  3454. BKMODE_LAST = 2
  3455. GM_COMPATIBLE = 1
  3456. GM_ADVANCED = 2
  3457. GM_LAST = 2
  3458. PT_CLOSEFIGURE = 1
  3459. PT_LINETO = 2
  3460. PT_BEZIERTO = 4
  3461. PT_MOVETO = 6
  3462. MM_TEXT = 1
  3463. MM_LOMETRIC = 2
  3464. MM_HIMETRIC = 3
  3465. MM_LOENGLISH = 4
  3466. MM_HIENGLISH = 5
  3467. MM_TWIPS = 6
  3468. MM_ISOTROPIC = 7
  3469. MM_ANISOTROPIC = 8
  3470. MM_MIN = MM_TEXT
  3471. MM_MAX = MM_ANISOTROPIC
  3472. MM_MAX_FIXEDSCALE = MM_TWIPS
  3473. ABSOLUTE = 1
  3474. RELATIVE = 2
  3475. WHITE_BRUSH = 0
  3476. LTGRAY_BRUSH = 1
  3477. GRAY_BRUSH = 2
  3478. DKGRAY_BRUSH = 3
  3479. BLACK_BRUSH = 4
  3480. NULL_BRUSH = 5
  3481. HOLLOW_BRUSH = NULL_BRUSH
  3482. WHITE_PEN = 6
  3483. BLACK_PEN = 7
  3484. NULL_PEN = 8
  3485. OEM_FIXED_FONT = 10
  3486. ANSI_FIXED_FONT = 11
  3487. ANSI_VAR_FONT = 12
  3488. SYSTEM_FONT = 13
  3489. DEVICE_DEFAULT_FONT = 14
  3490. DEFAULT_PALETTE = 15
  3491. SYSTEM_FIXED_FONT = 16
  3492. STOCK_LAST = 16
  3493. CLR_INVALID = -1
  3494. DC_BRUSH = 18
  3495. DC_PEN = 19
  3496. # Exception/Status codes from winuser.h and winnt.h
  3497. STATUS_WAIT_0 = 0
  3498. STATUS_ABANDONED_WAIT_0 = 128
  3499. STATUS_USER_APC = 192
  3500. STATUS_TIMEOUT = 258
  3501. STATUS_PENDING = 259
  3502. STATUS_SEGMENT_NOTIFICATION = 1073741829
  3503. STATUS_GUARD_PAGE_VIOLATION = -2147483647
  3504. STATUS_DATATYPE_MISALIGNMENT = -2147483646
  3505. STATUS_BREAKPOINT = -2147483645
  3506. STATUS_SINGLE_STEP = -2147483644
  3507. STATUS_ACCESS_VIOLATION = -1073741819
  3508. STATUS_IN_PAGE_ERROR = -1073741818
  3509. STATUS_INVALID_HANDLE = -1073741816
  3510. STATUS_NO_MEMORY = -1073741801
  3511. STATUS_ILLEGAL_INSTRUCTION = -1073741795
  3512. STATUS_NONCONTINUABLE_EXCEPTION = -1073741787
  3513. STATUS_INVALID_DISPOSITION = -1073741786
  3514. STATUS_ARRAY_BOUNDS_EXCEEDED = -1073741684
  3515. STATUS_FLOAT_DENORMAL_OPERAND = -1073741683
  3516. STATUS_FLOAT_DIVIDE_BY_ZERO = -1073741682
  3517. STATUS_FLOAT_INEXACT_RESULT = -1073741681
  3518. STATUS_FLOAT_INVALID_OPERATION = -1073741680
  3519. STATUS_FLOAT_OVERFLOW = -1073741679
  3520. STATUS_FLOAT_STACK_CHECK = -1073741678
  3521. STATUS_FLOAT_UNDERFLOW = -1073741677
  3522. STATUS_INTEGER_DIVIDE_BY_ZERO = -1073741676
  3523. STATUS_INTEGER_OVERFLOW = -1073741675
  3524. STATUS_PRIVILEGED_INSTRUCTION = -1073741674
  3525. STATUS_STACK_OVERFLOW = -1073741571
  3526. STATUS_CONTROL_C_EXIT = -1073741510
  3527. WAIT_FAILED = -1
  3528. WAIT_OBJECT_0 = STATUS_WAIT_0 + 0
  3529. WAIT_ABANDONED = STATUS_ABANDONED_WAIT_0 + 0
  3530. WAIT_ABANDONED_0 = STATUS_ABANDONED_WAIT_0 + 0
  3531. WAIT_TIMEOUT = STATUS_TIMEOUT
  3532. WAIT_IO_COMPLETION = STATUS_USER_APC
  3533. STILL_ACTIVE = STATUS_PENDING
  3534. EXCEPTION_ACCESS_VIOLATION = STATUS_ACCESS_VIOLATION
  3535. EXCEPTION_DATATYPE_MISALIGNMENT = STATUS_DATATYPE_MISALIGNMENT
  3536. EXCEPTION_BREAKPOINT = STATUS_BREAKPOINT
  3537. EXCEPTION_SINGLE_STEP = STATUS_SINGLE_STEP
  3538. EXCEPTION_ARRAY_BOUNDS_EXCEEDED = STATUS_ARRAY_BOUNDS_EXCEEDED
  3539. EXCEPTION_FLT_DENORMAL_OPERAND = STATUS_FLOAT_DENORMAL_OPERAND
  3540. EXCEPTION_FLT_DIVIDE_BY_ZERO = STATUS_FLOAT_DIVIDE_BY_ZERO
  3541. EXCEPTION_FLT_INEXACT_RESULT = STATUS_FLOAT_INEXACT_RESULT
  3542. EXCEPTION_FLT_INVALID_OPERATION = STATUS_FLOAT_INVALID_OPERATION
  3543. EXCEPTION_FLT_OVERFLOW = STATUS_FLOAT_OVERFLOW
  3544. EXCEPTION_FLT_STACK_CHECK = STATUS_FLOAT_STACK_CHECK
  3545. EXCEPTION_FLT_UNDERFLOW = STATUS_FLOAT_UNDERFLOW
  3546. EXCEPTION_INT_DIVIDE_BY_ZERO = STATUS_INTEGER_DIVIDE_BY_ZERO
  3547. EXCEPTION_INT_OVERFLOW = STATUS_INTEGER_OVERFLOW
  3548. EXCEPTION_PRIV_INSTRUCTION = STATUS_PRIVILEGED_INSTRUCTION
  3549. EXCEPTION_IN_PAGE_ERROR = STATUS_IN_PAGE_ERROR
  3550. EXCEPTION_ILLEGAL_INSTRUCTION = STATUS_ILLEGAL_INSTRUCTION
  3551. EXCEPTION_NONCONTINUABLE_EXCEPTION = STATUS_NONCONTINUABLE_EXCEPTION
  3552. EXCEPTION_STACK_OVERFLOW = STATUS_STACK_OVERFLOW
  3553. EXCEPTION_INVALID_DISPOSITION = STATUS_INVALID_DISPOSITION
  3554. EXCEPTION_GUARD_PAGE = STATUS_GUARD_PAGE_VIOLATION
  3555. EXCEPTION_INVALID_HANDLE = STATUS_INVALID_HANDLE
  3556. CONTROL_C_EXIT = STATUS_CONTROL_C_EXIT
  3557. # winuser.h line 8594
  3558. # constants used with SystemParametersInfo
  3559. SPI_GETBEEP = 1
  3560. SPI_SETBEEP = 2
  3561. SPI_GETMOUSE = 3
  3562. SPI_SETMOUSE = 4
  3563. SPI_GETBORDER = 5
  3564. SPI_SETBORDER = 6
  3565. SPI_GETKEYBOARDSPEED = 10
  3566. SPI_SETKEYBOARDSPEED = 11
  3567. SPI_LANGDRIVER = 12
  3568. SPI_ICONHORIZONTALSPACING = 13
  3569. SPI_GETSCREENSAVETIMEOUT = 14
  3570. SPI_SETSCREENSAVETIMEOUT = 15
  3571. SPI_GETSCREENSAVEACTIVE = 16
  3572. SPI_SETSCREENSAVEACTIVE = 17
  3573. SPI_GETGRIDGRANULARITY = 18
  3574. SPI_SETGRIDGRANULARITY = 19
  3575. SPI_SETDESKWALLPAPER = 20
  3576. SPI_SETDESKPATTERN = 21
  3577. SPI_GETKEYBOARDDELAY = 22
  3578. SPI_SETKEYBOARDDELAY = 23
  3579. SPI_ICONVERTICALSPACING = 24
  3580. SPI_GETICONTITLEWRAP = 25
  3581. SPI_SETICONTITLEWRAP = 26
  3582. SPI_GETMENUDROPALIGNMENT = 27
  3583. SPI_SETMENUDROPALIGNMENT = 28
  3584. SPI_SETDOUBLECLKWIDTH = 29
  3585. SPI_SETDOUBLECLKHEIGHT = 30
  3586. SPI_GETICONTITLELOGFONT = 31
  3587. SPI_SETDOUBLECLICKTIME = 32
  3588. SPI_SETMOUSEBUTTONSWAP = 33
  3589. SPI_SETICONTITLELOGFONT = 34
  3590. SPI_GETFASTTASKSWITCH = 35
  3591. SPI_SETFASTTASKSWITCH = 36
  3592. SPI_SETDRAGFULLWINDOWS = 37
  3593. SPI_GETDRAGFULLWINDOWS = 38
  3594. SPI_GETNONCLIENTMETRICS = 41
  3595. SPI_SETNONCLIENTMETRICS = 42
  3596. SPI_GETMINIMIZEDMETRICS = 43
  3597. SPI_SETMINIMIZEDMETRICS = 44
  3598. SPI_GETICONMETRICS = 45
  3599. SPI_SETICONMETRICS = 46
  3600. SPI_SETWORKAREA = 47
  3601. SPI_GETWORKAREA = 48
  3602. SPI_SETPENWINDOWS = 49
  3603. SPI_GETFILTERKEYS = 50
  3604. SPI_SETFILTERKEYS = 51
  3605. SPI_GETTOGGLEKEYS = 52
  3606. SPI_SETTOGGLEKEYS = 53
  3607. SPI_GETMOUSEKEYS = 54
  3608. SPI_SETMOUSEKEYS = 55
  3609. SPI_GETSHOWSOUNDS = 56
  3610. SPI_SETSHOWSOUNDS = 57
  3611. SPI_GETSTICKYKEYS = 58
  3612. SPI_SETSTICKYKEYS = 59
  3613. SPI_GETACCESSTIMEOUT = 60
  3614. SPI_SETACCESSTIMEOUT = 61
  3615. SPI_GETSERIALKEYS = 62
  3616. SPI_SETSERIALKEYS = 63
  3617. SPI_GETSOUNDSENTRY = 64
  3618. SPI_SETSOUNDSENTRY = 65
  3619. SPI_GETHIGHCONTRAST = 66
  3620. SPI_SETHIGHCONTRAST = 67
  3621. SPI_GETKEYBOARDPREF = 68
  3622. SPI_SETKEYBOARDPREF = 69
  3623. SPI_GETSCREENREADER = 70
  3624. SPI_SETSCREENREADER = 71
  3625. SPI_GETANIMATION = 72
  3626. SPI_SETANIMATION = 73
  3627. SPI_GETFONTSMOOTHING = 74
  3628. SPI_SETFONTSMOOTHING = 75
  3629. SPI_SETDRAGWIDTH = 76
  3630. SPI_SETDRAGHEIGHT = 77
  3631. SPI_SETHANDHELD = 78
  3632. SPI_GETLOWPOWERTIMEOUT = 79
  3633. SPI_GETPOWEROFFTIMEOUT = 80
  3634. SPI_SETLOWPOWERTIMEOUT = 81
  3635. SPI_SETPOWEROFFTIMEOUT = 82
  3636. SPI_GETLOWPOWERACTIVE = 83
  3637. SPI_GETPOWEROFFACTIVE = 84
  3638. SPI_SETLOWPOWERACTIVE = 85
  3639. SPI_SETPOWEROFFACTIVE = 86
  3640. SPI_SETCURSORS = 87
  3641. SPI_SETICONS = 88
  3642. SPI_GETDEFAULTINPUTLANG = 89
  3643. SPI_SETDEFAULTINPUTLANG = 90
  3644. SPI_SETLANGTOGGLE = 91
  3645. SPI_GETWINDOWSEXTENSION = 92
  3646. SPI_SETMOUSETRAILS = 93
  3647. SPI_GETMOUSETRAILS = 94
  3648. SPI_GETSNAPTODEFBUTTON = 95
  3649. SPI_SETSNAPTODEFBUTTON = 96
  3650. SPI_SETSCREENSAVERRUNNING = 97
  3651. SPI_SCREENSAVERRUNNING = SPI_SETSCREENSAVERRUNNING
  3652. SPI_GETMOUSEHOVERWIDTH = 98
  3653. SPI_SETMOUSEHOVERWIDTH = 99
  3654. SPI_GETMOUSEHOVERHEIGHT = 100
  3655. SPI_SETMOUSEHOVERHEIGHT = 101
  3656. SPI_GETMOUSEHOVERTIME = 102
  3657. SPI_SETMOUSEHOVERTIME = 103
  3658. SPI_GETWHEELSCROLLLINES = 104
  3659. SPI_SETWHEELSCROLLLINES = 105
  3660. SPI_GETMENUSHOWDELAY = 106
  3661. SPI_SETMENUSHOWDELAY = 107
  3662. SPI_GETSHOWIMEUI = 110
  3663. SPI_SETSHOWIMEUI = 111
  3664. SPI_GETMOUSESPEED = 112
  3665. SPI_SETMOUSESPEED = 113
  3666. SPI_GETSCREENSAVERRUNNING = 114
  3667. SPI_GETDESKWALLPAPER = 115
  3668. SPI_GETACTIVEWINDOWTRACKING = 4096
  3669. SPI_SETACTIVEWINDOWTRACKING = 4097
  3670. SPI_GETMENUANIMATION = 4098
  3671. SPI_SETMENUANIMATION = 4099
  3672. SPI_GETCOMBOBOXANIMATION = 4100
  3673. SPI_SETCOMBOBOXANIMATION = 4101
  3674. SPI_GETLISTBOXSMOOTHSCROLLING = 4102
  3675. SPI_SETLISTBOXSMOOTHSCROLLING = 4103
  3676. SPI_GETGRADIENTCAPTIONS = 4104
  3677. SPI_SETGRADIENTCAPTIONS = 4105
  3678. SPI_GETKEYBOARDCUES = 4106
  3679. SPI_SETKEYBOARDCUES = 4107
  3680. SPI_GETMENUUNDERLINES = 4106
  3681. SPI_SETMENUUNDERLINES = 4107
  3682. SPI_GETACTIVEWNDTRKZORDER = 4108
  3683. SPI_SETACTIVEWNDTRKZORDER = 4109
  3684. SPI_GETHOTTRACKING = 4110
  3685. SPI_SETHOTTRACKING = 4111
  3686. SPI_GETMENUFADE = 4114
  3687. SPI_SETMENUFADE = 4115
  3688. SPI_GETSELECTIONFADE = 4116
  3689. SPI_SETSELECTIONFADE = 4117
  3690. SPI_GETTOOLTIPANIMATION = 4118
  3691. SPI_SETTOOLTIPANIMATION = 4119
  3692. SPI_GETTOOLTIPFADE = 4120
  3693. SPI_SETTOOLTIPFADE = 4121
  3694. SPI_GETCURSORSHADOW = 4122
  3695. SPI_SETCURSORSHADOW = 4123
  3696. SPI_GETMOUSESONAR = 4124
  3697. SPI_SETMOUSESONAR = 4125
  3698. SPI_GETMOUSECLICKLOCK = 4126
  3699. SPI_SETMOUSECLICKLOCK = 4127
  3700. SPI_GETMOUSEVANISH = 4128
  3701. SPI_SETMOUSEVANISH = 4129
  3702. SPI_GETFLATMENU = 4130
  3703. SPI_SETFLATMENU = 4131
  3704. SPI_GETDROPSHADOW = 4132
  3705. SPI_SETDROPSHADOW = 4133
  3706. SPI_GETBLOCKSENDINPUTRESETS = 4134
  3707. SPI_SETBLOCKSENDINPUTRESETS = 4135
  3708. SPI_GETUIEFFECTS = 4158
  3709. SPI_SETUIEFFECTS = 4159
  3710. SPI_GETFOREGROUNDLOCKTIMEOUT = 8192
  3711. SPI_SETFOREGROUNDLOCKTIMEOUT = 8193
  3712. SPI_GETACTIVEWNDTRKTIMEOUT = 8194
  3713. SPI_SETACTIVEWNDTRKTIMEOUT = 8195
  3714. SPI_GETFOREGROUNDFLASHCOUNT = 8196
  3715. SPI_SETFOREGROUNDFLASHCOUNT = 8197
  3716. SPI_GETCARETWIDTH = 8198
  3717. SPI_SETCARETWIDTH = 8199
  3718. SPI_GETMOUSECLICKLOCKTIME = 8200
  3719. SPI_SETMOUSECLICKLOCKTIME = 8201
  3720. SPI_GETFONTSMOOTHINGTYPE = 8202
  3721. SPI_SETFONTSMOOTHINGTYPE = 8203
  3722. SPI_GETFONTSMOOTHINGCONTRAST = 8204
  3723. SPI_SETFONTSMOOTHINGCONTRAST = 8205
  3724. SPI_GETFOCUSBORDERWIDTH = 8206
  3725. SPI_SETFOCUSBORDERWIDTH = 8207
  3726. SPI_GETFOCUSBORDERHEIGHT = 8208
  3727. SPI_SETFOCUSBORDERHEIGHT = 8209
  3728. SPI_GETFONTSMOOTHINGORIENTATION = 8210
  3729. SPI_SETFONTSMOOTHINGORIENTATION = 8211
  3730. # fWinIni flags for SystemParametersInfo
  3731. SPIF_UPDATEINIFILE = 1
  3732. SPIF_SENDWININICHANGE = 2
  3733. SPIF_SENDCHANGE = SPIF_SENDWININICHANGE
  3734. # used with SystemParametersInfo and SPI_GETFONTSMOOTHINGTYPE/SPI_SETFONTSMOOTHINGTYPE
  3735. FE_FONTSMOOTHINGSTANDARD = 1
  3736. FE_FONTSMOOTHINGCLEARTYPE = 2
  3737. FE_FONTSMOOTHINGDOCKING = 32768
  3738. METRICS_USEDEFAULT = -1
  3739. ARW_BOTTOMLEFT = 0
  3740. ARW_BOTTOMRIGHT = 1
  3741. ARW_TOPLEFT = 2
  3742. ARW_TOPRIGHT = 3
  3743. ARW_STARTMASK = 3
  3744. ARW_STARTRIGHT = 1
  3745. ARW_STARTTOP = 2
  3746. ARW_LEFT = 0
  3747. ARW_RIGHT = 0
  3748. ARW_UP = 4
  3749. ARW_DOWN = 4
  3750. ARW_HIDE = 8
  3751. #ARW_VALID = 0x000F
  3752. SERKF_SERIALKEYSON = 1
  3753. SERKF_AVAILABLE = 2
  3754. SERKF_INDICATOR = 4
  3755. HCF_HIGHCONTRASTON = 1
  3756. HCF_AVAILABLE = 2
  3757. HCF_HOTKEYACTIVE = 4
  3758. HCF_CONFIRMHOTKEY = 8
  3759. HCF_HOTKEYSOUND = 16
  3760. HCF_INDICATOR = 32
  3761. HCF_HOTKEYAVAILABLE = 64
  3762. CDS_UPDATEREGISTRY = 1
  3763. CDS_TEST = 2
  3764. CDS_FULLSCREEN = 4
  3765. CDS_GLOBAL = 8
  3766. CDS_SET_PRIMARY = 16
  3767. CDS_RESET = 1073741824
  3768. CDS_SETRECT = 536870912
  3769. CDS_NORESET = 268435456
  3770. # return values from ChangeDisplaySettings and ChangeDisplaySettingsEx
  3771. DISP_CHANGE_SUCCESSFUL = 0
  3772. DISP_CHANGE_RESTART = 1
  3773. DISP_CHANGE_FAILED = -1
  3774. DISP_CHANGE_BADMODE = -2
  3775. DISP_CHANGE_NOTUPDATED = -3
  3776. DISP_CHANGE_BADFLAGS = -4
  3777. DISP_CHANGE_BADPARAM = -5
  3778. DISP_CHANGE_BADDUALVIEW = -6
  3779. ENUM_CURRENT_SETTINGS = -1
  3780. ENUM_REGISTRY_SETTINGS = -2
  3781. FKF_FILTERKEYSON = 1
  3782. FKF_AVAILABLE = 2
  3783. FKF_HOTKEYACTIVE = 4
  3784. FKF_CONFIRMHOTKEY = 8
  3785. FKF_HOTKEYSOUND = 16
  3786. FKF_INDICATOR = 32
  3787. FKF_CLICKON = 64
  3788. SKF_STICKYKEYSON = 1
  3789. SKF_AVAILABLE = 2
  3790. SKF_HOTKEYACTIVE = 4
  3791. SKF_CONFIRMHOTKEY = 8
  3792. SKF_HOTKEYSOUND = 16
  3793. SKF_INDICATOR = 32
  3794. SKF_AUDIBLEFEEDBACK = 64
  3795. SKF_TRISTATE = 128
  3796. SKF_TWOKEYSOFF = 256
  3797. SKF_LALTLATCHED = 268435456
  3798. SKF_LCTLLATCHED = 67108864
  3799. SKF_LSHIFTLATCHED = 16777216
  3800. SKF_RALTLATCHED = 536870912
  3801. SKF_RCTLLATCHED = 134217728
  3802. SKF_RSHIFTLATCHED = 33554432
  3803. SKF_LWINLATCHED = 1073741824
  3804. SKF_RWINLATCHED = -2147483648
  3805. SKF_LALTLOCKED = 1048576
  3806. SKF_LCTLLOCKED = 262144
  3807. SKF_LSHIFTLOCKED = 65536
  3808. SKF_RALTLOCKED = 2097152
  3809. SKF_RCTLLOCKED = 524288
  3810. SKF_RSHIFTLOCKED = 131072
  3811. SKF_LWINLOCKED = 4194304
  3812. SKF_RWINLOCKED = 8388608
  3813. MKF_MOUSEKEYSON = 1
  3814. MKF_AVAILABLE = 2
  3815. MKF_HOTKEYACTIVE = 4
  3816. MKF_CONFIRMHOTKEY = 8
  3817. MKF_HOTKEYSOUND = 16
  3818. MKF_INDICATOR = 32
  3819. MKF_MODIFIERS = 64
  3820. MKF_REPLACENUMBERS = 128
  3821. MKF_LEFTBUTTONSEL = 268435456
  3822. MKF_RIGHTBUTTONSEL = 536870912
  3823. MKF_LEFTBUTTONDOWN = 16777216
  3824. MKF_RIGHTBUTTONDOWN = 33554432
  3825. MKF_MOUSEMODE = -2147483648
  3826. ATF_TIMEOUTON = 1
  3827. ATF_ONOFFFEEDBACK = 2
  3828. SSGF_NONE = 0
  3829. SSGF_DISPLAY = 3
  3830. SSTF_NONE = 0
  3831. SSTF_CHARS = 1
  3832. SSTF_BORDER = 2
  3833. SSTF_DISPLAY = 3
  3834. SSWF_NONE = 0
  3835. SSWF_TITLE = 1
  3836. SSWF_WINDOW = 2
  3837. SSWF_DISPLAY = 3
  3838. SSWF_CUSTOM = 4
  3839. SSF_SOUNDSENTRYON = 1
  3840. SSF_AVAILABLE = 2
  3841. SSF_INDICATOR = 4
  3842. TKF_TOGGLEKEYSON = 1
  3843. TKF_AVAILABLE = 2
  3844. TKF_HOTKEYACTIVE = 4
  3845. TKF_CONFIRMHOTKEY = 8
  3846. TKF_HOTKEYSOUND = 16
  3847. TKF_INDICATOR = 32
  3848. SLE_ERROR = 1
  3849. SLE_MINORERROR = 2
  3850. SLE_WARNING = 3
  3851. MONITOR_DEFAULTTONULL = 0
  3852. MONITOR_DEFAULTTOPRIMARY = 1
  3853. MONITOR_DEFAULTTONEAREST = 2
  3854. MONITORINFOF_PRIMARY = 1
  3855. CCHDEVICENAME = 32
  3856. CHILDID_SELF = 0
  3857. INDEXID_OBJECT = 0
  3858. INDEXID_CONTAINER = 0
  3859. OBJID_WINDOW = 0
  3860. OBJID_SYSMENU = -1
  3861. OBJID_TITLEBAR = -2
  3862. OBJID_MENU = -3
  3863. OBJID_CLIENT = -4
  3864. OBJID_VSCROLL = -5
  3865. OBJID_HSCROLL = -6
  3866. OBJID_SIZEGRIP = -7
  3867. OBJID_CARET = -8
  3868. OBJID_CURSOR = -9
  3869. OBJID_ALERT = -10
  3870. OBJID_SOUND = -11
  3871. EVENT_MIN = 1
  3872. EVENT_MAX = 2147483647
  3873. EVENT_SYSTEM_SOUND = 1
  3874. EVENT_SYSTEM_ALERT = 2
  3875. EVENT_SYSTEM_FOREGROUND = 3
  3876. EVENT_SYSTEM_MENUSTART = 4
  3877. EVENT_SYSTEM_MENUEND = 5
  3878. EVENT_SYSTEM_MENUPOPUPSTART = 6
  3879. EVENT_SYSTEM_MENUPOPUPEND = 7
  3880. EVENT_SYSTEM_CAPTURESTART = 8
  3881. EVENT_SYSTEM_CAPTUREEND = 9
  3882. EVENT_SYSTEM_MOVESIZESTART = 10
  3883. EVENT_SYSTEM_MOVESIZEEND = 11
  3884. EVENT_SYSTEM_CONTEXTHELPSTART = 12
  3885. EVENT_SYSTEM_CONTEXTHELPEND = 13
  3886. EVENT_SYSTEM_DRAGDROPSTART = 14
  3887. EVENT_SYSTEM_DRAGDROPEND = 15
  3888. EVENT_SYSTEM_DIALOGSTART = 16
  3889. EVENT_SYSTEM_DIALOGEND = 17
  3890. EVENT_SYSTEM_SCROLLINGSTART = 18
  3891. EVENT_SYSTEM_SCROLLINGEND = 19
  3892. EVENT_SYSTEM_SWITCHSTART = 20
  3893. EVENT_SYSTEM_SWITCHEND = 21
  3894. EVENT_SYSTEM_MINIMIZESTART = 22
  3895. EVENT_SYSTEM_MINIMIZEEND = 23
  3896. EVENT_OBJECT_CREATE = 32768
  3897. EVENT_OBJECT_DESTROY = 32769
  3898. EVENT_OBJECT_SHOW = 32770
  3899. EVENT_OBJECT_HIDE = 32771
  3900. EVENT_OBJECT_REORDER = 32772
  3901. EVENT_OBJECT_FOCUS = 32773
  3902. EVENT_OBJECT_SELECTION = 32774
  3903. EVENT_OBJECT_SELECTIONADD = 32775
  3904. EVENT_OBJECT_SELECTIONREMOVE = 32776
  3905. EVENT_OBJECT_SELECTIONWITHIN = 32777
  3906. EVENT_OBJECT_STATECHANGE = 32778
  3907. EVENT_OBJECT_LOCATIONCHANGE = 32779
  3908. EVENT_OBJECT_NAMECHANGE = 32780
  3909. EVENT_OBJECT_DESCRIPTIONCHANGE = 32781
  3910. EVENT_OBJECT_VALUECHANGE = 32782
  3911. EVENT_OBJECT_PARENTCHANGE = 32783
  3912. EVENT_OBJECT_HELPCHANGE = 32784
  3913. EVENT_OBJECT_DEFACTIONCHANGE = 32785
  3914. EVENT_OBJECT_ACCELERATORCHANGE = 32786
  3915. SOUND_SYSTEM_STARTUP = 1
  3916. SOUND_SYSTEM_SHUTDOWN = 2
  3917. SOUND_SYSTEM_BEEP = 3
  3918. SOUND_SYSTEM_ERROR = 4
  3919. SOUND_SYSTEM_QUESTION = 5
  3920. SOUND_SYSTEM_WARNING = 6
  3921. SOUND_SYSTEM_INFORMATION = 7
  3922. SOUND_SYSTEM_MAXIMIZE = 8
  3923. SOUND_SYSTEM_MINIMIZE = 9
  3924. SOUND_SYSTEM_RESTOREUP = 10
  3925. SOUND_SYSTEM_RESTOREDOWN = 11
  3926. SOUND_SYSTEM_APPSTART = 12
  3927. SOUND_SYSTEM_FAULT = 13
  3928. SOUND_SYSTEM_APPEND = 14
  3929. SOUND_SYSTEM_MENUCOMMAND = 15
  3930. SOUND_SYSTEM_MENUPOPUP = 16
  3931. CSOUND_SYSTEM = 16
  3932. ALERT_SYSTEM_INFORMATIONAL = 1
  3933. ALERT_SYSTEM_WARNING = 2
  3934. ALERT_SYSTEM_ERROR = 3
  3935. ALERT_SYSTEM_QUERY = 4
  3936. ALERT_SYSTEM_CRITICAL = 5
  3937. CALERT_SYSTEM = 6
  3938. WINEVENT_OUTOFCONTEXT = 0
  3939. WINEVENT_SKIPOWNTHREAD = 1
  3940. WINEVENT_SKIPOWNPROCESS = 2
  3941. WINEVENT_INCONTEXT = 4
  3942. GUI_CARETBLINKING = 1
  3943. GUI_INMOVESIZE = 2
  3944. GUI_INMENUMODE = 4
  3945. GUI_SYSTEMMENUMODE = 8
  3946. GUI_POPUPMENUMODE = 16
  3947. STATE_SYSTEM_UNAVAILABLE = 1
  3948. STATE_SYSTEM_SELECTED = 2
  3949. STATE_SYSTEM_FOCUSED = 4
  3950. STATE_SYSTEM_PRESSED = 8
  3951. STATE_SYSTEM_CHECKED = 16
  3952. STATE_SYSTEM_MIXED = 32
  3953. STATE_SYSTEM_READONLY = 64
  3954. STATE_SYSTEM_HOTTRACKED = 128
  3955. STATE_SYSTEM_DEFAULT = 256
  3956. STATE_SYSTEM_EXPANDED = 512
  3957. STATE_SYSTEM_COLLAPSED = 1024
  3958. STATE_SYSTEM_BUSY = 2048
  3959. STATE_SYSTEM_FLOATING = 4096
  3960. STATE_SYSTEM_MARQUEED = 8192
  3961. STATE_SYSTEM_ANIMATED = 16384
  3962. STATE_SYSTEM_INVISIBLE = 32768
  3963. STATE_SYSTEM_OFFSCREEN = 65536
  3964. STATE_SYSTEM_SIZEABLE = 131072
  3965. STATE_SYSTEM_MOVEABLE = 262144
  3966. STATE_SYSTEM_SELFVOICING = 524288
  3967. STATE_SYSTEM_FOCUSABLE = 1048576
  3968. STATE_SYSTEM_SELECTABLE = 2097152
  3969. STATE_SYSTEM_LINKED = 4194304
  3970. STATE_SYSTEM_TRAVERSED = 8388608
  3971. STATE_SYSTEM_MULTISELECTABLE = 16777216
  3972. STATE_SYSTEM_EXTSELECTABLE = 33554432
  3973. STATE_SYSTEM_ALERT_LOW = 67108864
  3974. STATE_SYSTEM_ALERT_MEDIUM = 134217728
  3975. STATE_SYSTEM_ALERT_HIGH = 268435456
  3976. STATE_SYSTEM_VALID = 536870911
  3977. CCHILDREN_TITLEBAR = 5
  3978. CCHILDREN_SCROLLBAR = 5
  3979. CURSOR_SHOWING = 1
  3980. WS_ACTIVECAPTION = 1
  3981. GA_MIC = 1
  3982. GA_PARENT = 1
  3983. GA_ROOT = 2
  3984. GA_ROOTOWNER = 3
  3985. GA_MAC = 4
  3986. # winuser.h line 1979
  3987. BF_LEFT = 1
  3988. BF_TOP = 2
  3989. BF_RIGHT = 4
  3990. BF_BOTTOM = 8
  3991. BF_TOPLEFT = (BF_TOP | BF_LEFT)
  3992. BF_TOPRIGHT = (BF_TOP | BF_RIGHT)
  3993. BF_BOTTOMLEFT = (BF_BOTTOM | BF_LEFT)
  3994. BF_BOTTOMRIGHT = (BF_BOTTOM | BF_RIGHT)
  3995. BF_RECT = (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)
  3996. BF_DIAGONAL = 16
  3997. BF_DIAGONAL_ENDTOPRIGHT = (BF_DIAGONAL | BF_TOP | BF_RIGHT)
  3998. BF_DIAGONAL_ENDTOPLEFT = (BF_DIAGONAL | BF_TOP | BF_LEFT)
  3999. BF_DIAGONAL_ENDBOTTOMLEFT = (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)
  4000. BF_DIAGONAL_ENDBOTTOMRIGHT = (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)
  4001. BF_MIDDLE = 2048
  4002. BF_SOFT = 4096
  4003. BF_ADJUST = 8192
  4004. BF_FLAT = 16384
  4005. BF_MONO = 32768
  4006. DFC_CAPTION = 1
  4007. DFC_MENU = 2
  4008. DFC_SCROLL = 3
  4009. DFC_BUTTON = 4
  4010. DFC_POPUPMENU = 5
  4011. DFCS_CAPTIONCLOSE = 0
  4012. DFCS_CAPTIONMIN = 1
  4013. DFCS_CAPTIONMAX = 2
  4014. DFCS_CAPTIONRESTORE = 3
  4015. DFCS_CAPTIONHELP = 4
  4016. DFCS_MENUARROW = 0
  4017. DFCS_MENUCHECK = 1
  4018. DFCS_MENUBULLET = 2
  4019. DFCS_MENUARROWRIGHT = 4
  4020. DFCS_SCROLLUP = 0
  4021. DFCS_SCROLLDOWN = 1
  4022. DFCS_SCROLLLEFT = 2
  4023. DFCS_SCROLLRIGHT = 3
  4024. DFCS_SCROLLCOMBOBOX = 5
  4025. DFCS_SCROLLSIZEGRIP = 8
  4026. DFCS_SCROLLSIZEGRIPRIGHT = 16
  4027. DFCS_BUTTONCHECK = 0
  4028. DFCS_BUTTONRADIOIMAGE = 1
  4029. DFCS_BUTTONRADIOMASK = 2
  4030. DFCS_BUTTONRADIO = 4
  4031. DFCS_BUTTON3STATE = 8
  4032. DFCS_BUTTONPUSH = 16
  4033. DFCS_INACTIVE = 256
  4034. DFCS_PUSHED = 512
  4035. DFCS_CHECKED = 1024
  4036. DFCS_TRANSPARENT = 2048
  4037. DFCS_HOT = 4096
  4038. DFCS_ADJUSTRECT = 8192
  4039. DFCS_FLAT = 16384
  4040. DFCS_MONO = 32768
  4041. DC_ACTIVE = 1
  4042. DC_SMALLCAP = 2
  4043. DC_ICON = 4
  4044. DC_TEXT = 8
  4045. DC_INBUTTON = 16
  4046. DC_GRADIENT = 32
  4047. IDANI_OPEN = 1
  4048. IDANI_CLOSE = 2
  4049. IDANI_CAPTION = 3
  4050. CF_TEXT = 1
  4051. CF_BITMAP = 2
  4052. CF_METAFILEPICT = 3
  4053. CF_SYLK = 4
  4054. CF_DIF = 5
  4055. CF_TIFF = 6
  4056. CF_OEMTEXT = 7
  4057. CF_DIB = 8
  4058. CF_PALETTE = 9
  4059. CF_PENDATA = 10
  4060. CF_RIFF = 11
  4061. CF_WAVE = 12
  4062. CF_UNICODETEXT = 13
  4063. CF_ENHMETAFILE = 14
  4064. CF_HDROP = 15
  4065. CF_LOCALE = 16
  4066. CF_DIBV5 = 17
  4067. CF_MAX = 18
  4068. CF_OWNERDISPLAY = 128
  4069. CF_DSPTEXT = 129
  4070. CF_DSPBITMAP = 130
  4071. CF_DSPMETAFILEPICT = 131
  4072. CF_DSPENHMETAFILE = 142
  4073. CF_PRIVATEFIRST = 512
  4074. CF_PRIVATELAST = 767
  4075. CF_GDIOBJFIRST = 768
  4076. CF_GDIOBJLAST = 1023
  4077. FVIRTKEY =1
  4078. FNOINVERT = 2
  4079. FSHIFT = 4
  4080. FCONTROL = 8
  4081. FALT = 16
  4082. WPF_SETMINPOSITION = 1
  4083. WPF_RESTORETOMAXIMIZED = 2
  4084. ODT_MENU = 1
  4085. ODT_LISTBOX = 2
  4086. ODT_COMBOBOX = 3
  4087. ODT_BUTTON = 4
  4088. ODT_STATIC = 5
  4089. ODA_DRAWENTIRE = 1
  4090. ODA_SELECT = 2
  4091. ODA_FOCUS = 4
  4092. ODS_SELECTED = 1
  4093. ODS_GRAYED = 2
  4094. ODS_DISABLED = 4
  4095. ODS_CHECKED = 8
  4096. ODS_FOCUS = 16
  4097. ODS_DEFAULT = 32
  4098. ODS_COMBOBOXEDIT = 4096
  4099. ODS_HOTLIGHT = 64
  4100. ODS_INACTIVE = 128
  4101. PM_NOREMOVE = 0
  4102. PM_REMOVE = 1
  4103. PM_NOYIELD = 2
  4104. MOD_ALT = 1
  4105. MOD_CONTROL = 2
  4106. MOD_SHIFT = 4
  4107. MOD_WIN = 8
  4108. IDHOT_SNAPWINDOW = (-1)
  4109. IDHOT_SNAPDESKTOP = (-2)
  4110. #EW_RESTARTWINDOWS = 0x0042
  4111. #EW_REBOOTSYSTEM = 0x0043
  4112. #EW_EXITANDEXECAPP = 0x0044
  4113. ENDSESSION_LOGOFF = -2147483648
  4114. EWX_LOGOFF = 0
  4115. EWX_SHUTDOWN = 1
  4116. EWX_REBOOT = 2
  4117. EWX_FORCE = 4
  4118. EWX_POWEROFF = 8
  4119. EWX_FORCEIFHUNG = 16
  4120. BSM_ALLCOMPONENTS = 0
  4121. BSM_VXDS = 1
  4122. BSM_NETDRIVER = 2
  4123. BSM_INSTALLABLEDRIVERS = 4
  4124. BSM_APPLICATIONS = 8
  4125. BSM_ALLDESKTOPS = 16
  4126. BSF_QUERY = 1
  4127. BSF_IGNORECURRENTTASK = 2
  4128. BSF_FLUSHDISK = 4
  4129. BSF_NOHANG = 8
  4130. BSF_POSTMESSAGE = 16
  4131. BSF_FORCEIFHUNG = 32
  4132. BSF_NOTIMEOUTIFNOTHUNG = 64
  4133. BROADCAST_QUERY_DENY = 1112363332 # Return this value to deny a query.
  4134. DBWF_LPARAMPOINTER = 32768
  4135. # winuser.h line 3232
  4136. SWP_NOSIZE = 1
  4137. SWP_NOMOVE = 2
  4138. SWP_NOZORDER = 4
  4139. SWP_NOREDRAW = 8
  4140. SWP_NOACTIVATE = 16
  4141. SWP_FRAMECHANGED = 32
  4142. SWP_SHOWWINDOW = 64
  4143. SWP_HIDEWINDOW = 128
  4144. SWP_NOCOPYBITS = 256
  4145. SWP_NOOWNERZORDER = 512
  4146. SWP_NOSENDCHANGING = 1024
  4147. SWP_DRAWFRAME = SWP_FRAMECHANGED
  4148. SWP_NOREPOSITION = SWP_NOOWNERZORDER
  4149. SWP_DEFERERASE = 8192
  4150. SWP_ASYNCWINDOWPOS = 16384
  4151. DLGWINDOWEXTRA = 30
  4152. # winuser.h line 4249
  4153. KEYEVENTF_EXTENDEDKEY = 1
  4154. KEYEVENTF_KEYUP = 2
  4155. # if(_WIN32_WINNT >= 0x0500)
  4156. KEYEVENTF_UNICODE = 4
  4157. KEYEVENTF_SCANCODE = 8
  4158. # endif /* _WIN32_WINNT >= 0x0500 */
  4159. MOUSEEVENTF_MOVE = 1
  4160. MOUSEEVENTF_LEFTDOWN = 2
  4161. MOUSEEVENTF_LEFTUP = 4
  4162. MOUSEEVENTF_RIGHTDOWN = 8
  4163. MOUSEEVENTF_RIGHTUP = 16
  4164. MOUSEEVENTF_MIDDLEDOWN = 32
  4165. MOUSEEVENTF_MIDDLEUP = 64
  4166. MOUSEEVENTF_XDOWN = 128
  4167. MOUSEEVENTF_XUP = 256
  4168. MOUSEEVENTF_WHEEL = 2048
  4169. # if (_WIN32_WINNT >= 0x0600)
  4170. MOUSEEVENTF_HWHEEL = 4096
  4171. # endif
  4172. # if(WINVER >= 0x0600)
  4173. MOUSEEVENTF_MOVE_NOCOALESCE = 8192
  4174. # endif /* WINVER >= 0x0600 */
  4175. MOUSEEVENTF_VIRTUALDESK = 16384
  4176. MOUSEEVENTF_ABSOLUTE = 32768
  4177. INPUT_MOUSE = 0
  4178. INPUT_KEYBOARD = 1
  4179. INPUT_HARDWARE = 2
  4180. MWMO_WAITALL = 1
  4181. MWMO_ALERTABLE = 2
  4182. MWMO_INPUTAVAILABLE = 4
  4183. QS_KEY = 1
  4184. QS_MOUSEMOVE = 2
  4185. QS_MOUSEBUTTON = 4
  4186. QS_POSTMESSAGE = 8
  4187. QS_TIMER = 16
  4188. QS_PAINT = 32
  4189. QS_SENDMESSAGE = 64
  4190. QS_HOTKEY = 128
  4191. QS_MOUSE = (QS_MOUSEMOVE | \
  4192. QS_MOUSEBUTTON)
  4193. QS_INPUT = (QS_MOUSE | \
  4194. QS_KEY)
  4195. QS_ALLEVENTS = (QS_INPUT | \
  4196. QS_POSTMESSAGE | \
  4197. QS_TIMER | \
  4198. QS_PAINT | \
  4199. QS_HOTKEY)
  4200. QS_ALLINPUT = (QS_INPUT | \
  4201. QS_POSTMESSAGE | \
  4202. QS_TIMER | \
  4203. QS_PAINT | \
  4204. QS_HOTKEY | \
  4205. QS_SENDMESSAGE)
  4206. IMN_CLOSESTATUSWINDOW = 1
  4207. IMN_OPENSTATUSWINDOW = 2
  4208. IMN_CHANGECANDIDATE = 3
  4209. IMN_CLOSECANDIDATE = 4
  4210. IMN_OPENCANDIDATE = 5
  4211. IMN_SETCONVERSIONMODE = 6
  4212. IMN_SETSENTENCEMODE = 7
  4213. IMN_SETOPENSTATUS = 8
  4214. IMN_SETCANDIDATEPOS = 9
  4215. IMN_SETCOMPOSITIONFONT = 10
  4216. IMN_SETCOMPOSITIONWINDOW = 11
  4217. IMN_SETSTATUSWINDOWPOS = 12
  4218. IMN_GUIDELINE = 13
  4219. IMN_PRIVATE = 14
  4220. # winuser.h line 8518
  4221. HELP_CONTEXT = 1
  4222. HELP_QUIT = 2
  4223. HELP_INDEX = 3
  4224. HELP_CONTENTS = 3
  4225. HELP_HELPONHELP = 4
  4226. HELP_SETINDEX = 5
  4227. HELP_SETCONTENTS = 5
  4228. HELP_CONTEXTPOPUP = 8
  4229. HELP_FORCEFILE = 9
  4230. HELP_KEY = 257
  4231. HELP_COMMAND = 258
  4232. HELP_PARTIALKEY = 261
  4233. HELP_MULTIKEY = 513
  4234. HELP_SETWINPOS = 515
  4235. HELP_CONTEXTMENU = 10
  4236. HELP_FINDER = 11
  4237. HELP_WM_HELP = 12
  4238. HELP_SETPOPUP_POS = 13
  4239. HELP_TCARD = 32768
  4240. HELP_TCARD_DATA = 16
  4241. HELP_TCARD_OTHER_CALLER = 17
  4242. IDH_NO_HELP = 28440
  4243. IDH_MISSING_CONTEXT = 28441 # Control doesn't have matching help context
  4244. IDH_GENERIC_HELP_BUTTON = 28442 # Property sheet help button
  4245. IDH_OK = 28443
  4246. IDH_CANCEL = 28444
  4247. IDH_HELP = 28445
  4248. GR_GDIOBJECTS = 0 # Count of GDI objects
  4249. GR_USEROBJECTS = 1 # Count of USER objects
  4250. # Generated by h2py from \msvcnt\include\wingdi.h
  4251. # manually added (missed by generation some how!
  4252. SRCCOPY = 13369376 # dest = source
  4253. SRCPAINT = 15597702 # dest = source OR dest
  4254. SRCAND = 8913094 # dest = source AND dest
  4255. SRCINVERT = 6684742 # dest = source XOR dest
  4256. SRCERASE = 4457256 # dest = source AND (NOT dest )
  4257. NOTSRCCOPY = 3342344 # dest = (NOT source)
  4258. NOTSRCERASE = 1114278 # dest = (NOT src) AND (NOT dest)
  4259. MERGECOPY = 12583114 # dest = (source AND pattern)
  4260. MERGEPAINT = 12255782 # dest = (NOT source) OR dest
  4261. PATCOPY = 15728673 # dest = pattern
  4262. PATPAINT = 16452105 # dest = DPSnoo
  4263. PATINVERT = 5898313 # dest = pattern XOR dest
  4264. DSTINVERT = 5570569 # dest = (NOT dest)
  4265. BLACKNESS = 66 # dest = BLACK
  4266. WHITENESS = 16711778 # dest = WHITE
  4267. # hacked and split manually by mhammond.
  4268. R2_BLACK = 1
  4269. R2_NOTMERGEPEN = 2
  4270. R2_MASKNOTPEN = 3
  4271. R2_NOTCOPYPEN = 4
  4272. R2_MASKPENNOT = 5
  4273. R2_NOT = 6
  4274. R2_XORPEN = 7
  4275. R2_NOTMASKPEN = 8
  4276. R2_MASKPEN = 9
  4277. R2_NOTXORPEN = 10
  4278. R2_NOP = 11
  4279. R2_MERGENOTPEN = 12
  4280. R2_COPYPEN = 13
  4281. R2_MERGEPENNOT = 14
  4282. R2_MERGEPEN = 15
  4283. R2_WHITE = 16
  4284. R2_LAST = 16
  4285. GDI_ERROR = (-1)
  4286. ERROR = 0
  4287. NULLREGION = 1
  4288. SIMPLEREGION = 2
  4289. COMPLEXREGION = 3
  4290. RGN_ERROR = ERROR
  4291. RGN_AND = 1
  4292. RGN_OR = 2
  4293. RGN_XOR = 3
  4294. RGN_DIFF = 4
  4295. RGN_COPY = 5
  4296. RGN_MIN = RGN_AND
  4297. RGN_MAX = RGN_COPY
  4298. ## Stretching modes used with Get/SetStretchBltMode
  4299. BLACKONWHITE = 1
  4300. WHITEONBLACK = 2
  4301. COLORONCOLOR = 3
  4302. HALFTONE = 4
  4303. MAXSTRETCHBLTMODE = 4
  4304. STRETCH_ANDSCANS = BLACKONWHITE
  4305. STRETCH_ORSCANS = WHITEONBLACK
  4306. STRETCH_DELETESCANS = COLORONCOLOR
  4307. STRETCH_HALFTONE = HALFTONE
  4308. ALTERNATE = 1
  4309. WINDING = 2
  4310. POLYFILL_LAST = 2
  4311. ## flags used with SetLayout
  4312. LAYOUT_RTL = 1
  4313. LAYOUT_BTT = 2
  4314. LAYOUT_VBH = 4
  4315. LAYOUT_ORIENTATIONMASK = LAYOUT_RTL|LAYOUT_BTT|LAYOUT_VBH
  4316. LAYOUT_BITMAPORIENTATIONPRESERVED = 8
  4317. TA_NOUPDATECP = 0
  4318. TA_UPDATECP = 1
  4319. TA_LEFT = 0
  4320. TA_RIGHT = 2
  4321. TA_CENTER = 6
  4322. TA_TOP = 0
  4323. TA_BOTTOM = 8
  4324. TA_BASELINE = 24
  4325. TA_MASK = (TA_BASELINE+TA_CENTER+TA_UPDATECP)
  4326. VTA_BASELINE = TA_BASELINE
  4327. VTA_LEFT = TA_BOTTOM
  4328. VTA_RIGHT = TA_TOP
  4329. VTA_CENTER = TA_CENTER
  4330. VTA_BOTTOM = TA_RIGHT
  4331. VTA_TOP = TA_LEFT
  4332. ETO_GRAYED = 1
  4333. ETO_OPAQUE = 2
  4334. ETO_CLIPPED = 4
  4335. ASPECT_FILTERING = 1
  4336. DCB_RESET = 1
  4337. DCB_ACCUMULATE = 2
  4338. DCB_DIRTY = DCB_ACCUMULATE
  4339. DCB_SET = (DCB_RESET | DCB_ACCUMULATE)
  4340. DCB_ENABLE = 4
  4341. DCB_DISABLE = 8
  4342. META_SETBKCOLOR = 513
  4343. META_SETBKMODE = 258
  4344. META_SETMAPMODE = 259
  4345. META_SETROP2 = 260
  4346. META_SETRELABS = 261
  4347. META_SETPOLYFILLMODE = 262
  4348. META_SETSTRETCHBLTMODE = 263
  4349. META_SETTEXTCHAREXTRA = 264
  4350. META_SETTEXTCOLOR = 521
  4351. META_SETTEXTJUSTIFICATION = 522
  4352. META_SETWINDOWORG = 523
  4353. META_SETWINDOWEXT = 524
  4354. META_SETVIEWPORTORG = 525
  4355. META_SETVIEWPORTEXT = 526
  4356. META_OFFSETWINDOWORG = 527
  4357. META_SCALEWINDOWEXT = 1040
  4358. META_OFFSETVIEWPORTORG = 529
  4359. META_SCALEVIEWPORTEXT = 1042
  4360. META_LINETO = 531
  4361. META_MOVETO = 532
  4362. META_EXCLUDECLIPRECT = 1045
  4363. META_INTERSECTCLIPRECT = 1046
  4364. META_ARC = 2071
  4365. META_ELLIPSE = 1048
  4366. META_FLOODFILL = 1049
  4367. META_PIE = 2074
  4368. META_RECTANGLE = 1051
  4369. META_ROUNDRECT = 1564
  4370. META_PATBLT = 1565
  4371. META_SAVEDC = 30
  4372. META_SETPIXEL = 1055
  4373. META_OFFSETCLIPRGN = 544
  4374. META_TEXTOUT = 1313
  4375. META_BITBLT = 2338
  4376. META_STRETCHBLT = 2851
  4377. META_POLYGON = 804
  4378. META_POLYLINE = 805
  4379. META_ESCAPE = 1574
  4380. META_RESTOREDC = 295
  4381. META_FILLREGION = 552
  4382. META_FRAMEREGION = 1065
  4383. META_INVERTREGION = 298
  4384. META_PAINTREGION = 299
  4385. META_SELECTCLIPREGION = 300
  4386. META_SELECTOBJECT = 301
  4387. META_SETTEXTALIGN = 302
  4388. META_CHORD = 2096
  4389. META_SETMAPPERFLAGS = 561
  4390. META_EXTTEXTOUT = 2610
  4391. META_SETDIBTODEV = 3379
  4392. META_SELECTPALETTE = 564
  4393. META_REALIZEPALETTE = 53
  4394. META_ANIMATEPALETTE = 1078
  4395. META_SETPALENTRIES = 55
  4396. META_POLYPOLYGON = 1336
  4397. META_RESIZEPALETTE = 313
  4398. META_DIBBITBLT = 2368
  4399. META_DIBSTRETCHBLT = 2881
  4400. META_DIBCREATEPATTERNBRUSH = 322
  4401. META_STRETCHDIB = 3907
  4402. META_EXTFLOODFILL = 1352
  4403. META_DELETEOBJECT = 496
  4404. META_CREATEPALETTE = 247
  4405. META_CREATEPATTERNBRUSH = 505
  4406. META_CREATEPENINDIRECT = 762
  4407. META_CREATEFONTINDIRECT = 763
  4408. META_CREATEBRUSHINDIRECT = 764
  4409. META_CREATEREGION = 1791
  4410. FILE_BEGIN = 0
  4411. FILE_CURRENT = 1
  4412. FILE_END = 2
  4413. FILE_FLAG_WRITE_THROUGH = -2147483648
  4414. FILE_FLAG_OVERLAPPED = 1073741824
  4415. FILE_FLAG_NO_BUFFERING = 536870912
  4416. FILE_FLAG_RANDOM_ACCESS = 268435456
  4417. FILE_FLAG_SEQUENTIAL_SCAN = 134217728
  4418. FILE_FLAG_DELETE_ON_CLOSE = 67108864
  4419. FILE_FLAG_BACKUP_SEMANTICS = 33554432
  4420. FILE_FLAG_POSIX_SEMANTICS = 16777216
  4421. CREATE_NEW = 1
  4422. CREATE_ALWAYS = 2
  4423. OPEN_EXISTING = 3
  4424. OPEN_ALWAYS = 4
  4425. TRUNCATE_EXISTING = 5
  4426. PIPE_ACCESS_INBOUND = 1
  4427. PIPE_ACCESS_OUTBOUND = 2
  4428. PIPE_ACCESS_DUPLEX = 3
  4429. PIPE_CLIENT_END = 0
  4430. PIPE_SERVER_END = 1
  4431. PIPE_WAIT = 0
  4432. PIPE_NOWAIT = 1
  4433. PIPE_READMODE_BYTE = 0
  4434. PIPE_READMODE_MESSAGE = 2
  4435. PIPE_TYPE_BYTE = 0
  4436. PIPE_TYPE_MESSAGE = 4
  4437. PIPE_UNLIMITED_INSTANCES = 255
  4438. SECURITY_CONTEXT_TRACKING = 262144
  4439. SECURITY_EFFECTIVE_ONLY = 524288
  4440. SECURITY_SQOS_PRESENT = 1048576
  4441. SECURITY_VALID_SQOS_FLAGS = 2031616
  4442. DTR_CONTROL_DISABLE = 0
  4443. DTR_CONTROL_ENABLE = 1
  4444. DTR_CONTROL_HANDSHAKE = 2
  4445. RTS_CONTROL_DISABLE = 0
  4446. RTS_CONTROL_ENABLE = 1
  4447. RTS_CONTROL_HANDSHAKE = 2
  4448. RTS_CONTROL_TOGGLE = 3
  4449. GMEM_FIXED = 0
  4450. GMEM_MOVEABLE = 2
  4451. GMEM_NOCOMPACT = 16
  4452. GMEM_NODISCARD = 32
  4453. GMEM_ZEROINIT = 64
  4454. GMEM_MODIFY = 128
  4455. GMEM_DISCARDABLE = 256
  4456. GMEM_NOT_BANKED = 4096
  4457. GMEM_SHARE = 8192
  4458. GMEM_DDESHARE = 8192
  4459. GMEM_NOTIFY = 16384
  4460. GMEM_LOWER = GMEM_NOT_BANKED
  4461. GMEM_VALID_FLAGS = 32626
  4462. GMEM_INVALID_HANDLE = 32768
  4463. GHND = (GMEM_MOVEABLE | GMEM_ZEROINIT)
  4464. GPTR = (GMEM_FIXED | GMEM_ZEROINIT)
  4465. GMEM_DISCARDED = 16384
  4466. GMEM_LOCKCOUNT = 255
  4467. LMEM_FIXED = 0
  4468. LMEM_MOVEABLE = 2
  4469. LMEM_NOCOMPACT = 16
  4470. LMEM_NODISCARD = 32
  4471. LMEM_ZEROINIT = 64
  4472. LMEM_MODIFY = 128
  4473. LMEM_DISCARDABLE = 3840
  4474. LMEM_VALID_FLAGS = 3954
  4475. LMEM_INVALID_HANDLE = 32768
  4476. LHND = (LMEM_MOVEABLE | LMEM_ZEROINIT)
  4477. LPTR = (LMEM_FIXED | LMEM_ZEROINIT)
  4478. NONZEROLHND = (LMEM_MOVEABLE)
  4479. NONZEROLPTR = (LMEM_FIXED)
  4480. LMEM_DISCARDED = 16384
  4481. LMEM_LOCKCOUNT = 255
  4482. DEBUG_PROCESS = 1
  4483. DEBUG_ONLY_THIS_PROCESS = 2
  4484. CREATE_SUSPENDED = 4
  4485. DETACHED_PROCESS = 8
  4486. CREATE_NEW_CONSOLE = 16
  4487. NORMAL_PRIORITY_CLASS = 32
  4488. IDLE_PRIORITY_CLASS = 64
  4489. HIGH_PRIORITY_CLASS = 128
  4490. REALTIME_PRIORITY_CLASS = 256
  4491. CREATE_NEW_PROCESS_GROUP = 512
  4492. CREATE_UNICODE_ENVIRONMENT = 1024
  4493. CREATE_SEPARATE_WOW_VDM = 2048
  4494. CREATE_SHARED_WOW_VDM = 4096
  4495. CREATE_DEFAULT_ERROR_MODE = 67108864
  4496. CREATE_NO_WINDOW = 134217728
  4497. PROFILE_USER = 268435456
  4498. PROFILE_KERNEL = 536870912
  4499. PROFILE_SERVER = 1073741824
  4500. THREAD_BASE_PRIORITY_LOWRT = 15
  4501. THREAD_BASE_PRIORITY_MAX = 2
  4502. THREAD_BASE_PRIORITY_MIN = -2
  4503. THREAD_BASE_PRIORITY_IDLE = -15
  4504. THREAD_PRIORITY_LOWEST = THREAD_BASE_PRIORITY_MIN
  4505. THREAD_PRIORITY_BELOW_NORMAL = THREAD_PRIORITY_LOWEST+1
  4506. THREAD_PRIORITY_HIGHEST = THREAD_BASE_PRIORITY_MAX
  4507. THREAD_PRIORITY_ABOVE_NORMAL = THREAD_PRIORITY_HIGHEST-1
  4508. THREAD_PRIORITY_ERROR_RETURN = MAXLONG
  4509. THREAD_PRIORITY_TIME_CRITICAL = THREAD_BASE_PRIORITY_LOWRT
  4510. THREAD_PRIORITY_IDLE = THREAD_BASE_PRIORITY_IDLE
  4511. THREAD_PRIORITY_NORMAL = 0
  4512. THREAD_MODE_BACKGROUND_BEGIN = 0x00010000
  4513. THREAD_MODE_BACKGROUND_END = 0x00020000
  4514. EXCEPTION_DEBUG_EVENT = 1
  4515. CREATE_THREAD_DEBUG_EVENT = 2
  4516. CREATE_PROCESS_DEBUG_EVENT = 3
  4517. EXIT_THREAD_DEBUG_EVENT = 4
  4518. EXIT_PROCESS_DEBUG_EVENT = 5
  4519. LOAD_DLL_DEBUG_EVENT = 6
  4520. UNLOAD_DLL_DEBUG_EVENT = 7
  4521. OUTPUT_DEBUG_STRING_EVENT = 8
  4522. RIP_EVENT = 9
  4523. DRIVE_UNKNOWN = 0
  4524. DRIVE_NO_ROOT_DIR = 1
  4525. DRIVE_REMOVABLE = 2
  4526. DRIVE_FIXED = 3
  4527. DRIVE_REMOTE = 4
  4528. DRIVE_CDROM = 5
  4529. DRIVE_RAMDISK = 6
  4530. FILE_TYPE_UNKNOWN = 0
  4531. FILE_TYPE_DISK = 1
  4532. FILE_TYPE_CHAR = 2
  4533. FILE_TYPE_PIPE = 3
  4534. FILE_TYPE_REMOTE = 32768
  4535. NOPARITY = 0
  4536. ODDPARITY = 1
  4537. EVENPARITY = 2
  4538. MARKPARITY = 3
  4539. SPACEPARITY = 4
  4540. ONESTOPBIT = 0
  4541. ONE5STOPBITS = 1
  4542. TWOSTOPBITS = 2
  4543. CBR_110 = 110
  4544. CBR_300 = 300
  4545. CBR_600 = 600
  4546. CBR_1200 = 1200
  4547. CBR_2400 = 2400
  4548. CBR_4800 = 4800
  4549. CBR_9600 = 9600
  4550. CBR_14400 = 14400
  4551. CBR_19200 = 19200
  4552. CBR_38400 = 38400
  4553. CBR_56000 = 56000
  4554. CBR_57600 = 57600
  4555. CBR_115200 = 115200
  4556. CBR_128000 = 128000
  4557. CBR_256000 = 256000
  4558. S_QUEUEEMPTY = 0
  4559. S_THRESHOLD = 1
  4560. S_ALLTHRESHOLD = 2
  4561. S_NORMAL = 0
  4562. S_LEGATO = 1
  4563. S_STACCATO = 2
  4564. NMPWAIT_WAIT_FOREVER = -1
  4565. NMPWAIT_NOWAIT = 1
  4566. NMPWAIT_USE_DEFAULT_WAIT = 0
  4567. OF_READ = 0
  4568. OF_WRITE = 1
  4569. OF_READWRITE = 2
  4570. OF_SHARE_COMPAT = 0
  4571. OF_SHARE_EXCLUSIVE = 16
  4572. OF_SHARE_DENY_WRITE = 32
  4573. OF_SHARE_DENY_READ = 48
  4574. OF_SHARE_DENY_NONE = 64
  4575. OF_PARSE = 256
  4576. OF_DELETE = 512
  4577. OF_VERIFY = 1024
  4578. OF_CANCEL = 2048
  4579. OF_CREATE = 4096
  4580. OF_PROMPT = 8192
  4581. OF_EXIST = 16384
  4582. OF_REOPEN = 32768
  4583. OFS_MAXPATHNAME = 128
  4584. MAXINTATOM = 49152
  4585. # winbase.h
  4586. PROCESS_HEAP_REGION = 1
  4587. PROCESS_HEAP_UNCOMMITTED_RANGE = 2
  4588. PROCESS_HEAP_ENTRY_BUSY = 4
  4589. PROCESS_HEAP_ENTRY_MOVEABLE = 16
  4590. PROCESS_HEAP_ENTRY_DDESHARE = 32
  4591. SCS_32BIT_BINARY = 0
  4592. SCS_DOS_BINARY = 1
  4593. SCS_WOW_BINARY = 2
  4594. SCS_PIF_BINARY = 3
  4595. SCS_POSIX_BINARY = 4
  4596. SCS_OS216_BINARY = 5
  4597. SEM_FAILCRITICALERRORS = 1
  4598. SEM_NOGPFAULTERRORBOX = 2
  4599. SEM_NOALIGNMENTFAULTEXCEPT = 4
  4600. SEM_NOOPENFILEERRORBOX = 32768
  4601. LOCKFILE_FAIL_IMMEDIATELY = 1
  4602. LOCKFILE_EXCLUSIVE_LOCK = 2
  4603. HANDLE_FLAG_INHERIT = 1
  4604. HANDLE_FLAG_PROTECT_FROM_CLOSE = 2
  4605. HINSTANCE_ERROR = 32
  4606. GET_TAPE_MEDIA_INFORMATION = 0
  4607. GET_TAPE_DRIVE_INFORMATION = 1
  4608. SET_TAPE_MEDIA_INFORMATION = 0
  4609. SET_TAPE_DRIVE_INFORMATION = 1
  4610. FORMAT_MESSAGE_ALLOCATE_BUFFER = 256
  4611. FORMAT_MESSAGE_IGNORE_INSERTS = 512
  4612. FORMAT_MESSAGE_FROM_STRING = 1024
  4613. FORMAT_MESSAGE_FROM_HMODULE = 2048
  4614. FORMAT_MESSAGE_FROM_SYSTEM = 4096
  4615. FORMAT_MESSAGE_ARGUMENT_ARRAY = 8192
  4616. FORMAT_MESSAGE_MAX_WIDTH_MASK = 255
  4617. BACKUP_INVALID = 0
  4618. BACKUP_DATA = 1
  4619. BACKUP_EA_DATA = 2
  4620. BACKUP_SECURITY_DATA = 3
  4621. BACKUP_ALTERNATE_DATA = 4
  4622. BACKUP_LINK = 5
  4623. BACKUP_PROPERTY_DATA = 6
  4624. BACKUP_OBJECT_ID = 7
  4625. BACKUP_REPARSE_DATA = 8
  4626. BACKUP_SPARSE_BLOCK = 9
  4627. STREAM_NORMAL_ATTRIBUTE = 0
  4628. STREAM_MODIFIED_WHEN_READ = 1
  4629. STREAM_CONTAINS_SECURITY = 2
  4630. STREAM_CONTAINS_PROPERTIES = 4
  4631. STARTF_USESHOWWINDOW = 1
  4632. STARTF_USESIZE = 2
  4633. STARTF_USEPOSITION = 4
  4634. STARTF_USECOUNTCHARS = 8
  4635. STARTF_USEFILLATTRIBUTE = 16
  4636. STARTF_FORCEONFEEDBACK = 64
  4637. STARTF_FORCEOFFFEEDBACK = 128
  4638. STARTF_USESTDHANDLES = 256
  4639. STARTF_USEHOTKEY = 512
  4640. SHUTDOWN_NORETRY = 1
  4641. DONT_RESOLVE_DLL_REFERENCES = 1
  4642. LOAD_LIBRARY_AS_DATAFILE = 2
  4643. LOAD_WITH_ALTERED_SEARCH_PATH = 8
  4644. DDD_RAW_TARGET_PATH = 1
  4645. DDD_REMOVE_DEFINITION = 2
  4646. DDD_EXACT_MATCH_ON_REMOVE = 4
  4647. MOVEFILE_REPLACE_EXISTING = 1
  4648. MOVEFILE_COPY_ALLOWED = 2
  4649. MOVEFILE_DELAY_UNTIL_REBOOT = 4
  4650. MAX_COMPUTERNAME_LENGTH = 15
  4651. LOGON32_LOGON_INTERACTIVE = 2
  4652. LOGON32_LOGON_NETWORK = 3
  4653. LOGON32_LOGON_BATCH = 4
  4654. LOGON32_LOGON_SERVICE = 5
  4655. LOGON32_LOGON_UNLOCK = 7
  4656. LOGON32_LOGON_NETWORK_CLEARTEXT = 8
  4657. LOGON32_LOGON_NEW_CREDENTIALS = 9
  4658. LOGON32_PROVIDER_DEFAULT = 0
  4659. LOGON32_PROVIDER_WINNT35 = 1
  4660. LOGON32_PROVIDER_WINNT40 = 2
  4661. LOGON32_PROVIDER_WINNT50 = 3
  4662. VER_PLATFORM_WIN32s = 0
  4663. VER_PLATFORM_WIN32_WINDOWS = 1
  4664. VER_PLATFORM_WIN32_NT = 2
  4665. TC_NORMAL = 0
  4666. TC_HARDERR = 1
  4667. TC_GP_TRAP = 2
  4668. TC_SIGNAL = 3
  4669. AC_LINE_OFFLINE = 0
  4670. AC_LINE_ONLINE = 1
  4671. AC_LINE_BACKUP_POWER = 2
  4672. AC_LINE_UNKNOWN = 255
  4673. BATTERY_FLAG_HIGH = 1
  4674. BATTERY_FLAG_LOW = 2
  4675. BATTERY_FLAG_CRITICAL = 4
  4676. BATTERY_FLAG_CHARGING = 8
  4677. BATTERY_FLAG_NO_BATTERY = 128
  4678. BATTERY_FLAG_UNKNOWN = 255
  4679. BATTERY_PERCENTAGE_UNKNOWN = 255
  4680. BATTERY_LIFE_UNKNOWN = -1
  4681. # Generated by h2py from d:\msdev\include\richedit.h
  4682. cchTextLimitDefault = 32767
  4683. WM_CONTEXTMENU = 123
  4684. WM_PRINTCLIENT = 792
  4685. EN_MSGFILTER = 1792
  4686. EN_REQUESTRESIZE = 1793
  4687. EN_SELCHANGE = 1794
  4688. EN_DROPFILES = 1795
  4689. EN_PROTECTED = 1796
  4690. EN_CORRECTTEXT = 1797
  4691. EN_STOPNOUNDO = 1798
  4692. EN_IMECHANGE = 1799
  4693. EN_SAVECLIPBOARD = 1800
  4694. EN_OLEOPFAILED = 1801
  4695. ENM_NONE = 0
  4696. ENM_CHANGE = 1
  4697. ENM_UPDATE = 2
  4698. ENM_SCROLL = 4
  4699. ENM_KEYEVENTS = 65536
  4700. ENM_MOUSEEVENTS = 131072
  4701. ENM_REQUESTRESIZE = 262144
  4702. ENM_SELCHANGE = 524288
  4703. ENM_DROPFILES = 1048576
  4704. ENM_PROTECTED = 2097152
  4705. ENM_CORRECTTEXT = 4194304
  4706. ENM_IMECHANGE = 8388608
  4707. ES_SAVESEL = 32768
  4708. ES_SUNKEN = 16384
  4709. ES_DISABLENOSCROLL = 8192
  4710. ES_SELECTIONBAR = 16777216
  4711. ES_EX_NOCALLOLEINIT = 16777216
  4712. ES_VERTICAL = 4194304
  4713. ES_NOIME = 524288
  4714. ES_SELFIME = 262144
  4715. ECO_AUTOWORDSELECTION = 1
  4716. ECO_AUTOVSCROLL = 64
  4717. ECO_AUTOHSCROLL = 128
  4718. ECO_NOHIDESEL = 256
  4719. ECO_READONLY = 2048
  4720. ECO_WANTRETURN = 4096
  4721. ECO_SAVESEL = 32768
  4722. ECO_SELECTIONBAR = 16777216
  4723. ECO_VERTICAL = 4194304
  4724. ECOOP_SET = 1
  4725. ECOOP_OR = 2
  4726. ECOOP_AND = 3
  4727. ECOOP_XOR = 4
  4728. WB_CLASSIFY = 3
  4729. WB_MOVEWORDLEFT = 4
  4730. WB_MOVEWORDRIGHT = 5
  4731. WB_LEFTBREAK = 6
  4732. WB_RIGHTBREAK = 7
  4733. WB_MOVEWORDPREV = 4
  4734. WB_MOVEWORDNEXT = 5
  4735. WB_PREVBREAK = 6
  4736. WB_NEXTBREAK = 7
  4737. PC_FOLLOWING = 1
  4738. PC_LEADING = 2
  4739. PC_OVERFLOW = 3
  4740. PC_DELIMITER = 4
  4741. WBF_WORDWRAP = 16
  4742. WBF_WORDBREAK = 32
  4743. WBF_OVERFLOW = 64
  4744. WBF_LEVEL1 = 128
  4745. WBF_LEVEL2 = 256
  4746. WBF_CUSTOM = 512
  4747. CFM_BOLD = 1
  4748. CFM_ITALIC = 2
  4749. CFM_UNDERLINE = 4
  4750. CFM_STRIKEOUT = 8
  4751. CFM_PROTECTED = 16
  4752. CFM_SIZE = -2147483648
  4753. CFM_COLOR = 1073741824
  4754. CFM_FACE = 536870912
  4755. CFM_OFFSET = 268435456
  4756. CFM_CHARSET = 134217728
  4757. CFE_BOLD = 1
  4758. CFE_ITALIC = 2
  4759. CFE_UNDERLINE = 4
  4760. CFE_STRIKEOUT = 8
  4761. CFE_PROTECTED = 16
  4762. CFE_AUTOCOLOR = 1073741824
  4763. yHeightCharPtsMost = 1638
  4764. SCF_SELECTION = 1
  4765. SCF_WORD = 2
  4766. SF_TEXT = 1
  4767. SF_RTF = 2
  4768. SF_RTFNOOBJS = 3
  4769. SF_TEXTIZED = 4
  4770. SFF_SELECTION = 32768
  4771. SFF_PLAINRTF = 16384
  4772. MAX_TAB_STOPS = 32
  4773. lDefaultTab = 720
  4774. PFM_STARTINDENT = 1
  4775. PFM_RIGHTINDENT = 2
  4776. PFM_OFFSET = 4
  4777. PFM_ALIGNMENT = 8
  4778. PFM_TABSTOPS = 16
  4779. PFM_NUMBERING = 32
  4780. PFM_OFFSETINDENT = -2147483648
  4781. PFN_BULLET = 1
  4782. PFA_LEFT = 1
  4783. PFA_RIGHT = 2
  4784. PFA_CENTER = 3
  4785. WM_NOTIFY = 78
  4786. SEL_EMPTY = 0
  4787. SEL_TEXT = 1
  4788. SEL_OBJECT = 2
  4789. SEL_MULTICHAR = 4
  4790. SEL_MULTIOBJECT = 8
  4791. OLEOP_DOVERB = 1
  4792. CF_RTF = "Rich Text Format"
  4793. CF_RTFNOOBJS = "Rich Text Format Without Objects"
  4794. CF_RETEXTOBJ = "RichEdit Text and Objects"
  4795. # From wincon.h
  4796. RIGHT_ALT_PRESSED = 1 # the right alt key is pressed.
  4797. LEFT_ALT_PRESSED = 2 # the left alt key is pressed.
  4798. RIGHT_CTRL_PRESSED = 4 # the right ctrl key is pressed.
  4799. LEFT_CTRL_PRESSED = 8 # the left ctrl key is pressed.
  4800. SHIFT_PRESSED = 16 # the shift key is pressed.
  4801. NUMLOCK_ON = 32 # the numlock light is on.
  4802. SCROLLLOCK_ON = 64 # the scrolllock light is on.
  4803. CAPSLOCK_ON = 128 # the capslock light is on.
  4804. ENHANCED_KEY = 256 # the key is enhanced.
  4805. NLS_DBCSCHAR = 65536 # DBCS for JPN: SBCS/DBCS mode.
  4806. NLS_ALPHANUMERIC = 0 # DBCS for JPN: Alphanumeric mode.
  4807. NLS_KATAKANA = 131072 # DBCS for JPN: Katakana mode.
  4808. NLS_HIRAGANA = 262144 # DBCS for JPN: Hiragana mode.
  4809. NLS_ROMAN = 4194304 # DBCS for JPN: Roman/Noroman mode.
  4810. NLS_IME_CONVERSION = 8388608 # DBCS for JPN: IME conversion.
  4811. NLS_IME_DISABLE = 536870912 # DBCS for JPN: IME enable/disable.
  4812. FROM_LEFT_1ST_BUTTON_PRESSED = 1
  4813. RIGHTMOST_BUTTON_PRESSED = 2
  4814. FROM_LEFT_2ND_BUTTON_PRESSED = 4
  4815. FROM_LEFT_3RD_BUTTON_PRESSED = 8
  4816. FROM_LEFT_4TH_BUTTON_PRESSED = 16
  4817. CTRL_C_EVENT = 0
  4818. CTRL_BREAK_EVENT = 1
  4819. CTRL_CLOSE_EVENT = 2
  4820. CTRL_LOGOFF_EVENT = 5
  4821. CTRL_SHUTDOWN_EVENT = 6
  4822. MOUSE_MOVED = 1
  4823. DOUBLE_CLICK = 2
  4824. MOUSE_WHEELED = 4
  4825. #property sheet window messages from prsht.h
  4826. PSM_SETCURSEL = (WM_USER + 101)
  4827. PSM_REMOVEPAGE = (WM_USER + 102)
  4828. PSM_ADDPAGE = (WM_USER + 103)
  4829. PSM_CHANGED = (WM_USER + 104)
  4830. PSM_RESTARTWINDOWS = (WM_USER + 105)
  4831. PSM_REBOOTSYSTEM = (WM_USER + 106)
  4832. PSM_CANCELTOCLOSE = (WM_USER + 107)
  4833. PSM_QUERYSIBLINGS = (WM_USER + 108)
  4834. PSM_UNCHANGED = (WM_USER + 109)
  4835. PSM_APPLY = (WM_USER + 110)
  4836. PSM_SETTITLEA = (WM_USER + 111)
  4837. PSM_SETTITLEW = (WM_USER + 120)
  4838. PSM_SETWIZBUTTONS = (WM_USER + 112)
  4839. PSM_PRESSBUTTON = (WM_USER + 113)
  4840. PSM_SETCURSELID = (WM_USER + 114)
  4841. PSM_SETFINISHTEXTA = (WM_USER + 115)
  4842. PSM_SETFINISHTEXTW = (WM_USER + 121)
  4843. PSM_GETTABCONTROL = (WM_USER + 116)
  4844. PSM_ISDIALOGMESSAGE = (WM_USER + 117)
  4845. PSM_GETCURRENTPAGEHWND = (WM_USER + 118)
  4846. PSM_INSERTPAGE = (WM_USER + 119)
  4847. PSM_SETHEADERTITLEA = (WM_USER + 125)
  4848. PSM_SETHEADERTITLEW = (WM_USER + 126)
  4849. PSM_SETHEADERSUBTITLEA = (WM_USER + 127)
  4850. PSM_SETHEADERSUBTITLEW = (WM_USER + 128)
  4851. PSM_HWNDTOINDEX = (WM_USER + 129)
  4852. PSM_INDEXTOHWND = (WM_USER + 130)
  4853. PSM_PAGETOINDEX = (WM_USER + 131)
  4854. PSM_INDEXTOPAGE = (WM_USER + 132)
  4855. PSM_IDTOINDEX = (WM_USER + 133)
  4856. PSM_INDEXTOID = (WM_USER + 134)
  4857. PSM_GETRESULT = (WM_USER + 135)
  4858. PSM_RECALCPAGESIZES = (WM_USER + 136)
  4859. # GetUserNameEx/GetComputerNameEx
  4860. NameUnknown = 0
  4861. NameFullyQualifiedDN = 1
  4862. NameSamCompatible = 2
  4863. NameDisplay = 3
  4864. NameUniqueId = 6
  4865. NameCanonical = 7
  4866. NameUserPrincipal = 8
  4867. NameCanonicalEx = 9
  4868. NameServicePrincipal = 10
  4869. NameDnsDomain = 12
  4870. ComputerNameNetBIOS = 0
  4871. ComputerNameDnsHostname = 1
  4872. ComputerNameDnsDomain = 2
  4873. ComputerNameDnsFullyQualified = 3
  4874. ComputerNamePhysicalNetBIOS = 4
  4875. ComputerNamePhysicalDnsHostname = 5
  4876. ComputerNamePhysicalDnsDomain = 6
  4877. ComputerNamePhysicalDnsFullyQualified = 7
  4878. LWA_COLORKEY = 0x00000001
  4879. LWA_ALPHA = 0x00000002
  4880. ULW_COLORKEY = 0x00000001
  4881. ULW_ALPHA = 0x00000002
  4882. ULW_OPAQUE = 0x00000004
  4883. # WinDef.h
  4884. TRUE = 1
  4885. FALSE = 0
  4886. MAX_PATH = 260
  4887. # WinGDI.h
  4888. AC_SRC_OVER = 0
  4889. AC_SRC_ALPHA = 1
  4890. GRADIENT_FILL_RECT_H = 0
  4891. GRADIENT_FILL_RECT_V = 1
  4892. GRADIENT_FILL_TRIANGLE = 2
  4893. GRADIENT_FILL_OP_FLAG = 255
  4894. ## flags used with Get/SetSystemFileCacheSize
  4895. MM_WORKING_SET_MAX_HARD_ENABLE = 1
  4896. MM_WORKING_SET_MAX_HARD_DISABLE = 2
  4897. MM_WORKING_SET_MIN_HARD_ENABLE = 4
  4898. MM_WORKING_SET_MIN_HARD_DISABLE = 8
  4899. ## Flags for GetFinalPathNameByHandle
  4900. VOLUME_NAME_DOS = 0
  4901. VOLUME_NAME_GUID = 1
  4902. VOLUME_NAME_NT = 2
  4903. VOLUME_NAME_NONE = 4
  4904. FILE_NAME_NORMALIZED = 0
  4905. FILE_NAME_OPENED = 8
  4906. DEVICE_NOTIFY_WINDOW_HANDLE = 0x00000000
  4907. DEVICE_NOTIFY_SERVICE_HANDLE = 0x00000001
  4908. # From Dbt.h
  4909. # Generated by h2py from Dbt.h
  4910. WM_DEVICECHANGE = 0x0219
  4911. BSF_QUERY = 0x00000001
  4912. BSF_IGNORECURRENTTASK = 0x00000002
  4913. BSF_FLUSHDISK = 0x00000004
  4914. BSF_NOHANG = 0x00000008
  4915. BSF_POSTMESSAGE = 0x00000010
  4916. BSF_FORCEIFHUNG = 0x00000020
  4917. BSF_NOTIMEOUTIFNOTHUNG = 0x00000040
  4918. BSF_MSGSRV32ISOK = (-2147483648)
  4919. BSF_MSGSRV32ISOK_BIT = 31
  4920. BSM_ALLCOMPONENTS = 0x00000000
  4921. BSM_VXDS = 0x00000001
  4922. BSM_NETDRIVER = 0x00000002
  4923. BSM_INSTALLABLEDRIVERS = 0x00000004
  4924. BSM_APPLICATIONS = 0x00000008
  4925. DBT_APPYBEGIN = 0x0000
  4926. DBT_APPYEND = 0x0001
  4927. DBT_DEVNODES_CHANGED = 0x0007
  4928. DBT_QUERYCHANGECONFIG = 0x0017
  4929. DBT_CONFIGCHANGED = 0x0018
  4930. DBT_CONFIGCHANGECANCELED = 0x0019
  4931. DBT_MONITORCHANGE = 0x001B
  4932. DBT_SHELLLOGGEDON = 0x0020
  4933. DBT_CONFIGMGAPI32 = 0x0022
  4934. DBT_VXDINITCOMPLETE = 0x0023
  4935. DBT_VOLLOCKQUERYLOCK = 0x8041
  4936. DBT_VOLLOCKLOCKTAKEN = 0x8042
  4937. DBT_VOLLOCKLOCKFAILED = 0x8043
  4938. DBT_VOLLOCKQUERYUNLOCK = 0x8044
  4939. DBT_VOLLOCKLOCKRELEASED = 0x8045
  4940. DBT_VOLLOCKUNLOCKFAILED = 0x8046
  4941. LOCKP_ALLOW_WRITES = 0x01
  4942. LOCKP_FAIL_WRITES = 0x00
  4943. LOCKP_FAIL_MEM_MAPPING = 0x02
  4944. LOCKP_ALLOW_MEM_MAPPING = 0x00
  4945. LOCKP_USER_MASK = 0x03
  4946. LOCKP_LOCK_FOR_FORMAT = 0x04
  4947. LOCKF_LOGICAL_LOCK = 0x00
  4948. LOCKF_PHYSICAL_LOCK = 0x01
  4949. DBT_NO_DISK_SPACE = 0x0047
  4950. DBT_LOW_DISK_SPACE = 0x0048
  4951. DBT_CONFIGMGPRIVATE = 0x7FFF
  4952. DBT_DEVICEARRIVAL = 0x8000
  4953. DBT_DEVICEQUERYREMOVE = 0x8001
  4954. DBT_DEVICEQUERYREMOVEFAILED = 0x8002
  4955. DBT_DEVICEREMOVEPENDING = 0x8003
  4956. DBT_DEVICEREMOVECOMPLETE = 0x8004
  4957. DBT_DEVICETYPESPECIFIC = 0x8005
  4958. DBT_CUSTOMEVENT = 0x8006
  4959. DBT_DEVTYP_OEM = 0x00000000
  4960. DBT_DEVTYP_DEVNODE = 0x00000001
  4961. DBT_DEVTYP_VOLUME = 0x00000002
  4962. DBT_DEVTYP_PORT = 0x00000003
  4963. DBT_DEVTYP_NET = 0x00000004
  4964. DBT_DEVTYP_DEVICEINTERFACE = 0x00000005
  4965. DBT_DEVTYP_HANDLE = 0x00000006
  4966. DBTF_MEDIA = 0x0001
  4967. DBTF_NET = 0x0002
  4968. DBTF_RESOURCE = 0x00000001
  4969. DBTF_XPORT = 0x00000002
  4970. DBTF_SLOWNET = 0x00000004
  4971. DBT_VPOWERDAPI = 0x8100
  4972. DBT_USERDEFINED = 0xFFFF