Microsoft Windows CE 3.0  

Using the PlaySound Function with Waveform Audio Files

This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

In Windows CE, most waveform audio files use the .wav file name extension. The following code example shows how to play the \Sounds\Bells.wav file.


If the specified file does not exist or the file cannot be stored in available device memory, the PlaySoundfunction plays the default system sound. If you have not defined a default system sound, PlaySoundfails without playing a sound. The following code example shows how to specify that the default sound should not be played, by using the SND_NODEFAULTflag in the fdwSoundparameter to prohibit the application from playing the default sound.


 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.