是否有一个API调用来启动硬件设备的扫描有一个、硬件、设备、API

2023-09-04 00:07:47 作者:拆了奈何桥

相关的this问题,但......有没有可能通过API新的硬件设备扫描触发?我有我自动通过与 32feet.net .NET蓝牙 API调用配对的串行端口蓝牙设备,它的工作原理相当不错。虽然我可以在设备的扫描序列服务查询,COM端口不要在蓝牙设备对话框的COM端口选项卡中显示出来。

Related to this question, but... is it possible to trigger via API a new hardware device scan? I have a serial port Bluetooth device that I'm pairing automatically via API calls with 32feet.net .NET Bluetooth, which works quite nicely. While i can query for the serial services in the scanning of the device, the COM ports don't show up in the Bluetooth Devices dialog's COM Ports tab.

推荐答案

相关的Programmatically在Windows设备管理器卸载设备

从那里我的回答:

要强制扫描硬件   改变结帐如何给力   设备树的重新枚举从   应用程序样品有   展示了如何强制整个树   重新枚举

To force the 'scan for hardware changes' checkout "How To Force Reenumeration of a Device Tree From an Application" the sample there shows how to force the entire tree to be re-enumerated.