-
Notifications
You must be signed in to change notification settings - Fork 1
/
Error.cs
12054 lines (12046 loc) · 550 KB
/
Error.cs
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
using System;
using System.Reflection;
using System.Runtime.InteropServices;
namespace Projzo.Interop
{
public class ResultWin32
{
public static string GetErrorName(int result)
{
FieldInfo[] fields = typeof(ResultWin32).GetFields();
foreach (FieldInfo fi in fields)
if ((int)fi.GetValue(null) == result)
return fi.Name;
return String.Empty;
}
/// <summary>
/// The operation completed successfully.
/// </summary>
public const int ERROR_SUCCESS = 0;
/// <summary>
/// Incorrect function.
/// </summary>
public const int ERROR_INVALID_FUNCTION = 1;
/// <summary>
/// The system cannot find the file specified.
/// </summary>
public const int ERROR_FILE_NOT_FOUND = 2;
/// <summary>
/// The system cannot find the path specified.
/// </summary>
public const int ERROR_PATH_NOT_FOUND = 3;
/// <summary>
/// The system cannot open the file.
/// </summary>
public const int ERROR_TOO_MANY_OPEN_FILES = 4;
/// <summary>
/// Access is denied.
/// </summary>
public const int ERROR_ACCESS_DENIED = 5;
/// <summary>
/// The handle is invalid.
/// </summary>
public const int ERROR_INVALID_HANDLE = 6;
/// <summary>
/// The storage control blocks were destroyed.
/// </summary>
public const int ERROR_ARENA_TRASHED = 7;
/// <summary>
/// Not enough storage is available to process this command.
/// </summary>
public const int ERROR_NOT_ENOUGH_MEMORY = 8;
/// <summary>
/// The storage control block address is invalid.
/// </summary>
public const int ERROR_INVALID_BLOCK = 9;
/// <summary>
/// The environment is incorrect.
/// </summary>
public const int ERROR_BAD_ENVIRONMENT = 10;
/// <summary>
/// An attempt was made to load a program with an incorrect format.
/// </summary>
public const int ERROR_BAD_FORMAT = 11;
/// <summary>
/// The access code is invalid.
/// </summary>
public const int ERROR_INVALID_ACCESS = 12;
/// <summary>
/// The data is invalid.
/// </summary>
public const int ERROR_INVALID_DATA = 13;
/// <summary>
/// Not enough storage is available to complete this operation.
/// </summary>
public const int ERROR_OUTOFMEMORY = 14;
/// <summary>
/// The system cannot find the drive specified.
/// </summary>
public const int ERROR_INVALID_DRIVE = 15;
/// <summary>
/// The directory cannot be removed.
/// </summary>
public const int ERROR_CURRENT_DIRECTORY = 16;
/// <summary>
/// The system cannot move the file to a different disk drive.
/// </summary>
public const int ERROR_NOT_SAME_DEVICE = 17;
/// <summary>
/// There are no more files.
/// </summary>
public const int ERROR_NO_MORE_FILES = 18;
/// <summary>
/// The media is write protected.
/// </summary>
public const int ERROR_WRITE_PROTECT = 19;
/// <summary>
/// The system cannot find the device specified.
/// </summary>
public const int ERROR_BAD_UNIT = 20;
/// <summary>
/// The device is not ready.
/// </summary>
public const int ERROR_NOT_READY = 21;
/// <summary>
/// The device does not recognize the command.
/// </summary>
public const int ERROR_BAD_COMMAND = 22;
/// <summary>
/// Data error (cyclic redundancy check).
/// </summary>
public const int ERROR_CRC = 23;
/// <summary>
/// The program issued a command but the command length is incorrect.
/// </summary>
public const int ERROR_BAD_LENGTH = 24;
/// <summary>
/// The drive cannot locate a specific area or track on the disk.
/// </summary>
public const int ERROR_SEEK = 25;
/// <summary>
/// The specified disk or diskette cannot be accessed.
/// </summary>
public const int ERROR_NOT_DOS_DISK = 26;
/// <summary>
/// The drive cannot find the sector requested.
/// </summary>
public const int ERROR_SECTOR_NOT_FOUND = 27;
/// <summary>
/// The printer is out of paper.
/// </summary>
public const int ERROR_OUT_OF_PAPER = 28;
/// <summary>
/// The system cannot write to the specified device.
/// </summary>
public const int ERROR_WRITE_FAULT = 29;
/// <summary>
/// The system cannot read from the specified device.
/// </summary>
public const int ERROR_READ_FAULT = 30;
/// <summary>
/// A device attached to the system is not functioning.
/// </summary>
public const int ERROR_GEN_FAILURE = 31;
/// <summary>
/// The process cannot access the file because it is being used by another process.
/// </summary>
public const int ERROR_SHARING_VIOLATION = 32;
/// <summary>
/// The process cannot access the file because another process has locked a portion of the file.
/// </summary>
public const int ERROR_LOCK_VIOLATION = 33;
/// <summary>
/// The wrong diskette is in the drive.
/// Insert %2 (Volume Serial Number: %3) into drive %1.
/// </summary>
public const int ERROR_WRONG_DISK = 34;
/// <summary>
/// Too many files opened for sharing.
/// </summary>
public const int ERROR_SHARING_BUFFER_EXCEEDED = 36;
/// <summary>
/// Reached the end of the file.
/// </summary>
public const int ERROR_HANDLE_EOF = 38;
/// <summary>
/// The disk is full.
/// </summary>
public const int ERROR_HANDLE_DISK_FULL = 39;
/// <summary>
/// The request is not supported.
/// </summary>
public const int ERROR_NOT_SUPPORTED = 50;
/// <summary>
/// Windows cannot find the network path. Verify that the network path is correct and the destination computer is not busy or turned off. If Windows still cannot find the network path, contact your network administrator.
/// </summary>
public const int ERROR_REM_NOT_LIST = 51;
/// <summary>
/// You were not connected because a duplicate name exists on the network. Go to System in Control Panel to change the computer name and try again.
/// </summary>
public const int ERROR_DUP_NAME = 52;
/// <summary>
/// The network path was not found.
/// </summary>
public const int ERROR_BAD_NETPATH = 53;
/// <summary>
/// The network is busy.
/// </summary>
public const int ERROR_NETWORK_BUSY = 54;
/// <summary>
/// The specified network resource or device is no longer available.
/// </summary>
public const int ERROR_DEV_NOT_EXIST = 55;
/// <summary>
/// The network BIOS command limit has been reached.
/// </summary>
public const int ERROR_TOO_MANY_CMDS = 56;
/// <summary>
/// A network adapter hardware error occurred.
/// </summary>
public const int ERROR_ADAP_HDW_ERR = 57;
/// <summary>
/// The specified server cannot perform the requested operation.
/// </summary>
public const int ERROR_BAD_NET_RESP = 58;
/// <summary>
/// An unexpected network error occurred.
/// </summary>
public const int ERROR_UNEXP_NET_ERR = 59;
/// <summary>
/// The remote adapter is not compatible.
/// </summary>
public const int ERROR_BAD_REM_ADAP = 60;
/// <summary>
/// The printer queue is full.
/// </summary>
public const int ERROR_PRINTQ_FULL = 61;
/// <summary>
/// Space to store the file waiting to be printed is not available on the server.
/// </summary>
public const int ERROR_NO_SPOOL_SPACE = 62;
/// <summary>
/// Your file waiting to be printed was deleted.
/// </summary>
public const int ERROR_PRINT_CANCELLED = 63;
/// <summary>
/// The specified network name is no longer available.
/// </summary>
public const int ERROR_NETNAME_DELETED = 64;
/// <summary>
/// Network access is denied.
/// </summary>
public const int ERROR_NETWORK_ACCESS_DENIED = 65;
/// <summary>
/// The network resource type is not correct.
/// </summary>
public const int ERROR_BAD_DEV_TYPE = 66;
/// <summary>
/// The network name cannot be found.
/// </summary>
public const int ERROR_BAD_NET_NAME = 67;
/// <summary>
/// The name limit for the local computer network adapter card was exceeded.
/// </summary>
public const int ERROR_TOO_MANY_NAMES = 68;
/// <summary>
/// The network BIOS session limit was exceeded.
/// </summary>
public const int ERROR_TOO_MANY_SESS = 69;
/// <summary>
/// The remote server has been paused or is in the process of being started.
/// </summary>
public const int ERROR_SHARING_PAUSED = 70;
/// <summary>
/// No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.
/// </summary>
public const int ERROR_REQ_NOT_ACCEP = 71;
/// <summary>
/// The specified printer or disk device has been paused.
/// </summary>
public const int ERROR_REDIR_PAUSED = 72;
/// <summary>
/// The file exists.
/// </summary>
public const int ERROR_FILE_EXISTS = 80;
/// <summary>
/// The directory or file cannot be created.
/// </summary>
public const int ERROR_CANNOT_MAKE = 82;
/// <summary>
/// Fail on INT 24.
/// </summary>
public const int ERROR_FAIL_I24 = 83;
/// <summary>
/// Storage to process this request is not available.
/// </summary>
public const int ERROR_OUT_OF_STRUCTURES = 84;
/// <summary>
/// The local device name is already in use.
/// </summary>
public const int ERROR_ALREADY_ASSIGNED = 85;
/// <summary>
/// The specified network password is not correct.
/// </summary>
public const int ERROR_INVALID_PASSWORD = 86;
/// <summary>
/// The parameter is incorrect.
/// </summary>
public const int ERROR_INVALID_PARAMETER = 87;
/// <summary>
/// A write fault occurred on the network.
/// </summary>
public const int ERROR_NET_WRITE_FAULT = 88;
/// <summary>
/// The system cannot start another process at this time.
/// </summary>
public const int ERROR_NO_PROC_SLOTS = 89;
/// <summary>
/// Cannot create another system semaphore.
/// </summary>
public const int ERROR_TOO_MANY_SEMAPHORES = 100;
/// <summary>
/// The exclusive semaphore is owned by another process.
/// </summary>
public const int ERROR_EXCL_SEM_ALREADY_OWNED = 101;
/// <summary>
/// The semaphore is set and cannot be closed.
/// </summary>
public const int ERROR_SEM_IS_SET = 102;
/// <summary>
/// The semaphore cannot be set again.
/// </summary>
public const int ERROR_TOO_MANY_SEM_REQUESTS = 103;
/// <summary>
/// Cannot request exclusive semaphores at interrupt time.
/// </summary>
public const int ERROR_INVALID_AT_INTERRUPT_TIME = 104;
/// <summary>
/// The previous ownership of this semaphore has ended.
/// </summary>
public const int ERROR_SEM_OWNER_DIED = 105;
/// <summary>
/// Insert the diskette for drive %1.
/// </summary>
public const int ERROR_SEM_USER_LIMIT = 106;
/// <summary>
/// The program stopped because an alternate diskette was not inserted.
/// </summary>
public const int ERROR_DISK_CHANGE = 107;
/// <summary>
/// The disk is in use or locked by another process.
/// </summary>
public const int ERROR_DRIVE_LOCKED = 108;
/// <summary>
/// The pipe has been ended.
/// </summary>
public const int ERROR_BROKEN_PIPE = 109;
/// <summary>
/// The system cannot open the device or file specified.
/// </summary>
public const int ERROR_OPEN_FAILED = 110;
/// <summary>
/// The file name is too long.
/// </summary>
public const int ERROR_BUFFER_OVERFLOW = 111;
/// <summary>
/// There is not enough space on the disk.
/// </summary>
public const int ERROR_DISK_FULL = 112;
/// <summary>
/// No more internal file identifiers available.
/// </summary>
public const int ERROR_NO_MORE_SEARCH_HANDLES = 113;
/// <summary>
/// The target internal file identifier is incorrect.
/// </summary>
public const int ERROR_INVALID_TARGET_HANDLE = 114;
/// <summary>
/// The IOCTL call made by the application program is not correct.
/// </summary>
public const int ERROR_INVALID_CATEGORY = 117;
/// <summary>
/// The verify-on-write switch parameter value is not correct.
/// </summary>
public const int ERROR_INVALID_VERIFY_SWITCH = 118;
/// <summary>
/// The system does not support the command requested.
/// </summary>
public const int ERROR_BAD_DRIVER_LEVEL = 119;
/// <summary>
/// This function is not supported on this system.
/// </summary>
public const int ERROR_CALL_NOT_IMPLEMENTED = 120;
/// <summary>
/// The semaphore timeout period has expired.
/// </summary>
public const int ERROR_SEM_TIMEOUT = 121;
/// <summary>
/// The data area passed to a system call is too small.
/// </summary>
public const int ERROR_INSUFFICIENT_BUFFER = 122;
/// <summary>
/// The filename, directory name, or volume label syntax is incorrect.
/// </summary>
public const int ERROR_INVALID_NAME = 123;
/// <summary>
/// The system call level is not correct.
/// </summary>
public const int ERROR_INVALID_LEVEL = 124;
/// <summary>
/// The disk has no volume label.
/// </summary>
public const int ERROR_NO_VOLUME_LABEL = 125;
/// <summary>
/// The specified module could not be found.
/// </summary>
public const int ERROR_MOD_NOT_FOUND = 126;
/// <summary>
/// The specified procedure could not be found.
/// </summary>
public const int ERROR_PROC_NOT_FOUND = 127;
/// <summary>
/// There are no child processes to wait for.
/// </summary>
public const int ERROR_WAIT_NO_CHILDREN = 128;
/// <summary>
/// The %1 application cannot be run in Win32 mode.
/// </summary>
public const int ERROR_CHILD_NOT_COMPLETE = 129;
/// <summary>
/// Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.
/// </summary>
public const int ERROR_DIRECT_ACCESS_HANDLE = 130;
/// <summary>
/// An attempt was made to move the file pointer before the beginning of the file.
/// </summary>
public const int ERROR_NEGATIVE_SEEK = 131;
/// <summary>
/// The file pointer cannot be set on the specified device or file.
/// </summary>
public const int ERROR_SEEK_ON_DEVICE = 132;
/// <summary>
/// A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.
/// </summary>
public const int ERROR_IS_JOIN_TARGET = 133;
/// <summary>
/// An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.
/// </summary>
public const int ERROR_IS_JOINED = 134;
/// <summary>
/// An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.
/// </summary>
public const int ERROR_IS_SUBSTED = 135;
/// <summary>
/// The system tried to delete the JOIN of a drive that is not joined.
/// </summary>
public const int ERROR_NOT_JOINED = 136;
/// <summary>
/// The system tried to delete the substitution of a drive that is not substituted.
/// </summary>
public const int ERROR_NOT_SUBSTED = 137;
/// <summary>
/// The system tried to join a drive to a directory on a joined drive.
/// </summary>
public const int ERROR_JOIN_TO_JOIN = 138;
/// <summary>
/// The system tried to substitute a drive to a directory on a substituted drive.
/// </summary>
public const int ERROR_SUBST_TO_SUBST = 139;
/// <summary>
/// The system tried to join a drive to a directory on a substituted drive.
/// </summary>
public const int ERROR_JOIN_TO_SUBST = 140;
/// <summary>
/// The system tried to SUBST a drive to a directory on a joined drive.
/// </summary>
public const int ERROR_SUBST_TO_JOIN = 141;
/// <summary>
/// The system cannot perform a JOIN or SUBST at this time.
/// </summary>
public const int ERROR_BUSY_DRIVE = 142;
/// <summary>
/// The system cannot join or substitute a drive to or for a directory on the same drive.
/// </summary>
public const int ERROR_SAME_DRIVE = 143;
/// <summary>
/// The directory is not a subdirectory of the root directory.
/// </summary>
public const int ERROR_DIR_NOT_ROOT = 144;
/// <summary>
/// The directory is not empty.
/// </summary>
public const int ERROR_DIR_NOT_EMPTY = 145;
/// <summary>
/// The path specified is being used in a substitute.
/// </summary>
public const int ERROR_IS_SUBST_PATH = 146;
/// <summary>
/// Not enough resources are available to process this command.
/// </summary>
public const int ERROR_IS_JOIN_PATH = 147;
/// <summary>
/// The path specified cannot be used at this time.
/// </summary>
public const int ERROR_PATH_BUSY = 148;
/// <summary>
/// An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute.
/// </summary>
public const int ERROR_IS_SUBST_TARGET = 149;
/// <summary>
/// System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.
/// </summary>
public const int ERROR_SYSTEM_TRACE = 150;
/// <summary>
/// The number of specified semaphore events for DosMuxSemWait is not correct.
/// </summary>
public const int ERROR_INVALID_EVENT_COUNT = 151;
/// <summary>
/// DosMuxSemWait did not execute; too many semaphores are already set.
/// </summary>
public const int ERROR_TOO_MANY_MUXWAITERS = 152;
/// <summary>
/// The DosMuxSemWait list is not correct.
/// </summary>
public const int ERROR_INVALID_LIST_FORMAT = 153;
/// <summary>
/// The volume label you entered exceeds the label character limit of the target file system.
/// </summary>
public const int ERROR_LABEL_TOO_Int32 = 154;
/// <summary>
/// Cannot create another thread.
/// </summary>
public const int ERROR_TOO_MANY_TCBS = 155;
/// <summary>
/// The recipient process has refused the signal.
/// </summary>
public const int ERROR_SIGNAL_REFUSED = 156;
/// <summary>
/// The segment is already discarded and cannot be locked.
/// </summary>
public const int ERROR_DISCARDED = 157;
/// <summary>
/// The segment is already unlocked.
/// </summary>
public const int ERROR_NOT_LOCKED = 158;
/// <summary>
/// The address for the thread ID is not correct.
/// </summary>
public const int ERROR_BAD_THREADID_ADDR = 159;
/// <summary>
/// One or more arguments are not correct.
/// </summary>
public const int ERROR_BAD_ARGUMENTS = 160;
/// <summary>
/// The specified path is invalid.
/// </summary>
public const int ERROR_BAD_PATHNAME = 161;
/// <summary>
/// A signal is already pending.
/// </summary>
public const int ERROR_SIGNAL_PENDING = 162;
/// <summary>
/// No more threads can be created in the system.
/// </summary>
public const int ERROR_MAX_THRDS_REACHED = 164;
/// <summary>
/// Unable to lock a region of a file.
/// </summary>
public const int ERROR_LOCK_FAILED = 167;
/// <summary>
/// The requested resource is in use.
/// </summary>
public const int ERROR_BUSY = 170;
/// <summary>
/// A lock request was not outstanding for the supplied cancel region.
/// </summary>
public const int ERROR_CANCEL_VIOLATION = 173;
/// <summary>
/// The file system does not support atomic changes to the lock type.
/// </summary>
public const int ERROR_ATOMIC_LOCKS_NOT_SUPPORTED = 174;
/// <summary>
/// The system detected a segment number that was not correct.
/// </summary>
public const int ERROR_INVALID_SEGMENT_NUMBER = 180;
/// <summary>
/// The operating system cannot run %1.
/// </summary>
public const int ERROR_INVALID_ORDINAL = 182;
/// <summary>
/// Cannot create a file when that file already exists.
/// </summary>
public const int ERROR_ALREADY_EXISTS = 183;
/// <summary>
/// The flag passed is not correct.
/// </summary>
public const int ERROR_INVALID_FLAG_NUMBER = 186;
/// <summary>
/// The specified system semaphore name was not found.
/// </summary>
public const int ERROR_SEM_NOT_FOUND = 187;
/// <summary>
/// The operating system cannot run %1.
/// </summary>
public const int ERROR_INVALID_STARTING_CODESEG = 188;
/// <summary>
/// The operating system cannot run %1.
/// </summary>
public const int ERROR_INVALID_STACKSEG = 189;
/// <summary>
/// The operating system cannot run %1.
/// </summary>
public const int ERROR_INVALID_MODULETYPE = 190;
/// <summary>
/// Cannot run %1 in Win32 mode.
/// </summary>
public const int ERROR_INVALID_EXE_SIGNATURE = 191;
/// <summary>
/// The operating system cannot run %1.
/// </summary>
public const int ERROR_EXE_MARKED_INVALID = 192;
/// <summary>
/// %1 is not a valid Win32 application.
/// </summary>
public const int ERROR_BAD_EXE_FORMAT = 193;
/// <summary>
/// The operating system cannot run %1.
/// </summary>
public const int ERROR_ITERATED_DATA_EXCEEDS_64k = 194;
/// <summary>
/// The operating system cannot run %1.
/// </summary>
public const int ERROR_INVALID_MINALLOCSIZE = 195;
/// <summary>
/// The operating system cannot run this application program.
/// </summary>
public const int ERROR_DYNLINK_FROM_INVALID_RING = 196;
/// <summary>
/// The operating system is not presently configured to run this application.
/// </summary>
public const int ERROR_IOPL_NOT_ENABLED = 197;
/// <summary>
/// The operating system cannot run %1.
/// </summary>
public const int ERROR_INVALID_SEGDPL = 198;
/// <summary>
/// The operating system cannot run this application program.
/// </summary>
public const int ERROR_AUTODATASEG_EXCEEDS_64k = 199;
/// <summary>
/// The code segment cannot be greater than or equal to 64K.
/// </summary>
public const int ERROR_RING2SEG_MUST_BE_MOVABLE = 200;
/// <summary>
/// The operating system cannot run %1.
/// </summary>
public const int ERROR_RELOC_CHAIN_XEEDS_SEGLIM = 201;
/// <summary>
/// The operating system cannot run %1.
/// </summary>
public const int ERROR_INFLOOP_IN_RELOC_CHAIN = 202;
/// <summary>
/// The system could not find the environment option that was entered.
/// </summary>
public const int ERROR_ENVVAR_NOT_FOUND = 203;
/// <summary>
/// No process in the command subtree has a signal handler.
/// </summary>
public const int ERROR_NO_SIGNAL_SENT = 205;
/// <summary>
/// The filename or extension is too long.
/// </summary>
public const int ERROR_FILENAME_EXCED_RANGE = 206;
/// <summary>
/// The ring 2 stack is in use.
/// </summary>
public const int ERROR_RING2_STACK_IN_USE = 207;
/// <summary>
/// The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified.
/// </summary>
public const int ERROR_META_EXPANSION_TOO_Int32 = 208;
/// <summary>
/// The signal being posted is not correct.
/// </summary>
public const int ERROR_INVALID_SIGNAL_NUMBER = 209;
/// <summary>
/// The signal handler cannot be set.
/// </summary>
public const int ERROR_THREAD_1_INACTIVE = 210;
/// <summary>
/// The segment is locked and cannot be reallocated.
/// </summary>
public const int ERROR_LOCKED = 212;
/// <summary>
/// Too many dynamic-link modules are attached to this program or dynamic-link module.
/// </summary>
public const int ERROR_TOO_MANY_MODULES = 214;
/// <summary>
/// Cannot nest calls to LoadModule.
/// </summary>
public const int ERROR_NESTING_NOT_ALLOWED = 215;
/// <summary>
/// The image file %1 is valid, but is for a machine type other than the current machine.
/// </summary>
public const int ERROR_EXE_MACHINE_TYPE_MISMATCH = 216;
/// <summary>
/// No information avialable.
/// </summary>
public const int ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY = 217;
/// <summary>
/// No information avialable.
/// </summary>
public const int ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY = 218;
/// <summary>
/// The pipe state is invalid.
/// </summary>
public const int ERROR_BAD_PIPE = 230;
/// <summary>
/// All pipe instances are busy.
/// </summary>
public const int ERROR_PIPE_BUSY = 231;
/// <summary>
/// The pipe is being closed.
/// </summary>
public const int ERROR_NO_DATA = 232;
/// <summary>
/// No process is on the other end of the pipe.
/// </summary>
public const int ERROR_PIPE_NOT_CONNECTED = 233;
/// <summary>
/// More data is available.
/// </summary>
public const int ERROR_MORE_DATA = 234;
/// <summary>
/// The session was canceled.
/// </summary>
public const int ERROR_VC_DISCONNECTED = 240;
/// <summary>
/// The specified extended attribute name was invalid.
/// </summary>
public const int ERROR_INVALID_EA_NAME = 254;
/// <summary>
/// The extended attributes are inconsistent.
/// </summary>
public const int ERROR_EA_LIST_INCONSISTENT = 255;
/// <summary>
/// The wait operation timed out.
/// </summary>
public const int WAIT_TIMEOUT = 258;
/// <summary>
/// No more data is available.
/// </summary>
public const int ERROR_NO_MORE_ITEMS = 259;
/// <summary>
/// The copy functions cannot be used.
/// </summary>
public const int ERROR_CANNOT_COPY = 266;
/// <summary>
/// The directory name is invalid.
/// </summary>
public const int ERROR_DIRECTORY = 267;
/// <summary>
/// The extended attributes did not fit in the buffer.
/// </summary>
public const int ERROR_EAS_DIDNT_FIT = 275;
/// <summary>
/// The extended attribute file on the mounted file system is corrupt.
/// </summary>
public const int ERROR_EA_FILE_CORRUPT = 276;
/// <summary>
/// The extended attribute table file is full.
/// </summary>
public const int ERROR_EA_TABLE_FULL = 277;
/// <summary>
/// The specified extended attribute handle is invalid.
/// </summary>
public const int ERROR_INVALID_EA_HANDLE = 278;
/// <summary>
/// The mounted file system does not support extended attributes.
/// </summary>
public const int ERROR_EAS_NOT_SUPPORTED = 282;
/// <summary>
/// Attempt to release mutex not owned by caller.
/// </summary>
public const int ERROR_NOT_OWNER = 288;
/// <summary>
/// Too many posts were made to a semaphore.
/// </summary>
public const int ERROR_TOO_MANY_POSTS = 298;
/// <summary>
/// Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
/// </summary>
public const int ERROR_PARTIAL_COPY = 299;
/// <summary>
/// The oplock request is denied.
/// </summary>
public const int ERROR_OPLOCK_NOT_GRANTED = 300;
/// <summary>
/// An invalid oplock acknowledgment was received by the system.
/// </summary>
public const int ERROR_INVALID_OPLOCK_PROTOCOL = 301;
/// <summary>
/// The volume is too fragmented to complete this operation.
/// </summary>
public const int ERROR_DISK_TOO_FRAGMENTED = 302;
/// <summary>
/// The file cannot be opened because it is in the process of being deleted.
/// </summary>
public const int ERROR_DELETE_PENDING = 303;
/// <summary>
/// The system cannot find message text for message number 0x%1 in the message file for %2.
/// </summary>
public const int ERROR_MR_MID_NOT_FOUND = 317;
/// <summary>
/// No information avialable.
/// </summary>
public const int ERROR_SCOPE_NOT_FOUND = 318;
/// <summary>
/// Attempt to access invalid address.
/// </summary>
public const int ERROR_INVALID_ADDRESS = 487;
/// <summary>
/// Arithmetic result exceeded 32 bits.
/// </summary>
public const int ERROR_ARITHMETIC_OVERFLOW = 534;
/// <summary>
/// There is a process on other end of the pipe.
/// </summary>
public const int ERROR_PIPE_CONNECTED = 535;
/// <summary>
/// Waiting for a process to open the other end of the pipe.
/// </summary>
public const int ERROR_PIPE_LISTENING = 536;
/// <summary>
/// Access to the extended attribute was denied.
/// </summary>
public const int ERROR_EA_ACCESS_DENIED = 994;
/// <summary>
/// The I/O operation has been aborted because of either a thread exit or an application request.
/// </summary>
public const int ERROR_OPERATION_ABORTED = 995;
/// <summary>
/// Overlapped I/O event is not in a signaled state.
/// </summary>
public const int ERROR_IO_INCOMPLETE = 996;
/// <summary>
/// Overlapped I/O operation is in progress.
/// </summary>
public const int ERROR_IO_PENDING = 997;
/// <summary>
/// Invalid access to memory location.
/// </summary>
public const int ERROR_NOACCESS = 998;
/// <summary>
/// Error performing inpage operation.
/// </summary>
public const int ERROR_SWAPERROR = 999;
/// <summary>
/// Recursion too deep; the stack overflowed.
/// </summary>
public const int ERROR_STACK_OVERFLOW = 1001;
/// <summary>
/// The window cannot act on the sent message.
/// </summary>
public const int ERROR_INVALID_MESSAGE = 1002;
/// <summary>
/// Cannot complete this function.
/// </summary>
public const int ERROR_CAN_NOT_COMPLETE = 1003;
/// <summary>
/// Invalid flags.
/// </summary>
public const int ERROR_INVALID_FLAGS = 1004;
/// <summary>
/// The volume does not contain a recognized file system.
/// Please make sure that all required file system drivers are loaded and that the volume is not corrupted.
/// </summary>
public const int ERROR_UNRECOGNIZED_VOLUME = 1005;
/// <summary>
/// The volume for a file has been externally altered so that the opened file is no longer valid.
/// </summary>
public const int ERROR_FILE_INVALID = 1006;
/// <summary>
/// The requested operation cannot be performed in full-screen mode.
/// </summary>
public const int ERROR_FULLSCREEN_MODE = 1007;
/// <summary>
/// An attempt was made to reference a token that does not exist.
/// </summary>
public const int ERROR_NO_TOKEN = 1008;
/// <summary>
/// The configuration registry database is corrupt.
/// </summary>
public const int ERROR_BADDB = 1009;
/// <summary>
/// The configuration registry key is invalid.
/// </summary>
public const int ERROR_BADKEY = 1010;
/// <summary>
/// The configuration registry key could not be opened.
/// </summary>
public const int ERROR_CANTOPEN = 1011;
/// <summary>
/// The configuration registry key could not be read.
/// </summary>
public const int ERROR_CANTREAD = 1012;
/// <summary>
/// The configuration registry key could not be written.
/// </summary>
public const int ERROR_CANTWRITE = 1013;
/// <summary>
/// One of the files in the registry database had to be recovered by use of a log or alternate copy. The recovery was successful.
/// </summary>
public const int ERROR_REGISTRY_RECOVERED = 1014;
/// <summary>
/// The registry is corrupted. The structure of one of the files containing registry data is corrupted, or the system's memory image of the file is corrupted, or the file could not be recovered because the alternate copy or log was absent or corrupted.
/// </summary>
public const int ERROR_REGISTRY_CORRUPT = 1015;
/// <summary>
/// An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system's image of the registry.
/// </summary>
public const int ERROR_REGISTRY_IO_FAILED = 1016;
/// <summary>
/// The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format.
/// </summary>
public const int ERROR_NOT_REGISTRY_FILE = 1017;
/// <summary>
/// Illegal operation attempted on a registry key that has been marked for deletion.
/// </summary>
public const int ERROR_KEY_DELETED = 1018;
/// <summary>
/// System could not allocate the required space in a registry log.
/// </summary>
public const int ERROR_NO_LOG_SPACE = 1019;
/// <summary>
/// Cannot create a symbolic link in a registry key that already has subkeys or values.
/// </summary>
public const int ERROR_KEY_HAS_CHILDREN = 1020;
/// <summary>
/// Cannot create a stable subkey under a volatile parent key.
/// </summary>
public const int ERROR_CHILD_MUST_BE_VOLATILE = 1021;
/// <summary>
/// A notify change request is being completed and the information is not being returned in the caller's buffer. The caller now needs to enumerate the files to find the changes.
/// </summary>
public const int ERROR_NOTIFY_ENUM_DIR = 1022;
/// <summary>
/// A stop control has been sent to a service that other running services are dependent on.
/// </summary>
public const int ERROR_DEPENDENT_SERVICES_RUNNING = 1051;
/// <summary>
/// The requested control is not valid for this service.
/// </summary>
public const int ERROR_INVALID_SERVICE_CONTROL = 1052;
/// <summary>
/// The service did not respond to the start or control request in a timely fashion.
/// </summary>
public const int ERROR_SERVICE_REQUEST_TIMEOUT = 1053;
/// <summary>
/// A thread could not be created for the service.
/// </summary>
public const int ERROR_SERVICE_NO_THREAD = 1054;
/// <summary>
/// The service database is locked.
/// </summary>
public const int ERROR_SERVICE_DATABASE_LOCKED = 1055;
/// <summary>
/// An instance of the service is already running.
/// </summary>
public const int ERROR_SERVICE_ALREADY_RUNNING = 1056;
/// <summary>
/// The account name is invalid or does not exist, or the password is invalid for the account name specified.
/// </summary>
public const int ERROR_INVALID_SERVICE_ACCOUNT = 1057;
/// <summary>
/// The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
/// </summary>
public const int ERROR_SERVICE_DISABLED = 1058;
/// <summary>
/// Circular service dependency was specified.
/// </summary>
public const int ERROR_CIRCULAR_DEPENDENCY = 1059;
/// <summary>
/// The specified service does not exist as an installed service.
/// </summary>
public const int ERROR_SERVICE_DOES_NOT_EXIST = 1060;
/// <summary>
/// The service cannot accept control messages at this time.
/// </summary>
public const int ERROR_SERVICE_CANNOT_ACCEPT_CTRL = 1061;
/// <summary>
/// The service has not been started.
/// </summary>
public const int ERROR_SERVICE_NOT_ACTIVE = 1062;
/// <summary>
/// The service process could not connect to the service controller.
/// </summary>
public const int ERROR_FAILED_SERVICE_CONTROLLER_CONNECT = 1063;
/// <summary>
/// An exception occurred in the service when handling the control request.
/// </summary>
public const int ERROR_EXCEPTION_IN_SERVICE = 1064;
/// <summary>
/// The database specified does not exist.
/// </summary>
public const int ERROR_DATABASE_DOES_NOT_EXIST = 1065;
/// <summary>
/// The service has returned a service-specific error code.
/// </summary>
public const int ERROR_SERVICE_SPECIFIC_ERROR = 1066;
/// <summary>
/// The process terminated unexpectedly.
/// </summary>
public const int ERROR_PROCESS_ABORTED = 1067;
/// <summary>
/// The dependency service or group failed to start.
/// </summary>