COM Error Codes (UI, Audio, DirectX, Codec)

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.

UI_E_CREATE_FAILED

0x802A0001

The object could not be created.

UI_E_SHUTDOWN_CALLED

0x802A0002

Shutdown was already called on this object or the object that owns it.

UI_E_ILLEGAL_REENTRANCY

0x802A0003

This method cannot be called during this type of callback.

UI_E_OBJECT_SEALED

0x802A0004

This object has been sealed, so this change is no longer allowed.

UI_E_VALUE_NOT_SET

0x802A0005

The requested value was never set.

UI_E_VALUE_NOT_DETERMINED

0x802A0006

The requested value cannot be determined.

UI_E_INVALID_OUTPUT

0x802A0007

A callback returned an invalid output parameter.

UI_E_BOOLEAN_EXPECTED

0x802A0008

A callback returned a success code other than S_OK or S_FALSE.

UI_E_DIFFERENT_OWNER

0x802A0009

A parameter that should be owned by this object is owned by a different object.

UI_E_AMBIGUOUS_MATCH

0x802A000A

More than one item matched the search criteria.

UI_E_FP_OVERFLOW

0x802A000B

A floating-point overflow occurred.

UI_E_WRONG_THREAD

0x802A000C

This method can only be called from the thread that created the object.

UI_E_STORYBOARD_ACTIVE

0x802A0101

The storyboard is currently in the schedule.

UI_E_STORYBOARD_NOT_PLAYING

0x802A0102

The storyboard is not playing.

UI_E_START_KEYFRAME_AFTER_END

0x802A0103

The start keyframe might occur after the end keyframe.

UI_E_END_KEYFRAME_NOT_DETERMINED

0x802A0104

It might not be possible to determine the end keyframe time when the start keyframe is reached.

UI_E_LOOPS_OVERLAP

0x802A0105

Two repeated portions of a storyboard might overlap.

UI_E_TRANSITION_ALREADY_USED

0x802A0106

The transition has already been added to a storyboard.

UI_E_TRANSITION_NOT_IN_STORYBOARD

0x802A0107

The transition has not been added to a storyboard.

UI_E_TRANSITION_ECLIPSED

0x802A0108

The transition might eclipse the beginning of another transition in the storyboard.

UI_E_TIME_BEFORE_LAST_UPDATE

0x802A0109

The given time is earlier than the time passed to the last update.

UI_E_TIMER_CLIENT_ALREADY_CONNECTED

0x802A010A

This client is already connected to a timer.

UI_E_INVALID_DIMENSION

0x802A010B

The passed dimension is invalid or does not match the object's dimension.

UI_E_PRIMITIVE_OUT_OF_BOUNDS

0x802A010C

The added primitive begins at or beyond the duration of the interpolator.

UI_E_WINDOW_CLOSED

0x802A0201

The operation cannot be completed because the window is being closed.

E_AUDIO_ENGINE_NODE_NOT_FOUND

0x80660001

PortCls could not find an audio engine node exposed by a miniport driver claiming support for IMiniportAudioEngineNode.

DXGI_STATUS_OCCLUDED

0x087A0001

The Present operation was invisible to the user.

DXGI_STATUS_CLIPPED

0x087A0002

The Present operation was partially invisible to the user.

DXGI_STATUS_NO_REDIRECTION

0x087A0004

The driver is requesting that the DXGI runtime not use shared resources to communicate with the Desktop Window Manager.

DXGI_STATUS_NO_DESKTOP_ACCESS

0x087A0005

The Present operation was not visible because the Windows session has switched to another desktop (for example, ctrl-alt-del).

DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE

0x087A0006

The Present operation was not visible because the target monitor was being used for some other purpose.

DXGI_STATUS_MODE_CHANGED

0x087A0007

The Present operation was not visible because the display mode changed. DXGI will have re-attempted the presentation.

DXGI_STATUS_MODE_CHANGE_IN_PROGRESS

0x087A0008

