In case of failed PlaySound(), is it possible to retrieve last error status?
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.
精彩评论