CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/windows_error.rb
Views: 11766
1
# -*- coding: binary -*-
2
3
#
4
# Windows system error codes (0-499)
5
#
6
# http://msdn.microsoft.com/en-us/library/ms681382%28v=VS.85%29.aspx
7
#
8
9
module Msf
10
11
class WindowsError
12
13
#
14
# Constants
15
#
16
SUCCESS = 0
17
INVALID_FUNCTION = 1
18
FILE_NOT_FOUND = 2
19
PATH_NOT_FOUND = 3
20
TOO_MANY_OPEN_FILES = 4
21
ACCESS_DENIED = 5
22
INVALID_HANDLE = 6
23
ARENA_TRASHED = 7
24
NOT_ENOUGH_MEMORY = 8
25
INVALID_BLOCK = 9
26
BAD_ENVIRONMENT = 10
27
BAD_FORMAT = 11
28
INVALID_ACCESS = 12
29
INVALID_DATA = 13
30
OUTOFMEMORY = 14
31
INVALID_DRIVE = 15
32
CURRENT_DIRECTORY = 16
33
NOT_SAME_DEVICE = 17
34
NO_MORE_FILES = 18
35
WRITE_PROTECT = 19
36
BAD_UNIT = 20
37
NOT_READY = 21
38
BAD_COMMAND = 22
39
CRC = 23
40
BAD_LENGTH = 24
41
SEEK = 25
42
NOT_DOS_DISK = 26
43
SECTOR_NOT_FOUND = 27
44
OUT_OF_PAPER = 28
45
WRITE_FAULT = 29
46
READ_FAULT = 30
47
GEN_FAILURE = 31
48
SHARING_VIOLATION = 32
49
LOCK_VIOLATION = 33
50
WRONG_DISK = 34
51
SHARING_BUFFER_EXCEEDED = 36
52
HANDLE_EOF = 38
53
HANDLE_DISK_FULL = 39
54
NOT_SUPPORTED = 50
55
REM_NOT_LIST = 51
56
DUP_NAME = 52
57
BAD_NETPATH = 53
58
NETWORK_BUSY = 54
59
DEV_NOT_EXIST = 55
60
TOO_MANY_CMDS = 56
61
ADAP_HDW_ERR = 57
62
BAD_NET_RESP = 58
63
UNEXP_NET_ERR = 59
64
BAD_REM_ADAP = 60
65
PRINTQ_FULL = 61
66
NO_SPOOL_SPACE = 62
67
PRINT_CANCELLED = 63
68
NETNAME_DELETED = 64
69
NETWORK_ACCESS_DENIED = 65
70
BAD_DEV_TYPE = 66
71
BAD_NET_NAME = 67
72
TOO_MANY_NAMES = 68
73
TOO_MANY_SESS = 69
74
SHARING_PAUSED = 70
75
REQ_NOT_ACCEP = 71
76
REDIR_PAUSED = 72
77
FILE_EXISTS = 80
78
CANNOT_MAKE = 82
79
FAIL_I24 = 83
80
OUT_OF_STRUCTURES = 84
81
ALREADY_ASSIGNED = 85
82
INVALID_PASSWORD = 86
83
INVALID_PARAMETER = 87
84
NET_WRITE_FAULT = 88
85
NO_PROC_SLOTS = 89
86
87
TOO_MANY_SEMAPHORES = 100
88
EXCL_SEM_ALREADY_OWNED = 101
89
SEM_IS_SET = 102
90
TOO_MANY_SEM_REQUESTS = 103
91
INVALID_AT_INTERRUPT_TIME = 104
92
SEM_OWNER_DIED = 105
93
SEM_USER_LIMIT = 106
94
DISK_CHANGE = 107
95
DRIVE_LOCKED = 108
96
BROKEN_PIPE = 109
97
OPEN_FAILED = 110
98
BUFFER_OVERFLOW = 111
99
DISK_FULL = 112
100
NO_MORE_SEARCH_HANDLES = 113
101
INVALID_TARGET_HANDLE = 114
102
INVALID_CATEGORY = 117
103
INVALID_VERIFY_SWITCH = 118
104
BAD_DRIVER_LEVEL = 119
105
CALL_NOT_IMPLEMENTED = 120
106
SEM_TIMEOUT = 121
107
INSUFFICIENT_BUFFER = 122
108
INVALID_NAME = 123
109
INVALID_LEVEL = 124
110
NO_VOLUME_LABEL = 125
111
MOD_NOT_FOUND = 126
112
PROC_NOT_FOUND = 127
113
WAIT_NO_CHILDREN = 128
114
CHILD_NOT_COMPLETE = 129
115
DIRECT_ACCESS_HANDLE = 130
116
NEGATIVE_SEEK = 131
117
SEEK_ON_DEVICE = 132
118
IS_JOIN_TARGET = 133
119
IS_JOINED = 134
120
IS_SUBSTED = 135
121
NOT_JOINED = 136
122
NOT_SUBSTED = 137
123
JOIN_TO_JOIN = 138
124
SUBST_TO_SUBST = 139
125
JOIN_TO_SUBST = 140
126
SUBST_TO_JOIN = 141
127
BUSY_DRIVE = 142
128
SAME_DRIVE = 143
129
DIR_NOT_ROOT = 144
130
DIR_NOT_EMPTY = 145
131
IS_SUBST_PATH = 146
132
IS_JOIN_PATH = 147
133
PATH_BUSY = 148
134
IS_SUBST_TARGET = 149
135
SYSTEM_TRACE = 150
136
INVALID_EVENT_COUNT = 151
137
TOO_MANY_MUXWAITERS = 152
138
INVALID_LIST_FORMAT = 153
139
LABEL_TOO_LONG = 154
140
TOO_MANY_TCBS = 155
141
SIGNAL_REFUSED = 156
142
DISCARDED = 157
143
NOT_LOCKED = 158
144
BAD_THREADID_ADDR = 159
145
BAD_ARGUMENTS = 160
146
BAD_PATHNAME = 161
147
SIGNAL_PENDING = 162
148
MAX_THRDS_REACHED = 164
149
LOCK_FAILED = 167
150
BUSY = 170
151
CANCEL_VIOLATION = 173
152
ATOMIC_LOCKS_NOT_SUPPORTED = 174
153
INVALID_SEGMENT_NUMBER = 180
154
INVALID_ORDINAL = 182
155
ALREADY_EXISTS = 183
156
INVALID_FLAG_NUMBER = 186
157
SEM_NOT_FOUND = 187
158
INVALID_STARTING_CODESEG = 188
159
INVALID_STACKSEG = 189
160
INVALID_MODULETYPE = 190
161
INVALID_EXE_SIGNATURE = 191
162
EXE_MARKED_INVALID = 192
163
BAD_EXE_FORMAT = 193
164
ITERATED_DATA_EXCEEDS_64k = 194
165
INVALID_MINALLOCSIZE = 195
166
DYNLINK_FROM_INVALID_RING = 196
167
IOPL_NOT_ENABLED = 197
168
INVALID_SEGDPL = 198
169
AUTODATASEG_EXCEEDS_64k = 199
170
171
RING2SEG_MUST_BE_MOVABLE = 200
172
RELOC_CHAIN_XEEDS_SEGLIM = 201
173
INFLOOP_IN_RELOC_CHAIN = 202
174
ENVVAR_NOT_FOUND = 203
175
NO_SIGNAL_SENT = 205
176
FILENAME_EXCED_RANGE = 206
177
RING2_STACK_IN_USE = 207
178
META_EXPANSION_TOO_LONG = 208
179
INVALID_SIGNAL_NUMBER = 209
180
THREAD_1_INACTIVE = 210
181
LOCKED = 212
182
TOO_MANY_MODULES = 214
183
NESTING_NOT_ALLOWED = 215
184
EXE_MACHINE_TYPE_MISMATCH = 216
185
EXE_CANNOT_MODIFY_SIGNED_BINARY = 217
186
EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY = 218
187
FILE_CHECKED_OUT = 220
188
CHECKOUT_REQUIRED = 221
189
BAD_FILE_TYPE = 222
190
FILE_TOO_LARGE = 223
191
FORMS_AUTH_REQUIRED = 224
192
VIRUS_INFECTED = 225
193
VIRUS_DELETED = 226
194
PIPE_LOCAL = 229
195
BAD_PIPE = 230
196
PIPE_BUSY = 231
197
NO_DATA = 232
198
PIPE_NOT_CONNECTED = 233
199
MORE_DATA = 234
200
VC_DISCONNECTED = 240
201
INVALID_EA_NAME = 254
202
EA_LIST_INCONSISTENT = 255
203
WAIT_TIMEOUT = 258
204
NO_MORE_ITEMS = 259
205
CANNOT_COPY = 266
206
DIRECTORY = 267
207
EAS_DIDNT_FIT = 275
208
EA_FILE_CORRUPT = 276
209
EA_TABLE_FULL = 277
210
INVALID_EA_HANDLE = 278
211
EAS_NOT_SUPPORTED = 282
212
NOT_OWNER = 288
213
TOO_MANY_POSTS = 298
214
PARTIAL_COPY = 299
215
216
OPLOCK_NOT_GRANTED = 300
217
INVALID_OPLOCK_PROTOCOL = 301
218
DISK_TOO_FRAGMENTED = 302
219
DELETE_PENDING = 303
220
INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING = 304
221
SHORT_NAMES_NOT_ENABLED_ON_VOLUME = 305
222
SECURITY_STREAM_IS_INCONSISTENT = 306
223
INVALID_LOCK_RANGE = 307
224
IMAGE_SUBSYSTEM_NOT_PRESENT = 308
225
NOTIFICATION_GUID_ALREADY_DEFINED = 309
226
MR_MID_NOT_FOUND = 317
227
SCOPE_NOT_FOUND = 318
228
FAIL_NOACTION_REBOOT = 350
229
FAIL_SHUTDOWN = 351
230
FAIL_RESTART = 352
231
MAX_SESSIONS_REACHED = 353
232
233
THREAD_MODE_ALREADY_BACKGROUND = 400
234
THREAD_MODE_NOT_BACKGROUND = 401
235
PROCESS_MODE_ALREADY_BACKGROUND = 402
236
PROCESS_MODE_NOT_BACKGROUND = 403
237
INVALID_ADDRESS = 487
238
239
# Socket stuff
240
ADDRESS_IN_USE = 10048
241
242
#
243
# Return a string representation of the constant for a number
244
#
245
def self.const_name(code)
246
self.constants.each { |c|
247
return c.to_s if self.const_get(c) == code
248
}
249
return nil
250
end
251
252
#
253
# Return the description of an error code
254
def self.description(code)
255
256
case code
257
when SUCCESS
258
"The operation completed successfully."
259
when INVALID_FUNCTION
260
"Incorrect function."
261
when FILE_NOT_FOUND
262
"The system cannot find the file specified."
263
when PATH_NOT_FOUND
264
"The system cannot find the path specified."
265
when TOO_MANY_OPEN_FILES
266
"The system cannot open the file."
267
when ACCESS_DENIED
268
"Access is denied."
269
when INVALID_HANDLE
270
"The handle is invalid."
271
when ARENA_TRASHED
272
"The storage control blocks were destroyed."
273
when NOT_ENOUGH_MEMORY
274
"Not enough storage is available to process this command."
275
when INVALID_BLOCK
276
"The storage control block address is invalid."
277
when BAD_ENVIRONMENT
278
"The environment is incorrect."
279
when BAD_FORMAT
280
"An attempt was made to load a program with an incorrect format."
281
when INVALID_ACCESS
282
"The access code is invalid."
283
when INVALID_DATA
284
"The data is invalid."
285
when OUTOFMEMORY
286
"Not enough storage is available to complete this operation."
287
when INVALID_DRIVE
288
"The system cannot find the drive specified."
289
when CURRENT_DIRECTORY
290
"The directory cannot be removed."
291
when NOT_SAME_DEVICE
292
"The system cannot move the file to a different disk drive."
293
when NO_MORE_FILES
294
"There are no more files."
295
when WRITE_PROTECT
296
"The media is write protected."
297
when BAD_UNIT
298
"The system cannot find the device specified."
299
when NOT_READY
300
"The device is not ready."
301
when BAD_COMMAND
302
"The device does not recognize the command."
303
when CRC
304
"Data error ;."
305
when BAD_LENGTH
306
"The program issued a command but the command length is incorrect."
307
when SEEK
308
"The drive cannot locate a specific area or track on the disk."
309
when NOT_DOS_DISK
310
"The specified disk or diskette cannot be accessed."
311
when SECTOR_NOT_FOUND
312
"The drive cannot find the sector requested."
313
when OUT_OF_PAPER
314
"The printer is out of paper."
315
when WRITE_FAULT
316
"The system cannot write to the specified device."
317
when READ_FAULT
318
"The system cannot read from the specified device."
319
when GEN_FAILURE
320
"A device attached to the system is not functioning."
321
when SHARING_VIOLATION
322
"The process cannot access the file because it is being used by another process."
323
when LOCK_VIOLATION
324
"The process cannot access the file because another process has locked a portion of the file."
325
when WRONG_DISK
326
"The wrong diskette is in the drive. Insert %2 ; into drive %1."
327
when SHARING_BUFFER_EXCEEDED
328
"Too many files opened for sharing."
329
when HANDLE_EOF
330
"Reached the end of the file."
331
when HANDLE_DISK_FULL
332
"The disk is full."
333
when NOT_SUPPORTED
334
"The request is not supported."
335
when REM_NOT_LIST
336
"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."
337
when DUP_NAME
338
"You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name."
339
when BAD_NETPATH
340
"The network path was not found."
341
when NETWORK_BUSY
342
"The network is busy."
343
when DEV_NOT_EXIST
344
"The specified network resource or device is no longer available."
345
when TOO_MANY_CMDS
346
"The network BIOS command limit has been reached."
347
when ADAP_HDW_ERR
348
"A network adapter hardware error occurred."
349
when BAD_NET_RESP
350
"The specified server cannot perform the requested operation."
351
when UNEXP_NET_ERR
352
"An unexpected network error occurred."
353
when BAD_REM_ADAP
354
"The remote adapter is not compatible."
355
when PRINTQ_FULL
356
"The printer queue is full."
357
when NO_SPOOL_SPACE
358
"Space to store the file waiting to be printed is not available on the server."
359
when PRINT_CANCELLED
360
"Your file waiting to be printed was deleted."
361
when NETNAME_DELETED
362
"The specified network name is no longer available."
363
when NETWORK_ACCESS_DENIED
364
"Network access is denied."
365
when BAD_DEV_TYPE
366
"The network resource type is not correct."
367
when BAD_NET_NAME
368
"The network name cannot be found."
369
when TOO_MANY_NAMES
370
"The name limit for the local computer network adapter card was exceeded."
371
when TOO_MANY_SESS
372
"The network BIOS session limit was exceeded."
373
when SHARING_PAUSED
374
"The remote server has been paused or is in the process of being started."
375
when REQ_NOT_ACCEP
376
"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."
377
when REDIR_PAUSED
378
"The specified printer or disk device has been paused."
379
when FILE_EXISTS
380
"The file exists."
381
when CANNOT_MAKE
382
"The directory or file cannot be created."
383
when FAIL_I24
384
"Fail on INT 24."
385
when OUT_OF_STRUCTURES
386
"Storage to process this request is not available."
387
when ALREADY_ASSIGNED
388
"The local device name is already in use."
389
when INVALID_PASSWORD
390
"The specified network password is not correct."
391
when INVALID_PARAMETER
392
"The parameter is incorrect."
393
when NET_WRITE_FAULT
394
"A write fault occurred on the network."
395
when NO_PROC_SLOTS
396
"The system cannot start another process at this time."
397
when TOO_MANY_SEMAPHORES
398
"Cannot create another system semaphore."
399
when EXCL_SEM_ALREADY_OWNED
400
"The exclusive semaphore is owned by another process."
401
when SEM_IS_SET
402
"The semaphore is set and cannot be closed."
403
when TOO_MANY_SEM_REQUESTS
404
"The semaphore cannot be set again."
405
when INVALID_AT_INTERRUPT_TIME
406
"Cannot request exclusive semaphores at interrupt time."
407
when SEM_OWNER_DIED
408
"The previous ownership of this semaphore has ended."
409
when SEM_USER_LIMIT
410
"Insert the diskette for drive %1."
411
when DISK_CHANGE
412
"The program stopped because an alternate diskette was not inserted."
413
when DRIVE_LOCKED
414
"The disk is in use or locked by another process."
415
when BROKEN_PIPE
416
"The pipe has been ended."
417
when OPEN_FAILED
418
"The system cannot open the device or file specified."
419
when BUFFER_OVERFLOW
420
"The file name is too long."
421
when DISK_FULL
422
"There is not enough space on the disk."
423
when NO_MORE_SEARCH_HANDLES
424
"No more internal file identifiers available."
425
when INVALID_TARGET_HANDLE
426
"The target internal file identifier is incorrect."
427
when INVALID_CATEGORY
428
"The IOCTL call made by the application program is not correct."
429
when INVALID_VERIFY_SWITCH
430
"The verify-on-write switch parameter value is not correct."
431
when BAD_DRIVER_LEVEL
432
"The system does not support the command requested."
433
when CALL_NOT_IMPLEMENTED
434
"This function is not supported on this system."
435
when SEM_TIMEOUT
436
"The semaphore timeout period has expired."
437
when INSUFFICIENT_BUFFER
438
"The data area passed to a system call is too small."
439
when INVALID_NAME
440
"The filename, directory name, or volume label syntax is incorrect."
441
when INVALID_LEVEL
442
"The system call level is not correct."
443
when NO_VOLUME_LABEL
444
"The disk has no volume label."
445
when MOD_NOT_FOUND
446
"The specified module could not be found."
447
when PROC_NOT_FOUND
448
"The specified procedure could not be found."
449
when WAIT_NO_CHILDREN
450
"There are no child processes to wait for."
451
when CHILD_NOT_COMPLETE
452
"The %1 application cannot be run in Win32 mode."
453
when DIRECT_ACCESS_HANDLE
454
"Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O."
455
when NEGATIVE_SEEK
456
"An attempt was made to move the file pointer before the beginning of the file."
457
when SEEK_ON_DEVICE
458
"The file pointer cannot be set on the specified device or file."
459
when IS_JOIN_TARGET
460
"A JOIN or SUBST command cannot be used for a drive that contains previously joined drives."
461
when IS_JOINED
462
"An attempt was made to use a JOIN or SUBST command on a drive that has already been joined."
463
when IS_SUBSTED
464
"An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted."
465
when NOT_JOINED
466
"The system tried to delete the JOIN of a drive that is not joined."
467
when NOT_SUBSTED
468
"The system tried to delete the substitution of a drive that is not substituted."
469
when JOIN_TO_JOIN
470
"The system tried to join a drive to a directory on a joined drive."
471
when SUBST_TO_SUBST
472
"The system tried to substitute a drive to a directory on a substituted drive."
473
when JOIN_TO_SUBST
474
"The system tried to join a drive to a directory on a substituted drive."
475
when SUBST_TO_JOIN
476
"The system tried to SUBST a drive to a directory on a joined drive."
477
when BUSY_DRIVE
478
"The system cannot perform a JOIN or SUBST at this time."
479
when SAME_DRIVE
480
"The system cannot join or substitute a drive to or for a directory on the same drive."
481
when DIR_NOT_ROOT
482
"The directory is not a subdirectory of the root directory."
483
when DIR_NOT_EMPTY
484
"The directory is not empty."
485
when IS_SUBST_PATH
486
"The path specified is being used in a substitute."
487
when IS_JOIN_PATH
488
"Not enough resources are available to process this command."
489
when PATH_BUSY
490
"The path specified cannot be used at this time."
491
when IS_SUBST_TARGET
492
"An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute."
493
when SYSTEM_TRACE
494
"System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed."
495
when INVALID_EVENT_COUNT
496
"The number of specified semaphore events for DosMuxSemWait is not correct."
497
when TOO_MANY_MUXWAITERS
498
"DosMuxSemWait did not execute; too many semaphores are already set."
499
when INVALID_LIST_FORMAT
500
"The DosMuxSemWait list is not correct."
501
when LABEL_TOO_LONG
502
"The volume label you entered exceeds the label character limit of the target file system."
503
when TOO_MANY_TCBS
504
"Cannot create another thread."
505
when SIGNAL_REFUSED
506
"The recipient process has refused the signal."
507
when DISCARDED
508
"The segment is already discarded and cannot be locked."
509
when NOT_LOCKED
510
"The segment is already unlocked."
511
when BAD_THREADID_ADDR
512
"The address for the thread ID is not correct."
513
when BAD_ARGUMENTS
514
"One or more arguments are not correct."
515
when BAD_PATHNAME
516
"The specified path is invalid."
517
when SIGNAL_PENDING
518
"A signal is already pending."
519
when MAX_THRDS_REACHED
520
"No more threads can be created in the system."
521
when LOCK_FAILED
522
"Unable to lock a region of a file."
523
when BUSY
524
"The requested resource is in use."
525
when CANCEL_VIOLATION
526
"A lock request was not outstanding for the supplied cancel region."
527
when ATOMIC_LOCKS_NOT_SUPPORTED
528
"The file system does not support atomic changes to the lock type."
529
when INVALID_SEGMENT_NUMBER
530
"The system detected a segment number that was not correct."
531
when INVALID_ORDINAL
532
"The operating system cannot run %1."
533
when ALREADY_EXISTS
534
"Cannot create a file when that file already exists."
535
when INVALID_FLAG_NUMBER
536
"The flag passed is not correct."
537
when SEM_NOT_FOUND
538
"The specified system semaphore name was not found."
539
when INVALID_STARTING_CODESEG
540
"The operating system cannot run %1."
541
when INVALID_STACKSEG
542
"The operating system cannot run %1."
543
when INVALID_MODULETYPE
544
"The operating system cannot run %1."
545
when INVALID_EXE_SIGNATURE
546
"Cannot run %1 in Win32 mode."
547
when EXE_MARKED_INVALID
548
"The operating system cannot run %1."
549
when BAD_EXE_FORMAT
550
"is not a valid Win32 application."
551
when ITERATED_DATA_EXCEEDS_64k
552
"The operating system cannot run %1."
553
when INVALID_MINALLOCSIZE
554
"The operating system cannot run %1."
555
when DYNLINK_FROM_INVALID_RING
556
"The operating system cannot run this application program."
557
when IOPL_NOT_ENABLED
558
"The operating system is not presently configured to run this application."
559
when INVALID_SEGDPL
560
"The operating system cannot run %1."
561
when AUTODATASEG_EXCEEDS_64k
562
"The operating system cannot run this application program."
563
when RING2SEG_MUST_BE_MOVABLE
564
"The code segment cannot be greater than or equal to 64K."
565
when RELOC_CHAIN_XEEDS_SEGLIM
566
"The operating system cannot run %1."
567
when INFLOOP_IN_RELOC_CHAIN
568
"The operating system cannot run %1."
569
when ENVVAR_NOT_FOUND
570
"The system could not find the environment option that was entered."
571
when NO_SIGNAL_SENT
572
"No process in the command subtree has a signal handler."
573
when FILENAME_EXCED_RANGE
574
"The filename or extension is too long."
575
when RING2_STACK_IN_USE
576
"The ring 2 stack is in use."
577
when META_EXPANSION_TOO_LONG
578
"The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified."
579
when INVALID_SIGNAL_NUMBER
580
"The signal being posted is not correct."
581
when THREAD_1_INACTIVE
582
"The signal handler cannot be set."
583
when LOCKED
584
"The segment is locked and cannot be reallocated."
585
when TOO_MANY_MODULES
586
"Too many dynamic-link modules are attached to this program or dynamic-link module."
587
when NESTING_NOT_ALLOWED
588
"Cannot nest calls to LoadModule."
589
when EXE_MACHINE_TYPE_MISMATCH
590
"The version of %1 is not compatible with the version you're running. Check your computer's system information to see whether you need a x86 ; or x64 ; version of the program, and then contact the software publisher."
591
when EXE_CANNOT_MODIFY_SIGNED_BINARY
592
"The image file %1 is signed, unable to modify."
593
when EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY
594
"The image file %1 is strong signed, unable to modify."
595
when FILE_CHECKED_OUT
596
"This file is checked out or locked for editing by another user."
597
when CHECKOUT_REQUIRED
598
"The file must be checked out before saving changes."
599
when BAD_FILE_TYPE
600
"The file type being saved or retrieved has been blocked."
601
when FILE_TOO_LARGE
602
"The file size exceeds the limit allowed and cannot be saved."
603
when FORMS_AUTH_REQUIRED
604
"Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically."
605
when VIRUS_INFECTED
606
"Operation did not complete successfully because the file contains a virus."
607
when VIRUS_DELETED
608
"This file contains a virus and cannot be opened. Due to the nature of this virus, the file has been removed from this location."
609
when PIPE_LOCAL
610
"The pipe is local."
611
when BAD_PIPE
612
"The pipe state is invalid."
613
when PIPE_BUSY
614
"All pipe instances are busy."
615
when NO_DATA
616
"The pipe is being closed."
617
when PIPE_NOT_CONNECTED
618
"No process is on the other end of the pipe."
619
when MORE_DATA
620
"More data is available."
621
when VC_DISCONNECTED
622
"The session was canceled."
623
when INVALID_EA_NAME
624
"The specified extended attribute name was invalid."
625
when EA_LIST_INCONSISTENT
626
"The extended attributes are inconsistent."
627
when WAIT_TIMEOUT
628
"The wait operation timed out."
629
when NO_MORE_ITEMS
630
"No more data is available."
631
when CANNOT_COPY
632
"The copy functions cannot be used."
633
when DIRECTORY
634
"The directory name is invalid."
635
when EAS_DIDNT_FIT
636
"The extended attributes did not fit in the buffer."
637
when EA_FILE_CORRUPT
638
"The extended attribute file on the mounted file system is corrupt."
639
when EA_TABLE_FULL
640
"The extended attribute table file is full."
641
when INVALID_EA_HANDLE
642
"The specified extended attribute handle is invalid."
643
when EAS_NOT_SUPPORTED
644
"The mounted file system does not support extended attributes."
645
when NOT_OWNER
646
"Attempt to release mutex not owned by caller."
647
when TOO_MANY_POSTS
648
"Too many posts were made to a semaphore."
649
when PARTIAL_COPY
650
"Only part of a ReadProcessMemory or WriteProcessMemory request was completed."
651
when OPLOCK_NOT_GRANTED
652
"The oplock request is denied."
653
when INVALID_OPLOCK_PROTOCOL
654
"An invalid oplock acknowledgment was received by the system."
655
when DISK_TOO_FRAGMENTED
656
"The volume is too fragmented to complete this operation."
657
when DELETE_PENDING
658
"The file cannot be opened because it is in the process of being deleted."
659
when INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING
660
"Short name settings may not be changed on this volume due to the global registry setting."
661
when SHORT_NAMES_NOT_ENABLED_ON_VOLUME
662
"Short names are not enabled on this volume."
663
when SECURITY_STREAM_IS_INCONSISTENT
664
"The security stream for the given volume is in an inconsistent state. Please run CHKDSK on the volume."
665
when INVALID_LOCK_RANGE
666
"A requested file lock operation cannot be processed due to an invalid byte range."
667
when IMAGE_SUBSYSTEM_NOT_PRESENT
668
"The subsystem needed to support the image type is not present."
669
when NOTIFICATION_GUID_ALREADY_DEFINED
670
"The specified file already has a notification GUID associated with it."
671
when MR_MID_NOT_FOUND
672
"The system cannot find message text for message number 0x%1 in the message file for %2."
673
when SCOPE_NOT_FOUND
674
"The scope specified was not found."
675
when FAIL_NOACTION_REBOOT
676
"No action was taken as a system reboot is required."
677
when FAIL_SHUTDOWN
678
"The shutdown operation failed."
679
when FAIL_RESTART
680
"The restart operation failed."
681
when MAX_SESSIONS_REACHED
682
"The maximum number of sessions has been reached."
683
when THREAD_MODE_ALREADY_BACKGROUND
684
"The thread is already in background processing mode."
685
when THREAD_MODE_NOT_BACKGROUND
686
"The thread is not in background processing mode."
687
when PROCESS_MODE_ALREADY_BACKGROUND
688
"The process is already in background processing mode."
689
when PROCESS_MODE_NOT_BACKGROUND
690
"The process is not in background processing mode."
691
when INVALID_ADDRESS
692
"Attempt to access invalid address."
693
when ADDRESS_IN_USE
694
"The address/port is already in use."
695
else
696
"#{code}"
697
end
698
end
699
700
end
701
702
end
703
704