Windows Error Codes
Look up Win32, HRESULT, and NTSTATUS error codes and descriptions.
ERROR_SUCCESS
The operation completed successfully.
ERROR_INVALID_FUNCTION
Incorrect function.
ERROR_FILE_NOT_FOUND
The system cannot find the file specified.
ERROR_PATH_NOT_FOUND
The system cannot find the path specified.
ERROR_TOO_MANY_OPEN_FILES
The system cannot open the file.
ERROR_ACCESS_DENIED
Access is denied.
ERROR_INVALID_HANDLE
The handle is invalid.
ERROR_ARENA_TRASHED
The storage control blocks were destroyed.
ERROR_NOT_ENOUGH_MEMORY
Not enough storage is available to process this command.
ERROR_INVALID_BLOCK
The storage control block address is invalid.
ERROR_BAD_ENVIRONMENT
The environment is incorrect.
ERROR_BAD_FORMAT
An attempt was made to load a program with an incorrect format.
ERROR_INVALID_ACCESS
The access code is invalid.
ERROR_INVALID_DATA
The data is invalid.
ERROR_OUTOFMEMORY
Not enough storage is available to complete this operation.
ERROR_INVALID_DRIVE
The system cannot find the drive specified.
ERROR_CURRENT_DIRECTORY
The directory cannot be removed.
ERROR_NOT_SAME_DEVICE
The system cannot move the file to a different disk drive.
ERROR_NO_MORE_FILES
There are no more files.
ERROR_WRITE_PROTECT
The media is write protected.
ERROR_BAD_UNIT
The system cannot find the device specified.
ERROR_NOT_READY
The device is not ready.
ERROR_BAD_COMMAND
The device does not recognize the command.
ERROR_CRC
Data error (cyclic redundancy check).
ERROR_BAD_LENGTH
The program issued a command but the command length is incorrect.
ERROR_SEEK
The drive cannot locate a specific area or track on the disk.
ERROR_NOT_DOS_DISK
The specified disk or diskette cannot be accessed.
ERROR_SECTOR_NOT_FOUND
The drive cannot find the sector requested.
ERROR_OUT_OF_PAPER
The printer is out of paper.
ERROR_WRITE_FAULT
The system cannot write to the specified device.
ERROR_READ_FAULT
The system cannot read from the specified device.
ERROR_GEN_FAILURE
A device attached to the system is not functioning.
ERROR_SHARING_VIOLATION
The process cannot access the file because it is being used by another process.
ERROR_LOCK_VIOLATION
The process cannot access the file because another process has locked a portion of the file.
ERROR_SHARING_BUFFER_EXCEEDED
Too many files opened for sharing.
ERROR_HANDLE_EOF
Reached the end of the file.
ERROR_HANDLE_DISK_FULL
The disk is full.
ERROR_NOT_SUPPORTED
The request is not supported.
ERROR_REM_NOT_LIST
Windows cannot find the network path.
ERROR_DUP_NAME
You were not connected because a duplicate name exists on the network.
ERROR_BAD_NETPATH
The network path was not found.
ERROR_NETWORK_BUSY
The network is busy.
ERROR_DEV_NOT_EXIST
The specified network resource or device is no longer available.
ERROR_UNEXP_NET_ERR
An unexpected network error occurred.
ERROR_BAD_REM_ADAP
The specified server cannot perform the requested operation.
ERROR_PRINTQ_FULL
The print queue is full.
ERROR_NETNAME_DELETED
The specified network name is no longer available.
ERROR_NETWORK_ACCESS_DENIED
Network access is denied.
ERROR_BAD_NET_NAME
The network name cannot be found.
ERROR_FILE_EXISTS
The file exists.
ERROR_CANNOT_MAKE
The directory or file cannot be created.
ERROR_ALREADY_ASSIGNED
The local device name is already in use.
ERROR_INVALID_PASSWORD
The specified network password is not correct.
ERROR_INVALID_PARAMETER
The parameter is incorrect.
ERROR_NET_WRITE_FAULT
A write fault occurred on the network.
ERROR_BROKEN_PIPE
The pipe has been ended.
ERROR_OPEN_FAILED
The system cannot open the device or file specified.
ERROR_BUFFER_OVERFLOW
The file name is too long.
ERROR_DISK_FULL
There is not enough space on the disk.
ERROR_NO_MORE_SEARCH_HANDLES
No more internal file identifiers available.
ERROR_INVALID_TARGET_HANDLE
The target internal file identifier is incorrect.
ERROR_INVALID_CATEGORY
The IOCTL call made by the application program is not correct.
ERROR_CALL_NOT_IMPLEMENTED
This function is not supported on this system.
ERROR_SEM_TIMEOUT
The semaphore timeout period has expired.
ERROR_INSUFFICIENT_BUFFER
The data area passed to a system call is too small.
ERROR_INVALID_NAME
The filename, directory name, or volume label syntax is incorrect.
ERROR_INVALID_LEVEL
The system call level is not correct.
ERROR_NO_VOLUME_LABEL
The disk has no volume label.
ERROR_MOD_NOT_FOUND
The specified module could not be found.
ERROR_PROC_NOT_FOUND
The specified procedure could not be found.
ERROR_WAIT_NO_CHILDREN
There are no child processes to wait for.
ERROR_DIRECT_ACCESS_HANDLE
Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.
ERROR_NEGATIVE_SEEK
An attempt was made to move the file pointer before the beginning of the file.
ERROR_SEEK_ON_DEVICE
The file pointer cannot be set on the specified device or file.
ERROR_DIR_NOT_EMPTY
The directory is not empty.
ERROR_PATH_BUSY
The path specified cannot be used at this time.
ERROR_BAD_PATHNAME
The specified path is invalid.
ERROR_SIGNAL_PENDING
A signal is already pending.
ERROR_MAX_THRDS_REACHED
No more threads can be created in the system.
ERROR_LOCK_FAILED
Unable to lock a region of a file.
ERROR_BUSY
The requested resource is in use.
ERROR_ALREADY_EXISTS
Cannot create a file when that file already exists.
ERROR_INVALID_FLAG_NUMBER
The flag passed is not correct.
ERROR_SEM_NOT_FOUND
The specified system semaphore name was not found.
ERROR_BAD_EXE_FORMAT
Is not a valid Win32 application.
ERROR_ITERATED_DATA_EXCEEDS_64k
The operating system cannot run this application program.
ERROR_INVALID_MINALLOCSIZE
The operating system cannot run this application program.
ERROR_CODE_NOT_FOUND
The code cannot be accessed.
ERROR_ENVVAR_NOT_FOUND
The system could not find the environment option that was entered.
ERROR_FILENAME_EXCED_RANGE
The filename or extension is too long.
ERROR_SIGNAL_REFUSED
The signal being posted is not correct.
ERROR_LOCKED
The segment is locked and cannot be reallocated.
ERROR_TOO_MANY_MODULES
Too many dynamic-link modules are attached to this program or dynamic-link module.
ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT
The subsystem needed to support the image type is not present.
ERROR_PIPE_LOCAL
The pipe is local.
ERROR_BAD_PIPE
The pipe state is invalid.
ERROR_PIPE_BUSY
All pipe instances are busy.
ERROR_NO_DATA
The pipe is being closed.
ERROR_PIPE_NOT_CONNECTED
No process is on the other end of the pipe.
ERROR_MORE_DATA
More data is available.
WAIT_TIMEOUT
The wait operation timed out.
ERROR_NO_MORE_ITEMS
No more data is available.
ERROR_CANNOT_COPY
The copy functions cannot be used.
ERROR_DIRECTORY
The directory name is invalid.
ERROR_EAS_DIDNT_FIT
The extended attributes did not fit in the buffer.
ERROR_EA_FILE_CORRUPT
The extended attribute file on the mounted file system is corrupt.
ERROR_EA_TABLE_FULL
The extended attribute table file is full.
ERROR_INVALID_EA_HANDLE
The specified extended attribute handle is invalid.
ERROR_EAS_NOT_SUPPORTED
The mounted file system does not support extended attributes.
ERROR_NOT_OWNER
Attempt to release mutex not owned by caller.
ERROR_TOO_MANY_POSTS
Too many posts were made to a semaphore.
ERROR_PARTIAL_COPY
Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
ERROR_MR_MID_NOT_FOUND
The system cannot find message text for message number 0x%1 in the message file for %2.
ERROR_INVALID_ADDRESS
Attempt to access invalid address.
ERROR_ARITHMETIC_OVERFLOW
Arithmetic result exceeded 32 bits.
ERROR_PIPE_CONNECTED
There is a process on other end of the pipe.
ERROR_PIPE_LISTENING
Waiting for a process to open the other end of the pipe.
ERROR_EA_ACCESS_DENIED
Access to the extended attribute was denied.
ERROR_OPERATION_ABORTED
The I/O operation has been aborted because of either a thread exit or an application request.
ERROR_IO_INCOMPLETE
Overlapped I/O event is not in a signaled state.
ERROR_IO_PENDING
Overlapped I/O operation is in progress.
ERROR_NOACCESS
Invalid access to memory location.
ERROR_SWAPERROR
Error performing inpage operation.
ERROR_STACK_OVERFLOW
Recursion too deep; the stack overflowed.
ERROR_INVALID_MESSAGE
The window cannot act on the sent message.
ERROR_CAN_NOT_COMPLETE
Cannot complete this function.
ERROR_INVALID_FLAGS
Invalid flags.
ERROR_UNRECOGNIZED_VOLUME
The volume does not contain a recognized file system.
ERROR_FILE_INVALID
The volume for a file has been externally altered so that the opened file is no longer valid.
ERROR_FULLSCREEN_MODE
The requested operation cannot be performed in full-screen mode.
ERROR_NO_TOKEN
An attempt was made to reference a token that does not exist.
ERROR_BADDB
The configuration registry database is corrupt.
ERROR_BADKEY
The configuration registry key is invalid.
ERROR_CANTOPEN
The configuration registry key could not be opened.
ERROR_CANTREAD
The configuration registry key could not be read.
ERROR_CANTWRITE
The configuration registry key could not be written.
ERROR_REGISTRY_RECOVERED
One of the files in the registry database had to be recovered by use of a log or alternate copy.
ERROR_REGISTRY_CORRUPT
The registry is corrupted.
ERROR_REGISTRY_IO_FAILED
An I/O operation initiated by the registry failed unrecoverably.
ERROR_NOT_REGISTRY_FILE
The system has attempted to load or restore a file into the registry, but the specified file is not in a registry file format.
ERROR_KEY_DELETED
Illegal operation attempted on a registry key that has been marked for deletion.
ERROR_NO_LOG_SPACE
System could not allocate the required space in a registry log.
ERROR_KEY_HAS_CHILDREN
Cannot create a symbolic link in a registry key that already has subkeys or values.
ERROR_CHILD_MUST_BE_VOLATILE
Cannot create a stable subkey under a volatile parent key.
ERROR_NOTIFY_ENUM_DIR
A notify change request is being completed and the information is not being returned in the caller's buffer.
ERROR_DEPENDENT_SERVICES_RUNNING
A stop control has been sent to a service that other running services are dependent on.
ERROR_INVALID_SERVICE_CONTROL
The requested control is not valid for this service.
ERROR_SERVICE_REQUEST_TIMEOUT
The service did not respond to the start or control request in a timely fashion.
ERROR_SERVICE_NO_THREAD
A thread could not be created for the service.
ERROR_SERVICE_DATABASE_LOCKED
The service database is locked.
ERROR_SERVICE_ALREADY_RUNNING
An instance of the service is already running.
ERROR_INVALID_SERVICE_ACCOUNT
The account name is invalid or does not exist, or the password is invalid for the account name specified.
ERROR_SERVICE_DISABLED
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
ERROR_CIRCULAR_DEPENDENCY
Circular service dependency was specified.
ERROR_SERVICE_DOES_NOT_EXIST
The specified service does not exist as an installed service.
ERROR_SERVICE_CANNOT_ACCEPT_CTRL
The service cannot accept control messages at this time.
ERROR_SERVICE_NOT_ACTIVE
The service has not been started.
ERROR_FAILED_SERVICE_CONTROLLER_CONNECT
The service process could not connect to the service controller.
ERROR_EXCEPTION_IN_SERVICE
An exception occurred in the service when handling the control request.
ERROR_DATABASE_DOES_NOT_EXIST
The database specified does not exist.
ERROR_SERVICE_SPECIFIC_ERROR
The service has returned a service-specific error code.
ERROR_PROCESS_ABORTED
The process terminated unexpectedly.
ERROR_SERVICE_DEPENDENCY_FAIL
The dependency service or group failed to start.
ERROR_SERVICE_LOGON_FAILED
The service did not start due to a logon failure.
ERROR_SERVICE_START_HANG
After starting, the service hung in a start-pending state.
ERROR_INVALID_SERVICE_LOCK
The specified service database lock is invalid.
ERROR_SERVICE_MARKED_FOR_DELETE
The specified service has been marked for deletion.
ERROR_SERVICE_EXISTS
The specified service already exists.
ERROR_DLL_INIT_FAILED
A dynamic link library (DLL) initialization routine failed.
ERROR_SHUTDOWN_IN_PROGRESS
A system shutdown is in progress.
ERROR_NO_SHUTDOWN_IN_PROGRESS
Unable to abort the system shutdown because no shutdown was in progress.
ERROR_IO_DEVICE
The request could not be performed because of an I/O device error.
ERROR_SERIAL_NO_DEVICE
No serial device was successfully initialized. The serial driver will unload.
ERROR_IRQ_BUSY
Unable to open a device that was sharing an interrupt request (IRQ) with other devices.
ERROR_NOT_FOUND
Element not found.
ERROR_NO_MATCH
There was no match for the specified key in the index.
ERROR_SET_NOT_FOUND
The property set specified does not exist on the object.
ERROR_CONNECTION_REFUSED
The remote computer refused the network connection.
ERROR_GRACEFUL_DISCONNECT
The network connection was gracefully closed.
ERROR_ADDRESS_ALREADY_ASSOCIATED
The network transport endpoint already has an address associated with it.
ERROR_ADDRESS_NOT_ASSOCIATED
An address has not yet been associated with the network endpoint.
ERROR_CONNECTION_INVALID
An operation was attempted on a nonexistent network connection.
ERROR_CONNECTION_ACTIVE
An invalid operation was attempted on an active network connection.
ERROR_NETWORK_UNREACHABLE
The network location cannot be reached.
ERROR_HOST_UNREACHABLE
The network location cannot be reached. For information about network troubleshooting, see Windows Help.
ERROR_PROTOCOL_UNREACHABLE
The network location cannot be reached.
ERROR_PORT_UNREACHABLE
No service is operating at the destination network endpoint on the remote system.
ERROR_REQUEST_ABORTED
The request was aborted.
ERROR_CONNECTION_ABORTED
The network connection was aborted by the local system.
ERROR_RETRY
The operation could not be completed. A retry should be performed.
ERROR_CONNECTION_COUNT_LIMIT
A connection to the server could not be made because the limit on the number of concurrent connections for this account has been reached.
ERROR_PRIVILEGE_NOT_HELD
A required privilege is not held by the client.
ERROR_LOGON_FAILURE
The user name or password is incorrect.
ERROR_ACCOUNT_RESTRICTION
Account restrictions are preventing this user from signing in.
ERROR_INVALID_LOGON_HOURS
Your account has time restrictions that keep you from signing in right now.
ERROR_INVALID_WORKSTATION
You are not allowed to log on to this computer.
ERROR_PASSWORD_EXPIRED
The password for this account has expired.
ERROR_ACCOUNT_DISABLED
This user can't sign in because this account is currently disabled.
ERROR_NONE_MAPPED
No mapping between account names and security IDs was done.
ERROR_TOO_MANY_LUIDS_REQUESTED
Too many local user identifiers (LUIDs) were requested at one time.
ERROR_LUIDS_EXHAUSTED
No more local user identifiers (LUIDs) are available.
ERROR_INVALID_SUB_AUTHORITY
The subauthority part of a security ID is invalid for this particular use.
ERROR_INVALID_ACL
The access control list (ACL) structure is invalid.
ERROR_INVALID_SID
The security ID structure is invalid.
ERROR_INVALID_SECURITY_DESCR
The security descriptor structure is invalid.
ERROR_BAD_INHERITANCE_ACL
The inherited access control list (ACL) or access control entry (ACE) could not be built.
ERROR_SERVER_DISABLED
The server is currently disabled.
ERROR_SERVER_NOT_DISABLED
The server is currently enabled.
ERROR_INVALID_ID_AUTHORITY
The value provided was an invalid value for an identifier authority.
ERROR_ALLOTTED_SPACE_EXCEEDED
No more memory is available for security information updates.
ERROR_INVALID_GROUP_ATTRIBUTES
The specified attributes are invalid, or incompatible with the attributes for the group as a whole.
ERROR_BAD_IMPERSONATION_LEVEL
Either a required impersonation level was not provided, or the provided impersonation level is invalid.
ERROR_CANT_OPEN_ANONYMOUS
Cannot open an anonymous level security token.
ERROR_BAD_VALIDATION_CLASS
The validation information class requested was invalid.
ERROR_BAD_TOKEN_TYPE
The type of the token is inappropriate for its attempted use.
ERROR_NO_SECURITY_ON_OBJECT
Unable to perform a security operation on an object that has no associated security.
ERROR_CANT_ACCESS_DOMAIN_INFO
Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied.
ERROR_INVALID_SERVER_STATE
The security account manager (SAM) or local security authority (LSA) server was in the wrong state to perform the security operation.
ERROR_INVALID_DOMAIN_STATE
The domain was in the wrong state to perform the security operation.
ERROR_INVALID_DOMAIN_ROLE
This operation is only allowed for the Primary Domain Controller of the domain.
ERROR_NO_SUCH_DOMAIN
The specified domain either does not exist or could not be contacted.
ERROR_DOMAIN_EXISTS
The specified domain already exists.
ERROR_DOMAIN_LIMIT_EXCEEDED
An attempt was made to exceed the limit on the number of domains per server.
ERROR_INTERNAL_DB_CORRUPTION
Unable to complete the requested operation because of either a catastrophic media failure or a data structure corruption on the disk.
ERROR_INTERNAL_ERROR
An extended error has occurred.
ERROR_GENERIC_NOT_MAPPED
Generic access types were contained in an access mask which should already be mapped to nongeneric types.
ERROR_BAD_DESCRIPTOR_FORMAT
A security descriptor is not in the right format (absolute or self-relative).
ERROR_NOT_LOGON_PROCESS
The requested action is restricted for use by logon processes only.
ERROR_LOGON_SESSION_EXISTS
Cannot start a new logon session with an ID that is already in use.
ERROR_NO_SUCH_PACKAGE
A specified authentication package is unknown.
ERROR_BAD_LOGON_SESSION_STATE
The logon session is not in a state that is consistent with the requested operation.
ERROR_LOGON_SESSION_COLLISION
The logon session ID is already in use.
ERROR_INVALID_LOGON_TYPE
A logon request contained an invalid logon type value.
ERROR_CANNOT_IMPERSONATE
Unable to impersonate using a named pipe until data has been read from that pipe.
ERROR_RXACT_INVALID_STATE
The transaction state of a registry subtree is incompatible with the requested operation.
ERROR_RXACT_COMMIT_FAILURE
An internal security database corruption has been encountered.
ERROR_SPECIAL_ACCOUNT
Cannot perform this operation on built-in accounts.
ERROR_SPECIAL_GROUP
Cannot perform this operation on this built-in special group.
ERROR_SPECIAL_USER
Cannot perform this operation on this built-in special user.
ERROR_MEMBERS_PRIMARY_GROUP
The user cannot be removed from a group because the group is currently the user's primary group.
ERROR_TOKEN_ALREADY_IN_USE
The token is already in use as a primary token.
ERROR_NO_SUCH_ALIAS
The specified local group does not exist.
ERROR_MEMBER_NOT_IN_ALIAS
The specified account name is not a member of the group.
ERROR_MEMBER_IN_ALIAS
The specified account name is already a member of the group.
ERROR_ALIAS_EXISTS
The specified local group already exists.
ERROR_LOGON_NOT_GRANTED
Logon failure: the user has not been granted the requested logon type at this computer.
ERROR_TOO_MANY_SECRETS
The maximum number of secrets that may be stored in a single system has been exceeded.
ERROR_SECRET_TOO_LONG
The length of a secret exceeds the maximum length allowed.
ERROR_INTERNAL_DB_ERROR
The local security authority database contains an internal inconsistency.
ERROR_TOO_MANY_CONTEXT_IDS
During a logon attempt, the user's security context accumulated too many security IDs.
ERROR_LOGON_TYPE_NOT_GRANTED
Logon failure: the user has not been granted the requested logon type at this computer.
ERROR_NT_CROSS_ENCRYPTION_REQUIRED
A cross-encrypted password is necessary to change a user password.
ERROR_NO_SUCH_MEMBER
A member could not be added to or removed from the local group because the member does not exist.
ERROR_INVALID_MEMBER
A new member could not be added to a local group because the member has the wrong account type.
ERROR_TOO_MANY_SIDS
Too many security IDs have been specified.
ERROR_LM_CROSS_ENCRYPTION_REQUIRED
A cross-encrypted password is necessary to change this user password.
ERROR_NO_INHERITANCE
Indicates an ACL contains no inheritable components.
S_OK
Operation successful.
S_FALSE
Operation successful but returned a false/empty result.
E_NOTIMPL
Not implemented.
E_NOINTERFACE
No such interface supported.
E_POINTER
Invalid pointer.
E_ABORT
Operation aborted.
E_FAIL
Unspecified error.
E_UNEXPECTED
Catastrophic failure.
E_ACCESSDENIED
General access denied error.
E_HANDLE
Invalid handle.
E_OUTOFMEMORY
Ran out of memory.
E_INVALIDARG
One or more arguments are invalid.
Reference: Win32 error codes, HRESULT codes. Tip: Search by hex (0x80070005) or decimal (5).
Found this tool useful?
Share it with your colleagues and friends!