网站首页  词典首页

请输入您要查询的函数:

 

术语 messagebeep
释义 MessageBeep
语法:
C++
BOOL WINAPI MessageBeep(
__in UINT uType
);
MessageBeep函数
播放波形声音。对于是由注册表中的项确定的每个声音类型波形声音。
参数
uType [in]
声音的播放。的声音都是由用户通过声音控制面板应用程序,然后存储在注册表中。
此参数可以是下列值之一。
ValueMeaning
- 1A型简单的响声。如果声卡不可用时,声音是利用扬声器。
MB_ICONASTERISK
0x00000040LSee MB_ICONINFORMATION。
MB_ICONEXCLAMATION
0x00000030LSee MB_ICONWARNING。
MB_ICONERROR
0x00000010LThe声音指定为Windows重要停止的声音。
MB_ICONHAND
0x00000010LSee MB_ICONERROR。
MB_ICONINFORMATION
0x00000040LThe声音指定为Windows星号的声音。
MB_ICONQUESTION
0x00000020LThe声音指定为Windows问题的声音。
MB_ICONSTOP
0x00000010LSee MB_ICONERROR。
MB_ICONWARNING
0x00000030LThe声音指定为Windows感叹号的声音。
MB_OK
0x00000000LThe声音指定为Windows默认嘟嘟声。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
经过排队声音,MessageBeep函数控制返回给调用函数和异步播放声音。
如果它不能播放指定的警报声,MessageBeep试图播放系统默认的声音。如果它不能播放系统默认声音,函数生成通过计算机扬声器标准蜂鸣声。
用户可以通过使用禁用声音控制面板应用程序的警告声。
终端服务:要发送到客户端提示音,使用Beep函数。 Beep函数重定向到客户端,而MessageBeep不是。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinuser.h(头文件:winuser.h)
LibraryUser32.lib
DLLUser32.dll
参见
蜂鸣
错误处理函数
FlashWindow
通知用户
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月30日
==英文原文==MessageBeep Function
Plays a waveform sound. The waveform sound for each sound type is identified by an entry in the registry.
Syntax
C++
BOOL WINAPI MessageBeep(
__in UINT uType
);
Parameters
uType [in]
The sound to be played. The sounds are set by the user through the Sound control panel application, and then stored in the registry.
This parameter can be one of the following values.
ValueMeaning
-1A simple beep. If the sound card is not available, the sound is generated using the speaker.
MB_ICONASTERISK
0x00000040LSee MB_ICONINFORMATION.
MB_ICONEXCLAMATION
0x00000030LSee MB_ICONWARNING.
MB_ICONERROR
0x00000010LThe sound specified as the Windows Critical Stop sound.
MB_ICONHAND
0x00000010LSee MB_ICONERROR.
MB_ICONINFORMATION
0x00000040LThe sound specified as the Windows Asterisk sound.
MB_ICONQUESTION
0x00000020LThe sound specified as the Windows Question sound.
MB_ICONSTOP
0x00000010LSee MB_ICONERROR.
MB_ICONWARNING
0x00000030LThe sound specified as the Windows Exclamation sound.
MB_OK
0x00000000LThe sound specified as the Windows Default Beep sound.

Return Value
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.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinuser.h (include Windows.h)
LibraryUser32.lib
DLLUser32.dll
See Also
Beep
Error Handling Functions
FlashWindow
Notifying the User
Send comments about this topic to Microsoft
Build date: 7/30/2009
==原始网址==http://msdn.microsoft.com/en-us/library/ms680356(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 9:18:42