PDA

View Full Version : How to switch Radio ON/OFF


danny82
11th August 2006, 07:36 PM
Does anyone know how to write an application to switch radio on/off i PPC WM5?
Can you send me source (danielk82@o2.pl)? It could be in C++/C# or even worse ;)

I was looking through google but nothing was helpful enough.

Thanks!

vijay555
11th August 2006, 08:10 PM
Danny, I'm still at work right now, no source code with me. I can try to send you some code a little later, subject to my brain functioning. If I don't send it tonight, please PM me tomorrow.

Basically, from memory, you have to set up a TAPI setup and toggle the radio mode there. Can't remember the details off hand though :( Later...

V

Krinkiespijer
11th August 2006, 08:48 PM
...originally it is meant to put audio continiously to your headphone by BT... but you can also use them offcourse as a shortcut to toggle on/off gprs, ir , bt.
Put the exe to anyplace and change shortcuts with total commander for changing the path within the files....
With thanks to VIJAY555...

danny82
12th August 2006, 10:49 AM
Thanks Krinkiespijer!
... but what I'm waiting for is source code.
I have found tel.on-off_100.exe application which switches radio on/off but I have to write it in my own app!
Danny

danny82
12th August 2006, 08:11 PM
Lost all day and still don't know how to do it.... :(

vijay555
12th August 2006, 08:39 PM
Guys, I should clarify for Danny, that he's looking for a managed code solution. I've given him a pointer in native C++, but can't help with managed.

Danny, I suggest you look over http://www.opennetcf.org/ and then follow the functions I pointed you towards.

Basically you need to get a TAPI line and change the equipment state.

V

danny82
13th August 2006, 01:20 AM
It's not that I need only managed code solution. I prefer it but native code is also enough. I was trying even understand it in native code but even msdn documentation is not enough to get by without complete source code.

Even though thanks for bothering :D

oldsap
13th August 2006, 06:41 AM
Hi guys, this is kinda OT here, but may i ask if there is a way to turn the Radio ON/OFF thru registry? Thanks

Krinkiespijer
13th August 2006, 09:11 AM
..no, you can only choose between always on or apps depending.

With next key key in register you can change it:

HKLM\CommConnMgr\Providers\{7c4b7a38-5ff7-4bc1-80f6-5da7870bb1aa}\connections\t-mobile]

always on dword=0=off dword=1=on

t-mobile is the name of your internetconnection