Windows API Guide: MM_MCINOTIFY Message


The error codes are values that identify different types of errors in the Windows API. Most functions do not report the error code directly; instead, they simply return a flag specifying if some error occured or not. The actual error code can usually be obtained by using the GetLastError function.

The following list identifies various error codes defined in the Windows API. Your application may define its own error codes and use them with the error functions. However, make sure that bit 29 (&H20000000) is set in any application-defined error code you define. Because no Windows API-defined error code has that bit set, using that bit assures that your error code will not conflict with an existing one.

Error Codes

NO_ERROR
No Error / Success.
ERROR_SUCCESS
No Error / Success.
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 because too many files are currently open.
ERROR_ACCESS_DENIED
Access denied.
ERROR_INVALID_HANDLE
The handle is invalid.
ERROR_ARENA_TRASHED
The storage control blocks were destroyed.
ERROR_NOT_ENOUGH_MEMORY
Insufficient memory is available to process the command.
ERROR_INVALID_BLOCK
The storage control block address is invalid.
ERROR_BAD_ENVIRONMENT
The environment is incorrect.
ERROR_BAD_FORMAT
An attempt to load a program with an incorrect format was made.
ERROR_INVALID_ACCESS
The access code is invalid.
ERROR_INVALID_DATA
The data are invalid.
ERROR_OUTOFMEMORY
Insufficient memory is available to complete the 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 disk 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
Cyclic redundance check (CRC) data error.
ERROR_BAD_LENGTH
The length of the issued command is incorrect.
ERROR_SEEK
The drive cannot locate a specific area or track on the disk.
ERROR_NOT_DOS_DISK
The specified disk 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 file cannot be accessed because it is in use by another process.
ERROR_LOCK_VIOLATION
The file cannot be accessed because another process has locked a portion of it.
ERROR_WRONG_DISK
The wrong disk is in the drive.
ERROR_SHARING_BUFFER_EXCEEDED
Too many files have been opened for sharing.
ERROR_HANDLE_EOF
The end of file (EOF) has been reached.
ERROR_HANDLE_DISK_FULL
The disk is full.
ERROR_NOT_SUPPORTED
The network request is not supported.
ERROR_REM_NOT_LIST
The remote computer is not available.
ERROR_DUP_NAME
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 not available.
ERROR_TOO_MANY_CMDS
The network BIOS command limit has been reached.
ERROR_ADAP_HDW_ERR
A network adapter hardware error has occured.
ERROR_BAD_NET_RESP
The specified server cannot perform the requested operation.
ERROR_UNEXP_NET_ERROR
An unexpected network error has occured.
ERROR_BAD_REM_ADAP
The remote adapter is incompatible.
ERROR_PRINTQ_FULL
The printer queue is full.
ERROR_NO_SPOOL_SPACE
No space to store the file waiting to be printed is available on the server.
ERROR_PRINT_CANCELLED
The file waiting to be printed was deleted.
ERROR_NETNAME_DELETED
The specified network name is unavailable.
ERROR_NETWORK_ACCESS_DENIED
Network access is denied.
ERROR_BAD_DEV_TYPE
The network resource type is incorrect.
ERROR_BAD_NET_NAME
The network name cannot be found.
ERROR_TOO_MANY_NAMES
The name limit for the local computer network adapter card was exceeded.
ERROR_TOO_MANY_SESS
The network BIOS session limit was exceeded.
ERROR_SHARING_PAUSED
The remote server is paused or is in the process of beig started.
ERROR_REQ_NOT_ACCEP
The network request was not accepted.
ERROR_REDIR_PAUSED
The specified printer or disk device is paused.
ERROR_FILE_EXISTS
The file exists.
ERROR_CANNOT_MAKE
The directory or file cannot be created.
ERROR_FAIL_I24
Failure on Interrupt 24 (INT 24).
ERROR_OUT_OF_STRUCTURES
Storage to process the request is unavailable.
ERROR_ALREADY_ASSIGNED
The local device name is already in use.
ERROR_INVALID_PASSWORD
The specified network password is incorrect.
ERROR_INVALID_PARAMETER
The parameter is incorrect.
ERROR_NET_WRITE_FAULT
A write fault occured on the network.
ERROR_NO_PROC_SLOTS
The system cannot start another process at this time.
ERROR_TOO_MANY_SEMAPHORES
The system cannot create another semaphore.
ERROR_EXCL_SEM_ALREADY_OWNED
The exclusive semaphore is already owned by another process.
ERROR_SEM_IS_SET
The semaphore is set and cannot be closed.
ERROR_TOO_MANY_SEM_REQUESTS
The semaphore cannot be set again.
ERROR_INVALID_AT_INTERRUPT_TIME
The system cannot request exclusive semaphores at interrupt time.
ERROR_SEM_OWNER_DIED
The previous ownership of this semaphore has ended.
ERROR_SEM_USER_LIMIT
The system has reached the semaphore user limit.
ERROR_DISK_CHANGE
The program stopped because the alternate disk was not inserted.
ERROR_DRIVE_LOCKED
The disk is in use or is locked by another process.
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 insufficient space on the disk.
ERROR_NO_MORE_SEARCH_HANDLES
No more file search handles are available.
ERROR_INVALID_TARGET_HANDLE
The target file handle is incorrect.
ERROR_INVALID_CATEGORY
The IOCTL call made by the program is incorrect.
ERROR_INVALID_VERIFY_SWITCH
The verify-on-write parameter is incorrect.
ERROR_BAD_DRIVER_LEVEL
The system does not support the command requested.
ERROR_CALL_NOT_IMPLEMENTED
This function is only valid under Windows NT/2000.
ERROR_SEM_TIMEOUT
The semaphore timeout experiod has expired.
ERROR_INSUFFIENT_BUFFER
The data area passed to a system call is too small.
ERROR_INVALID_NAME
The syntax of the filename, directory name, or volume label is incorrect.
ERROR_INVALID_LEVEL
The system call level is incorrect.
ERROR_NO_VOLUME_LABEL
The disk has no volume label.
ERROR_MOD_NOT_FOUND
The specified module cannot be found.
ERROR_PROC_NOT_FOUND
The specified procedure cannot be found.
ERROR_WAIT_NO_CHILDREN
There are no child processes to wait for.
ERROR_CHILD_NOT_COMPLETE
The program cannot run under Windows NT/2000.
ERROR_DIRECT_ACCESS_HANDLE
A file handle or open disk partition was attempted to be used for an operation other than raw disk I/O.
ERROR_NEGATIVE_SEEK
An attempt was made to move a 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_IS_JOIN_TARGET
A JOIN or SUBST command cannot be used for a drive that contains previously joined drives.
ERROR_IS_JOINED
An attempt was made to use a JOIN or SUBST command on a drive that has already been joined.
ERROR_IS_SUBSTED
An attempt was made to use a JOIN or SUBST command on a drive that has already been substituted.
ERROR_NOT_JOINED
The system tried to delete the JOIN of a drive that is not joined.
ERROR_NOT_SUBSTED
The system tried to delete the SUBST of a drive that is not substituted.
ERROR_JOIN_TO_JOIN
The system tried to JOIN a drive to a directory on a joined drive.
ERROR_SUBST_TO_SUBST
The system tried to SUBST a drive to a directory on a substituted drive.
ERROR_JOIN_TO_SUBST
The system tried to JOIN a drive to a directory on a substituted drive.
ERROR_SUBST_TO_JOIN
The system tried to SUBST a drive to a directory on a joined drive.
ERROR_BUSY_DRIVE
The system cannot perform a JOIN or SUBST at this time.
ERROR_SAME_DRIVE
The system cannot JOIN or SUBST a drive to or for a directory on the same drive.
ERROR_DIR_NOT_ROOT
The directory is not a subdirectory of the root directory.
ERROR_DIR_NOT_EMPTY
The directory is not empty.
ERROR_IS_SUBST_PATH
The path specified is being used in a SUBST.
ERROR_IS_JOIN_PATH
The path specified is being used in a JOIN.
ERROR_PATH_BUSY
The path specified cannot be used at this time.
ERROR_IS_SUBST_TARGET
An attempt was made to JOIN or SUBST a drive for which a directory on the drive is the target of a previous SUBST.
ERROR_SYSTEM_TRACE
System trace information was not specified in CONFIG.SYS, or tracing is not allowed.
ERROR_INVALID_EVENT_COUNT
The number of specified semaphore events is incorrect.
ERROR_TOO_MANY_MUXWAITERS
DosMuxSemWait did not execute because too many semaphores are already set.
ERROR_INVALID_LIST_FORMAT
The DosMuxSemWait list is incorrect.
ERROR_LABEL_TOO_LONG
The volume label specified is too long and was truncated to 11 characters.
ERROR_TOO_MANY_TCBS
The system cannot create another thread.
ERROR_SIGNAL_REFUSED
The recipient process has refused the signal.
ERROR_DISCARDED
The segment is already discarded and cannot be locked.
ERROR_NOT_LOCKED
The segment is already unlocked.
ERROR_BAD_THREADID_ADDR
The address for the thread ID is incorrect.
ERROR_BAD_ARGUMENTS
The argument string is incorrect.
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
The system was unable to lock a region of a file.
ERROR_BUSY
The requested resource is in use.
ERROR_CANCEL_VIOLATION
A lock request was not outstanding for the supplied cancel region.
ERROR_ATOMIC_LOCKS_NOT_SUPPORTED
The file system does not support atomic changes to the lock type.
ERROR_INVALID_SEGMENT_NUMBER
The system detected an incorrect segment number.
ERROR_INVALID_ORDINAL
The system cannot run something because of an invalid ordinal.
ERROR_ALREADY_EXISTS
The system cannot create a file when it already exists.
ERROR_INVALID_FLAG_NUMBER
An incorrect flag was passed.
ERROR_SEM_NOT_FOUND
The specified system semaphore name was not found.
ERROR_INVALID_STARTING_CODESEG
The system cannot run something because of an invalid starting code segment.
ERROR_INVALID_STACKSEG
The system cannot run something because of an invalid stack segment.
ERROR_INVALID_MODULETYPE
The system cannot run something because of an invalid module type.
ERROR_INVALID_EXE_SIGNATURE
The system cannot run something because it cannot run under Windows NT/2000.
ERROR_EXE_MARKED_INVALID
The system cannot run something because the EXE was marked as invalid.
ERROR_BAD_EXE_FORMAT
The system cannot run something because it is an invalid Windows NT/2000 application.
ERROR_ITERATED_DATA_EXCEEDS_64K
The system cannot run something because the iterated data exceed 64KB.
ERROR_INVALID_MINALLOCSIZE
The system cannot run something because of an invalid minimum allocation size.
ERROR_DYNLINK_FROM_INVALID_RING
The system cannot run something because of a dynalink from an invalid ring.
ERROR_IOPL_NOT_ENABLED
The system is not presently configured to run this application.
ERROR_INVALID_SEGDPL
The system cannot run something because of an invalid segment DPL.
ERROR_AUTODATASEG_EXCEEDS_64KB
The system cannot run something because the automatic data segment exceeds 64K.
ERROR_RING2SEG_MUST_BE_MOVABLE
The code segment cannot be greater than or equal to 64KB.
ERROR_RELOC_CHAIN_XEEDS_SEGLIM
The system cannot run something because the reallocation chain exceeds the segment limit.
ERROR_INFLOOP_IN_RELOC_CHAIN
The system cannot run something because of an infinite loop in the reallocation chain.
ERROR_ENVVAR_NOT_FOUND
The system could not find the specified environment variable.
ERROR_NO_SIGNAL_SENT
No process in the command subtree has a signal handler.
ERROR_FILENAME_EXCED_RANGE
The filename or extension is too long.
ERROR_RING2_STACK_IN_USE
The ring 2 stack is busy.
ERROR_META_EXPANSION_TOO_LONG
The global filename characters (or ?) are entered incorrectly, or too amny global filename characters are specified.
ERROR_INVALID_SIGNAL_NUMBER
The signal being posted is incorrect.
ERROR_THREAD_1_INACTIVE
The signal handler cannot be set.
ERROR_LOCKED
The segment is locked and cannot be reallocated.
ERROR_TOO_MANY_MODULES
Too many dynamic link modules are attacked to this program or module.
ERROR_NESTING_NOT_ALLOWED
Nesting of calls to LoadModule is not allowed.
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 exists on the other end of the pipe.
ERROR_MORE_DATA
More data is available.
ERROR_VC_DISCONNECTED
The session was cancelled.
ERROR_INVALID_EA_NAME
The specified extended attribute name was invalid.
ERROR_EA_LIST_INCONSISTENT
The extended attributes are inconsistent.
ERROR_NO_MORE_ITEMS
No more data is available.
ERROR_CANNOT_COPY
The Copy API cannot be used.
ERROR_DIRECTORY
The directory name is invalid.
ERROR_EAS_DIDNT_FIT
The extended attributes did not fit into 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
The system attempted to release a mutex not owned by the caller.
ERROR_TOO_MANY_POSTS
Too many posts were made to a semaphore.
ERROR_MR_MID_NOT_FOUND
The system cannot find the message for the specified message number in the proper message file.
ERROR_INVALID_ADDRESS
The system attempted to access an invalid address.
ERROR_ARITHMETIC_OVERFLOW
An arithmetic overflow (result> 32 bits) occured.
ERROR_PIPE_CONNECTED
A process already exists on the other end of the pipe.
ERROR_PIPE_LISTENING
The system is waiting for a process to open on the other end of the pipe.
ERROR_EA_ACCESS_DENIED
Access to the extended attribute was denied.
ERROR_OPERATED_ABORTED
The I/O operation has been aborted because of either a thread exit or an application request.
ERROR_IO_INCOMPLETE
The overlapped I/O event is not in a signalled state.
ERROR_IO_PENDING
The overlapped I/O operation is in progress.
ERROR_NOACCESS
An invalid access to a memory location was attempted.
ERROR_SWAPERROR
An error performing an inpage operation occured.
ERROR_STACK_OVERFLOW
The stack overflowed because recursion was too deep.
ERROR_INVALID_MESSAGE
The window cannot act on the sent message.
ERROR_CAN_NOT_COMPLETE
The function cannot be completed.
ERROR_INVALID_FLAGS
Invalid flags were used.
ERROR_UNRECOGNIZED_VOLUME
The disk volume does not contain a recognized file system.
ERROR_FILE_INVALID
The disk volume for a file has been altered such 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 to reference a nonexistent token was made.
ERROR_BADDB
The registry database is corrupt.
ERROR_BADKEY
The registry key is invalid.
ERROR_CANTOPEN
The registry key could not be opened.
ERROR_CANTREAD
The registry key could not be read from.
ERROR_CANTWRITE
The registry key could not be written to.
ERROR_REGISTRY_RECOVERED
One of the registry database files was successfully recovered.
ERROR_REGISTRY_CORRUPT
The registry is corrupt. The cause could be a corrupted registry database file, a corrupted image in system memory, or a failed attempt to recover the registry because of a missing or corrupted log.
ERROR_REGISTRY_IO_FAILED
An I/O operation initiated by the registry failed unrecoverably.
ERROR_NOT_REGISTRY_FILE
The system tried to load or restore a file into the registry, but that file is not in the proper file format.
ERROR_KEY_DELETED
An illegal operation was attempted on a registry key marked for deletion.
ERROR_NO_LOG_SPACE
The system could not allocate the required space in a registry log.
ERROR_KEY_HAS_CHILDREN
A symbolic link in a registry key that already has subkeys or values cannot be created.
ERROR_CHILD_MUST_BE_VOLATILE
A stable subkey cannot be created under a volatile parent key.
ERROR_NOTIFY_ENUM_DIR
Because a notify change request is being completed and the information is not being returned in the caller's buffer, the caller must now enumerate the files to find the changes.
ERROR_DEPENDENT_SERVICES_RUNNING
A stop control has been sent to a service which 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 within the timeout period.
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 for the service is invalid or nonexistent.
ERROR_SERVICE_DISABLED
The specified service is disabled and cannot be started.
ERROR_CIRCULAR_DEPENDENCY
A circular service dependency was specified.
ERROR_SERVICE_DOES_NOT_EXIST
The specified service does not exist.
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 occured in the service when handling the control request.
ERROR_DATABASE_DOES_NOT_EXIST
The specified database 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_ALREADY_RUNNING_LKG
The system is currently running with the last-known-good configuration.
ERROR_SERVICE_DEPENDENCY_DELETED
The dependency service does not exist or has been marked for deletion.
ERROR_BOOT_ALREADY_ACCEPTED
The current boot has already been accepted for use as the last-known-good control set.
ERROR_SERVICE_NEVER_STARTED
No attempts to start the service have been made.
ERROR_DUPLICATE_SERVICE_NAME
The name is already in use either as a service name or as a service display name.
ERROR_END_OF_MEDIA
The physical end of the tape has been reached.
ERROR_FILEMARK_DETECTED
A tape access reached a filemark.
ERROR_BEGINNING_OF_MEDIA
The beginning of the tape or partition was encountered.
ERROR_SETMARK_DETECTED
A tape access reached the end of a set of files.
ERROR_NO_DATA_DETECTED
No more data is on the tape.
ERROR_PARTITION_FAILURE
The tape could not be partitioned.
ERROR_INVALID_BLOCK_LENGTH
When accessing a new tape of a multivolume partition, the current blocksize is incorrect.
ERROR_DEVICE_NOT_PARTITIONED
The tape partition information could not be found.
ERROR_UNABLE_TO_LOCK_MEDIA
The system was unable to lock the media eject mechanism.
ERROR_UNABLE_TO_UNLOAD_MEDIA
The system was unable to unload the media.
ERROR_MEDIA_CHANGED
The media in the drive may have changed.
ERROR_BUS_RESET
The I/O bus was reset.
ERROR_NO_MEDIA_IN_DRIVE
There is no media in the drive.
ERROR_NO_UNICODE_TRANSLATION
No mapping for the Unicode character exists in the target multi-byte code page.
ERROR_DLL_INIT_FAILED
A dynamic link library initialization routine failed.
ERROR_SHUTDOWN_IN_PROGRESS
A system shutdown is in progress.
ERROR_NO_SHUTDOWN_IN_PROGRESS
The system shutdown could not be aborted because no shutdown is in progress.
ERROR_IO_DEVICE
The request could not be performed because of an device I/O error.
ERROR_SERIAL_NO_DEVICE
No serial device was successfully initialized; the serial driver will therefore unload.
ERROR_IRQ_BUSY
The system was unable to open a device sharing an interrupt request (IRQ) with other device(s) because at least one of those devices is already opened.
ERROR_MORE_WRITES
A serial I/O operation was completed by another write to the serial port.
ERROR_COUNTER_TIMEOUT
A serial I/O operation completed because the time-out period expired.
ERROR_FLOPPY_ID_MARK_NOT_FOUND
No ID address mark was found on the floppy disk.
ERROR_FLOPPY_WRONG_CYLINDER
A mismatch exists between the floppy disk sector ID field and the floppy disk controller track address.
ERROR_FLOPPY_UNKNOWN_ERROR
The floppy disk controller reported an unrecognized error.
ERROR_FLOPPY_BAD_REGISTERS
The floppy disk controller returned inconsistent results in its registers.
ERROR_DISK_RECALIBRATE_FAILED
While accessing a hard disk, a recalibrate operation failed, even after retries.
ERROR_DISK_OPERATION_FAILED
While accessing a hard disk, a disk operation failed, even after retries.
ERROR_DISK_RESET_FAILED
While accessing a hard disk, a disk controller reset was needed, but even that failed.
ERROR_EOM_OVERFLOW
An EOM overflow occured.
ERROR_NOT_ENOUGH_SERVER_MEMORY
Not enough server storage is available to process this command.
ERROR_POSSIBLE_DEADLOCK
A potential deadlock condition has been detected.
ERROR_MAPPED_ALIGNMENT
The base address or the file offset specified does not have the proper alignment.

