System Error Codes (0-499)
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.
0 (0x0) - The operation completed successfully.
1 (0x1) - Incorrect function.
2 (0x2) - The system cannot find the file specified.
3 (0x3) - The system cannot find the path specified.
4 (0x4) - The system cannot open the file.
5 (0x5) - Access is denied.
6 (0x6) - The handle is invalid.
7 (0x7) - The storage control blocks were destroyed.
8 (0x8) - Not enough storage is available to process this command.
9 (0x9) - The storage control block address is invalid.
10 (0xA) - The environment is incorrect.
11 (0xB) - An attempt was made to load a program with an incorrect format.
12 (0xC) - The access code is invalid.
13 (0xD) - The data is invalid.
14 (0xE) - Not enough storage is available to complete this operation.
15 (0xF) - The system cannot find the drive specified.
16 (0x10) - The directory cannot be removed.
17 (0x11) - The system cannot move the file to a different disk drive.
18 (0x12) - There are no more files.
19 (0x13) - The media is write protected.
20 (0x14) - The system cannot find the device specified.
21 (0x15) - The device is not ready.
22 (0x16) - The device does not recognize the command.
23 (0x17) - Data error (cyclic redundancy check).
24 (0x18) - The program issued a command but the command length is incorrect.
25 (0x19) - The drive cannot locate a specific area or track on the disk.
26 (0x1A) - The specified disk or diskette cannot be accessed.
27 (0x1B) - The drive cannot find the sector requested.
28 (0x1C) - The printer is out of paper.
29 (0x1D) - The system cannot write to the specified device.
30 (0x1E) - The system cannot read from the specified device.
31 (0x1F) - A device attached to the system is not functioning.
32 (0x20) - The process cannot access the file because it is being used by another process.
33 (0x21) - The process cannot access the file because another process has locked a portion of the file.
34 (0x22) - The wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1.
36 (0x24) - Too many files opened for sharing.
38 (0x26) - Reached the end of the file.
39 (0x27) - The disk is full.
50 (0x32) - The request is not supported.
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.
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.
53 (0x35) - The network path was not found.
54 (0x36) - The network is busy.
55 (0x37) - The specified network resource or device is no longer available.
56 (0x38) - The network BIOS command limit has been reached.
57 (0x39) - A network adapter hardware error occurred.
58 (0x3A) - The specified server cannot perform the requested operation.
59 (0x3B) - An unexpected network error occurred.
60 (0x3C) - The remote adapter is not compatible.
61 (0x3D) - The printer queue is full.
62 (0x3E) - Space to store the file waiting to be printed is not available on the server.
63 (0x3F) - Your file waiting to be printed was deleted.
64 (0x40) - The specified network name is no longer available.
65 (0x41) - Network access is denied.
66 (0x42) - The network resource type is not correct.
67 (0x43) - The network name cannot be found.
68 (0x44) - The name limit for the local computer network adapter card was exceeded.
69 (0x45) - The network BIOS session limit was exceeded.
70 (0x46) - The remote server has been paused or is in the process of being started.
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.
72 (0x48) - The specified printer or disk device has been paused.
80 (0x50) - The file exists.
82 (0x52) - The directory or file cannot be created.
83 (0x53) - Fail on INT 24.
84 (0x54) - Storage to process this request is not available.
85 (0x55) - The local device name is already in use.
86 (0x56) - The specified network password is not correct.
87 (0x57) - The parameter is incorrect.
88 (0x58) - A write fault occurred on the network.
89 (0x59) - The system cannot start another process at this time.
100 (0x64) - Cannot create another system semaphore.
101 (0x65) - The exclusive semaphore is owned by another process.
102 (0x66) - The semaphore is set and cannot be closed.
103 (0x67) - The semaphore cannot be set again.
104 (0x68) - Cannot request exclusive semaphores at interrupt time.
105 (0x69) - The previous ownership of this semaphore has ended.
106 (0x6A) - Insert the diskette for drive %1.
107 (0x6B) - The program stopped because an alternate diskette was not inserted.
108 (0x6C) - The disk is in use or locked by another process.
109 (0x6D) - The pipe has been ended.
110 (0x6E) - The system cannot open the device or file specified.
111 (0x6F) - The file name is too long.
112 (0x70) - There is not enough space on the disk.
113 (0x71) - No more internal file identifiers available.
114 (0x72) - The target internal file identifier is incorrect.
117 (0x75) - The IOCTL call made by the application program is not correct.
118 (0x76) - The verify-on-write switch parameter value is not correct.
119 (0x77) - The system does not support the command requested.
120 (0x78) - This function is not supported on this system.
121 (0x79) - The semaphore timeout period has expired.
122 (0x7A) - The data area passed to a system call is too small.
123 (0x7B) - The filename, directory name, or volume label syntax is incorrect.
124 (0x7C) - The system call level is not correct.
125 (0x7D) - The disk has no volume label.
126 (0x7E) - The specified module could not be found.
127 (0x7F) - The specified procedure could not be found.
128 (0x80) - There are no child processes to wait for.
129 (0x81) - The %1 application cannot be run in Win32 mode.
130 (0x82) - Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.
131 (0x83) - An attempt was made to move the file pointer before the beginning of the file.
132 (0x84) - The file pointer cannot be set on the specified device or file.
133 (0x85) - A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.
134 (0x86) - An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.
135 (0x87) - An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.
136 (0x88) - The system tried to delete the JOIN of a drive that is not joined.
137 (0x89) - The system tried to delete the substitution of a drive that is not substituted.
138 (0x8A) - The system tried to join a drive to a directory on a joined drive.
139 (0x8B) - The system tried to substitute a drive to a directory on a substituted drive.
140 (0x8C) - The system tried to join a drive to a directory on a substituted drive.
141 (0x8D) - The system tried to SUBST a drive to a directory on a joined drive.
142 (0x8E) - The system cannot perform a JOIN or SUBST at this time.
143 (0x8F) - The system cannot join or substitute a drive to or for a directory on the same drive.
144 (0x90) - The directory is not a subdirectory of the root directory.
145 (0x91) - The directory is not empty.
146 (0x92) - The path specified is being used in a substitute.
147 (0x93) - Not enough resources are available to process this command.
148 (0x94) - The path specified cannot be used at this time.
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.
150 (0x96) - System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.
151 (0x97) - The number of specified semaphore events for DosMuxSemWait is not correct.
152 (0x98) - DosMuxSemWait did not execute; too many semaphores are already set.
153 (0x99) - The DosMuxSemWait list is not correct.
154 (0x9A) - The volume label you entered exceeds the label character limit of the target file system.
155 (0x9B) - Cannot create another thread.
156 (0x9C) - The recipient process has refused the signal.
157 (0x9D) - The segment is already discarded and cannot be locked.
158 (0x9E) - The segment is already unlocked.
159 (0x9F) - The address for the thread ID is not correct.
160 (0xA0) - One or more arguments are not correct.
161 (0xA1) - The specified path is invalid.
162 (0xA2) - A signal is already pending.
164 (0xA4) - No more threads can be created in the system.
167 (0xA7) - Unable to lock a region of a file.
170 (0xAA) - The requested resource is in use.
171 (0xAB) - Device's command support detection is in progress.
173 (0xAD) - A lock request was not outstanding for the supplied cancel region.
174 (0xAE) - The file system does not support atomic changes to the lock type.
180 (0xB4) - The system detected a segment number that was not correct.
182 (0xB6) - The operating system cannot run %1.
183 (0xB7) - Cannot create a file when that file already exists.
186 (0xBA) - The flag passed is not correct.
187 (0xBB) - The specified system semaphore name was not found.
188 (0xBC) - The operating system cannot run %1.
189 (0xBD) - The operating system cannot run %1.
190 (0xBE) - The operating system cannot run %1.
191 (0xBF) - Cannot run %1 in Win32 mode.
192 (0xC0) - The operating system cannot run %1.
193 (0xC1) - %1 is not a valid Win32 application.
194 (0xC2) - The operating system cannot run %1.
195 (0xC3) - The operating system cannot run %1.
196 (0xC4) - The operating system cannot run this application program.
197 (0xC5) - The operating system is not presently configured to run this application.
198 (0xC6) - The operating system cannot run %1.
199 (0xC7) - The operating system cannot run this application program.
200 (0xC8) - The code segment cannot be greater than or equal to 64K.
201 (0xC9) - The operating system cannot run %1.
202 (0xCA) - The operating system cannot run %1.
203 (0xCB) - The system could not find the environment option that was entered.
205 (0xCD) - No process in the command subtree has a signal handler.
206 (0xCE) - The filename or extension is too long.
207 (0xCF) - The ring 2 stack is in use.
208 (0xD0) - The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified.
209 (0xD1) - The signal being posted is not correct.
210 (0xD2) - The signal handler cannot be set.
212 (0xD4) - The segment is locked and cannot be reallocated.
214 (0xD6) - Too many dynamic-link modules are attached to this program or dynamic-link module.
215 (0xD7) - Cannot nest calls to LoadModule.
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.
217 (0xD9) - The image file %1 is signed, unable to modify.
218 (0xDA) - The image file %1 is strong signed, unable to modify.
220 (0xDC) - This file is checked out or locked for editing by another user.
221 (0xDD) - The file must be checked out before saving changes.
222 (0xDE) - The file type being saved or retrieved has been blocked.
223 (0xDF) - The file size exceeds the limit allowed and cannot be saved.
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.
225 (0xE1) - Operation did not complete successfully because the file contains a virus or potentially unwanted software.
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.
229 (0xE5) - The pipe is local.
230 (0xE6) - The pipe state is invalid.
231 (0xE7) - All pipe instances are busy.
232 (0xE8) - The pipe is being closed.
233 (0xE9) - No process is on the other end of the pipe.
234 (0xEA) - More data is available.
240 (0xF0) - The session was canceled.
254 (0xFE) - The specified extended attribute name was invalid.
255 (0xFF) - The extended attributes are inconsistent.
258 (0x102) - The wait operation timed out.
259 (0x103) - No more data is available.
266 (0x10A) - The copy functions cannot be used.
267 (0x10B) - The directory name is invalid.
275 (0x113) - The extended attributes did not fit in the buffer.
276 (0x114) - The extended attribute file on the mounted file system is corrupt.
277 (0x115) - The extended attribute table file is full.
278 (0x116) - The specified extended attribute handle is invalid.
282 (0x11A) - The mounted file system does not support extended attributes.
288 (0x120) - Attempt to release mutex not owned by caller.
298 (0x12A) - Too many posts were made to a semaphore.
299 (0x12B) - Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
300 (0x12C) - The oplock request is denied.
301 (0x12D) - An invalid oplock acknowledgment was received by the system.
302 (0x12E) - The volume is too fragmented to complete this operation.
303 (0x12F) - The file cannot be opened because it is in the process of being deleted.
304 (0x130) - Short name settings may not be changed on this volume due to the global registry setting.
305 (0x131) - Short names are not enabled on this volume.
306 (0x132) - The security stream for the given volume is in an inconsistent state. Please run CHKDSK on the volume.
307 (0x133) - A requested file lock operation cannot be processed due to an invalid byte range.
308 (0x134) - The subsystem needed to support the image type is not present.
309 (0x135) - The specified file already has a notification GUID associated with it.
310 (0x136) - An invalid exception handler routine has been detected.
311 (0x137) - Duplicate privileges were specified for the token.
312 (0x138) - No ranges for the specified operation were able to be processed.
313 (0x139) - Operation is not allowed on a file system internal file.
314 (0x13A) - The physical resources of this disk have been exhausted.
315 (0x13B) - The token representing the data is invalid.
316 (0x13C) - The device does not support the command feature.
317 (0x13D) - The system cannot find message text for message number 0x%1 in the message file for %2.
318 (0x13E) - The scope specified was not found.
319 (0x13F) - The Central Access Policy specified is not defined on the target machine.
320 (0x140) - The Central Access Policy obtained from Active Directory is invalid.
321 (0x141) - The device is unreachable.
322 (0x142) - The target device has insufficient resources to complete the operation.
323 (0x143) - A data integrity checksum error occurred. Data in the file stream is corrupt.
324 (0x144) - An attempt was made to modify both a KERNEL and normal Extended Attribute (EA) in the same operation.
326 (0x146) - Device does not support file-level TRIM.
327 (0x147) - The command specified a data offset that does not align to the device's granularity/alignment.
328 (0x148) - The command specified an invalid field in its parameter list.
329 (0x149) - An operation is currently in progress with the device.
330 (0x14A) - An attempt was made to send down the command via an invalid path to the target device.
331 (0x14B) - The command specified a number of descriptors that exceeded the maximum supported by the device.
332 (0x14C) - Scrub is disabled on the specified file.
333 (0x14D) - The storage device does not provide redundancy.
334 (0x14E) - An operation is not supported on a resident file.
335 (0x14F) - An operation is not supported on a compressed file.
336 (0x150) - An operation is not supported on a directory.
337 (0x151) - The specified copy of the requested data could not be read.
350 (0x15E) - No action was taken as a system reboot is required.
351 (0x15F) - The shutdown operation failed.
352 (0x160) - The restart operation failed.
353 (0x161) - The maximum number of sessions has been reached.
400 (0x190) - The thread is already in background processing mode.
401 (0x191) - The thread is not in background processing mode.
402 (0x192) - The process is already in background processing mode.
403 (0x193) - The process is not in background processing mode.
487 (0x1E7) - Attempt to access invalid address.