如何永久禁用蓝牙 [英] How To Disable Bluetooth Permanently

查看:292
本文介绍了如何永久禁用蓝牙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图实现一项功能,包括永久关闭蓝牙,但用户不应该手动打开它,直到我通过代码启用,但我无法实现这一点因为蓝牙API仅提供临时断开连接的选项。

请通过C / C ++代码告诉我任何实现相同目的的方法。

操作系统:Windows 8.1







永久关闭连接的蓝牙设备,如果用户尝试连接蓝牙无线电,则不允许这样做。

Hi,
I was trying to implement a feature which involves turning off Bluetooth permanently but user should not be able to turn it on manually until i enable through code, But i was unable to achieve this as Bluetooth API only provide option to disconnect on temporary basis.
Please let me know any ways achieving the same through C/C++ code.
OS: Windows 8.1

Or

Turn off connected bluetooth device permanently where in if user tries to connect back bluetooth radio should not allow to do it.

推荐答案

没有任何功能允许您永久禁用蓝牙,WiFi或LAN连接:下次启动操作系统时,它们都会重新启用,以便用户可以控制它们。



如果你想永久禁用某些东西,那么你的应用必须在用户登录之前运行并暂时禁用它(并且可能继续观看如果它也被重新启用了。)



但是这种应用程序闻起来很恶毒:所以我不会帮你解决任何代码。
There is no feature which allows you to disable bluetooth, or WiFi, or the LAN connection permanently: they are all re-enabled the next time the operating system is started so that the user has control over them.

If you want to "permanently" disable something, then your app will have to run before the user logs in and temporarily disable it (and probably keep watching to see if it gets re-enabled as well).

But this kind of application smells malicious: so I'll not help you with any code.


这篇关于如何永久禁用蓝牙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