-
Notifications
You must be signed in to change notification settings - Fork 1
/
errcode.go
1645 lines (1135 loc) · 46.6 KB
/
errcode.go
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
//----------------------------------------
//
// Copyright © ying32. All Rights Reserved.
//
// Licensed under Apache License 2.0
//
//----------------------------------------
//go:build windows
// +build windows
package errcode
const (
// Define the severity codes
// The operation completed successfully.
ERROR_SUCCESS = 0
NO_ERROR = 0 // dderror
// Incorrect function.
ERROR_INVALID_FUNCTION = 1 // dderror
// The system cannot find the file specified.
ERROR_FILE_NOT_FOUND = 2
// The system cannot find the path specified.
ERROR_PATH_NOT_FOUND = 3
// The system cannot open the file.
ERROR_TOO_MANY_OPEN_FILES = 4
// Access is denied.
ERROR_ACCESS_DENIED = 5
// The handle is invalid.
ERROR_INVALID_HANDLE = 6
// The storage control blocks were destroyed.
ERROR_ARENA_TRASHED = 7
// Not enough storage is available to process this command.
ERROR_NOT_ENOUGH_MEMORY = 8 // dderror
// The storage control block address is invalid.
ERROR_INVALID_BLOCK = 9
// The environment is incorrect.
ERROR_BAD_ENVIRONMENT = 10
// An attempt was made to load a program with an incorrect format.
ERROR_BAD_FORMAT = 11
// The access code is invalid.
ERROR_INVALID_ACCESS = 12
// The data is invalid.
ERROR_INVALID_DATA = 13
// Not enough storage is available to complete this operation.
ERROR_OUTOFMEMORY = 14
// The system cannot find the drive specified.
ERROR_INVALID_DRIVE = 15
// The directory cannot be removed.
ERROR_CURRENT_DIRECTORY = 0x10
// The system cannot move the file
// to a different disk drive.
ERROR_NOT_SAME_DEVICE = 17
// There are no more files.
ERROR_NO_MORE_FILES = 18
// The media is write protected.
ERROR_WRITE_PROTECT = 19
// The system cannot find the device specified.
ERROR_BAD_UNIT = 20
// The device is not ready.
ERROR_NOT_READY = 21
// The device does not recognize the command.
ERROR_BAD_COMMAND = 22
// Data error (cyclic redundancy check)
ERROR_CRC = 23
// The program issued a command but the command length is incorrect.
ERROR_BAD_LENGTH = 24
// The drive cannot locate a specific area or track on the disk.
ERROR_SEEK = 25
// The specified disk or diskette cannot be accessed.
ERROR_NOT_DOS_DISK = 26
// The drive cannot find the sector requested.
ERROR_SECTOR_NOT_FOUND = 27
// The printer is out of paper.
ERROR_OUT_OF_PAPER = 28
// The system cannot write to the specified device.
ERROR_WRITE_FAULT = 29
// The system cannot read from the specified device.
ERROR_READ_FAULT = 30
// A device attached to the system is not functioning.
ERROR_GEN_FAILURE = 31
// The process cannot access the file because it is being used by another process.
ERROR_SHARING_VIOLATION = 0x20
// The process cannot access the file because
// another process has locked a portion of the file.
ERROR_LOCK_VIOLATION = 33
// The wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3)
// into drive %1.
ERROR_WRONG_DISK = 34
// Too many files opened for sharing.
ERROR_SHARING_BUFFER_EXCEEDED = 36
// Reached end of file.
ERROR_HANDLE_EOF = 38
// The disk is full.
ERROR_HANDLE_DISK_FULL = 39
// The network request is not supported.
ERROR_NOT_SUPPORTED = 50
// The remote computer is not available.
ERROR_REM_NOT_LIST = 51
// A duplicate name exists on the network.
ERROR_DUP_NAME = 52
// The network path was not found.
ERROR_BAD_NETPATH = 53
// The network is busy.
ERROR_NETWORK_BUSY = 54
// The specified network resource or device is no longer
// available.
ERROR_DEV_NOT_EXIST = 55 // dderror
// The network BIOS command limit has been reached.
ERROR_TOO_MANY_CMDS = 56
// A network adapter hardware error occurred.
ERROR_ADAP_HDW_ERR = 57
// The specified server cannot perform the requested
// operation.
ERROR_BAD_NET_RESP = 58
// An unexpected network error occurred.
ERROR_UNEXP_NET_ERR = 59
// The remote adapter is not compatible.
ERROR_BAD_REM_ADAP = 60
// The printer queue is full.
ERROR_PRINTQ_FULL = 61
// Space to store the file waiting to be printed is
// not available on the server.
ERROR_NO_SPOOL_SPACE = 62
// Your file waiting to be printed was deleted.
ERROR_PRINT_CANCELLED = 63
// The specified network name is no longer available.
ERROR_NETNAME_DELETED = 0x40
// Network access is denied.
ERROR_NETWORK_ACCESS_DENIED = 65
// The network resource type is not correct.
ERROR_BAD_DEV_TYPE = 66
// The network name cannot be found.
ERROR_BAD_NET_NAME = 67
// The name limit for the local computer network
// adapter card was exceeded.
ERROR_TOO_MANY_NAMES = 68
// The network BIOS session limit was exceeded.
ERROR_TOO_MANY_SESS = 69
// The remote server has been paused or is in the
// process of being started.
ERROR_SHARING_PAUSED = 70
// 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.
ERROR_REQ_NOT_ACCEP = 71
// The specified printer or disk device has been paused.
ERROR_REDIR_PAUSED = 72
// The file exists.
ERROR_FILE_EXISTS = 80
// The directory or file cannot be created.
ERROR_CANNOT_MAKE = 82
// Fail on INT 24
ERROR_FAIL_I24 = 83
// Storage to process this request is not available.
ERROR_OUT_OF_STRUCTURES = 84
// The local device name is already in use.
ERROR_ALREADY_ASSIGNED = 85
// The specified network password is not correct.
ERROR_INVALID_PASSWORD = 86
// The parameter is incorrect.
ERROR_INVALID_PARAMETER = 87 // dderror
// A write fault occurred on the network.
ERROR_NET_WRITE_FAULT = 88
// The system cannot start another process at
// this time.
ERROR_NO_PROC_SLOTS = 89
// Cannot create another system semaphore.
ERROR_TOO_MANY_SEMAPHORES = 100
// The exclusive semaphore is owned by another process.
ERROR_EXCL_SEM_ALREADY_OWNED = 101
// The semaphore is set and cannot be closed.
ERROR_SEM_IS_SET = 102
// The semaphore cannot be set again.
ERROR_TOO_MANY_SEM_REQUESTS = 103
// Cannot request exclusive semaphores at interrupt time.
ERROR_INVALID_AT_INTERRUPT_TIME = 104
// The previous ownership of this semaphore has ended.
ERROR_SEM_OWNER_DIED = 105
// Insert the diskette for drive %1.
ERROR_SEM_USER_LIMIT = 106
// Program stopped because alternate diskette was not inserted.
ERROR_DISK_CHANGE = 107
// The disk is in use or locked by
// another process.
ERROR_DRIVE_LOCKED = 108
// The pipe has been ended.
ERROR_BROKEN_PIPE = 109
// The system cannot open the device or file specified.
ERROR_OPEN_FAILED = 110
// The file name is too long.
ERROR_BUFFER_OVERFLOW = 111
// There is not enough space on the disk.
ERROR_DISK_FULL = 112
// No more internal file identifiers available.
ERROR_NO_MORE_SEARCH_HANDLES = 113
// The target internal file identifier is incorrect.
ERROR_INVALID_TARGET_HANDLE = 114
// The IOCTL call made by the application program is not correct.
ERROR_INVALID_CATEGORY = 117
// The verify-on-write switch parameter value is not correct.
ERROR_INVALID_VERIFY_SWITCH = 118
// The system does not support the command requested.
ERROR_BAD_DRIVER_LEVEL = 119
// This function is only valid in Windows NT mode.
ERROR_CALL_NOT_IMPLEMENTED = 120
// The semaphore timeout period has expired.
ERROR_SEM_TIMEOUT = 121
// The data area passed to a system call is too small.
ERROR_INSUFFICIENT_BUFFER = 122 // dderror
// The filename, directory name, or volume label syntax is incorrect.
ERROR_INVALID_NAME = 123
// The system call level is not correct.
ERROR_INVALID_LEVEL = 124
// The disk has no volume label.
ERROR_NO_VOLUME_LABEL = 125
// The specified module could not be found.
ERROR_MOD_NOT_FOUND = 126
// The specified procedure could not be found.
ERROR_PROC_NOT_FOUND = 127
// There are no child processes to wait for.
ERROR_WAIT_NO_CHILDREN = 0x80
// The %1 application cannot be run in Windows NT mode.
ERROR_CHILD_NOT_COMPLETE = 129
// Attempt to use a file handle to an open disk partition for an
// operation other than raw disk I/O.
ERROR_DIRECT_ACCESS_HANDLE = 130
// An attempt was made to move the file pointer before the beginning of the file.
ERROR_NEGATIVE_SEEK = 131
// The file pointer cannot be set on the specified device or file.
ERROR_SEEK_ON_DEVICE = 132
// A JOIN or SUBST command
// cannot be used for a drive that
// contains previously joined drives.
ERROR_IS_JOIN_TARGET = 133
// An attempt was made to use a
// JOIN or SUBST command on a drive that has
// already been joined.
ERROR_IS_JOINED = 134
// An attempt was made to use a
// JOIN or SUBST command on a drive that has
// already been substituted.
ERROR_IS_SUBSTED = 135
// The system tried to delete
// the JOIN of a drive that is not joined.
ERROR_NOT_JOINED = 136
// The system tried to delete the
// substitution of a drive that is not substituted.
ERROR_NOT_SUBSTED = 137
// The system tried to join a drive to a directory on a joined drive.
ERROR_JOIN_TO_JOIN = 138
// The system tried to substitute a drive to a directory on a substituted drive.
ERROR_SUBST_TO_SUBST = 139
// The system tried to join a drive to a directory on a substituted drive.
ERROR_JOIN_TO_SUBST = 140
// The system tried to SUBST a drive to a directory on a joined drive.
ERROR_SUBST_TO_JOIN = 141
// The system cannot perform a JOIN or SUBST at this time.
ERROR_BUSY_DRIVE = 142
// The system cannot join or substitute a
// drive to or for a directory on the same drive.
ERROR_SAME_DRIVE = 143
// The directory is not a subdirectory of the root directory.
ERROR_DIR_NOT_ROOT = 144
// The directory is not empty.
ERROR_DIR_NOT_EMPTY = 145
// The path specified is being used in a substitute.
ERROR_IS_SUBST_PATH = 146
// Not enough resources are available to process this command.
ERROR_IS_JOIN_PATH = 147
// The path specified cannot be used at this time.
ERROR_PATH_BUSY = 148
// An attempt was made to join or substitute a drive for which a directory
// on the drive is the target of a previous substitute.
ERROR_IS_SUBST_TARGET = 149
// System trace information was not specified in your
// CONFIG.SYS file, or tracing is disallowed.
ERROR_SYSTEM_TRACE = 150
// The number of specified semaphore events for
// DosMuxSemWait is not correct.
ERROR_INVALID_EVENT_COUNT = 151
// DosMuxSemWait did not execute; too many semaphores
// are already set.
ERROR_TOO_MANY_MUXWAITERS = 152
// The DosMuxSemWait list is not correct.
ERROR_INVALID_LIST_FORMAT = 153
// The volume label you entered exceeds the label character
// limit of the target file system.
ERROR_LABEL_TOO_LONG = 154
// Cannot create another thread.
ERROR_TOO_MANY_TCBS = 155
// The recipient process has refused the signal.
ERROR_SIGNAL_REFUSED = 156
// The segment is already discarded and cannot be locked.
ERROR_DISCARDED = 157
// The segment is already unlocked.
ERROR_NOT_LOCKED = 158
// The address for the thread ID is not correct.
ERROR_BAD_THREADID_ADDR = 159
// The argument string passed to DosExecPgm is not correct.
ERROR_BAD_ARGUMENTS = 160
// The specified path is invalid.
ERROR_BAD_PATHNAME = 161
// A signal is already pending.
ERROR_SIGNAL_PENDING = 162
// No more threads can be created in the system.
ERROR_MAX_THRDS_REACHED = 164
// Unable to lock a region of a file.
ERROR_LOCK_FAILED = 167
// The requested resource is in use.
ERROR_BUSY = 170
// A lock request was not outstanding for the supplied cancel region.
ERROR_CANCEL_VIOLATION = 173
// The file system does not support atomic changes to the lock type.
ERROR_ATOMIC_LOCKS_NOT_SUPPORTED = 174
// The system detected a segment number that was not correct.
ERROR_INVALID_SEGMENT_NUMBER = 180
// The operating system cannot run %1.
ERROR_INVALID_ORDINAL = 182
// Cannot create a file when that file already exists.
ERROR_ALREADY_EXISTS = 183
// The flag passed is not correct.
ERROR_INVALID_FLAG_NUMBER = 186
// The specified system semaphore name was not found.
ERROR_SEM_NOT_FOUND = 187
// The operating system cannot run %1.
ERROR_INVALID_STARTING_CODESEG = 188
// The operating system cannot run %1.
ERROR_INVALID_STACKSEG = 189
// The operating system cannot run %1.
ERROR_INVALID_MODULETYPE = 190
// Cannot run %1 in Windows NT mode.
ERROR_INVALID_EXE_SIGNATURE = 191
// The operating system cannot run %1.
ERROR_EXE_MARKED_INVALID = 192
// %1 is not a valid Windows NT application.
ERROR_BAD_EXE_FORMAT = 193
// The operating system cannot run %1.
ERROR_ITERATED_DATA_EXCEEDS_64k = 194
// The operating system cannot run %1.
ERROR_INVALID_MINALLOCSIZE = 195
// The operating system cannot run this application program.
ERROR_DYNLINK_FROM_INVALID_RING = 196
// The operating system is not presently configured to run this application.
ERROR_IOPL_NOT_ENABLED = 197
// The operating system cannot run %1.
ERROR_INVALID_SEGDPL = 198
// The operating system cannot run this
// application program.
ERROR_AUTODATASEG_EXCEEDS_64k = 199
// The code segment cannot be greater than or equal to 64KB.
ERROR_RING2SEG_MUST_BE_MOVABLE = 200
// The operating system cannot run %1.
ERROR_RELOC_CHAIN_XEEDS_SEGLIM = 201
// The operating system cannot run %1.
ERROR_INFLOOP_IN_RELOC_CHAIN = 202
// The system could not find the environment option that was entered.
ERROR_ENVVAR_NOT_FOUND = 203
// No process in the command subtree has a signal handler.
ERROR_NO_SIGNAL_SENT = 205
// The filename or extension is too long.
ERROR_FILENAME_EXCED_RANGE = 206
// The ring 2 stack is in use.
ERROR_RING2_STACK_IN_USE = 207
// The global filename characters, * or ?, are entered
// incorrectly or too many global filename characters are specified.
ERROR_META_EXPANSION_TOO_LONG = 208
// The signal being posted is not correct.
ERROR_INVALID_SIGNAL_NUMBER = 209
// The signal handler cannot be set.
ERROR_THREAD_1_INACTIVE = 210
// The segment is locked and cannot be reallocated.
ERROR_LOCKED = 212
// Too many dynamic link modules are attached to this
// program or dynamic link module.
ERROR_TOO_MANY_MODULES = 214
// Can't nest calls to LoadModule.
ERROR_NESTING_NOT_ALLOWED = 215
// The image file %1 is valid, but is for a machine type other
// than the current machine.
ERROR_EXE_MACHINE_TYPE_MISMATCH = 216
// The pipe state is invalid.
ERROR_BAD_PIPE = 230
// All pipe instances are busy.
ERROR_PIPE_BUSY = 231
// The pipe is being closed.
ERROR_NO_DATA = 232
// No process is on the other end of the pipe.
ERROR_PIPE_NOT_CONNECTED = 233
// More data is available.
ERROR_MORE_DATA = 234 // dderror
// The session was cancelled.
ERROR_VC_DISCONNECTED = 240
// The specified extended attribute name was invalid.
ERROR_INVALID_EA_NAME = 254
// The extended attributes are inconsistent.
ERROR_EA_LIST_INCONSISTENT = 255
// No more data is available.
ERROR_NO_MORE_ITEMS = 259
// The Copy API cannot be used.
ERROR_CANNOT_COPY = 266
// The directory name is invalid.
ERROR_DIRECTORY = 267
// The extended attributes did not fit in the buffer.
ERROR_EAS_DIDNT_FIT = 275
// The extended attribute file on the mounted file system is corrupt.
ERROR_EA_FILE_CORRUPT = 276
// The extended attribute table file is full.
ERROR_EA_TABLE_FULL = 277
// The specified extended attribute handle is invalid.
ERROR_INVALID_EA_HANDLE = 278
// The mounted file system does not support extended attributes.
ERROR_EAS_NOT_SUPPORTED = 282
// Attempt to release mutex not owned by caller.
ERROR_NOT_OWNER = 288
// Too many posts were made to a semaphore.
ERROR_TOO_MANY_POSTS = 298
// Only part of a Read/WriteProcessMemory request was completed.
ERROR_PARTIAL_COPY = 299
// The system cannot find message for message number $%1
// in message file for %2.
ERROR_MR_MID_NOT_FOUND = 317
// Attempt to access invalid address.
ERROR_INVALID_ADDRESS = 487
// Arithmetic result exceeded 32 bits.
ERROR_ARITHMETIC_OVERFLOW = 534
// There is a process on other end of the pipe.
ERROR_PIPE_CONNECTED = 535
// Waiting for a process to open the other end of the pipe.
ERROR_PIPE_LISTENING = 536
// Access to the extended attribute was denied.
ERROR_EA_ACCESS_DENIED = 994
// The I/O operation has been aborted because of either a thread exit
// or an application request.
ERROR_OPERATION_ABORTED = 995
// Overlapped I/O event is not in a signalled state.
ERROR_IO_INCOMPLETE = 996
// Overlapped I/O operation is in progress.
ERROR_IO_PENDING = 997 // dderror
// Invalid access to memory location.
ERROR_NOACCESS = 998
// Error performing inpage operation.
ERROR_SWAPERROR = 999
// Recursion too deep, stack overflowed.
ERROR_STACK_OVERFLOW = 1001
// The window cannot act on the sent message.
ERROR_INVALID_MESSAGE = 1002
// Cannot complete this function.
ERROR_CAN_NOT_COMPLETE = 1003
// Invalid flags.
ERROR_INVALID_FLAGS = 1004
// 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 corrupt.
ERROR_UNRECOGNIZED_VOLUME = 1005
// The volume for a file has been externally altered such that the
// opened file is no longer valid.
ERROR_FILE_INVALID = 1006
// The requested operation cannot be performed in full-screen mode.
ERROR_FULLSCREEN_MODE = 1007
// An attempt was made to reference a token that does not exist.
ERROR_NO_TOKEN = 1008
// The configuration registry database is corrupt.
ERROR_BADDB = 1009
// The configuration registry key is invalid.
ERROR_BADKEY = 1010
// The configuration registry key could not be opened.
ERROR_CANTOPEN = 1011
// The configuration registry key could not be read.
ERROR_CANTREAD = 1012
// The configuration registry key could not be written.
ERROR_CANTWRITE = 1013
// One of the files in the Registry database had to be recovered
// by use of a log or alternate copy. The recovery was successful.
ERROR_REGISTRY_RECOVERED = 1014
// The Registry is corrupt. The structure of one of the files that contains
// Registry data is corrupt, or the system's image of the file in memory
// is corrupt, or the file could not be recovered because the alternate
// copy or log was absent or corrupt.
ERROR_REGISTRY_CORRUPT = 1015
// 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.
ERROR_REGISTRY_IO_FAILED = 1016
// The system has attempted to load or restore a file into the Registry, but the
// specified file is not in a Registry file format.
ERROR_NOT_REGISTRY_FILE = 1017
// Illegal operation attempted on a Registry key which has been marked for deletion.
ERROR_KEY_DELETED = 1018
// System could not allocate the required space in a Registry log.
ERROR_NO_LOG_SPACE = 1019
// Cannot create a symbolic link in a Registry key that already
// has subkeys or values.
ERROR_KEY_HAS_CHILDREN = 1020
// Cannot create a stable subkey under a volatile parent key.
ERROR_CHILD_MUST_BE_VOLATILE = 1021
// 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.
ERROR_NOTIFY_ENUM_DIR = 1022
// A stop control has been sent to a service which other running services
// are dependent on.
ERROR_DEPENDENT_SERVICES_RUNNING = 1051
// The requested control is not valid for this service
ERROR_INVALID_SERVICE_CONTROL = 1052
// The service did not respond to the start or control request in a timely
// fashion.
ERROR_SERVICE_REQUEST_TIMEOUT = 1053
// A thread could not be created for the service.
ERROR_SERVICE_NO_THREAD = 1054
// The service database is locked.
ERROR_SERVICE_DATABASE_LOCKED = 1055
// An instance of the service is already running.
ERROR_SERVICE_ALREADY_RUNNING = 1056
// The account name is invalid or does not exist.
ERROR_INVALID_SERVICE_ACCOUNT = 1057
// The specified service is disabled and cannot be started.
ERROR_SERVICE_DISABLED = 1058
// Circular service dependency was specified.
ERROR_CIRCULAR_DEPENDENCY = 1059
// The specified service does not exist as an installed service.
ERROR_SERVICE_DOES_NOT_EXIST = 1060
// The service cannot accept control messages at this time.
ERROR_SERVICE_CANNOT_ACCEPT_CTRL = 1061
// The service has not been started.
ERROR_SERVICE_NOT_ACTIVE = 1062
// The service process could not connect to the service controller.
ERROR_FAILED_SERVICE_CONTROLLER_ = 1063
// An exception occurred in the service when handling the control request.
ERROR_EXCEPTION_IN_SERVICE = 1064
// The database specified does not exist.
ERROR_DATABASE_DOES_NOT_EXIST = 1065
// The service has returned a service-specific error code.
ERROR_SERVICE_SPECIFIC_ERROR = 1066
// The process terminated unexpectedly.
ERROR_PROCESS_ABORTED = 1067
// The dependency service or group failed to start.
ERROR_SERVICE_DEPENDENCY_FAIL = 1068
// The service did not start due to a logon failure.
ERROR_SERVICE_LOGON_FAILED = 1069
// After starting, the service hung in a start-pending state.
ERROR_SERVICE_START_HANG = 1070
// The specified service database lock is invalid.
ERROR_INVALID_SERVICE_LOCK = 1071
// The specified service has been marked for deletion.
ERROR_SERVICE_MARKED_FOR_DELETE = 1072
// The specified service already exists.
ERROR_SERVICE_EXISTS = 1073
// The system is currently running with the last-known-good configuration.
ERROR_ALREADY_RUNNING_LKG = 1074
// The dependency service does not exist or has been marked for
// deletion.
ERROR_SERVICE_DEPENDENCY_DELETED = 1075
// The current boot has already been accepted for use as the
// last-known-good control set.
ERROR_BOOT_ALREADY_ACCEPTED = 1076
// No attempts to start the service have been made since the last boot.
ERROR_SERVICE_NEVER_STARTED = 1077
// The name is already in use as either a service name or a service display
// name.
ERROR_DUPLICATE_SERVICE_NAME = 1078
// The account specified for this service is different from the account
// specified for other services running in the same process.
ERROR_DIFFERENT_SERVICE_ACCOUNT = 1079
// The physical end of the tape has been reached.
ERROR_END_OF_MEDIA = 1100
// A tape access reached a filemark.
ERROR_FILEMARK_DETECTED = 1101
// Beginning of tape or partition was encountered.
ERROR_BEGINNING_OF_MEDIA = 1102
// A tape access reached the end of a set of files.
ERROR_SETMARK_DETECTED = 1103
// No more data is on the tape.
ERROR_NO_DATA_DETECTED = 1104
// Tape could not be partitioned.
ERROR_PARTITION_FAILURE = 1105
// When accessing a new tape of a multivolume partition, the current
// blocksize is incorrect.
ERROR_INVALID_BLOCK_LENGTH = 1106
// Tape partition information could not be found when loading a tape.
ERROR_DEVICE_NOT_PARTITIONED = 1107
// Unable to lock the media eject mechanism.
ERROR_UNABLE_TO_LOCK_MEDIA = 1108
// Unable to unload the media.
ERROR_UNABLE_TO_UNLOAD_MEDIA = 1109
// Media in drive may have changed.
ERROR_MEDIA_CHANGED = 1110
// The I/O bus was reset.
ERROR_BUS_RESET = 1111
// No media in drive.
ERROR_NO_MEDIA_IN_DRIVE = 1112
// No mapping for the Unicode character exists in the target multi-byte code page.
ERROR_NO_UNICODE_TRANSLATION = 1113
// A dynamic link library (DLL) initialization routine failed.
ERROR_DLL_INIT_FAILED = 1114
// A system shutdown is in progress.
ERROR_SHUTDOWN_IN_PROGRESS = 1115
// Unable to abort the system shutdown because no shutdown was in progress.
ERROR_NO_SHUTDOWN_IN_PROGRESS = 1116
// The request could not be performed because of an I/O device error.
ERROR_IO_DEVICE = 1117
// No serial device was successfully initialized. The serial driver will unload.
ERROR_SERIAL_NO_DEVICE = 1118
// Unable to open a device that was sharing an interrupt request (IRQ)
// with other devices. At least one other device that uses that IRQ
// was already opened.
ERROR_IRQ_BUSY = 1119
// A serial I/O operation was completed by another write to the serial port.
// (The IOCTL_SERIAL_XOFF_COUNTER reached zero.)
ERROR_MORE_WRITES = 1120
// A serial I/O operation completed because the time-out period expired.
// (The IOCTL_SERIAL_XOFF_COUNTER did not reach zero.)
ERROR_COUNTER_TIMEOUT = 1121
// No ID address mark was found on the floppy disk.
ERROR_FLOPPY_ID_MARK_NOT_FOUND = 1122
// Mismatch between the floppy disk sector ID field and the floppy disk
// controller track address.
ERROR_FLOPPY_WRONG_CYLINDER = 1123
// The floppy disk controller reported an error that is not recognized
// by the floppy disk driver.
ERROR_FLOPPY_UNKNOWN_ERROR = 1124
// The floppy disk controller returned inconsistent results in its registers.
ERROR_FLOPPY_BAD_REGISTERS = 1125
// While accessing the hard disk, a recalibrate operation failed, even after retries.
ERROR_DISK_RECALIBRATE_FAILED = 1126
// While accessing the hard disk, a disk operation failed even after retries.
ERROR_DISK_OPERATION_FAILED = 1127
// While accessing the hard disk, a disk controller reset was needed, but
// even that failed.
ERROR_DISK_RESET_FAILED = 1128
// Physical end of tape encountered.
ERROR_EOM_OVERFLOW = 1129
// Not enough server storage is available to process this command.
ERROR_NOT_ENOUGH_SERVER_MEMORY = 1130
// A potential deadlock condition has been detected.
ERROR_POSSIBLE_DEADLOCK = 1131
// The base address or the file offset specified does not have the proper
// alignment.
ERROR_MAPPED_ALIGNMENT = 1132
// An attempt to change the system power state was vetoed by another
// application or driver.
ERROR_SET_POWER_STATE_VETOED = 1140
// The system BIOS failed an attempt to change the system power state.
ERROR_SET_POWER_STATE_FAILED = 1141
// An attempt was made to create more links on a file than
// the file system supports.
ERROR_TOO_MANY_LINKS = 1142
// The specified program requires a newer version of Windows.
ERROR_OLD_WIN_VERSION = 1150
// The specified program is not a Windows or MS-DOS program.
ERROR_APP_WRONG_OS = 1151
// Cannot start more than one instance of the specified program.
ERROR_SINGLE_INSTANCE_APP = 1152
// The specified program was written for an older version of Windows.
ERROR_RMODE_APP = 1153
// One of the library files needed to run this application is damaged.
ERROR_INVALID_DLL = 1154
// No application is associated with the specified file for this operation.
ERROR_NO_ASSOCIATION = 1155
// An error occurred in sending the command to the application.
ERROR_DDE_FAIL = 1156
// One of the library files needed to run this application cannot be found.
ERROR_DLL_NOT_FOUND = 1157
// Winnet32 Status Codes
// The specified username is invalid.
ERROR_BAD_USERNAME = 2202
// This network connection does not exist.
ERROR_NOT_CONNECTED = 2250
// This network connection has files open or requests pending.
ERROR_OPEN_FILES = 2401
// Active connections still exist.
ERROR_ACTIVE_CONNECTIONS = 2402
// The device is in use by an active process and cannot be disconnected.
ERROR_DEVICE_IN_USE = 2404
// The specified device name is invalid.
ERROR_BAD_DEVICE = 1200
// The device is not currently connected but it is a remembered connection.
ERROR_CONNECTION_UNAVAIL = 1201
// An attempt was made to remember a device that had previously been remembered.
ERROR_DEVICE_ALREADY_REMEMBERED = 1202
// No network provider accepted the given network path.
ERROR_NO_NET_OR_BAD_PATH = 1203
// The specified network provider name is invalid.
ERROR_BAD_PROVIDER = 1204
// Unable to open the network connection profile.
ERROR_CANNOT_OPEN_PROFILE = 1205
// The network connection profile is corrupt.
ERROR_BAD_PROFILE = 1206
// Cannot enumerate a non-container.
ERROR_NOT_CONTAINER = 1207
// An extended error has occurred.
ERROR_EXTENDED_ERROR = 1208
// The format of the specified group name is invalid.