COM Error Codes (Generic)

Header: winerror.h

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.

SymbolicCodeDescription
E_UNEXPECTED0x8000FFFFCatastrophic failure
E_NOTIMPL0x80004001Not implemented
E_OUTOFMEMORY0x8007000ERan out of memory
E_INVALIDARG0x80070057One or more arguments are invalid
E_NOINTERFACE0x80004002No such interface supported
E_POINTER0x80004003Invalid pointer
E_HANDLE0x80070006Invalid handle
E_ABORT0x80004004Operation aborted
E_FAIL0x80004005Unspecified error
E_ACCESSDENIED0x80070005General access denied error
E_PENDING0x8000000AThe data necessary to complete this operation is not yet available.
E_BOUNDS0x8000000BThe operation attempted to access data outside the valid range
E_CHANGED_STATE0x8000000CA concurrent or interleaved operation changed the state of the object, invalidating this operation.
E_ILLEGAL_STATE_CHANGE0x8000000DAn illegal state change was requested.
E_ILLEGAL_METHOD_CALL0x8000000EA method was called at an unexpected time.
RO_E_METADATA_NAME_NOT_FOUND0x8000000FTypename or Namespace was not found in metadata file.
RO_E_METADATA_NAME_IS_NAMESPACE0x80000010Name is an existing namespace rather than a typename.
RO_E_METADATA_INVALID_TYPE_FORMAT0x80000011Typename has an invalid format.
RO_E_INVALID_METADATA_FILE0x80000012Metadata file is invalid or corrupted.
RO_E_CLOSED0x80000013The object has been closed.
RO_E_EXCLUSIVE_WRITE0x80000014Only one thread may access the object during a write operation.
RO_E_CHANGE_NOTIFICATION_IN_PROGRESS0x80000015Operation is prohibited during change notification.
RO_E_ERROR_STRING_NOT_FOUND0x80000016The text associated with this error code could not be found.
E_STRING_NOT_NULL_TERMINATED0x80000017String not null terminated.
E_ILLEGAL_DELEGATE_ASSIGNMENT0x80000018A delegate was assigned when not allowed.
E_ASYNC_OPERATION_NOT_STARTED0x80000019An async operation was not properly started.
E_APPLICATION_EXITING0x8000001AThe application is exiting and cannot service this request.
E_APPLICATION_VIEW_EXITING0x8000001BThe application view is exiting and cannot service this request.
RO_E_MUST_BE_AGILE0x8000001CThe object must support the IAgileObject interface.
RO_E_UNSUPPORTED_FROM_MTA0x8000001DActivating a single-threaded class from MTA is not supported.
RO_E_COMMITTED0x8000001EThe object has been committed.
CO_E_INIT_TLS0x80004006Thread local storage failure
CO_E_INIT_SHARED_ALLOCATOR0x80004007Get shared memory allocator failure
CO_E_INIT_MEMORY_ALLOCATOR0x80004008Get memory allocator failure
CO_E_INIT_CLASS_CACHE0x80004009Unable to initialize class cache
CO_E_INIT_RPC_CHANNEL0x8000400AUnable to initialize RPC services
CO_E_INIT_TLS_SET_CHANNEL_CONTROL0x8000400BCannot set thread local storage channel control
CO_E_INIT_TLS_CHANNEL_CONTROL0x8000400CCould not allocate thread local storage channel control
CO_E_INIT_UNACCEPTED_USER_ALLOCATOR0x8000400DThe user supplied memory allocator is unacceptable
CO_E_INIT_SCM_MUTEX_EXISTS0x8000400EThe OLE service mutex already exists
CO_E_INIT_SCM_FILE_MAPPING_EXISTS0x8000400FThe OLE service file mapping already exists
CO_E_INIT_SCM_MAP_VIEW_OF_FILE0x80004010Unable to map view of file for OLE service
CO_E_INIT_SCM_EXEC_FAILURE0x80004011Failure attempting to launch OLE service
CO_E_INIT_ONLY_SINGLE_THREADED0x80004012There was an attempt to call CoInitialize a second time while single threaded
CO_E_CANT_REMOTE0x80004013A Remote activation was necessary but was not allowed
CO_E_BAD_SERVER_NAME0x80004014A Remote activation was necessary but the server name provided was invalid
CO_E_WRONG_SERVER_IDENTITY0x80004015The class is configured to run as a security id different from the caller
CO_E_OLE1DDE_DISABLED0x80004016Use of Ole1 services requiring DDE windows is disabled
CO_E_RUNAS_SYNTAX0x80004017A RunAs specification must be <domain name><user name> or simply <user name>.
CO_E_CREATEPROCESS_FAILURE0x80004018The server process could not be started. The pathname may be incorrect.
CO_E_RUNAS_CREATEPROCESS_FAILURE0x80004019The server process could not be started as the configured identity. The pathname may be incorrect or unavailable.
CO_E_RUNAS_LOGON_FAILURE0x8000401AThe server process could not be started because the configured identity is incorrect. Check the user name and password.
CO_E_LAUNCH_PERMSSION_DENIED0x8000401BThe client is not allowed to launch this server.
CO_E_START_SERVICE_FAILURE0x8000401CThe service providing this server could not be started.
CO_E_REMOTE_COMMUNICATION_FAILURE0x8000401DThis computer was unable to communicate with the computer providing the server.
CO_E_SERVER_START_TIMEOUT0x8000401EThe server did not respond after being launched.
CO_E_CLSREG_INCONSISTENT0x8000401FThe registration information for this server is inconsistent or incomplete.
CO_E_IIDREG_INCONSISTENT0x80004020The registration information for this interface is inconsistent or incomplete.
CO_E_NOT_SUPPORTED0x80004021The operation attempted is not supported.
CO_E_RELOAD_DLL0x80004022A dll must be loaded.
CO_E_MSI_ERROR0x80004023A Microsoft Software Installer error was encountered.
CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT0x80004024The specified activation could not occur in the client context as specified.
CO_E_SERVER_PAUSED0x80004025Activations on the server are paused.
CO_E_SERVER_NOT_PAUSED0x80004026Activations on the server are not paused.
CO_E_CLASS_DISABLED0x80004027The component or application containing the component has been disabled.
CO_E_CLRNOTAVAILABLE0x80004028The common language runtime is not available
CO_E_ASYNC_WORK_REJECTED0x80004029The thread-pool rejected the submitted asynchronous work.
CO_E_SERVER_INIT_TIMEOUT0x8000402AThe server started, but did not finish initializing in a timely fashion.
CO_E_NO_SECCTX_IN_ACTIVATE0x8000402BUnable to complete the call since there is no COM+ security context inside IObjectControl.Activate.
CO_E_TRACKER_CONFIG0x80004030The provided tracker configuration is invalid
CO_E_THREADPOOL_CONFIG0x80004031The provided thread pool configuration is invalid
CO_E_SXS_CONFIG0x80004032The provided side-by-side configuration is invalid
CO_E_MALFORMED_SPN0x80004033The server principal name (SPN) obtained during security negotiation is malformed.
OLE_E_OLEVERB0x80040000Invalid OLEVERB structure
OLE_E_ADVF0x80040001Invalid advise flags
OLE_E_ENUM_NOMORE0x80040002Can't enumerate any more, because the associated data is missing
OLE_E_ADVISENOTSUPPORTED0x80040003This implementation doesn't take advises
OLE_E_NOCONNECTION0x80040004There is no connection for this connection ID
OLE_E_NOTRUNNING0x80040005Need to run the object to perform this operation
OLE_E_NOCACHE0x80040006There is no cache to operate on
OLE_E_BLANK0x80040007Uninitialized object
OLE_E_CLASSDIFF0x80040008Linked object's source class has changed
OLE_E_CANT_GETMONIKER0x80040009Not able to get the moniker of the object
OLE_E_CANT_BINDTOSOURCE0x8004000ANot able to bind to the source
OLE_E_STATIC0x8004000BObject is static; operation not allowed
OLE_E_PROMPTSAVECANCELLED0x8004000CUser canceled out of save dialog
OLE_E_INVALIDRECT0x8004000DInvalid rectangle
OLE_E_WRONGCOMPOBJ0x8004000Ecompobj.dll is too old for the ole2.dll initialized
OLE_E_INVALIDHWND0x8004000FInvalid window handle
OLE_E_NOT_INPLACEACTIVE0x80040010Object is not in any of the inplace active states
OLE_E_CANTCONVERT0x80040011Not able to convert object
OLE_E_NOSTORAGE0x80040012Not able to perform the operation because object is not given storage yet
DV_E_FORMATETC0x80040064Invalid FORMATETC structure
DV_E_DVTARGETDEVICE0x80040065Invalid DVTARGETDEVICE structure
DV_E_STGMEDIUM0x80040066Invalid STDGMEDIUM structure
DV_E_STATDATA0x80040067Invalid STATDATA structure
DV_E_LINDEX0x80040068Invalid lindex
DV_E_TYMED0x80040069Invalid tymed
DV_E_CLIPFORMAT0x8004006AInvalid clipboard format
DV_E_DVASPECT0x8004006BInvalid aspect(s)
DV_E_DVTARGETDEVICE_SIZE0x8004006CtdSize parameter of the DVTARGETDEVICE structure is invalid
DV_E_NOIVIEWOBJECT0x8004006DObject doesn't support IViewObject interface
DRAGDROP_E_NOTREGISTERED0x80040100Trying to revoke a drop target that has not been registered
DRAGDROP_E_ALREADYREGISTERED0x80040101This window has already been registered as a drop target
DRAGDROP_E_INVALIDHWND0x80040102Invalid window handle
CLASS_E_NOAGGREGATION0x80040110Class does not support aggregation (or class object is remote)
CLASS_E_CLASSNOTAVAILABLE0x80040111ClassFactory cannot supply requested class
CLASS_E_NOTLICENSED0x80040112Class is not licensed for use
VIEW_E_DRAW0x80040140Error drawing view
REGDB_E_READREGDB0x80040150Could not read key from registry
REGDB_E_WRITEREGDB0x80040151Could not write key to registry
REGDB_E_KEYMISSING0x80040152Could not find the key in the registry
REGDB_E_INVALIDVALUE0x80040153Invalid value for registry
REGDB_E_CLASSNOTREG0x80040154Class not registered
REGDB_E_IIDNOTREG0x80040155Interface not registered
REGDB_E_BADTHREADINGMODEL0x80040156Threading model entry is not valid
CAT_E_CATIDNOEXIST0x80040160CATID does not exist
CAT_E_NODESCRIPTION0x80040161Description not found
CS_E_PACKAGE_NOTFOUND0x80040164No package in the software installation data in the Active Directory meets this criteria.
CS_E_NOT_DELETABLE0x80040165Deleting this will break the referential integrity of the software installation data in the Active Directory.
CS_E_CLASS_NOTFOUND0x80040166The CLSID was not found in the software installation data in the Active Directory.
CS_E_INVALID_VERSION0x80040167The software installation data in the Active Directory is corrupt.
CS_E_NO_CLASSSTORE0x80040168There is no software installation data in the Active Directory.
CS_E_OBJECT_NOTFOUND0x80040169There is no software installation data object in the Active Directory.
CS_E_OBJECT_ALREADY_EXISTS0x8004016AThe software installation data object in the Active Directory already exists.
CS_E_INVALID_PATH0x8004016BThe path to the software installation data in the Active Directory is not correct.
CS_E_NETWORK_ERROR0x8004016CA network error interrupted the operation.
CS_E_ADMIN_LIMIT_EXCEEDED0x8004016DThe size of this object exceeds the maximum size set by the Administrator.
CS_E_SCHEMA_MISMATCH0x8004016EThe schema for the software installation data in the Active Directory does not match the required schema.
CS_E_INTERNAL_ERROR0x8004016FAn error occurred in the software installation data in the Active Directory.
CACHE_E_NOCACHE_UPDATED0x80040170Cache not updated
OLEOBJ_E_NOVERBS0x80040180No verbs for OLE object
OLEOBJ_E_INVALIDVERB0x80040181Invalid verb for OLE object
INPLACE_E_NOTUNDOABLE0x800401A0Undo is not available
INPLACE_E_NOTOOLSPACE0x800401A1Space for tools is not available
CONVERT10_E_OLESTREAM_GET0x800401C0OLESTREAM Get method failed
CONVERT10_E_OLESTREAM_PUT0x800401C1OLESTREAM Put method failed
CONVERT10_E_OLESTREAM_FMT0x800401C2Contents of the OLESTREAM not in correct format
CONVERT10_E_OLESTREAM_BITMAP_TO_DIB0x800401C3There was an error in a Windows GDI call while converting the bitmap to a DIB
CONVERT10_E_STG_FMT0x800401C4Contents of the IStorage not in correct format
CONVERT10_E_STG_NO_STD_STREAM0x800401C5Contents of IStorage is missing one of the standard streams
CONVERT10_E_STG_DIB_TO_BITMAP0x800401C6There was an error in a Windows GDI call while converting the DIB to a bitmap.
CLIPBRD_E_CANT_OPEN0x800401D0OpenClipboard Failed
CLIPBRD_E_CANT_EMPTY0x800401D1EmptyClipboard Failed
CLIPBRD_E_CANT_SET0x800401D2SetClipboard Failed
CLIPBRD_E_BAD_DATA0x800401D3Data on clipboard is invalid
CLIPBRD_E_CANT_CLOSE0x800401D4CloseClipboard Failed
MK_E_CONNECTMANUALLY0x800401E0Moniker needs to be connected manually
MK_E_EXCEEDEDDEADLINE0x800401E1Operation exceeded deadline
MK_E_NEEDGENERIC0x800401E2Moniker needs to be generic
MK_E_UNAVAILABLE0x800401E3Operation unavailable
MK_E_SYNTAX0x800401E4Invalid syntax
MK_E_NOOBJECT0x800401E5No object for moniker
MK_E_INVALIDEXTENSION0x800401E6Bad extension for file
MK_E_INTERMEDIATEINTERFACENOTSUPPORTED0x800401E7Intermediate operation failed
MK_E_NOTBINDABLE0x800401E8Moniker is not bindable
MK_E_NOTBOUND0x800401E9Moniker is not bound
MK_E_CANTOPENFILE0x800401EAMoniker cannot open file
MK_E_MUSTBOTHERUSER0x800401EBUser input required for operation to succeed
MK_E_NOINVERSE0x800401ECMoniker class has no inverse
MK_E_NOSTORAGE0x800401EDMoniker does not refer to storage
MK_E_NOPREFIX0x800401EENo common prefix
MK_E_ENUMERATION_FAILED0x800401EFMoniker could not be enumerated
CO_E_NOTINITIALIZED0x800401F0CoInitialize has not been called.
CO_E_ALREADYINITIALIZED0x800401F1CoInitialize has already been called.
CO_E_CANTDETERMINECLASS0x800401F2Class of object cannot be determined
CO_E_CLASSSTRING0x800401F3Invalid class string
CO_E_IIDSTRING0x800401F4Invalid interface string
CO_E_APPNOTFOUND0x800401F5Application not found
CO_E_APPSINGLEUSE0x800401F6Application cannot be run more than once
CO_E_ERRORINAPP0x800401F7Some error in application program
CO_E_DLLNOTFOUND0x800401F8DLL for class not found
CO_E_ERRORINDLL0x800401F9Error in the DLL
CO_E_WRONGOSFORAPP0x800401FAWrong operating system or operating system version for the application
CO_E_OBJNOTREG0x800401FBObject is not registered
CO_E_OBJISREG0x800401FCObject is already registered
CO_E_OBJNOTCONNECTED0x800401FDObject is not connected to server
CO_E_APPDIDNTREG0x800401FEApplication was launched but it didn't register a class factory
CO_E_RELEASED0x800401FFObject has been released
EVENT_S_SOME_SUBSCRIBERS_FAILED0x00040200An event was able to invoke some but not all of the subscribers
EVENT_E_ALL_SUBSCRIBERS_FAILED0x80040201An event was unable to invoke any of the subscribers
EVENT_S_NOSUBSCRIBERS0x00040202An event was delivered but there were no subscribers
EVENT_E_QUERYSYNTAX0x80040203A syntax error occurred trying to evaluate a query string
EVENT_E_QUERYFIELD0x80040204An invalid field name was used in a query string
EVENT_E_INTERNALEXCEPTION0x80040205An unexpected exception was raised
EVENT_E_INTERNALERROR0x80040206An unexpected internal error was detected
EVENT_E_INVALID_PER_USER_SID0x80040207The owner SID on a per-user subscription doesn't exist
EVENT_E_USER_EXCEPTION0x80040208A user-supplied component or subscriber raised an exception
EVENT_E_TOO_MANY_METHODS0x80040209An interface has too many methods to fire events from
EVENT_E_MISSING_EVENTCLASS0x8004020AA subscription cannot be stored unless its event class already exists
EVENT_E_NOT_ALL_REMOVED0x8004020BNot all the objects requested could be removed
EVENT_E_COMPLUS_NOT_INSTALLED0x8004020CCOM+ is required for this operation, but is not installed
EVENT_E_CANT_MODIFY_OR_DELETE_UNCONFIGURED_OBJECT0x8004020DCannot modify or delete an object that was not added using the COM+ Admin SDK
EVENT_E_CANT_MODIFY_OR_DELETE_CONFIGURED_OBJECT0x8004020ECannot modify or delete an object that was added using the COM+ Admin SDK
EVENT_E_INVALID_EVENT_CLASS_PARTITION0x8004020FThe event class for this subscription is in an invalid partition
EVENT_E_PER_USER_SID_NOT_LOGGED_ON0x80040210The owner of the PerUser subscription is not logged on to the system specified
196 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.