Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

876 lines
48 KiB

  1. /*==========================================================================;
  2. *
  3. *
  4. * File: dxerr8.cpp
  5. * Content: DirectX Error Library
  6. *
  7. ****************************************************************************/
  8. #include <windows.h>
  9. #include <stdio.h>
  10. #include <MMsystem.h>
  11. #include"d3d8.h"
  12. #include"d3dx8.h"
  13. #include"d3dxerr.h"
  14. #include"dsound.h"
  15. #include"dmusici.h"
  16. #include"dplay8.h"
  17. #include"dvoice.h"
  18. #include"dinput.h"
  19. #include"dinputd.h"
  20. //#include"appman.h"
  21. #define BUFFER_SIZE 3000
  22. #define CHK_ERR(hrchk, strOut) \
  23. case hrchk: \
  24. return strOut;
  25. /****************************************************/
  26. /* DXGetErrorString8A */
  27. /* */
  28. /****************************************************/
  29. const char * __stdcall DXGetErrorString8A(HRESULT hr)
  30. {
  31. switch(hr)
  32. {
  33. // Common Win32 error codes
  34. CHK_ERR(S_OK, "S_OK")
  35. CHK_ERR(S_FALSE, "S_FALSE")
  36. CHK_ERR(E_UNEXPECTED, "E_UNEXPECTED")
  37. CHK_ERR(E_NOTIMPL, "E_NOTIMPL")
  38. CHK_ERR(E_OUTOFMEMORY, "E_OUTOFMEMORY")
  39. CHK_ERR(E_INVALIDARG, "E_INVALIDARG")
  40. CHK_ERR(E_NOINTERFACE, "E_NOINTERFACE")
  41. CHK_ERR(E_POINTER, "E_POINTER")
  42. CHK_ERR(E_HANDLE, "E_HANDLE")
  43. CHK_ERR(E_ABORT, "E_ABORT")
  44. CHK_ERR(E_FAIL, "E_FAIL")
  45. CHK_ERR(E_ACCESSDENIED, "E_ACCESSDENIED")
  46. CHK_ERR(E_PENDING, "E_PENDING")
  47. CHK_ERR(REGDB_E_CLASSNOTREG, "REGDB_E_CLASSNOTREG")
  48. CHK_ERR(CO_E_NOTINITIALIZED, "CO_E_NOTINITIALIZED")
  49. CHK_ERR(CO_E_ALREADYINITIALIZED, "CO_E_ALREADYINITIALIZED")
  50. // CHK_ERR(DIERR_GENERIC, "E_FAIL")
  51. CHK_ERR(DIERR_NOAGGREGATION, "E_NOAGGREGATION")
  52. CHK_ERR(DIERR_INSUFFICIENTPRIVS, "DIERR_INSUFFICIENTPRIVS")
  53. CHK_ERR(DIERR_DEVICEFULL, "DIERR_DEVICEFULL")
  54. CHK_ERR(DIERR_MOREDATA, "DIERR_MOREDATA")
  55. CHK_ERR(DIERR_NOTDOWNLOADED, "DIERR_NOTDOWNLOADED")
  56. CHK_ERR(DIERR_HASEFFECTS, "DIERR_HASEFFECTS")
  57. CHK_ERR(DIERR_NOTEXCLUSIVEACQUIRED, "DIERR_NOTEXCLUSIVEACQUIRED")
  58. CHK_ERR(DIERR_INCOMPLETEEFFECT, "DIERR_INCOMPLETEEFFECT")
  59. CHK_ERR(DIERR_NOTBUFFERED, "DIERR_NOTBUFFERED")
  60. CHK_ERR(DIERR_EFFECTPLAYING, "DIERR_EFFECTPLAYING")
  61. CHK_ERR(DIERR_UNPLUGGED, "DIERR_UNPLUGGED")
  62. CHK_ERR(DIERR_REPORTFULL, "DIERR_REPORTFULL")
  63. CHK_ERR(DIERR_DRIVERFIRST, "DIERR_DRIVERFIRST")
  64. CHK_ERR(DIERR_DRIVERLAST, "DIERR_DRIVERLAST")
  65. CHK_ERR(DIERR_INVALIDCLASSINSTALLER, "DIERR_INVALIDCLASSINSTALLER")
  66. CHK_ERR(DIERR_CANCELLED, "DIERR_CANCELLED")
  67. CHK_ERR(DIERR_BADINF, "DIERR_BADINF")
  68. CHK_ERR(DIERR_NOTFOUND, "DIERR_NOTFOUND or DIERR_NOTFOUND")
  69. // CHK_ERR(DIERR_READONLY, "DIERR_READONLY or DIERR_OTHERAPPHASPRIO or DIERR_HANDLEEXISTS or DSERR_ACCESSDENIED")
  70. CHK_ERR(DIERR_NOTACQUIRED, "DIERR_NOTACQUIRED")
  71. // CHK_ERR(DIERR_OUTOFMEMORY, "E_OUTOFMEMORY")
  72. CHK_ERR(DIERR_NOTINITIALIZED, "DIERR_NOTINITIALIZED")
  73. CHK_ERR(DIERR_INPUTLOST, "DIERR_INPUTLOST")
  74. CHK_ERR(DIERR_BADDRIVERVER, "DIERR_BADDRIVERVER")
  75. CHK_ERR(DIERR_ACQUIRED, "DIERR_ACQUIRED")
  76. CHK_ERR(DIERR_NOMOREITEMS, "DIERR_NOMOREITEMS")
  77. CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, "DIERR_OLDDIRECTINPUTVERSION")
  78. CHK_ERR(DIERR_BETADIRECTINPUTVERSION, "DIERR_BETADIRECTINPUTVERSION")
  79. CHK_ERR(DIERR_ALREADYINITIALIZED, "DIERR_ALREADYINITIALIZED")
  80. CHK_ERR(DVERR_BUFFERTOOSMALL, "DVERR_BUFFERTOOSMALL")
  81. CHK_ERR(DVERR_EXCEPTION, "DVERR_EXCEPTION")
  82. CHK_ERR(DVERR_INVALIDFLAGS, "DVERR_INVALIDFLAGS")
  83. CHK_ERR(DVERR_INVALIDOBJECT, "DVERR_INVALIDOBJECT")
  84. CHK_ERR(DVERR_INVALIDPLAYER, "DVERR_INVALIDPLAYER")
  85. CHK_ERR(DVERR_INVALIDGROUP, "DVERR_INVALIDGROUP")
  86. CHK_ERR(DVERR_INVALIDHANDLE, "DVERR_INVALIDHANDLE")
  87. CHK_ERR(DVERR_SESSIONLOST, "DVERR_SESSIONLOST")
  88. CHK_ERR(DVERR_NOVOICESESSION, "DVERR_NOVOICESESSION")
  89. CHK_ERR(DVERR_CONNECTIONLOST, "DVERR_CONNECTIONLOST")
  90. CHK_ERR(DVERR_NOTINITIALIZED, "DVERR_NOTINITIALIZED")
  91. CHK_ERR(DVERR_CONNECTED, "DVERR_CONNECTED")
  92. CHK_ERR(DVERR_NOTCONNECTED, "DVERR_NOTCONNECTED")
  93. CHK_ERR(DVERR_CONNECTABORTING, "DVERR_CONNECTABORTING")
  94. CHK_ERR(DVERR_NOTALLOWED, "DVERR_NOTALLOWED")
  95. CHK_ERR(DVERR_INVALIDTARGET, "DVERR_INVALIDTARGET")
  96. CHK_ERR(DVERR_TRANSPORTNOTHOST, "DVERR_TRANSPORTNOTHOST")
  97. CHK_ERR(DVERR_COMPRESSIONNOTSUPPORTED, "DVERR_COMPRESSIONNOTSUPPORTED")
  98. CHK_ERR(DVERR_ALREADYPENDING, "DVERR_ALREADYPENDING")
  99. CHK_ERR(DVERR_SOUNDINITFAILURE, "DVERR_SOUNDINITFAILURE")
  100. CHK_ERR(DVERR_TIMEOUT, "DVERR_TIMEOUT")
  101. CHK_ERR(DVERR_CONNECTABORTED, "DVERR_CONNECTABORTED")
  102. CHK_ERR(DVERR_NO3DSOUND, "DVERR_NO3DSOUND")
  103. CHK_ERR(DVERR_ALREADYBUFFERED, "DVERR_ALREADYBUFFERED")
  104. CHK_ERR(DVERR_NOTBUFFERED, "DVERR_NOTBUFFERED")
  105. CHK_ERR(DVERR_HOSTING, "DVERR_HOSTING")
  106. CHK_ERR(DVERR_NOTHOSTING, "DVERR_NOTHOSTING")
  107. CHK_ERR(DVERR_INVALIDDEVICE, "DVERR_INVALIDDEVICE")
  108. CHK_ERR(DVERR_RECORDSYSTEMERROR, "DVERR_RECORDSYSTEMERROR")
  109. CHK_ERR(DVERR_PLAYBACKSYSTEMERROR, "DVERR_PLAYBACKSYSTEMERROR")
  110. CHK_ERR(DVERR_SENDERROR, "DVERR_SENDERROR")
  111. CHK_ERR(DVERR_USERCANCEL, "DVERR_USERCANCEL")
  112. CHK_ERR(DVERR_RUNSETUP, "DVERR_RUNSETUP")
  113. CHK_ERR(DVERR_INCOMPATIBLEVERSION, "DVERR_INCOMPATIBLEVERSION")
  114. CHK_ERR(DVERR_INITIALIZED, "DVERR_INITIALIZED")
  115. CHK_ERR(DVERR_NOTRANSPORT, "DVERR_NOTRANSPORT")
  116. CHK_ERR(DVERR_NOCALLBACK, "DVERR_NOCALLBACK")
  117. CHK_ERR(DVERR_TRANSPORTNOTINIT, "DVERR_TRANSPORTNOTINIT")
  118. CHK_ERR(DVERR_TRANSPORTNOSESSION, "DVERR_TRANSPORTNOSESSION")
  119. CHK_ERR(DVERR_TRANSPORTNOPLAYER, "DVERR_TRANSPORTNOPLAYER")
  120. CHK_ERR(DVERR_USERBACK, "DVERR_USERBACK")
  121. CHK_ERR(DVERR_NORECVOLAVAILABLE, "DVERR_NORECVOLAVAILABLE")
  122. CHK_ERR(DPNERR_ABORTED, "DPNERR_ABORTED")
  123. CHK_ERR(DPNERR_ADDRESSING, "DPNERR_ADDRESSING")
  124. CHK_ERR(DPNERR_ALREADYCONNECTED, "DPNERR_ALREADYCONNECTED")
  125. CHK_ERR(DPNERR_ALREADYDISCONNECTING, "DPNERR_ALREADYDISCONNECTING")
  126. CHK_ERR(DPNERR_ALREADYINITIALIZED, "DPNERR_ALREADYINITIALIZED")
  127. CHK_ERR(DPNERR_ALREADYREGISTERED, "DPNERR_ALREADYREGISTERED")
  128. CHK_ERR(DPNERR_BUFFERTOOSMALL, "DPNERR_BUFFERTOOSMALL")
  129. CHK_ERR(DPNERR_CANNOTCANCEL, "DPNERR_CANNOTCANCEL")
  130. CHK_ERR(DPNERR_CANTCREATEGROUP, "DPNERR_CANTCREATEGROUP")
  131. CHK_ERR(DPNERR_CANTCREATEPLAYER, "DPNERR_CANTCREATEPLAYER")
  132. CHK_ERR(DPNERR_CANTLAUNCHAPPLICATION, "DPNERR_CANTLAUNCHAPPLICATION")
  133. CHK_ERR(DPNERR_CONNECTING, "DPNERR_CONNECTING")
  134. CHK_ERR(DPNERR_CONNECTIONLOST, "DPNERR_CONNECTIONLOST")
  135. CHK_ERR(DPNERR_CONVERSION, "DPNERR_CONVERSION")
  136. CHK_ERR(DPNERR_DOESNOTEXIST, "DPNERR_DOESNOTEXIST")
  137. CHK_ERR(DPNERR_DUPLICATECOMMAND, "DPNERR_DUPLICATECOMMAND")
  138. CHK_ERR(DPNERR_ENDPOINTNOTRECEIVING, "DPNERR_ENDPOINTNOTRECEIVING")
  139. CHK_ERR(DPNERR_EXCEPTION, "DPNERR_EXCEPTION")
  140. CHK_ERR(DPNERR_GROUPNOTEMPTY, "DPNERR_GROUPNOTEMPTY")
  141. CHK_ERR(DPNERR_HOSTING, "DPNERR_HOSTING")
  142. CHK_ERR(DPNERR_HOSTREJECTEDCONNECTION, "DPNERR_HOSTREJECTEDCONNECTION")
  143. CHK_ERR(DPNERR_INCOMPLETEADDRESS, "DPNERR_INCOMPLETEADDRESS")
  144. CHK_ERR(DPNERR_INVALIDADDRESSFORMAT, "DPNERR_INVALIDADDRESSFORMAT")
  145. CHK_ERR(DPNERR_INVALIDAPPLICATION, "DPNERR_INVALIDAPPLICATION")
  146. CHK_ERR(DPNERR_INVALIDCOMMAND, "DPNERR_INVALIDCOMMAND")
  147. CHK_ERR(DPNERR_INVALIDENDPOINT, "DPNERR_INVALIDENDPOINT")
  148. CHK_ERR(DPNERR_INVALIDFLAGS, "DPNERR_INVALIDFLAGS")
  149. CHK_ERR(DPNERR_INVALIDGROUP, "DPNERR_INVALIDGROUP")
  150. CHK_ERR(DPNERR_INVALIDHANDLE, "DPNERR_INVALIDHANDLE")
  151. CHK_ERR(DPNERR_INVALIDINSTANCE, "DPNERR_INVALIDINSTANCE")
  152. CHK_ERR(DPNERR_INVALIDINTERFACE, "DPNERR_INVALIDINTERFACE")
  153. CHK_ERR(DPNERR_INVALIDDEVICEADDRESS, "DPNERR_INVALIDDEVICEADDRESS")
  154. CHK_ERR(DPNERR_INVALIDOBJECT, "DPNERR_INVALIDOBJECT")
  155. CHK_ERR(DPNERR_INVALIDPASSWORD, "DPNERR_INVALIDPASSWORD")
  156. CHK_ERR(DPNERR_INVALIDPLAYER, "DPNERR_INVALIDPLAYER")
  157. CHK_ERR(DPNERR_INVALIDPRIORITY, "DPNERR_INVALIDPRIORITY")
  158. CHK_ERR(DPNERR_INVALIDHOSTADDRESS, "DPNERR_INVALIDHOSTADDRESS")
  159. CHK_ERR(DPNERR_INVALIDSTRING, "DPNERR_INVALIDSTRING")
  160. CHK_ERR(DPNERR_INVALIDURL, "DPNERR_INVALIDURL")
  161. CHK_ERR(DPNERR_NOCAPS, "DPNERR_NOCAPS")
  162. CHK_ERR(DPNERR_NOCONNECTION, "DPNERR_NOCONNECTION")
  163. CHK_ERR(DPNERR_NOHOSTPLAYER, "DPNERR_NOHOSTPLAYER")
  164. CHK_ERR(DPNERR_NOMOREADDRESSCOMPONENTS, "DPNERR_NOMOREADDRESSCOMPONENTS")
  165. CHK_ERR(DPNERR_NORESPONSE, "DPNERR_NORESPONSE")
  166. CHK_ERR(DPNERR_NOTALLOWED, "DPNERR_NOTALLOWED")
  167. CHK_ERR(DPNERR_NOTHOST, "DPNERR_NOTHOST")
  168. CHK_ERR(DPNERR_NOTREADY, "DPNERR_NOTREADY")
  169. CHK_ERR(DPNERR_NOTREGISTERED, "DPNERR_NOTREGISTERED")
  170. CHK_ERR(DPNERR_PLAYERLOST, "DPNERR_PLAYERLOST")
  171. CHK_ERR(DPNERR_SENDTOOLARGE, "DPNERR_SENDTOOLARGE")
  172. CHK_ERR(DPNERR_SESSIONFULL, "DPNERR_SESSIONFULL")
  173. CHK_ERR(DPNERR_TABLEFULL, "DPNERR_TABLEFULL")
  174. CHK_ERR(DPNERR_TIMEDOUT, "DPNERR_TIMEDOUT")
  175. CHK_ERR(DPNERR_UNINITIALIZED, "DPNERR_UNINITIALIZED")
  176. CHK_ERR(DPNERR_USERCANCEL, "DPNERR_USERCANCEL")
  177. CHK_ERR(DXFILEERR_BADOBJECT, "DXFILEERR_BADOBJECT")
  178. CHK_ERR(DXFILEERR_BADVALUE, "DXFILEERR_BADVALUE")
  179. CHK_ERR(DXFILEERR_BADTYPE, "DXFILEERR_BADTYPE")
  180. CHK_ERR(DXFILEERR_BADSTREAMHANDLE, "DXFILEERR_BADSTREAMHANDLE")
  181. CHK_ERR(DXFILEERR_BADALLOC, "DXFILEERR_BADALLOC")
  182. CHK_ERR(DXFILEERR_NOTFOUND, "DXFILEERR_NOTFOUND")
  183. CHK_ERR(DXFILEERR_NOTDONEYET, "DXFILEERR_NOTDONEYET")
  184. CHK_ERR(DXFILEERR_FILENOTFOUND, "DXFILEERR_FILENOTFOUND")
  185. CHK_ERR(DXFILEERR_RESOURCENOTFOUND, "DXFILEERR_RESOURCENOTFOUND")
  186. CHK_ERR(DXFILEERR_URLNOTFOUND, "DXFILEERR_URLNOTFOUND")
  187. CHK_ERR(DXFILEERR_BADRESOURCE, "DXFILEERR_BADRESOURCE")
  188. CHK_ERR(DXFILEERR_BADFILETYPE, "DXFILEERR_BADFILETYPE")
  189. CHK_ERR(DXFILEERR_BADFILEVERSION, "DXFILEERR_BADFILEVERSION")
  190. CHK_ERR(DXFILEERR_BADFILEFLOATSIZE, "DXFILEERR_BADFILEFLOATSIZE")
  191. CHK_ERR(DXFILEERR_BADFILECOMPRESSIONTYPE, "DXFILEERR_BADFILECOMPRESSIONTYPE")
  192. CHK_ERR(DXFILEERR_BADFILE, "DXFILEERR_BADFILE")
  193. CHK_ERR(DXFILEERR_PARSEERROR, "DXFILEERR_PARSEERROR")
  194. CHK_ERR(DXFILEERR_NOTEMPLATE, "DXFILEERR_NOTEMPLATE")
  195. CHK_ERR(DXFILEERR_BADARRAYSIZE, "DXFILEERR_BADARRAYSIZE")
  196. CHK_ERR(DXFILEERR_BADDATAREFERENCE, "DXFILEERR_BADDATAREFERENCE")
  197. CHK_ERR(DXFILEERR_INTERNALERROR, "DXFILEERR_INTERNALERROR")
  198. CHK_ERR(DXFILEERR_NOMOREOBJECTS, "DXFILEERR_NOMOREOBJECTS")
  199. CHK_ERR(DXFILEERR_BADINTRINSICS, "DXFILEERR_BADINTRINSICS")
  200. CHK_ERR(DXFILEERR_NOMORESTREAMHANDLES, "DXFILEERR_NOMORESTREAMHANDLES")
  201. CHK_ERR(DXFILEERR_NOMOREDATA, "DXFILEERR_NOMOREDATA")
  202. CHK_ERR(DXFILEERR_BADCACHEFILE, "DXFILEERR_BADCACHEFILE")
  203. CHK_ERR(DXFILEERR_NOINTERNET, "DXFILEERR_NOINTERNET")
  204. CHK_ERR(D3DERR_OUTOFVIDEOMEMORY, "D3DERR_OUTOFVIDEOMEMORY")
  205. CHK_ERR(D3DERR_WRONGTEXTUREFORMAT, "D3DERR_WRONGTEXTUREFORMAT")
  206. CHK_ERR(D3DERR_UNSUPPORTEDCOLOROPERATION, "D3DERR_UNSUPPORTEDCOLOROPERATION")
  207. CHK_ERR(D3DERR_UNSUPPORTEDCOLORARG, "D3DERR_UNSUPPORTEDCOLORARG")
  208. CHK_ERR(D3DERR_UNSUPPORTEDALPHAOPERATION, "D3DERR_UNSUPPORTEDALPHAOPERATION")
  209. CHK_ERR(D3DERR_UNSUPPORTEDALPHAARG, "D3DERR_UNSUPPORTEDALPHAARG")
  210. CHK_ERR(D3DERR_TOOMANYOPERATIONS, "D3DERR_TOOMANYOPERATIONS")
  211. CHK_ERR(D3DERR_CONFLICTINGTEXTUREFILTER, "D3DERR_CONFLICTINGTEXTUREFILTER")
  212. CHK_ERR(D3DERR_UNSUPPORTEDFACTORVALUE, "D3DERR_UNSUPPORTEDFACTORVALUE")
  213. CHK_ERR(D3DERR_CONFLICTINGRENDERSTATE, "D3DERR_CONFLICTINGRENDERSTATE")
  214. CHK_ERR(D3DERR_UNSUPPORTEDTEXTUREFILTER, "D3DERR_UNSUPPORTEDTEXTUREFILTER")
  215. CHK_ERR(D3DERR_CONFLICTINGTEXTUREPALETTE, "D3DERR_CONFLICTINGTEXTUREPALETTE")
  216. CHK_ERR(D3DERR_DRIVERINTERNALERROR, "D3DERR_DRIVERINTERNALERROR")
  217. CHK_ERR(D3DERR_NOTFOUND, "D3DERR_NOTFOUND")
  218. CHK_ERR(D3DERR_MOREDATA, "D3DERR_MOREDATA")
  219. CHK_ERR(D3DERR_DEVICELOST, "D3DERR_DEVICELOST")
  220. CHK_ERR(D3DERR_DEVICENOTRESET, "D3DERR_DEVICENOTRESET")
  221. CHK_ERR(D3DERR_NOTAVAILABLE, "D3DERR_NOTAVAILABLE")
  222. CHK_ERR(D3DERR_INVALIDDEVICE, "D3DERR_INVALIDDEVICE")
  223. CHK_ERR(D3DERR_INVALIDCALL, "D3DERR_INVALIDCALL")
  224. CHK_ERR(DSERR_ALLOCATED, "DSERR_ALLOCATED")
  225. CHK_ERR(DSERR_CONTROLUNAVAIL, "DSERR_CONTROLUNAVAIL")
  226. CHK_ERR(DSERR_INVALIDCALL, "DSERR_INVALIDCALL")
  227. CHK_ERR(DSERR_PRIOLEVELNEEDED, "DSERR_PRIOLEVELNEEDED")
  228. CHK_ERR(DSERR_BADFORMAT, "DSERR_BADFORMAT")
  229. CHK_ERR(DSERR_NODRIVER, "DSERR_NODRIVER")
  230. CHK_ERR(DSERR_ALREADYINITIALIZED, "DSERR_ALREADYINITIALIZED")
  231. CHK_ERR(DSERR_BUFFERLOST, "DSERR_BUFFERLOST")
  232. CHK_ERR(DSERR_OTHERAPPHASPRIO, "DSERR_OTHERAPPHASPRIO")
  233. CHK_ERR(DSERR_UNINITIALIZED, "DSERR_UNINITIALIZED")
  234. CHK_ERR(DMUS_E_DRIVER_FAILED, "DMUS_E_DRIVER_FAILED")
  235. CHK_ERR(DMUS_E_PORTS_OPEN, "DMUS_E_PORTS_OPEN")
  236. CHK_ERR(DMUS_E_DEVICE_IN_USE, "DMUS_E_DEVICE_IN_USE")
  237. CHK_ERR(DMUS_E_INSUFFICIENTBUFFER, "DMUS_E_INSUFFICIENTBUFFER")
  238. CHK_ERR(DMUS_E_BUFFERNOTSET, "DMUS_E_BUFFERNOTSET")
  239. CHK_ERR(DMUS_E_BUFFERNOTAVAILABLE, "DMUS_E_BUFFERNOTAVAILABLE")
  240. CHK_ERR(DMUS_E_NOTADLSCOL, "DMUS_E_NOTADLSCOL")
  241. CHK_ERR(DMUS_E_INVALIDOFFSET, "DMUS_E_INVALIDOFFSET")
  242. CHK_ERR(DMUS_E_ALREADY_LOADED, "DMUS_E_ALREADY_LOADED")
  243. CHK_ERR(DMUS_E_INVALIDPOS, "DMUS_E_INVALIDPOS")
  244. CHK_ERR(DMUS_E_INVALIDPATCH, "DMUS_E_INVALIDPATCH")
  245. CHK_ERR(DMUS_E_CANNOTSEEK, "DMUS_E_CANNOTSEEK")
  246. CHK_ERR(DMUS_E_CANNOTWRITE, "DMUS_E_CANNOTWRITE")
  247. CHK_ERR(DMUS_E_CHUNKNOTFOUND, "DMUS_E_CHUNKNOTFOUND")
  248. CHK_ERR(DMUS_E_INVALID_DOWNLOADID, "DMUS_E_INVALID_DOWNLOADID")
  249. CHK_ERR(DMUS_E_NOT_DOWNLOADED_TO_PORT, "DMUS_E_NOT_DOWNLOADED_TO_PORT")
  250. CHK_ERR(DMUS_E_ALREADY_DOWNLOADED, "DMUS_E_ALREADY_DOWNLOADED")
  251. CHK_ERR(DMUS_E_UNKNOWN_PROPERTY, "DMUS_E_UNKNOWN_PROPERTY")
  252. CHK_ERR(DMUS_E_SET_UNSUPPORTED, "DMUS_E_SET_UNSUPPORTED")
  253. CHK_ERR(DMUS_E_GET_UNSUPPORTED, "DMUS_E_GET_UNSUPPORTED")
  254. CHK_ERR(DMUS_E_NOTMONO, "DMUS_E_NOTMONO")
  255. CHK_ERR(DMUS_E_BADARTICULATION, "DMUS_E_BADARTICULATION")
  256. CHK_ERR(DMUS_E_BADINSTRUMENT, "DMUS_E_BADINSTRUMENT")
  257. CHK_ERR(DMUS_E_BADWAVELINK, "DMUS_E_BADWAVELINK")
  258. CHK_ERR(DMUS_E_NOARTICULATION, "DMUS_E_NOARTICULATION")
  259. CHK_ERR(DMUS_E_NOTPCM, "DMUS_E_NOTPCM")
  260. CHK_ERR(DMUS_E_BADWAVE, "DMUS_E_BADWAVE")
  261. CHK_ERR(DMUS_E_BADOFFSETTABLE, "DMUS_E_BADOFFSETTABLE")
  262. CHK_ERR(DMUS_E_UNKNOWNDOWNLOAD, "DMUS_E_UNKNOWNDOWNLOAD")
  263. CHK_ERR(DMUS_E_NOSYNTHSINK, "DMUS_E_NOSYNTHSINK")
  264. CHK_ERR(DMUS_E_ALREADYOPEN, "DMUS_E_ALREADYOPEN")
  265. CHK_ERR(DMUS_E_ALREADYCLOSED, "DMUS_E_ALREADYCLOSED")
  266. CHK_ERR(DMUS_E_SYNTHNOTCONFIGURED, "DMUS_E_SYNTHNOTCONFIGURED")
  267. CHK_ERR(DMUS_E_SYNTHACTIVE, "DMUS_E_SYNTHACTIVE")
  268. CHK_ERR(DMUS_E_CANNOTREAD, "DMUS_E_CANNOTREAD")
  269. CHK_ERR(DMUS_E_DMUSIC_RELEASED, "DMUS_E_DMUSIC_RELEASED")
  270. CHK_ERR(DMUS_E_BUFFER_EMPTY, "DMUS_E_BUFFER_EMPTY")
  271. CHK_ERR(DMUS_E_BUFFER_FULL, "DMUS_E_BUFFER_FULL")
  272. CHK_ERR(DMUS_E_PORT_NOT_CAPTURE, "DMUS_E_PORT_NOT_CAPTURE")
  273. CHK_ERR(DMUS_E_PORT_NOT_RENDER, "DMUS_E_PORT_NOT_RENDER")
  274. CHK_ERR(DMUS_E_DSOUND_NOT_SET, "DMUS_E_DSOUND_NOT_SET")
  275. CHK_ERR(DMUS_E_ALREADY_ACTIVATED, "DMUS_E_ALREADY_ACTIVATED")
  276. CHK_ERR(DMUS_E_INVALIDBUFFER, "DMUS_E_INVALIDBUFFER")
  277. CHK_ERR(DMUS_E_WAVEFORMATNOTSUPPORTED, "DMUS_E_WAVEFORMATNOTSUPPORTED")
  278. CHK_ERR(DMUS_E_SYNTHINACTIVE, "DMUS_E_SYNTHINACTIVE")
  279. CHK_ERR(DMUS_E_DSOUND_ALREADY_SET, "DMUS_E_DSOUND_ALREADY_SET")
  280. CHK_ERR(DMUS_E_INVALID_EVENT, "DMUS_E_INVALID_EVENT")
  281. CHK_ERR(DMUS_E_UNSUPPORTED_STREAM, "DMUS_E_UNSUPPORTED_STREAM")
  282. CHK_ERR(DMUS_E_ALREADY_INITED, "DMUS_E_ALREADY_INITED")
  283. CHK_ERR(DMUS_E_INVALID_BAND, "DMUS_E_INVALID_BAND")
  284. CHK_ERR(DMUS_E_TRACK_HDR_NOT_FIRST_CK, "DMUS_E_TRACK_HDR_NOT_FIRST_CK")
  285. CHK_ERR(DMUS_E_TOOL_HDR_NOT_FIRST_CK, "DMUS_E_TOOL_HDR_NOT_FIRST_CK")
  286. CHK_ERR(DMUS_E_INVALID_TRACK_HDR, "DMUS_E_INVALID_TRACK_HDR")
  287. CHK_ERR(DMUS_E_INVALID_TOOL_HDR, "DMUS_E_INVALID_TOOL_HDR")
  288. CHK_ERR(DMUS_E_ALL_TOOLS_FAILED, "DMUS_E_ALL_TOOLS_FAILED")
  289. CHK_ERR(DMUS_E_ALL_TRACKS_FAILED, "DMUS_E_ALL_TRACKS_FAILED")
  290. CHK_ERR(DMUS_E_NOT_FOUND, "DMUS_E_NOT_FOUND")
  291. CHK_ERR(DMUS_E_NOT_INIT, "DMUS_E_NOT_INIT")
  292. CHK_ERR(DMUS_E_TYPE_DISABLED, "DMUS_E_TYPE_DISABLED")
  293. CHK_ERR(DMUS_E_TYPE_UNSUPPORTED, "DMUS_E_TYPE_UNSUPPORTED")
  294. CHK_ERR(DMUS_E_TIME_PAST, "DMUS_E_TIME_PAST")
  295. CHK_ERR(DMUS_E_TRACK_NOT_FOUND, "DMUS_E_TRACK_NOT_FOUND")
  296. CHK_ERR(DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT, "DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT")
  297. CHK_ERR(DMUS_E_NO_MASTER_CLOCK, "DMUS_E_NO_MASTER_CLOCK")
  298. CHK_ERR(DMUS_E_LOADER_NOCLASSID, "DMUS_E_LOADER_NOCLASSID")
  299. CHK_ERR(DMUS_E_LOADER_BADPATH, "DMUS_E_LOADER_BADPATH")
  300. CHK_ERR(DMUS_E_LOADER_FAILEDOPEN, "DMUS_E_LOADER_FAILEDOPEN")
  301. CHK_ERR(DMUS_E_LOADER_FORMATNOTSUPPORTED, "DMUS_E_LOADER_FORMATNOTSUPPORTED")
  302. CHK_ERR(DMUS_E_LOADER_FAILEDCREATE, "DMUS_E_LOADER_FAILEDCREATE")
  303. CHK_ERR(DMUS_E_LOADER_OBJECTNOTFOUND, "DMUS_E_LOADER_OBJECTNOTFOUND")
  304. CHK_ERR(DMUS_E_LOADER_NOFILENAME, "DMUS_E_LOADER_NOFILENAME")
  305. CHK_ERR(DMUS_E_INVALIDFILE, "DMUS_E_INVALIDFILE")
  306. CHK_ERR(DMUS_E_ALREADY_EXISTS, "DMUS_E_ALREADY_EXISTS")
  307. CHK_ERR(DMUS_E_OUT_OF_RANGE, "DMUS_E_OUT_OF_RANGE")
  308. CHK_ERR(DMUS_E_SEGMENT_INIT_FAILED, "DMUS_E_SEGMENT_INIT_FAILED")
  309. CHK_ERR(DMUS_E_ALREADY_SENT, "DMUS_E_ALREADY_SENT")
  310. CHK_ERR(DMUS_E_CANNOT_FREE, "DMUS_E_CANNOT_FREE")
  311. CHK_ERR(DMUS_E_CANNOT_OPEN_PORT, "DMUS_E_CANNOT_OPEN_PORT")
  312. CHK_ERR(DMUS_E_CANNOT_CONVERT, "DMUS_E_CANNOT_CONVERT")
  313. CHK_ERR(DMUS_E_DESCEND_CHUNK_FAIL, "DMUS_E_DESCEND_CHUNK_FAIL")
  314. CHK_ERR(DMUS_E_NOT_LOADED, "DMUS_E_NOT_LOADED")
  315. CHK_ERR(DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE, "DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE")
  316. CHK_ERR(DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE, "DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE")
  317. CHK_ERR(DMUS_E_SCRIPT_ERROR_IN_SCRIPT, "DMUS_E_SCRIPT_ERROR_IN_SCRIPT")
  318. CHK_ERR(DMUS_E_SCRIPT_CANTLOAD_OLEAUT32, "DMUS_E_SCRIPT_CANTLOAD_OLEAUT32")
  319. CHK_ERR(DMUS_E_SCRIPT_LOADSCRIPT_ERROR, "DMUS_E_SCRIPT_LOADSCRIPT_ERROR")
  320. CHK_ERR(DMUS_E_SCRIPT_INVALID_FILE, "DMUS_E_SCRIPT_INVALID_FILE")
  321. CHK_ERR(DMUS_E_INVALID_SCRIPTTRACK, "DMUS_E_INVALID_SCRIPTTRACK")
  322. CHK_ERR(DMUS_E_SCRIPT_VARIABLE_NOT_FOUND, "DMUS_E_SCRIPT_VARIABLE_NOT_FOUND")
  323. CHK_ERR(DMUS_E_SCRIPT_ROUTINE_NOT_FOUND, "DMUS_E_SCRIPT_ROUTINE_NOT_FOUND")
  324. CHK_ERR(DMUS_E_INVALID_SEGMENTTRIGGERTRACK, "DMUS_E_INVALID_SEGMENTTRIGGERTRACK")
  325. CHK_ERR(DMUS_E_INVALID_LYRICSTRACK, "DMUS_E_INVALID_LYRICSTRACK")
  326. CHK_ERR(DMUS_E_INVALID_PARAMCONTROLTRACK, "DMUS_E_INVALID_PARAMCONTROLTRACK")
  327. CHK_ERR(DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR, "DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR")
  328. CHK_ERR(DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR, "DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR")
  329. CHK_ERR(DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE, "DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE")
  330. CHK_ERR(DMUS_E_AUDIOPATHS_NOT_VALID, "DMUS_E_AUDIOPATHS_NOT_VALID")
  331. CHK_ERR(DMUS_E_AUDIOPATHS_IN_USE, "DMUS_E_AUDIOPATHS_IN_USE")
  332. CHK_ERR(DMUS_E_NO_AUDIOPATH_CONFIG, "DMUS_E_NO_AUDIOPATH_CONFIG")
  333. CHK_ERR(DMUS_E_AUDIOPATH_INACTIVE, "DMUS_E_AUDIOPATH_INACTIVE")
  334. CHK_ERR(DMUS_E_AUDIOPATH_NOBUFFER, "DMUS_E_AUDIOPATH_NOBUFFER")
  335. CHK_ERR(DMUS_E_AUDIOPATH_NOPORT, "DMUS_E_AUDIOPATH_NOPORT")
  336. CHK_ERR(DMUS_E_NO_AUDIOPATH, "DMUS_E_NO_AUDIOPATH")
  337. CHK_ERR(DMUS_E_INVALIDCHUNK, "DMUS_E_INVALIDCHUNK")
  338. CHK_ERR(DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER, "DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER")
  339. CHK_ERR(DMUS_E_INVALID_CONTAINER_OBJECT, "DMUS_E_INVALID_CONTAINER_OBJECT")
  340. /* NO APPMAN SUPPORT FOR NOW
  341. CHK_ERR(APPMAN_E_NOTINITIALIZED, "APPMAN_E_NOTINITIALIZED")
  342. CHK_ERR(APPMAN_E_INVALIDPROPERTYSIZE, "APPMAN_E_INVALIDPROPERTYSIZE")
  343. CHK_ERR(APPMAN_E_INVALIDDATA, "APPMAN_E_INVALIDDATA")
  344. CHK_ERR(APPMAN_E_INVALIDPROPERTY, "APPMAN_E_INVALIDPROPERTY")
  345. CHK_ERR(APPMAN_E_READONLYPROPERTY, "APPMAN_E_READONLYPROPERTY")
  346. CHK_ERR(APPMAN_E_PROPERTYNOTSET, "APPMAN_E_PROPERTYNOTSET")
  347. CHK_ERR(APPMAN_E_OVERFLOW, "APPMAN_E_OVERFLOW")
  348. CHK_ERR(APPMAN_E_INVALIDPROPERTYVALUE, "APPMAN_E_INVALIDPROPERTYVALUE")
  349. CHK_ERR(APPMAN_E_ACTIONINPROGRESS, "APPMAN_E_ACTIONINPROGRESS")
  350. CHK_ERR(APPMAN_E_ACTIONNOTINITIALIZED, "APPMAN_E_ACTIONNOTINITIALIZED")
  351. CHK_ERR(APPMAN_E_REQUIREDPROPERTIESMISSING, "APPMAN_E_REQUIREDPROPERTIESMISSING")
  352. CHK_ERR(APPMAN_E_APPLICATIONALREADYEXISTS, "APPMAN_E_APPLICATIONALREADYEXISTS")
  353. CHK_ERR(APPMAN_E_APPLICATIONALREADYLOCKED, "APPMAN_E_APPLICATIONALREADYLOCKED")
  354. CHK_ERR(APPMAN_E_NODISKSPACEAVAILABLE, "APPMAN_E_NODISKSPACEAVAILABLE")
  355. CHK_ERR(APPMAN_E_UNKNOWNAPPLICATION, "APPMAN_E_UNKNOWNAPPLICATION")
  356. CHK_ERR(APPMAN_E_INVALIDPARAMETERS, "APPMAN_E_INVALIDPARAMETERS")
  357. CHK_ERR(APPMAN_E_OBJECTLOCKED, "APPMAN_E_OBJECTLOCKED")
  358. CHK_ERR(APPMAN_E_INVALIDINDEX, "APPMAN_E_INVALIDINDEX")
  359. CHK_ERR(APPMAN_E_REGISTRYCORRUPT, "APPMAN_E_REGISTRYCORRUPT")
  360. CHK_ERR(APPMAN_E_CANNOTASSOCIATE, "APPMAN_E_CANNOTASSOCIATE")
  361. CHK_ERR(APPMAN_E_INVALIDASSOCIATION, "APPMAN_E_INVALIDASSOCIATION")
  362. CHK_ERR(APPMAN_E_ALREADYASSOCIATED, "APPMAN_E_ALREADYASSOCIATED")
  363. CHK_ERR(APPMAN_E_APPLICATIONREQUIRED, "APPMAN_E_APPLICATIONREQUIRED")
  364. CHK_ERR(APPMAN_E_INVALIDEXECUTECMDLINE, "APPMAN_E_INVALIDEXECUTECMDLINE")
  365. CHK_ERR(APPMAN_E_INVALIDDOWNSIZECMDLINE, "APPMAN_E_INVALIDDOWNSIZECMDLINE")
  366. CHK_ERR(APPMAN_E_INVALIDREINSTALLCMDLINE, "APPMAN_E_INVALIDREINSTALLCMDLINE")
  367. CHK_ERR(APPMAN_E_INVALIDUNINSTALLCMDLINE, "APPMAN_E_INVALIDUNINSTALLCMDLINE")
  368. CHK_ERR(APPMAN_E_INVALIDSELFTESTCMDLINE, "APPMAN_E_INVALIDSELFTESTCMDLINE")
  369. CHK_ERR(APPMAN_E_PARENTAPPNOTREADY, "APPMAN_E_PARENTAPPNOTREADY")
  370. CHK_ERR(APPMAN_E_INVALIDSTATE, "APPMAN_E_INVALIDSTATE")
  371. CHK_ERR(APPMAN_E_INVALIDROOTPATH, "APPMAN_E_INVALIDROOTPATH")
  372. CHK_ERR(APPMAN_E_CACHEOVERRUN, "APPMAN_E_CACHEOVERRUN")
  373. CHK_ERR(APPMAN_E_REINSTALLDX, "APPMAN_E_REINSTALLDX")
  374. */
  375. }
  376. return "Unknown";
  377. }
  378. /****************************************************/
  379. /* DXGetErrorString8W */
  380. /* */
  381. /****************************************************/
  382. const WCHAR * __stdcall DXGetErrorString8W(HRESULT hr)
  383. {
  384. switch(hr)
  385. {
  386. // Common Win32 error codes
  387. CHK_ERR(S_OK, L"S_OK")
  388. CHK_ERR(S_FALSE, L"S_FALSE")
  389. CHK_ERR(E_UNEXPECTED, L"E_UNEXPECTED")
  390. CHK_ERR(E_NOTIMPL, L"E_NOTIMPL")
  391. CHK_ERR(E_OUTOFMEMORY, L"E_OUTOFMEMORY")
  392. CHK_ERR(E_INVALIDARG, L"E_INVALIDARG")
  393. CHK_ERR(E_NOINTERFACE, L"E_NOINTERFACE")
  394. CHK_ERR(E_POINTER, L"E_POINTER")
  395. CHK_ERR(E_HANDLE, L"E_HANDLE")
  396. CHK_ERR(E_ABORT, L"E_ABORT")
  397. CHK_ERR(E_FAIL, L"E_FAIL")
  398. CHK_ERR(E_ACCESSDENIED, L"E_ACCESSDENIED")
  399. CHK_ERR(E_PENDING, L"E_PENDING")
  400. CHK_ERR(REGDB_E_CLASSNOTREG, L"REGDB_E_CLASSNOTREG")
  401. CHK_ERR(CO_E_NOTINITIALIZED, L"CO_E_NOTINITIALIZED")
  402. CHK_ERR(CO_E_ALREADYINITIALIZED, L"CO_E_ALREADYINITIALIZED")
  403. // CHK_ERR(DIERR_GENERIC, L"E_FAIL")
  404. CHK_ERR(DIERR_NOAGGREGATION, L"E_NOAGGREGATION")
  405. CHK_ERR(DIERR_INSUFFICIENTPRIVS, L"DIERR_INSUFFICIENTPRIVS")
  406. CHK_ERR(DIERR_DEVICEFULL, L"DIERR_DEVICEFULL")
  407. CHK_ERR(DIERR_MOREDATA, L"DIERR_MOREDATA")
  408. CHK_ERR(DIERR_NOTDOWNLOADED, L"DIERR_NOTDOWNLOADED")
  409. CHK_ERR(DIERR_HASEFFECTS, L"DIERR_HASEFFECTS")
  410. CHK_ERR(DIERR_NOTEXCLUSIVEACQUIRED, L"DIERR_NOTEXCLUSIVEACQUIRED")
  411. CHK_ERR(DIERR_INCOMPLETEEFFECT, L"DIERR_INCOMPLETEEFFECT")
  412. CHK_ERR(DIERR_NOTBUFFERED, L"DIERR_NOTBUFFERED")
  413. CHK_ERR(DIERR_EFFECTPLAYING, L"DIERR_EFFECTPLAYING")
  414. CHK_ERR(DIERR_UNPLUGGED, L"DIERR_UNPLUGGED")
  415. CHK_ERR(DIERR_REPORTFULL, L"DIERR_REPORTFULL")
  416. CHK_ERR(DIERR_DRIVERFIRST, L"DIERR_DRIVERFIRST")
  417. CHK_ERR(DIERR_DRIVERLAST, L"DIERR_DRIVERLAST")
  418. CHK_ERR(DIERR_INVALIDCLASSINSTALLER, L"DIERR_INVALIDCLASSINSTALLER")
  419. CHK_ERR(DIERR_CANCELLED, L"DIERR_CANCELLED")
  420. CHK_ERR(DIERR_BADINF, L"DIERR_BADINF")
  421. CHK_ERR(DIERR_NOTFOUND, L"DIERR_NOTFOUND or DIERR_NOTFOUND")
  422. // CHK_ERR(DIERR_READONLY, L"DIERR_READONLY or DIERR_OTHERAPPHASPRIO or DIERR_HANDLEEXISTS or DSERR_ACCESSDENIED")
  423. CHK_ERR(DIERR_NOTACQUIRED, L"DIERR_NOTACQUIRED")
  424. // CHK_ERR(DIERR_OUTOFMEMORY, L"E_OUTOFMEMORY")
  425. CHK_ERR(DIERR_NOTINITIALIZED, L"DIERR_NOTINITIALIZED")
  426. CHK_ERR(DIERR_INPUTLOST, L"DIERR_INPUTLOST")
  427. CHK_ERR(DIERR_BADDRIVERVER, L"DIERR_BADDRIVERVER")
  428. CHK_ERR(DIERR_ACQUIRED, L"DIERR_ACQUIRED")
  429. CHK_ERR(DIERR_NOMOREITEMS, L"DIERR_NOMOREITEMS")
  430. CHK_ERR(DIERR_OLDDIRECTINPUTVERSION, L"DIERR_OLDDIRECTINPUTVERSION")
  431. CHK_ERR(DIERR_BETADIRECTINPUTVERSION, L"DIERR_BETADIRECTINPUTVERSION")
  432. CHK_ERR(DIERR_ALREADYINITIALIZED, L"DIERR_ALREADYINITIALIZED")
  433. CHK_ERR(DVERR_BUFFERTOOSMALL, L"DVERR_BUFFERTOOSMALL")
  434. CHK_ERR(DVERR_EXCEPTION, L"DVERR_EXCEPTION")
  435. CHK_ERR(DVERR_INVALIDFLAGS, L"DVERR_INVALIDFLAGS")
  436. CHK_ERR(DVERR_INVALIDOBJECT, L"DVERR_INVALIDOBJECT")
  437. CHK_ERR(DVERR_INVALIDPLAYER, L"DVERR_INVALIDPLAYER")
  438. CHK_ERR(DVERR_INVALIDGROUP, L"DVERR_INVALIDGROUP")
  439. CHK_ERR(DVERR_INVALIDHANDLE, L"DVERR_INVALIDHANDLE")
  440. CHK_ERR(DVERR_SESSIONLOST, L"DVERR_SESSIONLOST")
  441. CHK_ERR(DVERR_NOVOICESESSION, L"DVERR_NOVOICESESSION")
  442. CHK_ERR(DVERR_CONNECTIONLOST, L"DVERR_CONNECTIONLOST")
  443. CHK_ERR(DVERR_NOTINITIALIZED, L"DVERR_NOTINITIALIZED")
  444. CHK_ERR(DVERR_CONNECTED, L"DVERR_CONNECTED")
  445. CHK_ERR(DVERR_NOTCONNECTED, L"DVERR_NOTCONNECTED")
  446. CHK_ERR(DVERR_CONNECTABORTING, L"DVERR_CONNECTABORTING")
  447. CHK_ERR(DVERR_NOTALLOWED, L"DVERR_NOTALLOWED")
  448. CHK_ERR(DVERR_INVALIDTARGET, L"DVERR_INVALIDTARGET")
  449. CHK_ERR(DVERR_TRANSPORTNOTHOST, L"DVERR_TRANSPORTNOTHOST")
  450. CHK_ERR(DVERR_COMPRESSIONNOTSUPPORTED, L"DVERR_COMPRESSIONNOTSUPPORTED")
  451. CHK_ERR(DVERR_ALREADYPENDING, L"DVERR_ALREADYPENDING")
  452. CHK_ERR(DVERR_SOUNDINITFAILURE, L"DVERR_SOUNDINITFAILURE")
  453. CHK_ERR(DVERR_TIMEOUT, L"DVERR_TIMEOUT")
  454. CHK_ERR(DVERR_CONNECTABORTED, L"DVERR_CONNECTABORTED")
  455. CHK_ERR(DVERR_NO3DSOUND, L"DVERR_NO3DSOUND")
  456. CHK_ERR(DVERR_ALREADYBUFFERED, L"DVERR_ALREADYBUFFERED")
  457. CHK_ERR(DVERR_NOTBUFFERED, L"DVERR_NOTBUFFERED")
  458. CHK_ERR(DVERR_HOSTING, L"DVERR_HOSTING")
  459. CHK_ERR(DVERR_NOTHOSTING, L"DVERR_NOTHOSTING")
  460. CHK_ERR(DVERR_INVALIDDEVICE, L"DVERR_INVALIDDEVICE")
  461. CHK_ERR(DVERR_RECORDSYSTEMERROR, L"DVERR_RECORDSYSTEMERROR")
  462. CHK_ERR(DVERR_PLAYBACKSYSTEMERROR, L"DVERR_PLAYBACKSYSTEMERROR")
  463. CHK_ERR(DVERR_SENDERROR, L"DVERR_SENDERROR")
  464. CHK_ERR(DVERR_USERCANCEL, L"DVERR_USERCANCEL")
  465. CHK_ERR(DVERR_RUNSETUP, L"DVERR_RUNSETUP")
  466. CHK_ERR(DVERR_INCOMPATIBLEVERSION, L"DVERR_INCOMPATIBLEVERSION")
  467. CHK_ERR(DVERR_INITIALIZED, L"DVERR_INITIALIZED")
  468. CHK_ERR(DVERR_NOTRANSPORT, L"DVERR_NOTRANSPORT")
  469. CHK_ERR(DVERR_NOCALLBACK, L"DVERR_NOCALLBACK")
  470. CHK_ERR(DVERR_TRANSPORTNOTINIT, L"DVERR_TRANSPORTNOTINIT")
  471. CHK_ERR(DVERR_TRANSPORTNOSESSION, L"DVERR_TRANSPORTNOSESSION")
  472. CHK_ERR(DVERR_TRANSPORTNOPLAYER, L"DVERR_TRANSPORTNOPLAYER")
  473. CHK_ERR(DVERR_USERBACK, L"DVERR_USERBACK")
  474. CHK_ERR(DVERR_NORECVOLAVAILABLE, L"DVERR_NORECVOLAVAILABLE")
  475. CHK_ERR(DPNERR_ABORTED, L"DPNERR_ABORTED")
  476. CHK_ERR(DPNERR_ADDRESSING, L"DPNERR_ADDRESSING")
  477. CHK_ERR(DPNERR_ALREADYCONNECTED, L"DPNERR_ALREADYCONNECTED")
  478. CHK_ERR(DPNERR_ALREADYDISCONNECTING, L"DPNERR_ALREADYDISCONNECTING")
  479. CHK_ERR(DPNERR_ALREADYINITIALIZED, L"DPNERR_ALREADYINITIALIZED")
  480. CHK_ERR(DPNERR_ALREADYREGISTERED, L"DPNERR_ALREADYREGISTERED")
  481. CHK_ERR(DPNERR_BUFFERTOOSMALL, L"DPNERR_BUFFERTOOSMALL")
  482. CHK_ERR(DPNERR_CANNOTCANCEL, L"DPNERR_CANNOTCANCEL")
  483. CHK_ERR(DPNERR_CANTCREATEGROUP, L"DPNERR_CANTCREATEGROUP")
  484. CHK_ERR(DPNERR_CANTCREATEPLAYER, L"DPNERR_CANTCREATEPLAYER")
  485. CHK_ERR(DPNERR_CANTLAUNCHAPPLICATION, L"DPNERR_CANTLAUNCHAPPLICATION")
  486. CHK_ERR(DPNERR_CONNECTING, L"DPNERR_CONNECTING")
  487. CHK_ERR(DPNERR_CONNECTIONLOST, L"DPNERR_CONNECTIONLOST")
  488. CHK_ERR(DPNERR_CONVERSION, L"DPNERR_CONVERSION")
  489. CHK_ERR(DPNERR_DOESNOTEXIST, L"DPNERR_DOESNOTEXIST")
  490. CHK_ERR(DPNERR_DUPLICATECOMMAND, L"DPNERR_DUPLICATECOMMAND")
  491. CHK_ERR(DPNERR_ENDPOINTNOTRECEIVING, L"DPNERR_ENDPOINTNOTRECEIVING")
  492. CHK_ERR(DPNERR_EXCEPTION, L"DPNERR_EXCEPTION")
  493. CHK_ERR(DPNERR_GROUPNOTEMPTY, L"DPNERR_GROUPNOTEMPTY")
  494. CHK_ERR(DPNERR_HOSTING, L"DPNERR_HOSTING")
  495. CHK_ERR(DPNERR_HOSTREJECTEDCONNECTION, L"DPNERR_HOSTREJECTEDCONNECTION")
  496. CHK_ERR(DPNERR_INCOMPLETEADDRESS, L"DPNERR_INCOMPLETEADDRESS")
  497. CHK_ERR(DPNERR_INVALIDADDRESSFORMAT, L"DPNERR_INVALIDADDRESSFORMAT")
  498. CHK_ERR(DPNERR_INVALIDAPPLICATION, L"DPNERR_INVALIDAPPLICATION")
  499. CHK_ERR(DPNERR_INVALIDCOMMAND, L"DPNERR_INVALIDCOMMAND")
  500. CHK_ERR(DPNERR_INVALIDENDPOINT, L"DPNERR_INVALIDENDPOINT")
  501. CHK_ERR(DPNERR_INVALIDFLAGS, L"DPNERR_INVALIDFLAGS")
  502. CHK_ERR(DPNERR_INVALIDGROUP, L"DPNERR_INVALIDGROUP")
  503. CHK_ERR(DPNERR_INVALIDHANDLE, L"DPNERR_INVALIDHANDLE")
  504. CHK_ERR(DPNERR_INVALIDINSTANCE, L"DPNERR_INVALIDINSTANCE")
  505. CHK_ERR(DPNERR_INVALIDINTERFACE, L"DPNERR_INVALIDINTERFACE")
  506. CHK_ERR(DPNERR_INVALIDDEVICEADDRESS, L"DPNERR_INVALIDDEVICEADDRESS")
  507. CHK_ERR(DPNERR_INVALIDOBJECT, L"DPNERR_INVALIDOBJECT")
  508. CHK_ERR(DPNERR_INVALIDPASSWORD, L"DPNERR_INVALIDPASSWORD")
  509. CHK_ERR(DPNERR_INVALIDPLAYER, L"DPNERR_INVALIDPLAYER")
  510. CHK_ERR(DPNERR_INVALIDPRIORITY, L"DPNERR_INVALIDPRIORITY")
  511. CHK_ERR(DPNERR_INVALIDHOSTADDRESS, L"DPNERR_INVALIDHOSTADDRESS")
  512. CHK_ERR(DPNERR_INVALIDSTRING, L"DPNERR_INVALIDSTRING")
  513. CHK_ERR(DPNERR_INVALIDURL, L"DPNERR_INVALIDURL")
  514. CHK_ERR(DPNERR_NOCAPS, L"DPNERR_NOCAPS")
  515. CHK_ERR(DPNERR_NOCONNECTION, L"DPNERR_NOCONNECTION")
  516. CHK_ERR(DPNERR_NOHOSTPLAYER, L"DPNERR_NOHOSTPLAYER")
  517. CHK_ERR(DPNERR_NOMOREADDRESSCOMPONENTS, L"DPNERR_NOMOREADDRESSCOMPONENTS")
  518. CHK_ERR(DPNERR_NORESPONSE, L"DPNERR_NORESPONSE")
  519. CHK_ERR(DPNERR_NOTALLOWED, L"DPNERR_NOTALLOWED")
  520. CHK_ERR(DPNERR_NOTHOST, L"DPNERR_NOTHOST")
  521. CHK_ERR(DPNERR_NOTREADY, L"DPNERR_NOTREADY")
  522. CHK_ERR(DPNERR_NOTREGISTERED, L"DPNERR_NOTREGISTERED")
  523. CHK_ERR(DPNERR_PLAYERLOST, L"DPNERR_PLAYERLOST")
  524. CHK_ERR(DPNERR_SENDTOOLARGE, L"DPNERR_SENDTOOLARGE")
  525. CHK_ERR(DPNERR_SESSIONFULL, L"DPNERR_SESSIONFULL")
  526. CHK_ERR(DPNERR_TABLEFULL, L"DPNERR_TABLEFULL")
  527. CHK_ERR(DPNERR_TIMEDOUT, L"DPNERR_TIMEDOUT")
  528. CHK_ERR(DPNERR_UNINITIALIZED, L"DPNERR_UNINITIALIZED")
  529. CHK_ERR(DPNERR_USERCANCEL, L"DPNERR_USERCANCEL")
  530. CHK_ERR(DXFILEERR_BADOBJECT, L"DXFILEERR_BADOBJECT")
  531. CHK_ERR(DXFILEERR_BADVALUE, L"DXFILEERR_BADVALUE")
  532. CHK_ERR(DXFILEERR_BADTYPE, L"DXFILEERR_BADTYPE")
  533. CHK_ERR(DXFILEERR_BADSTREAMHANDLE, L"DXFILEERR_BADSTREAMHANDLE")
  534. CHK_ERR(DXFILEERR_BADALLOC, L"DXFILEERR_BADALLOC")
  535. CHK_ERR(DXFILEERR_NOTFOUND, L"DXFILEERR_NOTFOUND")
  536. CHK_ERR(DXFILEERR_NOTDONEYET, L"DXFILEERR_NOTDONEYET")
  537. CHK_ERR(DXFILEERR_FILENOTFOUND, L"DXFILEERR_FILENOTFOUND")
  538. CHK_ERR(DXFILEERR_RESOURCENOTFOUND, L"DXFILEERR_RESOURCENOTFOUND")
  539. CHK_ERR(DXFILEERR_URLNOTFOUND, L"DXFILEERR_URLNOTFOUND")
  540. CHK_ERR(DXFILEERR_BADRESOURCE, L"DXFILEERR_BADRESOURCE")
  541. CHK_ERR(DXFILEERR_BADFILETYPE, L"DXFILEERR_BADFILETYPE")
  542. CHK_ERR(DXFILEERR_BADFILEVERSION, L"DXFILEERR_BADFILEVERSION")
  543. CHK_ERR(DXFILEERR_BADFILEFLOATSIZE, L"DXFILEERR_BADFILEFLOATSIZE")
  544. CHK_ERR(DXFILEERR_BADFILECOMPRESSIONTYPE, L"DXFILEERR_BADFILECOMPRESSIONTYPE")
  545. CHK_ERR(DXFILEERR_BADFILE, L"DXFILEERR_BADFILE")
  546. CHK_ERR(DXFILEERR_PARSEERROR, L"DXFILEERR_PARSEERROR")
  547. CHK_ERR(DXFILEERR_NOTEMPLATE, L"DXFILEERR_NOTEMPLATE")
  548. CHK_ERR(DXFILEERR_BADARRAYSIZE, L"DXFILEERR_BADARRAYSIZE")
  549. CHK_ERR(DXFILEERR_BADDATAREFERENCE, L"DXFILEERR_BADDATAREFERENCE")
  550. CHK_ERR(DXFILEERR_INTERNALERROR, L"DXFILEERR_INTERNALERROR")
  551. CHK_ERR(DXFILEERR_NOMOREOBJECTS, L"DXFILEERR_NOMOREOBJECTS")
  552. CHK_ERR(DXFILEERR_BADINTRINSICS, L"DXFILEERR_BADINTRINSICS")
  553. CHK_ERR(DXFILEERR_NOMORESTREAMHANDLES, L"DXFILEERR_NOMORESTREAMHANDLES")
  554. CHK_ERR(DXFILEERR_NOMOREDATA, L"DXFILEERR_NOMOREDATA")
  555. CHK_ERR(DXFILEERR_BADCACHEFILE, L"DXFILEERR_BADCACHEFILE")
  556. CHK_ERR(DXFILEERR_NOINTERNET, L"DXFILEERR_NOINTERNET")
  557. CHK_ERR(D3DERR_OUTOFVIDEOMEMORY, L"D3DERR_OUTOFVIDEOMEMORY")
  558. CHK_ERR(D3DERR_WRONGTEXTUREFORMAT, L"D3DERR_WRONGTEXTUREFORMAT")
  559. CHK_ERR(D3DERR_UNSUPPORTEDCOLOROPERATION, L"D3DERR_UNSUPPORTEDCOLOROPERATION")
  560. CHK_ERR(D3DERR_UNSUPPORTEDCOLORARG, L"D3DERR_UNSUPPORTEDCOLORARG")
  561. CHK_ERR(D3DERR_UNSUPPORTEDALPHAOPERATION, L"D3DERR_UNSUPPORTEDALPHAOPERATION")
  562. CHK_ERR(D3DERR_UNSUPPORTEDALPHAARG, L"D3DERR_UNSUPPORTEDALPHAARG")
  563. CHK_ERR(D3DERR_TOOMANYOPERATIONS, L"D3DERR_TOOMANYOPERATIONS")
  564. CHK_ERR(D3DERR_CONFLICTINGTEXTUREFILTER, L"D3DERR_CONFLICTINGTEXTUREFILTER")
  565. CHK_ERR(D3DERR_UNSUPPORTEDFACTORVALUE, L"D3DERR_UNSUPPORTEDFACTORVALUE")
  566. CHK_ERR(D3DERR_CONFLICTINGRENDERSTATE, L"D3DERR_CONFLICTINGRENDERSTATE")
  567. CHK_ERR(D3DERR_UNSUPPORTEDTEXTUREFILTER, L"D3DERR_UNSUPPORTEDTEXTUREFILTER")
  568. CHK_ERR(D3DERR_CONFLICTINGTEXTUREPALETTE, L"D3DERR_CONFLICTINGTEXTUREPALETTE")
  569. CHK_ERR(D3DERR_DRIVERINTERNALERROR, L"D3DERR_DRIVERINTERNALERROR")
  570. CHK_ERR(D3DERR_NOTFOUND, L"D3DERR_NOTFOUND")
  571. CHK_ERR(D3DERR_MOREDATA, L"D3DERR_MOREDATA")
  572. CHK_ERR(D3DERR_DEVICELOST, L"D3DERR_DEVICELOST")
  573. CHK_ERR(D3DERR_DEVICENOTRESET, L"D3DERR_DEVICENOTRESET")
  574. CHK_ERR(D3DERR_NOTAVAILABLE, L"D3DERR_NOTAVAILABLE")
  575. CHK_ERR(D3DERR_INVALIDDEVICE, L"D3DERR_INVALIDDEVICE")
  576. CHK_ERR(D3DERR_INVALIDCALL, L"D3DERR_INVALIDCALL")
  577. CHK_ERR(DSERR_ALLOCATED, L"DSERR_ALLOCATED")
  578. CHK_ERR(DSERR_CONTROLUNAVAIL, L"DSERR_CONTROLUNAVAIL")
  579. CHK_ERR(DSERR_INVALIDCALL, L"DSERR_INVALIDCALL")
  580. CHK_ERR(DSERR_PRIOLEVELNEEDED, L"DSERR_PRIOLEVELNEEDED")
  581. CHK_ERR(DSERR_BADFORMAT, L"DSERR_BADFORMAT")
  582. CHK_ERR(DSERR_NODRIVER, L"DSERR_NODRIVER")
  583. CHK_ERR(DSERR_ALREADYINITIALIZED, L"DSERR_ALREADYINITIALIZED")
  584. CHK_ERR(DSERR_BUFFERLOST, L"DSERR_BUFFERLOST")
  585. CHK_ERR(DSERR_OTHERAPPHASPRIO, L"DSERR_OTHERAPPHASPRIO")
  586. CHK_ERR(DSERR_UNINITIALIZED, L"DSERR_UNINITIALIZED")
  587. CHK_ERR(DMUS_E_DRIVER_FAILED, L"DMUS_E_DRIVER_FAILED")
  588. CHK_ERR(DMUS_E_PORTS_OPEN, L"DMUS_E_PORTS_OPEN")
  589. CHK_ERR(DMUS_E_DEVICE_IN_USE, L"DMUS_E_DEVICE_IN_USE")
  590. CHK_ERR(DMUS_E_INSUFFICIENTBUFFER, L"DMUS_E_INSUFFICIENTBUFFER")
  591. CHK_ERR(DMUS_E_BUFFERNOTSET, L"DMUS_E_BUFFERNOTSET")
  592. CHK_ERR(DMUS_E_BUFFERNOTAVAILABLE, L"DMUS_E_BUFFERNOTAVAILABLE")
  593. CHK_ERR(DMUS_E_NOTADLSCOL, L"DMUS_E_NOTADLSCOL")
  594. CHK_ERR(DMUS_E_INVALIDOFFSET, L"DMUS_E_INVALIDOFFSET")
  595. CHK_ERR(DMUS_E_ALREADY_LOADED, L"DMUS_E_ALREADY_LOADED")
  596. CHK_ERR(DMUS_E_INVALIDPOS, L"DMUS_E_INVALIDPOS")
  597. CHK_ERR(DMUS_E_INVALIDPATCH, L"DMUS_E_INVALIDPATCH")
  598. CHK_ERR(DMUS_E_CANNOTSEEK, L"DMUS_E_CANNOTSEEK")
  599. CHK_ERR(DMUS_E_CANNOTWRITE, L"DMUS_E_CANNOTWRITE")
  600. CHK_ERR(DMUS_E_CHUNKNOTFOUND, L"DMUS_E_CHUNKNOTFOUND")
  601. CHK_ERR(DMUS_E_INVALID_DOWNLOADID, L"DMUS_E_INVALID_DOWNLOADID")
  602. CHK_ERR(DMUS_E_NOT_DOWNLOADED_TO_PORT, L"DMUS_E_NOT_DOWNLOADED_TO_PORT")
  603. CHK_ERR(DMUS_E_ALREADY_DOWNLOADED, L"DMUS_E_ALREADY_DOWNLOADED")
  604. CHK_ERR(DMUS_E_UNKNOWN_PROPERTY, L"DMUS_E_UNKNOWN_PROPERTY")
  605. CHK_ERR(DMUS_E_SET_UNSUPPORTED, L"DMUS_E_SET_UNSUPPORTED")
  606. CHK_ERR(DMUS_E_GET_UNSUPPORTED, L"DMUS_E_GET_UNSUPPORTED")
  607. CHK_ERR(DMUS_E_NOTMONO, L"DMUS_E_NOTMONO")
  608. CHK_ERR(DMUS_E_BADARTICULATION, L"DMUS_E_BADARTICULATION")
  609. CHK_ERR(DMUS_E_BADINSTRUMENT, L"DMUS_E_BADINSTRUMENT")
  610. CHK_ERR(DMUS_E_BADWAVELINK, L"DMUS_E_BADWAVELINK")
  611. CHK_ERR(DMUS_E_NOARTICULATION, L"DMUS_E_NOARTICULATION")
  612. CHK_ERR(DMUS_E_NOTPCM, L"DMUS_E_NOTPCM")
  613. CHK_ERR(DMUS_E_BADWAVE, L"DMUS_E_BADWAVE")
  614. CHK_ERR(DMUS_E_BADOFFSETTABLE, L"DMUS_E_BADOFFSETTABLE")
  615. CHK_ERR(DMUS_E_UNKNOWNDOWNLOAD, L"DMUS_E_UNKNOWNDOWNLOAD")
  616. CHK_ERR(DMUS_E_NOSYNTHSINK, L"DMUS_E_NOSYNTHSINK")
  617. CHK_ERR(DMUS_E_ALREADYOPEN, L"DMUS_E_ALREADYOPEN")
  618. CHK_ERR(DMUS_E_ALREADYCLOSED, L"DMUS_E_ALREADYCLOSED")
  619. CHK_ERR(DMUS_E_SYNTHNOTCONFIGURED, L"DMUS_E_SYNTHNOTCONFIGURED")
  620. CHK_ERR(DMUS_E_SYNTHACTIVE, L"DMUS_E_SYNTHACTIVE")
  621. CHK_ERR(DMUS_E_CANNOTREAD, L"DMUS_E_CANNOTREAD")
  622. CHK_ERR(DMUS_E_DMUSIC_RELEASED, L"DMUS_E_DMUSIC_RELEASED")
  623. CHK_ERR(DMUS_E_BUFFER_EMPTY, L"DMUS_E_BUFFER_EMPTY")
  624. CHK_ERR(DMUS_E_BUFFER_FULL, L"DMUS_E_BUFFER_FULL")
  625. CHK_ERR(DMUS_E_PORT_NOT_CAPTURE, L"DMUS_E_PORT_NOT_CAPTURE")
  626. CHK_ERR(DMUS_E_PORT_NOT_RENDER, L"DMUS_E_PORT_NOT_RENDER")
  627. CHK_ERR(DMUS_E_DSOUND_NOT_SET, L"DMUS_E_DSOUND_NOT_SET")
  628. CHK_ERR(DMUS_E_ALREADY_ACTIVATED, L"DMUS_E_ALREADY_ACTIVATED")
  629. CHK_ERR(DMUS_E_INVALIDBUFFER, L"DMUS_E_INVALIDBUFFER")
  630. CHK_ERR(DMUS_E_WAVEFORMATNOTSUPPORTED, L"DMUS_E_WAVEFORMATNOTSUPPORTED")
  631. CHK_ERR(DMUS_E_SYNTHINACTIVE, L"DMUS_E_SYNTHINACTIVE")
  632. CHK_ERR(DMUS_E_DSOUND_ALREADY_SET, L"DMUS_E_DSOUND_ALREADY_SET")
  633. CHK_ERR(DMUS_E_INVALID_EVENT, L"DMUS_E_INVALID_EVENT")
  634. CHK_ERR(DMUS_E_UNSUPPORTED_STREAM, L"DMUS_E_UNSUPPORTED_STREAM")
  635. CHK_ERR(DMUS_E_ALREADY_INITED, L"DMUS_E_ALREADY_INITED")
  636. CHK_ERR(DMUS_E_INVALID_BAND, L"DMUS_E_INVALID_BAND")
  637. CHK_ERR(DMUS_E_TRACK_HDR_NOT_FIRST_CK, L"DMUS_E_TRACK_HDR_NOT_FIRST_CK")
  638. CHK_ERR(DMUS_E_TOOL_HDR_NOT_FIRST_CK, L"DMUS_E_TOOL_HDR_NOT_FIRST_CK")
  639. CHK_ERR(DMUS_E_INVALID_TRACK_HDR, L"DMUS_E_INVALID_TRACK_HDR")
  640. CHK_ERR(DMUS_E_INVALID_TOOL_HDR, L"DMUS_E_INVALID_TOOL_HDR")
  641. CHK_ERR(DMUS_E_ALL_TOOLS_FAILED, L"DMUS_E_ALL_TOOLS_FAILED")
  642. CHK_ERR(DMUS_E_ALL_TRACKS_FAILED, L"DMUS_E_ALL_TRACKS_FAILED")
  643. CHK_ERR(DMUS_E_NOT_FOUND, L"DMUS_E_NOT_FOUND")
  644. CHK_ERR(DMUS_E_NOT_INIT, L"DMUS_E_NOT_INIT")
  645. CHK_ERR(DMUS_E_TYPE_DISABLED, L"DMUS_E_TYPE_DISABLED")
  646. CHK_ERR(DMUS_E_TYPE_UNSUPPORTED, L"DMUS_E_TYPE_UNSUPPORTED")
  647. CHK_ERR(DMUS_E_TIME_PAST, L"DMUS_E_TIME_PAST")
  648. CHK_ERR(DMUS_E_TRACK_NOT_FOUND, L"DMUS_E_TRACK_NOT_FOUND")
  649. CHK_ERR(DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT, L"DMUS_E_TRACK_NO_CLOCKTIME_SUPPORT")
  650. CHK_ERR(DMUS_E_NO_MASTER_CLOCK, L"DMUS_E_NO_MASTER_CLOCK")
  651. CHK_ERR(DMUS_E_LOADER_NOCLASSID, L"DMUS_E_LOADER_NOCLASSID")
  652. CHK_ERR(DMUS_E_LOADER_BADPATH, L"DMUS_E_LOADER_BADPATH")
  653. CHK_ERR(DMUS_E_LOADER_FAILEDOPEN, L"DMUS_E_LOADER_FAILEDOPEN")
  654. CHK_ERR(DMUS_E_LOADER_FORMATNOTSUPPORTED, L"DMUS_E_LOADER_FORMATNOTSUPPORTED")
  655. CHK_ERR(DMUS_E_LOADER_FAILEDCREATE, L"DMUS_E_LOADER_FAILEDCREATE")
  656. CHK_ERR(DMUS_E_LOADER_OBJECTNOTFOUND, L"DMUS_E_LOADER_OBJECTNOTFOUND")
  657. CHK_ERR(DMUS_E_LOADER_NOFILENAME, L"DMUS_E_LOADER_NOFILENAME")
  658. CHK_ERR(DMUS_E_INVALIDFILE, L"DMUS_E_INVALIDFILE")
  659. CHK_ERR(DMUS_E_ALREADY_EXISTS, L"DMUS_E_ALREADY_EXISTS")
  660. CHK_ERR(DMUS_E_OUT_OF_RANGE, L"DMUS_E_OUT_OF_RANGE")
  661. CHK_ERR(DMUS_E_SEGMENT_INIT_FAILED, L"DMUS_E_SEGMENT_INIT_FAILED")
  662. CHK_ERR(DMUS_E_ALREADY_SENT, L"DMUS_E_ALREADY_SENT")
  663. CHK_ERR(DMUS_E_CANNOT_FREE, L"DMUS_E_CANNOT_FREE")
  664. CHK_ERR(DMUS_E_CANNOT_OPEN_PORT, L"DMUS_E_CANNOT_OPEN_PORT")
  665. CHK_ERR(DMUS_E_CANNOT_CONVERT, L"DMUS_E_CANNOT_CONVERT")
  666. CHK_ERR(DMUS_E_DESCEND_CHUNK_FAIL, L"DMUS_E_DESCEND_CHUNK_FAIL")
  667. CHK_ERR(DMUS_E_NOT_LOADED, L"DMUS_E_NOT_LOADED")
  668. CHK_ERR(DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE, L"DMUS_E_SCRIPT_LANGUAGE_INCOMPATIBLE")
  669. CHK_ERR(DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE, L"DMUS_E_SCRIPT_UNSUPPORTED_VARTYPE")
  670. CHK_ERR(DMUS_E_SCRIPT_ERROR_IN_SCRIPT, L"DMUS_E_SCRIPT_ERROR_IN_SCRIPT")
  671. CHK_ERR(DMUS_E_SCRIPT_CANTLOAD_OLEAUT32, L"DMUS_E_SCRIPT_CANTLOAD_OLEAUT32")
  672. CHK_ERR(DMUS_E_SCRIPT_LOADSCRIPT_ERROR, L"DMUS_E_SCRIPT_LOADSCRIPT_ERROR")
  673. CHK_ERR(DMUS_E_SCRIPT_INVALID_FILE, L"DMUS_E_SCRIPT_INVALID_FILE")
  674. CHK_ERR(DMUS_E_INVALID_SCRIPTTRACK, L"DMUS_E_INVALID_SCRIPTTRACK")
  675. CHK_ERR(DMUS_E_SCRIPT_VARIABLE_NOT_FOUND, L"DMUS_E_SCRIPT_VARIABLE_NOT_FOUND")
  676. CHK_ERR(DMUS_E_SCRIPT_ROUTINE_NOT_FOUND, L"DMUS_E_SCRIPT_ROUTINE_NOT_FOUND")
  677. CHK_ERR(DMUS_E_INVALID_SEGMENTTRIGGERTRACK, L"DMUS_E_INVALID_SEGMENTTRIGGERTRACK")
  678. CHK_ERR(DMUS_E_INVALID_LYRICSTRACK, L"DMUS_E_INVALID_LYRICSTRACK")
  679. CHK_ERR(DMUS_E_INVALID_PARAMCONTROLTRACK, L"DMUS_E_INVALID_PARAMCONTROLTRACK")
  680. CHK_ERR(DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR, L"DMUS_E_AUDIOVBSCRIPT_SYNTAXERROR")
  681. CHK_ERR(DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR, L"DMUS_E_AUDIOVBSCRIPT_RUNTIMEERROR")
  682. CHK_ERR(DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE, L"DMUS_E_AUDIOVBSCRIPT_OPERATIONFAILURE")
  683. CHK_ERR(DMUS_E_AUDIOPATHS_NOT_VALID, L"DMUS_E_AUDIOPATHS_NOT_VALID")
  684. CHK_ERR(DMUS_E_AUDIOPATHS_IN_USE, L"DMUS_E_AUDIOPATHS_IN_USE")
  685. CHK_ERR(DMUS_E_NO_AUDIOPATH_CONFIG, L"DMUS_E_NO_AUDIOPATH_CONFIG")
  686. CHK_ERR(DMUS_E_AUDIOPATH_INACTIVE, L"DMUS_E_AUDIOPATH_INACTIVE")
  687. CHK_ERR(DMUS_E_AUDIOPATH_NOBUFFER, L"DMUS_E_AUDIOPATH_NOBUFFER")
  688. CHK_ERR(DMUS_E_AUDIOPATH_NOPORT, L"DMUS_E_AUDIOPATH_NOPORT")
  689. CHK_ERR(DMUS_E_NO_AUDIOPATH, L"DMUS_E_NO_AUDIOPATH")
  690. CHK_ERR(DMUS_E_INVALIDCHUNK, L"DMUS_E_INVALIDCHUNK")
  691. CHK_ERR(DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER, L"DMUS_E_AUDIOPATH_NOGLOBALFXBUFFER")
  692. CHK_ERR(DMUS_E_INVALID_CONTAINER_OBJECT, L"DMUS_E_INVALID_CONTAINER_OBJECT")
  693. /* APP MAN NOT SUPPORTED
  694. CHK_ERR(APPMAN_E_NOTINITIALIZED, L"APPMAN_E_NOTINITIALIZED")
  695. CHK_ERR(APPMAN_E_INVALIDPROPERTYSIZE, L"APPMAN_E_INVALIDPROPERTYSIZE")
  696. CHK_ERR(APPMAN_E_INVALIDDATA, L"APPMAN_E_INVALIDDATA")
  697. CHK_ERR(APPMAN_E_INVALIDPROPERTY, L"APPMAN_E_INVALIDPROPERTY")
  698. CHK_ERR(APPMAN_E_READONLYPROPERTY, L"APPMAN_E_READONLYPROPERTY")
  699. CHK_ERR(APPMAN_E_PROPERTYNOTSET, L"APPMAN_E_PROPERTYNOTSET")
  700. CHK_ERR(APPMAN_E_OVERFLOW, L"APPMAN_E_OVERFLOW")
  701. CHK_ERR(APPMAN_E_INVALIDPROPERTYVALUE, L"APPMAN_E_INVALIDPROPERTYVALUE")
  702. CHK_ERR(APPMAN_E_ACTIONINPROGRESS, L"APPMAN_E_ACTIONINPROGRESS")
  703. CHK_ERR(APPMAN_E_ACTIONNOTINITIALIZED, L"APPMAN_E_ACTIONNOTINITIALIZED")
  704. CHK_ERR(APPMAN_E_REQUIREDPROPERTIESMISSING, L"APPMAN_E_REQUIREDPROPERTIESMISSING")
  705. CHK_ERR(APPMAN_E_APPLICATIONALREADYEXISTS, L"APPMAN_E_APPLICATIONALREADYEXISTS")
  706. CHK_ERR(APPMAN_E_APPLICATIONALREADYLOCKED, L"APPMAN_E_APPLICATIONALREADYLOCKED")
  707. CHK_ERR(APPMAN_E_NODISKSPACEAVAILABLE, L"APPMAN_E_NODISKSPACEAVAILABLE")
  708. CHK_ERR(APPMAN_E_UNKNOWNAPPLICATION, L"APPMAN_E_UNKNOWNAPPLICATION")
  709. CHK_ERR(APPMAN_E_INVALIDPARAMETERS, L"APPMAN_E_INVALIDPARAMETERS")
  710. CHK_ERR(APPMAN_E_OBJECTLOCKED, L"APPMAN_E_OBJECTLOCKED")
  711. CHK_ERR(APPMAN_E_INVALIDINDEX, L"APPMAN_E_INVALIDINDEX")
  712. CHK_ERR(APPMAN_E_REGISTRYCORRUPT, L"APPMAN_E_REGISTRYCORRUPT")
  713. CHK_ERR(APPMAN_E_CANNOTASSOCIATE, L"APPMAN_E_CANNOTASSOCIATE")
  714. CHK_ERR(APPMAN_E_INVALIDASSOCIATION, L"APPMAN_E_INVALIDASSOCIATION")
  715. CHK_ERR(APPMAN_E_ALREADYASSOCIATED, L"APPMAN_E_ALREADYASSOCIATED")
  716. CHK_ERR(APPMAN_E_APPLICATIONREQUIRED, L"APPMAN_E_APPLICATIONREQUIRED")
  717. CHK_ERR(APPMAN_E_INVALIDEXECUTECMDLINE, L"APPMAN_E_INVALIDEXECUTECMDLINE")
  718. CHK_ERR(APPMAN_E_INVALIDDOWNSIZECMDLINE, L"APPMAN_E_INVALIDDOWNSIZECMDLINE")
  719. CHK_ERR(APPMAN_E_INVALIDREINSTALLCMDLINE, L"APPMAN_E_INVALIDREINSTALLCMDLINE")
  720. CHK_ERR(APPMAN_E_INVALIDUNINSTALLCMDLINE, L"APPMAN_E_INVALIDUNINSTALLCMDLINE")
  721. CHK_ERR(APPMAN_E_INVALIDSELFTESTCMDLINE, L"APPMAN_E_INVALIDSELFTESTCMDLINE")
  722. CHK_ERR(APPMAN_E_PARENTAPPNOTREADY, L"APPMAN_E_PARENTAPPNOTREADY")
  723. CHK_ERR(APPMAN_E_INVALIDSTATE, L"APPMAN_E_INVALIDSTATE")
  724. CHK_ERR(APPMAN_E_INVALIDROOTPATH, L"APPMAN_E_INVALIDROOTPATH")
  725. CHK_ERR(APPMAN_E_CACHEOVERRUN, L"APPMAN_E_CACHEOVERRUN")
  726. CHK_ERR(APPMAN_E_REINSTALLDX, L"APPMAN_E_REINSTALLDX")
  727. */
  728. }
  729. return L"Unknown";
  730. }
  731. //-----------------------------------------------------------------------------
  732. // Name: DXTraceW()
  733. // Desc: Outputs a formatted error message to the debug stream
  734. //-----------------------------------------------------------------------------
  735. HRESULT __stdcall DXTraceW( CHAR* strFile, DWORD dwLine, HRESULT hr,
  736. WCHAR* strMsg, BOOL bPopMsgBox )
  737. {
  738. WCHAR strLine[50];
  739. WCHAR strError[200];
  740. WCHAR strBuffer[BUFFER_SIZE];
  741. swprintf( strLine, L"%ld", dwLine );
  742. if( strFile != NULL )
  743. {
  744. if( strlen(strFile) + 200 < BUFFER_SIZE )
  745. {
  746. swprintf( strBuffer, L"%S(%s): ", strFile, strLine );
  747. OutputDebugStringW( strBuffer );
  748. }
  749. }
  750. if( strMsg != NULL )
  751. OutputDebugStringW( strMsg );
  752. swprintf( strError, L"%s (0x%0.8x)", DXGetErrorString8W(hr), hr );
  753. swprintf( strBuffer, L" (hr=%s)", strError );
  754. OutputDebugStringW( strBuffer );
  755. OutputDebugStringW( L"\n" );
  756. if( bPopMsgBox )
  757. {
  758. if( wcslen(strMsg) + strlen(strFile) +
  759. wcslen(strLine) + wcslen(strError) + 200 < BUFFER_SIZE )
  760. {
  761. swprintf( strBuffer, L"File: %S\nLine: %s\nError Code: %s\nCalling: %s",
  762. strFile, strLine, strError, strMsg );
  763. MessageBoxW( NULL, strBuffer, L"Unexpected error encountered", MB_OK|MB_ICONERROR );
  764. }
  765. }
  766. return hr;
  767. }
  768. //-----------------------------------------------------------------------------
  769. // Name: DXTraceA()
  770. // Desc: Outputs a formatted error message to the debug stream
  771. //-----------------------------------------------------------------------------
  772. HRESULT __stdcall DXTraceA( char* strFile, DWORD dwLine, HRESULT hr,
  773. char* strMsg, BOOL bPopMsgBox )
  774. {
  775. CHAR strLine[50];
  776. CHAR strError[200];
  777. CHAR strBuffer[BUFFER_SIZE];
  778. sprintf( strLine, "%ld", dwLine );
  779. if( strFile != NULL )
  780. {
  781. if( strlen(strFile) + 200 < BUFFER_SIZE )
  782. {
  783. sprintf( strBuffer, "%s(%s): ", strFile, strLine );
  784. OutputDebugStringA( strBuffer );
  785. }
  786. }
  787. if( strMsg != NULL )
  788. OutputDebugStringA( strMsg );
  789. sprintf( strError, "%s (0x%0.8x)", DXGetErrorString8A(hr), hr );
  790. sprintf( strBuffer, " (hr=%s)", strError );
  791. OutputDebugStringA( strBuffer );
  792. OutputDebugStringA( "\n" );
  793. if( bPopMsgBox )
  794. {
  795. if( strlen(strMsg) + strlen(strFile) +
  796. strlen(strLine) + strlen(strError) + 200 < BUFFER_SIZE )
  797. {
  798. sprintf( strBuffer, "File: %s\nLine: %s\nError Code: %s\nCalling: %s",
  799. strFile, strLine, strError, strMsg );
  800. MessageBoxA( NULL, strBuffer, "Unexpected error encountered", MB_OK|MB_ICONERROR );
  801. }
  802. }
  803. return hr;
  804. }