Turn off phone programatically? - Windows Mobile Development and Hacking General

Hi all,
Does anyone know how to turn the phone on and off programatically? Any help gratefully revceived!! Not worried what language it is in!
Thanks,
Steve

Perhaps this works: http://forum.xda-developers.com/viewtopic.php?t=48795&highlight=
I don't have WM5.
Cheers

Thanks Tweak, but I need something a little more detailed.

Just emulate a keystroke, VK_ 223 (power button).
It's on MSDN if you can find it, but that's the theory and practise.
V

Related

Registry snapshot needed!

Hello, all!
I have a little mess in my registry because my OS from the very beginning didn't want to turn LCD off. Now I made it work, but it rather works as power button - music is not played and so on...
If someone can give me a snapshot of his registry, it would be appreciated! (exactly HKLM\System\CurrentControlSet\Control\Power)
The snaphot can be made with SystemSnapshot (attached)
Thank you in advance! :!:
Noone?
Here it comes.....
Hope it helps...
Thanx a lot! :lol:

Using the volume slider to scroll?

Hi,
I was messing with the beta of the mozilla web browser the other day (it is on the ftp site, but I wouldn't bother with it yet!) and I noticed that it let you use the volume slider to scroll the page like a scroll wheel.
Sadly in the normal apps like IE and email it just changes the volume.
Does anyone know if there is any way to make the slider act as a scroll wheel in these apps? It is a standard thing on many pocket pcs and would be wonderful if you could use it whilst reading emails.
Cheers
Marc
Yeah that would be really useful for email and webbrowsing (eg. Avantgo). Anybody know how? Might be a registry hack.
Yes there is a volume slider re-mapper. I use it on my Blue Angel. Got it off a thread on one of the forums here. Keep searching
Of course it's possible.
Here is a page where I explain how to do it but I'm sorry it's in french :?
If needed I will translate it... :?:
DocteurN said:
Of course it's possible.
Here is a page where I explain how to do it but I'm sorry it's in french :?
If needed I will translate it... :?:
Click to expand...
Click to collapse
No need, great with google :lol:
http://tinyurl.com/ascnn
It was without counting on the ingeniousness of a Russian developer Mamaich which developed small a software to associate this button any software and in particular 2 small softwares making it possible to emulate a serrated roller of run!
Click to expand...
Click to collapse
To emulate a serrated roller of run
--------------------------------------------------------------------------------
It is now possible to use the slider as serrated roller to ravel inside the applications.
Click to expand...
Click to collapse
:lol: I love google language tools!
Hey that right, the translation isn't so bad :wink:
2 points : you've got to copy
- 'unmap_volume.exe' and 'AddHotkeys.exe' in the repertory /Windows/Start
- 'SimUp.exe' and 'SimDown.exe' in the repertory /Windows/Starting Menu/Programs
Thanks again to Mamaich
Works great! Thanks!!!
I just noticed that starting from 1.11 ROM it allows to remap up-down volume buttons for any purpose how great!
P.S. e.g. it works in Betaplayer, HaaliReader, Resco AudioRecorder
PHM Task Manager doesn't seem to kill the processes in order to uninstall AddHotkeys.exe....any suggestions?
You have to use activesync "explore" feature to change the extension to something else (eg. addhotkeys.ex1). Then, soft reset, and it will say that it can't be run. Then delete it!

Change Backlight Button to Camera flash light

Hi all,..
Is there a way to change the Backlight button on the universal so it activates the Camera light on the back of the device instead of turing on the backlight?
When possible the Universal becomes a pocket flashlight. Now when I want to activate the universal camera light I need to start up the camera software, It would be much quicket to just press the Light button to enable and disable the bright camera light. The Light button is now unuseful to me because the backlight automatticly turns on when tapping the screen, so no button needed...
anyone got a idea?
Best regards,..
Arjan
Now thats a damned good idea!! The backlight button is useless anyway.
Anyone here got the skills, I am afraid that I am just a lowly win32/KM developer...
Whats the best way to get into WM2005 coding?? Does it still require you to install 10,000 toolkits, or does Visual Studio 2005.net have the nessesaries? (if work ever sorts out our MSDN sub that is!)
Nigel
Paging buzz_lightyear! Paging buzz_lightyear!
buzz_lightyear to the rescue!
..... please?
As an almost entirely unrelated aside, you guys know that my program VJLumos, for the superbright screen, works on the Universal?
Doesn't make that much difference because it already has a nice screen.
V
Hi Buzz,..
Seems you know all about this schit. Can you tell uss if this is possible?
Regards..
arjan
vijay555 said:
As an almost entirely unrelated aside, you guys know that my program VJLumos, for the superbright screen, works on the Universal?
Click to expand...
Click to collapse
True, true... but the camera flash is trully bright!!! Even more than the screen!
I've checked the Win32 Mobile API and found nothing, so the solution must be in one of the HTC DLL's!
Disassembling Camera.exe in IDA didn't give big results neither... :?
I'll continue my reseach and post the results here!
Just wanted to keep this close to the top of the forum,
I would love this feature! Please please pretty please
Regards, Simon
Me To
would be great to have a portable flashlight with me all the time
Still triying, but until now, no success...
buzz_lightyear, can you give a hand here?
Realy hope anybody can find it out because this would be really great!!!
But can it be fixed?
Will this be possible?
not that I really know too much about all this kinda stuff, but MortPlayer refuses to recognise the button with a lightbulb on it even if you use the option that allows you to specify a hardware button by pressing it. Does this mean that this button is somehow hidded frm WM5 or am I being silly?
//Xi
MusicPlayer can recognize the button, I think it takes it as some kind of function button (F4 or F6 or something like that), so is definitely possible to use it.
I actually use it, after adding it to the registry. The button code is C8, so you just have to copy paste another button, and change any CX occurence to C8.
Key is HKLM/SOFTWARE/Microsoft/Shell/key/40CX
OK, so that's taken care!! Now to find HOW the camera turns the flash light on... I'm sure it's some kind of API..... :? :?
http://msdn.microsoft.com/library/e..._7effd1fa-1b3e-41ba-b176-42cb16dae7d4.xml.asp
i think this is done at driver level....
we might need to hook up with the camera driver dll, disassemble it and get the function names....
and then, need to write an app which will link up the dll at run time and call the fn....
apart from that, theres no simple way to do so using MS provided sdks for wm5....
S
dreamtheater39 said:
http://msdn.microsoft.com/library/en-us/still/hh/still/WIA_PropTable_7effd1fa-1b3e-41ba-b176-42cb16dae7d4.xml.asp
i think this is done at driver level....
Click to expand...
Click to collapse
I agree!! But I don't think that WIA is something to go thrue, since that applies to Win32 only!
That link was from the Desktop Windows DDK. The windows mobile DDK is a different beast.
I suspect the API will be similar tho. I very much doubt whether the camera app is going to directly call an IOCTL down in kernel mode to control the camera light (that would be crude!) It will be doing so via a user mode API. The key is going to be to find which DLL handles this and what the function name and format is!
Unfortunately although I write Desktop Windows drivers, I have not got the first clue about windows mobile programming - dont even know what tools to install!
Nigel
Just noticed something very odd: WM2005 emulator does NOT have camera.exe!!!
Camera.exe is the picture taking app on the WM2005! Where the hell is it?? Only on real devices (my Exec has it)?
ei99070 said:
Just noticed something very odd: WM2005 emulator does NOT have camera.exe!!!
Camera.exe is the picture taking app on the WM2005! Where the hell is it?? Only on real devices (my Exec has it)?
Click to expand...
Click to collapse
the wm5 sdk has the camera api exposed...however, no luck finding anything related to the flash light
i think its something htc has directly hooked up.
horrible MS they have to goof up somewhere ..... :evil:
i guess some disassembling is needed
buzz...where r u dude???
San

Flashlight on without camera???

Hi Guys.
I use the flashlight a lot. It comes in handy but is a bit of a pain having to switch the camera on to use it.
I tried looking through the whole of the registry to see if I could find a way of switching it on without the Camera but no luck. If I could do it' I would either set up a voice command to use it or use one of the buttons directly to run a program to switch it either on or off depending on what it's state is now.
Is it possible or is the flashlight's functions restricted purely to the Camera?
Thanks in advance
Brian
Vijay of the forum has been working on this project with Vjcandela - as yet no joy, but we are forever hopeful :mrgreen:
see here http://forum.xda-developers.com/viewtopic.php?t=41642
Won't somebody please, give me a Wizard?!?
Just joking...
btw, can someone try Haret on the wizard and check if that starts up the flash. If it does, I'll reverse engineer from there. I don't have a wizard and can't test the more elegant driver based solution without the hardware.
V
vijay555 said:
Won't somebody please, give me a Wizard?!?
Just joking...
btw, can someone try Haret on the wizard and check if that starts up the flash. If it does, I'll reverse engineer from there. I don't have a wizard and can't test the more elegant driver based solution without the hardware.
V
Click to expand...
Click to collapse
Tried haret on my wizard vijay - application wouldn't even start
meschle: thanks for trying it. I'll get a Wizard one day. Until I get more HTC hardware to reverse engineer, I'm not really clever enough to implement a more generic solution. For now, Universal and variants only I think.
Hey, and thank you again for your PMs
V

On Bluetooth-Connect Set Volume = 100?

Hi all,
i'm looking for a solution for the following problem:
Everytime my Diamond connects to another bluetooth device i want to set the volume to 100%.
Is there a solution anywhere in this forum? The search funktion has no results for me
Many thanks and sorry for my bad english
Lars
Me too. I've been thinking about writing a MortScript, but haven't got a clue where to begin...
Take a look at G-Profile at www.ageye.de and forum.ageye.de
It makes Equippement-based profiles possible
Bax
Yeah that's it! So many thanks... thats what i'm looking for

Categories

Resources