开发者

In case of failed PlaySound(), is it possible to retrieve last error status?

开发者 https://www.devze.com 2023-03-09 05:45 出处:网络
I\'m asking because universal GetLastError() returns ERROR_SUCCESS even if preceding PlaySound() call returned FALSE. I\'m aware what winmm have specific error fun开发者_如何学运维ctions for waveOut,

I'm asking because universal GetLastError() returns ERROR_SUCCESS even if preceding PlaySound() call returned FALSE. I'm aware what winmm have specific error fun开发者_如何学运维ctions for waveOut, mixer, etc, is there a function which reflects last PlaySound() status?


No. PlaySound works or it doesn't, and it doesn't tell you why when it fails. But it's a pretty simple function; it it fails then it's almost always because the sound you told it to play isn't there.

0

精彩评论

暂无评论...
验证码 换一张
取 消