-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathsmb_types.c
2145 lines (1632 loc) · 47.2 KB
/
smb_types.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* smb_types.c
* By Ron Bowes
* Created September 1, 2008
*
* (See LICENSE.txt)
*/
#include <stdio.h>
#include "smb_types.h"
void smb_print_capabilities(SMB_CAPABILITIES_t capabilities)
{
if(capabilities & CAP_EXTENDED_SECURITY)
printf("<extended security>");
if(capabilities & CAP_COMPRESSED_DATA)
printf("<compressed data>");
if(capabilities & CAP_BULK_TRANSFER)
printf("<bulk transfer>");
if(capabilities & CAP_UNIX)
printf("<unix>");
if(capabilities & CAP_LARGE_WRITEX)
printf("<large writex>");
if(capabilities & CAP_LARGE_READX)
printf("<large readx>");
if(capabilities & CAP_INFOLEVEL_PASSTHROUGH)
printf("<infolevel passthrough>");
if(capabilities & CAP_DFS)
printf("<dfs>");
if(capabilities & CAP_NT_FIND)
printf("<nt find>");
if(capabilities & CAP_LOCK_AND_READ)
printf("<lock and read>");
if(capabilities & CAP_LEVEL_II_OPLOCKS)
printf("<level ii oplocks>");
if(capabilities & CAP_STATUS32)
printf("<nt errors>");
if(capabilities & CAP_RPC_REMOTE_APIS)
printf("<rpc remote apis>");
if(capabilities & CAP_NT_SMBS)
printf("<nt smbs>");
if(capabilities & CAP_LARGE_FILES)
printf("<large files>");
if(capabilities & CAP_UNICODE)
printf("<unicode>");
if(capabilities & CAP_MPX_MODE)
printf("<mpx mode>");
if(capabilities & CAP_RAW_MODE)
printf("<raw mode>");
}
void smb_print_flags(SMB_FLAGS_t flags)
{
if(flags & SMB_FLAGS_SERVER_TO_REDIR)
printf("<response>");
else
printf("<request>");
if(flags & SMB_FLAGS_REQUEST_BATCH_OPLOCK)
printf("<batch oplock>");
if(flags & SMB_FLAGS_REQUEST_OPLOCK)
printf("<request oplock>");
if(flags & SMB_FLAGS_CANONICAL_PATHNAMES)
printf("<canonical paths>");
if(flags & SMB_FLAGS_CASELESS_PATHNAMES)
printf("<caseless paths>");
if(flags & SMB_FLAGS_RESERVED)
printf("<reserved>");
if(flags & SMB_FLAGS_CLIENT_BUF_AVAIL)
printf("<client_buf avail>");
if(flags & SMB_FLAGS_SUPPORT_LOCKREAD)
printf("<lockread>");
}
void smb_print_flags2(SMB_FLAGS2_t flags2)
{
if(flags2 & SMB_FLAGS2_UNICODE_STRINGS)
printf("<unicode>");
if(flags2 & SMB_FLAGS2_32BIT_STATUS)
printf("<NT errors>");
if(flags2 & SMB_FLAGS2_READ_IF_EXECUTE)
printf("<read if execute>");
if(flags2 & SMB_FLAGS2_DFS_PATHNAME)
printf("<dfs>");
if(flags2 & SMB_FLAGS2_EXTENDED_SECURITY)
printf("<extended security>");
if(flags2 & SMB_FLAGS2_RESERVED1)
printf("<reserved1>");
if(flags2 & SMB_FLAGS2_RESERVED2)
printf("<reserved2>");
if(flags2 & SMB_FLAGS2_RESERVED3)
printf("<reserved3>");
if(flags2 & SMB_FLAGS2_RESERVED4)
printf("<reserved4>");
if(flags2 & SMB_FLAGS2_IS_LONG_NAME)
printf("<is long name>");
if(flags2 & SMB_FLAGS2_RESERVED5)
printf("<reserved5>");
if(flags2 & SMB_FLAGS2_RESERVED6)
printf("<reserved6>");
if(flags2 & SMB_FLAGS2_RESERVED7)
printf("<reserved7>");
if(flags2 & SMB_FLAGS2_SECURITY_SIGNATURE)
printf("<signatures>");
if(flags2 & SMB_FLAGS2_EAS)
printf("<extended attributes>");
if(flags2 & SMB_FLAGS2_KNOWS_LONG_NAMES)
printf("<knows long names>");
}
char *smb_get_error_nt(SMB_t *smb)
{
switch(smb->header.status)
{
case NT_STATUS_OK:
return "NT_STATUS_OK";
break;
case NT_STATUS_BUFFER_OVERFLOW:
return "NT_STATUS_BUFFER_OVERFLOW";
break;
case NT_STATUS_UNSUCCESSFUL:
return "NT_STATUS_UNSUCCESSFUL";
break;
case NT_STATUS_NOT_IMPLEMENTED:
return "NT_STATUS_NOT_IMPLEMENTED";
break;
case NT_STATUS_INVALID_INFO_CLASS:
return "NT_STATUS_INVALID_INFO_CLASS";
break;
case NT_STATUS_INFO_LENGTH_MISMATCH:
return "NT_STATUS_INFO_LENGTH_MISMATCH";
break;
case NT_STATUS_ACCESS_VIOLATION:
return "NT_STATUS_ACCESS_VIOLATION";
break;
case NT_STATUS_IN_PAGE_ERROR:
return "NT_STATUS_IN_PAGE_ERROR";
break;
case NT_STATUS_PAGEFILE_QUOTA:
return "NT_STATUS_PAGEFILE_QUOTA";
break;
case NT_STATUS_INVALID_HANDLE:
return "NT_STATUS_INVALID_HANDLE";
break;
case NT_STATUS_BAD_INITIAL_STACK:
return "NT_STATUS_BAD_INITIAL_STACK";
break;
case NT_STATUS_BAD_INITIAL_PC:
return "NT_STATUS_BAD_INITIAL_PC";
break;
case NT_STATUS_INVALID_CID:
return "NT_STATUS_INVALID_CID";
break;
case NT_STATUS_TIMER_NOT_CANCELED:
return "NT_STATUS_TIMER_NOT_CANCELED";
break;
case NT_STATUS_INVALID_PARAMETER:
return "NT_STATUS_INVALID_PARAMETER";
break;
case NT_STATUS_NO_SUCH_DEVICE:
return "NT_STATUS_NO_SUCH_DEVICE";
break;
case NT_STATUS_NO_SUCH_FILE:
return "NT_STATUS_NO_SUCH_FILE";
break;
case NT_STATUS_INVALID_DEVICE_REQUEST:
return "NT_STATUS_INVALID_DEVICE_REQUEST";
break;
case NT_STATUS_END_OF_FILE:
return "NT_STATUS_END_OF_FILE";
break;
case NT_STATUS_WRONG_VOLUME:
return "NT_STATUS_WRONG_VOLUME";
break;
case NT_STATUS_NO_MEDIA_IN_DEVICE:
return "NT_STATUS_NO_MEDIA_IN_DEVICE";
break;
case NT_STATUS_UNRECOGNIZED_MEDIA:
return "NT_STATUS_UNRECOGNIZED_MEDIA";
break;
case NT_STATUS_NONEXISTENT_SECTOR:
return "NT_STATUS_NONEXISTENT_SECTOR";
break;
case NT_STATUS_MORE_PROCESSING_REQUIRED:
return "NT_STATUS_MORE_PROCESSING_REQUIRED";
break;
case NT_STATUS_NO_MEMORY:
return "NT_STATUS_NO_MEMORY";
break;
case NT_STATUS_CONFLICTING_ADDRESSES:
return "NT_STATUS_CONFLICTING_ADDRESSES";
break;
case NT_STATUS_NOT_MAPPED_VIEW:
return "NT_STATUS_NOT_MAPPED_VIEW";
break;
case NT_STATUS_UNABLE_TO_FREE_VM:
return "NT_STATUS_UNABLE_TO_FREE_VM";
break;
case NT_STATUS_UNABLE_TO_DELETE_SECTION:
return "NT_STATUS_UNABLE_TO_DELETE_SECTION";
break;
case NT_STATUS_INVALID_SYSTEM_SERVICE:
return "NT_STATUS_INVALID_SYSTEM_SERVICE";
break;
case NT_STATUS_ILLEGAL_INSTRUCTION:
return "NT_STATUS_ILLEGAL_INSTRUCTION";
break;
case NT_STATUS_INVALID_LOCK_SEQUENCE:
return "NT_STATUS_INVALID_LOCK_SEQUENCE";
break;
case NT_STATUS_INVALID_VIEW_SIZE:
return "NT_STATUS_INVALID_VIEW_SIZE";
break;
case NT_STATUS_INVALID_FILE_FOR_SECTION:
return "NT_STATUS_INVALID_FILE_FOR_SECTION";
break;
case NT_STATUS_ALREADY_COMMITTED:
return "NT_STATUS_ALREADY_COMMITTED";
break;
case NT_STATUS_ACCESS_DENIED:
return "NT_STATUS_ACCESS_DENIED";
break;
case NT_STATUS_BUFFER_TOO_SMALL:
return "NT_STATUS_BUFFER_TOO_SMALL";
break;
case NT_STATUS_OBJECT_TYPE_MISMATCH:
return "NT_STATUS_OBJECT_TYPE_MISMATCH";
break;
case NT_STATUS_NONCONTINUABLE_EXCEPTION:
return "NT_STATUS_NONCONTINUABLE_EXCEPTION";
break;
case NT_STATUS_INVALID_DISPOSITION:
return "NT_STATUS_INVALID_DISPOSITION";
break;
case NT_STATUS_UNWIND:
return "NT_STATUS_UNWIND";
break;
case NT_STATUS_BAD_STACK:
return "NT_STATUS_BAD_STACK";
break;
case NT_STATUS_INVALID_UNWIND_TARGET:
return "NT_STATUS_INVALID_UNWIND_TARGET";
break;
case NT_STATUS_NOT_LOCKED:
return "NT_STATUS_NOT_LOCKED";
break;
case NT_STATUS_PARITY_ERROR:
return "NT_STATUS_PARITY_ERROR";
break;
case NT_STATUS_UNABLE_TO_DECOMMIT_VM:
return "NT_STATUS_UNABLE_TO_DECOMMIT_VM";
break;
case NT_STATUS_NOT_COMMITTED:
return "NT_STATUS_NOT_COMMITTED";
break;
case NT_STATUS_INVALID_PORT_ATTRIBUTES:
return "NT_STATUS_INVALID_PORT_ATTRIBUTES";
break;
case NT_STATUS_PORT_MESSAGE_TOO_LONG:
return "NT_STATUS_PORT_MESSAGE_TOO_LONG";
break;
case NT_STATUS_INVALID_PARAMETER_MIX:
return "NT_STATUS_INVALID_PARAMETER_MIX";
break;
case NT_STATUS_INVALID_QUOTA_LOWER:
return "NT_STATUS_INVALID_QUOTA_LOWER";
break;
case NT_STATUS_DISK_CORRUPT_ERROR:
return "NT_STATUS_DISK_CORRUPT_ERROR";
break;
case NT_STATUS_OBJECT_NAME_INVALID:
return "NT_STATUS_OBJECT_NAME_INVALID";
break;
case NT_STATUS_OBJECT_NAME_NOT_FOUND:
return "NT_STATUS_OBJECT_NAME_NOT_FOUND";
break;
case NT_STATUS_OBJECT_NAME_COLLISION:
return "NT_STATUS_OBJECT_NAME_COLLISION";
break;
case NT_STATUS_HANDLE_NOT_WAITABLE:
return "NT_STATUS_HANDLE_NOT_WAITABLE";
break;
case NT_STATUS_PORT_DISCONNECTED:
return "NT_STATUS_PORT_DISCONNECTED";
break;
case NT_STATUS_DEVICE_ALREADY_ATTACHED:
return "NT_STATUS_DEVICE_ALREADY_ATTACHED";
break;
case NT_STATUS_OBJECT_PATH_INVALID:
return "NT_STATUS_OBJECT_PATH_INVALID";
break;
case NT_STATUS_OBJECT_PATH_NOT_FOUND:
return "NT_STATUS_OBJECT_PATH_NOT_FOUND";
break;
case NT_STATUS_OBJECT_PATH_SYNTAX_BAD:
return "NT_STATUS_OBJECT_PATH_SYNTAX_BAD";
break;
case NT_STATUS_DATA_OVERRUN:
return "NT_STATUS_DATA_OVERRUN";
break;
case NT_STATUS_DATA_LATE_ERROR:
return "NT_STATUS_DATA_LATE_ERROR";
break;
case NT_STATUS_DATA_ERROR:
return "NT_STATUS_DATA_ERROR";
break;
case NT_STATUS_CRC_ERROR:
return "NT_STATUS_CRC_ERROR";
break;
case NT_STATUS_SECTION_TOO_BIG:
return "NT_STATUS_SECTION_TOO_BIG";
break;
case NT_STATUS_PORT_CONNECTION_REFUSED:
return "NT_STATUS_PORT_CONNECTION_REFUSED";
break;
case NT_STATUS_INVALID_PORT_HANDLE:
return "NT_STATUS_INVALID_PORT_HANDLE";
break;
case NT_STATUS_SHARING_VIOLATION:
return "NT_STATUS_SHARING_VIOLATION";
break;
case NT_STATUS_QUOTA_EXCEEDED:
return "NT_STATUS_QUOTA_EXCEEDED";
break;
case NT_STATUS_INVALID_PAGE_PROTECTION:
return "NT_STATUS_INVALID_PAGE_PROTECTION";
break;
case NT_STATUS_MUTANT_NOT_OWNED:
return "NT_STATUS_MUTANT_NOT_OWNED";
break;
case NT_STATUS_SEMAPHORE_LIMIT_EXCEEDED:
return "NT_STATUS_SEMAPHORE_LIMIT_EXCEEDED";
break;
case NT_STATUS_PORT_ALREADY_SET:
return "NT_STATUS_PORT_ALREADY_SET";
break;
case NT_STATUS_SECTION_NOT_IMAGE:
return "NT_STATUS_SECTION_NOT_IMAGE";
break;
case NT_STATUS_SUSPEND_COUNT_EXCEEDED:
return "NT_STATUS_SUSPEND_COUNT_EXCEEDED";
break;
case NT_STATUS_THREAD_IS_TERMINATING:
return "NT_STATUS_THREAD_IS_TERMINATING";
break;
case NT_STATUS_BAD_WORKING_SET_LIMIT:
return "NT_STATUS_BAD_WORKING_SET_LIMIT";
break;
case NT_STATUS_INCOMPATIBLE_FILE_MAP:
return "NT_STATUS_INCOMPATIBLE_FILE_MAP";
break;
case NT_STATUS_SECTION_PROTECTION:
return "NT_STATUS_SECTION_PROTECTION";
break;
case NT_STATUS_EAS_NOT_SUPPORTED:
return "NT_STATUS_EAS_NOT_SUPPORTED";
break;
case NT_STATUS_EA_TOO_LARGE:
return "NT_STATUS_EA_TOO_LARGE";
break;
case NT_STATUS_NONEXISTENT_EA_ENTRY:
return "NT_STATUS_NONEXISTENT_EA_ENTRY";
break;
case NT_STATUS_NO_EAS_ON_FILE:
return "NT_STATUS_NO_EAS_ON_FILE";
break;
case NT_STATUS_EA_CORRUPT_ERROR:
return "NT_STATUS_EA_CORRUPT_ERROR";
break;
case NT_STATUS_FILE_LOCK_CONFLICT:
return "NT_STATUS_FILE_LOCK_CONFLICT";
break;
case NT_STATUS_LOCK_NOT_GRANTED:
return "NT_STATUS_LOCK_NOT_GRANTED";
break;
case NT_STATUS_DELETE_PENDING:
return "NT_STATUS_DELETE_PENDING";
break;
case NT_STATUS_CTL_FILE_NOT_SUPPORTED:
return "NT_STATUS_CTL_FILE_NOT_SUPPORTED";
break;
case NT_STATUS_UNKNOWN_REVISION:
return "NT_STATUS_UNKNOWN_REVISION";
break;
case NT_STATUS_REVISION_MISMATCH:
return "NT_STATUS_REVISION_MISMATCH";
break;
case NT_STATUS_INVALID_OWNER:
return "NT_STATUS_INVALID_OWNER";
break;
case NT_STATUS_INVALID_PRIMARY_GROUP:
return "NT_STATUS_INVALID_PRIMARY_GROUP";
break;
case NT_STATUS_NO_IMPERSONATION_TOKEN:
return "NT_STATUS_NO_IMPERSONATION_TOKEN";
break;
case NT_STATUS_CANT_DISABLE_MANDATORY:
return "NT_STATUS_CANT_DISABLE_MANDATORY";
break;
case NT_STATUS_NO_LOGON_SERVERS:
return "NT_STATUS_NO_LOGON_SERVERS";
break;
case NT_STATUS_NO_SUCH_LOGON_SESSION:
return "NT_STATUS_NO_SUCH_LOGON_SESSION";
break;
case NT_STATUS_NO_SUCH_PRIVILEGE:
return "NT_STATUS_NO_SUCH_PRIVILEGE";
break;
case NT_STATUS_PRIVILEGE_NOT_HELD:
return "NT_STATUS_PRIVILEGE_NOT_HELD";
break;
case NT_STATUS_INVALID_ACCOUNT_NAME:
return "NT_STATUS_INVALID_ACCOUNT_NAME";
break;
case NT_STATUS_USER_EXISTS:
return "NT_STATUS_USER_EXISTS";
break;
case NT_STATUS_NO_SUCH_USER:
return "NT_STATUS_NO_SUCH_USER";
break;
case NT_STATUS_GROUP_EXISTS:
return "NT_STATUS_GROUP_EXISTS";
break;
case NT_STATUS_NO_SUCH_GROUP:
return "NT_STATUS_NO_SUCH_GROUP";
break;
case NT_STATUS_MEMBER_IN_GROUP:
return "NT_STATUS_MEMBER_IN_GROUP";
break;
case NT_STATUS_MEMBER_NOT_IN_GROUP:
return "NT_STATUS_MEMBER_NOT_IN_GROUP";
break;
case NT_STATUS_LAST_ADMIN:
return "NT_STATUS_LAST_ADMIN";
break;
case NT_STATUS_WRONG_PASSWORD:
return "NT_STATUS_WRONG_PASSWORD";
break;
case NT_STATUS_ILL_FORMED_PASSWORD:
return "NT_STATUS_ILL_FORMED_PASSWORD";
break;
case NT_STATUS_PASSWORD_RESTRICTION:
return "NT_STATUS_PASSWORD_RESTRICTION";
break;
case NT_STATUS_LOGON_FAILURE:
return "NT_STATUS_LOGON_FAILURE";
break;
case NT_STATUS_ACCOUNT_RESTRICTION:
return "NT_STATUS_ACCOUNT_RESTRICTION";
break;
case NT_STATUS_INVALID_LOGON_HOURS:
return "NT_STATUS_INVALID_LOGON_HOURS";
break;
case NT_STATUS_INVALID_WORKSTATION:
return "NT_STATUS_INVALID_WORKSTATION";
break;
case NT_STATUS_PASSWORD_EXPIRED:
return "NT_STATUS_PASSWORD_EXPIRED";
break;
case NT_STATUS_ACCOUNT_DISABLED:
return "NT_STATUS_ACCOUNT_DISABLED";
break;
case NT_STATUS_NONE_MAPPED:
return "NT_STATUS_NONE_MAPPED";
break;
case NT_STATUS_TOO_MANY_LUIDS_REQUESTED:
return "NT_STATUS_TOO_MANY_LUIDS_REQUESTED";
break;
case NT_STATUS_LUIDS_EXHAUSTED:
return "NT_STATUS_LUIDS_EXHAUSTED";
break;
case NT_STATUS_INVALID_SUB_AUTHORITY:
return "NT_STATUS_INVALID_SUB_AUTHORITY";
break;
case NT_STATUS_INVALID_ACL:
return "NT_STATUS_INVALID_ACL";
break;
case NT_STATUS_INVALID_SID:
return "NT_STATUS_INVALID_SID";
break;
case NT_STATUS_INVALID_SECURITY_DESCR:
return "NT_STATUS_INVALID_SECURITY_DESCR";
break;
case NT_STATUS_PROCEDURE_NOT_FOUND:
return "NT_STATUS_PROCEDURE_NOT_FOUND";
break;
case NT_STATUS_INVALID_IMAGE_FORMAT:
return "NT_STATUS_INVALID_IMAGE_FORMAT";
break;
case NT_STATUS_NO_TOKEN:
return "NT_STATUS_NO_TOKEN";
break;
case NT_STATUS_BAD_INHERITANCE_ACL:
return "NT_STATUS_BAD_INHERITANCE_ACL";
break;
case NT_STATUS_RANGE_NOT_LOCKED:
return "NT_STATUS_RANGE_NOT_LOCKED";
break;
case NT_STATUS_DISK_FULL:
return "NT_STATUS_DISK_FULL";
break;
case NT_STATUS_SERVER_DISABLED:
return "NT_STATUS_SERVER_DISABLED";
break;
case NT_STATUS_SERVER_NOT_DISABLED:
return "NT_STATUS_SERVER_NOT_DISABLED";
break;
case NT_STATUS_TOO_MANY_GUIDS_REQUESTED:
return "NT_STATUS_TOO_MANY_GUIDS_REQUESTED";
break;
case NT_STATUS_GUIDS_EXHAUSTED:
return "NT_STATUS_GUIDS_EXHAUSTED";
break;
case NT_STATUS_INVALID_ID_AUTHORITY:
return "NT_STATUS_INVALID_ID_AUTHORITY";
break;
case NT_STATUS_AGENTS_EXHAUSTED:
return "NT_STATUS_AGENTS_EXHAUSTED";
break;
case NT_STATUS_INVALID_VOLUME_LABEL:
return "NT_STATUS_INVALID_VOLUME_LABEL";
break;
case NT_STATUS_SECTION_NOT_EXTENDED:
return "NT_STATUS_SECTION_NOT_EXTENDED";
break;
case NT_STATUS_NOT_MAPPED_DATA:
return "NT_STATUS_NOT_MAPPED_DATA";
break;
case NT_STATUS_RESOURCE_DATA_NOT_FOUND:
return "NT_STATUS_RESOURCE_DATA_NOT_FOUND";
break;
case NT_STATUS_RESOURCE_TYPE_NOT_FOUND:
return "NT_STATUS_RESOURCE_TYPE_NOT_FOUND";
break;
case NT_STATUS_RESOURCE_NAME_NOT_FOUND:
return "NT_STATUS_RESOURCE_NAME_NOT_FOUND";
break;
case NT_STATUS_ARRAY_BOUNDS_EXCEEDED:
return "NT_STATUS_ARRAY_BOUNDS_EXCEEDED";
break;
case NT_STATUS_FLOAT_DENORMAL_OPERAND:
return "NT_STATUS_FLOAT_DENORMAL_OPERAND";
break;
case NT_STATUS_FLOAT_DIVIDE_BY_ZERO:
return "NT_STATUS_FLOAT_DIVIDE_BY_ZERO";
break;
case NT_STATUS_FLOAT_INEXACT_RESULT:
return "NT_STATUS_FLOAT_INEXACT_RESULT";
break;
case NT_STATUS_FLOAT_INVALID_OPERATION:
return "NT_STATUS_FLOAT_INVALID_OPERATION";
break;
case NT_STATUS_FLOAT_OVERFLOW:
return "NT_STATUS_FLOAT_OVERFLOW";
break;
case NT_STATUS_FLOAT_STACK_CHECK:
return "NT_STATUS_FLOAT_STACK_CHECK";
break;
case NT_STATUS_FLOAT_UNDERFLOW:
return "NT_STATUS_FLOAT_UNDERFLOW";
break;
case NT_STATUS_INTEGER_DIVIDE_BY_ZERO:
return "NT_STATUS_INTEGER_DIVIDE_BY_ZERO";
break;
case NT_STATUS_INTEGER_OVERFLOW:
return "NT_STATUS_INTEGER_OVERFLOW";
break;
case NT_STATUS_PRIVILEGED_INSTRUCTION:
return "NT_STATUS_PRIVILEGED_INSTRUCTION";
break;
case NT_STATUS_TOO_MANY_PAGING_FILES:
return "NT_STATUS_TOO_MANY_PAGING_FILES";
break;
case NT_STATUS_FILE_INVALID:
return "NT_STATUS_FILE_INVALID";
break;
case NT_STATUS_ALLOTTED_SPACE_EXCEEDED:
return "NT_STATUS_ALLOTTED_SPACE_EXCEEDED";
break;
case NT_STATUS_INSUFFICIENT_RESOURCES:
return "NT_STATUS_INSUFFICIENT_RESOURCES";
break;
case NT_STATUS_DFS_EXIT_PATH_FOUND:
return "NT_STATUS_DFS_EXIT_PATH_FOUND";
break;
case NT_STATUS_DEVICE_DATA_ERROR:
return "NT_STATUS_DEVICE_DATA_ERROR";
break;
case NT_STATUS_DEVICE_NOT_CONNECTED:
return "NT_STATUS_DEVICE_NOT_CONNECTED";
break;
case NT_STATUS_DEVICE_POWER_FAILURE:
return "NT_STATUS_DEVICE_POWER_FAILURE";
break;
case NT_STATUS_FREE_VM_NOT_AT_BASE:
return "NT_STATUS_FREE_VM_NOT_AT_BASE";
break;
case NT_STATUS_MEMORY_NOT_ALLOCATED:
return "NT_STATUS_MEMORY_NOT_ALLOCATED";
break;
case NT_STATUS_WORKING_SET_QUOTA:
return "NT_STATUS_WORKING_SET_QUOTA";
break;
case NT_STATUS_MEDIA_WRITE_PROTECTED:
return "NT_STATUS_MEDIA_WRITE_PROTECTED";
break;
case NT_STATUS_DEVICE_NOT_READY:
return "NT_STATUS_DEVICE_NOT_READY";
break;
case NT_STATUS_INVALID_GROUP_ATTRIBUTES:
return "NT_STATUS_INVALID_GROUP_ATTRIBUTES";
break;
case NT_STATUS_BAD_IMPERSONATION_LEVEL:
return "NT_STATUS_BAD_IMPERSONATION_LEVEL";
break;
case NT_STATUS_CANT_OPEN_ANONYMOUS:
return "NT_STATUS_CANT_OPEN_ANONYMOUS";
break;
case NT_STATUS_BAD_VALIDATION_CLASS:
return "NT_STATUS_BAD_VALIDATION_CLASS";
break;
case NT_STATUS_BAD_TOKEN_TYPE:
return "NT_STATUS_BAD_TOKEN_TYPE";
break;
case NT_STATUS_BAD_MASTER_BOOT_RECORD:
return "NT_STATUS_BAD_MASTER_BOOT_RECORD";
break;
case NT_STATUS_INSTRUCTION_MISALIGNMENT:
return "NT_STATUS_INSTRUCTION_MISALIGNMENT";
break;
case NT_STATUS_INSTANCE_NOT_AVAILABLE:
return "NT_STATUS_INSTANCE_NOT_AVAILABLE";
break;
case NT_STATUS_PIPE_NOT_AVAILABLE:
return "NT_STATUS_PIPE_NOT_AVAILABLE";
break;
case NT_STATUS_INVALID_PIPE_STATE:
return "NT_STATUS_INVALID_PIPE_STATE";
break;
case NT_STATUS_PIPE_BUSY:
return "NT_STATUS_PIPE_BUSY";
break;
case NT_STATUS_ILLEGAL_FUNCTION:
return "NT_STATUS_ILLEGAL_FUNCTION";
break;
case NT_STATUS_PIPE_DISCONNECTED:
return "NT_STATUS_PIPE_DISCONNECTED";
break;
case NT_STATUS_PIPE_CLOSING:
return "NT_STATUS_PIPE_CLOSING";
break;
case NT_STATUS_PIPE_CONNECTED:
return "NT_STATUS_PIPE_CONNECTED";
break;
case NT_STATUS_PIPE_LISTENING:
return "NT_STATUS_PIPE_LISTENING";
break;
case NT_STATUS_INVALID_READ_MODE:
return "NT_STATUS_INVALID_READ_MODE";
break;
case NT_STATUS_IO_TIMEOUT:
return "NT_STATUS_IO_TIMEOUT";
break;
case NT_STATUS_FILE_FORCED_CLOSED:
return "NT_STATUS_FILE_FORCED_CLOSED";
break;
case NT_STATUS_PROFILING_NOT_STARTED:
return "NT_STATUS_PROFILING_NOT_STARTED";
break;
case NT_STATUS_PROFILING_NOT_STOPPED:
return "NT_STATUS_PROFILING_NOT_STOPPED";
break;
case NT_STATUS_COULD_NOT_INTERPRET:
return "NT_STATUS_COULD_NOT_INTERPRET";
break;
case NT_STATUS_FILE_IS_A_DIRECTORY:
return "NT_STATUS_FILE_IS_A_DIRECTORY";
break;
case NT_STATUS_NOT_SUPPORTED:
return "NT_STATUS_NOT_SUPPORTED";
break;
case NT_STATUS_REMOTE_NOT_LISTENING:
return "NT_STATUS_REMOTE_NOT_LISTENING";
break;
case NT_STATUS_DUPLICATE_NAME:
return "NT_STATUS_DUPLICATE_NAME";
break;
case NT_STATUS_BAD_NETWORK_PATH:
return "NT_STATUS_BAD_NETWORK_PATH";
break;
case NT_STATUS_NETWORK_BUSY:
return "NT_STATUS_NETWORK_BUSY";
break;
case NT_STATUS_DEVICE_DOES_NOT_EXIST:
return "NT_STATUS_DEVICE_DOES_NOT_EXIST";
break;
case NT_STATUS_TOO_MANY_COMMANDS:
return "NT_STATUS_TOO_MANY_COMMANDS";
break;
case NT_STATUS_ADAPTER_HARDWARE_ERROR:
return "NT_STATUS_ADAPTER_HARDWARE_ERROR";
break;
case NT_STATUS_INVALID_NETWORK_RESPONSE:
return "NT_STATUS_INVALID_NETWORK_RESPONSE";
break;
case NT_STATUS_UNEXPECTED_NETWORK_ERROR:
return "NT_STATUS_UNEXPECTED_NETWORK_ERROR";
break;
case NT_STATUS_BAD_REMOTE_ADAPTER:
return "NT_STATUS_BAD_REMOTE_ADAPTER";
break;
case NT_STATUS_PRINT_QUEUE_FULL:
return "NT_STATUS_PRINT_QUEUE_FULL";
break;
case NT_STATUS_NO_SPOOL_SPACE:
return "NT_STATUS_NO_SPOOL_SPACE";
break;
case NT_STATUS_PRINT_CANCELLED:
return "NT_STATUS_PRINT_CANCELLED";
break;
case NT_STATUS_NETWORK_NAME_DELETED:
return "NT_STATUS_NETWORK_NAME_DELETED";
break;
case NT_STATUS_NETWORK_ACCESS_DENIED:
return "NT_STATUS_NETWORK_ACCESS_DENIED";
break;
case NT_STATUS_BAD_DEVICE_TYPE:
return "NT_STATUS_BAD_DEVICE_TYPE";
break;
case NT_STATUS_BAD_NETWORK_NAME:
return "NT_STATUS_BAD_NETWORK_NAME";
break;
case NT_STATUS_TOO_MANY_NAMES:
return "NT_STATUS_TOO_MANY_NAMES";
break;
case NT_STATUS_TOO_MANY_SESSIONS:
return "NT_STATUS_TOO_MANY_SESSIONS";
break;
case NT_STATUS_SHARING_PAUSED:
return "NT_STATUS_SHARING_PAUSED";
break;
case NT_STATUS_REQUEST_NOT_ACCEPTED:
return "NT_STATUS_REQUEST_NOT_ACCEPTED";
break;
case NT_STATUS_REDIRECTOR_PAUSED:
return "NT_STATUS_REDIRECTOR_PAUSED";
break;
case NT_STATUS_NET_WRITE_FAULT:
return "NT_STATUS_NET_WRITE_FAULT";
break;
case NT_STATUS_PROFILING_AT_LIMIT:
return "NT_STATUS_PROFILING_AT_LIMIT";
break;
case NT_STATUS_NOT_SAME_DEVICE:
return "NT_STATUS_NOT_SAME_DEVICE";
break;
case NT_STATUS_FILE_RENAMED:
return "NT_STATUS_FILE_RENAMED";
break;
case NT_STATUS_VIRTUAL_CIRCUIT_CLOSED:
return "NT_STATUS_VIRTUAL_CIRCUIT_CLOSED";
break;
case NT_STATUS_NO_SECURITY_ON_OBJECT:
return "NT_STATUS_NO_SECURITY_ON_OBJECT";
break;
case NT_STATUS_CANT_WAIT:
return "NT_STATUS_CANT_WAIT";
break;
case NT_STATUS_PIPE_EMPTY:
return "NT_STATUS_PIPE_EMPTY";
break;
case NT_STATUS_CANT_ACCESS_DOMAIN_INFO:
return "NT_STATUS_CANT_ACCESS_DOMAIN_INFO";
break;
case NT_STATUS_CANT_TERMINATE_SELF:
return "NT_STATUS_CANT_TERMINATE_SELF";
break;
case NT_STATUS_INVALID_SERVER_STATE:
return "NT_STATUS_INVALID_SERVER_STATE";
break;