Edit

COM Error Codes (Generic)

The following table provides a list of error codes used by COM-based APIs.

If you are experiencing difficulty with an application you are installing or running, contact customer support for the software that is displaying the error message. To obtain support for a Microsoft product, go to https://support.microsoft.com.

Constant/value Description
E_UNEXPECTED
0x8000FFFF
Catastrophic failure
E_NOTIMPL
0x80004001
Not implemented
E_OUTOFMEMORY
0x8007000E
Ran out of memory
E_INVALIDARG
0x80070057
One or more arguments are invalid
E_NOINTERFACE
0x80004002
No such interface supported
E_POINTER
0x80004003
Invalid pointer
E_HANDLE
0x80070006
Invalid handle
E_ABORT
0x80004004
Operation aborted
E_FAIL
0x80004005
Unspecified error
E_ACCESSDENIED
0x80070005
General access denied error
E_PENDING
0x8000000A
The data necessary to complete this operation is not yet available.
E_BOUNDS
0x8000000B
The operation attempted to access data outside the valid range
E_CHANGED_STATE
0x8000000C
A concurrent or interleaved operation changed the state of the object, invalidating this operation.
E_ILLEGAL_STATE_CHANGE
0x8000000D
An illegal state change was requested.
E_ILLEGAL_METHOD_CALL
0x8000000E
A method was called at an unexpected time.
RO_E_METADATA_NAME_NOT_FOUND
0x8000000F
Typename or Namespace was not found in metadata file.
RO_E_METADATA_NAME_IS_NAMESPACE
0x80000010
Name is an existing namespace rather than a typename.
RO_E_METADATA_INVALID_TYPE_FORMAT
0x80000011
Typename has an invalid format.
RO_E_INVALID_METADATA_FILE
0x80000012
Metadata file is invalid or corrupted.
RO_E_CLOSED
0x80000013
The object has been closed.
RO_E_EXCLUSIVE_WRITE
0x80000014
Only one thread may access the object during a write operation.
RO_E_CHANGE_NOTIFICATION_IN_PROGRESS
0x80000015
Operation is prohibited during change notification.
RO_E_ERROR_STRING_NOT_FOUND
0x80000016
The text associated with this error code could not be found.
E_STRING_NOT_NULL_TERMINATED
0x80000017
String not null terminated.
E_ILLEGAL_DELEGATE_ASSIGNMENT
0x80000018
A delegate was assigned when not allowed.
E_ASYNC_OPERATION_NOT_STARTED
0x80000019
An async operation was not properly started.
E_APPLICATION_EXITING
0x8000001A
The application is exiting and cannot service this request.
E_APPLICATION_VIEW_EXITING
0x8000001B
The application view is exiting and cannot service this request.
RO_E_MUST_BE_AGILE
0x8000001C
The object must support the IAgileObject interface.
RO_E_UNSUPPORTED_FROM_MTA
0x8000001D
Activating a single-threaded class from MTA is not supported.
RO_E_COMMITTED
0x8000001E
The object has been committed.
CO_E_INIT_TLS
0x80004006
Thread local storage failure
CO_E_INIT_SHARED_ALLOCATOR
0x80004007
Get shared memory allocator failure
CO_E_INIT_MEMORY_ALLOCATOR
0x80004008
Get memory allocator failure
CO_E_INIT_CLASS_CACHE
0x80004009
Unable to initialize class cache
CO_E_INIT_RPC_CHANNEL
0x8000400A
Unable to initialize RPC services
CO_E_INIT_TLS_SET_CHANNEL_CONTROL
0x8000400B
Cannot set thread local storage channel control
CO_E_INIT_TLS_CHANNEL_CONTROL
0x8000400C
Could not allocate thread local storage channel control
CO_E_INIT_UNACCEPTED_USER_ALLOCATOR
0x8000400D
The user supplied memory allocator is unacceptable
CO_E_INIT_SCM_MUTEX_EXISTS
0x8000400E
The OLE service mutex already exists
CO_E_INIT_SCM_FILE_MAPPING_EXISTS
0x8000400F
The OLE service file mapping already exists
CO_E_INIT_SCM_MAP_VIEW_OF_FILE
0x80004010
Unable to map view of file for OLE service
CO_E_INIT_SCM_EXEC_FAILURE
0x80004011
Failure attempting to launch OLE service
CO_E_INIT_ONLY_SINGLE_THREADED
0x80004012
There was an attempt to call CoInitialize a second time while single threaded
CO_E_CANT_REMOTE
0x80004013
A Remote activation was necessary but was not allowed
CO_E_BAD_SERVER_NAME
0x80004014
A Remote activation was necessary but the server name provided was invalid
CO_E_WRONG_SERVER_IDENTITY
0x80004015
The class is configured to run as a security id different from the caller
CO_E_OLE1DDE_DISABLED
0x80004016
Use of Ole1 services requiring DDE windows is disabled
CO_E_RUNAS_SYNTAX
0x80004017
A RunAs specification must be <domain name>\<user name> or simply <user name>.
CO_E_CREATEPROCESS_FAILURE
0x80004018
The server process could not be started. The pathname may be incorrect.
CO_E_RUNAS_CREATEPROCESS_FAILURE
0x80004019
The server process could not be started as the configured identity. The pathname may be incorrect or unavailable.
CO_E_RUNAS_LOGON_FAILURE
0x8000401A
The server process could not be started because the configured identity is incorrect. Check the user name and password.
CO_E_LAUNCH_PERMSSION_DENIED
0x8000401B
The client is not allowed to launch this server.
CO_E_START_SERVICE_FAILURE
0x8000401C
The service providing this server could not be started.
CO_E_REMOTE_COMMUNICATION_FAILURE
0x8000401D
This computer was unable to communicate with the computer providing the server.
CO_E_SERVER_START_TIMEOUT
0x8000401E
The server did not respond after being launched.
CO_E_CLSREG_INCONSISTENT
0x8000401F
The registration information for this server is inconsistent or incomplete.
CO_E_IIDREG_INCONSISTENT
0x80004020
The registration information for this interface is inconsistent or incomplete.
CO_E_NOT_SUPPORTED
0x80004021
The operation attempted is not supported.
CO_E_RELOAD_DLL
0x80004022
A dll must be loaded.