Ejemplo n.º 1
0
        private void btn_opt_Click(object sender, EventArgs e)
        {
            BluetoothRadioMode mod = BluetoothRadioMode.On;
            int ret = mDev.BtGetMode(ref mod);

            MessageBox.Show(mod.ToString());
            ret = 0;
            try
            {
                ret = mDev.BthSetMode(BluetoothRadioMode.Off);
                MessageBox.Show("返回结果为" + ret.ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 2
0
 public static extern int BthSetMode(BluetoothRadioMode mode);
Ejemplo n.º 3
0
 public static extern int BthGetMode(ref BluetoothRadioMode mode);
Ejemplo n.º 4
0
 public static extern int BthGetMode(out BluetoothRadioMode dwMode);
Ejemplo n.º 5
0
 public static extern int BthSetMode(BluetoothRadioMode dwMode);
Ejemplo n.º 6
0
 public static extern int BthGetMode(ref BluetoothRadioMode mode);
Ejemplo n.º 7
0
 public static extern int BthGetMode(out BluetoothRadioMode dwMode);