Sie sind auf Seite 1von 39

4/20/2016

System Error Codes (0-499) (Windows)

System Error Codes (0-499)


Note
The information on this page is intended to be used by programmers so that the software they write can
better deal with errors. If you are an end-user that is experiencing difficulty with an application you are
installing or running, contact customer support for the software that is displaying the error message. To
obtain support for a Microsoft product, go to http://support.microsoft.com.
The System Error Codes are very broad. Each one can occur in one of many hundreds of locations in the
system. Consequently the descriptions of these codes cannot be very specific. Use of these codes requires
some amount of investigation and analysis. You need to note both the programmatic and the run-time
context in which these errors occur. Because these codes are defined in WinError.h for anyone to use,
sometimes the codes are returned by non-system software. Sometimes the code is returned by a function
deep in the stack and far removed from your code that is handling the error.
The following list describes system error codes (errors 0 to 499). They are returned by the GetLastError
function when many functions fail. To retrieve the description text for the error in your application, use the
FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag.

ERROR_SUCCESS
0 (0x0)
The operation completed successfully.
ERROR_INVALID_FUNCTION
1 (0x1)
Incorrect function.
ERROR_FILE_NOT_FOUND
2 (0x2)
The system cannot find the file specified.
ERROR_PATH_NOT_FOUND
3 (0x3)
The system cannot find the path specified.
ERROR_TOO_MANY_OPEN_FILES
4 (0x4)
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

1/39

4/20/2016

System Error Codes (0-499) (Windows)

The system cannot open the file.


ERROR_ACCESS_DENIED
5 (0x5)
Access is denied.
ERROR_INVALID_HANDLE
6 (0x6)
The handle is invalid.
ERROR_ARENA_TRASHED
7 (0x7)
The storage control blocks were destroyed.
ERROR_NOT_ENOUGH_MEMORY
8 (0x8)
Not enough storage is available to process this command.
ERROR_INVALID_BLOCK
9 (0x9)
The storage control block address is invalid.
ERROR_BAD_ENVIRONMENT
10 (0xA)
The environment is incorrect.
ERROR_BAD_FORMAT
11 (0xB)
An attempt was made to load a program with an incorrect format.
ERROR_INVALID_ACCESS
12 (0xC)
The access code is invalid.
ERROR_INVALID_DATA
13 (0xD)
The data is invalid.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

2/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_OUTOFMEMORY
14 (0xE)
Not enough storage is available to complete this operation.
ERROR_INVALID_DRIVE
15 (0xF)
The system cannot find the drive specified.
ERROR_CURRENT_DIRECTORY
16 (0x10)
The directory cannot be removed.
ERROR_NOT_SAME_DEVICE
17 (0x11)
The system cannot move the file to a different disk drive.
ERROR_NO_MORE_FILES
18 (0x12)
There are no more files.
ERROR_WRITE_PROTECT
19 (0x13)
The media is write protected.
ERROR_BAD_UNIT
20 (0x14)
The system cannot find the device specified.
ERROR_NOT_READY
21 (0x15)
The device is not ready.
ERROR_BAD_COMMAND
22 (0x16)
The device does not recognize the command.
ERROR_CRC

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

3/39

4/20/2016

System Error Codes (0-499) (Windows)

23 (0x17)
Data error (cyclic redundancy check).
ERROR_BAD_LENGTH
24 (0x18)
The program issued a command but the command length is incorrect.
ERROR_SEEK
25 (0x19)
The drive cannot locate a specific area or track on the disk.
ERROR_NOT_DOS_DISK
26 (0x1A)
The specified disk or diskette cannot be accessed.
ERROR_SECTOR_NOT_FOUND
27 (0x1B)
The drive cannot find the sector requested.
ERROR_OUT_OF_PAPER
28 (0x1C)
The printer is out of paper.
ERROR_WRITE_FAULT
29 (0x1D)
The system cannot write to the specified device.
ERROR_READ_FAULT
30 (0x1E)
The system cannot read from the specified device.
ERROR_GEN_FAILURE
31 (0x1F)
A device attached to the system is not functioning.
ERROR_SHARING_VIOLATION
32 (0x20)
The process cannot access the file because it is being used by another process.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

4/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_LOCK_VIOLATION
33 (0x21)
The process cannot access the file because another process has locked a portion of the file.
ERROR_WRONG_DISK
34 (0x22)
The wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1.
ERROR_SHARING_BUFFER_EXCEEDED
36 (0x24)
Too many files opened for sharing.
ERROR_HANDLE_EOF
38 (0x26)
Reached the end of the file.
ERROR_HANDLE_DISK_FULL
39 (0x27)
The disk is full.
ERROR_NOT_SUPPORTED
50 (0x32)
The request is not supported.
ERROR_REM_NOT_LIST
51 (0x33)
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.
ERROR_DUP_NAME
52 (0x34)
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.
ERROR_BAD_NETPATH
53 (0x35)
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

5/39

4/20/2016

System Error Codes (0-499) (Windows)

The network path was not found.


ERROR_NETWORK_BUSY
54 (0x36)
The network is busy.
ERROR_DEV_NOT_EXIST
55 (0x37)
The specified network resource or device is no longer available.
ERROR_TOO_MANY_CMDS
56 (0x38)
The network BIOS command limit has been reached.
ERROR_ADAP_HDW_ERR
57 (0x39)
A network adapter hardware error occurred.
ERROR_BAD_NET_RESP
58 (0x3A)
The specified server cannot perform the requested operation.
ERROR_UNEXP_NET_ERR
59 (0x3B)
An unexpected network error occurred.
ERROR_BAD_REM_ADAP
60 (0x3C)
The remote adapter is not compatible.
ERROR_PRINTQ_FULL
61 (0x3D)
The printer queue is full.
ERROR_NO_SPOOL_SPACE
62 (0x3E)
Space to store the file waiting to be printed is not available on the server.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

6/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_PRINT_CANCELLED
63 (0x3F)
Your file waiting to be printed was deleted.
ERROR_NETNAME_DELETED
64 (0x40)
The specified network name is no longer available.
ERROR_NETWORK_ACCESS_DENIED
65 (0x41)
Network access is denied.
ERROR_BAD_DEV_TYPE
66 (0x42)
The network resource type is not correct.
ERROR_BAD_NET_NAME
67 (0x43)
The network name cannot be found.
ERROR_TOO_MANY_NAMES
68 (0x44)
The name limit for the local computer network adapter card was exceeded.
ERROR_TOO_MANY_SESS
69 (0x45)
The network BIOS session limit was exceeded.
ERROR_SHARING_PAUSED
70 (0x46)
The remote server has been paused or is in the process of being started.
ERROR_REQ_NOT_ACCEP
71 (0x47)
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_REDIR_PAUSED
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

7/39

4/20/2016

System Error Codes (0-499) (Windows)

72 (0x48)
The specified printer or disk device has been paused.
ERROR_FILE_EXISTS
80 (0x50)
The file exists.
ERROR_CANNOT_MAKE
82 (0x52)
The directory or file cannot be created.
ERROR_FAIL_I24
83 (0x53)
Fail on INT 24.
ERROR_OUT_OF_STRUCTURES
84 (0x54)
Storage to process this request is not available.
ERROR_ALREADY_ASSIGNED
85 (0x55)
The local device name is already in use.
ERROR_INVALID_PASSWORD
86 (0x56)
The specified network password is not correct.
ERROR_INVALID_PARAMETER
87 (0x57)
The parameter is incorrect.
ERROR_NET_WRITE_FAULT
88 (0x58)
A write fault occurred on the network.
ERROR_NO_PROC_SLOTS
89 (0x59)
The system cannot start another process at this time.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

