Solved

Adding to the Windows sound Events

Posted on 2000-04-04
2
129 Views
Last Modified: 2010-05-02
I am writing a program that plays wav files when certain events occur. I would like to add these events to the windows Sound events list so that wav files can be specified from the control panel.

How do you add to the Control Panel/Sound events list and then read back the wav file attached to a particular event?   -Thanks

Regards
GavinS
0
Comment
Question by:GavinS
2 Comments
 
LVL 3

Accepted Solution

by:
wpsjr1 earned 100 total points
ID: 2686266
You need to use the Registry API:

RegOpenKeyEx, RegQueryValueEx, RegCreateKeyEx, RegSetValueEx and RegCloseKey

The event names are subkeys of:

\HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default <- windows sounds

If you wanted to add an event for your app it would be:
\HKEY_CURRENT_USER\AppEvents\Schemes\Apps\MyApp\MyEvent


Take a look with regedit, I'm sure you'll get the idea.

Enjoy!  :)

Paul
0
 

Author Comment

by:GavinS
ID: 2686362
Thanks wpsjr1,
I had a look in the registry and I've got the general idea on how everything is organised.   I have't used the Registry API's before, but think I should be able to work it out from here.
Thanks again,

Regards
GavinS
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now