| Andrew Watkins (Newland Software Ltd.) 2005-01-23, 4:04 pm |
| The documentation for PlaySound is ok as far as it goes - but it is not
clear how to get a system event sound to play, or what events are
available.
The section Using PlaySound with Registry-Specified Sounds
gives as an example
PlaySound (TEXT("MouseClick"), NULL, SND_SYNC);
but this does not work - the default beep is played, as are various
guessed event names.
the docs also say
SND_ALIAS The pszSound parameter is a system-event alias in the registry
or the WIN.INI file. Do not use with either SND_FILENAME or SND_RESOURCE.
but do not identify the location of the alias registry keys.
So can anyone give some lines of code that will play the current user
selected ring tone, or sms message tone at the user profile controlled
volume and pattern.
Thanks
Andrew Watkins - Newland software ltd.
http://www.newlandsoftware.ltd.uk
|