8/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_TOO_MANY_SEMAPHORES
100 (0x64)
Cannot create another system semaphore.
ERROR_EXCL_SEM_ALREADY_OWNED
101 (0x65)
The exclusive semaphore is owned by another process.
ERROR_SEM_IS_SET
102 (0x66)
The semaphore is set and cannot be closed.
ERROR_TOO_MANY_SEM_REQUESTS
103 (0x67)
The semaphore cannot be set again.
ERROR_INVALID_AT_INTERRUPT_TIME
104 (0x68)
Cannot request exclusive semaphores at interrupt time.
ERROR_SEM_OWNER_DIED
105 (0x69)
The previous ownership of this semaphore has ended.
ERROR_SEM_USER_LIMIT
106 (0x6A)
Insert the diskette for drive %1.
ERROR_DISK_CHANGE
107 (0x6B)
The program stopped because an alternate diskette was not inserted.
ERROR_DRIVE_LOCKED
108 (0x6C)
The disk is in use or locked by another process.
ERROR_BROKEN_PIPE
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

9/39

4/20/2016

System Error Codes (0-499) (Windows)

109 (0x6D)
The pipe has been ended.
ERROR_OPEN_FAILED
110 (0x6E)
The system cannot open the device or file specified.
ERROR_BUFFER_OVERFLOW
111 (0x6F)
The file name is too long.
ERROR_DISK_FULL
112 (0x70)
There is not enough space on the disk.
ERROR_NO_MORE_SEARCH_HANDLES
113 (0x71)
No more internal file identifiers available.
ERROR_INVALID_TARGET_HANDLE
114 (0x72)
The target internal file identifier is incorrect.
ERROR_INVALID_CATEGORY
117 (0x75)
The IOCTL call made by the application program is not correct.
ERROR_INVALID_VERIFY_SWITCH
118 (0x76)
The verify-on-write switch parameter value is not correct.
ERROR_BAD_DRIVER_LEVEL
119 (0x77)
The system does not support the command requested.
ERROR_CALL_NOT_IMPLEMENTED
120 (0x78)
This function is not supported on this system.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

10/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_SEM_TIMEOUT
121 (0x79)
The semaphore timeout period has expired.
ERROR_INSUFFICIENT_BUFFER
122 (0x7A)
The data area passed to a system call is too small.
ERROR_INVALID_NAME
123 (0x7B)
The filename, directory name, or volume label syntax is incorrect.
ERROR_INVALID_LEVEL
124 (0x7C)
The system call level is not correct.
ERROR_NO_VOLUME_LABEL
125 (0x7D)
The disk has no volume label.
ERROR_MOD_NOT_FOUND
126 (0x7E)
The specified module could not be found.
ERROR_PROC_NOT_FOUND
127 (0x7F)
The specified procedure could not be found.
ERROR_WAIT_NO_CHILDREN
128 (0x80)
There are no child processes to wait for.
ERROR_CHILD_NOT_COMPLETE
129 (0x81)
The %1 application cannot be run in Win32 mode.
ERROR_DIRECT_ACCESS_HANDLE
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

11/39

4/20/2016

System Error Codes (0-499) (Windows)

130 (0x82)
Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.
ERROR_NEGATIVE_SEEK
131 (0x83)
An attempt was made to move the file pointer before the beginning of the file.
ERROR_SEEK_ON_DEVICE
132 (0x84)
The file pointer cannot be set on the specified device or file.
ERROR_IS_JOIN_TARGET
133 (0x85)
A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.
ERROR_IS_JOINED
134 (0x86)
An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.
ERROR_IS_SUBSTED
135 (0x87)
An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.
ERROR_NOT_JOINED
136 (0x88)
The system tried to delete the JOIN of a drive that is not joined.
ERROR_NOT_SUBSTED
137 (0x89)
The system tried to delete the substitution of a drive that is not substituted.
ERROR_JOIN_TO_JOIN
138 (0x8A)
The system tried to join a drive to a directory on a joined drive.
ERROR_SUBST_TO_SUBST
139 (0x8B)
The system tried to substitute a drive to a directory on a substituted drive.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

12/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_JOIN_TO_SUBST
140 (0x8C)
The system tried to join a drive to a directory on a substituted drive.
ERROR_SUBST_TO_JOIN
141 (0x8D)
The system tried to SUBST a drive to a directory on a joined drive.
ERROR_BUSY_DRIVE
142 (0x8E)
The system cannot perform a JOIN or SUBST at this time.
ERROR_SAME_DRIVE
143 (0x8F)
The system cannot join or substitute a drive to or for a directory on the same drive.
ERROR_DIR_NOT_ROOT
144 (0x90)
The directory is not a subdirectory of the root directory.
ERROR_DIR_NOT_EMPTY
145 (0x91)
The directory is not empty.
ERROR_IS_SUBST_PATH
146 (0x92)
The path specified is being used in a substitute.
ERROR_IS_JOIN_PATH
147 (0x93)
Not enough resources are available to process this command.
ERROR_PATH_BUSY
148 (0x94)
The path specified cannot be used at this time.
ERROR_IS_SUBST_TARGET
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

13/39

4/20/2016

System Error Codes (0-499) (Windows)

149 (0x95)
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_SYSTEM_TRACE
150 (0x96)
System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.
ERROR_INVALID_EVENT_COUNT
151 (0x97)
The number of specified semaphore events for DosMuxSemWait is not correct.
ERROR_TOO_MANY_MUXWAITERS
152 (0x98)
DosMuxSemWait did not execute; too many semaphores are already set.
ERROR_INVALID_LIST_FORMAT
153 (0x99)
The DosMuxSemWait list is not correct.
ERROR_LABEL_TOO_LONG
154 (0x9A)
The volume label you entered exceeds the label character limit of the target file system.
ERROR_TOO_MANY_TCBS
155 (0x9B)
Cannot create another thread.
ERROR_SIGNAL_REFUSED
156 (0x9C)
The recipient process has refused the signal.
ERROR_DISCARDED
157 (0x9D)
The segment is already discarded and cannot be locked.
ERROR_NOT_LOCKED
158 (0x9E)
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

14/39

4/20/2016

System Error Codes (0-499) (Windows)

The segment is already unlocked.


ERROR_BAD_THREADID_ADDR
159 (0x9F)
The address for the thread ID is not correct.
ERROR_BAD_ARGUMENTS
160 (0xA0)
One or more arguments are not correct.
ERROR_BAD_PATHNAME
161 (0xA1)
The specified path is invalid.
ERROR_SIGNAL_PENDING
162 (0xA2)
A signal is already pending.
ERROR_MAX_THRDS_REACHED
164 (0xA4)
No more threads can be created in the system.
ERROR_LOCK_FAILED
167 (0xA7)
Unable to lock a region of a file.
ERROR_BUSY
170 (0xAA)
The requested resource is in use.
ERROR_DEVICE_SUPPORT_IN_PROGRESS
171 (0xAB)
Device's command support detection is in progress.
ERROR_CANCEL_VIOLATION
173 (0xAD)
A lock request was not outstanding for the supplied cancel region.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