The Present operation was not visible because another Direct3D device was attempting to take fullscreen mode at the time.

DXGI_ERROR_INVALID_CALL

0x887A0001

The application made a call that is invalid. Either the parameters of the call or the state of some object was incorrect. Enable the D3D debug layer in order to see details via debug messages.

DXGI_ERROR_NOT_FOUND

0x887A0002

The object was not found. If calling IDXGIFactory::EnumAdaptes, there is no adapter with the specified ordinal.

DXGI_ERROR_MORE_DATA

0x887A0003

The caller did not supply a sufficiently large buffer.

DXGI_ERROR_UNSUPPORTED

0x887A0004

The specified device interface or feature level is not supported on this system.

DXGI_ERROR_DEVICE_REMOVED

0x887A0005

The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.

DXGI_ERROR_DEVICE_HUNG

0x887A0006

The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application.

DXGI_ERROR_DEVICE_RESET

0x887A0007

The GPU will not respond to more commands, most likely because some other application submitted invalid commands. The calling application should re-create the device and continue.

DXGI_ERROR_WAS_STILL_DRAWING

0x887A000A

The GPU was busy at the moment when the call was made, and the call was neither executed nor scheduled.

DXGI_ERROR_FRAME_STATISTICS_DISJOINT

0x887A000B

An event (such as power cycle) interrupted the gathering of presentation statistics. Any previous statistics should be considered invalid.

DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE

0x887A000C

Fullscreen mode could not be achieved because the specified output was already in use.

DXGI_ERROR_DRIVER_INTERNAL_ERROR

0x887A0020

An internal issue prevented the driver from carrying out the specified operation. The driver's state is probably suspect, and the application should not continue.

DXGI_ERROR_NONEXCLUSIVE

0x887A0021

A global counter resource was in use, and the specified counter cannot be used by this Direct3D device at this time.

DXGI_ERROR_NOT_CURRENTLY_AVAILABLE

0x887A0022

A resource is not available at the time of the call, but may become available later.

DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED

0x887A0023

The application's remote device has been removed due to session disconnect or network disconnect. The application should call IDXGIFactory1::IsCurrent to find out when the remote device becomes available again.

DXGI_ERROR_REMOTE_OUTOFMEMORY

0x887A0024

The device has been removed during a remote session because the remote computer ran out of memory.

DXGI_ERROR_ACCESS_LOST

0x887A0026

The keyed mutex was abandoned.

DXGI_ERROR_WAIT_TIMEOUT

0x887A0027

The timeout value has elapsed and the resource is not yet available.

DXGI_ERROR_SESSION_DISCONNECTED

0x887A0028

The output duplication has been turned off because the Windows session ended or was disconnected. This happens when a remote user disconnects, or when "switch user" is used locally.

DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE

0x887A0029

The DXGI outuput (monitor) to which the swapchain content was restricted, has been disconnected or changed.

DXGI_ERROR_CANNOT_PROTECT_CONTENT

0x887A002A

DXGI is unable to provide content protection on the swapchain. This is typically caused by an older driver, or by the application using a swapchain that is incompatible with content protection.

DXGI_ERROR_ACCESS_DENIED

0x887A002B

The application is trying to use a resource to which it does not have the required access privileges. This is most commonly caused by writing to a shared resource with read-only access.

DXGI_STATUS_UNOCCLUDED

0x087A0009

The swapchain has become unoccluded.

DXGI_STATUS_DDA_WAS_STILL_DRAWING

0x087A000A

The adapter did not have access to the required resources to complete the Desktop Duplication Present() call, the Present() call needs to be made again.

DXGI_ERROR_MODE_CHANGE_IN_PROGRESS

0x887A0025

An on-going mode change prevented completion of the call. The call may succeed if attempted later.

DXGI_DDI_ERR_WASSTILLDRAWING

0x887B0001

The GPU was busy when the operation was requested.

DXGI_DDI_ERR_UNSUPPORTED

0x887B0002

The driver has rejected the creation of this resource.

