开发者

Disabling Bluetooth support in Windows XP-7

开发者 https://www.devze.com 2023-01-16 22:31 出处:网络
I\'m trying to write a program to disable the Bluetoot开发者_如何学JAVAh service on computers (so, forbid users from connecting to Internet via Bluetooth)

I'm trying to write a program to disable the Bluetoot开发者_如何学JAVAh service on computers (so, forbid users from connecting to Internet via Bluetooth)

I've tried following methods:

  1. Disable the "bthserv" service (Bluetooth Support Service). It works on Windows Vista and 7, but there is no such service in Windows XP (I haven't tested, but I think it only works with Microsoft Bluetooth Stack)
  2. Use Devcon.exe tool; it shows Bluetooth devices, but cannot disable them (I'm Administrator)
  3. I can list the devices via WMI, but how can I disable them? (I wanted to disable with netsh.exe, but it errors with "An interface with this name is not registered with the router." although the connection exists.

Any ideas ?


The API you're looking for is called the "Setup API". I seriously doubt that it's what you want, BTW. What is so special about Bluetooth networking that sets it apart from Wifi networking? Why don't you just ban adding any new network adaptor ?

0

精彩评论

暂无评论...
验证码 换一张
取 消