Subscriber portal
This function plays a file synchronously.
HRESULT SndPlaySync ( LPCTSTR pszSoundFile, DWORD dwFlags );
[in] Sound filename.
Indicates playback options.
The function returns S_OK if the sound played successfully, otherwise it will return a standard HRESULT error code. If any flag besides SND_PLAY_IGNOREUSERSETTINGS are set through parameter dwFlags, the function will return E_INVALIDARG.