DXGI_DDI_ERR_NONEXCLUSIVE

0x887B0003

The GPU counter was in use by another process or d3d device when application requested access to it.

D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS

0x88790001

The application has exceeded the maximum number of unique state objects per Direct3D device. The limit is 4096 for feature levels up to 11.1.

D3D10_ERROR_FILE_NOT_FOUND

0x88790002

The specified file was not found.

D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS

0x887C0001

The application has exceeded the maximum number of unique state objects per Direct3D device. The limit is 4096 for feature levels up to 11.1.

D3D11_ERROR_FILE_NOT_FOUND

0x887C0002

The specified file was not found.

D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS

0x887C0003

The application has exceeded the maximum number of unique view objects per Direct3D device. The limit is 2^20 for feature levels up to 11.1.

D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD

0x887C0004

The application's first call per command list to Map on a deferred context did not use D3D11_MAP_WRITE_DISCARD.

D2DERR_WRONG_STATE

0x88990001

The object was not in the correct state to process the method.

D2DERR_NOT_INITIALIZED

0x88990002

The object has not yet been initialized.

D2DERR_UNSUPPORTED_OPERATION

0x88990003

The requested operation is not supported.

D2DERR_SCANNER_FAILED

0x88990004

The geometry scanner failed to process the data.

D2DERR_SCREEN_ACCESS_DENIED

0x88990005

Direct2D could not access the screen.

D2DERR_DISPLAY_STATE_INVALID

0x88990006

A valid display state could not be determined.

D2DERR_ZERO_VECTOR

0x88990007

The supplied vector is zero.

D2DERR_INTERNAL_ERROR

0x88990008

An internal error (Direct2D bug) occurred. On checked builds, we would assert. The application should close this instance of Direct2D and should consider restarting its process.

D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED

0x88990009

The display format Direct2D needs to render is not supported by the hardware device.

D2DERR_INVALID_CALL

0x8899000A

A call to this method is invalid.

D2DERR_NO_HARDWARE_DEVICE

0x8899000B

No hardware rendering device is available for this operation.

D2DERR_RECREATE_TARGET

0x8899000C

There has been a presentation error that may be recoverable. The caller needs to recreate, rerender the entire frame, and reattempt present.

D2DERR_TOO_MANY_SHADER_ELEMENTS

0x8899000D

Shader construction failed because it was too complex.

D2DERR_SHADER_COMPILE_FAILED

0x8899000E

Shader compilation failed.

D2DERR_MAX_TEXTURE_SIZE_EXCEEDED

0x8899000F

Requested DirectX surface size exceeded maximum texture size.

D2DERR_UNSUPPORTED_VERSION

0x88990010

The requested Direct2D version is not supported.

D2DERR_BAD_NUMBER

0x88990011

Invalid number.

D2DERR_WRONG_FACTORY

0x88990012

Objects used together must be created from the same factory instance.

D2DERR_LAYER_ALREADY_IN_USE

0x88990013

A layer resource can only be in use once at any point in time.

D2DERR_POP_CALL_DID_NOT_MATCH_PUSH

0x88990014

The pop call did not match the corresponding push call.

D2DERR_WRONG_RESOURCE_DOMAIN

0x88990015

The resource was realized on the wrong render target.

D2DERR_PUSH_POP_UNBALANCED

0x88990016

The push and pop calls were unbalanced.

D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT

0x88990017

Attempt to copy from a render target while a layer or clip rect is applied.

D2DERR_INCOMPATIBLE_BRUSH_TYPES

0x88990018

The brush types are incompatible for the call.

D2DERR_WIN32_ERROR

0x88990019

An unknown win32 failure occurred.

D2DERR_TARGET_NOT_GDI_COMPATIBLE

0x8899001A

The render target is not compatible with GDI.

D2DERR_TEXT_EFFECT_IS_WRONG_TYPE

0x8899001B

A text client drawing effect object is of the wrong type.

D2DERR_TEXT_RENDERER_NOT_RELEASED

