We can already enable and disable Bluetooth on devices equipped with Microsoft’s Bluetooth stack. In the case of iPaq devices, which use the Widcomm stack, it is possible to toggle the radio state using an API provided in HP’s iPAQUtil.dll. This can be P/Invoked from a .NETCF project like so:-
public static extern bool iPAQSetBlueToothRadio(ref int lpdwValue);
Which you can then call with:-
intval = 0;
Where val is either 0 to disable Bluetooth, or 1 to enable it. Tested on an iPaq 2210 but should work on any other iPaq device with Bluetooth.
The following should also work for devices with WiFi built in:-
public static extern bool iPAQSetWLANRadio(ref int lpdwValue);But I’ve not been able to test this myself.