You can use the API to play sounds from the Memory Validator GUI.
Plays a sound.
The sound is specified by a full path to a Windows .wav file.
extern "C"
void mvPlaySound(const TCHAR *fullPathToWavFile);
example:
mvPlaySound(_T("c:\\windows\\media\\Windows Notify Email.wav"));
The request to play the sound is added to the data stream sent to the GUI. The sound is played when the Memory Validator user interface reads this event data.
This allows you to add mvPlaySound() calls alongside other API calls and have then effectively sound at the same time the other events arrive at the GUI.
For example you might want to play a sound to announce that a particular event has happened in the program, and also associate a watermark with that event. You can do that with two API calls.
mvSetWatermark(_T("Data Processing Queue Start"));
mvPlaySound(_T("c:\\windows\\media\\Windows Notify Email.wav"));