Windows mobile 以编程方式检查是否在WindowsCE 5.0上激活了蓝牙设备

Windows mobile 以编程方式检查是否在WindowsCE 5.0上激活了蓝牙设备,windows-mobile,bluetooth,Windows Mobile,Bluetooth,是否有一个“好”的方法来执行此操作,或者我应该尝试打开连接,如果连接失败,我将假定设备未激活。我使用OpenNETCF.Net.Bluetooth DLL,如果您有,那么您可以简单地检查一下 OpenNETCF.Net.Bluetooth.BluetoothRadio.PrimaryRadio.Mode 实际上它在hand.Net.Bluetooth.BluetoothRadio.PrimaryRadio.HardwareStatus;但有一个优雅的解决方案

是否有一个“好”的方法来执行此操作,或者我应该尝试打开连接,如果连接失败,我将假定设备未激活。

我使用OpenNETCF.Net.Bluetooth DLL,如果您有,那么您可以简单地检查一下

OpenNETCF.Net.Bluetooth.BluetoothRadio.PrimaryRadio.Mode

实际上它在hand.Net.Bluetooth.BluetoothRadio.PrimaryRadio.HardwareStatus;但有一个优雅的解决方案