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

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
UI_E_CREATE_FAILED0x802A0001The object could not be created.
UI_E_SHUTDOWN_CALLED0x802A0002Shutdown was already called on this object or the object that owns it.
UI_E_ILLEGAL_REENTRANCY0x802A0003This method cannot be called during this type of callback.
UI_E_OBJECT_SEALED0x802A0004This object has been sealed, so this change is no longer allowed.
UI_E_VALUE_NOT_SET0x802A0005The requested value was never set.
UI_E_VALUE_NOT_DETERMINED0x802A0006The requested value cannot be determined.
UI_E_INVALID_OUTPUT0x802A0007A callback returned an invalid output parameter.
UI_E_BOOLEAN_EXPECTED0x802A0008A callback returned a success code other than S_OK or S_FALSE.
UI_E_DIFFERENT_OWNER0x802A0009A parameter that should be owned by this object is owned by a different object.
UI_E_AMBIGUOUS_MATCH0x802A000AMore than one item matched the search criteria.
UI_E_FP_OVERFLOW0x802A000BA floating-point overflow occurred.
UI_E_WRONG_THREAD0x802A000CThis method can only be called from the thread that created the object.
UI_E_STORYBOARD_ACTIVE0x802A0101The storyboard is currently in the schedule.
UI_E_STORYBOARD_NOT_PLAYING0x802A0102The storyboard is not playing.
UI_E_START_KEYFRAME_AFTER_END0x802A0103The start keyframe might occur after the end keyframe.
UI_E_END_KEYFRAME_NOT_DETERMINED0x802A0104It might not be possible to determine the end keyframe time when the start keyframe is reached.
UI_E_LOOPS_OVERLAP0x802A0105Two repeated portions of a storyboard might overlap.
UI_E_TRANSITION_ALREADY_USED0x802A0106The transition has already been added to a storyboard.
UI_E_TRANSITION_NOT_IN_STORYBOARD0x802A0107The transition has not been added to a storyboard.
UI_E_TRANSITION_ECLIPSED0x802A0108The transition might eclipse the beginning of another transition in the storyboard.
UI_E_TIME_BEFORE_LAST_UPDATE0x802A0109The given time is earlier than the time passed to the last update.
UI_E_TIMER_CLIENT_ALREADY_CONNECTED0x802A010AThis client is already connected to a timer.
UI_E_INVALID_DIMENSION0x802A010BThe passed dimension is invalid or does not match the object's dimension.
UI_E_PRIMITIVE_OUT_OF_BOUNDS0x802A010CThe added primitive begins at or beyond the duration of the interpolator.
UI_E_WINDOW_CLOSED0x802A0201The operation cannot be completed because the window is being closed.
E_AUDIO_ENGINE_NODE_NOT_FOUND0x80660001PortCls could not find an audio engine node exposed by a miniport driver claiming support for IMiniportAudioEngineNode.
DXGI_STATUS_OCCLUDED0x087A0001The Present operation was invisible to the user.
DXGI_STATUS_CLIPPED0x087A0002The Present operation was partially invisible to the user.
DXGI_STATUS_NO_REDIRECTION0x087A0004The driver is requesting that the DXGI runtime not use shared resources to communicate with the Desktop Window Manager.
DXGI_STATUS_NO_DESKTOP_ACCESS0x087A0005The 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_USE0x087A0006The Present operation was not visible because the target monitor was being used for some other purpose.
DXGI_STATUS_MODE_CHANGED0x087A0007The Present operation was not visible because the display mode changed. DXGI will have re-attempted the presentation.
DXGI_STATUS_MODE_CHANGE_IN_PROGRESS0x087A0008The Present operation was not visible because another Direct3D device was attempting to take fullscreen mode at the time.
DXGI_ERROR_INVALID_CALL0x887A0001The 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_FOUND0x887A0002The object was not found. If calling IDXGIFactory::EnumAdaptes, there is no adapter with the specified ordinal.
DXGI_ERROR_MORE_DATA0x887A0003The caller did not supply a sufficiently large buffer.
DXGI_ERROR_UNSUPPORTED0x887A0004The specified device interface or feature level is not supported on this system.
DXGI_ERROR_DEVICE_REMOVED0x887A0005The GPU device instance has been suspended. Use GetDeviceRemovedReason to determine the appropriate action.
DXGI_ERROR_DEVICE_HUNG0x887A0006The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application.
DXGI_ERROR_DEVICE_RESET0x887A0007The 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_DRAWING0x887A000AThe GPU was busy at the moment when the call was made, and the call was neither executed nor scheduled.
DXGI_ERROR_FRAME_STATISTICS_DISJOINT0x887A000BAn event (such as power cycle) interrupted the gathering of presentation statistics. Any previous statistics should be considered invalid.
DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE0x887A000CFullscreen mode could not be achieved because the specified output was already in use.
DXGI_ERROR_DRIVER_INTERNAL_ERROR0x887A0020An 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_NONEXCLUSIVE0x887A0021A global counter resource was in use, and the specified counter cannot be used by this Direct3D device at this time.
DXGI_ERROR_NOT_CURRENTLY_AVAILABLE0x887A0022A resource is not available at the time of the call, but may become available later.
DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED0x887A0023The 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_OUTOFMEMORY0x887A0024The device has been removed during a remote session because the remote computer ran out of memory.
DXGI_ERROR_ACCESS_LOST0x887A0026The keyed mutex was abandoned.
DXGI_ERROR_WAIT_TIMEOUT0x887A0027The timeout value has elapsed and the resource is not yet available.
DXGI_ERROR_SESSION_DISCONNECTED0x887A0028The 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_STALE0x887A0029The DXGI outuput (monitor) to which the swapchain content was restricted, has been disconnected or changed.
DXGI_ERROR_CANNOT_PROTECT_CONTENT0x887A002ADXGI 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_DENIED0x887A002BThe 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_UNOCCLUDED0x087A0009The swapchain has become unoccluded.
DXGI_STATUS_DDA_WAS_STILL_DRAWING0x087A000AThe 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_PROGRESS0x887A0025An on-going mode change prevented completion of the call. The call may succeed if attempted later.
DXGI_DDI_ERR_WASSTILLDRAWING0x887B0001The GPU was busy when the operation was requested.
DXGI_DDI_ERR_UNSUPPORTED0x887B0002The driver has rejected the creation of this resource.
DXGI_DDI_ERR_NONEXCLUSIVE0x887B0003The GPU counter was in use by another process or d3d device when application requested access to it.
D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS0x88790001The 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_FOUND0x88790002The specified file was not found.
D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS0x887C0001The 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_FOUND0x887C0002The specified file was not found.
D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS0x887C0003The 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_DISCARD0x887C0004The application's first call per command list to Map on a deferred context did not use D3D11_MAP_WRITE_DISCARD.
D2DERR_WRONG_STATE0x88990001The object was not in the correct state to process the method.
D2DERR_NOT_INITIALIZED0x88990002The object has not yet been initialized.
D2DERR_UNSUPPORTED_OPERATION0x88990003The requested operation is not supported.
D2DERR_SCANNER_FAILED0x88990004The geometry scanner failed to process the data.
D2DERR_SCREEN_ACCESS_DENIED0x88990005Direct2D could not access the screen.
D2DERR_DISPLAY_STATE_INVALID0x88990006A valid display state could not be determined.
D2DERR_ZERO_VECTOR0x88990007The supplied vector is zero.
D2DERR_INTERNAL_ERROR0x88990008An 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_SUPPORTED0x88990009The display format Direct2D needs to render is not supported by the hardware device.
D2DERR_INVALID_CALL0x8899000AA call to this method is invalid.
D2DERR_NO_HARDWARE_DEVICE0x8899000BNo hardware rendering device is available for this operation.
D2DERR_RECREATE_TARGET0x8899000CThere 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_ELEMENTS0x8899000DShader construction failed because it was too complex.
D2DERR_SHADER_COMPILE_FAILED0x8899000EShader compilation failed.
D2DERR_MAX_TEXTURE_SIZE_EXCEEDED0x8899000FRequested DirectX surface size exceeded maximum texture size.
D2DERR_UNSUPPORTED_VERSION0x88990010The requested Direct2D version is not supported.
D2DERR_BAD_NUMBER0x88990011Invalid number.
D2DERR_WRONG_FACTORY0x88990012Objects used together must be created from the same factory instance.
D2DERR_LAYER_ALREADY_IN_USE0x88990013A layer resource can only be in use once at any point in time.
D2DERR_POP_CALL_DID_NOT_MATCH_PUSH0x88990014The pop call did not match the corresponding push call.
D2DERR_WRONG_RESOURCE_DOMAIN0x88990015The resource was realized on the wrong render target.
D2DERR_PUSH_POP_UNBALANCED0x88990016The push and pop calls were unbalanced.
D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT0x88990017Attempt to copy from a render target while a layer or clip rect is applied.
D2DERR_INCOMPATIBLE_BRUSH_TYPES0x88990018The brush types are incompatible for the call.
D2DERR_WIN32_ERROR0x88990019An unknown win32 failure occurred.
D2DERR_TARGET_NOT_GDI_COMPATIBLE0x8899001AThe render target is not compatible with GDI.
D2DERR_TEXT_EFFECT_IS_WRONG_TYPE0x8899001BA text client drawing effect object is of the wrong type.
D2DERR_TEXT_RENDERER_NOT_RELEASED0x8899001CThe 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_SIZE0x8899001DThe requested size is larger than the guaranteed supported texture size at the Direct3D device's current feature level.
D2DERR_INVALID_GRAPH_CONFIGURATION0x8899001EThere was a configuration error in the graph.
D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION0x8899001FThere was an internal configuration error in the graph.
D2DERR_CYCLIC_GRAPH0x88990020There was a cycle in the graph.
D2DERR_BITMAP_CANNOT_DRAW0x88990021Cannot draw with a bitmap that has the D2D1_BITMAP_OPTIONS_CANNOT_DRAW option.
D2DERR_OUTSTANDING_BITMAP_REFERENCES0x88990022The operation cannot complete while there are outstanding references to the target bitmap.
D2DERR_ORIGINAL_TARGET_NOT_BOUND0x88990023The operation failed because the original target is not currently bound as a target.
D2DERR_INVALID_TARGET0x88990024Cannot 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_TARGET0x88990025Cannot draw with a bitmap that is currently bound as the target bitmap.
D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES0x88990026D3D Device does not have sufficient capabilities to perform the requested action.
D2DERR_INTERMEDIATE_TOO_LARGE0x88990027The graph could not be rendered with the context's current tiling settings.
D2DERR_EFFECT_IS_NOT_REGISTERED0x88990028The CLSID provided to Unregister did not correspond to a registered effect.
D2DERR_INVALID_PROPERTY0x88990029The specified property does not exist.
D2DERR_NO_SUBPROPERTIES0x8899002AThe specified sub-property does not exist.
D2DERR_PRINT_JOB_CLOSED0x8899002BAddPage or Close called after print job is already closed.
D2DERR_PRINT_FORMAT_NOT_SUPPORTED0x8899002CError 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_INPUTS0x8899002DAn effect attempted to use a transform with too many inputs.
DWRITE_E_FILEFORMAT0x88985000Indicates an error in an input file such as a font file.
DWRITE_E_UNEXPECTED0x88985001Indicates an error originating in DirectWrite code, which is not expected to occur but is safe to recover from.
DWRITE_E_NOFONT0x88985002Indicates the specified font does not exist.
DWRITE_E_FILENOTFOUND0x88985003A 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_FILEACCESS0x88985004A font file exists but could not be opened due to access denied, sharing violation, or similar error.
DWRITE_E_FONTCOLLECTIONOBSOLETE0x88985005A font collection is obsolete due to changes in the system.
DWRITE_E_ALREADYREGISTERED0x88985006The given interface is already registered.
DWRITE_E_CACHEFORMAT0x88985007The font cache contains invalid data.
DWRITE_E_CACHEVERSION0x88985008A font cache file corresponds to a different version of DirectWrite.
DWRITE_E_UNSUPPORTEDOPERATION0x88985009The operation is not supported for this type of font.
WINCODEC_ERR_WRONGSTATE0x88982F04The codec is in the wrong state.
WINCODEC_ERR_VALUEOUTOFRANGE0x88982F05The value is out of range.
WINCODEC_ERR_UNKNOWNIMAGEFORMAT0x88982F07The image format is unknown.
WINCODEC_ERR_UNSUPPORTEDVERSION0x88982F0BThe SDK version is unsupported.
WINCODEC_ERR_NOTINITIALIZED0x88982F0CThe component is not initialized.
WINCODEC_ERR_ALREADYLOCKED0x88982F0DThere is already an outstanding read or write lock.
WINCODEC_ERR_PROPERTYNOTFOUND0x88982F40The specified bitmap property cannot be found.
WINCODEC_ERR_PROPERTYNOTSUPPORTED0x88982F41The bitmap codec does not support the bitmap property.
WINCODEC_ERR_PROPERTYSIZE0x88982F42The bitmap property size is invalid.
WINCODEC_ERR_CODECPRESENT0x88982F43An unknown error has occurred.
WINCODEC_ERR_CODECNOTHUMBNAIL0x88982F44The bitmap codec does not support a thumbnail.
WINCODEC_ERR_PALETTEUNAVAILABLE0x88982F45The bitmap palette is unavailable.
WINCODEC_ERR_CODECTOOMANYSCANLINES0x88982F46Too many scanlines were requested.
WINCODEC_ERR_INTERNALERROR0x88982F48An internal error occurred.
WINCODEC_ERR_SOURCERECTDOESNOTMATCHDIMENSIONS0x88982F49The bitmap bounds do not match the bitmap dimensions.
WINCODEC_ERR_COMPONENTNOTFOUND0x88982F50The component cannot be found.
WINCODEC_ERR_IMAGESIZEOUTOFRANGE0x88982F51The bitmap size is outside the valid range.
WINCODEC_ERR_TOOMUCHMETADATA0x88982F52There is too much metadata to be written to the bitmap.
WINCODEC_ERR_BADIMAGE0x88982F60The image is unrecognized.
WINCODEC_ERR_BADHEADER0x88982F61The image header is unrecognized.
WINCODEC_ERR_FRAMEMISSING0x88982F62The bitmap frame is missing.
WINCODEC_ERR_BADMETADATAHEADER0x88982F63The image metadata header is unrecognized.
WINCODEC_ERR_BADSTREAMDATA0x88982F70The stream data is unrecognized.
WINCODEC_ERR_STREAMWRITE0x88982F71Failed to write to the stream.
WINCODEC_ERR_STREAMREAD0x88982F72Failed to read from the stream.
WINCODEC_ERR_STREAMNOTAVAILABLE0x88982F73The stream is not available.
WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT0x88982F80The bitmap pixel format is unsupported.
WINCODEC_ERR_UNSUPPORTEDOPERATION0x88982F81The operation is unsupported.
WINCODEC_ERR_INVALIDREGISTRATION0x88982F8AThe component registration is invalid.
WINCODEC_ERR_COMPONENTINITIALIZEFAILURE0x88982F8BThe component initialization has failed.
WINCODEC_ERR_INSUFFICIENTBUFFER0x88982F8CThe buffer allocated is insufficient.
WINCODEC_ERR_DUPLICATEMETADATAPRESENT0x88982F8DDuplicate metadata is present.
WINCODEC_ERR_PROPERTYUNEXPECTEDTYPE0x88982F8EThe bitmap property type is unexpected.
WINCODEC_ERR_UNEXPECTEDSIZE0x88982F8FThe size is unexpected.
WINCODEC_ERR_INVALIDQUERYREQUEST0x88982F90The property query is invalid.
WINCODEC_ERR_UNEXPECTEDMETADATATYPE0x88982F91The metadata type is unexpected.
WINCODEC_ERR_REQUESTONLYVALIDATMETADATAROOT0x88982F92The specified bitmap property is only valid at root level.
WINCODEC_ERR_INVALIDQUERYCHARACTER0x88982F93The query string contains an invalid character.
WINCODEC_ERR_WIN32ERROR0x88982F94Windows Codecs received an error from the Win32 system.
WINCODEC_ERR_INVALIDPROGRESSIVELEVEL0x88982F95The requested level of detail is not present.
161 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.