How do I find out which sound files the user has configured in the control panel?
Example: I want to play the sound for \"Device connected\".
Which API can b
PlaySound is the API ,also see Play System Sounds
Not Win32, but for .net anyway, you can do this using the following in C#:
System.Media.SystemSounds.Asterisk.Play();
// Plays the Asterisk sound (used for Information (i))
// Also available:
// Exclamation (Warning /!\)
// Hand (aka Critical Stop - Error (X))
// Question (?)
// Beep (aka Default Beep)
Take a look at these articles:
Playing .wav files using C#
Creating Your Own Sound Alerts