The WinAPI C code below makes a sound. How to make it work quietly?
MessageBox ( NULL, "text", "text", MB_OK | MB_SETFOREGROUND | MB_TOPMOST | MB_SYSTEMMODAL | MB_ICONINFORMATION ); This is a built-in feature of the system MessageBox 'a: if an information icon is displayed, a sound is played. To reconfigure this, apparently, it is impossible, but you can simply remove the MB_ICONINFORMATION flag.
An alternative solution is to rewrite the MessageBox itself from scratch - too complicated. But, of course, will work too.
Source: https://ru.stackoverflow.com/questions/612256/
All Articles
MB_ICONINFORMATION. - VladD