2011-11-16 26 views
0

私はBluetooth Device Development using C#を見つけましたが、私が望むのはWindows XP Bluetoothを制御できるコードです。 C#コードを使ってそれをオンまたはオフにします。それは、デスクトップPC上で実行する必要がある場合はWindows上でBluetoothを有効/無効にするxp C#コード

[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, 
} 

単語「ラジオ」あなたは誤解してはいけません...

あなたはWireless Communication Library .NET Editionを使用することができます:私が見つけた「グーグル」のショート後

答えて

0

+0

しかし、そのコードはWindows Mobileのみです...私はWindows XP上でBluetoothの有効/無効を表示するサンプルコードが必要です。私はおそらくコードはWindows Mobileのリファレンスを使用せずに使用できることを願っています。 – rose

+0

@rose:デスクトップマシンのソリューションをお探しですか? – Fischermaen

+0

ラップトップの私の窓のXPの意味...はい – rose

関連する問題