The MessageBeep function plays a waveform sound. The waveform sound for each sound type is identified by an entry in the registry.
BOOL MessageBeep(
UINT uType
);
Value Meaning
-1 Simple beep. If the sound card is not available, the sound is generated using the speaker.
MB_ICONASTERISK SystemAsterisk
MB_ICONEXCLAMATION SystemExclamation
MB_ICONHAND SystemHand
MB_ICONQUESTION SystemQuestion
MB_OK SystemDefault