我的应用程序需要验证失败时,使用户(谁可能是几英尺远)可以听到它发出蜂鸣声。我想使用 Console.Beep()但是这是的在64位环境中不可用(见备注)。有可能会或可能不会在/在电脑音箱,所以我不能使用 System.Media.SystemSounds.Beep.Play()。
My application needs to beep when validation fails so the user (who may be several feet away) may hear it. I'd like to use the Console.Beep() but this is unavailable in a x64 environment (see the remarks). There may or may not be speakers in/at the computer, so I can't use System.Media.SystemSounds.Beep.Play().
目前的目标平台是x86的环境,但我希望有在64位也运行能力的应用程序。
The current target platform is a x86 environment, but I'd like to have the ability for the application to run in x64 also.
有没有办法做到这一点,或者我应该干脆放弃?
Is there a way to do this or should I just give up?
修改:添加链接方法
推荐答案的提示音已被删除为所有x64平台上的本机功能(当然,所以没有托管版本),有一个连接问题的请愿书归还。
Beep has been removed as a native function from all x64 platforms (so no managed version of course), there is a connect issue that petition to return it.
我们使用不同的技巧来发现服务器,我们的远程弹出DVD驱动器,驱动器与托盘开放是一个正在寻找:)
We use a different trick to discover servers, we remote eject the dvd drive, and the drive with the tray open is the one were looking for :)
拉里·奥斯特曼大约有一个很好的文章:什么是与Windows中的嘟嘟司机7
Larry Osterman has a great article about this: What's up with the beep driver in Windows 7
更多推荐
净WinForm的系统提示音在64位操作系统
发布评论