System Error Codes
This section is intended for developers who are debugging system errors. If you reached this page while searching for other errors, here are some links that might help:
- Windows Update errors — For help resolving issues with Windows Update.
- Windows activation errors — For help verifying your copy of Windows.
- Troubleshooting blue screen errors — For help discovering what caused a stop error.
- Microsoft Support — For support with a Microsoft product.
More ways to find an error code
We’ve listed the system error codes in this section, organized by number. If you need more help tracking down a specific error, here are some more recommendations:
- Use the Microsoft Error Lookup Tool.
- Install the Debugging Tools for Windows, load a memory dump file, and then run the !err command.
- Search the Microsoft Protocols site for the raw text or error code. For more information, see [MS-ERREF]: Windows Error Codes.
Third party error codes
Other error codes may be generated by third party services or apps (for example, Error Code: -118 may be displayed by the Steam game service) and in those situations you would contact the third party’s support line.
System Error Codes
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 runtime 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. And sometimes the code is returned by a function deep in the stack and far removed from 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.
System Error Codes (1700-3999)
This information is intended for developers debugging system errors. For other errors, such as issues with Windows Update, there is a list of resources on the Error codes page.
The following list describes system error codes for errors 1700 to 3999. 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.
RPC_S_INVALID_STRING_BINDING
The string binding is invalid.
RPC_S_WRONG_KIND_OF_BINDING
The binding handle is not the correct type.
RPC_S_INVALID_BINDING
The binding handle is invalid.
RPC_S_PROTSEQ_NOT_SUPPORTED
The RPC protocol sequence is not supported.
RPC_S_INVALID_RPC_PROTSEQ
The RPC protocol sequence is invalid.
RPC_S_INVALID_STRING_UUID
The string universal unique identifier (UUID) is invalid.
RPC_S_INVALID_ENDPOINT_FORMAT
The endpoint format is invalid.
RPC_S_INVALID_NET_ADDR
The network address is invalid.
RPC_S_NO_ENDPOINT_FOUND
No endpoint was found.
RPC_S_INVALID_TIMEOUT
The timeout value is invalid.
RPC_S_OBJECT_NOT_FOUND
The object universal unique identifier (UUID) was not found.
RPC_S_ALREADY_REGISTERED
The object universal unique identifier (UUID) has already been registered.
RPC_S_TYPE_ALREADY_REGISTERED
The type universal unique identifier (UUID) has already been registered.
RPC_S_ALREADY_LISTENING
The RPC server is already listening.
RPC_S_NO_PROTSEQS_REGISTERED
No protocol sequences have been registered.
RPC_S_NOT_LISTENING
The RPC server is not listening.
RPC_S_UNKNOWN_MGR_TYPE
The manager type is unknown.
RPC_S_UNKNOWN_IF
The interface is unknown.
RPC_S_NO_BINDINGS
There are no bindings.
RPC_S_NO_PROTSEQS
There are no protocol sequences.
RPC_S_CANT_CREATE_ENDPOINT
The endpoint cannot be created.
RPC_S_OUT_OF_RESOURCES
Not enough resources are available to complete this operation.
RPC_S_SERVER_UNAVAILABLE
The RPC server is unavailable.
RPC_S_SERVER_TOO_BUSY
The RPC server is too busy to complete this operation.
RPC_S_INVALID_NETWORK_OPTIONS
The network options are invalid.
RPC_S_NO_CALL_ACTIVE
There are no remote procedure calls active on this thread.
RPC_S_CALL_FAILED
The remote procedure call failed.
RPC_S_CALL_FAILED_DNE
The remote procedure call failed and did not execute.
RPC_S_PROTOCOL_ERROR
A remote procedure call (RPC) protocol error occurred.
RPC_S_PROXY_ACCESS_DENIED
Access to the HTTP proxy is denied.
RPC_S_UNSUPPORTED_TRANS_SYN
The transfer syntax is not supported by the RPC server.
RPC_S_UNSUPPORTED_TYPE
The universal unique identifier (UUID) type is not supported.
RPC_S_INVALID_TAG
The tag is invalid.
RPC_S_INVALID_BOUND
The array bounds are invalid.
RPC_S_NO_ENTRY_NAME
The binding does not contain an entry name.
RPC_S_INVALID_NAME_SYNTAX
The name syntax is invalid.
RPC_S_UNSUPPORTED_NAME_SYNTAX
The name syntax is not supported.
RPC_S_UUID_NO_ADDRESS
No network address is available to use to construct a universal unique identifier (UUID).
RPC_S_DUPLICATE_ENDPOINT
The endpoint is a duplicate.
RPC_S_UNKNOWN_AUTHN_TYPE
The authentication type is unknown.
RPC_S_MAX_CALLS_TOO_SMALL
The maximum number of calls is too small.
RPC_S_STRING_TOO_LONG
The string is too long.
RPC_S_PROTSEQ_NOT_FOUND
The RPC protocol sequence was not found.
RPC_S_PROCNUM_OUT_OF_RANGE
The procedure number is out of range.
RPC_S_BINDING_HAS_NO_AUTH
The binding does not contain any authentication information.
RPC_S_UNKNOWN_AUTHN_SERVICE
The authentication service is unknown.
RPC_S_UNKNOWN_AUTHN_LEVEL
The authentication level is unknown.
RPC_S_INVALID_AUTH_IDENTITY
The security context is invalid.
RPC_S_UNKNOWN_AUTHZ_SERVICE
The authorization service is unknown.
EPT_S_INVALID_ENTRY
The entry is invalid.
EPT_S_CANT_PERFORM_OP
The server endpoint cannot perform the operation.
EPT_S_NOT_REGISTERED
There are no more endpoints available from the endpoint mapper.
RPC_S_NOTHING_TO_EXPORT
No interfaces have been exported.
RPC_S_INCOMPLETE_NAME
The entry name is incomplete.
RPC_S_INVALID_VERS_OPTION
The version option is invalid.
RPC_S_NO_MORE_MEMBERS
There are no more members.
RPC_S_NOT_ALL_OBJS_UNEXPORTED
There is nothing to unexport.
RPC_S_INTERFACE_NOT_FOUND
The interface was not found.
RPC_S_ENTRY_ALREADY_EXISTS
The entry already exists.
RPC_S_ENTRY_NOT_FOUND
The entry is not found.
RPC_S_NAME_SERVICE_UNAVAILABLE
The name service is unavailable.
RPC_S_INVALID_NAF_ID
The network address family is invalid.
RPC_S_CANNOT_SUPPORT
The requested operation is not supported.
RPC_S_NO_CONTEXT_AVAILABLE
No security context is available to allow impersonation.
RPC_S_INTERNAL_ERROR
An internal error occurred in a remote procedure call (RPC).
RPC_S_ZERO_DIVIDE
The RPC server attempted an integer division by zero.
RPC_S_ADDRESS_ERROR
An addressing error occurred in the RPC server.
RPC_S_FP_DIV_ZERO
A floating-point operation at the RPC server caused a division by zero.
RPC_S_FP_UNDERFLOW
A floating-point underflow occurred at the RPC server.
RPC_S_FP_OVERFLOW
A floating-point overflow occurred at the RPC server.
RPC_X_NO_MORE_ENTRIES
The list of RPC servers available for the binding of auto handles has been exhausted.
RPC_X_SS_CHAR_TRANS_OPEN_FAIL
Unable to open the character translation table file.
RPC_X_SS_CHAR_TRANS_SHORT_FILE
The file containing the character translation table has fewer than 512 bytes.
RPC_X_SS_IN_NULL_CONTEXT
A null context handle was passed from the client to the host during a remote procedure call.
RPC_X_SS_CONTEXT_DAMAGED
The context handle changed during a remote procedure call.
RPC_X_SS_HANDLES_MISMATCH
The binding handles passed to a remote procedure call do not match.
RPC_X_SS_CANNOT_GET_CALL_HANDLE
The stub is unable to get the remote procedure call handle.
RPC_X_NULL_REF_POINTER
A null reference pointer was passed to the stub.
RPC_X_ENUM_VALUE_OUT_OF_RANGE
The enumeration value is out of range.
RPC_X_BYTE_COUNT_TOO_SMALL
The byte count is too small.
RPC_X_BAD_STUB_DATA
The stub received bad data.
ERROR_INVALID_USER_BUFFER
The supplied user buffer is not valid for the requested operation.
ERROR_UNRECOGNIZED_MEDIA
The disk media is not recognized. It may not be formatted.
ERROR_NO_TRUST_LSA_SECRET
The workstation does not have a trust secret.
ERROR_NO_TRUST_SAM_ACCOUNT
The security database on the server does not have a computer account for this workstation trust relationship.
ERROR_TRUSTED_DOMAIN_FAILURE
The trust relationship between the primary domain and the trusted domain failed.
ERROR_TRUSTED_RELATIONSHIP_FAILURE
The trust relationship between this workstation and the primary domain failed.
ERROR_TRUST_FAILURE
The network logon failed.
RPC_S_CALL_IN_PROGRESS
A remote procedure call is already in progress for this thread.
ERROR_NETLOGON_NOT_STARTED
An attempt was made to logon, but the network logon service was not started.
ERROR_ACCOUNT_EXPIRED
The user’s account has expired.
ERROR_REDIRECTOR_HAS_OPEN_HANDLES
The redirector is in use and cannot be unloaded.
ERROR_PRINTER_DRIVER_ALREADY_INSTALLED
The specified printer driver is already installed.
ERROR_UNKNOWN_PORT
The specified port is unknown.
ERROR_UNKNOWN_PRINTER_DRIVER
The printer driver is unknown.
ERROR_UNKNOWN_PRINTPROCESSOR
The print processor is unknown.
ERROR_INVALID_SEPARATOR_FILE
The specified separator file is invalid.
ERROR_INVALID_PRIORITY
The specified priority is invalid.
ERROR_INVALID_PRINTER_NAME
The printer name is invalid.
ERROR_PRINTER_ALREADY_EXISTS
The printer already exists.
ERROR_INVALID_PRINTER_COMMAND
The printer command is invalid.
ERROR_INVALID_DATATYPE
The specified datatype is invalid.
ERROR_INVALID_ENVIRONMENT
The environment specified is invalid.
RPC_S_NO_MORE_BINDINGS
There are no more bindings.
ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT
The account used is an interdomain trust account. Use your global user account or local user account to access this server.
ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT
The account used is a computer account. Use your global user account or local user account to access this server.
ERROR_NOLOGON_SERVER_TRUST_ACCOUNT
The account used is a server trust account. Use your global user account or local user account to access this server.
ERROR_DOMAIN_TRUST_INCONSISTENT
The name or security ID (SID) of the domain specified is inconsistent with the trust information for that domain.
ERROR_SERVER_HAS_OPEN_HANDLES
The server is in use and cannot be unloaded.
ERROR_RESOURCE_DATA_NOT_FOUND
The specified image file did not contain a resource section.
ERROR_RESOURCE_TYPE_NOT_FOUND
The specified resource type cannot be found in the image file.
ERROR_RESOURCE_NAME_NOT_FOUND
The specified resource name cannot be found in the image file.
ERROR_RESOURCE_LANG_NOT_FOUND
The specified resource language ID cannot be found in the image file.
ERROR_NOT_ENOUGH_QUOTA
Not enough quota is available to process this command.
RPC_S_NO_INTERFACES
No interfaces have been registered.
RPC_S_CALL_CANCELLED
The remote procedure call was cancelled.
RPC_S_BINDING_INCOMPLETE
The binding handle does not contain all required information.
RPC_S_COMM_FAILURE
A communications failure occurred during a remote procedure call.
RPC_S_UNSUPPORTED_AUTHN_LEVEL
The requested authentication level is not supported.
RPC_S_NO_PRINC_NAME
No principal name registered.
RPC_S_NOT_RPC_ERROR
The error specified is not a valid Windows RPC error code.
RPC_S_UUID_LOCAL_ONLY
A UUID that is valid only on this computer has been allocated.
RPC_S_SEC_PKG_ERROR
A security package specific error occurred.
RPC_S_NOT_CANCELLED
Thread is not canceled.
RPC_X_INVALID_ES_ACTION
Invalid operation on the encoding/decoding handle.
RPC_X_WRONG_ES_VERSION
Incompatible version of the serializing package.
RPC_X_WRONG_STUB_VERSION
Incompatible version of the RPC stub.
RPC_X_INVALID_PIPE_OBJECT
The RPC pipe object is invalid or corrupted.
RPC_X_WRONG_PIPE_ORDER
An invalid operation was attempted on an RPC pipe object.
RPC_X_WRONG_PIPE_VERSION
Unsupported RPC pipe version.
RPC_S_COOKIE_AUTH_FAILED
HTTP proxy server rejected the connection because the cookie authentication failed.
RPC_S_GROUP_MEMBER_NOT_FOUND
The group member was not found.
EPT_S_CANT_CREATE
The endpoint mapper database entry could not be created.
RPC_S_INVALID_OBJECT
The object universal unique identifier (UUID) is the nil UUID.
ERROR_INVALID_TIME
The specified time is invalid.
ERROR_INVALID_FORM_NAME
The specified form name is invalid.
ERROR_INVALID_FORM_SIZE
The specified form size is invalid.
ERROR_ALREADY_WAITING
The specified printer handle is already being waited on.
ERROR_PRINTER_DELETED
The specified printer has been deleted.
ERROR_INVALID_PRINTER_STATE
The state of the printer is invalid.
ERROR_PASSWORD_MUST_CHANGE
The user’s password must be changed before signing in.
ERROR_DOMAIN_CONTROLLER_NOT_FOUND
Could not find the domain controller for this domain.
ERROR_ACCOUNT_LOCKED_OUT
The referenced account is currently locked out and may not be logged on to.
OR_INVALID_OXID
The object exporter specified was not found.
OR_INVALID_OID
The object specified was not found.
OR_INVALID_SET
The object resolver set specified was not found.
RPC_S_SEND_INCOMPLETE
Some data remains to be sent in the request buffer.
RPC_S_INVALID_ASYNC_HANDLE
Invalid asynchronous remote procedure call handle.
RPC_S_INVALID_ASYNC_CALL
Invalid asynchronous RPC call handle for this operation.
RPC_X_PIPE_CLOSED
The RPC pipe object has already been closed.
RPC_X_PIPE_DISCIPLINE_ERROR
The RPC call completed before all pipes were processed.
RPC_X_PIPE_EMPTY
No more data is available from the RPC pipe.
ERROR_NO_SITENAME
No site name is available for this machine.
ERROR_CANT_ACCESS_FILE
The file cannot be accessed by the system.
ERROR_CANT_RESOLVE_FILENAME
The name of the file cannot be resolved by the system.
RPC_S_ENTRY_TYPE_MISMATCH
The entry is not of the expected type.
RPC_S_NOT_ALL_OBJS_EXPORTED
Not all object UUIDs could be exported to the specified entry.
RPC_S_INTERFACE_NOT_EXPORTED
Interface could not be exported to the specified entry.
RPC_S_PROFILE_NOT_ADDED
The specified profile entry could not be added.
RPC_S_PRF_ELT_NOT_ADDED
The specified profile element could not be added.
RPC_S_PRF_ELT_NOT_REMOVED
The specified profile element could not be removed.
RPC_S_GRP_ELT_NOT_ADDED
The group element could not be added.
RPC_S_GRP_ELT_NOT_REMOVED
The group element could not be removed.
ERROR_KM_DRIVER_BLOCKED
The printer driver is not compatible with a policy enabled on your computer that blocks NT 4.0 drivers.
ERROR_CONTEXT_EXPIRED
The context has expired and can no longer be used.
ERROR_PER_USER_TRUST_QUOTA_EXCEEDED
The current user’s delegated trust creation quota has been exceeded.
ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED
The total delegated trust creation quota has been exceeded.
ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED
The current user’s delegated trust deletion quota has been exceeded.
ERROR_AUTHENTICATION_FIREWALL_FAILED
The computer you are signing into is protected by an authentication firewall. The specified account is not allowed to authenticate to the computer.
ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED
Remote connections to the Print Spooler are blocked by a policy set on your machine.
ERROR_NTLM_BLOCKED
Authentication failed because NTLM authentication has been disabled.
ERROR_PASSWORD_CHANGE_REQUIRED
Logon Failure: EAS policy requires that the user change their password before this operation can be performed.
ERROR_INVALID_PIXEL_FORMAT
The pixel format is invalid.
ERROR_BAD_DRIVER
The specified driver is invalid.
ERROR_INVALID_WINDOW_STYLE
The window style or class attribute is invalid for this operation.
ERROR_METAFILE_NOT_SUPPORTED
The requested metafile operation is not supported.
ERROR_TRANSFORM_NOT_SUPPORTED
The requested transformation operation is not supported.
ERROR_CLIPPING_NOT_SUPPORTED
The requested clipping operation is not supported.
ERROR_INVALID_CMM
The specified color management module is invalid.
ERROR_INVALID_PROFILE
The specified color profile is invalid.
ERROR_TAG_NOT_FOUND
The specified tag was not found.
ERROR_TAG_NOT_PRESENT
A required tag is not present.
ERROR_DUPLICATE_TAG
The specified tag is already present.
ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE
The specified color profile is not associated with the specified device.
ERROR_PROFILE_NOT_FOUND
The specified color profile was not found.
ERROR_INVALID_COLORSPACE
The specified color space is invalid.
ERROR_ICM_NOT_ENABLED
Image Color Management is not enabled.
ERROR_DELETING_ICM_XFORM
There was an error while deleting the color transform.
ERROR_INVALID_TRANSFORM
The specified color transform is invalid.
ERROR_COLORSPACE_MISMATCH
The specified transform does not match the bitmap’s color space.
ERROR_INVALID_COLORINDEX
The specified named color index is not present in the profile.
ERROR_PROFILE_DOES_NOT_MATCH_DEVICE
The specified profile is intended for a device of a different type than the specified device.
ERROR_CONNECTED_OTHER_PASSWORD
The network connection was made successfully, but the user had to be prompted for a password other than the one originally specified.
ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT
The network connection was made successfully using default credentials.
ERROR_BAD_USERNAME
The specified username is invalid.
ERROR_NOT_CONNECTED
This network connection does not exist.
ERROR_OPEN_FILES
This network connection has files open or requests pending.
ERROR_ACTIVE_CONNECTIONS
Active connections still exist.
ERROR_DEVICE_IN_USE
The device is in use by an active process and cannot be disconnected.
ERROR_UNKNOWN_PRINT_MONITOR
The specified print monitor is unknown.
ERROR_PRINTER_DRIVER_IN_USE
The specified printer driver is currently in use.
ERROR_SPOOL_FILE_NOT_FOUND
The spool file was not found.
ERROR_SPL_NO_STARTDOC
A StartDocPrinter call was not issued.
ERROR_SPL_NO_ADDJOB
An AddJob call was not issued.
ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED
The specified print processor has already been installed.
ERROR_PRINT_MONITOR_ALREADY_INSTALLED
The specified print monitor has already been installed.
ERROR_INVALID_PRINT_MONITOR
The specified print monitor does not have the required functions.
ERROR_PRINT_MONITOR_IN_USE
The specified print monitor is currently in use.
ERROR_PRINTER_HAS_JOBS_QUEUED
The requested operation is not allowed when there are jobs queued to the printer.
ERROR_SUCCESS_REBOOT_REQUIRED
The requested operation is successful. Changes will not be effective until the system is rebooted.
ERROR_SUCCESS_RESTART_REQUIRED
The requested operation is successful. Changes will not be effective until the service is restarted.
ERROR_PRINTER_NOT_FOUND
No printers were found.
ERROR_PRINTER_DRIVER_WARNED
The printer driver is known to be unreliable.
ERROR_PRINTER_DRIVER_BLOCKED
The printer driver is known to harm the system.
ERROR_PRINTER_DRIVER_PACKAGE_IN_USE
The specified printer driver package is currently in use.
ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND
Unable to find a core driver package that is required by the printer driver package.
ERROR_FAIL_REBOOT_REQUIRED
The requested operation failed. A system reboot is required to roll back changes made.
ERROR_FAIL_REBOOT_INITIATED
The requested operation failed. A system reboot has been initiated to roll back changes made.
ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED
The specified printer driver was not found on the system and needs to be downloaded.
ERROR_PRINT_JOB_RESTART_REQUIRED
The requested print job has failed to print. A print system update requires the job to be resubmitted.
ERROR_INVALID_PRINTER_DRIVER_MANIFEST
The printer driver does not contain a valid manifest, or contains too many manifests.
ERROR_PRINTER_NOT_SHAREABLE
The specified printer cannot be shared.
ERROR_REQUEST_PAUSED
The operation was paused.
ERROR_IO_REISSUE_AS_CACHED
Reissue the given operation as a cached IO operation.