Constant Definitions

Const NO_ERROR = 0 Const ERROR_SUCCESS = 0 Const ERROR_INVALID_FUNCTION = 1 Const ERROR_FILE_NOT_FOUND = 2 Const ERROR_PATH_NOT_FOUND = 3 Const ERROR_TOO_MANY_OPEN_FILES = 4 Const ERROR_ACCESS_DENIED = 5 Const ERROR_INVALID_HANDLE = 6 Const ERROR_ARENA_TRASHED = 7 Const ERROR_NOT_ENOUGH_MEMORY = 8 Const ERROR_INVALID_BLOCK = 9 Const ERROR_BAD_ENVIRONMENT = 10 Const ERROR_BAD_FORMAT = 11 Const ERROR_INVALID_ACCESS = 12 Const ERROR_INVALID_DATA = 13 Const ERROR_OUTOFMEMORY = 14 Const ERROR_INVALID_DRIVE = 15 Const ERROR_CURRENT_DIRECTORY = 16 Const ERROR_NOT_SAME_DEVICE = 17 Const ERROR_NO_MORE_FILES = 18 Const ERROR_WRITE_PROTECT = 19 Const ERROR_BAD_UNIT = 20 Const ERROR_NOT_READY = 21 Const ERROR_BAD_COMMAND = 22 Const ERROR_CRC = 23 Const ERROR_BAD_LENGTH = 24 Const ERROR_SEEK = 25 Const ERROR_NOT_DOS_DISK = 26 Const ERROR_SECTOR_NOT_FOUND = 27 Const ERROR_OUT_OF_PAPER = 28 Const ERROR_WRITE_FAULT = 29 Const ERROR_READ_FAULT = 30 Const ERROR_GEN_FAILURE = 31 Const ERROR_SHARING_VIOLATION = 32 Const ERROR_LOCK_VIOLATION = 33 Const ERROR_WRONG_DISK = 34 Const ERROR_SHARING_BUFFER_EXCEEDED = 36 Const ERROR_HANDLE_EOF = 38 Const ERROR_HANDLE_DISK_FULL = 39 Const ERROR_NOT_SUPPORTED = 50 Const ERROR_REM_NOT_LIST = 51 Const ERROR_DUP_NAME = 52 Const ERROR_BAD_NETPATH = 53 Const ERROR_NETWORK_BUSY = 54 Const ERROR_DEV_NOT_EXIST = 55 Const ERROR_TOO_MANY_CMDS = 56 Const ERROR_ADAP_HDW_ERR = 57 Const ERROR_BAD_NET_RESP = 58 Const ERROR_UNEXP_NET_ERR = 59 Const ERROR_BAD_REM_ADAP = 60 Const ERROR_PRINTQ_FULL = 61 Const ERROR_NO_SPOOL_SPACE = 62 Const ERROR_PRINT_CANCELLED = 63 Const ERROR_NETNAME_DELETED = 64 Const ERROR_NETWORK_ACCESS_DENIED = 65 Const ERROR_BAD_DEV_TYPE = 66 Const ERROR_BAD_NET_NAME = 67 Const ERROR_TOO_MANY_NAMES = 68 Const ERROR_TOO_MANY_SESS = 69 Const ERROR_SHARING_PAUSED = 70 Const ERROR_REQ_NOT_ACCEP = 71 Const ERROR_REDIR_PAUSED = 72 Const ERROR_FILE_EXISTS = 80 Const ERROR_CANNOT_MAKE = 82 Const ERROR_FAIL_I24 = 83 Const ERROR_OUT_OF_STRUCTURES = 84 Const ERROR_ALREADY_ASSIGNED = 85 Const ERROR_INVALID_PASSWORD = 86 Const ERROR_INVALID_PARAMETER = 87 Const ERROR_NET_WRITE_FAULT = 88 Const ERROR_NO_PROC_SLOTS = 89 Const ERROR_TOO_MANY_SEMAPHORES = 100 Const ERROR_EXCL_SEM_ALREADY_OWNED = 101 Const ERROR_SEM_IS_SET = 102 Const ERROR_TOO_MANY_SEM_REQUESTS = 103 Const ERROR_INVALID_AT_INTERRUPT_TIME = 104 Const ERROR_SEM_OWNER_DIED = 105 Const ERROR_SEM_USER_LIMIT = 106 Const ERROR_DISK_CHANGE = 107 Const ERROR_DRIVE_LOCKED = 108 Const ERROR_BROKEN_PIPE = 109 Const ERROR_OPEN_FAILED = 110 Const ERROR_BUFFER_OVERFLOW = 111 Const ERROR_DISK_FULL = 112 Const ERROR_NO_MORE_SEARCH_HANDLES = 113 Const ERROR_INVALID_TARGET_HANDLE = 114 Const ERROR_INVALID_CATEGORY = 117 Const ERROR_INVALID_VERIFY_SWITCH = 118 Const ERROR_BAD_DRIVER_LEVEL = 119 Const ERROR_CALL_NOT_IMPLEMENTED = 120 Const ERROR_SEM_TIMEOUT = 121 Const ERROR_INSUFFICIENT_BUFFER = 122 Const ERROR_INVALID_NAME = 123 Const ERROR_INVALID_LEVEL = 124 Const ERROR_NO_VOLUME_LABEL = 125 Const ERROR_MOD_NOT_FOUND = 126 Const ERROR_PROC_NOT_FOUND = 127 Const ERROR_WAIT_NO_CHILDREN = 128 Const ERROR_CHILD_NOT_COMPLETE = 129 Const ERROR_DIRECT_ACCESS_HANDLE = 130 Const ERROR_NEGATIVE_SEEK = 131 Const ERROR_SEEK_ON_DEVICE = 132 Const ERROR_IS_JOIN_TARGET = 133 Const ERROR_IS_JOINED = 134 Const ERROR_IS_SUBSTED = 135 Const ERROR_NOT_JOINED = 136 Const ERROR_NOT_SUBSTED = 137 Const ERROR_JOIN_TO_JOIN = 138 Const ERROR_SUBST_TO_SUBST = 139 Const ERROR_JOIN_TO_SUBST = 140 Const ERROR_SUBST_TO_JOIN = 141 Const ERROR_BUSY_DRIVE = 142 Const ERROR_SAME_DRIVE = 143 Const ERROR_DIR_NOT_ROOT = 144 Const ERROR_DIR_NOT_EMPTY = 145 Const ERROR_IS_SUBST_PATH = 146 Const ERROR_IS_JOIN_PATH = 147 Const ERROR_PATH_BUSY = 148 Const ERROR_IS_SUBST_TARGET = 149 Const ERROR_SYSTEM_TRACE = 150 Const ERROR_INVALID_EVENT_COUNT = 151 Const ERROR_TOO_MANY_MUXWAITERS = 152 Const ERROR_INVALID_LIST_FORMAT = 153 Const ERROR_LABEL_TOO_LONG = 154 Const ERROR_TOO_MANY_TCBS = 155 Const ERROR_SIGNAL_REFUSED = 156 Const ERROR_DISCARDED = 157 Const ERROR_NOT_LOCKED = 158 Const ERROR_BAD_THREADID_ADDR = 159 Const ERROR_BAD_ARGUMENTS = 160 Const ERROR_BAD_PATHNAME = 161 Const ERROR_SIGNAL_PENDING = 162 Const ERROR_MAX_THRDS_REACHED = 164 Const ERROR_LOCK_FAILED = 167 Const ERROR_BUSY = 170 Const ERROR_CANCEL_VIOLATION = 173 Const ERROR_ATOMIC_LOCKS_NOT_SUPPORTED = 174 Const ERROR_INVALID_SEGMENT_NUMBER = 180 Const ERROR_INVALID_ORDINAL = 182 Const ERROR_ALREADY_EXISTS = 183 Const ERROR_INVALID_FLAG_NUMBER = 186 Const ERROR_SEM_NOT_FOUND = 187 Const ERROR_INVALID_STARTING_CODESEG = 188 Const ERROR_INVALID_STACKSEG = 189 Const ERROR_INVALID_MODULETYPE = 190 Const ERROR_INVALID_EXE_SIGNATURE = 191 Const ERROR_EXE_MARKED_INVALID = 192 Const ERROR_BAD_EXE_FORMAT = 193 Const ERROR_ITERATED_DATA_EXCEEDS_64k = 194 Const ERROR_INVALID_MINALLOCSIZE = 195 Const ERROR_DYNLINK_FROM_INVALID_RING = 196 Const ERROR_IOPL_NOT_ENABLED = 197 Const ERROR_INVALID_SEGDPL = 198 Const ERROR_AUTODATASEG_EXCEEDS_64k = 199 Const ERROR_RING2SEG_MUST_BE_MOVABLE = 200 Const ERROR_RELOC_CHAIN_XEEDS_SEGLIM = 201 Const ERROR_INFLOOP_IN_RELOC_CHAIN = 202 Const ERROR_ENVVAR_NOT_FOUND = 203 Const ERROR_NO_SIGNAL_SENT = 205 Const ERROR_FILENAME_EXCED_RANGE = 206 Const ERROR_RING2_STACK_IN_USE = 207 Const ERROR_META_EXPANSION_TOO_LONG = 208 Const ERROR_INVALID_SIGNAL_NUMBER = 209 Const ERROR_THREAD_1_INACTIVE = 210 Const ERROR_LOCKED = 212 Const ERROR_TOO_MANY_MODULES = 214 Const ERROR_NESTING_NOT_ALLOWED = 215 Const ERROR_BAD_PIPE = 230 Const ERROR_PIPE_BUSY = 231 Const ERROR_NO_DATA = 232 Const ERROR_PIPE_NOT_CONNECTED = 233 Const ERROR_MORE_DATA = 234 Const ERROR_VC_DISCONNECTED = 240 Const ERROR_INVALID_EA_NAME = 254 Const ERROR_EA_LIST_INCONSISTENT = 255 Const ERROR_NO_MORE_ITEMS = 259 Const ERROR_CANNOT_COPY = 266 Const ERROR_DIRECTORY = 267 Const ERROR_EAS_DIDNT_FIT = 275 Const ERROR_EA_FILE_CORRUPT = 276 Const ERROR_EA_TABLE_FULL = 277 Const ERROR_INVALID_EA_HANDLE = 278 Const ERROR_EAS_NOT_SUPPORTED = 282 Const ERROR_NOT_OWNER = 288 Const ERROR_TOO_MANY_POSTS = 298 Const ERROR_MR_MID_NOT_FOUND = 317 Const ERROR_INVALID_ADDRESS = 487 Const ERROR_ARITHMETIC_OVERFLOW = 534 Const ERROR_PIPE_CONNECTED = 535 Const ERROR_PIPE_LISTENING = 536 Const ERROR_EA_ACCESS_DENIED = 994 Const ERROR_OPERATION_ABORTED = 995 Const ERROR_IO_INCOMPLETE = 996 Const ERROR_IO_PENDING = 997 Const ERROR_NOACCESS = 998 Const ERROR_SWAPERROR = 999 Const ERROR_STACK_OVERFLOW = 1001 Const ERROR_INVALID_MESSAGE = 1002 Const ERROR_CAN_NOT_COMPLETE = 1003 Const ERROR_INVALID_FLAGS = 1004 Const ERROR_UNRECOGNIZED_VOLUME = 1005 Const ERROR_FILE_INVALID = 1006 Const ERROR_FULLSCREEN_MODE = 1007 Const ERROR_NO_TOKEN = 1008 Const ERROR_BADDB = 1009 Const ERROR_BADKEY = 1010 Const ERROR_CANTOPEN = 1011 Const ERROR_CANTREAD = 1012 Const ERROR_CANTWRITE = 1013 Const ERROR_REGISTRY_RECOVERED = 1014 Const ERROR_REGISTRY_CORRUPT = 1015 Const ERROR_REGISTRY_IO_FAILED = 1016 Const ERROR_NOT_REGISTRY_FILE = 1017 Const ERROR_KEY_DELETED = 1018 Const ERROR_NO_LOG_SPACE = 1019 Const ERROR_KEY_HAS_CHILDREN = 1020 Const ERROR_CHILD_MUST_BE_VOLATILE = 1021 Const ERROR_NOTIFY_ENUM_DIR = 1022 Const ERROR_DEPENDENT_SERVICES_RUNNING = 1051 Const ERROR_INVALID_SERVICE_CONTROL = 1052 Const ERROR_SERVICE_REQUEST_TIMEOUT = 1053 Const ERROR_SERVICE_NO_THREAD = 1054 Const ERROR_SERVICE_DATABASE_LOCKED = 1055 Const ERROR_SERVICE_ALREADY_RUNNING = 1056 Const ERROR_INVALID_SERVICE_ACCOUNT = 1057 Const ERROR_SERVICE_DISABLED = 1058 Const ERROR_CIRCULAR_DEPENDENCY = 1059 Const ERROR_SERVICE_DOES_NOT_EXIST = 1060 Const ERROR_SERVICE_CANNOT_ACCEPT_CTRL = 1061 Const ERROR_SERVICE_NOT_ACTIVE = 1062 Const ERROR_FAILED_SERVICE_CONTROLLER_CONNECT = 1063 Const ERROR_EXCEPTION_IN_SERVICE = 1064 Const ERROR_DATABASE_DOES_NOT_EXIST = 1065 Const ERROR_SERVICE_SPECIFIC_ERROR = 1066 Const ERROR_PROCESS_ABORTED = 1067 Const ERROR_SERVICE_DEPENDENCY_FAIL = 1068 Const ERROR_SERVICE_LOGON_FAILED = 1069 Const ERROR_SERVICE_START_HANG = 1070 Const ERROR_INVALID_SERVICE_LOCK = 1071 Const ERROR_SERVICE_MARKED_FOR_DELETE = 1072 Const ERROR_SERVICE_EXISTS = 1073 Const ERROR_ALREADY_RUNNING_LKG = 1074 Const ERROR_SERVICE_DEPENDENCY_DELETED = 1075 Const ERROR_BOOT_ALREADY_ACCEPTED = 1076 Const ERROR_SERVICE_NEVER_STARTED = 1077 Const ERROR_DUPLICATE_SERVICE_NAME = 1078 Const ERROR_END_OF_MEDIA = 1100 Const ERROR_FILEMARK_DETECTED = 1101 Const ERROR_BEGINNING_OF_MEDIA = 1102 Const ERROR_SETMARK_DETECTED = 1103 Const ERROR_NO_DATA_DETECTED = 1104 Const ERROR_PARTITION_FAILURE = 1105 Const ERROR_INVALID_BLOCK_LENGTH = 1106 Const ERROR_DEVICE_NOT_PARTITIONED = 1107 Const ERROR_UNABLE_TO_LOCK_MEDIA = 1108 Const ERROR_UNABLE_TO_UNLOAD_MEDIA = 1109 Const ERROR_MEDIA_CHANGED = 1110 Const ERROR_BUS_RESET = 1111 Const ERROR_NO_MEDIA_IN_DRIVE = 1112 Const ERROR_NO_UNICODE_TRANSLATION = 1113 Const ERROR_DLL_INIT_FAILED = 1114 Const ERROR_SHUTDOWN_IN_PROGRESS = 1115 Const ERROR_NO_SHUTDOWN_IN_PROGRESS = 1116 Const ERROR_IO_DEVICE = 1117 Const ERROR_SERIAL_NO_DEVICE = 1118 Const ERROR_IRQ_BUSY = 1119 Const ERROR_MORE_WRITES = 1120 Const ERROR_COUNTER_TIMEOUT = 1121 Const ERROR_FLOPPY_ID_MARK_NOT_FOUND = 1122 Const ERROR_FLOPPY_WRONG_CYLINDER = 1123 Const ERROR_FLOPPY_UNKNOWN_ERROR = 1124 Const ERROR_FLOPPY_BAD_REGISTERS = 1125 Const ERROR_DISK_RECALIBRATE_FAILED = 1126 Const ERROR_DISK_OPERATION_FAILED = 1127 Const ERROR_DISK_RESET_FAILED = 1128 Const ERROR_EOM_OVERFLOW = 1129 Const ERROR_NOT_ENOUGH_SERVER_MEMORY = 1130 Const ERROR_POSSIBLE_DEADLOCK = 1131 Const ERROR_MAPPED_ALIGNMENT = 1132

Used By

GetLastError, SetLastError, SetLastErrorEx

Go back to the Other Information listing.
Go back to the Reference section index.


Last Modified: March 19, 2000
This page is copyright © 2000 Paul Kuliniewicz. Copyright Information Revised October 29, 2000
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/other/errorcodes.html



Windows API Guide
Windows API Guide - Reference - Volume 1: Version 3.0 For the MS-DOS and PC-DOS Operating Systems
ISBN: B001V0KQIY
EAN: N/A
Year: 1998
Pages: 610

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net