This function offers a subset of the functionality of the PlaySound function; sndPlaySound is being maintained for backward compatibility.
The PlaySound plays sound specified either by a file name, or by an entry in the registry, or by a resource identifier.
MSDN: the lpszSound parameter can be either an entry in the registry or in WIN.INI that identifies a system sound, or it can be the name of a waveform-audio file.
If the function does not find the entry, the parameter is treated as a filename. If this parameter is NULL, any currently playing sound is stopped.