15/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_ATOMIC_LOCKS_NOT_SUPPORTED
174 (0xAE)
The file system does not support atomic changes to the lock type.
ERROR_INVALID_SEGMENT_NUMBER
180 (0xB4)
The system detected a segment number that was not correct.
ERROR_INVALID_ORDINAL
182 (0xB6)
The operating system cannot run %1.
ERROR_ALREADY_EXISTS
183 (0xB7)
Cannot create a file when that file already exists.
ERROR_INVALID_FLAG_NUMBER
186 (0xBA)
The flag passed is not correct.
ERROR_SEM_NOT_FOUND
187 (0xBB)
The specified system semaphore name was not found.
ERROR_INVALID_STARTING_CODESEG
188 (0xBC)
The operating system cannot run %1.
ERROR_INVALID_STACKSEG
189 (0xBD)
The operating system cannot run %1.
ERROR_INVALID_MODULETYPE
190 (0xBE)
The operating system cannot run %1.
ERROR_INVALID_EXE_SIGNATURE

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

16/39

4/20/2016

System Error Codes (0-499) (Windows)

191 (0xBF)
Cannot run %1 in Win32 mode.
ERROR_EXE_MARKED_INVALID
192 (0xC0)
The operating system cannot run %1.
ERROR_BAD_EXE_FORMAT
193 (0xC1)
%1 is not a valid Win32 application.
ERROR_ITERATED_DATA_EXCEEDS_64k
194 (0xC2)
The operating system cannot run %1.
ERROR_INVALID_MINALLOCSIZE
195 (0xC3)
The operating system cannot run %1.
ERROR_DYNLINK_FROM_INVALID_RING
196 (0xC4)
The operating system cannot run this application program.
ERROR_IOPL_NOT_ENABLED
197 (0xC5)
The operating system is not presently configured to run this application.
ERROR_INVALID_SEGDPL
198 (0xC6)
The operating system cannot run %1.
ERROR_AUTODATASEG_EXCEEDS_64k
199 (0xC7)
The operating system cannot run this application program.
ERROR_RING2SEG_MUST_BE_MOVABLE
200 (0xC8)
The code segment cannot be greater than or equal to 64K.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

17/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_RELOC_CHAIN_XEEDS_SEGLIM
201 (0xC9)
The operating system cannot run %1.
ERROR_INFLOOP_IN_RELOC_CHAIN
202 (0xCA)
The operating system cannot run %1.
ERROR_ENVVAR_NOT_FOUND
203 (0xCB)
The system could not find the environment option that was entered.
ERROR_NO_SIGNAL_SENT
205 (0xCD)
No process in the command subtree has a signal handler.
ERROR_FILENAME_EXCED_RANGE
206 (0xCE)
The filename or extension is too long.
ERROR_RING2_STACK_IN_USE
207 (0xCF)
The ring 2 stack is in use.
ERROR_META_EXPANSION_TOO_LONG
208 (0xD0)
The global filename characters, * or ?, are entered incorrectly or too many global filename characters are
specified.
ERROR_INVALID_SIGNAL_NUMBER
209 (0xD1)
The signal being posted is not correct.
ERROR_THREAD_1_INACTIVE
210 (0xD2)
The signal handler cannot be set.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

18/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_LOCKED
212 (0xD4)
The segment is locked and cannot be reallocated.
ERROR_TOO_MANY_MODULES
214 (0xD6)
Too many dynamic-link modules are attached to this program or dynamic-link module.
ERROR_NESTING_NOT_ALLOWED
215 (0xD7)
Cannot nest calls to LoadModule.
ERROR_EXE_MACHINE_TYPE_MISMATCH
216 (0xD8)
This version of %1 is not compatible with the version of Windows you're running. Check your
computer's system information and then contact the software publisher.
ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY
217 (0xD9)
The image file %1 is signed, unable to modify.
ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY
218 (0xDA)
The image file %1 is strong signed, unable to modify.
ERROR_FILE_CHECKED_OUT
220 (0xDC)
This file is checked out or locked for editing by another user.
ERROR_CHECKOUT_REQUIRED
221 (0xDD)
The file must be checked out before saving changes.
ERROR_BAD_FILE_TYPE
222 (0xDE)
The file type being saved or retrieved has been blocked.
ERROR_FILE_TOO_LARGE
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

19/39

4/20/2016

System Error Codes (0-499) (Windows)

223 (0xDF)
The file size exceeds the limit allowed and cannot be saved.
ERROR_FORMS_AUTH_REQUIRED
224 (0xE0)
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.
ERROR_VIRUS_INFECTED
225 (0xE1)
Operation did not complete successfully because the file contains a virus or potentially unwanted
software.
ERROR_VIRUS_DELETED
226 (0xE2)
This file contains a virus or potentially unwanted software and cannot be opened. Due to the nature of
this virus or potentially unwanted software, the file has been removed from this location.
ERROR_PIPE_LOCAL
229 (0xE5)
The pipe is local.
ERROR_BAD_PIPE
230 (0xE6)
The pipe state is invalid.
ERROR_PIPE_BUSY
231 (0xE7)
All pipe instances are busy.
ERROR_NO_DATA
232 (0xE8)
The pipe is being closed.
ERROR_PIPE_NOT_CONNECTED
233 (0xE9)
No process is on the other end of the pipe.
ERROR_MORE_DATA
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

20/39

4/20/2016

System Error Codes (0-499) (Windows)

234 (0xEA)
More data is available.
ERROR_VC_DISCONNECTED
240 (0xF0)
The session was canceled.
ERROR_INVALID_EA_NAME
254 (0xFE)
The specified extended attribute name was invalid.
ERROR_EA_LIST_INCONSISTENT
255 (0xFF)
The extended attributes are inconsistent.
WAIT_TIMEOUT
258 (0x102)
The wait operation timed out.
ERROR_NO_MORE_ITEMS
259 (0x103)
No more data is available.
ERROR_CANNOT_COPY
266 (0x10A)
The copy functions cannot be used.
ERROR_DIRECTORY
267 (0x10B)
The directory name is invalid.
ERROR_EAS_DIDNT_FIT
275 (0x113)
The extended attributes did not fit in the buffer.
ERROR_EA_FILE_CORRUPT
276 (0x114)
The extended attribute file on the mounted file system is corrupt.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

21/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_EA_TABLE_FULL
277 (0x115)
The extended attribute table file is full.
ERROR_INVALID_EA_HANDLE
278 (0x116)
The specified extended attribute handle is invalid.
ERROR_EAS_NOT_SUPPORTED
282 (0x11A)
The mounted file system does not support extended attributes.
ERROR_NOT_OWNER
288 (0x120)
Attempt to release mutex not owned by caller.
ERROR_TOO_MANY_POSTS
298 (0x12A)
Too many posts were made to a semaphore.
ERROR_PARTIAL_COPY
299 (0x12B)
Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
ERROR_OPLOCK_NOT_GRANTED
300 (0x12C)
The oplock request is denied.
ERROR_INVALID_OPLOCK_PROTOCOL
301 (0x12D)
An invalid oplock acknowledgment was received by the system.
ERROR_DISK_TOO_FRAGMENTED
302 (0x12E)
The volume is too fragmented to complete this operation.
ERROR_DELETE_PENDING
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

22/39

4/20/2016

System Error Codes (0-499) (Windows)

