[英]Enable/Disable bluetooth on windows xp c# code
经过短暂的“搜索”,我发现:
[DllImport("BthUtil.dll")]
private static extern int BthSetMode(RadioMode dwMode );
[DllImport("BthUtil.dll")]
private static extern int BthGetMode(ref RadioMode dwMode );
/// Bluetooth states.
public enum RadioMode
{
/// Bluetooth off.
Off,
/// Bluetooth is on but not discoverable.
On,
/// Bluetooth is on and discoverable.
Discoverable,
}
不要让“无线电”一词误导您...
如果它应在台式机上运行,则可以使用无线通信库.NET版
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.