nterrstr.c 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. #include <u.h>
  10. #include <libc.h>
  11. /*
  12. * some lines commented 4APE have been changed to
  13. * make them the same as plan9 error messages. This is not
  14. * a problem for native programs but those built on APE
  15. * will give unhelpful errors if this is not done
  16. */
  17. static struct {
  18. char *msg;
  19. int err;
  20. } NTerrs[] = {
  21. { "success", 0x0 },
  22. { "wait 1", 0x1 },
  23. { "wait 2", 0x2 },
  24. { "wait 3", 0x3 },
  25. { "wait 63", 0x3f },
  26. { "abandoned", 0x80 },
  27. { "abandoned wait 63", 0xbf },
  28. { "user apc", 0xc0 },
  29. { "kernel apc", 0x100 },
  30. { "alerted", 0x101 },
  31. { "timeout", 0x102 },
  32. { "pending", 0x103 },
  33. { "reparse", 0x104 },
  34. { "more entries", 0x105 },
  35. { "not all assigned", 0x106 },
  36. { "some not mapped", 0x107 },
  37. { "oplock break in progress", 0x108 },
  38. { "volume mounted", 0x109 },
  39. { "rxact committed", 0x10a },
  40. { "notify cleanup", 0x10b },
  41. { "notify enum dir", 0x10c },
  42. { "no quotas for account", 0x10d },
  43. { "primary transport connect failed", 0x10e },
  44. { "page fault transition", 0x110 },
  45. { "page fault demand zero", 0x111 },
  46. { "page fault copy on write", 0x112 },
  47. { "page fault guard page", 0x113 },
  48. { "page fault paging file", 0x114 },
  49. { "cache page locked", 0x115 },
  50. { "crash dump", 0x116 },
  51. { "buffer all zeros", 0x117 },
  52. { "reparse object", 0x118 },
  53. { "resource requirements changed", 0x119 },
  54. { "translation complete", 0x120 },
  55. { "ds membership evaluated locally", 0x121 },
  56. { "nothing to terminate", 0x122 },
  57. { "process not in job", 0x123 },
  58. { "process in job", 0x124 },
  59. { "wait for oplock", 0x367 },
  60. { "object name exists", 0x40000000 },
  61. { "thread was suspended", 0x40000001 },
  62. { "working set limit range", 0x40000002 },
  63. { "image not at base", 0x40000003 },
  64. { "rxact state created", 0x40000004 },
  65. { "segment notification", 0x40000005 },
  66. { "local user session key", 0x40000006 },
  67. { "bad current directory", 0x40000007 },
  68. { "serial more writes", 0x40000008 },
  69. { "registry recovered", 0x40000009 },
  70. { "ft read recovery from backup", 0x4000000a },
  71. { "ft write recovery", 0x4000000b },
  72. { "serial counter timeout", 0x4000000c },
  73. { "null LM password", 0x4000000d },
  74. { "image machine type mismatch", 0x4000000e },
  75. { "receive partial", 0x4000000f },
  76. { "receive expedited", 0x40000010 },
  77. { "receive partial expedited", 0x40000011 },
  78. { "event done", 0x40000012 },
  79. { "event pending", 0x40000013 },
  80. { "checking file system", 0x40000014 },
  81. { "fatal app exit", 0x40000015 },
  82. { "predefined handle", 0x40000016 },
  83. { "was unlocked", 0x40000017 },
  84. { "service notification", 0x40000018 },
  85. { "was locked", 0x40000019 },
  86. { "log hard error", 0x4000001a },
  87. { "already win32", 0x4000001b },
  88. { "wx86 unsimulate", 0x4000001c },
  89. { "wx86 continue", 0x4000001d },
  90. { "wx86 single step", 0x4000001e },
  91. { "wx86 breakpoint", 0x4000001f },
  92. { "wx86 exception continue", 0x40000020 },
  93. { "wx86 exception lastchance", 0x40000021 },
  94. { "wx86 exception chain", 0x40000022 },
  95. { "image machine type mismatch exe", 0x40000023 },
  96. { "no yield performed", 0x40000024 },
  97. { "timer resume ignored", 0x40000025 },
  98. { "arbitration unhandled", 0x40000026 },
  99. { "cardbus not supported", 0x40000027 },
  100. { "wx86 createwx86tib", 0x40000028 },
  101. { "MP processor mismatch", 0x40000029 },
  102. { "hibernated", 0x4000002a },
  103. { "resume hibernation", 0x4000002b },
  104. { "wake system", 0x40000294 },
  105. { "ds shutting down", 0x40000370 },
  106. { "CTX cdm connect", 0x400a0004 },
  107. { "CTX cdm disconnect", 0x400a0005 },
  108. { "SXS release activation context", 0x4015000d },
  109. { "guard page violation", 0x80000001 },
  110. { "datatype misalignment", 0x80000002 },
  111. { "breakpoint", 0x80000003 },
  112. { "single step", 0x80000004 },
  113. { "buffer overflow", 0x80000005 },
  114. { "no more files", 0x80000006 },
  115. { "wake system debugger", 0x80000007 },
  116. { "handles closed", 0x8000000a },
  117. { "no inheritance", 0x8000000b },
  118. { "GUID substitution made", 0x8000000c },
  119. { "partial copy", 0x8000000d },
  120. { "device paper empty", 0x8000000e },
  121. { "device powered off", 0x8000000f },
  122. { "device off line", 0x80000010 },
  123. { "device busy", 0x80000011 },
  124. { "no more EAs", 0x80000012 },
  125. { "invalid EA name", 0x80000013 },
  126. { "ea list inconsistent", 0x80000014 },
  127. { "invalid ea flag", 0x80000015 },
  128. { "verify required", 0x80000016 },
  129. { "extraneous information", 0x80000017 },
  130. { "rxact commit necessary", 0x80000018 },
  131. { "no more entries", 0x8000001a },
  132. { "filemark detected", 0x8000001b },
  133. { "media changed", 0x8000001c },
  134. { "bus reset", 0x8000001d },
  135. { "end of media", 0x8000001e },
  136. { "beginning of media", 0x8000001f },
  137. { "media check", 0x80000020 },
  138. { "setmark detected", 0x80000021 },
  139. { "no data detected", 0x80000022 },
  140. { "redirector has open handles", 0x80000023 },
  141. { "server has open handles", 0x80000024 },
  142. { "already disconnected", 0x80000025 },
  143. { "longjump", 0x80000026 },
  144. { "cleaner cartridge installed", 0x80000027 },
  145. { "plugplay query vetoed", 0x80000028 },
  146. { "unwind consolidate", 0x80000029 },
  147. { "device requires cleaning", 0x80000288 },
  148. { "device door open", 0x80000289 },
  149. { "cluster node already up", 0x80130001 },
  150. { "cluster node already down", 0x80130002 },
  151. { "cluster network already online", 0x80130003 },
  152. { "cluster network already offline", 0x80130004 },
  153. { "cluster node already member", 0x80130005 },
  154. { "unsuccessful", 0xc0000001 },
  155. { "not implemented", 0xc0000002 },
  156. { "invalid info class", 0xc0000003 },
  157. { "info length mismatch", 0xc0000004 },
  158. { "access violation", 0xc0000005 },
  159. { "in page error", 0xc0000006 },
  160. { "pagefile quota", 0xc0000007 },
  161. { "invalid handle", 0xc0000008 },
  162. { "bad initial stack", 0xc0000009 },
  163. { "bad initial PC", 0xc000000a },
  164. { "invalid CID", 0xc000000b },
  165. { "timer not canceled", 0xc000000c },
  166. { "invalid parameter", 0xc000000d },
  167. { "no such device", 0xc000000e },
  168. { "no such file", 0xc000000f },
  169. { "invalid device request", 0xc0000010 },
  170. { "end of file", 0xc0000011 },
  171. { "wrong volume", 0xc0000012 },
  172. { "no media in device", 0xc0000013 },
  173. { "unrecognized media", 0xc0000014 },
  174. { "nonexistent sector", 0xc0000015 },
  175. { "more processing required", 0xc0000016 },
  176. { "no memory", 0xc0000017 },
  177. { "conflicting addresses", 0xc0000018 },
  178. { "not mapped view", 0xc0000019 },
  179. { "unable to free VM", 0xc000001a },
  180. { "unable to delete section", 0xc000001b },
  181. { "invalid system service", 0xc000001c },
  182. { "illegal instruction", 0xc000001d },
  183. { "invalid lock sequence", 0xc000001e },
  184. { "invalid view size", 0xc000001f },
  185. { "invalid file for section", 0xc0000020 },
  186. { "already committed", 0xc0000021 },
  187. { "permission denied", 0xc0000022 },
  188. //4APE { "access denied", 0xc0000022 },
  189. { "buffer too small", 0xc0000023 },
  190. { "object type mismatch", 0xc0000024 },
  191. { "noncontinuable exception", 0xc0000025 },
  192. { "invalid disposition", 0xc0000026 },
  193. { "unwind", 0xc0000027 },
  194. { "bad stack", 0xc0000028 },
  195. { "invalid unwind target", 0xc0000029 },
  196. { "not locked", 0xc000002a },
  197. { "parity error", 0xc000002b },
  198. { "unable to decommit VM", 0xc000002c },
  199. { "not committed", 0xc000002d },
  200. { "invalid port attributes", 0xc000002e },
  201. { "port message too long", 0xc000002f },
  202. { "invalid parameter mix", 0xc0000030 },
  203. { "invalid quota lower", 0xc0000031 },
  204. { "disk corrupt error", 0xc0000032 },
  205. { "file name syntax", 0xc0000033 },
  206. //4APE { "object name invalid", 0xc0000033 },
  207. { "does not exist", 0xc0000034 },
  208. //4APE { "object name not found", 0xc0000034 },
  209. { "create -- file exists", 0xc0000035 },
  210. //4APE { "object name collision", 0xc0000035 },
  211. { "port disconnected", 0xc0000037 },
  212. { "device already attached", 0xc0000038 },
  213. { "does not exist", 0xc0000039 },
  214. //4APE { "object path invalid", 0xc0000039 },
  215. { "does not exist", 0xc000003a },
  216. //4APE { "object path not found", 0xc000003a },
  217. { "file name syntax", 0xc000003b },
  218. //4APE { "object path syntax bad", 0xc000003b },
  219. { "data overrun", 0xc000003c },
  220. { "data late error", 0xc000003d },
  221. { "data error", 0xc000003e },
  222. { "crc error", 0xc000003f },
  223. { "section too big", 0xc0000040 },
  224. { "port connection refused", 0xc0000041 },
  225. { "invalid port handle", 0xc0000042 },
  226. { "sharing violation", 0xc0000043 },
  227. { "quota exceeded", 0xc0000044 },
  228. { "invalid page protection", 0xc0000045 },
  229. { "mutant not owned", 0xc0000046 },
  230. { "semaphore limit exceeded", 0xc0000047 },
  231. { "port already set", 0xc0000048 },
  232. { "section not image", 0xc0000049 },
  233. { "suspend count exceeded", 0xc000004a },
  234. { "thread is terminating", 0xc000004b },
  235. { "bad working set limit", 0xc000004c },
  236. { "incompatible file map", 0xc000004d },
  237. { "section protection", 0xc000004e },
  238. { "EAs not supported", 0xc000004f },
  239. { "EA too large", 0xc0000050 },
  240. { "nonexistent ea entry", 0xc0000051 },
  241. { "no EAs on file", 0xc0000052 },
  242. { "EA corrupt error", 0xc0000053 },
  243. { "file lock conflict", 0xc0000054 },
  244. { "lock not granted", 0xc0000055 },
  245. { "delete pending", 0xc0000056 },
  246. { "ctl file not supported", 0xc0000057 },
  247. { "unknown revision", 0xc0000058 },
  248. { "revision mismatch", 0xc0000059 },
  249. { "invalid owner", 0xc000005a },
  250. { "invalid primary group", 0xc000005b },
  251. { "no impersonation token", 0xc000005c },
  252. { "cant disable mandatory", 0xc000005d },
  253. { "no logon servers", 0xc000005e },
  254. { "no such logon session", 0xc000005f },
  255. { "no such privilege", 0xc0000060 },
  256. { "privilege not held", 0xc0000061 },
  257. { "invalid account name", 0xc0000062 },
  258. { "user exists", 0xc0000063 },
  259. { "no such user", 0xc0000064 },
  260. { "group exists", 0xc0000065 },
  261. { "no such group", 0xc0000066 },
  262. { "member in group", 0xc0000067 },
  263. { "member not in group", 0xc0000068 },
  264. { "last admin", 0xc0000069 },
  265. { "wrong password", 0xc000006a },
  266. { "ill-formed password", 0xc000006b },
  267. { "password restriction", 0xc000006c },
  268. { "logon failure", 0xc000006d },
  269. { "account restriction", 0xc000006e },
  270. { "invalid logon hours", 0xc000006f },
  271. { "invalid workstation", 0xc0000070 },
  272. { "password expired", 0xc0000071 },
  273. { "account disabled", 0xc0000072 },
  274. { "none mapped", 0xc0000073 },
  275. { "too many luids requested", 0xc0000074 },
  276. { "luids exhausted", 0xc0000075 },
  277. { "invalid sub authority", 0xc0000076 },
  278. { "invalid ACL", 0xc0000077 },
  279. { "invalid SID", 0xc0000078 },
  280. { "invalid security descr", 0xc0000079 },
  281. { "procedure not found", 0xc000007a },
  282. { "invalid image format", 0xc000007b },
  283. { "no token", 0xc000007c },
  284. { "bad inheritance ACL", 0xc000007d },
  285. { "range not locked", 0xc000007e },
  286. { "disk full", 0xc000007f },
  287. { "server disabled", 0xc0000080 },
  288. { "server not disabled", 0xc0000081 },
  289. { "too many guids requested", 0xc0000082 },
  290. { "guids exhausted", 0xc0000083 },
  291. { "invalid id authority", 0xc0000084 },
  292. { "agents exhausted", 0xc0000085 },
  293. { "invalid volume label", 0xc0000086 },
  294. { "section not extended", 0xc0000087 },
  295. { "not mapped data", 0xc0000088 },
  296. { "resource data not found", 0xc0000089 },
  297. { "resource type not found", 0xc000008a },
  298. { "resource name not found", 0xc000008b },
  299. { "array bounds exceeded", 0xc000008c },
  300. { "float denormal operand", 0xc000008d },
  301. { "float divide by zero", 0xc000008e },
  302. { "float inexact result", 0xc000008f },
  303. { "float invalid operation", 0xc0000090 },
  304. { "float overflow", 0xc0000091 },
  305. { "float stack check", 0xc0000092 },
  306. { "float underflow", 0xc0000093 },
  307. { "integer divide by zero", 0xc0000094 },
  308. { "integer overflow", 0xc0000095 },
  309. { "privileged instruction", 0xc0000096 },
  310. { "too many paging files", 0xc0000097 },
  311. { "file invalid", 0xc0000098 },
  312. { "allotted space exceeded", 0xc0000099 },
  313. { "insufficient resources", 0xc000009a },
  314. { "dfs exit path found", 0xc000009b },
  315. { "device data error", 0xc000009c },
  316. { "device not connected", 0xc000009d },
  317. { "device power failure", 0xc000009e },
  318. { "free VM not at base", 0xc000009f },
  319. { "memory not allocated", 0xc00000a0 },
  320. { "working set quota", 0xc00000a1 },
  321. { "media write protected", 0xc00000a2 },
  322. { "device not ready", 0xc00000a3 },
  323. { "invalid group attributes", 0xc00000a4 },
  324. { "bad impersonation level", 0xc00000a5 },
  325. { "cant open anonymous", 0xc00000a6 },
  326. { "bad validation class", 0xc00000a7 },
  327. { "bad token type", 0xc00000a8 },
  328. { "bad master boot record", 0xc00000a9 },
  329. { "instruction misalignment", 0xc00000aa },
  330. { "instance not available", 0xc00000ab },
  331. { "pipe not available", 0xc00000ac },
  332. { "invalid pipe state", 0xc00000ad },
  333. { "pipe busy", 0xc00000ae },
  334. { "illegal function", 0xc00000af },
  335. { "pipe disconnected", 0xc00000b0 },
  336. { "pipe closing", 0xc00000b1 },
  337. { "pipe connected", 0xc00000b2 },
  338. { "pipe listening", 0xc00000b3 },
  339. { "invalid read mode", 0xc00000b4 },
  340. { "IO timeout", 0xc00000b5 },
  341. { "file forced closed", 0xc00000b6 },
  342. { "profiling not started", 0xc00000b7 },
  343. { "profiling not stopped", 0xc00000b8 },
  344. { "could not interpret", 0xc00000b9 },
  345. { "file is a directory", 0xc00000ba },
  346. { "not supported", 0xc00000bb },
  347. { "remote not listening", 0xc00000bc },
  348. { "duplicate name", 0xc00000bd },
  349. { "bad network path", 0xc00000be },
  350. { "network busy", 0xc00000bf },
  351. { "device does not exist", 0xc00000c0 },
  352. { "too many commands", 0xc00000c1 },
  353. { "adapter hardware error", 0xc00000c2 },
  354. { "invalid network response", 0xc00000c3 },
  355. { "unexpected network error", 0xc00000c4 },
  356. { "bad remote adapter", 0xc00000c5 },
  357. { "print queue full", 0xc00000c6 },
  358. { "no spool space", 0xc00000c7 },
  359. { "print cancelled", 0xc00000c8 },
  360. { "network name deleted", 0xc00000c9 },
  361. { "network access denied", 0xc00000ca },
  362. { "bad device type", 0xc00000cb },
  363. { "bad network name", 0xc00000cc },
  364. { "too many names", 0xc00000cd },
  365. { "too many sessions", 0xc00000ce },
  366. { "sharing paused", 0xc00000cf },
  367. { "request not accepted", 0xc00000d0 },
  368. { "redirector paused", 0xc00000d1 },
  369. { "net write fault", 0xc00000d2 },
  370. { "profiling at limit", 0xc00000d3 },
  371. { "not same device", 0xc00000d4 },
  372. { "file renamed", 0xc00000d5 },
  373. { "virtual circuit closed", 0xc00000d6 },
  374. { "no security on object", 0xc00000d7 },
  375. { "cant wait", 0xc00000d8 },
  376. { "pipe empty", 0xc00000d9 },
  377. { "cant access domain info", 0xc00000da },
  378. { "cant terminate self", 0xc00000db },
  379. { "invalid server state", 0xc00000dc },
  380. { "invalid domain state", 0xc00000dd },
  381. { "invalid domain role", 0xc00000de },
  382. { "no such domain", 0xc00000df },
  383. { "domain exists", 0xc00000e0 },
  384. { "domain limit exceeded", 0xc00000e1 },
  385. { "oplock not granted", 0xc00000e2 },
  386. { "invalid oplock protocol", 0xc00000e3 },
  387. { "internal DB corruption", 0xc00000e4 },
  388. { "internal error", 0xc00000e5 },
  389. { "generic not mapped", 0xc00000e6 },
  390. { "bad descriptor format", 0xc00000e7 },
  391. { "invalid user buffer", 0xc00000e8 },
  392. { "unexpected io error", 0xc00000e9 },
  393. { "unexpected MM create err", 0xc00000ea },
  394. { "unexpected MM map error", 0xc00000eb },
  395. { "unexpected MM extend err", 0xc00000ec },
  396. { "not logon process", 0xc00000ed },
  397. { "logon session exists", 0xc00000ee },
  398. { "invalid parameter 1", 0xc00000ef },
  399. { "invalid parameter 2", 0xc00000f0 },
  400. { "invalid parameter 3", 0xc00000f1 },
  401. { "invalid parameter 4", 0xc00000f2 },
  402. { "invalid parameter 5", 0xc00000f3 },
  403. { "invalid parameter 6", 0xc00000f4 },
  404. { "invalid parameter 7", 0xc00000f5 },
  405. { "invalid parameter 8", 0xc00000f6 },
  406. { "invalid parameter 9", 0xc00000f7 },
  407. { "invalid parameter 10", 0xc00000f8 },
  408. { "invalid parameter 11", 0xc00000f9 },
  409. { "invalid parameter 12", 0xc00000fa },
  410. { "redirector not started", 0xc00000fb },
  411. { "redirector started", 0xc00000fc },
  412. { "stack overflow", 0xc00000fd },
  413. { "no such package", 0xc00000fe },
  414. { "bad function table", 0xc00000ff },
  415. { "variable not found", 0xc0000100 },
  416. { "directory not empty", 0xc0000101 },
  417. { "file corrupt error", 0xc0000102 },
  418. { "not a directory", 0xc0000103 },
  419. { "bad logon session state", 0xc0000104 },
  420. { "logon session collision", 0xc0000105 },
  421. { "name too long", 0xc0000106 },
  422. { "files open", 0xc0000107 },
  423. { "connection in use", 0xc0000108 },
  424. { "message not found", 0xc0000109 },
  425. { "process is terminating", 0xc000010a },
  426. { "invalid logon type", 0xc000010b },
  427. { "no guid translation", 0xc000010c },
  428. { "cannot impersonate", 0xc000010d },
  429. { "image already loaded", 0xc000010e },
  430. { "abios not present", 0xc000010f },
  431. { "abios lid not exist", 0xc0000110 },
  432. { "abios lid already owned", 0xc0000111 },
  433. { "abios not lid owner", 0xc0000112 },
  434. { "abios invalid command", 0xc0000113 },
  435. { "abios invalid lid", 0xc0000114 },
  436. { "abios selector not available", 0xc0000115 },
  437. { "abios invalid selector", 0xc0000116 },
  438. { "no LDT", 0xc0000117 },
  439. { "invalid LDT size", 0xc0000118 },
  440. { "invalid LDT offset", 0xc0000119 },
  441. { "invalid LDT descriptor", 0xc000011a },
  442. { "invalid image NE format", 0xc000011b },
  443. { "rxact invalid state", 0xc000011c },
  444. { "rxact commit failure", 0xc000011d },
  445. { "mapped file size zero", 0xc000011e },
  446. { "too many opened files", 0xc000011f },
  447. { "cancelled", 0xc0000120 },
  448. { "permission denied", 0xc0000121 },
  449. // { "cannot delete", 0xc0000121 },
  450. { "invalid computer name", 0xc0000122 },
  451. { "file deleted", 0xc0000123 },
  452. { "special account", 0xc0000124 },
  453. { "special group", 0xc0000125 },
  454. { "special user", 0xc0000126 },
  455. { "members primary group", 0xc0000127 },
  456. { "file closed", 0xc0000128 },
  457. { "too many threads", 0xc0000129 },
  458. { "thread not in process", 0xc000012a },
  459. { "token already in use", 0xc000012b },
  460. { "pagefile quota exceeded", 0xc000012c },
  461. { "commitment limit", 0xc000012d },
  462. { "invalid image le format", 0xc000012e },
  463. { "invalid image not MZ", 0xc000012f },
  464. { "invalid image protect", 0xc0000130 },
  465. { "invalid image win 16", 0xc0000131 },
  466. { "logon server conflict", 0xc0000132 },
  467. { "time difference at DC", 0xc0000133 },
  468. { "synchronization required", 0xc0000134 },
  469. { "DLL not found", 0xc0000135 },
  470. { "open failed", 0xc0000136 },
  471. { "IO privilege failed", 0xc0000137 },
  472. { "ordinal not found", 0xc0000138 },
  473. { "entrypoint not found", 0xc0000139 },
  474. { "control-C exit", 0xc000013a },
  475. { "local disconnect", 0xc000013b },
  476. { "remote disconnect", 0xc000013c },
  477. { "remote resources", 0xc000013d },
  478. { "link failed", 0xc000013e },
  479. { "link timeout", 0xc000013f },
  480. { "invalid connection", 0xc0000140 },
  481. { "invalid address", 0xc0000141 },
  482. { "DLL init failed", 0xc0000142 },
  483. { "missing systemfile", 0xc0000143 },
  484. { "unhandled exception", 0xc0000144 },
  485. { "application init failure", 0xc0000145 },
  486. { "pagefile create failed", 0xc0000146 },
  487. { "no pagefile", 0xc0000147 },
  488. { "invalid level", 0xc0000148 },
  489. { "wrong password core", 0xc0000149 },
  490. { "illegal float context", 0xc000014a },
  491. { "pipe broken", 0xc000014b },
  492. { "registry corrupt", 0xc000014c },
  493. { "registry io failed", 0xc000014d },
  494. { "no event pair", 0xc000014e },
  495. { "unrecognized volume", 0xc000014f },
  496. { "serial no device inited", 0xc0000150 },
  497. { "no such alias", 0xc0000151 },
  498. { "member not in alias", 0xc0000152 },
  499. { "member in alias", 0xc0000153 },
  500. { "alias exists", 0xc0000154 },
  501. { "logon not granted", 0xc0000155 },
  502. { "too many secrets", 0xc0000156 },
  503. { "secret too long", 0xc0000157 },
  504. { "internal db error", 0xc0000158 },
  505. { "fullscreen mode", 0xc0000159 },
  506. { "too many context IDs", 0xc000015a },
  507. { "logon type not granted", 0xc000015b },
  508. { "not registry file", 0xc000015c },
  509. { "NT cross encryption required", 0xc000015d },
  510. { "domain ctrlr config error", 0xc000015e },
  511. { "ft missing member", 0xc000015f },
  512. { "ill formed service entry", 0xc0000160 },
  513. { "illegal character", 0xc0000161 },
  514. { "unmappable character", 0xc0000162 },
  515. { "undefined character", 0xc0000163 },
  516. { "floppy volume", 0xc0000164 },
  517. { "floppy id mark not found", 0xc0000165 },
  518. { "floppy wrong cylinder", 0xc0000166 },
  519. { "floppy unknown error", 0xc0000167 },
  520. { "floppy bad registers", 0xc0000168 },
  521. { "disk recalibrate failed", 0xc0000169 },
  522. { "disk operation failed", 0xc000016a },
  523. { "disk reset failed", 0xc000016b },
  524. { "shared IRQ busy", 0xc000016c },
  525. { "FT orphaning", 0xc000016d },
  526. { "BIOS failed to connect interrupt", 0xc000016e },
  527. { "partition failure", 0xc0000172 },
  528. { "invalid block length", 0xc0000173 },
  529. { "device not partitioned", 0xc0000174 },
  530. { "unable to lock media", 0xc0000175 },
  531. { "unable to unload media", 0xc0000176 },
  532. { "eom overflow", 0xc0000177 },
  533. { "no media", 0xc0000178 },
  534. { "no such member", 0xc000017a },
  535. { "invalid member", 0xc000017b },
  536. { "key deleted", 0xc000017c },
  537. { "no log space", 0xc000017d },
  538. { "too many SIDs", 0xc000017e },
  539. { "LM cross encryption required", 0xc000017f },
  540. { "key has children", 0xc0000180 },
  541. { "child must be volatile", 0xc0000181 },
  542. { "device configuration error", 0xc0000182 },
  543. { "driver internal error", 0xc0000183 },
  544. { "invalid device state", 0xc0000184 },
  545. { "io device error", 0xc0000185 },
  546. { "device protocol error", 0xc0000186 },
  547. { "backup controller", 0xc0000187 },
  548. { "log file full", 0xc0000188 },
  549. { "too late", 0xc0000189 },
  550. { "no trust LSA secret", 0xc000018a },
  551. { "no trust SAM account", 0xc000018b },
  552. { "trusted domain failure", 0xc000018c },
  553. { "trusted relationship failure", 0xc000018d },
  554. { "eventlog file corrupt", 0xc000018e },
  555. { "eventlog cant start", 0xc000018f },
  556. { "trust failure", 0xc0000190 },
  557. { "mutant limit exceeded", 0xc0000191 },
  558. { "netlogon not started", 0xc0000192 },
  559. { "account expired", 0xc0000193 },
  560. { "possible deadlock", 0xc0000194 },
  561. { "network credential conflict", 0xc0000195 },
  562. { "remote session limit", 0xc0000196 },
  563. { "eventlog file changed", 0xc0000197 },
  564. { "nologon interdomain trust account", 0xc0000198 },
  565. { "nologon workstation trust account", 0xc0000199 },
  566. { "nologon server trust account", 0xc000019a },
  567. { "domain trust inconsistent", 0xc000019b },
  568. { "fs driver required", 0xc000019c },
  569. { "no user session key", 0xc0000202 },
  570. { "user session deleted", 0xc0000203 },
  571. { "resource lang not found", 0xc0000204 },
  572. { "insuff server resources", 0xc0000205 },
  573. { "invalid buffer size", 0xc0000206 },
  574. { "invalid address component", 0xc0000207 },
  575. { "invalid address wildcard", 0xc0000208 },
  576. { "too many addresses", 0xc0000209 },
  577. { "address already exists", 0xc000020a },
  578. { "address closed", 0xc000020b },
  579. { "connection disconnected", 0xc000020c },
  580. { "connection reset", 0xc000020d },
  581. { "too many nodes", 0xc000020e },
  582. { "transaction aborted", 0xc000020f },
  583. { "transaction timed out", 0xc0000210 },
  584. { "transaction no release", 0xc0000211 },
  585. { "transaction no match", 0xc0000212 },
  586. { "transaction responded", 0xc0000213 },
  587. { "transaction invalid id", 0xc0000214 },
  588. { "transaction invalid type", 0xc0000215 },
  589. { "not server session", 0xc0000216 },
  590. { "not client session", 0xc0000217 },
  591. { "cannot load registry file", 0xc0000218 },
  592. { "debug attach failed", 0xc0000219 },
  593. { "system process terminated", 0xc000021a },
  594. { "data not accepted", 0xc000021b },
  595. { "no browser servers found", 0xc000021c },
  596. { "VDM hard error", 0xc000021d },
  597. { "driver cancel timeout", 0xc000021e },
  598. { "reply message mismatch", 0xc000021f },
  599. { "mapped alignment", 0xc0000220 },
  600. { "image checksum mismatch", 0xc0000221 },
  601. { "lost writebehind data", 0xc0000222 },
  602. { "client server parameters invalid", 0xc0000223 },
  603. { "password must change", 0xc0000224 },
  604. { "not found", 0xc0000225 },
  605. { "not tiny stream", 0xc0000226 },
  606. { "recovery failure", 0xc0000227 },
  607. { "stack overflow read", 0xc0000228 },
  608. { "fail check", 0xc0000229 },
  609. { "duplicate objectid", 0xc000022a },
  610. { "objectid exists", 0xc000022b },
  611. { "convert to large", 0xc000022c },
  612. { "retry", 0xc000022d },
  613. { "found out of scope", 0xc000022e },
  614. { "allocate bucket", 0xc000022f },
  615. { "propset not found", 0xc0000230 },
  616. { "marshall overflow", 0xc0000231 },
  617. { "invalid variant", 0xc0000232 },
  618. { "domain controller not found", 0xc0000233 },
  619. { "account locked out", 0xc0000234 },
  620. { "handle not closable", 0xc0000235 },
  621. { "connection refused", 0xc0000236 },
  622. { "graceful disconnect", 0xc0000237 },
  623. { "address already associated", 0xc0000238 },
  624. { "address not associated", 0xc0000239 },
  625. { "connection invalid", 0xc000023a },
  626. { "connection active", 0xc000023b },
  627. { "network unreachable", 0xc000023c },
  628. { "host unreachable", 0xc000023d },
  629. { "protocol unreachable", 0xc000023e },
  630. { "port unreachable", 0xc000023f },
  631. { "request aborted", 0xc0000240 },
  632. { "connection aborted", 0xc0000241 },
  633. { "bad compression buffer", 0xc0000242 },
  634. { "user mapped file", 0xc0000243 },
  635. { "audit failed", 0xc0000244 },
  636. { "timer resolution not set", 0xc0000245 },
  637. { "connection count limit", 0xc0000246 },
  638. { "login time restriction", 0xc0000247 },
  639. { "login wkstation restriction", 0xc0000248 },
  640. { "image mp up mismatch", 0xc0000249 },
  641. { "insufficient logon info", 0xc0000250 },
  642. { "bad DLL entrypoint", 0xc0000251 },
  643. { "bad service entrypoint", 0xc0000252 },
  644. { "lpc reply lost", 0xc0000253 },
  645. { "IP address conflict1", 0xc0000254 },
  646. { "IP address conflict2", 0xc0000255 },
  647. { "registry quota limit", 0xc0000256 },
  648. { "path not covered", 0xc0000257 },
  649. { "no callback active", 0xc0000258 },
  650. { "license quota exceeded", 0xc0000259 },
  651. { "password too short", 0xc000025a },
  652. { "password too recent", 0xc000025b },
  653. { "password history conflict", 0xc000025c },
  654. { "plugplay no device", 0xc000025e },
  655. { "unsupported compression", 0xc000025f },
  656. { "invalid hw profile", 0xc0000260 },
  657. { "invalid plugplay device path", 0xc0000261 },
  658. { "driver ordinal not found", 0xc0000262 },
  659. { "driver entrypoint not found", 0xc0000263 },
  660. { "resource not owned", 0xc0000264 },
  661. { "too many links", 0xc0000265 },
  662. { "quota list inconsistent", 0xc0000266 },
  663. { "file is offline", 0xc0000267 },
  664. { "evaluation expiration", 0xc0000268 },
  665. { "illegal DLL relocation", 0xc0000269 },
  666. { "license violation", 0xc000026a },
  667. { "DLL init failed logoff", 0xc000026b },
  668. { "driver unable to load", 0xc000026c },
  669. { "dfs unavailable", 0xc000026d },
  670. { "volume dismounted", 0xc000026e },
  671. { "wx86 internal error", 0xc000026f },
  672. { "wx86 float stack check", 0xc0000270 },
  673. { "validate continue", 0xc0000271 },
  674. { "no match", 0xc0000272 },
  675. { "no more matches", 0xc0000273 },
  676. { "not a reparse point", 0xc0000275 },
  677. { "IO reparse tag invalid", 0xc0000276 },
  678. { "IO reparse tag mismatch", 0xc0000277 },
  679. { "IO reparse data invalid", 0xc0000278 },
  680. { "IO reparse tag not handled", 0xc0000279 },
  681. { "reparse point not resolved", 0xc0000280 },
  682. { "directory is a reparse point", 0xc0000281 },
  683. { "range list conflict", 0xc0000282 },
  684. { "source element empty", 0xc0000283 },
  685. { "destination element full", 0xc0000284 },
  686. { "illegal element address", 0xc0000285 },
  687. { "magazine not present", 0xc0000286 },
  688. { "reinitialization needed", 0xc0000287 },
  689. { "encryption failed", 0xc000028a },
  690. { "decryption failed", 0xc000028b },
  691. { "range not found", 0xc000028c },
  692. { "no recovery policy", 0xc000028d },
  693. { "no EFS", 0xc000028e },
  694. { "wrong EFS", 0xc000028f },
  695. { "no user keys", 0xc0000290 },
  696. { "file not encrypted", 0xc0000291 },
  697. { "not export format", 0xc0000292 },
  698. { "file encrypted", 0xc0000293 },
  699. { "WMI guid not found", 0xc0000295 },
  700. { "WMI instance not found", 0xc0000296 },
  701. { "WMI itemid not found", 0xc0000297 },
  702. { "WMI try again", 0xc0000298 },
  703. { "shared policy", 0xc0000299 },
  704. { "policy object not found", 0xc000029a },
  705. { "policy only in DS", 0xc000029b },
  706. { "volume not upgraded", 0xc000029c },
  707. { "remote storage not active", 0xc000029d },
  708. { "remote storage media error", 0xc000029e },
  709. { "no tracking service", 0xc000029f },
  710. { "server SID mismatch", 0xc00002a0 },
  711. { "DS no attribute or value", 0xc00002a1 },
  712. { "DS invalid attribute syntax", 0xc00002a2 },
  713. { "DS attribute type undefined", 0xc00002a3 },
  714. { "DS attribute or value exists", 0xc00002a4 },
  715. { "DS busy", 0xc00002a5 },
  716. { "DS unavailable", 0xc00002a6 },
  717. { "DS no RIDs allocated", 0xc00002a7 },
  718. { "DS no more RIDs", 0xc00002a8 },
  719. { "DS incorrect role owner", 0xc00002a9 },
  720. { "DS ridmgr init error", 0xc00002aa },
  721. { "DS obj class violation", 0xc00002ab },
  722. { "DS cant on non leaf", 0xc00002ac },
  723. { "DS cant on RDN", 0xc00002ad },
  724. { "DS cant mod obj class", 0xc00002ae },
  725. { "DS cross dom move failed", 0xc00002af },
  726. { "DS GC not available", 0xc00002b0 },
  727. { "directory service required", 0xc00002b1 },
  728. { "reparse attribute conflict", 0xc00002b2 },
  729. { "cant enable deny only", 0xc00002b3 },
  730. { "float multiple faults", 0xc00002b4 },
  731. { "float multiple traps", 0xc00002b5 },
  732. { "device removed", 0xc00002b6 },
  733. { "journal delete in progress", 0xc00002b7 },
  734. { "journal not active", 0xc00002b8 },
  735. { "nointerface", 0xc00002b9 },
  736. { "DS admin limit exceeded", 0xc00002c1 },
  737. { "driver failed sleep", 0xc00002c2 },
  738. { "mutual authentication failed", 0xc00002c3 },
  739. { "corrupt system file", 0xc00002c4 },
  740. { "datatype misalignment error", 0xc00002c5 },
  741. { "WMI read only", 0xc00002c6 },
  742. { "WMI set failure", 0xc00002c7 },
  743. { "commitment minimum", 0xc00002c8 },
  744. { "reg NAT consumption", 0xc00002c9 },
  745. { "transport full", 0xc00002ca },
  746. { "DS SAM init failure", 0xc00002cb },
  747. { "only if connected", 0xc00002cc },
  748. { "DS sensitive group violation", 0xc00002cd },
  749. { "PNP restart enumeration", 0xc00002ce },
  750. { "journal entry deleted", 0xc00002cf },
  751. { "DS cant mod primarygroupid", 0xc00002d0 },
  752. { "system image bad signature", 0xc00002d1 },
  753. { "PNP reboot required", 0xc00002d2 },
  754. { "power state invalid", 0xc00002d3 },
  755. { "DS invalid group type", 0xc00002d4 },
  756. { "DS no nest globalgroup in mixeddomain", 0xc00002d5 },
  757. { "DS no nest localgroup in mixeddomain", 0xc00002d6 },
  758. { "DS global can't have local member", 0xc00002d7 },
  759. { "DS global can't have universal member", 0xc00002d8 },
  760. { "DS universal can't have local member", 0xc00002d9 },
  761. { "DS global can't have crossdomain member", 0xc00002da },
  762. { "DS local can't have crossdomain local member",0xc00002db },
  763. { "DS have primary members", 0xc00002dc },
  764. { "WMI not supported", 0xc00002dd },
  765. { "insufficient power", 0xc00002de },
  766. { "SAM need bootkey password", 0xc00002df },
  767. { "SAM need bootkey floppy", 0xc00002e0 },
  768. { "DS cant start", 0xc00002e1 },
  769. { "DS init failure", 0xc00002e2 },
  770. { "SAM init failure", 0xc00002e3 },
  771. { "DS gc required", 0xc00002e4 },
  772. { "DS local member of local only", 0xc00002e5 },
  773. { "DS no FPO in universal groups", 0xc00002e6 },
  774. { "DS machine account quota exceeded", 0xc00002e7 },
  775. { "multiple fault violation", 0xc00002e8 },
  776. { "current domain not allowed", 0xc00002e9 },
  777. { "cannot make", 0xc00002ea },
  778. { "system shutdown", 0xc00002eb },
  779. { "DS init failure console", 0xc00002ec },
  780. { "DS sam init failure console", 0xc00002ed },
  781. { "unfinished context deleted", 0xc00002ee },
  782. { "no TGT reply", 0xc00002ef },
  783. { "objectid not found", 0xc00002f0 },
  784. { "no IP addresses", 0xc00002f1 },
  785. { "wrong credential handle", 0xc00002f2 },
  786. { "crypto system invalid", 0xc00002f3 },
  787. { "max referrals exceeded", 0xc00002f4 },
  788. { "must be kdc", 0xc00002f5 },
  789. { "strong crypto not supported", 0xc00002f6 },
  790. { "too many principals", 0xc00002f7 },
  791. { "no PA data", 0xc00002f8 },
  792. { "pkinit name mismatch", 0xc00002f9 },
  793. { "smartcard logon required", 0xc00002fa },
  794. { "KDC invalid request", 0xc00002fb },
  795. { "KDC unable to refer", 0xc00002fc },
  796. { "KDC unknown etype", 0xc00002fd },
  797. { "shutdown in progress", 0xc00002fe },
  798. { "server shutdown in progress", 0xc00002ff },
  799. { "not supported on sbs", 0xc0000300 },
  800. { "WMI GUID disconnected", 0xc0000301 },
  801. { "WMI already disabled", 0xc0000302 },
  802. { "WMI already enabled", 0xc0000303 },
  803. { "mft too fragmented", 0xc0000304 },
  804. { "copy protection failure", 0xc0000305 },
  805. { "CSS authentication failure", 0xc0000306 },
  806. { "CSS key not present", 0xc0000307 },
  807. { "CSS key not established", 0xc0000308 },
  808. { "CSS scrambled sector", 0xc0000309 },
  809. { "CSS region mismatch", 0xc000030a },
  810. { "CSS resets exhausted", 0xc000030b },
  811. { "pkinit failure", 0xc0000320 },
  812. { "smartcard subsystem failure", 0xc0000321 },
  813. { "no kerb key", 0xc0000322 },
  814. { "host down", 0xc0000350 },
  815. { "unsupported preauth", 0xc0000351 },
  816. { "EFS alg blob too big", 0xc0000352 },
  817. { "port not set", 0xc0000353 },
  818. { "debugger inactive", 0xc0000354 },
  819. { "ds version check failure", 0xc0000355 },
  820. { "auditing disabled", 0xc0000356 },
  821. { "prent4 machine account", 0xc0000357 },
  822. { "DS AG can't have universal member", 0xc0000358 },
  823. { "invalid image Win 32", 0xc0000359 },
  824. { "invalid image Win 64", 0xc000035a },
  825. { "bad bindings", 0xc000035b },
  826. { "network session expired", 0xc000035c },
  827. { "apphelp block", 0xc000035d },
  828. { "all SIDs filtered", 0xc000035e },
  829. { "not safe mode driver", 0xc000035f },
  830. { "access disabled by policy default", 0xc0000361 },
  831. { "access disabled by policy path", 0xc0000362 },
  832. { "access disabled by policy publisher", 0xc0000363 },
  833. { "access disabled by policy other", 0xc0000364 },
  834. { "failed driver entry", 0xc0000365 },
  835. { "device enumeration error", 0xc0000366 },
  836. { "mount point not resolved", 0xc0000368 },
  837. { "invalid device object parameter", 0xc0000369 },
  838. { "mca occured", 0xc000036a },
  839. { "driver blocked critical", 0xc000036b },
  840. { "driver blocked", 0xc000036c },
  841. { "driver database error", 0xc000036d },
  842. { "system hive too large", 0xc000036e },
  843. { "invalid import of non DLL", 0xc000036f },
  844. { "smartcard wrong pin", 0xc0000380 },
  845. { "smartcard card blocked", 0xc0000381 },
  846. { "smartcard card not authenticated", 0xc0000382 },
  847. { "smartcard no card", 0xc0000383 },
  848. { "smartcard no key container", 0xc0000384 },
  849. { "smartcard no certificate", 0xc0000385 },
  850. { "smartcard no keyset", 0xc0000386 },
  851. { "smartcard io error", 0xc0000387 },
  852. { "downgrade detected", 0xc0000388 },
  853. { "smartcard cert revoked", 0xc0000389 },
  854. { "issuing CA untrusted", 0xc000038a },
  855. { "revocation offline c", 0xc000038b },
  856. { "pkinit client failure", 0xc000038c },
  857. { "smartcard cert expired", 0xc000038d },
  858. { "driver failed prior unload", 0xc000038e },
  859. { "wow assertion", 0xc0009898 },
  860. { "PNP bad MPS table", 0xc0040035 },
  861. { "PNP translation failed", 0xc0040036 },
  862. { "PNP IRQ translation failed", 0xc0040037 },
  863. { "CTX winstation name invalid", 0xc00a0001 },
  864. { "CTX invalid PD", 0xc00a0002 },
  865. { "CTX PD not found", 0xc00a0003 },
  866. { "CTX close pending", 0xc00a0006 },
  867. { "CTX no outbuf", 0xc00a0007 },
  868. { "CTX modem inf not found", 0xc00a0008 },
  869. { "CTX invalid modemname", 0xc00a0009 },
  870. { "CTX response error", 0xc00a000a },
  871. { "CTX modem response timeout", 0xc00a000b },
  872. { "CTX modem response no carrier", 0xc00a000c },
  873. { "CTX modem response no dialtone", 0xc00a000d },
  874. { "CTX modem response busy", 0xc00a000e },
  875. { "CTX modem response voice", 0xc00a000f },
  876. { "CTX TD error", 0xc00a0010 },
  877. { "CTX license client invalid", 0xc00a0012 },
  878. { "CTX license not available", 0xc00a0013 },
  879. { "CTX license expired", 0xc00a0014 },
  880. { "CTX winstation not found", 0xc00a0015 },
  881. { "CTX winstation name collision", 0xc00a0016 },
  882. { "CTX winstation busy", 0xc00a0017 },
  883. { "CTX bad video mode", 0xc00a0018 },
  884. { "CTX graphics invalid", 0xc00a0022 },
  885. { "CTX not console", 0xc00a0024 },
  886. { "CTX client query timeout", 0xc00a0026 },
  887. { "CTX console disconnect", 0xc00a0027 },
  888. { "CTX console connect", 0xc00a0028 },
  889. { "CTX shadow denied", 0xc00a002a },
  890. { "CTX winstation access denied", 0xc00a002b },
  891. { "CTX invalid wd", 0xc00a002e },
  892. { "CTX WD not found", 0xc00a002f },
  893. { "CTX shadow invalid", 0xc00a0030 },
  894. { "CTX shadow disabled", 0xc00a0031 },
  895. { "RDP protocol error", 0xc00a0032 },
  896. { "CTX client license not set", 0xc00a0033 },
  897. { "CTX client license in use", 0xc00a0034 },
  898. { "CTX shadow ended by mode change", 0xc00a0035 },
  899. { "CTX shadow not running", 0xc00a0036 },
  900. { "cluster invalid node", 0xc0130001 },
  901. { "cluster node exists", 0xc0130002 },
  902. { "cluster join in progress", 0xc0130003 },
  903. { "cluster node not found", 0xc0130004 },
  904. { "cluster local node not found", 0xc0130005 },
  905. { "cluster network exists", 0xc0130006 },
  906. { "cluster network not found", 0xc0130007 },
  907. { "cluster netinterface exists", 0xc0130008 },
  908. { "cluster netinterface not found", 0xc0130009 },
  909. { "cluster invalid request", 0xc013000a },
  910. { "cluster invalid network provider", 0xc013000b },
  911. { "cluster node down", 0xc013000c },
  912. { "cluster node unreachable", 0xc013000d },
  913. { "cluster node not member", 0xc013000e },
  914. { "cluster join not in progress", 0xc013000f },
  915. { "cluster invalid network", 0xc0130010 },
  916. { "cluster no net adapters", 0xc0130011 },
  917. { "cluster node up", 0xc0130012 },
  918. { "cluster node paused", 0xc0130013 },
  919. { "cluster node not paused", 0xc0130014 },
  920. { "cluster no security context", 0xc0130015 },
  921. { "cluster network not internal", 0xc0130016 },
  922. { "cluster poisoned", 0xc0130017 },
  923. { "ACPI invalid opcode", 0xc0140001 },
  924. { "ACPI stack overflow", 0xc0140002 },
  925. { "ACPI assert failed", 0xc0140003 },
  926. { "ACPI invalid index", 0xc0140004 },
  927. { "ACPI invalid argument", 0xc0140005 },
  928. { "ACPI fatal", 0xc0140006 },
  929. { "ACPI invalid supername", 0xc0140007 },
  930. { "ACPI invalid argtype", 0xc0140008 },
  931. { "ACPI invalid objtype", 0xc0140009 },
  932. { "ACPI invalid targettype", 0xc014000a },
  933. { "ACPI incorrect argument count", 0xc014000b },
  934. { "ACPI address not mapped", 0xc014000c },
  935. { "ACPI invalid eventtype", 0xc014000d },
  936. { "ACPI handler collision", 0xc014000e },
  937. { "ACPI invalid data", 0xc014000f },
  938. { "ACPI invalid region", 0xc0140010 },
  939. { "ACPI invalid access size", 0xc0140011 },
  940. { "ACPI acquire global lock", 0xc0140012 },
  941. { "ACPI already initialized", 0xc0140013 },
  942. { "ACPI not initialized", 0xc0140014 },
  943. { "ACPI invalid mutex level", 0xc0140015 },
  944. { "ACPI mutex not owned", 0xc0140016 },
  945. { "ACPI mutex not owner", 0xc0140017 },
  946. { "ACPI rs access", 0xc0140018 },
  947. { "ACPI invalid table", 0xc0140019 },
  948. { "ACPI reg handler failed", 0xc0140020 },
  949. { "ACPI power request failed", 0xc0140021 },
  950. { "SXS section not found", 0xc0150001 },
  951. { "SXS cant gen actctx", 0xc0150002 },
  952. { "SXS invalid actctx data format", 0xc0150003 },
  953. { "SXS assembly not found", 0xc0150004 },
  954. { "SXS manifest format error", 0xc0150005 },
  955. { "SXS manifest parse error", 0xc0150006 },
  956. { "SXS activation context disabled", 0xc0150007 },
  957. { "SXS key not found", 0xc0150008 },
  958. { "SXS version conflict", 0xc0150009 },
  959. { "SXS wrong section type", 0xc015000a },
  960. { "SXS thread queries disabled", 0xc015000b },
  961. { "SXS assembly missing", 0xc015000c },
  962. { "SXS process default already set", 0xc015000e },
  963. { "SXS early deactivation", 0xc015000f },
  964. { "SXS invalid deactivation", 0xc0150010 },
  965. { "SXS multiple deactivation", 0xc0150011 },
  966. { "SXS system default activation context empty",0xc0150012 },
  967. { "SXS process termination requested", 0xc0150013 },
  968. };
  969. char *
  970. nterrstr(uint err)
  971. {
  972. int i, f, match;
  973. char *why, *facility, tmp[32];
  974. static char buf[0xff];
  975. f = (err >> 16) & 0x7ff;
  976. switch(f){
  977. case 0:
  978. facility = "";
  979. break;
  980. case 1:
  981. facility = " (hardware), ";
  982. break;
  983. case 2:
  984. facility = " (dispatch), ";
  985. break;
  986. case 3:
  987. facility = " (storage), ";
  988. break;
  989. case 4:
  990. facility = " (itf), ";
  991. break;
  992. case 7:
  993. facility = " (win32), ";
  994. break;
  995. case 8:
  996. facility = " (windows), ";
  997. break;
  998. case 0x0a:
  999. facility = " (control), ";
  1000. break;
  1001. default:
  1002. snprint(tmp, sizeof(tmp), " (facility=%d), ", f);
  1003. facility = tmp;
  1004. break;
  1005. }
  1006. match = -1;
  1007. for(i = 0; i < nelem(NTerrs); i++)
  1008. if(NTerrs[i].err == err)
  1009. match = i;
  1010. why = "";
  1011. if(!(err & 0x80000000))
  1012. why = "warning, ";
  1013. if(match != -1)
  1014. snprint(buf, sizeof buf, "%s%s%s", why, facility,
  1015. NTerrs[match].msg);
  1016. else
  1017. snprint(buf, sizeof buf, "%s%s%d/0x%x - unknown NT error",
  1018. why, facility, err, err);
  1019. return buf;
  1020. }