303 (0x12F)
The file cannot be opened because it is in the process of being deleted.
ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING
304 (0x130)
Short name settings may not be changed on this volume due to the global registry setting.
ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME
305 (0x131)
Short names are not enabled on this volume.
ERROR_SECURITY_STREAM_IS_INCONSISTENT
306 (0x132)
The security stream for the given volume is in an inconsistent state. Please run CHKDSK on the volume.
ERROR_INVALID_LOCK_RANGE
307 (0x133)
A requested file lock operation cannot be processed due to an invalid byte range.
ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT
308 (0x134)
The subsystem needed to support the image type is not present.
ERROR_NOTIFICATION_GUID_ALREADY_DEFINED
309 (0x135)
The specified file already has a notification GUID associated with it.
ERROR_INVALID_EXCEPTION_HANDLER
310 (0x136)
An invalid exception handler routine has been detected.
ERROR_DUPLICATE_PRIVILEGES
311 (0x137)
Duplicate privileges were specified for the token.
ERROR_NO_RANGES_PROCESSED
312 (0x138)
No ranges for the specified operation were able to be processed.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

23/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_NOT_ALLOWED_ON_SYSTEM_FILE
313 (0x139)
Operation is not allowed on a file system internal file.
ERROR_DISK_RESOURCES_EXHAUSTED
314 (0x13A)
The physical resources of this disk have been exhausted.
ERROR_INVALID_TOKEN
315 (0x13B)
The token representing the data is invalid.
ERROR_DEVICE_FEATURE_NOT_SUPPORTED
316 (0x13C)
The device does not support the command feature.
ERROR_MR_MID_NOT_FOUND
317 (0x13D)
The system cannot find message text for message number 0x%1 in the message file for %2.
ERROR_SCOPE_NOT_FOUND
318 (0x13E)
The scope specified was not found.
ERROR_UNDEFINED_SCOPE
319 (0x13F)
The Central Access Policy specified is not defined on the target machine.
ERROR_INVALID_CAP
320 (0x140)
The Central Access Policy obtained from Active Directory is invalid.
ERROR_DEVICE_UNREACHABLE
321 (0x141)
The device is unreachable.
ERROR_DEVICE_NO_RESOURCES
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

24/39

4/20/2016

System Error Codes (0-499) (Windows)

322 (0x142)
The target device has insufficient resources to complete the operation.
ERROR_DATA_CHECKSUM_ERROR
323 (0x143)
A data integrity checksum error occurred. Data in the file stream is corrupt.
ERROR_INTERMIXED_KERNEL_EA_OPERATION
324 (0x144)
An attempt was made to modify both a KERNEL and normal Extended Attribute (EA) in the same
operation.
ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED
326 (0x146)
Device does not support file-level TRIM.
ERROR_OFFSET_ALIGNMENT_VIOLATION
327 (0x147)
The command specified a data offset that does not align to the device's granularity/alignment.
ERROR_INVALID_FIELD_IN_PARAMETER_LIST
328 (0x148)
The command specified an invalid field in its parameter list.
ERROR_OPERATION_IN_PROGRESS
329 (0x149)
An operation is currently in progress with the device.
ERROR_BAD_DEVICE_PATH
330 (0x14A)
An attempt was made to send down the command via an invalid path to the target device.
ERROR_TOO_MANY_DESCRIPTORS
331 (0x14B)
The command specified a number of descriptors that exceeded the maximum supported by the device.
ERROR_SCRUB_DATA_DISABLED
332 (0x14C)
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

25/39

4/20/2016

System Error Codes (0-499) (Windows)

Scrub is disabled on the specified file.


ERROR_NOT_REDUNDANT_STORAGE
333 (0x14D)
The storage device does not provide redundancy.
ERROR_RESIDENT_FILE_NOT_SUPPORTED
334 (0x14E)
An operation is not supported on a resident file.
ERROR_COMPRESSED_FILE_NOT_SUPPORTED
335 (0x14F)
An operation is not supported on a compressed file.
ERROR_DIRECTORY_NOT_SUPPORTED
336 (0x150)
An operation is not supported on a directory.
ERROR_NOT_READ_FROM_COPY
337 (0x151)
The specified copy of the requested data could not be read.
ERROR_FAIL_NOACTION_REBOOT
350 (0x15E)
No action was taken as a system reboot is required.
ERROR_FAIL_SHUTDOWN
351 (0x15F)
The shutdown operation failed.
ERROR_FAIL_RESTART
352 (0x160)
The restart operation failed.
ERROR_MAX_SESSIONS_REACHED
353 (0x161)
The maximum number of sessions has been reached.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

26/39

4/20/2016

System Error Codes (0-499) (Windows)

ERROR_THREAD_MODE_ALREADY_BACKGROUND
400 (0x190)
The thread is already in background processing mode.
ERROR_THREAD_MODE_NOT_BACKGROUND
401 (0x191)
The thread is not in background processing mode.
ERROR_PROCESS_MODE_ALREADY_BACKGROUND
402 (0x192)
The process is already in background processing mode.
ERROR_PROCESS_MODE_NOT_BACKGROUND
403 (0x193)
The process is not in background processing mode.
ERROR_INVALID_ADDRESS
487 (0x1E7)
Attempt to access invalid address.

Suggestions?
If you have additional suggestions regarding the System Error Codes documentation, given the constraints
enumerated at the top of the page, please click the link labeled "Send comments about this topic to
Microsoft" below. We appreciate the input.

Requirements
Minimum supported client

WindowsXP [desktop apps only]

Minimum supported server

Windows Server2003 [desktop apps only]

Header

WinError.h (include Windows.h)

See also
System Error Codes

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

27/39

4/20/2016

System Error Codes (0-499) (Windows)

Community Additions
Wrong description for error code 106 (0x6A)
ERROR_SEM_USER_LIMIT 106 (0x6A) - Insert the diskette for drive %1.
Following the convention that ERROR_SEM_* are all related to semaphore objects it make no sense that this would be the
correct description. It's probably a copy-paste error due to the fact that the errors after it are related to diskettes or drives.
sgeocla
2/24/2012

Look up arbitrary error codes


To programmatically look up a localized error message,here is some code that uses Windows' FormatMessage and existing
resource DLL's to get a suitable localized version of an error message. Note this version doesn't handle stuff like "File not found:
%1" where you need to insert something there, but Windows doesn't use that very often - that simplifies this problem space to
avoid needing to use C++ style varargs from managed code.

[DllImport("KERNEL32", CharSet=CharSet.Auto, BestFitMapping=true)]


[ResourceExposure(ResourceScope.None)]
internal static extern int FormatMessage(int dwFlags, IntPtr lpSource,
int dwMessageId, int dwLanguageId, StringBuilder lpBuffer,
int nSize, IntPtr va_list_arguments);

// Gets an error message for a Win32 error code.


internal static String GetMessage(int errorCode) {
StringBuilder sb = new StringBuilder(512);
int result = FormatMessage(FORMAT_MESSAGE_IGNORE_INSERTS |
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ARGUMENT_ARRAY,
IntPtr.Zero, errorCode, 0, sb, sb.Capacity, IntPtr.Zero);
if (result != 0) {
// result is the # of characters copied to the StringBuilder.
String s = sb.ToString();
return s;

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

28/39

4/20/2016

System Error Codes (0-499) (Windows)

}
else {
return String.Format("unknown Win32 error code {0:x}", errorCode);
}
}
dearren
9/14/2011

