Leaked source code of windows server 2003
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.

807 lines
27 KiB

  1. #ifndef _ERRORMOD_H
  2. #define _ERRORMOD_H
  3. // IFKERNEL API's
  4. #define API_IFK_ALLOCBUF 0x0040
  5. #define API_IFK_FREEBUF 0x0080
  6. #define API_IFK_MAKEBUFWRITABLE 0x00c0
  7. #define API_IFK_SHAREBUF 0x0100
  8. #define API_IFK_SPLITBUF 0x0140
  9. #define API_IFK_IFGLOBALALLOC 0x1000
  10. #define API_IFK_IFGLOBALFREE 0x1040
  11. #define API_IFK_CREATEIFPIPE 0x2000
  12. #define API_IFK_DELETEIFPIPE 0x2040
  13. #define API_IFK_OPENIFPIPE 0x2080
  14. #define API_IFK_CLOSEIFPIPE 0x20c0
  15. #define API_IFK_REQREADFROMIFPIPE 0x2100
  16. #define API_IFK_REQWRITETOIFPIPE 0x2140
  17. #define API_IFK_NEWMEMUNIT 0x3040
  18. #define API_IFK_POSTMESSAGE 0x4000
  19. #define API_IFK_GETMESSAGE 0x4040
  20. #define API_IFK_PEEKMESSAGE 0x4080
  21. #define API_IFK_BROADCASTMESSAGE 0x40c0
  22. #define API_IFK_CREATEPROCESS 0x5000
  23. #define API_IFK_TERMINATEAPP 0x5040
  24. #define API_IFK_GETIFPROCWINDOW 0x5080
  25. #define API_IFK_SETIFPROCPRIORITY 0x50C0
  26. #define API_IFK_GETIFPROCPRIORITY 0x5100
  27. #define API_IFK_CREATEMUTEX 0x6000
  28. #define API_IFK_RELEASEMUTEX 0x6040
  29. #define API_IFK_CREATEEVENT 0x6080
  30. #define API_IFK_SETEVENT 0x60c0
  31. #define API_IFK_WAITFORSINGLEOBJECT 0x6100
  32. #define API_IFK_FREESYNCOBJECT 0x6140
  33. #define API_IFK_GETSETEVENTPARAM 0x6180
  34. #define API_IFK_IFSETTIMER 0x7000
  35. //IFSCAN APIs (High level scanner driver: error codes in prnscn.h)
  36. #define API_OPENSCANNER 0x0040
  37. #define API_CLOSESCANNER 0x0080
  38. #define API_STARTSCANJOB 0x00c0
  39. #define API_ENDSCANJOB 0x0100
  40. #define API_CONTINUESCANJOB 0x0200
  41. #define API_ABORTSCANJOB 0x0300
  42. #define API_GETSCANNERSTATUS 0x0400
  43. #define API_GETSCANNERPAPERINFO 0x0500
  44. #define API_GETSCANIMAGEINFO 0x0600
  45. #define API_GETSCANNERCAPS 0x0700
  46. #define API_GETSCANNERCUSTOMCAPS 0x0800
  47. #define API_COMPLETESCANPAGE 0x0900
  48. #define API_GETSCANDEVICEINFO 0x0a00
  49. #define API_SELECTSCANDEVICE 0x0b00
  50. #define API_SCANDEVICEMODE 0x0c00
  51. #define API_INITIFSCAN 0x0d00
  52. #define API_SCANDIAGNOSTICJOB 0x0e00
  53. #define API_GETDEVINFOFROMID 0x0f00
  54. #define API_GETDEVINFOFROMSTR 0x1000
  55. #define API_GETDEVDEFAULTMODE 0x1100
  56. #define API_SCANNERPREFEED 0x1200
  57. #define API_STARTCOPYJOB 0x1300
  58. #define API_ENDCOPYJOB 0x1400
  59. //IFPRINT (high level printer drivers api: error codes in prnscn.h)
  60. #define API_SELECTPRINTDEVICE 0x0a00
  61. #define API_GETPRINTDEVICEINFO 0x0900
  62. #define API_PRINTDEVICEMODE 0x0b00
  63. #define API_PRINTDIAGNOSTICJOB 0x0c00
  64. #define API_CHECKPRINTERSTATUS 0x0d00
  65. //Awreport(the report engine)
  66. #define API_AWREPORTMESSAGE 0x0a00
  67. //Remote Access APIs (Remote Access Apis)
  68. //IPX
  69. #define API_PSINIT 0x0040
  70. #define API_INITIATEBIND 0x0080
  71. //MAC
  72. #define API_MACINIT 0x0040
  73. //Renderer APIs
  74. #define API_RENDEROPEN 0x0040
  75. #define API_RENDEREXECUTE 0x0080
  76. #define API_RENDERCLOSE 0x00c0
  77. // Message pump events disguised as APIs
  78. // APICODE BITS | ERRCODE BITS
  79. #define API_JOBMESSAGE 0x0040 // 0000 0000 01 | 00 0000
  80. #define API_JOBCOMPLETE 0x0080 // 0000 0000 10 | 00 0000
  81. #define API_JOBERRCOMPLETE 0x00C0 // 0000 0000 11 | 00 0000
  82. #define API_MPJOBCANCEL 0x0100
  83. #define API_MPREJECTMSG 0x0140
  84. #define API_MPANSWER 0x0180
  85. #define API_MPTRANSPORT 0x01C0
  86. #define API_MPPOLLRETRIEVE 0x0200
  87. #define API_MPDEST 0x0240
  88. // WINDOWS MODULE API's
  89. #define WERR_OK 0x0
  90. #define WERR_GETVERSION 0x40
  91. #define WERR_GETFREESPACE 0x80
  92. #define WERR_GETCURRENTPDB 0xC0
  93. #define WERR_GETWINDOWSDIRECTORY 0x100
  94. #define WERR_GETSYSTEMDIRECTORY 0x140
  95. #define WERR_GETFREESYSTEMRESOURCES 0x180
  96. #define WERR_GETWINFLAGS 0x1C0
  97. #define WERR_GETDOSENVIRONMENT 0x200
  98. #define WERR_GETCURRENTTIME 0x240
  99. #define WERR_GETTICKCOUNT 0x280
  100. #define WERR_GETTIMERRESOLUTION 0x2C0
  101. #define WERR_LOGERROR 0x300
  102. #define WERR_LOGPARAMERROR 0x340
  103. #define WERR_GETWINDEBUGINFO 0x380
  104. #define WERR_SETWINDEBUGINFO 0x3C0
  105. #define WERR_FATALEXIT 0x400
  106. #define WERR_FATALAPPEXIT 0x440
  107. #define WERR_EXITWINDOWS 0x480
  108. #define WERR_EXITWINDOWSEXEC 0x4C0
  109. #define WERR_DEBUGBREAK 0x500
  110. #define WERR_OUTPUTDEBUGSTRING 0x540
  111. #define WERR_SETERRORMODE 0x580
  112. #define WERR_ISBADREADPTR 0x5C0
  113. #define WERR_ISBADWRITEPTR 0x600
  114. #define WERR_ISBADHUGEREADPTR 0x640
  115. #define WERR_ISBADHUGEWRITEPTR 0x680
  116. #define WERR_ISBADCODEPTR 0x6C0
  117. #define WERR_ISBADSTRINGPTR 0x700
  118. #define WERR_PROFINSCHK 0x740
  119. #define WERR_PROFSETUP 0x780
  120. #define WERR_PROFSAMPRATE 0x7C0
  121. #define WERR_PROFSTART 0x800
  122. #define WERR_PROFSTOP 0x840
  123. #define WERR_PROFCLEAR 0x880
  124. #define WERR_PROFFLUSH 0x8C0
  125. #define WERR_PROFFINISH 0x900
  126. #define WERR_CATCH 0x940
  127. #define WERR_THROW 0x980
  128. #define WERR_SWITCHSTACKBACK 0x9C0
  129. #define WERR_SWITCHSTACKTO 0xA00
  130. #define WERR_LOADMODULE 0xA40
  131. #define WERR_FREEMODULE 0xA80
  132. #define WERR_LOADLIBRARY 0xAC0
  133. #define WERR_FREELIBRARY 0xB00
  134. #define WERR_WINEXEC 0xB40
  135. #define WERR_GETMODULEHANDLE 0xB80
  136. #define WERR_GETMODULEUSAGE 0xBC0
  137. #define WERR_GETMODULEFILENAME 0xC00
  138. #define WERR_GETPROCADDRESS 0xC40
  139. #define WERR_GETINSTANCEDATA 0xC80
  140. #define WERR_GETCODEHANDLE 0xCC0
  141. #define WERR_GETCODEINFO 0xD00
  142. #define WERR_MAKEPROCINSTANCE 0xD40
  143. #define WERR_FREEPROCINSTANCE 0xD80
  144. #define WERR_SETSWAPAREASIZE 0xDC0
  145. #define WERR_SWAPRECORDING 0xE00
  146. #define WERR_VALIDATECODESEGMENTS 0xE40
  147. #define WERR_GETNUMTASKS 0xE80
  148. #define WERR_ISTASK 0xEC0
  149. #define WERR_GETCURRENTTASK 0xF00
  150. #define WERR_YIELD 0xF40
  151. #define WERR_DIRECTEDYIELD 0xF80
  152. #define WERR_GLOBALALLOC 0xFC0
  153. #define WERR_GLOBALREALLOC 0x1000
  154. #define WERR_GLOBALFREE 0x1040
  155. #define WERR_GLOBALDOSALLOC 0x1080
  156. #define WERR_GLOBALDOSFREE 0x10C0
  157. #define WERR_GLOBALLOCK 0x1100
  158. //#define WERR_GLOBALLOCK 0x1140
  159. #define WERR_GLOBALUNLOCK 0x1180
  160. #define WERR_GLOBALSIZE 0x11C0
  161. #define WERR_GLOBALHANDLE 0x1200
  162. #define WERR_GLOBALFLAGS 0x1240
  163. #define WERR_GLOBALWIRE 0x1280
  164. //#define WERR_GLOBALWIRE 0x12C0
  165. #define WERR_GLOBALUNWIRE 0x1300
  166. #define WERR_GLOBALPAGELOCK 0x1340
  167. #define WERR_GLOBALPAGEUNLOCK 0x1380
  168. #define WERR_GLOBALFIX 0x13C0
  169. #define WERR_GLOBALUNFIX 0x1400
  170. #define WERR_GLOBALLRUNEWEST 0x1440
  171. #define WERR_GLOBALLRUOLDEST 0x1480
  172. #define WERR_GLOBALCOMPACT 0x14C0
  173. #define WERR_GLOBALNOTIFY 0x1500
  174. #define WERR_LOCKSEGMENT 0x1540
  175. #define WERR_UNLOCKSEGMENT 0x1580
  176. #define WERR_ALLOCSELECTOR 0x15C0
  177. #define WERR_FREESELECTOR 0x1600
  178. #define WERR_ALLOCDSTOCSALIAS 0x1640
  179. #define WERR_PRESTOCHANGOSELECTOR 0x1680
  180. #define WERR_GETSELECTORBASE 0x16C0
  181. #define WERR_SETSELECTORBASE 0x1700
  182. #define WERR_GETSELECTORLIMIT 0x1740
  183. #define WERR_SETSELECTORLIMIT 0x1780
  184. #define WERR_LIMITEMSPAGES 0x17C0
  185. #define WERR_VALIDATEFREESPACES 0x1800
  186. #define WERR_LOCALALLOC 0x1840
  187. #define WERR_LOCALREALLOC 0x1880
  188. #define WERR_LOCALFREE 0x18C0
  189. #define WERR_LOCALLOCK 0x1900
  190. //#define WERR_LOCALLOCK 0x1940
  191. #define WERR_LOCALUNLOCK 0x1980
  192. #define WERR_LOCALSIZE 0x19C0
  193. #define WERR_LOCALHANDLE 0x1A00
  194. //#define WERR_LOCALHANDLE 0x1A40
  195. #define WERR_LOCALFLAGS 0x1A80
  196. #define WERR_LOCALINIT 0x1AC0
  197. #define WERR_LOCALCOMPACT 0x1B00
  198. #define WERR_LOCALSHRINK 0x1B40
  199. #define WERR_OPENFILE 0x1B80
  200. #define WERR__LOPEN 0x1BC0
  201. #define WERR__LCREAT 0x1C00
  202. #define WERR__LCLOSE 0x1C40
  203. #define WERR__LLSEEK 0x1C80
  204. #define WERR__LREAD 0x1CC0
  205. #define WERR__LWRITE 0x1D00
  206. #define WERR__HREAD 0x1D40
  207. #define WERR__HWRITE 0x1D80
  208. #define WERR_GETTEMPFILENAME 0x1DC0
  209. #define WERR_GETTEMPDRIVE 0x1E00
  210. #define WERR_GETDRIVETYPE 0x1E40
  211. #define WERR_SETHANDLECOUNT 0x1E80
  212. #define WERR_WNETADDCONNECTION 0x1EC0
  213. #define WERR_WNETGETCONNECTION 0x1F00
  214. #define WERR_WNETCANCELCONNECTION 0x1F40
  215. #define WERR_FINDRESOURCE 0x1F80
  216. #define WERR_LOADRESOURCE 0x1FC0
  217. #define WERR_FREERESOURCE 0x2000
  218. #define WERR_LOCKRESOURCE 0x2040
  219. //#define WERR_LOCKRESOURCE 0x2080
  220. #define WERR_SIZEOFRESOURCE 0x20C0
  221. #define WERR_ACCESSRESOURCE 0x2100
  222. #define WERR_ALLOCRESOURCE 0x2140
  223. #define WERR_SETRESOURCEHANDLER 0x2180
  224. #define WERR_INITATOMTABLE 0x21C0
  225. #define WERR_ADDATOM 0x2200
  226. #define WERR_DELETEATOM 0x2240
  227. #define WERR_FINDATOM 0x2280
  228. #define WERR_GETATOMNAME 0x22C0
  229. #define WERR_GLOBALADDATOM 0x2300
  230. #define WERR_GLOBALDELETEATOM 0x2340
  231. #define WERR_GLOBALFINDATOM 0x2380
  232. #define WERR_GLOBALGETATOMNAME 0x23C0
  233. #define WERR_GETATOMHANDLE 0x2400
  234. #define WERR_GETPROFILEINT 0x2440
  235. #define WERR_GETPROFILESTRING 0x2480
  236. #define WERR_WRITEPROFILESTRING 0x24C0
  237. #define WERR_GETPRIVATEPROFILEINT 0x2500
  238. #define WERR_GETPRIVATEPROFILESTRING 0x2540
  239. #define WERR_WRITEPRIVATEPROFILESTRING 0x2580
  240. #define WERR_ANSITOOEM 0x25C0
  241. #define WERR_OEMTOANSI 0x2600
  242. #define WERR_ANSITOOEMBUFF 0x2640
  243. #define WERR_OEMTOANSIBUFF 0x2680
  244. #define WERR_ANSINEXT 0x26C0
  245. #define WERR_ANSIPREV 0x2700
  246. #define WERR_ANSIUPPER 0x2740
  247. #define WERR_ANSILOWER 0x2780
  248. #define WERR_ANSIUPPERBUFF 0x27C0
  249. #define WERR_ANSILOWERBUFF 0x2800
  250. #define WERR_ISCHARALPHA 0x2840
  251. #define WERR_ISCHARALPHANUMERIC 0x2880
  252. #define WERR_ISCHARUPPER 0x28C0
  253. #define WERR_ISCHARLOWER 0x2900
  254. #define WERR_LSTRCMP 0x2940
  255. #define WERR_LSTRCMPI 0x2980
  256. #define WERR_LSTRCPY 0x29C0
  257. #define WERR_LSTRCAT 0x2A00
  258. #define WERR_LSTRLEN 0x2A40
  259. #define WERR_LSTRCPYN 0x2A80
  260. #define WERR_HMEMCPY 0x2AC0
  261. #define WERR_ISDBCSLEADBYTE 0x2B00
  262. #define WERR_LOADSTRING 0x2B40
  263. #define WERR_OEMKEYSCAN 0x2B80
  264. #define WERR_VKKEYSCAN 0x2BC0
  265. #define WERR_GETKEYBOARDTYPE 0x2C00
  266. #define WERR_MAPVIRTUALKEY 0x2C40
  267. #define WERR_GETKBCODEPAGE 0x2C80
  268. #define WERR_GETKEYNAMETEXT 0x2CC0
  269. #define WERR_TOASCII 0x2D00
  270. #define WERR_CREATEDC 0x2D40
  271. #define WERR_CREATEIC 0x2D80
  272. #define WERR_CREATECOMPATIBLEDC 0x2DC0
  273. #define WERR_DELETEDC 0x2E00
  274. #define WERR_GETDCORG 0x2E40
  275. #define WERR_SAVEDC 0x2E80
  276. #define WERR_RESTOREDC 0x2EC0
  277. #define WERR_SETENVIRONMENT 0x2F00
  278. #define WERR_GETENVIRONMENT 0x2F40
  279. #define WERR_MULDIV 0x2F80
  280. #define WERR_SETBOUNDSRECT 0x2FC0
  281. #define WERR_GETBOUNDSRECT 0x3000
  282. #define WERR_GETDEVICECAPS 0x3040
  283. #define WERR_SETMAPMODE 0x3080
  284. #define WERR_GETMAPMODE 0x30C0
  285. #define WERR_SETWINDOWORG 0x3100
  286. #define WERR_GETWINDOWORG 0x3140
  287. #define WERR_SETWINDOWEXT 0x3180
  288. #define WERR_GETWINDOWEXT 0x31C0
  289. #define WERR_OFFSETWINDOWORG 0x3200
  290. #define WERR_SCALEWINDOWEXT 0x3240
  291. #define WERR_SETVIEWPORTORG 0x3280
  292. #define WERR_GETVIEWPORTORG 0x32C0
  293. #define WERR_SETVIEWPORTEXT 0x3300
  294. #define WERR_GETVIEWPORTEXT 0x3340
  295. #define WERR_OFFSETVIEWPORTORG 0x3380
  296. #define WERR_SCALEVIEWPORTEXT 0x33C0
  297. #define WERR_SETWINDOWORGEX 0x3400
  298. #define WERR_GETWINDOWORGEX 0x3440
  299. #define WERR_SETWINDOWEXTEX 0x3480
  300. #define WERR_GETWINDOWEXTEX 0x34C0
  301. #define WERR_OFFSETWINDOWORGEX 0x3500
  302. #define WERR_SCALEWINDOWEXTEX 0x3540
  303. #define WERR_SETVIEWPORTEXTEX 0x3580
  304. #define WERR_GETVIEWPORTEXTEX 0x35C0
  305. #define WERR_SETVIEWPORTORGEX 0x3600
  306. #define WERR_GETVIEWPORTORGEX 0x3640
  307. #define WERR_OFFSETVIEWPORTORGEX 0x3680
  308. #define WERR_SCALEVIEWPORTEXTEX 0x36C0
  309. #define WERR_DPTOLP 0x3700
  310. #define WERR_LPTODP 0x3740
  311. #define WERR_GETNEARESTCOLOR 0x3780
  312. #define WERR_GETSYSCOLOR 0x37C0
  313. #define WERR_SETSYSCOLORS 0x3800
  314. #define WERR_GETSTOCKOBJECT 0x3840
  315. #define WERR_ISGDIOBJECT 0x3880
  316. #define WERR_DELETEOBJECT 0x38C0
  317. #define WERR_SELECTOBJECT 0x3900
  318. #define WERR_GETOBJECT 0x3940
  319. #define WERR_UNREALIZEOBJECT 0x3980
  320. #define WERR_ENUMOBJECTS 0x39C0
  321. //#define WERR_ENUMOBJECTS 0x3A00
  322. #define WERR_CREATEPEN 0x3A40
  323. #define WERR_CREATEPENINDIRECT 0x3A80
  324. #define WERR_CREATESOLIDBRUSH 0x3AC0
  325. #define WERR_CREATEHATCHBRUSH 0x3B00
  326. #define WERR_CREATEPATTERNBRUSH 0x3B40
  327. #define WERR_CREATEDIBPATTERNBRUSH 0x3B80
  328. #define WERR_CREATEBRUSHINDIRECT 0x3BC0
  329. #define WERR_SETBRUSHORG 0x3C00
  330. #define WERR_GETBRUSHORG 0x3C40
  331. #define WERR_GETBRUSHORGEX 0x3C80
  332. #define WERR_CREATERECTRGN 0x3CC0
  333. #define WERR_CREATERECTRGNINDIRECT 0x3D00
  334. #define WERR_CREATEELLIPTICRGNINDIRECT 0x3D40
  335. #define WERR_CREATEELLIPTICRGN 0x3D80
  336. #define WERR_CREATEPOLYGONRGN 0x3DC0
  337. #define WERR_CREATEPOLYPOLYGONRGN 0x3E00
  338. #define WERR_CREATEROUNDRECTRGN 0x3E40
  339. #define WERR_SETRECTRGN 0x3E80
  340. #define WERR_COMBINERGN 0x3EC0
  341. #define WERR_EQUALRGN 0x3F00
  342. #define WERR_OFFSETRGN 0x3F40
  343. #define WERR_GETRGNBOX 0x3F80
  344. #define WERR_RECTINREGION 0x3FC0
  345. #define WERR_PTINREGION 0x4000
  346. #define WERR_CREATEPALETTE 0x4040
  347. #define WERR_SELECTPALETTE 0x4080
  348. #define WERR_REALIZEPALETTE 0x40C0
  349. #define WERR_UPDATECOLORS 0x4100
  350. #define WERR_ANIMATEPALETTE 0x4140
  351. #define WERR_SETPALETTEENTRIES 0x4180
  352. #define WERR_GETPALETTEENTRIES 0x41C0
  353. #define WERR_GETNEARESTPALETTEINDEX 0x4200
  354. #define WERR_RESIZEPALETTE 0x4240
  355. #define WERR_GETSYSTEMPALETTEENTRIES 0x4280
  356. #define WERR_GETSYSTEMPALETTEUSE 0x42C0
  357. #define WERR_SETSYSTEMPALETTEUSE 0x4300
  358. #define WERR_SELECTCLIPRGN 0x4340
  359. #define WERR_GETCLIPBOX 0x4380
  360. #define WERR_INTERSECTCLIPRECT 0x43C0
  361. #define WERR_OFFSETCLIPRGN 0x4400
  362. #define WERR_EXCLUDECLIPRECT 0x4440
  363. #define WERR_PTVISIBLE 0x4480
  364. #define WERR_RECTVISIBLE 0x44C0
  365. #define WERR_MOVETO 0x4500
  366. #define WERR_GETCURRENTPOSITION 0x4540
  367. #define WERR_MOVETOEX 0x4580
  368. #define WERR_GETCURRENTPOSITIONEX 0x45C0
  369. #define WERR_LINETO 0x4600
  370. #define WERR_POLYLINE 0x4640
  371. #define WERR_LINEDDA 0x4680
  372. #define WERR_RECTANGLE 0x46C0
  373. #define WERR_ROUNDRECT 0x4700
  374. #define WERR_ELLIPSE 0x4740
  375. #define WERR_ARC 0x4780
  376. #define WERR_CHORD 0x47C0
  377. #define WERR_PIE 0x4800
  378. #define WERR_POLYGON 0x4840
  379. #define WERR_POLYPOLYGON 0x4880
  380. #define WERR_SETPOLYFILLMODE 0x48C0
  381. #define WERR_GETPOLYFILLMODE 0x4900
  382. #define WERR_FLOODFILL 0x4940
  383. #define WERR_EXTFLOODFILL 0x4980
  384. #define WERR_FILLRGN 0x49C0
  385. #define WERR_FRAMERGN 0x4A00
  386. #define WERR_INVERTRGN 0x4A40
  387. #define WERR_PAINTRGN 0x4A80
  388. #define WERR_FILLRECT 0x4AC0
  389. #define WERR_FRAMERECT 0x4B00
  390. #define WERR_INVERTRECT 0x4B40
  391. #define WERR_DRAWFOCUSRECT 0x4B80
  392. #define WERR_TEXTOUT 0x4BC0
  393. #define WERR_TABBEDTEXTOUT 0x4C00
  394. #define WERR_EXTTEXTOUT 0x4C40
  395. #define WERR_GETTEXTEXTENT 0x4C80
  396. #define WERR_GETTABBEDTEXTEXTENT 0x4CC0
  397. #define WERR_GETTEXTEXTENTPOINT 0x4D00
  398. #define WERR_DRAWTEXT 0x4D40
  399. #define WERR_GRAYSTRING 0x4D80
  400. #define WERR_GETCHARWIDTH 0x4DC0
  401. #define WERR_SETTEXTCOLOR 0x4E00
  402. #define WERR_GETTEXTCOLOR 0x4E40
  403. #define WERR_SETBKCOLOR 0x4E80
  404. #define WERR_GETBKCOLOR 0x4EC0
  405. #define WERR_SETBKMODE 0x4F00
  406. #define WERR_GETBKMODE 0x4F40
  407. #define WERR_SETTEXTALIGN 0x4F80
  408. #define WERR_GETTEXTALIGN 0x4FC0
  409. #define WERR_SETTEXTCHARACTEREXTRA 0x5000
  410. #define WERR_GETTEXTCHARACTEREXTRA 0x5040
  411. #define WERR_SETTEXTJUSTIFICATION 0x5080
  412. #define WERR_CREATEFONT 0x50C0
  413. #define WERR_CREATEFONTINDIRECT 0x5100
  414. #define WERR_SETMAPPERFLAGS 0x5140
  415. #define WERR_ADDFONTRESOURCE 0x5180
  416. #define WERR_REMOVEFONTRESOURCE 0x51C0
  417. #define WERR_GETTEXTFACE 0x5200
  418. #define WERR_GETASPECTRATIOFILTER 0x5240
  419. #define WERR_GETASPECTRATIOFILTEREX 0x5280
  420. #define WERR_GETTEXTMETRICS 0x52C0
  421. #define WERR_GETOUTLINETEXTMETRICS 0x5300
  422. #define WERR_ENUMFONTFAMILIES 0x5340
  423. #define WERR_ENUMFONTS 0x5380
  424. //#define WERR_ENUMFONTS 0x53C0
  425. //#define WERR_ENUMFONTFAMILIES 0x5400
  426. #define WERR_GETFONTDATA 0x5440
  427. #define WERR_CREATESCALABLEFONTRESOURCE 0x5480
  428. #define WERR_GETGLYPHOUTLINE 0x54C0
  429. #define WERR_GETCHARABCWIDTHS 0x5500
  430. #define WERR_GETKERNINGPAIRS 0x5540
  431. #define WERR_GETRASTERIZERCAPS 0x5580
  432. #define WERR_CREATEBITMAP 0x55C0
  433. #define WERR_CREATEBITMAPINDIRECT 0x5600
  434. #define WERR_CREATECOMPATIBLEBITMAP 0x5640
  435. #define WERR_CREATEDISCARDABLEBITMAP 0x5680
  436. #define WERR_CREATEDIBITMAP 0x56C0
  437. #define WERR_LOADBITMAP 0x5700
  438. #define WERR_BITBLT 0x5740
  439. #define WERR_PATBLT 0x5780
  440. #define WERR_STRETCHBLT 0x57C0
  441. #define WERR_STRETCHDIBITS 0x5800
  442. #define WERR_SETPIXEL 0x5840
  443. #define WERR_GETPIXEL 0x5880
  444. #define WERR_SETSTRETCHBLTMODE 0x58C0
  445. #define WERR_GETSTRETCHBLTMODE 0x5900
  446. #define WERR_SETBITMAPDIMENSION 0x5940
  447. #define WERR_GETBITMAPDIMENSION 0x5980
  448. #define WERR_SETBITMAPDIMENSIONEX 0x59C0
  449. #define WERR_GETBITMAPDIMENSIONEX 0x5A00
  450. #define WERR_SETROP2 0x5A40
  451. #define WERR_GETROP2 0x5A80
  452. #define WERR_SETBITMAPBITS 0x5AC0
  453. #define WERR_GETBITMAPBITS 0x5B00
  454. #define WERR_SETDIBITS 0x5B40
  455. #define WERR_GETDIBITS 0x5B80
  456. #define WERR_SETDIBITSTODEVICE 0x5BC0
  457. #define WERR_CREATEMETAFILE 0x5C00
  458. #define WERR_CLOSEMETAFILE 0x5C40
  459. #define WERR_GETMETAFILE 0x5C80
  460. #define WERR_DELETEMETAFILE 0x5CC0
  461. #define WERR_COPYMETAFILE 0x5D00
  462. #define WERR_PLAYMETAFILE 0x5D40
  463. #define WERR_GETMETAFILEBITS 0x5D80
  464. #define WERR_SETMETAFILEBITS 0x5DC0
  465. #define WERR_SETMETAFILEBITSBETTER 0x5E00
  466. #define WERR_PLAYMETAFILERECORD 0x5E40
  467. #define WERR_ENUMMETAFILE 0x5E80
  468. #define WERR_STARTDOC 0x5EC0
  469. #define WERR_STARTPAGE 0x5F00
  470. #define WERR_ENDPAGE 0x5F40
  471. #define WERR_ENDDOC 0x5F80
  472. #define WERR_ABORTDOC 0x5FC0
  473. #define WERR_SETABORTPROC 0x6000
  474. #define WERR_SPOOLFILE 0x6040
  475. #define WERR_QUERYABORT 0x6080
  476. #define WERR_ESCAPE 0x60C0
  477. #define WERR_GETSYSTEMMETRICS 0x6100
  478. #define WERR_GETDOUBLECLICKTIME 0x6140
  479. #define WERR_SETDOUBLECLICKTIME 0x6180
  480. #define WERR_SYSTEMPARAMETERSINFO 0x61C0
  481. #define WERR_SETRECT 0x6200
  482. #define WERR_SETRECTEMPTY 0x6240
  483. #define WERR_COPYRECT 0x6280
  484. #define WERR_ISRECTEMPTY 0x62C0
  485. #define WERR_EQUALRECT 0x6300
  486. #define WERR_INTERSECTRECT 0x6340
  487. #define WERR_UNIONRECT 0x6380
  488. #define WERR_SUBTRACTRECT 0x63C0
  489. #define WERR_OFFSETRECT 0x6400
  490. #define WERR_INFLATERECT 0x6440
  491. #define WERR_PTINRECT 0x6480
  492. #define WERR_REGISTERWINDOWMESSAGE 0x64C0
  493. #define WERR_GETMESSAGE 0x6500
  494. #define WERR_PEEKMESSAGE 0x6540
  495. #define WERR_WAITMESSAGE 0x6580
  496. #define WERR_GETMESSAGEPOS 0x65C0
  497. #define WERR_GETMESSAGETIME 0x6600
  498. #define WERR_GETMESSAGEEXTRAINFO 0x6640
  499. #define WERR_TRANSLATEMESSAGE 0x6680
  500. #define WERR_DISPATCHMESSAGE 0x66C0
  501. #define WERR_SETMESSAGEQUEUE 0x6700
  502. #define WERR_GETINPUTSTATE 0x6740
  503. #define WERR_GETQUEUESTATUS 0x6780
  504. #define WERR_POSTMESSAGE 0x67C0
  505. #define WERR_SENDMESSAGE 0x6800
  506. #define WERR_POSTAPPMESSAGE 0x6840
  507. #define WERR_REPLYMESSAGE 0x6880
  508. #define WERR_INSENDMESSAGE 0x68C0
  509. #define WERR_CALLMSGFILTER 0x6900
  510. #define WERR_POSTQUITMESSAGE 0x6940
  511. #define WERR_REGISTERCLASS 0x6980
  512. #define WERR_UNREGISTERCLASS 0x69C0
  513. #define WERR_GETCLASSINFO 0x6A00
  514. #define WERR_GETCLASSNAME 0x6A40
  515. #define WERR_GETCLASSWORD 0x6A80
  516. #define WERR_SETCLASSWORD 0x6AC0
  517. #define WERR_GETCLASSLONG 0x6B00
  518. #define WERR_SETCLASSLONG 0x6B40
  519. #define WERR_ISWINDOW 0x6B80
  520. #define WERR_CREATEWINDOWEX 0x6BC0
  521. #define WERR_CREATEWINDOW 0x6C00
  522. #define WERR_DESTROYWINDOW 0x6C40
  523. #define WERR_GETWINDOWTASK 0x6C80
  524. #define WERR_ISCHILD 0x6CC0
  525. #define WERR_GETPARENT 0x6D00
  526. #define WERR_SETPARENT 0x6D40
  527. #define WERR_ISWINDOWVISIBLE 0x6D80
  528. #define WERR_SHOWWINDOW 0x6DC0
  529. #define WERR_ENABLEWINDOW 0x6E00
  530. #define WERR_ISWINDOWENABLED 0x6E40
  531. #define WERR_SETWINDOWTEXT 0x6E80
  532. #define WERR_GETWINDOWTEXT 0x6EC0
  533. #define WERR_GETWINDOWTEXTLENGTH 0x6F00
  534. #define WERR_GETWINDOWWORD 0x6F40
  535. #define WERR_SETWINDOWWORD 0x6F80
  536. #define WERR_GETWINDOWLONG 0x6FC0
  537. #define WERR_SETWINDOWLONG 0x7000
  538. #define WERR_GETCLIENTRECT 0x7040
  539. #define WERR_GETWINDOWRECT 0x7080
  540. #define WERR_GETWINDOWPLACEMENT 0x70C0
  541. #define WERR_SETWINDOWPLACEMENT 0x7100
  542. #define WERR_SETWINDOWPOS 0x7140
  543. #define WERR_BEGINDEFERWINDOWPOS 0x7180
  544. #define WERR_DEFERWINDOWPOS 0x71C0
  545. #define WERR_ENDDEFERWINDOWPOS 0x7200
  546. #define WERR_MOVEWINDOW 0x7240
  547. #define WERR_BRINGWINDOWTOTOP 0x7280
  548. #define WERR_DEFWINDOWPROC 0x72C0
  549. #define WERR_CALLWINDOWPROC 0x7300
  550. //#define WERR_CALLWINDOWPROC 0x7340
  551. #define WERR_ADJUSTWINDOWRECT 0x7380
  552. #define WERR_ADJUSTWINDOWRECTEX 0x73C0
  553. #define WERR_FLASHWINDOW 0x7400
  554. #define WERR_SHOWOWNEDPOPUPS 0x7440
  555. #define WERR_OPENICON 0x7480
  556. #define WERR_CLOSEWINDOW 0x74C0
  557. #define WERR_ANYPOPUP 0x7500
  558. #define WERR_ISICONIC 0x7540
  559. #define WERR_ISZOOMED 0x7580
  560. #define WERR_CLIENTTOSCREEN 0x75C0
  561. #define WERR_SCREENTOCLIENT 0x7600
  562. #define WERR_MAPWINDOWPOINTS 0x7640
  563. #define WERR_WINDOWFROMPOINT 0x7680
  564. #define WERR_CHILDWINDOWFROMPOINT 0x76C0
  565. #define WERR_GETDESKTOPWINDOW 0x7700
  566. #define WERR_FINDWINDOW 0x7740
  567. #define WERR_ENUMWINDOWS 0x7780
  568. #define WERR_ENUMCHILDWINDOWS 0x77C0
  569. #define WERR_ENUMTASKWINDOWS 0x7800
  570. #define WERR_GETTOPWINDOW 0x7840
  571. #define WERR_GETWINDOW 0x7880
  572. #define WERR_GETNEXTWINDOW 0x78C0
  573. #define WERR_SETPROP 0x7900
  574. #define WERR_GETPROP 0x7940
  575. #define WERR_REMOVEPROP 0x7980
  576. #define WERR_ENUMPROPS 0x79C0
  577. #define WERR_GETDC 0x7A00
  578. #define WERR_RELEASEDC 0x7A40
  579. #define WERR_GETWINDOWDC 0x7A80
  580. #define WERR_GETDCEX 0x7AC0
  581. #define WERR_BEGINPAINT 0x7B00
  582. #define WERR_ENDPAINT 0x7B40
  583. #define WERR_UPDATEWINDOW 0x7B80
  584. #define WERR_EXCLUDEUPDATERGN 0x7BC0
  585. #define WERR_LOCKWINDOWUPDATE 0x7C00
  586. #define WERR_GETUPDATERECT 0x7C40
  587. #define WERR_GETUPDATERGN 0x7C80
  588. #define WERR_INVALIDATERECT 0x7CC0
  589. #define WERR_VALIDATERECT 0x7D00
  590. #define WERR_INVALIDATERGN 0x7D40
  591. #define WERR_VALIDATERGN 0x7D80
  592. #define WERR_REDRAWWINDOW 0x7DC0
  593. #define WERR_SCROLLWINDOW 0x7E00
  594. #define WERR_SCROLLDC 0x7E40
  595. #define WERR_SCROLLWINDOWEX 0x7E80
  596. #define WERR_SETACTIVEWINDOW 0x7EC0
  597. #define WERR_GETACTIVEWINDOW 0x7F00
  598. #define WERR_GETLASTACTIVEPOPUP 0x7F40
  599. #define WERR_SETFOCUS 0x7F80
  600. #define WERR_GETFOCUS 0x7FC0
  601. #define WERR_GETKEYSTATE 0x8000
  602. #define WERR_GETASYNCKEYSTATE 0x8040
  603. #define WERR_GETKEYBOARDSTATE 0x8080
  604. #define WERR_SETKEYBOARDSTATE 0x80C0
  605. #define WERR_SETCAPTURE 0x8100
  606. #define WERR_RELEASECAPTURE 0x8140
  607. #define WERR_GETCAPTURE 0x8180
  608. #define WERR_SWAPMOUSEBUTTON 0x81C0
  609. #define WERR_GETSYSMODALWINDOW 0x8200
  610. #define WERR_SETSYSMODALWINDOW 0x8240
  611. #define WERR_SETTIMER 0x8280
  612. #define WERR_KILLTIMER 0x82C0
  613. #define WERR_LOADACCELERATORS 0x8300
  614. #define WERR_TRANSLATEACCELERATOR 0x8340
  615. #define WERR_ISMENU 0x8380
  616. #define WERR_CREATEMENU 0x83C0
  617. #define WERR_CREATEPOPUPMENU 0x8400
  618. #define WERR_LOADMENU 0x8440
  619. #define WERR_LOADMENUINDIRECT 0x8480
  620. #define WERR_DESTROYMENU 0x84C0
  621. #define WERR_GETMENU 0x8500
  622. #define WERR_SETMENU 0x8540
  623. #define WERR_GETSYSTEMMENU 0x8580
  624. #define WERR_DRAWMENUBAR 0x85C0
  625. #define WERR_HILITEMENUITEM 0x8600
  626. #define WERR_INSERTMENU 0x8640
  627. #define WERR_APPENDMENU 0x8680
  628. #define WERR_MODIFYMENU 0x86C0
  629. #define WERR_REMOVEMENU 0x8700
  630. #define WERR_DELETEMENU 0x8740
  631. #define WERR_CHANGEMENU 0x8780
  632. #define WERR_ENABLEMENUITEM 0x87C0
  633. #define WERR_CHECKMENUITEM 0x8800
  634. #define WERR_GETSUBMENU 0x8840
  635. #define WERR_GETMENUITEMCOUNT 0x8880
  636. #define WERR_GETMENUITEMID 0x88C0
  637. #define WERR_GETMENUSTRING 0x8900
  638. #define WERR_GETMENUSTATE 0x8940
  639. #define WERR_SETMENUITEMBITMAPS 0x8980
  640. #define WERR_GETMENUCHECKMARKDIMENSIONS 0x89C0
  641. #define WERR_TRACKPOPUPMENU 0x8A00
  642. #define WERR_SETSCROLLPOS 0x8A40
  643. #define WERR_GETSCROLLPOS 0x8A80
  644. #define WERR_SETSCROLLRANGE 0x8AC0
  645. #define WERR_GETSCROLLRANGE 0x8B00
  646. #define WERR_SHOWSCROLLBAR 0x8B40
  647. #define WERR_ENABLESCROLLBAR 0x8B80
  648. #define WERR_OPENCLIPBOARD 0x8BC0
  649. #define WERR_CLOSECLIPBOARD 0x8C00
  650. #define WERR_EMPTYCLIPBOARD 0x8C40
  651. #define WERR_GETOPENCLIPBOARDWINDOW 0x8C80
  652. #define WERR_GETCLIPBOARDOWNER 0x8CC0
  653. #define WERR_SETCLIPBOARDVIEWER 0x8D00
  654. #define WERR_GETCLIPBOARDVIEWER 0x8D40
  655. #define WERR_SETCLIPBOARDDATA 0x8D80
  656. #define WERR_GETCLIPBOARDDATA 0x8DC0
  657. #define WERR_ISCLIPBOARDFORMATAVAILABLE 0x8E00
  658. #define WERR_GETPRIORITYCLIPBOARDFORMAT 0x8E40
  659. #define WERR_REGISTERCLIPBOARDFORMAT 0x8E80
  660. #define WERR_COUNTCLIPBOARDFORMATS 0x8EC0
  661. #define WERR_ENUMCLIPBOARDFORMATS 0x8F00
  662. #define WERR_GETCLIPBOARDFORMATNAME 0x8F40
  663. #define WERR_CHANGECLIPBOARDCHAIN 0x8F80
  664. #define WERR_LOADCURSOR 0x8FC0
  665. #define WERR_CREATECURSOR 0x9000
  666. #define WERR_DESTROYCURSOR 0x9040
  667. #define WERR_COPYCURSOR 0x9080
  668. #define WERR_SHOWCURSOR 0x90C0
  669. #define WERR_SETCURSORPOS 0x9100
  670. #define WERR_GETCURSORPOS 0x9140
  671. #define WERR_SETCURSOR 0x9180
  672. #define WERR_GETCURSOR 0x91C0
  673. #define WERR_CLIPCURSOR 0x9200
  674. #define WERR_GETCLIPCURSOR 0x9240
  675. #define WERR_LOADICON 0x9280
  676. #define WERR_CREATEICON 0x92C0
  677. #define WERR_DESTROYICON 0x9300
  678. #define WERR_COPYICON 0x9340
  679. #define WERR_DRAWICON 0x9380
  680. #define WERR_MESSAGEBOX 0x93C0
  681. #define WERR_MESSAGEBEEP 0x9400
  682. #define WERR_CREATECARET 0x9440
  683. #define WERR_DESTROYCARET 0x9480
  684. #define WERR_SETCARETPOS 0x94C0
  685. #define WERR_GETCARETPOS 0x9500
  686. #define WERR_HIDECARET 0x9540
  687. #define WERR_SHOWCARET 0x9580
  688. #define WERR_GETCARETBLINKTIME 0x95C0
  689. #define WERR_SETCARETBLINKTIME 0x9600
  690. #define WERR_DEFFRAMEPROC 0x9640
  691. #define WERR_DEFMDICHILDPROC 0x9680
  692. #define WERR_TRANSLATEMDISYSACCEL 0x96C0
  693. #define WERR_ARRANGEICONICWINDOWS 0x9700
  694. #define WERR_ISDIALOGMESSAGE 0x9740
  695. #define WERR_DEFDLGPROC 0x9780
  696. #define WERR_CREATEDIALOG 0x97C0
  697. #define WERR_CREATEDIALOGINDIRECT 0x9800
  698. #define WERR_CREATEDIALOGPARAM 0x9840
  699. #define WERR_CREATEDIALOGINDIRECTPARAM 0x9880
  700. #define WERR_DIALOGBOX 0x98C0
  701. #define WERR_DIALOGBOXINDIRECT 0x9900
  702. #define WERR_DIALOGBOXPARAM 0x9940
  703. #define WERR_DIALOGBOXINDIRECTPARAM 0x9980
  704. #define WERR_ENDDIALOG 0x99C0
  705. #define WERR_GETDLGCTRLID 0x9A00
  706. #define WERR_GETDLGITEM 0x9A40
  707. #define WERR_SENDDLGITEMMESSAGE 0x9A80
  708. #define WERR_SETDLGITEMINT 0x9AC0
  709. #define WERR_GETDLGITEMINT 0x9B00
  710. #define WERR_SETDLGITEMTEXT 0x9B40
  711. #define WERR_GETDLGITEMTEXT 0x9B80
  712. #define WERR_CHECKDLGBUTTON 0x9BC0
  713. #define WERR_CHECKRADIOBUTTON 0x9C00
  714. #define WERR_ISDLGBUTTONCHECKED 0x9C40
  715. #define WERR_GETNEXTDLGGROUPITEM 0x9C80
  716. #define WERR_GETNEXTDLGTABITEM 0x9CC0
  717. #define WERR_MAPDIALOGRECT 0x9D00
  718. #define WERR_GETDIALOGBASEUNITS 0x9D40
  719. #define WERR_DLGDIRLIST 0x9D80
  720. #define WERR_DLGDIRSELECT 0x9DC0
  721. #define WERR_DLGDIRLISTCOMBOBOX 0x9E00
  722. #define WERR_DLGDIRSELECTCOMBOBOX 0x9E40
  723. #define WERR_DLGDIRSELECTEX 0x9E80
  724. #define WERR_DLGDIRSELECTCOMBOBOXEX 0x9EC0
  725. #define WERR_SETWINDOWSHOOK 0x9F00
  726. #define WERR_DEFHOOKPROC 0x9F40
  727. //#define WERR_SETWINDOWSHOOK 0x9F80
  728. //#define WERR_DEFHOOKPROC 0x9FC0
  729. #define WERR_UNHOOKWINDOWSHOOK 0xA000
  730. #define WERR_SETWINDOWSHOOKEX 0xA040
  731. #define WERR_UNHOOKWINDOWSHOOKEX 0xA080
  732. #define WERR_CALLNEXTHOOKEX 0xA0C0
  733. #define WERR_ENABLEHARDWAREINPUT 0xA100
  734. #define WERR_QUERYSENDMESSAGE 0xA140
  735. #define WERR_LOCKINPUT 0xA180
  736. #define WERR_GETSYSTEMDEBUGSTATE 0xA1C0
  737. #define WERR_WINHELP 0xA200
  738. #define WERR_OPENSOUND 0xA240
  739. #define WERR_CLOSESOUND 0xA280
  740. #define WERR_STARTSOUND 0xA2C0
  741. #define WERR_STOPSOUND 0xA300
  742. #define WERR_SETVOICEQUEUESIZE 0xA340
  743. #define WERR_SETVOICENOTE 0xA380
  744. #define WERR_SETVOICEACCENT 0xA3C0
  745. #define WERR_SETVOICEENVELOPE 0xA400
  746. #define WERR_SETVOICESOUND 0xA440
  747. #define WERR_SETVOICETHRESHOLD 0xA480
  748. #define WERR_GETTHRESHOLDEVENT 0xA4C0
  749. #define WERR_GETTHRESHOLDSTATUS 0xA500
  750. #define WERR_SETSOUNDNOISE 0xA540
  751. #define WERR_WAITSOUNDSTATE 0xA580
  752. #define WERR_SYNCALLVOICES 0xA5C0
  753. #define WERR_COUNTVOICENOTES 0xA600
  754. #define WERR_BUILDCOMMDCB 0xA640
  755. #define WERR_OPENCOMM 0xA680
  756. #define WERR_CLOSECOMM 0xA6C0
  757. #define WERR_READCOMM 0xA700
  758. #define WERR_WRITECOMM 0xA740
  759. #define WERR_UNGETCOMMCHAR 0xA780
  760. #define WERR_FLUSHCOMM 0xA7C0
  761. #define WERR_TRANSMITCOMMCHAR 0xA800
  762. #define WERR_SETCOMMSTATE 0xA840
  763. #define WERR_GETCOMMSTATE 0xA880
  764. #define WERR_GETCOMMERROR 0xA8C0
  765. #define WERR_SETCOMMBREAK 0xA900
  766. #define WERR_CLEARCOMMBREAK 0xA940
  767. #define WERR_SETCOMMEVENTMASK 0xA980
  768. #define WERR_GETCOMMEVENTMASK 0xA9C0
  769. #define WERR_ESCAPECOMMFUNCTION 0xAA00
  770. #define WERR_ENABLECOMMNOTIFICATION 0xAA40
  771. #define WERR_WVSPRINTF 0xAA80
  772. #define WERR_DEFDRIVERPROC 0xAAC0
  773. #define WERR_OPENDRIVER 0xAB00
  774. #define WERR_CLOSEDRIVER 0xAB40
  775. #define WERR_SENDDRIVERMESSAGE 0xAB80
  776. #define WERR_GETDRIVERMODULEHANDLE 0xABC0
  777. #define WERR_GETNEXTDRIVER 0xAC00
  778. #define WERR_GETDRIVERINFO 0xAC40
  779. #endif // _ERRORMOD_H