Export (0) Print
Expand All
Information
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.

SndPlaySync

Windows Mobile 6.5
4/8/2010

This function plays a file synchronously.


HRESULT SndPlaySync (
  LPCTSTR pszSoundFile,
  DWORD dwFlags
);

pszSoundFile

[in] Sound filename.

dwFlags

Indicates playback options.

Bb416468.note(en-us,MSDN.10).gifNote:
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 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.

Headersoundfile.h
Windows Embedded CEWindows CE 5.0 and later
Windows MobileWindows Mobile 6 Classic and later, Windows Mobile 6 Professional and later, Windows Mobile 6 Standard and later

Community Additions

Show:
© 2015 Microsoft