C# code snipppet
class SystemErrorCodes
{
public const Int32 ERROR_ACCESS_DENIED = 5;
public const Int32 ERROR_ADAP_HDW_ERR = 57;
public const Int32 ERROR_ALREADY_ASSIGNED = 85;
public const Int32 ERROR_ALREADY_EXISTS = 183;
public const Int32 ERROR_ARENA_TRASHED = 7;
public const Int32 ERROR_ATOMIC_LOCKS_NOT_SUPPORTED = 174;
public const Int32 ERROR_AUTODATASEG_EXCEEDS_64k = 199;
public const Int32 ERROR_BAD_ARGUMENTS = 160;
public const Int32 ERROR_BAD_COMMAND = 22;
public const Int32 ERROR_BAD_DEV_TYPE = 66;
public const Int32 ERROR_BAD_DRIVER_LEVEL = 119;
public const Int32 ERROR_BAD_ENVIRONMENT = 10;
public const Int32 ERROR_BAD_EXE_FORMAT = 193;
public const Int32 ERROR_BAD_FILE_TYPE = 222;
public const Int32 ERROR_BAD_FORMAT = 11;
public const Int32 ERROR_BAD_LENGTH = 24;
public const Int32 ERROR_BAD_NET_NAME = 67;
public const Int32 ERROR_BAD_NET_RESP = 58;
public const Int32 ERROR_BAD_NETPATH = 53;
public const Int32 ERROR_BAD_PATHNAME = 161;
public const Int32 ERROR_BAD_PIPE = 230;
public const Int32 ERROR_BAD_REM_ADAP = 60;
public const Int32 ERROR_BAD_THREADID_ADDR = 159;
public const Int32 ERROR_BAD_UNIT = 20;
public const Int32 ERROR_BROKEN_PIPE = 109;
public const Int32 ERROR_BUFFER_OVERFLOW = 111;
public const Int32 ERROR_BUSY_DRIVE = 142;
public const Int32 ERROR_BUSY = 170;
public const Int32 ERROR_CALL_NOT_IMPLEMENTED = 120;
public const Int32 ERROR_CANCEL_VIOLATION = 173;
public const Int32 ERROR_CANNOT_COPY = 266;
public const Int32 ERROR_CANNOT_MAKE = 82;
public const Int32 ERROR_CHECKOUT_REQUIRED = 221;
public const Int32 ERROR_CHILD_NOT_COMPLETE = 129;
public const Int32 ERROR_CRC = 23;
public const Int32 ERROR_CURRENT_DIRECTORY = 16;
public const Int32 ERROR_DELETE_PENDING = 303;
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

29/39

4/20/2016

System Error Codes (0-499) (Windows)

public const Int32 ERROR_DEV_NOT_EXIST = 55;


public const Int32 ERROR_DIR_NOT_EMPTY = 145;
public const Int32 ERROR_DIR_NOT_ROOT = 144;
public const Int32 ERROR_DIRECT_ACCESS_HANDLE = 130;
public const Int32 ERROR_DIRECTORY = 267;
public const Int32 ERROR_DISCARDED = 157;
public const Int32 ERROR_DISK_CHANGE = 107;
public const Int32 ERROR_DISK_FULL = 112;
public const Int32 ERROR_DISK_TOO_FRAGMENTED = 302;
public const Int32 ERROR_DRIVE_LOCKED = 108;
public const Int32 ERROR_DUP_NAME = 52;
public const Int32 ERROR_DYNLINK_FROM_INVALID_RING = 196;
public const Int32 ERROR_EA_FILE_CORRUPT = 276;
public const Int32 ERROR_EA_LIST_INCONSISTENT = 255;
public const Int32 ERROR_EA_TABLE_FULL = 277;
public const Int32 ERROR_EAS_DIDNT_FIT = 275;
public const Int32 ERROR_EAS_NOT_SUPPORTED = 282;
public const Int32 ERROR_ENVVAR_NOT_FOUND = 203;
public const Int32 ERROR_EXCL_SEM_ALREADY_OWNED = 101;
public const Int32 ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY = 217;
public const Int32 ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY = 218;
public const Int32 ERROR_EXE_MACHINE_TYPE_MISMATCH = 216;
public const Int32 ERROR_EXE_MARKED_INVALID = 192;
public const Int32 ERROR_FAIL_I24 = 83;
public const Int32 ERROR_FAIL_NOACTION_REBOOT = 350;
public const Int32 ERROR_FAIL_RESTART = 352;
public const Int32 ERROR_FAIL_SHUTDOWN = 351;
public const Int32 ERROR_FILE_CHECKED_OUT = 220;
public const Int32 ERROR_FILE_EXISTS = 80;
public const Int32 ERROR_FILE_NOT_FOUND = 2;
public const Int32 ERROR_FILE_TOO_LARGE = 223;
public const Int32 ERROR_FILENAME_EXCED_RANGE = 206;
public const Int32 ERROR_FORMS_AUTH_REQUIRED = 224;
public const Int32 ERROR_GEN_FAILURE = 31;
public const Int32 ERROR_HANDLE_DISK_FULL = 39;
public const Int32 ERROR_HANDLE_EOF = 38;
public const Int32 ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT = 308;
public const Int32 ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING = 304;
public const Int32 ERROR_INFLOOP_IN_RELOC_CHAIN = 202;
public const Int32 ERROR_INSUFFICIENT_BUFFER = 122;
public const Int32 ERROR_INVALID_ACCESS = 12;
public const Int32 ERROR_INVALID_ADDRESS = 487;
public const Int32 ERROR_INVALID_AT_INTERRUPT_TIME = 104;
public const Int32 ERROR_INVALID_BLOCK = 9;
public const Int32 ERROR_INVALID_CATEGORY = 117;
public const Int32 ERROR_INVALID_DATA = 13;
public const Int32 ERROR_INVALID_DRIVE = 15;
public const Int32 ERROR_INVALID_EA_HANDLE = 278;
public const Int32 ERROR_INVALID_EA_NAME = 254;
public const Int32 ERROR_INVALID_EVENT_COUNT = 151;
public const Int32 ERROR_INVALID_EXE_SIGNATURE = 191;
public const Int32 ERROR_INVALID_FLAG_NUMBER = 186;
public const Int32 ERROR_INVALID_FUNCTION = 1;
public const Int32 ERROR_INVALID_HANDLE = 6;
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

30/39

4/20/2016

System Error Codes (0-499) (Windows)

public const Int32 ERROR_INVALID_LEVEL = 124;


public const Int32 ERROR_INVALID_LIST_FORMAT = 153;
public const Int32 ERROR_INVALID_LOCK_RANGE = 307;
public const Int32 ERROR_INVALID_MINALLOCSIZE = 195;
public const Int32 ERROR_INVALID_MODULETYPE = 190;
public const Int32 ERROR_INVALID_NAME = 123;
public const Int32 ERROR_INVALID_OPLOCK_PROTOCOL = 301;
public const Int32 ERROR_INVALID_ORDINAL = 182;
public const Int32 ERROR_INVALID_PARAMETER = 87;
public const Int32 ERROR_INVALID_PASSWORD = 86;
public const Int32 ERROR_INVALID_SEGDPL = 198;
public const Int32 ERROR_INVALID_SEGMENT_NUMBER = 180;
public const Int32 ERROR_INVALID_SIGNAL_NUMBER = 209;
public const Int32 ERROR_INVALID_STACKSEG = 189;
public const Int32 ERROR_INVALID_STARTING_CODESEG = 188;
public const Int32 ERROR_INVALID_TARGET_HANDLE = 114;
public const Int32 ERROR_INVALID_VERIFY_SWITCH = 118;
public const Int32 ERROR_IOPL_NOT_ENABLED = 197;
public const Int32 ERROR_IS_JOIN_PATH = 147;
public const Int32 ERROR_IS_JOIN_TARGET = 133;
public const Int32 ERROR_IS_JOINED = 134;
public const Int32 ERROR_IS_SUBST_PATH = 146;
public const Int32 ERROR_IS_SUBST_TARGET = 149;
public const Int32 ERROR_IS_SUBSTED = 135;
public const Int32 ERROR_ITERATED_DATA_EXCEEDS_64k = 194;
public const Int32 ERROR_JOIN_TO_JOIN = 138;
public const Int32 ERROR_JOIN_TO_SUBST = 140;
public const Int32 ERROR_LABEL_TOO_LONG = 154;
public const Int32 ERROR_LOCK_FAILED = 167;
public const Int32 ERROR_LOCK_VIOLATION = 33;
public const Int32 ERROR_LOCKED = 212;
public const Int32 ERROR_MAX_SESSIONS_REACHED = 353;
public const Int32 ERROR_MAX_THRDS_REACHED = 164;
public const Int32 ERROR_META_EXPANSION_TOO_LONG = 208;
public const Int32 ERROR_MOD_NOT_FOUND = 126;
public const Int32 ERROR_MORE_DATA = 234;
public const Int32 ERROR_MR_MID_NOT_FOUND = 317;
public const Int32 ERROR_NEGATIVE_SEEK = 131;
public const Int32 ERROR_NESTING_NOT_ALLOWED = 215;
public const Int32 ERROR_NET_WRITE_FAULT = 88;
public const Int32 ERROR_NETNAME_DELETED = 64;
public const Int32 ERROR_NETWORK_ACCESS_DENIED = 65;
public const Int32 ERROR_NETWORK_BUSY = 54;
public const Int32 ERROR_NO_DATA = 232;
public const Int32 ERROR_NO_MORE_FILES = 18;
public const Int32 ERROR_NO_MORE_ITEMS = 259;
public const Int32 ERROR_NO_MORE_SEARCH_HANDLES = 113;
public const Int32 ERROR_NO_PROC_SLOTS = 89;
public const Int32 ERROR_NO_SIGNAL_SENT = 205;
public const Int32 ERROR_NO_SPOOL_SPACE = 62;
public const Int32 ERROR_NO_VOLUME_LABEL = 125;
public const Int32 ERROR_NOT_DOS_DISK = 26;
public const Int32 ERROR_NOT_ENOUGH_MEMORY = 8;
public const Int32 ERROR_NOT_JOINED = 136;
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

31/39

4/20/2016

System Error Codes (0-499) (Windows)

public const Int32 ERROR_NOT_LOCKED = 158;


public const Int32 ERROR_NOT_OWNER = 288;
public const Int32 ERROR_NOT_READY = 21;
public const Int32 ERROR_NOT_SAME_DEVICE = 17;
public const Int32 ERROR_NOT_SUBSTED = 137;
public const Int32 ERROR_NOT_SUPPORTED = 50;
public const Int32 ERROR_NOTIFICATION_GUID_ALREADY_DEFINED = 309;
public const Int32 ERROR_OPEN_FAILED = 110;
public const Int32 ERROR_OPLOCK_NOT_GRANTED = 300;
public const Int32 ERROR_OUT_OF_PAPER = 28;
public const Int32 ERROR_OUT_OF_STRUCTURES = 84;
public const Int32 ERROR_OUTOFMEMORY = 14;
public const Int32 ERROR_PARTIAL_COPY = 299;
public const Int32 ERROR_PATH_BUSY = 148;
public const Int32 ERROR_PATH_NOT_FOUND = 3;
public const Int32 ERROR_PIPE_BUSY = 231;
public const Int32 ERROR_PIPE_LOCAL = 229;
public const Int32 ERROR_PIPE_NOT_CONNECTED = 233;
public const Int32 ERROR_PRINT_CANCELLED = 63;
public const Int32 ERROR_PRINTQ_FULL = 61;
public const Int32 ERROR_PROC_NOT_FOUND = 127;
public const Int32 ERROR_PROCESS_MODE_ALREADY_BACKGROUND = 402;
public const Int32 ERROR_PROCESS_MODE_NOT_BACKGROUND = 403;
public const Int32 ERROR_READ_FAULT = 30;
public const Int32 ERROR_REDIR_PAUSED = 72;
public const Int32 ERROR_RELOC_CHAIN_XEEDS_SEGLIM = 201;
public const Int32 ERROR_REM_NOT_LIST = 51;
public const Int32 ERROR_REQ_NOT_ACCEP = 71;
public const Int32 ERROR_RING2_STACK_IN_USE = 207;
public const Int32 ERROR_RING2SEG_MUST_BE_MOVABLE = 200;
public const Int32 ERROR_SAME_DRIVE = 143;
public const Int32 ERROR_SCOPE_NOT_FOUND = 318;
public const Int32 ERROR_SECTOR_NOT_FOUND = 27;
public const Int32 ERROR_SECURITY_STREAM_IS_INCONSISTENT = 306;
public const Int32 ERROR_SEEK_ON_DEVICE = 132;
public const Int32 ERROR_SEEK = 25;
public const Int32 ERROR_SEM_IS_SET = 102;
public const Int32 ERROR_SEM_NOT_FOUND = 187;
public const Int32 ERROR_SEM_OWNER_DIED = 105;
public const Int32 ERROR_SEM_TIMEOUT = 121;
public const Int32 ERROR_SEM_USER_LIMIT = 106;
public const Int32 ERROR_SHARING_BUFFER_EXCEEDED = 36;
public const Int32 ERROR_SHARING_PAUSED = 70;
public const Int32 ERROR_SHARING_VIOLATION = 32;
public const Int32 ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME = 305;
public const Int32 ERROR_SIGNAL_PENDING = 162;
public const Int32 ERROR_SIGNAL_REFUSED = 156;
public const Int32 ERROR_SUBST_TO_JOIN = 141;
public const Int32 ERROR_SUBST_TO_SUBST = 139;
public const Int32 ERROR_SUCCESS = 0;
public const Int32 ERROR_SYSTEM_TRACE = 150;
public const Int32 ERROR_THREAD_1_INACTIVE = 210;
public const Int32 ERROR_THREAD_MODE_ALREADY_BACKGROUND = 400;
public const Int32 ERROR_THREAD_MODE_NOT_BACKGROUND = 401;
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

32/39

4/20/2016

System Error Codes (0-499) (Windows)

public const Int32 ERROR_TOO_MANY_CMDS = 56;


public const Int32 ERROR_TOO_MANY_MODULES = 214;
public const Int32 ERROR_TOO_MANY_MUXWAITERS = 152;
public const Int32 ERROR_TOO_MANY_NAMES = 68;
public const Int32 ERROR_TOO_MANY_OPEN_FILES = 4;
public const Int32 ERROR_TOO_MANY_POSTS = 298;
public const Int32 ERROR_TOO_MANY_SEM_REQUESTS = 103;
public const Int32 ERROR_TOO_MANY_SEMAPHORES = 100;
public const Int32 ERROR_TOO_MANY_SESS = 69;
public const Int32 ERROR_TOO_MANY_TCBS = 155;
public const Int32 ERROR_UNEXP_NET_ERR = 59;
public const Int32 ERROR_VC_DISCONNECTED = 240;
public const Int32 ERROR_VIRUS_DELETED = 226;
public const Int32 ERROR_VIRUS_INFECTED = 225;
public const Int32 ERROR_WAIT_NO_CHILDREN = 128;
public const Int32 ERROR_WRITE_FAULT = 29;
public const Int32 ERROR_WRITE_PROTECT = 19;
public const Int32 ERROR_WRONG_DISK = 34;
public const Int32 WAIT_TIMEOUT = 258;
public string ToString(Int32 ERR)
{
switch (ERR)
{
case 0: return "The operation completed successfully.";
case 1: return "Incorrect function.";
case 10: return "The environment is incorrect.";
case 100: return "Cannot create another system semaphore.";
case 101: return "The exclusive semaphore is owned by another process.";
case 102: return "The semaphore is set and cannot be closed.";
case 103: return "The semaphore cannot be set again.";
case 104: return "Cannot request exclusive semaphores at interrupt time.";
case 105: return "The previous ownership of this semaphore has ended.";
case 106: return "Insert the diskette for drive %1.";
case 107: return "The program stopped because an alternate diskette was not
inserted.";
case 108: return "The disk is in use or locked by another process.";
case 109: return "The pipe has been ended.";
case 11: return "An attempt was made to load a program with an incorrect format.";
case 110: return "The system cannot open the device or file specified.";
case 111: return "The file name is too long.";
case 112: return "There is not enough space on the disk.";
case 113: return "No more internal file identifiers available.";
case 114: return "The target internal file identifier is incorrect.";
case 117: return "The IOCTL call made by the application program is not correct.";
case 118: return "The verify-on-write switch parameter value is not correct.";
case 119: return "The system does not support the command requested.";
case 12: return "The access code is invalid.";
case 120: return "This function is not supported on this system.";
case 121: return "The semaphore timeout period has expired.";
case 122: return "The data area passed to a system call is too small.";
case 123: return "The filename, directory name, or volume label syntax is
incorrect.";
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

33/39

4/20/2016

System Error Codes (0-499) (Windows)

case 124: return "The system call level is not correct.";


case 125: return "The disk has no volume label.";
case 126: return "The specified module could not be found.";
case 127: return "The specified procedure could not be found.";
case 128: return "There are no child processes to wait for.";
case 129: return "The %1 application cannot be run in Win32 mode.";
case 13: return "The data is invalid.";
case 130: return "Attempt to use a file handle to an open disk partition for an
operation other than raw disk I/O.";
case 131: return "An attempt was made to move the file pointer before the beginning
of the file.";
case 132: return "The file pointer cannot be set on the specified device or file.";
case 133: return "A JOIN or SUBST command cannot be used for a drive that contains
previously joined drives.";
case 134: return "An attempt was made to use a JOIN or SUBST command on a drive that
has already been joined.";
case 135: return "An attempt was made to use a JOIN or SUBST command on a drive that
has already been substituted.";
case 136: return "The system tried to delete the JOIN of a drive that is not
joined.";
case 137: return "The system tried to delete the substitution of a drive that is not
substituted.";
case 138: return "The system tried to join a drive to a directory on a joined
drive.";
case 139: return "The system tried to substitute a drive to a directory on a
substituted drive.";
case 14: return "Not enough storage is available to complete this operation.";
case 140: return "The system tried to join a drive to a directory on a substituted
drive.";
case 141: return "The system tried to SUBST a drive to a directory on a joined
drive.";
case 142: return "The system cannot perform a JOIN or SUBST at this time.";
case 143: return "The system cannot join or substitute a drive to or for a directory
on the same drive.";
case 144: return "The directory is not a subdirectory of the root directory.";
case 145: return "The directory is not empty.";
case 146: return "The path specified is being used in a substitute.";
case 147: return "Not enough resources are available to process this command.";
case 148: return "The path specified cannot be used at this time.";
case 149: return "An attempt was made to join or substitute a drive for which a
directory on the drive is the target of a previous substitute.";
case 15: return "The system cannot find the drive specified.";
case 150: return "System trace information was not specified in your CONFIG.SYS
file, or tracing is disallowed.";
case 151: return "The number of specified semaphore events for DosMuxSemWait is not
correct.";
case 152: return "DosMuxSemWait did not execute; too many semaphores are already
set.";
case 153: return "The DosMuxSemWait list is not correct.";
case 154: return "The volume label you entered exceeds the label character limit of
the target file system.";
case 155: return "Cannot create another thread.";
case 156: return "The recipient process has refused the signal.";
case 157: return "The segment is already discarded and cannot be locked.";
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

34/39

4/20/2016

System Error Codes (0-499) (Windows)

case 158: return "The segment is already unlocked.";


case 159: return "The address for the thread ID is not correct.";
case 16: return "The directory cannot be removed.";
case 160: return "One or more arguments are not correct.";
case 161: return "The specified path is invalid.";
case 162: return "A signal is already pending.";
case 164: return "No more threads can be created in the system.";
case 167: return "Unable to lock a region of a file.";
case 17: return "The system cannot move the file to a different disk drive.";
case 170: return "The requested resource is in use.";
case 173: return "A lock request was not outstanding for the supplied cancel
region.";
case 174: return "The file system does not support atomic changes to the lock
type.";
case 18: return "There are no more files.";
case 180: return "The system detected a segment number that was not correct.";
case 182: return "The operating system cannot run %1.";
case 183: return "Cannot create a file when that file already exists.";
case 186: return "The flag passed is not correct.";
case 187: return "The specified system semaphore name was not found.";
case 188: return "The operating system cannot run %1.";
case 189: return "The operating system cannot run %1.";
case 19: return "The media is write protected.";
case 190: return "The operating system cannot run %1.";
case 191: return "Cannot run %1 in Win32 mode.";
case 192: return "The operating system cannot run %1.";
case 193: return "is not a valid Win32 application.";
case 194: return "The operating system cannot run %1.";
case 195: return "The operating system cannot run %1.";
case 196: return "The operating system cannot run this application program.";
case 197: return "The operating system is not presently configured to run this
application.";
case 198: return "The operating system cannot run %1.";
case 199: return "The operating system cannot run this application program.";
case 2: return "The system cannot find the file specified.";
case 20: return "The system cannot find the device specified.";
case 200: return "The code segment cannot be greater than or equal to 64K.";
case 201: return "The operating system cannot run %1.";
case 202: return "The operating system cannot run %1.";
case 203: return "The system could not find the environment option that was
entered.";
case 205: return "No process in the command subtree has a signal handler.";
case 206: return "The filename or extension is too long.";
case 207: return "The ring 2 stack is in use.";
case 208: return "The global filename characters, * or ?, are entered incorrectly or
too many global filename characters are specified.";
case 209: return "The signal being posted is not correct.";
case 21: return "The device is not ready.";
case 210: return "The signal handler cannot be set.";
case 212: return "The segment is locked and cannot be reallocated.";
case 214: return "Too many dynamic-link modules are attached to this program or
dynamic-link module.";
case 215: return "Cannot nest calls to LoadModule.";
case 216: return "The version of %1 is not compatible with the version you're
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

35/39

4/20/2016

System Error Codes (0-499) (Windows)

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.";
case 217: return "The image file %1 is signed, unable to modify.";
case 218: return "The image file %1 is strong signed, unable to modify.";
case 22: return "The device does not recognize the command.";
case 220: return "This file is checked out or locked for editing by another user.";
case 221: return "The file must be checked out before saving changes.";
case 222: return "The file type being saved or retrieved has been blocked.";
case 223: return "The file size exceeds the limit allowed and cannot be saved.";
case 224: return "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.";
case 225: return "Operation did not complete successfully because the file contains
a virus.";
case 226: return "This file contains a virus and cannot be opened. Due to the nature
of this virus, the file has been removed from this location.";
case 229: return "The pipe is local.";
case 23: return "Data error ;.";
case 230: return "The pipe state is invalid.";
case 231: return "All pipe instances are busy.";
case 232: return "The pipe is being closed.";
case 233: return "No process is on the other end of the pipe.";
case 234: return "More data is available.";
case 24: return "The program issued a command but the command length is incorrect.";
case 240: return "The session was canceled.";
case 25: return "The drive cannot locate a specific area or track on the disk.";
case 254: return "The specified extended attribute name was invalid.";
case 255: return "The extended attributes are inconsistent.";
case 258: return "The wait operation timed out.";
case 259: return "No more data is available.";
case 26: return "The specified disk or diskette cannot be accessed.";
case 266: return "The copy functions cannot be used.";
case 267: return "The directory name is invalid.";
case 27: return "The drive cannot find the sector requested.";
case 275: return "The extended attributes did not fit in the buffer.";
case 276: return "The extended attribute file on the mounted file system is
corrupt.";
case 277: return "The extended attribute table file is full.";
case 278: return "The specified extended attribute handle is invalid.";
case 28: return "The printer is out of paper.";
case 282: return "The mounted file system does not support extended attributes.";
case 288: return "Attempt to release mutex not owned by caller.";
case 29: return "The system cannot write to the specified device.";
case 298: return "Too many posts were made to a semaphore.";
case 299: return "Only part of a ReadProcessMemory or WriteProcessMemory request was
completed.";
case 3: return "The system cannot find the path specified.";
case 30: return "The system cannot read from the specified device.";
case 300: return "The oplock request is denied.";
case 301: return "An invalid oplock acknowledgment was received by the system.";
case 302: return "The volume is too fragmented to complete this operation.";
case 303: return "The file cannot be opened because it is in the process of being
deleted.";
case 304: return "Short name settings may not be changed on this volume due to the
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

36/39

4/20/2016

System Error Codes (0-499) (Windows)

global registry setting.";


case 305: return "Short names are not enabled on this volume.";
case 306: return "The security stream for the given volume is in an inconsistent
state. Please run CHKDSK on the volume.";
case 307: return "A requested file lock operation cannot be processed due to an
invalid byte range.";
case 308: return "The subsystem needed to support the image type is not present.";
case 309: return "The specified file already has a notification GUID associated with
it.";
case 31: return "A device attached to the system is not functioning.";
case 317: return "The system cannot find message text for message number 0x%1 in the
message file for %2.";
case 318: return "The scope specified was not found.";
case 32: return "The process cannot access the file because it is being used by
another process.";
case 33: return "The process cannot access the file because another process has
locked a portion of the file.";
case 34: return "The wrong diskette is in the drive. Insert %2 ; into drive %1.";
case 350: return "No action was taken as a system reboot is required.";
case 351: return "The shutdown operation failed.";
case 352: return "The restart operation failed.";
case 353: return "The maximum number of sessions has been reached.";
case 36: return "Too many files opened for sharing.";
case 38: return "Reached the end of the file.";
case 39: return "The disk is full.";
case 4: return "The system cannot open the file.";
case 400: return "The thread is already in background processing mode.";
case 401: return "The thread is not in background processing mode.";
case 402: return "The process is already in background processing mode.";
case 403: return "The process is not in background processing mode.";
case 487: return "Attempt to access invalid address.";
case 5: return "Access is denied.";
case 50: return "The request is not supported.";
case 51: return "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.";
case 52: return "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.";
case 53: return "The network path was not found.";
case 54: return "The network is busy.";
case 55: return "The specified network resource or device is no longer available.";
case 56: return "The network BIOS command limit has been reached.";
case 57: return "A network adapter hardware error occurred.";
case 58: return "The specified server cannot perform the requested operation.";
case 59: return "An unexpected network error occurred.";
case 6: return "The handle is invalid.";
case 60: return "The remote adapter is not compatible.";
case 61: return "The printer queue is full.";
case 62: return "Space to store the file waiting to be printed is not available on
the server.";
case 63: return "Your file waiting to be printed was deleted.";
case 64: return "The specified network name is no longer available.";
case 65: return "Network access is denied.";
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

37/39

4/20/2016

System Error Codes (0-499) (Windows)

case 66: return "The network resource type is not correct.";


case 67: return "The network name cannot be found.";
case 68: return "The name limit for the local computer network adapter card was
exceeded.";
case 69: return "The network BIOS session limit was exceeded.";
case 7: return "The storage control blocks were destroyed.";
case 70: return "The remote server has been paused or is in the process of being
started.";
case 71: return "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.";
case 72: return "The specified printer or disk device has been paused.";
case 8: return "Not enough storage is available to process this command.";
case 80: return "The file exists.";
case 82: return "The directory or file cannot be created.";
case 83: return "Fail on INT 24.";
case 84: return "Storage to process this request is not available.";
case 85: return "The local device name is already in use.";
case 86: return "The specified network password is not correct.";
case 87: return "The parameter is incorrect.";
case 88: return "A write fault occurred on the network.";
case 89: return "The system cannot start another process at this time.";
case 9: return "The storage control block address is invalid.";
default: return "unknown.";
}
}
}
katmassage
9/14/2010

