Argh, I must be doing something wrong. I can't get it to work at all. I tried those values for the flags and they didn't work. I tried about a billion different permutations, too. As soon as I try to do an app-specific value, it doesn't work. I can play the Windows sounds till the cows come home, just not app-specific sounds.

There is one thing. I'm depending on a file called WIN32API.TXT that ships with VB6 to gather the values for those constants. It's possible that the file is in error and I'm passing a wrong parameter. It wouldn't be the first time that Microsoft's documentation was wrong.

By my calculations, SND_ASYNC | SND_NODEFAULT | SND_APPLICATION | SND_ALIAS should come out to 10083 hex which is 65667 decimal. Is there any way you can check that and make sure I've got it correct?

___________
Tony Fabris
_________________________
Tony Fabris