Function:
MessageBeep(UINTuType)

 

Description:
Plays the waveform sound associated with a given Windows system alert level (these are identified in the WIN.INI).

 

Parameters:
40: Play the SystemAsterisk sound.
30: Play the SystemExclamation sound.
20: Play the SystemQuestion sound.
10: Play the SystemHand sound.
0: Play the SystemDefault sound.
-1: Produces a standard beep sound by using the computer speaker.

 

Returns:
Returns 1 if successful, or 0 if an error occurred.

 

Example:
Click on the calc icon to view a sample of the MessageBeep function.