1 // Copyright (c) 2015 Google Inc.
2 // All rights reserved.
3 //
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are
6 // met:
7 //
8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above
11 // copyright notice, this list of conditions and the following disclaimer
12 // in the documentation and/or other materials provided with the
13 // distribution.
14 // * Neither the name of Google Inc. nor the names of its
15 // contributors may be used to endorse or promote products derived from
16 // this software without specific prior written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 // ntstatus_reason_win.h: Windows NTSTATUS code to string.
31 //
32 // Provides a means to convert NTSTATUS codes to strings.
33 //
34 // Author: Ben Wagner
35
36 #include <string>
37
38 #include "common/stdio_wrapper.h"
39 #include "google_breakpad/common/breakpad_types.h"
40 #include "google_breakpad/common/minidump_exception_win32.h"
41 #include "processor/symbolic_constants_win.h"
42
43 namespace google_breakpad {
44
NTStatusToString(uint32_t ntstatus)45 string NTStatusToString(uint32_t ntstatus) {
46 string reason;
47 // The content of this switch was created from ntstatus.h in the 8.1 SDK with
48 //
49 // egrep '#define [A-Z_0-9]+\s+\(\(NTSTATUS\)0xC[0-9A-F]+L\)' ntstatus.h
50 // | tr -d '\r'
51 // | sed -r 's@#define ([A-Z_0-9]+)\s+\(\(NTSTATUS\)(0xC[0-9A-F]+)L\).*@\2 \1@'
52 // | sort
53 // | sed -r 's@(0xC[0-9A-F]+) ([A-Z_0-9]+)@ case MD_NTSTATUS_WIN_\2:\n reason = "\2";\n break;@'
54 //
55 // With easy copy to clipboard with
56 // | xclip -selection c # on linux
57 // | clip # on windows
58 // | pbcopy # on mac
59 //
60 // and then the default case added.
61 switch (ntstatus) {
62 case MD_NTSTATUS_WIN_STATUS_UNSUCCESSFUL:
63 reason = "STATUS_UNSUCCESSFUL";
64 break;
65 case MD_NTSTATUS_WIN_STATUS_NOT_IMPLEMENTED:
66 reason = "STATUS_NOT_IMPLEMENTED";
67 break;
68 case MD_NTSTATUS_WIN_STATUS_INVALID_INFO_CLASS:
69 reason = "STATUS_INVALID_INFO_CLASS";
70 break;
71 case MD_NTSTATUS_WIN_STATUS_INFO_LENGTH_MISMATCH:
72 reason = "STATUS_INFO_LENGTH_MISMATCH";
73 break;
74 case MD_NTSTATUS_WIN_STATUS_ACCESS_VIOLATION:
75 reason = "STATUS_ACCESS_VIOLATION";
76 break;
77 case MD_NTSTATUS_WIN_STATUS_IN_PAGE_ERROR:
78 reason = "STATUS_IN_PAGE_ERROR";
79 break;
80 case MD_NTSTATUS_WIN_STATUS_PAGEFILE_QUOTA:
81 reason = "STATUS_PAGEFILE_QUOTA";
82 break;
83 case MD_NTSTATUS_WIN_STATUS_INVALID_HANDLE:
84 reason = "STATUS_INVALID_HANDLE";
85 break;
86 case MD_NTSTATUS_WIN_STATUS_BAD_INITIAL_STACK:
87 reason = "STATUS_BAD_INITIAL_STACK";
88 break;
89 case MD_NTSTATUS_WIN_STATUS_BAD_INITIAL_PC:
90 reason = "STATUS_BAD_INITIAL_PC";
91 break;
92 case MD_NTSTATUS_WIN_STATUS_INVALID_CID:
93 reason = "STATUS_INVALID_CID";
94 break;
95 case MD_NTSTATUS_WIN_STATUS_TIMER_NOT_CANCELED:
96 reason = "STATUS_TIMER_NOT_CANCELED";
97 break;
98 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER:
99 reason = "STATUS_INVALID_PARAMETER";
100 break;
101 case MD_NTSTATUS_WIN_STATUS_NO_SUCH_DEVICE:
102 reason = "STATUS_NO_SUCH_DEVICE";
103 break;
104 case MD_NTSTATUS_WIN_STATUS_NO_SUCH_FILE:
105 reason = "STATUS_NO_SUCH_FILE";
106 break;
107 case MD_NTSTATUS_WIN_STATUS_INVALID_DEVICE_REQUEST:
108 reason = "STATUS_INVALID_DEVICE_REQUEST";
109 break;
110 case MD_NTSTATUS_WIN_STATUS_END_OF_FILE:
111 reason = "STATUS_END_OF_FILE";
112 break;
113 case MD_NTSTATUS_WIN_STATUS_WRONG_VOLUME:
114 reason = "STATUS_WRONG_VOLUME";
115 break;
116 case MD_NTSTATUS_WIN_STATUS_NO_MEDIA_IN_DEVICE:
117 reason = "STATUS_NO_MEDIA_IN_DEVICE";
118 break;
119 case MD_NTSTATUS_WIN_STATUS_UNRECOGNIZED_MEDIA:
120 reason = "STATUS_UNRECOGNIZED_MEDIA";
121 break;
122 case MD_NTSTATUS_WIN_STATUS_NONEXISTENT_SECTOR:
123 reason = "STATUS_NONEXISTENT_SECTOR";
124 break;
125 case MD_NTSTATUS_WIN_STATUS_MORE_PROCESSING_REQUIRED:
126 reason = "STATUS_MORE_PROCESSING_REQUIRED";
127 break;
128 case MD_NTSTATUS_WIN_STATUS_NO_MEMORY:
129 reason = "STATUS_NO_MEMORY";
130 break;
131 case MD_NTSTATUS_WIN_STATUS_CONFLICTING_ADDRESSES:
132 reason = "STATUS_CONFLICTING_ADDRESSES";
133 break;
134 case MD_NTSTATUS_WIN_STATUS_NOT_MAPPED_VIEW:
135 reason = "STATUS_NOT_MAPPED_VIEW";
136 break;
137 case MD_NTSTATUS_WIN_STATUS_UNABLE_TO_FREE_VM:
138 reason = "STATUS_UNABLE_TO_FREE_VM";
139 break;
140 case MD_NTSTATUS_WIN_STATUS_UNABLE_TO_DELETE_SECTION:
141 reason = "STATUS_UNABLE_TO_DELETE_SECTION";
142 break;
143 case MD_NTSTATUS_WIN_STATUS_INVALID_SYSTEM_SERVICE:
144 reason = "STATUS_INVALID_SYSTEM_SERVICE";
145 break;
146 case MD_NTSTATUS_WIN_STATUS_ILLEGAL_INSTRUCTION:
147 reason = "STATUS_ILLEGAL_INSTRUCTION";
148 break;
149 case MD_NTSTATUS_WIN_STATUS_INVALID_LOCK_SEQUENCE:
150 reason = "STATUS_INVALID_LOCK_SEQUENCE";
151 break;
152 case MD_NTSTATUS_WIN_STATUS_INVALID_VIEW_SIZE:
153 reason = "STATUS_INVALID_VIEW_SIZE";
154 break;
155 case MD_NTSTATUS_WIN_STATUS_INVALID_FILE_FOR_SECTION:
156 reason = "STATUS_INVALID_FILE_FOR_SECTION";
157 break;
158 case MD_NTSTATUS_WIN_STATUS_ALREADY_COMMITTED:
159 reason = "STATUS_ALREADY_COMMITTED";
160 break;
161 case MD_NTSTATUS_WIN_STATUS_ACCESS_DENIED:
162 reason = "STATUS_ACCESS_DENIED";
163 break;
164 case MD_NTSTATUS_WIN_STATUS_BUFFER_TOO_SMALL:
165 reason = "STATUS_BUFFER_TOO_SMALL";
166 break;
167 case MD_NTSTATUS_WIN_STATUS_OBJECT_TYPE_MISMATCH:
168 reason = "STATUS_OBJECT_TYPE_MISMATCH";
169 break;
170 case MD_NTSTATUS_WIN_STATUS_NONCONTINUABLE_EXCEPTION:
171 reason = "STATUS_NONCONTINUABLE_EXCEPTION";
172 break;
173 case MD_NTSTATUS_WIN_STATUS_INVALID_DISPOSITION:
174 reason = "STATUS_INVALID_DISPOSITION";
175 break;
176 case MD_NTSTATUS_WIN_STATUS_UNWIND:
177 reason = "STATUS_UNWIND";
178 break;
179 case MD_NTSTATUS_WIN_STATUS_BAD_STACK:
180 reason = "STATUS_BAD_STACK";
181 break;
182 case MD_NTSTATUS_WIN_STATUS_INVALID_UNWIND_TARGET:
183 reason = "STATUS_INVALID_UNWIND_TARGET";
184 break;
185 case MD_NTSTATUS_WIN_STATUS_NOT_LOCKED:
186 reason = "STATUS_NOT_LOCKED";
187 break;
188 case MD_NTSTATUS_WIN_STATUS_PARITY_ERROR:
189 reason = "STATUS_PARITY_ERROR";
190 break;
191 case MD_NTSTATUS_WIN_STATUS_UNABLE_TO_DECOMMIT_VM:
192 reason = "STATUS_UNABLE_TO_DECOMMIT_VM";
193 break;
194 case MD_NTSTATUS_WIN_STATUS_NOT_COMMITTED:
195 reason = "STATUS_NOT_COMMITTED";
196 break;
197 case MD_NTSTATUS_WIN_STATUS_INVALID_PORT_ATTRIBUTES:
198 reason = "STATUS_INVALID_PORT_ATTRIBUTES";
199 break;
200 case MD_NTSTATUS_WIN_STATUS_PORT_MESSAGE_TOO_LONG:
201 reason = "STATUS_PORT_MESSAGE_TOO_LONG";
202 break;
203 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_MIX:
204 reason = "STATUS_INVALID_PARAMETER_MIX";
205 break;
206 case MD_NTSTATUS_WIN_STATUS_INVALID_QUOTA_LOWER:
207 reason = "STATUS_INVALID_QUOTA_LOWER";
208 break;
209 case MD_NTSTATUS_WIN_STATUS_DISK_CORRUPT_ERROR:
210 reason = "STATUS_DISK_CORRUPT_ERROR";
211 break;
212 case MD_NTSTATUS_WIN_STATUS_OBJECT_NAME_INVALID:
213 reason = "STATUS_OBJECT_NAME_INVALID";
214 break;
215 case MD_NTSTATUS_WIN_STATUS_OBJECT_NAME_NOT_FOUND:
216 reason = "STATUS_OBJECT_NAME_NOT_FOUND";
217 break;
218 case MD_NTSTATUS_WIN_STATUS_OBJECT_NAME_COLLISION:
219 reason = "STATUS_OBJECT_NAME_COLLISION";
220 break;
221 case MD_NTSTATUS_WIN_STATUS_PORT_DISCONNECTED:
222 reason = "STATUS_PORT_DISCONNECTED";
223 break;
224 case MD_NTSTATUS_WIN_STATUS_DEVICE_ALREADY_ATTACHED:
225 reason = "STATUS_DEVICE_ALREADY_ATTACHED";
226 break;
227 case MD_NTSTATUS_WIN_STATUS_OBJECT_PATH_INVALID:
228 reason = "STATUS_OBJECT_PATH_INVALID";
229 break;
230 case MD_NTSTATUS_WIN_STATUS_OBJECT_PATH_NOT_FOUND:
231 reason = "STATUS_OBJECT_PATH_NOT_FOUND";
232 break;
233 case MD_NTSTATUS_WIN_STATUS_OBJECT_PATH_SYNTAX_BAD:
234 reason = "STATUS_OBJECT_PATH_SYNTAX_BAD";
235 break;
236 case MD_NTSTATUS_WIN_STATUS_DATA_OVERRUN:
237 reason = "STATUS_DATA_OVERRUN";
238 break;
239 case MD_NTSTATUS_WIN_STATUS_DATA_LATE_ERROR:
240 reason = "STATUS_DATA_LATE_ERROR";
241 break;
242 case MD_NTSTATUS_WIN_STATUS_DATA_ERROR:
243 reason = "STATUS_DATA_ERROR";
244 break;
245 case MD_NTSTATUS_WIN_STATUS_CRC_ERROR:
246 reason = "STATUS_CRC_ERROR";
247 break;
248 case MD_NTSTATUS_WIN_STATUS_SECTION_TOO_BIG:
249 reason = "STATUS_SECTION_TOO_BIG";
250 break;
251 case MD_NTSTATUS_WIN_STATUS_PORT_CONNECTION_REFUSED:
252 reason = "STATUS_PORT_CONNECTION_REFUSED";
253 break;
254 case MD_NTSTATUS_WIN_STATUS_INVALID_PORT_HANDLE:
255 reason = "STATUS_INVALID_PORT_HANDLE";
256 break;
257 case MD_NTSTATUS_WIN_STATUS_SHARING_VIOLATION:
258 reason = "STATUS_SHARING_VIOLATION";
259 break;
260 case MD_NTSTATUS_WIN_STATUS_QUOTA_EXCEEDED:
261 reason = "STATUS_QUOTA_EXCEEDED";
262 break;
263 case MD_NTSTATUS_WIN_STATUS_INVALID_PAGE_PROTECTION:
264 reason = "STATUS_INVALID_PAGE_PROTECTION";
265 break;
266 case MD_NTSTATUS_WIN_STATUS_MUTANT_NOT_OWNED:
267 reason = "STATUS_MUTANT_NOT_OWNED";
268 break;
269 case MD_NTSTATUS_WIN_STATUS_SEMAPHORE_LIMIT_EXCEEDED:
270 reason = "STATUS_SEMAPHORE_LIMIT_EXCEEDED";
271 break;
272 case MD_NTSTATUS_WIN_STATUS_PORT_ALREADY_SET:
273 reason = "STATUS_PORT_ALREADY_SET";
274 break;
275 case MD_NTSTATUS_WIN_STATUS_SECTION_NOT_IMAGE:
276 reason = "STATUS_SECTION_NOT_IMAGE";
277 break;
278 case MD_NTSTATUS_WIN_STATUS_SUSPEND_COUNT_EXCEEDED:
279 reason = "STATUS_SUSPEND_COUNT_EXCEEDED";
280 break;
281 case MD_NTSTATUS_WIN_STATUS_THREAD_IS_TERMINATING:
282 reason = "STATUS_THREAD_IS_TERMINATING";
283 break;
284 case MD_NTSTATUS_WIN_STATUS_BAD_WORKING_SET_LIMIT:
285 reason = "STATUS_BAD_WORKING_SET_LIMIT";
286 break;
287 case MD_NTSTATUS_WIN_STATUS_INCOMPATIBLE_FILE_MAP:
288 reason = "STATUS_INCOMPATIBLE_FILE_MAP";
289 break;
290 case MD_NTSTATUS_WIN_STATUS_SECTION_PROTECTION:
291 reason = "STATUS_SECTION_PROTECTION";
292 break;
293 case MD_NTSTATUS_WIN_STATUS_EAS_NOT_SUPPORTED:
294 reason = "STATUS_EAS_NOT_SUPPORTED";
295 break;
296 case MD_NTSTATUS_WIN_STATUS_EA_TOO_LARGE:
297 reason = "STATUS_EA_TOO_LARGE";
298 break;
299 case MD_NTSTATUS_WIN_STATUS_NONEXISTENT_EA_ENTRY:
300 reason = "STATUS_NONEXISTENT_EA_ENTRY";
301 break;
302 case MD_NTSTATUS_WIN_STATUS_NO_EAS_ON_FILE:
303 reason = "STATUS_NO_EAS_ON_FILE";
304 break;
305 case MD_NTSTATUS_WIN_STATUS_EA_CORRUPT_ERROR:
306 reason = "STATUS_EA_CORRUPT_ERROR";
307 break;
308 case MD_NTSTATUS_WIN_STATUS_FILE_LOCK_CONFLICT:
309 reason = "STATUS_FILE_LOCK_CONFLICT";
310 break;
311 case MD_NTSTATUS_WIN_STATUS_LOCK_NOT_GRANTED:
312 reason = "STATUS_LOCK_NOT_GRANTED";
313 break;
314 case MD_NTSTATUS_WIN_STATUS_DELETE_PENDING:
315 reason = "STATUS_DELETE_PENDING";
316 break;
317 case MD_NTSTATUS_WIN_STATUS_CTL_FILE_NOT_SUPPORTED:
318 reason = "STATUS_CTL_FILE_NOT_SUPPORTED";
319 break;
320 case MD_NTSTATUS_WIN_STATUS_UNKNOWN_REVISION:
321 reason = "STATUS_UNKNOWN_REVISION";
322 break;
323 case MD_NTSTATUS_WIN_STATUS_REVISION_MISMATCH:
324 reason = "STATUS_REVISION_MISMATCH";
325 break;
326 case MD_NTSTATUS_WIN_STATUS_INVALID_OWNER:
327 reason = "STATUS_INVALID_OWNER";
328 break;
329 case MD_NTSTATUS_WIN_STATUS_INVALID_PRIMARY_GROUP:
330 reason = "STATUS_INVALID_PRIMARY_GROUP";
331 break;
332 case MD_NTSTATUS_WIN_STATUS_NO_IMPERSONATION_TOKEN:
333 reason = "STATUS_NO_IMPERSONATION_TOKEN";
334 break;
335 case MD_NTSTATUS_WIN_STATUS_CANT_DISABLE_MANDATORY:
336 reason = "STATUS_CANT_DISABLE_MANDATORY";
337 break;
338 case MD_NTSTATUS_WIN_STATUS_NO_LOGON_SERVERS:
339 reason = "STATUS_NO_LOGON_SERVERS";
340 break;
341 case MD_NTSTATUS_WIN_STATUS_NO_SUCH_LOGON_SESSION:
342 reason = "STATUS_NO_SUCH_LOGON_SESSION";
343 break;
344 case MD_NTSTATUS_WIN_STATUS_NO_SUCH_PRIVILEGE:
345 reason = "STATUS_NO_SUCH_PRIVILEGE";
346 break;
347 case MD_NTSTATUS_WIN_STATUS_PRIVILEGE_NOT_HELD:
348 reason = "STATUS_PRIVILEGE_NOT_HELD";
349 break;
350 case MD_NTSTATUS_WIN_STATUS_INVALID_ACCOUNT_NAME:
351 reason = "STATUS_INVALID_ACCOUNT_NAME";
352 break;
353 case MD_NTSTATUS_WIN_STATUS_USER_EXISTS:
354 reason = "STATUS_USER_EXISTS";
355 break;
356 case MD_NTSTATUS_WIN_STATUS_NO_SUCH_USER:
357 reason = "STATUS_NO_SUCH_USER";
358 break;
359 case MD_NTSTATUS_WIN_STATUS_GROUP_EXISTS:
360 reason = "STATUS_GROUP_EXISTS";
361 break;
362 case MD_NTSTATUS_WIN_STATUS_NO_SUCH_GROUP:
363 reason = "STATUS_NO_SUCH_GROUP";
364 break;
365 case MD_NTSTATUS_WIN_STATUS_MEMBER_IN_GROUP:
366 reason = "STATUS_MEMBER_IN_GROUP";
367 break;
368 case MD_NTSTATUS_WIN_STATUS_MEMBER_NOT_IN_GROUP:
369 reason = "STATUS_MEMBER_NOT_IN_GROUP";
370 break;
371 case MD_NTSTATUS_WIN_STATUS_LAST_ADMIN:
372 reason = "STATUS_LAST_ADMIN";
373 break;
374 case MD_NTSTATUS_WIN_STATUS_WRONG_PASSWORD:
375 reason = "STATUS_WRONG_PASSWORD";
376 break;
377 case MD_NTSTATUS_WIN_STATUS_ILL_FORMED_PASSWORD:
378 reason = "STATUS_ILL_FORMED_PASSWORD";
379 break;
380 case MD_NTSTATUS_WIN_STATUS_PASSWORD_RESTRICTION:
381 reason = "STATUS_PASSWORD_RESTRICTION";
382 break;
383 case MD_NTSTATUS_WIN_STATUS_LOGON_FAILURE:
384 reason = "STATUS_LOGON_FAILURE";
385 break;
386 case MD_NTSTATUS_WIN_STATUS_ACCOUNT_RESTRICTION:
387 reason = "STATUS_ACCOUNT_RESTRICTION";
388 break;
389 case MD_NTSTATUS_WIN_STATUS_INVALID_LOGON_HOURS:
390 reason = "STATUS_INVALID_LOGON_HOURS";
391 break;
392 case MD_NTSTATUS_WIN_STATUS_INVALID_WORKSTATION:
393 reason = "STATUS_INVALID_WORKSTATION";
394 break;
395 case MD_NTSTATUS_WIN_STATUS_PASSWORD_EXPIRED:
396 reason = "STATUS_PASSWORD_EXPIRED";
397 break;
398 case MD_NTSTATUS_WIN_STATUS_ACCOUNT_DISABLED:
399 reason = "STATUS_ACCOUNT_DISABLED";
400 break;
401 case MD_NTSTATUS_WIN_STATUS_NONE_MAPPED:
402 reason = "STATUS_NONE_MAPPED";
403 break;
404 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_LUIDS_REQUESTED:
405 reason = "STATUS_TOO_MANY_LUIDS_REQUESTED";
406 break;
407 case MD_NTSTATUS_WIN_STATUS_LUIDS_EXHAUSTED:
408 reason = "STATUS_LUIDS_EXHAUSTED";
409 break;
410 case MD_NTSTATUS_WIN_STATUS_INVALID_SUB_AUTHORITY:
411 reason = "STATUS_INVALID_SUB_AUTHORITY";
412 break;
413 case MD_NTSTATUS_WIN_STATUS_INVALID_ACL:
414 reason = "STATUS_INVALID_ACL";
415 break;
416 case MD_NTSTATUS_WIN_STATUS_INVALID_SID:
417 reason = "STATUS_INVALID_SID";
418 break;
419 case MD_NTSTATUS_WIN_STATUS_INVALID_SECURITY_DESCR:
420 reason = "STATUS_INVALID_SECURITY_DESCR";
421 break;
422 case MD_NTSTATUS_WIN_STATUS_PROCEDURE_NOT_FOUND:
423 reason = "STATUS_PROCEDURE_NOT_FOUND";
424 break;
425 case MD_NTSTATUS_WIN_STATUS_INVALID_IMAGE_FORMAT:
426 reason = "STATUS_INVALID_IMAGE_FORMAT";
427 break;
428 case MD_NTSTATUS_WIN_STATUS_NO_TOKEN:
429 reason = "STATUS_NO_TOKEN";
430 break;
431 case MD_NTSTATUS_WIN_STATUS_BAD_INHERITANCE_ACL:
432 reason = "STATUS_BAD_INHERITANCE_ACL";
433 break;
434 case MD_NTSTATUS_WIN_STATUS_RANGE_NOT_LOCKED:
435 reason = "STATUS_RANGE_NOT_LOCKED";
436 break;
437 case MD_NTSTATUS_WIN_STATUS_DISK_FULL:
438 reason = "STATUS_DISK_FULL";
439 break;
440 case MD_NTSTATUS_WIN_STATUS_SERVER_DISABLED:
441 reason = "STATUS_SERVER_DISABLED";
442 break;
443 case MD_NTSTATUS_WIN_STATUS_SERVER_NOT_DISABLED:
444 reason = "STATUS_SERVER_NOT_DISABLED";
445 break;
446 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_GUIDS_REQUESTED:
447 reason = "STATUS_TOO_MANY_GUIDS_REQUESTED";
448 break;
449 case MD_NTSTATUS_WIN_STATUS_GUIDS_EXHAUSTED:
450 reason = "STATUS_GUIDS_EXHAUSTED";
451 break;
452 case MD_NTSTATUS_WIN_STATUS_INVALID_ID_AUTHORITY:
453 reason = "STATUS_INVALID_ID_AUTHORITY";
454 break;
455 case MD_NTSTATUS_WIN_STATUS_AGENTS_EXHAUSTED:
456 reason = "STATUS_AGENTS_EXHAUSTED";
457 break;
458 case MD_NTSTATUS_WIN_STATUS_INVALID_VOLUME_LABEL:
459 reason = "STATUS_INVALID_VOLUME_LABEL";
460 break;
461 case MD_NTSTATUS_WIN_STATUS_SECTION_NOT_EXTENDED:
462 reason = "STATUS_SECTION_NOT_EXTENDED";
463 break;
464 case MD_NTSTATUS_WIN_STATUS_NOT_MAPPED_DATA:
465 reason = "STATUS_NOT_MAPPED_DATA";
466 break;
467 case MD_NTSTATUS_WIN_STATUS_RESOURCE_DATA_NOT_FOUND:
468 reason = "STATUS_RESOURCE_DATA_NOT_FOUND";
469 break;
470 case MD_NTSTATUS_WIN_STATUS_RESOURCE_TYPE_NOT_FOUND:
471 reason = "STATUS_RESOURCE_TYPE_NOT_FOUND";
472 break;
473 case MD_NTSTATUS_WIN_STATUS_RESOURCE_NAME_NOT_FOUND:
474 reason = "STATUS_RESOURCE_NAME_NOT_FOUND";
475 break;
476 case MD_NTSTATUS_WIN_STATUS_ARRAY_BOUNDS_EXCEEDED:
477 reason = "STATUS_ARRAY_BOUNDS_EXCEEDED";
478 break;
479 case MD_NTSTATUS_WIN_STATUS_FLOAT_DENORMAL_OPERAND:
480 reason = "STATUS_FLOAT_DENORMAL_OPERAND";
481 break;
482 case MD_NTSTATUS_WIN_STATUS_FLOAT_DIVIDE_BY_ZERO:
483 reason = "STATUS_FLOAT_DIVIDE_BY_ZERO";
484 break;
485 case MD_NTSTATUS_WIN_STATUS_FLOAT_INEXACT_RESULT:
486 reason = "STATUS_FLOAT_INEXACT_RESULT";
487 break;
488 case MD_NTSTATUS_WIN_STATUS_FLOAT_INVALID_OPERATION:
489 reason = "STATUS_FLOAT_INVALID_OPERATION";
490 break;
491 case MD_NTSTATUS_WIN_STATUS_FLOAT_OVERFLOW:
492 reason = "STATUS_FLOAT_OVERFLOW";
493 break;
494 case MD_NTSTATUS_WIN_STATUS_FLOAT_STACK_CHECK:
495 reason = "STATUS_FLOAT_STACK_CHECK";
496 break;
497 case MD_NTSTATUS_WIN_STATUS_FLOAT_UNDERFLOW:
498 reason = "STATUS_FLOAT_UNDERFLOW";
499 break;
500 case MD_NTSTATUS_WIN_STATUS_INTEGER_DIVIDE_BY_ZERO:
501 reason = "STATUS_INTEGER_DIVIDE_BY_ZERO";
502 break;
503 case MD_NTSTATUS_WIN_STATUS_INTEGER_OVERFLOW:
504 reason = "STATUS_INTEGER_OVERFLOW";
505 break;
506 case MD_NTSTATUS_WIN_STATUS_PRIVILEGED_INSTRUCTION:
507 reason = "STATUS_PRIVILEGED_INSTRUCTION";
508 break;
509 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_PAGING_FILES:
510 reason = "STATUS_TOO_MANY_PAGING_FILES";
511 break;
512 case MD_NTSTATUS_WIN_STATUS_FILE_INVALID:
513 reason = "STATUS_FILE_INVALID";
514 break;
515 case MD_NTSTATUS_WIN_STATUS_ALLOTTED_SPACE_EXCEEDED:
516 reason = "STATUS_ALLOTTED_SPACE_EXCEEDED";
517 break;
518 case MD_NTSTATUS_WIN_STATUS_INSUFFICIENT_RESOURCES:
519 reason = "STATUS_INSUFFICIENT_RESOURCES";
520 break;
521 case MD_NTSTATUS_WIN_STATUS_DFS_EXIT_PATH_FOUND:
522 reason = "STATUS_DFS_EXIT_PATH_FOUND";
523 break;
524 case MD_NTSTATUS_WIN_STATUS_DEVICE_DATA_ERROR:
525 reason = "STATUS_DEVICE_DATA_ERROR";
526 break;
527 case MD_NTSTATUS_WIN_STATUS_DEVICE_NOT_CONNECTED:
528 reason = "STATUS_DEVICE_NOT_CONNECTED";
529 break;
530 case MD_NTSTATUS_WIN_STATUS_DEVICE_POWER_FAILURE:
531 reason = "STATUS_DEVICE_POWER_FAILURE";
532 break;
533 case MD_NTSTATUS_WIN_STATUS_FREE_VM_NOT_AT_BASE:
534 reason = "STATUS_FREE_VM_NOT_AT_BASE";
535 break;
536 case MD_NTSTATUS_WIN_STATUS_MEMORY_NOT_ALLOCATED:
537 reason = "STATUS_MEMORY_NOT_ALLOCATED";
538 break;
539 case MD_NTSTATUS_WIN_STATUS_WORKING_SET_QUOTA:
540 reason = "STATUS_WORKING_SET_QUOTA";
541 break;
542 case MD_NTSTATUS_WIN_STATUS_MEDIA_WRITE_PROTECTED:
543 reason = "STATUS_MEDIA_WRITE_PROTECTED";
544 break;
545 case MD_NTSTATUS_WIN_STATUS_DEVICE_NOT_READY:
546 reason = "STATUS_DEVICE_NOT_READY";
547 break;
548 case MD_NTSTATUS_WIN_STATUS_INVALID_GROUP_ATTRIBUTES:
549 reason = "STATUS_INVALID_GROUP_ATTRIBUTES";
550 break;
551 case MD_NTSTATUS_WIN_STATUS_BAD_IMPERSONATION_LEVEL:
552 reason = "STATUS_BAD_IMPERSONATION_LEVEL";
553 break;
554 case MD_NTSTATUS_WIN_STATUS_CANT_OPEN_ANONYMOUS:
555 reason = "STATUS_CANT_OPEN_ANONYMOUS";
556 break;
557 case MD_NTSTATUS_WIN_STATUS_BAD_VALIDATION_CLASS:
558 reason = "STATUS_BAD_VALIDATION_CLASS";
559 break;
560 case MD_NTSTATUS_WIN_STATUS_BAD_TOKEN_TYPE:
561 reason = "STATUS_BAD_TOKEN_TYPE";
562 break;
563 case MD_NTSTATUS_WIN_STATUS_BAD_MASTER_BOOT_RECORD:
564 reason = "STATUS_BAD_MASTER_BOOT_RECORD";
565 break;
566 case MD_NTSTATUS_WIN_STATUS_INSTRUCTION_MISALIGNMENT:
567 reason = "STATUS_INSTRUCTION_MISALIGNMENT";
568 break;
569 case MD_NTSTATUS_WIN_STATUS_INSTANCE_NOT_AVAILABLE:
570 reason = "STATUS_INSTANCE_NOT_AVAILABLE";
571 break;
572 case MD_NTSTATUS_WIN_STATUS_PIPE_NOT_AVAILABLE:
573 reason = "STATUS_PIPE_NOT_AVAILABLE";
574 break;
575 case MD_NTSTATUS_WIN_STATUS_INVALID_PIPE_STATE:
576 reason = "STATUS_INVALID_PIPE_STATE";
577 break;
578 case MD_NTSTATUS_WIN_STATUS_PIPE_BUSY:
579 reason = "STATUS_PIPE_BUSY";
580 break;
581 case MD_NTSTATUS_WIN_STATUS_ILLEGAL_FUNCTION:
582 reason = "STATUS_ILLEGAL_FUNCTION";
583 break;
584 case MD_NTSTATUS_WIN_STATUS_PIPE_DISCONNECTED:
585 reason = "STATUS_PIPE_DISCONNECTED";
586 break;
587 case MD_NTSTATUS_WIN_STATUS_PIPE_CLOSING:
588 reason = "STATUS_PIPE_CLOSING";
589 break;
590 case MD_NTSTATUS_WIN_STATUS_PIPE_CONNECTED:
591 reason = "STATUS_PIPE_CONNECTED";
592 break;
593 case MD_NTSTATUS_WIN_STATUS_PIPE_LISTENING:
594 reason = "STATUS_PIPE_LISTENING";
595 break;
596 case MD_NTSTATUS_WIN_STATUS_INVALID_READ_MODE:
597 reason = "STATUS_INVALID_READ_MODE";
598 break;
599 case MD_NTSTATUS_WIN_STATUS_IO_TIMEOUT:
600 reason = "STATUS_IO_TIMEOUT";
601 break;
602 case MD_NTSTATUS_WIN_STATUS_FILE_FORCED_CLOSED:
603 reason = "STATUS_FILE_FORCED_CLOSED";
604 break;
605 case MD_NTSTATUS_WIN_STATUS_PROFILING_NOT_STARTED:
606 reason = "STATUS_PROFILING_NOT_STARTED";
607 break;
608 case MD_NTSTATUS_WIN_STATUS_PROFILING_NOT_STOPPED:
609 reason = "STATUS_PROFILING_NOT_STOPPED";
610 break;
611 case MD_NTSTATUS_WIN_STATUS_COULD_NOT_INTERPRET:
612 reason = "STATUS_COULD_NOT_INTERPRET";
613 break;
614 case MD_NTSTATUS_WIN_STATUS_FILE_IS_A_DIRECTORY:
615 reason = "STATUS_FILE_IS_A_DIRECTORY";
616 break;
617 case MD_NTSTATUS_WIN_STATUS_NOT_SUPPORTED:
618 reason = "STATUS_NOT_SUPPORTED";
619 break;
620 case MD_NTSTATUS_WIN_STATUS_REMOTE_NOT_LISTENING:
621 reason = "STATUS_REMOTE_NOT_LISTENING";
622 break;
623 case MD_NTSTATUS_WIN_STATUS_DUPLICATE_NAME:
624 reason = "STATUS_DUPLICATE_NAME";
625 break;
626 case MD_NTSTATUS_WIN_STATUS_BAD_NETWORK_PATH:
627 reason = "STATUS_BAD_NETWORK_PATH";
628 break;
629 case MD_NTSTATUS_WIN_STATUS_NETWORK_BUSY:
630 reason = "STATUS_NETWORK_BUSY";
631 break;
632 case MD_NTSTATUS_WIN_STATUS_DEVICE_DOES_NOT_EXIST:
633 reason = "STATUS_DEVICE_DOES_NOT_EXIST";
634 break;
635 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_COMMANDS:
636 reason = "STATUS_TOO_MANY_COMMANDS";
637 break;
638 case MD_NTSTATUS_WIN_STATUS_ADAPTER_HARDWARE_ERROR:
639 reason = "STATUS_ADAPTER_HARDWARE_ERROR";
640 break;
641 case MD_NTSTATUS_WIN_STATUS_INVALID_NETWORK_RESPONSE:
642 reason = "STATUS_INVALID_NETWORK_RESPONSE";
643 break;
644 case MD_NTSTATUS_WIN_STATUS_UNEXPECTED_NETWORK_ERROR:
645 reason = "STATUS_UNEXPECTED_NETWORK_ERROR";
646 break;
647 case MD_NTSTATUS_WIN_STATUS_BAD_REMOTE_ADAPTER:
648 reason = "STATUS_BAD_REMOTE_ADAPTER";
649 break;
650 case MD_NTSTATUS_WIN_STATUS_PRINT_QUEUE_FULL:
651 reason = "STATUS_PRINT_QUEUE_FULL";
652 break;
653 case MD_NTSTATUS_WIN_STATUS_NO_SPOOL_SPACE:
654 reason = "STATUS_NO_SPOOL_SPACE";
655 break;
656 case MD_NTSTATUS_WIN_STATUS_PRINT_CANCELLED:
657 reason = "STATUS_PRINT_CANCELLED";
658 break;
659 case MD_NTSTATUS_WIN_STATUS_NETWORK_NAME_DELETED:
660 reason = "STATUS_NETWORK_NAME_DELETED";
661 break;
662 case MD_NTSTATUS_WIN_STATUS_NETWORK_ACCESS_DENIED:
663 reason = "STATUS_NETWORK_ACCESS_DENIED";
664 break;
665 case MD_NTSTATUS_WIN_STATUS_BAD_DEVICE_TYPE:
666 reason = "STATUS_BAD_DEVICE_TYPE";
667 break;
668 case MD_NTSTATUS_WIN_STATUS_BAD_NETWORK_NAME:
669 reason = "STATUS_BAD_NETWORK_NAME";
670 break;
671 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_NAMES:
672 reason = "STATUS_TOO_MANY_NAMES";
673 break;
674 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_SESSIONS:
675 reason = "STATUS_TOO_MANY_SESSIONS";
676 break;
677 case MD_NTSTATUS_WIN_STATUS_SHARING_PAUSED:
678 reason = "STATUS_SHARING_PAUSED";
679 break;
680 case MD_NTSTATUS_WIN_STATUS_REQUEST_NOT_ACCEPTED:
681 reason = "STATUS_REQUEST_NOT_ACCEPTED";
682 break;
683 case MD_NTSTATUS_WIN_STATUS_REDIRECTOR_PAUSED:
684 reason = "STATUS_REDIRECTOR_PAUSED";
685 break;
686 case MD_NTSTATUS_WIN_STATUS_NET_WRITE_FAULT:
687 reason = "STATUS_NET_WRITE_FAULT";
688 break;
689 case MD_NTSTATUS_WIN_STATUS_PROFILING_AT_LIMIT:
690 reason = "STATUS_PROFILING_AT_LIMIT";
691 break;
692 case MD_NTSTATUS_WIN_STATUS_NOT_SAME_DEVICE:
693 reason = "STATUS_NOT_SAME_DEVICE";
694 break;
695 case MD_NTSTATUS_WIN_STATUS_FILE_RENAMED:
696 reason = "STATUS_FILE_RENAMED";
697 break;
698 case MD_NTSTATUS_WIN_STATUS_VIRTUAL_CIRCUIT_CLOSED:
699 reason = "STATUS_VIRTUAL_CIRCUIT_CLOSED";
700 break;
701 case MD_NTSTATUS_WIN_STATUS_NO_SECURITY_ON_OBJECT:
702 reason = "STATUS_NO_SECURITY_ON_OBJECT";
703 break;
704 case MD_NTSTATUS_WIN_STATUS_CANT_WAIT:
705 reason = "STATUS_CANT_WAIT";
706 break;
707 case MD_NTSTATUS_WIN_STATUS_PIPE_EMPTY:
708 reason = "STATUS_PIPE_EMPTY";
709 break;
710 case MD_NTSTATUS_WIN_STATUS_CANT_ACCESS_DOMAIN_INFO:
711 reason = "STATUS_CANT_ACCESS_DOMAIN_INFO";
712 break;
713 case MD_NTSTATUS_WIN_STATUS_CANT_TERMINATE_SELF:
714 reason = "STATUS_CANT_TERMINATE_SELF";
715 break;
716 case MD_NTSTATUS_WIN_STATUS_INVALID_SERVER_STATE:
717 reason = "STATUS_INVALID_SERVER_STATE";
718 break;
719 case MD_NTSTATUS_WIN_STATUS_INVALID_DOMAIN_STATE:
720 reason = "STATUS_INVALID_DOMAIN_STATE";
721 break;
722 case MD_NTSTATUS_WIN_STATUS_INVALID_DOMAIN_ROLE:
723 reason = "STATUS_INVALID_DOMAIN_ROLE";
724 break;
725 case MD_NTSTATUS_WIN_STATUS_NO_SUCH_DOMAIN:
726 reason = "STATUS_NO_SUCH_DOMAIN";
727 break;
728 case MD_NTSTATUS_WIN_STATUS_DOMAIN_EXISTS:
729 reason = "STATUS_DOMAIN_EXISTS";
730 break;
731 case MD_NTSTATUS_WIN_STATUS_DOMAIN_LIMIT_EXCEEDED:
732 reason = "STATUS_DOMAIN_LIMIT_EXCEEDED";
733 break;
734 case MD_NTSTATUS_WIN_STATUS_OPLOCK_NOT_GRANTED:
735 reason = "STATUS_OPLOCK_NOT_GRANTED";
736 break;
737 case MD_NTSTATUS_WIN_STATUS_INVALID_OPLOCK_PROTOCOL:
738 reason = "STATUS_INVALID_OPLOCK_PROTOCOL";
739 break;
740 case MD_NTSTATUS_WIN_STATUS_INTERNAL_DB_CORRUPTION:
741 reason = "STATUS_INTERNAL_DB_CORRUPTION";
742 break;
743 case MD_NTSTATUS_WIN_STATUS_INTERNAL_ERROR:
744 reason = "STATUS_INTERNAL_ERROR";
745 break;
746 case MD_NTSTATUS_WIN_STATUS_GENERIC_NOT_MAPPED:
747 reason = "STATUS_GENERIC_NOT_MAPPED";
748 break;
749 case MD_NTSTATUS_WIN_STATUS_BAD_DESCRIPTOR_FORMAT:
750 reason = "STATUS_BAD_DESCRIPTOR_FORMAT";
751 break;
752 case MD_NTSTATUS_WIN_STATUS_INVALID_USER_BUFFER:
753 reason = "STATUS_INVALID_USER_BUFFER";
754 break;
755 case MD_NTSTATUS_WIN_STATUS_UNEXPECTED_IO_ERROR:
756 reason = "STATUS_UNEXPECTED_IO_ERROR";
757 break;
758 case MD_NTSTATUS_WIN_STATUS_UNEXPECTED_MM_CREATE_ERR:
759 reason = "STATUS_UNEXPECTED_MM_CREATE_ERR";
760 break;
761 case MD_NTSTATUS_WIN_STATUS_UNEXPECTED_MM_MAP_ERROR:
762 reason = "STATUS_UNEXPECTED_MM_MAP_ERROR";
763 break;
764 case MD_NTSTATUS_WIN_STATUS_UNEXPECTED_MM_EXTEND_ERR:
765 reason = "STATUS_UNEXPECTED_MM_EXTEND_ERR";
766 break;
767 case MD_NTSTATUS_WIN_STATUS_NOT_LOGON_PROCESS:
768 reason = "STATUS_NOT_LOGON_PROCESS";
769 break;
770 case MD_NTSTATUS_WIN_STATUS_LOGON_SESSION_EXISTS:
771 reason = "STATUS_LOGON_SESSION_EXISTS";
772 break;
773 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_1:
774 reason = "STATUS_INVALID_PARAMETER_1";
775 break;
776 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_2:
777 reason = "STATUS_INVALID_PARAMETER_2";
778 break;
779 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_3:
780 reason = "STATUS_INVALID_PARAMETER_3";
781 break;
782 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_4:
783 reason = "STATUS_INVALID_PARAMETER_4";
784 break;
785 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_5:
786 reason = "STATUS_INVALID_PARAMETER_5";
787 break;
788 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_6:
789 reason = "STATUS_INVALID_PARAMETER_6";
790 break;
791 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_7:
792 reason = "STATUS_INVALID_PARAMETER_7";
793 break;
794 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_8:
795 reason = "STATUS_INVALID_PARAMETER_8";
796 break;
797 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_9:
798 reason = "STATUS_INVALID_PARAMETER_9";
799 break;
800 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_10:
801 reason = "STATUS_INVALID_PARAMETER_10";
802 break;
803 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_11:
804 reason = "STATUS_INVALID_PARAMETER_11";
805 break;
806 case MD_NTSTATUS_WIN_STATUS_INVALID_PARAMETER_12:
807 reason = "STATUS_INVALID_PARAMETER_12";
808 break;
809 case MD_NTSTATUS_WIN_STATUS_REDIRECTOR_NOT_STARTED:
810 reason = "STATUS_REDIRECTOR_NOT_STARTED";
811 break;
812 case MD_NTSTATUS_WIN_STATUS_REDIRECTOR_STARTED:
813 reason = "STATUS_REDIRECTOR_STARTED";
814 break;
815 case MD_NTSTATUS_WIN_STATUS_STACK_OVERFLOW:
816 reason = "STATUS_STACK_OVERFLOW";
817 break;
818 case MD_NTSTATUS_WIN_STATUS_NO_SUCH_PACKAGE:
819 reason = "STATUS_NO_SUCH_PACKAGE";
820 break;
821 case MD_NTSTATUS_WIN_STATUS_BAD_FUNCTION_TABLE:
822 reason = "STATUS_BAD_FUNCTION_TABLE";
823 break;
824 case MD_NTSTATUS_WIN_STATUS_VARIABLE_NOT_FOUND:
825 reason = "STATUS_VARIABLE_NOT_FOUND";
826 break;
827 case MD_NTSTATUS_WIN_STATUS_DIRECTORY_NOT_EMPTY:
828 reason = "STATUS_DIRECTORY_NOT_EMPTY";
829 break;
830 case MD_NTSTATUS_WIN_STATUS_FILE_CORRUPT_ERROR:
831 reason = "STATUS_FILE_CORRUPT_ERROR";
832 break;
833 case MD_NTSTATUS_WIN_STATUS_NOT_A_DIRECTORY:
834 reason = "STATUS_NOT_A_DIRECTORY";
835 break;
836 case MD_NTSTATUS_WIN_STATUS_BAD_LOGON_SESSION_STATE:
837 reason = "STATUS_BAD_LOGON_SESSION_STATE";
838 break;
839 case MD_NTSTATUS_WIN_STATUS_LOGON_SESSION_COLLISION:
840 reason = "STATUS_LOGON_SESSION_COLLISION";
841 break;
842 case MD_NTSTATUS_WIN_STATUS_NAME_TOO_LONG:
843 reason = "STATUS_NAME_TOO_LONG";
844 break;
845 case MD_NTSTATUS_WIN_STATUS_FILES_OPEN:
846 reason = "STATUS_FILES_OPEN";
847 break;
848 case MD_NTSTATUS_WIN_STATUS_CONNECTION_IN_USE:
849 reason = "STATUS_CONNECTION_IN_USE";
850 break;
851 case MD_NTSTATUS_WIN_STATUS_MESSAGE_NOT_FOUND:
852 reason = "STATUS_MESSAGE_NOT_FOUND";
853 break;
854 case MD_NTSTATUS_WIN_STATUS_PROCESS_IS_TERMINATING:
855 reason = "STATUS_PROCESS_IS_TERMINATING";
856 break;
857 case MD_NTSTATUS_WIN_STATUS_INVALID_LOGON_TYPE:
858 reason = "STATUS_INVALID_LOGON_TYPE";
859 break;
860 case MD_NTSTATUS_WIN_STATUS_NO_GUID_TRANSLATION:
861 reason = "STATUS_NO_GUID_TRANSLATION";
862 break;
863 case MD_NTSTATUS_WIN_STATUS_CANNOT_IMPERSONATE:
864 reason = "STATUS_CANNOT_IMPERSONATE";
865 break;
866 case MD_NTSTATUS_WIN_STATUS_IMAGE_ALREADY_LOADED:
867 reason = "STATUS_IMAGE_ALREADY_LOADED";
868 break;
869 case MD_NTSTATUS_WIN_STATUS_ABIOS_NOT_PRESENT:
870 reason = "STATUS_ABIOS_NOT_PRESENT";
871 break;
872 case MD_NTSTATUS_WIN_STATUS_ABIOS_LID_NOT_EXIST:
873 reason = "STATUS_ABIOS_LID_NOT_EXIST";
874 break;
875 case MD_NTSTATUS_WIN_STATUS_ABIOS_LID_ALREADY_OWNED:
876 reason = "STATUS_ABIOS_LID_ALREADY_OWNED";
877 break;
878 case MD_NTSTATUS_WIN_STATUS_ABIOS_NOT_LID_OWNER:
879 reason = "STATUS_ABIOS_NOT_LID_OWNER";
880 break;
881 case MD_NTSTATUS_WIN_STATUS_ABIOS_INVALID_COMMAND:
882 reason = "STATUS_ABIOS_INVALID_COMMAND";
883 break;
884 case MD_NTSTATUS_WIN_STATUS_ABIOS_INVALID_LID:
885 reason = "STATUS_ABIOS_INVALID_LID";
886 break;
887 case MD_NTSTATUS_WIN_STATUS_ABIOS_SELECTOR_NOT_AVAILABLE:
888 reason = "STATUS_ABIOS_SELECTOR_NOT_AVAILABLE";
889 break;
890 case MD_NTSTATUS_WIN_STATUS_ABIOS_INVALID_SELECTOR:
891 reason = "STATUS_ABIOS_INVALID_SELECTOR";
892 break;
893 case MD_NTSTATUS_WIN_STATUS_NO_LDT:
894 reason = "STATUS_NO_LDT";
895 break;
896 case MD_NTSTATUS_WIN_STATUS_INVALID_LDT_SIZE:
897 reason = "STATUS_INVALID_LDT_SIZE";
898 break;
899 case MD_NTSTATUS_WIN_STATUS_INVALID_LDT_OFFSET:
900 reason = "STATUS_INVALID_LDT_OFFSET";
901 break;
902 case MD_NTSTATUS_WIN_STATUS_INVALID_LDT_DESCRIPTOR:
903 reason = "STATUS_INVALID_LDT_DESCRIPTOR";
904 break;
905 case MD_NTSTATUS_WIN_STATUS_INVALID_IMAGE_NE_FORMAT:
906 reason = "STATUS_INVALID_IMAGE_NE_FORMAT";
907 break;
908 case MD_NTSTATUS_WIN_STATUS_RXACT_INVALID_STATE:
909 reason = "STATUS_RXACT_INVALID_STATE";
910 break;
911 case MD_NTSTATUS_WIN_STATUS_RXACT_COMMIT_FAILURE:
912 reason = "STATUS_RXACT_COMMIT_FAILURE";
913 break;
914 case MD_NTSTATUS_WIN_STATUS_MAPPED_FILE_SIZE_ZERO:
915 reason = "STATUS_MAPPED_FILE_SIZE_ZERO";
916 break;
917 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_OPENED_FILES:
918 reason = "STATUS_TOO_MANY_OPENED_FILES";
919 break;
920 case MD_NTSTATUS_WIN_STATUS_CANCELLED:
921 reason = "STATUS_CANCELLED";
922 break;
923 case MD_NTSTATUS_WIN_STATUS_CANNOT_DELETE:
924 reason = "STATUS_CANNOT_DELETE";
925 break;
926 case MD_NTSTATUS_WIN_STATUS_INVALID_COMPUTER_NAME:
927 reason = "STATUS_INVALID_COMPUTER_NAME";
928 break;
929 case MD_NTSTATUS_WIN_STATUS_FILE_DELETED:
930 reason = "STATUS_FILE_DELETED";
931 break;
932 case MD_NTSTATUS_WIN_STATUS_SPECIAL_ACCOUNT:
933 reason = "STATUS_SPECIAL_ACCOUNT";
934 break;
935 case MD_NTSTATUS_WIN_STATUS_SPECIAL_GROUP:
936 reason = "STATUS_SPECIAL_GROUP";
937 break;
938 case MD_NTSTATUS_WIN_STATUS_SPECIAL_USER:
939 reason = "STATUS_SPECIAL_USER";
940 break;
941 case MD_NTSTATUS_WIN_STATUS_MEMBERS_PRIMARY_GROUP:
942 reason = "STATUS_MEMBERS_PRIMARY_GROUP";
943 break;
944 case MD_NTSTATUS_WIN_STATUS_FILE_CLOSED:
945 reason = "STATUS_FILE_CLOSED";
946 break;
947 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_THREADS:
948 reason = "STATUS_TOO_MANY_THREADS";
949 break;
950 case MD_NTSTATUS_WIN_STATUS_THREAD_NOT_IN_PROCESS:
951 reason = "STATUS_THREAD_NOT_IN_PROCESS";
952 break;
953 case MD_NTSTATUS_WIN_STATUS_TOKEN_ALREADY_IN_USE:
954 reason = "STATUS_TOKEN_ALREADY_IN_USE";
955 break;
956 case MD_NTSTATUS_WIN_STATUS_PAGEFILE_QUOTA_EXCEEDED:
957 reason = "STATUS_PAGEFILE_QUOTA_EXCEEDED";
958 break;
959 case MD_NTSTATUS_WIN_STATUS_COMMITMENT_LIMIT:
960 reason = "STATUS_COMMITMENT_LIMIT";
961 break;
962 case MD_NTSTATUS_WIN_STATUS_INVALID_IMAGE_LE_FORMAT:
963 reason = "STATUS_INVALID_IMAGE_LE_FORMAT";
964 break;
965 case MD_NTSTATUS_WIN_STATUS_INVALID_IMAGE_NOT_MZ:
966 reason = "STATUS_INVALID_IMAGE_NOT_MZ";
967 break;
968 case MD_NTSTATUS_WIN_STATUS_INVALID_IMAGE_PROTECT:
969 reason = "STATUS_INVALID_IMAGE_PROTECT";
970 break;
971 case MD_NTSTATUS_WIN_STATUS_INVALID_IMAGE_WIN_16:
972 reason = "STATUS_INVALID_IMAGE_WIN_16";
973 break;
974 case MD_NTSTATUS_WIN_STATUS_LOGON_SERVER_CONFLICT:
975 reason = "STATUS_LOGON_SERVER_CONFLICT";
976 break;
977 case MD_NTSTATUS_WIN_STATUS_TIME_DIFFERENCE_AT_DC:
978 reason = "STATUS_TIME_DIFFERENCE_AT_DC";
979 break;
980 case MD_NTSTATUS_WIN_STATUS_SYNCHRONIZATION_REQUIRED:
981 reason = "STATUS_SYNCHRONIZATION_REQUIRED";
982 break;
983 case MD_NTSTATUS_WIN_STATUS_DLL_NOT_FOUND:
984 reason = "STATUS_DLL_NOT_FOUND";
985 break;
986 case MD_NTSTATUS_WIN_STATUS_OPEN_FAILED:
987 reason = "STATUS_OPEN_FAILED";
988 break;
989 case MD_NTSTATUS_WIN_STATUS_IO_PRIVILEGE_FAILED:
990 reason = "STATUS_IO_PRIVILEGE_FAILED";
991 break;
992 case MD_NTSTATUS_WIN_STATUS_ORDINAL_NOT_FOUND:
993 reason = "STATUS_ORDINAL_NOT_FOUND";
994 break;
995 case MD_NTSTATUS_WIN_STATUS_ENTRYPOINT_NOT_FOUND:
996 reason = "STATUS_ENTRYPOINT_NOT_FOUND";
997 break;
998 case MD_NTSTATUS_WIN_STATUS_CONTROL_C_EXIT:
999 reason = "STATUS_CONTROL_C_EXIT";
1000 break;
1001 case MD_NTSTATUS_WIN_STATUS_LOCAL_DISCONNECT:
1002 reason = "STATUS_LOCAL_DISCONNECT";
1003 break;
1004 case MD_NTSTATUS_WIN_STATUS_REMOTE_DISCONNECT:
1005 reason = "STATUS_REMOTE_DISCONNECT";
1006 break;
1007 case MD_NTSTATUS_WIN_STATUS_REMOTE_RESOURCES:
1008 reason = "STATUS_REMOTE_RESOURCES";
1009 break;
1010 case MD_NTSTATUS_WIN_STATUS_LINK_FAILED:
1011 reason = "STATUS_LINK_FAILED";
1012 break;
1013 case MD_NTSTATUS_WIN_STATUS_LINK_TIMEOUT:
1014 reason = "STATUS_LINK_TIMEOUT";
1015 break;
1016 case MD_NTSTATUS_WIN_STATUS_INVALID_CONNECTION:
1017 reason = "STATUS_INVALID_CONNECTION";
1018 break;
1019 case MD_NTSTATUS_WIN_STATUS_INVALID_ADDRESS:
1020 reason = "STATUS_INVALID_ADDRESS";
1021 break;
1022 case MD_NTSTATUS_WIN_STATUS_DLL_INIT_FAILED:
1023 reason = "STATUS_DLL_INIT_FAILED";
1024 break;
1025 case MD_NTSTATUS_WIN_STATUS_MISSING_SYSTEMFILE:
1026 reason = "STATUS_MISSING_SYSTEMFILE";
1027 break;
1028 case MD_NTSTATUS_WIN_STATUS_UNHANDLED_EXCEPTION:
1029 reason = "STATUS_UNHANDLED_EXCEPTION";
1030 break;
1031 case MD_NTSTATUS_WIN_STATUS_APP_INIT_FAILURE:
1032 reason = "STATUS_APP_INIT_FAILURE";
1033 break;
1034 case MD_NTSTATUS_WIN_STATUS_PAGEFILE_CREATE_FAILED:
1035 reason = "STATUS_PAGEFILE_CREATE_FAILED";
1036 break;
1037 case MD_NTSTATUS_WIN_STATUS_NO_PAGEFILE:
1038 reason = "STATUS_NO_PAGEFILE";
1039 break;
1040 case MD_NTSTATUS_WIN_STATUS_INVALID_LEVEL:
1041 reason = "STATUS_INVALID_LEVEL";
1042 break;
1043 case MD_NTSTATUS_WIN_STATUS_WRONG_PASSWORD_CORE:
1044 reason = "STATUS_WRONG_PASSWORD_CORE";
1045 break;
1046 case MD_NTSTATUS_WIN_STATUS_ILLEGAL_FLOAT_CONTEXT:
1047 reason = "STATUS_ILLEGAL_FLOAT_CONTEXT";
1048 break;
1049 case MD_NTSTATUS_WIN_STATUS_PIPE_BROKEN:
1050 reason = "STATUS_PIPE_BROKEN";
1051 break;
1052 case MD_NTSTATUS_WIN_STATUS_REGISTRY_CORRUPT:
1053 reason = "STATUS_REGISTRY_CORRUPT";
1054 break;
1055 case MD_NTSTATUS_WIN_STATUS_REGISTRY_IO_FAILED:
1056 reason = "STATUS_REGISTRY_IO_FAILED";
1057 break;
1058 case MD_NTSTATUS_WIN_STATUS_NO_EVENT_PAIR:
1059 reason = "STATUS_NO_EVENT_PAIR";
1060 break;
1061 case MD_NTSTATUS_WIN_STATUS_UNRECOGNIZED_VOLUME:
1062 reason = "STATUS_UNRECOGNIZED_VOLUME";
1063 break;
1064 case MD_NTSTATUS_WIN_STATUS_SERIAL_NO_DEVICE_INITED:
1065 reason = "STATUS_SERIAL_NO_DEVICE_INITED";
1066 break;
1067 case MD_NTSTATUS_WIN_STATUS_NO_SUCH_ALIAS:
1068 reason = "STATUS_NO_SUCH_ALIAS";
1069 break;
1070 case MD_NTSTATUS_WIN_STATUS_MEMBER_NOT_IN_ALIAS:
1071 reason = "STATUS_MEMBER_NOT_IN_ALIAS";
1072 break;
1073 case MD_NTSTATUS_WIN_STATUS_MEMBER_IN_ALIAS:
1074 reason = "STATUS_MEMBER_IN_ALIAS";
1075 break;
1076 case MD_NTSTATUS_WIN_STATUS_ALIAS_EXISTS:
1077 reason = "STATUS_ALIAS_EXISTS";
1078 break;
1079 case MD_NTSTATUS_WIN_STATUS_LOGON_NOT_GRANTED:
1080 reason = "STATUS_LOGON_NOT_GRANTED";
1081 break;
1082 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_SECRETS:
1083 reason = "STATUS_TOO_MANY_SECRETS";
1084 break;
1085 case MD_NTSTATUS_WIN_STATUS_SECRET_TOO_LONG:
1086 reason = "STATUS_SECRET_TOO_LONG";
1087 break;
1088 case MD_NTSTATUS_WIN_STATUS_INTERNAL_DB_ERROR:
1089 reason = "STATUS_INTERNAL_DB_ERROR";
1090 break;
1091 case MD_NTSTATUS_WIN_STATUS_FULLSCREEN_MODE:
1092 reason = "STATUS_FULLSCREEN_MODE";
1093 break;
1094 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_CONTEXT_IDS:
1095 reason = "STATUS_TOO_MANY_CONTEXT_IDS";
1096 break;
1097 case MD_NTSTATUS_WIN_STATUS_LOGON_TYPE_NOT_GRANTED:
1098 reason = "STATUS_LOGON_TYPE_NOT_GRANTED";
1099 break;
1100 case MD_NTSTATUS_WIN_STATUS_NOT_REGISTRY_FILE:
1101 reason = "STATUS_NOT_REGISTRY_FILE";
1102 break;
1103 case MD_NTSTATUS_WIN_STATUS_NT_CROSS_ENCRYPTION_REQUIRED:
1104 reason = "STATUS_NT_CROSS_ENCRYPTION_REQUIRED";
1105 break;
1106 case MD_NTSTATUS_WIN_STATUS_DOMAIN_CTRLR_CONFIG_ERROR:
1107 reason = "STATUS_DOMAIN_CTRLR_CONFIG_ERROR";
1108 break;
1109 case MD_NTSTATUS_WIN_STATUS_FT_MISSING_MEMBER:
1110 reason = "STATUS_FT_MISSING_MEMBER";
1111 break;
1112 case MD_NTSTATUS_WIN_STATUS_ILL_FORMED_SERVICE_ENTRY:
1113 reason = "STATUS_ILL_FORMED_SERVICE_ENTRY";
1114 break;
1115 case MD_NTSTATUS_WIN_STATUS_ILLEGAL_CHARACTER:
1116 reason = "STATUS_ILLEGAL_CHARACTER";
1117 break;
1118 case MD_NTSTATUS_WIN_STATUS_UNMAPPABLE_CHARACTER:
1119 reason = "STATUS_UNMAPPABLE_CHARACTER";
1120 break;
1121 case MD_NTSTATUS_WIN_STATUS_UNDEFINED_CHARACTER:
1122 reason = "STATUS_UNDEFINED_CHARACTER";
1123 break;
1124 case MD_NTSTATUS_WIN_STATUS_FLOPPY_VOLUME:
1125 reason = "STATUS_FLOPPY_VOLUME";
1126 break;
1127 case MD_NTSTATUS_WIN_STATUS_FLOPPY_ID_MARK_NOT_FOUND:
1128 reason = "STATUS_FLOPPY_ID_MARK_NOT_FOUND";
1129 break;
1130 case MD_NTSTATUS_WIN_STATUS_FLOPPY_WRONG_CYLINDER:
1131 reason = "STATUS_FLOPPY_WRONG_CYLINDER";
1132 break;
1133 case MD_NTSTATUS_WIN_STATUS_FLOPPY_UNKNOWN_ERROR:
1134 reason = "STATUS_FLOPPY_UNKNOWN_ERROR";
1135 break;
1136 case MD_NTSTATUS_WIN_STATUS_FLOPPY_BAD_REGISTERS:
1137 reason = "STATUS_FLOPPY_BAD_REGISTERS";
1138 break;
1139 case MD_NTSTATUS_WIN_STATUS_DISK_RECALIBRATE_FAILED:
1140 reason = "STATUS_DISK_RECALIBRATE_FAILED";
1141 break;
1142 case MD_NTSTATUS_WIN_STATUS_DISK_OPERATION_FAILED:
1143 reason = "STATUS_DISK_OPERATION_FAILED";
1144 break;
1145 case MD_NTSTATUS_WIN_STATUS_DISK_RESET_FAILED:
1146 reason = "STATUS_DISK_RESET_FAILED";
1147 break;
1148 case MD_NTSTATUS_WIN_STATUS_SHARED_IRQ_BUSY:
1149 reason = "STATUS_SHARED_IRQ_BUSY";
1150 break;
1151 case MD_NTSTATUS_WIN_STATUS_FT_ORPHANING:
1152 reason = "STATUS_FT_ORPHANING";
1153 break;
1154 case MD_NTSTATUS_WIN_STATUS_BIOS_FAILED_TO_CONNECT_INTERRUPT:
1155 reason = "STATUS_BIOS_FAILED_TO_CONNECT_INTERRUPT";
1156 break;
1157 case MD_NTSTATUS_WIN_STATUS_PARTITION_FAILURE:
1158 reason = "STATUS_PARTITION_FAILURE";
1159 break;
1160 case MD_NTSTATUS_WIN_STATUS_INVALID_BLOCK_LENGTH:
1161 reason = "STATUS_INVALID_BLOCK_LENGTH";
1162 break;
1163 case MD_NTSTATUS_WIN_STATUS_DEVICE_NOT_PARTITIONED:
1164 reason = "STATUS_DEVICE_NOT_PARTITIONED";
1165 break;
1166 case MD_NTSTATUS_WIN_STATUS_UNABLE_TO_LOCK_MEDIA:
1167 reason = "STATUS_UNABLE_TO_LOCK_MEDIA";
1168 break;
1169 case MD_NTSTATUS_WIN_STATUS_UNABLE_TO_UNLOAD_MEDIA:
1170 reason = "STATUS_UNABLE_TO_UNLOAD_MEDIA";
1171 break;
1172 case MD_NTSTATUS_WIN_STATUS_EOM_OVERFLOW:
1173 reason = "STATUS_EOM_OVERFLOW";
1174 break;
1175 case MD_NTSTATUS_WIN_STATUS_NO_MEDIA:
1176 reason = "STATUS_NO_MEDIA";
1177 break;
1178 case MD_NTSTATUS_WIN_STATUS_NO_SUCH_MEMBER:
1179 reason = "STATUS_NO_SUCH_MEMBER";
1180 break;
1181 case MD_NTSTATUS_WIN_STATUS_INVALID_MEMBER:
1182 reason = "STATUS_INVALID_MEMBER";
1183 break;
1184 case MD_NTSTATUS_WIN_STATUS_KEY_DELETED:
1185 reason = "STATUS_KEY_DELETED";
1186 break;
1187 case MD_NTSTATUS_WIN_STATUS_NO_LOG_SPACE:
1188 reason = "STATUS_NO_LOG_SPACE";
1189 break;
1190 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_SIDS:
1191 reason = "STATUS_TOO_MANY_SIDS";
1192 break;
1193 case MD_NTSTATUS_WIN_STATUS_LM_CROSS_ENCRYPTION_REQUIRED:
1194 reason = "STATUS_LM_CROSS_ENCRYPTION_REQUIRED";
1195 break;
1196 case MD_NTSTATUS_WIN_STATUS_KEY_HAS_CHILDREN:
1197 reason = "STATUS_KEY_HAS_CHILDREN";
1198 break;
1199 case MD_NTSTATUS_WIN_STATUS_CHILD_MUST_BE_VOLATILE:
1200 reason = "STATUS_CHILD_MUST_BE_VOLATILE";
1201 break;
1202 case MD_NTSTATUS_WIN_STATUS_DEVICE_CONFIGURATION_ERROR:
1203 reason = "STATUS_DEVICE_CONFIGURATION_ERROR";
1204 break;
1205 case MD_NTSTATUS_WIN_STATUS_DRIVER_INTERNAL_ERROR:
1206 reason = "STATUS_DRIVER_INTERNAL_ERROR";
1207 break;
1208 case MD_NTSTATUS_WIN_STATUS_INVALID_DEVICE_STATE:
1209 reason = "STATUS_INVALID_DEVICE_STATE";
1210 break;
1211 case MD_NTSTATUS_WIN_STATUS_IO_DEVICE_ERROR:
1212 reason = "STATUS_IO_DEVICE_ERROR";
1213 break;
1214 case MD_NTSTATUS_WIN_STATUS_DEVICE_PROTOCOL_ERROR:
1215 reason = "STATUS_DEVICE_PROTOCOL_ERROR";
1216 break;
1217 case MD_NTSTATUS_WIN_STATUS_BACKUP_CONTROLLER:
1218 reason = "STATUS_BACKUP_CONTROLLER";
1219 break;
1220 case MD_NTSTATUS_WIN_STATUS_LOG_FILE_FULL:
1221 reason = "STATUS_LOG_FILE_FULL";
1222 break;
1223 case MD_NTSTATUS_WIN_STATUS_TOO_LATE:
1224 reason = "STATUS_TOO_LATE";
1225 break;
1226 case MD_NTSTATUS_WIN_STATUS_NO_TRUST_LSA_SECRET:
1227 reason = "STATUS_NO_TRUST_LSA_SECRET";
1228 break;
1229 case MD_NTSTATUS_WIN_STATUS_NO_TRUST_SAM_ACCOUNT:
1230 reason = "STATUS_NO_TRUST_SAM_ACCOUNT";
1231 break;
1232 case MD_NTSTATUS_WIN_STATUS_TRUSTED_DOMAIN_FAILURE:
1233 reason = "STATUS_TRUSTED_DOMAIN_FAILURE";
1234 break;
1235 case MD_NTSTATUS_WIN_STATUS_TRUSTED_RELATIONSHIP_FAILURE:
1236 reason = "STATUS_TRUSTED_RELATIONSHIP_FAILURE";
1237 break;
1238 case MD_NTSTATUS_WIN_STATUS_EVENTLOG_FILE_CORRUPT:
1239 reason = "STATUS_EVENTLOG_FILE_CORRUPT";
1240 break;
1241 case MD_NTSTATUS_WIN_STATUS_EVENTLOG_CANT_START:
1242 reason = "STATUS_EVENTLOG_CANT_START";
1243 break;
1244 case MD_NTSTATUS_WIN_STATUS_TRUST_FAILURE:
1245 reason = "STATUS_TRUST_FAILURE";
1246 break;
1247 case MD_NTSTATUS_WIN_STATUS_MUTANT_LIMIT_EXCEEDED:
1248 reason = "STATUS_MUTANT_LIMIT_EXCEEDED";
1249 break;
1250 case MD_NTSTATUS_WIN_STATUS_NETLOGON_NOT_STARTED:
1251 reason = "STATUS_NETLOGON_NOT_STARTED";
1252 break;
1253 case MD_NTSTATUS_WIN_STATUS_ACCOUNT_EXPIRED:
1254 reason = "STATUS_ACCOUNT_EXPIRED";
1255 break;
1256 case MD_NTSTATUS_WIN_STATUS_POSSIBLE_DEADLOCK:
1257 reason = "STATUS_POSSIBLE_DEADLOCK";
1258 break;
1259 case MD_NTSTATUS_WIN_STATUS_NETWORK_CREDENTIAL_CONFLICT:
1260 reason = "STATUS_NETWORK_CREDENTIAL_CONFLICT";
1261 break;
1262 case MD_NTSTATUS_WIN_STATUS_REMOTE_SESSION_LIMIT:
1263 reason = "STATUS_REMOTE_SESSION_LIMIT";
1264 break;
1265 case MD_NTSTATUS_WIN_STATUS_EVENTLOG_FILE_CHANGED:
1266 reason = "STATUS_EVENTLOG_FILE_CHANGED";
1267 break;
1268 case MD_NTSTATUS_WIN_STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT:
1269 reason = "STATUS_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT";
1270 break;
1271 case MD_NTSTATUS_WIN_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT:
1272 reason = "STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT";
1273 break;
1274 case MD_NTSTATUS_WIN_STATUS_NOLOGON_SERVER_TRUST_ACCOUNT:
1275 reason = "STATUS_NOLOGON_SERVER_TRUST_ACCOUNT";
1276 break;
1277 case MD_NTSTATUS_WIN_STATUS_DOMAIN_TRUST_INCONSISTENT:
1278 reason = "STATUS_DOMAIN_TRUST_INCONSISTENT";
1279 break;
1280 case MD_NTSTATUS_WIN_STATUS_FS_DRIVER_REQUIRED:
1281 reason = "STATUS_FS_DRIVER_REQUIRED";
1282 break;
1283 case MD_NTSTATUS_WIN_STATUS_IMAGE_ALREADY_LOADED_AS_DLL:
1284 reason = "STATUS_IMAGE_ALREADY_LOADED_AS_DLL";
1285 break;
1286 case MD_NTSTATUS_WIN_STATUS_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING:
1287 reason = "STATUS_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING";
1288 break;
1289 case MD_NTSTATUS_WIN_STATUS_SHORT_NAMES_NOT_ENABLED_ON_VOLUME:
1290 reason = "STATUS_SHORT_NAMES_NOT_ENABLED_ON_VOLUME";
1291 break;
1292 case MD_NTSTATUS_WIN_STATUS_SECURITY_STREAM_IS_INCONSISTENT:
1293 reason = "STATUS_SECURITY_STREAM_IS_INCONSISTENT";
1294 break;
1295 case MD_NTSTATUS_WIN_STATUS_INVALID_LOCK_RANGE:
1296 reason = "STATUS_INVALID_LOCK_RANGE";
1297 break;
1298 case MD_NTSTATUS_WIN_STATUS_INVALID_ACE_CONDITION:
1299 reason = "STATUS_INVALID_ACE_CONDITION";
1300 break;
1301 case MD_NTSTATUS_WIN_STATUS_IMAGE_SUBSYSTEM_NOT_PRESENT:
1302 reason = "STATUS_IMAGE_SUBSYSTEM_NOT_PRESENT";
1303 break;
1304 case MD_NTSTATUS_WIN_STATUS_NOTIFICATION_GUID_ALREADY_DEFINED:
1305 reason = "STATUS_NOTIFICATION_GUID_ALREADY_DEFINED";
1306 break;
1307 case MD_NTSTATUS_WIN_STATUS_INVALID_EXCEPTION_HANDLER:
1308 reason = "STATUS_INVALID_EXCEPTION_HANDLER";
1309 break;
1310 case MD_NTSTATUS_WIN_STATUS_DUPLICATE_PRIVILEGES:
1311 reason = "STATUS_DUPLICATE_PRIVILEGES";
1312 break;
1313 case MD_NTSTATUS_WIN_STATUS_NOT_ALLOWED_ON_SYSTEM_FILE:
1314 reason = "STATUS_NOT_ALLOWED_ON_SYSTEM_FILE";
1315 break;
1316 case MD_NTSTATUS_WIN_STATUS_REPAIR_NEEDED:
1317 reason = "STATUS_REPAIR_NEEDED";
1318 break;
1319 case MD_NTSTATUS_WIN_STATUS_QUOTA_NOT_ENABLED:
1320 reason = "STATUS_QUOTA_NOT_ENABLED";
1321 break;
1322 case MD_NTSTATUS_WIN_STATUS_NO_APPLICATION_PACKAGE:
1323 reason = "STATUS_NO_APPLICATION_PACKAGE";
1324 break;
1325 case MD_NTSTATUS_WIN_STATUS_NETWORK_OPEN_RESTRICTION:
1326 reason = "STATUS_NETWORK_OPEN_RESTRICTION";
1327 break;
1328 case MD_NTSTATUS_WIN_STATUS_NO_USER_SESSION_KEY:
1329 reason = "STATUS_NO_USER_SESSION_KEY";
1330 break;
1331 case MD_NTSTATUS_WIN_STATUS_USER_SESSION_DELETED:
1332 reason = "STATUS_USER_SESSION_DELETED";
1333 break;
1334 case MD_NTSTATUS_WIN_STATUS_RESOURCE_LANG_NOT_FOUND:
1335 reason = "STATUS_RESOURCE_LANG_NOT_FOUND";
1336 break;
1337 case MD_NTSTATUS_WIN_STATUS_INSUFF_SERVER_RESOURCES:
1338 reason = "STATUS_INSUFF_SERVER_RESOURCES";
1339 break;
1340 case MD_NTSTATUS_WIN_STATUS_INVALID_BUFFER_SIZE:
1341 reason = "STATUS_INVALID_BUFFER_SIZE";
1342 break;
1343 case MD_NTSTATUS_WIN_STATUS_INVALID_ADDRESS_COMPONENT:
1344 reason = "STATUS_INVALID_ADDRESS_COMPONENT";
1345 break;
1346 case MD_NTSTATUS_WIN_STATUS_INVALID_ADDRESS_WILDCARD:
1347 reason = "STATUS_INVALID_ADDRESS_WILDCARD";
1348 break;
1349 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_ADDRESSES:
1350 reason = "STATUS_TOO_MANY_ADDRESSES";
1351 break;
1352 case MD_NTSTATUS_WIN_STATUS_ADDRESS_ALREADY_EXISTS:
1353 reason = "STATUS_ADDRESS_ALREADY_EXISTS";
1354 break;
1355 case MD_NTSTATUS_WIN_STATUS_ADDRESS_CLOSED:
1356 reason = "STATUS_ADDRESS_CLOSED";
1357 break;
1358 case MD_NTSTATUS_WIN_STATUS_CONNECTION_DISCONNECTED:
1359 reason = "STATUS_CONNECTION_DISCONNECTED";
1360 break;
1361 case MD_NTSTATUS_WIN_STATUS_CONNECTION_RESET:
1362 reason = "STATUS_CONNECTION_RESET";
1363 break;
1364 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_NODES:
1365 reason = "STATUS_TOO_MANY_NODES";
1366 break;
1367 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_ABORTED:
1368 reason = "STATUS_TRANSACTION_ABORTED";
1369 break;
1370 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_TIMED_OUT:
1371 reason = "STATUS_TRANSACTION_TIMED_OUT";
1372 break;
1373 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_NO_RELEASE:
1374 reason = "STATUS_TRANSACTION_NO_RELEASE";
1375 break;
1376 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_NO_MATCH:
1377 reason = "STATUS_TRANSACTION_NO_MATCH";
1378 break;
1379 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_RESPONDED:
1380 reason = "STATUS_TRANSACTION_RESPONDED";
1381 break;
1382 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_INVALID_ID:
1383 reason = "STATUS_TRANSACTION_INVALID_ID";
1384 break;
1385 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_INVALID_TYPE:
1386 reason = "STATUS_TRANSACTION_INVALID_TYPE";
1387 break;
1388 case MD_NTSTATUS_WIN_STATUS_NOT_SERVER_SESSION:
1389 reason = "STATUS_NOT_SERVER_SESSION";
1390 break;
1391 case MD_NTSTATUS_WIN_STATUS_NOT_CLIENT_SESSION:
1392 reason = "STATUS_NOT_CLIENT_SESSION";
1393 break;
1394 case MD_NTSTATUS_WIN_STATUS_CANNOT_LOAD_REGISTRY_FILE:
1395 reason = "STATUS_CANNOT_LOAD_REGISTRY_FILE";
1396 break;
1397 case MD_NTSTATUS_WIN_STATUS_DEBUG_ATTACH_FAILED:
1398 reason = "STATUS_DEBUG_ATTACH_FAILED";
1399 break;
1400 case MD_NTSTATUS_WIN_STATUS_SYSTEM_PROCESS_TERMINATED:
1401 reason = "STATUS_SYSTEM_PROCESS_TERMINATED";
1402 break;
1403 case MD_NTSTATUS_WIN_STATUS_DATA_NOT_ACCEPTED:
1404 reason = "STATUS_DATA_NOT_ACCEPTED";
1405 break;
1406 case MD_NTSTATUS_WIN_STATUS_NO_BROWSER_SERVERS_FOUND:
1407 reason = "STATUS_NO_BROWSER_SERVERS_FOUND";
1408 break;
1409 case MD_NTSTATUS_WIN_STATUS_VDM_HARD_ERROR:
1410 reason = "STATUS_VDM_HARD_ERROR";
1411 break;
1412 case MD_NTSTATUS_WIN_STATUS_DRIVER_CANCEL_TIMEOUT:
1413 reason = "STATUS_DRIVER_CANCEL_TIMEOUT";
1414 break;
1415 case MD_NTSTATUS_WIN_STATUS_REPLY_MESSAGE_MISMATCH:
1416 reason = "STATUS_REPLY_MESSAGE_MISMATCH";
1417 break;
1418 case MD_NTSTATUS_WIN_STATUS_MAPPED_ALIGNMENT:
1419 reason = "STATUS_MAPPED_ALIGNMENT";
1420 break;
1421 case MD_NTSTATUS_WIN_STATUS_IMAGE_CHECKSUM_MISMATCH:
1422 reason = "STATUS_IMAGE_CHECKSUM_MISMATCH";
1423 break;
1424 case MD_NTSTATUS_WIN_STATUS_LOST_WRITEBEHIND_DATA:
1425 reason = "STATUS_LOST_WRITEBEHIND_DATA";
1426 break;
1427 case MD_NTSTATUS_WIN_STATUS_CLIENT_SERVER_PARAMETERS_INVALID:
1428 reason = "STATUS_CLIENT_SERVER_PARAMETERS_INVALID";
1429 break;
1430 case MD_NTSTATUS_WIN_STATUS_PASSWORD_MUST_CHANGE:
1431 reason = "STATUS_PASSWORD_MUST_CHANGE";
1432 break;
1433 case MD_NTSTATUS_WIN_STATUS_NOT_FOUND:
1434 reason = "STATUS_NOT_FOUND";
1435 break;
1436 case MD_NTSTATUS_WIN_STATUS_NOT_TINY_STREAM:
1437 reason = "STATUS_NOT_TINY_STREAM";
1438 break;
1439 case MD_NTSTATUS_WIN_STATUS_RECOVERY_FAILURE:
1440 reason = "STATUS_RECOVERY_FAILURE";
1441 break;
1442 case MD_NTSTATUS_WIN_STATUS_STACK_OVERFLOW_READ:
1443 reason = "STATUS_STACK_OVERFLOW_READ";
1444 break;
1445 case MD_NTSTATUS_WIN_STATUS_FAIL_CHECK:
1446 reason = "STATUS_FAIL_CHECK";
1447 break;
1448 case MD_NTSTATUS_WIN_STATUS_DUPLICATE_OBJECTID:
1449 reason = "STATUS_DUPLICATE_OBJECTID";
1450 break;
1451 case MD_NTSTATUS_WIN_STATUS_OBJECTID_EXISTS:
1452 reason = "STATUS_OBJECTID_EXISTS";
1453 break;
1454 case MD_NTSTATUS_WIN_STATUS_CONVERT_TO_LARGE:
1455 reason = "STATUS_CONVERT_TO_LARGE";
1456 break;
1457 case MD_NTSTATUS_WIN_STATUS_RETRY:
1458 reason = "STATUS_RETRY";
1459 break;
1460 case MD_NTSTATUS_WIN_STATUS_FOUND_OUT_OF_SCOPE:
1461 reason = "STATUS_FOUND_OUT_OF_SCOPE";
1462 break;
1463 case MD_NTSTATUS_WIN_STATUS_ALLOCATE_BUCKET:
1464 reason = "STATUS_ALLOCATE_BUCKET";
1465 break;
1466 case MD_NTSTATUS_WIN_STATUS_PROPSET_NOT_FOUND:
1467 reason = "STATUS_PROPSET_NOT_FOUND";
1468 break;
1469 case MD_NTSTATUS_WIN_STATUS_MARSHALL_OVERFLOW:
1470 reason = "STATUS_MARSHALL_OVERFLOW";
1471 break;
1472 case MD_NTSTATUS_WIN_STATUS_INVALID_VARIANT:
1473 reason = "STATUS_INVALID_VARIANT";
1474 break;
1475 case MD_NTSTATUS_WIN_STATUS_DOMAIN_CONTROLLER_NOT_FOUND:
1476 reason = "STATUS_DOMAIN_CONTROLLER_NOT_FOUND";
1477 break;
1478 case MD_NTSTATUS_WIN_STATUS_ACCOUNT_LOCKED_OUT:
1479 reason = "STATUS_ACCOUNT_LOCKED_OUT";
1480 break;
1481 case MD_NTSTATUS_WIN_STATUS_HANDLE_NOT_CLOSABLE:
1482 reason = "STATUS_HANDLE_NOT_CLOSABLE";
1483 break;
1484 case MD_NTSTATUS_WIN_STATUS_CONNECTION_REFUSED:
1485 reason = "STATUS_CONNECTION_REFUSED";
1486 break;
1487 case MD_NTSTATUS_WIN_STATUS_GRACEFUL_DISCONNECT:
1488 reason = "STATUS_GRACEFUL_DISCONNECT";
1489 break;
1490 case MD_NTSTATUS_WIN_STATUS_ADDRESS_ALREADY_ASSOCIATED:
1491 reason = "STATUS_ADDRESS_ALREADY_ASSOCIATED";
1492 break;
1493 case MD_NTSTATUS_WIN_STATUS_ADDRESS_NOT_ASSOCIATED:
1494 reason = "STATUS_ADDRESS_NOT_ASSOCIATED";
1495 break;
1496 case MD_NTSTATUS_WIN_STATUS_CONNECTION_INVALID:
1497 reason = "STATUS_CONNECTION_INVALID";
1498 break;
1499 case MD_NTSTATUS_WIN_STATUS_CONNECTION_ACTIVE:
1500 reason = "STATUS_CONNECTION_ACTIVE";
1501 break;
1502 case MD_NTSTATUS_WIN_STATUS_NETWORK_UNREACHABLE:
1503 reason = "STATUS_NETWORK_UNREACHABLE";
1504 break;
1505 case MD_NTSTATUS_WIN_STATUS_HOST_UNREACHABLE:
1506 reason = "STATUS_HOST_UNREACHABLE";
1507 break;
1508 case MD_NTSTATUS_WIN_STATUS_PROTOCOL_UNREACHABLE:
1509 reason = "STATUS_PROTOCOL_UNREACHABLE";
1510 break;
1511 case MD_NTSTATUS_WIN_STATUS_PORT_UNREACHABLE:
1512 reason = "STATUS_PORT_UNREACHABLE";
1513 break;
1514 case MD_NTSTATUS_WIN_STATUS_REQUEST_ABORTED:
1515 reason = "STATUS_REQUEST_ABORTED";
1516 break;
1517 case MD_NTSTATUS_WIN_STATUS_CONNECTION_ABORTED:
1518 reason = "STATUS_CONNECTION_ABORTED";
1519 break;
1520 case MD_NTSTATUS_WIN_STATUS_BAD_COMPRESSION_BUFFER:
1521 reason = "STATUS_BAD_COMPRESSION_BUFFER";
1522 break;
1523 case MD_NTSTATUS_WIN_STATUS_USER_MAPPED_FILE:
1524 reason = "STATUS_USER_MAPPED_FILE";
1525 break;
1526 case MD_NTSTATUS_WIN_STATUS_AUDIT_FAILED:
1527 reason = "STATUS_AUDIT_FAILED";
1528 break;
1529 case MD_NTSTATUS_WIN_STATUS_TIMER_RESOLUTION_NOT_SET:
1530 reason = "STATUS_TIMER_RESOLUTION_NOT_SET";
1531 break;
1532 case MD_NTSTATUS_WIN_STATUS_CONNECTION_COUNT_LIMIT:
1533 reason = "STATUS_CONNECTION_COUNT_LIMIT";
1534 break;
1535 case MD_NTSTATUS_WIN_STATUS_LOGIN_TIME_RESTRICTION:
1536 reason = "STATUS_LOGIN_TIME_RESTRICTION";
1537 break;
1538 case MD_NTSTATUS_WIN_STATUS_LOGIN_WKSTA_RESTRICTION:
1539 reason = "STATUS_LOGIN_WKSTA_RESTRICTION";
1540 break;
1541 case MD_NTSTATUS_WIN_STATUS_IMAGE_MP_UP_MISMATCH:
1542 reason = "STATUS_IMAGE_MP_UP_MISMATCH";
1543 break;
1544 case MD_NTSTATUS_WIN_STATUS_INSUFFICIENT_LOGON_INFO:
1545 reason = "STATUS_INSUFFICIENT_LOGON_INFO";
1546 break;
1547 case MD_NTSTATUS_WIN_STATUS_BAD_DLL_ENTRYPOINT:
1548 reason = "STATUS_BAD_DLL_ENTRYPOINT";
1549 break;
1550 case MD_NTSTATUS_WIN_STATUS_BAD_SERVICE_ENTRYPOINT:
1551 reason = "STATUS_BAD_SERVICE_ENTRYPOINT";
1552 break;
1553 case MD_NTSTATUS_WIN_STATUS_LPC_REPLY_LOST:
1554 reason = "STATUS_LPC_REPLY_LOST";
1555 break;
1556 case MD_NTSTATUS_WIN_STATUS_IP_ADDRESS_CONFLICT1:
1557 reason = "STATUS_IP_ADDRESS_CONFLICT1";
1558 break;
1559 case MD_NTSTATUS_WIN_STATUS_IP_ADDRESS_CONFLICT2:
1560 reason = "STATUS_IP_ADDRESS_CONFLICT2";
1561 break;
1562 case MD_NTSTATUS_WIN_STATUS_REGISTRY_QUOTA_LIMIT:
1563 reason = "STATUS_REGISTRY_QUOTA_LIMIT";
1564 break;
1565 case MD_NTSTATUS_WIN_STATUS_PATH_NOT_COVERED:
1566 reason = "STATUS_PATH_NOT_COVERED";
1567 break;
1568 case MD_NTSTATUS_WIN_STATUS_NO_CALLBACK_ACTIVE:
1569 reason = "STATUS_NO_CALLBACK_ACTIVE";
1570 break;
1571 case MD_NTSTATUS_WIN_STATUS_LICENSE_QUOTA_EXCEEDED:
1572 reason = "STATUS_LICENSE_QUOTA_EXCEEDED";
1573 break;
1574 case MD_NTSTATUS_WIN_STATUS_PWD_TOO_SHORT:
1575 reason = "STATUS_PWD_TOO_SHORT";
1576 break;
1577 case MD_NTSTATUS_WIN_STATUS_PWD_TOO_RECENT:
1578 reason = "STATUS_PWD_TOO_RECENT";
1579 break;
1580 case MD_NTSTATUS_WIN_STATUS_PWD_HISTORY_CONFLICT:
1581 reason = "STATUS_PWD_HISTORY_CONFLICT";
1582 break;
1583 case MD_NTSTATUS_WIN_STATUS_PLUGPLAY_NO_DEVICE:
1584 reason = "STATUS_PLUGPLAY_NO_DEVICE";
1585 break;
1586 case MD_NTSTATUS_WIN_STATUS_UNSUPPORTED_COMPRESSION:
1587 reason = "STATUS_UNSUPPORTED_COMPRESSION";
1588 break;
1589 case MD_NTSTATUS_WIN_STATUS_INVALID_HW_PROFILE:
1590 reason = "STATUS_INVALID_HW_PROFILE";
1591 break;
1592 case MD_NTSTATUS_WIN_STATUS_INVALID_PLUGPLAY_DEVICE_PATH:
1593 reason = "STATUS_INVALID_PLUGPLAY_DEVICE_PATH";
1594 break;
1595 case MD_NTSTATUS_WIN_STATUS_DRIVER_ORDINAL_NOT_FOUND:
1596 reason = "STATUS_DRIVER_ORDINAL_NOT_FOUND";
1597 break;
1598 case MD_NTSTATUS_WIN_STATUS_DRIVER_ENTRYPOINT_NOT_FOUND:
1599 reason = "STATUS_DRIVER_ENTRYPOINT_NOT_FOUND";
1600 break;
1601 case MD_NTSTATUS_WIN_STATUS_RESOURCE_NOT_OWNED:
1602 reason = "STATUS_RESOURCE_NOT_OWNED";
1603 break;
1604 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_LINKS:
1605 reason = "STATUS_TOO_MANY_LINKS";
1606 break;
1607 case MD_NTSTATUS_WIN_STATUS_QUOTA_LIST_INCONSISTENT:
1608 reason = "STATUS_QUOTA_LIST_INCONSISTENT";
1609 break;
1610 case MD_NTSTATUS_WIN_STATUS_FILE_IS_OFFLINE:
1611 reason = "STATUS_FILE_IS_OFFLINE";
1612 break;
1613 case MD_NTSTATUS_WIN_STATUS_EVALUATION_EXPIRATION:
1614 reason = "STATUS_EVALUATION_EXPIRATION";
1615 break;
1616 case MD_NTSTATUS_WIN_STATUS_ILLEGAL_DLL_RELOCATION:
1617 reason = "STATUS_ILLEGAL_DLL_RELOCATION";
1618 break;
1619 case MD_NTSTATUS_WIN_STATUS_LICENSE_VIOLATION:
1620 reason = "STATUS_LICENSE_VIOLATION";
1621 break;
1622 case MD_NTSTATUS_WIN_STATUS_DLL_INIT_FAILED_LOGOFF:
1623 reason = "STATUS_DLL_INIT_FAILED_LOGOFF";
1624 break;
1625 case MD_NTSTATUS_WIN_STATUS_DRIVER_UNABLE_TO_LOAD:
1626 reason = "STATUS_DRIVER_UNABLE_TO_LOAD";
1627 break;
1628 case MD_NTSTATUS_WIN_STATUS_DFS_UNAVAILABLE:
1629 reason = "STATUS_DFS_UNAVAILABLE";
1630 break;
1631 case MD_NTSTATUS_WIN_STATUS_VOLUME_DISMOUNTED:
1632 reason = "STATUS_VOLUME_DISMOUNTED";
1633 break;
1634 case MD_NTSTATUS_WIN_STATUS_WX86_INTERNAL_ERROR:
1635 reason = "STATUS_WX86_INTERNAL_ERROR";
1636 break;
1637 case MD_NTSTATUS_WIN_STATUS_WX86_FLOAT_STACK_CHECK:
1638 reason = "STATUS_WX86_FLOAT_STACK_CHECK";
1639 break;
1640 case MD_NTSTATUS_WIN_STATUS_VALIDATE_CONTINUE:
1641 reason = "STATUS_VALIDATE_CONTINUE";
1642 break;
1643 case MD_NTSTATUS_WIN_STATUS_NO_MATCH:
1644 reason = "STATUS_NO_MATCH";
1645 break;
1646 case MD_NTSTATUS_WIN_STATUS_NO_MORE_MATCHES:
1647 reason = "STATUS_NO_MORE_MATCHES";
1648 break;
1649 case MD_NTSTATUS_WIN_STATUS_NOT_A_REPARSE_POINT:
1650 reason = "STATUS_NOT_A_REPARSE_POINT";
1651 break;
1652 case MD_NTSTATUS_WIN_STATUS_IO_REPARSE_TAG_INVALID:
1653 reason = "STATUS_IO_REPARSE_TAG_INVALID";
1654 break;
1655 case MD_NTSTATUS_WIN_STATUS_IO_REPARSE_TAG_MISMATCH:
1656 reason = "STATUS_IO_REPARSE_TAG_MISMATCH";
1657 break;
1658 case MD_NTSTATUS_WIN_STATUS_IO_REPARSE_DATA_INVALID:
1659 reason = "STATUS_IO_REPARSE_DATA_INVALID";
1660 break;
1661 case MD_NTSTATUS_WIN_STATUS_IO_REPARSE_TAG_NOT_HANDLED:
1662 reason = "STATUS_IO_REPARSE_TAG_NOT_HANDLED";
1663 break;
1664 case MD_NTSTATUS_WIN_STATUS_PWD_TOO_LONG:
1665 reason = "STATUS_PWD_TOO_LONG";
1666 break;
1667 case MD_NTSTATUS_WIN_STATUS_STOWED_EXCEPTION:
1668 reason = "STATUS_STOWED_EXCEPTION";
1669 break;
1670 case MD_NTSTATUS_WIN_STATUS_REPARSE_POINT_NOT_RESOLVED:
1671 reason = "STATUS_REPARSE_POINT_NOT_RESOLVED";
1672 break;
1673 case MD_NTSTATUS_WIN_STATUS_DIRECTORY_IS_A_REPARSE_POINT:
1674 reason = "STATUS_DIRECTORY_IS_A_REPARSE_POINT";
1675 break;
1676 case MD_NTSTATUS_WIN_STATUS_RANGE_LIST_CONFLICT:
1677 reason = "STATUS_RANGE_LIST_CONFLICT";
1678 break;
1679 case MD_NTSTATUS_WIN_STATUS_SOURCE_ELEMENT_EMPTY:
1680 reason = "STATUS_SOURCE_ELEMENT_EMPTY";
1681 break;
1682 case MD_NTSTATUS_WIN_STATUS_DESTINATION_ELEMENT_FULL:
1683 reason = "STATUS_DESTINATION_ELEMENT_FULL";
1684 break;
1685 case MD_NTSTATUS_WIN_STATUS_ILLEGAL_ELEMENT_ADDRESS:
1686 reason = "STATUS_ILLEGAL_ELEMENT_ADDRESS";
1687 break;
1688 case MD_NTSTATUS_WIN_STATUS_MAGAZINE_NOT_PRESENT:
1689 reason = "STATUS_MAGAZINE_NOT_PRESENT";
1690 break;
1691 case MD_NTSTATUS_WIN_STATUS_REINITIALIZATION_NEEDED:
1692 reason = "STATUS_REINITIALIZATION_NEEDED";
1693 break;
1694 case MD_NTSTATUS_WIN_STATUS_ENCRYPTION_FAILED:
1695 reason = "STATUS_ENCRYPTION_FAILED";
1696 break;
1697 case MD_NTSTATUS_WIN_STATUS_DECRYPTION_FAILED:
1698 reason = "STATUS_DECRYPTION_FAILED";
1699 break;
1700 case MD_NTSTATUS_WIN_STATUS_RANGE_NOT_FOUND:
1701 reason = "STATUS_RANGE_NOT_FOUND";
1702 break;
1703 case MD_NTSTATUS_WIN_STATUS_NO_RECOVERY_POLICY:
1704 reason = "STATUS_NO_RECOVERY_POLICY";
1705 break;
1706 case MD_NTSTATUS_WIN_STATUS_NO_EFS:
1707 reason = "STATUS_NO_EFS";
1708 break;
1709 case MD_NTSTATUS_WIN_STATUS_WRONG_EFS:
1710 reason = "STATUS_WRONG_EFS";
1711 break;
1712 case MD_NTSTATUS_WIN_STATUS_NO_USER_KEYS:
1713 reason = "STATUS_NO_USER_KEYS";
1714 break;
1715 case MD_NTSTATUS_WIN_STATUS_FILE_NOT_ENCRYPTED:
1716 reason = "STATUS_FILE_NOT_ENCRYPTED";
1717 break;
1718 case MD_NTSTATUS_WIN_STATUS_NOT_EXPORT_FORMAT:
1719 reason = "STATUS_NOT_EXPORT_FORMAT";
1720 break;
1721 case MD_NTSTATUS_WIN_STATUS_FILE_ENCRYPTED:
1722 reason = "STATUS_FILE_ENCRYPTED";
1723 break;
1724 case MD_NTSTATUS_WIN_STATUS_WMI_GUID_NOT_FOUND:
1725 reason = "STATUS_WMI_GUID_NOT_FOUND";
1726 break;
1727 case MD_NTSTATUS_WIN_STATUS_WMI_INSTANCE_NOT_FOUND:
1728 reason = "STATUS_WMI_INSTANCE_NOT_FOUND";
1729 break;
1730 case MD_NTSTATUS_WIN_STATUS_WMI_ITEMID_NOT_FOUND:
1731 reason = "STATUS_WMI_ITEMID_NOT_FOUND";
1732 break;
1733 case MD_NTSTATUS_WIN_STATUS_WMI_TRY_AGAIN:
1734 reason = "STATUS_WMI_TRY_AGAIN";
1735 break;
1736 case MD_NTSTATUS_WIN_STATUS_SHARED_POLICY:
1737 reason = "STATUS_SHARED_POLICY";
1738 break;
1739 case MD_NTSTATUS_WIN_STATUS_POLICY_OBJECT_NOT_FOUND:
1740 reason = "STATUS_POLICY_OBJECT_NOT_FOUND";
1741 break;
1742 case MD_NTSTATUS_WIN_STATUS_POLICY_ONLY_IN_DS:
1743 reason = "STATUS_POLICY_ONLY_IN_DS";
1744 break;
1745 case MD_NTSTATUS_WIN_STATUS_VOLUME_NOT_UPGRADED:
1746 reason = "STATUS_VOLUME_NOT_UPGRADED";
1747 break;
1748 case MD_NTSTATUS_WIN_STATUS_REMOTE_STORAGE_NOT_ACTIVE:
1749 reason = "STATUS_REMOTE_STORAGE_NOT_ACTIVE";
1750 break;
1751 case MD_NTSTATUS_WIN_STATUS_REMOTE_STORAGE_MEDIA_ERROR:
1752 reason = "STATUS_REMOTE_STORAGE_MEDIA_ERROR";
1753 break;
1754 case MD_NTSTATUS_WIN_STATUS_NO_TRACKING_SERVICE:
1755 reason = "STATUS_NO_TRACKING_SERVICE";
1756 break;
1757 case MD_NTSTATUS_WIN_STATUS_SERVER_SID_MISMATCH:
1758 reason = "STATUS_SERVER_SID_MISMATCH";
1759 break;
1760 case MD_NTSTATUS_WIN_STATUS_DS_NO_ATTRIBUTE_OR_VALUE:
1761 reason = "STATUS_DS_NO_ATTRIBUTE_OR_VALUE";
1762 break;
1763 case MD_NTSTATUS_WIN_STATUS_DS_INVALID_ATTRIBUTE_SYNTAX:
1764 reason = "STATUS_DS_INVALID_ATTRIBUTE_SYNTAX";
1765 break;
1766 case MD_NTSTATUS_WIN_STATUS_DS_ATTRIBUTE_TYPE_UNDEFINED:
1767 reason = "STATUS_DS_ATTRIBUTE_TYPE_UNDEFINED";
1768 break;
1769 case MD_NTSTATUS_WIN_STATUS_DS_ATTRIBUTE_OR_VALUE_EXISTS:
1770 reason = "STATUS_DS_ATTRIBUTE_OR_VALUE_EXISTS";
1771 break;
1772 case MD_NTSTATUS_WIN_STATUS_DS_BUSY:
1773 reason = "STATUS_DS_BUSY";
1774 break;
1775 case MD_NTSTATUS_WIN_STATUS_DS_UNAVAILABLE:
1776 reason = "STATUS_DS_UNAVAILABLE";
1777 break;
1778 case MD_NTSTATUS_WIN_STATUS_DS_NO_RIDS_ALLOCATED:
1779 reason = "STATUS_DS_NO_RIDS_ALLOCATED";
1780 break;
1781 case MD_NTSTATUS_WIN_STATUS_DS_NO_MORE_RIDS:
1782 reason = "STATUS_DS_NO_MORE_RIDS";
1783 break;
1784 case MD_NTSTATUS_WIN_STATUS_DS_INCORRECT_ROLE_OWNER:
1785 reason = "STATUS_DS_INCORRECT_ROLE_OWNER";
1786 break;
1787 case MD_NTSTATUS_WIN_STATUS_DS_RIDMGR_INIT_ERROR:
1788 reason = "STATUS_DS_RIDMGR_INIT_ERROR";
1789 break;
1790 case MD_NTSTATUS_WIN_STATUS_DS_OBJ_CLASS_VIOLATION:
1791 reason = "STATUS_DS_OBJ_CLASS_VIOLATION";
1792 break;
1793 case MD_NTSTATUS_WIN_STATUS_DS_CANT_ON_NON_LEAF:
1794 reason = "STATUS_DS_CANT_ON_NON_LEAF";
1795 break;
1796 case MD_NTSTATUS_WIN_STATUS_DS_CANT_ON_RDN:
1797 reason = "STATUS_DS_CANT_ON_RDN";
1798 break;
1799 case MD_NTSTATUS_WIN_STATUS_DS_CANT_MOD_OBJ_CLASS:
1800 reason = "STATUS_DS_CANT_MOD_OBJ_CLASS";
1801 break;
1802 case MD_NTSTATUS_WIN_STATUS_DS_CROSS_DOM_MOVE_FAILED:
1803 reason = "STATUS_DS_CROSS_DOM_MOVE_FAILED";
1804 break;
1805 case MD_NTSTATUS_WIN_STATUS_DS_GC_NOT_AVAILABLE:
1806 reason = "STATUS_DS_GC_NOT_AVAILABLE";
1807 break;
1808 case MD_NTSTATUS_WIN_STATUS_DIRECTORY_SERVICE_REQUIRED:
1809 reason = "STATUS_DIRECTORY_SERVICE_REQUIRED";
1810 break;
1811 case MD_NTSTATUS_WIN_STATUS_REPARSE_ATTRIBUTE_CONFLICT:
1812 reason = "STATUS_REPARSE_ATTRIBUTE_CONFLICT";
1813 break;
1814 case MD_NTSTATUS_WIN_STATUS_CANT_ENABLE_DENY_ONLY:
1815 reason = "STATUS_CANT_ENABLE_DENY_ONLY";
1816 break;
1817 case MD_NTSTATUS_WIN_STATUS_FLOAT_MULTIPLE_FAULTS:
1818 reason = "STATUS_FLOAT_MULTIPLE_FAULTS";
1819 break;
1820 case MD_NTSTATUS_WIN_STATUS_FLOAT_MULTIPLE_TRAPS:
1821 reason = "STATUS_FLOAT_MULTIPLE_TRAPS";
1822 break;
1823 case MD_NTSTATUS_WIN_STATUS_DEVICE_REMOVED:
1824 reason = "STATUS_DEVICE_REMOVED";
1825 break;
1826 case MD_NTSTATUS_WIN_STATUS_JOURNAL_DELETE_IN_PROGRESS:
1827 reason = "STATUS_JOURNAL_DELETE_IN_PROGRESS";
1828 break;
1829 case MD_NTSTATUS_WIN_STATUS_JOURNAL_NOT_ACTIVE:
1830 reason = "STATUS_JOURNAL_NOT_ACTIVE";
1831 break;
1832 case MD_NTSTATUS_WIN_STATUS_NOINTERFACE:
1833 reason = "STATUS_NOINTERFACE";
1834 break;
1835 case MD_NTSTATUS_WIN_STATUS_DS_RIDMGR_DISABLED:
1836 reason = "STATUS_DS_RIDMGR_DISABLED";
1837 break;
1838 case MD_NTSTATUS_WIN_STATUS_DS_ADMIN_LIMIT_EXCEEDED:
1839 reason = "STATUS_DS_ADMIN_LIMIT_EXCEEDED";
1840 break;
1841 case MD_NTSTATUS_WIN_STATUS_DRIVER_FAILED_SLEEP:
1842 reason = "STATUS_DRIVER_FAILED_SLEEP";
1843 break;
1844 case MD_NTSTATUS_WIN_STATUS_MUTUAL_AUTHENTICATION_FAILED:
1845 reason = "STATUS_MUTUAL_AUTHENTICATION_FAILED";
1846 break;
1847 case MD_NTSTATUS_WIN_STATUS_CORRUPT_SYSTEM_FILE:
1848 reason = "STATUS_CORRUPT_SYSTEM_FILE";
1849 break;
1850 case MD_NTSTATUS_WIN_STATUS_DATATYPE_MISALIGNMENT_ERROR:
1851 reason = "STATUS_DATATYPE_MISALIGNMENT_ERROR";
1852 break;
1853 case MD_NTSTATUS_WIN_STATUS_WMI_READ_ONLY:
1854 reason = "STATUS_WMI_READ_ONLY";
1855 break;
1856 case MD_NTSTATUS_WIN_STATUS_WMI_SET_FAILURE:
1857 reason = "STATUS_WMI_SET_FAILURE";
1858 break;
1859 case MD_NTSTATUS_WIN_STATUS_COMMITMENT_MINIMUM:
1860 reason = "STATUS_COMMITMENT_MINIMUM";
1861 break;
1862 case MD_NTSTATUS_WIN_STATUS_REG_NAT_CONSUMPTION:
1863 reason = "STATUS_REG_NAT_CONSUMPTION";
1864 break;
1865 case MD_NTSTATUS_WIN_STATUS_TRANSPORT_FULL:
1866 reason = "STATUS_TRANSPORT_FULL";
1867 break;
1868 case MD_NTSTATUS_WIN_STATUS_DS_SAM_INIT_FAILURE:
1869 reason = "STATUS_DS_SAM_INIT_FAILURE";
1870 break;
1871 case MD_NTSTATUS_WIN_STATUS_ONLY_IF_CONNECTED:
1872 reason = "STATUS_ONLY_IF_CONNECTED";
1873 break;
1874 case MD_NTSTATUS_WIN_STATUS_DS_SENSITIVE_GROUP_VIOLATION:
1875 reason = "STATUS_DS_SENSITIVE_GROUP_VIOLATION";
1876 break;
1877 case MD_NTSTATUS_WIN_STATUS_PNP_RESTART_ENUMERATION:
1878 reason = "STATUS_PNP_RESTART_ENUMERATION";
1879 break;
1880 case MD_NTSTATUS_WIN_STATUS_JOURNAL_ENTRY_DELETED:
1881 reason = "STATUS_JOURNAL_ENTRY_DELETED";
1882 break;
1883 case MD_NTSTATUS_WIN_STATUS_DS_CANT_MOD_PRIMARYGROUPID:
1884 reason = "STATUS_DS_CANT_MOD_PRIMARYGROUPID";
1885 break;
1886 case MD_NTSTATUS_WIN_STATUS_SYSTEM_IMAGE_BAD_SIGNATURE:
1887 reason = "STATUS_SYSTEM_IMAGE_BAD_SIGNATURE";
1888 break;
1889 case MD_NTSTATUS_WIN_STATUS_PNP_REBOOT_REQUIRED:
1890 reason = "STATUS_PNP_REBOOT_REQUIRED";
1891 break;
1892 case MD_NTSTATUS_WIN_STATUS_POWER_STATE_INVALID:
1893 reason = "STATUS_POWER_STATE_INVALID";
1894 break;
1895 case MD_NTSTATUS_WIN_STATUS_DS_INVALID_GROUP_TYPE:
1896 reason = "STATUS_DS_INVALID_GROUP_TYPE";
1897 break;
1898 case MD_NTSTATUS_WIN_STATUS_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN:
1899 reason = "STATUS_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN";
1900 break;
1901 case MD_NTSTATUS_WIN_STATUS_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN:
1902 reason = "STATUS_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN";
1903 break;
1904 case MD_NTSTATUS_WIN_STATUS_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER:
1905 reason = "STATUS_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER";
1906 break;
1907 case MD_NTSTATUS_WIN_STATUS_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER:
1908 reason = "STATUS_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER";
1909 break;
1910 case MD_NTSTATUS_WIN_STATUS_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER:
1911 reason = "STATUS_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER";
1912 break;
1913 case MD_NTSTATUS_WIN_STATUS_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER:
1914 reason = "STATUS_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER";
1915 break;
1916 case MD_NTSTATUS_WIN_STATUS_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER:
1917 reason = "STATUS_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER";
1918 break;
1919 case MD_NTSTATUS_WIN_STATUS_DS_HAVE_PRIMARY_MEMBERS:
1920 reason = "STATUS_DS_HAVE_PRIMARY_MEMBERS";
1921 break;
1922 case MD_NTSTATUS_WIN_STATUS_WMI_NOT_SUPPORTED:
1923 reason = "STATUS_WMI_NOT_SUPPORTED";
1924 break;
1925 case MD_NTSTATUS_WIN_STATUS_INSUFFICIENT_POWER:
1926 reason = "STATUS_INSUFFICIENT_POWER";
1927 break;
1928 case MD_NTSTATUS_WIN_STATUS_SAM_NEED_BOOTKEY_PASSWORD:
1929 reason = "STATUS_SAM_NEED_BOOTKEY_PASSWORD";
1930 break;
1931 case MD_NTSTATUS_WIN_STATUS_SAM_NEED_BOOTKEY_FLOPPY:
1932 reason = "STATUS_SAM_NEED_BOOTKEY_FLOPPY";
1933 break;
1934 case MD_NTSTATUS_WIN_STATUS_DS_CANT_START:
1935 reason = "STATUS_DS_CANT_START";
1936 break;
1937 case MD_NTSTATUS_WIN_STATUS_DS_INIT_FAILURE:
1938 reason = "STATUS_DS_INIT_FAILURE";
1939 break;
1940 case MD_NTSTATUS_WIN_STATUS_SAM_INIT_FAILURE:
1941 reason = "STATUS_SAM_INIT_FAILURE";
1942 break;
1943 case MD_NTSTATUS_WIN_STATUS_DS_GC_REQUIRED:
1944 reason = "STATUS_DS_GC_REQUIRED";
1945 break;
1946 case MD_NTSTATUS_WIN_STATUS_DS_LOCAL_MEMBER_OF_LOCAL_ONLY:
1947 reason = "STATUS_DS_LOCAL_MEMBER_OF_LOCAL_ONLY";
1948 break;
1949 case MD_NTSTATUS_WIN_STATUS_DS_NO_FPO_IN_UNIVERSAL_GROUPS:
1950 reason = "STATUS_DS_NO_FPO_IN_UNIVERSAL_GROUPS";
1951 break;
1952 case MD_NTSTATUS_WIN_STATUS_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED:
1953 reason = "STATUS_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED";
1954 break;
1955 case MD_NTSTATUS_WIN_STATUS_MULTIPLE_FAULT_VIOLATION:
1956 reason = "STATUS_MULTIPLE_FAULT_VIOLATION";
1957 break;
1958 case MD_NTSTATUS_WIN_STATUS_CURRENT_DOMAIN_NOT_ALLOWED:
1959 reason = "STATUS_CURRENT_DOMAIN_NOT_ALLOWED";
1960 break;
1961 case MD_NTSTATUS_WIN_STATUS_CANNOT_MAKE:
1962 reason = "STATUS_CANNOT_MAKE";
1963 break;
1964 case MD_NTSTATUS_WIN_STATUS_SYSTEM_SHUTDOWN:
1965 reason = "STATUS_SYSTEM_SHUTDOWN";
1966 break;
1967 case MD_NTSTATUS_WIN_STATUS_DS_INIT_FAILURE_CONSOLE:
1968 reason = "STATUS_DS_INIT_FAILURE_CONSOLE";
1969 break;
1970 case MD_NTSTATUS_WIN_STATUS_DS_SAM_INIT_FAILURE_CONSOLE:
1971 reason = "STATUS_DS_SAM_INIT_FAILURE_CONSOLE";
1972 break;
1973 case MD_NTSTATUS_WIN_STATUS_UNFINISHED_CONTEXT_DELETED:
1974 reason = "STATUS_UNFINISHED_CONTEXT_DELETED";
1975 break;
1976 case MD_NTSTATUS_WIN_STATUS_NO_TGT_REPLY:
1977 reason = "STATUS_NO_TGT_REPLY";
1978 break;
1979 case MD_NTSTATUS_WIN_STATUS_OBJECTID_NOT_FOUND:
1980 reason = "STATUS_OBJECTID_NOT_FOUND";
1981 break;
1982 case MD_NTSTATUS_WIN_STATUS_NO_IP_ADDRESSES:
1983 reason = "STATUS_NO_IP_ADDRESSES";
1984 break;
1985 case MD_NTSTATUS_WIN_STATUS_WRONG_CREDENTIAL_HANDLE:
1986 reason = "STATUS_WRONG_CREDENTIAL_HANDLE";
1987 break;
1988 case MD_NTSTATUS_WIN_STATUS_CRYPTO_SYSTEM_INVALID:
1989 reason = "STATUS_CRYPTO_SYSTEM_INVALID";
1990 break;
1991 case MD_NTSTATUS_WIN_STATUS_MAX_REFERRALS_EXCEEDED:
1992 reason = "STATUS_MAX_REFERRALS_EXCEEDED";
1993 break;
1994 case MD_NTSTATUS_WIN_STATUS_MUST_BE_KDC:
1995 reason = "STATUS_MUST_BE_KDC";
1996 break;
1997 case MD_NTSTATUS_WIN_STATUS_STRONG_CRYPTO_NOT_SUPPORTED:
1998 reason = "STATUS_STRONG_CRYPTO_NOT_SUPPORTED";
1999 break;
2000 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_PRINCIPALS:
2001 reason = "STATUS_TOO_MANY_PRINCIPALS";
2002 break;
2003 case MD_NTSTATUS_WIN_STATUS_NO_PA_DATA:
2004 reason = "STATUS_NO_PA_DATA";
2005 break;
2006 case MD_NTSTATUS_WIN_STATUS_PKINIT_NAME_MISMATCH:
2007 reason = "STATUS_PKINIT_NAME_MISMATCH";
2008 break;
2009 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_LOGON_REQUIRED:
2010 reason = "STATUS_SMARTCARD_LOGON_REQUIRED";
2011 break;
2012 case MD_NTSTATUS_WIN_STATUS_KDC_INVALID_REQUEST:
2013 reason = "STATUS_KDC_INVALID_REQUEST";
2014 break;
2015 case MD_NTSTATUS_WIN_STATUS_KDC_UNABLE_TO_REFER:
2016 reason = "STATUS_KDC_UNABLE_TO_REFER";
2017 break;
2018 case MD_NTSTATUS_WIN_STATUS_KDC_UNKNOWN_ETYPE:
2019 reason = "STATUS_KDC_UNKNOWN_ETYPE";
2020 break;
2021 case MD_NTSTATUS_WIN_STATUS_SHUTDOWN_IN_PROGRESS:
2022 reason = "STATUS_SHUTDOWN_IN_PROGRESS";
2023 break;
2024 case MD_NTSTATUS_WIN_STATUS_SERVER_SHUTDOWN_IN_PROGRESS:
2025 reason = "STATUS_SERVER_SHUTDOWN_IN_PROGRESS";
2026 break;
2027 case MD_NTSTATUS_WIN_STATUS_NOT_SUPPORTED_ON_SBS:
2028 reason = "STATUS_NOT_SUPPORTED_ON_SBS";
2029 break;
2030 case MD_NTSTATUS_WIN_STATUS_WMI_GUID_DISCONNECTED:
2031 reason = "STATUS_WMI_GUID_DISCONNECTED";
2032 break;
2033 case MD_NTSTATUS_WIN_STATUS_WMI_ALREADY_DISABLED:
2034 reason = "STATUS_WMI_ALREADY_DISABLED";
2035 break;
2036 case MD_NTSTATUS_WIN_STATUS_WMI_ALREADY_ENABLED:
2037 reason = "STATUS_WMI_ALREADY_ENABLED";
2038 break;
2039 case MD_NTSTATUS_WIN_STATUS_MFT_TOO_FRAGMENTED:
2040 reason = "STATUS_MFT_TOO_FRAGMENTED";
2041 break;
2042 case MD_NTSTATUS_WIN_STATUS_COPY_PROTECTION_FAILURE:
2043 reason = "STATUS_COPY_PROTECTION_FAILURE";
2044 break;
2045 case MD_NTSTATUS_WIN_STATUS_CSS_AUTHENTICATION_FAILURE:
2046 reason = "STATUS_CSS_AUTHENTICATION_FAILURE";
2047 break;
2048 case MD_NTSTATUS_WIN_STATUS_CSS_KEY_NOT_PRESENT:
2049 reason = "STATUS_CSS_KEY_NOT_PRESENT";
2050 break;
2051 case MD_NTSTATUS_WIN_STATUS_CSS_KEY_NOT_ESTABLISHED:
2052 reason = "STATUS_CSS_KEY_NOT_ESTABLISHED";
2053 break;
2054 case MD_NTSTATUS_WIN_STATUS_CSS_SCRAMBLED_SECTOR:
2055 reason = "STATUS_CSS_SCRAMBLED_SECTOR";
2056 break;
2057 case MD_NTSTATUS_WIN_STATUS_CSS_REGION_MISMATCH:
2058 reason = "STATUS_CSS_REGION_MISMATCH";
2059 break;
2060 case MD_NTSTATUS_WIN_STATUS_CSS_RESETS_EXHAUSTED:
2061 reason = "STATUS_CSS_RESETS_EXHAUSTED";
2062 break;
2063 case MD_NTSTATUS_WIN_STATUS_PASSWORD_CHANGE_REQUIRED:
2064 reason = "STATUS_PASSWORD_CHANGE_REQUIRED";
2065 break;
2066 case MD_NTSTATUS_WIN_STATUS_PKINIT_FAILURE:
2067 reason = "STATUS_PKINIT_FAILURE";
2068 break;
2069 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_SUBSYSTEM_FAILURE:
2070 reason = "STATUS_SMARTCARD_SUBSYSTEM_FAILURE";
2071 break;
2072 case MD_NTSTATUS_WIN_STATUS_NO_KERB_KEY:
2073 reason = "STATUS_NO_KERB_KEY";
2074 break;
2075 case MD_NTSTATUS_WIN_STATUS_HOST_DOWN:
2076 reason = "STATUS_HOST_DOWN";
2077 break;
2078 case MD_NTSTATUS_WIN_STATUS_UNSUPPORTED_PREAUTH:
2079 reason = "STATUS_UNSUPPORTED_PREAUTH";
2080 break;
2081 case MD_NTSTATUS_WIN_STATUS_EFS_ALG_BLOB_TOO_BIG:
2082 reason = "STATUS_EFS_ALG_BLOB_TOO_BIG";
2083 break;
2084 case MD_NTSTATUS_WIN_STATUS_PORT_NOT_SET:
2085 reason = "STATUS_PORT_NOT_SET";
2086 break;
2087 case MD_NTSTATUS_WIN_STATUS_DEBUGGER_INACTIVE:
2088 reason = "STATUS_DEBUGGER_INACTIVE";
2089 break;
2090 case MD_NTSTATUS_WIN_STATUS_DS_VERSION_CHECK_FAILURE:
2091 reason = "STATUS_DS_VERSION_CHECK_FAILURE";
2092 break;
2093 case MD_NTSTATUS_WIN_STATUS_AUDITING_DISABLED:
2094 reason = "STATUS_AUDITING_DISABLED";
2095 break;
2096 case MD_NTSTATUS_WIN_STATUS_PRENT4_MACHINE_ACCOUNT:
2097 reason = "STATUS_PRENT4_MACHINE_ACCOUNT";
2098 break;
2099 case MD_NTSTATUS_WIN_STATUS_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER:
2100 reason = "STATUS_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER";
2101 break;
2102 case MD_NTSTATUS_WIN_STATUS_INVALID_IMAGE_WIN_32:
2103 reason = "STATUS_INVALID_IMAGE_WIN_32";
2104 break;
2105 case MD_NTSTATUS_WIN_STATUS_INVALID_IMAGE_WIN_64:
2106 reason = "STATUS_INVALID_IMAGE_WIN_64";
2107 break;
2108 case MD_NTSTATUS_WIN_STATUS_BAD_BINDINGS:
2109 reason = "STATUS_BAD_BINDINGS";
2110 break;
2111 case MD_NTSTATUS_WIN_STATUS_NETWORK_SESSION_EXPIRED:
2112 reason = "STATUS_NETWORK_SESSION_EXPIRED";
2113 break;
2114 case MD_NTSTATUS_WIN_STATUS_APPHELP_BLOCK:
2115 reason = "STATUS_APPHELP_BLOCK";
2116 break;
2117 case MD_NTSTATUS_WIN_STATUS_ALL_SIDS_FILTERED:
2118 reason = "STATUS_ALL_SIDS_FILTERED";
2119 break;
2120 case MD_NTSTATUS_WIN_STATUS_NOT_SAFE_MODE_DRIVER:
2121 reason = "STATUS_NOT_SAFE_MODE_DRIVER";
2122 break;
2123 case MD_NTSTATUS_WIN_STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT:
2124 reason = "STATUS_ACCESS_DISABLED_BY_POLICY_DEFAULT";
2125 break;
2126 case MD_NTSTATUS_WIN_STATUS_ACCESS_DISABLED_BY_POLICY_PATH:
2127 reason = "STATUS_ACCESS_DISABLED_BY_POLICY_PATH";
2128 break;
2129 case MD_NTSTATUS_WIN_STATUS_ACCESS_DISABLED_BY_POLICY_PUBLISHER:
2130 reason = "STATUS_ACCESS_DISABLED_BY_POLICY_PUBLISHER";
2131 break;
2132 case MD_NTSTATUS_WIN_STATUS_ACCESS_DISABLED_BY_POLICY_OTHER:
2133 reason = "STATUS_ACCESS_DISABLED_BY_POLICY_OTHER";
2134 break;
2135 case MD_NTSTATUS_WIN_STATUS_FAILED_DRIVER_ENTRY:
2136 reason = "STATUS_FAILED_DRIVER_ENTRY";
2137 break;
2138 case MD_NTSTATUS_WIN_STATUS_DEVICE_ENUMERATION_ERROR:
2139 reason = "STATUS_DEVICE_ENUMERATION_ERROR";
2140 break;
2141 case MD_NTSTATUS_WIN_STATUS_MOUNT_POINT_NOT_RESOLVED:
2142 reason = "STATUS_MOUNT_POINT_NOT_RESOLVED";
2143 break;
2144 case MD_NTSTATUS_WIN_STATUS_INVALID_DEVICE_OBJECT_PARAMETER:
2145 reason = "STATUS_INVALID_DEVICE_OBJECT_PARAMETER";
2146 break;
2147 case MD_NTSTATUS_WIN_STATUS_MCA_OCCURED:
2148 reason = "STATUS_MCA_OCCURED";
2149 break;
2150 case MD_NTSTATUS_WIN_STATUS_DRIVER_BLOCKED_CRITICAL:
2151 reason = "STATUS_DRIVER_BLOCKED_CRITICAL";
2152 break;
2153 case MD_NTSTATUS_WIN_STATUS_DRIVER_BLOCKED:
2154 reason = "STATUS_DRIVER_BLOCKED";
2155 break;
2156 case MD_NTSTATUS_WIN_STATUS_DRIVER_DATABASE_ERROR:
2157 reason = "STATUS_DRIVER_DATABASE_ERROR";
2158 break;
2159 case MD_NTSTATUS_WIN_STATUS_SYSTEM_HIVE_TOO_LARGE:
2160 reason = "STATUS_SYSTEM_HIVE_TOO_LARGE";
2161 break;
2162 case MD_NTSTATUS_WIN_STATUS_INVALID_IMPORT_OF_NON_DLL:
2163 reason = "STATUS_INVALID_IMPORT_OF_NON_DLL";
2164 break;
2165 case MD_NTSTATUS_WIN_STATUS_NO_SECRETS:
2166 reason = "STATUS_NO_SECRETS";
2167 break;
2168 case MD_NTSTATUS_WIN_STATUS_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY:
2169 reason = "STATUS_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY";
2170 break;
2171 case MD_NTSTATUS_WIN_STATUS_FAILED_STACK_SWITCH:
2172 reason = "STATUS_FAILED_STACK_SWITCH";
2173 break;
2174 case MD_NTSTATUS_WIN_STATUS_HEAP_CORRUPTION:
2175 reason = "STATUS_HEAP_CORRUPTION";
2176 break;
2177 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_WRONG_PIN:
2178 reason = "STATUS_SMARTCARD_WRONG_PIN";
2179 break;
2180 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_CARD_BLOCKED:
2181 reason = "STATUS_SMARTCARD_CARD_BLOCKED";
2182 break;
2183 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_CARD_NOT_AUTHENTICATED:
2184 reason = "STATUS_SMARTCARD_CARD_NOT_AUTHENTICATED";
2185 break;
2186 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_NO_CARD:
2187 reason = "STATUS_SMARTCARD_NO_CARD";
2188 break;
2189 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_NO_KEY_CONTAINER:
2190 reason = "STATUS_SMARTCARD_NO_KEY_CONTAINER";
2191 break;
2192 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_NO_CERTIFICATE:
2193 reason = "STATUS_SMARTCARD_NO_CERTIFICATE";
2194 break;
2195 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_NO_KEYSET:
2196 reason = "STATUS_SMARTCARD_NO_KEYSET";
2197 break;
2198 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_IO_ERROR:
2199 reason = "STATUS_SMARTCARD_IO_ERROR";
2200 break;
2201 case MD_NTSTATUS_WIN_STATUS_DOWNGRADE_DETECTED:
2202 reason = "STATUS_DOWNGRADE_DETECTED";
2203 break;
2204 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_CERT_REVOKED:
2205 reason = "STATUS_SMARTCARD_CERT_REVOKED";
2206 break;
2207 case MD_NTSTATUS_WIN_STATUS_ISSUING_CA_UNTRUSTED:
2208 reason = "STATUS_ISSUING_CA_UNTRUSTED";
2209 break;
2210 case MD_NTSTATUS_WIN_STATUS_REVOCATION_OFFLINE_C:
2211 reason = "STATUS_REVOCATION_OFFLINE_C";
2212 break;
2213 case MD_NTSTATUS_WIN_STATUS_PKINIT_CLIENT_FAILURE:
2214 reason = "STATUS_PKINIT_CLIENT_FAILURE";
2215 break;
2216 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_CERT_EXPIRED:
2217 reason = "STATUS_SMARTCARD_CERT_EXPIRED";
2218 break;
2219 case MD_NTSTATUS_WIN_STATUS_DRIVER_FAILED_PRIOR_UNLOAD:
2220 reason = "STATUS_DRIVER_FAILED_PRIOR_UNLOAD";
2221 break;
2222 case MD_NTSTATUS_WIN_STATUS_SMARTCARD_SILENT_CONTEXT:
2223 reason = "STATUS_SMARTCARD_SILENT_CONTEXT";
2224 break;
2225 case MD_NTSTATUS_WIN_STATUS_PER_USER_TRUST_QUOTA_EXCEEDED:
2226 reason = "STATUS_PER_USER_TRUST_QUOTA_EXCEEDED";
2227 break;
2228 case MD_NTSTATUS_WIN_STATUS_ALL_USER_TRUST_QUOTA_EXCEEDED:
2229 reason = "STATUS_ALL_USER_TRUST_QUOTA_EXCEEDED";
2230 break;
2231 case MD_NTSTATUS_WIN_STATUS_USER_DELETE_TRUST_QUOTA_EXCEEDED:
2232 reason = "STATUS_USER_DELETE_TRUST_QUOTA_EXCEEDED";
2233 break;
2234 case MD_NTSTATUS_WIN_STATUS_DS_NAME_NOT_UNIQUE:
2235 reason = "STATUS_DS_NAME_NOT_UNIQUE";
2236 break;
2237 case MD_NTSTATUS_WIN_STATUS_DS_DUPLICATE_ID_FOUND:
2238 reason = "STATUS_DS_DUPLICATE_ID_FOUND";
2239 break;
2240 case MD_NTSTATUS_WIN_STATUS_DS_GROUP_CONVERSION_ERROR:
2241 reason = "STATUS_DS_GROUP_CONVERSION_ERROR";
2242 break;
2243 case MD_NTSTATUS_WIN_STATUS_VOLSNAP_PREPARE_HIBERNATE:
2244 reason = "STATUS_VOLSNAP_PREPARE_HIBERNATE";
2245 break;
2246 case MD_NTSTATUS_WIN_STATUS_USER2USER_REQUIRED:
2247 reason = "STATUS_USER2USER_REQUIRED";
2248 break;
2249 case MD_NTSTATUS_WIN_STATUS_STACK_BUFFER_OVERRUN:
2250 reason = "STATUS_STACK_BUFFER_OVERRUN";
2251 break;
2252 case MD_NTSTATUS_WIN_STATUS_NO_S4U_PROT_SUPPORT:
2253 reason = "STATUS_NO_S4U_PROT_SUPPORT";
2254 break;
2255 case MD_NTSTATUS_WIN_STATUS_CROSSREALM_DELEGATION_FAILURE:
2256 reason = "STATUS_CROSSREALM_DELEGATION_FAILURE";
2257 break;
2258 case MD_NTSTATUS_WIN_STATUS_REVOCATION_OFFLINE_KDC:
2259 reason = "STATUS_REVOCATION_OFFLINE_KDC";
2260 break;
2261 case MD_NTSTATUS_WIN_STATUS_ISSUING_CA_UNTRUSTED_KDC:
2262 reason = "STATUS_ISSUING_CA_UNTRUSTED_KDC";
2263 break;
2264 case MD_NTSTATUS_WIN_STATUS_KDC_CERT_EXPIRED:
2265 reason = "STATUS_KDC_CERT_EXPIRED";
2266 break;
2267 case MD_NTSTATUS_WIN_STATUS_KDC_CERT_REVOKED:
2268 reason = "STATUS_KDC_CERT_REVOKED";
2269 break;
2270 case MD_NTSTATUS_WIN_STATUS_PARAMETER_QUOTA_EXCEEDED:
2271 reason = "STATUS_PARAMETER_QUOTA_EXCEEDED";
2272 break;
2273 case MD_NTSTATUS_WIN_STATUS_HIBERNATION_FAILURE:
2274 reason = "STATUS_HIBERNATION_FAILURE";
2275 break;
2276 case MD_NTSTATUS_WIN_STATUS_DELAY_LOAD_FAILED:
2277 reason = "STATUS_DELAY_LOAD_FAILED";
2278 break;
2279 case MD_NTSTATUS_WIN_STATUS_AUTHENTICATION_FIREWALL_FAILED:
2280 reason = "STATUS_AUTHENTICATION_FIREWALL_FAILED";
2281 break;
2282 case MD_NTSTATUS_WIN_STATUS_VDM_DISALLOWED:
2283 reason = "STATUS_VDM_DISALLOWED";
2284 break;
2285 case MD_NTSTATUS_WIN_STATUS_HUNG_DISPLAY_DRIVER_THREAD:
2286 reason = "STATUS_HUNG_DISPLAY_DRIVER_THREAD";
2287 break;
2288 case MD_NTSTATUS_WIN_STATUS_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE:
2289 reason = "STATUS_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE";
2290 break;
2291 case MD_NTSTATUS_WIN_STATUS_INVALID_CRUNTIME_PARAMETER:
2292 reason = "STATUS_INVALID_CRUNTIME_PARAMETER";
2293 break;
2294 case MD_NTSTATUS_WIN_STATUS_NTLM_BLOCKED:
2295 reason = "STATUS_NTLM_BLOCKED";
2296 break;
2297 case MD_NTSTATUS_WIN_STATUS_DS_SRC_SID_EXISTS_IN_FOREST:
2298 reason = "STATUS_DS_SRC_SID_EXISTS_IN_FOREST";
2299 break;
2300 case MD_NTSTATUS_WIN_STATUS_DS_DOMAIN_NAME_EXISTS_IN_FOREST:
2301 reason = "STATUS_DS_DOMAIN_NAME_EXISTS_IN_FOREST";
2302 break;
2303 case MD_NTSTATUS_WIN_STATUS_DS_FLAT_NAME_EXISTS_IN_FOREST:
2304 reason = "STATUS_DS_FLAT_NAME_EXISTS_IN_FOREST";
2305 break;
2306 case MD_NTSTATUS_WIN_STATUS_INVALID_USER_PRINCIPAL_NAME:
2307 reason = "STATUS_INVALID_USER_PRINCIPAL_NAME";
2308 break;
2309 case MD_NTSTATUS_WIN_STATUS_FATAL_USER_CALLBACK_EXCEPTION:
2310 reason = "STATUS_FATAL_USER_CALLBACK_EXCEPTION";
2311 break;
2312 case MD_NTSTATUS_WIN_STATUS_ASSERTION_FAILURE:
2313 reason = "STATUS_ASSERTION_FAILURE";
2314 break;
2315 case MD_NTSTATUS_WIN_STATUS_VERIFIER_STOP:
2316 reason = "STATUS_VERIFIER_STOP";
2317 break;
2318 case MD_NTSTATUS_WIN_STATUS_CALLBACK_POP_STACK:
2319 reason = "STATUS_CALLBACK_POP_STACK";
2320 break;
2321 case MD_NTSTATUS_WIN_STATUS_INCOMPATIBLE_DRIVER_BLOCKED:
2322 reason = "STATUS_INCOMPATIBLE_DRIVER_BLOCKED";
2323 break;
2324 case MD_NTSTATUS_WIN_STATUS_HIVE_UNLOADED:
2325 reason = "STATUS_HIVE_UNLOADED";
2326 break;
2327 case MD_NTSTATUS_WIN_STATUS_COMPRESSION_DISABLED:
2328 reason = "STATUS_COMPRESSION_DISABLED";
2329 break;
2330 case MD_NTSTATUS_WIN_STATUS_FILE_SYSTEM_LIMITATION:
2331 reason = "STATUS_FILE_SYSTEM_LIMITATION";
2332 break;
2333 case MD_NTSTATUS_WIN_STATUS_INVALID_IMAGE_HASH:
2334 reason = "STATUS_INVALID_IMAGE_HASH";
2335 break;
2336 case MD_NTSTATUS_WIN_STATUS_NOT_CAPABLE:
2337 reason = "STATUS_NOT_CAPABLE";
2338 break;
2339 case MD_NTSTATUS_WIN_STATUS_REQUEST_OUT_OF_SEQUENCE:
2340 reason = "STATUS_REQUEST_OUT_OF_SEQUENCE";
2341 break;
2342 case MD_NTSTATUS_WIN_STATUS_IMPLEMENTATION_LIMIT:
2343 reason = "STATUS_IMPLEMENTATION_LIMIT";
2344 break;
2345 case MD_NTSTATUS_WIN_STATUS_ELEVATION_REQUIRED:
2346 reason = "STATUS_ELEVATION_REQUIRED";
2347 break;
2348 case MD_NTSTATUS_WIN_STATUS_NO_SECURITY_CONTEXT:
2349 reason = "STATUS_NO_SECURITY_CONTEXT";
2350 break;
2351 case MD_NTSTATUS_WIN_STATUS_PKU2U_CERT_FAILURE:
2352 reason = "STATUS_PKU2U_CERT_FAILURE";
2353 break;
2354 case MD_NTSTATUS_WIN_STATUS_BEYOND_VDL:
2355 reason = "STATUS_BEYOND_VDL";
2356 break;
2357 case MD_NTSTATUS_WIN_STATUS_ENCOUNTERED_WRITE_IN_PROGRESS:
2358 reason = "STATUS_ENCOUNTERED_WRITE_IN_PROGRESS";
2359 break;
2360 case MD_NTSTATUS_WIN_STATUS_PTE_CHANGED:
2361 reason = "STATUS_PTE_CHANGED";
2362 break;
2363 case MD_NTSTATUS_WIN_STATUS_PURGE_FAILED:
2364 reason = "STATUS_PURGE_FAILED";
2365 break;
2366 case MD_NTSTATUS_WIN_STATUS_CRED_REQUIRES_CONFIRMATION:
2367 reason = "STATUS_CRED_REQUIRES_CONFIRMATION";
2368 break;
2369 case MD_NTSTATUS_WIN_STATUS_CS_ENCRYPTION_INVALID_SERVER_RESPONSE:
2370 reason = "STATUS_CS_ENCRYPTION_INVALID_SERVER_RESPONSE";
2371 break;
2372 case MD_NTSTATUS_WIN_STATUS_CS_ENCRYPTION_UNSUPPORTED_SERVER:
2373 reason = "STATUS_CS_ENCRYPTION_UNSUPPORTED_SERVER";
2374 break;
2375 case MD_NTSTATUS_WIN_STATUS_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE:
2376 reason = "STATUS_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE";
2377 break;
2378 case MD_NTSTATUS_WIN_STATUS_CS_ENCRYPTION_NEW_ENCRYPTED_FILE:
2379 reason = "STATUS_CS_ENCRYPTION_NEW_ENCRYPTED_FILE";
2380 break;
2381 case MD_NTSTATUS_WIN_STATUS_CS_ENCRYPTION_FILE_NOT_CSE:
2382 reason = "STATUS_CS_ENCRYPTION_FILE_NOT_CSE";
2383 break;
2384 case MD_NTSTATUS_WIN_STATUS_INVALID_LABEL:
2385 reason = "STATUS_INVALID_LABEL";
2386 break;
2387 case MD_NTSTATUS_WIN_STATUS_DRIVER_PROCESS_TERMINATED:
2388 reason = "STATUS_DRIVER_PROCESS_TERMINATED";
2389 break;
2390 case MD_NTSTATUS_WIN_STATUS_AMBIGUOUS_SYSTEM_DEVICE:
2391 reason = "STATUS_AMBIGUOUS_SYSTEM_DEVICE";
2392 break;
2393 case MD_NTSTATUS_WIN_STATUS_SYSTEM_DEVICE_NOT_FOUND:
2394 reason = "STATUS_SYSTEM_DEVICE_NOT_FOUND";
2395 break;
2396 case MD_NTSTATUS_WIN_STATUS_RESTART_BOOT_APPLICATION:
2397 reason = "STATUS_RESTART_BOOT_APPLICATION";
2398 break;
2399 case MD_NTSTATUS_WIN_STATUS_INSUFFICIENT_NVRAM_RESOURCES:
2400 reason = "STATUS_INSUFFICIENT_NVRAM_RESOURCES";
2401 break;
2402 case MD_NTSTATUS_WIN_STATUS_INVALID_SESSION:
2403 reason = "STATUS_INVALID_SESSION";
2404 break;
2405 case MD_NTSTATUS_WIN_STATUS_THREAD_ALREADY_IN_SESSION:
2406 reason = "STATUS_THREAD_ALREADY_IN_SESSION";
2407 break;
2408 case MD_NTSTATUS_WIN_STATUS_THREAD_NOT_IN_SESSION:
2409 reason = "STATUS_THREAD_NOT_IN_SESSION";
2410 break;
2411 case MD_NTSTATUS_WIN_STATUS_INVALID_WEIGHT:
2412 reason = "STATUS_INVALID_WEIGHT";
2413 break;
2414 case MD_NTSTATUS_WIN_STATUS_REQUEST_PAUSED:
2415 reason = "STATUS_REQUEST_PAUSED";
2416 break;
2417 case MD_NTSTATUS_WIN_STATUS_NO_RANGES_PROCESSED:
2418 reason = "STATUS_NO_RANGES_PROCESSED";
2419 break;
2420 case MD_NTSTATUS_WIN_STATUS_DISK_RESOURCES_EXHAUSTED:
2421 reason = "STATUS_DISK_RESOURCES_EXHAUSTED";
2422 break;
2423 case MD_NTSTATUS_WIN_STATUS_NEEDS_REMEDIATION:
2424 reason = "STATUS_NEEDS_REMEDIATION";
2425 break;
2426 case MD_NTSTATUS_WIN_STATUS_DEVICE_FEATURE_NOT_SUPPORTED:
2427 reason = "STATUS_DEVICE_FEATURE_NOT_SUPPORTED";
2428 break;
2429 case MD_NTSTATUS_WIN_STATUS_DEVICE_UNREACHABLE:
2430 reason = "STATUS_DEVICE_UNREACHABLE";
2431 break;
2432 case MD_NTSTATUS_WIN_STATUS_INVALID_TOKEN:
2433 reason = "STATUS_INVALID_TOKEN";
2434 break;
2435 case MD_NTSTATUS_WIN_STATUS_SERVER_UNAVAILABLE:
2436 reason = "STATUS_SERVER_UNAVAILABLE";
2437 break;
2438 case MD_NTSTATUS_WIN_STATUS_FILE_NOT_AVAILABLE:
2439 reason = "STATUS_FILE_NOT_AVAILABLE";
2440 break;
2441 case MD_NTSTATUS_WIN_STATUS_DEVICE_INSUFFICIENT_RESOURCES:
2442 reason = "STATUS_DEVICE_INSUFFICIENT_RESOURCES";
2443 break;
2444 case MD_NTSTATUS_WIN_STATUS_PACKAGE_UPDATING:
2445 reason = "STATUS_PACKAGE_UPDATING";
2446 break;
2447 case MD_NTSTATUS_WIN_STATUS_NOT_READ_FROM_COPY:
2448 reason = "STATUS_NOT_READ_FROM_COPY";
2449 break;
2450 case MD_NTSTATUS_WIN_STATUS_FT_WRITE_FAILURE:
2451 reason = "STATUS_FT_WRITE_FAILURE";
2452 break;
2453 case MD_NTSTATUS_WIN_STATUS_FT_DI_SCAN_REQUIRED:
2454 reason = "STATUS_FT_DI_SCAN_REQUIRED";
2455 break;
2456 case MD_NTSTATUS_WIN_STATUS_OBJECT_NOT_EXTERNALLY_BACKED:
2457 reason = "STATUS_OBJECT_NOT_EXTERNALLY_BACKED";
2458 break;
2459 case MD_NTSTATUS_WIN_STATUS_EXTERNAL_BACKING_PROVIDER_UNKNOWN:
2460 reason = "STATUS_EXTERNAL_BACKING_PROVIDER_UNKNOWN";
2461 break;
2462 case MD_NTSTATUS_WIN_STATUS_DATA_CHECKSUM_ERROR:
2463 reason = "STATUS_DATA_CHECKSUM_ERROR";
2464 break;
2465 case MD_NTSTATUS_WIN_STATUS_INTERMIXED_KERNEL_EA_OPERATION:
2466 reason = "STATUS_INTERMIXED_KERNEL_EA_OPERATION";
2467 break;
2468 case MD_NTSTATUS_WIN_STATUS_TRIM_READ_ZERO_NOT_SUPPORTED:
2469 reason = "STATUS_TRIM_READ_ZERO_NOT_SUPPORTED";
2470 break;
2471 case MD_NTSTATUS_WIN_STATUS_TOO_MANY_SEGMENT_DESCRIPTORS:
2472 reason = "STATUS_TOO_MANY_SEGMENT_DESCRIPTORS";
2473 break;
2474 case MD_NTSTATUS_WIN_STATUS_INVALID_OFFSET_ALIGNMENT:
2475 reason = "STATUS_INVALID_OFFSET_ALIGNMENT";
2476 break;
2477 case MD_NTSTATUS_WIN_STATUS_INVALID_FIELD_IN_PARAMETER_LIST:
2478 reason = "STATUS_INVALID_FIELD_IN_PARAMETER_LIST";
2479 break;
2480 case MD_NTSTATUS_WIN_STATUS_OPERATION_IN_PROGRESS:
2481 reason = "STATUS_OPERATION_IN_PROGRESS";
2482 break;
2483 case MD_NTSTATUS_WIN_STATUS_INVALID_INITIATOR_TARGET_PATH:
2484 reason = "STATUS_INVALID_INITIATOR_TARGET_PATH";
2485 break;
2486 case MD_NTSTATUS_WIN_STATUS_SCRUB_DATA_DISABLED:
2487 reason = "STATUS_SCRUB_DATA_DISABLED";
2488 break;
2489 case MD_NTSTATUS_WIN_STATUS_NOT_REDUNDANT_STORAGE:
2490 reason = "STATUS_NOT_REDUNDANT_STORAGE";
2491 break;
2492 case MD_NTSTATUS_WIN_STATUS_RESIDENT_FILE_NOT_SUPPORTED:
2493 reason = "STATUS_RESIDENT_FILE_NOT_SUPPORTED";
2494 break;
2495 case MD_NTSTATUS_WIN_STATUS_COMPRESSED_FILE_NOT_SUPPORTED:
2496 reason = "STATUS_COMPRESSED_FILE_NOT_SUPPORTED";
2497 break;
2498 case MD_NTSTATUS_WIN_STATUS_DIRECTORY_NOT_SUPPORTED:
2499 reason = "STATUS_DIRECTORY_NOT_SUPPORTED";
2500 break;
2501 case MD_NTSTATUS_WIN_STATUS_IO_OPERATION_TIMEOUT:
2502 reason = "STATUS_IO_OPERATION_TIMEOUT";
2503 break;
2504 case MD_NTSTATUS_WIN_STATUS_SYSTEM_NEEDS_REMEDIATION:
2505 reason = "STATUS_SYSTEM_NEEDS_REMEDIATION";
2506 break;
2507 case MD_NTSTATUS_WIN_STATUS_APPX_INTEGRITY_FAILURE_CLR_NGEN:
2508 reason = "STATUS_APPX_INTEGRITY_FAILURE_CLR_NGEN";
2509 break;
2510 case MD_NTSTATUS_WIN_STATUS_SHARE_UNAVAILABLE:
2511 reason = "STATUS_SHARE_UNAVAILABLE";
2512 break;
2513 case MD_NTSTATUS_WIN_STATUS_APISET_NOT_HOSTED:
2514 reason = "STATUS_APISET_NOT_HOSTED";
2515 break;
2516 case MD_NTSTATUS_WIN_STATUS_APISET_NOT_PRESENT:
2517 reason = "STATUS_APISET_NOT_PRESENT";
2518 break;
2519 case MD_NTSTATUS_WIN_STATUS_DEVICE_HARDWARE_ERROR:
2520 reason = "STATUS_DEVICE_HARDWARE_ERROR";
2521 break;
2522 case MD_NTSTATUS_WIN_STATUS_INVALID_TASK_NAME:
2523 reason = "STATUS_INVALID_TASK_NAME";
2524 break;
2525 case MD_NTSTATUS_WIN_STATUS_INVALID_TASK_INDEX:
2526 reason = "STATUS_INVALID_TASK_INDEX";
2527 break;
2528 case MD_NTSTATUS_WIN_STATUS_THREAD_ALREADY_IN_TASK:
2529 reason = "STATUS_THREAD_ALREADY_IN_TASK";
2530 break;
2531 case MD_NTSTATUS_WIN_STATUS_CALLBACK_BYPASS:
2532 reason = "STATUS_CALLBACK_BYPASS";
2533 break;
2534 case MD_NTSTATUS_WIN_STATUS_UNDEFINED_SCOPE:
2535 reason = "STATUS_UNDEFINED_SCOPE";
2536 break;
2537 case MD_NTSTATUS_WIN_STATUS_INVALID_CAP:
2538 reason = "STATUS_INVALID_CAP";
2539 break;
2540 case MD_NTSTATUS_WIN_STATUS_NOT_GUI_PROCESS:
2541 reason = "STATUS_NOT_GUI_PROCESS";
2542 break;
2543 case MD_NTSTATUS_WIN_STATUS_FAIL_FAST_EXCEPTION:
2544 reason = "STATUS_FAIL_FAST_EXCEPTION";
2545 break;
2546 case MD_NTSTATUS_WIN_STATUS_IMAGE_CERT_REVOKED:
2547 reason = "STATUS_IMAGE_CERT_REVOKED";
2548 break;
2549 case MD_NTSTATUS_WIN_STATUS_DYNAMIC_CODE_BLOCKED:
2550 reason = "STATUS_DYNAMIC_CODE_BLOCKED";
2551 break;
2552 case MD_NTSTATUS_WIN_STATUS_PORT_CLOSED:
2553 reason = "STATUS_PORT_CLOSED";
2554 break;
2555 case MD_NTSTATUS_WIN_STATUS_MESSAGE_LOST:
2556 reason = "STATUS_MESSAGE_LOST";
2557 break;
2558 case MD_NTSTATUS_WIN_STATUS_INVALID_MESSAGE:
2559 reason = "STATUS_INVALID_MESSAGE";
2560 break;
2561 case MD_NTSTATUS_WIN_STATUS_REQUEST_CANCELED:
2562 reason = "STATUS_REQUEST_CANCELED";
2563 break;
2564 case MD_NTSTATUS_WIN_STATUS_RECURSIVE_DISPATCH:
2565 reason = "STATUS_RECURSIVE_DISPATCH";
2566 break;
2567 case MD_NTSTATUS_WIN_STATUS_LPC_RECEIVE_BUFFER_EXPECTED:
2568 reason = "STATUS_LPC_RECEIVE_BUFFER_EXPECTED";
2569 break;
2570 case MD_NTSTATUS_WIN_STATUS_LPC_INVALID_CONNECTION_USAGE:
2571 reason = "STATUS_LPC_INVALID_CONNECTION_USAGE";
2572 break;
2573 case MD_NTSTATUS_WIN_STATUS_LPC_REQUESTS_NOT_ALLOWED:
2574 reason = "STATUS_LPC_REQUESTS_NOT_ALLOWED";
2575 break;
2576 case MD_NTSTATUS_WIN_STATUS_RESOURCE_IN_USE:
2577 reason = "STATUS_RESOURCE_IN_USE";
2578 break;
2579 case MD_NTSTATUS_WIN_STATUS_HARDWARE_MEMORY_ERROR:
2580 reason = "STATUS_HARDWARE_MEMORY_ERROR";
2581 break;
2582 case MD_NTSTATUS_WIN_STATUS_THREADPOOL_HANDLE_EXCEPTION:
2583 reason = "STATUS_THREADPOOL_HANDLE_EXCEPTION";
2584 break;
2585 case MD_NTSTATUS_WIN_STATUS_THREADPOOL_SET_EVENT_ON_COMPLETION_FAILED:
2586 reason = "STATUS_THREADPOOL_SET_EVENT_ON_COMPLETION_FAILED";
2587 break;
2588 case MD_NTSTATUS_WIN_STATUS_THREADPOOL_RELEASE_SEMAPHORE_ON_COMPLETION_FAILED:
2589 reason = "STATUS_THREADPOOL_RELEASE_SEMAPHORE_ON_COMPLETION_FAILED";
2590 break;
2591 case MD_NTSTATUS_WIN_STATUS_THREADPOOL_RELEASE_MUTEX_ON_COMPLETION_FAILED:
2592 reason = "STATUS_THREADPOOL_RELEASE_MUTEX_ON_COMPLETION_FAILED";
2593 break;
2594 case MD_NTSTATUS_WIN_STATUS_THREADPOOL_FREE_LIBRARY_ON_COMPLETION_FAILED:
2595 reason = "STATUS_THREADPOOL_FREE_LIBRARY_ON_COMPLETION_FAILED";
2596 break;
2597 case MD_NTSTATUS_WIN_STATUS_THREADPOOL_RELEASED_DURING_OPERATION:
2598 reason = "STATUS_THREADPOOL_RELEASED_DURING_OPERATION";
2599 break;
2600 case MD_NTSTATUS_WIN_STATUS_CALLBACK_RETURNED_WHILE_IMPERSONATING:
2601 reason = "STATUS_CALLBACK_RETURNED_WHILE_IMPERSONATING";
2602 break;
2603 case MD_NTSTATUS_WIN_STATUS_APC_RETURNED_WHILE_IMPERSONATING:
2604 reason = "STATUS_APC_RETURNED_WHILE_IMPERSONATING";
2605 break;
2606 case MD_NTSTATUS_WIN_STATUS_PROCESS_IS_PROTECTED:
2607 reason = "STATUS_PROCESS_IS_PROTECTED";
2608 break;
2609 case MD_NTSTATUS_WIN_STATUS_MCA_EXCEPTION:
2610 reason = "STATUS_MCA_EXCEPTION";
2611 break;
2612 case MD_NTSTATUS_WIN_STATUS_CERTIFICATE_MAPPING_NOT_UNIQUE:
2613 reason = "STATUS_CERTIFICATE_MAPPING_NOT_UNIQUE";
2614 break;
2615 case MD_NTSTATUS_WIN_STATUS_SYMLINK_CLASS_DISABLED:
2616 reason = "STATUS_SYMLINK_CLASS_DISABLED";
2617 break;
2618 case MD_NTSTATUS_WIN_STATUS_INVALID_IDN_NORMALIZATION:
2619 reason = "STATUS_INVALID_IDN_NORMALIZATION";
2620 break;
2621 case MD_NTSTATUS_WIN_STATUS_NO_UNICODE_TRANSLATION:
2622 reason = "STATUS_NO_UNICODE_TRANSLATION";
2623 break;
2624 case MD_NTSTATUS_WIN_STATUS_ALREADY_REGISTERED:
2625 reason = "STATUS_ALREADY_REGISTERED";
2626 break;
2627 case MD_NTSTATUS_WIN_STATUS_CONTEXT_MISMATCH:
2628 reason = "STATUS_CONTEXT_MISMATCH";
2629 break;
2630 case MD_NTSTATUS_WIN_STATUS_PORT_ALREADY_HAS_COMPLETION_LIST:
2631 reason = "STATUS_PORT_ALREADY_HAS_COMPLETION_LIST";
2632 break;
2633 case MD_NTSTATUS_WIN_STATUS_CALLBACK_RETURNED_THREAD_PRIORITY:
2634 reason = "STATUS_CALLBACK_RETURNED_THREAD_PRIORITY";
2635 break;
2636 case MD_NTSTATUS_WIN_STATUS_INVALID_THREAD:
2637 reason = "STATUS_INVALID_THREAD";
2638 break;
2639 case MD_NTSTATUS_WIN_STATUS_CALLBACK_RETURNED_TRANSACTION:
2640 reason = "STATUS_CALLBACK_RETURNED_TRANSACTION";
2641 break;
2642 case MD_NTSTATUS_WIN_STATUS_CALLBACK_RETURNED_LDR_LOCK:
2643 reason = "STATUS_CALLBACK_RETURNED_LDR_LOCK";
2644 break;
2645 case MD_NTSTATUS_WIN_STATUS_CALLBACK_RETURNED_LANG:
2646 reason = "STATUS_CALLBACK_RETURNED_LANG";
2647 break;
2648 case MD_NTSTATUS_WIN_STATUS_CALLBACK_RETURNED_PRI_BACK:
2649 reason = "STATUS_CALLBACK_RETURNED_PRI_BACK";
2650 break;
2651 case MD_NTSTATUS_WIN_STATUS_CALLBACK_RETURNED_THREAD_AFFINITY:
2652 reason = "STATUS_CALLBACK_RETURNED_THREAD_AFFINITY";
2653 break;
2654 case MD_NTSTATUS_WIN_STATUS_DISK_REPAIR_DISABLED:
2655 reason = "STATUS_DISK_REPAIR_DISABLED";
2656 break;
2657 case MD_NTSTATUS_WIN_STATUS_DS_DOMAIN_RENAME_IN_PROGRESS:
2658 reason = "STATUS_DS_DOMAIN_RENAME_IN_PROGRESS";
2659 break;
2660 case MD_NTSTATUS_WIN_STATUS_DISK_QUOTA_EXCEEDED:
2661 reason = "STATUS_DISK_QUOTA_EXCEEDED";
2662 break;
2663 case MD_NTSTATUS_WIN_STATUS_CONTENT_BLOCKED:
2664 reason = "STATUS_CONTENT_BLOCKED";
2665 break;
2666 case MD_NTSTATUS_WIN_STATUS_BAD_CLUSTERS:
2667 reason = "STATUS_BAD_CLUSTERS";
2668 break;
2669 case MD_NTSTATUS_WIN_STATUS_VOLUME_DIRTY:
2670 reason = "STATUS_VOLUME_DIRTY";
2671 break;
2672 case MD_NTSTATUS_WIN_STATUS_DISK_REPAIR_UNSUCCESSFUL:
2673 reason = "STATUS_DISK_REPAIR_UNSUCCESSFUL";
2674 break;
2675 case MD_NTSTATUS_WIN_STATUS_CORRUPT_LOG_OVERFULL:
2676 reason = "STATUS_CORRUPT_LOG_OVERFULL";
2677 break;
2678 case MD_NTSTATUS_WIN_STATUS_CORRUPT_LOG_CORRUPTED:
2679 reason = "STATUS_CORRUPT_LOG_CORRUPTED";
2680 break;
2681 case MD_NTSTATUS_WIN_STATUS_CORRUPT_LOG_UNAVAILABLE:
2682 reason = "STATUS_CORRUPT_LOG_UNAVAILABLE";
2683 break;
2684 case MD_NTSTATUS_WIN_STATUS_CORRUPT_LOG_DELETED_FULL:
2685 reason = "STATUS_CORRUPT_LOG_DELETED_FULL";
2686 break;
2687 case MD_NTSTATUS_WIN_STATUS_CORRUPT_LOG_CLEARED:
2688 reason = "STATUS_CORRUPT_LOG_CLEARED";
2689 break;
2690 case MD_NTSTATUS_WIN_STATUS_ORPHAN_NAME_EXHAUSTED:
2691 reason = "STATUS_ORPHAN_NAME_EXHAUSTED";
2692 break;
2693 case MD_NTSTATUS_WIN_STATUS_PROACTIVE_SCAN_IN_PROGRESS:
2694 reason = "STATUS_PROACTIVE_SCAN_IN_PROGRESS";
2695 break;
2696 case MD_NTSTATUS_WIN_STATUS_ENCRYPTED_IO_NOT_POSSIBLE:
2697 reason = "STATUS_ENCRYPTED_IO_NOT_POSSIBLE";
2698 break;
2699 case MD_NTSTATUS_WIN_STATUS_CORRUPT_LOG_UPLEVEL_RECORDS:
2700 reason = "STATUS_CORRUPT_LOG_UPLEVEL_RECORDS";
2701 break;
2702 case MD_NTSTATUS_WIN_STATUS_FILE_CHECKED_OUT:
2703 reason = "STATUS_FILE_CHECKED_OUT";
2704 break;
2705 case MD_NTSTATUS_WIN_STATUS_CHECKOUT_REQUIRED:
2706 reason = "STATUS_CHECKOUT_REQUIRED";
2707 break;
2708 case MD_NTSTATUS_WIN_STATUS_BAD_FILE_TYPE:
2709 reason = "STATUS_BAD_FILE_TYPE";
2710 break;
2711 case MD_NTSTATUS_WIN_STATUS_FILE_TOO_LARGE:
2712 reason = "STATUS_FILE_TOO_LARGE";
2713 break;
2714 case MD_NTSTATUS_WIN_STATUS_FORMS_AUTH_REQUIRED:
2715 reason = "STATUS_FORMS_AUTH_REQUIRED";
2716 break;
2717 case MD_NTSTATUS_WIN_STATUS_VIRUS_INFECTED:
2718 reason = "STATUS_VIRUS_INFECTED";
2719 break;
2720 case MD_NTSTATUS_WIN_STATUS_VIRUS_DELETED:
2721 reason = "STATUS_VIRUS_DELETED";
2722 break;
2723 case MD_NTSTATUS_WIN_STATUS_BAD_MCFG_TABLE:
2724 reason = "STATUS_BAD_MCFG_TABLE";
2725 break;
2726 case MD_NTSTATUS_WIN_STATUS_CANNOT_BREAK_OPLOCK:
2727 reason = "STATUS_CANNOT_BREAK_OPLOCK";
2728 break;
2729 case MD_NTSTATUS_WIN_STATUS_BAD_KEY:
2730 reason = "STATUS_BAD_KEY";
2731 break;
2732 case MD_NTSTATUS_WIN_STATUS_BAD_DATA:
2733 reason = "STATUS_BAD_DATA";
2734 break;
2735 case MD_NTSTATUS_WIN_STATUS_NO_KEY:
2736 reason = "STATUS_NO_KEY";
2737 break;
2738 case MD_NTSTATUS_WIN_STATUS_FILE_HANDLE_REVOKED:
2739 reason = "STATUS_FILE_HANDLE_REVOKED";
2740 break;
2741 case MD_NTSTATUS_WIN_STATUS_WOW_ASSERTION:
2742 reason = "STATUS_WOW_ASSERTION";
2743 break;
2744 case MD_NTSTATUS_WIN_STATUS_INVALID_SIGNATURE:
2745 reason = "STATUS_INVALID_SIGNATURE";
2746 break;
2747 case MD_NTSTATUS_WIN_STATUS_HMAC_NOT_SUPPORTED:
2748 reason = "STATUS_HMAC_NOT_SUPPORTED";
2749 break;
2750 case MD_NTSTATUS_WIN_STATUS_AUTH_TAG_MISMATCH:
2751 reason = "STATUS_AUTH_TAG_MISMATCH";
2752 break;
2753 case MD_NTSTATUS_WIN_STATUS_INVALID_STATE_TRANSITION:
2754 reason = "STATUS_INVALID_STATE_TRANSITION";
2755 break;
2756 case MD_NTSTATUS_WIN_STATUS_INVALID_KERNEL_INFO_VERSION:
2757 reason = "STATUS_INVALID_KERNEL_INFO_VERSION";
2758 break;
2759 case MD_NTSTATUS_WIN_STATUS_INVALID_PEP_INFO_VERSION:
2760 reason = "STATUS_INVALID_PEP_INFO_VERSION";
2761 break;
2762 case MD_NTSTATUS_WIN_STATUS_IPSEC_QUEUE_OVERFLOW:
2763 reason = "STATUS_IPSEC_QUEUE_OVERFLOW";
2764 break;
2765 case MD_NTSTATUS_WIN_STATUS_ND_QUEUE_OVERFLOW:
2766 reason = "STATUS_ND_QUEUE_OVERFLOW";
2767 break;
2768 case MD_NTSTATUS_WIN_STATUS_HOPLIMIT_EXCEEDED:
2769 reason = "STATUS_HOPLIMIT_EXCEEDED";
2770 break;
2771 case MD_NTSTATUS_WIN_STATUS_PROTOCOL_NOT_SUPPORTED:
2772 reason = "STATUS_PROTOCOL_NOT_SUPPORTED";
2773 break;
2774 case MD_NTSTATUS_WIN_STATUS_FASTPATH_REJECTED:
2775 reason = "STATUS_FASTPATH_REJECTED";
2776 break;
2777 case MD_NTSTATUS_WIN_STATUS_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED:
2778 reason = "STATUS_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED";
2779 break;
2780 case MD_NTSTATUS_WIN_STATUS_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR:
2781 reason = "STATUS_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR";
2782 break;
2783 case MD_NTSTATUS_WIN_STATUS_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR:
2784 reason = "STATUS_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR";
2785 break;
2786 case MD_NTSTATUS_WIN_STATUS_XML_PARSE_ERROR:
2787 reason = "STATUS_XML_PARSE_ERROR";
2788 break;
2789 case MD_NTSTATUS_WIN_STATUS_XMLDSIG_ERROR:
2790 reason = "STATUS_XMLDSIG_ERROR";
2791 break;
2792 case MD_NTSTATUS_WIN_STATUS_WRONG_COMPARTMENT:
2793 reason = "STATUS_WRONG_COMPARTMENT";
2794 break;
2795 case MD_NTSTATUS_WIN_STATUS_AUTHIP_FAILURE:
2796 reason = "STATUS_AUTHIP_FAILURE";
2797 break;
2798 case MD_NTSTATUS_WIN_STATUS_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS:
2799 reason = "STATUS_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS";
2800 break;
2801 case MD_NTSTATUS_WIN_STATUS_DS_OID_NOT_FOUND:
2802 reason = "STATUS_DS_OID_NOT_FOUND";
2803 break;
2804 case MD_NTSTATUS_WIN_STATUS_INCORRECT_ACCOUNT_TYPE:
2805 reason = "STATUS_INCORRECT_ACCOUNT_TYPE";
2806 break;
2807 case MD_NTSTATUS_WIN_STATUS_HASH_NOT_SUPPORTED:
2808 reason = "STATUS_HASH_NOT_SUPPORTED";
2809 break;
2810 case MD_NTSTATUS_WIN_STATUS_HASH_NOT_PRESENT:
2811 reason = "STATUS_HASH_NOT_PRESENT";
2812 break;
2813 case MD_NTSTATUS_WIN_STATUS_SECONDARY_IC_PROVIDER_NOT_REGISTERED:
2814 reason = "STATUS_SECONDARY_IC_PROVIDER_NOT_REGISTERED";
2815 break;
2816 case MD_NTSTATUS_WIN_STATUS_GPIO_CLIENT_INFORMATION_INVALID:
2817 reason = "STATUS_GPIO_CLIENT_INFORMATION_INVALID";
2818 break;
2819 case MD_NTSTATUS_WIN_STATUS_GPIO_VERSION_NOT_SUPPORTED:
2820 reason = "STATUS_GPIO_VERSION_NOT_SUPPORTED";
2821 break;
2822 case MD_NTSTATUS_WIN_STATUS_GPIO_INVALID_REGISTRATION_PACKET:
2823 reason = "STATUS_GPIO_INVALID_REGISTRATION_PACKET";
2824 break;
2825 case MD_NTSTATUS_WIN_STATUS_GPIO_OPERATION_DENIED:
2826 reason = "STATUS_GPIO_OPERATION_DENIED";
2827 break;
2828 case MD_NTSTATUS_WIN_STATUS_GPIO_INCOMPATIBLE_CONNECT_MODE:
2829 reason = "STATUS_GPIO_INCOMPATIBLE_CONNECT_MODE";
2830 break;
2831 case MD_NTSTATUS_WIN_STATUS_CANNOT_SWITCH_RUNLEVEL:
2832 reason = "STATUS_CANNOT_SWITCH_RUNLEVEL";
2833 break;
2834 case MD_NTSTATUS_WIN_STATUS_INVALID_RUNLEVEL_SETTING:
2835 reason = "STATUS_INVALID_RUNLEVEL_SETTING";
2836 break;
2837 case MD_NTSTATUS_WIN_STATUS_RUNLEVEL_SWITCH_TIMEOUT:
2838 reason = "STATUS_RUNLEVEL_SWITCH_TIMEOUT";
2839 break;
2840 case MD_NTSTATUS_WIN_STATUS_RUNLEVEL_SWITCH_AGENT_TIMEOUT:
2841 reason = "STATUS_RUNLEVEL_SWITCH_AGENT_TIMEOUT";
2842 break;
2843 case MD_NTSTATUS_WIN_STATUS_RUNLEVEL_SWITCH_IN_PROGRESS:
2844 reason = "STATUS_RUNLEVEL_SWITCH_IN_PROGRESS";
2845 break;
2846 case MD_NTSTATUS_WIN_STATUS_NOT_APPCONTAINER:
2847 reason = "STATUS_NOT_APPCONTAINER";
2848 break;
2849 case MD_NTSTATUS_WIN_STATUS_NOT_SUPPORTED_IN_APPCONTAINER:
2850 reason = "STATUS_NOT_SUPPORTED_IN_APPCONTAINER";
2851 break;
2852 case MD_NTSTATUS_WIN_STATUS_INVALID_PACKAGE_SID_LENGTH:
2853 reason = "STATUS_INVALID_PACKAGE_SID_LENGTH";
2854 break;
2855 case MD_NTSTATUS_WIN_STATUS_APP_DATA_NOT_FOUND:
2856 reason = "STATUS_APP_DATA_NOT_FOUND";
2857 break;
2858 case MD_NTSTATUS_WIN_STATUS_APP_DATA_EXPIRED:
2859 reason = "STATUS_APP_DATA_EXPIRED";
2860 break;
2861 case MD_NTSTATUS_WIN_STATUS_APP_DATA_CORRUPT:
2862 reason = "STATUS_APP_DATA_CORRUPT";
2863 break;
2864 case MD_NTSTATUS_WIN_STATUS_APP_DATA_LIMIT_EXCEEDED:
2865 reason = "STATUS_APP_DATA_LIMIT_EXCEEDED";
2866 break;
2867 case MD_NTSTATUS_WIN_STATUS_APP_DATA_REBOOT_REQUIRED:
2868 reason = "STATUS_APP_DATA_REBOOT_REQUIRED";
2869 break;
2870 case MD_NTSTATUS_WIN_STATUS_OFFLOAD_READ_FLT_NOT_SUPPORTED:
2871 reason = "STATUS_OFFLOAD_READ_FLT_NOT_SUPPORTED";
2872 break;
2873 case MD_NTSTATUS_WIN_STATUS_OFFLOAD_WRITE_FLT_NOT_SUPPORTED:
2874 reason = "STATUS_OFFLOAD_WRITE_FLT_NOT_SUPPORTED";
2875 break;
2876 case MD_NTSTATUS_WIN_STATUS_OFFLOAD_READ_FILE_NOT_SUPPORTED:
2877 reason = "STATUS_OFFLOAD_READ_FILE_NOT_SUPPORTED";
2878 break;
2879 case MD_NTSTATUS_WIN_STATUS_OFFLOAD_WRITE_FILE_NOT_SUPPORTED:
2880 reason = "STATUS_OFFLOAD_WRITE_FILE_NOT_SUPPORTED";
2881 break;
2882 case MD_NTSTATUS_WIN_DBG_NO_STATE_CHANGE:
2883 reason = "DBG_NO_STATE_CHANGE";
2884 break;
2885 case MD_NTSTATUS_WIN_DBG_APP_NOT_IDLE:
2886 reason = "DBG_APP_NOT_IDLE";
2887 break;
2888 case MD_NTSTATUS_WIN_RPC_NT_INVALID_STRING_BINDING:
2889 reason = "RPC_NT_INVALID_STRING_BINDING";
2890 break;
2891 case MD_NTSTATUS_WIN_RPC_NT_WRONG_KIND_OF_BINDING:
2892 reason = "RPC_NT_WRONG_KIND_OF_BINDING";
2893 break;
2894 case MD_NTSTATUS_WIN_RPC_NT_INVALID_BINDING:
2895 reason = "RPC_NT_INVALID_BINDING";
2896 break;
2897 case MD_NTSTATUS_WIN_RPC_NT_PROTSEQ_NOT_SUPPORTED:
2898 reason = "RPC_NT_PROTSEQ_NOT_SUPPORTED";
2899 break;
2900 case MD_NTSTATUS_WIN_RPC_NT_INVALID_RPC_PROTSEQ:
2901 reason = "RPC_NT_INVALID_RPC_PROTSEQ";
2902 break;
2903 case MD_NTSTATUS_WIN_RPC_NT_INVALID_STRING_UUID:
2904 reason = "RPC_NT_INVALID_STRING_UUID";
2905 break;
2906 case MD_NTSTATUS_WIN_RPC_NT_INVALID_ENDPOINT_FORMAT:
2907 reason = "RPC_NT_INVALID_ENDPOINT_FORMAT";
2908 break;
2909 case MD_NTSTATUS_WIN_RPC_NT_INVALID_NET_ADDR:
2910 reason = "RPC_NT_INVALID_NET_ADDR";
2911 break;
2912 case MD_NTSTATUS_WIN_RPC_NT_NO_ENDPOINT_FOUND:
2913 reason = "RPC_NT_NO_ENDPOINT_FOUND";
2914 break;
2915 case MD_NTSTATUS_WIN_RPC_NT_INVALID_TIMEOUT:
2916 reason = "RPC_NT_INVALID_TIMEOUT";
2917 break;
2918 case MD_NTSTATUS_WIN_RPC_NT_OBJECT_NOT_FOUND:
2919 reason = "RPC_NT_OBJECT_NOT_FOUND";
2920 break;
2921 case MD_NTSTATUS_WIN_RPC_NT_ALREADY_REGISTERED:
2922 reason = "RPC_NT_ALREADY_REGISTERED";
2923 break;
2924 case MD_NTSTATUS_WIN_RPC_NT_TYPE_ALREADY_REGISTERED:
2925 reason = "RPC_NT_TYPE_ALREADY_REGISTERED";
2926 break;
2927 case MD_NTSTATUS_WIN_RPC_NT_ALREADY_LISTENING:
2928 reason = "RPC_NT_ALREADY_LISTENING";
2929 break;
2930 case MD_NTSTATUS_WIN_RPC_NT_NO_PROTSEQS_REGISTERED:
2931 reason = "RPC_NT_NO_PROTSEQS_REGISTERED";
2932 break;
2933 case MD_NTSTATUS_WIN_RPC_NT_NOT_LISTENING:
2934 reason = "RPC_NT_NOT_LISTENING";
2935 break;
2936 case MD_NTSTATUS_WIN_RPC_NT_UNKNOWN_MGR_TYPE:
2937 reason = "RPC_NT_UNKNOWN_MGR_TYPE";
2938 break;
2939 case MD_NTSTATUS_WIN_RPC_NT_UNKNOWN_IF:
2940 reason = "RPC_NT_UNKNOWN_IF";
2941 break;
2942 case MD_NTSTATUS_WIN_RPC_NT_NO_BINDINGS:
2943 reason = "RPC_NT_NO_BINDINGS";
2944 break;
2945 case MD_NTSTATUS_WIN_RPC_NT_NO_PROTSEQS:
2946 reason = "RPC_NT_NO_PROTSEQS";
2947 break;
2948 case MD_NTSTATUS_WIN_RPC_NT_CANT_CREATE_ENDPOINT:
2949 reason = "RPC_NT_CANT_CREATE_ENDPOINT";
2950 break;
2951 case MD_NTSTATUS_WIN_RPC_NT_OUT_OF_RESOURCES:
2952 reason = "RPC_NT_OUT_OF_RESOURCES";
2953 break;
2954 case MD_NTSTATUS_WIN_RPC_NT_SERVER_UNAVAILABLE:
2955 reason = "RPC_NT_SERVER_UNAVAILABLE";
2956 break;
2957 case MD_NTSTATUS_WIN_RPC_NT_SERVER_TOO_BUSY:
2958 reason = "RPC_NT_SERVER_TOO_BUSY";
2959 break;
2960 case MD_NTSTATUS_WIN_RPC_NT_INVALID_NETWORK_OPTIONS:
2961 reason = "RPC_NT_INVALID_NETWORK_OPTIONS";
2962 break;
2963 case MD_NTSTATUS_WIN_RPC_NT_NO_CALL_ACTIVE:
2964 reason = "RPC_NT_NO_CALL_ACTIVE";
2965 break;
2966 case MD_NTSTATUS_WIN_RPC_NT_CALL_FAILED:
2967 reason = "RPC_NT_CALL_FAILED";
2968 break;
2969 case MD_NTSTATUS_WIN_RPC_NT_CALL_FAILED_DNE:
2970 reason = "RPC_NT_CALL_FAILED_DNE";
2971 break;
2972 case MD_NTSTATUS_WIN_RPC_NT_PROTOCOL_ERROR:
2973 reason = "RPC_NT_PROTOCOL_ERROR";
2974 break;
2975 case MD_NTSTATUS_WIN_RPC_NT_UNSUPPORTED_TRANS_SYN:
2976 reason = "RPC_NT_UNSUPPORTED_TRANS_SYN";
2977 break;
2978 case MD_NTSTATUS_WIN_RPC_NT_UNSUPPORTED_TYPE:
2979 reason = "RPC_NT_UNSUPPORTED_TYPE";
2980 break;
2981 case MD_NTSTATUS_WIN_RPC_NT_INVALID_TAG:
2982 reason = "RPC_NT_INVALID_TAG";
2983 break;
2984 case MD_NTSTATUS_WIN_RPC_NT_INVALID_BOUND:
2985 reason = "RPC_NT_INVALID_BOUND";
2986 break;
2987 case MD_NTSTATUS_WIN_RPC_NT_NO_ENTRY_NAME:
2988 reason = "RPC_NT_NO_ENTRY_NAME";
2989 break;
2990 case MD_NTSTATUS_WIN_RPC_NT_INVALID_NAME_SYNTAX:
2991 reason = "RPC_NT_INVALID_NAME_SYNTAX";
2992 break;
2993 case MD_NTSTATUS_WIN_RPC_NT_UNSUPPORTED_NAME_SYNTAX:
2994 reason = "RPC_NT_UNSUPPORTED_NAME_SYNTAX";
2995 break;
2996 case MD_NTSTATUS_WIN_RPC_NT_UUID_NO_ADDRESS:
2997 reason = "RPC_NT_UUID_NO_ADDRESS";
2998 break;
2999 case MD_NTSTATUS_WIN_RPC_NT_DUPLICATE_ENDPOINT:
3000 reason = "RPC_NT_DUPLICATE_ENDPOINT";
3001 break;
3002 case MD_NTSTATUS_WIN_RPC_NT_UNKNOWN_AUTHN_TYPE:
3003 reason = "RPC_NT_UNKNOWN_AUTHN_TYPE";
3004 break;
3005 case MD_NTSTATUS_WIN_RPC_NT_MAX_CALLS_TOO_SMALL:
3006 reason = "RPC_NT_MAX_CALLS_TOO_SMALL";
3007 break;
3008 case MD_NTSTATUS_WIN_RPC_NT_STRING_TOO_LONG:
3009 reason = "RPC_NT_STRING_TOO_LONG";
3010 break;
3011 case MD_NTSTATUS_WIN_RPC_NT_PROTSEQ_NOT_FOUND:
3012 reason = "RPC_NT_PROTSEQ_NOT_FOUND";
3013 break;
3014 case MD_NTSTATUS_WIN_RPC_NT_PROCNUM_OUT_OF_RANGE:
3015 reason = "RPC_NT_PROCNUM_OUT_OF_RANGE";
3016 break;
3017 case MD_NTSTATUS_WIN_RPC_NT_BINDING_HAS_NO_AUTH:
3018 reason = "RPC_NT_BINDING_HAS_NO_AUTH";
3019 break;
3020 case MD_NTSTATUS_WIN_RPC_NT_UNKNOWN_AUTHN_SERVICE:
3021 reason = "RPC_NT_UNKNOWN_AUTHN_SERVICE";
3022 break;
3023 case MD_NTSTATUS_WIN_RPC_NT_UNKNOWN_AUTHN_LEVEL:
3024 reason = "RPC_NT_UNKNOWN_AUTHN_LEVEL";
3025 break;
3026 case MD_NTSTATUS_WIN_RPC_NT_INVALID_AUTH_IDENTITY:
3027 reason = "RPC_NT_INVALID_AUTH_IDENTITY";
3028 break;
3029 case MD_NTSTATUS_WIN_RPC_NT_UNKNOWN_AUTHZ_SERVICE:
3030 reason = "RPC_NT_UNKNOWN_AUTHZ_SERVICE";
3031 break;
3032 case MD_NTSTATUS_WIN_EPT_NT_INVALID_ENTRY:
3033 reason = "EPT_NT_INVALID_ENTRY";
3034 break;
3035 case MD_NTSTATUS_WIN_EPT_NT_CANT_PERFORM_OP:
3036 reason = "EPT_NT_CANT_PERFORM_OP";
3037 break;
3038 case MD_NTSTATUS_WIN_EPT_NT_NOT_REGISTERED:
3039 reason = "EPT_NT_NOT_REGISTERED";
3040 break;
3041 case MD_NTSTATUS_WIN_RPC_NT_NOTHING_TO_EXPORT:
3042 reason = "RPC_NT_NOTHING_TO_EXPORT";
3043 break;
3044 case MD_NTSTATUS_WIN_RPC_NT_INCOMPLETE_NAME:
3045 reason = "RPC_NT_INCOMPLETE_NAME";
3046 break;
3047 case MD_NTSTATUS_WIN_RPC_NT_INVALID_VERS_OPTION:
3048 reason = "RPC_NT_INVALID_VERS_OPTION";
3049 break;
3050 case MD_NTSTATUS_WIN_RPC_NT_NO_MORE_MEMBERS:
3051 reason = "RPC_NT_NO_MORE_MEMBERS";
3052 break;
3053 case MD_NTSTATUS_WIN_RPC_NT_NOT_ALL_OBJS_UNEXPORTED:
3054 reason = "RPC_NT_NOT_ALL_OBJS_UNEXPORTED";
3055 break;
3056 case MD_NTSTATUS_WIN_RPC_NT_INTERFACE_NOT_FOUND:
3057 reason = "RPC_NT_INTERFACE_NOT_FOUND";
3058 break;
3059 case MD_NTSTATUS_WIN_RPC_NT_ENTRY_ALREADY_EXISTS:
3060 reason = "RPC_NT_ENTRY_ALREADY_EXISTS";
3061 break;
3062 case MD_NTSTATUS_WIN_RPC_NT_ENTRY_NOT_FOUND:
3063 reason = "RPC_NT_ENTRY_NOT_FOUND";
3064 break;
3065 case MD_NTSTATUS_WIN_RPC_NT_NAME_SERVICE_UNAVAILABLE:
3066 reason = "RPC_NT_NAME_SERVICE_UNAVAILABLE";
3067 break;
3068 case MD_NTSTATUS_WIN_RPC_NT_INVALID_NAF_ID:
3069 reason = "RPC_NT_INVALID_NAF_ID";
3070 break;
3071 case MD_NTSTATUS_WIN_RPC_NT_CANNOT_SUPPORT:
3072 reason = "RPC_NT_CANNOT_SUPPORT";
3073 break;
3074 case MD_NTSTATUS_WIN_RPC_NT_NO_CONTEXT_AVAILABLE:
3075 reason = "RPC_NT_NO_CONTEXT_AVAILABLE";
3076 break;
3077 case MD_NTSTATUS_WIN_RPC_NT_INTERNAL_ERROR:
3078 reason = "RPC_NT_INTERNAL_ERROR";
3079 break;
3080 case MD_NTSTATUS_WIN_RPC_NT_ZERO_DIVIDE:
3081 reason = "RPC_NT_ZERO_DIVIDE";
3082 break;
3083 case MD_NTSTATUS_WIN_RPC_NT_ADDRESS_ERROR:
3084 reason = "RPC_NT_ADDRESS_ERROR";
3085 break;
3086 case MD_NTSTATUS_WIN_RPC_NT_FP_DIV_ZERO:
3087 reason = "RPC_NT_FP_DIV_ZERO";
3088 break;
3089 case MD_NTSTATUS_WIN_RPC_NT_FP_UNDERFLOW:
3090 reason = "RPC_NT_FP_UNDERFLOW";
3091 break;
3092 case MD_NTSTATUS_WIN_RPC_NT_FP_OVERFLOW:
3093 reason = "RPC_NT_FP_OVERFLOW";
3094 break;
3095 case MD_NTSTATUS_WIN_RPC_NT_CALL_IN_PROGRESS:
3096 reason = "RPC_NT_CALL_IN_PROGRESS";
3097 break;
3098 case MD_NTSTATUS_WIN_RPC_NT_NO_MORE_BINDINGS:
3099 reason = "RPC_NT_NO_MORE_BINDINGS";
3100 break;
3101 case MD_NTSTATUS_WIN_RPC_NT_GROUP_MEMBER_NOT_FOUND:
3102 reason = "RPC_NT_GROUP_MEMBER_NOT_FOUND";
3103 break;
3104 case MD_NTSTATUS_WIN_EPT_NT_CANT_CREATE:
3105 reason = "EPT_NT_CANT_CREATE";
3106 break;
3107 case MD_NTSTATUS_WIN_RPC_NT_INVALID_OBJECT:
3108 reason = "RPC_NT_INVALID_OBJECT";
3109 break;
3110 case MD_NTSTATUS_WIN_RPC_NT_NO_INTERFACES:
3111 reason = "RPC_NT_NO_INTERFACES";
3112 break;
3113 case MD_NTSTATUS_WIN_RPC_NT_CALL_CANCELLED:
3114 reason = "RPC_NT_CALL_CANCELLED";
3115 break;
3116 case MD_NTSTATUS_WIN_RPC_NT_BINDING_INCOMPLETE:
3117 reason = "RPC_NT_BINDING_INCOMPLETE";
3118 break;
3119 case MD_NTSTATUS_WIN_RPC_NT_COMM_FAILURE:
3120 reason = "RPC_NT_COMM_FAILURE";
3121 break;
3122 case MD_NTSTATUS_WIN_RPC_NT_UNSUPPORTED_AUTHN_LEVEL:
3123 reason = "RPC_NT_UNSUPPORTED_AUTHN_LEVEL";
3124 break;
3125 case MD_NTSTATUS_WIN_RPC_NT_NO_PRINC_NAME:
3126 reason = "RPC_NT_NO_PRINC_NAME";
3127 break;
3128 case MD_NTSTATUS_WIN_RPC_NT_NOT_RPC_ERROR:
3129 reason = "RPC_NT_NOT_RPC_ERROR";
3130 break;
3131 case MD_NTSTATUS_WIN_RPC_NT_SEC_PKG_ERROR:
3132 reason = "RPC_NT_SEC_PKG_ERROR";
3133 break;
3134 case MD_NTSTATUS_WIN_RPC_NT_NOT_CANCELLED:
3135 reason = "RPC_NT_NOT_CANCELLED";
3136 break;
3137 case MD_NTSTATUS_WIN_RPC_NT_INVALID_ASYNC_HANDLE:
3138 reason = "RPC_NT_INVALID_ASYNC_HANDLE";
3139 break;
3140 case MD_NTSTATUS_WIN_RPC_NT_INVALID_ASYNC_CALL:
3141 reason = "RPC_NT_INVALID_ASYNC_CALL";
3142 break;
3143 case MD_NTSTATUS_WIN_RPC_NT_PROXY_ACCESS_DENIED:
3144 reason = "RPC_NT_PROXY_ACCESS_DENIED";
3145 break;
3146 case MD_NTSTATUS_WIN_RPC_NT_COOKIE_AUTH_FAILED:
3147 reason = "RPC_NT_COOKIE_AUTH_FAILED";
3148 break;
3149 case MD_NTSTATUS_WIN_RPC_NT_NO_MORE_ENTRIES:
3150 reason = "RPC_NT_NO_MORE_ENTRIES";
3151 break;
3152 case MD_NTSTATUS_WIN_RPC_NT_SS_CHAR_TRANS_OPEN_FAIL:
3153 reason = "RPC_NT_SS_CHAR_TRANS_OPEN_FAIL";
3154 break;
3155 case MD_NTSTATUS_WIN_RPC_NT_SS_CHAR_TRANS_SHORT_FILE:
3156 reason = "RPC_NT_SS_CHAR_TRANS_SHORT_FILE";
3157 break;
3158 case MD_NTSTATUS_WIN_RPC_NT_SS_IN_NULL_CONTEXT:
3159 reason = "RPC_NT_SS_IN_NULL_CONTEXT";
3160 break;
3161 case MD_NTSTATUS_WIN_RPC_NT_SS_CONTEXT_MISMATCH:
3162 reason = "RPC_NT_SS_CONTEXT_MISMATCH";
3163 break;
3164 case MD_NTSTATUS_WIN_RPC_NT_SS_CONTEXT_DAMAGED:
3165 reason = "RPC_NT_SS_CONTEXT_DAMAGED";
3166 break;
3167 case MD_NTSTATUS_WIN_RPC_NT_SS_HANDLES_MISMATCH:
3168 reason = "RPC_NT_SS_HANDLES_MISMATCH";
3169 break;
3170 case MD_NTSTATUS_WIN_RPC_NT_SS_CANNOT_GET_CALL_HANDLE:
3171 reason = "RPC_NT_SS_CANNOT_GET_CALL_HANDLE";
3172 break;
3173 case MD_NTSTATUS_WIN_RPC_NT_NULL_REF_POINTER:
3174 reason = "RPC_NT_NULL_REF_POINTER";
3175 break;
3176 case MD_NTSTATUS_WIN_RPC_NT_ENUM_VALUE_OUT_OF_RANGE:
3177 reason = "RPC_NT_ENUM_VALUE_OUT_OF_RANGE";
3178 break;
3179 case MD_NTSTATUS_WIN_RPC_NT_BYTE_COUNT_TOO_SMALL:
3180 reason = "RPC_NT_BYTE_COUNT_TOO_SMALL";
3181 break;
3182 case MD_NTSTATUS_WIN_RPC_NT_BAD_STUB_DATA:
3183 reason = "RPC_NT_BAD_STUB_DATA";
3184 break;
3185 case MD_NTSTATUS_WIN_RPC_NT_INVALID_ES_ACTION:
3186 reason = "RPC_NT_INVALID_ES_ACTION";
3187 break;
3188 case MD_NTSTATUS_WIN_RPC_NT_WRONG_ES_VERSION:
3189 reason = "RPC_NT_WRONG_ES_VERSION";
3190 break;
3191 case MD_NTSTATUS_WIN_RPC_NT_WRONG_STUB_VERSION:
3192 reason = "RPC_NT_WRONG_STUB_VERSION";
3193 break;
3194 case MD_NTSTATUS_WIN_RPC_NT_INVALID_PIPE_OBJECT:
3195 reason = "RPC_NT_INVALID_PIPE_OBJECT";
3196 break;
3197 case MD_NTSTATUS_WIN_RPC_NT_INVALID_PIPE_OPERATION:
3198 reason = "RPC_NT_INVALID_PIPE_OPERATION";
3199 break;
3200 case MD_NTSTATUS_WIN_RPC_NT_WRONG_PIPE_VERSION:
3201 reason = "RPC_NT_WRONG_PIPE_VERSION";
3202 break;
3203 case MD_NTSTATUS_WIN_RPC_NT_PIPE_CLOSED:
3204 reason = "RPC_NT_PIPE_CLOSED";
3205 break;
3206 case MD_NTSTATUS_WIN_RPC_NT_PIPE_DISCIPLINE_ERROR:
3207 reason = "RPC_NT_PIPE_DISCIPLINE_ERROR";
3208 break;
3209 case MD_NTSTATUS_WIN_RPC_NT_PIPE_EMPTY:
3210 reason = "RPC_NT_PIPE_EMPTY";
3211 break;
3212 case MD_NTSTATUS_WIN_STATUS_PNP_BAD_MPS_TABLE:
3213 reason = "STATUS_PNP_BAD_MPS_TABLE";
3214 break;
3215 case MD_NTSTATUS_WIN_STATUS_PNP_TRANSLATION_FAILED:
3216 reason = "STATUS_PNP_TRANSLATION_FAILED";
3217 break;
3218 case MD_NTSTATUS_WIN_STATUS_PNP_IRQ_TRANSLATION_FAILED:
3219 reason = "STATUS_PNP_IRQ_TRANSLATION_FAILED";
3220 break;
3221 case MD_NTSTATUS_WIN_STATUS_PNP_INVALID_ID:
3222 reason = "STATUS_PNP_INVALID_ID";
3223 break;
3224 case MD_NTSTATUS_WIN_STATUS_IO_REISSUE_AS_CACHED:
3225 reason = "STATUS_IO_REISSUE_AS_CACHED";
3226 break;
3227 case MD_NTSTATUS_WIN_STATUS_CTX_WINSTATION_NAME_INVALID:
3228 reason = "STATUS_CTX_WINSTATION_NAME_INVALID";
3229 break;
3230 case MD_NTSTATUS_WIN_STATUS_CTX_INVALID_PD:
3231 reason = "STATUS_CTX_INVALID_PD";
3232 break;
3233 case MD_NTSTATUS_WIN_STATUS_CTX_PD_NOT_FOUND:
3234 reason = "STATUS_CTX_PD_NOT_FOUND";
3235 break;
3236 case MD_NTSTATUS_WIN_STATUS_CTX_CLOSE_PENDING:
3237 reason = "STATUS_CTX_CLOSE_PENDING";
3238 break;
3239 case MD_NTSTATUS_WIN_STATUS_CTX_NO_OUTBUF:
3240 reason = "STATUS_CTX_NO_OUTBUF";
3241 break;
3242 case MD_NTSTATUS_WIN_STATUS_CTX_MODEM_INF_NOT_FOUND:
3243 reason = "STATUS_CTX_MODEM_INF_NOT_FOUND";
3244 break;
3245 case MD_NTSTATUS_WIN_STATUS_CTX_INVALID_MODEMNAME:
3246 reason = "STATUS_CTX_INVALID_MODEMNAME";
3247 break;
3248 case MD_NTSTATUS_WIN_STATUS_CTX_RESPONSE_ERROR:
3249 reason = "STATUS_CTX_RESPONSE_ERROR";
3250 break;
3251 case MD_NTSTATUS_WIN_STATUS_CTX_MODEM_RESPONSE_TIMEOUT:
3252 reason = "STATUS_CTX_MODEM_RESPONSE_TIMEOUT";
3253 break;
3254 case MD_NTSTATUS_WIN_STATUS_CTX_MODEM_RESPONSE_NO_CARRIER:
3255 reason = "STATUS_CTX_MODEM_RESPONSE_NO_CARRIER";
3256 break;
3257 case MD_NTSTATUS_WIN_STATUS_CTX_MODEM_RESPONSE_NO_DIALTONE:
3258 reason = "STATUS_CTX_MODEM_RESPONSE_NO_DIALTONE";
3259 break;
3260 case MD_NTSTATUS_WIN_STATUS_CTX_MODEM_RESPONSE_BUSY:
3261 reason = "STATUS_CTX_MODEM_RESPONSE_BUSY";
3262 break;
3263 case MD_NTSTATUS_WIN_STATUS_CTX_MODEM_RESPONSE_VOICE:
3264 reason = "STATUS_CTX_MODEM_RESPONSE_VOICE";
3265 break;
3266 case MD_NTSTATUS_WIN_STATUS_CTX_TD_ERROR:
3267 reason = "STATUS_CTX_TD_ERROR";
3268 break;
3269 case MD_NTSTATUS_WIN_STATUS_CTX_LICENSE_CLIENT_INVALID:
3270 reason = "STATUS_CTX_LICENSE_CLIENT_INVALID";
3271 break;
3272 case MD_NTSTATUS_WIN_STATUS_CTX_LICENSE_NOT_AVAILABLE:
3273 reason = "STATUS_CTX_LICENSE_NOT_AVAILABLE";
3274 break;
3275 case MD_NTSTATUS_WIN_STATUS_CTX_LICENSE_EXPIRED:
3276 reason = "STATUS_CTX_LICENSE_EXPIRED";
3277 break;
3278 case MD_NTSTATUS_WIN_STATUS_CTX_WINSTATION_NOT_FOUND:
3279 reason = "STATUS_CTX_WINSTATION_NOT_FOUND";
3280 break;
3281 case MD_NTSTATUS_WIN_STATUS_CTX_WINSTATION_NAME_COLLISION:
3282 reason = "STATUS_CTX_WINSTATION_NAME_COLLISION";
3283 break;
3284 case MD_NTSTATUS_WIN_STATUS_CTX_WINSTATION_BUSY:
3285 reason = "STATUS_CTX_WINSTATION_BUSY";
3286 break;
3287 case MD_NTSTATUS_WIN_STATUS_CTX_BAD_VIDEO_MODE:
3288 reason = "STATUS_CTX_BAD_VIDEO_MODE";
3289 break;
3290 case MD_NTSTATUS_WIN_STATUS_CTX_GRAPHICS_INVALID:
3291 reason = "STATUS_CTX_GRAPHICS_INVALID";
3292 break;
3293 case MD_NTSTATUS_WIN_STATUS_CTX_NOT_CONSOLE:
3294 reason = "STATUS_CTX_NOT_CONSOLE";
3295 break;
3296 case MD_NTSTATUS_WIN_STATUS_CTX_CLIENT_QUERY_TIMEOUT:
3297 reason = "STATUS_CTX_CLIENT_QUERY_TIMEOUT";
3298 break;
3299 case MD_NTSTATUS_WIN_STATUS_CTX_CONSOLE_DISCONNECT:
3300 reason = "STATUS_CTX_CONSOLE_DISCONNECT";
3301 break;
3302 case MD_NTSTATUS_WIN_STATUS_CTX_CONSOLE_CONNECT:
3303 reason = "STATUS_CTX_CONSOLE_CONNECT";
3304 break;
3305 case MD_NTSTATUS_WIN_STATUS_CTX_SHADOW_DENIED:
3306 reason = "STATUS_CTX_SHADOW_DENIED";
3307 break;
3308 case MD_NTSTATUS_WIN_STATUS_CTX_WINSTATION_ACCESS_DENIED:
3309 reason = "STATUS_CTX_WINSTATION_ACCESS_DENIED";
3310 break;
3311 case MD_NTSTATUS_WIN_STATUS_CTX_INVALID_WD:
3312 reason = "STATUS_CTX_INVALID_WD";
3313 break;
3314 case MD_NTSTATUS_WIN_STATUS_CTX_WD_NOT_FOUND:
3315 reason = "STATUS_CTX_WD_NOT_FOUND";
3316 break;
3317 case MD_NTSTATUS_WIN_STATUS_CTX_SHADOW_INVALID:
3318 reason = "STATUS_CTX_SHADOW_INVALID";
3319 break;
3320 case MD_NTSTATUS_WIN_STATUS_CTX_SHADOW_DISABLED:
3321 reason = "STATUS_CTX_SHADOW_DISABLED";
3322 break;
3323 case MD_NTSTATUS_WIN_STATUS_RDP_PROTOCOL_ERROR:
3324 reason = "STATUS_RDP_PROTOCOL_ERROR";
3325 break;
3326 case MD_NTSTATUS_WIN_STATUS_CTX_CLIENT_LICENSE_NOT_SET:
3327 reason = "STATUS_CTX_CLIENT_LICENSE_NOT_SET";
3328 break;
3329 case MD_NTSTATUS_WIN_STATUS_CTX_CLIENT_LICENSE_IN_USE:
3330 reason = "STATUS_CTX_CLIENT_LICENSE_IN_USE";
3331 break;
3332 case MD_NTSTATUS_WIN_STATUS_CTX_SHADOW_ENDED_BY_MODE_CHANGE:
3333 reason = "STATUS_CTX_SHADOW_ENDED_BY_MODE_CHANGE";
3334 break;
3335 case MD_NTSTATUS_WIN_STATUS_CTX_SHADOW_NOT_RUNNING:
3336 reason = "STATUS_CTX_SHADOW_NOT_RUNNING";
3337 break;
3338 case MD_NTSTATUS_WIN_STATUS_CTX_LOGON_DISABLED:
3339 reason = "STATUS_CTX_LOGON_DISABLED";
3340 break;
3341 case MD_NTSTATUS_WIN_STATUS_CTX_SECURITY_LAYER_ERROR:
3342 reason = "STATUS_CTX_SECURITY_LAYER_ERROR";
3343 break;
3344 case MD_NTSTATUS_WIN_STATUS_TS_INCOMPATIBLE_SESSIONS:
3345 reason = "STATUS_TS_INCOMPATIBLE_SESSIONS";
3346 break;
3347 case MD_NTSTATUS_WIN_STATUS_TS_VIDEO_SUBSYSTEM_ERROR:
3348 reason = "STATUS_TS_VIDEO_SUBSYSTEM_ERROR";
3349 break;
3350 case MD_NTSTATUS_WIN_STATUS_MUI_FILE_NOT_FOUND:
3351 reason = "STATUS_MUI_FILE_NOT_FOUND";
3352 break;
3353 case MD_NTSTATUS_WIN_STATUS_MUI_INVALID_FILE:
3354 reason = "STATUS_MUI_INVALID_FILE";
3355 break;
3356 case MD_NTSTATUS_WIN_STATUS_MUI_INVALID_RC_CONFIG:
3357 reason = "STATUS_MUI_INVALID_RC_CONFIG";
3358 break;
3359 case MD_NTSTATUS_WIN_STATUS_MUI_INVALID_LOCALE_NAME:
3360 reason = "STATUS_MUI_INVALID_LOCALE_NAME";
3361 break;
3362 case MD_NTSTATUS_WIN_STATUS_MUI_INVALID_ULTIMATEFALLBACK_NAME:
3363 reason = "STATUS_MUI_INVALID_ULTIMATEFALLBACK_NAME";
3364 break;
3365 case MD_NTSTATUS_WIN_STATUS_MUI_FILE_NOT_LOADED:
3366 reason = "STATUS_MUI_FILE_NOT_LOADED";
3367 break;
3368 case MD_NTSTATUS_WIN_STATUS_RESOURCE_ENUM_USER_STOP:
3369 reason = "STATUS_RESOURCE_ENUM_USER_STOP";
3370 break;
3371 case MD_NTSTATUS_WIN_STATUS_CLUSTER_INVALID_NODE:
3372 reason = "STATUS_CLUSTER_INVALID_NODE";
3373 break;
3374 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NODE_EXISTS:
3375 reason = "STATUS_CLUSTER_NODE_EXISTS";
3376 break;
3377 case MD_NTSTATUS_WIN_STATUS_CLUSTER_JOIN_IN_PROGRESS:
3378 reason = "STATUS_CLUSTER_JOIN_IN_PROGRESS";
3379 break;
3380 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NODE_NOT_FOUND:
3381 reason = "STATUS_CLUSTER_NODE_NOT_FOUND";
3382 break;
3383 case MD_NTSTATUS_WIN_STATUS_CLUSTER_LOCAL_NODE_NOT_FOUND:
3384 reason = "STATUS_CLUSTER_LOCAL_NODE_NOT_FOUND";
3385 break;
3386 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NETWORK_EXISTS:
3387 reason = "STATUS_CLUSTER_NETWORK_EXISTS";
3388 break;
3389 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NETWORK_NOT_FOUND:
3390 reason = "STATUS_CLUSTER_NETWORK_NOT_FOUND";
3391 break;
3392 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NETINTERFACE_EXISTS:
3393 reason = "STATUS_CLUSTER_NETINTERFACE_EXISTS";
3394 break;
3395 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NETINTERFACE_NOT_FOUND:
3396 reason = "STATUS_CLUSTER_NETINTERFACE_NOT_FOUND";
3397 break;
3398 case MD_NTSTATUS_WIN_STATUS_CLUSTER_INVALID_REQUEST:
3399 reason = "STATUS_CLUSTER_INVALID_REQUEST";
3400 break;
3401 case MD_NTSTATUS_WIN_STATUS_CLUSTER_INVALID_NETWORK_PROVIDER:
3402 reason = "STATUS_CLUSTER_INVALID_NETWORK_PROVIDER";
3403 break;
3404 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NODE_DOWN:
3405 reason = "STATUS_CLUSTER_NODE_DOWN";
3406 break;
3407 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NODE_UNREACHABLE:
3408 reason = "STATUS_CLUSTER_NODE_UNREACHABLE";
3409 break;
3410 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NODE_NOT_MEMBER:
3411 reason = "STATUS_CLUSTER_NODE_NOT_MEMBER";
3412 break;
3413 case MD_NTSTATUS_WIN_STATUS_CLUSTER_JOIN_NOT_IN_PROGRESS:
3414 reason = "STATUS_CLUSTER_JOIN_NOT_IN_PROGRESS";
3415 break;
3416 case MD_NTSTATUS_WIN_STATUS_CLUSTER_INVALID_NETWORK:
3417 reason = "STATUS_CLUSTER_INVALID_NETWORK";
3418 break;
3419 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NO_NET_ADAPTERS:
3420 reason = "STATUS_CLUSTER_NO_NET_ADAPTERS";
3421 break;
3422 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NODE_UP:
3423 reason = "STATUS_CLUSTER_NODE_UP";
3424 break;
3425 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NODE_PAUSED:
3426 reason = "STATUS_CLUSTER_NODE_PAUSED";
3427 break;
3428 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NODE_NOT_PAUSED:
3429 reason = "STATUS_CLUSTER_NODE_NOT_PAUSED";
3430 break;
3431 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NO_SECURITY_CONTEXT:
3432 reason = "STATUS_CLUSTER_NO_SECURITY_CONTEXT";
3433 break;
3434 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NETWORK_NOT_INTERNAL:
3435 reason = "STATUS_CLUSTER_NETWORK_NOT_INTERNAL";
3436 break;
3437 case MD_NTSTATUS_WIN_STATUS_CLUSTER_POISONED:
3438 reason = "STATUS_CLUSTER_POISONED";
3439 break;
3440 case MD_NTSTATUS_WIN_STATUS_CLUSTER_NON_CSV_PATH:
3441 reason = "STATUS_CLUSTER_NON_CSV_PATH";
3442 break;
3443 case MD_NTSTATUS_WIN_STATUS_CLUSTER_CSV_VOLUME_NOT_LOCAL:
3444 reason = "STATUS_CLUSTER_CSV_VOLUME_NOT_LOCAL";
3445 break;
3446 case MD_NTSTATUS_WIN_STATUS_CLUSTER_CSV_READ_OPLOCK_BREAK_IN_PROGRESS:
3447 reason = "STATUS_CLUSTER_CSV_READ_OPLOCK_BREAK_IN_PROGRESS";
3448 break;
3449 case MD_NTSTATUS_WIN_STATUS_CLUSTER_CSV_AUTO_PAUSE_ERROR:
3450 reason = "STATUS_CLUSTER_CSV_AUTO_PAUSE_ERROR";
3451 break;
3452 case MD_NTSTATUS_WIN_STATUS_CLUSTER_CSV_REDIRECTED:
3453 reason = "STATUS_CLUSTER_CSV_REDIRECTED";
3454 break;
3455 case MD_NTSTATUS_WIN_STATUS_CLUSTER_CSV_NOT_REDIRECTED:
3456 reason = "STATUS_CLUSTER_CSV_NOT_REDIRECTED";
3457 break;
3458 case MD_NTSTATUS_WIN_STATUS_CLUSTER_CSV_VOLUME_DRAINING:
3459 reason = "STATUS_CLUSTER_CSV_VOLUME_DRAINING";
3460 break;
3461 case MD_NTSTATUS_WIN_STATUS_CLUSTER_CSV_SNAPSHOT_CREATION_IN_PROGRESS:
3462 reason = "STATUS_CLUSTER_CSV_SNAPSHOT_CREATION_IN_PROGRESS";
3463 break;
3464 case MD_NTSTATUS_WIN_STATUS_CLUSTER_CSV_VOLUME_DRAINING_SUCCEEDED_DOWNLEVEL:
3465 reason = "STATUS_CLUSTER_CSV_VOLUME_DRAINING_SUCCEEDED_DOWNLEVEL";
3466 break;
3467 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_OPCODE:
3468 reason = "STATUS_ACPI_INVALID_OPCODE";
3469 break;
3470 case MD_NTSTATUS_WIN_STATUS_ACPI_STACK_OVERFLOW:
3471 reason = "STATUS_ACPI_STACK_OVERFLOW";
3472 break;
3473 case MD_NTSTATUS_WIN_STATUS_ACPI_ASSERT_FAILED:
3474 reason = "STATUS_ACPI_ASSERT_FAILED";
3475 break;
3476 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_INDEX:
3477 reason = "STATUS_ACPI_INVALID_INDEX";
3478 break;
3479 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_ARGUMENT:
3480 reason = "STATUS_ACPI_INVALID_ARGUMENT";
3481 break;
3482 case MD_NTSTATUS_WIN_STATUS_ACPI_FATAL:
3483 reason = "STATUS_ACPI_FATAL";
3484 break;
3485 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_SUPERNAME:
3486 reason = "STATUS_ACPI_INVALID_SUPERNAME";
3487 break;
3488 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_ARGTYPE:
3489 reason = "STATUS_ACPI_INVALID_ARGTYPE";
3490 break;
3491 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_OBJTYPE:
3492 reason = "STATUS_ACPI_INVALID_OBJTYPE";
3493 break;
3494 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_TARGETTYPE:
3495 reason = "STATUS_ACPI_INVALID_TARGETTYPE";
3496 break;
3497 case MD_NTSTATUS_WIN_STATUS_ACPI_INCORRECT_ARGUMENT_COUNT:
3498 reason = "STATUS_ACPI_INCORRECT_ARGUMENT_COUNT";
3499 break;
3500 case MD_NTSTATUS_WIN_STATUS_ACPI_ADDRESS_NOT_MAPPED:
3501 reason = "STATUS_ACPI_ADDRESS_NOT_MAPPED";
3502 break;
3503 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_EVENTTYPE:
3504 reason = "STATUS_ACPI_INVALID_EVENTTYPE";
3505 break;
3506 case MD_NTSTATUS_WIN_STATUS_ACPI_HANDLER_COLLISION:
3507 reason = "STATUS_ACPI_HANDLER_COLLISION";
3508 break;
3509 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_DATA:
3510 reason = "STATUS_ACPI_INVALID_DATA";
3511 break;
3512 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_REGION:
3513 reason = "STATUS_ACPI_INVALID_REGION";
3514 break;
3515 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_ACCESS_SIZE:
3516 reason = "STATUS_ACPI_INVALID_ACCESS_SIZE";
3517 break;
3518 case MD_NTSTATUS_WIN_STATUS_ACPI_ACQUIRE_GLOBAL_LOCK:
3519 reason = "STATUS_ACPI_ACQUIRE_GLOBAL_LOCK";
3520 break;
3521 case MD_NTSTATUS_WIN_STATUS_ACPI_ALREADY_INITIALIZED:
3522 reason = "STATUS_ACPI_ALREADY_INITIALIZED";
3523 break;
3524 case MD_NTSTATUS_WIN_STATUS_ACPI_NOT_INITIALIZED:
3525 reason = "STATUS_ACPI_NOT_INITIALIZED";
3526 break;
3527 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_MUTEX_LEVEL:
3528 reason = "STATUS_ACPI_INVALID_MUTEX_LEVEL";
3529 break;
3530 case MD_NTSTATUS_WIN_STATUS_ACPI_MUTEX_NOT_OWNED:
3531 reason = "STATUS_ACPI_MUTEX_NOT_OWNED";
3532 break;
3533 case MD_NTSTATUS_WIN_STATUS_ACPI_MUTEX_NOT_OWNER:
3534 reason = "STATUS_ACPI_MUTEX_NOT_OWNER";
3535 break;
3536 case MD_NTSTATUS_WIN_STATUS_ACPI_RS_ACCESS:
3537 reason = "STATUS_ACPI_RS_ACCESS";
3538 break;
3539 case MD_NTSTATUS_WIN_STATUS_ACPI_INVALID_TABLE:
3540 reason = "STATUS_ACPI_INVALID_TABLE";
3541 break;
3542 case MD_NTSTATUS_WIN_STATUS_ACPI_REG_HANDLER_FAILED:
3543 reason = "STATUS_ACPI_REG_HANDLER_FAILED";
3544 break;
3545 case MD_NTSTATUS_WIN_STATUS_ACPI_POWER_REQUEST_FAILED:
3546 reason = "STATUS_ACPI_POWER_REQUEST_FAILED";
3547 break;
3548 case MD_NTSTATUS_WIN_STATUS_SXS_SECTION_NOT_FOUND:
3549 reason = "STATUS_SXS_SECTION_NOT_FOUND";
3550 break;
3551 case MD_NTSTATUS_WIN_STATUS_SXS_CANT_GEN_ACTCTX:
3552 reason = "STATUS_SXS_CANT_GEN_ACTCTX";
3553 break;
3554 case MD_NTSTATUS_WIN_STATUS_SXS_INVALID_ACTCTXDATA_FORMAT:
3555 reason = "STATUS_SXS_INVALID_ACTCTXDATA_FORMAT";
3556 break;
3557 case MD_NTSTATUS_WIN_STATUS_SXS_ASSEMBLY_NOT_FOUND:
3558 reason = "STATUS_SXS_ASSEMBLY_NOT_FOUND";
3559 break;
3560 case MD_NTSTATUS_WIN_STATUS_SXS_MANIFEST_FORMAT_ERROR:
3561 reason = "STATUS_SXS_MANIFEST_FORMAT_ERROR";
3562 break;
3563 case MD_NTSTATUS_WIN_STATUS_SXS_MANIFEST_PARSE_ERROR:
3564 reason = "STATUS_SXS_MANIFEST_PARSE_ERROR";
3565 break;
3566 case MD_NTSTATUS_WIN_STATUS_SXS_ACTIVATION_CONTEXT_DISABLED:
3567 reason = "STATUS_SXS_ACTIVATION_CONTEXT_DISABLED";
3568 break;
3569 case MD_NTSTATUS_WIN_STATUS_SXS_KEY_NOT_FOUND:
3570 reason = "STATUS_SXS_KEY_NOT_FOUND";
3571 break;
3572 case MD_NTSTATUS_WIN_STATUS_SXS_VERSION_CONFLICT:
3573 reason = "STATUS_SXS_VERSION_CONFLICT";
3574 break;
3575 case MD_NTSTATUS_WIN_STATUS_SXS_WRONG_SECTION_TYPE:
3576 reason = "STATUS_SXS_WRONG_SECTION_TYPE";
3577 break;
3578 case MD_NTSTATUS_WIN_STATUS_SXS_THREAD_QUERIES_DISABLED:
3579 reason = "STATUS_SXS_THREAD_QUERIES_DISABLED";
3580 break;
3581 case MD_NTSTATUS_WIN_STATUS_SXS_ASSEMBLY_MISSING:
3582 reason = "STATUS_SXS_ASSEMBLY_MISSING";
3583 break;
3584 case MD_NTSTATUS_WIN_STATUS_SXS_PROCESS_DEFAULT_ALREADY_SET:
3585 reason = "STATUS_SXS_PROCESS_DEFAULT_ALREADY_SET";
3586 break;
3587 case MD_NTSTATUS_WIN_STATUS_SXS_EARLY_DEACTIVATION:
3588 reason = "STATUS_SXS_EARLY_DEACTIVATION";
3589 break;
3590 case MD_NTSTATUS_WIN_STATUS_SXS_INVALID_DEACTIVATION:
3591 reason = "STATUS_SXS_INVALID_DEACTIVATION";
3592 break;
3593 case MD_NTSTATUS_WIN_STATUS_SXS_MULTIPLE_DEACTIVATION:
3594 reason = "STATUS_SXS_MULTIPLE_DEACTIVATION";
3595 break;
3596 case MD_NTSTATUS_WIN_STATUS_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY:
3597 reason = "STATUS_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY";
3598 break;
3599 case MD_NTSTATUS_WIN_STATUS_SXS_PROCESS_TERMINATION_REQUESTED:
3600 reason = "STATUS_SXS_PROCESS_TERMINATION_REQUESTED";
3601 break;
3602 case MD_NTSTATUS_WIN_STATUS_SXS_CORRUPT_ACTIVATION_STACK:
3603 reason = "STATUS_SXS_CORRUPT_ACTIVATION_STACK";
3604 break;
3605 case MD_NTSTATUS_WIN_STATUS_SXS_CORRUPTION:
3606 reason = "STATUS_SXS_CORRUPTION";
3607 break;
3608 case MD_NTSTATUS_WIN_STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE:
3609 reason = "STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE";
3610 break;
3611 case MD_NTSTATUS_WIN_STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME:
3612 reason = "STATUS_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME";
3613 break;
3614 case MD_NTSTATUS_WIN_STATUS_SXS_IDENTITY_DUPLICATE_ATTRIBUTE:
3615 reason = "STATUS_SXS_IDENTITY_DUPLICATE_ATTRIBUTE";
3616 break;
3617 case MD_NTSTATUS_WIN_STATUS_SXS_IDENTITY_PARSE_ERROR:
3618 reason = "STATUS_SXS_IDENTITY_PARSE_ERROR";
3619 break;
3620 case MD_NTSTATUS_WIN_STATUS_SXS_COMPONENT_STORE_CORRUPT:
3621 reason = "STATUS_SXS_COMPONENT_STORE_CORRUPT";
3622 break;
3623 case MD_NTSTATUS_WIN_STATUS_SXS_FILE_HASH_MISMATCH:
3624 reason = "STATUS_SXS_FILE_HASH_MISMATCH";
3625 break;
3626 case MD_NTSTATUS_WIN_STATUS_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT:
3627 reason = "STATUS_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT";
3628 break;
3629 case MD_NTSTATUS_WIN_STATUS_SXS_IDENTITIES_DIFFERENT:
3630 reason = "STATUS_SXS_IDENTITIES_DIFFERENT";
3631 break;
3632 case MD_NTSTATUS_WIN_STATUS_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT:
3633 reason = "STATUS_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT";
3634 break;
3635 case MD_NTSTATUS_WIN_STATUS_SXS_FILE_NOT_PART_OF_ASSEMBLY:
3636 reason = "STATUS_SXS_FILE_NOT_PART_OF_ASSEMBLY";
3637 break;
3638 case MD_NTSTATUS_WIN_STATUS_ADVANCED_INSTALLER_FAILED:
3639 reason = "STATUS_ADVANCED_INSTALLER_FAILED";
3640 break;
3641 case MD_NTSTATUS_WIN_STATUS_XML_ENCODING_MISMATCH:
3642 reason = "STATUS_XML_ENCODING_MISMATCH";
3643 break;
3644 case MD_NTSTATUS_WIN_STATUS_SXS_MANIFEST_TOO_BIG:
3645 reason = "STATUS_SXS_MANIFEST_TOO_BIG";
3646 break;
3647 case MD_NTSTATUS_WIN_STATUS_SXS_SETTING_NOT_REGISTERED:
3648 reason = "STATUS_SXS_SETTING_NOT_REGISTERED";
3649 break;
3650 case MD_NTSTATUS_WIN_STATUS_SXS_TRANSACTION_CLOSURE_INCOMPLETE:
3651 reason = "STATUS_SXS_TRANSACTION_CLOSURE_INCOMPLETE";
3652 break;
3653 case MD_NTSTATUS_WIN_STATUS_SMI_PRIMITIVE_INSTALLER_FAILED:
3654 reason = "STATUS_SMI_PRIMITIVE_INSTALLER_FAILED";
3655 break;
3656 case MD_NTSTATUS_WIN_STATUS_GENERIC_COMMAND_FAILED:
3657 reason = "STATUS_GENERIC_COMMAND_FAILED";
3658 break;
3659 case MD_NTSTATUS_WIN_STATUS_SXS_FILE_HASH_MISSING:
3660 reason = "STATUS_SXS_FILE_HASH_MISSING";
3661 break;
3662 case MD_NTSTATUS_WIN_STATUS_TRANSACTIONAL_CONFLICT:
3663 reason = "STATUS_TRANSACTIONAL_CONFLICT";
3664 break;
3665 case MD_NTSTATUS_WIN_STATUS_INVALID_TRANSACTION:
3666 reason = "STATUS_INVALID_TRANSACTION";
3667 break;
3668 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_NOT_ACTIVE:
3669 reason = "STATUS_TRANSACTION_NOT_ACTIVE";
3670 break;
3671 case MD_NTSTATUS_WIN_STATUS_TM_INITIALIZATION_FAILED:
3672 reason = "STATUS_TM_INITIALIZATION_FAILED";
3673 break;
3674 case MD_NTSTATUS_WIN_STATUS_RM_NOT_ACTIVE:
3675 reason = "STATUS_RM_NOT_ACTIVE";
3676 break;
3677 case MD_NTSTATUS_WIN_STATUS_RM_METADATA_CORRUPT:
3678 reason = "STATUS_RM_METADATA_CORRUPT";
3679 break;
3680 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_NOT_JOINED:
3681 reason = "STATUS_TRANSACTION_NOT_JOINED";
3682 break;
3683 case MD_NTSTATUS_WIN_STATUS_DIRECTORY_NOT_RM:
3684 reason = "STATUS_DIRECTORY_NOT_RM";
3685 break;
3686 case MD_NTSTATUS_WIN_STATUS_TRANSACTIONS_UNSUPPORTED_REMOTE:
3687 reason = "STATUS_TRANSACTIONS_UNSUPPORTED_REMOTE";
3688 break;
3689 case MD_NTSTATUS_WIN_STATUS_LOG_RESIZE_INVALID_SIZE:
3690 reason = "STATUS_LOG_RESIZE_INVALID_SIZE";
3691 break;
3692 case MD_NTSTATUS_WIN_STATUS_REMOTE_FILE_VERSION_MISMATCH:
3693 reason = "STATUS_REMOTE_FILE_VERSION_MISMATCH";
3694 break;
3695 case MD_NTSTATUS_WIN_STATUS_CRM_PROTOCOL_ALREADY_EXISTS:
3696 reason = "STATUS_CRM_PROTOCOL_ALREADY_EXISTS";
3697 break;
3698 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_PROPAGATION_FAILED:
3699 reason = "STATUS_TRANSACTION_PROPAGATION_FAILED";
3700 break;
3701 case MD_NTSTATUS_WIN_STATUS_CRM_PROTOCOL_NOT_FOUND:
3702 reason = "STATUS_CRM_PROTOCOL_NOT_FOUND";
3703 break;
3704 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_SUPERIOR_EXISTS:
3705 reason = "STATUS_TRANSACTION_SUPERIOR_EXISTS";
3706 break;
3707 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_REQUEST_NOT_VALID:
3708 reason = "STATUS_TRANSACTION_REQUEST_NOT_VALID";
3709 break;
3710 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_NOT_REQUESTED:
3711 reason = "STATUS_TRANSACTION_NOT_REQUESTED";
3712 break;
3713 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_ALREADY_ABORTED:
3714 reason = "STATUS_TRANSACTION_ALREADY_ABORTED";
3715 break;
3716 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_ALREADY_COMMITTED:
3717 reason = "STATUS_TRANSACTION_ALREADY_COMMITTED";
3718 break;
3719 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_INVALID_MARSHALL_BUFFER:
3720 reason = "STATUS_TRANSACTION_INVALID_MARSHALL_BUFFER";
3721 break;
3722 case MD_NTSTATUS_WIN_STATUS_CURRENT_TRANSACTION_NOT_VALID:
3723 reason = "STATUS_CURRENT_TRANSACTION_NOT_VALID";
3724 break;
3725 case MD_NTSTATUS_WIN_STATUS_LOG_GROWTH_FAILED:
3726 reason = "STATUS_LOG_GROWTH_FAILED";
3727 break;
3728 case MD_NTSTATUS_WIN_STATUS_OBJECT_NO_LONGER_EXISTS:
3729 reason = "STATUS_OBJECT_NO_LONGER_EXISTS";
3730 break;
3731 case MD_NTSTATUS_WIN_STATUS_STREAM_MINIVERSION_NOT_FOUND:
3732 reason = "STATUS_STREAM_MINIVERSION_NOT_FOUND";
3733 break;
3734 case MD_NTSTATUS_WIN_STATUS_STREAM_MINIVERSION_NOT_VALID:
3735 reason = "STATUS_STREAM_MINIVERSION_NOT_VALID";
3736 break;
3737 case MD_NTSTATUS_WIN_STATUS_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION:
3738 reason = "STATUS_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION";
3739 break;
3740 case MD_NTSTATUS_WIN_STATUS_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT:
3741 reason = "STATUS_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT";
3742 break;
3743 case MD_NTSTATUS_WIN_STATUS_CANT_CREATE_MORE_STREAM_MINIVERSIONS:
3744 reason = "STATUS_CANT_CREATE_MORE_STREAM_MINIVERSIONS";
3745 break;
3746 case MD_NTSTATUS_WIN_STATUS_HANDLE_NO_LONGER_VALID:
3747 reason = "STATUS_HANDLE_NO_LONGER_VALID";
3748 break;
3749 case MD_NTSTATUS_WIN_STATUS_LOG_CORRUPTION_DETECTED:
3750 reason = "STATUS_LOG_CORRUPTION_DETECTED";
3751 break;
3752 case MD_NTSTATUS_WIN_STATUS_RM_DISCONNECTED:
3753 reason = "STATUS_RM_DISCONNECTED";
3754 break;
3755 case MD_NTSTATUS_WIN_STATUS_ENLISTMENT_NOT_SUPERIOR:
3756 reason = "STATUS_ENLISTMENT_NOT_SUPERIOR";
3757 break;
3758 case MD_NTSTATUS_WIN_STATUS_FILE_IDENTITY_NOT_PERSISTENT:
3759 reason = "STATUS_FILE_IDENTITY_NOT_PERSISTENT";
3760 break;
3761 case MD_NTSTATUS_WIN_STATUS_CANT_BREAK_TRANSACTIONAL_DEPENDENCY:
3762 reason = "STATUS_CANT_BREAK_TRANSACTIONAL_DEPENDENCY";
3763 break;
3764 case MD_NTSTATUS_WIN_STATUS_CANT_CROSS_RM_BOUNDARY:
3765 reason = "STATUS_CANT_CROSS_RM_BOUNDARY";
3766 break;
3767 case MD_NTSTATUS_WIN_STATUS_TXF_DIR_NOT_EMPTY:
3768 reason = "STATUS_TXF_DIR_NOT_EMPTY";
3769 break;
3770 case MD_NTSTATUS_WIN_STATUS_INDOUBT_TRANSACTIONS_EXIST:
3771 reason = "STATUS_INDOUBT_TRANSACTIONS_EXIST";
3772 break;
3773 case MD_NTSTATUS_WIN_STATUS_TM_VOLATILE:
3774 reason = "STATUS_TM_VOLATILE";
3775 break;
3776 case MD_NTSTATUS_WIN_STATUS_ROLLBACK_TIMER_EXPIRED:
3777 reason = "STATUS_ROLLBACK_TIMER_EXPIRED";
3778 break;
3779 case MD_NTSTATUS_WIN_STATUS_TXF_ATTRIBUTE_CORRUPT:
3780 reason = "STATUS_TXF_ATTRIBUTE_CORRUPT";
3781 break;
3782 case MD_NTSTATUS_WIN_STATUS_EFS_NOT_ALLOWED_IN_TRANSACTION:
3783 reason = "STATUS_EFS_NOT_ALLOWED_IN_TRANSACTION";
3784 break;
3785 case MD_NTSTATUS_WIN_STATUS_TRANSACTIONAL_OPEN_NOT_ALLOWED:
3786 reason = "STATUS_TRANSACTIONAL_OPEN_NOT_ALLOWED";
3787 break;
3788 case MD_NTSTATUS_WIN_STATUS_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE:
3789 reason = "STATUS_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE";
3790 break;
3791 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_REQUIRED_PROMOTION:
3792 reason = "STATUS_TRANSACTION_REQUIRED_PROMOTION";
3793 break;
3794 case MD_NTSTATUS_WIN_STATUS_CANNOT_EXECUTE_FILE_IN_TRANSACTION:
3795 reason = "STATUS_CANNOT_EXECUTE_FILE_IN_TRANSACTION";
3796 break;
3797 case MD_NTSTATUS_WIN_STATUS_TRANSACTIONS_NOT_FROZEN:
3798 reason = "STATUS_TRANSACTIONS_NOT_FROZEN";
3799 break;
3800 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_FREEZE_IN_PROGRESS:
3801 reason = "STATUS_TRANSACTION_FREEZE_IN_PROGRESS";
3802 break;
3803 case MD_NTSTATUS_WIN_STATUS_NOT_SNAPSHOT_VOLUME:
3804 reason = "STATUS_NOT_SNAPSHOT_VOLUME";
3805 break;
3806 case MD_NTSTATUS_WIN_STATUS_NO_SAVEPOINT_WITH_OPEN_FILES:
3807 reason = "STATUS_NO_SAVEPOINT_WITH_OPEN_FILES";
3808 break;
3809 case MD_NTSTATUS_WIN_STATUS_SPARSE_NOT_ALLOWED_IN_TRANSACTION:
3810 reason = "STATUS_SPARSE_NOT_ALLOWED_IN_TRANSACTION";
3811 break;
3812 case MD_NTSTATUS_WIN_STATUS_TM_IDENTITY_MISMATCH:
3813 reason = "STATUS_TM_IDENTITY_MISMATCH";
3814 break;
3815 case MD_NTSTATUS_WIN_STATUS_FLOATED_SECTION:
3816 reason = "STATUS_FLOATED_SECTION";
3817 break;
3818 case MD_NTSTATUS_WIN_STATUS_CANNOT_ACCEPT_TRANSACTED_WORK:
3819 reason = "STATUS_CANNOT_ACCEPT_TRANSACTED_WORK";
3820 break;
3821 case MD_NTSTATUS_WIN_STATUS_CANNOT_ABORT_TRANSACTIONS:
3822 reason = "STATUS_CANNOT_ABORT_TRANSACTIONS";
3823 break;
3824 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_NOT_FOUND:
3825 reason = "STATUS_TRANSACTION_NOT_FOUND";
3826 break;
3827 case MD_NTSTATUS_WIN_STATUS_RESOURCEMANAGER_NOT_FOUND:
3828 reason = "STATUS_RESOURCEMANAGER_NOT_FOUND";
3829 break;
3830 case MD_NTSTATUS_WIN_STATUS_ENLISTMENT_NOT_FOUND:
3831 reason = "STATUS_ENLISTMENT_NOT_FOUND";
3832 break;
3833 case MD_NTSTATUS_WIN_STATUS_TRANSACTIONMANAGER_NOT_FOUND:
3834 reason = "STATUS_TRANSACTIONMANAGER_NOT_FOUND";
3835 break;
3836 case MD_NTSTATUS_WIN_STATUS_TRANSACTIONMANAGER_NOT_ONLINE:
3837 reason = "STATUS_TRANSACTIONMANAGER_NOT_ONLINE";
3838 break;
3839 case MD_NTSTATUS_WIN_STATUS_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION:
3840 reason = "STATUS_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION";
3841 break;
3842 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_NOT_ROOT:
3843 reason = "STATUS_TRANSACTION_NOT_ROOT";
3844 break;
3845 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_OBJECT_EXPIRED:
3846 reason = "STATUS_TRANSACTION_OBJECT_EXPIRED";
3847 break;
3848 case MD_NTSTATUS_WIN_STATUS_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION:
3849 reason = "STATUS_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION";
3850 break;
3851 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_RESPONSE_NOT_ENLISTED:
3852 reason = "STATUS_TRANSACTION_RESPONSE_NOT_ENLISTED";
3853 break;
3854 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_RECORD_TOO_LONG:
3855 reason = "STATUS_TRANSACTION_RECORD_TOO_LONG";
3856 break;
3857 case MD_NTSTATUS_WIN_STATUS_NO_LINK_TRACKING_IN_TRANSACTION:
3858 reason = "STATUS_NO_LINK_TRACKING_IN_TRANSACTION";
3859 break;
3860 case MD_NTSTATUS_WIN_STATUS_OPERATION_NOT_SUPPORTED_IN_TRANSACTION:
3861 reason = "STATUS_OPERATION_NOT_SUPPORTED_IN_TRANSACTION";
3862 break;
3863 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_INTEGRITY_VIOLATED:
3864 reason = "STATUS_TRANSACTION_INTEGRITY_VIOLATED";
3865 break;
3866 case MD_NTSTATUS_WIN_STATUS_TRANSACTIONMANAGER_IDENTITY_MISMATCH:
3867 reason = "STATUS_TRANSACTIONMANAGER_IDENTITY_MISMATCH";
3868 break;
3869 case MD_NTSTATUS_WIN_STATUS_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT:
3870 reason = "STATUS_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT";
3871 break;
3872 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_MUST_WRITETHROUGH:
3873 reason = "STATUS_TRANSACTION_MUST_WRITETHROUGH";
3874 break;
3875 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_NO_SUPERIOR:
3876 reason = "STATUS_TRANSACTION_NO_SUPERIOR";
3877 break;
3878 case MD_NTSTATUS_WIN_STATUS_EXPIRED_HANDLE:
3879 reason = "STATUS_EXPIRED_HANDLE";
3880 break;
3881 case MD_NTSTATUS_WIN_STATUS_TRANSACTION_NOT_ENLISTED:
3882 reason = "STATUS_TRANSACTION_NOT_ENLISTED";
3883 break;
3884 case MD_NTSTATUS_WIN_STATUS_LOG_SECTOR_INVALID:
3885 reason = "STATUS_LOG_SECTOR_INVALID";
3886 break;
3887 case MD_NTSTATUS_WIN_STATUS_LOG_SECTOR_PARITY_INVALID:
3888 reason = "STATUS_LOG_SECTOR_PARITY_INVALID";
3889 break;
3890 case MD_NTSTATUS_WIN_STATUS_LOG_SECTOR_REMAPPED:
3891 reason = "STATUS_LOG_SECTOR_REMAPPED";
3892 break;
3893 case MD_NTSTATUS_WIN_STATUS_LOG_BLOCK_INCOMPLETE:
3894 reason = "STATUS_LOG_BLOCK_INCOMPLETE";
3895 break;
3896 case MD_NTSTATUS_WIN_STATUS_LOG_INVALID_RANGE:
3897 reason = "STATUS_LOG_INVALID_RANGE";
3898 break;
3899 case MD_NTSTATUS_WIN_STATUS_LOG_BLOCKS_EXHAUSTED:
3900 reason = "STATUS_LOG_BLOCKS_EXHAUSTED";
3901 break;
3902 case MD_NTSTATUS_WIN_STATUS_LOG_READ_CONTEXT_INVALID:
3903 reason = "STATUS_LOG_READ_CONTEXT_INVALID";
3904 break;
3905 case MD_NTSTATUS_WIN_STATUS_LOG_RESTART_INVALID:
3906 reason = "STATUS_LOG_RESTART_INVALID";
3907 break;
3908 case MD_NTSTATUS_WIN_STATUS_LOG_BLOCK_VERSION:
3909 reason = "STATUS_LOG_BLOCK_VERSION";
3910 break;
3911 case MD_NTSTATUS_WIN_STATUS_LOG_BLOCK_INVALID:
3912 reason = "STATUS_LOG_BLOCK_INVALID";
3913 break;
3914 case MD_NTSTATUS_WIN_STATUS_LOG_READ_MODE_INVALID:
3915 reason = "STATUS_LOG_READ_MODE_INVALID";
3916 break;
3917 case MD_NTSTATUS_WIN_STATUS_LOG_METADATA_CORRUPT:
3918 reason = "STATUS_LOG_METADATA_CORRUPT";
3919 break;
3920 case MD_NTSTATUS_WIN_STATUS_LOG_METADATA_INVALID:
3921 reason = "STATUS_LOG_METADATA_INVALID";
3922 break;
3923 case MD_NTSTATUS_WIN_STATUS_LOG_METADATA_INCONSISTENT:
3924 reason = "STATUS_LOG_METADATA_INCONSISTENT";
3925 break;
3926 case MD_NTSTATUS_WIN_STATUS_LOG_RESERVATION_INVALID:
3927 reason = "STATUS_LOG_RESERVATION_INVALID";
3928 break;
3929 case MD_NTSTATUS_WIN_STATUS_LOG_CANT_DELETE:
3930 reason = "STATUS_LOG_CANT_DELETE";
3931 break;
3932 case MD_NTSTATUS_WIN_STATUS_LOG_CONTAINER_LIMIT_EXCEEDED:
3933 reason = "STATUS_LOG_CONTAINER_LIMIT_EXCEEDED";
3934 break;
3935 case MD_NTSTATUS_WIN_STATUS_LOG_START_OF_LOG:
3936 reason = "STATUS_LOG_START_OF_LOG";
3937 break;
3938 case MD_NTSTATUS_WIN_STATUS_LOG_POLICY_ALREADY_INSTALLED:
3939 reason = "STATUS_LOG_POLICY_ALREADY_INSTALLED";
3940 break;
3941 case MD_NTSTATUS_WIN_STATUS_LOG_POLICY_NOT_INSTALLED:
3942 reason = "STATUS_LOG_POLICY_NOT_INSTALLED";
3943 break;
3944 case MD_NTSTATUS_WIN_STATUS_LOG_POLICY_INVALID:
3945 reason = "STATUS_LOG_POLICY_INVALID";
3946 break;
3947 case MD_NTSTATUS_WIN_STATUS_LOG_POLICY_CONFLICT:
3948 reason = "STATUS_LOG_POLICY_CONFLICT";
3949 break;
3950 case MD_NTSTATUS_WIN_STATUS_LOG_PINNED_ARCHIVE_TAIL:
3951 reason = "STATUS_LOG_PINNED_ARCHIVE_TAIL";
3952 break;
3953 case MD_NTSTATUS_WIN_STATUS_LOG_RECORD_NONEXISTENT:
3954 reason = "STATUS_LOG_RECORD_NONEXISTENT";
3955 break;
3956 case MD_NTSTATUS_WIN_STATUS_LOG_RECORDS_RESERVED_INVALID:
3957 reason = "STATUS_LOG_RECORDS_RESERVED_INVALID";
3958 break;
3959 case MD_NTSTATUS_WIN_STATUS_LOG_SPACE_RESERVED_INVALID:
3960 reason = "STATUS_LOG_SPACE_RESERVED_INVALID";
3961 break;
3962 case MD_NTSTATUS_WIN_STATUS_LOG_TAIL_INVALID:
3963 reason = "STATUS_LOG_TAIL_INVALID";
3964 break;
3965 case MD_NTSTATUS_WIN_STATUS_LOG_FULL:
3966 reason = "STATUS_LOG_FULL";
3967 break;
3968 case MD_NTSTATUS_WIN_STATUS_LOG_MULTIPLEXED:
3969 reason = "STATUS_LOG_MULTIPLEXED";
3970 break;
3971 case MD_NTSTATUS_WIN_STATUS_LOG_DEDICATED:
3972 reason = "STATUS_LOG_DEDICATED";
3973 break;
3974 case MD_NTSTATUS_WIN_STATUS_LOG_ARCHIVE_NOT_IN_PROGRESS:
3975 reason = "STATUS_LOG_ARCHIVE_NOT_IN_PROGRESS";
3976 break;
3977 case MD_NTSTATUS_WIN_STATUS_LOG_ARCHIVE_IN_PROGRESS:
3978 reason = "STATUS_LOG_ARCHIVE_IN_PROGRESS";
3979 break;
3980 case MD_NTSTATUS_WIN_STATUS_LOG_EPHEMERAL:
3981 reason = "STATUS_LOG_EPHEMERAL";
3982 break;
3983 case MD_NTSTATUS_WIN_STATUS_LOG_NOT_ENOUGH_CONTAINERS:
3984 reason = "STATUS_LOG_NOT_ENOUGH_CONTAINERS";
3985 break;
3986 case MD_NTSTATUS_WIN_STATUS_LOG_CLIENT_ALREADY_REGISTERED:
3987 reason = "STATUS_LOG_CLIENT_ALREADY_REGISTERED";
3988 break;
3989 case MD_NTSTATUS_WIN_STATUS_LOG_CLIENT_NOT_REGISTERED:
3990 reason = "STATUS_LOG_CLIENT_NOT_REGISTERED";
3991 break;
3992 case MD_NTSTATUS_WIN_STATUS_LOG_FULL_HANDLER_IN_PROGRESS:
3993 reason = "STATUS_LOG_FULL_HANDLER_IN_PROGRESS";
3994 break;
3995 case MD_NTSTATUS_WIN_STATUS_LOG_CONTAINER_READ_FAILED:
3996 reason = "STATUS_LOG_CONTAINER_READ_FAILED";
3997 break;
3998 case MD_NTSTATUS_WIN_STATUS_LOG_CONTAINER_WRITE_FAILED:
3999 reason = "STATUS_LOG_CONTAINER_WRITE_FAILED";
4000 break;
4001 case MD_NTSTATUS_WIN_STATUS_LOG_CONTAINER_OPEN_FAILED:
4002 reason = "STATUS_LOG_CONTAINER_OPEN_FAILED";
4003 break;
4004 case MD_NTSTATUS_WIN_STATUS_LOG_CONTAINER_STATE_INVALID:
4005 reason = "STATUS_LOG_CONTAINER_STATE_INVALID";
4006 break;
4007 case MD_NTSTATUS_WIN_STATUS_LOG_STATE_INVALID:
4008 reason = "STATUS_LOG_STATE_INVALID";
4009 break;
4010 case MD_NTSTATUS_WIN_STATUS_LOG_PINNED:
4011 reason = "STATUS_LOG_PINNED";
4012 break;
4013 case MD_NTSTATUS_WIN_STATUS_LOG_METADATA_FLUSH_FAILED:
4014 reason = "STATUS_LOG_METADATA_FLUSH_FAILED";
4015 break;
4016 case MD_NTSTATUS_WIN_STATUS_LOG_INCONSISTENT_SECURITY:
4017 reason = "STATUS_LOG_INCONSISTENT_SECURITY";
4018 break;
4019 case MD_NTSTATUS_WIN_STATUS_LOG_APPENDED_FLUSH_FAILED:
4020 reason = "STATUS_LOG_APPENDED_FLUSH_FAILED";
4021 break;
4022 case MD_NTSTATUS_WIN_STATUS_LOG_PINNED_RESERVATION:
4023 reason = "STATUS_LOG_PINNED_RESERVATION";
4024 break;
4025 case MD_NTSTATUS_WIN_STATUS_VIDEO_HUNG_DISPLAY_DRIVER_THREAD:
4026 reason = "STATUS_VIDEO_HUNG_DISPLAY_DRIVER_THREAD";
4027 break;
4028 case MD_NTSTATUS_WIN_STATUS_FLT_NO_HANDLER_DEFINED:
4029 reason = "STATUS_FLT_NO_HANDLER_DEFINED";
4030 break;
4031 case MD_NTSTATUS_WIN_STATUS_FLT_CONTEXT_ALREADY_DEFINED:
4032 reason = "STATUS_FLT_CONTEXT_ALREADY_DEFINED";
4033 break;
4034 case MD_NTSTATUS_WIN_STATUS_FLT_INVALID_ASYNCHRONOUS_REQUEST:
4035 reason = "STATUS_FLT_INVALID_ASYNCHRONOUS_REQUEST";
4036 break;
4037 case MD_NTSTATUS_WIN_STATUS_FLT_DISALLOW_FAST_IO:
4038 reason = "STATUS_FLT_DISALLOW_FAST_IO";
4039 break;
4040 case MD_NTSTATUS_WIN_STATUS_FLT_INVALID_NAME_REQUEST:
4041 reason = "STATUS_FLT_INVALID_NAME_REQUEST";
4042 break;
4043 case MD_NTSTATUS_WIN_STATUS_FLT_NOT_SAFE_TO_POST_OPERATION:
4044 reason = "STATUS_FLT_NOT_SAFE_TO_POST_OPERATION";
4045 break;
4046 case MD_NTSTATUS_WIN_STATUS_FLT_NOT_INITIALIZED:
4047 reason = "STATUS_FLT_NOT_INITIALIZED";
4048 break;
4049 case MD_NTSTATUS_WIN_STATUS_FLT_FILTER_NOT_READY:
4050 reason = "STATUS_FLT_FILTER_NOT_READY";
4051 break;
4052 case MD_NTSTATUS_WIN_STATUS_FLT_POST_OPERATION_CLEANUP:
4053 reason = "STATUS_FLT_POST_OPERATION_CLEANUP";
4054 break;
4055 case MD_NTSTATUS_WIN_STATUS_FLT_INTERNAL_ERROR:
4056 reason = "STATUS_FLT_INTERNAL_ERROR";
4057 break;
4058 case MD_NTSTATUS_WIN_STATUS_FLT_DELETING_OBJECT:
4059 reason = "STATUS_FLT_DELETING_OBJECT";
4060 break;
4061 case MD_NTSTATUS_WIN_STATUS_FLT_MUST_BE_NONPAGED_POOL:
4062 reason = "STATUS_FLT_MUST_BE_NONPAGED_POOL";
4063 break;
4064 case MD_NTSTATUS_WIN_STATUS_FLT_DUPLICATE_ENTRY:
4065 reason = "STATUS_FLT_DUPLICATE_ENTRY";
4066 break;
4067 case MD_NTSTATUS_WIN_STATUS_FLT_CBDQ_DISABLED:
4068 reason = "STATUS_FLT_CBDQ_DISABLED";
4069 break;
4070 case MD_NTSTATUS_WIN_STATUS_FLT_DO_NOT_ATTACH:
4071 reason = "STATUS_FLT_DO_NOT_ATTACH";
4072 break;
4073 case MD_NTSTATUS_WIN_STATUS_FLT_DO_NOT_DETACH:
4074 reason = "STATUS_FLT_DO_NOT_DETACH";
4075 break;
4076 case MD_NTSTATUS_WIN_STATUS_FLT_INSTANCE_ALTITUDE_COLLISION:
4077 reason = "STATUS_FLT_INSTANCE_ALTITUDE_COLLISION";
4078 break;
4079 case MD_NTSTATUS_WIN_STATUS_FLT_INSTANCE_NAME_COLLISION:
4080 reason = "STATUS_FLT_INSTANCE_NAME_COLLISION";
4081 break;
4082 case MD_NTSTATUS_WIN_STATUS_FLT_FILTER_NOT_FOUND:
4083 reason = "STATUS_FLT_FILTER_NOT_FOUND";
4084 break;
4085 case MD_NTSTATUS_WIN_STATUS_FLT_VOLUME_NOT_FOUND:
4086 reason = "STATUS_FLT_VOLUME_NOT_FOUND";
4087 break;
4088 case MD_NTSTATUS_WIN_STATUS_FLT_INSTANCE_NOT_FOUND:
4089 reason = "STATUS_FLT_INSTANCE_NOT_FOUND";
4090 break;
4091 case MD_NTSTATUS_WIN_STATUS_FLT_CONTEXT_ALLOCATION_NOT_FOUND:
4092 reason = "STATUS_FLT_CONTEXT_ALLOCATION_NOT_FOUND";
4093 break;
4094 case MD_NTSTATUS_WIN_STATUS_FLT_INVALID_CONTEXT_REGISTRATION:
4095 reason = "STATUS_FLT_INVALID_CONTEXT_REGISTRATION";
4096 break;
4097 case MD_NTSTATUS_WIN_STATUS_FLT_NAME_CACHE_MISS:
4098 reason = "STATUS_FLT_NAME_CACHE_MISS";
4099 break;
4100 case MD_NTSTATUS_WIN_STATUS_FLT_NO_DEVICE_OBJECT:
4101 reason = "STATUS_FLT_NO_DEVICE_OBJECT";
4102 break;
4103 case MD_NTSTATUS_WIN_STATUS_FLT_VOLUME_ALREADY_MOUNTED:
4104 reason = "STATUS_FLT_VOLUME_ALREADY_MOUNTED";
4105 break;
4106 case MD_NTSTATUS_WIN_STATUS_FLT_ALREADY_ENLISTED:
4107 reason = "STATUS_FLT_ALREADY_ENLISTED";
4108 break;
4109 case MD_NTSTATUS_WIN_STATUS_FLT_CONTEXT_ALREADY_LINKED:
4110 reason = "STATUS_FLT_CONTEXT_ALREADY_LINKED";
4111 break;
4112 case MD_NTSTATUS_WIN_STATUS_FLT_NO_WAITER_FOR_REPLY:
4113 reason = "STATUS_FLT_NO_WAITER_FOR_REPLY";
4114 break;
4115 case MD_NTSTATUS_WIN_STATUS_FLT_REGISTRATION_BUSY:
4116 reason = "STATUS_FLT_REGISTRATION_BUSY";
4117 break;
4118 case MD_NTSTATUS_WIN_STATUS_MONITOR_NO_DESCRIPTOR:
4119 reason = "STATUS_MONITOR_NO_DESCRIPTOR";
4120 break;
4121 case MD_NTSTATUS_WIN_STATUS_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT:
4122 reason = "STATUS_MONITOR_UNKNOWN_DESCRIPTOR_FORMAT";
4123 break;
4124 case MD_NTSTATUS_WIN_STATUS_MONITOR_INVALID_DESCRIPTOR_CHECKSUM:
4125 reason = "STATUS_MONITOR_INVALID_DESCRIPTOR_CHECKSUM";
4126 break;
4127 case MD_NTSTATUS_WIN_STATUS_MONITOR_INVALID_STANDARD_TIMING_BLOCK:
4128 reason = "STATUS_MONITOR_INVALID_STANDARD_TIMING_BLOCK";
4129 break;
4130 case MD_NTSTATUS_WIN_STATUS_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED:
4131 reason = "STATUS_MONITOR_WMI_DATABLOCK_REGISTRATION_FAILED";
4132 break;
4133 case MD_NTSTATUS_WIN_STATUS_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK:
4134 reason = "STATUS_MONITOR_INVALID_SERIAL_NUMBER_MONDSC_BLOCK";
4135 break;
4136 case MD_NTSTATUS_WIN_STATUS_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK:
4137 reason = "STATUS_MONITOR_INVALID_USER_FRIENDLY_MONDSC_BLOCK";
4138 break;
4139 case MD_NTSTATUS_WIN_STATUS_MONITOR_NO_MORE_DESCRIPTOR_DATA:
4140 reason = "STATUS_MONITOR_NO_MORE_DESCRIPTOR_DATA";
4141 break;
4142 case MD_NTSTATUS_WIN_STATUS_MONITOR_INVALID_DETAILED_TIMING_BLOCK:
4143 reason = "STATUS_MONITOR_INVALID_DETAILED_TIMING_BLOCK";
4144 break;
4145 case MD_NTSTATUS_WIN_STATUS_MONITOR_INVALID_MANUFACTURE_DATE:
4146 reason = "STATUS_MONITOR_INVALID_MANUFACTURE_DATE";
4147 break;
4148 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER:
4149 reason = "STATUS_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER";
4150 break;
4151 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INSUFFICIENT_DMA_BUFFER:
4152 reason = "STATUS_GRAPHICS_INSUFFICIENT_DMA_BUFFER";
4153 break;
4154 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_DISPLAY_ADAPTER:
4155 reason = "STATUS_GRAPHICS_INVALID_DISPLAY_ADAPTER";
4156 break;
4157 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_ADAPTER_WAS_RESET:
4158 reason = "STATUS_GRAPHICS_ADAPTER_WAS_RESET";
4159 break;
4160 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_DRIVER_MODEL:
4161 reason = "STATUS_GRAPHICS_INVALID_DRIVER_MODEL";
4162 break;
4163 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PRESENT_MODE_CHANGED:
4164 reason = "STATUS_GRAPHICS_PRESENT_MODE_CHANGED";
4165 break;
4166 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PRESENT_OCCLUDED:
4167 reason = "STATUS_GRAPHICS_PRESENT_OCCLUDED";
4168 break;
4169 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PRESENT_DENIED:
4170 reason = "STATUS_GRAPHICS_PRESENT_DENIED";
4171 break;
4172 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CANNOTCOLORCONVERT:
4173 reason = "STATUS_GRAPHICS_CANNOTCOLORCONVERT";
4174 break;
4175 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_DRIVER_MISMATCH:
4176 reason = "STATUS_GRAPHICS_DRIVER_MISMATCH";
4177 break;
4178 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PRESENT_REDIRECTION_DISABLED:
4179 reason = "STATUS_GRAPHICS_PRESENT_REDIRECTION_DISABLED";
4180 break;
4181 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PRESENT_UNOCCLUDED:
4182 reason = "STATUS_GRAPHICS_PRESENT_UNOCCLUDED";
4183 break;
4184 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_WINDOWDC_NOT_AVAILABLE:
4185 reason = "STATUS_GRAPHICS_WINDOWDC_NOT_AVAILABLE";
4186 break;
4187 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_WINDOWLESS_PRESENT_DISABLED:
4188 reason = "STATUS_GRAPHICS_WINDOWLESS_PRESENT_DISABLED";
4189 break;
4190 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NO_VIDEO_MEMORY:
4191 reason = "STATUS_GRAPHICS_NO_VIDEO_MEMORY";
4192 break;
4193 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CANT_LOCK_MEMORY:
4194 reason = "STATUS_GRAPHICS_CANT_LOCK_MEMORY";
4195 break;
4196 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_ALLOCATION_BUSY:
4197 reason = "STATUS_GRAPHICS_ALLOCATION_BUSY";
4198 break;
4199 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_TOO_MANY_REFERENCES:
4200 reason = "STATUS_GRAPHICS_TOO_MANY_REFERENCES";
4201 break;
4202 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_TRY_AGAIN_LATER:
4203 reason = "STATUS_GRAPHICS_TRY_AGAIN_LATER";
4204 break;
4205 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_TRY_AGAIN_NOW:
4206 reason = "STATUS_GRAPHICS_TRY_AGAIN_NOW";
4207 break;
4208 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_ALLOCATION_INVALID:
4209 reason = "STATUS_GRAPHICS_ALLOCATION_INVALID";
4210 break;
4211 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE:
4212 reason = "STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNAVAILABLE";
4213 break;
4214 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED:
4215 reason = "STATUS_GRAPHICS_UNSWIZZLING_APERTURE_UNSUPPORTED";
4216 break;
4217 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION:
4218 reason = "STATUS_GRAPHICS_CANT_EVICT_PINNED_ALLOCATION";
4219 break;
4220 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_ALLOCATION_USAGE:
4221 reason = "STATUS_GRAPHICS_INVALID_ALLOCATION_USAGE";
4222 break;
4223 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION:
4224 reason = "STATUS_GRAPHICS_CANT_RENDER_LOCKED_ALLOCATION";
4225 break;
4226 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_ALLOCATION_CLOSED:
4227 reason = "STATUS_GRAPHICS_ALLOCATION_CLOSED";
4228 break;
4229 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_ALLOCATION_INSTANCE:
4230 reason = "STATUS_GRAPHICS_INVALID_ALLOCATION_INSTANCE";
4231 break;
4232 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_ALLOCATION_HANDLE:
4233 reason = "STATUS_GRAPHICS_INVALID_ALLOCATION_HANDLE";
4234 break;
4235 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_WRONG_ALLOCATION_DEVICE:
4236 reason = "STATUS_GRAPHICS_WRONG_ALLOCATION_DEVICE";
4237 break;
4238 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_ALLOCATION_CONTENT_LOST:
4239 reason = "STATUS_GRAPHICS_ALLOCATION_CONTENT_LOST";
4240 break;
4241 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_GPU_EXCEPTION_ON_DEVICE:
4242 reason = "STATUS_GRAPHICS_GPU_EXCEPTION_ON_DEVICE";
4243 break;
4244 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY:
4245 reason = "STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY";
4246 break;
4247 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED:
4248 reason = "STATUS_GRAPHICS_VIDPN_TOPOLOGY_NOT_SUPPORTED";
4249 break;
4250 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED:
4251 reason = "STATUS_GRAPHICS_VIDPN_TOPOLOGY_CURRENTLY_NOT_SUPPORTED";
4252 break;
4253 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDPN:
4254 reason = "STATUS_GRAPHICS_INVALID_VIDPN";
4255 break;
4256 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE:
4257 reason = "STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE";
4258 break;
4259 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET:
4260 reason = "STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET";
4261 break;
4262 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED:
4263 reason = "STATUS_GRAPHICS_VIDPN_MODALITY_NOT_SUPPORTED";
4264 break;
4265 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDPN_SOURCEMODESET:
4266 reason = "STATUS_GRAPHICS_INVALID_VIDPN_SOURCEMODESET";
4267 break;
4268 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDPN_TARGETMODESET:
4269 reason = "STATUS_GRAPHICS_INVALID_VIDPN_TARGETMODESET";
4270 break;
4271 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_FREQUENCY:
4272 reason = "STATUS_GRAPHICS_INVALID_FREQUENCY";
4273 break;
4274 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_ACTIVE_REGION:
4275 reason = "STATUS_GRAPHICS_INVALID_ACTIVE_REGION";
4276 break;
4277 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_TOTAL_REGION:
4278 reason = "STATUS_GRAPHICS_INVALID_TOTAL_REGION";
4279 break;
4280 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE:
4281 reason = "STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_SOURCE_MODE";
4282 break;
4283 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE:
4284 reason = "STATUS_GRAPHICS_INVALID_VIDEO_PRESENT_TARGET_MODE";
4285 break;
4286 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET:
4287 reason = "STATUS_GRAPHICS_PINNED_MODE_MUST_REMAIN_IN_SET";
4288 break;
4289 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY:
4290 reason = "STATUS_GRAPHICS_PATH_ALREADY_IN_TOPOLOGY";
4291 break;
4292 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MODE_ALREADY_IN_MODESET:
4293 reason = "STATUS_GRAPHICS_MODE_ALREADY_IN_MODESET";
4294 break;
4295 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET:
4296 reason = "STATUS_GRAPHICS_INVALID_VIDEOPRESENTSOURCESET";
4297 break;
4298 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET:
4299 reason = "STATUS_GRAPHICS_INVALID_VIDEOPRESENTTARGETSET";
4300 break;
4301 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_SOURCE_ALREADY_IN_SET:
4302 reason = "STATUS_GRAPHICS_SOURCE_ALREADY_IN_SET";
4303 break;
4304 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_TARGET_ALREADY_IN_SET:
4305 reason = "STATUS_GRAPHICS_TARGET_ALREADY_IN_SET";
4306 break;
4307 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDPN_PRESENT_PATH:
4308 reason = "STATUS_GRAPHICS_INVALID_VIDPN_PRESENT_PATH";
4309 break;
4310 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY:
4311 reason = "STATUS_GRAPHICS_NO_RECOMMENDED_VIDPN_TOPOLOGY";
4312 break;
4313 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET:
4314 reason = "STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGESET";
4315 break;
4316 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE:
4317 reason = "STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE";
4318 break;
4319 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET:
4320 reason = "STATUS_GRAPHICS_FREQUENCYRANGE_NOT_IN_SET";
4321 break;
4322 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET:
4323 reason = "STATUS_GRAPHICS_FREQUENCYRANGE_ALREADY_IN_SET";
4324 break;
4325 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_STALE_MODESET:
4326 reason = "STATUS_GRAPHICS_STALE_MODESET";
4327 break;
4328 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_MONITOR_SOURCEMODESET:
4329 reason = "STATUS_GRAPHICS_INVALID_MONITOR_SOURCEMODESET";
4330 break;
4331 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_MONITOR_SOURCE_MODE:
4332 reason = "STATUS_GRAPHICS_INVALID_MONITOR_SOURCE_MODE";
4333 break;
4334 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN:
4335 reason = "STATUS_GRAPHICS_NO_RECOMMENDED_FUNCTIONAL_VIDPN";
4336 break;
4337 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MODE_ID_MUST_BE_UNIQUE:
4338 reason = "STATUS_GRAPHICS_MODE_ID_MUST_BE_UNIQUE";
4339 break;
4340 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION:
4341 reason = "STATUS_GRAPHICS_EMPTY_ADAPTER_MONITOR_MODE_SUPPORT_INTERSECTION";
4342 break;
4343 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES:
4344 reason = "STATUS_GRAPHICS_VIDEO_PRESENT_TARGETS_LESS_THAN_SOURCES";
4345 break;
4346 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PATH_NOT_IN_TOPOLOGY:
4347 reason = "STATUS_GRAPHICS_PATH_NOT_IN_TOPOLOGY";
4348 break;
4349 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE:
4350 reason = "STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_SOURCE";
4351 break;
4352 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET:
4353 reason = "STATUS_GRAPHICS_ADAPTER_MUST_HAVE_AT_LEAST_ONE_TARGET";
4354 break;
4355 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_MONITORDESCRIPTORSET:
4356 reason = "STATUS_GRAPHICS_INVALID_MONITORDESCRIPTORSET";
4357 break;
4358 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_MONITORDESCRIPTOR:
4359 reason = "STATUS_GRAPHICS_INVALID_MONITORDESCRIPTOR";
4360 break;
4361 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET:
4362 reason = "STATUS_GRAPHICS_MONITORDESCRIPTOR_NOT_IN_SET";
4363 break;
4364 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET:
4365 reason = "STATUS_GRAPHICS_MONITORDESCRIPTOR_ALREADY_IN_SET";
4366 break;
4367 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE:
4368 reason = "STATUS_GRAPHICS_MONITORDESCRIPTOR_ID_MUST_BE_UNIQUE";
4369 break;
4370 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE:
4371 reason = "STATUS_GRAPHICS_INVALID_VIDPN_TARGET_SUBSET_TYPE";
4372 break;
4373 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_RESOURCES_NOT_RELATED:
4374 reason = "STATUS_GRAPHICS_RESOURCES_NOT_RELATED";
4375 break;
4376 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE:
4377 reason = "STATUS_GRAPHICS_SOURCE_ID_MUST_BE_UNIQUE";
4378 break;
4379 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE:
4380 reason = "STATUS_GRAPHICS_TARGET_ID_MUST_BE_UNIQUE";
4381 break;
4382 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET:
4383 reason = "STATUS_GRAPHICS_NO_AVAILABLE_VIDPN_TARGET";
4384 break;
4385 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER:
4386 reason = "STATUS_GRAPHICS_MONITOR_COULD_NOT_BE_ASSOCIATED_WITH_ADAPTER";
4387 break;
4388 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NO_VIDPNMGR:
4389 reason = "STATUS_GRAPHICS_NO_VIDPNMGR";
4390 break;
4391 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NO_ACTIVE_VIDPN:
4392 reason = "STATUS_GRAPHICS_NO_ACTIVE_VIDPN";
4393 break;
4394 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_STALE_VIDPN_TOPOLOGY:
4395 reason = "STATUS_GRAPHICS_STALE_VIDPN_TOPOLOGY";
4396 break;
4397 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MONITOR_NOT_CONNECTED:
4398 reason = "STATUS_GRAPHICS_MONITOR_NOT_CONNECTED";
4399 break;
4400 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY:
4401 reason = "STATUS_GRAPHICS_SOURCE_NOT_IN_TOPOLOGY";
4402 break;
4403 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE:
4404 reason = "STATUS_GRAPHICS_INVALID_PRIMARYSURFACE_SIZE";
4405 break;
4406 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VISIBLEREGION_SIZE:
4407 reason = "STATUS_GRAPHICS_INVALID_VISIBLEREGION_SIZE";
4408 break;
4409 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_STRIDE:
4410 reason = "STATUS_GRAPHICS_INVALID_STRIDE";
4411 break;
4412 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_PIXELFORMAT:
4413 reason = "STATUS_GRAPHICS_INVALID_PIXELFORMAT";
4414 break;
4415 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_COLORBASIS:
4416 reason = "STATUS_GRAPHICS_INVALID_COLORBASIS";
4417 break;
4418 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_PIXELVALUEACCESSMODE:
4419 reason = "STATUS_GRAPHICS_INVALID_PIXELVALUEACCESSMODE";
4420 break;
4421 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_TARGET_NOT_IN_TOPOLOGY:
4422 reason = "STATUS_GRAPHICS_TARGET_NOT_IN_TOPOLOGY";
4423 break;
4424 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT:
4425 reason = "STATUS_GRAPHICS_NO_DISPLAY_MODE_MANAGEMENT_SUPPORT";
4426 break;
4427 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE:
4428 reason = "STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE";
4429 break;
4430 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN:
4431 reason = "STATUS_GRAPHICS_CANT_ACCESS_ACTIVE_VIDPN";
4432 break;
4433 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL:
4434 reason = "STATUS_GRAPHICS_INVALID_PATH_IMPORTANCE_ORDINAL";
4435 break;
4436 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION:
4437 reason = "STATUS_GRAPHICS_INVALID_PATH_CONTENT_GEOMETRY_TRANSFORMATION";
4438 break;
4439 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED:
4440 reason = "STATUS_GRAPHICS_PATH_CONTENT_GEOMETRY_TRANSFORMATION_NOT_SUPPORTED";
4441 break;
4442 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_GAMMA_RAMP:
4443 reason = "STATUS_GRAPHICS_INVALID_GAMMA_RAMP";
4444 break;
4445 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED:
4446 reason = "STATUS_GRAPHICS_GAMMA_RAMP_NOT_SUPPORTED";
4447 break;
4448 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED:
4449 reason = "STATUS_GRAPHICS_MULTISAMPLING_NOT_SUPPORTED";
4450 break;
4451 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MODE_NOT_IN_MODESET:
4452 reason = "STATUS_GRAPHICS_MODE_NOT_IN_MODESET";
4453 break;
4454 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON:
4455 reason = "STATUS_GRAPHICS_INVALID_VIDPN_TOPOLOGY_RECOMMENDATION_REASON";
4456 break;
4457 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_PATH_CONTENT_TYPE:
4458 reason = "STATUS_GRAPHICS_INVALID_PATH_CONTENT_TYPE";
4459 break;
4460 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_COPYPROTECTION_TYPE:
4461 reason = "STATUS_GRAPHICS_INVALID_COPYPROTECTION_TYPE";
4462 break;
4463 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS:
4464 reason = "STATUS_GRAPHICS_UNASSIGNED_MODESET_ALREADY_EXISTS";
4465 break;
4466 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_SCANLINE_ORDERING:
4467 reason = "STATUS_GRAPHICS_INVALID_SCANLINE_ORDERING";
4468 break;
4469 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED:
4470 reason = "STATUS_GRAPHICS_TOPOLOGY_CHANGES_NOT_ALLOWED";
4471 break;
4472 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS:
4473 reason = "STATUS_GRAPHICS_NO_AVAILABLE_IMPORTANCE_ORDINALS";
4474 break;
4475 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT:
4476 reason = "STATUS_GRAPHICS_INCOMPATIBLE_PRIVATE_FORMAT";
4477 break;
4478 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM:
4479 reason = "STATUS_GRAPHICS_INVALID_MODE_PRUNING_ALGORITHM";
4480 break;
4481 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN:
4482 reason = "STATUS_GRAPHICS_INVALID_MONITOR_CAPABILITY_ORIGIN";
4483 break;
4484 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT:
4485 reason = "STATUS_GRAPHICS_INVALID_MONITOR_FREQUENCYRANGE_CONSTRAINT";
4486 break;
4487 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MAX_NUM_PATHS_REACHED:
4488 reason = "STATUS_GRAPHICS_MAX_NUM_PATHS_REACHED";
4489 break;
4490 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION:
4491 reason = "STATUS_GRAPHICS_CANCEL_VIDPN_TOPOLOGY_AUGMENTATION";
4492 break;
4493 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_CLIENT_TYPE:
4494 reason = "STATUS_GRAPHICS_INVALID_CLIENT_TYPE";
4495 break;
4496 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CLIENTVIDPN_NOT_SET:
4497 reason = "STATUS_GRAPHICS_CLIENTVIDPN_NOT_SET";
4498 break;
4499 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED:
4500 reason = "STATUS_GRAPHICS_SPECIFIED_CHILD_ALREADY_CONNECTED";
4501 break;
4502 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED:
4503 reason = "STATUS_GRAPHICS_CHILD_DESCRIPTOR_NOT_SUPPORTED";
4504 break;
4505 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NOT_A_LINKED_ADAPTER:
4506 reason = "STATUS_GRAPHICS_NOT_A_LINKED_ADAPTER";
4507 break;
4508 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_LEADLINK_NOT_ENUMERATED:
4509 reason = "STATUS_GRAPHICS_LEADLINK_NOT_ENUMERATED";
4510 break;
4511 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CHAINLINKS_NOT_ENUMERATED:
4512 reason = "STATUS_GRAPHICS_CHAINLINKS_NOT_ENUMERATED";
4513 break;
4514 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_ADAPTER_CHAIN_NOT_READY:
4515 reason = "STATUS_GRAPHICS_ADAPTER_CHAIN_NOT_READY";
4516 break;
4517 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CHAINLINKS_NOT_STARTED:
4518 reason = "STATUS_GRAPHICS_CHAINLINKS_NOT_STARTED";
4519 break;
4520 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_CHAINLINKS_NOT_POWERED_ON:
4521 reason = "STATUS_GRAPHICS_CHAINLINKS_NOT_POWERED_ON";
4522 break;
4523 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE:
4524 reason = "STATUS_GRAPHICS_INCONSISTENT_DEVICE_LINK_STATE";
4525 break;
4526 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NOT_POST_DEVICE_DRIVER:
4527 reason = "STATUS_GRAPHICS_NOT_POST_DEVICE_DRIVER";
4528 break;
4529 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED:
4530 reason = "STATUS_GRAPHICS_ADAPTER_ACCESS_NOT_EXCLUDED";
4531 break;
4532 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_NOT_SUPPORTED:
4533 reason = "STATUS_GRAPHICS_OPM_NOT_SUPPORTED";
4534 break;
4535 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_COPP_NOT_SUPPORTED:
4536 reason = "STATUS_GRAPHICS_COPP_NOT_SUPPORTED";
4537 break;
4538 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_UAB_NOT_SUPPORTED:
4539 reason = "STATUS_GRAPHICS_UAB_NOT_SUPPORTED";
4540 break;
4541 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS:
4542 reason = "STATUS_GRAPHICS_OPM_INVALID_ENCRYPTED_PARAMETERS";
4543 break;
4544 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_NO_PROTECTED_OUTPUTS_EXIST:
4545 reason = "STATUS_GRAPHICS_OPM_NO_PROTECTED_OUTPUTS_EXIST";
4546 break;
4547 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_INTERNAL_ERROR:
4548 reason = "STATUS_GRAPHICS_OPM_INTERNAL_ERROR";
4549 break;
4550 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_INVALID_HANDLE:
4551 reason = "STATUS_GRAPHICS_OPM_INVALID_HANDLE";
4552 break;
4553 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH:
4554 reason = "STATUS_GRAPHICS_PVP_INVALID_CERTIFICATE_LENGTH";
4555 break;
4556 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_SPANNING_MODE_ENABLED:
4557 reason = "STATUS_GRAPHICS_OPM_SPANNING_MODE_ENABLED";
4558 break;
4559 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_THEATER_MODE_ENABLED:
4560 reason = "STATUS_GRAPHICS_OPM_THEATER_MODE_ENABLED";
4561 break;
4562 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PVP_HFS_FAILED:
4563 reason = "STATUS_GRAPHICS_PVP_HFS_FAILED";
4564 break;
4565 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_INVALID_SRM:
4566 reason = "STATUS_GRAPHICS_OPM_INVALID_SRM";
4567 break;
4568 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP:
4569 reason = "STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_HDCP";
4570 break;
4571 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP:
4572 reason = "STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_ACP";
4573 break;
4574 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA:
4575 reason = "STATUS_GRAPHICS_OPM_OUTPUT_DOES_NOT_SUPPORT_CGMSA";
4576 break;
4577 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_HDCP_SRM_NEVER_SET:
4578 reason = "STATUS_GRAPHICS_OPM_HDCP_SRM_NEVER_SET";
4579 break;
4580 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_RESOLUTION_TOO_HIGH:
4581 reason = "STATUS_GRAPHICS_OPM_RESOLUTION_TOO_HIGH";
4582 break;
4583 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE:
4584 reason = "STATUS_GRAPHICS_OPM_ALL_HDCP_HARDWARE_ALREADY_IN_USE";
4585 break;
4586 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_NO_LONGER_EXISTS:
4587 reason = "STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_NO_LONGER_EXISTS";
4588 break;
4589 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS:
4590 reason = "STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_COPP_SEMANTICS";
4591 break;
4592 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST:
4593 reason = "STATUS_GRAPHICS_OPM_INVALID_INFORMATION_REQUEST";
4594 break;
4595 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR:
4596 reason = "STATUS_GRAPHICS_OPM_DRIVER_INTERNAL_ERROR";
4597 break;
4598 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS:
4599 reason = "STATUS_GRAPHICS_OPM_PROTECTED_OUTPUT_DOES_NOT_HAVE_OPM_SEMANTICS";
4600 break;
4601 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED:
4602 reason = "STATUS_GRAPHICS_OPM_SIGNALING_NOT_SUPPORTED";
4603 break;
4604 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST:
4605 reason = "STATUS_GRAPHICS_OPM_INVALID_CONFIGURATION_REQUEST";
4606 break;
4607 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_I2C_NOT_SUPPORTED:
4608 reason = "STATUS_GRAPHICS_I2C_NOT_SUPPORTED";
4609 break;
4610 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST:
4611 reason = "STATUS_GRAPHICS_I2C_DEVICE_DOES_NOT_EXIST";
4612 break;
4613 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA:
4614 reason = "STATUS_GRAPHICS_I2C_ERROR_TRANSMITTING_DATA";
4615 break;
4616 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_I2C_ERROR_RECEIVING_DATA:
4617 reason = "STATUS_GRAPHICS_I2C_ERROR_RECEIVING_DATA";
4618 break;
4619 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED:
4620 reason = "STATUS_GRAPHICS_DDCCI_VCP_NOT_SUPPORTED";
4621 break;
4622 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_DDCCI_INVALID_DATA:
4623 reason = "STATUS_GRAPHICS_DDCCI_INVALID_DATA";
4624 break;
4625 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE:
4626 reason = "STATUS_GRAPHICS_DDCCI_MONITOR_RETURNED_INVALID_TIMING_STATUS_BYTE";
4627 break;
4628 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_DDCCI_INVALID_CAPABILITIES_STRING:
4629 reason = "STATUS_GRAPHICS_DDCCI_INVALID_CAPABILITIES_STRING";
4630 break;
4631 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MCA_INTERNAL_ERROR:
4632 reason = "STATUS_GRAPHICS_MCA_INTERNAL_ERROR";
4633 break;
4634 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND:
4635 reason = "STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_COMMAND";
4636 break;
4637 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH:
4638 reason = "STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_LENGTH";
4639 break;
4640 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM:
4641 reason = "STATUS_GRAPHICS_DDCCI_INVALID_MESSAGE_CHECKSUM";
4642 break;
4643 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE:
4644 reason = "STATUS_GRAPHICS_INVALID_PHYSICAL_MONITOR_HANDLE";
4645 break;
4646 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MONITOR_NO_LONGER_EXISTS:
4647 reason = "STATUS_GRAPHICS_MONITOR_NO_LONGER_EXISTS";
4648 break;
4649 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED:
4650 reason = "STATUS_GRAPHICS_ONLY_CONSOLE_SESSION_SUPPORTED";
4651 break;
4652 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME:
4653 reason = "STATUS_GRAPHICS_NO_DISPLAY_DEVICE_CORRESPONDS_TO_NAME";
4654 break;
4655 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP:
4656 reason = "STATUS_GRAPHICS_DISPLAY_DEVICE_NOT_ATTACHED_TO_DESKTOP";
4657 break;
4658 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED:
4659 reason = "STATUS_GRAPHICS_MIRRORING_DEVICES_NOT_SUPPORTED";
4660 break;
4661 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INVALID_POINTER:
4662 reason = "STATUS_GRAPHICS_INVALID_POINTER";
4663 break;
4664 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE:
4665 reason = "STATUS_GRAPHICS_NO_MONITORS_CORRESPOND_TO_DISPLAY_DEVICE";
4666 break;
4667 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL:
4668 reason = "STATUS_GRAPHICS_PARAMETER_ARRAY_TOO_SMALL";
4669 break;
4670 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_INTERNAL_ERROR:
4671 reason = "STATUS_GRAPHICS_INTERNAL_ERROR";
4672 break;
4673 case MD_NTSTATUS_WIN_STATUS_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS:
4674 reason = "STATUS_GRAPHICS_SESSION_TYPE_CHANGE_IN_PROGRESS";
4675 break;
4676 case MD_NTSTATUS_WIN_STATUS_FVE_LOCKED_VOLUME:
4677 reason = "STATUS_FVE_LOCKED_VOLUME";
4678 break;
4679 case MD_NTSTATUS_WIN_STATUS_FVE_NOT_ENCRYPTED:
4680 reason = "STATUS_FVE_NOT_ENCRYPTED";
4681 break;
4682 case MD_NTSTATUS_WIN_STATUS_FVE_BAD_INFORMATION:
4683 reason = "STATUS_FVE_BAD_INFORMATION";
4684 break;
4685 case MD_NTSTATUS_WIN_STATUS_FVE_TOO_SMALL:
4686 reason = "STATUS_FVE_TOO_SMALL";
4687 break;
4688 case MD_NTSTATUS_WIN_STATUS_FVE_FAILED_WRONG_FS:
4689 reason = "STATUS_FVE_FAILED_WRONG_FS";
4690 break;
4691 case MD_NTSTATUS_WIN_STATUS_FVE_BAD_PARTITION_SIZE:
4692 reason = "STATUS_FVE_BAD_PARTITION_SIZE";
4693 break;
4694 case MD_NTSTATUS_WIN_STATUS_FVE_FS_NOT_EXTENDED:
4695 reason = "STATUS_FVE_FS_NOT_EXTENDED";
4696 break;
4697 case MD_NTSTATUS_WIN_STATUS_FVE_FS_MOUNTED:
4698 reason = "STATUS_FVE_FS_MOUNTED";
4699 break;
4700 case MD_NTSTATUS_WIN_STATUS_FVE_NO_LICENSE:
4701 reason = "STATUS_FVE_NO_LICENSE";
4702 break;
4703 case MD_NTSTATUS_WIN_STATUS_FVE_ACTION_NOT_ALLOWED:
4704 reason = "STATUS_FVE_ACTION_NOT_ALLOWED";
4705 break;
4706 case MD_NTSTATUS_WIN_STATUS_FVE_BAD_DATA:
4707 reason = "STATUS_FVE_BAD_DATA";
4708 break;
4709 case MD_NTSTATUS_WIN_STATUS_FVE_VOLUME_NOT_BOUND:
4710 reason = "STATUS_FVE_VOLUME_NOT_BOUND";
4711 break;
4712 case MD_NTSTATUS_WIN_STATUS_FVE_NOT_DATA_VOLUME:
4713 reason = "STATUS_FVE_NOT_DATA_VOLUME";
4714 break;
4715 case MD_NTSTATUS_WIN_STATUS_FVE_CONV_READ_ERROR:
4716 reason = "STATUS_FVE_CONV_READ_ERROR";
4717 break;
4718 case MD_NTSTATUS_WIN_STATUS_FVE_CONV_WRITE_ERROR:
4719 reason = "STATUS_FVE_CONV_WRITE_ERROR";
4720 break;
4721 case MD_NTSTATUS_WIN_STATUS_FVE_OVERLAPPED_UPDATE:
4722 reason = "STATUS_FVE_OVERLAPPED_UPDATE";
4723 break;
4724 case MD_NTSTATUS_WIN_STATUS_FVE_FAILED_SECTOR_SIZE:
4725 reason = "STATUS_FVE_FAILED_SECTOR_SIZE";
4726 break;
4727 case MD_NTSTATUS_WIN_STATUS_FVE_FAILED_AUTHENTICATION:
4728 reason = "STATUS_FVE_FAILED_AUTHENTICATION";
4729 break;
4730 case MD_NTSTATUS_WIN_STATUS_FVE_NOT_OS_VOLUME:
4731 reason = "STATUS_FVE_NOT_OS_VOLUME";
4732 break;
4733 case MD_NTSTATUS_WIN_STATUS_FVE_KEYFILE_NOT_FOUND:
4734 reason = "STATUS_FVE_KEYFILE_NOT_FOUND";
4735 break;
4736 case MD_NTSTATUS_WIN_STATUS_FVE_KEYFILE_INVALID:
4737 reason = "STATUS_FVE_KEYFILE_INVALID";
4738 break;
4739 case MD_NTSTATUS_WIN_STATUS_FVE_KEYFILE_NO_VMK:
4740 reason = "STATUS_FVE_KEYFILE_NO_VMK";
4741 break;
4742 case MD_NTSTATUS_WIN_STATUS_FVE_TPM_DISABLED:
4743 reason = "STATUS_FVE_TPM_DISABLED";
4744 break;
4745 case MD_NTSTATUS_WIN_STATUS_FVE_TPM_SRK_AUTH_NOT_ZERO:
4746 reason = "STATUS_FVE_TPM_SRK_AUTH_NOT_ZERO";
4747 break;
4748 case MD_NTSTATUS_WIN_STATUS_FVE_TPM_INVALID_PCR:
4749 reason = "STATUS_FVE_TPM_INVALID_PCR";
4750 break;
4751 case MD_NTSTATUS_WIN_STATUS_FVE_TPM_NO_VMK:
4752 reason = "STATUS_FVE_TPM_NO_VMK";
4753 break;
4754 case MD_NTSTATUS_WIN_STATUS_FVE_PIN_INVALID:
4755 reason = "STATUS_FVE_PIN_INVALID";
4756 break;
4757 case MD_NTSTATUS_WIN_STATUS_FVE_AUTH_INVALID_APPLICATION:
4758 reason = "STATUS_FVE_AUTH_INVALID_APPLICATION";
4759 break;
4760 case MD_NTSTATUS_WIN_STATUS_FVE_AUTH_INVALID_CONFIG:
4761 reason = "STATUS_FVE_AUTH_INVALID_CONFIG";
4762 break;
4763 case MD_NTSTATUS_WIN_STATUS_FVE_DEBUGGER_ENABLED:
4764 reason = "STATUS_FVE_DEBUGGER_ENABLED";
4765 break;
4766 case MD_NTSTATUS_WIN_STATUS_FVE_DRY_RUN_FAILED:
4767 reason = "STATUS_FVE_DRY_RUN_FAILED";
4768 break;
4769 case MD_NTSTATUS_WIN_STATUS_FVE_BAD_METADATA_POINTER:
4770 reason = "STATUS_FVE_BAD_METADATA_POINTER";
4771 break;
4772 case MD_NTSTATUS_WIN_STATUS_FVE_OLD_METADATA_COPY:
4773 reason = "STATUS_FVE_OLD_METADATA_COPY";
4774 break;
4775 case MD_NTSTATUS_WIN_STATUS_FVE_REBOOT_REQUIRED:
4776 reason = "STATUS_FVE_REBOOT_REQUIRED";
4777 break;
4778 case MD_NTSTATUS_WIN_STATUS_FVE_RAW_ACCESS:
4779 reason = "STATUS_FVE_RAW_ACCESS";
4780 break;
4781 case MD_NTSTATUS_WIN_STATUS_FVE_RAW_BLOCKED:
4782 reason = "STATUS_FVE_RAW_BLOCKED";
4783 break;
4784 case MD_NTSTATUS_WIN_STATUS_FVE_NO_AUTOUNLOCK_MASTER_KEY:
4785 reason = "STATUS_FVE_NO_AUTOUNLOCK_MASTER_KEY";
4786 break;
4787 case MD_NTSTATUS_WIN_STATUS_FVE_MOR_FAILED:
4788 reason = "STATUS_FVE_MOR_FAILED";
4789 break;
4790 case MD_NTSTATUS_WIN_STATUS_FVE_NO_FEATURE_LICENSE:
4791 reason = "STATUS_FVE_NO_FEATURE_LICENSE";
4792 break;
4793 case MD_NTSTATUS_WIN_STATUS_FVE_POLICY_USER_DISABLE_RDV_NOT_ALLOWED:
4794 reason = "STATUS_FVE_POLICY_USER_DISABLE_RDV_NOT_ALLOWED";
4795 break;
4796 case MD_NTSTATUS_WIN_STATUS_FVE_CONV_RECOVERY_FAILED:
4797 reason = "STATUS_FVE_CONV_RECOVERY_FAILED";
4798 break;
4799 case MD_NTSTATUS_WIN_STATUS_FVE_VIRTUALIZED_SPACE_TOO_BIG:
4800 reason = "STATUS_FVE_VIRTUALIZED_SPACE_TOO_BIG";
4801 break;
4802 case MD_NTSTATUS_WIN_STATUS_FVE_INVALID_DATUM_TYPE:
4803 reason = "STATUS_FVE_INVALID_DATUM_TYPE";
4804 break;
4805 case MD_NTSTATUS_WIN_STATUS_FVE_VOLUME_TOO_SMALL:
4806 reason = "STATUS_FVE_VOLUME_TOO_SMALL";
4807 break;
4808 case MD_NTSTATUS_WIN_STATUS_FVE_ENH_PIN_INVALID:
4809 reason = "STATUS_FVE_ENH_PIN_INVALID";
4810 break;
4811 case MD_NTSTATUS_WIN_STATUS_FVE_FULL_ENCRYPTION_NOT_ALLOWED_ON_TP_STORAGE:
4812 reason = "STATUS_FVE_FULL_ENCRYPTION_NOT_ALLOWED_ON_TP_STORAGE";
4813 break;
4814 case MD_NTSTATUS_WIN_STATUS_FVE_WIPE_NOT_ALLOWED_ON_TP_STORAGE:
4815 reason = "STATUS_FVE_WIPE_NOT_ALLOWED_ON_TP_STORAGE";
4816 break;
4817 case MD_NTSTATUS_WIN_STATUS_FVE_NOT_ALLOWED_ON_CSV_STACK:
4818 reason = "STATUS_FVE_NOT_ALLOWED_ON_CSV_STACK";
4819 break;
4820 case MD_NTSTATUS_WIN_STATUS_FVE_NOT_ALLOWED_ON_CLUSTER:
4821 reason = "STATUS_FVE_NOT_ALLOWED_ON_CLUSTER";
4822 break;
4823 case MD_NTSTATUS_WIN_STATUS_FVE_NOT_ALLOWED_TO_UPGRADE_WHILE_CONVERTING:
4824 reason = "STATUS_FVE_NOT_ALLOWED_TO_UPGRADE_WHILE_CONVERTING";
4825 break;
4826 case MD_NTSTATUS_WIN_STATUS_FVE_WIPE_CANCEL_NOT_APPLICABLE:
4827 reason = "STATUS_FVE_WIPE_CANCEL_NOT_APPLICABLE";
4828 break;
4829 case MD_NTSTATUS_WIN_STATUS_FVE_EDRIVE_DRY_RUN_FAILED:
4830 reason = "STATUS_FVE_EDRIVE_DRY_RUN_FAILED";
4831 break;
4832 case MD_NTSTATUS_WIN_STATUS_FVE_SECUREBOOT_DISABLED:
4833 reason = "STATUS_FVE_SECUREBOOT_DISABLED";
4834 break;
4835 case MD_NTSTATUS_WIN_STATUS_FVE_SECUREBOOT_CONFIG_CHANGE:
4836 reason = "STATUS_FVE_SECUREBOOT_CONFIG_CHANGE";
4837 break;
4838 case MD_NTSTATUS_WIN_STATUS_FVE_DEVICE_LOCKEDOUT:
4839 reason = "STATUS_FVE_DEVICE_LOCKEDOUT";
4840 break;
4841 case MD_NTSTATUS_WIN_STATUS_FVE_VOLUME_EXTEND_PREVENTS_EOW_DECRYPT:
4842 reason = "STATUS_FVE_VOLUME_EXTEND_PREVENTS_EOW_DECRYPT";
4843 break;
4844 case MD_NTSTATUS_WIN_STATUS_FVE_NOT_DE_VOLUME:
4845 reason = "STATUS_FVE_NOT_DE_VOLUME";
4846 break;
4847 case MD_NTSTATUS_WIN_STATUS_FVE_PROTECTION_DISABLED:
4848 reason = "STATUS_FVE_PROTECTION_DISABLED";
4849 break;
4850 case MD_NTSTATUS_WIN_STATUS_FVE_PROTECTION_CANNOT_BE_DISABLED:
4851 reason = "STATUS_FVE_PROTECTION_CANNOT_BE_DISABLED";
4852 break;
4853 case MD_NTSTATUS_WIN_STATUS_FWP_CALLOUT_NOT_FOUND:
4854 reason = "STATUS_FWP_CALLOUT_NOT_FOUND";
4855 break;
4856 case MD_NTSTATUS_WIN_STATUS_FWP_CONDITION_NOT_FOUND:
4857 reason = "STATUS_FWP_CONDITION_NOT_FOUND";
4858 break;
4859 case MD_NTSTATUS_WIN_STATUS_FWP_FILTER_NOT_FOUND:
4860 reason = "STATUS_FWP_FILTER_NOT_FOUND";
4861 break;
4862 case MD_NTSTATUS_WIN_STATUS_FWP_LAYER_NOT_FOUND:
4863 reason = "STATUS_FWP_LAYER_NOT_FOUND";
4864 break;
4865 case MD_NTSTATUS_WIN_STATUS_FWP_PROVIDER_NOT_FOUND:
4866 reason = "STATUS_FWP_PROVIDER_NOT_FOUND";
4867 break;
4868 case MD_NTSTATUS_WIN_STATUS_FWP_PROVIDER_CONTEXT_NOT_FOUND:
4869 reason = "STATUS_FWP_PROVIDER_CONTEXT_NOT_FOUND";
4870 break;
4871 case MD_NTSTATUS_WIN_STATUS_FWP_SUBLAYER_NOT_FOUND:
4872 reason = "STATUS_FWP_SUBLAYER_NOT_FOUND";
4873 break;
4874 case MD_NTSTATUS_WIN_STATUS_FWP_NOT_FOUND:
4875 reason = "STATUS_FWP_NOT_FOUND";
4876 break;
4877 case MD_NTSTATUS_WIN_STATUS_FWP_ALREADY_EXISTS:
4878 reason = "STATUS_FWP_ALREADY_EXISTS";
4879 break;
4880 case MD_NTSTATUS_WIN_STATUS_FWP_IN_USE:
4881 reason = "STATUS_FWP_IN_USE";
4882 break;
4883 case MD_NTSTATUS_WIN_STATUS_FWP_DYNAMIC_SESSION_IN_PROGRESS:
4884 reason = "STATUS_FWP_DYNAMIC_SESSION_IN_PROGRESS";
4885 break;
4886 case MD_NTSTATUS_WIN_STATUS_FWP_WRONG_SESSION:
4887 reason = "STATUS_FWP_WRONG_SESSION";
4888 break;
4889 case MD_NTSTATUS_WIN_STATUS_FWP_NO_TXN_IN_PROGRESS:
4890 reason = "STATUS_FWP_NO_TXN_IN_PROGRESS";
4891 break;
4892 case MD_NTSTATUS_WIN_STATUS_FWP_TXN_IN_PROGRESS:
4893 reason = "STATUS_FWP_TXN_IN_PROGRESS";
4894 break;
4895 case MD_NTSTATUS_WIN_STATUS_FWP_TXN_ABORTED:
4896 reason = "STATUS_FWP_TXN_ABORTED";
4897 break;
4898 case MD_NTSTATUS_WIN_STATUS_FWP_SESSION_ABORTED:
4899 reason = "STATUS_FWP_SESSION_ABORTED";
4900 break;
4901 case MD_NTSTATUS_WIN_STATUS_FWP_INCOMPATIBLE_TXN:
4902 reason = "STATUS_FWP_INCOMPATIBLE_TXN";
4903 break;
4904 case MD_NTSTATUS_WIN_STATUS_FWP_TIMEOUT:
4905 reason = "STATUS_FWP_TIMEOUT";
4906 break;
4907 case MD_NTSTATUS_WIN_STATUS_FWP_NET_EVENTS_DISABLED:
4908 reason = "STATUS_FWP_NET_EVENTS_DISABLED";
4909 break;
4910 case MD_NTSTATUS_WIN_STATUS_FWP_INCOMPATIBLE_LAYER:
4911 reason = "STATUS_FWP_INCOMPATIBLE_LAYER";
4912 break;
4913 case MD_NTSTATUS_WIN_STATUS_FWP_KM_CLIENTS_ONLY:
4914 reason = "STATUS_FWP_KM_CLIENTS_ONLY";
4915 break;
4916 case MD_NTSTATUS_WIN_STATUS_FWP_LIFETIME_MISMATCH:
4917 reason = "STATUS_FWP_LIFETIME_MISMATCH";
4918 break;
4919 case MD_NTSTATUS_WIN_STATUS_FWP_BUILTIN_OBJECT:
4920 reason = "STATUS_FWP_BUILTIN_OBJECT";
4921 break;
4922 case MD_NTSTATUS_WIN_STATUS_FWP_TOO_MANY_CALLOUTS:
4923 reason = "STATUS_FWP_TOO_MANY_CALLOUTS";
4924 break;
4925 case MD_NTSTATUS_WIN_STATUS_FWP_NOTIFICATION_DROPPED:
4926 reason = "STATUS_FWP_NOTIFICATION_DROPPED";
4927 break;
4928 case MD_NTSTATUS_WIN_STATUS_FWP_TRAFFIC_MISMATCH:
4929 reason = "STATUS_FWP_TRAFFIC_MISMATCH";
4930 break;
4931 case MD_NTSTATUS_WIN_STATUS_FWP_INCOMPATIBLE_SA_STATE:
4932 reason = "STATUS_FWP_INCOMPATIBLE_SA_STATE";
4933 break;
4934 case MD_NTSTATUS_WIN_STATUS_FWP_NULL_POINTER:
4935 reason = "STATUS_FWP_NULL_POINTER";
4936 break;
4937 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_ENUMERATOR:
4938 reason = "STATUS_FWP_INVALID_ENUMERATOR";
4939 break;
4940 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_FLAGS:
4941 reason = "STATUS_FWP_INVALID_FLAGS";
4942 break;
4943 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_NET_MASK:
4944 reason = "STATUS_FWP_INVALID_NET_MASK";
4945 break;
4946 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_RANGE:
4947 reason = "STATUS_FWP_INVALID_RANGE";
4948 break;
4949 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_INTERVAL:
4950 reason = "STATUS_FWP_INVALID_INTERVAL";
4951 break;
4952 case MD_NTSTATUS_WIN_STATUS_FWP_ZERO_LENGTH_ARRAY:
4953 reason = "STATUS_FWP_ZERO_LENGTH_ARRAY";
4954 break;
4955 case MD_NTSTATUS_WIN_STATUS_FWP_NULL_DISPLAY_NAME:
4956 reason = "STATUS_FWP_NULL_DISPLAY_NAME";
4957 break;
4958 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_ACTION_TYPE:
4959 reason = "STATUS_FWP_INVALID_ACTION_TYPE";
4960 break;
4961 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_WEIGHT:
4962 reason = "STATUS_FWP_INVALID_WEIGHT";
4963 break;
4964 case MD_NTSTATUS_WIN_STATUS_FWP_MATCH_TYPE_MISMATCH:
4965 reason = "STATUS_FWP_MATCH_TYPE_MISMATCH";
4966 break;
4967 case MD_NTSTATUS_WIN_STATUS_FWP_TYPE_MISMATCH:
4968 reason = "STATUS_FWP_TYPE_MISMATCH";
4969 break;
4970 case MD_NTSTATUS_WIN_STATUS_FWP_OUT_OF_BOUNDS:
4971 reason = "STATUS_FWP_OUT_OF_BOUNDS";
4972 break;
4973 case MD_NTSTATUS_WIN_STATUS_FWP_RESERVED:
4974 reason = "STATUS_FWP_RESERVED";
4975 break;
4976 case MD_NTSTATUS_WIN_STATUS_FWP_DUPLICATE_CONDITION:
4977 reason = "STATUS_FWP_DUPLICATE_CONDITION";
4978 break;
4979 case MD_NTSTATUS_WIN_STATUS_FWP_DUPLICATE_KEYMOD:
4980 reason = "STATUS_FWP_DUPLICATE_KEYMOD";
4981 break;
4982 case MD_NTSTATUS_WIN_STATUS_FWP_ACTION_INCOMPATIBLE_WITH_LAYER:
4983 reason = "STATUS_FWP_ACTION_INCOMPATIBLE_WITH_LAYER";
4984 break;
4985 case MD_NTSTATUS_WIN_STATUS_FWP_ACTION_INCOMPATIBLE_WITH_SUBLAYER:
4986 reason = "STATUS_FWP_ACTION_INCOMPATIBLE_WITH_SUBLAYER";
4987 break;
4988 case MD_NTSTATUS_WIN_STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_LAYER:
4989 reason = "STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_LAYER";
4990 break;
4991 case MD_NTSTATUS_WIN_STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_CALLOUT:
4992 reason = "STATUS_FWP_CONTEXT_INCOMPATIBLE_WITH_CALLOUT";
4993 break;
4994 case MD_NTSTATUS_WIN_STATUS_FWP_INCOMPATIBLE_AUTH_METHOD:
4995 reason = "STATUS_FWP_INCOMPATIBLE_AUTH_METHOD";
4996 break;
4997 case MD_NTSTATUS_WIN_STATUS_FWP_INCOMPATIBLE_DH_GROUP:
4998 reason = "STATUS_FWP_INCOMPATIBLE_DH_GROUP";
4999 break;
5000 case MD_NTSTATUS_WIN_STATUS_FWP_EM_NOT_SUPPORTED:
5001 reason = "STATUS_FWP_EM_NOT_SUPPORTED";
5002 break;
5003 case MD_NTSTATUS_WIN_STATUS_FWP_NEVER_MATCH:
5004 reason = "STATUS_FWP_NEVER_MATCH";
5005 break;
5006 case MD_NTSTATUS_WIN_STATUS_FWP_PROVIDER_CONTEXT_MISMATCH:
5007 reason = "STATUS_FWP_PROVIDER_CONTEXT_MISMATCH";
5008 break;
5009 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_PARAMETER:
5010 reason = "STATUS_FWP_INVALID_PARAMETER";
5011 break;
5012 case MD_NTSTATUS_WIN_STATUS_FWP_TOO_MANY_SUBLAYERS:
5013 reason = "STATUS_FWP_TOO_MANY_SUBLAYERS";
5014 break;
5015 case MD_NTSTATUS_WIN_STATUS_FWP_CALLOUT_NOTIFICATION_FAILED:
5016 reason = "STATUS_FWP_CALLOUT_NOTIFICATION_FAILED";
5017 break;
5018 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_AUTH_TRANSFORM:
5019 reason = "STATUS_FWP_INVALID_AUTH_TRANSFORM";
5020 break;
5021 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_CIPHER_TRANSFORM:
5022 reason = "STATUS_FWP_INVALID_CIPHER_TRANSFORM";
5023 break;
5024 case MD_NTSTATUS_WIN_STATUS_FWP_INCOMPATIBLE_CIPHER_TRANSFORM:
5025 reason = "STATUS_FWP_INCOMPATIBLE_CIPHER_TRANSFORM";
5026 break;
5027 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_TRANSFORM_COMBINATION:
5028 reason = "STATUS_FWP_INVALID_TRANSFORM_COMBINATION";
5029 break;
5030 case MD_NTSTATUS_WIN_STATUS_FWP_DUPLICATE_AUTH_METHOD:
5031 reason = "STATUS_FWP_DUPLICATE_AUTH_METHOD";
5032 break;
5033 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_TUNNEL_ENDPOINT:
5034 reason = "STATUS_FWP_INVALID_TUNNEL_ENDPOINT";
5035 break;
5036 case MD_NTSTATUS_WIN_STATUS_FWP_L2_DRIVER_NOT_READY:
5037 reason = "STATUS_FWP_L2_DRIVER_NOT_READY";
5038 break;
5039 case MD_NTSTATUS_WIN_STATUS_FWP_KEY_DICTATOR_ALREADY_REGISTERED:
5040 reason = "STATUS_FWP_KEY_DICTATOR_ALREADY_REGISTERED";
5041 break;
5042 case MD_NTSTATUS_WIN_STATUS_FWP_KEY_DICTATION_INVALID_KEYING_MATERIAL:
5043 reason = "STATUS_FWP_KEY_DICTATION_INVALID_KEYING_MATERIAL";
5044 break;
5045 case MD_NTSTATUS_WIN_STATUS_FWP_CONNECTIONS_DISABLED:
5046 reason = "STATUS_FWP_CONNECTIONS_DISABLED";
5047 break;
5048 case MD_NTSTATUS_WIN_STATUS_FWP_INVALID_DNS_NAME:
5049 reason = "STATUS_FWP_INVALID_DNS_NAME";
5050 break;
5051 case MD_NTSTATUS_WIN_STATUS_FWP_STILL_ON:
5052 reason = "STATUS_FWP_STILL_ON";
5053 break;
5054 case MD_NTSTATUS_WIN_STATUS_FWP_IKEEXT_NOT_RUNNING:
5055 reason = "STATUS_FWP_IKEEXT_NOT_RUNNING";
5056 break;
5057 case MD_NTSTATUS_WIN_STATUS_FWP_TCPIP_NOT_READY:
5058 reason = "STATUS_FWP_TCPIP_NOT_READY";
5059 break;
5060 case MD_NTSTATUS_WIN_STATUS_FWP_INJECT_HANDLE_CLOSING:
5061 reason = "STATUS_FWP_INJECT_HANDLE_CLOSING";
5062 break;
5063 case MD_NTSTATUS_WIN_STATUS_FWP_INJECT_HANDLE_STALE:
5064 reason = "STATUS_FWP_INJECT_HANDLE_STALE";
5065 break;
5066 case MD_NTSTATUS_WIN_STATUS_FWP_CANNOT_PEND:
5067 reason = "STATUS_FWP_CANNOT_PEND";
5068 break;
5069 case MD_NTSTATUS_WIN_STATUS_FWP_DROP_NOICMP:
5070 reason = "STATUS_FWP_DROP_NOICMP";
5071 break;
5072 case MD_NTSTATUS_WIN_STATUS_NDIS_CLOSING:
5073 reason = "STATUS_NDIS_CLOSING";
5074 break;
5075 case MD_NTSTATUS_WIN_STATUS_NDIS_BAD_VERSION:
5076 reason = "STATUS_NDIS_BAD_VERSION";
5077 break;
5078 case MD_NTSTATUS_WIN_STATUS_NDIS_BAD_CHARACTERISTICS:
5079 reason = "STATUS_NDIS_BAD_CHARACTERISTICS";
5080 break;
5081 case MD_NTSTATUS_WIN_STATUS_NDIS_ADAPTER_NOT_FOUND:
5082 reason = "STATUS_NDIS_ADAPTER_NOT_FOUND";
5083 break;
5084 case MD_NTSTATUS_WIN_STATUS_NDIS_OPEN_FAILED:
5085 reason = "STATUS_NDIS_OPEN_FAILED";
5086 break;
5087 case MD_NTSTATUS_WIN_STATUS_NDIS_DEVICE_FAILED:
5088 reason = "STATUS_NDIS_DEVICE_FAILED";
5089 break;
5090 case MD_NTSTATUS_WIN_STATUS_NDIS_MULTICAST_FULL:
5091 reason = "STATUS_NDIS_MULTICAST_FULL";
5092 break;
5093 case MD_NTSTATUS_WIN_STATUS_NDIS_MULTICAST_EXISTS:
5094 reason = "STATUS_NDIS_MULTICAST_EXISTS";
5095 break;
5096 case MD_NTSTATUS_WIN_STATUS_NDIS_MULTICAST_NOT_FOUND:
5097 reason = "STATUS_NDIS_MULTICAST_NOT_FOUND";
5098 break;
5099 case MD_NTSTATUS_WIN_STATUS_NDIS_REQUEST_ABORTED:
5100 reason = "STATUS_NDIS_REQUEST_ABORTED";
5101 break;
5102 case MD_NTSTATUS_WIN_STATUS_NDIS_RESET_IN_PROGRESS:
5103 reason = "STATUS_NDIS_RESET_IN_PROGRESS";
5104 break;
5105 case MD_NTSTATUS_WIN_STATUS_NDIS_INVALID_PACKET:
5106 reason = "STATUS_NDIS_INVALID_PACKET";
5107 break;
5108 case MD_NTSTATUS_WIN_STATUS_NDIS_INVALID_DEVICE_REQUEST:
5109 reason = "STATUS_NDIS_INVALID_DEVICE_REQUEST";
5110 break;
5111 case MD_NTSTATUS_WIN_STATUS_NDIS_ADAPTER_NOT_READY:
5112 reason = "STATUS_NDIS_ADAPTER_NOT_READY";
5113 break;
5114 case MD_NTSTATUS_WIN_STATUS_NDIS_INVALID_LENGTH:
5115 reason = "STATUS_NDIS_INVALID_LENGTH";
5116 break;
5117 case MD_NTSTATUS_WIN_STATUS_NDIS_INVALID_DATA:
5118 reason = "STATUS_NDIS_INVALID_DATA";
5119 break;
5120 case MD_NTSTATUS_WIN_STATUS_NDIS_BUFFER_TOO_SHORT:
5121 reason = "STATUS_NDIS_BUFFER_TOO_SHORT";
5122 break;
5123 case MD_NTSTATUS_WIN_STATUS_NDIS_INVALID_OID:
5124 reason = "STATUS_NDIS_INVALID_OID";
5125 break;
5126 case MD_NTSTATUS_WIN_STATUS_NDIS_ADAPTER_REMOVED:
5127 reason = "STATUS_NDIS_ADAPTER_REMOVED";
5128 break;
5129 case MD_NTSTATUS_WIN_STATUS_NDIS_UNSUPPORTED_MEDIA:
5130 reason = "STATUS_NDIS_UNSUPPORTED_MEDIA";
5131 break;
5132 case MD_NTSTATUS_WIN_STATUS_NDIS_GROUP_ADDRESS_IN_USE:
5133 reason = "STATUS_NDIS_GROUP_ADDRESS_IN_USE";
5134 break;
5135 case MD_NTSTATUS_WIN_STATUS_NDIS_FILE_NOT_FOUND:
5136 reason = "STATUS_NDIS_FILE_NOT_FOUND";
5137 break;
5138 case MD_NTSTATUS_WIN_STATUS_NDIS_ERROR_READING_FILE:
5139 reason = "STATUS_NDIS_ERROR_READING_FILE";
5140 break;
5141 case MD_NTSTATUS_WIN_STATUS_NDIS_ALREADY_MAPPED:
5142 reason = "STATUS_NDIS_ALREADY_MAPPED";
5143 break;
5144 case MD_NTSTATUS_WIN_STATUS_NDIS_RESOURCE_CONFLICT:
5145 reason = "STATUS_NDIS_RESOURCE_CONFLICT";
5146 break;
5147 case MD_NTSTATUS_WIN_STATUS_NDIS_MEDIA_DISCONNECTED:
5148 reason = "STATUS_NDIS_MEDIA_DISCONNECTED";
5149 break;
5150 case MD_NTSTATUS_WIN_STATUS_NDIS_INVALID_ADDRESS:
5151 reason = "STATUS_NDIS_INVALID_ADDRESS";
5152 break;
5153 case MD_NTSTATUS_WIN_STATUS_NDIS_PAUSED:
5154 reason = "STATUS_NDIS_PAUSED";
5155 break;
5156 case MD_NTSTATUS_WIN_STATUS_NDIS_INTERFACE_NOT_FOUND:
5157 reason = "STATUS_NDIS_INTERFACE_NOT_FOUND";
5158 break;
5159 case MD_NTSTATUS_WIN_STATUS_NDIS_UNSUPPORTED_REVISION:
5160 reason = "STATUS_NDIS_UNSUPPORTED_REVISION";
5161 break;
5162 case MD_NTSTATUS_WIN_STATUS_NDIS_INVALID_PORT:
5163 reason = "STATUS_NDIS_INVALID_PORT";
5164 break;
5165 case MD_NTSTATUS_WIN_STATUS_NDIS_INVALID_PORT_STATE:
5166 reason = "STATUS_NDIS_INVALID_PORT_STATE";
5167 break;
5168 case MD_NTSTATUS_WIN_STATUS_NDIS_LOW_POWER_STATE:
5169 reason = "STATUS_NDIS_LOW_POWER_STATE";
5170 break;
5171 case MD_NTSTATUS_WIN_STATUS_NDIS_REINIT_REQUIRED:
5172 reason = "STATUS_NDIS_REINIT_REQUIRED";
5173 break;
5174 case MD_NTSTATUS_WIN_STATUS_NDIS_NOT_SUPPORTED:
5175 reason = "STATUS_NDIS_NOT_SUPPORTED";
5176 break;
5177 case MD_NTSTATUS_WIN_STATUS_NDIS_OFFLOAD_POLICY:
5178 reason = "STATUS_NDIS_OFFLOAD_POLICY";
5179 break;
5180 case MD_NTSTATUS_WIN_STATUS_NDIS_OFFLOAD_CONNECTION_REJECTED:
5181 reason = "STATUS_NDIS_OFFLOAD_CONNECTION_REJECTED";
5182 break;
5183 case MD_NTSTATUS_WIN_STATUS_NDIS_OFFLOAD_PATH_REJECTED:
5184 reason = "STATUS_NDIS_OFFLOAD_PATH_REJECTED";
5185 break;
5186 case MD_NTSTATUS_WIN_STATUS_NDIS_DOT11_AUTO_CONFIG_ENABLED:
5187 reason = "STATUS_NDIS_DOT11_AUTO_CONFIG_ENABLED";
5188 break;
5189 case MD_NTSTATUS_WIN_STATUS_NDIS_DOT11_MEDIA_IN_USE:
5190 reason = "STATUS_NDIS_DOT11_MEDIA_IN_USE";
5191 break;
5192 case MD_NTSTATUS_WIN_STATUS_NDIS_DOT11_POWER_STATE_INVALID:
5193 reason = "STATUS_NDIS_DOT11_POWER_STATE_INVALID";
5194 break;
5195 case MD_NTSTATUS_WIN_STATUS_NDIS_PM_WOL_PATTERN_LIST_FULL:
5196 reason = "STATUS_NDIS_PM_WOL_PATTERN_LIST_FULL";
5197 break;
5198 case MD_NTSTATUS_WIN_STATUS_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL:
5199 reason = "STATUS_NDIS_PM_PROTOCOL_OFFLOAD_LIST_FULL";
5200 break;
5201 case MD_NTSTATUS_WIN_STATUS_TPM_ERROR_MASK:
5202 reason = "STATUS_TPM_ERROR_MASK";
5203 break;
5204 case MD_NTSTATUS_WIN_STATUS_TPM_AUTHFAIL:
5205 reason = "STATUS_TPM_AUTHFAIL";
5206 break;
5207 case MD_NTSTATUS_WIN_STATUS_TPM_BADINDEX:
5208 reason = "STATUS_TPM_BADINDEX";
5209 break;
5210 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_PARAMETER:
5211 reason = "STATUS_TPM_BAD_PARAMETER";
5212 break;
5213 case MD_NTSTATUS_WIN_STATUS_TPM_AUDITFAILURE:
5214 reason = "STATUS_TPM_AUDITFAILURE";
5215 break;
5216 case MD_NTSTATUS_WIN_STATUS_TPM_CLEAR_DISABLED:
5217 reason = "STATUS_TPM_CLEAR_DISABLED";
5218 break;
5219 case MD_NTSTATUS_WIN_STATUS_TPM_DEACTIVATED:
5220 reason = "STATUS_TPM_DEACTIVATED";
5221 break;
5222 case MD_NTSTATUS_WIN_STATUS_TPM_DISABLED:
5223 reason = "STATUS_TPM_DISABLED";
5224 break;
5225 case MD_NTSTATUS_WIN_STATUS_TPM_DISABLED_CMD:
5226 reason = "STATUS_TPM_DISABLED_CMD";
5227 break;
5228 case MD_NTSTATUS_WIN_STATUS_TPM_FAIL:
5229 reason = "STATUS_TPM_FAIL";
5230 break;
5231 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_ORDINAL:
5232 reason = "STATUS_TPM_BAD_ORDINAL";
5233 break;
5234 case MD_NTSTATUS_WIN_STATUS_TPM_INSTALL_DISABLED:
5235 reason = "STATUS_TPM_INSTALL_DISABLED";
5236 break;
5237 case MD_NTSTATUS_WIN_STATUS_TPM_INVALID_KEYHANDLE:
5238 reason = "STATUS_TPM_INVALID_KEYHANDLE";
5239 break;
5240 case MD_NTSTATUS_WIN_STATUS_TPM_KEYNOTFOUND:
5241 reason = "STATUS_TPM_KEYNOTFOUND";
5242 break;
5243 case MD_NTSTATUS_WIN_STATUS_TPM_INAPPROPRIATE_ENC:
5244 reason = "STATUS_TPM_INAPPROPRIATE_ENC";
5245 break;
5246 case MD_NTSTATUS_WIN_STATUS_TPM_MIGRATEFAIL:
5247 reason = "STATUS_TPM_MIGRATEFAIL";
5248 break;
5249 case MD_NTSTATUS_WIN_STATUS_TPM_INVALID_PCR_INFO:
5250 reason = "STATUS_TPM_INVALID_PCR_INFO";
5251 break;
5252 case MD_NTSTATUS_WIN_STATUS_TPM_NOSPACE:
5253 reason = "STATUS_TPM_NOSPACE";
5254 break;
5255 case MD_NTSTATUS_WIN_STATUS_TPM_NOSRK:
5256 reason = "STATUS_TPM_NOSRK";
5257 break;
5258 case MD_NTSTATUS_WIN_STATUS_TPM_NOTSEALED_BLOB:
5259 reason = "STATUS_TPM_NOTSEALED_BLOB";
5260 break;
5261 case MD_NTSTATUS_WIN_STATUS_TPM_OWNER_SET:
5262 reason = "STATUS_TPM_OWNER_SET";
5263 break;
5264 case MD_NTSTATUS_WIN_STATUS_TPM_RESOURCES:
5265 reason = "STATUS_TPM_RESOURCES";
5266 break;
5267 case MD_NTSTATUS_WIN_STATUS_TPM_SHORTRANDOM:
5268 reason = "STATUS_TPM_SHORTRANDOM";
5269 break;
5270 case MD_NTSTATUS_WIN_STATUS_TPM_SIZE:
5271 reason = "STATUS_TPM_SIZE";
5272 break;
5273 case MD_NTSTATUS_WIN_STATUS_TPM_WRONGPCRVAL:
5274 reason = "STATUS_TPM_WRONGPCRVAL";
5275 break;
5276 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_PARAM_SIZE:
5277 reason = "STATUS_TPM_BAD_PARAM_SIZE";
5278 break;
5279 case MD_NTSTATUS_WIN_STATUS_TPM_SHA_THREAD:
5280 reason = "STATUS_TPM_SHA_THREAD";
5281 break;
5282 case MD_NTSTATUS_WIN_STATUS_TPM_SHA_ERROR:
5283 reason = "STATUS_TPM_SHA_ERROR";
5284 break;
5285 case MD_NTSTATUS_WIN_STATUS_TPM_FAILEDSELFTEST:
5286 reason = "STATUS_TPM_FAILEDSELFTEST";
5287 break;
5288 case MD_NTSTATUS_WIN_STATUS_TPM_AUTH2FAIL:
5289 reason = "STATUS_TPM_AUTH2FAIL";
5290 break;
5291 case MD_NTSTATUS_WIN_STATUS_TPM_BADTAG:
5292 reason = "STATUS_TPM_BADTAG";
5293 break;
5294 case MD_NTSTATUS_WIN_STATUS_TPM_IOERROR:
5295 reason = "STATUS_TPM_IOERROR";
5296 break;
5297 case MD_NTSTATUS_WIN_STATUS_TPM_ENCRYPT_ERROR:
5298 reason = "STATUS_TPM_ENCRYPT_ERROR";
5299 break;
5300 case MD_NTSTATUS_WIN_STATUS_TPM_DECRYPT_ERROR:
5301 reason = "STATUS_TPM_DECRYPT_ERROR";
5302 break;
5303 case MD_NTSTATUS_WIN_STATUS_TPM_INVALID_AUTHHANDLE:
5304 reason = "STATUS_TPM_INVALID_AUTHHANDLE";
5305 break;
5306 case MD_NTSTATUS_WIN_STATUS_TPM_NO_ENDORSEMENT:
5307 reason = "STATUS_TPM_NO_ENDORSEMENT";
5308 break;
5309 case MD_NTSTATUS_WIN_STATUS_TPM_INVALID_KEYUSAGE:
5310 reason = "STATUS_TPM_INVALID_KEYUSAGE";
5311 break;
5312 case MD_NTSTATUS_WIN_STATUS_TPM_WRONG_ENTITYTYPE:
5313 reason = "STATUS_TPM_WRONG_ENTITYTYPE";
5314 break;
5315 case MD_NTSTATUS_WIN_STATUS_TPM_INVALID_POSTINIT:
5316 reason = "STATUS_TPM_INVALID_POSTINIT";
5317 break;
5318 case MD_NTSTATUS_WIN_STATUS_TPM_INAPPROPRIATE_SIG:
5319 reason = "STATUS_TPM_INAPPROPRIATE_SIG";
5320 break;
5321 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_KEY_PROPERTY:
5322 reason = "STATUS_TPM_BAD_KEY_PROPERTY";
5323 break;
5324 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_MIGRATION:
5325 reason = "STATUS_TPM_BAD_MIGRATION";
5326 break;
5327 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_SCHEME:
5328 reason = "STATUS_TPM_BAD_SCHEME";
5329 break;
5330 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_DATASIZE:
5331 reason = "STATUS_TPM_BAD_DATASIZE";
5332 break;
5333 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_MODE:
5334 reason = "STATUS_TPM_BAD_MODE";
5335 break;
5336 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_PRESENCE:
5337 reason = "STATUS_TPM_BAD_PRESENCE";
5338 break;
5339 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_VERSION:
5340 reason = "STATUS_TPM_BAD_VERSION";
5341 break;
5342 case MD_NTSTATUS_WIN_STATUS_TPM_NO_WRAP_TRANSPORT:
5343 reason = "STATUS_TPM_NO_WRAP_TRANSPORT";
5344 break;
5345 case MD_NTSTATUS_WIN_STATUS_TPM_AUDITFAIL_UNSUCCESSFUL:
5346 reason = "STATUS_TPM_AUDITFAIL_UNSUCCESSFUL";
5347 break;
5348 case MD_NTSTATUS_WIN_STATUS_TPM_AUDITFAIL_SUCCESSFUL:
5349 reason = "STATUS_TPM_AUDITFAIL_SUCCESSFUL";
5350 break;
5351 case MD_NTSTATUS_WIN_STATUS_TPM_NOTRESETABLE:
5352 reason = "STATUS_TPM_NOTRESETABLE";
5353 break;
5354 case MD_NTSTATUS_WIN_STATUS_TPM_NOTLOCAL:
5355 reason = "STATUS_TPM_NOTLOCAL";
5356 break;
5357 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_TYPE:
5358 reason = "STATUS_TPM_BAD_TYPE";
5359 break;
5360 case MD_NTSTATUS_WIN_STATUS_TPM_INVALID_RESOURCE:
5361 reason = "STATUS_TPM_INVALID_RESOURCE";
5362 break;
5363 case MD_NTSTATUS_WIN_STATUS_TPM_NOTFIPS:
5364 reason = "STATUS_TPM_NOTFIPS";
5365 break;
5366 case MD_NTSTATUS_WIN_STATUS_TPM_INVALID_FAMILY:
5367 reason = "STATUS_TPM_INVALID_FAMILY";
5368 break;
5369 case MD_NTSTATUS_WIN_STATUS_TPM_NO_NV_PERMISSION:
5370 reason = "STATUS_TPM_NO_NV_PERMISSION";
5371 break;
5372 case MD_NTSTATUS_WIN_STATUS_TPM_REQUIRES_SIGN:
5373 reason = "STATUS_TPM_REQUIRES_SIGN";
5374 break;
5375 case MD_NTSTATUS_WIN_STATUS_TPM_KEY_NOTSUPPORTED:
5376 reason = "STATUS_TPM_KEY_NOTSUPPORTED";
5377 break;
5378 case MD_NTSTATUS_WIN_STATUS_TPM_AUTH_CONFLICT:
5379 reason = "STATUS_TPM_AUTH_CONFLICT";
5380 break;
5381 case MD_NTSTATUS_WIN_STATUS_TPM_AREA_LOCKED:
5382 reason = "STATUS_TPM_AREA_LOCKED";
5383 break;
5384 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_LOCALITY:
5385 reason = "STATUS_TPM_BAD_LOCALITY";
5386 break;
5387 case MD_NTSTATUS_WIN_STATUS_TPM_READ_ONLY:
5388 reason = "STATUS_TPM_READ_ONLY";
5389 break;
5390 case MD_NTSTATUS_WIN_STATUS_TPM_PER_NOWRITE:
5391 reason = "STATUS_TPM_PER_NOWRITE";
5392 break;
5393 case MD_NTSTATUS_WIN_STATUS_TPM_FAMILYCOUNT:
5394 reason = "STATUS_TPM_FAMILYCOUNT";
5395 break;
5396 case MD_NTSTATUS_WIN_STATUS_TPM_WRITE_LOCKED:
5397 reason = "STATUS_TPM_WRITE_LOCKED";
5398 break;
5399 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_ATTRIBUTES:
5400 reason = "STATUS_TPM_BAD_ATTRIBUTES";
5401 break;
5402 case MD_NTSTATUS_WIN_STATUS_TPM_INVALID_STRUCTURE:
5403 reason = "STATUS_TPM_INVALID_STRUCTURE";
5404 break;
5405 case MD_NTSTATUS_WIN_STATUS_TPM_KEY_OWNER_CONTROL:
5406 reason = "STATUS_TPM_KEY_OWNER_CONTROL";
5407 break;
5408 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_COUNTER:
5409 reason = "STATUS_TPM_BAD_COUNTER";
5410 break;
5411 case MD_NTSTATUS_WIN_STATUS_TPM_NOT_FULLWRITE:
5412 reason = "STATUS_TPM_NOT_FULLWRITE";
5413 break;
5414 case MD_NTSTATUS_WIN_STATUS_TPM_CONTEXT_GAP:
5415 reason = "STATUS_TPM_CONTEXT_GAP";
5416 break;
5417 case MD_NTSTATUS_WIN_STATUS_TPM_MAXNVWRITES:
5418 reason = "STATUS_TPM_MAXNVWRITES";
5419 break;
5420 case MD_NTSTATUS_WIN_STATUS_TPM_NOOPERATOR:
5421 reason = "STATUS_TPM_NOOPERATOR";
5422 break;
5423 case MD_NTSTATUS_WIN_STATUS_TPM_RESOURCEMISSING:
5424 reason = "STATUS_TPM_RESOURCEMISSING";
5425 break;
5426 case MD_NTSTATUS_WIN_STATUS_TPM_DELEGATE_LOCK:
5427 reason = "STATUS_TPM_DELEGATE_LOCK";
5428 break;
5429 case MD_NTSTATUS_WIN_STATUS_TPM_DELEGATE_FAMILY:
5430 reason = "STATUS_TPM_DELEGATE_FAMILY";
5431 break;
5432 case MD_NTSTATUS_WIN_STATUS_TPM_DELEGATE_ADMIN:
5433 reason = "STATUS_TPM_DELEGATE_ADMIN";
5434 break;
5435 case MD_NTSTATUS_WIN_STATUS_TPM_TRANSPORT_NOTEXCLUSIVE:
5436 reason = "STATUS_TPM_TRANSPORT_NOTEXCLUSIVE";
5437 break;
5438 case MD_NTSTATUS_WIN_STATUS_TPM_OWNER_CONTROL:
5439 reason = "STATUS_TPM_OWNER_CONTROL";
5440 break;
5441 case MD_NTSTATUS_WIN_STATUS_TPM_DAA_RESOURCES:
5442 reason = "STATUS_TPM_DAA_RESOURCES";
5443 break;
5444 case MD_NTSTATUS_WIN_STATUS_TPM_DAA_INPUT_DATA0:
5445 reason = "STATUS_TPM_DAA_INPUT_DATA0";
5446 break;
5447 case MD_NTSTATUS_WIN_STATUS_TPM_DAA_INPUT_DATA1:
5448 reason = "STATUS_TPM_DAA_INPUT_DATA1";
5449 break;
5450 case MD_NTSTATUS_WIN_STATUS_TPM_DAA_ISSUER_SETTINGS:
5451 reason = "STATUS_TPM_DAA_ISSUER_SETTINGS";
5452 break;
5453 case MD_NTSTATUS_WIN_STATUS_TPM_DAA_TPM_SETTINGS:
5454 reason = "STATUS_TPM_DAA_TPM_SETTINGS";
5455 break;
5456 case MD_NTSTATUS_WIN_STATUS_TPM_DAA_STAGE:
5457 reason = "STATUS_TPM_DAA_STAGE";
5458 break;
5459 case MD_NTSTATUS_WIN_STATUS_TPM_DAA_ISSUER_VALIDITY:
5460 reason = "STATUS_TPM_DAA_ISSUER_VALIDITY";
5461 break;
5462 case MD_NTSTATUS_WIN_STATUS_TPM_DAA_WRONG_W:
5463 reason = "STATUS_TPM_DAA_WRONG_W";
5464 break;
5465 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_HANDLE:
5466 reason = "STATUS_TPM_BAD_HANDLE";
5467 break;
5468 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_DELEGATE:
5469 reason = "STATUS_TPM_BAD_DELEGATE";
5470 break;
5471 case MD_NTSTATUS_WIN_STATUS_TPM_BADCONTEXT:
5472 reason = "STATUS_TPM_BADCONTEXT";
5473 break;
5474 case MD_NTSTATUS_WIN_STATUS_TPM_TOOMANYCONTEXTS:
5475 reason = "STATUS_TPM_TOOMANYCONTEXTS";
5476 break;
5477 case MD_NTSTATUS_WIN_STATUS_TPM_MA_TICKET_SIGNATURE:
5478 reason = "STATUS_TPM_MA_TICKET_SIGNATURE";
5479 break;
5480 case MD_NTSTATUS_WIN_STATUS_TPM_MA_DESTINATION:
5481 reason = "STATUS_TPM_MA_DESTINATION";
5482 break;
5483 case MD_NTSTATUS_WIN_STATUS_TPM_MA_SOURCE:
5484 reason = "STATUS_TPM_MA_SOURCE";
5485 break;
5486 case MD_NTSTATUS_WIN_STATUS_TPM_MA_AUTHORITY:
5487 reason = "STATUS_TPM_MA_AUTHORITY";
5488 break;
5489 case MD_NTSTATUS_WIN_STATUS_TPM_PERMANENTEK:
5490 reason = "STATUS_TPM_PERMANENTEK";
5491 break;
5492 case MD_NTSTATUS_WIN_STATUS_TPM_BAD_SIGNATURE:
5493 reason = "STATUS_TPM_BAD_SIGNATURE";
5494 break;
5495 case MD_NTSTATUS_WIN_STATUS_TPM_NOCONTEXTSPACE:
5496 reason = "STATUS_TPM_NOCONTEXTSPACE";
5497 break;
5498 case MD_NTSTATUS_WIN_STATUS_TPM_COMMAND_BLOCKED:
5499 reason = "STATUS_TPM_COMMAND_BLOCKED";
5500 break;
5501 case MD_NTSTATUS_WIN_STATUS_TPM_INVALID_HANDLE:
5502 reason = "STATUS_TPM_INVALID_HANDLE";
5503 break;
5504 case MD_NTSTATUS_WIN_STATUS_TPM_DUPLICATE_VHANDLE:
5505 reason = "STATUS_TPM_DUPLICATE_VHANDLE";
5506 break;
5507 case MD_NTSTATUS_WIN_STATUS_TPM_EMBEDDED_COMMAND_BLOCKED:
5508 reason = "STATUS_TPM_EMBEDDED_COMMAND_BLOCKED";
5509 break;
5510 case MD_NTSTATUS_WIN_STATUS_TPM_EMBEDDED_COMMAND_UNSUPPORTED:
5511 reason = "STATUS_TPM_EMBEDDED_COMMAND_UNSUPPORTED";
5512 break;
5513 case MD_NTSTATUS_WIN_STATUS_TPM_RETRY:
5514 reason = "STATUS_TPM_RETRY";
5515 break;
5516 case MD_NTSTATUS_WIN_STATUS_TPM_NEEDS_SELFTEST:
5517 reason = "STATUS_TPM_NEEDS_SELFTEST";
5518 break;
5519 case MD_NTSTATUS_WIN_STATUS_TPM_DOING_SELFTEST:
5520 reason = "STATUS_TPM_DOING_SELFTEST";
5521 break;
5522 case MD_NTSTATUS_WIN_STATUS_TPM_DEFEND_LOCK_RUNNING:
5523 reason = "STATUS_TPM_DEFEND_LOCK_RUNNING";
5524 break;
5525 case MD_NTSTATUS_WIN_STATUS_TPM_COMMAND_CANCELED:
5526 reason = "STATUS_TPM_COMMAND_CANCELED";
5527 break;
5528 case MD_NTSTATUS_WIN_STATUS_TPM_TOO_MANY_CONTEXTS:
5529 reason = "STATUS_TPM_TOO_MANY_CONTEXTS";
5530 break;
5531 case MD_NTSTATUS_WIN_STATUS_TPM_NOT_FOUND:
5532 reason = "STATUS_TPM_NOT_FOUND";
5533 break;
5534 case MD_NTSTATUS_WIN_STATUS_TPM_ACCESS_DENIED:
5535 reason = "STATUS_TPM_ACCESS_DENIED";
5536 break;
5537 case MD_NTSTATUS_WIN_STATUS_TPM_INSUFFICIENT_BUFFER:
5538 reason = "STATUS_TPM_INSUFFICIENT_BUFFER";
5539 break;
5540 case MD_NTSTATUS_WIN_STATUS_TPM_PPI_FUNCTION_UNSUPPORTED:
5541 reason = "STATUS_TPM_PPI_FUNCTION_UNSUPPORTED";
5542 break;
5543 case MD_NTSTATUS_WIN_STATUS_PCP_ERROR_MASK:
5544 reason = "STATUS_PCP_ERROR_MASK";
5545 break;
5546 case MD_NTSTATUS_WIN_STATUS_PCP_DEVICE_NOT_READY:
5547 reason = "STATUS_PCP_DEVICE_NOT_READY";
5548 break;
5549 case MD_NTSTATUS_WIN_STATUS_PCP_INVALID_HANDLE:
5550 reason = "STATUS_PCP_INVALID_HANDLE";
5551 break;
5552 case MD_NTSTATUS_WIN_STATUS_PCP_INVALID_PARAMETER:
5553 reason = "STATUS_PCP_INVALID_PARAMETER";
5554 break;
5555 case MD_NTSTATUS_WIN_STATUS_PCP_FLAG_NOT_SUPPORTED:
5556 reason = "STATUS_PCP_FLAG_NOT_SUPPORTED";
5557 break;
5558 case MD_NTSTATUS_WIN_STATUS_PCP_NOT_SUPPORTED:
5559 reason = "STATUS_PCP_NOT_SUPPORTED";
5560 break;
5561 case MD_NTSTATUS_WIN_STATUS_PCP_BUFFER_TOO_SMALL:
5562 reason = "STATUS_PCP_BUFFER_TOO_SMALL";
5563 break;
5564 case MD_NTSTATUS_WIN_STATUS_PCP_INTERNAL_ERROR:
5565 reason = "STATUS_PCP_INTERNAL_ERROR";
5566 break;
5567 case MD_NTSTATUS_WIN_STATUS_PCP_AUTHENTICATION_FAILED:
5568 reason = "STATUS_PCP_AUTHENTICATION_FAILED";
5569 break;
5570 case MD_NTSTATUS_WIN_STATUS_PCP_AUTHENTICATION_IGNORED:
5571 reason = "STATUS_PCP_AUTHENTICATION_IGNORED";
5572 break;
5573 case MD_NTSTATUS_WIN_STATUS_PCP_POLICY_NOT_FOUND:
5574 reason = "STATUS_PCP_POLICY_NOT_FOUND";
5575 break;
5576 case MD_NTSTATUS_WIN_STATUS_PCP_PROFILE_NOT_FOUND:
5577 reason = "STATUS_PCP_PROFILE_NOT_FOUND";
5578 break;
5579 case MD_NTSTATUS_WIN_STATUS_PCP_VALIDATION_FAILED:
5580 reason = "STATUS_PCP_VALIDATION_FAILED";
5581 break;
5582 case MD_NTSTATUS_WIN_STATUS_PCP_DEVICE_NOT_FOUND:
5583 reason = "STATUS_PCP_DEVICE_NOT_FOUND";
5584 break;
5585 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_HYPERCALL_CODE:
5586 reason = "STATUS_HV_INVALID_HYPERCALL_CODE";
5587 break;
5588 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_HYPERCALL_INPUT:
5589 reason = "STATUS_HV_INVALID_HYPERCALL_INPUT";
5590 break;
5591 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_ALIGNMENT:
5592 reason = "STATUS_HV_INVALID_ALIGNMENT";
5593 break;
5594 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_PARAMETER:
5595 reason = "STATUS_HV_INVALID_PARAMETER";
5596 break;
5597 case MD_NTSTATUS_WIN_STATUS_HV_ACCESS_DENIED:
5598 reason = "STATUS_HV_ACCESS_DENIED";
5599 break;
5600 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_PARTITION_STATE:
5601 reason = "STATUS_HV_INVALID_PARTITION_STATE";
5602 break;
5603 case MD_NTSTATUS_WIN_STATUS_HV_OPERATION_DENIED:
5604 reason = "STATUS_HV_OPERATION_DENIED";
5605 break;
5606 case MD_NTSTATUS_WIN_STATUS_HV_UNKNOWN_PROPERTY:
5607 reason = "STATUS_HV_UNKNOWN_PROPERTY";
5608 break;
5609 case MD_NTSTATUS_WIN_STATUS_HV_PROPERTY_VALUE_OUT_OF_RANGE:
5610 reason = "STATUS_HV_PROPERTY_VALUE_OUT_OF_RANGE";
5611 break;
5612 case MD_NTSTATUS_WIN_STATUS_HV_INSUFFICIENT_MEMORY:
5613 reason = "STATUS_HV_INSUFFICIENT_MEMORY";
5614 break;
5615 case MD_NTSTATUS_WIN_STATUS_HV_PARTITION_TOO_DEEP:
5616 reason = "STATUS_HV_PARTITION_TOO_DEEP";
5617 break;
5618 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_PARTITION_ID:
5619 reason = "STATUS_HV_INVALID_PARTITION_ID";
5620 break;
5621 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_VP_INDEX:
5622 reason = "STATUS_HV_INVALID_VP_INDEX";
5623 break;
5624 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_PORT_ID:
5625 reason = "STATUS_HV_INVALID_PORT_ID";
5626 break;
5627 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_CONNECTION_ID:
5628 reason = "STATUS_HV_INVALID_CONNECTION_ID";
5629 break;
5630 case MD_NTSTATUS_WIN_STATUS_HV_INSUFFICIENT_BUFFERS:
5631 reason = "STATUS_HV_INSUFFICIENT_BUFFERS";
5632 break;
5633 case MD_NTSTATUS_WIN_STATUS_HV_NOT_ACKNOWLEDGED:
5634 reason = "STATUS_HV_NOT_ACKNOWLEDGED";
5635 break;
5636 case MD_NTSTATUS_WIN_STATUS_HV_ACKNOWLEDGED:
5637 reason = "STATUS_HV_ACKNOWLEDGED";
5638 break;
5639 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_SAVE_RESTORE_STATE:
5640 reason = "STATUS_HV_INVALID_SAVE_RESTORE_STATE";
5641 break;
5642 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_SYNIC_STATE:
5643 reason = "STATUS_HV_INVALID_SYNIC_STATE";
5644 break;
5645 case MD_NTSTATUS_WIN_STATUS_HV_OBJECT_IN_USE:
5646 reason = "STATUS_HV_OBJECT_IN_USE";
5647 break;
5648 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_PROXIMITY_DOMAIN_INFO:
5649 reason = "STATUS_HV_INVALID_PROXIMITY_DOMAIN_INFO";
5650 break;
5651 case MD_NTSTATUS_WIN_STATUS_HV_NO_DATA:
5652 reason = "STATUS_HV_NO_DATA";
5653 break;
5654 case MD_NTSTATUS_WIN_STATUS_HV_INACTIVE:
5655 reason = "STATUS_HV_INACTIVE";
5656 break;
5657 case MD_NTSTATUS_WIN_STATUS_HV_NO_RESOURCES:
5658 reason = "STATUS_HV_NO_RESOURCES";
5659 break;
5660 case MD_NTSTATUS_WIN_STATUS_HV_FEATURE_UNAVAILABLE:
5661 reason = "STATUS_HV_FEATURE_UNAVAILABLE";
5662 break;
5663 case MD_NTSTATUS_WIN_STATUS_HV_INSUFFICIENT_BUFFER:
5664 reason = "STATUS_HV_INSUFFICIENT_BUFFER";
5665 break;
5666 case MD_NTSTATUS_WIN_STATUS_HV_INSUFFICIENT_DEVICE_DOMAINS:
5667 reason = "STATUS_HV_INSUFFICIENT_DEVICE_DOMAINS";
5668 break;
5669 case MD_NTSTATUS_WIN_STATUS_HV_INVALID_LP_INDEX:
5670 reason = "STATUS_HV_INVALID_LP_INDEX";
5671 break;
5672 case MD_NTSTATUS_WIN_STATUS_HV_NOT_PRESENT:
5673 reason = "STATUS_HV_NOT_PRESENT";
5674 break;
5675 case MD_NTSTATUS_WIN_STATUS_IPSEC_BAD_SPI:
5676 reason = "STATUS_IPSEC_BAD_SPI";
5677 break;
5678 case MD_NTSTATUS_WIN_STATUS_IPSEC_SA_LIFETIME_EXPIRED:
5679 reason = "STATUS_IPSEC_SA_LIFETIME_EXPIRED";
5680 break;
5681 case MD_NTSTATUS_WIN_STATUS_IPSEC_WRONG_SA:
5682 reason = "STATUS_IPSEC_WRONG_SA";
5683 break;
5684 case MD_NTSTATUS_WIN_STATUS_IPSEC_REPLAY_CHECK_FAILED:
5685 reason = "STATUS_IPSEC_REPLAY_CHECK_FAILED";
5686 break;
5687 case MD_NTSTATUS_WIN_STATUS_IPSEC_INVALID_PACKET:
5688 reason = "STATUS_IPSEC_INVALID_PACKET";
5689 break;
5690 case MD_NTSTATUS_WIN_STATUS_IPSEC_INTEGRITY_CHECK_FAILED:
5691 reason = "STATUS_IPSEC_INTEGRITY_CHECK_FAILED";
5692 break;
5693 case MD_NTSTATUS_WIN_STATUS_IPSEC_CLEAR_TEXT_DROP:
5694 reason = "STATUS_IPSEC_CLEAR_TEXT_DROP";
5695 break;
5696 case MD_NTSTATUS_WIN_STATUS_IPSEC_AUTH_FIREWALL_DROP:
5697 reason = "STATUS_IPSEC_AUTH_FIREWALL_DROP";
5698 break;
5699 case MD_NTSTATUS_WIN_STATUS_IPSEC_THROTTLE_DROP:
5700 reason = "STATUS_IPSEC_THROTTLE_DROP";
5701 break;
5702 case MD_NTSTATUS_WIN_STATUS_IPSEC_DOSP_BLOCK:
5703 reason = "STATUS_IPSEC_DOSP_BLOCK";
5704 break;
5705 case MD_NTSTATUS_WIN_STATUS_IPSEC_DOSP_RECEIVED_MULTICAST:
5706 reason = "STATUS_IPSEC_DOSP_RECEIVED_MULTICAST";
5707 break;
5708 case MD_NTSTATUS_WIN_STATUS_IPSEC_DOSP_INVALID_PACKET:
5709 reason = "STATUS_IPSEC_DOSP_INVALID_PACKET";
5710 break;
5711 case MD_NTSTATUS_WIN_STATUS_IPSEC_DOSP_STATE_LOOKUP_FAILED:
5712 reason = "STATUS_IPSEC_DOSP_STATE_LOOKUP_FAILED";
5713 break;
5714 case MD_NTSTATUS_WIN_STATUS_IPSEC_DOSP_MAX_ENTRIES:
5715 reason = "STATUS_IPSEC_DOSP_MAX_ENTRIES";
5716 break;
5717 case MD_NTSTATUS_WIN_STATUS_IPSEC_DOSP_KEYMOD_NOT_ALLOWED:
5718 reason = "STATUS_IPSEC_DOSP_KEYMOD_NOT_ALLOWED";
5719 break;
5720 case MD_NTSTATUS_WIN_STATUS_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES:
5721 reason = "STATUS_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES";
5722 break;
5723 case MD_NTSTATUS_WIN_STATUS_VID_DUPLICATE_HANDLER:
5724 reason = "STATUS_VID_DUPLICATE_HANDLER";
5725 break;
5726 case MD_NTSTATUS_WIN_STATUS_VID_TOO_MANY_HANDLERS:
5727 reason = "STATUS_VID_TOO_MANY_HANDLERS";
5728 break;
5729 case MD_NTSTATUS_WIN_STATUS_VID_QUEUE_FULL:
5730 reason = "STATUS_VID_QUEUE_FULL";
5731 break;
5732 case MD_NTSTATUS_WIN_STATUS_VID_HANDLER_NOT_PRESENT:
5733 reason = "STATUS_VID_HANDLER_NOT_PRESENT";
5734 break;
5735 case MD_NTSTATUS_WIN_STATUS_VID_INVALID_OBJECT_NAME:
5736 reason = "STATUS_VID_INVALID_OBJECT_NAME";
5737 break;
5738 case MD_NTSTATUS_WIN_STATUS_VID_PARTITION_NAME_TOO_LONG:
5739 reason = "STATUS_VID_PARTITION_NAME_TOO_LONG";
5740 break;
5741 case MD_NTSTATUS_WIN_STATUS_VID_MESSAGE_QUEUE_NAME_TOO_LONG:
5742 reason = "STATUS_VID_MESSAGE_QUEUE_NAME_TOO_LONG";
5743 break;
5744 case MD_NTSTATUS_WIN_STATUS_VID_PARTITION_ALREADY_EXISTS:
5745 reason = "STATUS_VID_PARTITION_ALREADY_EXISTS";
5746 break;
5747 case MD_NTSTATUS_WIN_STATUS_VID_PARTITION_DOES_NOT_EXIST:
5748 reason = "STATUS_VID_PARTITION_DOES_NOT_EXIST";
5749 break;
5750 case MD_NTSTATUS_WIN_STATUS_VID_PARTITION_NAME_NOT_FOUND:
5751 reason = "STATUS_VID_PARTITION_NAME_NOT_FOUND";
5752 break;
5753 case MD_NTSTATUS_WIN_STATUS_VID_MESSAGE_QUEUE_ALREADY_EXISTS:
5754 reason = "STATUS_VID_MESSAGE_QUEUE_ALREADY_EXISTS";
5755 break;
5756 case MD_NTSTATUS_WIN_STATUS_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT:
5757 reason = "STATUS_VID_EXCEEDED_MBP_ENTRY_MAP_LIMIT";
5758 break;
5759 case MD_NTSTATUS_WIN_STATUS_VID_MB_STILL_REFERENCED:
5760 reason = "STATUS_VID_MB_STILL_REFERENCED";
5761 break;
5762 case MD_NTSTATUS_WIN_STATUS_VID_CHILD_GPA_PAGE_SET_CORRUPTED:
5763 reason = "STATUS_VID_CHILD_GPA_PAGE_SET_CORRUPTED";
5764 break;
5765 case MD_NTSTATUS_WIN_STATUS_VID_INVALID_NUMA_SETTINGS:
5766 reason = "STATUS_VID_INVALID_NUMA_SETTINGS";
5767 break;
5768 case MD_NTSTATUS_WIN_STATUS_VID_INVALID_NUMA_NODE_INDEX:
5769 reason = "STATUS_VID_INVALID_NUMA_NODE_INDEX";
5770 break;
5771 case MD_NTSTATUS_WIN_STATUS_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED:
5772 reason = "STATUS_VID_NOTIFICATION_QUEUE_ALREADY_ASSOCIATED";
5773 break;
5774 case MD_NTSTATUS_WIN_STATUS_VID_INVALID_MEMORY_BLOCK_HANDLE:
5775 reason = "STATUS_VID_INVALID_MEMORY_BLOCK_HANDLE";
5776 break;
5777 case MD_NTSTATUS_WIN_STATUS_VID_PAGE_RANGE_OVERFLOW:
5778 reason = "STATUS_VID_PAGE_RANGE_OVERFLOW";
5779 break;
5780 case MD_NTSTATUS_WIN_STATUS_VID_INVALID_MESSAGE_QUEUE_HANDLE:
5781 reason = "STATUS_VID_INVALID_MESSAGE_QUEUE_HANDLE";
5782 break;
5783 case MD_NTSTATUS_WIN_STATUS_VID_INVALID_GPA_RANGE_HANDLE:
5784 reason = "STATUS_VID_INVALID_GPA_RANGE_HANDLE";
5785 break;
5786 case MD_NTSTATUS_WIN_STATUS_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE:
5787 reason = "STATUS_VID_NO_MEMORY_BLOCK_NOTIFICATION_QUEUE";
5788 break;
5789 case MD_NTSTATUS_WIN_STATUS_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED:
5790 reason = "STATUS_VID_MEMORY_BLOCK_LOCK_COUNT_EXCEEDED";
5791 break;
5792 case MD_NTSTATUS_WIN_STATUS_VID_INVALID_PPM_HANDLE:
5793 reason = "STATUS_VID_INVALID_PPM_HANDLE";
5794 break;
5795 case MD_NTSTATUS_WIN_STATUS_VID_MBPS_ARE_LOCKED:
5796 reason = "STATUS_VID_MBPS_ARE_LOCKED";
5797 break;
5798 case MD_NTSTATUS_WIN_STATUS_VID_MESSAGE_QUEUE_CLOSED:
5799 reason = "STATUS_VID_MESSAGE_QUEUE_CLOSED";
5800 break;
5801 case MD_NTSTATUS_WIN_STATUS_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED:
5802 reason = "STATUS_VID_VIRTUAL_PROCESSOR_LIMIT_EXCEEDED";
5803 break;
5804 case MD_NTSTATUS_WIN_STATUS_VID_STOP_PENDING:
5805 reason = "STATUS_VID_STOP_PENDING";
5806 break;
5807 case MD_NTSTATUS_WIN_STATUS_VID_INVALID_PROCESSOR_STATE:
5808 reason = "STATUS_VID_INVALID_PROCESSOR_STATE";
5809 break;
5810 case MD_NTSTATUS_WIN_STATUS_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT:
5811 reason = "STATUS_VID_EXCEEDED_KM_CONTEXT_COUNT_LIMIT";
5812 break;
5813 case MD_NTSTATUS_WIN_STATUS_VID_KM_INTERFACE_ALREADY_INITIALIZED:
5814 reason = "STATUS_VID_KM_INTERFACE_ALREADY_INITIALIZED";
5815 break;
5816 case MD_NTSTATUS_WIN_STATUS_VID_MB_PROPERTY_ALREADY_SET_RESET:
5817 reason = "STATUS_VID_MB_PROPERTY_ALREADY_SET_RESET";
5818 break;
5819 case MD_NTSTATUS_WIN_STATUS_VID_MMIO_RANGE_DESTROYED:
5820 reason = "STATUS_VID_MMIO_RANGE_DESTROYED";
5821 break;
5822 case MD_NTSTATUS_WIN_STATUS_VID_INVALID_CHILD_GPA_PAGE_SET:
5823 reason = "STATUS_VID_INVALID_CHILD_GPA_PAGE_SET";
5824 break;
5825 case MD_NTSTATUS_WIN_STATUS_VID_RESERVE_PAGE_SET_IS_BEING_USED:
5826 reason = "STATUS_VID_RESERVE_PAGE_SET_IS_BEING_USED";
5827 break;
5828 case MD_NTSTATUS_WIN_STATUS_VID_RESERVE_PAGE_SET_TOO_SMALL:
5829 reason = "STATUS_VID_RESERVE_PAGE_SET_TOO_SMALL";
5830 break;
5831 case MD_NTSTATUS_WIN_STATUS_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE:
5832 reason = "STATUS_VID_MBP_ALREADY_LOCKED_USING_RESERVED_PAGE";
5833 break;
5834 case MD_NTSTATUS_WIN_STATUS_VID_MBP_COUNT_EXCEEDED_LIMIT:
5835 reason = "STATUS_VID_MBP_COUNT_EXCEEDED_LIMIT";
5836 break;
5837 case MD_NTSTATUS_WIN_STATUS_VID_SAVED_STATE_CORRUPT:
5838 reason = "STATUS_VID_SAVED_STATE_CORRUPT";
5839 break;
5840 case MD_NTSTATUS_WIN_STATUS_VID_SAVED_STATE_UNRECOGNIZED_ITEM:
5841 reason = "STATUS_VID_SAVED_STATE_UNRECOGNIZED_ITEM";
5842 break;
5843 case MD_NTSTATUS_WIN_STATUS_VID_SAVED_STATE_INCOMPATIBLE:
5844 reason = "STATUS_VID_SAVED_STATE_INCOMPATIBLE";
5845 break;
5846 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DATABASE_FULL:
5847 reason = "STATUS_VOLMGR_DATABASE_FULL";
5848 break;
5849 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_CONFIGURATION_CORRUPTED:
5850 reason = "STATUS_VOLMGR_DISK_CONFIGURATION_CORRUPTED";
5851 break;
5852 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC:
5853 reason = "STATUS_VOLMGR_DISK_CONFIGURATION_NOT_IN_SYNC";
5854 break;
5855 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_CONFIG_UPDATE_FAILED:
5856 reason = "STATUS_VOLMGR_PACK_CONFIG_UPDATE_FAILED";
5857 break;
5858 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME:
5859 reason = "STATUS_VOLMGR_DISK_CONTAINS_NON_SIMPLE_VOLUME";
5860 break;
5861 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_DUPLICATE:
5862 reason = "STATUS_VOLMGR_DISK_DUPLICATE";
5863 break;
5864 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_DYNAMIC:
5865 reason = "STATUS_VOLMGR_DISK_DYNAMIC";
5866 break;
5867 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_ID_INVALID:
5868 reason = "STATUS_VOLMGR_DISK_ID_INVALID";
5869 break;
5870 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_INVALID:
5871 reason = "STATUS_VOLMGR_DISK_INVALID";
5872 break;
5873 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_LAST_VOTER:
5874 reason = "STATUS_VOLMGR_DISK_LAST_VOTER";
5875 break;
5876 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_LAYOUT_INVALID:
5877 reason = "STATUS_VOLMGR_DISK_LAYOUT_INVALID";
5878 break;
5879 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS:
5880 reason = "STATUS_VOLMGR_DISK_LAYOUT_NON_BASIC_BETWEEN_BASIC_PARTITIONS";
5881 break;
5882 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED:
5883 reason = "STATUS_VOLMGR_DISK_LAYOUT_NOT_CYLINDER_ALIGNED";
5884 break;
5885 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL:
5886 reason = "STATUS_VOLMGR_DISK_LAYOUT_PARTITIONS_TOO_SMALL";
5887 break;
5888 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS:
5889 reason = "STATUS_VOLMGR_DISK_LAYOUT_PRIMARY_BETWEEN_LOGICAL_PARTITIONS";
5890 break;
5891 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS:
5892 reason = "STATUS_VOLMGR_DISK_LAYOUT_TOO_MANY_PARTITIONS";
5893 break;
5894 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_MISSING:
5895 reason = "STATUS_VOLMGR_DISK_MISSING";
5896 break;
5897 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_NOT_EMPTY:
5898 reason = "STATUS_VOLMGR_DISK_NOT_EMPTY";
5899 break;
5900 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_NOT_ENOUGH_SPACE:
5901 reason = "STATUS_VOLMGR_DISK_NOT_ENOUGH_SPACE";
5902 break;
5903 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_REVECTORING_FAILED:
5904 reason = "STATUS_VOLMGR_DISK_REVECTORING_FAILED";
5905 break;
5906 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_SECTOR_SIZE_INVALID:
5907 reason = "STATUS_VOLMGR_DISK_SECTOR_SIZE_INVALID";
5908 break;
5909 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_SET_NOT_CONTAINED:
5910 reason = "STATUS_VOLMGR_DISK_SET_NOT_CONTAINED";
5911 break;
5912 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS:
5913 reason = "STATUS_VOLMGR_DISK_USED_BY_MULTIPLE_MEMBERS";
5914 break;
5915 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES:
5916 reason = "STATUS_VOLMGR_DISK_USED_BY_MULTIPLE_PLEXES";
5917 break;
5918 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED:
5919 reason = "STATUS_VOLMGR_DYNAMIC_DISK_NOT_SUPPORTED";
5920 break;
5921 case MD_NTSTATUS_WIN_STATUS_VOLMGR_EXTENT_ALREADY_USED:
5922 reason = "STATUS_VOLMGR_EXTENT_ALREADY_USED";
5923 break;
5924 case MD_NTSTATUS_WIN_STATUS_VOLMGR_EXTENT_NOT_CONTIGUOUS:
5925 reason = "STATUS_VOLMGR_EXTENT_NOT_CONTIGUOUS";
5926 break;
5927 case MD_NTSTATUS_WIN_STATUS_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION:
5928 reason = "STATUS_VOLMGR_EXTENT_NOT_IN_PUBLIC_REGION";
5929 break;
5930 case MD_NTSTATUS_WIN_STATUS_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED:
5931 reason = "STATUS_VOLMGR_EXTENT_NOT_SECTOR_ALIGNED";
5932 break;
5933 case MD_NTSTATUS_WIN_STATUS_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION:
5934 reason = "STATUS_VOLMGR_EXTENT_OVERLAPS_EBR_PARTITION";
5935 break;
5936 case MD_NTSTATUS_WIN_STATUS_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH:
5937 reason = "STATUS_VOLMGR_EXTENT_VOLUME_LENGTHS_DO_NOT_MATCH";
5938 break;
5939 case MD_NTSTATUS_WIN_STATUS_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED:
5940 reason = "STATUS_VOLMGR_FAULT_TOLERANT_NOT_SUPPORTED";
5941 break;
5942 case MD_NTSTATUS_WIN_STATUS_VOLMGR_INTERLEAVE_LENGTH_INVALID:
5943 reason = "STATUS_VOLMGR_INTERLEAVE_LENGTH_INVALID";
5944 break;
5945 case MD_NTSTATUS_WIN_STATUS_VOLMGR_MAXIMUM_REGISTERED_USERS:
5946 reason = "STATUS_VOLMGR_MAXIMUM_REGISTERED_USERS";
5947 break;
5948 case MD_NTSTATUS_WIN_STATUS_VOLMGR_MEMBER_IN_SYNC:
5949 reason = "STATUS_VOLMGR_MEMBER_IN_SYNC";
5950 break;
5951 case MD_NTSTATUS_WIN_STATUS_VOLMGR_MEMBER_INDEX_DUPLICATE:
5952 reason = "STATUS_VOLMGR_MEMBER_INDEX_DUPLICATE";
5953 break;
5954 case MD_NTSTATUS_WIN_STATUS_VOLMGR_MEMBER_INDEX_INVALID:
5955 reason = "STATUS_VOLMGR_MEMBER_INDEX_INVALID";
5956 break;
5957 case MD_NTSTATUS_WIN_STATUS_VOLMGR_MEMBER_MISSING:
5958 reason = "STATUS_VOLMGR_MEMBER_MISSING";
5959 break;
5960 case MD_NTSTATUS_WIN_STATUS_VOLMGR_MEMBER_NOT_DETACHED:
5961 reason = "STATUS_VOLMGR_MEMBER_NOT_DETACHED";
5962 break;
5963 case MD_NTSTATUS_WIN_STATUS_VOLMGR_MEMBER_REGENERATING:
5964 reason = "STATUS_VOLMGR_MEMBER_REGENERATING";
5965 break;
5966 case MD_NTSTATUS_WIN_STATUS_VOLMGR_ALL_DISKS_FAILED:
5967 reason = "STATUS_VOLMGR_ALL_DISKS_FAILED";
5968 break;
5969 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NO_REGISTERED_USERS:
5970 reason = "STATUS_VOLMGR_NO_REGISTERED_USERS";
5971 break;
5972 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NO_SUCH_USER:
5973 reason = "STATUS_VOLMGR_NO_SUCH_USER";
5974 break;
5975 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NOTIFICATION_RESET:
5976 reason = "STATUS_VOLMGR_NOTIFICATION_RESET";
5977 break;
5978 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NUMBER_OF_MEMBERS_INVALID:
5979 reason = "STATUS_VOLMGR_NUMBER_OF_MEMBERS_INVALID";
5980 break;
5981 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NUMBER_OF_PLEXES_INVALID:
5982 reason = "STATUS_VOLMGR_NUMBER_OF_PLEXES_INVALID";
5983 break;
5984 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_DUPLICATE:
5985 reason = "STATUS_VOLMGR_PACK_DUPLICATE";
5986 break;
5987 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_ID_INVALID:
5988 reason = "STATUS_VOLMGR_PACK_ID_INVALID";
5989 break;
5990 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_INVALID:
5991 reason = "STATUS_VOLMGR_PACK_INVALID";
5992 break;
5993 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_NAME_INVALID:
5994 reason = "STATUS_VOLMGR_PACK_NAME_INVALID";
5995 break;
5996 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_OFFLINE:
5997 reason = "STATUS_VOLMGR_PACK_OFFLINE";
5998 break;
5999 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_HAS_QUORUM:
6000 reason = "STATUS_VOLMGR_PACK_HAS_QUORUM";
6001 break;
6002 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_WITHOUT_QUORUM:
6003 reason = "STATUS_VOLMGR_PACK_WITHOUT_QUORUM";
6004 break;
6005 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PARTITION_STYLE_INVALID:
6006 reason = "STATUS_VOLMGR_PARTITION_STYLE_INVALID";
6007 break;
6008 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PARTITION_UPDATE_FAILED:
6009 reason = "STATUS_VOLMGR_PARTITION_UPDATE_FAILED";
6010 break;
6011 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PLEX_IN_SYNC:
6012 reason = "STATUS_VOLMGR_PLEX_IN_SYNC";
6013 break;
6014 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PLEX_INDEX_DUPLICATE:
6015 reason = "STATUS_VOLMGR_PLEX_INDEX_DUPLICATE";
6016 break;
6017 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PLEX_INDEX_INVALID:
6018 reason = "STATUS_VOLMGR_PLEX_INDEX_INVALID";
6019 break;
6020 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PLEX_LAST_ACTIVE:
6021 reason = "STATUS_VOLMGR_PLEX_LAST_ACTIVE";
6022 break;
6023 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PLEX_MISSING:
6024 reason = "STATUS_VOLMGR_PLEX_MISSING";
6025 break;
6026 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PLEX_REGENERATING:
6027 reason = "STATUS_VOLMGR_PLEX_REGENERATING";
6028 break;
6029 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PLEX_TYPE_INVALID:
6030 reason = "STATUS_VOLMGR_PLEX_TYPE_INVALID";
6031 break;
6032 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PLEX_NOT_RAID5:
6033 reason = "STATUS_VOLMGR_PLEX_NOT_RAID5";
6034 break;
6035 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PLEX_NOT_SIMPLE:
6036 reason = "STATUS_VOLMGR_PLEX_NOT_SIMPLE";
6037 break;
6038 case MD_NTSTATUS_WIN_STATUS_VOLMGR_STRUCTURE_SIZE_INVALID:
6039 reason = "STATUS_VOLMGR_STRUCTURE_SIZE_INVALID";
6040 break;
6041 case MD_NTSTATUS_WIN_STATUS_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS:
6042 reason = "STATUS_VOLMGR_TOO_MANY_NOTIFICATION_REQUESTS";
6043 break;
6044 case MD_NTSTATUS_WIN_STATUS_VOLMGR_TRANSACTION_IN_PROGRESS:
6045 reason = "STATUS_VOLMGR_TRANSACTION_IN_PROGRESS";
6046 break;
6047 case MD_NTSTATUS_WIN_STATUS_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE:
6048 reason = "STATUS_VOLMGR_UNEXPECTED_DISK_LAYOUT_CHANGE";
6049 break;
6050 case MD_NTSTATUS_WIN_STATUS_VOLMGR_VOLUME_CONTAINS_MISSING_DISK:
6051 reason = "STATUS_VOLMGR_VOLUME_CONTAINS_MISSING_DISK";
6052 break;
6053 case MD_NTSTATUS_WIN_STATUS_VOLMGR_VOLUME_ID_INVALID:
6054 reason = "STATUS_VOLMGR_VOLUME_ID_INVALID";
6055 break;
6056 case MD_NTSTATUS_WIN_STATUS_VOLMGR_VOLUME_LENGTH_INVALID:
6057 reason = "STATUS_VOLMGR_VOLUME_LENGTH_INVALID";
6058 break;
6059 case MD_NTSTATUS_WIN_STATUS_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE:
6060 reason = "STATUS_VOLMGR_VOLUME_LENGTH_NOT_SECTOR_SIZE_MULTIPLE";
6061 break;
6062 case MD_NTSTATUS_WIN_STATUS_VOLMGR_VOLUME_NOT_MIRRORED:
6063 reason = "STATUS_VOLMGR_VOLUME_NOT_MIRRORED";
6064 break;
6065 case MD_NTSTATUS_WIN_STATUS_VOLMGR_VOLUME_NOT_RETAINED:
6066 reason = "STATUS_VOLMGR_VOLUME_NOT_RETAINED";
6067 break;
6068 case MD_NTSTATUS_WIN_STATUS_VOLMGR_VOLUME_OFFLINE:
6069 reason = "STATUS_VOLMGR_VOLUME_OFFLINE";
6070 break;
6071 case MD_NTSTATUS_WIN_STATUS_VOLMGR_VOLUME_RETAINED:
6072 reason = "STATUS_VOLMGR_VOLUME_RETAINED";
6073 break;
6074 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NUMBER_OF_EXTENTS_INVALID:
6075 reason = "STATUS_VOLMGR_NUMBER_OF_EXTENTS_INVALID";
6076 break;
6077 case MD_NTSTATUS_WIN_STATUS_VOLMGR_DIFFERENT_SECTOR_SIZE:
6078 reason = "STATUS_VOLMGR_DIFFERENT_SECTOR_SIZE";
6079 break;
6080 case MD_NTSTATUS_WIN_STATUS_VOLMGR_BAD_BOOT_DISK:
6081 reason = "STATUS_VOLMGR_BAD_BOOT_DISK";
6082 break;
6083 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_CONFIG_OFFLINE:
6084 reason = "STATUS_VOLMGR_PACK_CONFIG_OFFLINE";
6085 break;
6086 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_CONFIG_ONLINE:
6087 reason = "STATUS_VOLMGR_PACK_CONFIG_ONLINE";
6088 break;
6089 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NOT_PRIMARY_PACK:
6090 reason = "STATUS_VOLMGR_NOT_PRIMARY_PACK";
6091 break;
6092 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PACK_LOG_UPDATE_FAILED:
6093 reason = "STATUS_VOLMGR_PACK_LOG_UPDATE_FAILED";
6094 break;
6095 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID:
6096 reason = "STATUS_VOLMGR_NUMBER_OF_DISKS_IN_PLEX_INVALID";
6097 break;
6098 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID:
6099 reason = "STATUS_VOLMGR_NUMBER_OF_DISKS_IN_MEMBER_INVALID";
6100 break;
6101 case MD_NTSTATUS_WIN_STATUS_VOLMGR_VOLUME_MIRRORED:
6102 reason = "STATUS_VOLMGR_VOLUME_MIRRORED";
6103 break;
6104 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PLEX_NOT_SIMPLE_SPANNED:
6105 reason = "STATUS_VOLMGR_PLEX_NOT_SIMPLE_SPANNED";
6106 break;
6107 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NO_VALID_LOG_COPIES:
6108 reason = "STATUS_VOLMGR_NO_VALID_LOG_COPIES";
6109 break;
6110 case MD_NTSTATUS_WIN_STATUS_VOLMGR_PRIMARY_PACK_PRESENT:
6111 reason = "STATUS_VOLMGR_PRIMARY_PACK_PRESENT";
6112 break;
6113 case MD_NTSTATUS_WIN_STATUS_VOLMGR_NUMBER_OF_DISKS_INVALID:
6114 reason = "STATUS_VOLMGR_NUMBER_OF_DISKS_INVALID";
6115 break;
6116 case MD_NTSTATUS_WIN_STATUS_VOLMGR_MIRROR_NOT_SUPPORTED:
6117 reason = "STATUS_VOLMGR_MIRROR_NOT_SUPPORTED";
6118 break;
6119 case MD_NTSTATUS_WIN_STATUS_VOLMGR_RAID5_NOT_SUPPORTED:
6120 reason = "STATUS_VOLMGR_RAID5_NOT_SUPPORTED";
6121 break;
6122 case MD_NTSTATUS_WIN_STATUS_BCD_TOO_MANY_ELEMENTS:
6123 reason = "STATUS_BCD_TOO_MANY_ELEMENTS";
6124 break;
6125 case MD_NTSTATUS_WIN_STATUS_VHD_DRIVE_FOOTER_MISSING:
6126 reason = "STATUS_VHD_DRIVE_FOOTER_MISSING";
6127 break;
6128 case MD_NTSTATUS_WIN_STATUS_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH:
6129 reason = "STATUS_VHD_DRIVE_FOOTER_CHECKSUM_MISMATCH";
6130 break;
6131 case MD_NTSTATUS_WIN_STATUS_VHD_DRIVE_FOOTER_CORRUPT:
6132 reason = "STATUS_VHD_DRIVE_FOOTER_CORRUPT";
6133 break;
6134 case MD_NTSTATUS_WIN_STATUS_VHD_FORMAT_UNKNOWN:
6135 reason = "STATUS_VHD_FORMAT_UNKNOWN";
6136 break;
6137 case MD_NTSTATUS_WIN_STATUS_VHD_FORMAT_UNSUPPORTED_VERSION:
6138 reason = "STATUS_VHD_FORMAT_UNSUPPORTED_VERSION";
6139 break;
6140 case MD_NTSTATUS_WIN_STATUS_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH:
6141 reason = "STATUS_VHD_SPARSE_HEADER_CHECKSUM_MISMATCH";
6142 break;
6143 case MD_NTSTATUS_WIN_STATUS_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION:
6144 reason = "STATUS_VHD_SPARSE_HEADER_UNSUPPORTED_VERSION";
6145 break;
6146 case MD_NTSTATUS_WIN_STATUS_VHD_SPARSE_HEADER_CORRUPT:
6147 reason = "STATUS_VHD_SPARSE_HEADER_CORRUPT";
6148 break;
6149 case MD_NTSTATUS_WIN_STATUS_VHD_BLOCK_ALLOCATION_FAILURE:
6150 reason = "STATUS_VHD_BLOCK_ALLOCATION_FAILURE";
6151 break;
6152 case MD_NTSTATUS_WIN_STATUS_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT:
6153 reason = "STATUS_VHD_BLOCK_ALLOCATION_TABLE_CORRUPT";
6154 break;
6155 case MD_NTSTATUS_WIN_STATUS_VHD_INVALID_BLOCK_SIZE:
6156 reason = "STATUS_VHD_INVALID_BLOCK_SIZE";
6157 break;
6158 case MD_NTSTATUS_WIN_STATUS_VHD_BITMAP_MISMATCH:
6159 reason = "STATUS_VHD_BITMAP_MISMATCH";
6160 break;
6161 case MD_NTSTATUS_WIN_STATUS_VHD_PARENT_VHD_NOT_FOUND:
6162 reason = "STATUS_VHD_PARENT_VHD_NOT_FOUND";
6163 break;
6164 case MD_NTSTATUS_WIN_STATUS_VHD_CHILD_PARENT_ID_MISMATCH:
6165 reason = "STATUS_VHD_CHILD_PARENT_ID_MISMATCH";
6166 break;
6167 case MD_NTSTATUS_WIN_STATUS_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH:
6168 reason = "STATUS_VHD_CHILD_PARENT_TIMESTAMP_MISMATCH";
6169 break;
6170 case MD_NTSTATUS_WIN_STATUS_VHD_METADATA_READ_FAILURE:
6171 reason = "STATUS_VHD_METADATA_READ_FAILURE";
6172 break;
6173 case MD_NTSTATUS_WIN_STATUS_VHD_METADATA_WRITE_FAILURE:
6174 reason = "STATUS_VHD_METADATA_WRITE_FAILURE";
6175 break;
6176 case MD_NTSTATUS_WIN_STATUS_VHD_INVALID_SIZE:
6177 reason = "STATUS_VHD_INVALID_SIZE";
6178 break;
6179 case MD_NTSTATUS_WIN_STATUS_VHD_INVALID_FILE_SIZE:
6180 reason = "STATUS_VHD_INVALID_FILE_SIZE";
6181 break;
6182 case MD_NTSTATUS_WIN_STATUS_VIRTDISK_PROVIDER_NOT_FOUND:
6183 reason = "STATUS_VIRTDISK_PROVIDER_NOT_FOUND";
6184 break;
6185 case MD_NTSTATUS_WIN_STATUS_VIRTDISK_NOT_VIRTUAL_DISK:
6186 reason = "STATUS_VIRTDISK_NOT_VIRTUAL_DISK";
6187 break;
6188 case MD_NTSTATUS_WIN_STATUS_VHD_PARENT_VHD_ACCESS_DENIED:
6189 reason = "STATUS_VHD_PARENT_VHD_ACCESS_DENIED";
6190 break;
6191 case MD_NTSTATUS_WIN_STATUS_VHD_CHILD_PARENT_SIZE_MISMATCH:
6192 reason = "STATUS_VHD_CHILD_PARENT_SIZE_MISMATCH";
6193 break;
6194 case MD_NTSTATUS_WIN_STATUS_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED:
6195 reason = "STATUS_VHD_DIFFERENCING_CHAIN_CYCLE_DETECTED";
6196 break;
6197 case MD_NTSTATUS_WIN_STATUS_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT:
6198 reason = "STATUS_VHD_DIFFERENCING_CHAIN_ERROR_IN_PARENT";
6199 break;
6200 case MD_NTSTATUS_WIN_STATUS_VIRTUAL_DISK_LIMITATION:
6201 reason = "STATUS_VIRTUAL_DISK_LIMITATION";
6202 break;
6203 case MD_NTSTATUS_WIN_STATUS_VHD_INVALID_TYPE:
6204 reason = "STATUS_VHD_INVALID_TYPE";
6205 break;
6206 case MD_NTSTATUS_WIN_STATUS_VHD_INVALID_STATE:
6207 reason = "STATUS_VHD_INVALID_STATE";
6208 break;
6209 case MD_NTSTATUS_WIN_STATUS_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE:
6210 reason = "STATUS_VIRTDISK_UNSUPPORTED_DISK_SECTOR_SIZE";
6211 break;
6212 case MD_NTSTATUS_WIN_STATUS_VIRTDISK_DISK_ALREADY_OWNED:
6213 reason = "STATUS_VIRTDISK_DISK_ALREADY_OWNED";
6214 break;
6215 case MD_NTSTATUS_WIN_STATUS_VIRTDISK_DISK_ONLINE_AND_WRITABLE:
6216 reason = "STATUS_VIRTDISK_DISK_ONLINE_AND_WRITABLE";
6217 break;
6218 case MD_NTSTATUS_WIN_STATUS_CTLOG_TRACKING_NOT_INITIALIZED:
6219 reason = "STATUS_CTLOG_TRACKING_NOT_INITIALIZED";
6220 break;
6221 case MD_NTSTATUS_WIN_STATUS_CTLOG_LOGFILE_SIZE_EXCEEDED_MAXSIZE:
6222 reason = "STATUS_CTLOG_LOGFILE_SIZE_EXCEEDED_MAXSIZE";
6223 break;
6224 case MD_NTSTATUS_WIN_STATUS_CTLOG_VHD_CHANGED_OFFLINE:
6225 reason = "STATUS_CTLOG_VHD_CHANGED_OFFLINE";
6226 break;
6227 case MD_NTSTATUS_WIN_STATUS_CTLOG_INVALID_TRACKING_STATE:
6228 reason = "STATUS_CTLOG_INVALID_TRACKING_STATE";
6229 break;
6230 case MD_NTSTATUS_WIN_STATUS_CTLOG_INCONSISTENT_TRACKING_FILE:
6231 reason = "STATUS_CTLOG_INCONSISTENT_TRACKING_FILE";
6232 break;
6233 case MD_NTSTATUS_WIN_STATUS_VHD_METADATA_FULL:
6234 reason = "STATUS_VHD_METADATA_FULL";
6235 break;
6236 case MD_NTSTATUS_WIN_STATUS_RKF_KEY_NOT_FOUND:
6237 reason = "STATUS_RKF_KEY_NOT_FOUND";
6238 break;
6239 case MD_NTSTATUS_WIN_STATUS_RKF_DUPLICATE_KEY:
6240 reason = "STATUS_RKF_DUPLICATE_KEY";
6241 break;
6242 case MD_NTSTATUS_WIN_STATUS_RKF_BLOB_FULL:
6243 reason = "STATUS_RKF_BLOB_FULL";
6244 break;
6245 case MD_NTSTATUS_WIN_STATUS_RKF_STORE_FULL:
6246 reason = "STATUS_RKF_STORE_FULL";
6247 break;
6248 case MD_NTSTATUS_WIN_STATUS_RKF_FILE_BLOCKED:
6249 reason = "STATUS_RKF_FILE_BLOCKED";
6250 break;
6251 case MD_NTSTATUS_WIN_STATUS_RKF_ACTIVE_KEY:
6252 reason = "STATUS_RKF_ACTIVE_KEY";
6253 break;
6254 case MD_NTSTATUS_WIN_STATUS_RDBSS_RESTART_OPERATION:
6255 reason = "STATUS_RDBSS_RESTART_OPERATION";
6256 break;
6257 case MD_NTSTATUS_WIN_STATUS_RDBSS_CONTINUE_OPERATION:
6258 reason = "STATUS_RDBSS_CONTINUE_OPERATION";
6259 break;
6260 case MD_NTSTATUS_WIN_STATUS_RDBSS_POST_OPERATION:
6261 reason = "STATUS_RDBSS_POST_OPERATION";
6262 break;
6263 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_INVALID_HANDLE:
6264 reason = "STATUS_BTH_ATT_INVALID_HANDLE";
6265 break;
6266 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_READ_NOT_PERMITTED:
6267 reason = "STATUS_BTH_ATT_READ_NOT_PERMITTED";
6268 break;
6269 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_WRITE_NOT_PERMITTED:
6270 reason = "STATUS_BTH_ATT_WRITE_NOT_PERMITTED";
6271 break;
6272 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_INVALID_PDU:
6273 reason = "STATUS_BTH_ATT_INVALID_PDU";
6274 break;
6275 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_INSUFFICIENT_AUTHENTICATION:
6276 reason = "STATUS_BTH_ATT_INSUFFICIENT_AUTHENTICATION";
6277 break;
6278 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_REQUEST_NOT_SUPPORTED:
6279 reason = "STATUS_BTH_ATT_REQUEST_NOT_SUPPORTED";
6280 break;
6281 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_INVALID_OFFSET:
6282 reason = "STATUS_BTH_ATT_INVALID_OFFSET";
6283 break;
6284 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_INSUFFICIENT_AUTHORIZATION:
6285 reason = "STATUS_BTH_ATT_INSUFFICIENT_AUTHORIZATION";
6286 break;
6287 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_PREPARE_QUEUE_FULL:
6288 reason = "STATUS_BTH_ATT_PREPARE_QUEUE_FULL";
6289 break;
6290 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_ATTRIBUTE_NOT_FOUND:
6291 reason = "STATUS_BTH_ATT_ATTRIBUTE_NOT_FOUND";
6292 break;
6293 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_ATTRIBUTE_NOT_LONG:
6294 reason = "STATUS_BTH_ATT_ATTRIBUTE_NOT_LONG";
6295 break;
6296 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE:
6297 reason = "STATUS_BTH_ATT_INSUFFICIENT_ENCRYPTION_KEY_SIZE";
6298 break;
6299 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH:
6300 reason = "STATUS_BTH_ATT_INVALID_ATTRIBUTE_VALUE_LENGTH";
6301 break;
6302 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_UNLIKELY:
6303 reason = "STATUS_BTH_ATT_UNLIKELY";
6304 break;
6305 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_INSUFFICIENT_ENCRYPTION:
6306 reason = "STATUS_BTH_ATT_INSUFFICIENT_ENCRYPTION";
6307 break;
6308 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_UNSUPPORTED_GROUP_TYPE:
6309 reason = "STATUS_BTH_ATT_UNSUPPORTED_GROUP_TYPE";
6310 break;
6311 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_INSUFFICIENT_RESOURCES:
6312 reason = "STATUS_BTH_ATT_INSUFFICIENT_RESOURCES";
6313 break;
6314 case MD_NTSTATUS_WIN_STATUS_BTH_ATT_UNKNOWN_ERROR:
6315 reason = "STATUS_BTH_ATT_UNKNOWN_ERROR";
6316 break;
6317 case MD_NTSTATUS_WIN_STATUS_SECUREBOOT_ROLLBACK_DETECTED:
6318 reason = "STATUS_SECUREBOOT_ROLLBACK_DETECTED";
6319 break;
6320 case MD_NTSTATUS_WIN_STATUS_SECUREBOOT_POLICY_VIOLATION:
6321 reason = "STATUS_SECUREBOOT_POLICY_VIOLATION";
6322 break;
6323 case MD_NTSTATUS_WIN_STATUS_SECUREBOOT_INVALID_POLICY:
6324 reason = "STATUS_SECUREBOOT_INVALID_POLICY";
6325 break;
6326 case MD_NTSTATUS_WIN_STATUS_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND:
6327 reason = "STATUS_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND";
6328 break;
6329 case MD_NTSTATUS_WIN_STATUS_SECUREBOOT_POLICY_NOT_SIGNED:
6330 reason = "STATUS_SECUREBOOT_POLICY_NOT_SIGNED";
6331 break;
6332 case MD_NTSTATUS_WIN_STATUS_SECUREBOOT_FILE_REPLACED:
6333 reason = "STATUS_SECUREBOOT_FILE_REPLACED";
6334 break;
6335 case MD_NTSTATUS_WIN_STATUS_AUDIO_ENGINE_NODE_NOT_FOUND:
6336 reason = "STATUS_AUDIO_ENGINE_NODE_NOT_FOUND";
6337 break;
6338 case MD_NTSTATUS_WIN_STATUS_HDAUDIO_EMPTY_CONNECTION_LIST:
6339 reason = "STATUS_HDAUDIO_EMPTY_CONNECTION_LIST";
6340 break;
6341 case MD_NTSTATUS_WIN_STATUS_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED:
6342 reason = "STATUS_HDAUDIO_CONNECTION_LIST_NOT_SUPPORTED";
6343 break;
6344 case MD_NTSTATUS_WIN_STATUS_HDAUDIO_NO_LOGICAL_DEVICES_CREATED:
6345 reason = "STATUS_HDAUDIO_NO_LOGICAL_DEVICES_CREATED";
6346 break;
6347 case MD_NTSTATUS_WIN_STATUS_HDAUDIO_NULL_LINKED_LIST_ENTRY:
6348 reason = "STATUS_HDAUDIO_NULL_LINKED_LIST_ENTRY";
6349 break;
6350 case MD_NTSTATUS_WIN_STATUS_VOLSNAP_BOOTFILE_NOT_VALID:
6351 reason = "STATUS_VOLSNAP_BOOTFILE_NOT_VALID";
6352 break;
6353 case MD_NTSTATUS_WIN_STATUS_IO_PREEMPTED:
6354 reason = "STATUS_IO_PREEMPTED";
6355 break;
6356 case MD_NTSTATUS_WIN_STATUS_SVHDX_ERROR_STORED:
6357 reason = "STATUS_SVHDX_ERROR_STORED";
6358 break;
6359 case MD_NTSTATUS_WIN_STATUS_SVHDX_ERROR_NOT_AVAILABLE:
6360 reason = "STATUS_SVHDX_ERROR_NOT_AVAILABLE";
6361 break;
6362 case MD_NTSTATUS_WIN_STATUS_SVHDX_UNIT_ATTENTION_AVAILABLE:
6363 reason = "STATUS_SVHDX_UNIT_ATTENTION_AVAILABLE";
6364 break;
6365 case MD_NTSTATUS_WIN_STATUS_SVHDX_UNIT_ATTENTION_CAPACITY_DATA_CHANGED:
6366 reason = "STATUS_SVHDX_UNIT_ATTENTION_CAPACITY_DATA_CHANGED";
6367 break;
6368 case MD_NTSTATUS_WIN_STATUS_SVHDX_UNIT_ATTENTION_RESERVATIONS_PREEMPTED:
6369 reason = "STATUS_SVHDX_UNIT_ATTENTION_RESERVATIONS_PREEMPTED";
6370 break;
6371 case MD_NTSTATUS_WIN_STATUS_SVHDX_UNIT_ATTENTION_RESERVATIONS_RELEASED:
6372 reason = "STATUS_SVHDX_UNIT_ATTENTION_RESERVATIONS_RELEASED";
6373 break;
6374 case MD_NTSTATUS_WIN_STATUS_SVHDX_UNIT_ATTENTION_REGISTRATIONS_PREEMPTED:
6375 reason = "STATUS_SVHDX_UNIT_ATTENTION_REGISTRATIONS_PREEMPTED";
6376 break;
6377 case MD_NTSTATUS_WIN_STATUS_SVHDX_UNIT_ATTENTION_OPERATING_DEFINITION_CHANGED:
6378 reason = "STATUS_SVHDX_UNIT_ATTENTION_OPERATING_DEFINITION_CHANGED";
6379 break;
6380 case MD_NTSTATUS_WIN_STATUS_SVHDX_RESERVATION_CONFLICT:
6381 reason = "STATUS_SVHDX_RESERVATION_CONFLICT";
6382 break;
6383 case MD_NTSTATUS_WIN_STATUS_SVHDX_WRONG_FILE_TYPE:
6384 reason = "STATUS_SVHDX_WRONG_FILE_TYPE";
6385 break;
6386 case MD_NTSTATUS_WIN_STATUS_SVHDX_VERSION_MISMATCH:
6387 reason = "STATUS_SVHDX_VERSION_MISMATCH";
6388 break;
6389 case MD_NTSTATUS_WIN_STATUS_VHD_SHARED:
6390 reason = "STATUS_VHD_SHARED";
6391 break;
6392 case MD_NTSTATUS_WIN_STATUS_SPACES_RESILIENCY_TYPE_INVALID:
6393 reason = "STATUS_SPACES_RESILIENCY_TYPE_INVALID";
6394 break;
6395 case MD_NTSTATUS_WIN_STATUS_SPACES_DRIVE_SECTOR_SIZE_INVALID:
6396 reason = "STATUS_SPACES_DRIVE_SECTOR_SIZE_INVALID";
6397 break;
6398 case MD_NTSTATUS_WIN_STATUS_SPACES_INTERLEAVE_LENGTH_INVALID:
6399 reason = "STATUS_SPACES_INTERLEAVE_LENGTH_INVALID";
6400 break;
6401 case MD_NTSTATUS_WIN_STATUS_SPACES_NUMBER_OF_COLUMNS_INVALID:
6402 reason = "STATUS_SPACES_NUMBER_OF_COLUMNS_INVALID";
6403 break;
6404 case MD_NTSTATUS_WIN_STATUS_SPACES_NOT_ENOUGH_DRIVES:
6405 reason = "STATUS_SPACES_NOT_ENOUGH_DRIVES";
6406 break;
6407 default: {
6408 char reason_string[11];
6409 snprintf(reason_string, sizeof(reason_string), "0x%08x", ntstatus);
6410 reason = reason_string;
6411 break;
6412 }
6413 }
6414 return reason;
6415 }
6416
6417 } // namespace google_breakpad
6418