Question

I recently found that in a 32-bit windows application running on Server 2008 R2 64-bit, the notification sound (produced via a C++ call to MessageBeep( MB_ICONEXCLAMATION )) no longer produces a sound. Sounds in general work and the profile has been loaded with default windows sound settings in the Control Panel. Works fine on Win7 64-bit, so I assume its something server specific. Any suggestions for narrowing it down?

Was it helpful?

Solution

Usable workaround:

#include <MMSystem.h>
PlaySound( (LPCTSTR) SND_ALIAS_SYSTEMEXCLAMATION, NULL, SND_ALIAS_ID );
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top