Alguna forma que desde FWPCC se pueda activar el bluetooth si este se encuentra apagado
- Code: Select all Expand view
- public class BlueTooth
{
private enum BluetoothMode : int
{
Off = 0, //Turn off the Bluetooth radio.
Connectable = 1, //Turn on the Bluetooth radio, and make it connectable.
Discoverable = 2 //Turn on the Bluetooth radio, and make it both connectable and discoverable.
};
[DllImport("BthUtil.dll")]
private static extern int BthSetMode(BluetoothMode mode);
public static bool EnableBT()
{
return (BthSetMode(BluetoothMode.Connectable) == 0);
}
public static bool DisableBT()
{
return (BthSetMode(BluetoothMode.Off) == 0);
}
}