Has two standard API can to turn on/off your bluetooth module on Pocket PC.But the API is OEM optional implement method. So more PPC device can’t to support/use it.
- HRESULT OEMGetBthPowerState(DWORD* pdwState); // to get bluetooth power state
- HRESULT OEMSetBthPowerState(DWORD dwState); // to set bluetooth power state
set dwState equal 0 is turn off, equal 1 is turn on
When your device use the Broadcom stack then it should has "BTFlightModeCtl.dll" in windows
or can to read following registry get a correct setting.
[HKLMSystemCurrentControlSetControlPowerBluetoothRadioOffOverride]DLLName = "BTFlightModeCtl.dll"
in Application side may be can to try BthGetMode()/BthSetMode()
please to visit http://msdn2.microsoft.com/en-us/library/aa455170.aspx has a demo code