Microsoft Windows CE 3.0  

MessageBeep

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This function plays a waveform sound.

BOOL
MessageBeep( UINT
uType
);

Parameters

uType
[in] Specifies the sound type, as identified by an entry in the [sounds] section of the registry. It is one of the following values:
Value Description
0xFFFFFFFF SystemDefault
MB_ICONASTERISK SystemAsterisk
MB_ICONEXCLAMATION SystemExclamation
MB_ICONHAND SystemHand
MB_ICONQUESTION SystemQuestion
MB_OK SystemDefault

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

After queuing the sound, the MessageBeepfunction returns control to the calling function and plays the sound asynchronously.

If it cannot play the specified alert sound, MessageBeepattempts to play the system default sound. If it cannot play the system default sound, the function produces a standard beep sound through the computer speaker.

The user can disable the warning beep by using the Sound Control Panel application.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 1.0 and later Winbase.h   Msgbeep.lib
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

GetLastError, MessageBox