10 A surface cannot be attached to another requested surface.
14 DirectDraw does not have enough memory to perform the operation.
20 A surface cannot be detached from another requested surface.
40 No support is currently available.
55 An exception was encountered while performing the requested operation.
87 One or more of the parameters passed to the method are incorrect.
90 The height of the provided rectangle is not a multiple of the required alignment.
95 The primary surface creation request does not match with the existing\nprimary surface.
100 One or more of the capability bits passed to the callback function are incorrect.
110 DirectDraw does not support the provided clip list.
120 DirectDraw does not support the requested mode.
130 DirectDraw received a pointer that was an invalid DirectDraw object.
145 The pixel format was invalid as specified.
150 The provided rectangle was invalid.
160 One or more surfaces are locked, causing the failure of the requested operation.
170 No 3-D hardware or emulation is present.
180 No alpha acceleration hardware is present or available, causing the failure\nof the requested operation.
205 No clip list is available.
210 The operation cannot be carried out because no color-conversion hardware\nis present or available.
212 A create function is called without the IDirectDraw::SetCooperativeLevel\nmethod being called.
215 The surface does not currently have a color key.
220 The operation cannot be carried out because there is no hardware support\nfor the destination color key.
222 DirectDraw support is not possible with the current display driver.
225 The operation requires the application to have exclusive mode, but the\napplication does not have exclusive mode.
230 Flipping visible surfaces is not supported.
240 No GDI is present.
250 The operation cannot be carried out because no mirroring hardware is\npresent or available.
255 The requested item was not found.
260 The operation cannot be carried out because no overlay hardware is\npresent or available.
270 Operation could not be carried out because the source and destination\nrectangles are on the same surface and overlap each other.
280 The operation cannot be carried out because no appropriate raster\noperation hardware is present or available.
290 The operation cannot be carried out because no rotation hardware is\npresent or available.
310 The operation cannot be carried out because there is no hardware\nsupport for stretching.
316 The DirectDrawSurface object is not using a 4-bit color palette and\nthe requested operation requires a 4-bit color palette.
317 The DirectDrawSurface object is not using a 4-bit color index palette\nand the requested operation requires a 4-bit color index palette.
320 The DirectDrawSurface object is not using an 8-bit color palette and\nthe requested operation requires an 8-bit color palette.
330 The operation cannot be carried out because no texture-mapping hardware\nis present or available.
335 The operation cannot be carried out because there is no hardware support\nfor vertical blank synchronized operations.
340 The operation to create a z-buffer in display memory or to perform a blit\nusing a z-buffer cannot be carried out because there is no hardware support\nfor z-buffers.
350 The overlay surfaces cannot be z-layered based on the z-order because\nthe hardware does not support z-ordering of overlays.
360 The hardware needed for the requested operation has already been allocated.
380 DirectDraw does not have enough display memory to perform the operation.
382 The hardware does not support clipped overlays.
384 An attempt was made to have more than one color key active on an overlay.
387 Access to this palette is refused because the palette is locked by\nanother thread.
400 No source color key is specified for this operation.
410 An attempt was made to attach a surface to another surface to which it\nis already attached.
420 An attempt was made to make a surface a dependency of another surface to\nwhich it is already dependent.
430 Access to the surface is refused because the surface is locked by another thread.
435 Access to this surface is refused because an attempt was made to lock the\nprimary surface without DCI support.
440 Access to the surface is refused because the surface is obscured.
450 Access to the surface is refused because the surface memory is gone.\nCall the IDirectDrawSurface::Restore method on this surface to restore\nthe memory associated with it.
460 The requested surface is not attached.
470 The height requested by DirectDraw is too large.
480 The size requested by DirectDraw is too large. However, the individual\nheight and width are valid sizes.
490 The width requested by DirectDraw is too large.
496 An attempt was made to call an interface method of a DirectDraw object\ncreated by CoCreateInstance before the object was initialized.
510 The pixel format requested is not supported by DirectDraw.
520 The bitmask in the pixel format requested is not supported by DirectDraw.
521 The specified stream contains invalid data.
537 A vertical blank is in progress.
540 The previous blit operation that is transferring information to or from\nthis surface is incomplete.
560 The provided rectangle was not horizontally aligned on a required boundary.
561 The globally unique identifier (GUID) passed to the DirectDrawCreate function\nis not a valid DirectDraw driver identifier.
562 A DirectDraw object representing this driver has already been created for\nthis process.
563 Hardware-only DirectDraw object creation is not possible; the driver does\nnot support any hardware.
564 This process has already created a primary surface.
565 Software emulation is not available.
566 The region passed to the IDirectDrawClipper::GetClipList method is too small.
567 An attempt was made to set a clip list for a DirectDrawClipper object that\nis already monitoring a window handle.
568 No DirectDrawClipper object is attached to the surface object.
569 Clipper notification requires a window handle, or no window handle has\nbeen previously set as the cooperative level window handle.
570 DirectDraw is prevented from restoring state because the DirectDraw\ncooperative level window handle has been subclassed.
571 The DirectDraw cooperative level window handle has already been set.\nIt cannot be reset while the process has surfaces or palettes created.
572 No palette object is attached to this surface.
573 There is no hardware support for 16- or 256-color palettes.
574 A DirectDrawClipper object is attached to a source surface that has\npassed into a call to the IDirectDrawSurface::BltFast method.
575 No blitter hardware is present.
576 No DirectDraw raster operation (ROP) hardware is available.
577 The IDirectDrawSurface::GetOverlayPosition method is called on a\nhiREAL_DDen overlay.
578 The IDirectDrawSurface::GetOverlayPosition method is called on an\noverlay that the IDirectDrawSurface::UpdateOverlay method has not been\ncalled on to establish a destination.
579 The position of the overlay on the destination is no longer legal.
580 An overlay component is called for a non-overlay surface.
581 An attempt was made to set the cooperative level when it was already\nset to exclusive.
582 An attempt has been made to flip a surface that cannot be flipped.
583 Primary and 3-D surfaces, or surfaces that are implicitly created, cannot\nbe duplicated.
584 An attempt is made to unlock a surface that was not locked.
585 Windows can not create any more device contexts (DCs), or a DC was\nrequested for a palette-indexed surface when the surface had no palette\nand the display mode was not palette-indexed (in this case DirectDraw\ncannot select a proper palette into the DC).
586 No DC has ever been created for this surface.
587 This surface cannot be restored because it was created in a different mode.
588 The surface cannot be restored because it is an implicitly created surface.
589 The surface being used is not a palette-based surface.
590 The display is currently in an unsupported mode.
591 The operation cannot be carried out because no mipmap capable texture\nmapping hardware is present or available.
592 The requested operation could not be performed because the surface was of\nthe wrong type.
600 The device does not support optimized surfaces.
601 The surface is an optimized surface, but it has not yet been allocated any memory.
602 An attempt was made to create or set a device window without first setting\nthe focus window.
620 A device context (DC) has already been returned for this surface. Only one\nDC can be retrieved for each surface.
630 An attempt was made to allocate non-local video memory from a device\nthat does not support non-local video memory.
640 An attempt to page lock a surface failed. Page lock will not work on a\ndisplay-memory surface or an emulated primary surface.
660 An attempt to page unlock a surface failed. Page unlock will not work on\na display-memory surface or an emulated primary surface.
680 An attempt is made to page unlock a surface with no outstanding page locks.
690 There is more data available than the specified buffer size can hold.
691 The data has expired and is therefore no longer valid.
695 The video port is not active.
699 Surfaces created by one DirectDraw device cannot be used directly by another\nDirectDraw device.