For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > January 2005 > System Sound Event documentation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author System Sound Event documentation
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com