Entwickler-Ecke

Windows API - Windows beep


hibbert - Mi 28.08.02 13:30
Titel: Windows beep
hallo,
meine problem: ich kenne nur den einen befehl, mit dem ich einen windows sound abspiele beep; aber für schwerere Fehler gibt es andere fehlermeldungen und dementsprechend auch andere 'beeps' wie lautet der befehl für die anderen 'beeps'?
DANKE !hibbert


toms - Mi 28.08.02 13:32

Zitat:

The MessageBeep function plays a waveform sound. The waveform sound for each sound type is identified by an entry in the [sounds] section of the registry.

BOOL MessageBeep(

UINT uType // sound type
);


Parameters

uType

Specifies the sound type, as identified by an entry in the [sounds] section of the registry. This parameter can be one of the following values:

Value Sound
0xFFFFFFFF Standard beep using the computer speaker
MB_ICONASTERISK SystemAsterisk
MB_ICONEXCLAMATION SystemExclamation
MB_ICONHAND SystemHand
MB_ICONQUESTION SystemQuestion
MB_OK SystemDefault