0x8899001C

The application is holding a reference to the IDWriteTextRenderer interface after the corresponding DrawText or DrawTextLayout call has returned. The IDWriteTextRenderer instance will be invalid.

D2DERR_EXCEEDS_MAX_BITMAP_SIZE

0x8899001D

The requested size is larger than the guaranteed supported texture size at the Direct3D device's current feature level.

D2DERR_INVALID_GRAPH_CONFIGURATION

0x8899001E

There was a configuration error in the graph.

D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION

0x8899001F

There was a internal configuration error in the graph.

D2DERR_CYCLIC_GRAPH

0x88990020

There was a cycle in the graph.

D2DERR_BITMAP_CANNOT_DRAW

0x88990021

Cannot draw with a bitmap that has the D2D1_BITMAP_OPTIONS_CANNOT_DRAW option.

D2DERR_OUTSTANDING_BITMAP_REFERENCES

0x88990022

The operation cannot complete while there are outstanding references to the target bitmap.

D2DERR_ORIGINAL_TARGET_NOT_BOUND

0x88990023

The operation failed because the original target is not currently bound as a target.

D2DERR_INVALID_TARGET

0x88990024

Cannot set the image as a target because it is either an effect or is a bitmap that does not have the D2D1_BITMAP_OPTIONS_TARGET flag set.

D2DERR_BITMAP_BOUND_AS_TARGET

0x88990025

Cannot draw with a bitmap that is currently bound as the target bitmap.

D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES

0x88990026

D3D Device does not have sufficient capabilities to perform the requested action.

D2DERR_INTERMEDIATE_TOO_LARGE

0x88990027

The graph could not be rendered with the context's current tiling settings.

D2DERR_EFFECT_IS_NOT_REGISTERED

0x88990028

The CLSID provided to Unregister did not correspond to a registered effect.

D2DERR_INVALID_PROPERTY

0x88990029

The specified property does not exist.

D2DERR_NO_SUBPROPERTIES

0x8899002A

The specified sub-property does not exist.

D2DERR_PRINT_JOB_CLOSED

0x8899002B

AddPage or Close called after print job is already closed.

D2DERR_PRINT_FORMAT_NOT_SUPPORTED

0x8899002C

Error during print control creation. Indicates that none of the package target types (representing printer formats) are supported by Direct2D print control.

D2DERR_TOO_MANY_TRANSFORM_INPUTS

0x8899002D

An effect attempted to use a transform with too many inputs.

DWRITE_E_FILEFORMAT

0x88985000

Indicates an error in an input file such as a font file.

DWRITE_E_UNEXPECTED

0x88985001

Indicates an error originating in DirectWrite code, which is not expected to occur but is safe to recover from.

DWRITE_E_NOFONT

0x88985002

Indicates the specified font does not exist.

DWRITE_E_FILENOTFOUND

0x88985003

A font file could not be opened because the file, directory, network location, drive, or other storage location does not exist or is unavailable.

DWRITE_E_FILEACCESS

0x88985004

A font file exists but could not be opened due to access denied, sharing violation, or similar error.

DWRITE_E_FONTCOLLECTIONOBSOLETE

0x88985005

A font collection is obsolete due to changes in the system.

DWRITE_E_ALREADYREGISTERED

0x88985006

The given interface is already registered.

DWRITE_E_CACHEFORMAT

0x88985007

The font cache contains invalid data.

DWRITE_E_CACHEVERSION

0x88985008

A font cache file corresponds to a different version of DirectWrite.

DWRITE_E_UNSUPPORTEDOPERATION

0x88985009

The operation is not supported for this type of font.

WINCODEC_ERR_WRONGSTATE

0x88982F04

The codec is in the wrong state.

WINCODEC_ERR_VALUEOUTOFRANGE

0x88982F05

The value is out of range.

WINCODEC_ERR_UNKNOWNIMAGEFORMAT

0x88982F07

The image format is unknown.

WINCODEC_ERR_UNSUPPORTEDVERSION

