I have a problem with the PlaySound() function in MS VC++. I want to play an application event:
PlaySound("MyInfo", NULL, SND_APPLICATION ¦ SND_ALIAS ¦ SND_ASYNC);
In the registry, the follow keys are added:
HKCU\Schemes\Apps\MyAPP\MyInfo\.current = "chimes.wav"
This way, I can go into Sounds in the Control Panel and choose which sound to associate with my app event. But it doesn't seem to find the correct alias, so it always plays the SystemDefault event. If I add SND_NODEFAULT to the PlaySound command, it doesn't play anything at all.
Has anyone encountered this or knows how to deal with it?