Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

win32con.py 114KB

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083
  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 = (
  1534. WS_OVERLAPPED
  1535. | WS_CAPTION
  1536. | WS_SYSMENU
  1537. | WS_THICKFRAME
  1538. | WS_MINIMIZEBOX
  1539. | WS_MAXIMIZEBOX
  1540. )
  1541. WS_POPUPWINDOW = WS_POPUP | WS_BORDER | 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. MDITILE_ZORDER = 4
  1815. IMC_GETCANDIDATEPOS = 7
  1816. IMC_SETCANDIDATEPOS = 8
  1817. IMC_GETCOMPOSITIONFONT = 9
  1818. IMC_SETCOMPOSITIONFONT = 10
  1819. IMC_GETCOMPOSITIONWINDOW = 11
  1820. IMC_SETCOMPOSITIONWINDOW = 12
  1821. IMC_GETSTATUSWINDOWPOS = 15
  1822. IMC_SETSTATUSWINDOWPOS = 16
  1823. IMC_CLOSESTATUSWINDOW = 33
  1824. IMC_OPENSTATUSWINDOW = 34
  1825. # Generated by h2py from \msvc20\include\winnt.h
  1826. # hacked and split by mhammond.
  1827. DELETE = 65536
  1828. READ_CONTROL = 131072
  1829. WRITE_DAC = 262144
  1830. WRITE_OWNER = 524288
  1831. SYNCHRONIZE = 1048576
  1832. STANDARD_RIGHTS_REQUIRED = 983040
  1833. STANDARD_RIGHTS_READ = READ_CONTROL
  1834. STANDARD_RIGHTS_WRITE = READ_CONTROL
  1835. STANDARD_RIGHTS_EXECUTE = READ_CONTROL
  1836. STANDARD_RIGHTS_ALL = 2031616
  1837. SPECIFIC_RIGHTS_ALL = 65535
  1838. ACCESS_SYSTEM_SECURITY = 16777216
  1839. MAXIMUM_ALLOWED = 33554432
  1840. GENERIC_READ = -2147483648
  1841. GENERIC_WRITE = 1073741824
  1842. GENERIC_EXECUTE = 536870912
  1843. GENERIC_ALL = 268435456
  1844. SERVICE_KERNEL_DRIVER = 1
  1845. SERVICE_FILE_SYSTEM_DRIVER = 2
  1846. SERVICE_ADAPTER = 4
  1847. SERVICE_RECOGNIZER_DRIVER = 8
  1848. SERVICE_DRIVER = (
  1849. SERVICE_KERNEL_DRIVER | SERVICE_FILE_SYSTEM_DRIVER | SERVICE_RECOGNIZER_DRIVER
  1850. )
  1851. SERVICE_WIN32_OWN_PROCESS = 16
  1852. SERVICE_WIN32_SHARE_PROCESS = 32
  1853. SERVICE_WIN32 = SERVICE_WIN32_OWN_PROCESS | SERVICE_WIN32_SHARE_PROCESS
  1854. SERVICE_INTERACTIVE_PROCESS = 256
  1855. SERVICE_TYPE_ALL = (
  1856. SERVICE_WIN32 | SERVICE_ADAPTER | SERVICE_DRIVER | SERVICE_INTERACTIVE_PROCESS
  1857. )
  1858. SERVICE_BOOT_START = 0
  1859. SERVICE_SYSTEM_START = 1
  1860. SERVICE_AUTO_START = 2
  1861. SERVICE_DEMAND_START = 3
  1862. SERVICE_DISABLED = 4
  1863. SERVICE_ERROR_IGNORE = 0
  1864. SERVICE_ERROR_NORMAL = 1
  1865. SERVICE_ERROR_SEVERE = 2
  1866. SERVICE_ERROR_CRITICAL = 3
  1867. TAPE_ERASE_SHORT = 0
  1868. TAPE_ERASE_LONG = 1
  1869. TAPE_LOAD = 0
  1870. TAPE_UNLOAD = 1
  1871. TAPE_TENSION = 2
  1872. TAPE_LOCK = 3
  1873. TAPE_UNLOCK = 4
  1874. TAPE_FORMAT = 5
  1875. TAPE_SETMARKS = 0
  1876. TAPE_FILEMARKS = 1
  1877. TAPE_SHORT_FILEMARKS = 2
  1878. TAPE_LONG_FILEMARKS = 3
  1879. TAPE_ABSOLUTE_POSITION = 0
  1880. TAPE_LOGICAL_POSITION = 1
  1881. TAPE_PSEUDO_LOGICAL_POSITION = 2
  1882. TAPE_REWIND = 0
  1883. TAPE_ABSOLUTE_BLOCK = 1
  1884. TAPE_LOGICAL_BLOCK = 2
  1885. TAPE_PSEUDO_LOGICAL_BLOCK = 3
  1886. TAPE_SPACE_END_OF_DATA = 4
  1887. TAPE_SPACE_RELATIVE_BLOCKS = 5
  1888. TAPE_SPACE_FILEMARKS = 6
  1889. TAPE_SPACE_SEQUENTIAL_FMKS = 7
  1890. TAPE_SPACE_SETMARKS = 8
  1891. TAPE_SPACE_SEQUENTIAL_SMKS = 9
  1892. TAPE_DRIVE_FIXED = 1
  1893. TAPE_DRIVE_SELECT = 2
  1894. TAPE_DRIVE_INITIATOR = 4
  1895. TAPE_DRIVE_ERASE_SHORT = 16
  1896. TAPE_DRIVE_ERASE_LONG = 32
  1897. TAPE_DRIVE_ERASE_BOP_ONLY = 64
  1898. TAPE_DRIVE_ERASE_IMMEDIATE = 128
  1899. TAPE_DRIVE_TAPE_CAPACITY = 256
  1900. TAPE_DRIVE_TAPE_REMAINING = 512
  1901. TAPE_DRIVE_FIXED_BLOCK = 1024
  1902. TAPE_DRIVE_VARIABLE_BLOCK = 2048
  1903. TAPE_DRIVE_WRITE_PROTECT = 4096
  1904. TAPE_DRIVE_EOT_WZ_SIZE = 8192
  1905. TAPE_DRIVE_ECC = 65536
  1906. TAPE_DRIVE_COMPRESSION = 131072
  1907. TAPE_DRIVE_PADDING = 262144
  1908. TAPE_DRIVE_REPORT_SMKS = 524288
  1909. TAPE_DRIVE_GET_ABSOLUTE_BLK = 1048576
  1910. TAPE_DRIVE_GET_LOGICAL_BLK = 2097152
  1911. TAPE_DRIVE_SET_EOT_WZ_SIZE = 4194304
  1912. TAPE_DRIVE_LOAD_UNLOAD = -2147483647
  1913. TAPE_DRIVE_TENSION = -2147483646
  1914. TAPE_DRIVE_LOCK_UNLOCK = -2147483644
  1915. TAPE_DRIVE_REWIND_IMMEDIATE = -2147483640
  1916. TAPE_DRIVE_SET_BLOCK_SIZE = -2147483632
  1917. TAPE_DRIVE_LOAD_UNLD_IMMED = -2147483616
  1918. TAPE_DRIVE_TENSION_IMMED = -2147483584
  1919. TAPE_DRIVE_LOCK_UNLK_IMMED = -2147483520
  1920. TAPE_DRIVE_SET_ECC = -2147483392
  1921. TAPE_DRIVE_SET_COMPRESSION = -2147483136
  1922. TAPE_DRIVE_SET_PADDING = -2147482624
  1923. TAPE_DRIVE_SET_REPORT_SMKS = -2147481600
  1924. TAPE_DRIVE_ABSOLUTE_BLK = -2147479552
  1925. TAPE_DRIVE_ABS_BLK_IMMED = -2147475456
  1926. TAPE_DRIVE_LOGICAL_BLK = -2147467264
  1927. TAPE_DRIVE_LOG_BLK_IMMED = -2147450880
  1928. TAPE_DRIVE_END_OF_DATA = -2147418112
  1929. TAPE_DRIVE_RELATIVE_BLKS = -2147352576
  1930. TAPE_DRIVE_FILEMARKS = -2147221504
  1931. TAPE_DRIVE_SEQUENTIAL_FMKS = -2146959360
  1932. TAPE_DRIVE_SETMARKS = -2146435072
  1933. TAPE_DRIVE_SEQUENTIAL_SMKS = -2145386496
  1934. TAPE_DRIVE_REVERSE_POSITION = -2143289344
  1935. TAPE_DRIVE_SPACE_IMMEDIATE = -2139095040
  1936. TAPE_DRIVE_WRITE_SETMARKS = -2130706432
  1937. TAPE_DRIVE_WRITE_FILEMARKS = -2113929216
  1938. TAPE_DRIVE_WRITE_SHORT_FMKS = -2080374784
  1939. TAPE_DRIVE_WRITE_LONG_FMKS = -2013265920
  1940. TAPE_DRIVE_WRITE_MARK_IMMED = -1879048192
  1941. TAPE_DRIVE_FORMAT = -1610612736
  1942. TAPE_DRIVE_FORMAT_IMMEDIATE = -1073741824
  1943. TAPE_FIXED_PARTITIONS = 0
  1944. TAPE_SELECT_PARTITIONS = 1
  1945. TAPE_INITIATOR_PARTITIONS = 2
  1946. # Generated by h2py from \msvc20\include\winnt.h
  1947. # hacked and split by mhammond.
  1948. APPLICATION_ERROR_MASK = 536870912
  1949. ERROR_SEVERITY_SUCCESS = 0
  1950. ERROR_SEVERITY_INFORMATIONAL = 1073741824
  1951. ERROR_SEVERITY_WARNING = -2147483648
  1952. ERROR_SEVERITY_ERROR = -1073741824
  1953. MINCHAR = 128
  1954. MAXCHAR = 127
  1955. MINSHORT = 32768
  1956. MAXSHORT = 32767
  1957. MINLONG = -2147483648
  1958. MAXLONG = 2147483647
  1959. MAXBYTE = 255
  1960. MAXWORD = 65535
  1961. MAXDWORD = -1
  1962. LANG_NEUTRAL = 0
  1963. LANG_BULGARIAN = 2
  1964. LANG_CHINESE = 4
  1965. LANG_CROATIAN = 26
  1966. LANG_CZECH = 5
  1967. LANG_DANISH = 6
  1968. LANG_DUTCH = 19
  1969. LANG_ENGLISH = 9
  1970. LANG_FINNISH = 11
  1971. LANG_FRENCH = 12
  1972. LANG_GERMAN = 7
  1973. LANG_GREEK = 8
  1974. LANG_HUNGARIAN = 14
  1975. LANG_ICELANDIC = 15
  1976. LANG_ITALIAN = 16
  1977. LANG_JAPANESE = 17
  1978. LANG_KOREAN = 18
  1979. LANG_NORWEGIAN = 20
  1980. LANG_POLISH = 21
  1981. LANG_PORTUGUESE = 22
  1982. LANG_ROMANIAN = 24
  1983. LANG_RUSSIAN = 25
  1984. LANG_SLOVAK = 27
  1985. LANG_SLOVENIAN = 36
  1986. LANG_SPANISH = 10
  1987. LANG_SWEDISH = 29
  1988. LANG_TURKISH = 31
  1989. SUBLANG_NEUTRAL = 0
  1990. SUBLANG_DEFAULT = 1
  1991. SUBLANG_SYS_DEFAULT = 2
  1992. SUBLANG_CHINESE_TRADITIONAL = 1
  1993. SUBLANG_CHINESE_SIMPLIFIED = 2
  1994. SUBLANG_CHINESE_HONGKONG = 3
  1995. SUBLANG_CHINESE_SINGAPORE = 4
  1996. SUBLANG_DUTCH = 1
  1997. SUBLANG_DUTCH_BELGIAN = 2
  1998. SUBLANG_ENGLISH_US = 1
  1999. SUBLANG_ENGLISH_UK = 2
  2000. SUBLANG_ENGLISH_AUS = 3
  2001. SUBLANG_ENGLISH_CAN = 4
  2002. SUBLANG_ENGLISH_NZ = 5
  2003. SUBLANG_ENGLISH_EIRE = 6
  2004. SUBLANG_FRENCH = 1
  2005. SUBLANG_FRENCH_BELGIAN = 2
  2006. SUBLANG_FRENCH_CANADIAN = 3
  2007. SUBLANG_FRENCH_SWISS = 4
  2008. SUBLANG_GERMAN = 1
  2009. SUBLANG_GERMAN_SWISS = 2
  2010. SUBLANG_GERMAN_AUSTRIAN = 3
  2011. SUBLANG_ITALIAN = 1
  2012. SUBLANG_ITALIAN_SWISS = 2
  2013. SUBLANG_NORWEGIAN_BOKMAL = 1
  2014. SUBLANG_NORWEGIAN_NYNORSK = 2
  2015. SUBLANG_PORTUGUESE = 2
  2016. SUBLANG_PORTUGUESE_BRAZILIAN = 1
  2017. SUBLANG_SPANISH = 1
  2018. SUBLANG_SPANISH_MEXICAN = 2
  2019. SUBLANG_SPANISH_MODERN = 3
  2020. SORT_DEFAULT = 0
  2021. SORT_JAPANESE_XJIS = 0
  2022. SORT_JAPANESE_UNICODE = 1
  2023. SORT_CHINESE_BIG5 = 0
  2024. SORT_CHINESE_UNICODE = 1
  2025. SORT_KOREAN_KSC = 0
  2026. SORT_KOREAN_UNICODE = 1
  2027. def PRIMARYLANGID(lgid):
  2028. return (lgid) & 1023
  2029. def SUBLANGID(lgid):
  2030. return (lgid) >> 10
  2031. NLS_VALID_LOCALE_MASK = 1048575
  2032. CONTEXT_PORTABLE_32BIT = 1048576
  2033. CONTEXT_ALPHA = 131072
  2034. CONTEXT_CONTROL = CONTEXT_ALPHA | 1
  2035. CONTEXT_FLOATING_POINT = CONTEXT_ALPHA | 2
  2036. CONTEXT_INTEGER = CONTEXT_ALPHA | 4
  2037. CONTEXT_FULL = CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER
  2038. SIZE_OF_80387_REGISTERS = 80
  2039. CONTEXT_FULL = CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER
  2040. CONTEXT_CONTROL = 1
  2041. CONTEXT_FLOATING_POINT = 2
  2042. CONTEXT_INTEGER = 4
  2043. CONTEXT_FULL = CONTEXT_CONTROL | CONTEXT_FLOATING_POINT | CONTEXT_INTEGER
  2044. PROCESS_TERMINATE = 1
  2045. PROCESS_CREATE_THREAD = 2
  2046. PROCESS_VM_OPERATION = 8
  2047. PROCESS_VM_READ = 16
  2048. PROCESS_VM_WRITE = 32
  2049. PROCESS_DUP_HANDLE = 64
  2050. PROCESS_CREATE_PROCESS = 128
  2051. PROCESS_SET_QUOTA = 256
  2052. PROCESS_SET_INFORMATION = 512
  2053. PROCESS_QUERY_INFORMATION = 1024
  2054. PROCESS_SUSPEND_RESUME = 2048
  2055. PROCESS_QUERY_LIMITED_INFORMATION = 4096
  2056. PROCESS_SET_LIMITED_INFORMATION = 8192
  2057. PROCESS_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 4095
  2058. THREAD_TERMINATE = 1
  2059. THREAD_SUSPEND_RESUME = 2
  2060. THREAD_GET_CONTEXT = 8
  2061. THREAD_SET_CONTEXT = 16
  2062. THREAD_SET_INFORMATION = 32
  2063. THREAD_QUERY_INFORMATION = 64
  2064. THREAD_SET_THREAD_TOKEN = 128
  2065. THREAD_IMPERSONATE = 256
  2066. THREAD_DIRECT_IMPERSONATION = 512
  2067. THREAD_SET_LIMITED_INFORMATION = 1024
  2068. THREAD_QUERY_LIMITED_INFORMATION = 2048
  2069. THREAD_RESUME = 4096
  2070. TLS_MINIMUM_AVAILABLE = 64
  2071. EVENT_MODIFY_STATE = 2
  2072. MUTANT_QUERY_STATE = 1
  2073. SEMAPHORE_MODIFY_STATE = 2
  2074. TIME_ZONE_ID_UNKNOWN = 0
  2075. TIME_ZONE_ID_STANDARD = 1
  2076. TIME_ZONE_ID_DAYLIGHT = 2
  2077. PROCESSOR_INTEL_386 = 386
  2078. PROCESSOR_INTEL_486 = 486
  2079. PROCESSOR_INTEL_PENTIUM = 586
  2080. PROCESSOR_INTEL_860 = 860
  2081. PROCESSOR_MIPS_R2000 = 2000
  2082. PROCESSOR_MIPS_R3000 = 3000
  2083. PROCESSOR_MIPS_R4000 = 4000
  2084. PROCESSOR_ALPHA_21064 = 21064
  2085. PROCESSOR_PPC_601 = 601
  2086. PROCESSOR_PPC_603 = 603
  2087. PROCESSOR_PPC_604 = 604
  2088. PROCESSOR_PPC_620 = 620
  2089. SECTION_QUERY = 1
  2090. SECTION_MAP_WRITE = 2
  2091. SECTION_MAP_READ = 4
  2092. SECTION_MAP_EXECUTE = 8
  2093. SECTION_EXTEND_SIZE = 16
  2094. PAGE_NOACCESS = 1
  2095. PAGE_READONLY = 2
  2096. PAGE_READWRITE = 4
  2097. PAGE_WRITECOPY = 8
  2098. PAGE_EXECUTE = 16
  2099. PAGE_EXECUTE_READ = 32
  2100. PAGE_EXECUTE_READWRITE = 64
  2101. PAGE_EXECUTE_WRITECOPY = 128
  2102. PAGE_GUARD = 256
  2103. PAGE_NOCACHE = 512
  2104. MEM_COMMIT = 4096
  2105. MEM_RESERVE = 8192
  2106. MEM_DECOMMIT = 16384
  2107. MEM_RELEASE = 32768
  2108. MEM_FREE = 65536
  2109. MEM_PRIVATE = 131072
  2110. MEM_MAPPED = 262144
  2111. MEM_TOP_DOWN = 1048576
  2112. # Generated by h2py from \msvc20\include\winnt.h
  2113. # hacked and split by mhammond.
  2114. SEC_FILE = 8388608
  2115. SEC_IMAGE = 16777216
  2116. SEC_RESERVE = 67108864
  2117. SEC_COMMIT = 134217728
  2118. SEC_NOCACHE = 268435456
  2119. MEM_IMAGE = SEC_IMAGE
  2120. FILE_SHARE_READ = 1
  2121. FILE_SHARE_WRITE = 2
  2122. FILE_SHARE_DELETE = 4
  2123. FILE_ATTRIBUTE_READONLY = 1
  2124. FILE_ATTRIBUTE_HIDDEN = 2
  2125. FILE_ATTRIBUTE_SYSTEM = 4
  2126. FILE_ATTRIBUTE_DIRECTORY = 16
  2127. FILE_ATTRIBUTE_ARCHIVE = 32
  2128. FILE_ATTRIBUTE_DEVICE = 64
  2129. FILE_ATTRIBUTE_NORMAL = 128
  2130. FILE_ATTRIBUTE_TEMPORARY = 256
  2131. FILE_ATTRIBUTE_SPARSE_FILE = 512
  2132. FILE_ATTRIBUTE_REPARSE_POINT = 1024
  2133. FILE_ATTRIBUTE_COMPRESSED = 2048
  2134. FILE_ATTRIBUTE_OFFLINE = 4096
  2135. FILE_ATTRIBUTE_NOT_CONTENT_INDEXED = 8192
  2136. FILE_ATTRIBUTE_ENCRYPTED = 16384
  2137. FILE_ATTRIBUTE_VIRTUAL = 65536
  2138. # These FILE_ATTRIBUTE_* flags are apparently old definitions from Windows 95
  2139. # and conflict with current values above - but they live on for b/w compat...
  2140. FILE_ATTRIBUTE_ATOMIC_WRITE = 512
  2141. FILE_ATTRIBUTE_XACTION_WRITE = 1024
  2142. FILE_NOTIFY_CHANGE_FILE_NAME = 1
  2143. FILE_NOTIFY_CHANGE_DIR_NAME = 2
  2144. FILE_NOTIFY_CHANGE_ATTRIBUTES = 4
  2145. FILE_NOTIFY_CHANGE_SIZE = 8
  2146. FILE_NOTIFY_CHANGE_LAST_WRITE = 16
  2147. FILE_NOTIFY_CHANGE_SECURITY = 256
  2148. FILE_CASE_SENSITIVE_SEARCH = 1
  2149. FILE_CASE_PRESERVED_NAMES = 2
  2150. FILE_UNICODE_ON_DISK = 4
  2151. FILE_PERSISTENT_ACLS = 8
  2152. FILE_FILE_COMPRESSION = 16
  2153. FILE_NAMED_STREAMS = 262144
  2154. FILE_PERSISTENT_ACLS = 0x00000008
  2155. FILE_READ_ONLY_VOLUME = 0x00080000
  2156. FILE_SEQUENTIAL_WRITE_ONCE = 0x00100000
  2157. FILE_SUPPORTS_ENCRYPTION = 0x00020000
  2158. FILE_SUPPORTS_EXTENDED_ATTRIBUTES = 0x00800000
  2159. FILE_SUPPORTS_HARD_LINKS = 0x00400000
  2160. FILE_SUPPORTS_OBJECT_IDS = 0x00010000
  2161. FILE_SUPPORTS_OPEN_BY_FILE_ID = 0x01000000
  2162. FILE_SUPPORTS_REPARSE_POINTS = 0x00000080
  2163. FILE_SUPPORTS_SPARSE_FILES = 0x00000040
  2164. FILE_SUPPORTS_TRANSACTIONS = 0x00200000
  2165. FILE_SUPPORTS_USN_JOURNAL = 0x02000000
  2166. FILE_UNICODE_ON_DISK = 0x00000004
  2167. FILE_VOLUME_IS_COMPRESSED = 0x00008000
  2168. FILE_VOLUME_QUOTAS = 0x00000020
  2169. FILE_VOLUME_IS_COMPRESSED = 32768
  2170. IO_COMPLETION_MODIFY_STATE = 2
  2171. DUPLICATE_CLOSE_SOURCE = 1
  2172. DUPLICATE_SAME_ACCESS = 2
  2173. SID_MAX_SUB_AUTHORITIES = 15
  2174. SECURITY_NULL_RID = 0
  2175. SECURITY_WORLD_RID = 0
  2176. SECURITY_LOCAL_RID = 0x00000000
  2177. SECURITY_CREATOR_OWNER_RID = 0
  2178. SECURITY_CREATOR_GROUP_RID = 1
  2179. SECURITY_DIALUP_RID = 1
  2180. SECURITY_NETWORK_RID = 2
  2181. SECURITY_BATCH_RID = 3
  2182. SECURITY_INTERACTIVE_RID = 4
  2183. SECURITY_SERVICE_RID = 6
  2184. SECURITY_ANONYMOUS_LOGON_RID = 7
  2185. SECURITY_LOGON_IDS_RID = 5
  2186. SECURITY_LOGON_IDS_RID_COUNT = 3
  2187. SECURITY_LOCAL_SYSTEM_RID = 18
  2188. SECURITY_NT_NON_UNIQUE = 21
  2189. SECURITY_BUILTIN_DOMAIN_RID = 32
  2190. DOMAIN_USER_RID_ADMIN = 500
  2191. DOMAIN_USER_RID_GUEST = 501
  2192. DOMAIN_GROUP_RID_ADMINS = 512
  2193. DOMAIN_GROUP_RID_USERS = 513
  2194. DOMAIN_GROUP_RID_GUESTS = 514
  2195. DOMAIN_ALIAS_RID_ADMINS = 544
  2196. DOMAIN_ALIAS_RID_USERS = 545
  2197. DOMAIN_ALIAS_RID_GUESTS = 546
  2198. DOMAIN_ALIAS_RID_POWER_USERS = 547
  2199. DOMAIN_ALIAS_RID_ACCOUNT_OPS = 548
  2200. DOMAIN_ALIAS_RID_SYSTEM_OPS = 549
  2201. DOMAIN_ALIAS_RID_PRINT_OPS = 550
  2202. DOMAIN_ALIAS_RID_BACKUP_OPS = 551
  2203. DOMAIN_ALIAS_RID_REPLICATOR = 552
  2204. SE_GROUP_MANDATORY = 1
  2205. SE_GROUP_ENABLED_BY_DEFAULT = 2
  2206. SE_GROUP_ENABLED = 4
  2207. SE_GROUP_OWNER = 8
  2208. SE_GROUP_LOGON_ID = -1073741824
  2209. ACL_REVISION = 2
  2210. ACL_REVISION1 = 1
  2211. ACL_REVISION2 = 2
  2212. ACCESS_ALLOWED_ACE_TYPE = 0
  2213. ACCESS_DENIED_ACE_TYPE = 1
  2214. SYSTEM_AUDIT_ACE_TYPE = 2
  2215. SYSTEM_ALARM_ACE_TYPE = 3
  2216. OBJECT_INHERIT_ACE = 1
  2217. CONTAINER_INHERIT_ACE = 2
  2218. NO_PROPAGATE_INHERIT_ACE = 4
  2219. INHERIT_ONLY_ACE = 8
  2220. VALID_INHERIT_FLAGS = 15
  2221. SUCCESSFUL_ACCESS_ACE_FLAG = 64
  2222. FAILED_ACCESS_ACE_FLAG = 128
  2223. SECURITY_DESCRIPTOR_REVISION = 1
  2224. SECURITY_DESCRIPTOR_REVISION1 = 1
  2225. SECURITY_DESCRIPTOR_MIN_LENGTH = 20
  2226. SE_OWNER_DEFAULTED = 1
  2227. SE_GROUP_DEFAULTED = 2
  2228. SE_DACL_PRESENT = 4
  2229. SE_DACL_DEFAULTED = 8
  2230. SE_SACL_PRESENT = 16
  2231. SE_SACL_DEFAULTED = 32
  2232. SE_SELF_RELATIVE = 32768
  2233. SE_PRIVILEGE_ENABLED_BY_DEFAULT = 1
  2234. SE_PRIVILEGE_ENABLED = 2
  2235. SE_PRIVILEGE_USED_FOR_ACCESS = -2147483648
  2236. PRIVILEGE_SET_ALL_NECESSARY = 1
  2237. SE_CREATE_TOKEN_NAME = "SeCreateTokenPrivilege"
  2238. SE_ASSIGNPRIMARYTOKEN_NAME = "SeAssignPrimaryTokenPrivilege"
  2239. SE_LOCK_MEMORY_NAME = "SeLockMemoryPrivilege"
  2240. SE_INCREASE_QUOTA_NAME = "SeIncreaseQuotaPrivilege"
  2241. SE_UNSOLICITED_INPUT_NAME = "SeUnsolicitedInputPrivilege"
  2242. SE_MACHINE_ACCOUNT_NAME = "SeMachineAccountPrivilege"
  2243. SE_TCB_NAME = "SeTcbPrivilege"
  2244. SE_SECURITY_NAME = "SeSecurityPrivilege"
  2245. SE_TAKE_OWNERSHIP_NAME = "SeTakeOwnershipPrivilege"
  2246. SE_LOAD_DRIVER_NAME = "SeLoadDriverPrivilege"
  2247. SE_SYSTEM_PROFILE_NAME = "SeSystemProfilePrivilege"
  2248. SE_SYSTEMTIME_NAME = "SeSystemtimePrivilege"
  2249. SE_PROF_SINGLE_PROCESS_NAME = "SeProfileSingleProcessPrivilege"
  2250. SE_INC_BASE_PRIORITY_NAME = "SeIncreaseBasePriorityPrivilege"
  2251. SE_CREATE_PAGEFILE_NAME = "SeCreatePagefilePrivilege"
  2252. SE_CREATE_PERMANENT_NAME = "SeCreatePermanentPrivilege"
  2253. SE_BACKUP_NAME = "SeBackupPrivilege"
  2254. SE_RESTORE_NAME = "SeRestorePrivilege"
  2255. SE_SHUTDOWN_NAME = "SeShutdownPrivilege"
  2256. SE_DEBUG_NAME = "SeDebugPrivilege"
  2257. SE_AUDIT_NAME = "SeAuditPrivilege"
  2258. SE_SYSTEM_ENVIRONMENT_NAME = "SeSystemEnvironmentPrivilege"
  2259. SE_CHANGE_NOTIFY_NAME = "SeChangeNotifyPrivilege"
  2260. SE_REMOTE_SHUTDOWN_NAME = "SeRemoteShutdownPrivilege"
  2261. TOKEN_ASSIGN_PRIMARY = 1
  2262. TOKEN_DUPLICATE = 2
  2263. TOKEN_IMPERSONATE = 4
  2264. TOKEN_QUERY = 8
  2265. TOKEN_QUERY_SOURCE = 16
  2266. TOKEN_ADJUST_PRIVILEGES = 32
  2267. TOKEN_ADJUST_GROUPS = 64
  2268. TOKEN_ADJUST_DEFAULT = 128
  2269. TOKEN_ADJUST_SESSIONID = 256
  2270. TOKEN_ALL_ACCESS = (
  2271. STANDARD_RIGHTS_REQUIRED
  2272. | TOKEN_ASSIGN_PRIMARY
  2273. | TOKEN_DUPLICATE
  2274. | TOKEN_IMPERSONATE
  2275. | TOKEN_QUERY
  2276. | TOKEN_QUERY_SOURCE
  2277. | TOKEN_ADJUST_PRIVILEGES
  2278. | TOKEN_ADJUST_GROUPS
  2279. | TOKEN_ADJUST_DEFAULT
  2280. | TOKEN_ADJUST_SESSIONID
  2281. )
  2282. TOKEN_READ = STANDARD_RIGHTS_READ | TOKEN_QUERY
  2283. TOKEN_WRITE = (
  2284. STANDARD_RIGHTS_WRITE
  2285. | TOKEN_ADJUST_PRIVILEGES
  2286. | TOKEN_ADJUST_GROUPS
  2287. | TOKEN_ADJUST_DEFAULT
  2288. )
  2289. TOKEN_EXECUTE = STANDARD_RIGHTS_EXECUTE
  2290. TOKEN_SOURCE_LENGTH = 8
  2291. KEY_QUERY_VALUE = 1
  2292. KEY_SET_VALUE = 2
  2293. KEY_CREATE_SUB_KEY = 4
  2294. KEY_ENUMERATE_SUB_KEYS = 8
  2295. KEY_NOTIFY = 16
  2296. KEY_CREATE_LINK = 32
  2297. KEY_WOW64_32KEY = 512
  2298. KEY_WOW64_64KEY = 256
  2299. KEY_WOW64_RES = 768
  2300. KEY_READ = (
  2301. STANDARD_RIGHTS_READ | KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEYS | KEY_NOTIFY
  2302. ) & (~SYNCHRONIZE)
  2303. KEY_WRITE = (STANDARD_RIGHTS_WRITE | KEY_SET_VALUE | KEY_CREATE_SUB_KEY) & (
  2304. ~SYNCHRONIZE
  2305. )
  2306. KEY_EXECUTE = (KEY_READ) & (~SYNCHRONIZE)
  2307. KEY_ALL_ACCESS = (
  2308. 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. ) & (~SYNCHRONIZE)
  2316. REG_NOTIFY_CHANGE_ATTRIBUTES = 2
  2317. REG_NOTIFY_CHANGE_SECURITY = 8
  2318. REG_RESOURCE_REQUIREMENTS_LIST = 10
  2319. REG_NONE = 0 # No value type
  2320. REG_SZ = 1 # Unicode nul terminated string
  2321. REG_EXPAND_SZ = 2 # Unicode nul terminated string
  2322. # (with environment variable references)
  2323. REG_BINARY = 3 # Free form binary
  2324. REG_DWORD = 4 # 32-bit number
  2325. REG_DWORD_LITTLE_ENDIAN = 4 # 32-bit number (same as REG_DWORD)
  2326. REG_DWORD_BIG_ENDIAN = 5 # 32-bit number
  2327. REG_LINK = 6 # Symbolic Link (unicode)
  2328. REG_MULTI_SZ = 7 # Multiple Unicode strings
  2329. REG_RESOURCE_LIST = 8 # Resource list in the resource map
  2330. REG_FULL_RESOURCE_DESCRIPTOR = 9 # Resource list in the hardware description
  2331. REG_RESOURCE_REQUIREMENTS_LIST = 10
  2332. REG_QWORD = 11 # 64-bit number
  2333. REG_QWORD_LITTLE_ENDIAN = 11 # 64-bit number (same as REG_QWORD)
  2334. # Generated by h2py from \msvc20\include\winnt.h
  2335. # hacked and split by mhammond.
  2336. # Included from string.h
  2337. _NLSCMPERROR = 2147483647
  2338. NULL = 0
  2339. HEAP_NO_SERIALIZE = 1
  2340. HEAP_GROWABLE = 2
  2341. HEAP_GENERATE_EXCEPTIONS = 4
  2342. HEAP_ZERO_MEMORY = 8
  2343. HEAP_REALLOC_IN_PLACE_ONLY = 16
  2344. HEAP_TAIL_CHECKING_ENABLED = 32
  2345. HEAP_FREE_CHECKING_ENABLED = 64
  2346. HEAP_DISABLE_COALESCE_ON_FREE = 128
  2347. IS_TEXT_UNICODE_ASCII16 = 1
  2348. IS_TEXT_UNICODE_REVERSE_ASCII16 = 16
  2349. IS_TEXT_UNICODE_STATISTICS = 2
  2350. IS_TEXT_UNICODE_REVERSE_STATISTICS = 32
  2351. IS_TEXT_UNICODE_CONTROLS = 4
  2352. IS_TEXT_UNICODE_REVERSE_CONTROLS = 64
  2353. IS_TEXT_UNICODE_SIGNATURE = 8
  2354. IS_TEXT_UNICODE_REVERSE_SIGNATURE = 128
  2355. IS_TEXT_UNICODE_ILLEGAL_CHARS = 256
  2356. IS_TEXT_UNICODE_ODD_LENGTH = 512
  2357. IS_TEXT_UNICODE_DBCS_LEADBYTE = 1024
  2358. IS_TEXT_UNICODE_NULL_BYTES = 4096
  2359. IS_TEXT_UNICODE_UNICODE_MASK = 15
  2360. IS_TEXT_UNICODE_REVERSE_MASK = 240
  2361. IS_TEXT_UNICODE_NOT_UNICODE_MASK = 3840
  2362. IS_TEXT_UNICODE_NOT_ASCII_MASK = 61440
  2363. COMPRESSION_FORMAT_NONE = 0
  2364. COMPRESSION_FORMAT_DEFAULT = 1
  2365. COMPRESSION_FORMAT_LZNT1 = 2
  2366. COMPRESSION_ENGINE_STANDARD = 0
  2367. COMPRESSION_ENGINE_MAXIMUM = 256
  2368. MESSAGE_RESOURCE_UNICODE = 1
  2369. RTL_CRITSECT_TYPE = 0
  2370. RTL_RESOURCE_TYPE = 1
  2371. DLL_PROCESS_ATTACH = 1
  2372. DLL_THREAD_ATTACH = 2
  2373. DLL_THREAD_DETACH = 3
  2374. DLL_PROCESS_DETACH = 0
  2375. EVENTLOG_SEQUENTIAL_READ = 0x0001
  2376. EVENTLOG_SEEK_READ = 0x0002
  2377. EVENTLOG_FORWARDS_READ = 0x0004
  2378. EVENTLOG_BACKWARDS_READ = 0x0008
  2379. EVENTLOG_SUCCESS = 0x0000
  2380. EVENTLOG_ERROR_TYPE = 1
  2381. EVENTLOG_WARNING_TYPE = 2
  2382. EVENTLOG_INFORMATION_TYPE = 4
  2383. EVENTLOG_AUDIT_SUCCESS = 8
  2384. EVENTLOG_AUDIT_FAILURE = 16
  2385. EVENTLOG_START_PAIRED_EVENT = 1
  2386. EVENTLOG_END_PAIRED_EVENT = 2
  2387. EVENTLOG_END_ALL_PAIRED_EVENTS = 4
  2388. EVENTLOG_PAIRED_EVENT_ACTIVE = 8
  2389. EVENTLOG_PAIRED_EVENT_INACTIVE = 16
  2390. # Generated by h2py from \msvc20\include\winnt.h
  2391. # hacked and split by mhammond.
  2392. OWNER_SECURITY_INFORMATION = 0x00000001
  2393. GROUP_SECURITY_INFORMATION = 0x00000002
  2394. DACL_SECURITY_INFORMATION = 0x00000004
  2395. SACL_SECURITY_INFORMATION = 0x00000008
  2396. IMAGE_SIZEOF_FILE_HEADER = 20
  2397. IMAGE_FILE_MACHINE_UNKNOWN = 0
  2398. IMAGE_NUMBEROF_DIRECTORY_ENTRIES = 16
  2399. IMAGE_SIZEOF_ROM_OPTIONAL_HEADER = 56
  2400. IMAGE_SIZEOF_STD_OPTIONAL_HEADER = 28
  2401. IMAGE_SIZEOF_NT_OPTIONAL_HEADER = 224
  2402. IMAGE_NT_OPTIONAL_HDR_MAGIC = 267
  2403. IMAGE_ROM_OPTIONAL_HDR_MAGIC = 263
  2404. IMAGE_SIZEOF_SHORT_NAME = 8
  2405. IMAGE_SIZEOF_SECTION_HEADER = 40
  2406. IMAGE_SIZEOF_SYMBOL = 18
  2407. IMAGE_SYM_CLASS_NULL = 0
  2408. IMAGE_SYM_CLASS_AUTOMATIC = 1
  2409. IMAGE_SYM_CLASS_EXTERNAL = 2
  2410. IMAGE_SYM_CLASS_STATIC = 3
  2411. IMAGE_SYM_CLASS_REGISTER = 4
  2412. IMAGE_SYM_CLASS_EXTERNAL_DEF = 5
  2413. IMAGE_SYM_CLASS_LABEL = 6
  2414. IMAGE_SYM_CLASS_UNDEFINED_LABEL = 7
  2415. IMAGE_SYM_CLASS_MEMBER_OF_STRUCT = 8
  2416. IMAGE_SYM_CLASS_ARGUMENT = 9
  2417. IMAGE_SYM_CLASS_STRUCT_TAG = 10
  2418. IMAGE_SYM_CLASS_MEMBER_OF_UNION = 11
  2419. IMAGE_SYM_CLASS_UNION_TAG = 12
  2420. IMAGE_SYM_CLASS_TYPE_DEFINITION = 13
  2421. IMAGE_SYM_CLASS_UNDEFINED_STATIC = 14
  2422. IMAGE_SYM_CLASS_ENUM_TAG = 15
  2423. IMAGE_SYM_CLASS_MEMBER_OF_ENUM = 16
  2424. IMAGE_SYM_CLASS_REGISTER_PARAM = 17
  2425. IMAGE_SYM_CLASS_BIT_FIELD = 18
  2426. IMAGE_SYM_CLASS_BLOCK = 100
  2427. IMAGE_SYM_CLASS_FUNCTION = 101
  2428. IMAGE_SYM_CLASS_END_OF_STRUCT = 102
  2429. IMAGE_SYM_CLASS_FILE = 103
  2430. IMAGE_SYM_CLASS_SECTION = 104
  2431. IMAGE_SYM_CLASS_WEAK_EXTERNAL = 105
  2432. N_BTMASK = 15
  2433. N_TMASK = 48
  2434. N_TMASK1 = 192
  2435. N_TMASK2 = 240
  2436. N_BTSHFT = 4
  2437. N_TSHIFT = 2
  2438. IMAGE_SIZEOF_AUX_SYMBOL = 18
  2439. IMAGE_COMDAT_SELECT_NODUPLICATES = 1
  2440. IMAGE_COMDAT_SELECT_ANY = 2
  2441. IMAGE_COMDAT_SELECT_SAME_SIZE = 3
  2442. IMAGE_COMDAT_SELECT_EXACT_MATCH = 4
  2443. IMAGE_COMDAT_SELECT_ASSOCIATIVE = 5
  2444. IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY = 1
  2445. IMAGE_WEAK_EXTERN_SEARCH_LIBRARY = 2
  2446. IMAGE_WEAK_EXTERN_SEARCH_ALIAS = 3
  2447. IMAGE_SIZEOF_RELOCATION = 10
  2448. IMAGE_REL_I386_SECTION = 10
  2449. IMAGE_REL_I386_SECREL = 11
  2450. IMAGE_REL_MIPS_REFHALF = 1
  2451. IMAGE_REL_MIPS_REFWORD = 2
  2452. IMAGE_REL_MIPS_JMPADDR = 3
  2453. IMAGE_REL_MIPS_REFHI = 4
  2454. IMAGE_REL_MIPS_REFLO = 5
  2455. IMAGE_REL_MIPS_GPREL = 6
  2456. IMAGE_REL_MIPS_LITERAL = 7
  2457. IMAGE_REL_MIPS_SECTION = 10
  2458. IMAGE_REL_MIPS_SECREL = 11
  2459. IMAGE_REL_MIPS_REFWORDNB = 34
  2460. IMAGE_REL_MIPS_PAIR = 37
  2461. IMAGE_REL_ALPHA_ABSOLUTE = 0
  2462. IMAGE_REL_ALPHA_REFLONG = 1
  2463. IMAGE_REL_ALPHA_REFQUAD = 2
  2464. IMAGE_REL_ALPHA_GPREL32 = 3
  2465. IMAGE_REL_ALPHA_LITERAL = 4
  2466. IMAGE_REL_ALPHA_LITUSE = 5
  2467. IMAGE_REL_ALPHA_GPDISP = 6
  2468. IMAGE_REL_ALPHA_BRADDR = 7
  2469. IMAGE_REL_ALPHA_HINT = 8
  2470. IMAGE_REL_ALPHA_INLINE_REFLONG = 9
  2471. IMAGE_REL_ALPHA_REFHI = 10
  2472. IMAGE_REL_ALPHA_REFLO = 11
  2473. IMAGE_REL_ALPHA_PAIR = 12
  2474. IMAGE_REL_ALPHA_MATCH = 13
  2475. IMAGE_REL_ALPHA_SECTION = 14
  2476. IMAGE_REL_ALPHA_SECREL = 15
  2477. IMAGE_REL_ALPHA_REFLONGNB = 16
  2478. IMAGE_SIZEOF_BASE_RELOCATION = 8
  2479. IMAGE_REL_BASED_ABSOLUTE = 0
  2480. IMAGE_REL_BASED_HIGH = 1
  2481. IMAGE_REL_BASED_LOW = 2
  2482. IMAGE_REL_BASED_HIGHLOW = 3
  2483. IMAGE_REL_BASED_HIGHADJ = 4
  2484. IMAGE_REL_BASED_MIPS_JMPADDR = 5
  2485. IMAGE_SIZEOF_LINENUMBER = 6
  2486. IMAGE_ARCHIVE_START_SIZE = 8
  2487. IMAGE_ARCHIVE_START = "!<arch>\n"
  2488. IMAGE_ARCHIVE_END = "`\n"
  2489. IMAGE_ARCHIVE_PAD = "\n"
  2490. IMAGE_ARCHIVE_LINKER_MEMBER = "/ "
  2491. IMAGE_ARCHIVE_LONGNAMES_MEMBER = "// "
  2492. IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR = 60
  2493. IMAGE_ORDINAL_FLAG = -2147483648
  2494. def IMAGE_SNAP_BY_ORDINAL(Ordinal):
  2495. return (Ordinal & IMAGE_ORDINAL_FLAG) != 0
  2496. def IMAGE_ORDINAL(Ordinal):
  2497. return Ordinal & 65535
  2498. IMAGE_RESOURCE_NAME_IS_STRING = -2147483648
  2499. IMAGE_RESOURCE_DATA_IS_DIRECTORY = -2147483648
  2500. IMAGE_DEBUG_TYPE_UNKNOWN = 0
  2501. IMAGE_DEBUG_TYPE_COFF = 1
  2502. IMAGE_DEBUG_TYPE_CODEVIEW = 2
  2503. IMAGE_DEBUG_TYPE_FPO = 3
  2504. IMAGE_DEBUG_TYPE_MISC = 4
  2505. IMAGE_DEBUG_TYPE_EXCEPTION = 5
  2506. IMAGE_DEBUG_TYPE_FIXUP = 6
  2507. IMAGE_DEBUG_TYPE_OMAP_TO_SRC = 7
  2508. IMAGE_DEBUG_TYPE_OMAP_FROM_SRC = 8
  2509. FRAME_FPO = 0
  2510. FRAME_TRAP = 1
  2511. FRAME_TSS = 2
  2512. SIZEOF_RFPO_DATA = 16
  2513. IMAGE_DEBUG_MISC_EXENAME = 1
  2514. IMAGE_SEPARATE_DEBUG_SIGNATURE = 18756
  2515. # Generated by h2py from \msvcnt\include\wingdi.h
  2516. # hacked and split manually by mhammond.
  2517. NEWFRAME = 1
  2518. ABORTDOC = 2
  2519. NEXTBAND = 3
  2520. SETCOLORTABLE = 4
  2521. GETCOLORTABLE = 5
  2522. FLUSHOUTPUT = 6
  2523. DRAFTMODE = 7
  2524. QUERYESCSUPPORT = 8
  2525. SETABORTPROC = 9
  2526. STARTDOC = 10
  2527. ENDDOC = 11
  2528. GETPHYSPAGESIZE = 12
  2529. GETPRINTINGOFFSET = 13
  2530. GETSCALINGFACTOR = 14
  2531. MFCOMMENT = 15
  2532. GETPENWIDTH = 16
  2533. SETCOPYCOUNT = 17
  2534. SELECTPAPERSOURCE = 18
  2535. DEVICEDATA = 19
  2536. PASSTHROUGH = 19
  2537. GETTECHNOLGY = 20
  2538. GETTECHNOLOGY = 20
  2539. SETLINECAP = 21
  2540. SETLINEJOIN = 22
  2541. SETMITERLIMIT = 23
  2542. BANDINFO = 24
  2543. DRAWPATTERNRECT = 25
  2544. GETVECTORPENSIZE = 26
  2545. GETVECTORBRUSHSIZE = 27
  2546. ENABLEDUPLEX = 28
  2547. GETSETPAPERBINS = 29
  2548. GETSETPRINTORIENT = 30
  2549. ENUMPAPERBINS = 31
  2550. SETDIBSCALING = 32
  2551. EPSPRINTING = 33
  2552. ENUMPAPERMETRICS = 34
  2553. GETSETPAPERMETRICS = 35
  2554. POSTSCRIPT_DATA = 37
  2555. POSTSCRIPT_IGNORE = 38
  2556. MOUSETRAILS = 39
  2557. GETDEVICEUNITS = 42
  2558. GETEXTENDEDTEXTMETRICS = 256
  2559. GETEXTENTTABLE = 257
  2560. GETPAIRKERNTABLE = 258
  2561. GETTRACKKERNTABLE = 259
  2562. EXTTEXTOUT = 512
  2563. GETFACENAME = 513
  2564. DOWNLOADFACE = 514
  2565. ENABLERELATIVEWIDTHS = 768
  2566. ENABLEPAIRKERNING = 769
  2567. SETKERNTRACK = 770
  2568. SETALLJUSTVALUES = 771
  2569. SETCHARSET = 772
  2570. STRETCHBLT = 2048
  2571. GETSETSCREENPARAMS = 3072
  2572. BEGIN_PATH = 4096
  2573. CLIP_TO_PATH = 4097
  2574. END_PATH = 4098
  2575. EXT_DEVICE_CAPS = 4099
  2576. RESTORE_CTM = 4100
  2577. SAVE_CTM = 4101
  2578. SET_ARC_DIRECTION = 4102
  2579. SET_BACKGROUND_COLOR = 4103
  2580. SET_POLY_MODE = 4104
  2581. SET_SCREEN_ANGLE = 4105
  2582. SET_SPREAD = 4106
  2583. TRANSFORM_CTM = 4107
  2584. SET_CLIP_BOX = 4108
  2585. SET_BOUNDS = 4109
  2586. SET_MIRROR_MODE = 4110
  2587. OPENCHANNEL = 4110
  2588. DOWNLOADHEADER = 4111
  2589. CLOSECHANNEL = 4112
  2590. POSTSCRIPT_PASSTHROUGH = 4115
  2591. ENCAPSULATED_POSTSCRIPT = 4116
  2592. SP_NOTREPORTED = 16384
  2593. SP_ERROR = -1
  2594. SP_APPABORT = -2
  2595. SP_USERABORT = -3
  2596. SP_OUTOFDISK = -4
  2597. SP_OUTOFMEMORY = -5
  2598. PR_JOBSTATUS = 0
  2599. ## GDI object types
  2600. OBJ_PEN = 1
  2601. OBJ_BRUSH = 2
  2602. OBJ_DC = 3
  2603. OBJ_METADC = 4
  2604. OBJ_PAL = 5
  2605. OBJ_FONT = 6
  2606. OBJ_BITMAP = 7
  2607. OBJ_REGION = 8
  2608. OBJ_METAFILE = 9
  2609. OBJ_MEMDC = 10
  2610. OBJ_EXTPEN = 11
  2611. OBJ_ENHMETADC = 12
  2612. OBJ_ENHMETAFILE = 13
  2613. OBJ_COLORSPACE = 14
  2614. MWT_IDENTITY = 1
  2615. MWT_LEFTMULTIPLY = 2
  2616. MWT_RIGHTMULTIPLY = 3
  2617. MWT_MIN = MWT_IDENTITY
  2618. MWT_MAX = MWT_RIGHTMULTIPLY
  2619. BI_RGB = 0
  2620. BI_RLE8 = 1
  2621. BI_RLE4 = 2
  2622. BI_BITFIELDS = 3
  2623. TMPF_FIXED_PITCH = 1
  2624. TMPF_VECTOR = 2
  2625. TMPF_DEVICE = 8
  2626. TMPF_TRUETYPE = 4
  2627. NTM_REGULAR = 64
  2628. NTM_BOLD = 32
  2629. NTM_ITALIC = 1
  2630. LF_FACESIZE = 32
  2631. LF_FULLFACESIZE = 64
  2632. OUT_DEFAULT_PRECIS = 0
  2633. OUT_STRING_PRECIS = 1
  2634. OUT_CHARACTER_PRECIS = 2
  2635. OUT_STROKE_PRECIS = 3
  2636. OUT_TT_PRECIS = 4
  2637. OUT_DEVICE_PRECIS = 5
  2638. OUT_RASTER_PRECIS = 6
  2639. OUT_TT_ONLY_PRECIS = 7
  2640. OUT_OUTLINE_PRECIS = 8
  2641. CLIP_DEFAULT_PRECIS = 0
  2642. CLIP_CHARACTER_PRECIS = 1
  2643. CLIP_STROKE_PRECIS = 2
  2644. CLIP_MASK = 15
  2645. CLIP_LH_ANGLES = 1 << 4
  2646. CLIP_TT_ALWAYS = 2 << 4
  2647. CLIP_EMBEDDED = 8 << 4
  2648. DEFAULT_QUALITY = 0
  2649. DRAFT_QUALITY = 1
  2650. PROOF_QUALITY = 2
  2651. NONANTIALIASED_QUALITY = 3
  2652. ANTIALIASED_QUALITY = 4
  2653. CLEARTYPE_QUALITY = 5
  2654. CLEARTYPE_NATURAL_QUALITY = 6
  2655. DEFAULT_PITCH = 0
  2656. FIXED_PITCH = 1
  2657. VARIABLE_PITCH = 2
  2658. ANSI_CHARSET = 0
  2659. DEFAULT_CHARSET = 1
  2660. SYMBOL_CHARSET = 2
  2661. SHIFTJIS_CHARSET = 128
  2662. HANGEUL_CHARSET = 129
  2663. CHINESEBIG5_CHARSET = 136
  2664. OEM_CHARSET = 255
  2665. JOHAB_CHARSET = 130
  2666. HEBREW_CHARSET = 177
  2667. ARABIC_CHARSET = 178
  2668. GREEK_CHARSET = 161
  2669. TURKISH_CHARSET = 162
  2670. VIETNAMESE_CHARSET = 163
  2671. THAI_CHARSET = 222
  2672. EASTEUROPE_CHARSET = 238
  2673. RUSSIAN_CHARSET = 204
  2674. MAC_CHARSET = 77
  2675. BALTIC_CHARSET = 186
  2676. FF_DONTCARE = 0 << 4
  2677. FF_ROMAN = 1 << 4
  2678. FF_SWISS = 2 << 4
  2679. FF_MODERN = 3 << 4
  2680. FF_SCRIPT = 4 << 4
  2681. FF_DECORATIVE = 5 << 4
  2682. FW_DONTCARE = 0
  2683. FW_THIN = 100
  2684. FW_EXTRALIGHT = 200
  2685. FW_LIGHT = 300
  2686. FW_NORMAL = 400
  2687. FW_MEDIUM = 500
  2688. FW_SEMIBOLD = 600
  2689. FW_BOLD = 700
  2690. FW_EXTRABOLD = 800
  2691. FW_HEAVY = 900
  2692. FW_ULTRALIGHT = FW_EXTRALIGHT
  2693. FW_REGULAR = FW_NORMAL
  2694. FW_DEMIBOLD = FW_SEMIBOLD
  2695. FW_ULTRABOLD = FW_EXTRABOLD
  2696. FW_BLACK = FW_HEAVY
  2697. # Generated by h2py from \msvcnt\include\wingdi.h
  2698. # hacked and split manually by mhammond.
  2699. BS_SOLID = 0
  2700. BS_NULL = 1
  2701. BS_HOLLOW = BS_NULL
  2702. BS_HATCHED = 2
  2703. BS_PATTERN = 3
  2704. BS_INDEXED = 4
  2705. BS_DIBPATTERN = 5
  2706. BS_DIBPATTERNPT = 6
  2707. BS_PATTERN8X8 = 7
  2708. BS_DIBPATTERN8X8 = 8
  2709. HS_HORIZONTAL = 0
  2710. HS_VERTICAL = 1
  2711. HS_FDIAGONAL = 2
  2712. HS_BDIAGONAL = 3
  2713. HS_CROSS = 4
  2714. HS_DIAGCROSS = 5
  2715. HS_FDIAGONAL1 = 6
  2716. HS_BDIAGONAL1 = 7
  2717. HS_SOLID = 8
  2718. HS_DENSE1 = 9
  2719. HS_DENSE2 = 10
  2720. HS_DENSE3 = 11
  2721. HS_DENSE4 = 12
  2722. HS_DENSE5 = 13
  2723. HS_DENSE6 = 14
  2724. HS_DENSE7 = 15
  2725. HS_DENSE8 = 16
  2726. HS_NOSHADE = 17
  2727. HS_HALFTONE = 18
  2728. HS_SOLIDCLR = 19
  2729. HS_DITHEREDCLR = 20
  2730. HS_SOLIDTEXTCLR = 21
  2731. HS_DITHEREDTEXTCLR = 22
  2732. HS_SOLIDBKCLR = 23
  2733. HS_DITHEREDBKCLR = 24
  2734. HS_API_MAX = 25
  2735. PS_SOLID = 0
  2736. PS_DASH = 1
  2737. PS_DOT = 2
  2738. PS_DASHDOT = 3
  2739. PS_DASHDOTDOT = 4
  2740. PS_NULL = 5
  2741. PS_INSIDEFRAME = 6
  2742. PS_USERSTYLE = 7
  2743. PS_ALTERNATE = 8
  2744. PS_STYLE_MASK = 15
  2745. PS_ENDCAP_ROUND = 0
  2746. PS_ENDCAP_SQUARE = 256
  2747. PS_ENDCAP_FLAT = 512
  2748. PS_ENDCAP_MASK = 3840
  2749. PS_JOIN_ROUND = 0
  2750. PS_JOIN_BEVEL = 4096
  2751. PS_JOIN_MITER = 8192
  2752. PS_JOIN_MASK = 61440
  2753. PS_COSMETIC = 0
  2754. PS_GEOMETRIC = 65536
  2755. PS_TYPE_MASK = 983040
  2756. AD_COUNTERCLOCKWISE = 1
  2757. AD_CLOCKWISE = 2
  2758. DRIVERVERSION = 0
  2759. TECHNOLOGY = 2
  2760. HORZSIZE = 4
  2761. VERTSIZE = 6
  2762. HORZRES = 8
  2763. VERTRES = 10
  2764. BITSPIXEL = 12
  2765. PLANES = 14
  2766. NUMBRUSHES = 16
  2767. NUMPENS = 18
  2768. NUMMARKERS = 20
  2769. NUMFONTS = 22
  2770. NUMCOLORS = 24
  2771. PDEVICESIZE = 26
  2772. CURVECAPS = 28
  2773. LINECAPS = 30
  2774. POLYGONALCAPS = 32
  2775. TEXTCAPS = 34
  2776. CLIPCAPS = 36
  2777. RASTERCAPS = 38
  2778. ASPECTX = 40
  2779. ASPECTY = 42
  2780. ASPECTXY = 44
  2781. LOGPIXELSX = 88
  2782. LOGPIXELSY = 90
  2783. SIZEPALETTE = 104
  2784. NUMRESERVED = 106
  2785. COLORRES = 108
  2786. PHYSICALWIDTH = 110
  2787. PHYSICALHEIGHT = 111
  2788. PHYSICALOFFSETX = 112
  2789. PHYSICALOFFSETY = 113
  2790. SCALINGFACTORX = 114
  2791. SCALINGFACTORY = 115
  2792. VREFRESH = 116
  2793. DESKTOPVERTRES = 117
  2794. DESKTOPHORZRES = 118
  2795. BLTALIGNMENT = 119
  2796. SHADEBLENDCAPS = 120
  2797. COLORMGMTCAPS = 121
  2798. DT_PLOTTER = 0
  2799. DT_RASDISPLAY = 1
  2800. DT_RASPRINTER = 2
  2801. DT_RASCAMERA = 3
  2802. DT_CHARSTREAM = 4
  2803. DT_METAFILE = 5
  2804. DT_DISPFILE = 6
  2805. CC_NONE = 0
  2806. CC_CIRCLES = 1
  2807. CC_PIE = 2
  2808. CC_CHORD = 4
  2809. CC_ELLIPSES = 8
  2810. CC_WIDE = 16
  2811. CC_STYLED = 32
  2812. CC_WIDESTYLED = 64
  2813. CC_INTERIORS = 128
  2814. CC_ROUNDRECT = 256
  2815. LC_NONE = 0
  2816. LC_POLYLINE = 2
  2817. LC_MARKER = 4
  2818. LC_POLYMARKER = 8
  2819. LC_WIDE = 16
  2820. LC_STYLED = 32
  2821. LC_WIDESTYLED = 64
  2822. LC_INTERIORS = 128
  2823. PC_NONE = 0
  2824. PC_POLYGON = 1
  2825. PC_RECTANGLE = 2
  2826. PC_WINDPOLYGON = 4
  2827. PC_TRAPEZOID = 4
  2828. PC_SCANLINE = 8
  2829. PC_WIDE = 16
  2830. PC_STYLED = 32
  2831. PC_WIDESTYLED = 64
  2832. PC_INTERIORS = 128
  2833. CP_NONE = 0
  2834. CP_RECTANGLE = 1
  2835. CP_REGION = 2
  2836. TC_OP_CHARACTER = 1
  2837. TC_OP_STROKE = 2
  2838. TC_CP_STROKE = 4
  2839. TC_CR_90 = 8
  2840. TC_CR_ANY = 16
  2841. TC_SF_X_YINDEP = 32
  2842. TC_SA_DOUBLE = 64
  2843. TC_SA_INTEGER = 128
  2844. TC_SA_CONTIN = 256
  2845. TC_EA_DOUBLE = 512
  2846. TC_IA_ABLE = 1024
  2847. TC_UA_ABLE = 2048
  2848. TC_SO_ABLE = 4096
  2849. TC_RA_ABLE = 8192
  2850. TC_VA_ABLE = 16384
  2851. TC_RESERVED = 32768
  2852. TC_SCROLLBLT = 65536
  2853. RC_BITBLT = 1
  2854. RC_BANDING = 2
  2855. RC_SCALING = 4
  2856. RC_BITMAP64 = 8
  2857. RC_GDI20_OUTPUT = 16
  2858. RC_GDI20_STATE = 32
  2859. RC_SAVEBITMAP = 64
  2860. RC_DI_BITMAP = 128
  2861. RC_PALETTE = 256
  2862. RC_DIBTODEV = 512
  2863. RC_BIGFONT = 1024
  2864. RC_STRETCHBLT = 2048
  2865. RC_FLOODFILL = 4096
  2866. RC_STRETCHDIB = 8192
  2867. RC_OP_DX_OUTPUT = 16384
  2868. RC_DEVBITS = 32768
  2869. DIB_RGB_COLORS = 0
  2870. DIB_PAL_COLORS = 1
  2871. DIB_PAL_INDICES = 2
  2872. DIB_PAL_PHYSINDICES = 2
  2873. DIB_PAL_LOGINDICES = 4
  2874. SYSPAL_ERROR = 0
  2875. SYSPAL_STATIC = 1
  2876. SYSPAL_NOSTATIC = 2
  2877. CBM_CREATEDIB = 2
  2878. CBM_INIT = 4
  2879. FLOODFILLBORDER = 0
  2880. FLOODFILLSURFACE = 1
  2881. CCHDEVICENAME = 32
  2882. CCHFORMNAME = 32
  2883. # Generated by h2py from \msvcnt\include\wingdi.h
  2884. # hacked and split manually by mhammond.
  2885. # DEVMODE.dmFields
  2886. DM_SPECVERSION = 800
  2887. DM_ORIENTATION = 1
  2888. DM_PAPERSIZE = 2
  2889. DM_PAPERLENGTH = 4
  2890. DM_PAPERWIDTH = 8
  2891. DM_SCALE = 16
  2892. DM_POSITION = 32
  2893. DM_NUP = 64
  2894. DM_DISPLAYORIENTATION = 128
  2895. DM_COPIES = 256
  2896. DM_DEFAULTSOURCE = 512
  2897. DM_PRINTQUALITY = 1024
  2898. DM_COLOR = 2048
  2899. DM_DUPLEX = 4096
  2900. DM_YRESOLUTION = 8192
  2901. DM_TTOPTION = 16384
  2902. DM_COLLATE = 32768
  2903. DM_FORMNAME = 65536
  2904. DM_LOGPIXELS = 131072
  2905. DM_BITSPERPEL = 262144
  2906. DM_PELSWIDTH = 524288
  2907. DM_PELSHEIGHT = 1048576
  2908. DM_DISPLAYFLAGS = 2097152
  2909. DM_DISPLAYFREQUENCY = 4194304
  2910. DM_ICMMETHOD = 8388608
  2911. DM_ICMINTENT = 16777216
  2912. DM_MEDIATYPE = 33554432
  2913. DM_DITHERTYPE = 67108864
  2914. DM_PANNINGWIDTH = 134217728
  2915. DM_PANNINGHEIGHT = 268435456
  2916. DM_DISPLAYFIXEDOUTPUT = 536870912
  2917. # DEVMODE.dmOrientation
  2918. DMORIENT_PORTRAIT = 1
  2919. DMORIENT_LANDSCAPE = 2
  2920. # DEVMODE.dmDisplayOrientation
  2921. DMDO_DEFAULT = 0
  2922. DMDO_90 = 1
  2923. DMDO_180 = 2
  2924. DMDO_270 = 3
  2925. # DEVMODE.dmDisplayFixedOutput
  2926. DMDFO_DEFAULT = 0
  2927. DMDFO_STRETCH = 1
  2928. DMDFO_CENTER = 2
  2929. # DEVMODE.dmPaperSize
  2930. DMPAPER_LETTER = 1
  2931. DMPAPER_LETTERSMALL = 2
  2932. DMPAPER_TABLOID = 3
  2933. DMPAPER_LEDGER = 4
  2934. DMPAPER_LEGAL = 5
  2935. DMPAPER_STATEMENT = 6
  2936. DMPAPER_EXECUTIVE = 7
  2937. DMPAPER_A3 = 8
  2938. DMPAPER_A4 = 9
  2939. DMPAPER_A4SMALL = 10
  2940. DMPAPER_A5 = 11
  2941. DMPAPER_B4 = 12
  2942. DMPAPER_B5 = 13
  2943. DMPAPER_FOLIO = 14
  2944. DMPAPER_QUARTO = 15
  2945. DMPAPER_10X14 = 16
  2946. DMPAPER_11X17 = 17
  2947. DMPAPER_NOTE = 18
  2948. DMPAPER_ENV_9 = 19
  2949. DMPAPER_ENV_10 = 20
  2950. DMPAPER_ENV_11 = 21
  2951. DMPAPER_ENV_12 = 22
  2952. DMPAPER_ENV_14 = 23
  2953. DMPAPER_CSHEET = 24
  2954. DMPAPER_DSHEET = 25
  2955. DMPAPER_ESHEET = 26
  2956. DMPAPER_ENV_DL = 27
  2957. DMPAPER_ENV_C5 = 28
  2958. DMPAPER_ENV_C3 = 29
  2959. DMPAPER_ENV_C4 = 30
  2960. DMPAPER_ENV_C6 = 31
  2961. DMPAPER_ENV_C65 = 32
  2962. DMPAPER_ENV_B4 = 33
  2963. DMPAPER_ENV_B5 = 34
  2964. DMPAPER_ENV_B6 = 35
  2965. DMPAPER_ENV_ITALY = 36
  2966. DMPAPER_ENV_MONARCH = 37
  2967. DMPAPER_ENV_PERSONAL = 38
  2968. DMPAPER_FANFOLD_US = 39
  2969. DMPAPER_FANFOLD_STD_GERMAN = 40
  2970. DMPAPER_FANFOLD_LGL_GERMAN = 41
  2971. DMPAPER_ISO_B4 = 42
  2972. DMPAPER_JAPANESE_POSTCARD = 43
  2973. DMPAPER_9X11 = 44
  2974. DMPAPER_10X11 = 45
  2975. DMPAPER_15X11 = 46
  2976. DMPAPER_ENV_INVITE = 47
  2977. DMPAPER_RESERVED_48 = 48
  2978. DMPAPER_RESERVED_49 = 49
  2979. DMPAPER_LETTER_EXTRA = 50
  2980. DMPAPER_LEGAL_EXTRA = 51
  2981. DMPAPER_TABLOID_EXTRA = 52
  2982. DMPAPER_A4_EXTRA = 53
  2983. DMPAPER_LETTER_TRANSVERSE = 54
  2984. DMPAPER_A4_TRANSVERSE = 55
  2985. DMPAPER_LETTER_EXTRA_TRANSVERSE = 56
  2986. DMPAPER_A_PLUS = 57
  2987. DMPAPER_B_PLUS = 58
  2988. DMPAPER_LETTER_PLUS = 59
  2989. DMPAPER_A4_PLUS = 60
  2990. DMPAPER_A5_TRANSVERSE = 61
  2991. DMPAPER_B5_TRANSVERSE = 62
  2992. DMPAPER_A3_EXTRA = 63
  2993. DMPAPER_A5_EXTRA = 64
  2994. DMPAPER_B5_EXTRA = 65
  2995. DMPAPER_A2 = 66
  2996. DMPAPER_A3_TRANSVERSE = 67
  2997. DMPAPER_A3_EXTRA_TRANSVERSE = 68
  2998. DMPAPER_DBL_JAPANESE_POSTCARD = 69
  2999. DMPAPER_A6 = 70
  3000. DMPAPER_JENV_KAKU2 = 71
  3001. DMPAPER_JENV_KAKU3 = 72
  3002. DMPAPER_JENV_CHOU3 = 73
  3003. DMPAPER_JENV_CHOU4 = 74
  3004. DMPAPER_LETTER_ROTATED = 75
  3005. DMPAPER_A3_ROTATED = 76
  3006. DMPAPER_A4_ROTATED = 77
  3007. DMPAPER_A5_ROTATED = 78
  3008. DMPAPER_B4_JIS_ROTATED = 79
  3009. DMPAPER_B5_JIS_ROTATED = 80
  3010. DMPAPER_JAPANESE_POSTCARD_ROTATED = 81
  3011. DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED = 82
  3012. DMPAPER_A6_ROTATED = 83
  3013. DMPAPER_JENV_KAKU2_ROTATED = 84
  3014. DMPAPER_JENV_KAKU3_ROTATED = 85
  3015. DMPAPER_JENV_CHOU3_ROTATED = 86
  3016. DMPAPER_JENV_CHOU4_ROTATED = 87
  3017. DMPAPER_B6_JIS = 88
  3018. DMPAPER_B6_JIS_ROTATED = 89
  3019. DMPAPER_12X11 = 90
  3020. DMPAPER_JENV_YOU4 = 91
  3021. DMPAPER_JENV_YOU4_ROTATED = 92
  3022. DMPAPER_P16K = 93
  3023. DMPAPER_P32K = 94
  3024. DMPAPER_P32KBIG = 95
  3025. DMPAPER_PENV_1 = 96
  3026. DMPAPER_PENV_2 = 97
  3027. DMPAPER_PENV_3 = 98
  3028. DMPAPER_PENV_4 = 99
  3029. DMPAPER_PENV_5 = 100
  3030. DMPAPER_PENV_6 = 101
  3031. DMPAPER_PENV_7 = 102
  3032. DMPAPER_PENV_8 = 103
  3033. DMPAPER_PENV_9 = 104
  3034. DMPAPER_PENV_10 = 105
  3035. DMPAPER_P16K_ROTATED = 106
  3036. DMPAPER_P32K_ROTATED = 107
  3037. DMPAPER_P32KBIG_ROTATED = 108
  3038. DMPAPER_PENV_1_ROTATED = 109
  3039. DMPAPER_PENV_2_ROTATED = 110
  3040. DMPAPER_PENV_3_ROTATED = 111
  3041. DMPAPER_PENV_4_ROTATED = 112
  3042. DMPAPER_PENV_5_ROTATED = 113
  3043. DMPAPER_PENV_6_ROTATED = 114
  3044. DMPAPER_PENV_7_ROTATED = 115
  3045. DMPAPER_PENV_8_ROTATED = 116
  3046. DMPAPER_PENV_9_ROTATED = 117
  3047. DMPAPER_PENV_10_ROTATED = 118
  3048. DMPAPER_LAST = DMPAPER_PENV_10_ROTATED
  3049. DMPAPER_USER = 256
  3050. # DEVMODE.dmDefaultSource
  3051. DMBIN_UPPER = 1
  3052. DMBIN_ONLYONE = 1
  3053. DMBIN_LOWER = 2
  3054. DMBIN_MIDDLE = 3
  3055. DMBIN_MANUAL = 4
  3056. DMBIN_ENVELOPE = 5
  3057. DMBIN_ENVMANUAL = 6
  3058. DMBIN_AUTO = 7
  3059. DMBIN_TRACTOR = 8
  3060. DMBIN_SMALLFMT = 9
  3061. DMBIN_LARGEFMT = 10
  3062. DMBIN_LARGECAPACITY = 11
  3063. DMBIN_CASSETTE = 14
  3064. DMBIN_FORMSOURCE = 15
  3065. DMBIN_LAST = DMBIN_FORMSOURCE
  3066. DMBIN_USER = 256
  3067. # DEVMODE.dmPrintQuality
  3068. DMRES_DRAFT = -1
  3069. DMRES_LOW = -2
  3070. DMRES_MEDIUM = -3
  3071. DMRES_HIGH = -4
  3072. # DEVMODE.dmColor
  3073. DMCOLOR_MONOCHROME = 1
  3074. DMCOLOR_COLOR = 2
  3075. # DEVMODE.dmDuplex
  3076. DMDUP_SIMPLEX = 1
  3077. DMDUP_VERTICAL = 2
  3078. DMDUP_HORIZONTAL = 3
  3079. # DEVMODE.dmTTOption
  3080. DMTT_BITMAP = 1
  3081. DMTT_DOWNLOAD = 2
  3082. DMTT_SUBDEV = 3
  3083. DMTT_DOWNLOAD_OUTLINE = 4
  3084. # DEVMODE.dmCollate
  3085. DMCOLLATE_FALSE = 0
  3086. DMCOLLATE_TRUE = 1
  3087. # DEVMODE.dmDisplayFlags
  3088. DM_GRAYSCALE = 1
  3089. DM_INTERLACED = 2
  3090. # DEVMODE.dmICMMethod
  3091. DMICMMETHOD_NONE = 1
  3092. DMICMMETHOD_SYSTEM = 2
  3093. DMICMMETHOD_DRIVER = 3
  3094. DMICMMETHOD_DEVICE = 4
  3095. DMICMMETHOD_USER = 256
  3096. # DEVMODE.dmICMIntent
  3097. DMICM_SATURATE = 1
  3098. DMICM_CONTRAST = 2
  3099. DMICM_COLORIMETRIC = 3
  3100. DMICM_ABS_COLORIMETRIC = 4
  3101. DMICM_USER = 256
  3102. # DEVMODE.dmMediaType
  3103. DMMEDIA_STANDARD = 1
  3104. DMMEDIA_TRANSPARENCY = 2
  3105. DMMEDIA_GLOSSY = 3
  3106. DMMEDIA_USER = 256
  3107. # DEVMODE.dmDitherType
  3108. DMDITHER_NONE = 1
  3109. DMDITHER_COARSE = 2
  3110. DMDITHER_FINE = 3
  3111. DMDITHER_LINEART = 4
  3112. DMDITHER_ERRORDIFFUSION = 5
  3113. DMDITHER_RESERVED6 = 6
  3114. DMDITHER_RESERVED7 = 7
  3115. DMDITHER_RESERVED8 = 8
  3116. DMDITHER_RESERVED9 = 9
  3117. DMDITHER_GRAYSCALE = 10
  3118. DMDITHER_USER = 256
  3119. # DEVMODE.dmNup
  3120. DMNUP_SYSTEM = 1
  3121. DMNUP_ONEUP = 2
  3122. # used with ExtEscape
  3123. FEATURESETTING_NUP = 0
  3124. FEATURESETTING_OUTPUT = 1
  3125. FEATURESETTING_PSLEVEL = 2
  3126. FEATURESETTING_CUSTPAPER = 3
  3127. FEATURESETTING_MIRROR = 4
  3128. FEATURESETTING_NEGATIVE = 5
  3129. FEATURESETTING_PROTOCOL = 6
  3130. FEATURESETTING_PRIVATE_BEGIN = 0x1000
  3131. FEATURESETTING_PRIVATE_END = 0x1FFF
  3132. RDH_RECTANGLES = 1
  3133. GGO_METRICS = 0
  3134. GGO_BITMAP = 1
  3135. GGO_NATIVE = 2
  3136. TT_POLYGON_TYPE = 24
  3137. TT_PRIM_LINE = 1
  3138. TT_PRIM_QSPLINE = 2
  3139. TT_AVAILABLE = 1
  3140. TT_ENABLED = 2
  3141. DM_UPDATE = 1
  3142. DM_COPY = 2
  3143. DM_PROMPT = 4
  3144. DM_MODIFY = 8
  3145. DM_IN_BUFFER = DM_MODIFY
  3146. DM_IN_PROMPT = DM_PROMPT
  3147. DM_OUT_BUFFER = DM_COPY
  3148. DM_OUT_DEFAULT = DM_UPDATE
  3149. # DISPLAY_DEVICE.StateFlags
  3150. DISPLAY_DEVICE_ATTACHED_TO_DESKTOP = 1
  3151. DISPLAY_DEVICE_MULTI_DRIVER = 2
  3152. DISPLAY_DEVICE_PRIMARY_DEVICE = 4
  3153. DISPLAY_DEVICE_MIRRORING_DRIVER = 8
  3154. DISPLAY_DEVICE_VGA_COMPATIBLE = 16
  3155. DISPLAY_DEVICE_REMOVABLE = 32
  3156. DISPLAY_DEVICE_MODESPRUNED = 134217728
  3157. DISPLAY_DEVICE_REMOTE = 67108864
  3158. DISPLAY_DEVICE_DISCONNECT = 33554432
  3159. # DeviceCapabilities types
  3160. DC_FIELDS = 1
  3161. DC_PAPERS = 2
  3162. DC_PAPERSIZE = 3
  3163. DC_MINEXTENT = 4
  3164. DC_MAXEXTENT = 5
  3165. DC_BINS = 6
  3166. DC_DUPLEX = 7
  3167. DC_SIZE = 8
  3168. DC_EXTRA = 9
  3169. DC_VERSION = 10
  3170. DC_DRIVER = 11
  3171. DC_BINNAMES = 12
  3172. DC_ENUMRESOLUTIONS = 13
  3173. DC_FILEDEPENDENCIES = 14
  3174. DC_TRUETYPE = 15
  3175. DC_PAPERNAMES = 16
  3176. DC_ORIENTATION = 17
  3177. DC_COPIES = 18
  3178. DC_BINADJUST = 19
  3179. DC_EMF_COMPLIANT = 20
  3180. DC_DATATYPE_PRODUCED = 21
  3181. DC_COLLATE = 22
  3182. DC_MANUFACTURER = 23
  3183. DC_MODEL = 24
  3184. DC_PERSONALITY = 25
  3185. DC_PRINTRATE = 26
  3186. DC_PRINTRATEUNIT = 27
  3187. DC_PRINTERMEM = 28
  3188. DC_MEDIAREADY = 29
  3189. DC_STAPLE = 30
  3190. DC_PRINTRATEPPM = 31
  3191. DC_COLORDEVICE = 32
  3192. DC_NUP = 33
  3193. DC_MEDIATYPENAMES = 34
  3194. DC_MEDIATYPES = 35
  3195. PRINTRATEUNIT_PPM = 1
  3196. PRINTRATEUNIT_CPS = 2
  3197. PRINTRATEUNIT_LPM = 3
  3198. PRINTRATEUNIT_IPM = 4
  3199. # TrueType constants
  3200. DCTT_BITMAP = 1
  3201. DCTT_DOWNLOAD = 2
  3202. DCTT_SUBDEV = 4
  3203. DCTT_DOWNLOAD_OUTLINE = 8
  3204. DCBA_FACEUPNONE = 0
  3205. DCBA_FACEUPCENTER = 1
  3206. DCBA_FACEUPLEFT = 2
  3207. DCBA_FACEUPRIGHT = 3
  3208. DCBA_FACEDOWNNONE = 256
  3209. DCBA_FACEDOWNCENTER = 257
  3210. DCBA_FACEDOWNLEFT = 258
  3211. DCBA_FACEDOWNRIGHT = 259
  3212. CA_NEGATIVE = 1
  3213. CA_LOG_FILTER = 2
  3214. ILLUMINANT_DEVICE_DEFAULT = 0
  3215. ILLUMINANT_A = 1
  3216. ILLUMINANT_B = 2
  3217. ILLUMINANT_C = 3
  3218. ILLUMINANT_D50 = 4
  3219. ILLUMINANT_D55 = 5
  3220. ILLUMINANT_D65 = 6
  3221. ILLUMINANT_D75 = 7
  3222. ILLUMINANT_F2 = 8
  3223. ILLUMINANT_MAX_INDEX = ILLUMINANT_F2
  3224. ILLUMINANT_TUNGSTEN = ILLUMINANT_A
  3225. ILLUMINANT_DAYLIGHT = ILLUMINANT_C
  3226. ILLUMINANT_FLUORESCENT = ILLUMINANT_F2
  3227. ILLUMINANT_NTSC = ILLUMINANT_C
  3228. # Generated by h2py from \msvcnt\include\wingdi.h
  3229. # hacked and split manually by mhammond.
  3230. FONTMAPPER_MAX = 10
  3231. ENHMETA_SIGNATURE = 1179469088
  3232. ENHMETA_STOCK_OBJECT = -2147483648
  3233. EMR_HEADER = 1
  3234. EMR_POLYBEZIER = 2
  3235. EMR_POLYGON = 3
  3236. EMR_POLYLINE = 4
  3237. EMR_POLYBEZIERTO = 5
  3238. EMR_POLYLINETO = 6
  3239. EMR_POLYPOLYLINE = 7
  3240. EMR_POLYPOLYGON = 8
  3241. EMR_SETWINDOWEXTEX = 9
  3242. EMR_SETWINDOWORGEX = 10
  3243. EMR_SETVIEWPORTEXTEX = 11
  3244. EMR_SETVIEWPORTORGEX = 12
  3245. EMR_SETBRUSHORGEX = 13
  3246. EMR_EOF = 14
  3247. EMR_SETPIXELV = 15
  3248. EMR_SETMAPPERFLAGS = 16
  3249. EMR_SETMAPMODE = 17
  3250. EMR_SETBKMODE = 18
  3251. EMR_SETPOLYFILLMODE = 19
  3252. EMR_SETROP2 = 20
  3253. EMR_SETSTRETCHBLTMODE = 21
  3254. EMR_SETTEXTALIGN = 22
  3255. EMR_SETCOLORADJUSTMENT = 23
  3256. EMR_SETTEXTCOLOR = 24
  3257. EMR_SETBKCOLOR = 25
  3258. EMR_OFFSETCLIPRGN = 26
  3259. EMR_MOVETOEX = 27
  3260. EMR_SETMETARGN = 28
  3261. EMR_EXCLUDECLIPRECT = 29
  3262. EMR_INTERSECTCLIPRECT = 30
  3263. EMR_SCALEVIEWPORTEXTEX = 31
  3264. EMR_SCALEWINDOWEXTEX = 32
  3265. EMR_SAVEDC = 33
  3266. EMR_RESTOREDC = 34
  3267. EMR_SETWORLDTRANSFORM = 35
  3268. EMR_MODIFYWORLDTRANSFORM = 36
  3269. EMR_SELECTOBJECT = 37
  3270. EMR_CREATEPEN = 38
  3271. EMR_CREATEBRUSHINDIRECT = 39
  3272. EMR_DELETEOBJECT = 40
  3273. EMR_ANGLEARC = 41
  3274. EMR_ELLIPSE = 42
  3275. EMR_RECTANGLE = 43
  3276. EMR_ROUNDRECT = 44
  3277. EMR_ARC = 45
  3278. EMR_CHORD = 46
  3279. EMR_PIE = 47
  3280. EMR_SELECTPALETTE = 48
  3281. EMR_CREATEPALETTE = 49
  3282. EMR_SETPALETTEENTRIES = 50
  3283. EMR_RESIZEPALETTE = 51
  3284. EMR_REALIZEPALETTE = 52
  3285. EMR_EXTFLOODFILL = 53
  3286. EMR_LINETO = 54
  3287. EMR_ARCTO = 55
  3288. EMR_POLYDRAW = 56
  3289. EMR_SETARCDIRECTION = 57
  3290. EMR_SETMITERLIMIT = 58
  3291. EMR_BEGINPATH = 59
  3292. EMR_ENDPATH = 60
  3293. EMR_CLOSEFIGURE = 61
  3294. EMR_FILLPATH = 62
  3295. EMR_STROKEANDFILLPATH = 63
  3296. EMR_STROKEPATH = 64
  3297. EMR_FLATTENPATH = 65
  3298. EMR_WIDENPATH = 66
  3299. EMR_SELECTCLIPPATH = 67
  3300. EMR_ABORTPATH = 68
  3301. EMR_GDICOMMENT = 70
  3302. EMR_FILLRGN = 71
  3303. EMR_FRAMERGN = 72
  3304. EMR_INVERTRGN = 73
  3305. EMR_PAINTRGN = 74
  3306. EMR_EXTSELECTCLIPRGN = 75
  3307. EMR_BITBLT = 76
  3308. EMR_STRETCHBLT = 77
  3309. EMR_MASKBLT = 78
  3310. EMR_PLGBLT = 79
  3311. EMR_SETDIBITSTODEVICE = 80
  3312. EMR_STRETCHDIBITS = 81
  3313. EMR_EXTCREATEFONTINDIRECTW = 82
  3314. EMR_EXTTEXTOUTA = 83
  3315. EMR_EXTTEXTOUTW = 84
  3316. EMR_POLYBEZIER16 = 85
  3317. EMR_POLYGON16 = 86
  3318. EMR_POLYLINE16 = 87
  3319. EMR_POLYBEZIERTO16 = 88
  3320. EMR_POLYLINETO16 = 89
  3321. EMR_POLYPOLYLINE16 = 90
  3322. EMR_POLYPOLYGON16 = 91
  3323. EMR_POLYDRAW16 = 92
  3324. EMR_CREATEMONOBRUSH = 93
  3325. EMR_CREATEDIBPATTERNBRUSHPT = 94
  3326. EMR_EXTCREATEPEN = 95
  3327. EMR_POLYTEXTOUTA = 96
  3328. EMR_POLYTEXTOUTW = 97
  3329. EMR_MIN = 1
  3330. EMR_MAX = 97
  3331. # Generated by h2py from \msvcnt\include\wingdi.h
  3332. # hacked and split manually by mhammond.
  3333. PANOSE_COUNT = 10
  3334. PAN_FAMILYTYPE_INDEX = 0
  3335. PAN_SERIFSTYLE_INDEX = 1
  3336. PAN_WEIGHT_INDEX = 2
  3337. PAN_PROPORTION_INDEX = 3
  3338. PAN_CONTRAST_INDEX = 4
  3339. PAN_STROKEVARIATION_INDEX = 5
  3340. PAN_ARMSTYLE_INDEX = 6
  3341. PAN_LETTERFORM_INDEX = 7
  3342. PAN_MIDLINE_INDEX = 8
  3343. PAN_XHEIGHT_INDEX = 9
  3344. PAN_CULTURE_LATIN = 0
  3345. PAN_ANY = 0
  3346. PAN_NO_FIT = 1
  3347. PAN_FAMILY_TEXT_DISPLAY = 2
  3348. PAN_FAMILY_SCRIPT = 3
  3349. PAN_FAMILY_DECORATIVE = 4
  3350. PAN_FAMILY_PICTORIAL = 5
  3351. PAN_SERIF_COVE = 2
  3352. PAN_SERIF_OBTUSE_COVE = 3
  3353. PAN_SERIF_SQUARE_COVE = 4
  3354. PAN_SERIF_OBTUSE_SQUARE_COVE = 5
  3355. PAN_SERIF_SQUARE = 6
  3356. PAN_SERIF_THIN = 7
  3357. PAN_SERIF_BONE = 8
  3358. PAN_SERIF_EXAGGERATED = 9
  3359. PAN_SERIF_TRIANGLE = 10
  3360. PAN_SERIF_NORMAL_SANS = 11
  3361. PAN_SERIF_OBTUSE_SANS = 12
  3362. PAN_SERIF_PERP_SANS = 13
  3363. PAN_SERIF_FLARED = 14
  3364. PAN_SERIF_ROUNDED = 15
  3365. PAN_WEIGHT_VERY_LIGHT = 2
  3366. PAN_WEIGHT_LIGHT = 3
  3367. PAN_WEIGHT_THIN = 4
  3368. PAN_WEIGHT_BOOK = 5
  3369. PAN_WEIGHT_MEDIUM = 6
  3370. PAN_WEIGHT_DEMI = 7
  3371. PAN_WEIGHT_BOLD = 8
  3372. PAN_WEIGHT_HEAVY = 9
  3373. PAN_WEIGHT_BLACK = 10
  3374. PAN_WEIGHT_NORD = 11
  3375. PAN_PROP_OLD_STYLE = 2
  3376. PAN_PROP_MODERN = 3
  3377. PAN_PROP_EVEN_WIDTH = 4
  3378. PAN_PROP_EXPANDED = 5
  3379. PAN_PROP_CONDENSED = 6
  3380. PAN_PROP_VERY_EXPANDED = 7
  3381. PAN_PROP_VERY_CONDENSED = 8
  3382. PAN_PROP_MONOSPACED = 9
  3383. PAN_CONTRAST_NONE = 2
  3384. PAN_CONTRAST_VERY_LOW = 3
  3385. PAN_CONTRAST_LOW = 4
  3386. PAN_CONTRAST_MEDIUM_LOW = 5
  3387. PAN_CONTRAST_MEDIUM = 6
  3388. PAN_CONTRAST_MEDIUM_HIGH = 7
  3389. PAN_CONTRAST_HIGH = 8
  3390. PAN_CONTRAST_VERY_HIGH = 9
  3391. PAN_STROKE_GRADUAL_DIAG = 2
  3392. PAN_STROKE_GRADUAL_TRAN = 3
  3393. PAN_STROKE_GRADUAL_VERT = 4
  3394. PAN_STROKE_GRADUAL_HORZ = 5
  3395. PAN_STROKE_RAPID_VERT = 6
  3396. PAN_STROKE_RAPID_HORZ = 7
  3397. PAN_STROKE_INSTANT_VERT = 8
  3398. PAN_STRAIGHT_ARMS_HORZ = 2
  3399. PAN_STRAIGHT_ARMS_WEDGE = 3
  3400. PAN_STRAIGHT_ARMS_VERT = 4
  3401. PAN_STRAIGHT_ARMS_SINGLE_SERIF = 5
  3402. PAN_STRAIGHT_ARMS_DOUBLE_SERIF = 6
  3403. PAN_BENT_ARMS_HORZ = 7
  3404. PAN_BENT_ARMS_WEDGE = 8
  3405. PAN_BENT_ARMS_VERT = 9
  3406. PAN_BENT_ARMS_SINGLE_SERIF = 10
  3407. PAN_BENT_ARMS_DOUBLE_SERIF = 11
  3408. PAN_LETT_NORMAL_CONTACT = 2
  3409. PAN_LETT_NORMAL_WEIGHTED = 3
  3410. PAN_LETT_NORMAL_BOXED = 4
  3411. PAN_LETT_NORMAL_FLATTENED = 5
  3412. PAN_LETT_NORMAL_ROUNDED = 6
  3413. PAN_LETT_NORMAL_OFF_CENTER = 7
  3414. PAN_LETT_NORMAL_SQUARE = 8
  3415. PAN_LETT_OBLIQUE_CONTACT = 9
  3416. PAN_LETT_OBLIQUE_WEIGHTED = 10
  3417. PAN_LETT_OBLIQUE_BOXED = 11
  3418. PAN_LETT_OBLIQUE_FLATTENED = 12
  3419. PAN_LETT_OBLIQUE_ROUNDED = 13
  3420. PAN_LETT_OBLIQUE_OFF_CENTER = 14
  3421. PAN_LETT_OBLIQUE_SQUARE = 15
  3422. PAN_MIDLINE_STANDARD_TRIMMED = 2
  3423. PAN_MIDLINE_STANDARD_POINTED = 3
  3424. PAN_MIDLINE_STANDARD_SERIFED = 4
  3425. PAN_MIDLINE_HIGH_TRIMMED = 5
  3426. PAN_MIDLINE_HIGH_POINTED = 6
  3427. PAN_MIDLINE_HIGH_SERIFED = 7
  3428. PAN_MIDLINE_CONSTANT_TRIMMED = 8
  3429. PAN_MIDLINE_CONSTANT_POINTED = 9
  3430. PAN_MIDLINE_CONSTANT_SERIFED = 10
  3431. PAN_MIDLINE_LOW_TRIMMED = 11
  3432. PAN_MIDLINE_LOW_POINTED = 12
  3433. PAN_MIDLINE_LOW_SERIFED = 13
  3434. PAN_XHEIGHT_CONSTANT_SMALL = 2
  3435. PAN_XHEIGHT_CONSTANT_STD = 3
  3436. PAN_XHEIGHT_CONSTANT_LARGE = 4
  3437. PAN_XHEIGHT_DUCKING_SMALL = 5
  3438. PAN_XHEIGHT_DUCKING_STD = 6
  3439. PAN_XHEIGHT_DUCKING_LARGE = 7
  3440. ELF_VENDOR_SIZE = 4
  3441. ELF_VERSION = 0
  3442. ELF_CULTURE_LATIN = 0
  3443. RASTER_FONTTYPE = 1
  3444. DEVICE_FONTTYPE = 2
  3445. TRUETYPE_FONTTYPE = 4
  3446. def PALETTEINDEX(i):
  3447. return 16777216 | (i)
  3448. PC_RESERVED = 1
  3449. PC_EXPLICIT = 2
  3450. PC_NOCOLLAPSE = 4
  3451. def GetRValue(rgb):
  3452. return rgb & 0xFF
  3453. def GetGValue(rgb):
  3454. return (rgb >> 8) & 0xFF
  3455. def GetBValue(rgb):
  3456. return (rgb >> 16) & 0xFF
  3457. TRANSPARENT = 1
  3458. OPAQUE = 2
  3459. BKMODE_LAST = 2
  3460. GM_COMPATIBLE = 1
  3461. GM_ADVANCED = 2
  3462. GM_LAST = 2
  3463. PT_CLOSEFIGURE = 1
  3464. PT_LINETO = 2
  3465. PT_BEZIERTO = 4
  3466. PT_MOVETO = 6
  3467. MM_TEXT = 1
  3468. MM_LOMETRIC = 2
  3469. MM_HIMETRIC = 3
  3470. MM_LOENGLISH = 4
  3471. MM_HIENGLISH = 5
  3472. MM_TWIPS = 6
  3473. MM_ISOTROPIC = 7
  3474. MM_ANISOTROPIC = 8
  3475. MM_MIN = MM_TEXT
  3476. MM_MAX = MM_ANISOTROPIC
  3477. MM_MAX_FIXEDSCALE = MM_TWIPS
  3478. ABSOLUTE = 1
  3479. RELATIVE = 2
  3480. WHITE_BRUSH = 0
  3481. LTGRAY_BRUSH = 1
  3482. GRAY_BRUSH = 2
  3483. DKGRAY_BRUSH = 3
  3484. BLACK_BRUSH = 4
  3485. NULL_BRUSH = 5
  3486. HOLLOW_BRUSH = NULL_BRUSH
  3487. WHITE_PEN = 6
  3488. BLACK_PEN = 7
  3489. NULL_PEN = 8
  3490. OEM_FIXED_FONT = 10
  3491. ANSI_FIXED_FONT = 11
  3492. ANSI_VAR_FONT = 12
  3493. SYSTEM_FONT = 13
  3494. DEVICE_DEFAULT_FONT = 14
  3495. DEFAULT_PALETTE = 15
  3496. SYSTEM_FIXED_FONT = 16
  3497. STOCK_LAST = 16
  3498. CLR_INVALID = -1
  3499. DC_BRUSH = 18
  3500. DC_PEN = 19
  3501. # Exception/Status codes from winuser.h and winnt.h
  3502. STATUS_WAIT_0 = 0
  3503. STATUS_ABANDONED_WAIT_0 = 128
  3504. STATUS_USER_APC = 192
  3505. STATUS_TIMEOUT = 258
  3506. STATUS_PENDING = 259
  3507. STATUS_SEGMENT_NOTIFICATION = 1073741829
  3508. STATUS_GUARD_PAGE_VIOLATION = -2147483647
  3509. STATUS_DATATYPE_MISALIGNMENT = -2147483646
  3510. STATUS_BREAKPOINT = -2147483645
  3511. STATUS_SINGLE_STEP = -2147483644
  3512. STATUS_ACCESS_VIOLATION = -1073741819
  3513. STATUS_IN_PAGE_ERROR = -1073741818
  3514. STATUS_INVALID_HANDLE = -1073741816
  3515. STATUS_NO_MEMORY = -1073741801
  3516. STATUS_ILLEGAL_INSTRUCTION = -1073741795
  3517. STATUS_NONCONTINUABLE_EXCEPTION = -1073741787
  3518. STATUS_INVALID_DISPOSITION = -1073741786
  3519. STATUS_ARRAY_BOUNDS_EXCEEDED = -1073741684
  3520. STATUS_FLOAT_DENORMAL_OPERAND = -1073741683
  3521. STATUS_FLOAT_DIVIDE_BY_ZERO = -1073741682
  3522. STATUS_FLOAT_INEXACT_RESULT = -1073741681
  3523. STATUS_FLOAT_INVALID_OPERATION = -1073741680
  3524. STATUS_FLOAT_OVERFLOW = -1073741679
  3525. STATUS_FLOAT_STACK_CHECK = -1073741678
  3526. STATUS_FLOAT_UNDERFLOW = -1073741677
  3527. STATUS_INTEGER_DIVIDE_BY_ZERO = -1073741676
  3528. STATUS_INTEGER_OVERFLOW = -1073741675
  3529. STATUS_PRIVILEGED_INSTRUCTION = -1073741674
  3530. STATUS_STACK_OVERFLOW = -1073741571
  3531. STATUS_CONTROL_C_EXIT = -1073741510
  3532. WAIT_FAILED = -1
  3533. WAIT_OBJECT_0 = STATUS_WAIT_0 + 0
  3534. WAIT_ABANDONED = STATUS_ABANDONED_WAIT_0 + 0
  3535. WAIT_ABANDONED_0 = STATUS_ABANDONED_WAIT_0 + 0
  3536. WAIT_TIMEOUT = STATUS_TIMEOUT
  3537. WAIT_IO_COMPLETION = STATUS_USER_APC
  3538. STILL_ACTIVE = STATUS_PENDING
  3539. EXCEPTION_ACCESS_VIOLATION = STATUS_ACCESS_VIOLATION
  3540. EXCEPTION_DATATYPE_MISALIGNMENT = STATUS_DATATYPE_MISALIGNMENT
  3541. EXCEPTION_BREAKPOINT = STATUS_BREAKPOINT
  3542. EXCEPTION_SINGLE_STEP = STATUS_SINGLE_STEP
  3543. EXCEPTION_ARRAY_BOUNDS_EXCEEDED = STATUS_ARRAY_BOUNDS_EXCEEDED
  3544. EXCEPTION_FLT_DENORMAL_OPERAND = STATUS_FLOAT_DENORMAL_OPERAND
  3545. EXCEPTION_FLT_DIVIDE_BY_ZERO = STATUS_FLOAT_DIVIDE_BY_ZERO
  3546. EXCEPTION_FLT_INEXACT_RESULT = STATUS_FLOAT_INEXACT_RESULT
  3547. EXCEPTION_FLT_INVALID_OPERATION = STATUS_FLOAT_INVALID_OPERATION
  3548. EXCEPTION_FLT_OVERFLOW = STATUS_FLOAT_OVERFLOW
  3549. EXCEPTION_FLT_STACK_CHECK = STATUS_FLOAT_STACK_CHECK
  3550. EXCEPTION_FLT_UNDERFLOW = STATUS_FLOAT_UNDERFLOW
  3551. EXCEPTION_INT_DIVIDE_BY_ZERO = STATUS_INTEGER_DIVIDE_BY_ZERO
  3552. EXCEPTION_INT_OVERFLOW = STATUS_INTEGER_OVERFLOW
  3553. EXCEPTION_PRIV_INSTRUCTION = STATUS_PRIVILEGED_INSTRUCTION
  3554. EXCEPTION_IN_PAGE_ERROR = STATUS_IN_PAGE_ERROR
  3555. EXCEPTION_ILLEGAL_INSTRUCTION = STATUS_ILLEGAL_INSTRUCTION
  3556. EXCEPTION_NONCONTINUABLE_EXCEPTION = STATUS_NONCONTINUABLE_EXCEPTION
  3557. EXCEPTION_STACK_OVERFLOW = STATUS_STACK_OVERFLOW
  3558. EXCEPTION_INVALID_DISPOSITION = STATUS_INVALID_DISPOSITION
  3559. EXCEPTION_GUARD_PAGE = STATUS_GUARD_PAGE_VIOLATION
  3560. EXCEPTION_INVALID_HANDLE = STATUS_INVALID_HANDLE
  3561. CONTROL_C_EXIT = STATUS_CONTROL_C_EXIT
  3562. # winuser.h line 8594
  3563. # constants used with SystemParametersInfo
  3564. SPI_GETBEEP = 1
  3565. SPI_SETBEEP = 2
  3566. SPI_GETMOUSE = 3
  3567. SPI_SETMOUSE = 4
  3568. SPI_GETBORDER = 5
  3569. SPI_SETBORDER = 6
  3570. SPI_GETKEYBOARDSPEED = 10
  3571. SPI_SETKEYBOARDSPEED = 11
  3572. SPI_LANGDRIVER = 12
  3573. SPI_ICONHORIZONTALSPACING = 13
  3574. SPI_GETSCREENSAVETIMEOUT = 14
  3575. SPI_SETSCREENSAVETIMEOUT = 15
  3576. SPI_GETSCREENSAVEACTIVE = 16
  3577. SPI_SETSCREENSAVEACTIVE = 17
  3578. SPI_GETGRIDGRANULARITY = 18
  3579. SPI_SETGRIDGRANULARITY = 19
  3580. SPI_SETDESKWALLPAPER = 20
  3581. SPI_SETDESKPATTERN = 21
  3582. SPI_GETKEYBOARDDELAY = 22
  3583. SPI_SETKEYBOARDDELAY = 23
  3584. SPI_ICONVERTICALSPACING = 24
  3585. SPI_GETICONTITLEWRAP = 25
  3586. SPI_SETICONTITLEWRAP = 26
  3587. SPI_GETMENUDROPALIGNMENT = 27
  3588. SPI_SETMENUDROPALIGNMENT = 28
  3589. SPI_SETDOUBLECLKWIDTH = 29
  3590. SPI_SETDOUBLECLKHEIGHT = 30
  3591. SPI_GETICONTITLELOGFONT = 31
  3592. SPI_SETDOUBLECLICKTIME = 32
  3593. SPI_SETMOUSEBUTTONSWAP = 33
  3594. SPI_SETICONTITLELOGFONT = 34
  3595. SPI_GETFASTTASKSWITCH = 35
  3596. SPI_SETFASTTASKSWITCH = 36
  3597. SPI_SETDRAGFULLWINDOWS = 37
  3598. SPI_GETDRAGFULLWINDOWS = 38
  3599. SPI_GETNONCLIENTMETRICS = 41
  3600. SPI_SETNONCLIENTMETRICS = 42
  3601. SPI_GETMINIMIZEDMETRICS = 43
  3602. SPI_SETMINIMIZEDMETRICS = 44
  3603. SPI_GETICONMETRICS = 45
  3604. SPI_SETICONMETRICS = 46
  3605. SPI_SETWORKAREA = 47
  3606. SPI_GETWORKAREA = 48
  3607. SPI_SETPENWINDOWS = 49
  3608. SPI_GETFILTERKEYS = 50
  3609. SPI_SETFILTERKEYS = 51
  3610. SPI_GETTOGGLEKEYS = 52
  3611. SPI_SETTOGGLEKEYS = 53
  3612. SPI_GETMOUSEKEYS = 54
  3613. SPI_SETMOUSEKEYS = 55
  3614. SPI_GETSHOWSOUNDS = 56
  3615. SPI_SETSHOWSOUNDS = 57
  3616. SPI_GETSTICKYKEYS = 58
  3617. SPI_SETSTICKYKEYS = 59
  3618. SPI_GETACCESSTIMEOUT = 60
  3619. SPI_SETACCESSTIMEOUT = 61
  3620. SPI_GETSERIALKEYS = 62
  3621. SPI_SETSERIALKEYS = 63
  3622. SPI_GETSOUNDSENTRY = 64
  3623. SPI_SETSOUNDSENTRY = 65
  3624. SPI_GETHIGHCONTRAST = 66
  3625. SPI_SETHIGHCONTRAST = 67
  3626. SPI_GETKEYBOARDPREF = 68
  3627. SPI_SETKEYBOARDPREF = 69
  3628. SPI_GETSCREENREADER = 70
  3629. SPI_SETSCREENREADER = 71
  3630. SPI_GETANIMATION = 72
  3631. SPI_SETANIMATION = 73
  3632. SPI_GETFONTSMOOTHING = 74
  3633. SPI_SETFONTSMOOTHING = 75
  3634. SPI_SETDRAGWIDTH = 76
  3635. SPI_SETDRAGHEIGHT = 77
  3636. SPI_SETHANDHELD = 78
  3637. SPI_GETLOWPOWERTIMEOUT = 79
  3638. SPI_GETPOWEROFFTIMEOUT = 80
  3639. SPI_SETLOWPOWERTIMEOUT = 81
  3640. SPI_SETPOWEROFFTIMEOUT = 82
  3641. SPI_GETLOWPOWERACTIVE = 83
  3642. SPI_GETPOWEROFFACTIVE = 84
  3643. SPI_SETLOWPOWERACTIVE = 85
  3644. SPI_SETPOWEROFFACTIVE = 86
  3645. SPI_SETCURSORS = 87
  3646. SPI_SETICONS = 88
  3647. SPI_GETDEFAULTINPUTLANG = 89
  3648. SPI_SETDEFAULTINPUTLANG = 90
  3649. SPI_SETLANGTOGGLE = 91
  3650. SPI_GETWINDOWSEXTENSION = 92
  3651. SPI_SETMOUSETRAILS = 93
  3652. SPI_GETMOUSETRAILS = 94
  3653. SPI_GETSNAPTODEFBUTTON = 95
  3654. SPI_SETSNAPTODEFBUTTON = 96
  3655. SPI_SETSCREENSAVERRUNNING = 97
  3656. SPI_SCREENSAVERRUNNING = SPI_SETSCREENSAVERRUNNING
  3657. SPI_GETMOUSEHOVERWIDTH = 98
  3658. SPI_SETMOUSEHOVERWIDTH = 99
  3659. SPI_GETMOUSEHOVERHEIGHT = 100
  3660. SPI_SETMOUSEHOVERHEIGHT = 101
  3661. SPI_GETMOUSEHOVERTIME = 102
  3662. SPI_SETMOUSEHOVERTIME = 103
  3663. SPI_GETWHEELSCROLLLINES = 104
  3664. SPI_SETWHEELSCROLLLINES = 105
  3665. SPI_GETMENUSHOWDELAY = 106
  3666. SPI_SETMENUSHOWDELAY = 107
  3667. SPI_GETSHOWIMEUI = 110
  3668. SPI_SETSHOWIMEUI = 111
  3669. SPI_GETMOUSESPEED = 112
  3670. SPI_SETMOUSESPEED = 113
  3671. SPI_GETSCREENSAVERRUNNING = 114
  3672. SPI_GETDESKWALLPAPER = 115
  3673. SPI_GETACTIVEWINDOWTRACKING = 4096
  3674. SPI_SETACTIVEWINDOWTRACKING = 4097
  3675. SPI_GETMENUANIMATION = 4098
  3676. SPI_SETMENUANIMATION = 4099
  3677. SPI_GETCOMBOBOXANIMATION = 4100
  3678. SPI_SETCOMBOBOXANIMATION = 4101
  3679. SPI_GETLISTBOXSMOOTHSCROLLING = 4102
  3680. SPI_SETLISTBOXSMOOTHSCROLLING = 4103
  3681. SPI_GETGRADIENTCAPTIONS = 4104
  3682. SPI_SETGRADIENTCAPTIONS = 4105
  3683. SPI_GETKEYBOARDCUES = 4106
  3684. SPI_SETKEYBOARDCUES = 4107
  3685. SPI_GETMENUUNDERLINES = 4106
  3686. SPI_SETMENUUNDERLINES = 4107
  3687. SPI_GETACTIVEWNDTRKZORDER = 4108
  3688. SPI_SETACTIVEWNDTRKZORDER = 4109
  3689. SPI_GETHOTTRACKING = 4110
  3690. SPI_SETHOTTRACKING = 4111
  3691. SPI_GETMENUFADE = 4114
  3692. SPI_SETMENUFADE = 4115
  3693. SPI_GETSELECTIONFADE = 4116
  3694. SPI_SETSELECTIONFADE = 4117
  3695. SPI_GETTOOLTIPANIMATION = 4118
  3696. SPI_SETTOOLTIPANIMATION = 4119
  3697. SPI_GETTOOLTIPFADE = 4120
  3698. SPI_SETTOOLTIPFADE = 4121
  3699. SPI_GETCURSORSHADOW = 4122
  3700. SPI_SETCURSORSHADOW = 4123
  3701. SPI_GETMOUSESONAR = 4124
  3702. SPI_SETMOUSESONAR = 4125
  3703. SPI_GETMOUSECLICKLOCK = 4126
  3704. SPI_SETMOUSECLICKLOCK = 4127
  3705. SPI_GETMOUSEVANISH = 4128
  3706. SPI_SETMOUSEVANISH = 4129
  3707. SPI_GETFLATMENU = 4130
  3708. SPI_SETFLATMENU = 4131
  3709. SPI_GETDROPSHADOW = 4132
  3710. SPI_SETDROPSHADOW = 4133
  3711. SPI_GETBLOCKSENDINPUTRESETS = 4134
  3712. SPI_SETBLOCKSENDINPUTRESETS = 4135
  3713. SPI_GETUIEFFECTS = 4158
  3714. SPI_SETUIEFFECTS = 4159
  3715. SPI_GETFOREGROUNDLOCKTIMEOUT = 8192
  3716. SPI_SETFOREGROUNDLOCKTIMEOUT = 8193
  3717. SPI_GETACTIVEWNDTRKTIMEOUT = 8194
  3718. SPI_SETACTIVEWNDTRKTIMEOUT = 8195
  3719. SPI_GETFOREGROUNDFLASHCOUNT = 8196
  3720. SPI_SETFOREGROUNDFLASHCOUNT = 8197
  3721. SPI_GETCARETWIDTH = 8198
  3722. SPI_SETCARETWIDTH = 8199
  3723. SPI_GETMOUSECLICKLOCKTIME = 8200
  3724. SPI_SETMOUSECLICKLOCKTIME = 8201
  3725. SPI_GETFONTSMOOTHINGTYPE = 8202
  3726. SPI_SETFONTSMOOTHINGTYPE = 8203
  3727. SPI_GETFONTSMOOTHINGCONTRAST = 8204
  3728. SPI_SETFONTSMOOTHINGCONTRAST = 8205
  3729. SPI_GETFOCUSBORDERWIDTH = 8206
  3730. SPI_SETFOCUSBORDERWIDTH = 8207
  3731. SPI_GETFOCUSBORDERHEIGHT = 8208
  3732. SPI_SETFOCUSBORDERHEIGHT = 8209
  3733. SPI_GETFONTSMOOTHINGORIENTATION = 8210
  3734. SPI_SETFONTSMOOTHINGORIENTATION = 8211
  3735. # fWinIni flags for SystemParametersInfo
  3736. SPIF_UPDATEINIFILE = 1
  3737. SPIF_SENDWININICHANGE = 2
  3738. SPIF_SENDCHANGE = SPIF_SENDWININICHANGE
  3739. # used with SystemParametersInfo and SPI_GETFONTSMOOTHINGTYPE/SPI_SETFONTSMOOTHINGTYPE
  3740. FE_FONTSMOOTHINGSTANDARD = 1
  3741. FE_FONTSMOOTHINGCLEARTYPE = 2
  3742. FE_FONTSMOOTHINGDOCKING = 32768
  3743. METRICS_USEDEFAULT = -1
  3744. ARW_BOTTOMLEFT = 0
  3745. ARW_BOTTOMRIGHT = 1
  3746. ARW_TOPLEFT = 2
  3747. ARW_TOPRIGHT = 3
  3748. ARW_STARTMASK = 3
  3749. ARW_STARTRIGHT = 1
  3750. ARW_STARTTOP = 2
  3751. ARW_LEFT = 0
  3752. ARW_RIGHT = 0
  3753. ARW_UP = 4
  3754. ARW_DOWN = 4
  3755. ARW_HIDE = 8
  3756. # ARW_VALID = 0x000F
  3757. SERKF_SERIALKEYSON = 1
  3758. SERKF_AVAILABLE = 2
  3759. SERKF_INDICATOR = 4
  3760. HCF_HIGHCONTRASTON = 1
  3761. HCF_AVAILABLE = 2
  3762. HCF_HOTKEYACTIVE = 4
  3763. HCF_CONFIRMHOTKEY = 8
  3764. HCF_HOTKEYSOUND = 16
  3765. HCF_INDICATOR = 32
  3766. HCF_HOTKEYAVAILABLE = 64
  3767. CDS_UPDATEREGISTRY = 1
  3768. CDS_TEST = 2
  3769. CDS_FULLSCREEN = 4
  3770. CDS_GLOBAL = 8
  3771. CDS_SET_PRIMARY = 16
  3772. CDS_RESET = 1073741824
  3773. CDS_SETRECT = 536870912
  3774. CDS_NORESET = 268435456
  3775. # return values from ChangeDisplaySettings and ChangeDisplaySettingsEx
  3776. DISP_CHANGE_SUCCESSFUL = 0
  3777. DISP_CHANGE_RESTART = 1
  3778. DISP_CHANGE_FAILED = -1
  3779. DISP_CHANGE_BADMODE = -2
  3780. DISP_CHANGE_NOTUPDATED = -3
  3781. DISP_CHANGE_BADFLAGS = -4
  3782. DISP_CHANGE_BADPARAM = -5
  3783. DISP_CHANGE_BADDUALVIEW = -6
  3784. ENUM_CURRENT_SETTINGS = -1
  3785. ENUM_REGISTRY_SETTINGS = -2
  3786. FKF_FILTERKEYSON = 1
  3787. FKF_AVAILABLE = 2
  3788. FKF_HOTKEYACTIVE = 4
  3789. FKF_CONFIRMHOTKEY = 8
  3790. FKF_HOTKEYSOUND = 16
  3791. FKF_INDICATOR = 32
  3792. FKF_CLICKON = 64
  3793. SKF_STICKYKEYSON = 1
  3794. SKF_AVAILABLE = 2
  3795. SKF_HOTKEYACTIVE = 4
  3796. SKF_CONFIRMHOTKEY = 8
  3797. SKF_HOTKEYSOUND = 16
  3798. SKF_INDICATOR = 32
  3799. SKF_AUDIBLEFEEDBACK = 64
  3800. SKF_TRISTATE = 128
  3801. SKF_TWOKEYSOFF = 256
  3802. SKF_LALTLATCHED = 268435456
  3803. SKF_LCTLLATCHED = 67108864
  3804. SKF_LSHIFTLATCHED = 16777216
  3805. SKF_RALTLATCHED = 536870912
  3806. SKF_RCTLLATCHED = 134217728
  3807. SKF_RSHIFTLATCHED = 33554432
  3808. SKF_LWINLATCHED = 1073741824
  3809. SKF_RWINLATCHED = -2147483648
  3810. SKF_LALTLOCKED = 1048576
  3811. SKF_LCTLLOCKED = 262144
  3812. SKF_LSHIFTLOCKED = 65536
  3813. SKF_RALTLOCKED = 2097152
  3814. SKF_RCTLLOCKED = 524288
  3815. SKF_RSHIFTLOCKED = 131072
  3816. SKF_LWINLOCKED = 4194304
  3817. SKF_RWINLOCKED = 8388608
  3818. MKF_MOUSEKEYSON = 1
  3819. MKF_AVAILABLE = 2
  3820. MKF_HOTKEYACTIVE = 4
  3821. MKF_CONFIRMHOTKEY = 8
  3822. MKF_HOTKEYSOUND = 16
  3823. MKF_INDICATOR = 32
  3824. MKF_MODIFIERS = 64
  3825. MKF_REPLACENUMBERS = 128
  3826. MKF_LEFTBUTTONSEL = 268435456
  3827. MKF_RIGHTBUTTONSEL = 536870912
  3828. MKF_LEFTBUTTONDOWN = 16777216
  3829. MKF_RIGHTBUTTONDOWN = 33554432
  3830. MKF_MOUSEMODE = -2147483648
  3831. ATF_TIMEOUTON = 1
  3832. ATF_ONOFFFEEDBACK = 2
  3833. SSGF_NONE = 0
  3834. SSGF_DISPLAY = 3
  3835. SSTF_NONE = 0
  3836. SSTF_CHARS = 1
  3837. SSTF_BORDER = 2
  3838. SSTF_DISPLAY = 3
  3839. SSWF_NONE = 0
  3840. SSWF_TITLE = 1
  3841. SSWF_WINDOW = 2
  3842. SSWF_DISPLAY = 3
  3843. SSWF_CUSTOM = 4
  3844. SSF_SOUNDSENTRYON = 1
  3845. SSF_AVAILABLE = 2
  3846. SSF_INDICATOR = 4
  3847. TKF_TOGGLEKEYSON = 1
  3848. TKF_AVAILABLE = 2
  3849. TKF_HOTKEYACTIVE = 4
  3850. TKF_CONFIRMHOTKEY = 8
  3851. TKF_HOTKEYSOUND = 16
  3852. TKF_INDICATOR = 32
  3853. SLE_ERROR = 1
  3854. SLE_MINORERROR = 2
  3855. SLE_WARNING = 3
  3856. MONITOR_DEFAULTTONULL = 0
  3857. MONITOR_DEFAULTTOPRIMARY = 1
  3858. MONITOR_DEFAULTTONEAREST = 2
  3859. MONITORINFOF_PRIMARY = 1
  3860. CCHDEVICENAME = 32
  3861. CHILDID_SELF = 0
  3862. INDEXID_OBJECT = 0
  3863. INDEXID_CONTAINER = 0
  3864. OBJID_WINDOW = 0
  3865. OBJID_SYSMENU = -1
  3866. OBJID_TITLEBAR = -2
  3867. OBJID_MENU = -3
  3868. OBJID_CLIENT = -4
  3869. OBJID_VSCROLL = -5
  3870. OBJID_HSCROLL = -6
  3871. OBJID_SIZEGRIP = -7
  3872. OBJID_CARET = -8
  3873. OBJID_CURSOR = -9
  3874. OBJID_ALERT = -10
  3875. OBJID_SOUND = -11
  3876. EVENT_MIN = 1
  3877. EVENT_MAX = 2147483647
  3878. EVENT_SYSTEM_SOUND = 1
  3879. EVENT_SYSTEM_ALERT = 2
  3880. EVENT_SYSTEM_FOREGROUND = 3
  3881. EVENT_SYSTEM_MENUSTART = 4
  3882. EVENT_SYSTEM_MENUEND = 5
  3883. EVENT_SYSTEM_MENUPOPUPSTART = 6
  3884. EVENT_SYSTEM_MENUPOPUPEND = 7
  3885. EVENT_SYSTEM_CAPTURESTART = 8
  3886. EVENT_SYSTEM_CAPTUREEND = 9
  3887. EVENT_SYSTEM_MOVESIZESTART = 10
  3888. EVENT_SYSTEM_MOVESIZEEND = 11
  3889. EVENT_SYSTEM_CONTEXTHELPSTART = 12
  3890. EVENT_SYSTEM_CONTEXTHELPEND = 13
  3891. EVENT_SYSTEM_DRAGDROPSTART = 14
  3892. EVENT_SYSTEM_DRAGDROPEND = 15
  3893. EVENT_SYSTEM_DIALOGSTART = 16
  3894. EVENT_SYSTEM_DIALOGEND = 17
  3895. EVENT_SYSTEM_SCROLLINGSTART = 18
  3896. EVENT_SYSTEM_SCROLLINGEND = 19
  3897. EVENT_SYSTEM_SWITCHSTART = 20
  3898. EVENT_SYSTEM_SWITCHEND = 21
  3899. EVENT_SYSTEM_MINIMIZESTART = 22
  3900. EVENT_SYSTEM_MINIMIZEEND = 23
  3901. EVENT_OBJECT_CREATE = 32768
  3902. EVENT_OBJECT_DESTROY = 32769
  3903. EVENT_OBJECT_SHOW = 32770
  3904. EVENT_OBJECT_HIDE = 32771
  3905. EVENT_OBJECT_REORDER = 32772
  3906. EVENT_OBJECT_FOCUS = 32773
  3907. EVENT_OBJECT_SELECTION = 32774
  3908. EVENT_OBJECT_SELECTIONADD = 32775
  3909. EVENT_OBJECT_SELECTIONREMOVE = 32776
  3910. EVENT_OBJECT_SELECTIONWITHIN = 32777
  3911. EVENT_OBJECT_STATECHANGE = 32778
  3912. EVENT_OBJECT_LOCATIONCHANGE = 32779
  3913. EVENT_OBJECT_NAMECHANGE = 32780
  3914. EVENT_OBJECT_DESCRIPTIONCHANGE = 32781
  3915. EVENT_OBJECT_VALUECHANGE = 32782
  3916. EVENT_OBJECT_PARENTCHANGE = 32783
  3917. EVENT_OBJECT_HELPCHANGE = 32784
  3918. EVENT_OBJECT_DEFACTIONCHANGE = 32785
  3919. EVENT_OBJECT_ACCELERATORCHANGE = 32786
  3920. SOUND_SYSTEM_STARTUP = 1
  3921. SOUND_SYSTEM_SHUTDOWN = 2
  3922. SOUND_SYSTEM_BEEP = 3
  3923. SOUND_SYSTEM_ERROR = 4
  3924. SOUND_SYSTEM_QUESTION = 5
  3925. SOUND_SYSTEM_WARNING = 6
  3926. SOUND_SYSTEM_INFORMATION = 7
  3927. SOUND_SYSTEM_MAXIMIZE = 8
  3928. SOUND_SYSTEM_MINIMIZE = 9
  3929. SOUND_SYSTEM_RESTOREUP = 10
  3930. SOUND_SYSTEM_RESTOREDOWN = 11
  3931. SOUND_SYSTEM_APPSTART = 12
  3932. SOUND_SYSTEM_FAULT = 13
  3933. SOUND_SYSTEM_APPEND = 14
  3934. SOUND_SYSTEM_MENUCOMMAND = 15
  3935. SOUND_SYSTEM_MENUPOPUP = 16
  3936. CSOUND_SYSTEM = 16
  3937. ALERT_SYSTEM_INFORMATIONAL = 1
  3938. ALERT_SYSTEM_WARNING = 2
  3939. ALERT_SYSTEM_ERROR = 3
  3940. ALERT_SYSTEM_QUERY = 4
  3941. ALERT_SYSTEM_CRITICAL = 5
  3942. CALERT_SYSTEM = 6
  3943. WINEVENT_OUTOFCONTEXT = 0
  3944. WINEVENT_SKIPOWNTHREAD = 1
  3945. WINEVENT_SKIPOWNPROCESS = 2
  3946. WINEVENT_INCONTEXT = 4
  3947. GUI_CARETBLINKING = 1
  3948. GUI_INMOVESIZE = 2
  3949. GUI_INMENUMODE = 4
  3950. GUI_SYSTEMMENUMODE = 8
  3951. GUI_POPUPMENUMODE = 16
  3952. STATE_SYSTEM_UNAVAILABLE = 1
  3953. STATE_SYSTEM_SELECTED = 2
  3954. STATE_SYSTEM_FOCUSED = 4
  3955. STATE_SYSTEM_PRESSED = 8
  3956. STATE_SYSTEM_CHECKED = 16
  3957. STATE_SYSTEM_MIXED = 32
  3958. STATE_SYSTEM_READONLY = 64
  3959. STATE_SYSTEM_HOTTRACKED = 128
  3960. STATE_SYSTEM_DEFAULT = 256
  3961. STATE_SYSTEM_EXPANDED = 512
  3962. STATE_SYSTEM_COLLAPSED = 1024
  3963. STATE_SYSTEM_BUSY = 2048
  3964. STATE_SYSTEM_FLOATING = 4096
  3965. STATE_SYSTEM_MARQUEED = 8192
  3966. STATE_SYSTEM_ANIMATED = 16384
  3967. STATE_SYSTEM_INVISIBLE = 32768
  3968. STATE_SYSTEM_OFFSCREEN = 65536
  3969. STATE_SYSTEM_SIZEABLE = 131072
  3970. STATE_SYSTEM_MOVEABLE = 262144
  3971. STATE_SYSTEM_SELFVOICING = 524288
  3972. STATE_SYSTEM_FOCUSABLE = 1048576
  3973. STATE_SYSTEM_SELECTABLE = 2097152
  3974. STATE_SYSTEM_LINKED = 4194304
  3975. STATE_SYSTEM_TRAVERSED = 8388608
  3976. STATE_SYSTEM_MULTISELECTABLE = 16777216
  3977. STATE_SYSTEM_EXTSELECTABLE = 33554432
  3978. STATE_SYSTEM_ALERT_LOW = 67108864
  3979. STATE_SYSTEM_ALERT_MEDIUM = 134217728
  3980. STATE_SYSTEM_ALERT_HIGH = 268435456
  3981. STATE_SYSTEM_VALID = 536870911
  3982. CCHILDREN_TITLEBAR = 5
  3983. CCHILDREN_SCROLLBAR = 5
  3984. CURSOR_SHOWING = 1
  3985. WS_ACTIVECAPTION = 1
  3986. GA_MIC = 1
  3987. GA_PARENT = 1
  3988. GA_ROOT = 2
  3989. GA_ROOTOWNER = 3
  3990. GA_MAC = 4
  3991. # winuser.h line 1979
  3992. BF_LEFT = 1
  3993. BF_TOP = 2
  3994. BF_RIGHT = 4
  3995. BF_BOTTOM = 8
  3996. BF_TOPLEFT = BF_TOP | BF_LEFT
  3997. BF_TOPRIGHT = BF_TOP | BF_RIGHT
  3998. BF_BOTTOMLEFT = BF_BOTTOM | BF_LEFT
  3999. BF_BOTTOMRIGHT = BF_BOTTOM | BF_RIGHT
  4000. BF_RECT = BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM
  4001. BF_DIAGONAL = 16
  4002. BF_DIAGONAL_ENDTOPRIGHT = BF_DIAGONAL | BF_TOP | BF_RIGHT
  4003. BF_DIAGONAL_ENDTOPLEFT = BF_DIAGONAL | BF_TOP | BF_LEFT
  4004. BF_DIAGONAL_ENDBOTTOMLEFT = BF_DIAGONAL | BF_BOTTOM | BF_LEFT
  4005. BF_DIAGONAL_ENDBOTTOMRIGHT = BF_DIAGONAL | BF_BOTTOM | BF_RIGHT
  4006. BF_MIDDLE = 2048
  4007. BF_SOFT = 4096
  4008. BF_ADJUST = 8192
  4009. BF_FLAT = 16384
  4010. BF_MONO = 32768
  4011. DFC_CAPTION = 1
  4012. DFC_MENU = 2
  4013. DFC_SCROLL = 3
  4014. DFC_BUTTON = 4
  4015. DFC_POPUPMENU = 5
  4016. DFCS_CAPTIONCLOSE = 0
  4017. DFCS_CAPTIONMIN = 1
  4018. DFCS_CAPTIONMAX = 2
  4019. DFCS_CAPTIONRESTORE = 3
  4020. DFCS_CAPTIONHELP = 4
  4021. DFCS_MENUARROW = 0
  4022. DFCS_MENUCHECK = 1
  4023. DFCS_MENUBULLET = 2
  4024. DFCS_MENUARROWRIGHT = 4
  4025. DFCS_SCROLLUP = 0
  4026. DFCS_SCROLLDOWN = 1
  4027. DFCS_SCROLLLEFT = 2
  4028. DFCS_SCROLLRIGHT = 3
  4029. DFCS_SCROLLCOMBOBOX = 5
  4030. DFCS_SCROLLSIZEGRIP = 8
  4031. DFCS_SCROLLSIZEGRIPRIGHT = 16
  4032. DFCS_BUTTONCHECK = 0
  4033. DFCS_BUTTONRADIOIMAGE = 1
  4034. DFCS_BUTTONRADIOMASK = 2
  4035. DFCS_BUTTONRADIO = 4
  4036. DFCS_BUTTON3STATE = 8
  4037. DFCS_BUTTONPUSH = 16
  4038. DFCS_INACTIVE = 256
  4039. DFCS_PUSHED = 512
  4040. DFCS_CHECKED = 1024
  4041. DFCS_TRANSPARENT = 2048
  4042. DFCS_HOT = 4096
  4043. DFCS_ADJUSTRECT = 8192
  4044. DFCS_FLAT = 16384
  4045. DFCS_MONO = 32768
  4046. DC_ACTIVE = 1
  4047. DC_SMALLCAP = 2
  4048. DC_ICON = 4
  4049. DC_TEXT = 8
  4050. DC_INBUTTON = 16
  4051. DC_GRADIENT = 32
  4052. IDANI_OPEN = 1
  4053. IDANI_CLOSE = 2
  4054. IDANI_CAPTION = 3
  4055. CF_TEXT = 1
  4056. CF_BITMAP = 2
  4057. CF_METAFILEPICT = 3
  4058. CF_SYLK = 4
  4059. CF_DIF = 5
  4060. CF_TIFF = 6
  4061. CF_OEMTEXT = 7
  4062. CF_DIB = 8
  4063. CF_PALETTE = 9
  4064. CF_PENDATA = 10
  4065. CF_RIFF = 11
  4066. CF_WAVE = 12
  4067. CF_UNICODETEXT = 13
  4068. CF_ENHMETAFILE = 14
  4069. CF_HDROP = 15
  4070. CF_LOCALE = 16
  4071. CF_DIBV5 = 17
  4072. CF_MAX = 18
  4073. CF_OWNERDISPLAY = 128
  4074. CF_DSPTEXT = 129
  4075. CF_DSPBITMAP = 130
  4076. CF_DSPMETAFILEPICT = 131
  4077. CF_DSPENHMETAFILE = 142
  4078. CF_PRIVATEFIRST = 512
  4079. CF_PRIVATELAST = 767
  4080. CF_GDIOBJFIRST = 768
  4081. CF_GDIOBJLAST = 1023
  4082. FVIRTKEY = 1
  4083. FNOINVERT = 2
  4084. FSHIFT = 4
  4085. FCONTROL = 8
  4086. FALT = 16
  4087. WPF_SETMINPOSITION = 1
  4088. WPF_RESTORETOMAXIMIZED = 2
  4089. ODT_MENU = 1
  4090. ODT_LISTBOX = 2
  4091. ODT_COMBOBOX = 3
  4092. ODT_BUTTON = 4
  4093. ODT_STATIC = 5
  4094. ODA_DRAWENTIRE = 1
  4095. ODA_SELECT = 2
  4096. ODA_FOCUS = 4
  4097. ODS_SELECTED = 1
  4098. ODS_GRAYED = 2
  4099. ODS_DISABLED = 4
  4100. ODS_CHECKED = 8
  4101. ODS_FOCUS = 16
  4102. ODS_DEFAULT = 32
  4103. ODS_COMBOBOXEDIT = 4096
  4104. ODS_HOTLIGHT = 64
  4105. ODS_INACTIVE = 128
  4106. PM_NOREMOVE = 0
  4107. PM_REMOVE = 1
  4108. PM_NOYIELD = 2
  4109. MOD_ALT = 1
  4110. MOD_CONTROL = 2
  4111. MOD_SHIFT = 4
  4112. MOD_WIN = 8
  4113. IDHOT_SNAPWINDOW = -1
  4114. IDHOT_SNAPDESKTOP = -2
  4115. # EW_RESTARTWINDOWS = 0x0042
  4116. # EW_REBOOTSYSTEM = 0x0043
  4117. # EW_EXITANDEXECAPP = 0x0044
  4118. ENDSESSION_LOGOFF = -2147483648
  4119. EWX_LOGOFF = 0
  4120. EWX_SHUTDOWN = 1
  4121. EWX_REBOOT = 2
  4122. EWX_FORCE = 4
  4123. EWX_POWEROFF = 8
  4124. EWX_FORCEIFHUNG = 16
  4125. BSM_ALLCOMPONENTS = 0
  4126. BSM_VXDS = 1
  4127. BSM_NETDRIVER = 2
  4128. BSM_INSTALLABLEDRIVERS = 4
  4129. BSM_APPLICATIONS = 8
  4130. BSM_ALLDESKTOPS = 16
  4131. BSF_QUERY = 1
  4132. BSF_IGNORECURRENTTASK = 2
  4133. BSF_FLUSHDISK = 4
  4134. BSF_NOHANG = 8
  4135. BSF_POSTMESSAGE = 16
  4136. BSF_FORCEIFHUNG = 32
  4137. BSF_NOTIMEOUTIFNOTHUNG = 64
  4138. BROADCAST_QUERY_DENY = 1112363332 # Return this value to deny a query.
  4139. DBWF_LPARAMPOINTER = 32768
  4140. # winuser.h line 3232
  4141. SWP_NOSIZE = 1
  4142. SWP_NOMOVE = 2
  4143. SWP_NOZORDER = 4
  4144. SWP_NOREDRAW = 8
  4145. SWP_NOACTIVATE = 16
  4146. SWP_FRAMECHANGED = 32
  4147. SWP_SHOWWINDOW = 64
  4148. SWP_HIDEWINDOW = 128
  4149. SWP_NOCOPYBITS = 256
  4150. SWP_NOOWNERZORDER = 512
  4151. SWP_NOSENDCHANGING = 1024
  4152. SWP_DRAWFRAME = SWP_FRAMECHANGED
  4153. SWP_NOREPOSITION = SWP_NOOWNERZORDER
  4154. SWP_DEFERERASE = 8192
  4155. SWP_ASYNCWINDOWPOS = 16384
  4156. DLGWINDOWEXTRA = 30
  4157. # winuser.h line 4249
  4158. KEYEVENTF_EXTENDEDKEY = 1
  4159. KEYEVENTF_KEYUP = 2
  4160. # if(_WIN32_WINNT >= 0x0500)
  4161. KEYEVENTF_UNICODE = 4
  4162. KEYEVENTF_SCANCODE = 8
  4163. # endif /* _WIN32_WINNT >= 0x0500 */
  4164. MOUSEEVENTF_MOVE = 1
  4165. MOUSEEVENTF_LEFTDOWN = 2
  4166. MOUSEEVENTF_LEFTUP = 4
  4167. MOUSEEVENTF_RIGHTDOWN = 8
  4168. MOUSEEVENTF_RIGHTUP = 16
  4169. MOUSEEVENTF_MIDDLEDOWN = 32
  4170. MOUSEEVENTF_MIDDLEUP = 64
  4171. MOUSEEVENTF_XDOWN = 128
  4172. MOUSEEVENTF_XUP = 256
  4173. MOUSEEVENTF_WHEEL = 2048
  4174. # if (_WIN32_WINNT >= 0x0600)
  4175. MOUSEEVENTF_HWHEEL = 4096
  4176. # endif
  4177. # if(WINVER >= 0x0600)
  4178. MOUSEEVENTF_MOVE_NOCOALESCE = 8192
  4179. # endif /* WINVER >= 0x0600 */
  4180. MOUSEEVENTF_VIRTUALDESK = 16384
  4181. MOUSEEVENTF_ABSOLUTE = 32768
  4182. INPUT_MOUSE = 0
  4183. INPUT_KEYBOARD = 1
  4184. INPUT_HARDWARE = 2
  4185. MWMO_WAITALL = 1
  4186. MWMO_ALERTABLE = 2
  4187. MWMO_INPUTAVAILABLE = 4
  4188. QS_KEY = 1
  4189. QS_MOUSEMOVE = 2
  4190. QS_MOUSEBUTTON = 4
  4191. QS_POSTMESSAGE = 8
  4192. QS_TIMER = 16
  4193. QS_PAINT = 32
  4194. QS_SENDMESSAGE = 64
  4195. QS_HOTKEY = 128
  4196. QS_MOUSE = QS_MOUSEMOVE | QS_MOUSEBUTTON
  4197. QS_INPUT = QS_MOUSE | QS_KEY
  4198. QS_ALLEVENTS = QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY
  4199. QS_ALLINPUT = (
  4200. QS_INPUT | QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE
  4201. )
  4202. IMN_CLOSESTATUSWINDOW = 1
  4203. IMN_OPENSTATUSWINDOW = 2
  4204. IMN_CHANGECANDIDATE = 3
  4205. IMN_CLOSECANDIDATE = 4
  4206. IMN_OPENCANDIDATE = 5
  4207. IMN_SETCONVERSIONMODE = 6
  4208. IMN_SETSENTENCEMODE = 7
  4209. IMN_SETOPENSTATUS = 8
  4210. IMN_SETCANDIDATEPOS = 9
  4211. IMN_SETCOMPOSITIONFONT = 10
  4212. IMN_SETCOMPOSITIONWINDOW = 11
  4213. IMN_SETSTATUSWINDOWPOS = 12
  4214. IMN_GUIDELINE = 13
  4215. IMN_PRIVATE = 14
  4216. # winuser.h line 8518
  4217. HELP_CONTEXT = 1
  4218. HELP_QUIT = 2
  4219. HELP_INDEX = 3
  4220. HELP_CONTENTS = 3
  4221. HELP_HELPONHELP = 4
  4222. HELP_SETINDEX = 5
  4223. HELP_SETCONTENTS = 5
  4224. HELP_CONTEXTPOPUP = 8
  4225. HELP_FORCEFILE = 9
  4226. HELP_KEY = 257
  4227. HELP_COMMAND = 258
  4228. HELP_PARTIALKEY = 261
  4229. HELP_MULTIKEY = 513
  4230. HELP_SETWINPOS = 515
  4231. HELP_CONTEXTMENU = 10
  4232. HELP_FINDER = 11
  4233. HELP_WM_HELP = 12
  4234. HELP_SETPOPUP_POS = 13
  4235. HELP_TCARD = 32768
  4236. HELP_TCARD_DATA = 16
  4237. HELP_TCARD_OTHER_CALLER = 17
  4238. IDH_NO_HELP = 28440
  4239. IDH_MISSING_CONTEXT = 28441 # Control doesn't have matching help context
  4240. IDH_GENERIC_HELP_BUTTON = 28442 # Property sheet help button
  4241. IDH_OK = 28443
  4242. IDH_CANCEL = 28444
  4243. IDH_HELP = 28445
  4244. GR_GDIOBJECTS = 0 # Count of GDI objects
  4245. GR_USEROBJECTS = 1 # Count of USER objects
  4246. # Generated by h2py from \msvcnt\include\wingdi.h
  4247. # manually added (missed by generation some how!
  4248. SRCCOPY = 13369376 # dest = source
  4249. SRCPAINT = 15597702 # dest = source OR dest
  4250. SRCAND = 8913094 # dest = source AND dest
  4251. SRCINVERT = 6684742 # dest = source XOR dest
  4252. SRCERASE = 4457256 # dest = source AND (NOT dest )
  4253. NOTSRCCOPY = 3342344 # dest = (NOT source)
  4254. NOTSRCERASE = 1114278 # dest = (NOT src) AND (NOT dest)
  4255. MERGECOPY = 12583114 # dest = (source AND pattern)
  4256. MERGEPAINT = 12255782 # dest = (NOT source) OR dest
  4257. PATCOPY = 15728673 # dest = pattern
  4258. PATPAINT = 16452105 # dest = DPSnoo
  4259. PATINVERT = 5898313 # dest = pattern XOR dest
  4260. DSTINVERT = 5570569 # dest = (NOT dest)
  4261. BLACKNESS = 66 # dest = BLACK
  4262. WHITENESS = 16711778 # dest = WHITE
  4263. # hacked and split manually by mhammond.
  4264. R2_BLACK = 1
  4265. R2_NOTMERGEPEN = 2
  4266. R2_MASKNOTPEN = 3
  4267. R2_NOTCOPYPEN = 4
  4268. R2_MASKPENNOT = 5
  4269. R2_NOT = 6
  4270. R2_XORPEN = 7
  4271. R2_NOTMASKPEN = 8
  4272. R2_MASKPEN = 9
  4273. R2_NOTXORPEN = 10
  4274. R2_NOP = 11
  4275. R2_MERGENOTPEN = 12
  4276. R2_COPYPEN = 13
  4277. R2_MERGEPENNOT = 14
  4278. R2_MERGEPEN = 15
  4279. R2_WHITE = 16
  4280. R2_LAST = 16
  4281. GDI_ERROR = -1
  4282. ERROR = 0
  4283. NULLREGION = 1
  4284. SIMPLEREGION = 2
  4285. COMPLEXREGION = 3
  4286. RGN_ERROR = ERROR
  4287. RGN_AND = 1
  4288. RGN_OR = 2
  4289. RGN_XOR = 3
  4290. RGN_DIFF = 4
  4291. RGN_COPY = 5
  4292. RGN_MIN = RGN_AND
  4293. RGN_MAX = RGN_COPY
  4294. ## Stretching modes used with Get/SetStretchBltMode
  4295. BLACKONWHITE = 1
  4296. WHITEONBLACK = 2
  4297. COLORONCOLOR = 3
  4298. HALFTONE = 4
  4299. MAXSTRETCHBLTMODE = 4
  4300. STRETCH_ANDSCANS = BLACKONWHITE
  4301. STRETCH_ORSCANS = WHITEONBLACK
  4302. STRETCH_DELETESCANS = COLORONCOLOR
  4303. STRETCH_HALFTONE = HALFTONE
  4304. ALTERNATE = 1
  4305. WINDING = 2
  4306. POLYFILL_LAST = 2
  4307. ## flags used with SetLayout
  4308. LAYOUT_RTL = 1
  4309. LAYOUT_BTT = 2
  4310. LAYOUT_VBH = 4
  4311. LAYOUT_ORIENTATIONMASK = LAYOUT_RTL | LAYOUT_BTT | LAYOUT_VBH
  4312. LAYOUT_BITMAPORIENTATIONPRESERVED = 8
  4313. TA_NOUPDATECP = 0
  4314. TA_UPDATECP = 1
  4315. TA_LEFT = 0
  4316. TA_RIGHT = 2
  4317. TA_CENTER = 6
  4318. TA_TOP = 0
  4319. TA_BOTTOM = 8
  4320. TA_BASELINE = 24
  4321. TA_MASK = TA_BASELINE + TA_CENTER + TA_UPDATECP
  4322. VTA_BASELINE = TA_BASELINE
  4323. VTA_LEFT = TA_BOTTOM
  4324. VTA_RIGHT = TA_TOP
  4325. VTA_CENTER = TA_CENTER
  4326. VTA_BOTTOM = TA_RIGHT
  4327. VTA_TOP = TA_LEFT
  4328. ETO_GRAYED = 1
  4329. ETO_OPAQUE = 2
  4330. ETO_CLIPPED = 4
  4331. ASPECT_FILTERING = 1
  4332. DCB_RESET = 1
  4333. DCB_ACCUMULATE = 2
  4334. DCB_DIRTY = DCB_ACCUMULATE
  4335. DCB_SET = DCB_RESET | DCB_ACCUMULATE
  4336. DCB_ENABLE = 4
  4337. DCB_DISABLE = 8
  4338. META_SETBKCOLOR = 513
  4339. META_SETBKMODE = 258
  4340. META_SETMAPMODE = 259
  4341. META_SETROP2 = 260
  4342. META_SETRELABS = 261
  4343. META_SETPOLYFILLMODE = 262
  4344. META_SETSTRETCHBLTMODE = 263
  4345. META_SETTEXTCHAREXTRA = 264
  4346. META_SETTEXTCOLOR = 521
  4347. META_SETTEXTJUSTIFICATION = 522
  4348. META_SETWINDOWORG = 523
  4349. META_SETWINDOWEXT = 524
  4350. META_SETVIEWPORTORG = 525
  4351. META_SETVIEWPORTEXT = 526
  4352. META_OFFSETWINDOWORG = 527
  4353. META_SCALEWINDOWEXT = 1040
  4354. META_OFFSETVIEWPORTORG = 529
  4355. META_SCALEVIEWPORTEXT = 1042
  4356. META_LINETO = 531
  4357. META_MOVETO = 532
  4358. META_EXCLUDECLIPRECT = 1045
  4359. META_INTERSECTCLIPRECT = 1046
  4360. META_ARC = 2071
  4361. META_ELLIPSE = 1048
  4362. META_FLOODFILL = 1049
  4363. META_PIE = 2074
  4364. META_RECTANGLE = 1051
  4365. META_ROUNDRECT = 1564
  4366. META_PATBLT = 1565
  4367. META_SAVEDC = 30
  4368. META_SETPIXEL = 1055
  4369. META_OFFSETCLIPRGN = 544
  4370. META_TEXTOUT = 1313
  4371. META_BITBLT = 2338
  4372. META_STRETCHBLT = 2851
  4373. META_POLYGON = 804
  4374. META_POLYLINE = 805
  4375. META_ESCAPE = 1574
  4376. META_RESTOREDC = 295
  4377. META_FILLREGION = 552
  4378. META_FRAMEREGION = 1065
  4379. META_INVERTREGION = 298
  4380. META_PAINTREGION = 299
  4381. META_SELECTCLIPREGION = 300
  4382. META_SELECTOBJECT = 301
  4383. META_SETTEXTALIGN = 302
  4384. META_CHORD = 2096
  4385. META_SETMAPPERFLAGS = 561
  4386. META_EXTTEXTOUT = 2610
  4387. META_SETDIBTODEV = 3379
  4388. META_SELECTPALETTE = 564
  4389. META_REALIZEPALETTE = 53
  4390. META_ANIMATEPALETTE = 1078
  4391. META_SETPALENTRIES = 55
  4392. META_POLYPOLYGON = 1336
  4393. META_RESIZEPALETTE = 313
  4394. META_DIBBITBLT = 2368
  4395. META_DIBSTRETCHBLT = 2881
  4396. META_DIBCREATEPATTERNBRUSH = 322
  4397. META_STRETCHDIB = 3907
  4398. META_EXTFLOODFILL = 1352
  4399. META_DELETEOBJECT = 496
  4400. META_CREATEPALETTE = 247
  4401. META_CREATEPATTERNBRUSH = 505
  4402. META_CREATEPENINDIRECT = 762
  4403. META_CREATEFONTINDIRECT = 763
  4404. META_CREATEBRUSHINDIRECT = 764
  4405. META_CREATEREGION = 1791
  4406. FILE_BEGIN = 0
  4407. FILE_CURRENT = 1
  4408. FILE_END = 2
  4409. FILE_FLAG_WRITE_THROUGH = -2147483648
  4410. FILE_FLAG_OVERLAPPED = 1073741824
  4411. FILE_FLAG_NO_BUFFERING = 536870912
  4412. FILE_FLAG_RANDOM_ACCESS = 268435456
  4413. FILE_FLAG_SEQUENTIAL_SCAN = 134217728
  4414. FILE_FLAG_DELETE_ON_CLOSE = 67108864
  4415. FILE_FLAG_BACKUP_SEMANTICS = 33554432
  4416. FILE_FLAG_POSIX_SEMANTICS = 16777216
  4417. CREATE_NEW = 1
  4418. CREATE_ALWAYS = 2
  4419. OPEN_EXISTING = 3
  4420. OPEN_ALWAYS = 4
  4421. TRUNCATE_EXISTING = 5
  4422. PIPE_ACCESS_INBOUND = 1
  4423. PIPE_ACCESS_OUTBOUND = 2
  4424. PIPE_ACCESS_DUPLEX = 3
  4425. PIPE_CLIENT_END = 0
  4426. PIPE_SERVER_END = 1
  4427. PIPE_WAIT = 0
  4428. PIPE_NOWAIT = 1
  4429. PIPE_READMODE_BYTE = 0
  4430. PIPE_READMODE_MESSAGE = 2
  4431. PIPE_TYPE_BYTE = 0
  4432. PIPE_TYPE_MESSAGE = 4
  4433. PIPE_UNLIMITED_INSTANCES = 255
  4434. SECURITY_CONTEXT_TRACKING = 262144
  4435. SECURITY_EFFECTIVE_ONLY = 524288
  4436. SECURITY_SQOS_PRESENT = 1048576
  4437. SECURITY_VALID_SQOS_FLAGS = 2031616
  4438. DTR_CONTROL_DISABLE = 0
  4439. DTR_CONTROL_ENABLE = 1
  4440. DTR_CONTROL_HANDSHAKE = 2
  4441. RTS_CONTROL_DISABLE = 0
  4442. RTS_CONTROL_ENABLE = 1
  4443. RTS_CONTROL_HANDSHAKE = 2
  4444. RTS_CONTROL_TOGGLE = 3
  4445. GMEM_FIXED = 0
  4446. GMEM_MOVEABLE = 2
  4447. GMEM_NOCOMPACT = 16
  4448. GMEM_NODISCARD = 32
  4449. GMEM_ZEROINIT = 64
  4450. GMEM_MODIFY = 128
  4451. GMEM_DISCARDABLE = 256
  4452. GMEM_NOT_BANKED = 4096
  4453. GMEM_SHARE = 8192
  4454. GMEM_DDESHARE = 8192
  4455. GMEM_NOTIFY = 16384
  4456. GMEM_LOWER = GMEM_NOT_BANKED
  4457. GMEM_VALID_FLAGS = 32626
  4458. GMEM_INVALID_HANDLE = 32768
  4459. GHND = GMEM_MOVEABLE | GMEM_ZEROINIT
  4460. GPTR = GMEM_FIXED | GMEM_ZEROINIT
  4461. GMEM_DISCARDED = 16384
  4462. GMEM_LOCKCOUNT = 255
  4463. LMEM_FIXED = 0
  4464. LMEM_MOVEABLE = 2
  4465. LMEM_NOCOMPACT = 16
  4466. LMEM_NODISCARD = 32
  4467. LMEM_ZEROINIT = 64
  4468. LMEM_MODIFY = 128
  4469. LMEM_DISCARDABLE = 3840
  4470. LMEM_VALID_FLAGS = 3954
  4471. LMEM_INVALID_HANDLE = 32768
  4472. LHND = LMEM_MOVEABLE | LMEM_ZEROINIT
  4473. LPTR = LMEM_FIXED | LMEM_ZEROINIT
  4474. NONZEROLHND = LMEM_MOVEABLE
  4475. NONZEROLPTR = LMEM_FIXED
  4476. LMEM_DISCARDED = 16384
  4477. LMEM_LOCKCOUNT = 255
  4478. DEBUG_PROCESS = 1
  4479. DEBUG_ONLY_THIS_PROCESS = 2
  4480. CREATE_SUSPENDED = 4
  4481. DETACHED_PROCESS = 8
  4482. CREATE_NEW_CONSOLE = 16
  4483. NORMAL_PRIORITY_CLASS = 32
  4484. IDLE_PRIORITY_CLASS = 64
  4485. HIGH_PRIORITY_CLASS = 128
  4486. REALTIME_PRIORITY_CLASS = 256
  4487. CREATE_NEW_PROCESS_GROUP = 512
  4488. CREATE_UNICODE_ENVIRONMENT = 1024
  4489. CREATE_SEPARATE_WOW_VDM = 2048
  4490. CREATE_SHARED_WOW_VDM = 4096
  4491. CREATE_DEFAULT_ERROR_MODE = 67108864
  4492. CREATE_NO_WINDOW = 134217728
  4493. PROFILE_USER = 268435456
  4494. PROFILE_KERNEL = 536870912
  4495. PROFILE_SERVER = 1073741824
  4496. THREAD_BASE_PRIORITY_LOWRT = 15
  4497. THREAD_BASE_PRIORITY_MAX = 2
  4498. THREAD_BASE_PRIORITY_MIN = -2
  4499. THREAD_BASE_PRIORITY_IDLE = -15
  4500. THREAD_PRIORITY_LOWEST = THREAD_BASE_PRIORITY_MIN
  4501. THREAD_PRIORITY_BELOW_NORMAL = THREAD_PRIORITY_LOWEST + 1
  4502. THREAD_PRIORITY_HIGHEST = THREAD_BASE_PRIORITY_MAX
  4503. THREAD_PRIORITY_ABOVE_NORMAL = THREAD_PRIORITY_HIGHEST - 1
  4504. THREAD_PRIORITY_ERROR_RETURN = MAXLONG
  4505. THREAD_PRIORITY_TIME_CRITICAL = THREAD_BASE_PRIORITY_LOWRT
  4506. THREAD_PRIORITY_IDLE = THREAD_BASE_PRIORITY_IDLE
  4507. THREAD_PRIORITY_NORMAL = 0
  4508. THREAD_MODE_BACKGROUND_BEGIN = 0x00010000
  4509. THREAD_MODE_BACKGROUND_END = 0x00020000
  4510. EXCEPTION_DEBUG_EVENT = 1
  4511. CREATE_THREAD_DEBUG_EVENT = 2
  4512. CREATE_PROCESS_DEBUG_EVENT = 3
  4513. EXIT_THREAD_DEBUG_EVENT = 4
  4514. EXIT_PROCESS_DEBUG_EVENT = 5
  4515. LOAD_DLL_DEBUG_EVENT = 6
  4516. UNLOAD_DLL_DEBUG_EVENT = 7
  4517. OUTPUT_DEBUG_STRING_EVENT = 8
  4518. RIP_EVENT = 9
  4519. DRIVE_UNKNOWN = 0
  4520. DRIVE_NO_ROOT_DIR = 1
  4521. DRIVE_REMOVABLE = 2
  4522. DRIVE_FIXED = 3
  4523. DRIVE_REMOTE = 4
  4524. DRIVE_CDROM = 5
  4525. DRIVE_RAMDISK = 6
  4526. FILE_TYPE_UNKNOWN = 0
  4527. FILE_TYPE_DISK = 1
  4528. FILE_TYPE_CHAR = 2
  4529. FILE_TYPE_PIPE = 3
  4530. FILE_TYPE_REMOTE = 32768
  4531. NOPARITY = 0
  4532. ODDPARITY = 1
  4533. EVENPARITY = 2
  4534. MARKPARITY = 3
  4535. SPACEPARITY = 4
  4536. ONESTOPBIT = 0
  4537. ONE5STOPBITS = 1
  4538. TWOSTOPBITS = 2
  4539. CBR_110 = 110
  4540. CBR_300 = 300
  4541. CBR_600 = 600
  4542. CBR_1200 = 1200
  4543. CBR_2400 = 2400
  4544. CBR_4800 = 4800
  4545. CBR_9600 = 9600
  4546. CBR_14400 = 14400
  4547. CBR_19200 = 19200
  4548. CBR_38400 = 38400
  4549. CBR_56000 = 56000
  4550. CBR_57600 = 57600
  4551. CBR_115200 = 115200
  4552. CBR_128000 = 128000
  4553. CBR_256000 = 256000
  4554. S_QUEUEEMPTY = 0
  4555. S_THRESHOLD = 1
  4556. S_ALLTHRESHOLD = 2
  4557. S_NORMAL = 0
  4558. S_LEGATO = 1
  4559. S_STACCATO = 2
  4560. NMPWAIT_WAIT_FOREVER = -1
  4561. NMPWAIT_NOWAIT = 1
  4562. NMPWAIT_USE_DEFAULT_WAIT = 0
  4563. OF_READ = 0
  4564. OF_WRITE = 1
  4565. OF_READWRITE = 2
  4566. OF_SHARE_COMPAT = 0
  4567. OF_SHARE_EXCLUSIVE = 16
  4568. OF_SHARE_DENY_WRITE = 32
  4569. OF_SHARE_DENY_READ = 48
  4570. OF_SHARE_DENY_NONE = 64
  4571. OF_PARSE = 256
  4572. OF_DELETE = 512
  4573. OF_VERIFY = 1024
  4574. OF_CANCEL = 2048
  4575. OF_CREATE = 4096
  4576. OF_PROMPT = 8192
  4577. OF_EXIST = 16384
  4578. OF_REOPEN = 32768
  4579. OFS_MAXPATHNAME = 128
  4580. MAXINTATOM = 49152
  4581. # winbase.h
  4582. PROCESS_HEAP_REGION = 1
  4583. PROCESS_HEAP_UNCOMMITTED_RANGE = 2
  4584. PROCESS_HEAP_ENTRY_BUSY = 4
  4585. PROCESS_HEAP_ENTRY_MOVEABLE = 16
  4586. PROCESS_HEAP_ENTRY_DDESHARE = 32
  4587. SCS_32BIT_BINARY = 0
  4588. SCS_DOS_BINARY = 1
  4589. SCS_WOW_BINARY = 2
  4590. SCS_PIF_BINARY = 3
  4591. SCS_POSIX_BINARY = 4
  4592. SCS_OS216_BINARY = 5
  4593. SEM_FAILCRITICALERRORS = 1
  4594. SEM_NOGPFAULTERRORBOX = 2
  4595. SEM_NOALIGNMENTFAULTEXCEPT = 4
  4596. SEM_NOOPENFILEERRORBOX = 32768
  4597. LOCKFILE_FAIL_IMMEDIATELY = 1
  4598. LOCKFILE_EXCLUSIVE_LOCK = 2
  4599. HANDLE_FLAG_INHERIT = 1
  4600. HANDLE_FLAG_PROTECT_FROM_CLOSE = 2
  4601. HINSTANCE_ERROR = 32
  4602. GET_TAPE_MEDIA_INFORMATION = 0
  4603. GET_TAPE_DRIVE_INFORMATION = 1
  4604. SET_TAPE_MEDIA_INFORMATION = 0
  4605. SET_TAPE_DRIVE_INFORMATION = 1
  4606. FORMAT_MESSAGE_ALLOCATE_BUFFER = 256
  4607. FORMAT_MESSAGE_IGNORE_INSERTS = 512
  4608. FORMAT_MESSAGE_FROM_STRING = 1024
  4609. FORMAT_MESSAGE_FROM_HMODULE = 2048
  4610. FORMAT_MESSAGE_FROM_SYSTEM = 4096
  4611. FORMAT_MESSAGE_ARGUMENT_ARRAY = 8192
  4612. FORMAT_MESSAGE_MAX_WIDTH_MASK = 255
  4613. BACKUP_INVALID = 0
  4614. BACKUP_DATA = 1
  4615. BACKUP_EA_DATA = 2
  4616. BACKUP_SECURITY_DATA = 3
  4617. BACKUP_ALTERNATE_DATA = 4
  4618. BACKUP_LINK = 5
  4619. BACKUP_PROPERTY_DATA = 6
  4620. BACKUP_OBJECT_ID = 7
  4621. BACKUP_REPARSE_DATA = 8
  4622. BACKUP_SPARSE_BLOCK = 9
  4623. STREAM_NORMAL_ATTRIBUTE = 0
  4624. STREAM_MODIFIED_WHEN_READ = 1
  4625. STREAM_CONTAINS_SECURITY = 2
  4626. STREAM_CONTAINS_PROPERTIES = 4
  4627. STARTF_USESHOWWINDOW = 1
  4628. STARTF_USESIZE = 2
  4629. STARTF_USEPOSITION = 4
  4630. STARTF_USECOUNTCHARS = 8
  4631. STARTF_USEFILLATTRIBUTE = 16
  4632. STARTF_FORCEONFEEDBACK = 64
  4633. STARTF_FORCEOFFFEEDBACK = 128
  4634. STARTF_USESTDHANDLES = 256
  4635. STARTF_USEHOTKEY = 512
  4636. SHUTDOWN_NORETRY = 1
  4637. DONT_RESOLVE_DLL_REFERENCES = 1
  4638. LOAD_LIBRARY_AS_DATAFILE = 2
  4639. LOAD_WITH_ALTERED_SEARCH_PATH = 8
  4640. DDD_RAW_TARGET_PATH = 1
  4641. DDD_REMOVE_DEFINITION = 2
  4642. DDD_EXACT_MATCH_ON_REMOVE = 4
  4643. MOVEFILE_REPLACE_EXISTING = 1
  4644. MOVEFILE_COPY_ALLOWED = 2
  4645. MOVEFILE_DELAY_UNTIL_REBOOT = 4
  4646. MAX_COMPUTERNAME_LENGTH = 15
  4647. LOGON32_LOGON_INTERACTIVE = 2
  4648. LOGON32_LOGON_NETWORK = 3
  4649. LOGON32_LOGON_BATCH = 4
  4650. LOGON32_LOGON_SERVICE = 5
  4651. LOGON32_LOGON_UNLOCK = 7
  4652. LOGON32_LOGON_NETWORK_CLEARTEXT = 8
  4653. LOGON32_LOGON_NEW_CREDENTIALS = 9
  4654. LOGON32_PROVIDER_DEFAULT = 0
  4655. LOGON32_PROVIDER_WINNT35 = 1
  4656. LOGON32_PROVIDER_WINNT40 = 2
  4657. LOGON32_PROVIDER_WINNT50 = 3
  4658. VER_PLATFORM_WIN32s = 0
  4659. VER_PLATFORM_WIN32_WINDOWS = 1
  4660. VER_PLATFORM_WIN32_NT = 2
  4661. TC_NORMAL = 0
  4662. TC_HARDERR = 1
  4663. TC_GP_TRAP = 2
  4664. TC_SIGNAL = 3
  4665. AC_LINE_OFFLINE = 0
  4666. AC_LINE_ONLINE = 1
  4667. AC_LINE_BACKUP_POWER = 2
  4668. AC_LINE_UNKNOWN = 255
  4669. BATTERY_FLAG_HIGH = 1
  4670. BATTERY_FLAG_LOW = 2
  4671. BATTERY_FLAG_CRITICAL = 4
  4672. BATTERY_FLAG_CHARGING = 8
  4673. BATTERY_FLAG_NO_BATTERY = 128
  4674. BATTERY_FLAG_UNKNOWN = 255
  4675. BATTERY_PERCENTAGE_UNKNOWN = 255
  4676. BATTERY_LIFE_UNKNOWN = -1
  4677. # Generated by h2py from d:\msdev\include\richedit.h
  4678. cchTextLimitDefault = 32767
  4679. WM_CONTEXTMENU = 123
  4680. WM_PRINTCLIENT = 792
  4681. EN_MSGFILTER = 1792
  4682. EN_REQUESTRESIZE = 1793
  4683. EN_SELCHANGE = 1794
  4684. EN_DROPFILES = 1795
  4685. EN_PROTECTED = 1796
  4686. EN_CORRECTTEXT = 1797
  4687. EN_STOPNOUNDO = 1798
  4688. EN_IMECHANGE = 1799
  4689. EN_SAVECLIPBOARD = 1800
  4690. EN_OLEOPFAILED = 1801
  4691. ENM_NONE = 0
  4692. ENM_CHANGE = 1
  4693. ENM_UPDATE = 2
  4694. ENM_SCROLL = 4
  4695. ENM_KEYEVENTS = 65536
  4696. ENM_MOUSEEVENTS = 131072
  4697. ENM_REQUESTRESIZE = 262144
  4698. ENM_SELCHANGE = 524288
  4699. ENM_DROPFILES = 1048576
  4700. ENM_PROTECTED = 2097152
  4701. ENM_CORRECTTEXT = 4194304
  4702. ENM_IMECHANGE = 8388608
  4703. ES_SAVESEL = 32768
  4704. ES_SUNKEN = 16384
  4705. ES_DISABLENOSCROLL = 8192
  4706. ES_SELECTIONBAR = 16777216
  4707. ES_EX_NOCALLOLEINIT = 16777216
  4708. ES_VERTICAL = 4194304
  4709. ES_NOIME = 524288
  4710. ES_SELFIME = 262144
  4711. ECO_AUTOWORDSELECTION = 1
  4712. ECO_AUTOVSCROLL = 64
  4713. ECO_AUTOHSCROLL = 128
  4714. ECO_NOHIDESEL = 256
  4715. ECO_READONLY = 2048
  4716. ECO_WANTRETURN = 4096
  4717. ECO_SAVESEL = 32768
  4718. ECO_SELECTIONBAR = 16777216
  4719. ECO_VERTICAL = 4194304
  4720. ECOOP_SET = 1
  4721. ECOOP_OR = 2
  4722. ECOOP_AND = 3
  4723. ECOOP_XOR = 4
  4724. WB_CLASSIFY = 3
  4725. WB_MOVEWORDLEFT = 4
  4726. WB_MOVEWORDRIGHT = 5
  4727. WB_LEFTBREAK = 6
  4728. WB_RIGHTBREAK = 7
  4729. WB_MOVEWORDPREV = 4
  4730. WB_MOVEWORDNEXT = 5
  4731. WB_PREVBREAK = 6
  4732. WB_NEXTBREAK = 7
  4733. PC_FOLLOWING = 1
  4734. PC_LEADING = 2
  4735. PC_OVERFLOW = 3
  4736. PC_DELIMITER = 4
  4737. WBF_WORDWRAP = 16
  4738. WBF_WORDBREAK = 32
  4739. WBF_OVERFLOW = 64
  4740. WBF_LEVEL1 = 128
  4741. WBF_LEVEL2 = 256
  4742. WBF_CUSTOM = 512
  4743. CFM_BOLD = 1
  4744. CFM_ITALIC = 2
  4745. CFM_UNDERLINE = 4
  4746. CFM_STRIKEOUT = 8
  4747. CFM_PROTECTED = 16
  4748. CFM_SIZE = -2147483648
  4749. CFM_COLOR = 1073741824
  4750. CFM_FACE = 536870912
  4751. CFM_OFFSET = 268435456
  4752. CFM_CHARSET = 134217728
  4753. CFE_BOLD = 1
  4754. CFE_ITALIC = 2
  4755. CFE_UNDERLINE = 4
  4756. CFE_STRIKEOUT = 8
  4757. CFE_PROTECTED = 16
  4758. CFE_AUTOCOLOR = 1073741824
  4759. yHeightCharPtsMost = 1638
  4760. SCF_SELECTION = 1
  4761. SCF_WORD = 2
  4762. SF_TEXT = 1
  4763. SF_RTF = 2
  4764. SF_RTFNOOBJS = 3
  4765. SF_TEXTIZED = 4
  4766. SFF_SELECTION = 32768
  4767. SFF_PLAINRTF = 16384
  4768. MAX_TAB_STOPS = 32
  4769. lDefaultTab = 720
  4770. PFM_STARTINDENT = 1
  4771. PFM_RIGHTINDENT = 2
  4772. PFM_OFFSET = 4
  4773. PFM_ALIGNMENT = 8
  4774. PFM_TABSTOPS = 16
  4775. PFM_NUMBERING = 32
  4776. PFM_OFFSETINDENT = -2147483648
  4777. PFN_BULLET = 1
  4778. PFA_LEFT = 1
  4779. PFA_RIGHT = 2
  4780. PFA_CENTER = 3
  4781. WM_NOTIFY = 78
  4782. SEL_EMPTY = 0
  4783. SEL_TEXT = 1
  4784. SEL_OBJECT = 2
  4785. SEL_MULTICHAR = 4
  4786. SEL_MULTIOBJECT = 8
  4787. OLEOP_DOVERB = 1
  4788. CF_RTF = "Rich Text Format"
  4789. CF_RTFNOOBJS = "Rich Text Format Without Objects"
  4790. CF_RETEXTOBJ = "RichEdit Text and Objects"
  4791. # From wincon.h
  4792. RIGHT_ALT_PRESSED = 1 # the right alt key is pressed.
  4793. LEFT_ALT_PRESSED = 2 # the left alt key is pressed.
  4794. RIGHT_CTRL_PRESSED = 4 # the right ctrl key is pressed.
  4795. LEFT_CTRL_PRESSED = 8 # the left ctrl key is pressed.
  4796. SHIFT_PRESSED = 16 # the shift key is pressed.
  4797. NUMLOCK_ON = 32 # the numlock light is on.
  4798. SCROLLLOCK_ON = 64 # the scrolllock light is on.
  4799. CAPSLOCK_ON = 128 # the capslock light is on.
  4800. ENHANCED_KEY = 256 # the key is enhanced.
  4801. NLS_DBCSCHAR = 65536 # DBCS for JPN: SBCS/DBCS mode.
  4802. NLS_ALPHANUMERIC = 0 # DBCS for JPN: Alphanumeric mode.
  4803. NLS_KATAKANA = 131072 # DBCS for JPN: Katakana mode.
  4804. NLS_HIRAGANA = 262144 # DBCS for JPN: Hiragana mode.
  4805. NLS_ROMAN = 4194304 # DBCS for JPN: Roman/Noroman mode.
  4806. NLS_IME_CONVERSION = 8388608 # DBCS for JPN: IME conversion.
  4807. NLS_IME_DISABLE = 536870912 # DBCS for JPN: IME enable/disable.
  4808. FROM_LEFT_1ST_BUTTON_PRESSED = 1
  4809. RIGHTMOST_BUTTON_PRESSED = 2
  4810. FROM_LEFT_2ND_BUTTON_PRESSED = 4
  4811. FROM_LEFT_3RD_BUTTON_PRESSED = 8
  4812. FROM_LEFT_4TH_BUTTON_PRESSED = 16
  4813. CTRL_C_EVENT = 0
  4814. CTRL_BREAK_EVENT = 1
  4815. CTRL_CLOSE_EVENT = 2
  4816. CTRL_LOGOFF_EVENT = 5
  4817. CTRL_SHUTDOWN_EVENT = 6
  4818. MOUSE_MOVED = 1
  4819. DOUBLE_CLICK = 2
  4820. MOUSE_WHEELED = 4
  4821. # property sheet window messages from prsht.h
  4822. PSM_SETCURSEL = WM_USER + 101
  4823. PSM_REMOVEPAGE = WM_USER + 102
  4824. PSM_ADDPAGE = WM_USER + 103
  4825. PSM_CHANGED = WM_USER + 104
  4826. PSM_RESTARTWINDOWS = WM_USER + 105
  4827. PSM_REBOOTSYSTEM = WM_USER + 106
  4828. PSM_CANCELTOCLOSE = WM_USER + 107
  4829. PSM_QUERYSIBLINGS = WM_USER + 108
  4830. PSM_UNCHANGED = WM_USER + 109
  4831. PSM_APPLY = WM_USER + 110
  4832. PSM_SETTITLEA = WM_USER + 111
  4833. PSM_SETTITLEW = WM_USER + 120
  4834. PSM_SETWIZBUTTONS = WM_USER + 112
  4835. PSM_PRESSBUTTON = WM_USER + 113
  4836. PSM_SETCURSELID = WM_USER + 114
  4837. PSM_SETFINISHTEXTA = WM_USER + 115
  4838. PSM_SETFINISHTEXTW = WM_USER + 121
  4839. PSM_GETTABCONTROL = WM_USER + 116
  4840. PSM_ISDIALOGMESSAGE = WM_USER + 117
  4841. PSM_GETCURRENTPAGEHWND = WM_USER + 118
  4842. PSM_INSERTPAGE = WM_USER + 119
  4843. PSM_SETHEADERTITLEA = WM_USER + 125
  4844. PSM_SETHEADERTITLEW = WM_USER + 126
  4845. PSM_SETHEADERSUBTITLEA = WM_USER + 127
  4846. PSM_SETHEADERSUBTITLEW = WM_USER + 128
  4847. PSM_HWNDTOINDEX = WM_USER + 129
  4848. PSM_INDEXTOHWND = WM_USER + 130
  4849. PSM_PAGETOINDEX = WM_USER + 131
  4850. PSM_INDEXTOPAGE = WM_USER + 132
  4851. PSM_IDTOINDEX = WM_USER + 133
  4852. PSM_INDEXTOID = WM_USER + 134
  4853. PSM_GETRESULT = WM_USER + 135
  4854. PSM_RECALCPAGESIZES = WM_USER + 136
  4855. # GetUserNameEx/GetComputerNameEx
  4856. NameUnknown = 0
  4857. NameFullyQualifiedDN = 1
  4858. NameSamCompatible = 2
  4859. NameDisplay = 3
  4860. NameUniqueId = 6
  4861. NameCanonical = 7
  4862. NameUserPrincipal = 8
  4863. NameCanonicalEx = 9
  4864. NameServicePrincipal = 10
  4865. NameDnsDomain = 12
  4866. ComputerNameNetBIOS = 0
  4867. ComputerNameDnsHostname = 1
  4868. ComputerNameDnsDomain = 2
  4869. ComputerNameDnsFullyQualified = 3
  4870. ComputerNamePhysicalNetBIOS = 4
  4871. ComputerNamePhysicalDnsHostname = 5
  4872. ComputerNamePhysicalDnsDomain = 6
  4873. ComputerNamePhysicalDnsFullyQualified = 7
  4874. LWA_COLORKEY = 0x00000001
  4875. LWA_ALPHA = 0x00000002
  4876. ULW_COLORKEY = 0x00000001
  4877. ULW_ALPHA = 0x00000002
  4878. ULW_OPAQUE = 0x00000004
  4879. # WinDef.h
  4880. TRUE = 1
  4881. FALSE = 0
  4882. MAX_PATH = 260
  4883. # WinGDI.h
  4884. AC_SRC_OVER = 0
  4885. AC_SRC_ALPHA = 1
  4886. GRADIENT_FILL_RECT_H = 0
  4887. GRADIENT_FILL_RECT_V = 1
  4888. GRADIENT_FILL_TRIANGLE = 2
  4889. GRADIENT_FILL_OP_FLAG = 255
  4890. ## flags used with Get/SetSystemFileCacheSize
  4891. MM_WORKING_SET_MAX_HARD_ENABLE = 1
  4892. MM_WORKING_SET_MAX_HARD_DISABLE = 2
  4893. MM_WORKING_SET_MIN_HARD_ENABLE = 4
  4894. MM_WORKING_SET_MIN_HARD_DISABLE = 8
  4895. ## Flags for GetFinalPathNameByHandle
  4896. VOLUME_NAME_DOS = 0
  4897. VOLUME_NAME_GUID = 1
  4898. VOLUME_NAME_NT = 2
  4899. VOLUME_NAME_NONE = 4
  4900. FILE_NAME_NORMALIZED = 0
  4901. FILE_NAME_OPENED = 8
  4902. DEVICE_NOTIFY_WINDOW_HANDLE = 0x00000000
  4903. DEVICE_NOTIFY_SERVICE_HANDLE = 0x00000001
  4904. # From Dbt.h
  4905. # Generated by h2py from Dbt.h
  4906. WM_DEVICECHANGE = 0x0219
  4907. BSF_QUERY = 0x00000001
  4908. BSF_IGNORECURRENTTASK = 0x00000002
  4909. BSF_FLUSHDISK = 0x00000004
  4910. BSF_NOHANG = 0x00000008
  4911. BSF_POSTMESSAGE = 0x00000010
  4912. BSF_FORCEIFHUNG = 0x00000020
  4913. BSF_NOTIMEOUTIFNOTHUNG = 0x00000040
  4914. BSF_MSGSRV32ISOK = -2147483648
  4915. BSF_MSGSRV32ISOK_BIT = 31
  4916. BSM_ALLCOMPONENTS = 0x00000000
  4917. BSM_VXDS = 0x00000001
  4918. BSM_NETDRIVER = 0x00000002
  4919. BSM_INSTALLABLEDRIVERS = 0x00000004
  4920. BSM_APPLICATIONS = 0x00000008
  4921. DBT_APPYBEGIN = 0x0000
  4922. DBT_APPYEND = 0x0001
  4923. DBT_DEVNODES_CHANGED = 0x0007
  4924. DBT_QUERYCHANGECONFIG = 0x0017
  4925. DBT_CONFIGCHANGED = 0x0018
  4926. DBT_CONFIGCHANGECANCELED = 0x0019
  4927. DBT_MONITORCHANGE = 0x001B
  4928. DBT_SHELLLOGGEDON = 0x0020
  4929. DBT_CONFIGMGAPI32 = 0x0022
  4930. DBT_VXDINITCOMPLETE = 0x0023
  4931. DBT_VOLLOCKQUERYLOCK = 0x8041
  4932. DBT_VOLLOCKLOCKTAKEN = 0x8042
  4933. DBT_VOLLOCKLOCKFAILED = 0x8043
  4934. DBT_VOLLOCKQUERYUNLOCK = 0x8044
  4935. DBT_VOLLOCKLOCKRELEASED = 0x8045
  4936. DBT_VOLLOCKUNLOCKFAILED = 0x8046
  4937. LOCKP_ALLOW_WRITES = 0x01
  4938. LOCKP_FAIL_WRITES = 0x00
  4939. LOCKP_FAIL_MEM_MAPPING = 0x02
  4940. LOCKP_ALLOW_MEM_MAPPING = 0x00
  4941. LOCKP_USER_MASK = 0x03
  4942. LOCKP_LOCK_FOR_FORMAT = 0x04
  4943. LOCKF_LOGICAL_LOCK = 0x00
  4944. LOCKF_PHYSICAL_LOCK = 0x01
  4945. DBT_NO_DISK_SPACE = 0x0047
  4946. DBT_LOW_DISK_SPACE = 0x0048
  4947. DBT_CONFIGMGPRIVATE = 0x7FFF
  4948. DBT_DEVICEARRIVAL = 0x8000
  4949. DBT_DEVICEQUERYREMOVE = 0x8001
  4950. DBT_DEVICEQUERYREMOVEFAILED = 0x8002
  4951. DBT_DEVICEREMOVEPENDING = 0x8003
  4952. DBT_DEVICEREMOVECOMPLETE = 0x8004
  4953. DBT_DEVICETYPESPECIFIC = 0x8005
  4954. DBT_CUSTOMEVENT = 0x8006
  4955. DBT_DEVTYP_OEM = 0x00000000
  4956. DBT_DEVTYP_DEVNODE = 0x00000001
  4957. DBT_DEVTYP_VOLUME = 0x00000002
  4958. DBT_DEVTYP_PORT = 0x00000003
  4959. DBT_DEVTYP_NET = 0x00000004
  4960. DBT_DEVTYP_DEVICEINTERFACE = 0x00000005
  4961. DBT_DEVTYP_HANDLE = 0x00000006
  4962. DBTF_MEDIA = 0x0001
  4963. DBTF_NET = 0x0002
  4964. DBTF_RESOURCE = 0x00000001
  4965. DBTF_XPORT = 0x00000002
  4966. DBTF_SLOWNET = 0x00000004
  4967. DBT_VPOWERDAPI = 0x8100
  4968. DBT_USERDEFINED = 0xFFFF