Compiler removes not only call to unimplemented partial methods, but evaluation of parameters
too
If a partial method is defined but not implemented, the compiler removes not only all calls to the method, but also all code
arising from evaluating the parameters passed to the partial method. This is important because such evaluation may have sideeffects, and developers may be surprised to find those side-effects not occurring when they don't realise that a method is partial
and not implemented.
This page mentions that all calls to unimplemented partial methods are removed, but I feel it should be emphasised that code
pertaining to parameter evaluation is removed with it.
CSTeam edit: Good point. I am updating the current version of the topic to clarify this. Thanks for your input.
SJ
7/8/2010

ChangeAccessCaption.accdb
WherecanIdownloadthesampledatabase,ChangeAccessCaption.accdb?

Thanks,
Jacob
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

38/39

4/20/2016

System Error Codes (0-499) (Windows)

Update:
Foundit!
http://code.msdn.microsoft.com/odcac2007h2/Release/ProjectReleases.aspx?ReleaseId=2573

jacobgu
7/8/2010

Doing console read/write operations in Main() might be more realistic


In the example, the Console I/O in the ReadCallBack() method breaks the "Do UI on one thread, do asynch processing on other
threads" rule of thumb, assuming the thread which ran the Main() method is the UI thread and had other UI processing to do
before or during the asynch web request. The result of successful asynch stream reads is in the myRequestState instance in
Main(), so these results could be written to the console in the Main() method. However, some logic to handle error conditions
(i.e. myRequestState.response is null, etc.) would also be needed.
DEThomas
7/8/2010

2016 Microsoft

https://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx

39/39

Das könnte Ihnen auch gefallen