The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This function starts asynchronous playback of a sound.
This call will be successful only if the sound is not already playing.
HRESULT SndPlayAsync (
[in] The sound to play.
The sound handle was created using function SndOpen.
Indicates playback options.
Currently, the only flag supported is SND_PLAY_IGNOREUSERSETTINGS, so dwFlags can be either 0 or SND_PLAY_IGNOREUSERSETTINGS.
The function returns S_OK if successful, returns E_HANDLE if the sound handle is currently used for playing a sound, otherwise returns a standard HRESULT error code. If any flag besides SND_PLAY_IGNOREUSERSETTINGS are set through parameter
dwFlags, the function will return E_INVALIDARG.
You should call function
SndStop to terminate the asynchronous sounds on your process before your application exits.
Header soundfile.h Windows Embedded CE Windows CE 5.0 and later Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later, Windows Mobile 6 Standard and later