术语 | beep |
释义 | Beep 语法: C++ BOOL WINAPI Beep( __in DWORD dwFreq, __in DWORD dwDuration ); Beep函数 生成简单的扬声器铃声。该函数是同步的,它执行一个报警等待并不会返回,直到完成声音控制它的调用。 参数 dwFreq [in] 声音的频率,在赫兹。此参数必须通过32,767(0x25通过0x7FFF的)范围内的37。 dwDuration [in] 声音的持续时间,以毫秒为单位。 返回值 如果函数成功,返回值为非零。 如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。 备注 静音和音量控制有没有提示音的效果,您仍然能听到了基调。沉默了基调,使用下面的命令: 净停止蜂鸣 资深大律师配置的响声开始=已禁用 终端服务:哔重定向到客户端。 Windows Vista的x64和Windows XP 64位版本:此功能不支持。 实例 下面的示例演示了此功能的使用。 哔哔声(750,300); 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinbase.h(头文件:winuser.h) LibraryKernel32.lib DLLKernel32.dll 参见 错误处理函数 MessageBeep 通知用户 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月30日 ==英文原文==Beep Function Generates simple tones on the speaker. The function is synchronous; it performs an alertable wait and does not return control to its caller until the sound finishes. Syntax C++ BOOL WINAPI Beep( __in DWORD dwFreq, __in DWORD dwDuration ); Parameters dwFreq [in] The frequency of the sound, in hertz. This parameter must be in the range 37 through 32,767 (0x25 through 0x7FFF). dwDuration [in] The duration of the sound, in milliseconds. 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 Muting and volume controls have no effect on Beep; you will still hear the tone. To silence the tone, use the following commands: net stop beep sc config beep start= disabled Terminal Services: The beep is redirected to the client. Windows Vista x64 and Windows XP 64-Bit Edition: This function is not supported. Examples The following example demonstrates the use of this function. Beep( 750, 300 ); Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinbase.h (include Windows.h) LibraryKernel32.lib DLLKernel32.dll See Also Error Handling Functions MessageBeep Notifying the User Send comments about this topic to Microsoft Build date: 7/30/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/ms679277(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。