Registering Sound Events

Your application can register specific events to which the user can assign sound files so that when those events are triggered, the assigned sound file is played. To register a sound event, create a key under the HKEY_CURRENT_USER key.

HKEY_CURRENT_USER
AppEvents
Event Labels
EventName = Event Name

Set the value for EventName to a human-readable name.

Registering a sound event only makes it available in Control Panel so the user can assign a sound file. Your application must provide the code to process that event.