2.1.27.20 MessageBeep


Description

MessageBeep plays a waveform sound. The waveform sound for each sound type is identified by an entry in the registry which can be accessed from the Sounds or Multi-Media applet in the Window's Control Panel.

Syntax

BOOL MessageBeep( UINT uType )

Parameters

uType
[input] -1 for standard beep using the computer speaker or MB_ICONASTERISK, MB_ICONEXCLAMATION, MB_ICONHAND,
MB_ICONQUESTION, or MB_OK (for system default)

Return

Returns TRUE on successful exit and FALSE on error.

Examples

EX1

int MessageBeep_ex1()
{
    MessageBeep( -1 ); // Beep standard computer speaker
    return 1;
}

Remark

See Also

MessageBox

Header to Include

origin.h

Reference