0x88982F0B

The SDK version is unsupported.

WINCODEC_ERR_NOTINITIALIZED

0x88982F0C

The component is not initialized.

WINCODEC_ERR_ALREADYLOCKED

0x88982F0D

There is already an outstanding read or write lock.

WINCODEC_ERR_PROPERTYNOTFOUND

0x88982F40

The specified bitmap property cannot be found.

WINCODEC_ERR_PROPERTYNOTSUPPORTED

0x88982F41

The bitmap codec does not support the bitmap property.

WINCODEC_ERR_PROPERTYSIZE

0x88982F42

The bitmap property size is invalid.

WINCODEC_ERR_CODECPRESENT

0x88982F43

An unknown error has occurred.

WINCODEC_ERR_CODECNOTHUMBNAIL

0x88982F44

The bitmap codec does not support a thumbnail.

WINCODEC_ERR_PALETTEUNAVAILABLE

0x88982F45

The bitmap palette is unavailable.

WINCODEC_ERR_CODECTOOMANYSCANLINES

0x88982F46

Too many scanlines were requested.

WINCODEC_ERR_INTERNALERROR

0x88982F48

An internal error occurred.

WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS

0x88982F49

The bitmap bounds do not match the bitmap dimensions.

WINCODEC_ERR_COMPONENTNOTFOUND

0x88982F50

The component cannot be found.

WINCODEC_ERR_IMAGESIZEOUTOFRANGE

0x88982F51

The bitmap size is outside the valid range.

WINCODEC_ERR_TOOMUCHMETADATA

0x88982F52

There is too much metadata to be written to the bitmap.

WINCODEC_ERR_BADIMAGE

0x88982F60

The image is unrecognized.

WINCODEC_ERR_BADHEADER

0x88982F61

The image header is unrecognized.

WINCODEC_ERR_FRAMEMISSING

0x88982F62

The bitmap frame is missing.

WINCODEC_ERR_BADMETADATAHEADER

0x88982F63

The image metadata header is unrecognized.

WINCODEC_ERR_BADSTREAMDATA

0x88982F70

The stream data is unrecognized.

WINCODEC_ERR_STREAMWRITE

0x88982F71

Failed to write to the stream.

WINCODEC_ERR_STREAMREAD

0x88982F72

Failed to read from the stream.

WINCODEC_ERR_STREAMNOTAVAILABLE

0x88982F73

The stream is not available.

WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT

0x88982F80

The bitmap pixel format is unsupported.

WINCODEC_ERR_UNSUPPORTEDOPERATION

0x88982F81

The operation is unsupported.

WINCODEC_ERR_INVALIDREGISTRATION

0x88982F8A

The component registration is invalid.

WINCODEC_ERR_COMPONENTINITIALIZEFAILURE

0x88982F8B

The component initialization has failed.

WINCODEC_ERR_INSUFFICIENTBUFFER

0x88982F8C

The buffer allocated is insufficient.

WINCODEC_ERR_DUPLICATEMETADATAPRESENT

0x88982F8D

Duplicate metadata is present.

WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE

0x88982F8E

The bitmap property type is unexpected.

WINCODEC_ERR_UNEXPECTEDSIZE

0x88982F8F

The size is unexpected.

WINCODEC_ERR_INVALIDQUERYREQUEST

0x88982F90

The property query is invalid.

WINCODEC_ERR_UNEXPECTEDMETADATATYPE

0x88982F91

The metadata type is unexpected.

WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT

0x88982F92

The specified bitmap property is only valid at root level.

WINCODEC_ERR_INVALIDQUERYCHARACTER

0x88982F93

The query string contains an invalid character.

WINCODEC_ERR_WIN32ERROR

0x88982F94

Windows Codecs received an error from the Win32 system.

WINCODEC_ERR_INVALIDPROGRESSIVELEVEL

0x88982F95

The requested level of detail is not present.

Requirements

Requirement Value
Header
Winerror.h

See also

COM Error Codes