' lpszSoundName$ ' Specifies the name of the sound to play. The function first 
' searches the [sounds] section of the WIN.INI file for an entry 
' with the specified name, and plays the associated waveform sound 
' file. If no entry by this name exists, then it assumes the 
' specified name is the name of a waveform sound file. If this 
' parameter is NULL, any currently playing sound is stopped. 
' That is, use a 0& to provide a NULL value. 看看这个把,就是说如果你要退出,要停止播放,就给一个空的参数,既:
sndPlaySound "", SND_ASYNC Or SND_NODEFAULT
这样就可以了。