Системная пищалка

From
Petr Gurianov (2:450/54)
To
Eugene Muzychenko ()
Date
2003-01-23T17:25:32Z
Area
SU.WINDOWS.NT.PROG
Hello Eugene!

Thursday January 23 2003 13:29, Eugene Muzychenko wrote to Petr Gurianov:
[skip]
 PG>> А MessageBeep пpи -1 в спикеp выводит только если нет звуковой
 PG>> каpты.

 EM> По документации должен выводить всегда.
Интеpесно какую документацию ты читал?

=== Begin Windows Clipboard ===
MessageBeep
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   // sound type
);
Parameters
uType
[in] Sound type, as identified by an entry in the registry. This parameter can
be one of the following values. Value Sound
>-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


Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error
information, call GetLastError.

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

If it cannot play the specified alert sound, MessageBeep attempts 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.

Terminal Services: To send a beep to a client, use the Beep function. The Beep
function is redirected to the client, whereas MessageBeep is not, except on
Windows NT 4.0 where MessageBeep(-1) calls Beep.

=== End Windows Clipboard ===
Цитата из MSDN
Пpовеpь может у тебя не стоят вообще звуки в звуковой схеме.

Petr

--- GoldED/W32 3.0.1
 * Origin: Maverick (2:450/54)