COM Error Codes (STG, RPC)

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
STG_E_INVALIDFUNCTION0x80030001Unable to perform requested operation.
STG_E_FILENOTFOUND0x80030002could not be found.
STG_E_PATHNOTFOUND0x80030003The path %1 could not be found.
STG_E_TOOMANYOPENFILES0x80030004There are insufficient resources to open another file.
STG_E_ACCESSDENIED0x80030005Access Denied.
STG_E_INVALIDHANDLE0x80030006Attempted an operation on an invalid object.
STG_E_INSUFFICIENTMEMORY0x80030008There is insufficient memory available to complete operation.
STG_E_INVALIDPOINTER0x80030009Invalid pointer error.
STG_E_NOMOREFILES0x80030012There are no more entries to return.
STG_E_DISKISWRITEPROTECTED0x80030013Disk is write-protected.
STG_E_SEEKERROR0x80030019An error occurred during a seek operation.
STG_E_WRITEFAULT0x8003001DA disk error occurred during a write operation.
STG_E_READFAULT0x8003001EA disk error occurred during a read operation.
STG_E_SHAREVIOLATION0x80030020A share violation has occurred.
STG_E_LOCKVIOLATION0x80030021A lock violation has occurred.
STG_E_FILEALREADYEXISTS0x80030050already exists.
STG_E_INVALIDPARAMETER0x80030057Invalid parameter error.
STG_E_MEDIUMFULL0x80030070There is insufficient disk space to complete operation.
STG_E_PROPSETMISMATCHED0x800300F0Illegal write of non-simple property to simple property set.
STG_E_ABNORMALAPIEXIT0x800300FAAn API call exited abnormally.
STG_E_INVALIDHEADER0x800300FBThe file %1 is not a valid compound file.
STG_E_INVALIDNAME0x800300FCThe name %1 is not valid.
STG_E_UNKNOWN0x800300FDAn unexpected error occurred.
STG_E_UNIMPLEMENTEDFUNCTION0x800300FEThat function is not implemented.
STG_E_INVALIDFLAG0x800300FFInvalid flag error.
STG_E_INUSE0x80030100Attempted to use an object that is busy.
STG_E_NOTCURRENT0x80030101The storage has been changed since the last commit.
STG_E_REVERTED0x80030102Attempted to use an object that has ceased to exist.
STG_E_CANTSAVE0x80030103Can't save.
STG_E_OLDFORMAT0x80030104The compound file %1 was produced with an incompatible version of storage.
STG_E_OLDDLL0x80030105The compound file %1 was produced with a newer version of storage.
STG_E_SHAREREQUIRED0x80030106Share.exe or equivalent is required for operation.
STG_E_NOTFILEBASEDSTORAGE0x80030107Illegal operation called on non-file based storage.
STG_E_EXTANTMARSHALLINGS0x80030108Illegal operation called on object with extant marshallings.
STG_E_DOCFILECORRUPT0x80030109The docfile has been corrupted.
STG_E_BADBASEADDRESS0x80030110OLE32.DLL has been loaded at the wrong address.
STG_E_DOCFILETOOLARGE0x80030111The compound file is too large for the current implementation
STG_E_NOTSIMPLEFORMAT0x80030112The compound file was not created with the STGM_SIMPLE flag
STG_E_INCOMPLETE0x80030201The file download was aborted abnormally. The file is incomplete.
STG_E_TERMINATED0x80030202The file download has been terminated.
STG_S_CONVERTED0x00030200The underlying file was converted to compound file format.
STG_S_BLOCK0x00030201The storage operation should block until more data is available.
STG_S_RETRYNOW0x00030202The storage operation should retry immediately.
STG_S_MONITORING0x00030203The notified event sink will not influence the storage operation.
STG_S_MULTIPLEOPENS0x00030204Multiple opens prevent consolidated. (commit succeeded).
STG_S_CONSOLIDATIONFAILED0x00030205Consolidation of the storage file failed. (commit succeeded).
STG_S_CANNOTCONSOLIDATE0x00030206Consolidation of the storage file is inappropriate. (commit succeeded).
STG_E_STATUS_COPY_PROTECTION_FAILURE0x80030305Generic Copy Protection Error.
STG_E_CSS_AUTHENTICATION_FAILURE0x80030306Copy Protection Error - DVD CSS Authentication failed.
STG_E_CSS_KEY_NOT_PRESENT0x80030307Copy Protection Error - The given sector does not have a valid CSS key.
STG_E_CSS_KEY_NOT_ESTABLISHED0x80030308Copy Protection Error - DVD session key not established.
STG_E_CSS_SCRAMBLED_SECTOR0x80030309Copy Protection Error - The read failed because the sector is encrypted.
STG_E_CSS_REGION_MISMATCH0x8003030ACopy Protection Error - The current DVD's region does not correspond to the region setting of the drive.
STG_E_RESETS_EXHAUSTED0x8003030BCopy Protection Error - The drive's region setting may be permanent or the number of user resets has been exhausted.
RPC_E_CALL_REJECTED0x80010001Call was rejected by callee.
RPC_E_CALL_CANCELED0x80010002Call was canceled by the message filter.
RPC_E_CANTPOST_INSENDCALL0x80010003The caller is dispatching an intertask SendMessage call and cannot call out via PostMessage.
RPC_E_CANTCALLOUT_INASYNCCALL0x80010004The caller is dispatching an asynchronous call and cannot make an outgoing call on behalf of this call.
RPC_E_CANTCALLOUT_INEXTERNALCALL0x80010005It is illegal to call out while inside message filter.
RPC_E_CONNECTION_TERMINATED0x80010006The connection terminated or is in a bogus state and cannot be used any more. Other connections are still valid.
RPC_E_SERVER_DIED0x80010007The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call may have executed.
RPC_E_CLIENT_DIED0x80010008The caller (client) disappeared while the callee (server) was processing a call.
RPC_E_INVALID_DATAPACKET0x80010009The data packet with the marshalled parameter data is incorrect.
RPC_E_CANTTRANSMIT_CALL0x8001000AThe call was not transmitted properly; the message queue was full and was not emptied after yielding.
RPC_E_CLIENT_CANTMARSHAL_DATA0x8001000BThe client (caller) cannot marshal the parameter data - low memory, etc.
RPC_E_CLIENT_CANTUNMARSHAL_DATA0x8001000CThe client (caller) cannot unmarshal the return data - low memory, etc.
RPC_E_SERVER_CANTMARSHAL_DATA0x8001000DThe server (callee) cannot marshal the return data - low memory, etc.
RPC_E_SERVER_CANTUNMARSHAL_DATA0x8001000EThe server (callee) cannot unmarshal the parameter data - low memory, etc.
RPC_E_INVALID_DATA0x8001000FReceived data is invalid; could be server or client data.
RPC_E_INVALID_PARAMETER0x80010010A particular parameter is invalid and cannot be (un)marshalled.
RPC_E_CANTCALLOUT_AGAIN0x80010011There is no second outgoing call on same channel in DDE conversation.
RPC_E_SERVER_DIED_DNE0x80010012The callee (server [not server application]) is not available and disappeared; all connections are invalid. The call did not execute.
RPC_E_SYS_CALL_FAILED0x80010100System call failed.
RPC_E_OUT_OF_RESOURCES0x80010101Could not allocate some required resource (memory, events, ...)
RPC_E_ATTEMPTED_MULTITHREAD0x80010102Attempted to make calls on more than one thread in single threaded mode.
RPC_E_NOT_REGISTERED0x80010103The requested interface is not registered on the server object.
RPC_E_FAULT0x80010104RPC could not call the server or could not return the results of calling the server.
RPC_E_SERVERFAULT0x80010105The server threw an exception.
RPC_E_CHANGED_MODE0x80010106Cannot change thread mode after it is set.
RPC_E_INVALIDMETHOD0x80010107The method called does not exist on the server.
RPC_E_DISCONNECTED0x80010108The object invoked has disconnected from its clients.
RPC_E_RETRY0x80010109The object invoked chose not to process the call now. Try again later.
RPC_E_SERVERCALL_RETRYLATER0x8001010AThe message filter indicated that the application is busy.
RPC_E_SERVERCALL_REJECTED0x8001010BThe message filter rejected the call.
RPC_E_INVALID_CALLDATA0x8001010CA call control interfaces was called with invalid data.
RPC_E_CANTCALLOUT_ININPUTSYNCCALL0x8001010DAn outgoing call cannot be made since the application is dispatching an input-synchronous call.
RPC_E_WRONG_THREAD0x8001010EThe application called an interface that was marshalled for a different thread.
RPC_E_THREAD_NOT_INIT0x8001010FCoInitialize has not been called on the current thread.
RPC_E_VERSION_MISMATCH0x80010110The version of OLE on the client and server machines does not match.
RPC_E_INVALID_HEADER0x80010111OLE received a packet with an invalid header.
RPC_E_INVALID_EXTENSION0x80010112OLE received a packet with an invalid extension.
RPC_E_INVALID_IPID0x80010113The requested object or interface does not exist.
RPC_E_INVALID_OBJECT0x80010114The requested object does not exist.
RPC_S_CALLPENDING0x80010115OLE has sent a request and is waiting for a reply.
RPC_S_WAITONTIMER0x80010116OLE is waiting before retrying a request.
RPC_E_CALL_COMPLETE0x80010117Call context cannot be accessed after call completed.
RPC_E_UNSECURE_CALL0x80010118Impersonate on unsecure calls is not supported.
RPC_E_TOO_LATE0x80010119Security must be initialized before any interfaces are marshalled or unmarshalled. It cannot be changed once initialized.
RPC_E_NO_GOOD_SECURITY_PACKAGES0x8001011ANo security packages are installed on this machine or the user is not logged on or there are no compatible security packages between the client and server.
RPC_E_ACCESS_DENIED0x8001011BAccess is denied.
RPC_E_REMOTE_DISABLED0x8001011CRemote calls are not allowed for this process.
RPC_E_INVALID_OBJREF0x8001011DThe marshaled interface data packet (OBJREF) has an invalid or unknown format.
RPC_E_NO_CONTEXT0x8001011ENo context is associated with this call. This happens for some custom marshalled calls and on the client side of the call.
RPC_E_TIMEOUT0x8001011FThis operation returned because the timeout period expired.
RPC_E_NO_SYNC0x80010120There are no synchronize objects to wait on.
RPC_E_FULLSIC_REQUIRED0x80010121Full subject issuer chain SSL principal name expected from the server.
RPC_E_INVALID_STD_NAME0x80010122Principal name is not a valid MSSTD name.
CO_E_FAILEDTOIMPERSONATE0x80010123Unable to impersonate DCOM client
CO_E_FAILEDTOGETSECCTX0x80010124Unable to obtain server's security context
CO_E_FAILEDTOOPENTHREADTOKEN0x80010125Unable to open the access token of the current thread
CO_E_FAILEDTOGETTOKENINFO0x80010126Unable to obtain user info from an access token
CO_E_TRUSTEEDOESNTMATCHCLIENT0x80010127The client who called IAccessControl::IsAccessPermitted was not the trustee provided to the method
CO_E_FAILEDTOQUERYCLIENTBLANKET0x80010128Unable to obtain the client's security blanket
CO_E_FAILEDTOSETDACL0x80010129Unable to set a discretionary ACL into a security descriptor
CO_E_ACCESSCHECKFAILED0x8001012AThe system function, AccessCheck, returned false
CO_E_NETACCESSAPIFAILED0x8001012BEither NetAccessDel or NetAccessAdd returned an error code.
CO_E_WRONGTRUSTEENAMESYNTAX0x8001012COne of the trustee strings provided by the user did not conform to the <Domain><Name> syntax and it was not the "*" string
CO_E_INVALIDSID0x8001012DOne of the security identifiers provided by the user was invalid
CO_E_CONVERSIONFAILED0x8001012EUnable to convert a wide character trustee string to a multibyte trustee string
CO_E_NOMATCHINGSIDFOUND0x8001012FUnable to find a security identifier that corresponds to a trustee string provided by the user
CO_E_LOOKUPACCSIDFAILED0x80010130The system function, LookupAccountSID, failed
CO_E_NOMATCHINGNAMEFOUND0x80010131Unable to find a trustee name that corresponds to a security identifier provided by the user
CO_E_LOOKUPACCNAMEFAILED0x80010132The system function, LookupAccountName, failed
CO_E_SETSERLHNDLFAILED0x80010133Unable to set or reset a serialization handle
CO_E_FAILEDTOGETWINDIR0x80010134Unable to obtain the Windows directory
CO_E_PATHTOOLONG0x80010135Path too long
CO_E_FAILEDTOGENUUID0x80010136Unable to generate a uuid.
CO_E_FAILEDTOCREATEFILE0x80010137Unable to create file
CO_E_FAILEDTOCLOSEHANDLE0x80010138Unable to close a serialization handle or a file handle.
CO_E_EXCEEDSYSACLLIMIT0x80010139The number of ACEs in an ACL exceeds the system limit.
CO_E_ACESINWRONGORDER0x8001013ANot all the DENY_ACCESS ACEs are arranged in front of the GRANT_ACCESS ACEs in the stream.
CO_E_INCOMPATIBLESTREAMVERSION0x8001013BThe version of ACL format in the stream is not supported by this implementation of IAccessControl
CO_E_FAILEDTOOPENPROCESSTOKEN0x8001013CUnable to open the access token of the server process
CO_E_DECODEFAILED0x8001013DUnable to decode the ACL in the stream provided by the user
CO_E_ACNOTINITIALIZED0x8001013FThe COM IAccessControl object is not initialized
CO_E_CANCEL_DISABLED0x80010140Call Cancellation is disabled
RPC_E_UNEXPECTED0x8001FFFFAn internal error occurred.
137 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.