System Error Codes/系统错误代码

在windows上程序或脚本运行突然出现未知错误,没有错误信息只有一个code,怎样知道究竟是怎么回事呢?如果知道这个code的意思是多么重要的.这时错误代码(System Error Codes)可以帮上你的忙。从MSDN 上找到关于如下信息(http://msdn.microsoft.com/en-us/library/ms681381.aspx),页面的build dat...
摘要由CSDN通过智能技术生成

在windows上程序或脚本运行突然出现未知错误,没有错误信息只有一个code,怎样知道究竟是怎么回事呢?如果知道这个code的意思是多么重要的.这时错误代码(System Error Codes)可以帮上你的忙。

 

从MSDN 上找到关于如下信息(http://msdn.microsoft.com/en-us/library/ms681381.aspx),页面的build date是: 4/27/2010,够新的!包括system error code 的详细信息。另外在http://www.hiteksoftware.com/knowledge/articles/049.htm 页面上可以查看绝大多数的system error code基本信息.

 

System Error Codes

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 code. 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 topics provide lists of system error codes. These values are defined in the winerror.h header file.

copy from:

http://msdn.microsoft.com/en-us/library/ms681381.aspx

 

0-14080 Windows System Error Code:

Title Windows System Error Codes (exit codes)
Date Updated 03/24/2006
Versions affected Automize 4.x+
OS affected Windows 
Description The Command and WinCommand task sometimes do not return any error messages, when your batch files fail.  These task return error codes, which do not mean much to the user. The table below describes these Error codes
Causes Windows does not return error messages all the time.
Code Description 
0 The operation completed successfully. 
1 Incorrect function. 
2 The system cannot find the file specified. 
3 The system cannot find the path specified. 
4 The system cannot open the file. 
5 Access is denied. 
6 The handle is invalid. 
7 The storage control blocks were destroyed. 
8 Not enough storage is available to process this command. 
9 The storage control block address is invalid. 
10 The environment is incorrect. 
11 An attempt was made to load a program with an incorrect format. 
12 The access code is invalid. 
13 The data is invalid. 
14 Not enough storage is available to complete this operation. 
15 The system cannot find the drive specified. 
16 The directory cannot be removed. 
17 The system cannot move the file to a different disk drive. 
18 There are no more files. 
19 The media is write protected. 
20 The system cannot find the device specified. 
21 The device is not ready. 
22 The device does not recognize the command. 
23 Data error (cyclic redundancy check). 
24 The program issued a command but the command length is incorrect. 
25 The drive cannot locate a specific area or track on the disk. 
26 The specified disk or diskette cannot be accessed. 
27 The drive cannot find the sector requested. 
28 The printer is out of paper. 
29 The system cannot write to the specified device. 
30 The system cannot read from the specified device. 
31 A device attached to the system is not functioning. 
32 The process cannot access the file because it is being used by another process. 
33 The process cannot access the file because another process has locked a portion of the file. 
34 The wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1. 
36 Too many files opened for sharing. 
38 Reached the end of the file. 
39 The disk is full. 
50 The request is not supported. 
51 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 You were not connected because a duplicate name exists on the network. Go to System in the Control Panel to change the computer name and try again. 
53 The network path was not found. 
54 The network is busy. 
55 The specified network resource or device is no longer available. 
56 The network BIOS command limit has been reached. 
57 A network adapter hardware error occurred. 
58 The specified server cannot perform the requested operation. 
59 An unexpected network error occurred. 
60 The remote adapter is not compatible. 
61 The printer queue is full. 
62 Space to store the file waiting to be printed is not available on the server. 
63 Your file waiting to be printed was deleted. 
64 The specified network name is no longer available. 
65 Network access is denied. 
66 The network resource type is not correct. 
67 The network name cannot be found. 
68 The name limit for the local computer network adapter card was exceeded. 
69 The network BIOS session limit was exceeded. 
70 The remote server has been paused or is in the process of being started. 
71 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 The specified printer or disk device has been paused. 
80 The file exists. 
82 The directory or file cannot be created. 
83 Fail on INT 24. 
84 Storage to process this request is not available. 
85 The local device name is already in use. 
86 The specified network password is not correct. 
87 The parameter is incorrect. 
88 A write fault occurred on the network. 
89 The system cannot start another process at this time. 
100 Cannot create another system semaphore. 
101 The exclusive semaphore is owned by another process. 
102 The semaphore is set and cannot be closed. 
103 The semaphore cannot be set again. 
104 Cannot request exclusive semaphores at interrupt time. 
105 The previous ownership of this semaphore has ended. 
106 Insert the diskette for drive %1. 
107 The program stopped because an alternate diskette was not inserted. 
108 The disk is in use or locked by another process. 
109 The pipe has been ended. 
110 The system cannot open the device or file specified. 
111 The file name is too long. 
112 There is not enough space on the disk. 
113 No more internal file identifiers available. 
114 The target internal file identifier is incorrect. 
117 The IOCTL call made by the application program is not correct. 
118 The verify-on-write switch parameter value is not correct. 
119 The system does not support the command requested. 
120 This function is not supported on this system. 
121 The semaphore timeout period has expired. 
122 The data area passed to a system call is too small. 
123 The filename, directory name, or volume label syntax is incorrect. 
124 The system call level is not correct. 
125 The disk has no volume label. 
126 The specified module could not be found. 
127 The specified procedure could not be found. 
128 There are no child processes to wait for. 
129 The %1 application cannot be run in Win32 mode. 
130 Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O. 
131 An attempt was made to move the file pointer before the beginning of the file. 
132 The file pointer cannot be set on the specified device or file. 
133 A JOIN or SUBST command cannot be used for a drive that contains previously joined drives. 
134 An attempt was made to use a JOIN or SUBST command on a drive that has already been joined. 
135 An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted. 
136 The system tried to delete the JOIN of a drive that is not joined. 
137 The system tried to delete the substitution of a drive that is not substituted. 
138 The system tried to join a drive to a directory on a joined drive. 
139 The system tried to substitute a drive to a directory on a substituted drive. 
140 The system tried to join a drive to a directory on a substituted drive. 
141 The system tried to SUBST a drive to a directory on a joined drive. 
142 The system cannot perform a JOIN or SUBST at this time. 
143 The system cannot join or substitute a drive to or for a directory on the same drive. 
144 The directory is not a subdirectory of the root directory. 
145 The directory is not empty. 
146 The path specified is being used in a substitute. 
147 Not enough resources are available to process this command. 
148 The path specified cannot be used at this time. 
149 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 System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed. 
151 The number of specified semaphore events for DosMuxSemWait is not correct. 
152 DosMuxSemWait did not execute; too many semaphores are already set. 
153 The DosMuxSemWait list is not correct. 
154 The volume label you entered exceeds the label character limit of the target file system. 
155 Cannot create another thread. 
156 The recipient process has refused the signal. 
157 The segment is already discarded and cannot be locked. 
158 The segment is already unlocked. 
159 The address for the thread ID is not correct. 
160 The argument string passed to DosExecPgm is not correct. 
161 The specified path is invalid. 
162 A signal is already pending. 
164 No more threads can be created in the system. 
167 Unable to lock a region of a file. 
170 The requested resource is in use. 
173 A lock request was not outstanding for the supplied cancel region. 
174 The file system does not support atomic changes to the lock type. 
180 The system detected a segment number that was not correct. 
182 The operating system cannot run %1. 
183 Cannot create a file when that file already exists. 
186 The flag passed is not correct. 
187 The specified system semaphore name was not found. 
188 The operating system cannot run %1. 
189 The operating system cannot run %1. 
190 The operating system cannot run %1. 
191 Cannot run %1 in Win32 mode. 
192 The operating system cannot run %1. 
193 %1 is not a valid Win32 application. 
194 The operating system cannot run %1. 
195 The operating system cannot run %1. 
196 The operating system cannot run this application program. 
197 The operating system is not presently configured to run this application. 
198 The operating system cannot run %1. 
199 The operating system cannot run this application program. 
200 The code segment cannot be greater than or equal to 64K. 
201 The operating system cannot run %1. 
202 The operating system cannot run %1. 
203 The system could not find the environment option that was entered. 
205 No process in the command subtree has a signal handler. 
206 The filename or extension is too long. 
207 The ring 2 stack is in use. 
208 The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified. 
209 The signal being posted is not correct. 
210 The signal handler cannot be set. 
212 The segment is locked and cannot be reallocated. 
214 Too many dynamic-link modules are attached to this program or dynamic-link module. 
215 Cannot nest calls to LoadModule. 
216 The image file %1 is valid, but is for a machine type other than the current machine. 
230 The pipe state is invalid. 
231 All pipe instances are busy. 
232 The pipe is being closed. 
233 No process is on the other end of the pipe. 
234 More data is available. 
240 The session was canceled. 
254 The specified extended attribute name was invalid. 
255 The extended attributes are inconsistent. 
258 The wait operation timed out. 
259 No more data is available. 
266 The copy functions cannot be used. 
267 The directory name is invalid. 
275 The extended attributes did not fit in the buffer. 
276 The extended attribute file on the mounted file system is corrupt. 
277 The extended attribute table file is full. 
278 The specified extended attribute handle is invalid. 
282 The mounted file system does not support extended attributes. 
288 Attempt to release mutex not owned by caller. 
298 Too many posts were made to a semaphore. 
299 Only part of a ReadProcessMemory or WriteProcessMemory request was completed. 
300 The oplock request is denied. 
301 An invalid oplock acknowledgment was received by the system. 
302 The volume is too fragmented to complete this operation. 
303 The file cannot be opened because it is in the process of being deleted. 
317 The system cannot find message text for message number 0x%1 in the message file for %2. 
487 Attempt to access invalid address. 
534 Arithmetic result exceeded 32 bits. 
535 There is a process on other end of the pipe. 
536 Waiting for a process to open the other end of the pipe. 
994 Access to the extended attribute was denied. 
995 The I/O operation has been aborted because of either a thread exit or an application request. 
996 Overlapped I/O event is not in a signaled state. 
997 Overlapped I/O operation is in progress. 
998 Invalid access to memory location. 
999 Error performing inpage operation. 
1001 Recursion too deep; the stack overflowed. 
1002 The window cannot act on the sent message. 
1003 Cannot complete this function. 
1004 Invalid flags. 
1005 The volume does not contain a recognized file system. Please make sure that all required file system drivers are loaded and that the volume is not corrupted. 
1006 The volume for a file has been externally altered so that the opened file is no longer valid. 
1007 The requested operation cannot be performed in full-screen mode. 
1008 An attempt was made to reference a token that does not exist. 
1009 The configuration registry database is corrupt. 
1010 The configuration registry key is invalid. 
1011 The configuration registry key could not be opened. 
1012 The configuration registry key could not be read. 
1013 The configuration registry key could not be written. 
1014 One of the files in the registry database had to be recovered by use of a log or alternate copy. The recovery was successful. 
1015 The registry is corrupted. The structure of one of the files containing registry data is corrupted, or the system's memory image of the file is corrupted, or the file could not be recovered because the alternate copy or log was absent or corrupted. 
1016 An I/O operation initiated by the registry failed unrecoverably. The registry could not read in, or write out, or flush, one of the files that contain the system's image of the registry. 
1017 The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format. 
1018 Illegal operation attempted on a registry key that has been marked for deletion. 
1019 System could not allocate the required space in a registry log. 
1020 Cannot create a symbolic link in a registry key that already has subkeys or values. 
1021 Cannot create a stable subkey under a volatile parent key. 
1022 A notify change request is being completed and the information is not being returned in the caller's buffer. The caller now needs to enumerate the files to find the changes. 
1051 A stop control has been sent to a service that other running services are dependent on. 
1052 The requested control is not valid for this service. 
1053 The service did not respond to the start or control request in a timely fashion. 
1054 A thread could not be created for the service. 
1055 The service database is locked. 
1056 An instance of the service is already running. 
1057 The account name is invalid or does not exist, or the password is invalid for the account name specified. 
1058 The service cannot be started, either because it is disabled or because it has no enabled devices associated with it. 
1059 Circular service dependency was specified. 
1060 The specified service does not exist as an installed service. 
1061 The service cannot accept control messages at this time. 
1062 The service has not been started. 
1063 The service process could not connect to the service controller. 
1064 An exception occurred in the service when handling the control request. 
1065 The database specified does not exist. 
1066 The service has returned a service-specific error code. 
1067 The process terminated unexpectedly. 
1068 The dependency service or group failed to start. 
1069 The service did not start due to a logon failure. 
1070 After starting, the service hung in a start-pending state. 
1071 The specified service database lock is invalid. 
1072 The specified service has been marked for deletion. 
1073 The specified service already exists. 
1074 The system is currently running with the last-known-good configuration. 
1075 The dependency service does not exist or has been marked for deletion. 
1076 The current boot has already been accepted for use as the last-known-good control set. 
1077 No attempts to start the service have been made since the last boot. 
1078 The name is already in use as either a service name or a service display name. 
1079 The account specified for this service is different from the account specified for other services running in the same process. 
1080 Failure actions can only be set for Win32 services, not for drivers. 
1081 This service runs in the same process as the service control manager. Therefore, the service control manager cannot take action if this service's process terminates unexpectedly. 
1082 No recovery program has been configured for this service. 
1083 The executable program that this service is configured to run in does not implement the service. 
1084 This service cannot be started in Safe Mode. 
1100 The physical end of the tape has been reached. 
1101 A tape access reached a filemark. 
1102 The beginning of the tape or a partition was encountered. 
1103 A tape access reached the end of a set of files. 
1104 No more data is on the tape. 
1105 Tape could not be partitioned. 
1106 When accessing a new tape of a multivolume partition, the current block size is incorrect. 
1107 Tape partition information could not be found when loading a tape. 
1108 Unable to lock the media eject mechanism. 
1109 Unable to unload the media. 
1110 The media in the drive may have changed. 
1111 The I/O bus was reset. 
1112 No media in drive. 
1113 No mapping for the Unicode character exists in the target multi-byte code page. 
1114 A dynamic link library (DLL) initialization routine failed. 
1115 A system shutdown is in progress. 
1116 Unable to abort the system shutdown because no shutdown was in progress. 
1117 The request could not be performed because of an I/O device error. 
1118 No serial device was successfully initialized. The serial driver will unload. 
1119 Unable to open a device that was sharing an interrupt request (IRQ) with other devices. At least one other device that uses that IRQ was already opened. 
1120 A serial I/O operation was completed by another write to the serial port. (The IOCTL_SERIAL_XOFF_COUNTER reached zero.) 
1121 A serial I/O operation completed because the timeout period expired. (The IOCTL_SERIAL_XOFF_COUNTER did not reach zero.) 
1122 No ID address mark was found on the floppy disk. 
1123 Mismatch between the floppy disk sector ID field and the floppy disk controller track address. 
1124 The floppy disk controller reported an error that is not recognized by the floppy disk driver. 
1125 The floppy disk controller returned inconsistent results in its registers. 
1126 While accessing the hard disk, a recalibrate operation failed, even after retries. 
1127 While accessing the hard disk, a disk operation failed even after retries. 
1128 While accessing the hard disk, a disk controller reset was needed, but even that failed. 
1129 Physical end of tape encountered. 
1130 Not enough server storage is available to process this command. 
1131 A potential deadlock condition has been detected. 
1132 The base address or the file offset specified does not have the proper alignment. 
1140 An attempt to change the system power state was vetoed by another application or driver. 
1141 The system BIOS failed an attempt to change the system power state. 
1142 An attempt was made to create more links on a file than the file system supports. 
1150 The specified program requires a newer version of Windows. 
1151 The specified program is not a Windows or MS-DOS program. 
1152 Cannot start more than one instance of the specified program. 
1153 The specified program was written for an earlier version of Windows. 
1154 One of the library files needed to run this application is damaged. 
1155 No application is associated with the specified file for this operation. 
1156 An error occurred in sending the command to the application. 
1157 One of the library files needed to run this application cannot be found. 
1158 The current process has used all of its system allowance of handles for Window Manager objects. 
1159 The message can be used only with synchronous operations. 
1160 The indicated source element has no media. 
1161 The indicated destination element already contains media. 
1162 The indicated element does not exist. 
1163 The indicated element is part of a magazine that is not present. 
1164 The indicated device requires reinitialization due to hardware errors. 
1165 The device has indicated that cleaning is required before further operations are attempted. 
1166 The device has indicated that its door is open. 
1167 The device is not connected. 
1168 Element not found. 
1169 There was no match for the specified key in the index. 
1170 The property set specified does not exist on the object. 
1171 The point passed to GetMouseMovePointsEx is not in the buffer. 
1172 The tracking (workstation) service is not running. 
1173 The Volume ID could not be found. 
1175 Unable to remove the file to be replaced. 
1176 Unable to move the replacement file to the file to be replaced. The file to be replaced has retained its original name. 
1177 Unable to move the replacement file to the file to be replaced. The file to be replaced has been renamed using the backup name. 
1178 The volume change journal is being deleted. 
1179 The volume change journal is not active. 
1180 A file was found, but it may not be the correct file. 
1181 The journal entry has been deleted from the journal. 
1200 The specified device name is invalid. 
1201 The device is not currently connected but it is a remembered connection. 
1202 The local device name has a remembered connection to another network resource. 
1203 No network provider accepted the given network path. 
1204 The specified network provider name is invalid. 
1205 Unable to open the network connection profile. 
1206 The network connection profile is corrupted. 
1207 Cannot enumerate a noncontainer. 
1208 An extended error has occurred. 
1209 The format of the specified group name is invalid. 
1210 The format of the specified computer name is invalid. 
1211 The format of the specified event name is invalid. 
1212 The format of the specified domain name is invalid. 
1213 The format of the specified service name is invalid. 
1214 The format of the specified network name is invalid. 
1215 The format of the specified share name is invalid. 
1216 The format of the specified password is invalid. 
1217 The format of the specified message name is invalid. 
1218 The format of the specified message destination is invalid. 
1219
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值