是否有 API 调用来启动硬件设备扫描 [英] Is there an API call to start a scan for hardware devices

查看:20
本文介绍了是否有 API 调用来启动硬件设备扫描的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于这个问题,但是... 是否可以通过 API 触发新的硬件设备扫描?我有一个串行端口蓝牙设备,我通过 API 调用与 32feet.net .NET 自动配对蓝牙,效果很好.虽然我可以在扫描设备时查询串行服务,但 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.

推荐答案

相关在 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.

这篇关于是否有 API 调用来启动硬件设备扫描的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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