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 1000 to 1299). 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.
1001 (0x3E9) – Recursion too deep; the stack overflowed.
1002 (0x3EA) – The window cannot act on the sent message.
1003 (0x3EB) – Cannot complete this function.
1004 (0x3EC) – Invalid flags.
1005 (0x3ED) – 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 (0x3EE) – The volume for a file has been externally altered so that the opened file is no longer valid.
1007 (0x3EF) – The requested operation cannot be performed in full-screen mode.
1008 (0x3F0) – An attempt was made to reference a token that does not exist.
1009 (0x3F1) – The configuration registry database is corrupt.
1010 (0x3F2) – The configuration registry key is invalid.
1011 (0x3F3) – The configuration registry key could not be opened.
1012 (0x3F4) – The configuration registry key could not be read.
1013 (0x3F5) – The configuration registry key could not be written.
1014 (0x3F6) – 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 (0x3F7) – 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 (0x3F8) – 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 (0x3F9) – 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 (0x3FA) – Illegal operation attempted on a registry key that has been marked for deletion.
1019 (0x3FB) – System could not allocate the required space in a registry log.
1020 (0x3FC) – Cannot create a symbolic link in a registry key that already has subkeys or values.
1021 (0x3FD) – Cannot create a stable subkey under a volatile parent key.
1022 (0x3FE) – 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 (0x41B) – A stop control has been sent to a service that other running services are dependent on.
1052 (0x41C) – The requested control is not valid for this service.
1053 (0x41D) – The service did not respond to the start or control request in a timely fashion.
1054 (0x41E) – A thread could not be created for the service.
1055 (0x41F) – The service database is locked.
1056 (0x420) – An instance of the service is already running.
1057 (0x421) – The account name is invalid or does not exist, or the password is invalid for the account name specified.
1058 (0x422) – The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
1059 (0x423) – Circular service dependency was specified.
1060 (0x424) – The specified service does not exist as an installed service.
1061 (0x425) – The service cannot accept control messages at this time.
1062 (0x426) – The service has not been started.
1063 (0x427) – The service process could not connect to the service controller.
1064 (0x428) – An exception occurred in the service when handling the control request.
1065 (0x429) – The database specified does not exist.
1066 (0x42A) – The service has returned a service-specific error code.
1067 (0x42B) – The process terminated unexpectedly.
1068 (0x42C) – The dependency service or group failed to start.
1069 (0x42D) – The service did not start due to a logon failure.
1070 (0x42E) – After starting, the service hung in a start-pending state.
1071 (0x42F) – The specified service database lock is invalid.
1072 (0x430) – The specified service has been marked for deletion.
1073 (0x431) – The specified service already exists.
1074 (0x432) – The system is currently running with the last-known-good configuration.
1075 (0x433) – The dependency service does not exist or has been marked for deletion.
1076 (0x434) – The current boot has already been accepted for use as the last-known-good control set.
1077 (0x435) – No attempts to start the service have been made since the last boot.
1078 (0x436) – The name is already in use as either a service name or a service display name.
1079 (0x437) – The account specified for this service is different from the account specified for other services running in the same process.
1080 (0x438) – Failure actions can only be set for Win32 services, not for drivers.
1081 (0x439) – 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 (0x43A) – No recovery program has been configured for this service.
1083 (0x43B) – The executable program that this service is configured to run in does not implement the service.
1084 (0x43C) – This service cannot be started in Safe Mode.
1100 (0x44C) – The physical end of the tape has been reached.
1101 (0x44D) – A tape access reached a filemark.
1102 (0x44E) – The beginning of the tape or a partition was encountered.
1103 (0x44F) – A tape access reached the end of a set of files.
1104 (0x450) – No more data is on the tape.
1105 (0x451) – Tape could not be partitioned.
1106 (0x452) – When accessing a new tape of a multivolume partition, the current block size is incorrect.
1107 (0x453) – Tape partition information could not be found when loading a tape.
1108 (0x454) – Unable to lock the media eject mechanism.
1109 (0x455) – Unable to unload the media.
1110 (0x456) – The media in the drive may have changed.
1111 (0x457) – The I/O bus was reset.
1112 (0x458) – No media in drive.
1113 (0x459) – No mapping for the Unicode character exists in the target multi-byte code page.
1114 (0x45A) – A dynamic link library (DLL) initialization routine failed.
1115 (0x45B) – A system shutdown is in progress.
1116 (0x45C) – Unable to abort the system shutdown because no shutdown was in progress.
1117 (0x45D) – The request could not be performed because of an I/O device error.
1118 (0x45E) – No serial device was successfully initialized. The serial driver will unload.
1119 (0x45F) – 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 (0x460) – A serial I/O operation was completed by another write to the serial port. The IOCTL_SERIAL_XOFF_COUNTER reached zero.)
1121 (0x461) – A serial I/O operation completed because the timeout period expired. The IOCTL_SERIAL_XOFF_COUNTER did not reach zero.)
1122 (0x462) – No ID address mark was found on the floppy disk.
1123 (0x463) – Mismatch between the floppy disk sector ID field and the floppy disk controller track address.
1124 (0x464) – The floppy disk controller reported an error that is not recognized by the floppy disk driver.
1125 (0x465) – The floppy disk controller returned inconsistent results in its registers.
1126 (0x466) – While accessing the hard disk, a recalibrate operation failed, even after retries.
1127 (0x467) – While accessing the hard disk, a disk operation failed even after retries.
1128 (0x468) – While accessing the hard disk, a disk controller reset was needed, but even that failed.
1129 (0x469) – Physical end of tape encountered.
1130 (0x46A) – Not enough server storage is available to process this command.
1131 (0x46B) – A potential deadlock condition has been detected.
1132 (0x46C) – The base address or the file offset specified does not have the proper alignment.
1140 (0x474) – An attempt to change the system power state was vetoed by another application or driver.
1141 (0x475) – The system BIOS failed an attempt to change the system power state.
1142 (0x476) – An attempt was made to create more links on a file than the file system supports.
1150 (0x47E) – The specified program requires a newer version of Windows.
1151 (0x47F) – The specified program is not a Windows or MS-DOS program.
1152 (0x480) – Cannot start more than one instance of the specified program.
1153 (0x481) – The specified program was written for an earlier version of Windows.
1154 (0x482) – One of the library files needed to run this application is damaged.
1155 (0x483) – No application is associated with the specified file for this operation.
1156 (0x484) – An error occurred in sending the command to the application.
1157 (0x485) – One of the library files needed to run this application cannot be found.
1158 (0x486) – The current process has used all of its system allowance of handles for Window Manager objects.
1159 (0x487) – The message can be used only with synchronous operations.
1160 (0x488) – The indicated source element has no media.
1161 (0x489) – The indicated destination element already contains media.
1162 (0x48A) – The indicated element does not exist.
1163 (0x48B) – The indicated element is part of a magazine that is not present.
1164 (0x48C) – The indicated device requires reinitialization due to hardware errors.
1165 (0x48D) – The device has indicated that cleaning is required before further operations are attempted.
1166 (0x48E) – The device has indicated that its door is open.
1167 (0x48F) – The device is not connected.
1168 (0x490) – Element not found.
1169 (0x491) – There was no match for the specified key in the index.
1170 (0x492) – The property set specified does not exist on the object.
1171 (0x493) – The point passed to GetMouseMovePoints is not in the buffer.
1172 (0x494) – The tracking (workstation) service is not running.
1173 (0x495) – The Volume ID could not be found.
1175 (0x497) – Unable to remove the file to be replaced.
1176 (0x498) – Unable to move the replacement file to the file to be replaced. The file to be replaced has retained its original name.
1177 (0x499) – 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 (0x49A) – The volume change journal is being deleted.
1179 (0x49B) – The volume change journal is not active.
1180 (0x49C) – A file was found, but it may not be the correct file.
1181 (0x49D) – The journal entry has been deleted from the journal.
1190 (0x4A6) – A system shutdown has already been scheduled.
1191 (0x4A7) – The system shutdown cannot be initiated because there are other users logged on to the computer.
1200 (0x4B0) – The specified device name is invalid.
1201 (0x4B1) – The device is not currently connected but it is a remembered connection.
1202 (0x4B2) – The local device name has a remembered connection to another network resource.
1203 (0x4B3) – The network path was either typed incorrectly, does not exist, or the network provider is not currently available. Please try retyping the path or contact your network administrator.
1204 (0x4B4) – The specified network provider name is invalid.
1205 (0x4B5) – Unable to open the network connection profile.
1206 (0x4B6) – The network connection profile is corrupted.
1207 (0x4B7) – Cannot enumerate a noncontainer.
1208 (0x4B8) – An extended error has occurred.
1209 (0x4B9) – The format of the specified group name is invalid.
1210 (0x4BA) – The format of the specified computer name is invalid.
1211 (0x4BB) – The format of the specified event name is invalid.
1212 (0x4BC) – The format of the specified domain name is invalid.
1213 (0x4BD) – The format of the specified service name is invalid.
1214 (0x4BE) – The format of the specified network name is invalid.
1215 (0x4BF) – The format of the specified share name is invalid.
1216 (0x4C0) – The format of the specified password is invalid.
1217 (0x4C1) – The format of the specified message name is invalid.
1218 (0x4C2) – The format of the specified message destination is invalid.
1219 (0x4C3) – Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
1220 (0x4C4) – An attempt was made to establish a session to a network server, but there are already too many sessions established to that server.
1221 (0x4C5) – The workgroup or domain name is already in use by another computer on the network.
1222 (0x4C6) – The network is not present or not started.
1223 (0x4C7) – The operation was canceled by the user.
1224 (0x4C8) – The requested operation cannot be performed on a file with a user-mapped section open.
1225 (0x4C9) – The remote computer refused the network connection.
1226 (0x4CA) – The network connection was gracefully closed.
1227 (0x4CB) – The network transport endpoint already has an address associated with it.
1228 (0x4CC) – An address has not yet been associated with the network endpoint.
1229 (0x4CD) – An operation was attempted on a nonexistent network connection.
1230 (0x4CE) – An invalid operation was attempted on an active network connection.
1231 (0x4CF) – The network location cannot be reached. For information about network troubleshooting, see Windows Help.
1232 (0x4D0) – The network location cannot be reached. For information about network troubleshooting, see Windows Help.
1233 (0x4D1) – The network location cannot be reached. For information about network troubleshooting, see Windows Help.
1234 (0x4D2) – No service is operating at the destination network endpoint on the remote system.
1235 (0x4D3) – The request was aborted.
1236 (0x4D4) – The network connection was aborted by the local system.
1237 (0x4D5) – The operation could not be completed. A retry should be performed.
1238 (0x4D6) – A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached.
1239 (0x4D7) – Attempting to log in during an unauthorized time of day for this account.
1240 (0x4D8) – The account is not authorized to log in from this station.
1241 (0x4D9) – The network address could not be used for the operation requested.
1242 (0x4DA) – The service is already registered.
1243 (0x4DB) – The specified service does not exist.
1244 (0x4DC) – The operation being requested was not performed because the user has not been authenticated.
1245 (0x4DD) – The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist.
1246 (0x4DE) – Continue with work in progress.
1247 (0x4DF) – An attempt was made to perform an initialization operation when initialization has already been completed.
1248 (0x4E0) – No more local devices.
1249 (0x4E1) – The specified site does not exist.
1250 (0x4E2) – A domain controller with the specified name already exists.
1251 (0x4E3) – This operation is supported only when you are connected to the server.
1252 (0x4E4) – The group policy framework should call the extension even if there are no changes.
1253 (0x4E5) – The specified user does not have a valid profile.
1254 (0x4E6) – This operation is not supported on a computer running Windows Server 2003 for Small Business Server.
1255 (0x4E7) – The server machine is shutting down.
1256 (0x4E8) – The remote system is not available. For information about network troubleshooting, see Windows Help.
1257 (0x4E9) – The security identifier provided is not from an account domain.
1258 (0x4EA) – The security identifier provided does not have a domain component.
1259 (0x4EB) – AppHelp dialog canceled thus preventing the application from starting.
1260 (0x4EC) – This program is blocked by group policy. For more information, contact your system administrator.
1261 (0x4ED) – A program attempt to use an invalid register value. Normally caused by an uninitialized register. This error is Itanium specific.
1262 (0x4EE) – The share is currently offline or does not exist.
1263 (0x4EF) – The Kerberos protocol encountered an error while validating the KDC certificate during smartcard logon. There is more information in the system event log.
1264 (0x4F0) – The Kerberos protocol encountered an error while attempting to utilize the smartcard subsystem.
1265 (0x4F1) – The system cannot contact a domain controller to service the authentication request. Please try again later.
1271 (0x4F7) – The machine is locked and cannot be shut down without the force option.
1273 (0x4F9) – An application-defined callback gave invalid data when called.
1274 (0x4FA) – The group policy framework should call the extension in the synchronous foreground policy refresh.
1275 (0x4FB) – This driver has been blocked from loading.
1276 (0x4FC) – A dynamic link library (DLL) referenced a module that was neither a DLL nor the process’s executable image.
1277 (0x4FD) – Windows cannot open this program since it has been disabled.
1278 (0x4FE) – Windows cannot open this program because the license enforcement system has been tampered with or become corrupted.
1279 (0x4FF) – A transaction recover failed.
1280 (0x500) – The current thread has already been converted to a fiber.
1281 (0x501) – The current thread has already been converted from a fiber.
1282 (0x502) – The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.
1283 (0x503) – Data present in one of the parameters is more than the function can operate on.
1284 (0x504) – An attempt to do an operation on a debug object failed because the object is in the process of being deleted.
1285 (0x505) – An attempt to delay-load a .dll or get a function address in a delay-loaded .dll failed.
1286 (0x506) – %1 is a 16-bit application. You do not have permissions to execute 16-bit applications. Check your permissions with your system administrator.
1287 (0x507) – Insufficient information exists to identify the cause of failure.
1288 (0x508) – The parameter passed to a C runtime function is incorrect.
1289 (0x509) – The operation occurred beyond the valid data length of the file.
1290 (0x50A) – The service start failed since one or more services in the same process have an incompatible service SID type setting. A service with restricted service SID type can only coexist in the same process with other services with a restricted SID type. If the service SID type for this service was just configured, the hosting process must be restarted in order to start this service. On Windows Server 2003 and Windows XP, an unrestricted service cannot coexist in the same process with other services. The service with the unrestricted service SID type must be moved to an owned process in order to start this service.
1291 (0x50B) – The process hosting the driver for this device has been terminated.
1292 (0x50C) – An operation attempted to exceed an implementation-defined limit.
1293 (0x50D) – Either the target process, or the target thread’s containing process, is a protected process.
1294 (0x50E) – The service notification client is lagging too far behind the current state of services in the machine.
1295 (0x50F) – The requested file operation failed because the storage quota was exceeded. To free up disk space, move files to a different location or delete unnecessary files. For more information, contact your system administrator.
1296 (0x510) – The requested file operation failed because the storage policy blocks that type of file. For more information, contact your system administrator.
1297 (0x511) – A privilege that the service requires to function properly does not exist in the service account configuration. You may use the Services Microsoft Management Console (MMC) snap-in (services.msc) and the Local Security Settings MMC snap-in (secpol.msc) to view the service configuration and the account configuration.
1298 (0x512) – A thread involved in this operation appears to be unresponsive.
1299 (0x513) – Indicates a particular Security ID may not be assigned as the label of an object.