Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

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