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 1300 to 1699). 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.
1300 (0x514) – Not all privileges or groups referenced are assigned to the caller.
1301 (0x515) – Some mapping between account names and security IDs was not done.
1302 (0x516) – No system quota limits are specifically set for this account.
1303 (0x517) – No encryption key is available. A well-known encryption key was returned.
1304 (0x518) – The password is too complex to be converted to a LAN Manager password. The LAN Manager password returned is a NULL string.
1305 (0x519) – The revision level is unknown.
1306 (0x51A) – Indicates two revision levels are incompatible.
1307 (0x51B) – This security ID may not be assigned as the owner of this object.
1308 (0x51C) – This security ID may not be assigned as the primary group of an object.
1309 (0x51D) – An attempt has been made to operate on an impersonation token by a thread that is not currently impersonating a client.
1310 (0x51E) – The group may not be disabled.
1311 (0x51F) – There are currently no logon servers available to service the logon request.
1312 (0x520) – A specified logon session does not exist. It may already have been terminated.
1313 (0x521) – A specified privilege does not exist.
1314 (0x522) – A required privilege is not held by the client.
1315 (0x523) – The name provided is not a properly formed account name.
1316 (0x524) – The specified account already exists.
1317 (0x525) – The specified account does not exist.
1318 (0x526) – The specified group already exists.
1319 (0x527) – The specified group does not exist.
1320 (0x528) – Either the specified user account is already a member of the specified group, or the specified group cannot be deleted because it contains a member.
1321 (0x529) – The specified user account is not a member of the specified group account.
1322 (0x52A) – This operation is disallowed as it could result in an administration account being disabled, deleted or unable to log on.
1323 (0x52B) – Unable to update the password. The value provided as the current password is incorrect.
1324 (0x52C) – Unable to update the password. The value provided for the new password contains values that are not allowed in passwords.
1325 (0x52D) – Unable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain.
1326 (0x52E) – The user name or password is incorrect.
1327 (0x52F) – Account restrictions are preventing this user from signing in. For example: blank passwords aren’t allowed, sign-in times are limited, or a policy restriction has been enforced.
1328 (0x530) – Your account has time restrictions that keep you from signing in right now.
1329 (0x531) – This user isn’t allowed to sign in to this computer.
1330 (0x532) – The password for this account has expired.
1331 (0x533) – This user can’t sign in because this account is currently disabled.
1332 (0x534) – No mapping between account names and security IDs was done.
1333 (0x535) – Too many local user identifiers (LUIDs) were requested at one time.
1334 (0x536) – No more local user identifiers (LUIDs) are available.
1335 (0x537) – The subauthority part of a security ID is invalid for this particular use.
1336 (0x538) – The access control list (ACL) structure is invalid.
1337 (0x539) – The security ID structure is invalid.
1338 (0x53A) – The security descriptor structure is invalid.
1340 (0x53C) – The inherited access control list (ACL) or access control entry (ACE) could not be built.
1341 (0x53D) – The server is currently disabled.
1342 (0x53E) – The server is currently enabled.
1343 (0x53F) – The value provided was an invalid value for an identifier authority.
1344 (0x540) – No more memory is available for security information updates.
1345 (0x541) – The specified attributes are invalid, or incompatible with the attributes for the group as a whole.
1346 (0x542) – Either a required impersonation level was not provided, or the provided impersonation level is invalid.
1347 (0x543) – Cannot open an anonymous level security token.
1348 (0x544) – The validation information class requested was invalid.
1349 (0x545) – The type of the token is inappropriate for its attempted use.
1350 (0x546) – Unable to perform a security operation on an object that has no associated security.
1351 (0x547) – Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied.
1352 (0x548) – The security account manager (SAM) or local security authority (LSA) server was in the wrong state to perform the security operation.
1353 (0x549) – The domain was in the wrong state to perform the security operation.
1354 (0x54A) – This operation is only allowed for the Primary Domain Controller of the domain.
1355 (0x54B) – The specified domain either does not exist or could not be contacted.
1356 (0x54C) – The specified domain already exists.
1357 (0x54D) – An attempt was made to exceed the limit on the number of domains per server.
1358 (0x54E) – Unable to complete the requested operation because of either a catastrophic media failure or a data structure corruption on the disk.
1359 (0x54F) – An internal error occurred.
1360 (0x550) – Generic access types were contained in an access mask which should already be mapped to nongeneric types.
1361 (0x551) – A security descriptor is not in the right format (absolute or self-relative).
1362 (0x552) – The requested action is restricted for use by logon processes only. The calling process has not registered as a logon process.
1363 (0x553) – Cannot start a new logon session with an ID that is already in use.
1364 (0x554) – A specified authentication package is unknown.
1365 (0x555) – The logon session is not in a state that is consistent with the requested operation.
1366 (0x556) – The logon session ID is already in use.
1367 (0x557) – A logon request contained an invalid logon type value.
1368 (0x558) – Unable to impersonate using a named pipe until data has been read from that pipe.
1369 (0x559) – The transaction state of a registry subtree is incompatible with the requested operation.
1370 (0x55A) – An internal security database corruption has been encountered.
1371 (0x55B) – Cannot perform this operation on built-in accounts.
1372 (0x55C) – Cannot perform this operation on this built-in special group.
1373 (0x55D) – Cannot perform this operation on this built-in special user.
1374 (0x55E) – The user cannot be removed from a group because the group is currently the user’s primary group.
1375 (0x55F) – The token is already in use as a primary token.
1376 (0x560) – The specified local group does not exist.
1377 (0x561) – The specified account name is not a member of the group.
1378 (0x562) – The specified account name is already a member of the group.
1379 (0x563) – The specified local group already exists.
1380 (0x564) – Logon failure: the user has not been granted the requested logon type at this computer.
1381 (0x565) – The maximum number of secrets that may be stored in a single system has been exceeded.
1382 (0x566) – The length of a secret exceeds the maximum length allowed.
1383 (0x567) – The local security authority database contains an internal inconsistency.
1384 (0x568) – During a logon attempt, the user’s security context accumulated too many security IDs.
1385 (0x569) – Logon failure: the user has not been granted the requested logon type at this computer.
1386 (0x56A) – A cross-encrypted password is necessary to change a user password.
1387 (0x56B) – A member could not be added to or removed from the local group because the member does not exist.
1388 (0x56C) – A new member could not be added to a local group because the member has the wrong account type.
1389 (0x56D) – Too many security IDs have been specified.
1390 (0x56E) – A cross-encrypted password is necessary to change this user password.
1391 (0x56F) – Indicates an ACL contains no inheritable components.
1392 (0x570) – The file or directory is corrupted and unreadable.
1393 (0x571) – The disk structure is corrupted and unreadable.
1394 (0x572) – There is no user session key for the specified logon session.
1395 (0x573) – The service being accessed is licensed for a particular number of connections. No more connections can be made to the service at this time because there are already as many connections as the service can accept.
1396 (0x574) – The target account name is incorrect.
1397 (0x575) – Mutual Authentication failed. The server’s password is out of date at the domain controller.
1398 (0x576) – There is a time and/or date difference between the client and server.
1399 (0x577) – This operation cannot be performed on the current domain.
1400 (0x578) – Invalid window handle.
1401 (0x579) – Invalid menu handle.
1402 (0x57A) – Invalid cursor handle.
1403 (0x57B) – Invalid accelerator table handle.
1404 (0x57C) – Invalid hook handle.
1405 (0x57D) – Invalid handle to a multiple-window position structure.
1406 (0x57E) – Cannot create a top-level child window.
1407 (0x57F) – Cannot find window class.
1408 (0x580) – Invalid window; it belongs to other thread.
1409 (0x581) – Hot key is already registered.
1410 (0x582) – Class already exists.
1411 (0x583) – Class does not exist.
1412 (0x584) – Class still has open windows.
1413 (0x585) – Invalid index.
1414 (0x586) – Invalid icon handle.
1415 (0x587) – Using private DIALOG window words.
1416 (0x588) – The list box identifier was not found.
1417 (0x589) – No wildcards were found.
1418 (0x58A) – Thread does not have a clipboard open.
1419 (0x58B) – Hot key is not registered.
1420 (0x58C) – The window is not a valid dialog window.
1421 (0x58D) – Control ID not found.
1422 (0x58E) – Invalid message for a combo box because it does not have an edit control.
1423 (0x58F) – The window is not a combo box.
1424 (0x590) – Height must be less than 256.
1425 (0x591) – Invalid device context (DC) handle.
1426 (0x592) – Invalid hook procedure type.
1427 (0x593) – Invalid hook procedure.
1428 (0x594) – Cannot set nonlocal hook without a module handle.
1429 (0x595) – This hook procedure can only be set globally.
1430 (0x596) – The journal hook procedure is already installed.
1431 (0x597) – The hook procedure is not installed.
1432 (0x598) – Invalid message for single-selection list box.
1433 (0x599) – LB_SETCOUNT sent to non-lazy list box.
1434 (0x59A) – This list box does not support tab stops.
1435 (0x59B) – Cannot destroy object created by another thread.
1436 (0x59C) – Child windows cannot have menus.
1437 (0x59D) – The window does not have a system menu.
1438 (0x59E) – Invalid message box style.
1439 (0x59F) – Invalid system-wide (SPI_*) parameter.
1440 (0x5A0) – Screen already locked.
1441 (0x5A1) – All handles to windows in a multiple-window position structure must have the same parent.
1442 (0x5A2) – The window is not a child window.
1443 (0x5A3) – Invalid GW_* command.
1444 (0x5A4) – Invalid thread identifier.
1445 (0x5A5) – Cannot process a message from a window that is not a multiple document interface (MDI) window.
1446 (0x5A6) – Popup menu already active.
1447 (0x5A7) – The window does not have scroll bars.
1448 (0x5A8) – Scroll bar range cannot be greater than MAXLONG.
1449 (0x5A9) – Cannot show or remove the window in the way specified.
1450 (0x5AA) – Insufficient system resources exist to complete the requested service.
1451 (0x5AB) – Insufficient system resources exist to complete the requested service.
1452 (0x5AC) – Insufficient system resources exist to complete the requested service.
1453 (0x5AD) – Insufficient quota to complete the requested service.
1454 (0x5AE) – Insufficient quota to complete the requested service.
1455 (0x5AF) – The paging file is too small for this operation to complete.
1456 (0x5B0) – A menu item was not found.
1457 (0x5B1) – Invalid keyboard layout handle.
1458 (0x5B2) – Hook type not allowed.
1459 (0x5B3) – This operation requires an interactive window station.
1460 (0x5B4) – This operation returned because the timeout period expired.
1461 (0x5B5) – Invalid monitor handle.
1462 (0x5B6) – Incorrect size argument.
1463 (0x5B7) – The symbolic link cannot be followed because its type is disabled.
1464 (0x5B8) – This application does not support the current operation on symbolic links.
1465 (0x5B9) – Windows was unable to parse the requested XML data.
1466 (0x5BA) – An error was encountered while processing an XML digital signature.
1467 (0x5BB) – This application must be restarted.
1468 (0x5BC) – The caller made the connection request in the wrong routing compartment.
1469 (0x5BD) – There was an AuthIP failure when attempting to connect to the remote host.
1470 (0x5BE) – Insufficient NVRAM resources exist to complete the requested service. A reboot might be required.
1471 (0x5BF) – Unable to finish the requested operation because the specified process is not a GUI process.
1500 (0x5DC) – The event log file is corrupted.
1501 (0x5DD) – No event log file could be opened, so the event logging service did not start.
1502 (0x5DE) – The event log file is full.
1503 (0x5DF) – The event log file has changed between read operations.
1550 (0x60E) – The specified task name is invalid.
1551 (0x60F) – The specified task index is invalid.
1552 (0x610) – The specified thread is already joining a task.
1601 (0x641) – The Windows Installer Service could not be accessed. This can occur if the Windows Installer is not correctly installed. Contact your support personnel for assistance.
1602 (0x642) – User cancelled installation.
1603 (0x643) – Fatal error during installation.
1604 (0x644) – Installation suspended, incomplete.
1605 (0x645) – This action is only valid for products that are currently installed.
1606 (0x646) – Feature ID not registered.
1607 (0x647) – Component ID not registered.
1608 (0x648) – Unknown property.
1609 (0x649) – Handle is in an invalid state.
1610 (0x64A) – The configuration data for this product is corrupt. Contact your support personnel.
1611 (0x64B) – Component qualifier not present.
1612 (0x64C) – The installation source for this product is not available. Verify that the source exists and that you can access it.
1613 (0x64D) – This installation package cannot be installed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
1614 (0x64E) – Product is uninstalled.
1615 (0x64F) – SQL query syntax invalid or unsupported.
1616 (0x650) – Record field does not exist.
1617 (0x651) – The device has been removed.
1618 (0x652) – Another installation is already in progress. Complete that installation before proceeding with this install.
1619 (0x653) – This installation package could not be opened. Verify that the package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer package.
1620 (0x654) – This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.
1621 (0x655) – There was an error starting the Windows Installer service user interface. Contact your support personnel.
1622 (0x656) – Error opening installation log file. Verify that the specified log file location exists and that you can write to it.
1623 (0x657) – The language of this installation package is not supported by your system.
1624 (0x658) – Error applying transforms. Verify that the specified transform paths are valid.
1625 (0x659) – This installation is forbidden by system policy. Contact your system administrator.
1626 (0x65A) – Function could not be executed.
1627 (0x65B) – Function failed during execution.
1628 (0x65C) – Invalid or unknown table specified.
1629 (0x65D) – Data supplied is of wrong type.
1630 (0x65E) – Data of this type is not supported.
1631 (0x65F) – The Windows Installer service failed to start. Contact your support personnel.
1632 (0x660) – The Temp folder is on a drive that is full or is inaccessible. Free up space on the drive or verify that you have write permission on the Temp folder.
1633 (0x661) – This installation package is not supported by this processor type. Contact your product vendor.
1634 (0x662) – Component not used on this computer.
1635 (0x663) – This update package could not be opened. Verify that the update package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer update package.
1636 (0x664) – This update package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer update package.
1637 (0x665) – This update package cannot be processed by the Windows Installer service. You must install a Windows service pack that contains a newer version of the Windows Installer service.
1638 (0x666) – Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.
1639 (0x667) – Invalid command line argument. Consult the Windows Installer SDK for detailed command line help.
1640 (0x668) – Only administrators have permission to add, remove, or configure server software during a Terminal services remote session. If you want to install or configure software on the server, contact your network administrator.
1641 (0x669) – The requested operation completed successfully. The system will be restarted so the changes can take effect.
1642 (0x66A) – The upgrade cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade.
1643 (0x66B) – The update package is not permitted by software restriction policy.
1644 (0x66C) – One or more customizations are not permitted by software restriction policy.
1645 (0x66D) – The Windows Installer does not permit installation from a Remote Desktop Connection.
1646 (0x66E) – Uninstallation of the update package is not supported.
1647 (0x66F) – The update is not applied to this product.
1648 (0x670) – No valid sequence could be found for the set of updates.
1649 (0x671) – Update removal was disallowed by policy.
1650 (0x672) – The XML update data is invalid.
1651 (0x673) – Windows Installer does not permit updating of managed advertised products. At least one feature of the product must be installed before applying the update.
1652 (0x674) – The Windows Installer service is not accessible in Safe Mode. Please try again when your computer is not in Safe Mode or you can use System Restore to return your machine to a previous good state.
1653 (0x675) – A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately.
1654 (0x676) – The app that you are trying to run is not supported on this version of Windows.