#include <Windows.h>#include <DDraw.h>#include <D3D.h>#include "D3D_Err.h"Go to the source code of this file.
Functions | |
| char * | D3DErrorToString (HRESULT error) |
|
|
Definition at line 31 of file D3D7xDrv/D3D_ERR.CPP.
00032 {
00033 switch(error) {
00034 case DD_OK:
00035 return "No error.\0";
00036 case DDERR_ALREADYINITIALIZED:
00037 return "This object is already initialized.\0";
00038 case DDERR_BLTFASTCANTCLIP:
00039 return "Return if a clipper object is attached to the source surface passed into a BltFast call.\0";
00040 case DDERR_CANNOTATTACHSURFACE:
00041 return "This surface can not be attached to the requested surface.\0";
00042 case DDERR_CANNOTDETACHSURFACE:
00043 return "This surface can not be detached from the requested surface.\0";
00044 case DDERR_CANTCREATEDC:
00045 return "Windows can not create any more DCs.\0";
00046 case DDERR_CANTDUPLICATE:
00047 return "Can't duplicate primary & 3D surfaces, or surfaces that are implicitly created.\0";
00048 case DDERR_CLIPPERISUSINGHWND:
00049 return "An attempt was made to set a cliplist for a clipper object that is already monitoring an hwnd.\0";
00050 case DDERR_COLORKEYNOTSET:
00051 return "No src color key specified for this operation.\0";
00052 case DDERR_CURRENTLYNOTAVAIL:
00053 return "Support is currently not available.\0";
00054 case DDERR_DIRECTDRAWALREADYCREATED:
00055 return "A DirectDraw object representing this driver has already been created for this process.\0";
00056 case DDERR_EXCEPTION:
00057 return "An exception was encountered while performing the requested operation.\0";
00058 case DDERR_EXCLUSIVEMODEALREADYSET:
00059 return "An attempt was made to set the cooperative level when it was already set to exclusive.\0";
00060 case DDERR_GENERIC:
00061 return "Generic failure.\0";
00062 case DDERR_HEIGHTALIGN:
00063 return "Height of rectangle provided is not a multiple of reqd alignment.\0";
00064 case DDERR_HWNDALREADYSET:
00065 return "The CooperativeLevel HWND has already been set. It can not be reset while the process has surfaces or palettes created.\0";
00066 case DDERR_HWNDSUBCLASSED:
00067 return "HWND used by DirectDraw CooperativeLevel has been subclassed, this prevents DirectDraw from restoring state.\0";
00068 case DDERR_IMPLICITLYCREATED:
00069 return "This surface can not be restored because it is an implicitly created surface.\0";
00070 case DDERR_INCOMPATIBLEPRIMARY:
00071 return "Unable to match primary surface creation request with existing primary surface.\0";
00072 case DDERR_INVALIDCAPS:
00073 return "One or more of the caps bits passed to the callback are incorrect.\0";
00074 case DDERR_INVALIDCLIPLIST:
00075 return "DirectDraw does not support the provided cliplist.\0";
00076 case DDERR_INVALIDDIRECTDRAWGUID:
00077 return "The GUID passed to DirectDrawCreate is not a valid DirectDraw driver identifier.\0";
00078 case DDERR_INVALIDMODE:
00079 return "DirectDraw does not support the requested mode.\0";
00080 case DDERR_INVALIDOBJECT:
00081 return "DirectDraw received a pointer that was an invalid DIRECTDRAW object.\0";
00082 case DDERR_INVALIDPARAMS:
00083 return "One or more of the parameters passed to the function are incorrect.\0";
00084 case DDERR_INVALIDPIXELFORMAT:
00085 return "The pixel format was invalid as specified.\0";
00086 case DDERR_INVALIDPOSITION:
00087 return "Returned when the position of the overlay on the destination is no longer legal for that destination.\0";
00088 case DDERR_INVALIDRECT:
00089 return "Rectangle provided was invalid.\0";
00090 case DDERR_LOCKEDSURFACES:
00091 return "Operation could not be carried out because one or more surfaces are locked.\0";
00092 case DDERR_NO3D:
00093 return "There is no 3D present.\0";
00094 case DDERR_NOALPHAHW:
00095 return "Operation could not be carried out because there is no alpha accleration hardware present or available.\0";
00096 case DDERR_NOBLTHW:
00097 return "No blitter hardware present.\0";
00098 case DDERR_NOCLIPLIST:
00099 return "No cliplist available.\0";
00100 case DDERR_NOCLIPPERATTACHED:
00101 return "No clipper object attached to surface object.\0";
00102 case DDERR_NOCOLORCONVHW:
00103 return "Operation could not be carried out because there is no color conversion hardware present or available.\0";
00104 case DDERR_NOCOLORKEY:
00105 return "Surface doesn't currently have a color key\0";
00106 case DDERR_NOCOLORKEYHW:
00107 return "Operation could not be carried out because there is no hardware support of the destination color key.\0";
00108 case DDERR_NOCOOPERATIVELEVELSET:
00109 return "Create function called without DirectDraw object method SetCooperativeLevel being called.\0";
00110 case DDERR_NODC:
00111 return "No DC was ever created for this surface.\0";
00112 case DDERR_NODDROPSHW:
00113 return "No DirectDraw ROP hardware.\0";
00114 case DDERR_NODIRECTDRAWHW:
00115 return "A hardware-only DirectDraw object creation was attempted but the driver did not support any hardware.\0";
00116 case DDERR_NOEMULATION:
00117 return "Software emulation not available.\0";
00118 case DDERR_NOEXCLUSIVEMODE:
00119 return "Operation requires the application to have exclusive mode but the application does not have exclusive mode.\0";
00120 case DDERR_NOFLIPHW:
00121 return "Flipping visible surfaces is not supported.\0";
00122 case DDERR_NOGDI:
00123 return "There is no GDI present.\0";
00124 case DDERR_NOHWND:
00125 return "Clipper notification requires an HWND or no HWND has previously been set as the CooperativeLevel HWND.\0";
00126 case DDERR_NOMIRRORHW:
00127 return "Operation could not be carried out because there is no hardware present or available.\0";
00128 case DDERR_NOOVERLAYDEST:
00129 return "Returned when GetOverlayPosition is called on an overlay that UpdateOverlay has never been called on to establish a destination.\0";
00130 case DDERR_NOOVERLAYHW:
00131 return "Operation could not be carried out because there is no overlay hardware present or available.\0";
00132 case DDERR_NOPALETTEATTACHED:
00133 return "No palette object attached to this surface.\0";
00134 case DDERR_NOPALETTEHW:
00135 return "No hardware support for 16 or 256 color palettes.\0";
00136 case DDERR_NORASTEROPHW:
00137 return "Operation could not be carried out because there is no appropriate raster op hardware present or available.\0";
00138 case DDERR_NOROTATIONHW:
00139 return "Operation could not be carried out because there is no rotation hardware present or available.\0";
00140 case DDERR_NOSTRETCHHW:
00141 return "Operation could not be carried out because there is no hardware support for stretching.\0";
00142 case DDERR_NOT4BITCOLOR:
00143 return "DirectDrawSurface is not in 4 bit color palette and the requested operation requires 4 bit color palette.\0";
00144 case DDERR_NOT4BITCOLORINDEX:
00145 return "DirectDrawSurface is not in 4 bit color index palette and the requested operation requires 4 bit color index palette.\0";
00146 case DDERR_NOT8BITCOLOR:
00147 return "DirectDrawSurface is not in 8 bit color mode and the requested operation requires 8 bit color.\0";
00148 case DDERR_NOTAOVERLAYSURFACE:
00149 return "Returned when an overlay member is called for a non-overlay surface.\0";
00150 case DDERR_NOTEXTUREHW:
00151 return "Operation could not be carried out because there is no texture mapping hardware present or available.\0";
00152 case DDERR_NOTFLIPPABLE:
00153 return "An attempt has been made to flip a surface that is not flippable.\0";
00154 case DDERR_NOTFOUND:
00155 return "Requested item was not found.\0";
00156 case DDERR_NOTLOCKED:
00157 return "Surface was not locked. An attempt to unlock a surface that was not locked at all, or by this process, has been attempted.\0";
00158 case DDERR_NOTPALETTIZED:
00159 return "The surface being used is not a palette-based surface.\0";
00160 case DDERR_NOVSYNCHW:
00161 return "Operation could not be carried out because there is no hardware support for vertical blank synchronized operations.\0";
00162 case DDERR_NOZBUFFERHW:
00163 return "Operation could not be carried out because there is no hardware support for zbuffer blitting.\0";
00164 case DDERR_NOZOVERLAYHW:
00165 return "Overlay surfaces could not be z layered based on their BltOrder because the hardware does not support z layering of overlays.\0";
00166 case DDERR_OUTOFCAPS:
00167 return "The hardware needed for the requested operation has already been allocated.\0";
00168 case DDERR_OUTOFMEMORY:
00169 return "DirectDraw does not have enough memory to perform the operation.\0";
00170 case DDERR_OUTOFVIDEOMEMORY:
00171 return "DirectDraw does not have enough video memory to perform the operation.\0";
00172 case DDERR_OVERLAYCANTCLIP:
00173 return "The hardware does not support clipped overlays.\0";
00174 case DDERR_OVERLAYCOLORKEYONLYONEACTIVE:
00175 return "Can only have ony color key active at one time for overlays.\0";
00176 case DDERR_OVERLAYNOTVISIBLE:
00177 return "Returned when GetOverlayPosition is called on a hidden overlay.\0";
00178 case DDERR_PALETTEBUSY:
00179 return "Access to this palette is being refused because the palette is already locked by another thread.\0";
00180 case DDERR_PRIMARYSURFACEALREADYEXISTS:
00181 return "This process already has created a primary surface.\0";
00182 case DDERR_REGIONTOOSMALL:
00183 return "Region passed to Clipper::GetClipList is too small.\0";
00184 case DDERR_SURFACEALREADYATTACHED:
00185 return "This surface is already attached to the surface it is being attached to.\0";
00186 case DDERR_SURFACEALREADYDEPENDENT:
00187 return "This surface is already a dependency of the surface it is being made a dependency of.\0";
00188 case DDERR_SURFACEBUSY:
00189 return "Access to this surface is being refused because the surface is already locked by another thread.\0";
00190 case DDERR_SURFACEISOBSCURED:
00191 return "Access to surface refused because the surface is obscured.\0";
00192 case DDERR_SURFACELOST:
00193 return "Access to this surface is being refused because the surface memory is gone. The DirectDrawSurface object representing this surface should have Restore called on it.\0";
00194 case DDERR_SURFACENOTATTACHED:
00195 return "The requested surface is not attached.\0";
00196 case DDERR_TOOBIGHEIGHT:
00197 return "Height requested by DirectDraw is too large.\0";
00198 case DDERR_TOOBIGSIZE:
00199 return "Size requested by DirectDraw is too large, but the individual height and width are OK.\0";
00200 case DDERR_TOOBIGWIDTH:
00201 return "Width requested by DirectDraw is too large.\0";
00202 case DDERR_UNSUPPORTED:
00203 return "Action not supported.\0";
00204 case DDERR_UNSUPPORTEDFORMAT:
00205 return "FOURCC format requested is unsupported by DirectDraw.\0";
00206 case DDERR_UNSUPPORTEDMASK:
00207 return "Bitmask in the pixel format requested is unsupported by DirectDraw.\0";
00208 case DDERR_VERTICALBLANKINPROGRESS:
00209 return "Vertical blank is in progress.\0";
00210 case DDERR_WASSTILLDRAWING:
00211 return "Informs DirectDraw that the previous Blt which is transfering information to or from this Surface is incomplete.\0";
00212 case DDERR_WRONGMODE:
00213 return "This surface can not be restored because it was created in a different mode.\0";
00214 case DDERR_XALIGN:
00215 return "Rectangle provided was not horizontally aligned on required boundary.\0";
00216 case D3DERR_BADMAJORVERSION:
00217 return "D3DERR_BADMAJORVERSION\0";
00218 case D3DERR_BADMINORVERSION:
00219 return "D3DERR_BADMINORVERSION\0";
00220 case D3DERR_EXECUTE_LOCKED:
00221 return "D3DERR_EXECUTE_LOCKED\0";
00222 case D3DERR_EXECUTE_NOT_LOCKED:
00223 return "D3DERR_EXECUTE_NOT_LOCKED\0";
00224 case D3DERR_EXECUTE_CREATE_FAILED:
00225 return "D3DERR_EXECUTE_CREATE_FAILED\0";
00226 case D3DERR_EXECUTE_DESTROY_FAILED:
00227 return "D3DERR_EXECUTE_DESTROY_FAILED\0";
00228 case D3DERR_EXECUTE_LOCK_FAILED:
00229 return "D3DERR_EXECUTE_LOCK_FAILED\0";
00230 case D3DERR_EXECUTE_UNLOCK_FAILED:
00231 return "DDERR_EXECUTE_UNLOCK_FAILED\0";
00232 case D3DERR_EXECUTE_FAILED:
00233 return "D3DERR_EXECUTE_FAILED\0";
00234 case D3DERR_EXECUTE_CLIPPED_FAILED:
00235 return "D3DERR_EXECUTE_CLIPPED_FAILED\0";
00236 case D3DERR_TEXTURE_NO_SUPPORT:
00237 return "D3DERR_TEXTURE_NO_SUPPORT\0";
00238 case D3DERR_TEXTURE_NOT_LOCKED:
00239 return "D3DERR_TEXTURE_NOT_LOCKED\0";
00240 case D3DERR_TEXTURE_LOCKED:
00241 return "D3DERR_TEXTURELOCKED\0";
00242 case D3DERR_TEXTURE_CREATE_FAILED:
00243 return "D3DERR_TEXTURE_CREATE_FAILED\0";
00244 case D3DERR_TEXTURE_DESTROY_FAILED:
00245 return "D3DERR_TEXTURE_DESTROY_FAILED\0";
00246 case D3DERR_TEXTURE_LOCK_FAILED:
00247 return "D3DERR_TEXTURE_LOCK_FAILED\0";
00248 case D3DERR_TEXTURE_UNLOCK_FAILED:
00249 return "D3DERR_TEXTURE_UNLOCK_FAILED\0";
00250 case D3DERR_TEXTURE_LOAD_FAILED:
00251 return "D3DERR_TEXTURE_LOAD_FAILED\0";
00252 case D3DERR_MATRIX_CREATE_FAILED:
00253 return "D3DERR_MATRIX_CREATE_FAILED\0";
00254 case D3DERR_MATRIX_DESTROY_FAILED:
00255 return "D3DERR_MATRIX_DESTROY_FAILED\0";
00256 case D3DERR_MATRIX_SETDATA_FAILED:
00257 return "D3DERR_MATRIX_SETDATA_FAILED\0";
00258 case D3DERR_SETVIEWPORTDATA_FAILED:
00259 return "D3DERR_SETVIEWPORTDATA_FAILED\0";
00260 case D3DERR_MATERIAL_CREATE_FAILED:
00261 return "D3DERR_MATERIAL_CREATE_FAILED\0";
00262 case D3DERR_MATERIAL_DESTROY_FAILED:
00263 return "D3DERR_MATERIAL_DESTROY_FAILED\0";
00264 case D3DERR_MATERIAL_SETDATA_FAILED:
00265 return "D3DERR_MATERIAL_SETDATA_FAILED\0";
00266 case D3DERR_LIGHT_SET_FAILED:
00267 return "D3DERR_LIGHT_SET_FAILED\0";
00268 default:
00269 return "Unrecognized error value.\0";
00270 }
00271 }
|
1.3.2