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:-
[DllImport("iPAQUtil.dll", SetLastError=
Which you can then call with:-
int
iPAQSetBlueToothRadio(
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.
Update:-
The following should also work for devices with WiFi built in:-
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.