/*==========================================================================; * * * File: dxerr8.cpp * Content: DirectX Error Library * ****************************************************************************/ #include #include #include #include "dxerr8.h" #include"d3d8.h" #include"ddraw.h" #include"d3dx8.h" #include"d3dxerr.h" #include"dsound.h" #include"dmusici.h" #include"dplay8.h" #include"dvoice.h" #include"dinput.h" #include"dinputd.h" #include"vfwmsgs.h" //#include"appman.h" #define BUFFER_SIZE 3000 #define CHK_ERR(hrchk, strOut) \ case hrchk: \ return strOut; /****************************************************/ /* DXGetErrorString8A */ /* */ /****************************************************/ const char * WINAPI DXGetErrorString8A(HRESULT hr) { switch(hr) { // ------------------------------------------------------------- // Common Win32 error codes // ------------------------------------------------------------- CHK_ERR(S_OK, "S_OK") CHK_ERR(S_FALSE, "S_FALSE") CHK_ERR(ERROR_FILE_NOT_FOUND, "ERROR_FILE_NOT_FOUND") CHK_ERR(ERROR_PATH_NOT_FOUND, "ERROR_PATH_NOT_FOUND") CHK_ERR(ERROR_TOO_MANY_OPEN_FILES, "ERROR_TOO_MANY_OPEN_FILES") CHK_ERR(ERROR_ACCESS_DENIED, "ERROR_ACCESS_DENIED") CHK_ERR(ERROR_INVALID_HANDLE, "ERROR_INVALID_HANDLE") CHK_ERR(ERROR_NOT_ENOUGH_MEMORY, "ERROR_NOT_ENOUGH_MEMORY") CHK_ERR(ERROR_INVALID_BLOCK, "ERROR_INVALID_BLOCK") CHK_ERR(ERROR_BAD_ENVIRONMENT, "ERROR_BAD_ENVIRONMENT") CHK_ERR(ERROR_BAD_FORMAT, "ERROR_BAD_FORMAT") CHK_ERR(ERROR_OUTOFMEMORY, "ERROR_OUTOFMEMORY") CHK_ERR(E_UNEXPECTED, "E_UNEXPECTED") CHK_ERR(E_NOTIMPL, "E_NOTIMPL") CHK_ERR(E_OUTOFMEMORY, "E_OUTOFMEMORY") CHK_ERR(E_INVALIDARG, "E_INVALIDARG") CHK_ERR(E_NOINTERFACE, "E_NOINTERFACE") CHK_ERR(E_POINTER, "E_POINTER") CHK_ERR(E_HANDLE, "E_HANDLE") CHK_ERR(E_ABORT, "E_ABORT") CHK_ERR(E_FAIL, "E_FAIL") CHK_ERR(E_ACCESSDENIED, "E_ACCESSDENIED") CHK_ERR(E_PENDING, "E_PENDING") CHK_ERR(REGDB_E_CLASSNOTREG, "REGDB_E_CLASSNOTREG") CHK_ERR(CO_E_NOTINITIALIZED, "CO_E_NOTINITIALIZED") CHK_ERR(CO_E_ALREADYINITIALIZED, "CO_E_ALREADYINITIALIZED") CHK_ERR(CLASS_E_NOAGGREGATION, "CLASS_E_NOAGGREGATION") // ------------------------------------------------------------- // ddraw.h error codes as of 12/14/00 // ------------------------------------------------------------- CHK_ERR(DDERR_ALREADYINITIALIZED, "DDERR_ALREADYINITIALIZED") CHK_ERR(DDERR_CANNOTATTACHSURFACE, "DDERR_CANNOTATTACHSURFACE") CHK_ERR(DDERR_CANNOTDETACHSURFACE, "DDERR_CANNOTDETACHSURFACE") CHK_ERR(DDERR_CURRENTLYNOTAVAIL, "DDERR_CURRENTLYNOTAVAIL") CHK_ERR(DDERR_EXCEPTION, "DDERR_EXCEPTION") // CHK_ERR(DDERR_GENERIC, "DDERR_GENERIC") CHK_ERR(DDERR_HEIGHTALIGN, "DDERR_HEIGHTALIGN") CHK_ERR(DDERR_INCOMPATIBLEPRIMARY, "DDERR_INCOMPATIBLEPRIMARY") CHK_ERR(DDERR_INVALIDCAPS, "DDERR_INVALIDCAPS") CHK_ERR(DDERR_INVALIDCLIPLIST, "DDERR_INVALIDCLIPLIST") CHK_ERR(DDERR_INVALIDMODE, "DDERR_INVALIDMODE") CHK_ERR(DDERR_INVALIDOBJECT, "DDERR_INVALIDOBJECT") // CHK_ERR(DDERR_INVALIDPARAMS, "DDERR_INVALIDPARAMS") CHK_ERR(DDERR_INVALIDPIXELFORMAT, "DDERR_INVALIDPIXELFORMAT") CHK_ERR(DDERR_INVALIDRECT, "DDERR_INVALIDRECT") CHK_ERR(DDERR_LOCKEDSURFACES, "DDERR_LOCKEDSURFACES") CHK_ERR(DDERR_NO3D, "DDERR_NO3D") CHK_ERR(DDERR_NOALPHAHW, "DDERR_NOALPHAHW") CHK_ERR(DDERR_NOSTEREOHARDWARE, "DDERR_NOSTEREOHARDWARE") CHK_ERR(DDERR_NOSURFACELEFT, "DDERR_NOSURFACELEFT") CHK_ERR(DDERR_NOCLIPLIST, "DDERR_NOCLIPLIST") CHK_ERR(DDERR_NOCOLORCONVHW, "DDERR_NOCOLORCONVHW") CHK_ERR(DDERR_NOCOOPERATIVELEVELSET, "DDERR_NOCOOPERATIVELEVELSET") CHK_ERR(DDERR_NOCOLORKEY, "DDERR_NOCOLORKEY") CHK_ERR(DDERR_NOCOLORKEYHW, "DDERR_NOCOLORKEYHW") CHK_ERR(DDERR_NODIRECTDRAWSUPPORT, "DDERR_NODIRECTDRAWSUPPORT") CHK_ERR(DDERR_NOEXCLUSIVEMODE, "DDERR_NOEXCLUSIVEMODE") CHK_ERR(DDERR_NOFLIPHW, "DDERR_NOFLIPHW") CHK_ERR(DDERR_NOGDI, "DDERR_NOGDI") CHK_ERR(DDERR_NOMIRRORHW, "DDERR_NOMIRRORHW") CHK_ERR(DDERR_NOTFOUND, "DDERR_NOTFOUND") CHK_ERR(DDERR_NOOVERLAYHW, "DDERR_NOOVERLAYHW") CHK_ERR(DDERR_OVERLAPPINGRECTS, "DDERR_OVERLAPPINGRECTS") CHK_ERR(DDERR_NORASTEROPHW, "DDERR_NORASTEROPHW") CHK_ERR(DDERR_NOROTATIONHW, "DDERR_NOROTATIONHW") CHK_ERR(DDERR_NOSTRETCHHW, "DDERR_NOSTRETCHHW") CHK_ERR(DDERR_NOT4BITCOLOR, "DDERR_NOT4BITCOLOR") CHK_ERR(DDERR_NOT4BITCOLORINDEX, "DDERR_NOT4BITCOLORINDEX") CHK_ERR(DDERR_NOT8BITCOLOR, "DDERR_NOT8BITCOLOR") CHK_ERR(DDERR_NOTEXTUREHW, "DDERR_NOTEXTUREHW") CHK_ERR(DDERR_NOVSYNCHW, "DDERR_NOVSYNCHW") CHK_ERR(DDERR_NOZBUFFERHW, "DDERR_NOZBUFFERHW") CHK_ERR(DDERR_NOZOVERLAYHW, "DDERR_NOZOVERLAYHW") CHK_ERR(DDERR_OUTOFCAPS, "DDERR_OUTOFCAPS") // CHK_ERR(DDERR_OUTOFMEMORY, "DDERR_OUTOFMEMORY") // CHK_ERR(DDERR_OUTOFVIDEOMEMORY, "DDERR_OUTOFVIDEOMEMORY") CHK_ERR(DDERR_OVERLAYCANTCLIP, "DDERR_OVERLAYCANTCLIP") CHK_ERR(DDERR_OVERLAYCOLORKEYONLYONEACTIVE, "DDERR_OVERLAYCOLORKEYONLYONEACTIVE") CHK_ERR(DDERR_PALETTEBUSY, "DDERR_PALETTEBUSY") CHK_ERR(DDERR_COLORKEYNOTSET, "DDERR_COLORKEYNOTSET") CHK_ERR(DDERR_SURFACEALREADYATTACHED, "DDERR_SURFACEALREADYATTACHED") CHK_ERR(DDERR_SURFACEALREADYDEPENDENT, "DDERR_SURFACEALREADYDEPENDENT") CHK_ERR(DDERR_SURFACEBUSY, "DDERR_SURFACEBUSY") CHK_ERR(DDERR_CANTLOCKSURFACE, "DDERR_CANTLOCKSURFACE") CHK_ERR(DDERR_SURFACEISOBSCURED, "DDERR_SURFACEISOBSCURED") CHK_ERR(DDERR_SURFACELOST, "DDERR_SURFACELOST") CHK_ERR(DDERR_SURFACENOTATTACHED, "DDERR_SURFACENOTATTACHED") CHK_ERR(DDERR_TOOBIGHEIGHT, "DDERR_TOOBIGHEIGHT") CHK_ERR(DDERR_TOOBIGSIZE, "DDERR_TOOBIGSIZE") CHK_ERR(DDERR_TOOBIGWIDTH, "DDERR_TOOBIGWIDTH") // CHK_ERR(DDERR_UNSUPPORTED, "DDERR_UNSUPPORTED") CHK_ERR(DDERR_UNSUPPORTEDFORMAT, "DDERR_UNSUPPORTEDFORMAT") CHK_ERR(DDERR_UNSUPPORTEDMASK, "DDERR_UNSUPPORTEDMASK") CHK_ERR(DDERR_INVALIDSTREAM, "DDERR_INVALIDSTREAM") CHK_ERR(DDERR_VERTICALBLANKINPROGRESS, "DDERR_VERTICALBLANKINPROGRESS") CHK_ERR(DDERR_WASSTILLDRAWING, "DDERR_WASSTILLDRAWING") CHK_ERR(DDERR_DDSCAPSCOMPLEXREQUIRED, "DDERR_DDSCAPSCOMPLEXREQUIRED") CHK_ERR(DDERR_XALIGN, "DDERR_XALIGN") CHK_ERR(DDERR_INVALIDDIRECTDRAWGUID, "DDERR_INVALIDDIRECTDRAWGUID") CHK_ERR(DDERR_DIRECTDRAWALREADYCREATED, "DDERR_DIRECTDRAWALREADYCREATED") CHK_ERR(DDERR_NODIRECTDRAWHW, "DDERR_NODIRECTDRAWHW") CHK_ERR(DDERR_PRIMARYSURFACEALREADYEXISTS, "DDERR_PRIMARYSURFACEALREADYEXISTS") CHK_ERR(DDERR_NOEMULATION, "DDERR_NOEMULATION") CHK_ERR(DDERR_REGIONTOOSMALL, "DDERR_REGIONTOOSMALL") CHK_ERR(DDERR_CLIPPERISUSINGHWND, "DDERR_CLIPPERISUSINGHWND") CHK_ERR(DDERR_NOCLIPPERATTACHED, "DDERR_NOCLIPPERATTACHED") CHK_ERR(DDERR_NOHWND, "DDERR_NOHWND") CHK_ERR(DDERR_HWNDSUBCLASSED, "DDERR_HWNDSUBCLASSED") CHK_ERR(DDERR_HWNDALREADYSET, "DDERR_HWNDALREADYSET") CHK_ERR(DDERR_NOPALETTEATTACHED, "DDERR_NOPALETTEATTACHED") CHK_ERR(DDERR_NOPALETTEHW, "DDERR_NOPALETTEHW") CHK_ERR(DDERR_BLTFASTCANTCLIP, "DDERR_BLTFASTCANTCLIP") CHK_ERR(DDERR_NOBLTHW, "DDERR_NOBLTHW") CHK_ERR(DDERR_NODDROPSHW, "DDERR_NODDROPSHW") CHK_ERR(DDERR_OVERLAYNOTVISIBLE, "DDERR_OVERLAYNOTVISIBLE") CHK_ERR(DDERR_NOOVERLAYDEST, "DDERR_NOOVERLAYDEST") CHK_ERR(DDERR_INVALIDPOSITION, "DDERR_INVALIDPOSITION") CHK_ERR(DDERR_NOTAOVERLAYSURFACE, "DDERR_NOTAOVERLAYSURFACE") CHK_ERR(DDERR_EXCLUSIVEMODEALREADYSET, "DDERR_EXCLUSIVEMODEALREADYSET") CHK_ERR(DDERR_NOTFLIPPABLE, "DDERR_NOTFLIPPABLE") CHK_ERR(DDERR_CANTDUPLICATE, "DDERR_CANTDUPLICATE") CHK_ERR(DDERR_NOTLOCKED, "DDERR_NOTLOCKED") CHK_ERR(DDERR_CANTCREATEDC, "DDERR_CANTCREATEDC") CHK_ERR(DDERR_NODC, "DDERR_NODC") CHK_ERR(DDERR_WRONGMODE, "DDERR_WRONGMODE") CHK_ERR(DDERR_IMPLICITLYCREATED, "DDERR_IMPLICITLYCREATED") CHK_ERR(DDERR_NOTPALETTIZED, "DDERR_NOTPALETTIZED") CHK_ERR(DDERR_UNSUPPORTEDMODE, "DDERR_UNSUPPORTEDMODE") CHK_ERR(DDERR_NOMIPMAPHW, "DDERR_NOMIPMAPHW") CHK_ERR(DDERR_INVALIDSURFACETYPE, "DDERR_INVALIDSURFACETYPE") CHK_ERR(DDERR_NOOPTIMIZEHW, "DDERR_NOOPTIMIZEHW") CHK_ERR(DDERR_NOTLOADED, "DDERR_NOTLOADED") CHK_ERR(DDERR_NOFOCUSWINDOW, "DDERR_NOFOCUSWINDOW") CHK_ERR(DDERR_NOTONMIPMAPSUBLEVEL, "DDERR_NOTONMIPMAPSUBLEVEL") CHK_ERR(DDERR_DCALREADYCREATED, "DDERR_DCALREADYCREATED") CHK_ERR(DDERR_NONONLOCALVIDMEM, "DDERR_NONONLOCALVIDMEM") CHK_ERR(DDERR_CANTPAGELOCK, "DDERR_CANTPAGELOCK") CHK_ERR(DDERR_CANTPAGEUNLOCK, "DDERR_CANTPAGEUNLOCK") CHK_ERR(DDERR_NOTPAGELOCKED, "DDERR_NOTPAGELOCKED") CHK_ERR(DDERR_MOREDATA, "DDERR_MOREDATA") CHK_ERR(DDERR_EXPIRED, "DDERR_EXPIRED") CHK_ERR(DDERR_TESTFINISHED, "DDERR_TESTFINISHED") CHK_ERR(DDERR_NEWMODE, "DDERR_NEWMODE") CHK_ERR(DDERR_D3DNOTINITIALIZED, "DDERR_D3DNOTINITIALIZED") CHK_ERR(DDERR_VIDEONOTACTIVE, "DDERR_VIDEONOTACTIVE") CHK_ERR(DDERR_NOMONITORINFORMATION, "DDERR_NOMONITORINFORMATION") CHK_ERR(DDERR_NODRIVERSUPPORT, "DDERR_NODRIVERSUPPORT") CHK_ERR(DDERR_DEVICEDOESNTOWNSURFACE, "DDERR_DEVICEDOESNTOWNSURFACE") // ------------------------------------------------------------- // dinput.h error codes as of 10/4/00 // ------------------------------------------------------------- // CHK_ERR(DI_OK, "DI_OK") // CHK_ERR(DI_NOTATTACHED, "DI_NOTATTACHED") // CHK_ERR(DI_BUFFEROVERFLOW, "DI_BUFFEROVERFLOW") // CHK_ERR(DI_PROPNOEFFECT, "DI_PROPNOEFFECT") // CHK_ERR(DI_NOEFFECT, "DI_NOEFFECT") // CHK_ERR(DI_POLLEDDEVICE, "DI_POLLEDDEVICE") // CHK_ERR(DI_DOWNLOADSKIPPED, "DI_DOWNLOADSKIPPED") // CHK_ERR(DI_EFFECTRESTARTED, "DI_EFFECTRESTARTED") // CHK_ERR(DI_SETTINGSNOTSAVED_ACCESSDENIED, "DI_SETTINGSNOTSAVED_ACCESSDENIED") // CHK_ERR(DI_SETTINGSNOTSAVED_DISKFULL, "DI_SETTINGSNOTSAVED_DISKFULL") // CHK_ERR(DI_TRUNCATED, "DI_TRUNCATED") // CHK_ERR(DI_TRUNCATEDANDRESTARTED, "DI_TRUNCATEDANDRESTARTED") // CHK_ERR(DI_WRITEPROTECT, "DI_WRITEPROTECT") CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, "DIERR_OLDDIRECTINPUTVERSION") // CHK_ERR(DIERR_GENERIC, "DIERR_GENERIC") // CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, "DIERR_OLDDIRECTINPUTVERSION") CHK_ERR(DIERR_BETADIRECTINPUTVERSION, "DIERR_BETADIRECTINPUTVERSION") CHK_ERR(DIERR_BADDRIVERVER, "DIERR_BADDRIVERVER") // CHK_ERR(DIERR_DEVICENOTREG, "DIERR_DEVICENOTREG") CHK_ERR(DIERR_NOTFOUND, "DIERR_NOTFOUND") // CHK_ERR(DIERR_OBJECTNOTFOUND, "DIERR_OBJECTNOTFOUND") // CHK_ERR(DIERR_INVALIDPARAM, "DIERR_INVALIDPARAM") // CHK_ERR(DIERR_NOINTERFACE, "DIERR_NOINTERFACE") // CHK_ERR(DIERR_GENERIC, "DIERR_GENERIC") // CHK_ERR(DIERR_OUTOFMEMORY, "DIERR_OUTOFMEMORY") // CHK_ERR(DIERR_UNSUPPORTED, "DIERR_UNSUPPORTED") CHK_ERR(DIERR_NOTINITIALIZED, "DIERR_NOTINITIALIZED") CHK_ERR(DIERR_ALREADYINITIALIZED, "DIERR_ALREADYINITIALIZED") // CHK_ERR(DIERR_NOAGGREGATION, "DIERR_NOAGGREGATION") // CHK_ERR(DIERR_OTHERAPPHASPRIO, "DIERR_OTHERAPPHASPRIO") CHK_ERR(DIERR_INPUTLOST, "DIERR_INPUTLOST") CHK_ERR(DIERR_ACQUIRED, "DIERR_ACQUIRED") CHK_ERR(DIERR_NOTACQUIRED, "DIERR_NOTACQUIRED") // CHK_ERR(DIERR_READONLY, "DIERR_READONLY") // CHK_ERR(DIERR_HANDLEEXISTS, "DIERR_HANDLEEXISTS") CHK_ERR(DIERR_INSUFFICIENTPRIVS, "DIERR_INSUFFICIENTPRIVS & VFW_E_INVALIDMEDIATYPE") CHK_ERR(DIERR_DEVICEFULL, "DIERR_DEVICEFULL & VFW_E_INVALIDSUBTYPE & DMO_E_INVALIDSTREAMINDEX") CHK_ERR(DIERR_MOREDATA, "DIERR_MOREDATA & VFW_E_NEED_OWNER & DMO_E_INVALIDTYPE") CHK_ERR(DIERR_NOTDOWNLOADED, "DIERR_NOTDOWNLOADED & VFW_E_ENUM_OUT_OF_SYNC & DMO_E_TYPE_NOT_SET") CHK_ERR(DIERR_HASEFFECTS, "DIERR_HASEFFECTS & VFW_E_ALREADY_CONNECTED & DMO_E_NOTACCEPTING") CHK_ERR(DIERR_NOTEXCLUSIVEACQUIRED, "DIERR_NOTEXCLUSIVEACQUIRED & VFW_E_FILTER_ACTIVE & DMO_E_TYPE_NOT_ACCEPTED") CHK_ERR(DIERR_INCOMPLETEEFFECT, "DIERR_INCOMPLETEEFFECT & VFW_E_NO_TYPES & DMO_E_NO_MORE_ITEMS") CHK_ERR(DIERR_NOTBUFFERED, "DIERR_NOTBUFFERED & VFW_E_NO_ACCEPTABLE_TYPES") CHK_ERR(DIERR_EFFECTPLAYING, "DIERR_EFFECTPLAYING & VFW_E_INVALID_DIRECTION") CHK_ERR(DIERR_UNPLUGGED, "DIERR_UNPLUGGED & VFW_E_NOT_CONNECTED") CHK_ERR(DIERR_REPORTFULL, "DIERR_REPORTFULL & VFW_E_NO_ALLOCATOR") CHK_ERR(DIERR_MAPFILEFAIL, "DIERR_MAPFILEFAIL & VFW_E_RUNTIME_ERROR") // ------------------------------------------------------------- // dinputd.h error codes as of 9/8/00 // ------------------------------------------------------------- CHK_ERR(DIERR_NOMOREITEMS, "DIERR_NOMOREITEMS") CHK_ERR(DIERR_DRIVERFIRST, "DIERR_DRIVERFIRST") CHK_ERR(DIERR_DRIVERFIRST+1, "DIERR_DRIVERFIRST+1") CHK_ERR(DIERR_DRIVERFIRST+2, "DIERR_DRIVERFIRST+2") CHK_ERR(DIERR_DRIVERFIRST+3, "DIERR_DRIVERFIRST+3") CHK_ERR(DIERR_DRIVERFIRST+4, "DIERR_DRIVERFIRST+4") CHK_ERR(DIERR_DRIVERFIRST+5, "DIERR_DRIVERFIRST+5") CHK_ERR(DIERR_DRIVERLAST, "DIERR_DRIVERLAST") CHK_ERR(DIERR_INVALIDCLASSINSTALLER, "DIERR_INVALIDCLASSINSTALLER") CHK_ERR(DIERR_CANCELLED, "DIERR_CANCELLED") CHK_ERR(DIERR_BADINF, "DIERR_BADINF") // ------------------------------------------------------------- // dvoice.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(DV_OK, "DV_OK") CHK_ERR(DV_FULLDUPLEX, "DV_FULLDUPLEX") CHK_ERR(DV_HALFDUPLEX, "DV_HALFDUPLEX") CHK_ERR(DV_PENDING, "DV_PENDING") CHK_ERR(DVERR_BUFFERTOOSMALL, "DVERR_BUFFERTOOSMALL") CHK_ERR(DVERR_EXCEPTION, "DVERR_EXCEPTION") // CHK_ERR(DVERR_GENERIC, "DVERR_GENERIC") CHK_ERR(DVERR_INVALIDFLAGS, "DVERR_INVALIDFLAGS") CHK_ERR(DVERR_INVALIDOBJECT, "DVERR_INVALIDOBJECT") CHK_ERR(DVERR_INVALIDPLAYER, "DVERR_INVALIDPLAYER") CHK_ERR(DVERR_INVALIDGROUP, "DVERR_INVALIDGROUP") CHK_ERR(DVERR_INVALIDHANDLE, "DVERR_INVALIDHANDLE") // CHK_ERR(DVERR_OUTOFMEMORY, "DVERR_OUTOFMEMORY") // CHK_ERR(DVERR_PENDING, "DVERR_PENDING") // CHK_ERR(DVERR_NOTSUPPORTED, "DVERR_NOTSUPPORTED") // CHK_ERR(DVERR_NOINTERFACE, "DVERR_NOINTERFACE") CHK_ERR(DVERR_SESSIONLOST, "DVERR_SESSIONLOST") CHK_ERR(DVERR_NOVOICESESSION, "DVERR_NOVOICESESSION") CHK_ERR(DVERR_CONNECTIONLOST, "DVERR_CONNECTIONLOST") CHK_ERR(DVERR_NOTINITIALIZED, "DVERR_NOTINITIALIZED") CHK_ERR(DVERR_CONNECTED, "DVERR_CONNECTED") CHK_ERR(DVERR_NOTCONNECTED, "DVERR_NOTCONNECTED") CHK_ERR(DVERR_CONNECTABORTING, "DVERR_CONNECTABORTING") CHK_ERR(DVERR_NOTALLOWED, "DVERR_NOTALLOWED") CHK_ERR(DVERR_INVALIDTARGET, "DVERR_INVALIDTARGET") CHK_ERR(DVERR_TRANSPORTNOTHOST, "DVERR_TRANSPORTNOTHOST") CHK_ERR(DVERR_COMPRESSIONNOTSUPPORTED, "DVERR_COMPRESSIONNOTSUPPORTED") CHK_ERR(DVERR_ALREADYPENDING, "DVERR_ALREADYPENDING") CHK_ERR(DVERR_SOUNDINITFAILURE, "DVERR_SOUNDINITFAILURE") CHK_ERR(DVERR_TIMEOUT, "DVERR_TIMEOUT") CHK_ERR(DVERR_CONNECTABORTED, "DVERR_CONNECTABORTED") CHK_ERR(DVERR_NO3DSOUND, "DVERR_NO3DSOUND") CHK_ERR(DVERR_ALREADYBUFFERED, "DVERR_ALREADYBUFFERED") CHK_ERR(DVERR_NOTBUFFERED, "DVERR_NOTBUFFERED") CHK_ERR(DVERR_HOSTING, "DVERR_HOSTING") CHK_ERR(DVERR_NOTHOSTING, "DVERR_NOTHOSTING") CHK_ERR(DVERR_INVALIDDEVICE, "DVERR_INVALIDDEVICE") CHK_ERR(DVERR_RECORDSYSTEMERROR, "DVERR_RECORDSYSTEMERROR") CHK_ERR(DVERR_PLAYBACKSYSTEMERROR, "DVERR_PLAYBACKSYSTEMERROR") CHK_ERR(DVERR_SENDERROR, "DVERR_SENDERROR") CHK_ERR(DVERR_USERCANCEL, "DVERR_USERCANCEL") CHK_ERR(DVERR_RUNSETUP, "DVERR_RUNSETUP") CHK_ERR(DVERR_INCOMPATIBLEVERSION, "DVERR_INCOMPATIBLEVERSION") CHK_ERR(DVERR_INITIALIZED, "DVERR_INITIALIZED") // CHK_ERR(DVERR_INVALIDPOINTER, "DVERR_INVALIDPOINTER") CHK_ERR(DVERR_NOTRANSPORT, "DVERR_NOTRANSPORT") CHK_ERR(DVERR_NOCALLBACK, "DVERR_NOCALLBACK") CHK_ERR(DVERR_TRANSPORTNOTINIT, "DVERR_TRANSPORTNOTINIT") CHK_ERR(DVERR_TRANSPORTNOSESSION, "DVERR_TRANSPORTNOSESSION") CHK_ERR(DVERR_TRANSPORTNOPLAYER, "DVERR_TRANSPORTNOPLAYER") CHK_ERR(DVERR_USERBACK, "DVERR_USERBACK") CHK_ERR(DVERR_NORECVOLAVAILABLE, "DVERR_NORECVOLAVAILABLE") CHK_ERR(DVERR_INVALIDBUFFER, "DVERR_INVALIDBUFFER") CHK_ERR(DVERR_LOCKEDBUFFER, "DVERR_LOCKEDBUFFER") // ------------------------------------------------------------- // dplay8.h error codes as of 10/4/00 // ------------------------------------------------------------- CHK_ERR(DPNERR_ABORTED, "DPNERR_ABORTED") CHK_ERR(DPNERR_ADDRESSING, "DPNERR_ADDRESSING") CHK_ERR(DPNERR_ALREADYCLOSING, "DPNERR_ALREADYCLOSING") CHK_ERR(DPNERR_ALREADYCONNECTED, "DPNERR_ALREADYCONNECTED") CHK_ERR(DPNERR_ALREADYDISCONNECTING, "DPNERR_ALREADYDISCONNECTING") CHK_ERR(DPNERR_ALREADYINITIALIZED, "DPNERR_ALREADYINITIALIZED") CHK_ERR(DPNERR_ALREADYREGISTERED, "DPNERR_ALREADYREGISTERED") CHK_ERR(DPNERR_BUFFERTOOSMALL, "DPNERR_BUFFERTOOSMALL") CHK_ERR(DPNERR_CANNOTCANCEL, "DPNERR_CANNOTCANCEL") CHK_ERR(DPNERR_CANTCREATEGROUP, "DPNERR_CANTCREATEGROUP") CHK_ERR(DPNERR_CANTCREATEPLAYER, "DPNERR_CANTCREATEPLAYER") CHK_ERR(DPNERR_CANTLAUNCHAPPLICATION, "DPNERR_CANTLAUNCHAPPLICATION") CHK_ERR(DPNERR_CONNECTING, "DPNERR_CONNECTING") CHK_ERR(DPNERR_CONNECTIONLOST, "DPNERR_CONNECTIONLOST") CHK_ERR(DPNERR_CONVERSION, "DPNERR_CONVERSION") CHK_ERR(DPNERR_DATATOOLARGE, "DPNERR_DATATOOLARGE") CHK_ERR(DPNERR_DOESNOTEXIST, "DPNERR_DOESNOTEXIST") CHK_ERR(DPNERR_DUPLICATECOMMAND, "DPNERR_DUPLICATECOMMAND") CHK_ERR(DPNERR_ENDPOINTNOTRECEIVING, "DPNERR_ENDPOINTNOTRECEIVING") CHK_ERR(DPNERR_ENUMQUERYTOOLARGE, "DPNERR_ENUMQUERYTOOLARGE") CHK_ERR(DPNERR_ENUMRESPONSETOOLARGE, "DPNERR_ENUMRESPONSETOOLARGE") CHK_ERR(DPNERR_EXCEPTION, "DPNERR_EXCEPTION") CHK_ERR(DPNERR_GROUPNOTEMPTY, "DPNERR_GROUPNOTEMPTY") CHK_ERR(DPNERR_HOSTING, "DPNERR_HOSTING") CHK_ERR(DPNERR_HOSTREJECTEDCONNECTION, "DPNERR_HOSTREJECTEDCONNECTION") CHK_ERR(DPNERR_HOSTTERMINATEDSESSION, "DPNERR_HOSTTERMINATEDSESSION") CHK_ERR(DPNERR_INCOMPLETEADDRESS, "DPNERR_INCOMPLETEADDRESS") CHK_ERR(DPNERR_INVALIDADDRESSFORMAT, "DPNERR_INVALIDADDRESSFORMAT") CHK_ERR(DPNERR_INVALIDAPPLICATION, "DPNERR_INVALIDAPPLICATION") CHK_ERR(DPNERR_INVALIDCOMMAND, "DPNERR_INVALIDCOMMAND") CHK_ERR(DPNERR_INVALIDENDPOINT, "DPNERR_INVALIDENDPOINT") CHK_ERR(DPNERR_INVALIDFLAGS, "DPNERR_INVALIDFLAGS") CHK_ERR(DPNERR_INVALIDGROUP, "DPNERR_INVALIDGROUP") CHK_ERR(DPNERR_INVALIDHANDLE, "DPNERR_INVALIDHANDLE") CHK_ERR(DPNERR_INVALIDINSTANCE, "DPNERR_INVALIDINSTANCE") CHK_ERR(DPNERR_INVALIDINTERFACE, "DPNERR_INVALIDINTERFACE") CHK_ERR(DPNERR_INVALIDDEVICEADDRESS, "DPNERR_INVALIDDEVICEADDRESS") CHK_ERR(DPNERR_INVALIDOBJECT, "DPNERR_INVALIDOBJECT") // CHK_ERR(DPNERR_INVALIDPARAM, "DPNERR_INVALIDPARAM") CHK_ERR(DPNERR_INVALIDPASSWORD, "DPNERR_INVALIDPASSWORD") CHK_ERR(DPNERR_INVALIDPLAYER, "DPNERR_INVALIDPLAYER") // CHK_ERR(DPNERR_INVALIDPOINTER, "DPNERR_INVALIDPOINTER") CHK_ERR(DPNERR_INVALIDPRIORITY, "DPNERR_INVALIDPRIORITY") CHK_ERR(DPNERR_INVALIDHOSTADDRESS, "DPNERR_INVALIDHOSTADDRESS") CHK_ERR(DPNERR_INVALIDSTRING, "DPNERR_INVALIDSTRING") CHK_ERR(DPNERR_INVALIDURL, "DPNERR_INVALIDURL") CHK_ERR(DPNERR_INVALIDVERSION, "DPNERR_INVALIDVERSION") CHK_ERR(DPNERR_NOCAPS, "DPNERR_NOCAPS") CHK_ERR(DPNERR_NOCONNECTION, "DPNERR_NOCONNECTION") CHK_ERR(DPNERR_NOHOSTPLAYER, "DPNERR_NOHOSTPLAYER") // CHK_ERR(DPNERR_NOINTERFACE, "DPNERR_NOINTERFACE") CHK_ERR(DPNERR_NOMOREADDRESSCOMPONENTS, "DPNERR_NOMOREADDRESSCOMPONENTS") CHK_ERR(DPNERR_NORESPONSE, "DPNERR_NORESPONSE") CHK_ERR(DPNERR_NOTALLOWED, "DPNERR_NOTALLOWED") CHK_ERR(DPNERR_NOTHOST, "DPNERR_NOTHOST") CHK_ERR(DPNERR_NOTREADY, "DPNERR_NOTREADY") CHK_ERR(DPNERR_NOTREGISTERED, "DPNERR_NOTREGISTERED") // CHK_ERR(DPNERR_OUTOFMEMORY, "DPNERR_OUTOFMEMORY") // CHK_ERR(DPNERR_PENDING, "DPNERR_PENDING") CHK_ERR(DPNERR_PLAYERLOST, "DPNERR_PLAYERLOST") CHK_ERR(DPNERR_PLAYERNOTREACHABLE, "DPNERR_PLAYERNOTREACHABLE") CHK_ERR(DPNERR_SENDTOOLARGE, "DPNERR_SENDTOOLARGE") CHK_ERR(DPNERR_SESSIONFULL, "DPNERR_SESSIONFULL") CHK_ERR(DPNERR_TABLEFULL, "DPNERR_TABLEFULL") CHK_ERR(DPNERR_TIMEDOUT, "DPNERR_TIMEDOUT") CHK_ERR(DPNERR_UNINITIALIZED, "DPNERR_UNINITIALIZED") // CHK_ERR(DPNERR_UNSUPPORTED, "DPNERR_UNSUPPORTED") CHK_ERR(DPNERR_USERCANCEL, "DPNERR_USERCANCEL") // ------------------------------------------------------------- // dxfile.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(DXFILE_OK, "DXFILE_OK") CHK_ERR(DXFILEERR_BADOBJECT, "DXFILEERR_BADOBJECT") CHK_ERR(DXFILEERR_BADVALUE, "DXFILEERR_BADVALUE") CHK_ERR(DXFILEERR_BADTYPE, "DXFILEERR_BADTYPE") CHK_ERR(DXFILEERR_BADSTREAMHANDLE, "DXFILEERR_BADSTREAMHANDLE") CHK_ERR(DXFILEERR_BADALLOC, "DXFILEERR_BADALLOC") CHK_ERR(DXFILEERR_NOTFOUND, "DXFILEERR_NOTFOUND") CHK_ERR(DXFILEERR_NOTDONEYET, "DXFILEERR_NOTDONEYET") CHK_ERR(DXFILEERR_FILENOTFOUND, "DXFILEERR_FILENOTFOUND") CHK_ERR(DXFILEERR_RESOURCENOTFOUND, "DXFILEERR_RESOURCENOTFOUND") CHK_ERR(DXFILEERR_URLNOTFOUND, "DXFILEERR_URLNOTFOUND") CHK_ERR(DXFILEERR_BADRESOURCE, "DXFILEERR_BADRESOURCE") CHK_ERR(DXFILEERR_BADFILETYPE, "DXFILEERR_BADFILETYPE") CHK_ERR(DXFILEERR_BADFILEVERSION, "DXFILEERR_BADFILEVERSION") CHK_ERR(DXFILEERR_BADFILEFLOATSIZE, "DXFILEERR_BADFILEFLOATSIZE") CHK_ERR(DXFILEERR_BADFILECOMPRESSIONTYPE, "DXFILEERR_BADFILECOMPRESSIONTYPE") CHK_ERR(DXFILEERR_BADFILE, "DXFILEERR_BADFILE") CHK_ERR(DXFILEERR_PARSEERROR, "DXFILEERR_PARSEERROR") CHK_ERR(DXFILEERR_NOTEMPLATE, "DXFILEERR_NOTEMPLATE") CHK_ERR(DXFILEERR_BADARRAYSIZE, "DXFILEERR_BADARRAYSIZE") CHK_ERR(DXFILEERR_BADDATAREFERENCE, "DXFILEERR_BADDATAREFERENCE") CHK_ERR(DXFILEERR_INTERNALERROR, "DXFILEERR_INTERNALERROR") CHK_ERR(DXFILEERR_NOMOREOBJECTS, "DXFILEERR_NOMOREOBJECTS") CHK_ERR(DXFILEERR_BADINTRINSICS, "DXFILEERR_BADINTRINSICS") CHK_ERR(DXFILEERR_NOMORESTREAMHANDLES, "DXFILEERR_NOMORESTREAMHANDLES") CHK_ERR(DXFILEERR_NOMOREDATA, "DXFILEERR_NOMOREDATA") CHK_ERR(DXFILEERR_BADCACHEFILE, "DXFILEERR_BADCACHEFILE") CHK_ERR(DXFILEERR_NOINTERNET, "DXFILEERR_NOINTERNET") // ------------------------------------------------------------- // d3d8.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(D3D_OK, "D3D_OK") CHK_ERR(D3DERR_WRONGTEXTUREFORMAT, "D3DERR_WRONGTEXTUREFORMAT") CHK_ERR(D3DERR_UNSUPPORTEDCOLOROPERATION, "D3DERR_UNSUPPORTEDCOLOROPERATION") CHK_ERR(D3DERR_UNSUPPORTEDCOLORARG, "D3DERR_UNSUPPORTEDCOLORARG") CHK_ERR(D3DERR_UNSUPPORTEDALPHAOPERATION, "D3DERR_UNSUPPORTEDALPHAOPERATION") CHK_ERR(D3DERR_UNSUPPORTEDALPHAARG, "D3DERR_UNSUPPORTEDALPHAARG") CHK_ERR(D3DERR_TOOMANYOPERATIONS, "D3DERR_TOOMANYOPERATIONS") CHK_ERR(D3DERR_CONFLICTINGTEXTUREFILTER, "D3DERR_CONFLICTINGTEXTUREFILTER") CHK_ERR(D3DERR_UNSUPPORTEDFACTORVALUE, "D3DERR_UNSUPPORTEDFACTORVALUE") CHK_ERR(D3DERR_CONFLICTINGRENDERSTATE, "D3DERR_CONFLICTINGRENDERSTATE") CHK_ERR(D3DERR_UNSUPPORTEDTEXTUREFILTER, "D3DERR_UNSUPPORTEDTEXTUREFILTER") CHK_ERR(D3DERR_CONFLICTINGTEXTUREPALETTE, "D3DERR_CONFLICTINGTEXTUREPALETTE") CHK_ERR(D3DERR_DRIVERINTERNALERROR, "D3DERR_DRIVERINTERNALERROR") CHK_ERR(D3DERR_NOTFOUND, "D3DERR_NOTFOUND") CHK_ERR(D3DERR_MOREDATA, "D3DERR_MOREDATA") CHK_ERR(D3DERR_DEVICELOST, "D3DERR_DEVICELOST") CHK_ERR(D3DERR_DEVICENOTRESET, "D3DERR_DEVICENOTRESET") CHK_ERR(D3DERR_NOTAVAILABLE, "D3DERR_NOTAVAILABLE") CHK_ERR(D3DERR_OUTOFVIDEOMEMORY, "D3DERR_OUTOFVIDEOMEMORY") CHK_ERR(D3DERR_INVALIDDEVICE, "D3DERR_INVALIDDEVICE") CHK_ERR(D3DERR_INVALIDCALL, "D3DERR_INVALIDCALL") CHK_ERR(D3DERR_DRIVERINVALIDCALL, "D3DERR_DRIVERINVALIDCALL") // ------------------------------------------------------------- // d3dx8mesh.h error codes as of 12/5/00 // ------------------------------------------------------------- CHK_ERR(D3DXERR_CANNOTMODIFYINDEXBUFFER, "D3DXERR_CANNOTMODIFYINDEXBUFFER") CHK_ERR(D3DXERR_INVALIDMESH, "D3DXERR_INVALIDMESH") CHK_ERR(D3DXERR_CANNOTATTRSORT, "D3DXERR_CANNOTATTRSORT") CHK_ERR(D3DXERR_SKINNINGNOTSUPPORTED, "D3DXERR_SKINNINGNOTSUPPORTED") CHK_ERR(D3DXERR_TOOMANYINFLUENCES, "D3DXERR_TOOMANYINFLUENCES") CHK_ERR(D3DXERR_INVALIDDATA, "D3DXERR_INVALIDDATA") // ------------------------------------------------------------- // dsound.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(DS_OK, "DS_OK") CHK_ERR(DS_NO_VIRTUALIZATION, "DS_NO_VIRTUALIZATION") CHK_ERR(DS_INCOMPLETE, "DS_INCOMPLETE") CHK_ERR(DSERR_ALLOCATED, "DSERR_ALLOCATED") CHK_ERR(DSERR_CONTROLUNAVAIL, "DSERR_CONTROLUNAVAIL") // CHK_ERR(DSERR_INVALIDPARAM, "DSERR_INVALIDPARAM") CHK_ERR(DSERR_INVALIDCALL, "DSERR_INVALIDCALL") // CHK_ERR(DSERR_GENERIC, "DSERR_GENERIC") CHK_ERR(DSERR_PRIOLEVELNEEDED, "DSERR_PRIOLEVELNEEDED") // CHK_ERR(DSERR_OUTOFMEMORY, "DSERR_OUTOFMEMORY") CHK_ERR(DSERR_BADFORMAT, "DSERR_BADFORMAT") // CHK_ERR(DSERR_UNSUPPORTED, "DSERR_UNSUPPORTED") CHK_ERR(DSERR_NODRIVER, "DSERR_NODRIVER") CHK_ERR(DSERR_ALREADYINITIALIZED, "DSERR_ALREADYINITIALIZED") // CHK_ERR(DSERR_NOAGGREGATION, "DSERR_NOAGGREGATION") CHK_ERR(DSERR_BUFFERLOST, "DSERR_BUFFERLOST") CHK_ERR(DSERR_OTHERAPPHASPRIO, "DSERR_OTHERAPPHASPRIO") CHK_ERR(DSERR_UNINITIALIZED, "DSERR_UNINITIALIZED") // CHK_ERR(DSERR_NOINTERFACE, "DSERR_NOINTERFACE") // CHK_ERR(DSERR_ACCESSDENIED, "DSERR_ACCESSDENIED") CHK_ERR(DSERR_BUFFERTOOSMALL, "DSERR_BUFFERTOOSMALL") CHK_ERR(DSERR_DS8_REQUIRED, "DSERR_DS8_REQUIRED") CHK_ERR(DSERR_SENDLOOP, "DSERR_SENDLOOP") CHK_ERR(DSERR_BADSENDBUFFERGUID, "DSERR_BADSENDBUFFERGUID") CHK_ERR(DSERR_OBJECTNOTFOUND, "DSERR_OBJECTNOTFOUND") // ------------------------------------------------------------- // dmerror.h error codes as of 9/8/00 // ------------------------------------------------------------- CHK_ERR(DMUS_S_PARTIALLOAD, "DMUS_S_PARTIALLOAD") CHK_ERR(DMUS_S_PARTIALDOWNLOAD, "DMUS_S_PARTIALDOWNLOAD") CHK_ERR(DMUS_S_REQUEUE, "DMUS_S_REQUEUE") CHK_ERR(DMUS_S_FREE, "DMUS_S_FREE") CHK_ERR(DMUS_S_END, "DMUS_S_END") CHK_ERR(DMUS_S_STRING_TRUNCATED, "DMUS_S_STRING_TRUNCATED") CHK_ERR(DMUS_S_LAST_TOOL, "DMUS_S_LAST_TOOL") CHK_ERR(DMUS_S_OVER_CHORD, "DMUS_S_OVER_CHORD") CHK_ERR(DMUS_S_UP_OCTAVE, "DMUS_S_UP_OCTAVE") CHK_ERR(DMUS_S_DOWN_OCTAVE, "DMUS_S_DOWN_OCTAVE") CHK_ERR(DMUS_S_NOBUFFERCONTROL, "DMUS_S_NOBUFFERCONTROL") CHK_ERR(DMUS_S_GARBAGE_COLLECTED, "DMUS_S_GARBAGE_COLLECTED") CHK_ERR(DMUS_E_DRIVER_FAILED, "DMUS_E_DRIVER_FAILED") CHK_ERR(DMUS_E_PORTS_OPEN, "DMUS_E_PORTS_OPEN") CHK_ERR(DMUS_E_DEVICE_IN_USE, "DMUS_E_DEVICE_IN_USE") CHK_ERR(DMUS_E_INSUFFICIENTBUFFER, "DMUS_E_INSUFFICIENTBUFFER") CHK_ERR(DMUS_E_BUFFERNOTSET, "DMUS_E_BUFFERNOTSET") CHK_ERR(DMUS_E_BUFFERNOTAVAILABLE, "DMUS_E_BUFFERNOTAVAILABLE") CHK_ERR(DMUS_E_NOTADLSCOL, "DMUS_E_NOTADLSCOL") CHK_ERR(DMUS_E_INVALIDOFFSET, "DMUS_E_INVALIDOFFSET") CHK_ERR(DMUS_E_ALREADY_LOADED, "DMUS_E_ALREADY_LOADED") CHK_ERR(DMUS_E_INVALIDPOS, "DMUS_E_INVALIDPOS") CHK_ERR(DMUS_E_INVALIDPATCH, "DMUS_E_INVALIDPATCH") CHK_ERR(DMUS_E_CANNOTSEEK, "DMUS_E_CANNOTSEEK") CHK_ERR(DMUS_E_CANNOTWRITE, "DMUS_E_CANNOTWRITE") CHK_ERR(DMUS_E_CHUNKNOTFOUND, "DMUS_E_CHUNKNOTFOUND") CHK_ERR(DMUS_E_INVALID_DOWNLOADID, "DMUS_E_INVALID_DOWNLOADID") CHK_ERR(DMUS_E_NOT_DOWNLOADED_TO_PORT, "DMUS_E_NOT_DOWNLOADED_TO_PORT") CHK_ERR(DMUS_E_ALREADY_DOWNLOADED, "DMUS_E_ALREADY_DOWNLOADED") CHK_ERR(DMUS_E_UNKNOWN_PROPERTY, "DMUS_E_UNKNOWN_PROPERTY") CHK_ERR(DMUS_E_SET_UNSUPPORTED, "DMUS_E_SET_UNSUPPORTED") CHK_ERR(DMUS_E_GET_UNSUPPORTED, "DMUS_E_GET_UNSUPPORTED") CHK_ERR(DMUS_E_NOTMONO, "DMUS_E_NOTMONO") CHK_ERR(DMUS_E_BADARTICULATION, "DMUS_E_BADARTICULATION") CHK_ERR(DMUS_E_BADINSTRUMENT, "DMUS_E_BADINSTRUMENT") CHK_ERR(DMUS_E_BADWAVELINK, "DMUS_E_BADWAVELINK") CHK_ERR(DMUS_E_NOARTICULATION, "DMUS_E_NOARTICULATION") CHK_ERR(DMUS_E_NOTPCM, "DMUS_E_NOTPCM") CHK_ERR(DMUS_E_BADWAVE, "DMUS_E_BADWAVE") CHK_ERR(DMUS_E_BADOFFSETTABLE, "DMUS_E_BADOFFSETTABLE") CHK_ERR(DMUS_E_UNKNOWNDOWNLOAD, "DMUS_E_UNKNOWNDOWNLOAD") CHK_ERR(DMUS_E_NOSYNTHSINK, "DMUS_E_NOSYNTHSINK") CHK_ERR(DMUS_E_ALREADYOPEN, "DMUS_E_ALREADYOPEN") CHK_ERR(DMUS_E_ALREADYCLOSED, "DMUS_E_ALREADYCLOSED") CHK_ERR(DMUS_E_SYNTHNOTCONFIGURED, "DMUS_E_SYNTHNOTCONFIGURED") CHK_ERR(DMUS_E_SYNTHACTIVE, "DMUS_E_SYNTHACTIVE") CHK_ERR(DMUS_E_CANNOTREAD, "DMUS_E_CANNOTREAD") CHK_ERR(DMUS_E_DMUSIC_RELEASED, "DMUS_E_DMUSIC_RELEASED") CHK_ERR(DMUS_E_BUFFER_EMPTY, "DMUS_E_BUFFER_EMPTY") CHK_ERR(DMUS_E_BUFFER_FULL, "DMUS_E_BUFFER_FULL") CHK_ERR(DMUS_E_PORT_NOT_CAPTURE, "DMUS_E_PORT_NOT_CAPTURE") CHK_ERR(DMUS_E_PORT_NOT_RENDER, "DMUS_E_PORT_NOT_RENDER") CHK_ERR(DMUS_E_DSOUND_NOT_SET, "DMUS_E_DSOUND_NOT_SET") CHK_ERR(DMUS_E_ALREADY_ACTIVATED, "DMUS_E_ALREADY_ACTIVATED") CHK_ERR(DMUS_E_INVALIDBUFFER, "DMUS_E_INVALIDBUFFER") CHK_ERR(DMUS_E_WAVEFORMATNOTSUPPORTED, "DMUS_E_WAVEFORMATNOTSUPPORTED") CHK_ERR(DMUS_E_SYNTHINACTIVE, "DMUS_E_SYNTHINACTIVE") CHK_ERR(DMUS_E_DSOUND_ALREADY_SET, "DMUS_E_DSOUND_ALREADY_SET") CHK_ERR(DMUS_E_INVALID_EVENT, "DMUS_E_INVALID_EVENT") CHK_ERR(DMUS_E_UNSUPPORTED_STREAM, "DMUS_E_UNSUPPORTED_STREAM") CHK_ERR(DMUS_E_ALREADY_INITED, "DMUS_E_ALREADY_INITED") CHK_ERR(DMUS_E_INVALID_BAND, "DMUS_E_INVALID_BAND") CHK_ERR(DMUS_E_TRACK_HDR_NOT_FIRST_CK, "DMUS_E_TRACK_HDR_NOT_FIRST_CK") CHK_ERR(DMUS_E_TOOL_HDR_NOT_FIRST_CK, "DMUS_E_TOOL_HDR_NOT_FIRST_CK") CHK_ERR(DMUS_E_INVALID_TRACK_HDR, "DMUS_E_INVALID_TRACK_HDR") CHK_ERR(DMUS_E_INVALID_TOOL_HDR, "DMUS_E_INVALID_TOOL_HDR") CHK_ERR(DMUS_E_ALL_TOOLS_FAILED, "DMUS_E_ALL_TOOLS_FAILED") CHK_ERR(DMUS_E_ALL_TRACKS_FAILED, "DMUS_E_ALL_TRACKS_FAILED") // CHK_ERR(DMUS_E_NOT_FOUND, "DMUS_E_NOT_FOUND") CHK_ERR(DMUS_E_NOT_INIT, "DMUS_E_NOT_INIT") CHK_ERR(DMUS_E_TYPE_DISABLED, "DMUS_E_TYPE_DISABLED") CHK_ERR(DMUS_E_TYPE_UNSUPPORTED, "DMUS_E_TYPE_UNSUPPORTED") CHK_ERR(DMUS_E_TIME_PAST, "DMUS_E_TIME_PAST") CHK_ERR(DMUS_E_TRACK_NOT_FOUND, "DMUS_E_TRACK_NOT_FOUND") CHK_ERR(DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT, "DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT") CHK_ERR(DMUS_E_NO_MASTER_CLOCK, "DMUS_E_NO_MASTER_CLOCK") CHK_ERR(DMUS_E_LOADER_NOCLASSID, "DMUS_E_LOADER_NOCLASSID") CHK_ERR(DMUS_E_LOADER_BADPATH, "DMUS_E_LOADER_BADPATH") CHK_ERR(DMUS_E_LOADER_FAILEDOPEN, "DMUS_E_LOADER_FAILEDOPEN") CHK_ERR(DMUS_E_LOADER_FORMATNOTSUPPORTED, "DMUS_E_LOADER_FORMATNOTSUPPORTED") CHK_ERR(DMUS_E_LOADER_FAILEDCREATE, "DMUS_E_LOADER_FAILEDCREATE") CHK_ERR(DMUS_E_LOADER_OBJECTNOTFOUND, "DMUS_E_LOADER_OBJECTNOTFOUND") CHK_ERR(DMUS_E_LOADER_NOFILENAME, "DMUS_E_LOADER_NOFILENAME") CHK_ERR(DMUS_E_INVALIDFILE, "DMUS_E_INVALIDFILE") CHK_ERR(DMUS_E_ALREADY_EXISTS, "DMUS_E_ALREADY_EXISTS") CHK_ERR(DMUS_E_OUT_OF_RANGE, "DMUS_E_OUT_OF_RANGE") CHK_ERR(DMUS_E_SEGMENT_INIT_FAILED, "DMUS_E_SEGMENT_INIT_FAILED") CHK_ERR(DMUS_E_ALREADY_SENT, "DMUS_E_ALREADY_SENT") CHK_ERR(DMUS_E_CANNOT_FREE, "DMUS_E_CANNOT_FREE") CHK_ERR(DMUS_E_CANNOT_OPEN_PORT, "DMUS_E_CANNOT_OPEN_PORT") CHK_ERR(DMUS_E_CANNOT_CONVERT, "DMUS_E_CANNOT_CONVERT") CHK_ERR(DMUS_E_DESCEND_CHUNK_FAIL, "DMUS_E_DESCEND_CHUNK_FAIL") CHK_ERR(DMUS_E_NOT_LOADED, "DMUS_E_NOT_LOADED") CHK_ERR(DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE, "DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE") CHK_ERR(DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE, "DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE") CHK_ERR(DMUS_E_SCRIPT_ERROR_IN_SCRIPT, "DMUS_E_SCRIPT_ERROR_IN_SCRIPT") CHK_ERR(DMUS_E_SCRIPT_CANTLOAD_OLEAUT32, "DMUS_E_SCRIPT_CANTLOAD_OLEAUT32") CHK_ERR(DMUS_E_SCRIPT_LOADSCRIPT_ERROR, "DMUS_E_SCRIPT_LOADSCRIPT_ERROR") CHK_ERR(DMUS_E_SCRIPT_INVALID_FILE, "DMUS_E_SCRIPT_INVALID_FILE") CHK_ERR(DMUS_E_INVALID_SCRIPTTRACK, "DMUS_E_INVALID_SCRIPTTRACK") CHK_ERR(DMUS_E_SCRIPT_VARIABLE_NOT_FOUND, "DMUS_E_SCRIPT_VARIABLE_NOT_FOUND") CHK_ERR(DMUS_E_SCRIPT_ROUTINE_NOT_FOUND, "DMUS_E_SCRIPT_ROUTINE_NOT_FOUND") CHK_ERR(DMUS_E_SCRIPT_CONTENT_READONLY, "DMUS_E_SCRIPT_CONTENT_READONLY") CHK_ERR(DMUS_E_SCRIPT_NOT_A_REFERENCE, "DMUS_E_SCRIPT_NOT_A_REFERENCE") CHK_ERR(DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED, "DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED") CHK_ERR(DMUS_E_INVALID_SEGMENTTRIGGERTRACK, "DMUS_E_INVALID_SEGMENTTRIGGERTRACK") CHK_ERR(DMUS_E_INVALID_LYRICSTRACK, "DMUS_E_INVALID_LYRICSTRACK") CHK_ERR(DMUS_E_INVALID_PARAMCONTROLTRACK, "DMUS_E_INVALID_PARAMCONTROLTRACK") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR, "DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR, "DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE, "DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE") CHK_ERR(DMUS_E_AUDIOPATHS_NOT_VALID, "DMUS_E_AUDIOPATHS_NOT_VALID") CHK_ERR(DMUS_E_AUDIOPATHS_IN_USE, "DMUS_E_AUDIOPATHS_IN_USE") CHK_ERR(DMUS_E_NO_AUDIOPATH_CONFIG, "DMUS_E_NO_AUDIOPATH_CONFIG") CHK_ERR(DMUS_E_AUDIOPATH_INACTIVE, "DMUS_E_AUDIOPATH_INACTIVE") CHK_ERR(DMUS_E_AUDIOPATH_NOBUFFER, "DMUS_E_AUDIOPATH_NOBUFFER") CHK_ERR(DMUS_E_AUDIOPATH_NOPORT, "DMUS_E_AUDIOPATH_NOPORT") CHK_ERR(DMUS_E_NO_AUDIOPATH, "DMUS_E_NO_AUDIOPATH") CHK_ERR(DMUS_E_INVALIDCHUNK, "DMUS_E_INVALIDCHUNK") CHK_ERR(DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER, "DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER") CHK_ERR(DMUS_E_INVALID_CONTAINER_OBJECT, "DMUS_E_INVALID_CONTAINER_OBJECT") // ------------------------------------------------------------- // vfwmsgs.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(VFW_E_INVALIDMEDIATYPE, "VFW_E_INVALIDMEDIATYPE") // CHK_ERR(VFW_E_INVALIDSUBTYPE, "VFW_E_INVALIDSUBTYPE") // CHK_ERR(VFW_E_NEED_OWNER, "VFW_E_NEED_OWNER") // CHK_ERR(VFW_E_ENUM_OUT_OF_SYNC, "VFW_E_ENUM_OUT_OF_SYNC") // CHK_ERR(VFW_E_ALREADY_CONNECTED, "VFW_E_ALREADY_CONNECTED") // CHK_ERR(VFW_E_FILTER_ACTIVE, "VFW_E_FILTER_ACTIVE") // CHK_ERR(VFW_E_NO_TYPES, "VFW_E_NO_TYPES") // CHK_ERR(VFW_E_NO_ACCEPTABLE_TYPES, "VFW_E_NO_ACCEPTABLE_TYPES") // CHK_ERR(VFW_E_INVALID_DIRECTION, "VFW_E_INVALID_DIRECTION") // CHK_ERR(VFW_E_NOT_CONNECTED, "VFW_E_NOT_CONNECTED") // CHK_ERR(VFW_E_NO_ALLOCATOR, "VFW_E_NO_ALLOCATOR") // CHK_ERR(VFW_E_RUNTIME_ERROR, "VFW_E_RUNTIME_ERROR") CHK_ERR(VFW_E_BUFFER_NOTSET, "VFW_E_BUFFER_NOTSET") CHK_ERR(VFW_E_BUFFER_OVERFLOW, "VFW_E_BUFFER_OVERFLOW") CHK_ERR(VFW_E_BADALIGN, "VFW_E_BADALIGN") CHK_ERR(VFW_E_ALREADY_COMMITTED, "VFW_E_ALREADY_COMMITTED") CHK_ERR(VFW_E_BUFFERS_OUTSTANDING, "VFW_E_BUFFERS_OUTSTANDING") CHK_ERR(VFW_E_NOT_COMMITTED, "VFW_E_NOT_COMMITTED") CHK_ERR(VFW_E_SIZENOTSET, "VFW_E_SIZENOTSET") CHK_ERR(VFW_E_NO_CLOCK, "VFW_E_NO_CLOCK") CHK_ERR(VFW_E_NO_SINK, "VFW_E_NO_SINK") CHK_ERR(VFW_E_NO_INTERFACE, "VFW_E_NO_INTERFACE") CHK_ERR(VFW_E_NOT_FOUND, "VFW_E_NOT_FOUND") CHK_ERR(VFW_E_CANNOT_CONNECT, "VFW_E_CANNOT_CONNECT") CHK_ERR(VFW_E_CANNOT_RENDER, "VFW_E_CANNOT_RENDER") CHK_ERR(VFW_E_CHANGING_FORMAT, "VFW_E_CHANGING_FORMAT") CHK_ERR(VFW_E_NO_COLOR_KEY_SET, "VFW_E_NO_COLOR_KEY_SET") CHK_ERR(VFW_E_NOT_OVERLAY_CONNECTION, "VFW_E_NOT_OVERLAY_CONNECTION") CHK_ERR(VFW_E_NOT_SAMPLE_CONNECTION, "VFW_E_NOT_SAMPLE_CONNECTION") CHK_ERR(VFW_E_PALETTE_SET, "VFW_E_PALETTE_SET") CHK_ERR(VFW_E_COLOR_KEY_SET, "VFW_E_COLOR_KEY_SET") CHK_ERR(VFW_E_NO_COLOR_KEY_FOUND, "VFW_E_NO_COLOR_KEY_FOUND") CHK_ERR(VFW_E_NO_PALETTE_AVAILABLE, "VFW_E_NO_PALETTE_AVAILABLE") CHK_ERR(VFW_E_NO_DISPLAY_PALETTE, "VFW_E_NO_DISPLAY_PALETTE") CHK_ERR(VFW_E_TOO_MANY_COLORS, "VFW_E_TOO_MANY_COLORS") CHK_ERR(VFW_E_STATE_CHANGED, "VFW_E_STATE_CHANGED") CHK_ERR(VFW_E_NOT_STOPPED, "VFW_E_NOT_STOPPED") CHK_ERR(VFW_E_NOT_PAUSED, "VFW_E_NOT_PAUSED") CHK_ERR(VFW_E_NOT_RUNNING, "VFW_E_NOT_RUNNING") CHK_ERR(VFW_E_WRONG_STATE, "VFW_E_WRONG_STATE") CHK_ERR(VFW_E_START_TIME_AFTER_END, "VFW_E_START_TIME_AFTER_END") CHK_ERR(VFW_E_INVALID_RECT, "VFW_E_INVALID_RECT") CHK_ERR(VFW_E_TYPE_NOT_ACCEPTED, "VFW_E_TYPE_NOT_ACCEPTED") CHK_ERR(VFW_E_SAMPLE_REJECTED, "VFW_E_SAMPLE_REJECTED") CHK_ERR(VFW_E_SAMPLE_REJECTED_EOS, "VFW_E_SAMPLE_REJECTED_EOS") CHK_ERR(VFW_E_DUPLICATE_NAME, "VFW_E_DUPLICATE_NAME") CHK_ERR(VFW_S_DUPLICATE_NAME, "VFW_S_DUPLICATE_NAME") CHK_ERR(VFW_E_TIMEOUT, "VFW_E_TIMEOUT") CHK_ERR(VFW_E_INVALID_FILE_FORMAT, "VFW_E_INVALID_FILE_FORMAT") CHK_ERR(VFW_E_ENUM_OUT_OF_RANGE, "VFW_E_ENUM_OUT_OF_RANGE") CHK_ERR(VFW_E_CIRCULAR_GRAPH, "VFW_E_CIRCULAR_GRAPH") CHK_ERR(VFW_E_NOT_ALLOWED_TO_SAVE, "VFW_E_NOT_ALLOWED_TO_SAVE") CHK_ERR(VFW_E_TIME_ALREADY_PASSED, "VFW_E_TIME_ALREADY_PASSED") CHK_ERR(VFW_E_ALREADY_CANCELLED, "VFW_E_ALREADY_CANCELLED") CHK_ERR(VFW_E_CORRUPT_GRAPH_FILE, "VFW_E_CORRUPT_GRAPH_FILE") CHK_ERR(VFW_E_ADVISE_ALREADY_SET, "VFW_E_ADVISE_ALREADY_SET") CHK_ERR(VFW_S_STATE_INTERMEDIATE, "VFW_S_STATE_INTERMEDIATE") CHK_ERR(VFW_E_NO_MODEX_AVAILABLE, "VFW_E_NO_MODEX_AVAILABLE") CHK_ERR(VFW_E_NO_ADVISE_SET, "VFW_E_NO_ADVISE_SET") CHK_ERR(VFW_E_NO_FULLSCREEN, "VFW_E_NO_FULLSCREEN") CHK_ERR(VFW_E_IN_FULLSCREEN_MODE, "VFW_E_IN_FULLSCREEN_MODE") CHK_ERR(VFW_E_UNKNOWN_FILE_TYPE, "VFW_E_UNKNOWN_FILE_TYPE") CHK_ERR(VFW_E_CANNOT_LOAD_SOURCE_FILTER, "VFW_E_CANNOT_LOAD_SOURCE_FILTER") CHK_ERR(VFW_S_PARTIAL_RENDER, "VFW_S_PARTIAL_RENDER") CHK_ERR(VFW_E_FILE_TOO_SHORT, "VFW_E_FILE_TOO_SHORT") CHK_ERR(VFW_E_INVALID_FILE_VERSION, "VFW_E_INVALID_FILE_VERSION") CHK_ERR(VFW_S_SOME_DATA_IGNORED, "VFW_S_SOME_DATA_IGNORED") CHK_ERR(VFW_S_CONNECTIONS_DEFERRED, "VFW_S_CONNECTIONS_DEFERRED") CHK_ERR(VFW_E_INVALID_CLSID, "VFW_E_INVALID_CLSID") CHK_ERR(VFW_E_INVALID_MEDIA_TYPE, "VFW_E_INVALID_MEDIA_TYPE") CHK_ERR(VFW_E_BAD_KEY, "VFW_E_BAD_KEY") CHK_ERR(VFW_S_NO_MORE_ITEMS, "VFW_S_NO_MORE_ITEMS") CHK_ERR(VFW_E_SAMPLE_TIME_NOT_SET, "VFW_E_SAMPLE_TIME_NOT_SET") CHK_ERR(VFW_S_RESOURCE_NOT_NEEDED, "VFW_S_RESOURCE_NOT_NEEDED") CHK_ERR(VFW_E_MEDIA_TIME_NOT_SET, "VFW_E_MEDIA_TIME_NOT_SET") CHK_ERR(VFW_E_NO_TIME_FORMAT_SET, "VFW_E_NO_TIME_FORMAT_SET") CHK_ERR(VFW_E_MONO_AUDIO_HW, "VFW_E_MONO_AUDIO_HW") CHK_ERR(VFW_S_MEDIA_TYPE_IGNORED, "VFW_S_MEDIA_TYPE_IGNORED") CHK_ERR(VFW_E_NO_DECOMPRESSOR, "VFW_E_NO_DECOMPRESSOR") CHK_ERR(VFW_E_NO_AUDIO_HARDWARE, "VFW_E_NO_AUDIO_HARDWARE") CHK_ERR(VFW_S_VIDEO_NOT_RENDERED, "VFW_S_VIDEO_NOT_RENDERED") CHK_ERR(VFW_S_AUDIO_NOT_RENDERED, "VFW_S_AUDIO_NOT_RENDERED") CHK_ERR(VFW_E_RPZA, "VFW_E_RPZA") CHK_ERR(VFW_S_RPZA, "VFW_S_RPZA") CHK_ERR(VFW_E_PROCESSOR_NOT_SUITABLE, "VFW_E_PROCESSOR_NOT_SUITABLE") CHK_ERR(VFW_E_UNSUPPORTED_AUDIO, "VFW_E_UNSUPPORTED_AUDIO") CHK_ERR(VFW_E_UNSUPPORTED_VIDEO, "VFW_E_UNSUPPORTED_VIDEO") CHK_ERR(VFW_E_MPEG_NOT_CONSTRAINED, "VFW_E_MPEG_NOT_CONSTRAINED") CHK_ERR(VFW_E_NOT_IN_GRAPH, "VFW_E_NOT_IN_GRAPH") CHK_ERR(VFW_S_ESTIMATED, "VFW_S_ESTIMATED") CHK_ERR(VFW_E_NO_TIME_FORMAT, "VFW_E_NO_TIME_FORMAT") CHK_ERR(VFW_E_READ_ONLY, "VFW_E_READ_ONLY") CHK_ERR(VFW_S_RESERVED, "VFW_S_RESERVED") CHK_ERR(VFW_E_BUFFER_UNDERFLOW, "VFW_E_BUFFER_UNDERFLOW") CHK_ERR(VFW_E_UNSUPPORTED_STREAM, "VFW_E_UNSUPPORTED_STREAM") CHK_ERR(VFW_E_NO_TRANSPORT, "VFW_E_NO_TRANSPORT") CHK_ERR(VFW_S_STREAM_OFF, "VFW_S_STREAM_OFF") CHK_ERR(VFW_S_CANT_CUE, "VFW_S_CANT_CUE") CHK_ERR(VFW_E_BAD_VIDEOCD, "VFW_E_BAD_VIDEOCD") CHK_ERR(VFW_S_NO_STOP_TIME, "VFW_S_NO_STOP_TIME") CHK_ERR(VFW_E_OUT_OF_VIDEO_MEMORY, "VFW_E_OUT_OF_VIDEO_MEMORY") CHK_ERR(VFW_E_VP_NEGOTIATION_FAILED, "VFW_E_VP_NEGOTIATION_FAILED") CHK_ERR(VFW_E_DDRAW_CAPS_NOT_SUITABLE, "VFW_E_DDRAW_CAPS_NOT_SUITABLE") CHK_ERR(VFW_E_NO_VP_HARDWARE, "VFW_E_NO_VP_HARDWARE") CHK_ERR(VFW_E_NO_CAPTURE_HARDWARE, "VFW_E_NO_CAPTURE_HARDWARE") CHK_ERR(VFW_E_DVD_OPERATION_INHIBITED, "VFW_E_DVD_OPERATION_INHIBITED") CHK_ERR(VFW_E_DVD_INVALIDDOMAIN, "VFW_E_DVD_INVALIDDOMAIN") CHK_ERR(VFW_E_DVD_NO_BUTTON, "VFW_E_DVD_NO_BUTTON") CHK_ERR(VFW_E_DVD_GRAPHNOTREADY, "VFW_E_DVD_GRAPHNOTREADY") CHK_ERR(VFW_E_DVD_RENDERFAIL, "VFW_E_DVD_RENDERFAIL") CHK_ERR(VFW_E_DVD_DECNOTENOUGH, "VFW_E_DVD_DECNOTENOUGH") CHK_ERR(VFW_E_DDRAW_VERSION_NOT_SUITABLE, "VFW_E_DDRAW_VERSION_NOT_SUITABLE") CHK_ERR(VFW_E_COPYPROT_FAILED, "VFW_E_COPYPROT_FAILED") CHK_ERR(VFW_S_NOPREVIEWPIN, "VFW_S_NOPREVIEWPIN") CHK_ERR(VFW_E_TIME_EXPIRED, "VFW_E_TIME_EXPIRED") CHK_ERR(VFW_S_DVD_NON_ONE_SEQUENTIAL, "VFW_S_DVD_NON_ONE_SEQUENTIAL") CHK_ERR(VFW_E_DVD_WRONG_SPEED, "VFW_E_DVD_WRONG_SPEED") CHK_ERR(VFW_E_DVD_MENU_DOES_NOT_EXIST, "VFW_E_DVD_MENU_DOES_NOT_EXIST") CHK_ERR(VFW_E_DVD_CMD_CANCELLED, "VFW_E_DVD_CMD_CANCELLED") CHK_ERR(VFW_E_DVD_STATE_WRONG_VERSION, "VFW_E_DVD_STATE_WRONG_VERSION") CHK_ERR(VFW_E_DVD_STATE_CORRUPT, "VFW_E_DVD_STATE_CORRUPT") CHK_ERR(VFW_E_DVD_STATE_WRONG_DISC, "VFW_E_DVD_STATE_WRONG_DISC") CHK_ERR(VFW_E_DVD_INCOMPATIBLE_REGION, "VFW_E_DVD_INCOMPATIBLE_REGION") CHK_ERR(VFW_E_DVD_NO_ATTRIBUTES, "VFW_E_DVD_NO_ATTRIBUTES") CHK_ERR(VFW_E_DVD_NO_GOUP_PGC, "VFW_E_DVD_NO_GOUP_PGC") CHK_ERR(VFW_E_DVD_LOW_PARENTAL_LEVEL, "VFW_E_DVD_LOW_PARENTAL_LEVEL") CHK_ERR(VFW_E_DVD_NOT_IN_KARAOKE_MODE, "VFW_E_DVD_NOT_IN_KARAOKE_MODE") CHK_ERR(VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE, "VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE") CHK_ERR(VFW_S_DVD_NOT_ACCURATE, "VFW_S_DVD_NOT_ACCURATE") CHK_ERR(VFW_E_FRAME_STEP_UNSUPPORTED, "VFW_E_FRAME_STEP_UNSUPPORTED") CHK_ERR(VFW_E_DVD_STREAM_DISABLED, "VFW_E_DVD_STREAM_DISABLED") CHK_ERR(VFW_E_DVD_TITLE_UNKNOWN, "VFW_E_DVD_TITLE_UNKNOWN") CHK_ERR(VFW_E_DVD_INVALID_DISC, "VFW_E_DVD_INVALID_DISC") CHK_ERR(VFW_E_DVD_NO_RESUME_INFORMATION, "VFW_E_DVD_NO_RESUME_INFORMATION") CHK_ERR(VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD, "VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD") CHK_ERR(VFW_E_PIN_ALREADY_BLOCKED, "VFW_E_PIN_ALREADY_BLOCKED") CHK_ERR(VFW_E_CERTIFICATION_FAILURE, "VFW_E_CERTIFICATION_FAILURE") CHK_ERR(E_PROP_SET_UNSUPPORTED, "E_PROP_SET_UNSUPPORTED") CHK_ERR(E_PROP_ID_UNSUPPORTED, "E_PROP_ID_UNSUPPORTED") } return "Unknown"; } /****************************************************/ /* DXGetErrorString8W */ /* */ /****************************************************/ const WCHAR * WINAPI DXGetErrorString8W(HRESULT hr) { switch(hr) { // ------------------------------------------------------------- // Common Win32 error codes // ------------------------------------------------------------- CHK_ERR(S_OK, L"S_OK") CHK_ERR(S_FALSE, L"S_FALSE") CHK_ERR(ERROR_FILE_NOT_FOUND, L"ERROR_FILE_NOT_FOUND") CHK_ERR(ERROR_PATH_NOT_FOUND, L"ERROR_PATH_NOT_FOUND") CHK_ERR(ERROR_TOO_MANY_OPEN_FILES, L"ERROR_TOO_MANY_OPEN_FILES") CHK_ERR(ERROR_ACCESS_DENIED, L"ERROR_ACCESS_DENIED") CHK_ERR(ERROR_INVALID_HANDLE, L"ERROR_INVALID_HANDLE") CHK_ERR(ERROR_NOT_ENOUGH_MEMORY, L"ERROR_NOT_ENOUGH_MEMORY") CHK_ERR(ERROR_INVALID_BLOCK, L"ERROR_INVALID_BLOCK") CHK_ERR(ERROR_BAD_ENVIRONMENT, L"ERROR_BAD_ENVIRONMENT") CHK_ERR(ERROR_BAD_FORMAT, L"ERROR_BAD_FORMAT") CHK_ERR(ERROR_OUTOFMEMORY, L"ERROR_OUTOFMEMORY") CHK_ERR(E_UNEXPECTED, L"E_UNEXPECTED") CHK_ERR(E_NOTIMPL, L"E_NOTIMPL") CHK_ERR(E_OUTOFMEMORY, L"E_OUTOFMEMORY") CHK_ERR(E_INVALIDARG, L"E_INVALIDARG") CHK_ERR(E_NOINTERFACE, L"E_NOINTERFACE") CHK_ERR(E_POINTER, L"E_POINTER") CHK_ERR(E_HANDLE, L"E_HANDLE") CHK_ERR(E_ABORT, L"E_ABORT") CHK_ERR(E_FAIL, L"E_FAIL") CHK_ERR(E_ACCESSDENIED, L"E_ACCESSDENIED") CHK_ERR(E_PENDING, L"E_PENDING") CHK_ERR(REGDB_E_CLASSNOTREG, L"REGDB_E_CLASSNOTREG") CHK_ERR(CO_E_NOTINITIALIZED, L"CO_E_NOTINITIALIZED") CHK_ERR(CO_E_ALREADYINITIALIZED, L"CO_E_ALREADYINITIALIZED") CHK_ERR(CLASS_E_NOAGGREGATION, L"CLASS_E_NOAGGREGATION") // ------------------------------------------------------------- // ddraw.h error codes as of 12/14/00 // ------------------------------------------------------------- CHK_ERR(DDERR_ALREADYINITIALIZED, L"DDERR_ALREADYINITIALIZED") CHK_ERR(DDERR_CANNOTATTACHSURFACE, L"DDERR_CANNOTATTACHSURFACE") CHK_ERR(DDERR_CANNOTDETACHSURFACE, L"DDERR_CANNOTDETACHSURFACE") CHK_ERR(DDERR_CURRENTLYNOTAVAIL, L"DDERR_CURRENTLYNOTAVAIL") CHK_ERR(DDERR_EXCEPTION, L"DDERR_EXCEPTION") // CHK_ERR(DDERR_GENERIC, L"DDERR_GENERIC") CHK_ERR(DDERR_HEIGHTALIGN, L"DDERR_HEIGHTALIGN") CHK_ERR(DDERR_INCOMPATIBLEPRIMARY, L"DDERR_INCOMPATIBLEPRIMARY") CHK_ERR(DDERR_INVALIDCAPS, L"DDERR_INVALIDCAPS") CHK_ERR(DDERR_INVALIDCLIPLIST, L"DDERR_INVALIDCLIPLIST") CHK_ERR(DDERR_INVALIDMODE, L"DDERR_INVALIDMODE") CHK_ERR(DDERR_INVALIDOBJECT, L"DDERR_INVALIDOBJECT") // CHK_ERR(DDERR_INVALIDPARAMS, L"DDERR_INVALIDPARAMS") CHK_ERR(DDERR_INVALIDPIXELFORMAT, L"DDERR_INVALIDPIXELFORMAT") CHK_ERR(DDERR_INVALIDRECT, L"DDERR_INVALIDRECT") CHK_ERR(DDERR_LOCKEDSURFACES, L"DDERR_LOCKEDSURFACES") CHK_ERR(DDERR_NO3D, L"DDERR_NO3D") CHK_ERR(DDERR_NOALPHAHW, L"DDERR_NOALPHAHW") CHK_ERR(DDERR_NOSTEREOHARDWARE, L"DDERR_NOSTEREOHARDWARE") CHK_ERR(DDERR_NOSURFACELEFT, L"DDERR_NOSURFACELEFT") CHK_ERR(DDERR_NOCLIPLIST, L"DDERR_NOCLIPLIST") CHK_ERR(DDERR_NOCOLORCONVHW, L"DDERR_NOCOLORCONVHW") CHK_ERR(DDERR_NOCOOPERATIVELEVELSET, L"DDERR_NOCOOPERATIVELEVELSET") CHK_ERR(DDERR_NOCOLORKEY, L"DDERR_NOCOLORKEY") CHK_ERR(DDERR_NOCOLORKEYHW, L"DDERR_NOCOLORKEYHW") CHK_ERR(DDERR_NODIRECTDRAWSUPPORT, L"DDERR_NODIRECTDRAWSUPPORT") CHK_ERR(DDERR_NOEXCLUSIVEMODE, L"DDERR_NOEXCLUSIVEMODE") CHK_ERR(DDERR_NOFLIPHW, L"DDERR_NOFLIPHW") CHK_ERR(DDERR_NOGDI, L"DDERR_NOGDI") CHK_ERR(DDERR_NOMIRRORHW, L"DDERR_NOMIRRORHW") CHK_ERR(DDERR_NOTFOUND, L"DDERR_NOTFOUND") CHK_ERR(DDERR_NOOVERLAYHW, L"DDERR_NOOVERLAYHW") CHK_ERR(DDERR_OVERLAPPINGRECTS, L"DDERR_OVERLAPPINGRECTS") CHK_ERR(DDERR_NORASTEROPHW, L"DDERR_NORASTEROPHW") CHK_ERR(DDERR_NOROTATIONHW, L"DDERR_NOROTATIONHW") CHK_ERR(DDERR_NOSTRETCHHW, L"DDERR_NOSTRETCHHW") CHK_ERR(DDERR_NOT4BITCOLOR, L"DDERR_NOT4BITCOLOR") CHK_ERR(DDERR_NOT4BITCOLORINDEX, L"DDERR_NOT4BITCOLORINDEX") CHK_ERR(DDERR_NOT8BITCOLOR, L"DDERR_NOT8BITCOLOR") CHK_ERR(DDERR_NOTEXTUREHW, L"DDERR_NOTEXTUREHW") CHK_ERR(DDERR_NOVSYNCHW, L"DDERR_NOVSYNCHW") CHK_ERR(DDERR_NOZBUFFERHW, L"DDERR_NOZBUFFERHW") CHK_ERR(DDERR_NOZOVERLAYHW, L"DDERR_NOZOVERLAYHW") CHK_ERR(DDERR_OUTOFCAPS, L"DDERR_OUTOFCAPS") // CHK_ERR(DDERR_OUTOFMEMORY, L"DDERR_OUTOFMEMORY") // CHK_ERR(DDERR_OUTOFVIDEOMEMORY, L"DDERR_OUTOFVIDEOMEMORY") CHK_ERR(DDERR_OVERLAYCANTCLIP, L"DDERR_OVERLAYCANTCLIP") CHK_ERR(DDERR_OVERLAYCOLORKEYONLYONEACTIVE, L"DDERR_OVERLAYCOLORKEYONLYONEACTIVE") CHK_ERR(DDERR_PALETTEBUSY, L"DDERR_PALETTEBUSY") CHK_ERR(DDERR_COLORKEYNOTSET, L"DDERR_COLORKEYNOTSET") CHK_ERR(DDERR_SURFACEALREADYATTACHED, L"DDERR_SURFACEALREADYATTACHED") CHK_ERR(DDERR_SURFACEALREADYDEPENDENT, L"DDERR_SURFACEALREADYDEPENDENT") CHK_ERR(DDERR_SURFACEBUSY, L"DDERR_SURFACEBUSY") CHK_ERR(DDERR_CANTLOCKSURFACE, L"DDERR_CANTLOCKSURFACE") CHK_ERR(DDERR_SURFACEISOBSCURED, L"DDERR_SURFACEISOBSCURED") CHK_ERR(DDERR_SURFACELOST, L"DDERR_SURFACELOST") CHK_ERR(DDERR_SURFACENOTATTACHED, L"DDERR_SURFACENOTATTACHED") CHK_ERR(DDERR_TOOBIGHEIGHT, L"DDERR_TOOBIGHEIGHT") CHK_ERR(DDERR_TOOBIGSIZE, L"DDERR_TOOBIGSIZE") CHK_ERR(DDERR_TOOBIGWIDTH, L"DDERR_TOOBIGWIDTH") // CHK_ERR(DDERR_UNSUPPORTED, L"DDERR_UNSUPPORTED") CHK_ERR(DDERR_UNSUPPORTEDFORMAT, L"DDERR_UNSUPPORTEDFORMAT") CHK_ERR(DDERR_UNSUPPORTEDMASK, L"DDERR_UNSUPPORTEDMASK") CHK_ERR(DDERR_INVALIDSTREAM, L"DDERR_INVALIDSTREAM") CHK_ERR(DDERR_VERTICALBLANKINPROGRESS, L"DDERR_VERTICALBLANKINPROGRESS") CHK_ERR(DDERR_WASSTILLDRAWING, L"DDERR_WASSTILLDRAWING") CHK_ERR(DDERR_DDSCAPSCOMPLEXREQUIRED, L"DDERR_DDSCAPSCOMPLEXREQUIRED") CHK_ERR(DDERR_XALIGN, L"DDERR_XALIGN") CHK_ERR(DDERR_INVALIDDIRECTDRAWGUID, L"DDERR_INVALIDDIRECTDRAWGUID") CHK_ERR(DDERR_DIRECTDRAWALREADYCREATED, L"DDERR_DIRECTDRAWALREADYCREATED") CHK_ERR(DDERR_NODIRECTDRAWHW, L"DDERR_NODIRECTDRAWHW") CHK_ERR(DDERR_PRIMARYSURFACEALREADYEXISTS, L"DDERR_PRIMARYSURFACEALREADYEXISTS") CHK_ERR(DDERR_NOEMULATION, L"DDERR_NOEMULATION") CHK_ERR(DDERR_REGIONTOOSMALL, L"DDERR_REGIONTOOSMALL") CHK_ERR(DDERR_CLIPPERISUSINGHWND, L"DDERR_CLIPPERISUSINGHWND") CHK_ERR(DDERR_NOCLIPPERATTACHED, L"DDERR_NOCLIPPERATTACHED") CHK_ERR(DDERR_NOHWND, L"DDERR_NOHWND") CHK_ERR(DDERR_HWNDSUBCLASSED, L"DDERR_HWNDSUBCLASSED") CHK_ERR(DDERR_HWNDALREADYSET, L"DDERR_HWNDALREADYSET") CHK_ERR(DDERR_NOPALETTEATTACHED, L"DDERR_NOPALETTEATTACHED") CHK_ERR(DDERR_NOPALETTEHW, L"DDERR_NOPALETTEHW") CHK_ERR(DDERR_BLTFASTCANTCLIP, L"DDERR_BLTFASTCANTCLIP") CHK_ERR(DDERR_NOBLTHW, L"DDERR_NOBLTHW") CHK_ERR(DDERR_NODDROPSHW, L"DDERR_NODDROPSHW") CHK_ERR(DDERR_OVERLAYNOTVISIBLE, L"DDERR_OVERLAYNOTVISIBLE") CHK_ERR(DDERR_NOOVERLAYDEST, L"DDERR_NOOVERLAYDEST") CHK_ERR(DDERR_INVALIDPOSITION, L"DDERR_INVALIDPOSITION") CHK_ERR(DDERR_NOTAOVERLAYSURFACE, L"DDERR_NOTAOVERLAYSURFACE") CHK_ERR(DDERR_EXCLUSIVEMODEALREADYSET, L"DDERR_EXCLUSIVEMODEALREADYSET") CHK_ERR(DDERR_NOTFLIPPABLE, L"DDERR_NOTFLIPPABLE") CHK_ERR(DDERR_CANTDUPLICATE, L"DDERR_CANTDUPLICATE") CHK_ERR(DDERR_NOTLOCKED, L"DDERR_NOTLOCKED") CHK_ERR(DDERR_CANTCREATEDC, L"DDERR_CANTCREATEDC") CHK_ERR(DDERR_NODC, L"DDERR_NODC") CHK_ERR(DDERR_WRONGMODE, L"DDERR_WRONGMODE") CHK_ERR(DDERR_IMPLICITLYCREATED, L"DDERR_IMPLICITLYCREATED") CHK_ERR(DDERR_NOTPALETTIZED, L"DDERR_NOTPALETTIZED") CHK_ERR(DDERR_UNSUPPORTEDMODE, L"DDERR_UNSUPPORTEDMODE") CHK_ERR(DDERR_NOMIPMAPHW, L"DDERR_NOMIPMAPHW") CHK_ERR(DDERR_INVALIDSURFACETYPE, L"DDERR_INVALIDSURFACETYPE") CHK_ERR(DDERR_NOOPTIMIZEHW, L"DDERR_NOOPTIMIZEHW") CHK_ERR(DDERR_NOTLOADED, L"DDERR_NOTLOADED") CHK_ERR(DDERR_NOFOCUSWINDOW, L"DDERR_NOFOCUSWINDOW") CHK_ERR(DDERR_NOTONMIPMAPSUBLEVEL, L"DDERR_NOTONMIPMAPSUBLEVEL") CHK_ERR(DDERR_DCALREADYCREATED, L"DDERR_DCALREADYCREATED") CHK_ERR(DDERR_NONONLOCALVIDMEM, L"DDERR_NONONLOCALVIDMEM") CHK_ERR(DDERR_CANTPAGELOCK, L"DDERR_CANTPAGELOCK") CHK_ERR(DDERR_CANTPAGEUNLOCK, L"DDERR_CANTPAGEUNLOCK") CHK_ERR(DDERR_NOTPAGELOCKED, L"DDERR_NOTPAGELOCKED") CHK_ERR(DDERR_MOREDATA, L"DDERR_MOREDATA") CHK_ERR(DDERR_EXPIRED, L"DDERR_EXPIRED") CHK_ERR(DDERR_TESTFINISHED, L"DDERR_TESTFINISHED") CHK_ERR(DDERR_NEWMODE, L"DDERR_NEWMODE") CHK_ERR(DDERR_D3DNOTINITIALIZED, L"DDERR_D3DNOTINITIALIZED") CHK_ERR(DDERR_VIDEONOTACTIVE, L"DDERR_VIDEONOTACTIVE") CHK_ERR(DDERR_NOMONITORINFORMATION, L"DDERR_NOMONITORINFORMATION") CHK_ERR(DDERR_NODRIVERSUPPORT, L"DDERR_NODRIVERSUPPORT") CHK_ERR(DDERR_DEVICEDOESNTOWNSURFACE, L"DDERR_DEVICEDOESNTOWNSURFACE") // ------------------------------------------------------------- // dinput.h error codes as of 10/4/00 // ------------------------------------------------------------- // CHK_ERR(DI_OK, L"DI_OK") // CHK_ERR(DI_NOTATTACHED, L"DI_NOTATTACHED") // CHK_ERR(DI_BUFFEROVERFLOW, L"DI_BUFFEROVERFLOW") // CHK_ERR(DI_PROPNOEFFECT, L"DI_PROPNOEFFECT") // CHK_ERR(DI_NOEFFECT, L"DI_NOEFFECT") // CHK_ERR(DI_POLLEDDEVICE, L"DI_POLLEDDEVICE") // CHK_ERR(DI_DOWNLOADSKIPPED, L"DI_DOWNLOADSKIPPED") // CHK_ERR(DI_EFFECTRESTARTED, L"DI_EFFECTRESTARTED") // CHK_ERR(DI_SETTINGSNOTSAVED_ACCESSDENIED, L"DI_SETTINGSNOTSAVED_ACCESSDENIED") // CHK_ERR(DI_SETTINGSNOTSAVED_DISKFULL, L"DI_SETTINGSNOTSAVED_DISKFULL") // CHK_ERR(DI_TRUNCATED, L"DI_TRUNCATED") // CHK_ERR(DI_TRUNCATEDANDRESTARTED, L"DI_TRUNCATEDANDRESTARTED") // CHK_ERR(DI_WRITEPROTECT, L"DI_WRITEPROTECT") CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, L"DIERR_OLDDIRECTINPUTVERSION") // CHK_ERR(DIERR_GENERIC, L"DIERR_GENERIC") // CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, L"DIERR_OLDDIRECTINPUTVERSION") CHK_ERR(DIERR_BETADIRECTINPUTVERSION, L"DIERR_BETADIRECTINPUTVERSION") CHK_ERR(DIERR_BADDRIVERVER, L"DIERR_BADDRIVERVER") // CHK_ERR(DIERR_DEVICENOTREG, L"DIERR_DEVICENOTREG") CHK_ERR(DIERR_NOTFOUND, L"DIERR_NOTFOUND") // CHK_ERR(DIERR_OBJECTNOTFOUND, L"DIERR_OBJECTNOTFOUND") // CHK_ERR(DIERR_INVALIDPARAM, L"DIERR_INVALIDPARAM") // CHK_ERR(DIERR_NOINTERFACE, L"DIERR_NOINTERFACE") // CHK_ERR(DIERR_GENERIC, L"DIERR_GENERIC") // CHK_ERR(DIERR_OUTOFMEMORY, L"DIERR_OUTOFMEMORY") // CHK_ERR(DIERR_UNSUPPORTED, L"DIERR_UNSUPPORTED") CHK_ERR(DIERR_NOTINITIALIZED, L"DIERR_NOTINITIALIZED") CHK_ERR(DIERR_ALREADYINITIALIZED, L"DIERR_ALREADYINITIALIZED") // CHK_ERR(DIERR_NOAGGREGATION, L"DIERR_NOAGGREGATION") // CHK_ERR(DIERR_OTHERAPPHASPRIO, L"DIERR_OTHERAPPHASPRIO") CHK_ERR(DIERR_INPUTLOST, L"DIERR_INPUTLOST") CHK_ERR(DIERR_ACQUIRED, L"DIERR_ACQUIRED") CHK_ERR(DIERR_NOTACQUIRED, L"DIERR_NOTACQUIRED") // CHK_ERR(DIERR_READONLY, L"DIERR_READONLY") // CHK_ERR(DIERR_HANDLEEXISTS, L"DIERR_HANDLEEXISTS") CHK_ERR(DIERR_INSUFFICIENTPRIVS, L"DIERR_INSUFFICIENTPRIVS & VFW_E_INVALIDMEDIATYPE") CHK_ERR(DIERR_DEVICEFULL, L"DIERR_DEVICEFULL & VFW_E_INVALIDSUBTYPE & DMO_E_INVALIDSTREAMINDEX") CHK_ERR(DIERR_MOREDATA, L"DIERR_MOREDATA & VFW_E_NEED_OWNER & DMO_E_INVALIDTYPE") CHK_ERR(DIERR_NOTDOWNLOADED, L"DIERR_NOTDOWNLOADED & VFW_E_ENUM_OUT_OF_SYNC & DMO_E_TYPE_NOT_SET") CHK_ERR(DIERR_HASEFFECTS, L"DIERR_HASEFFECTS & VFW_E_ALREADY_CONNECTED & DMO_E_NOTACCEPTING") CHK_ERR(DIERR_NOTEXCLUSIVEACQUIRED, L"DIERR_NOTEXCLUSIVEACQUIRED & VFW_E_FILTER_ACTIVE & DMO_E_TYPE_NOT_ACCEPTED") CHK_ERR(DIERR_INCOMPLETEEFFECT, L"DIERR_INCOMPLETEEFFECT & VFW_E_NO_TYPES & DMO_E_NO_MORE_ITEMS") CHK_ERR(DIERR_NOTBUFFERED, L"DIERR_NOTBUFFERED & VFW_E_NO_ACCEPTABLE_TYPES") CHK_ERR(DIERR_EFFECTPLAYING, L"DIERR_EFFECTPLAYING & VFW_E_INVALID_DIRECTION") CHK_ERR(DIERR_UNPLUGGED, L"DIERR_UNPLUGGED & VFW_E_NOT_CONNECTED") CHK_ERR(DIERR_REPORTFULL, L"DIERR_REPORTFULL & VFW_E_NO_ALLOCATOR") CHK_ERR(DIERR_MAPFILEFAIL, L"DIERR_MAPFILEFAIL & VFW_E_RUNTIME_ERROR") // ------------------------------------------------------------- // dinputd.h error codes as of 9/8/00 // ------------------------------------------------------------- CHK_ERR(DIERR_NOMOREITEMS, L"DIERR_NOMOREITEMS") CHK_ERR(DIERR_DRIVERFIRST, L"DIERR_DRIVERFIRST") CHK_ERR(DIERR_DRIVERFIRST+1, L"DIERR_DRIVERFIRST+1") CHK_ERR(DIERR_DRIVERFIRST+2, L"DIERR_DRIVERFIRST+2") CHK_ERR(DIERR_DRIVERFIRST+3, L"DIERR_DRIVERFIRST+3") CHK_ERR(DIERR_DRIVERFIRST+4, L"DIERR_DRIVERFIRST+4") CHK_ERR(DIERR_DRIVERFIRST+5, L"DIERR_DRIVERFIRST+5") CHK_ERR(DIERR_DRIVERLAST, L"DIERR_DRIVERLAST") CHK_ERR(DIERR_INVALIDCLASSINSTALLER, L"DIERR_INVALIDCLASSINSTALLER") CHK_ERR(DIERR_CANCELLED, L"DIERR_CANCELLED") CHK_ERR(DIERR_BADINF, L"DIERR_BADINF") // ------------------------------------------------------------- // dvoice.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(DV_OK, L"DV_OK") CHK_ERR(DV_FULLDUPLEX, L"DV_FULLDUPLEX") CHK_ERR(DV_HALFDUPLEX, L"DV_HALFDUPLEX") CHK_ERR(DV_PENDING, L"DV_PENDING") CHK_ERR(DVERR_BUFFERTOOSMALL, L"DVERR_BUFFERTOOSMALL") CHK_ERR(DVERR_EXCEPTION, L"DVERR_EXCEPTION") // CHK_ERR(DVERR_GENERIC, L"DVERR_GENERIC") CHK_ERR(DVERR_INVALIDFLAGS, L"DVERR_INVALIDFLAGS") CHK_ERR(DVERR_INVALIDOBJECT, L"DVERR_INVALIDOBJECT") CHK_ERR(DVERR_INVALIDPLAYER, L"DVERR_INVALIDPLAYER") CHK_ERR(DVERR_INVALIDGROUP, L"DVERR_INVALIDGROUP") CHK_ERR(DVERR_INVALIDHANDLE, L"DVERR_INVALIDHANDLE") // CHK_ERR(DVERR_OUTOFMEMORY, L"DVERR_OUTOFMEMORY") // CHK_ERR(DVERR_PENDING, L"DVERR_PENDING") // CHK_ERR(DVERR_NOTSUPPORTED, L"DVERR_NOTSUPPORTED") // CHK_ERR(DVERR_NOINTERFACE, L"DVERR_NOINTERFACE") CHK_ERR(DVERR_SESSIONLOST, L"DVERR_SESSIONLOST") CHK_ERR(DVERR_NOVOICESESSION, L"DVERR_NOVOICESESSION") CHK_ERR(DVERR_CONNECTIONLOST, L"DVERR_CONNECTIONLOST") CHK_ERR(DVERR_NOTINITIALIZED, L"DVERR_NOTINITIALIZED") CHK_ERR(DVERR_CONNECTED, L"DVERR_CONNECTED") CHK_ERR(DVERR_NOTCONNECTED, L"DVERR_NOTCONNECTED") CHK_ERR(DVERR_CONNECTABORTING, L"DVERR_CONNECTABORTING") CHK_ERR(DVERR_NOTALLOWED, L"DVERR_NOTALLOWED") CHK_ERR(DVERR_INVALIDTARGET, L"DVERR_INVALIDTARGET") CHK_ERR(DVERR_TRANSPORTNOTHOST, L"DVERR_TRANSPORTNOTHOST") CHK_ERR(DVERR_COMPRESSIONNOTSUPPORTED, L"DVERR_COMPRESSIONNOTSUPPORTED") CHK_ERR(DVERR_ALREADYPENDING, L"DVERR_ALREADYPENDING") CHK_ERR(DVERR_SOUNDINITFAILURE, L"DVERR_SOUNDINITFAILURE") CHK_ERR(DVERR_TIMEOUT, L"DVERR_TIMEOUT") CHK_ERR(DVERR_CONNECTABORTED, L"DVERR_CONNECTABORTED") CHK_ERR(DVERR_NO3DSOUND, L"DVERR_NO3DSOUND") CHK_ERR(DVERR_ALREADYBUFFERED, L"DVERR_ALREADYBUFFERED") CHK_ERR(DVERR_NOTBUFFERED, L"DVERR_NOTBUFFERED") CHK_ERR(DVERR_HOSTING, L"DVERR_HOSTING") CHK_ERR(DVERR_NOTHOSTING, L"DVERR_NOTHOSTING") CHK_ERR(DVERR_INVALIDDEVICE, L"DVERR_INVALIDDEVICE") CHK_ERR(DVERR_RECORDSYSTEMERROR, L"DVERR_RECORDSYSTEMERROR") CHK_ERR(DVERR_PLAYBACKSYSTEMERROR, L"DVERR_PLAYBACKSYSTEMERROR") CHK_ERR(DVERR_SENDERROR, L"DVERR_SENDERROR") CHK_ERR(DVERR_USERCANCEL, L"DVERR_USERCANCEL") CHK_ERR(DVERR_RUNSETUP, L"DVERR_RUNSETUP") CHK_ERR(DVERR_INCOMPATIBLEVERSION, L"DVERR_INCOMPATIBLEVERSION") CHK_ERR(DVERR_INITIALIZED, L"DVERR_INITIALIZED") // CHK_ERR(DVERR_INVALIDPOINTER, L"DVERR_INVALIDPOINTER") CHK_ERR(DVERR_NOTRANSPORT, L"DVERR_NOTRANSPORT") CHK_ERR(DVERR_NOCALLBACK, L"DVERR_NOCALLBACK") CHK_ERR(DVERR_TRANSPORTNOTINIT, L"DVERR_TRANSPORTNOTINIT") CHK_ERR(DVERR_TRANSPORTNOSESSION, L"DVERR_TRANSPORTNOSESSION") CHK_ERR(DVERR_TRANSPORTNOPLAYER, L"DVERR_TRANSPORTNOPLAYER") CHK_ERR(DVERR_USERBACK, L"DVERR_USERBACK") CHK_ERR(DVERR_NORECVOLAVAILABLE, L"DVERR_NORECVOLAVAILABLE") CHK_ERR(DVERR_INVALIDBUFFER, L"DVERR_INVALIDBUFFER") CHK_ERR(DVERR_LOCKEDBUFFER, L"DVERR_LOCKEDBUFFER") // ------------------------------------------------------------- // dplay8.h error codes as of 10/4/00 // ------------------------------------------------------------- CHK_ERR(DPNERR_ABORTED, L"DPNERR_ABORTED") CHK_ERR(DPNERR_ADDRESSING, L"DPNERR_ADDRESSING") CHK_ERR(DPNERR_ALREADYCLOSING, L"DPNERR_ALREADYCLOSING") CHK_ERR(DPNERR_ALREADYCONNECTED, L"DPNERR_ALREADYCONNECTED") CHK_ERR(DPNERR_ALREADYDISCONNECTING, L"DPNERR_ALREADYDISCONNECTING") CHK_ERR(DPNERR_ALREADYINITIALIZED, L"DPNERR_ALREADYINITIALIZED") CHK_ERR(DPNERR_ALREADYREGISTERED, L"DPNERR_ALREADYREGISTERED") CHK_ERR(DPNERR_BUFFERTOOSMALL, L"DPNERR_BUFFERTOOSMALL") CHK_ERR(DPNERR_CANNOTCANCEL, L"DPNERR_CANNOTCANCEL") CHK_ERR(DPNERR_CANTCREATEGROUP, L"DPNERR_CANTCREATEGROUP") CHK_ERR(DPNERR_CANTCREATEPLAYER, L"DPNERR_CANTCREATEPLAYER") CHK_ERR(DPNERR_CANTLAUNCHAPPLICATION, L"DPNERR_CANTLAUNCHAPPLICATION") CHK_ERR(DPNERR_CONNECTING, L"DPNERR_CONNECTING") CHK_ERR(DPNERR_CONNECTIONLOST, L"DPNERR_CONNECTIONLOST") CHK_ERR(DPNERR_CONVERSION, L"DPNERR_CONVERSION") CHK_ERR(DPNERR_DATATOOLARGE, L"DPNERR_DATATOOLARGE") CHK_ERR(DPNERR_DOESNOTEXIST, L"DPNERR_DOESNOTEXIST") CHK_ERR(DPNERR_DUPLICATECOMMAND, L"DPNERR_DUPLICATECOMMAND") CHK_ERR(DPNERR_ENDPOINTNOTRECEIVING, L"DPNERR_ENDPOINTNOTRECEIVING") CHK_ERR(DPNERR_ENUMQUERYTOOLARGE, L"DPNERR_ENUMQUERYTOOLARGE") CHK_ERR(DPNERR_ENUMRESPONSETOOLARGE, L"DPNERR_ENUMRESPONSETOOLARGE") CHK_ERR(DPNERR_EXCEPTION, L"DPNERR_EXCEPTION") CHK_ERR(DPNERR_GROUPNOTEMPTY, L"DPNERR_GROUPNOTEMPTY") CHK_ERR(DPNERR_HOSTING, L"DPNERR_HOSTING") CHK_ERR(DPNERR_HOSTREJECTEDCONNECTION, L"DPNERR_HOSTREJECTEDCONNECTION") CHK_ERR(DPNERR_HOSTTERMINATEDSESSION, L"DPNERR_HOSTTERMINATEDSESSION") CHK_ERR(DPNERR_INCOMPLETEADDRESS, L"DPNERR_INCOMPLETEADDRESS") CHK_ERR(DPNERR_INVALIDADDRESSFORMAT, L"DPNERR_INVALIDADDRESSFORMAT") CHK_ERR(DPNERR_INVALIDAPPLICATION, L"DPNERR_INVALIDAPPLICATION") CHK_ERR(DPNERR_INVALIDCOMMAND, L"DPNERR_INVALIDCOMMAND") CHK_ERR(DPNERR_INVALIDENDPOINT, L"DPNERR_INVALIDENDPOINT") CHK_ERR(DPNERR_INVALIDFLAGS, L"DPNERR_INVALIDFLAGS") CHK_ERR(DPNERR_INVALIDGROUP, L"DPNERR_INVALIDGROUP") CHK_ERR(DPNERR_INVALIDHANDLE, L"DPNERR_INVALIDHANDLE") CHK_ERR(DPNERR_INVALIDINSTANCE, L"DPNERR_INVALIDINSTANCE") CHK_ERR(DPNERR_INVALIDINTERFACE, L"DPNERR_INVALIDINTERFACE") CHK_ERR(DPNERR_INVALIDDEVICEADDRESS, L"DPNERR_INVALIDDEVICEADDRESS") CHK_ERR(DPNERR_INVALIDOBJECT, L"DPNERR_INVALIDOBJECT") // CHK_ERR(DPNERR_INVALIDPARAM, L"DPNERR_INVALIDPARAM") CHK_ERR(DPNERR_INVALIDPASSWORD, L"DPNERR_INVALIDPASSWORD") CHK_ERR(DPNERR_INVALIDPLAYER, L"DPNERR_INVALIDPLAYER") // CHK_ERR(DPNERR_INVALIDPOINTER, L"DPNERR_INVALIDPOINTER") CHK_ERR(DPNERR_INVALIDPRIORITY, L"DPNERR_INVALIDPRIORITY") CHK_ERR(DPNERR_INVALIDHOSTADDRESS, L"DPNERR_INVALIDHOSTADDRESS") CHK_ERR(DPNERR_INVALIDSTRING, L"DPNERR_INVALIDSTRING") CHK_ERR(DPNERR_INVALIDURL, L"DPNERR_INVALIDURL") CHK_ERR(DPNERR_INVALIDVERSION, L"DPNERR_INVALIDVERSION") CHK_ERR(DPNERR_NOCAPS, L"DPNERR_NOCAPS") CHK_ERR(DPNERR_NOCONNECTION, L"DPNERR_NOCONNECTION") CHK_ERR(DPNERR_NOHOSTPLAYER, L"DPNERR_NOHOSTPLAYER") // CHK_ERR(DPNERR_NOINTERFACE, L"DPNERR_NOINTERFACE") CHK_ERR(DPNERR_NOMOREADDRESSCOMPONENTS, L"DPNERR_NOMOREADDRESSCOMPONENTS") CHK_ERR(DPNERR_NORESPONSE, L"DPNERR_NORESPONSE") CHK_ERR(DPNERR_NOTALLOWED, L"DPNERR_NOTALLOWED") CHK_ERR(DPNERR_NOTHOST, L"DPNERR_NOTHOST") CHK_ERR(DPNERR_NOTREADY, L"DPNERR_NOTREADY") CHK_ERR(DPNERR_NOTREGISTERED, L"DPNERR_NOTREGISTERED") // CHK_ERR(DPNERR_OUTOFMEMORY, L"DPNERR_OUTOFMEMORY") // CHK_ERR(DPNERR_PENDING, L"DPNERR_PENDING") CHK_ERR(DPNERR_PLAYERLOST, L"DPNERR_PLAYERLOST") CHK_ERR(DPNERR_PLAYERNOTREACHABLE, L"DPNERR_PLAYERNOTREACHABLE") CHK_ERR(DPNERR_SENDTOOLARGE, L"DPNERR_SENDTOOLARGE") CHK_ERR(DPNERR_SESSIONFULL, L"DPNERR_SESSIONFULL") CHK_ERR(DPNERR_TABLEFULL, L"DPNERR_TABLEFULL") CHK_ERR(DPNERR_TIMEDOUT, L"DPNERR_TIMEDOUT") CHK_ERR(DPNERR_UNINITIALIZED, L"DPNERR_UNINITIALIZED") // CHK_ERR(DPNERR_UNSUPPORTED, L"DPNERR_UNSUPPORTED") CHK_ERR(DPNERR_USERCANCEL, L"DPNERR_USERCANCEL") // ------------------------------------------------------------- // dxfile.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(DXFILE_OK, L"DXFILE_OK") CHK_ERR(DXFILEERR_BADOBJECT, L"DXFILEERR_BADOBJECT") CHK_ERR(DXFILEERR_BADVALUE, L"DXFILEERR_BADVALUE") CHK_ERR(DXFILEERR_BADTYPE, L"DXFILEERR_BADTYPE") CHK_ERR(DXFILEERR_BADSTREAMHANDLE, L"DXFILEERR_BADSTREAMHANDLE") CHK_ERR(DXFILEERR_BADALLOC, L"DXFILEERR_BADALLOC") CHK_ERR(DXFILEERR_NOTFOUND, L"DXFILEERR_NOTFOUND") CHK_ERR(DXFILEERR_NOTDONEYET, L"DXFILEERR_NOTDONEYET") CHK_ERR(DXFILEERR_FILENOTFOUND, L"DXFILEERR_FILENOTFOUND") CHK_ERR(DXFILEERR_RESOURCENOTFOUND, L"DXFILEERR_RESOURCENOTFOUND") CHK_ERR(DXFILEERR_URLNOTFOUND, L"DXFILEERR_URLNOTFOUND") CHK_ERR(DXFILEERR_BADRESOURCE, L"DXFILEERR_BADRESOURCE") CHK_ERR(DXFILEERR_BADFILETYPE, L"DXFILEERR_BADFILETYPE") CHK_ERR(DXFILEERR_BADFILEVERSION, L"DXFILEERR_BADFILEVERSION") CHK_ERR(DXFILEERR_BADFILEFLOATSIZE, L"DXFILEERR_BADFILEFLOATSIZE") CHK_ERR(DXFILEERR_BADFILECOMPRESSIONTYPE, L"DXFILEERR_BADFILECOMPRESSIONTYPE") CHK_ERR(DXFILEERR_BADFILE, L"DXFILEERR_BADFILE") CHK_ERR(DXFILEERR_PARSEERROR, L"DXFILEERR_PARSEERROR") CHK_ERR(DXFILEERR_NOTEMPLATE, L"DXFILEERR_NOTEMPLATE") CHK_ERR(DXFILEERR_BADARRAYSIZE, L"DXFILEERR_BADARRAYSIZE") CHK_ERR(DXFILEERR_BADDATAREFERENCE, L"DXFILEERR_BADDATAREFERENCE") CHK_ERR(DXFILEERR_INTERNALERROR, L"DXFILEERR_INTERNALERROR") CHK_ERR(DXFILEERR_NOMOREOBJECTS, L"DXFILEERR_NOMOREOBJECTS") CHK_ERR(DXFILEERR_BADINTRINSICS, L"DXFILEERR_BADINTRINSICS") CHK_ERR(DXFILEERR_NOMORESTREAMHANDLES, L"DXFILEERR_NOMORESTREAMHANDLES") CHK_ERR(DXFILEERR_NOMOREDATA, L"DXFILEERR_NOMOREDATA") CHK_ERR(DXFILEERR_BADCACHEFILE, L"DXFILEERR_BADCACHEFILE") CHK_ERR(DXFILEERR_NOINTERNET, L"DXFILEERR_NOINTERNET") // ------------------------------------------------------------- // d3d8.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(D3D_OK, L"D3D_OK") CHK_ERR(D3DERR_WRONGTEXTUREFORMAT, L"D3DERR_WRONGTEXTUREFORMAT") CHK_ERR(D3DERR_UNSUPPORTEDCOLOROPERATION, L"D3DERR_UNSUPPORTEDCOLOROPERATION") CHK_ERR(D3DERR_UNSUPPORTEDCOLORARG, L"D3DERR_UNSUPPORTEDCOLORARG") CHK_ERR(D3DERR_UNSUPPORTEDALPHAOPERATION, L"D3DERR_UNSUPPORTEDALPHAOPERATION") CHK_ERR(D3DERR_UNSUPPORTEDALPHAARG, L"D3DERR_UNSUPPORTEDALPHAARG") CHK_ERR(D3DERR_TOOMANYOPERATIONS, L"D3DERR_TOOMANYOPERATIONS") CHK_ERR(D3DERR_CONFLICTINGTEXTUREFILTER, L"D3DERR_CONFLICTINGTEXTUREFILTER") CHK_ERR(D3DERR_UNSUPPORTEDFACTORVALUE, L"D3DERR_UNSUPPORTEDFACTORVALUE") CHK_ERR(D3DERR_CONFLICTINGRENDERSTATE, L"D3DERR_CONFLICTINGRENDERSTATE") CHK_ERR(D3DERR_UNSUPPORTEDTEXTUREFILTER, L"D3DERR_UNSUPPORTEDTEXTUREFILTER") CHK_ERR(D3DERR_CONFLICTINGTEXTUREPALETTE, L"D3DERR_CONFLICTINGTEXTUREPALETTE") CHK_ERR(D3DERR_DRIVERINTERNALERROR, L"D3DERR_DRIVERINTERNALERROR") CHK_ERR(D3DERR_NOTFOUND, L"D3DERR_NOTFOUND") CHK_ERR(D3DERR_MOREDATA, L"D3DERR_MOREDATA") CHK_ERR(D3DERR_DEVICELOST, L"D3DERR_DEVICELOST") CHK_ERR(D3DERR_DEVICENOTRESET, L"D3DERR_DEVICENOTRESET") CHK_ERR(D3DERR_NOTAVAILABLE, L"D3DERR_NOTAVAILABLE") CHK_ERR(D3DERR_OUTOFVIDEOMEMORY, L"D3DERR_OUTOFVIDEOMEMORY") CHK_ERR(D3DERR_INVALIDDEVICE, L"D3DERR_INVALIDDEVICE") CHK_ERR(D3DERR_INVALIDCALL, L"D3DERR_INVALIDCALL") CHK_ERR(D3DERR_DRIVERINVALIDCALL, L"D3DERR_DRIVERINVALIDCALL") // ------------------------------------------------------------- // d3dx8mesh.h error codes as of 12/5/00 // ------------------------------------------------------------- CHK_ERR(D3DXERR_CANNOTMODIFYINDEXBUFFER, L"D3DXERR_CANNOTMODIFYINDEXBUFFER") CHK_ERR(D3DXERR_INVALIDMESH, L"D3DXERR_INVALIDMESH") CHK_ERR(D3DXERR_CANNOTATTRSORT, L"D3DXERR_CANNOTATTRSORT") CHK_ERR(D3DXERR_SKINNINGNOTSUPPORTED, L"D3DXERR_SKINNINGNOTSUPPORTED") CHK_ERR(D3DXERR_TOOMANYINFLUENCES, L"D3DXERR_TOOMANYINFLUENCES") CHK_ERR(D3DXERR_INVALIDDATA, L"D3DXERR_INVALIDDATA") // ------------------------------------------------------------- // dsound.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(DS_OK, L"DS_OK") CHK_ERR(DS_NO_VIRTUALIZATION, L"DS_NO_VIRTUALIZATION") CHK_ERR(DS_INCOMPLETE, L"DS_INCOMPLETE") CHK_ERR(DSERR_ALLOCATED, L"DSERR_ALLOCATED") CHK_ERR(DSERR_CONTROLUNAVAIL, L"DSERR_CONTROLUNAVAIL") // CHK_ERR(DSERR_INVALIDPARAM, L"DSERR_INVALIDPARAM") CHK_ERR(DSERR_INVALIDCALL, L"DSERR_INVALIDCALL") // CHK_ERR(DSERR_GENERIC, L"DSERR_GENERIC") CHK_ERR(DSERR_PRIOLEVELNEEDED, L"DSERR_PRIOLEVELNEEDED") // CHK_ERR(DSERR_OUTOFMEMORY, L"DSERR_OUTOFMEMORY") CHK_ERR(DSERR_BADFORMAT, L"DSERR_BADFORMAT") // CHK_ERR(DSERR_UNSUPPORTED, L"DSERR_UNSUPPORTED") CHK_ERR(DSERR_NODRIVER, L"DSERR_NODRIVER") CHK_ERR(DSERR_ALREADYINITIALIZED, L"DSERR_ALREADYINITIALIZED") // CHK_ERR(DSERR_NOAGGREGATION, L"DSERR_NOAGGREGATION") CHK_ERR(DSERR_BUFFERLOST, L"DSERR_BUFFERLOST") CHK_ERR(DSERR_OTHERAPPHASPRIO, L"DSERR_OTHERAPPHASPRIO") CHK_ERR(DSERR_UNINITIALIZED, L"DSERR_UNINITIALIZED") // CHK_ERR(DSERR_NOINTERFACE, L"DSERR_NOINTERFACE") // CHK_ERR(DSERR_ACCESSDENIED, L"DSERR_ACCESSDENIED") CHK_ERR(DSERR_BUFFERTOOSMALL, L"DSERR_BUFFERTOOSMALL") CHK_ERR(DSERR_DS8_REQUIRED, L"DSERR_DS8_REQUIRED") CHK_ERR(DSERR_SENDLOOP, L"DSERR_SENDLOOP") CHK_ERR(DSERR_BADSENDBUFFERGUID, L"DSERR_BADSENDBUFFERGUID") CHK_ERR(DSERR_OBJECTNOTFOUND, L"DSERR_OBJECTNOTFOUND") // ------------------------------------------------------------- // dmerror.h error codes as of 9/8/00 // ------------------------------------------------------------- CHK_ERR(DMUS_S_PARTIALLOAD, L"DMUS_S_PARTIALLOAD") CHK_ERR(DMUS_S_PARTIALDOWNLOAD, L"DMUS_S_PARTIALDOWNLOAD") CHK_ERR(DMUS_S_REQUEUE, L"DMUS_S_REQUEUE") CHK_ERR(DMUS_S_FREE, L"DMUS_S_FREE") CHK_ERR(DMUS_S_END, L"DMUS_S_END") CHK_ERR(DMUS_S_STRING_TRUNCATED, L"DMUS_S_STRING_TRUNCATED") CHK_ERR(DMUS_S_LAST_TOOL, L"DMUS_S_LAST_TOOL") CHK_ERR(DMUS_S_OVER_CHORD, L"DMUS_S_OVER_CHORD") CHK_ERR(DMUS_S_UP_OCTAVE, L"DMUS_S_UP_OCTAVE") CHK_ERR(DMUS_S_DOWN_OCTAVE, L"DMUS_S_DOWN_OCTAVE") CHK_ERR(DMUS_S_NOBUFFERCONTROL, L"DMUS_S_NOBUFFERCONTROL") CHK_ERR(DMUS_S_GARBAGE_COLLECTED, L"DMUS_S_GARBAGE_COLLECTED") CHK_ERR(DMUS_E_DRIVER_FAILED, L"DMUS_E_DRIVER_FAILED") CHK_ERR(DMUS_E_PORTS_OPEN, L"DMUS_E_PORTS_OPEN") CHK_ERR(DMUS_E_DEVICE_IN_USE, L"DMUS_E_DEVICE_IN_USE") CHK_ERR(DMUS_E_INSUFFICIENTBUFFER, L"DMUS_E_INSUFFICIENTBUFFER") CHK_ERR(DMUS_E_BUFFERNOTSET, L"DMUS_E_BUFFERNOTSET") CHK_ERR(DMUS_E_BUFFERNOTAVAILABLE, L"DMUS_E_BUFFERNOTAVAILABLE") CHK_ERR(DMUS_E_NOTADLSCOL, L"DMUS_E_NOTADLSCOL") CHK_ERR(DMUS_E_INVALIDOFFSET, L"DMUS_E_INVALIDOFFSET") CHK_ERR(DMUS_E_ALREADY_LOADED, L"DMUS_E_ALREADY_LOADED") CHK_ERR(DMUS_E_INVALIDPOS, L"DMUS_E_INVALIDPOS") CHK_ERR(DMUS_E_INVALIDPATCH, L"DMUS_E_INVALIDPATCH") CHK_ERR(DMUS_E_CANNOTSEEK, L"DMUS_E_CANNOTSEEK") CHK_ERR(DMUS_E_CANNOTWRITE, L"DMUS_E_CANNOTWRITE") CHK_ERR(DMUS_E_CHUNKNOTFOUND, L"DMUS_E_CHUNKNOTFOUND") CHK_ERR(DMUS_E_INVALID_DOWNLOADID, L"DMUS_E_INVALID_DOWNLOADID") CHK_ERR(DMUS_E_NOT_DOWNLOADED_TO_PORT, L"DMUS_E_NOT_DOWNLOADED_TO_PORT") CHK_ERR(DMUS_E_ALREADY_DOWNLOADED, L"DMUS_E_ALREADY_DOWNLOADED") CHK_ERR(DMUS_E_UNKNOWN_PROPERTY, L"DMUS_E_UNKNOWN_PROPERTY") CHK_ERR(DMUS_E_SET_UNSUPPORTED, L"DMUS_E_SET_UNSUPPORTED") CHK_ERR(DMUS_E_GET_UNSUPPORTED, L"DMUS_E_GET_UNSUPPORTED") CHK_ERR(DMUS_E_NOTMONO, L"DMUS_E_NOTMONO") CHK_ERR(DMUS_E_BADARTICULATION, L"DMUS_E_BADARTICULATION") CHK_ERR(DMUS_E_BADINSTRUMENT, L"DMUS_E_BADINSTRUMENT") CHK_ERR(DMUS_E_BADWAVELINK, L"DMUS_E_BADWAVELINK") CHK_ERR(DMUS_E_NOARTICULATION, L"DMUS_E_NOARTICULATION") CHK_ERR(DMUS_E_NOTPCM, L"DMUS_E_NOTPCM") CHK_ERR(DMUS_E_BADWAVE, L"DMUS_E_BADWAVE") CHK_ERR(DMUS_E_BADOFFSETTABLE, L"DMUS_E_BADOFFSETTABLE") CHK_ERR(DMUS_E_UNKNOWNDOWNLOAD, L"DMUS_E_UNKNOWNDOWNLOAD") CHK_ERR(DMUS_E_NOSYNTHSINK, L"DMUS_E_NOSYNTHSINK") CHK_ERR(DMUS_E_ALREADYOPEN, L"DMUS_E_ALREADYOPEN") CHK_ERR(DMUS_E_ALREADYCLOSED, L"DMUS_E_ALREADYCLOSED") CHK_ERR(DMUS_E_SYNTHNOTCONFIGURED, L"DMUS_E_SYNTHNOTCONFIGURED") CHK_ERR(DMUS_E_SYNTHACTIVE, L"DMUS_E_SYNTHACTIVE") CHK_ERR(DMUS_E_CANNOTREAD, L"DMUS_E_CANNOTREAD") CHK_ERR(DMUS_E_DMUSIC_RELEASED, L"DMUS_E_DMUSIC_RELEASED") CHK_ERR(DMUS_E_BUFFER_EMPTY, L"DMUS_E_BUFFER_EMPTY") CHK_ERR(DMUS_E_BUFFER_FULL, L"DMUS_E_BUFFER_FULL") CHK_ERR(DMUS_E_PORT_NOT_CAPTURE, L"DMUS_E_PORT_NOT_CAPTURE") CHK_ERR(DMUS_E_PORT_NOT_RENDER, L"DMUS_E_PORT_NOT_RENDER") CHK_ERR(DMUS_E_DSOUND_NOT_SET, L"DMUS_E_DSOUND_NOT_SET") CHK_ERR(DMUS_E_ALREADY_ACTIVATED, L"DMUS_E_ALREADY_ACTIVATED") CHK_ERR(DMUS_E_INVALIDBUFFER, L"DMUS_E_INVALIDBUFFER") CHK_ERR(DMUS_E_WAVEFORMATNOTSUPPORTED, L"DMUS_E_WAVEFORMATNOTSUPPORTED") CHK_ERR(DMUS_E_SYNTHINACTIVE, L"DMUS_E_SYNTHINACTIVE") CHK_ERR(DMUS_E_DSOUND_ALREADY_SET, L"DMUS_E_DSOUND_ALREADY_SET") CHK_ERR(DMUS_E_INVALID_EVENT, L"DMUS_E_INVALID_EVENT") CHK_ERR(DMUS_E_UNSUPPORTED_STREAM, L"DMUS_E_UNSUPPORTED_STREAM") CHK_ERR(DMUS_E_ALREADY_INITED, L"DMUS_E_ALREADY_INITED") CHK_ERR(DMUS_E_INVALID_BAND, L"DMUS_E_INVALID_BAND") CHK_ERR(DMUS_E_TRACK_HDR_NOT_FIRST_CK, L"DMUS_E_TRACK_HDR_NOT_FIRST_CK") CHK_ERR(DMUS_E_TOOL_HDR_NOT_FIRST_CK, L"DMUS_E_TOOL_HDR_NOT_FIRST_CK") CHK_ERR(DMUS_E_INVALID_TRACK_HDR, L"DMUS_E_INVALID_TRACK_HDR") CHK_ERR(DMUS_E_INVALID_TOOL_HDR, L"DMUS_E_INVALID_TOOL_HDR") CHK_ERR(DMUS_E_ALL_TOOLS_FAILED, L"DMUS_E_ALL_TOOLS_FAILED") CHK_ERR(DMUS_E_ALL_TRACKS_FAILED, L"DMUS_E_ALL_TRACKS_FAILED") // CHK_ERR(DMUS_E_NOT_FOUND, L"DMUS_E_NOT_FOUND") CHK_ERR(DMUS_E_NOT_INIT, L"DMUS_E_NOT_INIT") CHK_ERR(DMUS_E_TYPE_DISABLED, L"DMUS_E_TYPE_DISABLED") CHK_ERR(DMUS_E_TYPE_UNSUPPORTED, L"DMUS_E_TYPE_UNSUPPORTED") CHK_ERR(DMUS_E_TIME_PAST, L"DMUS_E_TIME_PAST") CHK_ERR(DMUS_E_TRACK_NOT_FOUND, L"DMUS_E_TRACK_NOT_FOUND") CHK_ERR(DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT, L"DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT") CHK_ERR(DMUS_E_NO_MASTER_CLOCK, L"DMUS_E_NO_MASTER_CLOCK") CHK_ERR(DMUS_E_LOADER_NOCLASSID, L"DMUS_E_LOADER_NOCLASSID") CHK_ERR(DMUS_E_LOADER_BADPATH, L"DMUS_E_LOADER_BADPATH") CHK_ERR(DMUS_E_LOADER_FAILEDOPEN, L"DMUS_E_LOADER_FAILEDOPEN") CHK_ERR(DMUS_E_LOADER_FORMATNOTSUPPORTED, L"DMUS_E_LOADER_FORMATNOTSUPPORTED") CHK_ERR(DMUS_E_LOADER_FAILEDCREATE, L"DMUS_E_LOADER_FAILEDCREATE") CHK_ERR(DMUS_E_LOADER_OBJECTNOTFOUND, L"DMUS_E_LOADER_OBJECTNOTFOUND") CHK_ERR(DMUS_E_LOADER_NOFILENAME, L"DMUS_E_LOADER_NOFILENAME") CHK_ERR(DMUS_E_INVALIDFILE, L"DMUS_E_INVALIDFILE") CHK_ERR(DMUS_E_ALREADY_EXISTS, L"DMUS_E_ALREADY_EXISTS") CHK_ERR(DMUS_E_OUT_OF_RANGE, L"DMUS_E_OUT_OF_RANGE") CHK_ERR(DMUS_E_SEGMENT_INIT_FAILED, L"DMUS_E_SEGMENT_INIT_FAILED") CHK_ERR(DMUS_E_ALREADY_SENT, L"DMUS_E_ALREADY_SENT") CHK_ERR(DMUS_E_CANNOT_FREE, L"DMUS_E_CANNOT_FREE") CHK_ERR(DMUS_E_CANNOT_OPEN_PORT, L"DMUS_E_CANNOT_OPEN_PORT") CHK_ERR(DMUS_E_CANNOT_CONVERT, L"DMUS_E_CANNOT_CONVERT") CHK_ERR(DMUS_E_DESCEND_CHUNK_FAIL, L"DMUS_E_DESCEND_CHUNK_FAIL") CHK_ERR(DMUS_E_NOT_LOADED, L"DMUS_E_NOT_LOADED") CHK_ERR(DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE, L"DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE") CHK_ERR(DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE, L"DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE") CHK_ERR(DMUS_E_SCRIPT_ERROR_IN_SCRIPT, L"DMUS_E_SCRIPT_ERROR_IN_SCRIPT") CHK_ERR(DMUS_E_SCRIPT_CANTLOAD_OLEAUT32, L"DMUS_E_SCRIPT_CANTLOAD_OLEAUT32") CHK_ERR(DMUS_E_SCRIPT_LOADSCRIPT_ERROR, L"DMUS_E_SCRIPT_LOADSCRIPT_ERROR") CHK_ERR(DMUS_E_SCRIPT_INVALID_FILE, L"DMUS_E_SCRIPT_INVALID_FILE") CHK_ERR(DMUS_E_INVALID_SCRIPTTRACK, L"DMUS_E_INVALID_SCRIPTTRACK") CHK_ERR(DMUS_E_SCRIPT_VARIABLE_NOT_FOUND, L"DMUS_E_SCRIPT_VARIABLE_NOT_FOUND") CHK_ERR(DMUS_E_SCRIPT_ROUTINE_NOT_FOUND, L"DMUS_E_SCRIPT_ROUTINE_NOT_FOUND") CHK_ERR(DMUS_E_SCRIPT_CONTENT_READONLY, L"DMUS_E_SCRIPT_CONTENT_READONLY") CHK_ERR(DMUS_E_SCRIPT_NOT_A_REFERENCE, L"DMUS_E_SCRIPT_NOT_A_REFERENCE") CHK_ERR(DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED, L"DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED") CHK_ERR(DMUS_E_INVALID_SEGMENTTRIGGERTRACK, L"DMUS_E_INVALID_SEGMENTTRIGGERTRACK") CHK_ERR(DMUS_E_INVALID_LYRICSTRACK, L"DMUS_E_INVALID_LYRICSTRACK") CHK_ERR(DMUS_E_INVALID_PARAMCONTROLTRACK, L"DMUS_E_INVALID_PARAMCONTROLTRACK") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR, L"DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR, L"DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE, L"DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE") CHK_ERR(DMUS_E_AUDIOPATHS_NOT_VALID, L"DMUS_E_AUDIOPATHS_NOT_VALID") CHK_ERR(DMUS_E_AUDIOPATHS_IN_USE, L"DMUS_E_AUDIOPATHS_IN_USE") CHK_ERR(DMUS_E_NO_AUDIOPATH_CONFIG, L"DMUS_E_NO_AUDIOPATH_CONFIG") CHK_ERR(DMUS_E_AUDIOPATH_INACTIVE, L"DMUS_E_AUDIOPATH_INACTIVE") CHK_ERR(DMUS_E_AUDIOPATH_NOBUFFER, L"DMUS_E_AUDIOPATH_NOBUFFER") CHK_ERR(DMUS_E_AUDIOPATH_NOPORT, L"DMUS_E_AUDIOPATH_NOPORT") CHK_ERR(DMUS_E_NO_AUDIOPATH, L"DMUS_E_NO_AUDIOPATH") CHK_ERR(DMUS_E_INVALIDCHUNK, L"DMUS_E_INVALIDCHUNK") CHK_ERR(DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER, L"DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER") CHK_ERR(DMUS_E_INVALID_CONTAINER_OBJECT, L"DMUS_E_INVALID_CONTAINER_OBJECT") // ------------------------------------------------------------- // vfwmsgs.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(VFW_E_INVALIDMEDIATYPE, L"VFW_E_INVALIDMEDIATYPE") // CHK_ERR(VFW_E_INVALIDSUBTYPE, L"VFW_E_INVALIDSUBTYPE") // CHK_ERR(VFW_E_NEED_OWNER, L"VFW_E_NEED_OWNER") // CHK_ERR(VFW_E_ENUM_OUT_OF_SYNC, L"VFW_E_ENUM_OUT_OF_SYNC") // CHK_ERR(VFW_E_ALREADY_CONNECTED, L"VFW_E_ALREADY_CONNECTED") // CHK_ERR(VFW_E_FILTER_ACTIVE, L"VFW_E_FILTER_ACTIVE") // CHK_ERR(VFW_E_NO_TYPES, L"VFW_E_NO_TYPES") // CHK_ERR(VFW_E_NO_ACCEPTABLE_TYPES, L"VFW_E_NO_ACCEPTABLE_TYPES") // CHK_ERR(VFW_E_INVALID_DIRECTION, L"VFW_E_INVALID_DIRECTION") // CHK_ERR(VFW_E_NOT_CONNECTED, L"VFW_E_NOT_CONNECTED") // CHK_ERR(VFW_E_NO_ALLOCATOR, L"VFW_E_NO_ALLOCATOR") // CHK_ERR(VFW_E_RUNTIME_ERROR, L"VFW_E_RUNTIME_ERROR") CHK_ERR(VFW_E_BUFFER_NOTSET, L"VFW_E_BUFFER_NOTSET") CHK_ERR(VFW_E_BUFFER_OVERFLOW, L"VFW_E_BUFFER_OVERFLOW") CHK_ERR(VFW_E_BADALIGN, L"VFW_E_BADALIGN") CHK_ERR(VFW_E_ALREADY_COMMITTED, L"VFW_E_ALREADY_COMMITTED") CHK_ERR(VFW_E_BUFFERS_OUTSTANDING, L"VFW_E_BUFFERS_OUTSTANDING") CHK_ERR(VFW_E_NOT_COMMITTED, L"VFW_E_NOT_COMMITTED") CHK_ERR(VFW_E_SIZENOTSET, L"VFW_E_SIZENOTSET") CHK_ERR(VFW_E_NO_CLOCK, L"VFW_E_NO_CLOCK") CHK_ERR(VFW_E_NO_SINK, L"VFW_E_NO_SINK") CHK_ERR(VFW_E_NO_INTERFACE, L"VFW_E_NO_INTERFACE") CHK_ERR(VFW_E_NOT_FOUND, L"VFW_E_NOT_FOUND") CHK_ERR(VFW_E_CANNOT_CONNECT, L"VFW_E_CANNOT_CONNECT") CHK_ERR(VFW_E_CANNOT_RENDER, L"VFW_E_CANNOT_RENDER") CHK_ERR(VFW_E_CHANGING_FORMAT, L"VFW_E_CHANGING_FORMAT") CHK_ERR(VFW_E_NO_COLOR_KEY_SET, L"VFW_E_NO_COLOR_KEY_SET") CHK_ERR(VFW_E_NOT_OVERLAY_CONNECTION, L"VFW_E_NOT_OVERLAY_CONNECTION") CHK_ERR(VFW_E_NOT_SAMPLE_CONNECTION, L"VFW_E_NOT_SAMPLE_CONNECTION") CHK_ERR(VFW_E_PALETTE_SET, L"VFW_E_PALETTE_SET") CHK_ERR(VFW_E_COLOR_KEY_SET, L"VFW_E_COLOR_KEY_SET") CHK_ERR(VFW_E_NO_COLOR_KEY_FOUND, L"VFW_E_NO_COLOR_KEY_FOUND") CHK_ERR(VFW_E_NO_PALETTE_AVAILABLE, L"VFW_E_NO_PALETTE_AVAILABLE") CHK_ERR(VFW_E_NO_DISPLAY_PALETTE, L"VFW_E_NO_DISPLAY_PALETTE") CHK_ERR(VFW_E_TOO_MANY_COLORS, L"VFW_E_TOO_MANY_COLORS") CHK_ERR(VFW_E_STATE_CHANGED, L"VFW_E_STATE_CHANGED") CHK_ERR(VFW_E_NOT_STOPPED, L"VFW_E_NOT_STOPPED") CHK_ERR(VFW_E_NOT_PAUSED, L"VFW_E_NOT_PAUSED") CHK_ERR(VFW_E_NOT_RUNNING, L"VFW_E_NOT_RUNNING") CHK_ERR(VFW_E_WRONG_STATE, L"VFW_E_WRONG_STATE") CHK_ERR(VFW_E_START_TIME_AFTER_END, L"VFW_E_START_TIME_AFTER_END") CHK_ERR(VFW_E_INVALID_RECT, L"VFW_E_INVALID_RECT") CHK_ERR(VFW_E_TYPE_NOT_ACCEPTED, L"VFW_E_TYPE_NOT_ACCEPTED") CHK_ERR(VFW_E_SAMPLE_REJECTED, L"VFW_E_SAMPLE_REJECTED") CHK_ERR(VFW_E_SAMPLE_REJECTED_EOS, L"VFW_E_SAMPLE_REJECTED_EOS") CHK_ERR(VFW_E_DUPLICATE_NAME, L"VFW_E_DUPLICATE_NAME") CHK_ERR(VFW_S_DUPLICATE_NAME, L"VFW_S_DUPLICATE_NAME") CHK_ERR(VFW_E_TIMEOUT, L"VFW_E_TIMEOUT") CHK_ERR(VFW_E_INVALID_FILE_FORMAT, L"VFW_E_INVALID_FILE_FORMAT") CHK_ERR(VFW_E_ENUM_OUT_OF_RANGE, L"VFW_E_ENUM_OUT_OF_RANGE") CHK_ERR(VFW_E_CIRCULAR_GRAPH, L"VFW_E_CIRCULAR_GRAPH") CHK_ERR(VFW_E_NOT_ALLOWED_TO_SAVE, L"VFW_E_NOT_ALLOWED_TO_SAVE") CHK_ERR(VFW_E_TIME_ALREADY_PASSED, L"VFW_E_TIME_ALREADY_PASSED") CHK_ERR(VFW_E_ALREADY_CANCELLED, L"VFW_E_ALREADY_CANCELLED") CHK_ERR(VFW_E_CORRUPT_GRAPH_FILE, L"VFW_E_CORRUPT_GRAPH_FILE") CHK_ERR(VFW_E_ADVISE_ALREADY_SET, L"VFW_E_ADVISE_ALREADY_SET") CHK_ERR(VFW_S_STATE_INTERMEDIATE, L"VFW_S_STATE_INTERMEDIATE") CHK_ERR(VFW_E_NO_MODEX_AVAILABLE, L"VFW_E_NO_MODEX_AVAILABLE") CHK_ERR(VFW_E_NO_ADVISE_SET, L"VFW_E_NO_ADVISE_SET") CHK_ERR(VFW_E_NO_FULLSCREEN, L"VFW_E_NO_FULLSCREEN") CHK_ERR(VFW_E_IN_FULLSCREEN_MODE, L"VFW_E_IN_FULLSCREEN_MODE") CHK_ERR(VFW_E_UNKNOWN_FILE_TYPE, L"VFW_E_UNKNOWN_FILE_TYPE") CHK_ERR(VFW_E_CANNOT_LOAD_SOURCE_FILTER, L"VFW_E_CANNOT_LOAD_SOURCE_FILTER") CHK_ERR(VFW_S_PARTIAL_RENDER, L"VFW_S_PARTIAL_RENDER") CHK_ERR(VFW_E_FILE_TOO_SHORT, L"VFW_E_FILE_TOO_SHORT") CHK_ERR(VFW_E_INVALID_FILE_VERSION, L"VFW_E_INVALID_FILE_VERSION") CHK_ERR(VFW_S_SOME_DATA_IGNORED, L"VFW_S_SOME_DATA_IGNORED") CHK_ERR(VFW_S_CONNECTIONS_DEFERRED, L"VFW_S_CONNECTIONS_DEFERRED") CHK_ERR(VFW_E_INVALID_CLSID, L"VFW_E_INVALID_CLSID") CHK_ERR(VFW_E_INVALID_MEDIA_TYPE, L"VFW_E_INVALID_MEDIA_TYPE") CHK_ERR(VFW_E_BAD_KEY, L"VFW_E_BAD_KEY") CHK_ERR(VFW_S_NO_MORE_ITEMS, L"VFW_S_NO_MORE_ITEMS") CHK_ERR(VFW_E_SAMPLE_TIME_NOT_SET, L"VFW_E_SAMPLE_TIME_NOT_SET") CHK_ERR(VFW_S_RESOURCE_NOT_NEEDED, L"VFW_S_RESOURCE_NOT_NEEDED") CHK_ERR(VFW_E_MEDIA_TIME_NOT_SET, L"VFW_E_MEDIA_TIME_NOT_SET") CHK_ERR(VFW_E_NO_TIME_FORMAT_SET, L"VFW_E_NO_TIME_FORMAT_SET") CHK_ERR(VFW_E_MONO_AUDIO_HW, L"VFW_E_MONO_AUDIO_HW") CHK_ERR(VFW_S_MEDIA_TYPE_IGNORED, L"VFW_S_MEDIA_TYPE_IGNORED") CHK_ERR(VFW_E_NO_DECOMPRESSOR, L"VFW_E_NO_DECOMPRESSOR") CHK_ERR(VFW_E_NO_AUDIO_HARDWARE, L"VFW_E_NO_AUDIO_HARDWARE") CHK_ERR(VFW_S_VIDEO_NOT_RENDERED, L"VFW_S_VIDEO_NOT_RENDERED") CHK_ERR(VFW_S_AUDIO_NOT_RENDERED, L"VFW_S_AUDIO_NOT_RENDERED") CHK_ERR(VFW_E_RPZA, L"VFW_E_RPZA") CHK_ERR(VFW_S_RPZA, L"VFW_S_RPZA") CHK_ERR(VFW_E_PROCESSOR_NOT_SUITABLE, L"VFW_E_PROCESSOR_NOT_SUITABLE") CHK_ERR(VFW_E_UNSUPPORTED_AUDIO, L"VFW_E_UNSUPPORTED_AUDIO") CHK_ERR(VFW_E_UNSUPPORTED_VIDEO, L"VFW_E_UNSUPPORTED_VIDEO") CHK_ERR(VFW_E_MPEG_NOT_CONSTRAINED, L"VFW_E_MPEG_NOT_CONSTRAINED") CHK_ERR(VFW_E_NOT_IN_GRAPH, L"VFW_E_NOT_IN_GRAPH") CHK_ERR(VFW_S_ESTIMATED, L"VFW_S_ESTIMATED") CHK_ERR(VFW_E_NO_TIME_FORMAT, L"VFW_E_NO_TIME_FORMAT") CHK_ERR(VFW_E_READ_ONLY, L"VFW_E_READ_ONLY") CHK_ERR(VFW_S_RESERVED, L"VFW_S_RESERVED") CHK_ERR(VFW_E_BUFFER_UNDERFLOW, L"VFW_E_BUFFER_UNDERFLOW") CHK_ERR(VFW_E_UNSUPPORTED_STREAM, L"VFW_E_UNSUPPORTED_STREAM") CHK_ERR(VFW_E_NO_TRANSPORT, L"VFW_E_NO_TRANSPORT") CHK_ERR(VFW_S_STREAM_OFF, L"VFW_S_STREAM_OFF") CHK_ERR(VFW_S_CANT_CUE, L"VFW_S_CANT_CUE") CHK_ERR(VFW_E_BAD_VIDEOCD, L"VFW_E_BAD_VIDEOCD") CHK_ERR(VFW_S_NO_STOP_TIME, L"VFW_S_NO_STOP_TIME") CHK_ERR(VFW_E_OUT_OF_VIDEO_MEMORY, L"VFW_E_OUT_OF_VIDEO_MEMORY") CHK_ERR(VFW_E_VP_NEGOTIATION_FAILED, L"VFW_E_VP_NEGOTIATION_FAILED") CHK_ERR(VFW_E_DDRAW_CAPS_NOT_SUITABLE, L"VFW_E_DDRAW_CAPS_NOT_SUITABLE") CHK_ERR(VFW_E_NO_VP_HARDWARE, L"VFW_E_NO_VP_HARDWARE") CHK_ERR(VFW_E_NO_CAPTURE_HARDWARE, L"VFW_E_NO_CAPTURE_HARDWARE") CHK_ERR(VFW_E_DVD_OPERATION_INHIBITED, L"VFW_E_DVD_OPERATION_INHIBITED") CHK_ERR(VFW_E_DVD_INVALIDDOMAIN, L"VFW_E_DVD_INVALIDDOMAIN") CHK_ERR(VFW_E_DVD_NO_BUTTON, L"VFW_E_DVD_NO_BUTTON") CHK_ERR(VFW_E_DVD_GRAPHNOTREADY, L"VFW_E_DVD_GRAPHNOTREADY") CHK_ERR(VFW_E_DVD_RENDERFAIL, L"VFW_E_DVD_RENDERFAIL") CHK_ERR(VFW_E_DVD_DECNOTENOUGH, L"VFW_E_DVD_DECNOTENOUGH") CHK_ERR(VFW_E_DDRAW_VERSION_NOT_SUITABLE, L"VFW_E_DDRAW_VERSION_NOT_SUITABLE") CHK_ERR(VFW_E_COPYPROT_FAILED, L"VFW_E_COPYPROT_FAILED") CHK_ERR(VFW_S_NOPREVIEWPIN, L"VFW_S_NOPREVIEWPIN") CHK_ERR(VFW_E_TIME_EXPIRED, L"VFW_E_TIME_EXPIRED") CHK_ERR(VFW_S_DVD_NON_ONE_SEQUENTIAL, L"VFW_S_DVD_NON_ONE_SEQUENTIAL") CHK_ERR(VFW_E_DVD_WRONG_SPEED, L"VFW_E_DVD_WRONG_SPEED") CHK_ERR(VFW_E_DVD_MENU_DOES_NOT_EXIST, L"VFW_E_DVD_MENU_DOES_NOT_EXIST") CHK_ERR(VFW_E_DVD_CMD_CANCELLED, L"VFW_E_DVD_CMD_CANCELLED") CHK_ERR(VFW_E_DVD_STATE_WRONG_VERSION, L"VFW_E_DVD_STATE_WRONG_VERSION") CHK_ERR(VFW_E_DVD_STATE_CORRUPT, L"VFW_E_DVD_STATE_CORRUPT") CHK_ERR(VFW_E_DVD_STATE_WRONG_DISC, L"VFW_E_DVD_STATE_WRONG_DISC") CHK_ERR(VFW_E_DVD_INCOMPATIBLE_REGION, L"VFW_E_DVD_INCOMPATIBLE_REGION") CHK_ERR(VFW_E_DVD_NO_ATTRIBUTES, L"VFW_E_DVD_NO_ATTRIBUTES") CHK_ERR(VFW_E_DVD_NO_GOUP_PGC, L"VFW_E_DVD_NO_GOUP_PGC") CHK_ERR(VFW_E_DVD_LOW_PARENTAL_LEVEL, L"VFW_E_DVD_LOW_PARENTAL_LEVEL") CHK_ERR(VFW_E_DVD_NOT_IN_KARAOKE_MODE, L"VFW_E_DVD_NOT_IN_KARAOKE_MODE") CHK_ERR(VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE, L"VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE") CHK_ERR(VFW_S_DVD_NOT_ACCURATE, L"VFW_S_DVD_NOT_ACCURATE") CHK_ERR(VFW_E_FRAME_STEP_UNSUPPORTED, L"VFW_E_FRAME_STEP_UNSUPPORTED") CHK_ERR(VFW_E_DVD_STREAM_DISABLED, L"VFW_E_DVD_STREAM_DISABLED") CHK_ERR(VFW_E_DVD_TITLE_UNKNOWN, L"VFW_E_DVD_TITLE_UNKNOWN") CHK_ERR(VFW_E_DVD_INVALID_DISC, L"VFW_E_DVD_INVALID_DISC") CHK_ERR(VFW_E_DVD_NO_RESUME_INFORMATION, L"VFW_E_DVD_NO_RESUME_INFORMATION") CHK_ERR(VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD, L"VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD") CHK_ERR(VFW_E_PIN_ALREADY_BLOCKED, L"VFW_E_PIN_ALREADY_BLOCKED") CHK_ERR(VFW_E_CERTIFICATION_FAILURE, L"VFW_E_CERTIFICATION_FAILURE") CHK_ERR(E_PROP_SET_UNSUPPORTED, L"E_PROP_SET_UNSUPPORTED") CHK_ERR(E_PROP_ID_UNSUPPORTED, L"E_PROP_ID_UNSUPPORTED") } return L"Unknown"; } //----------------------------------------------------------------------------- // Name: DXGetErrorDescription8A() // Desc: Returns a description of the HRESULT //----------------------------------------------------------------------------- const char * WINAPI DXGetErrorDescription8A(HRESULT hr) { switch(hr) { // ------------------------------------------------------------- // Common Win32 error codes // ------------------------------------------------------------- CHK_ERR(S_OK, "The function completed successfully") CHK_ERR(S_FALSE, "Call successful, but returned FALSE") CHK_ERR(ERROR_FILE_NOT_FOUND, "The system cannot find the file specified.") CHK_ERR(ERROR_PATH_NOT_FOUND, "The system cannot find the path specified.") CHK_ERR(ERROR_TOO_MANY_OPEN_FILES, "The system cannot open the file.") CHK_ERR(ERROR_ACCESS_DENIED, "Access is denied.") CHK_ERR(ERROR_INVALID_HANDLE, "The handle is invalid.") CHK_ERR(ERROR_NOT_ENOUGH_MEMORY, "Not enough storage is available to process this command.") CHK_ERR(ERROR_INVALID_BLOCK, "The storage control block address is invalid.") CHK_ERR(ERROR_BAD_ENVIRONMENT, "The environment is incorrect.") CHK_ERR(ERROR_BAD_FORMAT, "An attempt was made to load a program with an incorrect format.") CHK_ERR(ERROR_OUTOFMEMORY, "The system cannot find the drive specified.") CHK_ERR(E_UNEXPECTED, "Catastrophic failure") CHK_ERR(E_NOTIMPL, "The function called is not supported at this time") CHK_ERR(E_OUTOFMEMORY, "Ran out of memory") CHK_ERR(E_INVALIDARG, "An invalid parameter was passed to the returning function") CHK_ERR(E_NOINTERFACE, "The requested COM interface is not available") CHK_ERR(E_POINTER, "Invalid pointer") CHK_ERR(E_HANDLE, "Invalid handle") CHK_ERR(E_ABORT, "Operation aborted") CHK_ERR(E_FAIL, "An undetermined error occurred") CHK_ERR(E_ACCESSDENIED, "Access is denied") CHK_ERR(E_PENDING, "The data necessary to complete this operation is not yet available.") CHK_ERR(REGDB_E_CLASSNOTREG, "Class not registered") CHK_ERR(CO_E_NOTINITIALIZED, "CoInitialize has not been called.") CHK_ERR(CO_E_ALREADYINITIALIZED, "CoInitialize has already been called.") CHK_ERR(CLASS_E_NOAGGREGATION, "This object does not support aggregation") // ------------------------------------------------------------- // ddraw.h error codes as of 1/22/01 // ------------------------------------------------------------- CHK_ERR(DDERR_ALREADYINITIALIZED, "This object is already initialized") CHK_ERR(DDERR_CANNOTATTACHSURFACE, "This surface can not be attached to the requested surface.") CHK_ERR(DDERR_CANNOTDETACHSURFACE, "This surface can not be detached from the requested surface.") CHK_ERR(DDERR_CURRENTLYNOTAVAIL, "Support is currently not available.") CHK_ERR(DDERR_EXCEPTION, "An exception was encountered while performing the requested operation") // CHK_ERR(DDERR_GENERIC, "DDERR_GENERIC") CHK_ERR(DDERR_HEIGHTALIGN, "Height of rectangle provided is not a multiple of reqd alignment") CHK_ERR(DDERR_INCOMPATIBLEPRIMARY, "Unable to match primary surface creation request with existing primary surface.") CHK_ERR(DDERR_INVALIDCAPS, "One or more of the caps bits passed to the callback are incorrect.") CHK_ERR(DDERR_INVALIDCLIPLIST, "DirectDraw does not support provided Cliplist.") CHK_ERR(DDERR_INVALIDMODE, "DirectDraw does not support the requested mode") CHK_ERR(DDERR_INVALIDOBJECT, "DirectDraw received a pointer that was an invalid DIRECTDRAW object.") // CHK_ERR(DDERR_INVALIDPARAMS, "DDERR_INVALIDPARAMS") CHK_ERR(DDERR_INVALIDPIXELFORMAT, "pixel format was invalid as specified") CHK_ERR(DDERR_INVALIDRECT, "Rectangle provided was invalid.") CHK_ERR(DDERR_LOCKEDSURFACES, "Operation could not be carried out because one or more surfaces are locked") CHK_ERR(DDERR_NO3D, "There is no 3D present.") CHK_ERR(DDERR_NOALPHAHW, "Operation could not be carried out because there is no alpha accleration hardware present or available.") CHK_ERR(DDERR_NOSTEREOHARDWARE, "Operation could not be carried out because there is no stereo hardware present or available.") CHK_ERR(DDERR_NOSURFACELEFT, "Operation could not be carried out because there is no hardware present which supports stereo surfaces") CHK_ERR(DDERR_NOCLIPLIST, "no clip list available") CHK_ERR(DDERR_NOCOLORCONVHW, "Operation could not be carried out because there is no color conversion hardware present or available.") CHK_ERR(DDERR_NOCOOPERATIVELEVELSET, "Create function called without DirectDraw object method SetCooperativeLevel being called.") CHK_ERR(DDERR_NOCOLORKEY, "Surface doesn't currently have a color key") CHK_ERR(DDERR_NOCOLORKEYHW, "Operation could not be carried out because there is no hardware support of the dest color key.") CHK_ERR(DDERR_NODIRECTDRAWSUPPORT, "No DirectDraw support possible with current display driver") CHK_ERR(DDERR_NOEXCLUSIVEMODE, "Operation requires the application to have exclusive mode but the application does not have exclusive mode.") CHK_ERR(DDERR_NOFLIPHW, "Flipping visible surfaces is not supported.") CHK_ERR(DDERR_NOGDI, "There is no GDI present.") CHK_ERR(DDERR_NOMIRRORHW, "Operation could not be carried out because there is no hardware present or available.") CHK_ERR(DDERR_NOTFOUND, "Requested item was not found") CHK_ERR(DDERR_NOOVERLAYHW, "Operation could not be carried out because there is no overlay hardware present or available.") CHK_ERR(DDERR_OVERLAPPINGRECTS, "Operation could not be carried out because the source and destination rectangles are on the same surface and overlap each other.") CHK_ERR(DDERR_NORASTEROPHW, "Operation could not be carried out because there is no appropriate raster op hardware present or available.") CHK_ERR(DDERR_NOROTATIONHW, "Operation could not be carried out because there is no rotation hardware present or available.") CHK_ERR(DDERR_NOSTRETCHHW, "Operation could not be carried out because there is no hardware support for stretching") CHK_ERR(DDERR_NOT4BITCOLOR, "DirectDrawSurface is not in 4 bit color palette and the requested operation requires 4 bit color palette.") CHK_ERR(DDERR_NOT4BITCOLORINDEX, "DirectDrawSurface is not in 4 bit color index palette and the requested operation requires 4 bit color index palette.") CHK_ERR(DDERR_NOT8BITCOLOR, "DirectDraw Surface is not in 8 bit color mode and the requested operation requires 8 bit color.") CHK_ERR(DDERR_NOTEXTUREHW, "Operation could not be carried out because there is no texture mapping hardware present or available.") CHK_ERR(DDERR_NOVSYNCHW, "Operation could not be carried out because there is no hardware support for vertical blank synchronized operations.") CHK_ERR(DDERR_NOZBUFFERHW, "Operation could not be carried out because there is no hardware support for zbuffer blting.") CHK_ERR(DDERR_NOZOVERLAYHW, "Overlay surfaces could not be z layered based on their BltOrder because the hardware does not support z layering of overlays.") CHK_ERR(DDERR_OUTOFCAPS, "The hardware needed for the requested operation has already been allocated.") // CHK_ERR(DDERR_OUTOFMEMORY, "DDERR_OUTOFMEMORY") // CHK_ERR(DDERR_OUTOFVIDEOMEMORY, "DDERR_OUTOFVIDEOMEMORY") CHK_ERR(DDERR_OVERLAYCANTCLIP, "hardware does not support clipped overlays") CHK_ERR(DDERR_OVERLAYCOLORKEYONLYONEACTIVE, "Can only have ony color key active at one time for overlays") CHK_ERR(DDERR_PALETTEBUSY, "Access to this palette is being refused because the palette is already locked by another thread.") CHK_ERR(DDERR_COLORKEYNOTSET, "No src color key specified for this operation.") CHK_ERR(DDERR_SURFACEALREADYATTACHED, "This surface is already attached to the surface it is being attached to.") CHK_ERR(DDERR_SURFACEALREADYDEPENDENT, "This surface is already a dependency of the surface it is being made a dependency of.") CHK_ERR(DDERR_SURFACEBUSY, "Access to this surface is being refused because the surface is already locked by another thread.") CHK_ERR(DDERR_CANTLOCKSURFACE, "Access to this surface is being refused because no driver exists which can supply a pointer to the surface. This is most likely to happen when attempting to lock the primary surface when no DCI provider is present. Will also happen on attempts to lock an optimized surface.") CHK_ERR(DDERR_SURFACEISOBSCURED, "Access to Surface refused because Surface is obscured.") CHK_ERR(DDERR_SURFACELOST, "Access to this surface is being refused because the surface is gone. The DIRECTDRAWSURFACE object representing this surface should have Restore called on it.") CHK_ERR(DDERR_SURFACENOTATTACHED, "The requested surface is not attached.") CHK_ERR(DDERR_TOOBIGHEIGHT, "Height requested by DirectDraw is too large.") CHK_ERR(DDERR_TOOBIGSIZE, "Size requested by DirectDraw is too large -- The individual height and width are OK.") CHK_ERR(DDERR_TOOBIGWIDTH, "Width requested by DirectDraw is too large.") // CHK_ERR(DDERR_UNSUPPORTED, "DDERR_UNSUPPORTED") CHK_ERR(DDERR_UNSUPPORTEDFORMAT, "Pixel format requested is unsupported by DirectDraw") CHK_ERR(DDERR_UNSUPPORTEDMASK, "Bitmask in the pixel format requested is unsupported by DirectDraw") CHK_ERR(DDERR_INVALIDSTREAM, "The specified stream contains invalid data") CHK_ERR(DDERR_VERTICALBLANKINPROGRESS, "vertical blank is in progress") CHK_ERR(DDERR_WASSTILLDRAWING, "Informs DirectDraw that the previous Blt which is transfering information to or from this Surface is incomplete.") CHK_ERR(DDERR_DDSCAPSCOMPLEXREQUIRED, "The specified surface type requires specification of the COMPLEX flag") CHK_ERR(DDERR_XALIGN, "Rectangle provided was not horizontally aligned on reqd. boundary") CHK_ERR(DDERR_INVALIDDIRECTDRAWGUID, "The GUID passed to DirectDrawCreate is not a valid DirectDraw driver identifier.") CHK_ERR(DDERR_DIRECTDRAWALREADYCREATED, "A DirectDraw object representing this driver has already been created for this process.") CHK_ERR(DDERR_NODIRECTDRAWHW, "A hardware only DirectDraw object creation was attempted but the driver did not support any hardware.") CHK_ERR(DDERR_PRIMARYSURFACEALREADYEXISTS, "this process already has created a primary surface") CHK_ERR(DDERR_NOEMULATION, "software emulation not available.") CHK_ERR(DDERR_REGIONTOOSMALL, "region passed to Clipper::GetClipList is too small.") CHK_ERR(DDERR_CLIPPERISUSINGHWND, "an attempt was made to set a clip list for a clipper objec that is already monitoring an hwnd.") CHK_ERR(DDERR_NOCLIPPERATTACHED, "No clipper object attached to surface object") CHK_ERR(DDERR_NOHWND, "Clipper notification requires an HWND or no HWND has previously been set as the CooperativeLevel HWND.") CHK_ERR(DDERR_HWNDSUBCLASSED, "HWND used by DirectDraw CooperativeLevel has been subclassed, this prevents DirectDraw from restoring state.") CHK_ERR(DDERR_HWNDALREADYSET, "The CooperativeLevel HWND has already been set. It can not be reset while the process has surfaces or palettes created.") CHK_ERR(DDERR_NOPALETTEATTACHED, "No palette object attached to this surface.") CHK_ERR(DDERR_NOPALETTEHW, "No hardware support for 16 or 256 color palettes.") CHK_ERR(DDERR_BLTFASTCANTCLIP, "If a clipper object is attached to the source surface passed into a BltFast call.") CHK_ERR(DDERR_NOBLTHW, "No blter.") CHK_ERR(DDERR_NODDROPSHW, "No DirectDraw ROP hardware.") CHK_ERR(DDERR_OVERLAYNOTVISIBLE, "returned when GetOverlayPosition is called on a hidden overlay") CHK_ERR(DDERR_NOOVERLAYDEST, "returned when GetOverlayPosition is called on a overlay that UpdateOverlay has never been called on to establish a destionation.") CHK_ERR(DDERR_INVALIDPOSITION, "returned when the position of the overlay on the destionation is no longer legal for that destionation.") CHK_ERR(DDERR_NOTAOVERLAYSURFACE, "returned when an overlay member is called for a non-overlay surface") CHK_ERR(DDERR_EXCLUSIVEMODEALREADYSET, "An attempt was made to set the cooperative level when it was already set to exclusive.") CHK_ERR(DDERR_NOTFLIPPABLE, "An attempt has been made to flip a surface that is not flippable.") CHK_ERR(DDERR_CANTDUPLICATE, "Can't duplicate primary & 3D surfaces, or surfaces that are implicitly created.") CHK_ERR(DDERR_NOTLOCKED, "Surface was not locked. An attempt to unlock a surface that was not locked at all, or by this process, has been attempted.") CHK_ERR(DDERR_CANTCREATEDC, "Windows can not create any more DCs, or a DC was requested for a paltte-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)") CHK_ERR(DDERR_NODC, "No DC was ever created for this surface.") CHK_ERR(DDERR_WRONGMODE, "This surface can not be restored because it was created in a different mode.") CHK_ERR(DDERR_IMPLICITLYCREATED, "This surface can not be restored because it is an implicitly created surface.") CHK_ERR(DDERR_NOTPALETTIZED, "The surface being used is not a palette-based surface") CHK_ERR(DDERR_UNSUPPORTEDMODE, "The display is currently in an unsupported mode") CHK_ERR(DDERR_NOMIPMAPHW, "Operation could not be carried out because there is no mip-map texture mapping hardware present or available.") CHK_ERR(DDERR_INVALIDSURFACETYPE, "The requested action could not be performed because the surface was of the wrong type.") CHK_ERR(DDERR_NOOPTIMIZEHW, "Device does not support optimized surfaces, therefore no video memory optimized surfaces") CHK_ERR(DDERR_NOTLOADED, "Surface is an optimized surface, but has not yet been allocated any memory") CHK_ERR(DDERR_NOFOCUSWINDOW, "Attempt was made to create or set a device window without first setting the focus window") CHK_ERR(DDERR_NOTONMIPMAPSUBLEVEL, "Attempt was made to set a palette on a mipmap sublevel") CHK_ERR(DDERR_DCALREADYCREATED, "A DC has already been returned for this surface. Only one DC can be retrieved per surface.") CHK_ERR(DDERR_NONONLOCALVIDMEM, "An attempt was made to allocate non-local video memory from a device that does not support non-local video memory.") CHK_ERR(DDERR_CANTPAGELOCK, "The attempt to page lock a surface failed.") CHK_ERR(DDERR_CANTPAGEUNLOCK, "The attempt to page unlock a surface failed.") CHK_ERR(DDERR_NOTPAGELOCKED, "An attempt was made to page unlock a surface with no outstanding page locks.") CHK_ERR(DDERR_MOREDATA, "There is more data available than the specified buffer size could hold") CHK_ERR(DDERR_EXPIRED, "The data has expired and is therefore no longer valid.") CHK_ERR(DDERR_TESTFINISHED, "The mode test has finished executing.") CHK_ERR(DDERR_NEWMODE, "The mode test has switched to a new mode.") CHK_ERR(DDERR_D3DNOTINITIALIZED, "D3D has not yet been initialized.") CHK_ERR(DDERR_VIDEONOTACTIVE, "The video port is not active") CHK_ERR(DDERR_NOMONITORINFORMATION, "The monitor does not have EDID data.") CHK_ERR(DDERR_NODRIVERSUPPORT, "The driver does not enumerate display mode refresh rates.") CHK_ERR(DDERR_DEVICEDOESNTOWNSURFACE, "Surfaces created by one direct draw device cannot be used directly by another direct draw device.") // ------------------------------------------------------------- // dinput.h error codes as of 10/4/00 // ------------------------------------------------------------- // CHK_ERR(DI_OK, "DI_OK") // CHK_ERR(DI_NOTATTACHED, "DI_NOTATTACHED") // CHK_ERR(DI_BUFFEROVERFLOW, "DI_BUFFEROVERFLOW") // CHK_ERR(DI_PROPNOEFFECT, "DI_PROPNOEFFECT") // CHK_ERR(DI_NOEFFECT, "DI_NOEFFECT") // CHK_ERR(DI_POLLEDDEVICE, "DI_POLLEDDEVICE") // CHK_ERR(DI_DOWNLOADSKIPPED, "DI_DOWNLOADSKIPPED") // CHK_ERR(DI_EFFECTRESTARTED, "DI_EFFECTRESTARTED") // CHK_ERR(DI_SETTINGSNOTSAVED_ACCESSDENIED, "DI_SETTINGSNOTSAVED_ACCESSDENIED") // CHK_ERR(DI_SETTINGSNOTSAVED_DISKFULL, "DI_SETTINGSNOTSAVED_DISKFULL") // CHK_ERR(DI_TRUNCATED, "DI_TRUNCATED") // CHK_ERR(DI_TRUNCATEDANDRESTARTED, "DI_TRUNCATEDANDRESTARTED") // CHK_ERR(DI_WRITEPROTECT, "DI_WRITEPROTECT") CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, "The application requires a newer version of DirectInput.") // CHK_ERR(DIERR_GENERIC, "DIERR_GENERIC") // CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, "DIERR_OLDDIRECTINPUTVERSION") CHK_ERR(DIERR_BETADIRECTINPUTVERSION, "The application was written for an unsupported prerelease version of DirectInput.") CHK_ERR(DIERR_BADDRIVERVER, "The object could not be created due to an incompatible driver version or mismatched or incomplete driver components.") // CHK_ERR(DIERR_DEVICENOTREG, "DIERR_DEVICENOTREG") CHK_ERR(DIERR_NOTFOUND, "The requested object does not exist.") // CHK_ERR(DIERR_OBJECTNOTFOUND, "DIERR_OBJECTNOTFOUND") // CHK_ERR(DIERR_INVALIDPARAM, "DIERR_INVALIDPARAM") // CHK_ERR(DIERR_NOINTERFACE, "DIERR_NOINTERFACE") // CHK_ERR(DIERR_GENERIC, "DIERR_GENERIC") // CHK_ERR(DIERR_OUTOFMEMORY, "DIERR_OUTOFMEMORY") // CHK_ERR(DIERR_UNSUPPORTED, "DIERR_UNSUPPORTED") CHK_ERR(DIERR_NOTINITIALIZED, "This object has not been initialized") CHK_ERR(DIERR_ALREADYINITIALIZED, "This object is already initialized") // CHK_ERR(DIERR_NOAGGREGATION, "DIERR_NOAGGREGATION") // CHK_ERR(DIERR_OTHERAPPHASPRIO, "DIERR_OTHERAPPHASPRIO") CHK_ERR(DIERR_INPUTLOST, "Access to the device has been lost. It must be re-acquired.") CHK_ERR(DIERR_ACQUIRED, "The operation cannot be performed while the device is acquired.") CHK_ERR(DIERR_NOTACQUIRED, "The operation cannot be performed unless the device is acquired.") // CHK_ERR(DIERR_READONLY, "DIERR_READONLY") // CHK_ERR(DIERR_HANDLEEXISTS, "DIERR_HANDLEEXISTS") CHK_ERR(DIERR_INSUFFICIENTPRIVS, "Unable to IDirectInputJoyConfig_Acquire because the user does not have sufficient privileges to change the joystick configuration. & An invalid media type was specified") CHK_ERR(DIERR_DEVICEFULL, "The device is full. & An invalid media subtype was specified.") CHK_ERR(DIERR_MOREDATA, "Not all the requested information fit into the buffer. & This object can only be created as an aggregated object.") CHK_ERR(DIERR_NOTDOWNLOADED, "The effect is not downloaded. & The enumerator has become invalid.") CHK_ERR(DIERR_HASEFFECTS, "The device cannot be reinitialized because there are still effects attached to it. & At least one of the pins involved in the operation is already connected.") CHK_ERR(DIERR_NOTEXCLUSIVEACQUIRED, "The operation cannot be performed unless the device is acquired in DISCL_EXCLUSIVE mode. & This operation cannot be performed because the filter is active.") CHK_ERR(DIERR_INCOMPLETEEFFECT, "The effect could not be downloaded because essential information is missing. For example, no axes have been associated with the effect, or no type-specific information has been created. & One of the specified pins supports no media types.") CHK_ERR(DIERR_NOTBUFFERED, "Attempted to read buffered device data from a device that is not buffered. & There is no common media type between these pins.") CHK_ERR(DIERR_EFFECTPLAYING, "An attempt was made to modify parameters of an effect while it is playing. Not all hardware devices support altering the parameters of an effect while it is playing. & Two pins of the same direction cannot be connected together.") CHK_ERR(DIERR_UNPLUGGED, "The operation could not be completed because the device is not plugged in. & The operation cannot be performed because the pins are not connected.") CHK_ERR(DIERR_REPORTFULL, "SendDeviceData failed because more information was requested to be sent than can be sent to the device. Some devices have restrictions on how much data can be sent to them. (For example, there might be a limit on the number of buttons that can be pressed at once.) & No sample buffer allocator is available.") CHK_ERR(DIERR_MAPFILEFAIL, "A mapper file function failed because reading or writing the user or IHV settings file failed. & A run-time error occurred.") // ------------------------------------------------------------- // dinputd.h error codes as of 9/8/00 // ------------------------------------------------------------- CHK_ERR(DIERR_NOMOREITEMS, "No more items.") CHK_ERR(DIERR_DRIVERFIRST, "Device driver-specific codes. Unless the specific driver has been precisely identified, no meaning should be attributed to these values other than that the driver originated the error.") CHK_ERR(DIERR_DRIVERFIRST+1, "DIERR_DRIVERFIRST+1") CHK_ERR(DIERR_DRIVERFIRST+2, "DIERR_DRIVERFIRST+2") CHK_ERR(DIERR_DRIVERFIRST+3, "DIERR_DRIVERFIRST+3") CHK_ERR(DIERR_DRIVERFIRST+4, "DIERR_DRIVERFIRST+4") CHK_ERR(DIERR_DRIVERFIRST+5, "DIERR_DRIVERFIRST+5") CHK_ERR(DIERR_DRIVERLAST, "Device installer errors.") CHK_ERR(DIERR_INVALIDCLASSINSTALLER, "Registry entry or DLL for class installer invalid or class installer not found.") CHK_ERR(DIERR_CANCELLED, "The user cancelled the install operation.") CHK_ERR(DIERR_BADINF, "The INF file for the selected device could not be found or is invalid or is damaged.") // ------------------------------------------------------------- // dvoice.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(DV_OK, "OK") CHK_ERR(DV_FULLDUPLEX, "Full duplex") CHK_ERR(DV_HALFDUPLEX, "Half duplex") CHK_ERR(DV_PENDING, "Pending") CHK_ERR(DVERR_BUFFERTOOSMALL, "Buffer too small") CHK_ERR(DVERR_EXCEPTION, "Exception") // CHK_ERR(DVERR_GENERIC, "Generic") CHK_ERR(DVERR_INVALIDFLAGS, "Invalid flags") CHK_ERR(DVERR_INVALIDOBJECT, "Invalid object") CHK_ERR(DVERR_INVALIDPLAYER, "Invalid player") CHK_ERR(DVERR_INVALIDGROUP, "Invalid group") CHK_ERR(DVERR_INVALIDHANDLE, "Invalid handle") // CHK_ERR(DVERR_OUTOFMEMORY, "Out of memory") // CHK_ERR(DVERR_PENDING, "Pending") // CHK_ERR(DVERR_NOTSUPPORTED, "Not supported") // CHK_ERR(DVERR_NOINTERFACE, "No interface") CHK_ERR(DVERR_SESSIONLOST, "Session lost") CHK_ERR(DVERR_NOVOICESESSION, "No voice session") CHK_ERR(DVERR_CONNECTIONLOST, "Connection lost") CHK_ERR(DVERR_NOTINITIALIZED, "Not initialized") CHK_ERR(DVERR_CONNECTED, "Connected") CHK_ERR(DVERR_NOTCONNECTED, "Not connected") CHK_ERR(DVERR_CONNECTABORTING, "Connect aborting") CHK_ERR(DVERR_NOTALLOWED, "Not allowed") CHK_ERR(DVERR_INVALIDTARGET, "Invalid target") CHK_ERR(DVERR_TRANSPORTNOTHOST, "Transport not host") CHK_ERR(DVERR_COMPRESSIONNOTSUPPORTED, "Compression not supported") CHK_ERR(DVERR_ALREADYPENDING, "Already pending") CHK_ERR(DVERR_SOUNDINITFAILURE, "Sound init failure") CHK_ERR(DVERR_TIMEOUT, "Time out") CHK_ERR(DVERR_CONNECTABORTED, "Connect aborted") CHK_ERR(DVERR_NO3DSOUND, "No 3d sound") CHK_ERR(DVERR_ALREADYBUFFERED, "Already buffered") CHK_ERR(DVERR_NOTBUFFERED, "Not buffered") CHK_ERR(DVERR_HOSTING, "Hosting") CHK_ERR(DVERR_NOTHOSTING, "Not hosting") CHK_ERR(DVERR_INVALIDDEVICE, "Invalid device") CHK_ERR(DVERR_RECORDSYSTEMERROR, "Record system error") CHK_ERR(DVERR_PLAYBACKSYSTEMERROR, "Playback system error") CHK_ERR(DVERR_SENDERROR, "Send error") CHK_ERR(DVERR_USERCANCEL, "User cancel") CHK_ERR(DVERR_RUNSETUP, "Run setup") CHK_ERR(DVERR_INCOMPATIBLEVERSION, "Incompatible version") CHK_ERR(DVERR_INITIALIZED, "Initialized") // CHK_ERR(DVERR_INVALIDPOINTER, "Invalid pointer") CHK_ERR(DVERR_NOTRANSPORT, "No transport") CHK_ERR(DVERR_NOCALLBACK, "No callback") CHK_ERR(DVERR_TRANSPORTNOTINIT, "Transport not init") CHK_ERR(DVERR_TRANSPORTNOSESSION, "Transport no session") CHK_ERR(DVERR_TRANSPORTNOPLAYER, "Transport no player") CHK_ERR(DVERR_USERBACK, "User back") CHK_ERR(DVERR_NORECVOLAVAILABLE, "No rec vol available") CHK_ERR(DVERR_INVALIDBUFFER, "Invalid buffer") CHK_ERR(DVERR_LOCKEDBUFFER, "Locked buffer") // ------------------------------------------------------------- // dplay8.h error codes as of 10/4/00 // ------------------------------------------------------------- CHK_ERR(DPNERR_ABORTED, "Aborted") CHK_ERR(DPNERR_ADDRESSING, "Addressing") CHK_ERR(DPNERR_ALREADYCLOSING, "Already closing") CHK_ERR(DPNERR_ALREADYCONNECTED, "Already connected") CHK_ERR(DPNERR_ALREADYDISCONNECTING, "Already disconnecting") CHK_ERR(DPNERR_ALREADYINITIALIZED, "Already initialized") CHK_ERR(DPNERR_ALREADYREGISTERED, "Already registered") CHK_ERR(DPNERR_BUFFERTOOSMALL, "Buffer too small") CHK_ERR(DPNERR_CANNOTCANCEL, "Can not cancel") CHK_ERR(DPNERR_CANTCREATEGROUP, "Cant create group") CHK_ERR(DPNERR_CANTCREATEPLAYER, "Cant create player") CHK_ERR(DPNERR_CANTLAUNCHAPPLICATION, "Cant launch application") CHK_ERR(DPNERR_CONNECTING, "Connecting") CHK_ERR(DPNERR_CONNECTIONLOST, "Connection lost") CHK_ERR(DPNERR_CONVERSION, "Conversion") CHK_ERR(DPNERR_DATATOOLARGE, "Data too large") CHK_ERR(DPNERR_DOESNOTEXIST, "Does not exist") CHK_ERR(DPNERR_DUPLICATECOMMAND, "Duplicate command") CHK_ERR(DPNERR_ENDPOINTNOTRECEIVING, "End point not receiving") CHK_ERR(DPNERR_ENUMQUERYTOOLARGE, "Enum query too large") CHK_ERR(DPNERR_ENUMRESPONSETOOLARGE, "Enum response too large") CHK_ERR(DPNERR_EXCEPTION, "Exception") CHK_ERR(DPNERR_GROUPNOTEMPTY, "Group not empty") CHK_ERR(DPNERR_HOSTING, "Hosting") CHK_ERR(DPNERR_HOSTREJECTEDCONNECTION, "Host rejected connection") CHK_ERR(DPNERR_HOSTTERMINATEDSESSION, "Host terminated session") CHK_ERR(DPNERR_INCOMPLETEADDRESS, "Incomplete address") CHK_ERR(DPNERR_INVALIDADDRESSFORMAT, "Invalid address format") CHK_ERR(DPNERR_INVALIDAPPLICATION, "Invalid application") CHK_ERR(DPNERR_INVALIDCOMMAND, "Invalid command") CHK_ERR(DPNERR_INVALIDENDPOINT, "Invalid end point") CHK_ERR(DPNERR_INVALIDFLAGS, "Invalid flags") CHK_ERR(DPNERR_INVALIDGROUP, "Invalid group") CHK_ERR(DPNERR_INVALIDHANDLE, "Invalid handle") CHK_ERR(DPNERR_INVALIDINSTANCE, "Invalid instance") CHK_ERR(DPNERR_INVALIDINTERFACE, "Invalid interface") CHK_ERR(DPNERR_INVALIDDEVICEADDRESS, "Invalid device address") CHK_ERR(DPNERR_INVALIDOBJECT, "Invalid object") // CHK_ERR(DPNERR_INVALIDPARAM, "Invalid param") CHK_ERR(DPNERR_INVALIDPASSWORD, "Invalid password") CHK_ERR(DPNERR_INVALIDPLAYER, "Invalid player") // CHK_ERR(DPNERR_INVALIDPOINTER, "Invalid pointer") CHK_ERR(DPNERR_INVALIDPRIORITY, "Invalid priority") CHK_ERR(DPNERR_INVALIDHOSTADDRESS, "Invalid host address") CHK_ERR(DPNERR_INVALIDSTRING, "Invalid string") CHK_ERR(DPNERR_INVALIDURL, "Invalid url") CHK_ERR(DPNERR_INVALIDVERSION, "Invalid version") CHK_ERR(DPNERR_NOCAPS, "No caps") CHK_ERR(DPNERR_NOCONNECTION, "No connection") CHK_ERR(DPNERR_NOHOSTPLAYER, "No host player") // CHK_ERR(DPNERR_NOINTERFACE, "No interface") CHK_ERR(DPNERR_NOMOREADDRESSCOMPONENTS, "No more address components") CHK_ERR(DPNERR_NORESPONSE, "No response") CHK_ERR(DPNERR_NOTALLOWED, "Not allowed") CHK_ERR(DPNERR_NOTHOST, "Not host") CHK_ERR(DPNERR_NOTREADY, "Not ready") CHK_ERR(DPNERR_NOTREGISTERED, "Not registered") // CHK_ERR(DPNERR_OUTOFMEMORY, "Out of memory") // CHK_ERR(DPNERR_PENDING, "Pending") CHK_ERR(DPNERR_PLAYERLOST, "Player lost") CHK_ERR(DPNERR_PLAYERNOTREACHABLE, "Player not reachable") CHK_ERR(DPNERR_SENDTOOLARGE, "Send too large") CHK_ERR(DPNERR_SESSIONFULL, "Session full") CHK_ERR(DPNERR_TABLEFULL, "Table full") CHK_ERR(DPNERR_TIMEDOUT, "Timed out") CHK_ERR(DPNERR_UNINITIALIZED, "Uninitialized") // CHK_ERR(DPNERR_UNSUPPORTED, "Unsupported") CHK_ERR(DPNERR_USERCANCEL, "User cancel") // ------------------------------------------------------------- // dxfile.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(DXFILE_OK, "Ok") CHK_ERR(DXFILEERR_BADOBJECT, "Bad object") CHK_ERR(DXFILEERR_BADVALUE, "Bad value") CHK_ERR(DXFILEERR_BADTYPE, "Bad type") CHK_ERR(DXFILEERR_BADSTREAMHANDLE, "Bad stream handle") CHK_ERR(DXFILEERR_BADALLOC, "Bad alloc") CHK_ERR(DXFILEERR_NOTFOUND, "Not found") CHK_ERR(DXFILEERR_NOTDONEYET, "Not done yet") CHK_ERR(DXFILEERR_FILENOTFOUND, "File not found") CHK_ERR(DXFILEERR_RESOURCENOTFOUND, "Resource not found") CHK_ERR(DXFILEERR_URLNOTFOUND, "Url not found") CHK_ERR(DXFILEERR_BADRESOURCE, "Bad resource") CHK_ERR(DXFILEERR_BADFILETYPE, "Bad file type") CHK_ERR(DXFILEERR_BADFILEVERSION, "Bad file version") CHK_ERR(DXFILEERR_BADFILEFLOATSIZE, "Bad file float size") CHK_ERR(DXFILEERR_BADFILECOMPRESSIONTYPE, "Bad file compression type") CHK_ERR(DXFILEERR_BADFILE, "Bad file") CHK_ERR(DXFILEERR_PARSEERROR, "Parse error") CHK_ERR(DXFILEERR_NOTEMPLATE, "No template") CHK_ERR(DXFILEERR_BADARRAYSIZE, "Bad array size") CHK_ERR(DXFILEERR_BADDATAREFERENCE, "Bad data reference") CHK_ERR(DXFILEERR_INTERNALERROR, "Internal error") CHK_ERR(DXFILEERR_NOMOREOBJECTS, "No more objects") CHK_ERR(DXFILEERR_BADINTRINSICS, "Bad intrinsics") CHK_ERR(DXFILEERR_NOMORESTREAMHANDLES, "No more stream handles") CHK_ERR(DXFILEERR_NOMOREDATA, "No more data") CHK_ERR(DXFILEERR_BADCACHEFILE, "Bad cache file") CHK_ERR(DXFILEERR_NOINTERNET, "No internet") // ------------------------------------------------------------- // d3d8.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(D3D_OK, "Ok") CHK_ERR(D3DERR_WRONGTEXTUREFORMAT, "Wrong texture format") CHK_ERR(D3DERR_UNSUPPORTEDCOLOROPERATION, "Unsupported color operation") CHK_ERR(D3DERR_UNSUPPORTEDCOLORARG, "Unsupported color arg") CHK_ERR(D3DERR_UNSUPPORTEDALPHAOPERATION, "Unsupported alpha operation") CHK_ERR(D3DERR_UNSUPPORTEDALPHAARG, "Unsupported alpha arg") CHK_ERR(D3DERR_TOOMANYOPERATIONS, "Too many operations") CHK_ERR(D3DERR_CONFLICTINGTEXTUREFILTER, "Conflicting texture filter") CHK_ERR(D3DERR_UNSUPPORTEDFACTORVALUE, "Unsupported factor value") CHK_ERR(D3DERR_CONFLICTINGRENDERSTATE, "Conflicting render state") CHK_ERR(D3DERR_UNSUPPORTEDTEXTUREFILTER, "Unsupported texture filter") CHK_ERR(D3DERR_CONFLICTINGTEXTUREPALETTE, "Conflicting texture palette") CHK_ERR(D3DERR_DRIVERINTERNALERROR, "Driver internal error") CHK_ERR(D3DERR_NOTFOUND, "Not found") CHK_ERR(D3DERR_MOREDATA, "More data") CHK_ERR(D3DERR_DEVICELOST, "Device lost") CHK_ERR(D3DERR_DEVICENOTRESET, "Device not reset") CHK_ERR(D3DERR_NOTAVAILABLE, "Not available") CHK_ERR(D3DERR_OUTOFVIDEOMEMORY, "Out of video memory") CHK_ERR(D3DERR_INVALIDDEVICE, "Invalid device") CHK_ERR(D3DERR_INVALIDCALL, "Invalid call") CHK_ERR(D3DERR_DRIVERINVALIDCALL, "Driver invalid call") // ------------------------------------------------------------- // d3dx8mesh.h error codes as of 12/5/00 // ------------------------------------------------------------- CHK_ERR(D3DXERR_CANNOTMODIFYINDEXBUFFER, "Can not modify index buffer") CHK_ERR(D3DXERR_INVALIDMESH, "Invalid mesh") CHK_ERR(D3DXERR_CANNOTATTRSORT, "Cannot attr sort") CHK_ERR(D3DXERR_SKINNINGNOTSUPPORTED, "Skinning not supported") CHK_ERR(D3DXERR_TOOMANYINFLUENCES, "Too many influences") CHK_ERR(D3DXERR_INVALIDDATA, "Invalid data") // ------------------------------------------------------------- // dsound.h error codes as of 1/22/01 // ------------------------------------------------------------- // CHK_ERR(DS_OK, "") CHK_ERR(DS_NO_VIRTUALIZATION, "The call succeeded, but we had to substitute the 3D algorithm") CHK_ERR(DS_INCOMPLETE, "The call succeeded, but not all of the optional effects were obtained.") CHK_ERR(DSERR_ALLOCATED, "The call failed because resources (such as a priority level) were already being used by another caller") CHK_ERR(DSERR_CONTROLUNAVAIL, "The control (vol, pan, etc.) requested by the caller is not available") // CHK_ERR(DSERR_INVALIDPARAM, "DSERR_INVALIDPARAM") CHK_ERR(DSERR_INVALIDCALL, "This call is not valid for the current state of this object") // CHK_ERR(DSERR_GENERIC, "DSERR_GENERIC") CHK_ERR(DSERR_PRIOLEVELNEEDED, "The caller does not have the priority level required for the function to succeed") // CHK_ERR(DSERR_OUTOFMEMORY, "Not enough free memory is available to complete the operation") CHK_ERR(DSERR_BADFORMAT, "The specified WAVE format is not supported") // CHK_ERR(DSERR_UNSUPPORTED, "DSERR_UNSUPPORTED") CHK_ERR(DSERR_NODRIVER, "No sound driver is available for use") CHK_ERR(DSERR_ALREADYINITIALIZED, "This object is already initialized") // CHK_ERR(DSERR_NOAGGREGATION, "DSERR_NOAGGREGATION") CHK_ERR(DSERR_BUFFERLOST, "The buffer memory has been lost, and must be restored") CHK_ERR(DSERR_OTHERAPPHASPRIO, "Another app has a higher priority level, preventing this call from succeeding") CHK_ERR(DSERR_UNINITIALIZED, "This object has not been initialized") // CHK_ERR(DSERR_NOINTERFACE, "DSERR_NOINTERFACE") // CHK_ERR(DSERR_ACCESSDENIED, "DSERR_ACCESSDENIED") CHK_ERR(DSERR_BUFFERTOOSMALL, "Tried to create a DSBCAPS_CTRLFX buffer shorter than DSBSIZE_FX_MIN milliseconds") CHK_ERR(DSERR_DS8_REQUIRED, "Attempt to use DirectSound 8 functionality on an older DirectSound object") CHK_ERR(DSERR_SENDLOOP, "A circular loop of send effects was detected") CHK_ERR(DSERR_BADSENDBUFFERGUID, "The GUID specified in an audiopath file does not match a valid MIXIN buffer") CHK_ERR(DSERR_OBJECTNOTFOUND, "The object requested was not found (numerically equal to DMUS_E_NOT_FOUND)") // ------------------------------------------------------------- // dmerror.h error codes as of 9/8/00 // ------------------------------------------------------------- CHK_ERR(DMUS_S_PARTIALLOAD, "The object could only load partially. This can happen if some components are not registered properly, such as embedded tracks and tools. This can also happen if some content is missing. For example, if a segment uses a DLS collection that is not in the loader's current search directory.") CHK_ERR(DMUS_S_PARTIALDOWNLOAD, "Return value from IDirectMusicBand::Download() which indicates that some of the instruments safely downloaded, but others failed. This usually occurs when some instruments are on PChannels not supported by the performance or port.") CHK_ERR(DMUS_S_REQUEUE, "Return value from IDirectMusicTool::ProcessPMsg() which indicates to the performance that it should cue the PMsg again automatically.") CHK_ERR(DMUS_S_FREE, "Return value from IDirectMusicTool::ProcessPMsg() which indicates to the performance that it should free the PMsg automatically.") CHK_ERR(DMUS_S_END, "Return value from IDirectMusicTrack::Play() which indicates to the segment that the track has no more data after mtEnd.") CHK_ERR(DMUS_S_STRING_TRUNCATED, "Returned string has been truncated to fit the buffer size.") CHK_ERR(DMUS_S_LAST_TOOL, "Returned from IDirectMusicGraph::StampPMsg(), this indicates that the PMsg is already stamped with the last tool in the graph. The returned PMsg's tool pointer is now NULL.") CHK_ERR(DMUS_S_OVER_CHORD, "Returned from IDirectMusicPerformance::MusicToMIDI(), this indicates that no note has been calculated because the music value has the note at a position higher than the top note of the chord. This applies only to DMUS_PLAYMODE_NORMALCHORD play mode. This success code indicates that the caller should not do anything with the note. It is not meant to be played against this chord.") CHK_ERR(DMUS_S_UP_OCTAVE, "Returned from IDirectMusicPerformance::MIDIToMusic(), and IDirectMusicPerformance::MusicToMIDI(), this indicates that the note conversion generated a note value that is below 0, so it has been bumped up one or more octaves to be in the proper MIDI range of 0 through 127. Note that this is valid for MIDIToMusic() when using play modes DMUS_PLAYMODE_FIXEDTOCHORD and DMUS_PLAYMODE_FIXEDTOKEY, both of which store MIDI values in wMusicValue. With MusicToMIDI(), it is valid for all play modes. Ofcourse, DMUS_PLAYMODE_FIXED will never return this success code.") CHK_ERR(DMUS_S_DOWN_OCTAVE, "Returned from IDirectMusicPerformance::MIDIToMusic(), and IDirectMusicPerformance::MusicToMIDI(), this indicates that the note conversion generated a note value that is above 127, so it has been bumped down one or more octaves to be in the proper MIDI range of 0 through 127. Note that this is valid for MIDIToMusic() when using play modes DMUS_PLAYMODE_FIXEDTOCHORD and DMUS_PLAYMODE_FIXEDTOKEY, both of which store MIDI values in wMusicValue. With MusicToMIDI(), it is valid for all play modes. Ofcourse, DMUS_PLAYMODE_FIXED will never return this success code.") CHK_ERR(DMUS_S_NOBUFFERCONTROL, "Although the audio output from the port will be routed to the same device as the given DirectSound buffer, buffer controls such as pan and volume will not affect the output.") CHK_ERR(DMUS_S_GARBAGE_COLLECTED, "The requested operation was not performed because during CollectGarbage the loader determined that the object had been released.") CHK_ERR(DMUS_E_DRIVER_FAILED, "An unexpected error was returned from a device driver, indicating possible failure of the driver or hardware.") CHK_ERR(DMUS_E_PORTS_OPEN, "The requested operation cannot be performed while there are instantiated ports in any process in the system.") CHK_ERR(DMUS_E_DEVICE_IN_USE, "The requested device is already in use (possibly by a non-DirectMusic client) and cannot be opened again.") CHK_ERR(DMUS_E_INSUFFICIENTBUFFER, "Buffer is not large enough for requested operation.") CHK_ERR(DMUS_E_BUFFERNOTSET, "No buffer was prepared for the download data.") CHK_ERR(DMUS_E_BUFFERNOTAVAILABLE, "Download failed due to inability to access or create download buffer.") CHK_ERR(DMUS_E_NOTADLSCOL, "Error parsing DLS collection. File is corrupt.") CHK_ERR(DMUS_E_INVALIDOFFSET, "Wave chunks in DLS collection file are at incorrect offsets.") CHK_ERR(DMUS_E_ALREADY_LOADED, "Second attempt to load a DLS collection that is currently open. ") CHK_ERR(DMUS_E_INVALIDPOS, "Error reading wave data from DLS collection. Indicates bad file.") CHK_ERR(DMUS_E_INVALIDPATCH, "There is no instrument in the collection that matches patch number.") CHK_ERR(DMUS_E_CANNOTSEEK, "The IStream* doesn't support Seek().") CHK_ERR(DMUS_E_CANNOTWRITE, "The IStream* doesn't support Write().") CHK_ERR(DMUS_E_CHUNKNOTFOUND, "The RIFF parser doesn't contain a required chunk while parsing file.") CHK_ERR(DMUS_E_INVALID_DOWNLOADID, "Invalid download id was used in the process of creating a download buffer.") CHK_ERR(DMUS_E_NOT_DOWNLOADED_TO_PORT, "Tried to unload an object that was not downloaded or previously unloaded.") CHK_ERR(DMUS_E_ALREADY_DOWNLOADED, "Buffer was already downloaded to synth.") CHK_ERR(DMUS_E_UNKNOWN_PROPERTY, "The specified property item was not recognized by the target object.") CHK_ERR(DMUS_E_SET_UNSUPPORTED, "The specified property item may not be set on the target object.") CHK_ERR(DMUS_E_GET_UNSUPPORTED, "* The specified property item may not be retrieved from the target object.") CHK_ERR(DMUS_E_NOTMONO, "Wave chunk has more than one interleaved channel. DLS format requires MONO.") CHK_ERR(DMUS_E_BADARTICULATION, "Invalid articulation chunk in DLS collection.") CHK_ERR(DMUS_E_BADINSTRUMENT, "Invalid instrument chunk in DLS collection.") CHK_ERR(DMUS_E_BADWAVELINK, "Wavelink chunk in DLS collection points to invalid wave.") CHK_ERR(DMUS_E_NOARTICULATION, "Articulation missing from instrument in DLS collection.") CHK_ERR(DMUS_E_NOTPCM, "Downoaded DLS wave is not in PCM format. ") CHK_ERR(DMUS_E_BADWAVE, "Bad wave chunk in DLS collection") CHK_ERR(DMUS_E_BADOFFSETTABLE, "Offset Table for download buffer has errors. ") CHK_ERR(DMUS_E_UNKNOWNDOWNLOAD, "Attempted to download unknown data type.") CHK_ERR(DMUS_E_NOSYNTHSINK, "The operation could not be completed because no sink was connected to the synthesizer.") CHK_ERR(DMUS_E_ALREADYOPEN, "An attempt was made to open the software synthesizer while it was already open.") CHK_ERR(DMUS_E_ALREADYCLOSED, "An attempt was made to close the software synthesizer while it was already open.") CHK_ERR(DMUS_E_SYNTHNOTCONFIGURED, "The operation could not be completed because the software synth has not yet been fully configured.") CHK_ERR(DMUS_E_SYNTHACTIVE, "The operation cannot be carried out while the synthesizer is active.") CHK_ERR(DMUS_E_CANNOTREAD, "An error occurred while attempting to read from the IStream* object.") CHK_ERR(DMUS_E_DMUSIC_RELEASED, "The operation cannot be performed because the final instance of the DirectMusic object was released. Ports cannot be used after final release of the DirectMusic object.") CHK_ERR(DMUS_E_BUFFER_EMPTY, "There was no data in the referenced buffer.") CHK_ERR(DMUS_E_BUFFER_FULL, "There is insufficient space to insert the given event into the buffer.") CHK_ERR(DMUS_E_PORT_NOT_CAPTURE, "The given operation could not be carried out because the port is a capture port.") CHK_ERR(DMUS_E_PORT_NOT_RENDER, "The given operation could not be carried out because the port is a render port.") CHK_ERR(DMUS_E_DSOUND_NOT_SET, "The port could not be created because no DirectSound has been specified. Specify a DirectSound interface via the IDirectMusic::SetDirectSound method; pass NULL to have DirectMusic manage usage of DirectSound.") CHK_ERR(DMUS_E_ALREADY_ACTIVATED, "The operation cannot be carried out while the port is active.") CHK_ERR(DMUS_E_INVALIDBUFFER, "Invalid DirectSound buffer was handed to port. ") CHK_ERR(DMUS_E_WAVEFORMATNOTSUPPORTED, "Invalid buffer format was handed to the synth sink.") CHK_ERR(DMUS_E_SYNTHINACTIVE, "The operation cannot be carried out while the synthesizer is inactive.") CHK_ERR(DMUS_E_DSOUND_ALREADY_SET, "IDirectMusic::SetDirectSound has already been called. It may not be changed while in use.") CHK_ERR(DMUS_E_INVALID_EVENT, "The given event is invalid (either it is not a valid MIDI message or it makes use of running status). The event cannot be packed into the buffer.") CHK_ERR(DMUS_E_UNSUPPORTED_STREAM, "The IStream* object does not contain data supported by the loading object.") CHK_ERR(DMUS_E_ALREADY_INITED, "The object has already been initialized.") CHK_ERR(DMUS_E_INVALID_BAND, "The file does not contain a valid band.") CHK_ERR(DMUS_E_TRACK_HDR_NOT_FIRST_CK, "The IStream* object's data does not have a track header as the first chunk, and therefore can not be read by the segment object.") CHK_ERR(DMUS_E_TOOL_HDR_NOT_FIRST_CK, "The IStream* object's data does not have a tool header as the first chunk, and therefore can not be read by the graph object.") CHK_ERR(DMUS_E_INVALID_TRACK_HDR, "The IStream* object's data contains an invalid track header (ckid is 0 and fccType is NULL,) and therefore can not be read by the segment object.") CHK_ERR(DMUS_E_INVALID_TOOL_HDR, "The IStream* object's data contains an invalid tool header (ckid is 0 and fccType is NULL,) and therefore can not be read by the graph object.") CHK_ERR(DMUS_E_ALL_TOOLS_FAILED, "The graph object was unable to load all tools from the IStream* object data. This may be due to errors in the stream, or the tools being incorrectly registered on the client.") CHK_ERR(DMUS_E_ALL_TRACKS_FAILED, "The segment object was unable to load all tracks from the IStream* object data. This may be due to errors in the stream, or the tracks being incorrectly registered on the client.") // CHK_ERR(DMUS_E_NOT_FOUND, "DMUS_E_NOT_FOUND") CHK_ERR(DMUS_E_NOT_INIT, "A required object is not initialized or failed to initialize.") CHK_ERR(DMUS_E_TYPE_DISABLED, "The requested parameter type is currently disabled. Parameter types may be enabled and disabled by certain calls to SetParam().") CHK_ERR(DMUS_E_TYPE_UNSUPPORTED, "The requested parameter type is not supported on the object.") CHK_ERR(DMUS_E_TIME_PAST, "The time is in the past, and the operation can not succeed.") CHK_ERR(DMUS_E_TRACK_NOT_FOUND, "The requested track is not contained by the segment.") CHK_ERR(DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT, "The track does not support clock time playback or getparam.") CHK_ERR(DMUS_E_NO_MASTER_CLOCK, "There is no master clock in the performance. Be sure to call IDirectMusicPerformance::Init().") CHK_ERR(DMUS_E_LOADER_NOCLASSID, "The class id field is required and missing in the DMUS_OBJECTDESC.") CHK_ERR(DMUS_E_LOADER_BADPATH, "The requested file path is invalid.") CHK_ERR(DMUS_E_LOADER_FAILEDOPEN, "File open failed - either file doesn't exist or is locked.") CHK_ERR(DMUS_E_LOADER_FORMATNOTSUPPORTED, "Search data type is not supported.") CHK_ERR(DMUS_E_LOADER_FAILEDCREATE, "Unable to find or create object.") CHK_ERR(DMUS_E_LOADER_OBJECTNOTFOUND, "Object was not found.") CHK_ERR(DMUS_E_LOADER_NOFILENAME, "The file name is missing from the DMUS_OBJECTDESC.") CHK_ERR(DMUS_E_INVALIDFILE, "The file requested is not a valid file.") CHK_ERR(DMUS_E_ALREADY_EXISTS, "The tool is already contained in the graph. Create a new instance.") CHK_ERR(DMUS_E_OUT_OF_RANGE, "Value is out of range, for instance the requested length is longer than the segment.") CHK_ERR(DMUS_E_SEGMENT_INIT_FAILED, "Segment initialization failed, most likely due to a critical memory situation.") CHK_ERR(DMUS_E_ALREADY_SENT, "The DMUS_PMSG has already been sent to the performance object via IDirectMusicPerformance::SendPMsg().") CHK_ERR(DMUS_E_CANNOT_FREE, "The DMUS_PMSG was either not allocated by the performance via IDirectMusicPerformance::AllocPMsg(), or it was already freed via IDirectMusicPerformance::FreePMsg().") CHK_ERR(DMUS_E_CANNOT_OPEN_PORT, "The default system port could not be opened.") CHK_ERR(DMUS_E_CANNOT_CONVERT, "A call to MIDIToMusic() or MusicToMIDI() resulted in an error because the requested conversion could not happen. This usually occurs when the provided DMUS_CHORD_KEY structure has an invalid chord or scale pattern.") CHK_ERR(DMUS_E_DESCEND_CHUNK_FAIL, "DMUS_E_DESCEND_CHUNK_FAIL is returned when the end of the file was reached before the desired chunk was found.") CHK_ERR(DMUS_E_NOT_LOADED, "An attempt to use this object failed because it first needs to be loaded.") CHK_ERR(DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE, "The activeX scripting engine for the script's language is not compatible with DirectMusic.") CHK_ERR(DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE, "A varient was used that had a type that is not supported by DirectMusic.") CHK_ERR(DMUS_E_SCRIPT_ERROR_IN_SCRIPT, "An error was encountered while parsing or executing the script. The pErrorInfo parameter (if supplied) was filled with information about the error.") CHK_ERR(DMUS_E_SCRIPT_CANTLOAD_OLEAUT32, "Loading of oleaut32.dll failed. VBScript and other activeX scripting languages require use of oleaut32.dll. On platforms where oleaut32.dll is not present, only the DirectMusicScript language, which doesn't require oleaut32.dll can be used.") CHK_ERR(DMUS_E_SCRIPT_LOADSCRIPT_ERROR, "An error occured while parsing a script loaded using LoadScript. The script that was loaded contains an error.") CHK_ERR(DMUS_E_SCRIPT_INVALID_FILE, "The script file is invalid.") CHK_ERR(DMUS_E_INVALID_SCRIPTTRACK, "The file contains an invalid script track.") CHK_ERR(DMUS_E_SCRIPT_VARIABLE_NOT_FOUND, "The script does not contain a variable with the specified name.") CHK_ERR(DMUS_E_SCRIPT_ROUTINE_NOT_FOUND, "The script does not contain a routine with the specified name.") CHK_ERR(DMUS_E_SCRIPT_CONTENT_READONLY, "Scripts variables for content referenced or embedded in a script cannot be set.") CHK_ERR(DMUS_E_SCRIPT_NOT_A_REFERENCE, "Attempt was made to set a script's variable by reference to a value that was not an object type.") CHK_ERR(DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED, "Attempt was made to set a script's variable by value to an object that does not support a default value property.") CHK_ERR(DMUS_E_INVALID_SEGMENTTRIGGERTRACK, "The file contains an invalid segment trigger track.") CHK_ERR(DMUS_E_INVALID_LYRICSTRACK, "The file contains an invalid lyrics track.") CHK_ERR(DMUS_E_INVALID_PARAMCONTROLTRACK, "The file contains an invalid parameter control track.") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR, "A script written in AudioVBScript could not be read because it contained a statement that is not allowed by the AudioVBScript language.") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR, "A script routine written in AudioVBScript failed because an invalid operation occurred. For example, adding the number 3 to a segment object would produce this error. So would attempting to call a routine that doesn't exist.") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE, "A script routine written in AudioVBScript failed because a function outside of a script failed to complete. For example, a call to PlaySegment that fails to play because of low memory would return this error.") CHK_ERR(DMUS_E_AUDIOPATHS_NOT_VALID, "The Performance has set up some PChannels using the AssignPChannel command, which makes it not capable of supporting audio paths.") CHK_ERR(DMUS_E_AUDIOPATHS_IN_USE, "This is the inverse of the previous error. The Performance has set up some audio paths, which makes is incompatible with the calls to allocate pchannels, etc. ") CHK_ERR(DMUS_E_NO_AUDIOPATH_CONFIG, "A segment or song was asked for its embedded audio path configuration, but there isn't any. ") CHK_ERR(DMUS_E_AUDIOPATH_INACTIVE, "An audiopath is inactive, perhaps because closedown was called.") CHK_ERR(DMUS_E_AUDIOPATH_NOBUFFER, "An audiopath failed to create because a requested buffer could not be created.") CHK_ERR(DMUS_E_AUDIOPATH_NOPORT, "An audiopath could not be used for playback because it lacked port assignments.") CHK_ERR(DMUS_E_NO_AUDIOPATH, "Attempt was made to play segment in audiopath mode and there was no audiopath.") CHK_ERR(DMUS_E_INVALIDCHUNK, "Invalid data was found in a RIFF file chunk.") CHK_ERR(DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER, "Attempt was made to create an audiopath that sends to a global effects buffer which did not exist.") CHK_ERR(DMUS_E_INVALID_CONTAINER_OBJECT, "The file does not contain a valid container object.") // ------------------------------------------------------------- // vfwmsgs.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(VFW_E_INVALIDMEDIATYPE, "VFW_E_INVALIDMEDIATYPE") // CHK_ERR(VFW_E_INVALIDSUBTYPE, "VFW_E_INVALIDSUBTYPE") // CHK_ERR(VFW_E_NEED_OWNER, "VFW_E_NEED_OWNER") // CHK_ERR(VFW_E_ENUM_OUT_OF_SYNC, "VFW_E_ENUM_OUT_OF_SYNC") // CHK_ERR(VFW_E_ALREADY_CONNECTED, "VFW_E_ALREADY_CONNECTED") // CHK_ERR(VFW_E_FILTER_ACTIVE, "VFW_E_FILTER_ACTIVE") // CHK_ERR(VFW_E_NO_TYPES, "VFW_E_NO_TYPES") // CHK_ERR(VFW_E_NO_ACCEPTABLE_TYPES, "VFW_E_NO_ACCEPTABLE_TYPES") // CHK_ERR(VFW_E_INVALID_DIRECTION, "VFW_E_INVALID_DIRECTION") // CHK_ERR(VFW_E_NOT_CONNECTED, "VFW_E_NOT_CONNECTED") // CHK_ERR(VFW_E_NO_ALLOCATOR, "VFW_E_NO_ALLOCATOR") // CHK_ERR(VFW_E_RUNTIME_ERROR, "VFW_E_RUNTIME_ERROR") CHK_ERR(VFW_E_BUFFER_NOTSET, "No buffer space has been set") CHK_ERR(VFW_E_BUFFER_OVERFLOW, "The buffer is not big enough.") CHK_ERR(VFW_E_BADALIGN, "An invalid alignment was specified.") CHK_ERR(VFW_E_ALREADY_COMMITTED, "Cannot change allocated memory while the filter is active.") CHK_ERR(VFW_E_BUFFERS_OUTSTANDING, "One or more buffers are still active.") CHK_ERR(VFW_E_NOT_COMMITTED, "Cannot allocate a sample when the allocator is not active.") CHK_ERR(VFW_E_SIZENOTSET, "Cannot allocate memory because no size has been set.") CHK_ERR(VFW_E_NO_CLOCK, "Cannot lock for synchronization because no clock has been defined.") CHK_ERR(VFW_E_NO_SINK, "Quality messages could not be sent because no quality sink has been defined.") CHK_ERR(VFW_E_NO_INTERFACE, "A required interface has not been implemented.") CHK_ERR(VFW_E_NOT_FOUND, "An object or name was not found.") CHK_ERR(VFW_E_CANNOT_CONNECT, "No combination of intermediate filters could be found to make the connection.") CHK_ERR(VFW_E_CANNOT_RENDER, "No combination of filters could be found to render the stream.") CHK_ERR(VFW_E_CHANGING_FORMAT, "Could not change formats dynamically.") CHK_ERR(VFW_E_NO_COLOR_KEY_SET, "No color key has been set.") CHK_ERR(VFW_E_NOT_OVERLAY_CONNECTION, "Current pin connection is not using the IOverlay transport.") CHK_ERR(VFW_E_NOT_SAMPLE_CONNECTION, "Current pin connection is not using the IMemInputPin transport.") CHK_ERR(VFW_E_PALETTE_SET, "Setting a color key would conflict with the palette already set.") CHK_ERR(VFW_E_COLOR_KEY_SET, "Setting a palette would conflict with the color key already set.") CHK_ERR(VFW_E_NO_COLOR_KEY_FOUND, "No matching color key is available.") CHK_ERR(VFW_E_NO_PALETTE_AVAILABLE, "No palette is available.") CHK_ERR(VFW_E_NO_DISPLAY_PALETTE, "Display does not use a palette.") CHK_ERR(VFW_E_TOO_MANY_COLORS, "Too many colors for the current display settings.") CHK_ERR(VFW_E_STATE_CHANGED, "The state changed while waiting to process the sample.") CHK_ERR(VFW_E_NOT_STOPPED, "The operation could not be performed because the filter is not stopped.") CHK_ERR(VFW_E_NOT_PAUSED, "The operation could not be performed because the filter is not paused.") CHK_ERR(VFW_E_NOT_RUNNING, "The operation could not be performed because the filter is not running.") CHK_ERR(VFW_E_WRONG_STATE, "The operation could not be performed because the filter is in the wrong state.") CHK_ERR(VFW_E_START_TIME_AFTER_END, "The sample start time is after the sample end time.") CHK_ERR(VFW_E_INVALID_RECT, "The supplied rectangle is invalid.") CHK_ERR(VFW_E_TYPE_NOT_ACCEPTED, "This pin cannot use the supplied media type.") CHK_ERR(VFW_E_SAMPLE_REJECTED, "This sample cannot be rendered.") CHK_ERR(VFW_E_SAMPLE_REJECTED_EOS, "This sample cannot be rendered because the end of the stream has been reached.") CHK_ERR(VFW_E_DUPLICATE_NAME, "An attempt to add a filter with a duplicate name failed.") CHK_ERR(VFW_S_DUPLICATE_NAME, "An attempt to add a filter with a duplicate name succeeded with a modified name.") CHK_ERR(VFW_E_TIMEOUT, "A time-out has expired.") CHK_ERR(VFW_E_INVALID_FILE_FORMAT, "The file format is invalid.") CHK_ERR(VFW_E_ENUM_OUT_OF_RANGE, "The list has already been exhausted.") CHK_ERR(VFW_E_CIRCULAR_GRAPH, "The filter graph is circular.") CHK_ERR(VFW_E_NOT_ALLOWED_TO_SAVE, "Updates are not allowed in this state.") CHK_ERR(VFW_E_TIME_ALREADY_PASSED, "An attempt was made to queue a command for a time in the past.") CHK_ERR(VFW_E_ALREADY_CANCELLED, "The queued command has already been canceled.") CHK_ERR(VFW_E_CORRUPT_GRAPH_FILE, "Cannot render the file because it is corrupt.") CHK_ERR(VFW_E_ADVISE_ALREADY_SET, "An overlay advise link already exists.") CHK_ERR(VFW_S_STATE_INTERMEDIATE, "The state transition has not completed.") CHK_ERR(VFW_E_NO_MODEX_AVAILABLE, "No full-screen modes are available.") CHK_ERR(VFW_E_NO_ADVISE_SET, "This Advise cannot be canceled because it was not successfully set.") CHK_ERR(VFW_E_NO_FULLSCREEN, "A full-screen mode is not available.") CHK_ERR(VFW_E_IN_FULLSCREEN_MODE, "Cannot call IVideoWindow methods while in full-screen mode.") CHK_ERR(VFW_E_UNKNOWN_FILE_TYPE, "The media type of this file is not recognized.") CHK_ERR(VFW_E_CANNOT_LOAD_SOURCE_FILTER, "The source filter for this file could not be loaded.") CHK_ERR(VFW_S_PARTIAL_RENDER, "Some of the streams in this movie are in an unsupported format.") CHK_ERR(VFW_E_FILE_TOO_SHORT, "A file appeared to be incomplete.") CHK_ERR(VFW_E_INVALID_FILE_VERSION, "The version number of the file is invalid.") CHK_ERR(VFW_S_SOME_DATA_IGNORED, "The file contained some property settings that were not used.") CHK_ERR(VFW_S_CONNECTIONS_DEFERRED, "Some connections have failed and have been deferred.") CHK_ERR(VFW_E_INVALID_CLSID, "This file is corrupt: it contains an invalid class identifier.") CHK_ERR(VFW_E_INVALID_MEDIA_TYPE, "This file is corrupt: it contains an invalid media type.") CHK_ERR(VFW_E_BAD_KEY, "A registry entry is corrupt.") CHK_ERR(VFW_S_NO_MORE_ITEMS, "The end of the list has been reached.") CHK_ERR(VFW_E_SAMPLE_TIME_NOT_SET, "No time stamp has been set for this sample.") CHK_ERR(VFW_S_RESOURCE_NOT_NEEDED, "The resource specified is no longer needed.") CHK_ERR(VFW_E_MEDIA_TIME_NOT_SET, "No media time stamp has been set for this sample.") CHK_ERR(VFW_E_NO_TIME_FORMAT_SET, "No media time format has been selected.") CHK_ERR(VFW_E_MONO_AUDIO_HW, "Cannot change balance because audio device is mono only.") CHK_ERR(VFW_S_MEDIA_TYPE_IGNORED, "A connection could not be made with the media type in the persistent graph, but has been made with a negotiated media type.") CHK_ERR(VFW_E_NO_DECOMPRESSOR, "Cannot play back the video stream: no suitable decompressor could be found.") CHK_ERR(VFW_E_NO_AUDIO_HARDWARE, "Cannot play back the audio stream: no audio hardware is available, or the hardware is not responding.") CHK_ERR(VFW_S_VIDEO_NOT_RENDERED, "Cannot play back the video stream: no suitable decompressor could be found.") CHK_ERR(VFW_S_AUDIO_NOT_RENDERED, "Cannot play back the audio stream: no audio hardware is available.") CHK_ERR(VFW_E_RPZA, "Cannot play back the video stream: format 'RPZA' is not supported.") CHK_ERR(VFW_S_RPZA, "Cannot play back the video stream: format 'RPZA' is not supported.") CHK_ERR(VFW_E_PROCESSOR_NOT_SUITABLE, "ActiveMovie cannot play MPEG movies on this processor.") CHK_ERR(VFW_E_UNSUPPORTED_AUDIO, "Cannot play back the audio stream: the audio format is not supported.") CHK_ERR(VFW_E_UNSUPPORTED_VIDEO, "Cannot play back the video stream: the video format is not supported.") CHK_ERR(VFW_E_MPEG_NOT_CONSTRAINED, "ActiveMovie cannot play this video stream because it falls outside the constrained standard.") CHK_ERR(VFW_E_NOT_IN_GRAPH, "Cannot perform the requested function on an object that is not in the filter graph.") CHK_ERR(VFW_S_ESTIMATED, "The value returned had to be estimated. It's accuracy can not be guaranteed.") CHK_ERR(VFW_E_NO_TIME_FORMAT, "Cannot get or set time related information on an object that is using a time format of TIME_FORMAT_NONE.") CHK_ERR(VFW_E_READ_ONLY, "The connection cannot be made because the stream is read only and the filter alters the data.") CHK_ERR(VFW_S_RESERVED, "This success code is reserved for internal purposes within ActiveMovie.") CHK_ERR(VFW_E_BUFFER_UNDERFLOW, "The buffer is not full enough.") CHK_ERR(VFW_E_UNSUPPORTED_STREAM, "Cannot play back the file. The format is not supported.") CHK_ERR(VFW_E_NO_TRANSPORT, "Pins cannot connect due to not supporting the same transport.") CHK_ERR(VFW_S_STREAM_OFF, "The stream has been turned off.") CHK_ERR(VFW_S_CANT_CUE, "The graph can't be cued because of lack of or corrupt data.") CHK_ERR(VFW_E_BAD_VIDEOCD, "The Video CD can't be read correctly by the device or is the data is corrupt.") CHK_ERR(VFW_S_NO_STOP_TIME, "The stop time for the sample was not set.") CHK_ERR(VFW_E_OUT_OF_VIDEO_MEMORY, "There is not enough Video Memory at this display resolution and number of colors. Reducing resolution might help.") CHK_ERR(VFW_E_VP_NEGOTIATION_FAILED, "The VideoPort connection negotiation process has failed.") CHK_ERR(VFW_E_DDRAW_CAPS_NOT_SUITABLE, "Either DirectDraw has not been installed or the Video Card capabilities are not suitable. Make sure the display is not in 16 color mode.") CHK_ERR(VFW_E_NO_VP_HARDWARE, "No VideoPort hardware is available, or the hardware is not responding.") CHK_ERR(VFW_E_NO_CAPTURE_HARDWARE, "No Capture hardware is available, or the hardware is not responding.") CHK_ERR(VFW_E_DVD_OPERATION_INHIBITED, "This User Operation is inhibited by DVD Content at this time.") CHK_ERR(VFW_E_DVD_INVALIDDOMAIN, "This Operation is not permitted in the current domain.") CHK_ERR(VFW_E_DVD_NO_BUTTON, "The specified button is invalid or is not present at the current time, or there is no button present at the specified location.") CHK_ERR(VFW_E_DVD_GRAPHNOTREADY, "DVD-Video playback graph has not been built yet.") CHK_ERR(VFW_E_DVD_RENDERFAIL, "DVD-Video playback graph building failed.") CHK_ERR(VFW_E_DVD_DECNOTENOUGH, "DVD-Video playback graph could not be built due to insufficient decoders.") CHK_ERR(VFW_E_DDRAW_VERSION_NOT_SUITABLE, "Version number of DirectDraw not suitable. Make sure to install dx5 or higher version.") CHK_ERR(VFW_E_COPYPROT_FAILED, "Copy protection cannot be enabled. Please make sure any other copy protected content is not being shown now.") CHK_ERR(VFW_S_NOPREVIEWPIN, "There was no preview pin available, so the capture pin output is being split to provide both capture and preview.") CHK_ERR(VFW_E_TIME_EXPIRED, "This object cannot be used anymore as its time has expired.") CHK_ERR(VFW_S_DVD_NON_ONE_SEQUENTIAL, "The current title was not a sequential set of chapters (PGC), and the returned timing information might not be continuous.") CHK_ERR(VFW_E_DVD_WRONG_SPEED, "The operation cannot be performed at the current playback speed.") CHK_ERR(VFW_E_DVD_MENU_DOES_NOT_EXIST, "The specified menu doesn't exist.") CHK_ERR(VFW_E_DVD_CMD_CANCELLED, "The specified command was either cancelled or no longer exists.") CHK_ERR(VFW_E_DVD_STATE_WRONG_VERSION, "The data did not contain a recognized version.") CHK_ERR(VFW_E_DVD_STATE_CORRUPT, "The state data was corrupt.") CHK_ERR(VFW_E_DVD_STATE_WRONG_DISC, "The state data is from a different disc.") CHK_ERR(VFW_E_DVD_INCOMPATIBLE_REGION, "The region was not compatible with the current drive.") CHK_ERR(VFW_E_DVD_NO_ATTRIBUTES, "The requested DVD stream attribute does not exist.") CHK_ERR(VFW_E_DVD_NO_GOUP_PGC, "Currently there is no GoUp (Annex J user function) program chain (PGC).") CHK_ERR(VFW_E_DVD_LOW_PARENTAL_LEVEL, "The current parental level was too low.") CHK_ERR(VFW_E_DVD_NOT_IN_KARAOKE_MODE, "The current audio is not karaoke content.") CHK_ERR(VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE, "The audio stream did not contain sufficient information to determine the contents of each channel.") CHK_ERR(VFW_S_DVD_NOT_ACCURATE, "The seek into the movie was not frame accurate.") CHK_ERR(VFW_E_FRAME_STEP_UNSUPPORTED, "Frame step is not supported on this configuration.") CHK_ERR(VFW_E_DVD_STREAM_DISABLED, "The specified stream is disabled and cannot be selected.") CHK_ERR(VFW_E_DVD_TITLE_UNKNOWN, "The operation depends on the current title number, however the navigator has not yet entered the VTSM or the title domains, so the 'current' title index is unknown.") CHK_ERR(VFW_E_DVD_INVALID_DISC, "The specified path does not point to a valid DVD disc.") CHK_ERR(VFW_E_DVD_NO_RESUME_INFORMATION, "There is currently no resume information.") CHK_ERR(VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD, "This thread has already blocked this output pin. There is no need to call IPinFlowControl::Block() again.") CHK_ERR(VFW_E_PIN_ALREADY_BLOCKED, "IPinFlowControl::Block() has been called on another thread. The current thread cannot make any assumptions about this pin's block state.") CHK_ERR(VFW_E_CERTIFICATION_FAILURE, "An operation failed due to a certification failure.") CHK_ERR(E_PROP_SET_UNSUPPORTED, "The Specified property set is not supported.") CHK_ERR(E_PROP_ID_UNSUPPORTED, "The specified property ID is not supported for the specified property set.") } return "n/a"; } //----------------------------------------------------------------------------- // Name: DXGetErrorDescription8W() // Desc: Returns a description of the HRESULT //----------------------------------------------------------------------------- const WCHAR * WINAPI DXGetErrorDescription8W(HRESULT hr) { switch(hr) { // ------------------------------------------------------------- // Common Win32 error codes // ------------------------------------------------------------- CHK_ERR(S_OK, L"The function completed successfully") CHK_ERR(S_FALSE, L"Call successful, but returned FALSE") CHK_ERR(ERROR_FILE_NOT_FOUND, L"The system cannot find the file specified.") CHK_ERR(ERROR_PATH_NOT_FOUND, L"The system cannot find the path specified.") CHK_ERR(ERROR_TOO_MANY_OPEN_FILES, L"The system cannot open the file.") CHK_ERR(ERROR_ACCESS_DENIED, L"Access is denied.") CHK_ERR(ERROR_INVALID_HANDLE, L"The handle is invalid.") CHK_ERR(ERROR_NOT_ENOUGH_MEMORY, L"Not enough storage is available to process this command.") CHK_ERR(ERROR_INVALID_BLOCK, L"The storage control block address is invalid.") CHK_ERR(ERROR_BAD_ENVIRONMENT, L"The environment is incorrect.") CHK_ERR(ERROR_BAD_FORMAT, L"An attempt was made to load a program with an incorrect format.") CHK_ERR(ERROR_OUTOFMEMORY, L"The system cannot find the drive specified.") CHK_ERR(E_UNEXPECTED, L"Catastrophic failure") CHK_ERR(E_NOTIMPL, L"The function called is not supported at this time") CHK_ERR(E_OUTOFMEMORY, L"Ran out of memory") CHK_ERR(E_INVALIDARG, L"An invalid parameter was passed to the returning function") CHK_ERR(E_NOINTERFACE, L"The requested COM interface is not available") CHK_ERR(E_POINTER, L"Invalid pointer") CHK_ERR(E_HANDLE, L"Invalid handle") CHK_ERR(E_ABORT, L"Operation aborted") CHK_ERR(E_FAIL, L"An undetermined error occurred") CHK_ERR(E_ACCESSDENIED, L"Access is denied") CHK_ERR(E_PENDING, L"The data necessary to complete this operation is not yet available.") CHK_ERR(REGDB_E_CLASSNOTREG, L"Class not registered") CHK_ERR(CO_E_NOTINITIALIZED, L"CoInitialize has not been called.") CHK_ERR(CO_E_ALREADYINITIALIZED, L"CoInitialize has already been called.") CHK_ERR(CLASS_E_NOAGGREGATION, L"This object does not support aggregation") // ------------------------------------------------------------- // ddraw.h error codes as of 1/22/01 // ------------------------------------------------------------- CHK_ERR(DDERR_ALREADYINITIALIZED, L"This object is already initialized") CHK_ERR(DDERR_CANNOTATTACHSURFACE, L"This surface can not be attached to the requested surface.") CHK_ERR(DDERR_CANNOTDETACHSURFACE, L"This surface can not be detached from the requested surface.") CHK_ERR(DDERR_CURRENTLYNOTAVAIL, L"Support is currently not available.") CHK_ERR(DDERR_EXCEPTION, L"An exception was encountered while performing the requested operation") // CHK_ERR(DDERR_GENERIC, L"DDERR_GENERIC") CHK_ERR(DDERR_HEIGHTALIGN, L"Height of rectangle provided is not a multiple of reqd alignment") CHK_ERR(DDERR_INCOMPATIBLEPRIMARY, L"Unable to match primary surface creation request with existing primary surface.") CHK_ERR(DDERR_INVALIDCAPS, L"One or more of the caps bits passed to the callback are incorrect.") CHK_ERR(DDERR_INVALIDCLIPLIST, L"DirectDraw does not support provided Cliplist.") CHK_ERR(DDERR_INVALIDMODE, L"DirectDraw does not support the requested mode") CHK_ERR(DDERR_INVALIDOBJECT, L"DirectDraw received a pointer that was an invalid DIRECTDRAW object.") // CHK_ERR(DDERR_INVALIDPARAMS, L"DDERR_INVALIDPARAMS") CHK_ERR(DDERR_INVALIDPIXELFORMAT, L"pixel format was invalid as specified") CHK_ERR(DDERR_INVALIDRECT, L"Rectangle provided was invalid.") CHK_ERR(DDERR_LOCKEDSURFACES, L"Operation could not be carried out because one or more surfaces are locked") CHK_ERR(DDERR_NO3D, L"There is no 3D present.") CHK_ERR(DDERR_NOALPHAHW, L"Operation could not be carried out because there is no alpha accleration hardware present or available.") CHK_ERR(DDERR_NOSTEREOHARDWARE, L"Operation could not be carried out because there is no stereo hardware present or available.") CHK_ERR(DDERR_NOSURFACELEFT, L"Operation could not be carried out because there is no hardware present which supports stereo surfaces") CHK_ERR(DDERR_NOCLIPLIST, L"no clip list available") CHK_ERR(DDERR_NOCOLORCONVHW, L"Operation could not be carried out because there is no color conversion hardware present or available.") CHK_ERR(DDERR_NOCOOPERATIVELEVELSET, L"Create function called without DirectDraw object method SetCooperativeLevel being called.") CHK_ERR(DDERR_NOCOLORKEY, L"Surface doesn't currently have a color key") CHK_ERR(DDERR_NOCOLORKEYHW, L"Operation could not be carried out because there is no hardware support of the dest color key.") CHK_ERR(DDERR_NODIRECTDRAWSUPPORT, L"No DirectDraw support possible with current display driver") CHK_ERR(DDERR_NOEXCLUSIVEMODE, L"Operation requires the application to have exclusive mode but the application does not have exclusive mode.") CHK_ERR(DDERR_NOFLIPHW, L"Flipping visible surfaces is not supported.") CHK_ERR(DDERR_NOGDI, L"There is no GDI present.") CHK_ERR(DDERR_NOMIRRORHW, L"Operation could not be carried out because there is no hardware present or available.") CHK_ERR(DDERR_NOTFOUND, L"Requested item was not found") CHK_ERR(DDERR_NOOVERLAYHW, L"Operation could not be carried out because there is no overlay hardware present or available.") CHK_ERR(DDERR_OVERLAPPINGRECTS, L"Operation could not be carried out because the source and destination rectangles are on the same surface and overlap each other.") CHK_ERR(DDERR_NORASTEROPHW, L"Operation could not be carried out because there is no appropriate raster op hardware present or available.") CHK_ERR(DDERR_NOROTATIONHW, L"Operation could not be carried out because there is no rotation hardware present or available.") CHK_ERR(DDERR_NOSTRETCHHW, L"Operation could not be carried out because there is no hardware support for stretching") CHK_ERR(DDERR_NOT4BITCOLOR, L"DirectDrawSurface is not in 4 bit color palette and the requested operation requires 4 bit color palette.") CHK_ERR(DDERR_NOT4BITCOLORINDEX, L"DirectDrawSurface is not in 4 bit color index palette and the requested operation requires 4 bit color index palette.") CHK_ERR(DDERR_NOT8BITCOLOR, L"DirectDraw Surface is not in 8 bit color mode and the requested operation requires 8 bit color.") CHK_ERR(DDERR_NOTEXTUREHW, L"Operation could not be carried out because there is no texture mapping hardware present or available.") CHK_ERR(DDERR_NOVSYNCHW, L"Operation could not be carried out because there is no hardware support for vertical blank synchronized operations.") CHK_ERR(DDERR_NOZBUFFERHW, L"Operation could not be carried out because there is no hardware support for zbuffer blting.") CHK_ERR(DDERR_NOZOVERLAYHW, L"Overlay surfaces could not be z layered based on their BltOrder because the hardware does not support z layering of overlays.") CHK_ERR(DDERR_OUTOFCAPS, L"The hardware needed for the requested operation has already been allocated.") // CHK_ERR(DDERR_OUTOFMEMORY, L"DDERR_OUTOFMEMORY") // CHK_ERR(DDERR_OUTOFVIDEOMEMORY, L"DDERR_OUTOFVIDEOMEMORY") CHK_ERR(DDERR_OVERLAYCANTCLIP, L"hardware does not support clipped overlays") CHK_ERR(DDERR_OVERLAYCOLORKEYONLYONEACTIVE, L"Can only have ony color key active at one time for overlays") CHK_ERR(DDERR_PALETTEBUSY, L"Access to this palette is being refused because the palette is already locked by another thread.") CHK_ERR(DDERR_COLORKEYNOTSET, L"No src color key specified for this operation.") CHK_ERR(DDERR_SURFACEALREADYATTACHED, L"This surface is already attached to the surface it is being attached to.") CHK_ERR(DDERR_SURFACEALREADYDEPENDENT, L"This surface is already a dependency of the surface it is being made a dependency of.") CHK_ERR(DDERR_SURFACEBUSY, L"Access to this surface is being refused because the surface is already locked by another thread.") CHK_ERR(DDERR_CANTLOCKSURFACE, L"Access to this surface is being refused because no driver exists which can supply a pointer to the surface. This is most likely to happen when attempting to lock the primary surface when no DCI provider is present. Will also happen on attempts to lock an optimized surface.") CHK_ERR(DDERR_SURFACEISOBSCURED, L"Access to Surface refused because Surface is obscured.") CHK_ERR(DDERR_SURFACELOST, L"Access to this surface is being refused because the surface is gone. The DIRECTDRAWSURFACE object representing this surface should have Restore called on it.") CHK_ERR(DDERR_SURFACENOTATTACHED, L"The requested surface is not attached.") CHK_ERR(DDERR_TOOBIGHEIGHT, L"Height requested by DirectDraw is too large.") CHK_ERR(DDERR_TOOBIGSIZE, L"Size requested by DirectDraw is too large -- The individual height and width are OK.") CHK_ERR(DDERR_TOOBIGWIDTH, L"Width requested by DirectDraw is too large.") // CHK_ERR(DDERR_UNSUPPORTED, L"DDERR_UNSUPPORTED") CHK_ERR(DDERR_UNSUPPORTEDFORMAT, L"Pixel format requested is unsupported by DirectDraw") CHK_ERR(DDERR_UNSUPPORTEDMASK, L"Bitmask in the pixel format requested is unsupported by DirectDraw") CHK_ERR(DDERR_INVALIDSTREAM, L"The specified stream contains invalid data") CHK_ERR(DDERR_VERTICALBLANKINPROGRESS, L"vertical blank is in progress") CHK_ERR(DDERR_WASSTILLDRAWING, L"Informs DirectDraw that the previous Blt which is transfering information to or from this Surface is incomplete.") CHK_ERR(DDERR_DDSCAPSCOMPLEXREQUIRED, L"The specified surface type requires specification of the COMPLEX flag") CHK_ERR(DDERR_XALIGN, L"Rectangle provided was not horizontally aligned on reqd. boundary") CHK_ERR(DDERR_INVALIDDIRECTDRAWGUID, L"The GUID passed to DirectDrawCreate is not a valid DirectDraw driver identifier.") CHK_ERR(DDERR_DIRECTDRAWALREADYCREATED, L"A DirectDraw object representing this driver has already been created for this process.") CHK_ERR(DDERR_NODIRECTDRAWHW, L"A hardware only DirectDraw object creation was attempted but the driver did not support any hardware.") CHK_ERR(DDERR_PRIMARYSURFACEALREADYEXISTS, L"this process already has created a primary surface") CHK_ERR(DDERR_NOEMULATION, L"software emulation not available.") CHK_ERR(DDERR_REGIONTOOSMALL, L"region passed to Clipper::GetClipList is too small.") CHK_ERR(DDERR_CLIPPERISUSINGHWND, L"an attempt was made to set a clip list for a clipper objec that is already monitoring an hwnd.") CHK_ERR(DDERR_NOCLIPPERATTACHED, L"No clipper object attached to surface object") CHK_ERR(DDERR_NOHWND, L"Clipper notification requires an HWND or no HWND has previously been set as the CooperativeLevel HWND.") CHK_ERR(DDERR_HWNDSUBCLASSED, L"HWND used by DirectDraw CooperativeLevel has been subclassed, this prevents DirectDraw from restoring state.") CHK_ERR(DDERR_HWNDALREADYSET, L"The CooperativeLevel HWND has already been set. It can not be reset while the process has surfaces or palettes created.") CHK_ERR(DDERR_NOPALETTEATTACHED, L"No palette object attached to this surface.") CHK_ERR(DDERR_NOPALETTEHW, L"No hardware support for 16 or 256 color palettes.") CHK_ERR(DDERR_BLTFASTCANTCLIP, L"If a clipper object is attached to the source surface passed into a BltFast call.") CHK_ERR(DDERR_NOBLTHW, L"No blter.") CHK_ERR(DDERR_NODDROPSHW, L"No DirectDraw ROP hardware.") CHK_ERR(DDERR_OVERLAYNOTVISIBLE, L"returned when GetOverlayPosition is called on a hidden overlay") CHK_ERR(DDERR_NOOVERLAYDEST, L"returned when GetOverlayPosition is called on a overlay that UpdateOverlay has never been called on to establish a destionation.") CHK_ERR(DDERR_INVALIDPOSITION, L"returned when the position of the overlay on the destionation is no longer legal for that destionation.") CHK_ERR(DDERR_NOTAOVERLAYSURFACE, L"returned when an overlay member is called for a non-overlay surface") CHK_ERR(DDERR_EXCLUSIVEMODEALREADYSET, L"An attempt was made to set the cooperative level when it was already set to exclusive.") CHK_ERR(DDERR_NOTFLIPPABLE, L"An attempt has been made to flip a surface that is not flippable.") CHK_ERR(DDERR_CANTDUPLICATE, L"Can't duplicate primary & 3D surfaces, or surfaces that are implicitly created.") CHK_ERR(DDERR_NOTLOCKED, L"Surface was not locked. An attempt to unlock a surface that was not locked at all, or by this process, has been attempted.") CHK_ERR(DDERR_CANTCREATEDC, L"Windows can not create any more DCs, or a DC was requested for a paltte-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)") CHK_ERR(DDERR_NODC, L"No DC was ever created for this surface.") CHK_ERR(DDERR_WRONGMODE, L"This surface can not be restored because it was created in a different mode.") CHK_ERR(DDERR_IMPLICITLYCREATED, L"This surface can not be restored because it is an implicitly created surface.") CHK_ERR(DDERR_NOTPALETTIZED, L"The surface being used is not a palette-based surface") CHK_ERR(DDERR_UNSUPPORTEDMODE, L"The display is currently in an unsupported mode") CHK_ERR(DDERR_NOMIPMAPHW, L"Operation could not be carried out because there is no mip-map texture mapping hardware present or available.") CHK_ERR(DDERR_INVALIDSURFACETYPE, L"The requested action could not be performed because the surface was of the wrong type.") CHK_ERR(DDERR_NOOPTIMIZEHW, L"Device does not support optimized surfaces, therefore no video memory optimized surfaces") CHK_ERR(DDERR_NOTLOADED, L"Surface is an optimized surface, but has not yet been allocated any memory") CHK_ERR(DDERR_NOFOCUSWINDOW, L"Attempt was made to create or set a device window without first setting the focus window") CHK_ERR(DDERR_NOTONMIPMAPSUBLEVEL, L"Attempt was made to set a palette on a mipmap sublevel") CHK_ERR(DDERR_DCALREADYCREATED, L"A DC has already been returned for this surface. Only one DC can be retrieved per surface.") CHK_ERR(DDERR_NONONLOCALVIDMEM, L"An attempt was made to allocate non-local video memory from a device that does not support non-local video memory.") CHK_ERR(DDERR_CANTPAGELOCK, L"The attempt to page lock a surface failed.") CHK_ERR(DDERR_CANTPAGEUNLOCK, L"The attempt to page unlock a surface failed.") CHK_ERR(DDERR_NOTPAGELOCKED, L"An attempt was made to page unlock a surface with no outstanding page locks.") CHK_ERR(DDERR_MOREDATA, L"There is more data available than the specified buffer size could hold") CHK_ERR(DDERR_EXPIRED, L"The data has expired and is therefore no longer valid.") CHK_ERR(DDERR_TESTFINISHED, L"The mode test has finished executing.") CHK_ERR(DDERR_NEWMODE, L"The mode test has switched to a new mode.") CHK_ERR(DDERR_D3DNOTINITIALIZED, L"D3D has not yet been initialized.") CHK_ERR(DDERR_VIDEONOTACTIVE, L"The video port is not active") CHK_ERR(DDERR_NOMONITORINFORMATION, L"The monitor does not have EDID data.") CHK_ERR(DDERR_NODRIVERSUPPORT, L"The driver does not enumerate display mode refresh rates.") CHK_ERR(DDERR_DEVICEDOESNTOWNSURFACE, L"Surfaces created by one direct draw device cannot be used directly by another direct draw device.") // ------------------------------------------------------------- // dinput.h error codes as of 10/4/00 // ------------------------------------------------------------- // CHK_ERR(DI_OK, L"DI_OK") // CHK_ERR(DI_NOTATTACHED, L"DI_NOTATTACHED") // CHK_ERR(DI_BUFFEROVERFLOW, L"DI_BUFFEROVERFLOW") // CHK_ERR(DI_PROPNOEFFECT, L"DI_PROPNOEFFECT") // CHK_ERR(DI_NOEFFECT, L"DI_NOEFFECT") // CHK_ERR(DI_POLLEDDEVICE, L"DI_POLLEDDEVICE") // CHK_ERR(DI_DOWNLOADSKIPPED, L"DI_DOWNLOADSKIPPED") // CHK_ERR(DI_EFFECTRESTARTED, L"DI_EFFECTRESTARTED") // CHK_ERR(DI_SETTINGSNOTSAVED_ACCESSDENIED, L"DI_SETTINGSNOTSAVED_ACCESSDENIED") // CHK_ERR(DI_SETTINGSNOTSAVED_DISKFULL, L"DI_SETTINGSNOTSAVED_DISKFULL") // CHK_ERR(DI_TRUNCATED, L"DI_TRUNCATED") // CHK_ERR(DI_TRUNCATEDANDRESTARTED, L"DI_TRUNCATEDANDRESTARTED") // CHK_ERR(DI_WRITEPROTECT, L"DI_WRITEPROTECT") CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, L"The application requires a newer version of DirectInput.") // CHK_ERR(DIERR_GENERIC, L"DIERR_GENERIC") // CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, L"DIERR_OLDDIRECTINPUTVERSION") CHK_ERR(DIERR_BETADIRECTINPUTVERSION, L"The application was written for an unsupported prerelease version of DirectInput.") CHK_ERR(DIERR_BADDRIVERVER, L"The object could not be created due to an incompatible driver version or mismatched or incomplete driver components.") // CHK_ERR(DIERR_DEVICENOTREG, L"DIERR_DEVICENOTREG") CHK_ERR(DIERR_NOTFOUND, L"The requested object does not exist.") // CHK_ERR(DIERR_OBJECTNOTFOUND, L"DIERR_OBJECTNOTFOUND") // CHK_ERR(DIERR_INVALIDPARAM, L"DIERR_INVALIDPARAM") // CHK_ERR(DIERR_NOINTERFACE, L"DIERR_NOINTERFACE") // CHK_ERR(DIERR_GENERIC, L"DIERR_GENERIC") // CHK_ERR(DIERR_OUTOFMEMORY, L"DIERR_OUTOFMEMORY") // CHK_ERR(DIERR_UNSUPPORTED, L"DIERR_UNSUPPORTED") CHK_ERR(DIERR_NOTINITIALIZED, L"This object has not been initialized") CHK_ERR(DIERR_ALREADYINITIALIZED, L"This object is already initialized") // CHK_ERR(DIERR_NOAGGREGATION, L"DIERR_NOAGGREGATION") // CHK_ERR(DIERR_OTHERAPPHASPRIO, L"DIERR_OTHERAPPHASPRIO") CHK_ERR(DIERR_INPUTLOST, L"Access to the device has been lost. It must be re-acquired.") CHK_ERR(DIERR_ACQUIRED, L"The operation cannot be performed while the device is acquired.") CHK_ERR(DIERR_NOTACQUIRED, L"The operation cannot be performed unless the device is acquired.") // CHK_ERR(DIERR_READONLY, L"DIERR_READONLY") // CHK_ERR(DIERR_HANDLEEXISTS, L"DIERR_HANDLEEXISTS") CHK_ERR(DIERR_INSUFFICIENTPRIVS, L"Unable to IDirectInputJoyConfig_Acquire because the user does not have sufficient privileges to change the joystick configuration. & An invalid media type was specified") CHK_ERR(DIERR_DEVICEFULL, L"The device is full. & An invalid media subtype was specified.") CHK_ERR(DIERR_MOREDATA, L"Not all the requested information fit into the buffer. & This object can only be created as an aggregated object.") CHK_ERR(DIERR_NOTDOWNLOADED, L"The effect is not downloaded. & The enumerator has become invalid.") CHK_ERR(DIERR_HASEFFECTS, L"The device cannot be reinitialized because there are still effects attached to it. & At least one of the pins involved in the operation is already connected.") CHK_ERR(DIERR_NOTEXCLUSIVEACQUIRED, L"The operation cannot be performed unless the device is acquired in DISCL_EXCLUSIVE mode. & This operation cannot be performed because the filter is active.") CHK_ERR(DIERR_INCOMPLETEEFFECT, L"The effect could not be downloaded because essential information is missing. For example, no axes have been associated with the effect, or no type-specific information has been created. & One of the specified pins supports no media types.") CHK_ERR(DIERR_NOTBUFFERED, L"Attempted to read buffered device data from a device that is not buffered. & There is no common media type between these pins.") CHK_ERR(DIERR_EFFECTPLAYING, L"An attempt was made to modify parameters of an effect while it is playing. Not all hardware devices support altering the parameters of an effect while it is playing. & Two pins of the same direction cannot be connected together.") CHK_ERR(DIERR_UNPLUGGED, L"The operation could not be completed because the device is not plugged in. & The operation cannot be performed because the pins are not connected.") CHK_ERR(DIERR_REPORTFULL, L"SendDeviceData failed because more information was requested to be sent than can be sent to the device. Some devices have restrictions on how much data can be sent to them. (For example, there might be a limit on the number of buttons that can be pressed at once.) & No sample buffer allocator is available.") CHK_ERR(DIERR_MAPFILEFAIL, L"A mapper file function failed because reading or writing the user or IHV settings file failed. & A run-time error occurred.") // ------------------------------------------------------------- // dinputd.h error codes as of 9/8/00 // ------------------------------------------------------------- CHK_ERR(DIERR_NOMOREITEMS, L"No more items.") CHK_ERR(DIERR_DRIVERFIRST, L"Device driver-specific codes. Unless the specific driver has been precisely identified, no meaning should be attributed to these values other than that the driver originated the error.") CHK_ERR(DIERR_DRIVERFIRST+1, L"DIERR_DRIVERFIRST+1") CHK_ERR(DIERR_DRIVERFIRST+2, L"DIERR_DRIVERFIRST+2") CHK_ERR(DIERR_DRIVERFIRST+3, L"DIERR_DRIVERFIRST+3") CHK_ERR(DIERR_DRIVERFIRST+4, L"DIERR_DRIVERFIRST+4") CHK_ERR(DIERR_DRIVERFIRST+5, L"DIERR_DRIVERFIRST+5") CHK_ERR(DIERR_DRIVERLAST, L"Device installer errors.") CHK_ERR(DIERR_INVALIDCLASSINSTALLER, L"Registry entry or DLL for class installer invalid or class installer not found.") CHK_ERR(DIERR_CANCELLED, L"The user cancelled the install operation.") CHK_ERR(DIERR_BADINF, L"The INF file for the selected device could not be found or is invalid or is damaged.") // ------------------------------------------------------------- // dvoice.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(DV_OK, L"OK") CHK_ERR(DV_FULLDUPLEX, L"Full duplex") CHK_ERR(DV_HALFDUPLEX, L"Half duplex") CHK_ERR(DV_PENDING, L"Pending") CHK_ERR(DVERR_BUFFERTOOSMALL, L"Buffer too small") CHK_ERR(DVERR_EXCEPTION, L"Exception") // CHK_ERR(DVERR_GENERIC, L"Generic") CHK_ERR(DVERR_INVALIDFLAGS, L"Invalid flags") CHK_ERR(DVERR_INVALIDOBJECT, L"Invalid object") CHK_ERR(DVERR_INVALIDPLAYER, L"Invalid player") CHK_ERR(DVERR_INVALIDGROUP, L"Invalid group") CHK_ERR(DVERR_INVALIDHANDLE, L"Invalid handle") // CHK_ERR(DVERR_OUTOFMEMORY, L"Out of memory") // CHK_ERR(DVERR_PENDING, L"Pending") // CHK_ERR(DVERR_NOTSUPPORTED, L"Not supported") // CHK_ERR(DVERR_NOINTERFACE, L"No interface") CHK_ERR(DVERR_SESSIONLOST, L"Session lost") CHK_ERR(DVERR_NOVOICESESSION, L"No voice session") CHK_ERR(DVERR_CONNECTIONLOST, L"Connection lost") CHK_ERR(DVERR_NOTINITIALIZED, L"Not initialized") CHK_ERR(DVERR_CONNECTED, L"Connected") CHK_ERR(DVERR_NOTCONNECTED, L"Not connected") CHK_ERR(DVERR_CONNECTABORTING, L"Connect aborting") CHK_ERR(DVERR_NOTALLOWED, L"Not allowed") CHK_ERR(DVERR_INVALIDTARGET, L"Invalid target") CHK_ERR(DVERR_TRANSPORTNOTHOST, L"Transport not host") CHK_ERR(DVERR_COMPRESSIONNOTSUPPORTED, L"Compression not supported") CHK_ERR(DVERR_ALREADYPENDING, L"Already pending") CHK_ERR(DVERR_SOUNDINITFAILURE, L"Sound init failure") CHK_ERR(DVERR_TIMEOUT, L"Time out") CHK_ERR(DVERR_CONNECTABORTED, L"Connect aborted") CHK_ERR(DVERR_NO3DSOUND, L"No 3d sound") CHK_ERR(DVERR_ALREADYBUFFERED, L"Already buffered") CHK_ERR(DVERR_NOTBUFFERED, L"Not buffered") CHK_ERR(DVERR_HOSTING, L"Hosting") CHK_ERR(DVERR_NOTHOSTING, L"Not hosting") CHK_ERR(DVERR_INVALIDDEVICE, L"Invalid device") CHK_ERR(DVERR_RECORDSYSTEMERROR, L"Record system error") CHK_ERR(DVERR_PLAYBACKSYSTEMERROR, L"Playback system error") CHK_ERR(DVERR_SENDERROR, L"Send error") CHK_ERR(DVERR_USERCANCEL, L"User cancel") CHK_ERR(DVERR_RUNSETUP, L"Run setup") CHK_ERR(DVERR_INCOMPATIBLEVERSION, L"Incompatible version") CHK_ERR(DVERR_INITIALIZED, L"Initialized") // CHK_ERR(DVERR_INVALIDPOINTER, L"Invalid pointer") CHK_ERR(DVERR_NOTRANSPORT, L"No transport") CHK_ERR(DVERR_NOCALLBACK, L"No callback") CHK_ERR(DVERR_TRANSPORTNOTINIT, L"Transport not init") CHK_ERR(DVERR_TRANSPORTNOSESSION, L"Transport no session") CHK_ERR(DVERR_TRANSPORTNOPLAYER, L"Transport no player") CHK_ERR(DVERR_USERBACK, L"User back") CHK_ERR(DVERR_NORECVOLAVAILABLE, L"No rec vol available") CHK_ERR(DVERR_INVALIDBUFFER, L"Invalid buffer") CHK_ERR(DVERR_LOCKEDBUFFER, L"Locked buffer") // ------------------------------------------------------------- // dplay8.h error codes as of 10/4/00 // ------------------------------------------------------------- CHK_ERR(DPNERR_ABORTED, L"Aborted") CHK_ERR(DPNERR_ADDRESSING, L"Addressing") CHK_ERR(DPNERR_ALREADYCLOSING, L"Already closing") CHK_ERR(DPNERR_ALREADYCONNECTED, L"Already connected") CHK_ERR(DPNERR_ALREADYDISCONNECTING, L"Already disconnecting") CHK_ERR(DPNERR_ALREADYINITIALIZED, L"Already initialized") CHK_ERR(DPNERR_ALREADYREGISTERED, L"Already registered") CHK_ERR(DPNERR_BUFFERTOOSMALL, L"Buffer too small") CHK_ERR(DPNERR_CANNOTCANCEL, L"Can not cancel") CHK_ERR(DPNERR_CANTCREATEGROUP, L"Cant create group") CHK_ERR(DPNERR_CANTCREATEPLAYER, L"Cant create player") CHK_ERR(DPNERR_CANTLAUNCHAPPLICATION, L"Cant launch application") CHK_ERR(DPNERR_CONNECTING, L"Connecting") CHK_ERR(DPNERR_CONNECTIONLOST, L"Connection lost") CHK_ERR(DPNERR_CONVERSION, L"Conversion") CHK_ERR(DPNERR_DATATOOLARGE, L"Data too large") CHK_ERR(DPNERR_DOESNOTEXIST, L"Does not exist") CHK_ERR(DPNERR_DUPLICATECOMMAND, L"Duplicate command") CHK_ERR(DPNERR_ENDPOINTNOTRECEIVING, L"End point not receiving") CHK_ERR(DPNERR_ENUMQUERYTOOLARGE, L"Enum query too large") CHK_ERR(DPNERR_ENUMRESPONSETOOLARGE, L"Enum response too large") CHK_ERR(DPNERR_EXCEPTION, L"Exception") CHK_ERR(DPNERR_GROUPNOTEMPTY, L"Group not empty") CHK_ERR(DPNERR_HOSTING, L"Hosting") CHK_ERR(DPNERR_HOSTREJECTEDCONNECTION, L"Host rejected connection") CHK_ERR(DPNERR_HOSTTERMINATEDSESSION, L"Host terminated session") CHK_ERR(DPNERR_INCOMPLETEADDRESS, L"Incomplete address") CHK_ERR(DPNERR_INVALIDADDRESSFORMAT, L"Invalid address format") CHK_ERR(DPNERR_INVALIDAPPLICATION, L"Invalid application") CHK_ERR(DPNERR_INVALIDCOMMAND, L"Invalid command") CHK_ERR(DPNERR_INVALIDENDPOINT, L"Invalid end point") CHK_ERR(DPNERR_INVALIDFLAGS, L"Invalid flags") CHK_ERR(DPNERR_INVALIDGROUP, L"Invalid group") CHK_ERR(DPNERR_INVALIDHANDLE, L"Invalid handle") CHK_ERR(DPNERR_INVALIDINSTANCE, L"Invalid instance") CHK_ERR(DPNERR_INVALIDINTERFACE, L"Invalid interface") CHK_ERR(DPNERR_INVALIDDEVICEADDRESS, L"Invalid device address") CHK_ERR(DPNERR_INVALIDOBJECT, L"Invalid object") // CHK_ERR(DPNERR_INVALIDPARAM, L"Invalid param") CHK_ERR(DPNERR_INVALIDPASSWORD, L"Invalid password") CHK_ERR(DPNERR_INVALIDPLAYER, L"Invalid player") // CHK_ERR(DPNERR_INVALIDPOINTER, L"Invalid pointer") CHK_ERR(DPNERR_INVALIDPRIORITY, L"Invalid priority") CHK_ERR(DPNERR_INVALIDHOSTADDRESS, L"Invalid host address") CHK_ERR(DPNERR_INVALIDSTRING, L"Invalid string") CHK_ERR(DPNERR_INVALIDURL, L"Invalid url") CHK_ERR(DPNERR_INVALIDVERSION, L"Invalid version") CHK_ERR(DPNERR_NOCAPS, L"No caps") CHK_ERR(DPNERR_NOCONNECTION, L"No connection") CHK_ERR(DPNERR_NOHOSTPLAYER, L"No host player") // CHK_ERR(DPNERR_NOINTERFACE, L"No interface") CHK_ERR(DPNERR_NOMOREADDRESSCOMPONENTS, L"No more address components") CHK_ERR(DPNERR_NORESPONSE, L"No response") CHK_ERR(DPNERR_NOTALLOWED, L"Not allowed") CHK_ERR(DPNERR_NOTHOST, L"Not host") CHK_ERR(DPNERR_NOTREADY, L"Not ready") CHK_ERR(DPNERR_NOTREGISTERED, L"Not registered") // CHK_ERR(DPNERR_OUTOFMEMORY, L"Out of memory") // CHK_ERR(DPNERR_PENDING, L"Pending") CHK_ERR(DPNERR_PLAYERLOST, L"Player lost") CHK_ERR(DPNERR_PLAYERNOTREACHABLE, L"Player not reachable") CHK_ERR(DPNERR_SENDTOOLARGE, L"Send too large") CHK_ERR(DPNERR_SESSIONFULL, L"Session full") CHK_ERR(DPNERR_TABLEFULL, L"Table full") CHK_ERR(DPNERR_TIMEDOUT, L"Timed out") CHK_ERR(DPNERR_UNINITIALIZED, L"Uninitialized") // CHK_ERR(DPNERR_UNSUPPORTED, L"Unsupported") CHK_ERR(DPNERR_USERCANCEL, L"User cancel") // ------------------------------------------------------------- // dxfile.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(DXFILE_OK, L"Ok") CHK_ERR(DXFILEERR_BADOBJECT, L"Bad object") CHK_ERR(DXFILEERR_BADVALUE, L"Bad value") CHK_ERR(DXFILEERR_BADTYPE, L"Bad type") CHK_ERR(DXFILEERR_BADSTREAMHANDLE, L"Bad stream handle") CHK_ERR(DXFILEERR_BADALLOC, L"Bad alloc") CHK_ERR(DXFILEERR_NOTFOUND, L"Not found") CHK_ERR(DXFILEERR_NOTDONEYET, L"Not done yet") CHK_ERR(DXFILEERR_FILENOTFOUND, L"File not found") CHK_ERR(DXFILEERR_RESOURCENOTFOUND, L"Resource not found") CHK_ERR(DXFILEERR_URLNOTFOUND, L"Url not found") CHK_ERR(DXFILEERR_BADRESOURCE, L"Bad resource") CHK_ERR(DXFILEERR_BADFILETYPE, L"Bad file type") CHK_ERR(DXFILEERR_BADFILEVERSION, L"Bad file version") CHK_ERR(DXFILEERR_BADFILEFLOATSIZE, L"Bad file float size") CHK_ERR(DXFILEERR_BADFILECOMPRESSIONTYPE, L"Bad file compression type") CHK_ERR(DXFILEERR_BADFILE, L"Bad file") CHK_ERR(DXFILEERR_PARSEERROR, L"Parse error") CHK_ERR(DXFILEERR_NOTEMPLATE, L"No template") CHK_ERR(DXFILEERR_BADARRAYSIZE, L"Bad array size") CHK_ERR(DXFILEERR_BADDATAREFERENCE, L"Bad data reference") CHK_ERR(DXFILEERR_INTERNALERROR, L"Internal error") CHK_ERR(DXFILEERR_NOMOREOBJECTS, L"No more objects") CHK_ERR(DXFILEERR_BADINTRINSICS, L"Bad intrinsics") CHK_ERR(DXFILEERR_NOMORESTREAMHANDLES, L"No more stream handles") CHK_ERR(DXFILEERR_NOMOREDATA, L"No more data") CHK_ERR(DXFILEERR_BADCACHEFILE, L"Bad cache file") CHK_ERR(DXFILEERR_NOINTERNET, L"No internet") // ------------------------------------------------------------- // d3d8.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(D3D_OK, L"Ok") CHK_ERR(D3DERR_WRONGTEXTUREFORMAT, L"Wrong texture format") CHK_ERR(D3DERR_UNSUPPORTEDCOLOROPERATION, L"Unsupported color operation") CHK_ERR(D3DERR_UNSUPPORTEDCOLORARG, L"Unsupported color arg") CHK_ERR(D3DERR_UNSUPPORTEDALPHAOPERATION, L"Unsupported alpha operation") CHK_ERR(D3DERR_UNSUPPORTEDALPHAARG, L"Unsupported alpha arg") CHK_ERR(D3DERR_TOOMANYOPERATIONS, L"Too many operations") CHK_ERR(D3DERR_CONFLICTINGTEXTUREFILTER, L"Conflicting texture filter") CHK_ERR(D3DERR_UNSUPPORTEDFACTORVALUE, L"Unsupported factor value") CHK_ERR(D3DERR_CONFLICTINGRENDERSTATE, L"Conflicting render state") CHK_ERR(D3DERR_UNSUPPORTEDTEXTUREFILTER, L"Unsupported texture filter") CHK_ERR(D3DERR_CONFLICTINGTEXTUREPALETTE, L"Conflicting texture palette") CHK_ERR(D3DERR_DRIVERINTERNALERROR, L"Driver internal error") CHK_ERR(D3DERR_NOTFOUND, L"Not found") CHK_ERR(D3DERR_MOREDATA, L"More data") CHK_ERR(D3DERR_DEVICELOST, L"Device lost") CHK_ERR(D3DERR_DEVICENOTRESET, L"Device not reset") CHK_ERR(D3DERR_NOTAVAILABLE, L"Not available") CHK_ERR(D3DERR_OUTOFVIDEOMEMORY, L"Out of video memory") CHK_ERR(D3DERR_INVALIDDEVICE, L"Invalid device") CHK_ERR(D3DERR_INVALIDCALL, L"Invalid call") CHK_ERR(D3DERR_DRIVERINVALIDCALL, L"Driver invalid call") // ------------------------------------------------------------- // d3dx8mesh.h error codes as of 12/5/00 // ------------------------------------------------------------- CHK_ERR(D3DXERR_CANNOTMODIFYINDEXBUFFER, L"Can not modify index buffer") CHK_ERR(D3DXERR_INVALIDMESH, L"Invalid mesh") CHK_ERR(D3DXERR_CANNOTATTRSORT, L"Cannot attr sort") CHK_ERR(D3DXERR_SKINNINGNOTSUPPORTED, L"Skinning not supported") CHK_ERR(D3DXERR_TOOMANYINFLUENCES, L"Too many influences") CHK_ERR(D3DXERR_INVALIDDATA, L"Invalid data") // ------------------------------------------------------------- // dsound.h error codes as of 1/22/01 // ------------------------------------------------------------- // CHK_ERR(DS_OK, L"") CHK_ERR(DS_NO_VIRTUALIZATION, L"The call succeeded, but we had to substitute the 3D algorithm") CHK_ERR(DS_INCOMPLETE, L"The call succeeded, but not all of the optional effects were obtained.") CHK_ERR(DSERR_ALLOCATED, L"The call failed because resources (such as a priority level) were already being used by another caller") CHK_ERR(DSERR_CONTROLUNAVAIL, L"The control (vol, pan, etc.) requested by the caller is not available") // CHK_ERR(DSERR_INVALIDPARAM, L"DSERR_INVALIDPARAM") CHK_ERR(DSERR_INVALIDCALL, L"This call is not valid for the current state of this object") // CHK_ERR(DSERR_GENERIC, L"DSERR_GENERIC") CHK_ERR(DSERR_PRIOLEVELNEEDED, L"The caller does not have the priority level required for the function to succeed") // CHK_ERR(DSERR_OUTOFMEMORY, L"Not enough free memory is available to complete the operation") CHK_ERR(DSERR_BADFORMAT, L"The specified WAVE format is not supported") // CHK_ERR(DSERR_UNSUPPORTED, L"DSERR_UNSUPPORTED") CHK_ERR(DSERR_NODRIVER, L"No sound driver is available for use") CHK_ERR(DSERR_ALREADYINITIALIZED, L"This object is already initialized") // CHK_ERR(DSERR_NOAGGREGATION, L"DSERR_NOAGGREGATION") CHK_ERR(DSERR_BUFFERLOST, L"The buffer memory has been lost, and must be restored") CHK_ERR(DSERR_OTHERAPPHASPRIO, L"Another app has a higher priority level, preventing this call from succeeding") CHK_ERR(DSERR_UNINITIALIZED, L"This object has not been initialized") // CHK_ERR(DSERR_NOINTERFACE, L"DSERR_NOINTERFACE") // CHK_ERR(DSERR_ACCESSDENIED, L"DSERR_ACCESSDENIED") CHK_ERR(DSERR_BUFFERTOOSMALL, L"Tried to create a DSBCAPS_CTRLFX buffer shorter than DSBSIZE_FX_MIN milliseconds") CHK_ERR(DSERR_DS8_REQUIRED, L"Attempt to use DirectSound 8 functionality on an older DirectSound object") CHK_ERR(DSERR_SENDLOOP, L"A circular loop of send effects was detected") CHK_ERR(DSERR_BADSENDBUFFERGUID, L"The GUID specified in an audiopath file does not match a valid MIXIN buffer") CHK_ERR(DSERR_OBJECTNOTFOUND, L"The object requested was not found (numerically equal to DMUS_E_NOT_FOUND)") // ------------------------------------------------------------- // dmerror.h error codes as of 9/8/00 // ------------------------------------------------------------- CHK_ERR(DMUS_S_PARTIALLOAD, L"The object could only load partially. This can happen if some components are not registered properly, such as embedded tracks and tools. This can also happen if some content is missing. For example, if a segment uses a DLS collection that is not in the loader's current search directory.") CHK_ERR(DMUS_S_PARTIALDOWNLOAD, L"Return value from IDirectMusicBand::Download() which indicates that some of the instruments safely downloaded, but others failed. This usually occurs when some instruments are on PChannels not supported by the performance or port.") CHK_ERR(DMUS_S_REQUEUE, L"Return value from IDirectMusicTool::ProcessPMsg() which indicates to the performance that it should cue the PMsg again automatically.") CHK_ERR(DMUS_S_FREE, L"Return value from IDirectMusicTool::ProcessPMsg() which indicates to the performance that it should free the PMsg automatically.") CHK_ERR(DMUS_S_END, L"Return value from IDirectMusicTrack::Play() which indicates to the segment that the track has no more data after mtEnd.") CHK_ERR(DMUS_S_STRING_TRUNCATED, L"Returned string has been truncated to fit the buffer size.") CHK_ERR(DMUS_S_LAST_TOOL, L"Returned from IDirectMusicGraph::StampPMsg(), this indicates that the PMsg is already stamped with the last tool in the graph. The returned PMsg's tool pointer is now NULL.") CHK_ERR(DMUS_S_OVER_CHORD, L"Returned from IDirectMusicPerformance::MusicToMIDI(), this indicates that no note has been calculated because the music value has the note at a position higher than the top note of the chord. This applies only to DMUS_PLAYMODE_NORMALCHORD play mode. This success code indicates that the caller should not do anything with the note. It is not meant to be played against this chord.") CHK_ERR(DMUS_S_UP_OCTAVE, L"Returned from IDirectMusicPerformance::MIDIToMusic(), and IDirectMusicPerformance::MusicToMIDI(), this indicates that the note conversion generated a note value that is below 0, so it has been bumped up one or more octaves to be in the proper MIDI range of 0 through 127. Note that this is valid for MIDIToMusic() when using play modes DMUS_PLAYMODE_FIXEDTOCHORD and DMUS_PLAYMODE_FIXEDTOKEY, both of which store MIDI values in wMusicValue. With MusicToMIDI(), it is valid for all play modes. Ofcourse, DMUS_PLAYMODE_FIXED will never return this success code.") CHK_ERR(DMUS_S_DOWN_OCTAVE, L"Returned from IDirectMusicPerformance::MIDIToMusic(), and IDirectMusicPerformance::MusicToMIDI(), this indicates that the note conversion generated a note value that is above 127, so it has been bumped down one or more octaves to be in the proper MIDI range of 0 through 127. Note that this is valid for MIDIToMusic() when using play modes DMUS_PLAYMODE_FIXEDTOCHORD and DMUS_PLAYMODE_FIXEDTOKEY, both of which store MIDI values in wMusicValue. With MusicToMIDI(), it is valid for all play modes. Ofcourse, DMUS_PLAYMODE_FIXED will never return this success code.") CHK_ERR(DMUS_S_NOBUFFERCONTROL, L"Although the audio output from the port will be routed to the same device as the given DirectSound buffer, buffer controls such as pan and volume will not affect the output.") CHK_ERR(DMUS_S_GARBAGE_COLLECTED, L"The requested operation was not performed because during CollectGarbage the loader determined that the object had been released.") CHK_ERR(DMUS_E_DRIVER_FAILED, L"An unexpected error was returned from a device driver, indicating possible failure of the driver or hardware.") CHK_ERR(DMUS_E_PORTS_OPEN, L"The requested operation cannot be performed while there are instantiated ports in any process in the system.") CHK_ERR(DMUS_E_DEVICE_IN_USE, L"The requested device is already in use (possibly by a non-DirectMusic client) and cannot be opened again.") CHK_ERR(DMUS_E_INSUFFICIENTBUFFER, L"Buffer is not large enough for requested operation.") CHK_ERR(DMUS_E_BUFFERNOTSET, L"No buffer was prepared for the download data.") CHK_ERR(DMUS_E_BUFFERNOTAVAILABLE, L"Download failed due to inability to access or create download buffer.") CHK_ERR(DMUS_E_NOTADLSCOL, L"Error parsing DLS collection. File is corrupt.") CHK_ERR(DMUS_E_INVALIDOFFSET, L"Wave chunks in DLS collection file are at incorrect offsets.") CHK_ERR(DMUS_E_ALREADY_LOADED, L"Second attempt to load a DLS collection that is currently open. ") CHK_ERR(DMUS_E_INVALIDPOS, L"Error reading wave data from DLS collection. Indicates bad file.") CHK_ERR(DMUS_E_INVALIDPATCH, L"There is no instrument in the collection that matches patch number.") CHK_ERR(DMUS_E_CANNOTSEEK, L"The IStream* doesn't support Seek().") CHK_ERR(DMUS_E_CANNOTWRITE, L"The IStream* doesn't support Write().") CHK_ERR(DMUS_E_CHUNKNOTFOUND, L"The RIFF parser doesn't contain a required chunk while parsing file.") CHK_ERR(DMUS_E_INVALID_DOWNLOADID, L"Invalid download id was used in the process of creating a download buffer.") CHK_ERR(DMUS_E_NOT_DOWNLOADED_TO_PORT, L"Tried to unload an object that was not downloaded or previously unloaded.") CHK_ERR(DMUS_E_ALREADY_DOWNLOADED, L"Buffer was already downloaded to synth.") CHK_ERR(DMUS_E_UNKNOWN_PROPERTY, L"The specified property item was not recognized by the target object.") CHK_ERR(DMUS_E_SET_UNSUPPORTED, L"The specified property item may not be set on the target object.") CHK_ERR(DMUS_E_GET_UNSUPPORTED, L"* The specified property item may not be retrieved from the target object.") CHK_ERR(DMUS_E_NOTMONO, L"Wave chunk has more than one interleaved channel. DLS format requires MONO.") CHK_ERR(DMUS_E_BADARTICULATION, L"Invalid articulation chunk in DLS collection.") CHK_ERR(DMUS_E_BADINSTRUMENT, L"Invalid instrument chunk in DLS collection.") CHK_ERR(DMUS_E_BADWAVELINK, L"Wavelink chunk in DLS collection points to invalid wave.") CHK_ERR(DMUS_E_NOARTICULATION, L"Articulation missing from instrument in DLS collection.") CHK_ERR(DMUS_E_NOTPCM, L"Downoaded DLS wave is not in PCM format. ") CHK_ERR(DMUS_E_BADWAVE, L"Bad wave chunk in DLS collection") CHK_ERR(DMUS_E_BADOFFSETTABLE, L"Offset Table for download buffer has errors. ") CHK_ERR(DMUS_E_UNKNOWNDOWNLOAD, L"Attempted to download unknown data type.") CHK_ERR(DMUS_E_NOSYNTHSINK, L"The operation could not be completed because no sink was connected to the synthesizer.") CHK_ERR(DMUS_E_ALREADYOPEN, L"An attempt was made to open the software synthesizer while it was already open.") CHK_ERR(DMUS_E_ALREADYCLOSED, L"An attempt was made to close the software synthesizer while it was already open.") CHK_ERR(DMUS_E_SYNTHNOTCONFIGURED, L"The operation could not be completed because the software synth has not yet been fully configured.") CHK_ERR(DMUS_E_SYNTHACTIVE, L"The operation cannot be carried out while the synthesizer is active.") CHK_ERR(DMUS_E_CANNOTREAD, L"An error occurred while attempting to read from the IStream* object.") CHK_ERR(DMUS_E_DMUSIC_RELEASED, L"The operation cannot be performed because the final instance of the DirectMusic object was released. Ports cannot be used after final release of the DirectMusic object.") CHK_ERR(DMUS_E_BUFFER_EMPTY, L"There was no data in the referenced buffer.") CHK_ERR(DMUS_E_BUFFER_FULL, L"There is insufficient space to insert the given event into the buffer.") CHK_ERR(DMUS_E_PORT_NOT_CAPTURE, L"The given operation could not be carried out because the port is a capture port.") CHK_ERR(DMUS_E_PORT_NOT_RENDER, L"The given operation could not be carried out because the port is a render port.") CHK_ERR(DMUS_E_DSOUND_NOT_SET, L"The port could not be created because no DirectSound has been specified. Specify a DirectSound interface via the IDirectMusic::SetDirectSound method; pass NULL to have DirectMusic manage usage of DirectSound.") CHK_ERR(DMUS_E_ALREADY_ACTIVATED, L"The operation cannot be carried out while the port is active.") CHK_ERR(DMUS_E_INVALIDBUFFER, L"Invalid DirectSound buffer was handed to port. ") CHK_ERR(DMUS_E_WAVEFORMATNOTSUPPORTED, L"Invalid buffer format was handed to the synth sink.") CHK_ERR(DMUS_E_SYNTHINACTIVE, L"The operation cannot be carried out while the synthesizer is inactive.") CHK_ERR(DMUS_E_DSOUND_ALREADY_SET, L"IDirectMusic::SetDirectSound has already been called. It may not be changed while in use.") CHK_ERR(DMUS_E_INVALID_EVENT, L"The given event is invalid (either it is not a valid MIDI message or it makes use of running status). The event cannot be packed into the buffer.") CHK_ERR(DMUS_E_UNSUPPORTED_STREAM, L"The IStream* object does not contain data supported by the loading object.") CHK_ERR(DMUS_E_ALREADY_INITED, L"The object has already been initialized.") CHK_ERR(DMUS_E_INVALID_BAND, L"The file does not contain a valid band.") CHK_ERR(DMUS_E_TRACK_HDR_NOT_FIRST_CK, L"The IStream* object's data does not have a track header as the first chunk, and therefore can not be read by the segment object.") CHK_ERR(DMUS_E_TOOL_HDR_NOT_FIRST_CK, L"The IStream* object's data does not have a tool header as the first chunk, and therefore can not be read by the graph object.") CHK_ERR(DMUS_E_INVALID_TRACK_HDR, L"The IStream* object's data contains an invalid track header (ckid is 0 and fccType is NULL,) and therefore can not be read by the segment object.") CHK_ERR(DMUS_E_INVALID_TOOL_HDR, L"The IStream* object's data contains an invalid tool header (ckid is 0 and fccType is NULL,) and therefore can not be read by the graph object.") CHK_ERR(DMUS_E_ALL_TOOLS_FAILED, L"The graph object was unable to load all tools from the IStream* object data. This may be due to errors in the stream, or the tools being incorrectly registered on the client.") CHK_ERR(DMUS_E_ALL_TRACKS_FAILED, L"The segment object was unable to load all tracks from the IStream* object data. This may be due to errors in the stream, or the tracks being incorrectly registered on the client.") // CHK_ERR(DMUS_E_NOT_FOUND, L"DMUS_E_NOT_FOUND") CHK_ERR(DMUS_E_NOT_INIT, L"A required object is not initialized or failed to initialize.") CHK_ERR(DMUS_E_TYPE_DISABLED, L"The requested parameter type is currently disabled. Parameter types may be enabled and disabled by certain calls to SetParam().") CHK_ERR(DMUS_E_TYPE_UNSUPPORTED, L"The requested parameter type is not supported on the object.") CHK_ERR(DMUS_E_TIME_PAST, L"The time is in the past, and the operation can not succeed.") CHK_ERR(DMUS_E_TRACK_NOT_FOUND, L"The requested track is not contained by the segment.") CHK_ERR(DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT, L"The track does not support clock time playback or getparam.") CHK_ERR(DMUS_E_NO_MASTER_CLOCK, L"There is no master clock in the performance. Be sure to call IDirectMusicPerformance::Init().") CHK_ERR(DMUS_E_LOADER_NOCLASSID, L"The class id field is required and missing in the DMUS_OBJECTDESC.") CHK_ERR(DMUS_E_LOADER_BADPATH, L"The requested file path is invalid.") CHK_ERR(DMUS_E_LOADER_FAILEDOPEN, L"File open failed - either file doesn't exist or is locked.") CHK_ERR(DMUS_E_LOADER_FORMATNOTSUPPORTED, L"Search data type is not supported.") CHK_ERR(DMUS_E_LOADER_FAILEDCREATE, L"Unable to find or create object.") CHK_ERR(DMUS_E_LOADER_OBJECTNOTFOUND, L"Object was not found.") CHK_ERR(DMUS_E_LOADER_NOFILENAME, L"The file name is missing from the DMUS_OBJECTDESC.") CHK_ERR(DMUS_E_INVALIDFILE, L"The file requested is not a valid file.") CHK_ERR(DMUS_E_ALREADY_EXISTS, L"The tool is already contained in the graph. Create a new instance.") CHK_ERR(DMUS_E_OUT_OF_RANGE, L"Value is out of range, for instance the requested length is longer than the segment.") CHK_ERR(DMUS_E_SEGMENT_INIT_FAILED, L"Segment initialization failed, most likely due to a critical memory situation.") CHK_ERR(DMUS_E_ALREADY_SENT, L"The DMUS_PMSG has already been sent to the performance object via IDirectMusicPerformance::SendPMsg().") CHK_ERR(DMUS_E_CANNOT_FREE, L"The DMUS_PMSG was either not allocated by the performance via IDirectMusicPerformance::AllocPMsg(), or it was already freed via IDirectMusicPerformance::FreePMsg().") CHK_ERR(DMUS_E_CANNOT_OPEN_PORT, L"The default system port could not be opened.") CHK_ERR(DMUS_E_CANNOT_CONVERT, L"A call to MIDIToMusic() or MusicToMIDI() resulted in an error because the requested conversion could not happen. This usually occurs when the provided DMUS_CHORD_KEY structure has an invalid chord or scale pattern.") CHK_ERR(DMUS_E_DESCEND_CHUNK_FAIL, L"DMUS_E_DESCEND_CHUNK_FAIL is returned when the end of the file was reached before the desired chunk was found.") CHK_ERR(DMUS_E_NOT_LOADED, L"An attempt to use this object failed because it first needs to be loaded.") CHK_ERR(DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE, L"The activeX scripting engine for the script's language is not compatible with DirectMusic.") CHK_ERR(DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE, L"A varient was used that had a type that is not supported by DirectMusic.") CHK_ERR(DMUS_E_SCRIPT_ERROR_IN_SCRIPT, L"An error was encountered while parsing or executing the script. The pErrorInfo parameter (if supplied) was filled with information about the error.") CHK_ERR(DMUS_E_SCRIPT_CANTLOAD_OLEAUT32, L"Loading of oleaut32.dll failed. VBScript and other activeX scripting languages require use of oleaut32.dll. On platforms where oleaut32.dll is not present, only the DirectMusicScript language, which doesn't require oleaut32.dll can be used.") CHK_ERR(DMUS_E_SCRIPT_LOADSCRIPT_ERROR, L"An error occured while parsing a script loaded using LoadScript. The script that was loaded contains an error.") CHK_ERR(DMUS_E_SCRIPT_INVALID_FILE, L"The script file is invalid.") CHK_ERR(DMUS_E_INVALID_SCRIPTTRACK, L"The file contains an invalid script track.") CHK_ERR(DMUS_E_SCRIPT_VARIABLE_NOT_FOUND, L"The script does not contain a variable with the specified name.") CHK_ERR(DMUS_E_SCRIPT_ROUTINE_NOT_FOUND, L"The script does not contain a routine with the specified name.") CHK_ERR(DMUS_E_SCRIPT_CONTENT_READONLY, L"Scripts variables for content referenced or embedded in a script cannot be set.") CHK_ERR(DMUS_E_SCRIPT_NOT_A_REFERENCE, L"Attempt was made to set a script's variable by reference to a value that was not an object type.") CHK_ERR(DMUS_E_SCRIPT_VALUE_NOT_SUPPORTED, L"Attempt was made to set a script's variable by value to an object that does not support a default value property.") CHK_ERR(DMUS_E_INVALID_SEGMENTTRIGGERTRACK, L"The file contains an invalid segment trigger track.") CHK_ERR(DMUS_E_INVALID_LYRICSTRACK, L"The file contains an invalid lyrics track.") CHK_ERR(DMUS_E_INVALID_PARAMCONTROLTRACK, L"The file contains an invalid parameter control track.") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR, L"A script written in AudioVBScript could not be read because it contained a statement that is not allowed by the AudioVBScript language.") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR, L"A script routine written in AudioVBScript failed because an invalid operation occurred. For example, adding the number 3 to a segment object would produce this error. So would attempting to call a routine that doesn't exist.") CHK_ERR(DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE, L"A script routine written in AudioVBScript failed because a function outside of a script failed to complete. For example, a call to PlaySegment that fails to play because of low memory would return this error.") CHK_ERR(DMUS_E_AUDIOPATHS_NOT_VALID, L"The Performance has set up some PChannels using the AssignPChannel command, which makes it not capable of supporting audio paths.") CHK_ERR(DMUS_E_AUDIOPATHS_IN_USE, L"This is the inverse of the previous error. The Performance has set up some audio paths, which makes is incompatible with the calls to allocate pchannels, etc. ") CHK_ERR(DMUS_E_NO_AUDIOPATH_CONFIG, L"A segment or song was asked for its embedded audio path configuration, but there isn't any. ") CHK_ERR(DMUS_E_AUDIOPATH_INACTIVE, L"An audiopath is inactive, perhaps because closedown was called.") CHK_ERR(DMUS_E_AUDIOPATH_NOBUFFER, L"An audiopath failed to create because a requested buffer could not be created.") CHK_ERR(DMUS_E_AUDIOPATH_NOPORT, L"An audiopath could not be used for playback because it lacked port assignments.") CHK_ERR(DMUS_E_NO_AUDIOPATH, L"Attempt was made to play segment in audiopath mode and there was no audiopath.") CHK_ERR(DMUS_E_INVALIDCHUNK, L"Invalid data was found in a RIFF file chunk.") CHK_ERR(DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER, L"Attempt was made to create an audiopath that sends to a global effects buffer which did not exist.") CHK_ERR(DMUS_E_INVALID_CONTAINER_OBJECT, L"The file does not contain a valid container object.") // ------------------------------------------------------------- // vfwmsgs.h error codes as of 9/8/00 // ------------------------------------------------------------- // CHK_ERR(VFW_E_INVALIDMEDIATYPE, L"VFW_E_INVALIDMEDIATYPE") // CHK_ERR(VFW_E_INVALIDSUBTYPE, L"VFW_E_INVALIDSUBTYPE") // CHK_ERR(VFW_E_NEED_OWNER, L"VFW_E_NEED_OWNER") // CHK_ERR(VFW_E_ENUM_OUT_OF_SYNC, L"VFW_E_ENUM_OUT_OF_SYNC") // CHK_ERR(VFW_E_ALREADY_CONNECTED, L"VFW_E_ALREADY_CONNECTED") // CHK_ERR(VFW_E_FILTER_ACTIVE, L"VFW_E_FILTER_ACTIVE") // CHK_ERR(VFW_E_NO_TYPES, L"VFW_E_NO_TYPES") // CHK_ERR(VFW_E_NO_ACCEPTABLE_TYPES, L"VFW_E_NO_ACCEPTABLE_TYPES") // CHK_ERR(VFW_E_INVALID_DIRECTION, L"VFW_E_INVALID_DIRECTION") // CHK_ERR(VFW_E_NOT_CONNECTED, L"VFW_E_NOT_CONNECTED") // CHK_ERR(VFW_E_NO_ALLOCATOR, L"VFW_E_NO_ALLOCATOR") // CHK_ERR(VFW_E_RUNTIME_ERROR, L"VFW_E_RUNTIME_ERROR") CHK_ERR(VFW_E_BUFFER_NOTSET, L"No buffer space has been set") CHK_ERR(VFW_E_BUFFER_OVERFLOW, L"The buffer is not big enough.") CHK_ERR(VFW_E_BADALIGN, L"An invalid alignment was specified.") CHK_ERR(VFW_E_ALREADY_COMMITTED, L"Cannot change allocated memory while the filter is active.") CHK_ERR(VFW_E_BUFFERS_OUTSTANDING, L"One or more buffers are still active.") CHK_ERR(VFW_E_NOT_COMMITTED, L"Cannot allocate a sample when the allocator is not active.") CHK_ERR(VFW_E_SIZENOTSET, L"Cannot allocate memory because no size has been set.") CHK_ERR(VFW_E_NO_CLOCK, L"Cannot lock for synchronization because no clock has been defined.") CHK_ERR(VFW_E_NO_SINK, L"Quality messages could not be sent because no quality sink has been defined.") CHK_ERR(VFW_E_NO_INTERFACE, L"A required interface has not been implemented.") CHK_ERR(VFW_E_NOT_FOUND, L"An object or name was not found.") CHK_ERR(VFW_E_CANNOT_CONNECT, L"No combination of intermediate filters could be found to make the connection.") CHK_ERR(VFW_E_CANNOT_RENDER, L"No combination of filters could be found to render the stream.") CHK_ERR(VFW_E_CHANGING_FORMAT, L"Could not change formats dynamically.") CHK_ERR(VFW_E_NO_COLOR_KEY_SET, L"No color key has been set.") CHK_ERR(VFW_E_NOT_OVERLAY_CONNECTION, L"Current pin connection is not using the IOverlay transport.") CHK_ERR(VFW_E_NOT_SAMPLE_CONNECTION, L"Current pin connection is not using the IMemInputPin transport.") CHK_ERR(VFW_E_PALETTE_SET, L"Setting a color key would conflict with the palette already set.") CHK_ERR(VFW_E_COLOR_KEY_SET, L"Setting a palette would conflict with the color key already set.") CHK_ERR(VFW_E_NO_COLOR_KEY_FOUND, L"No matching color key is available.") CHK_ERR(VFW_E_NO_PALETTE_AVAILABLE, L"No palette is available.") CHK_ERR(VFW_E_NO_DISPLAY_PALETTE, L"Display does not use a palette.") CHK_ERR(VFW_E_TOO_MANY_COLORS, L"Too many colors for the current display settings.") CHK_ERR(VFW_E_STATE_CHANGED, L"The state changed while waiting to process the sample.") CHK_ERR(VFW_E_NOT_STOPPED, L"The operation could not be performed because the filter is not stopped.") CHK_ERR(VFW_E_NOT_PAUSED, L"The operation could not be performed because the filter is not paused.") CHK_ERR(VFW_E_NOT_RUNNING, L"The operation could not be performed because the filter is not running.") CHK_ERR(VFW_E_WRONG_STATE, L"The operation could not be performed because the filter is in the wrong state.") CHK_ERR(VFW_E_START_TIME_AFTER_END, L"The sample start time is after the sample end time.") CHK_ERR(VFW_E_INVALID_RECT, L"The supplied rectangle is invalid.") CHK_ERR(VFW_E_TYPE_NOT_ACCEPTED, L"This pin cannot use the supplied media type.") CHK_ERR(VFW_E_SAMPLE_REJECTED, L"This sample cannot be rendered.") CHK_ERR(VFW_E_SAMPLE_REJECTED_EOS, L"This sample cannot be rendered because the end of the stream has been reached.") CHK_ERR(VFW_E_DUPLICATE_NAME, L"An attempt to add a filter with a duplicate name failed.") CHK_ERR(VFW_S_DUPLICATE_NAME, L"An attempt to add a filter with a duplicate name succeeded with a modified name.") CHK_ERR(VFW_E_TIMEOUT, L"A time-out has expired.") CHK_ERR(VFW_E_INVALID_FILE_FORMAT, L"The file format is invalid.") CHK_ERR(VFW_E_ENUM_OUT_OF_RANGE, L"The list has already been exhausted.") CHK_ERR(VFW_E_CIRCULAR_GRAPH, L"The filter graph is circular.") CHK_ERR(VFW_E_NOT_ALLOWED_TO_SAVE, L"Updates are not allowed in this state.") CHK_ERR(VFW_E_TIME_ALREADY_PASSED, L"An attempt was made to queue a command for a time in the past.") CHK_ERR(VFW_E_ALREADY_CANCELLED, L"The queued command has already been canceled.") CHK_ERR(VFW_E_CORRUPT_GRAPH_FILE, L"Cannot render the file because it is corrupt.") CHK_ERR(VFW_E_ADVISE_ALREADY_SET, L"An overlay advise link already exists.") CHK_ERR(VFW_S_STATE_INTERMEDIATE, L"The state transition has not completed.") CHK_ERR(VFW_E_NO_MODEX_AVAILABLE, L"No full-screen modes are available.") CHK_ERR(VFW_E_NO_ADVISE_SET, L"This Advise cannot be canceled because it was not successfully set.") CHK_ERR(VFW_E_NO_FULLSCREEN, L"A full-screen mode is not available.") CHK_ERR(VFW_E_IN_FULLSCREEN_MODE, L"Cannot call IVideoWindow methods while in full-screen mode.") CHK_ERR(VFW_E_UNKNOWN_FILE_TYPE, L"The media type of this file is not recognized.") CHK_ERR(VFW_E_CANNOT_LOAD_SOURCE_FILTER, L"The source filter for this file could not be loaded.") CHK_ERR(VFW_S_PARTIAL_RENDER, L"Some of the streams in this movie are in an unsupported format.") CHK_ERR(VFW_E_FILE_TOO_SHORT, L"A file appeared to be incomplete.") CHK_ERR(VFW_E_INVALID_FILE_VERSION, L"The version number of the file is invalid.") CHK_ERR(VFW_S_SOME_DATA_IGNORED, L"The file contained some property settings that were not used.") CHK_ERR(VFW_S_CONNECTIONS_DEFERRED, L"Some connections have failed and have been deferred.") CHK_ERR(VFW_E_INVALID_CLSID, L"This file is corrupt: it contains an invalid class identifier.") CHK_ERR(VFW_E_INVALID_MEDIA_TYPE, L"This file is corrupt: it contains an invalid media type.") CHK_ERR(VFW_E_BAD_KEY, L"A registry entry is corrupt.") CHK_ERR(VFW_S_NO_MORE_ITEMS, L"The end of the list has been reached.") CHK_ERR(VFW_E_SAMPLE_TIME_NOT_SET, L"No time stamp has been set for this sample.") CHK_ERR(VFW_S_RESOURCE_NOT_NEEDED, L"The resource specified is no longer needed.") CHK_ERR(VFW_E_MEDIA_TIME_NOT_SET, L"No media time stamp has been set for this sample.") CHK_ERR(VFW_E_NO_TIME_FORMAT_SET, L"No media time format has been selected.") CHK_ERR(VFW_E_MONO_AUDIO_HW, L"Cannot change balance because audio device is mono only.") CHK_ERR(VFW_S_MEDIA_TYPE_IGNORED, L"A connection could not be made with the media type in the persistent graph, but has been made with a negotiated media type.") CHK_ERR(VFW_E_NO_DECOMPRESSOR, L"Cannot play back the video stream: no suitable decompressor could be found.") CHK_ERR(VFW_E_NO_AUDIO_HARDWARE, L"Cannot play back the audio stream: no audio hardware is available, or the hardware is not responding.") CHK_ERR(VFW_S_VIDEO_NOT_RENDERED, L"Cannot play back the video stream: no suitable decompressor could be found.") CHK_ERR(VFW_S_AUDIO_NOT_RENDERED, L"Cannot play back the audio stream: no audio hardware is available.") CHK_ERR(VFW_E_RPZA, L"Cannot play back the video stream: format 'RPZA' is not supported.") CHK_ERR(VFW_S_RPZA, L"Cannot play back the video stream: format 'RPZA' is not supported.") CHK_ERR(VFW_E_PROCESSOR_NOT_SUITABLE, L"ActiveMovie cannot play MPEG movies on this processor.") CHK_ERR(VFW_E_UNSUPPORTED_AUDIO, L"Cannot play back the audio stream: the audio format is not supported.") CHK_ERR(VFW_E_UNSUPPORTED_VIDEO, L"Cannot play back the video stream: the video format is not supported.") CHK_ERR(VFW_E_MPEG_NOT_CONSTRAINED, L"ActiveMovie cannot play this video stream because it falls outside the constrained standard.") CHK_ERR(VFW_E_NOT_IN_GRAPH, L"Cannot perform the requested function on an object that is not in the filter graph.") CHK_ERR(VFW_S_ESTIMATED, L"The value returned had to be estimated. It's accuracy can not be guaranteed.") CHK_ERR(VFW_E_NO_TIME_FORMAT, L"Cannot get or set time related information on an object that is using a time format of TIME_FORMAT_NONE.") CHK_ERR(VFW_E_READ_ONLY, L"The connection cannot be made because the stream is read only and the filter alters the data.") CHK_ERR(VFW_S_RESERVED, L"This success code is reserved for internal purposes within ActiveMovie.") CHK_ERR(VFW_E_BUFFER_UNDERFLOW, L"The buffer is not full enough.") CHK_ERR(VFW_E_UNSUPPORTED_STREAM, L"Cannot play back the file. The format is not supported.") CHK_ERR(VFW_E_NO_TRANSPORT, L"Pins cannot connect due to not supporting the same transport.") CHK_ERR(VFW_S_STREAM_OFF, L"The stream has been turned off.") CHK_ERR(VFW_S_CANT_CUE, L"The graph can't be cued because of lack of or corrupt data.") CHK_ERR(VFW_E_BAD_VIDEOCD, L"The Video CD can't be read correctly by the device or is the data is corrupt.") CHK_ERR(VFW_S_NO_STOP_TIME, L"The stop time for the sample was not set.") CHK_ERR(VFW_E_OUT_OF_VIDEO_MEMORY, L"There is not enough Video Memory at this display resolution and number of colors. Reducing resolution might help.") CHK_ERR(VFW_E_VP_NEGOTIATION_FAILED, L"The VideoPort connection negotiation process has failed.") CHK_ERR(VFW_E_DDRAW_CAPS_NOT_SUITABLE, L"Either DirectDraw has not been installed or the Video Card capabilities are not suitable. Make sure the display is not in 16 color mode.") CHK_ERR(VFW_E_NO_VP_HARDWARE, L"No VideoPort hardware is available, or the hardware is not responding.") CHK_ERR(VFW_E_NO_CAPTURE_HARDWARE, L"No Capture hardware is available, or the hardware is not responding.") CHK_ERR(VFW_E_DVD_OPERATION_INHIBITED, L"This User Operation is inhibited by DVD Content at this time.") CHK_ERR(VFW_E_DVD_INVALIDDOMAIN, L"This Operation is not permitted in the current domain.") CHK_ERR(VFW_E_DVD_NO_BUTTON, L"The specified button is invalid or is not present at the current time, or there is no button present at the specified location.") CHK_ERR(VFW_E_DVD_GRAPHNOTREADY, L"DVD-Video playback graph has not been built yet.") CHK_ERR(VFW_E_DVD_RENDERFAIL, L"DVD-Video playback graph building failed.") CHK_ERR(VFW_E_DVD_DECNOTENOUGH, L"DVD-Video playback graph could not be built due to insufficient decoders.") CHK_ERR(VFW_E_DDRAW_VERSION_NOT_SUITABLE, L"Version number of DirectDraw not suitable. Make sure to install dx5 or higher version.") CHK_ERR(VFW_E_COPYPROT_FAILED, L"Copy protection cannot be enabled. Please make sure any other copy protected content is not being shown now.") CHK_ERR(VFW_S_NOPREVIEWPIN, L"There was no preview pin available, so the capture pin output is being split to provide both capture and preview.") CHK_ERR(VFW_E_TIME_EXPIRED, L"This object cannot be used anymore as its time has expired.") CHK_ERR(VFW_S_DVD_NON_ONE_SEQUENTIAL, L"The current title was not a sequential set of chapters (PGC), and the returned timing information might not be continuous.") CHK_ERR(VFW_E_DVD_WRONG_SPEED, L"The operation cannot be performed at the current playback speed.") CHK_ERR(VFW_E_DVD_MENU_DOES_NOT_EXIST, L"The specified menu doesn't exist.") CHK_ERR(VFW_E_DVD_CMD_CANCELLED, L"The specified command was either cancelled or no longer exists.") CHK_ERR(VFW_E_DVD_STATE_WRONG_VERSION, L"The data did not contain a recognized version.") CHK_ERR(VFW_E_DVD_STATE_CORRUPT, L"The state data was corrupt.") CHK_ERR(VFW_E_DVD_STATE_WRONG_DISC, L"The state data is from a different disc.") CHK_ERR(VFW_E_DVD_INCOMPATIBLE_REGION, L"The region was not compatible with the current drive.") CHK_ERR(VFW_E_DVD_NO_ATTRIBUTES, L"The requested DVD stream attribute does not exist.") CHK_ERR(VFW_E_DVD_NO_GOUP_PGC, L"Currently there is no GoUp (Annex J user function) program chain (PGC).") CHK_ERR(VFW_E_DVD_LOW_PARENTAL_LEVEL, L"The current parental level was too low.") CHK_ERR(VFW_E_DVD_NOT_IN_KARAOKE_MODE, L"The current audio is not karaoke content.") CHK_ERR(VFW_S_DVD_CHANNEL_CONTENTS_NOT_AVAILABLE, L"The audio stream did not contain sufficient information to determine the contents of each channel.") CHK_ERR(VFW_S_DVD_NOT_ACCURATE, L"The seek into the movie was not frame accurate.") CHK_ERR(VFW_E_FRAME_STEP_UNSUPPORTED, L"Frame step is not supported on this configuration.") CHK_ERR(VFW_E_DVD_STREAM_DISABLED, L"The specified stream is disabled and cannot be selected.") CHK_ERR(VFW_E_DVD_TITLE_UNKNOWN, L"The operation depends on the current title number, however the navigator has not yet entered the VTSM or the title domains, so the 'current' title index is unknown.") CHK_ERR(VFW_E_DVD_INVALID_DISC, L"The specified path does not point to a valid DVD disc.") CHK_ERR(VFW_E_DVD_NO_RESUME_INFORMATION, L"There is currently no resume information.") CHK_ERR(VFW_E_PIN_ALREADY_BLOCKED_ON_THIS_THREAD, L"This thread has already blocked this output pin. There is no need to call IPinFlowControl::Block() again.") CHK_ERR(VFW_E_PIN_ALREADY_BLOCKED, L"IPinFlowControl::Block() has been called on another thread. The current thread cannot make any assumptions about this pin's block state.") CHK_ERR(VFW_E_CERTIFICATION_FAILURE, L"An operation failed due to a certification failure.") CHK_ERR(E_PROP_SET_UNSUPPORTED, L"The Specified property set is not supported.") CHK_ERR(E_PROP_ID_UNSUPPORTED, L"The specified property ID is not supported for the specified property set.") } return L"n/a"; } //----------------------------------------------------------------------------- // Name: DXTraceW() // Desc: Outputs a formatted error message to the debug stream //----------------------------------------------------------------------------- HRESULT WINAPI DXTraceW( CHAR* strFile, DWORD dwLine, HRESULT hr, WCHAR* strMsg, BOOL bPopMsgBox ) { WCHAR strLine[50]; WCHAR strError[200]; WCHAR strBuffer[BUFFER_SIZE]; swprintf( strLine, L"%ld", dwLine ); if( strFile != NULL ) { if( strlen(strFile) + 200 < BUFFER_SIZE ) { swprintf( strBuffer, L"%S(%s): ", strFile, strLine ); OutputDebugStringW( strBuffer ); } } if( strMsg != NULL ) OutputDebugStringW( strMsg ); swprintf( strError, L"%s (0x%0.8x)", DXGetErrorString8W(hr), hr ); swprintf( strBuffer, L" (hr=%s)", strError ); OutputDebugStringW( strBuffer ); OutputDebugStringW( L"\n" ); if( bPopMsgBox ) { if( wcslen(strMsg) + strlen(strFile) + wcslen(strLine) + wcslen(strError) + 200 < BUFFER_SIZE ) { swprintf( strBuffer, L"File: %S\nLine: %s\nError Code: %s\nCalling: %s", strFile, strLine, strError, strMsg ); MessageBoxW( NULL, strBuffer, L"Unexpected error encountered", MB_OK|MB_ICONERROR ); } } return hr; } //----------------------------------------------------------------------------- // Name: DXTraceA() // Desc: Outputs a formatted error message to the debug stream //----------------------------------------------------------------------------- HRESULT WINAPI DXTraceA( char* strFile, DWORD dwLine, HRESULT hr, char* strMsg, BOOL bPopMsgBox ) { CHAR strLine[50]; CHAR strError[200]; CHAR strBuffer[BUFFER_SIZE]; sprintf( strLine, "%ld", dwLine ); if( strFile != NULL ) { if( strlen(strFile) + 200 < BUFFER_SIZE ) { sprintf( strBuffer, "%s(%s): ", strFile, strLine ); OutputDebugStringA( strBuffer ); } } if( strMsg != NULL ) OutputDebugStringA( strMsg ); sprintf( strError, "%s (0x%0.8x)", DXGetErrorString8A(hr), hr ); sprintf( strBuffer, " (hr=%s)", strError ); OutputDebugStringA( strBuffer ); OutputDebugStringA( "\n" ); if( bPopMsgBox ) { if( strlen(strMsg) + strlen(strFile) + strlen(strLine) + strlen(strError) + 200 < BUFFER_SIZE ) { sprintf( strBuffer, "File: %s\nLine: %s\nError Code: %s\nCalling: %s", strFile, strLine, strError, strMsg ); MessageBoxA( NULL, strBuffer, "Unexpected error encountered", MB_OK|MB_ICONERROR ); } } return hr; }