System Error Codes (0-499)

Header: winerror.h

The following list describes system error codes (errors 0 to 499). 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.

Note

This information is intended for developers debugging system errors. For other errors, such as issues with Windows Update, see the list of resources on the Error codes page.

SymbolicCodeDescription
ERROR_SUCCESS0x0The operation completed successfully.
ERROR_INVALID_FUNCTION0x1Incorrect function.
ERROR_FILE_NOT_FOUND0x2The system cannot find the file specified.
ERROR_PATH_NOT_FOUND0x3The system cannot find the path specified.
ERROR_TOO_MANY_OPEN_FILES0x4The system cannot open the file.
ERROR_ACCESS_DENIED0x5Access is denied.
ERROR_INVALID_HANDLE0x6The handle is invalid.
ERROR_ARENA_TRASHED0x7The storage control blocks were destroyed.
ERROR_NOT_ENOUGH_MEMORY0x8Not enough memory resources are available to process this command.
ERROR_INVALID_BLOCK0x9The storage control block address is invalid.
ERROR_BAD_ENVIRONMENT0xAThe environment is incorrect.
ERROR_BAD_FORMAT0xBAn attempt was made to load a program with an incorrect format.
ERROR_INVALID_ACCESS0xCThe access code is invalid.
ERROR_INVALID_DATA0xDThe data is invalid.
ERROR_OUTOFMEMORY0xENot enough storage is available to complete this operation.
ERROR_INVALID_DRIVE0xFThe system cannot find the drive specified.
ERROR_CURRENT_DIRECTORY0x10The directory cannot be removed.
ERROR_NOT_SAME_DEVICE0x11The system cannot move the file to a different disk drive.
ERROR_NO_MORE_FILES0x12There are no more files.
ERROR_WRITE_PROTECT0x13The media is write protected.
ERROR_BAD_UNIT0x14The system cannot find the device specified.
ERROR_NOT_READY0x15The device is not ready.
ERROR_BAD_COMMAND0x16The device does not recognize the command.
ERROR_CRC0x17Data error (cyclic redundancy check).
ERROR_BAD_LENGTH0x18The program issued a command but the command length is incorrect.
ERROR_SEEK0x19The drive cannot locate a specific area or track on the disk.
ERROR_NOT_DOS_DISK0x1AThe specified disk or diskette cannot be accessed.
ERROR_SECTOR_NOT_FOUND0x1BThe drive cannot find the sector requested.
ERROR_OUT_OF_PAPER0x1CThe printer is out of paper.
ERROR_WRITE_FAULT0x1DThe system cannot write to the specified device.
ERROR_READ_FAULT0x1EThe system cannot read from the specified device.
ERROR_GEN_FAILURE0x1FA device attached to the system is not functioning.
ERROR_SHARING_VIOLATION0x20The process cannot access the file because it is being used by another process.
ERROR_LOCK_VIOLATION0x21The process cannot access the file because another process has locked a portion of the file.
ERROR_WRONG_DISK0x22The wrong diskette is in the drive. Insert %2 (Volume Serial Number: %3) into drive %1.
ERROR_SHARING_BUFFER_EXCEEDED0x24Too many files opened for sharing.
ERROR_HANDLE_EOF0x26Reached the end of the file.
ERROR_HANDLE_DISK_FULL0x27The disk is full.
ERROR_NOT_SUPPORTED0x32The request is not supported.
ERROR_REM_NOT_LIST0x33Windows 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.
ERROR_DUP_NAME0x34You were not connected because a duplicate name exists on the network. If joining a domain, go to System in Control Panel to change the computer name and try again. If joining a workgroup, choose another workgroup name.
ERROR_BAD_NETPATH0x35The network path was not found.
ERROR_NETWORK_BUSY0x36The network is busy.
ERROR_DEV_NOT_EXIST0x37The specified network resource or device is no longer available.
ERROR_TOO_MANY_CMDS0x38The network BIOS command limit has been reached.
ERROR_ADAP_HDW_ERR0x39A network adapter hardware error occurred.
ERROR_BAD_NET_RESP0x3AThe specified server cannot perform the requested operation.
ERROR_UNEXP_NET_ERR0x3BAn unexpected network error occurred.
ERROR_BAD_REM_ADAP0x3CThe remote adapter is not compatible.
ERROR_PRINTQ_FULL0x3DThe printer queue is full.
ERROR_NO_SPOOL_SPACE0x3ESpace to store the file waiting to be printed is not available on the server.
ERROR_PRINT_CANCELLED0x3FYour file waiting to be printed was deleted.
ERROR_NETNAME_DELETED0x40The specified network name is no longer available.
ERROR_NETWORK_ACCESS_DENIED0x41Network access is denied.
ERROR_BAD_DEV_TYPE0x42The network resource type is not correct.
ERROR_BAD_NET_NAME0x43The network name cannot be found.
ERROR_TOO_MANY_NAMES0x44The name limit for the local computer network adapter card was exceeded.
ERROR_TOO_MANY_SESS0x45The network BIOS session limit was exceeded.
ERROR_SHARING_PAUSED0x46The remote server has been paused or is in the process of being started.
ERROR_REQ_NOT_ACCEP0x47No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.
ERROR_REDIR_PAUSED0x48The specified printer or disk device has been paused.
ERROR_FILE_EXISTS0x50The file exists.
ERROR_CANNOT_MAKE0x52The directory or file cannot be created.
ERROR_FAIL_I240x53Fail on INT 24.
ERROR_OUT_OF_STRUCTURES0x54Storage to process this request is not available.
ERROR_ALREADY_ASSIGNED0x55The local device name is already in use.
ERROR_INVALID_PASSWORD0x56The specified network password is not correct.
ERROR_INVALID_PARAMETER0x57The parameter is incorrect.
ERROR_NET_WRITE_FAULT0x58A write fault occurred on the network.
ERROR_NO_PROC_SLOTS0x59The system cannot start another process at this time.
ERROR_TOO_MANY_SEMAPHORES0x64Cannot create another system semaphore.
ERROR_EXCL_SEM_ALREADY_OWNED0x65The exclusive semaphore is owned by another process.
ERROR_SEM_IS_SET0x66The semaphore is set and cannot be closed.
ERROR_TOO_MANY_SEM_REQUESTS0x67The semaphore cannot be set again.
ERROR_INVALID_AT_INTERRUPT_TIME0x68Cannot request exclusive semaphores at interrupt time.
ERROR_SEM_OWNER_DIED0x69The previous ownership of this semaphore has ended.
ERROR_SEM_USER_LIMIT0x6AInsert the diskette for drive %1.
ERROR_DISK_CHANGE0x6BThe program stopped because an alternate diskette was not inserted.
ERROR_DRIVE_LOCKED0x6CThe disk is in use or locked by another process.
ERROR_BROKEN_PIPE0x6DThe pipe has been ended.
ERROR_OPEN_FAILED0x6EThe system cannot open the device or file specified.
ERROR_BUFFER_OVERFLOW0x6FThe file name is too long.
ERROR_DISK_FULL0x70There is not enough space on the disk.
ERROR_NO_MORE_SEARCH_HANDLES0x71No more internal file identifiers available.
ERROR_INVALID_TARGET_HANDLE0x72The target internal file identifier is incorrect.
ERROR_INVALID_CATEGORY0x75The IOCTL call made by the application program is not correct.
ERROR_INVALID_VERIFY_SWITCH0x76The verify-on-write switch parameter value is not correct.
ERROR_BAD_DRIVER_LEVEL0x77The system does not support the command requested.
ERROR_CALL_NOT_IMPLEMENTED0x78This function is not supported on this system.
ERROR_SEM_TIMEOUT0x79The semaphore timeout period has expired.
ERROR_INSUFFICIENT_BUFFER0x7AThe data area passed to a system call is too small.
ERROR_INVALID_NAME0x7BThe filename, directory name, or volume label syntax is incorrect.
ERROR_INVALID_LEVEL0x7CThe system call level is not correct.
ERROR_NO_VOLUME_LABEL0x7DThe disk has no volume label.
ERROR_MOD_NOT_FOUND0x7EThe specified module could not be found.
ERROR_PROC_NOT_FOUND0x7FThe specified procedure could not be found.
ERROR_WAIT_NO_CHILDREN0x80There are no child processes to wait for.
ERROR_CHILD_NOT_COMPLETE0x81The %1 application cannot be run in Win32 mode.
ERROR_DIRECT_ACCESS_HANDLE0x82Attempt to use a file handle to an open disk partition for an operation other than raw disk I/O.
ERROR_NEGATIVE_SEEK0x83An attempt was made to move the file pointer before the beginning of the file.
ERROR_SEEK_ON_DEVICE0x84The file pointer cannot be set on the specified device or file.
ERROR_IS_JOIN_TARGET0x85A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.
ERROR_IS_JOINED0x86An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.
ERROR_IS_SUBSTED0x87An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.
ERROR_NOT_JOINED0x88The system tried to delete the JOIN of a drive that is not joined.
ERROR_NOT_SUBSTED0x89The system tried to delete the substitution of a drive that is not substituted.
ERROR_JOIN_TO_JOIN0x8AThe system tried to join a drive to a directory on a joined drive.
ERROR_SUBST_TO_SUBST0x8BThe system tried to substitute a drive to a directory on a substituted drive.
ERROR_JOIN_TO_SUBST0x8CThe system tried to join a drive to a directory on a substituted drive.
ERROR_SUBST_TO_JOIN0x8DThe system tried to SUBST a drive to a directory on a joined drive.
ERROR_BUSY_DRIVE0x8EThe system cannot perform a JOIN or SUBST at this time.
ERROR_SAME_DRIVE0x8FThe system cannot join or substitute a drive to or for a directory on the same drive.
ERROR_DIR_NOT_ROOT0x90The directory is not a subdirectory of the root directory.
ERROR_DIR_NOT_EMPTY0x91The directory is not empty.
ERROR_IS_SUBST_PATH0x92The path specified is being used in a substitute.
ERROR_IS_JOIN_PATH0x93Not enough resources are available to process this command.
ERROR_PATH_BUSY0x94The path specified cannot be used at this time.
ERROR_IS_SUBST_TARGET0x95An attempt was made to join or substitute a drive for which a directory on the drive is the target of a previous substitute.
ERROR_SYSTEM_TRACE0x96System trace information was not specified in your CONFIG.SYS file, or tracing is disallowed.
ERROR_INVALID_EVENT_COUNT0x97The number of specified semaphore events for DosMuxSemWait is not correct.
ERROR_TOO_MANY_MUXWAITERS0x98DosMuxSemWait did not execute; too many semaphores are already set.
ERROR_INVALID_LIST_FORMAT0x99The DosMuxSemWait list is not correct.
ERROR_LABEL_TOO_LONG0x9AThe volume label you entered exceeds the label character limit of the target file system.
ERROR_TOO_MANY_TCBS0x9BCannot create another thread.
ERROR_SIGNAL_REFUSED0x9CThe recipient process has refused the signal.
ERROR_DISCARDED0x9DThe segment is already discarded and cannot be locked.
ERROR_NOT_LOCKED0x9EThe segment is already unlocked.
ERROR_BAD_THREADID_ADDR0x9FThe address for the thread ID is not correct.
ERROR_BAD_ARGUMENTS0xA0One or more arguments are not correct.
ERROR_BAD_PATHNAME0xA1The specified path is invalid.
ERROR_SIGNAL_PENDING0xA2A signal is already pending.
ERROR_MAX_THRDS_REACHED0xA4No more threads can be created in the system.
ERROR_LOCK_FAILED0xA7Unable to lock a region of a file.
ERROR_BUSY0xAAThe requested resource is in use.
ERROR_DEVICE_SUPPORT_IN_PROGRESS0xABDevice's command support detection is in progress.
ERROR_CANCEL_VIOLATION0xADA lock request was not outstanding for the supplied cancel region.
ERROR_ATOMIC_LOCKS_NOT_SUPPORTED0xAEThe file system does not support atomic changes to the lock type.
ERROR_INVALID_SEGMENT_NUMBER0xB4The system detected a segment number that was not correct.
ERROR_INVALID_ORDINAL0xB6The operating system cannot run %1.
ERROR_ALREADY_EXISTS0xB7Cannot create a file when that file already exists.
ERROR_INVALID_FLAG_NUMBER0xBAThe flag passed is not correct.
ERROR_SEM_NOT_FOUND0xBBThe specified system semaphore name was not found.
ERROR_INVALID_STARTING_CODESEG0xBCThe operating system cannot run %1.
ERROR_INVALID_STACKSEG0xBDThe operating system cannot run %1.
ERROR_INVALID_MODULETYPE0xBEThe operating system cannot run %1.
ERROR_INVALID_EXE_SIGNATURE0xBFCannot run %1 in Win32 mode.
ERROR_EXE_MARKED_INVALID0xC0The operating system cannot run %1.
ERROR_BAD_EXE_FORMAT0xC1%1 is not a valid Win32 application.
ERROR_ITERATED_DATA_EXCEEDS_64k0xC2The operating system cannot run %1.
ERROR_INVALID_MINALLOCSIZE0xC3The operating system cannot run %1.
ERROR_DYNLINK_FROM_INVALID_RING0xC4The operating system cannot run this application program.
ERROR_IOPL_NOT_ENABLED0xC5The operating system is not presently configured to run this application.
ERROR_INVALID_SEGDPL0xC6The operating system cannot run %1.
ERROR_AUTODATASEG_EXCEEDS_64k0xC7The operating system cannot run this application program.
ERROR_RING2SEG_MUST_BE_MOVABLE0xC8The code segment cannot be greater than or equal to 64K.
ERROR_RELOC_CHAIN_XEEDS_SEGLIM0xC9The operating system cannot run %1.
ERROR_INFLOOP_IN_RELOC_CHAIN0xCAThe operating system cannot run %1.
ERROR_ENVVAR_NOT_FOUND0xCBThe system could not find the environment option that was entered.
ERROR_NO_SIGNAL_SENT0xCDNo process in the command subtree has a signal handler.
ERROR_FILENAME_EXCED_RANGE0xCEThe filename or extension is too long.
ERROR_RING2_STACK_IN_USE0xCFThe ring 2 stack is in use.
ERROR_META_EXPANSION_TOO_LONG0xD0The global filename characters, * or ?, are entered incorrectly or too many global filename characters are specified.
ERROR_INVALID_SIGNAL_NUMBER0xD1The signal being posted is not correct.
ERROR_THREAD_1_INACTIVE0xD2The signal handler cannot be set.
ERROR_LOCKED0xD4The segment is locked and cannot be reallocated.
ERROR_TOO_MANY_MODULES0xD6Too many dynamic-link modules are attached to this program or dynamic-link module.
ERROR_NESTING_NOT_ALLOWED0xD7Cannot nest calls to LoadModule.
ERROR_EXE_MACHINE_TYPE_MISMATCH0xD8This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY0xD9The image file %1 is signed, unable to modify.
ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY0xDAThe image file %1 is strong signed, unable to modify.
ERROR_FILE_CHECKED_OUT0xDCThis file is checked out or locked for editing by another user.
ERROR_CHECKOUT_REQUIRED0xDDThe file must be checked out before saving changes.
ERROR_BAD_FILE_TYPE0xDEThe file type being saved or retrieved has been blocked.
ERROR_FILE_TOO_LARGE0xDFThe file size exceeds the limit allowed and cannot be saved.
ERROR_FORMS_AUTH_REQUIRED0xE0Access Denied. Before opening files in this location, you must first add the web site to your trusted sites list, browse to the web site, and select the option to login automatically.
ERROR_VIRUS_INFECTED0xE1Operation did not complete successfully because the file contains a virus or potentially unwanted software.
ERROR_VIRUS_DELETED0xE2This file contains a virus or potentially unwanted software and cannot be opened. Due to the nature of this virus or potentially unwanted software, the file has been removed from this location.
ERROR_PIPE_LOCAL0xE5The pipe is local.
ERROR_BAD_PIPE0xE6The pipe state is invalid.
ERROR_PIPE_BUSY0xE7All pipe instances are busy.
ERROR_NO_DATA0xE8The pipe is being closed.
ERROR_PIPE_NOT_CONNECTED0xE9No process is on the other end of the pipe.
ERROR_MORE_DATA0xEAMore data is available.
ERROR_VC_DISCONNECTED0xF0The session was canceled.
ERROR_INVALID_EA_NAME0xFEThe specified extended attribute name was invalid.
ERROR_EA_LIST_INCONSISTENT0xFFThe extended attributes are inconsistent.
WAIT_TIMEOUT0x102The wait operation timed out.
ERROR_NO_MORE_ITEMS0x103No more data is available.
ERROR_CANNOT_COPY0x10AThe copy functions cannot be used.
ERROR_DIRECTORY0x10BThe directory name is invalid.
ERROR_EAS_DIDNT_FIT0x113The extended attributes did not fit in the buffer.
ERROR_EA_FILE_CORRUPT0x114The extended attribute file on the mounted file system is corrupt.
ERROR_EA_TABLE_FULL0x115The extended attribute table file is full.
ERROR_INVALID_EA_HANDLE0x116The specified extended attribute handle is invalid.
ERROR_EAS_NOT_SUPPORTED0x11AThe mounted file system does not support extended attributes.
ERROR_NOT_OWNER0x120Attempt to release mutex not owned by caller.
ERROR_TOO_MANY_POSTS0x12AToo many posts were made to a semaphore.
ERROR_PARTIAL_COPY0x12BOnly part of a ReadProcessMemory or WriteProcessMemory request was completed.
ERROR_OPLOCK_NOT_GRANTED0x12CThe oplock request is denied.
ERROR_INVALID_OPLOCK_PROTOCOL0x12DAn invalid oplock acknowledgment was received by the system.
ERROR_DISK_TOO_FRAGMENTED0x12EThe volume is too fragmented to complete this operation.
ERROR_DELETE_PENDING0x12FThe file cannot be opened because it is in the process of being deleted.
ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING0x130Short name settings may not be changed on this volume due to the global registry setting.
ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME0x131Short names are not enabled on this volume.
ERROR_SECURITY_STREAM_IS_INCONSISTENT0x132The security stream for the given volume is in an inconsistent state. Please run CHKDSK on the volume.
ERROR_INVALID_LOCK_RANGE0x133A requested file lock operation cannot be processed due to an invalid byte range.
ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT0x134The subsystem needed to support the image type is not present.
ERROR_NOTIFICATION_GUID_ALREADY_DEFINED0x135The specified file already has a notification GUID associated with it.
ERROR_INVALID_EXCEPTION_HANDLER0x136An invalid exception handler routine has been detected.
ERROR_DUPLICATE_PRIVILEGES0x137Duplicate privileges were specified for the token.
ERROR_NO_RANGES_PROCESSED0x138No ranges for the specified operation were able to be processed.
ERROR_NOT_ALLOWED_ON_SYSTEM_FILE0x139Operation is not allowed on a file system internal file.
ERROR_DISK_RESOURCES_EXHAUSTED0x13AThe physical resources of this disk have been exhausted.
ERROR_INVALID_TOKEN0x13BThe token representing the data is invalid.
ERROR_DEVICE_FEATURE_NOT_SUPPORTED0x13CThe device does not support the command feature.
ERROR_MR_MID_NOT_FOUND0x13DThe system cannot find message text for message number 0x%1 in the message file for %2.
ERROR_SCOPE_NOT_FOUND0x13EThe scope specified was not found.
ERROR_UNDEFINED_SCOPE0x13FThe Central Access Policy specified is not defined on the target machine.
ERROR_INVALID_CAP0x140The Central Access Policy obtained from Active Directory is invalid.
ERROR_DEVICE_UNREACHABLE0x141The device is unreachable.
ERROR_DEVICE_NO_RESOURCES0x142The target device has insufficient resources to complete the operation.
ERROR_DATA_CHECKSUM_ERROR0x143A data integrity checksum error occurred. Data in the file stream is corrupt.
ERROR_INTERMIXED_KERNEL_EA_OPERATION0x144An attempt was made to modify both a KERNEL and normal Extended Attribute (EA) in the same operation.
ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED0x146Device does not support file-level TRIM.
ERROR_OFFSET_ALIGNMENT_VIOLATION0x147The command specified a data offset that does not align to the device's granularity/alignment.
ERROR_INVALID_FIELD_IN_PARAMETER_LIST0x148The command specified an invalid field in its parameter list.
ERROR_OPERATION_IN_PROGRESS0x149An operation is currently in progress with the device.
ERROR_BAD_DEVICE_PATH0x14AAn attempt was made to send down the command via an invalid path to the target device.
ERROR_TOO_MANY_DESCRIPTORS0x14BThe command specified a number of descriptors that exceeded the maximum supported by the device.
ERROR_SCRUB_DATA_DISABLED0x14CScrub is disabled on the specified file.
ERROR_NOT_REDUNDANT_STORAGE0x14DThe storage device does not provide redundancy.
ERROR_RESIDENT_FILE_NOT_SUPPORTED0x14EAn operation is not supported on a resident file.
ERROR_COMPRESSED_FILE_NOT_SUPPORTED0x14FAn operation is not supported on a compressed file.
ERROR_DIRECTORY_NOT_SUPPORTED0x150An operation is not supported on a directory.
ERROR_NOT_READ_FROM_COPY0x151The specified copy of the requested data could not be read.
ERROR_FAIL_NOACTION_REBOOT0x15ENo action was taken as a system reboot is required.
ERROR_FAIL_SHUTDOWN0x15FThe shutdown operation failed.
ERROR_FAIL_RESTART0x160The restart operation failed.
ERROR_MAX_SESSIONS_REACHED0x161The maximum number of sessions has been reached.
ERROR_THREAD_MODE_ALREADY_BACKGROUND0x190The thread is already in background processing mode.
ERROR_THREAD_MODE_NOT_BACKGROUND0x191The thread is not in background processing mode.
ERROR_PROCESS_MODE_ALREADY_BACKGROUND0x192The process is already in background processing mode.
ERROR_PROCESS_MODE_NOT_BACKGROUND0x193The process is not in background processing mode.
ERROR_INVALID_ADDRESS0x1E7Attempt to access invalid address.
244 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.