The globally unique identifier (GUID) passed to the DirectDrawCreate function is not a valid DirectDraw driver identifier.ĭirectDraw does not support the requested mode.ĭirectDraw received a pointer that was an invalid DirectDraw object. One or more of the capability bits passed to the callback function are incorrect.ĭirectDraw does not support the provided clip list. The primary surface creation request does not match the existing primary surface.
The surface cannot be restored because it is an implicitly created surface. It cannot be reset while the process has surfaces or palettes created.ĭirectDraw is prevented from restoring state because the DirectDraw cooperative-level window handle has been subclassed. The DirectDraw cooperative-level window handle has already been set. The height of the provided rectangle is not a multiple of the required alignment. The data has expired and is therefore no longer valid. Surfaces created by one DirectDraw device cannot be used directly by another DirectDraw device.Ī DirectDraw object representing this driver has already been created for this process.Īn exception was encountered while performing the requested operation.Īn attempt was made to set the cooperative level when it was already set to exclusive. Only one DC can be retrieved for each surface. The surface requires the DDSCAPS_COMPLEX flag.Ī device context (DC) has already been returned for this surface. No source color key is specified for this operation. Page unlock does not work on a display-memory surface or an emulated primary surface.Īn attempt was made to set a clip list for a DirectDrawClipper object that is already monitoring a window handle. Page lock does not work on a display-memory surface or an emulated primary surface.Īn attempt to page-unlock a surface failed. Primary and 3-D surfaces, or surfaces that are implicitly created, cannot be duplicated.Īccess to this surface is refused because an attempt was made to lock the primary surface without Display Control Interface (DCI) support.Īn attempt to page-lock a surface failed.
Windows cannot create any more device contexts (DCs), or a DC has requested a palette-indexed surface when the surface had no palette and the display mode was not palette-indexed (in this case, DirectDraw cannot select a proper palette into the DC). For a list of the error codes that each method or function can return, see the method or function description.Ī DirectDrawClipper object is attached to a source surface that has passed into a call to the IDirectDrawSurface7::BltFast method.Ī surface cannot be attached to another requested surface.Ī surface cannot be detached from another requested surface. This table lists the values that can be returned by all methods of the DirectDraw Interfaces and DirectDraw Functions. Errors are represented by negative values and cannot be combined.