The parameter specified by pszSound must point to an image of a sound in memory. No default sound event is used. If the sound cannot be found, PlaySound returns silently without playing the default sound. The specified sound event will yield to another sound event that is already playing. If this flag is not specified, PlaySound attempts to stop the currently playing sound so that the device can be used to play the new sound.
Sounds are to be stopped for the calling task.
If pszSound is not NULL, all instances of the specified sound are stopped. If pszSound is NULL, all sounds that are playing on behalf of the calling task are stopped. PlaySound returns after the sound event completes. The sound specified by pszSound must fit into available physical memory and be playable by an installed waveform-audio device driver. For more information about the directory search order, see the documentation for the OpenFile function.