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

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

问题描述

相关的<一个href="http://stackoverflow.com/questions/2145207/rescan-device-tree-for-hardware-changes-during-driver-installation">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.

推荐答案

相关的<一个href="http://stackoverflow.com/questions/2175601/programmatically-uninstall-a-device-in-windows-device-manager">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.

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

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