我正在使用WMI查询通过蓝牙连接的串行端口,得到具有以下属性的管理对象:
Property[Caption] = null
Property[ClassGuid] = {4d36e978-e325-11ce-bfc1-08002be10318}
Property[CompatID] = BTHENUM\{00001101-0000-1000-8000-00805f9b34fb}
Property[CreationClassName] = null
Property[Description] = Standard Serial over Bluetooth link
Property[DeviceClass] = PORTS
Property[DeviceID] = BTHENUM\{00001101-0000-1000-8000-00805F9B34FB}_LOCALMFG&0002\7&2B70A8A8&0&88C626AD9497_C00000000
Property[DeviceName] = Standard Serial over Bluetooth link
Property[DevLoader] = null
Property[DriverDate] = 20060621000000.******+***
Property[DriverName] = null
Property[DriverProviderName] = Microsoft
Property[DriverVersion] = 10.0.15063.0
Property[FriendlyName] = Standard Serial over Bluetooth link (COM5)
Property[HardWareID] = BTHENUM\{00001101-0000-1000-8000-00805f9b34fb}_LOCALMFG&0002
Property[InfName] = bthspp.inf
Property[InstallDate] = null
Property[IsSigned] = true
Property[Location] = null
Property[Manufacturer] = Microsoft
Property[Name] = null
Property[PDO] = \Device\BthModem0
Property[Signer] = Microsoft Windows
Property[Started] = null
Property[StartMode] = null
Property[Status] = null
Property[SystemCreationClassName] = null
Property[SystemName] = null
我想做的是找到对应的Bluetooth设备并以编程方式(C#或C ++)取消配对。到目前为止,我还没有找到任何办法。取消安装端口并不会自动解除设备配对。
我试图将这些属性映射到BT设备驱动程序的属性,但没有找到匹配项...