How to Disable IRDA using the registry? - Windows Mobile Development and Hacking General

Hello, i´m new in this forum. I'm not very good in english, but i will try it.
I'm developing an applicqation in XDAII that uses serial port.That application is automatically re-installed every time I do a hard-reset (i have modified config.txt in the extended rom).The problem is that every time i do a hard restet, the irda port is enabled in the configuration-conexions-transfer menu. So every time i do a hard reset i have to disable manually the irda transfer. Do somebody know how to disable the irda modifiyng a registry key? Once i know the registry key that do this, i can build a application that modify that key. Thank a lof for all.

Your question interested me as I have also done what you are describing, and what you are asking is a very good idea.
I did a little investigation into the registry but I don't have good news. I did a total dump of my XDAII registry with Beam Ticked and Un-Ticked. I then did a compare of the 2 results. It seems the setting is in
HKLM\Software\Microsoft\Obex and Key IsEnabled is set to 1 for On or 0 for Off.
However changing the registry value just changes the state of the tick and makes no differance to the serial port being locked. So it seems that the registry is just a store for the current setting of the tick.
If you do get a final answer to this please post on this forum thread as it would be useful for me as well.

If you set this registry value and then reboot/reset the device, is IR turned off, (and the serial port unlocked)? I'm wondering if during the boot process it reads this value and will turn off IRDA ??

Yes, it does then seem to work.
So it seems you have to set the IsEnabled key to 0, and then do a warm reset.
So I guess an exe could check the value in the registry key and if it was 1, it could set it to 0 and then do a warm reset. If the key was already 0 then nothing would need to be done.

IR Problem
Hi all,
had the same problem about 3 months ago. To solve the problem i replaced the comport to 9999 during the installation of the cab file.
Work fine for me

Related

Can you programmatically enable "Button Lock"?

Does anyone know how to programmatically enable the "Button Lock" function on the HTC devices? It's obviously not a registry key, so I assume there's some kind of (HTC) API function used to accomplish it :?:
maybe capturing and handling the event would be the way to go
i would asume that the hardware buttons throw events like most other things in windows
try looking into it
I'm not sure I understand what you're meaning by "capturing and handling the event"? There's no event to capture, unless you're suggesting I should "emulate" a couple of UI keypress-events which changes this setting. But that kind of implemenations usually aren't very stable.
It seems like quite of few device configuration settings isn't stored (or is visible) in either registry or filesystem. Is there some kind of non-visible configuraton hive available on these devices?
try reading this
http://www.pocketpcdn.com/forum/viewtopic.php?t=1966
you can prob find more using this search
http://www.google.dk/search?num=20&...G=Søg&meta=lr=lang_da|lang_en|lang_no|lang_sv
Ok, now I understand why you're talking about events. But the "Button Lock" setting isn't set by a hardware button. Its set from a "control panel applet", which got two alternatives
"When device is off:
( ) Lock all button except Power button
(*) Do not lock button"
Where the latter is the default after a cold reboot. Settings like these are not stored in registry, and I havent found an API for setting them either..
well the thing i was talking about was when you said program
i talked about one could write a program capturing all the buttons and only redirect the power button and leave the other event hanging
but i would asume that in the sdk there would be a flag which indicated if the the buttonlock was active
where i save if it is i'm not sure but it sure keep it on after a softreset so it cant be in active mem
Wille, did you ever work this one out? It's another of the many things I'd like to adjust programmatically.
have you looked in the stk ?
it should contain all the function calls that makes a pda work
changing something in the reg and changing sometime from a program are 2 different things
theora said:
Wille, did you ever work this one out? It's another of the many things I'd like to adjust programmatically.
Click to expand...
Click to collapse
No, unfortunately I didn't. Its not possible from an official standpoint since it seems to be a vendor specific implementation. The setting isn't stored in the registry or inside the standard file system.
You can try if Mort can help, he has made MortSaver, which shuts off the screen and buttons to act as buttonlock and screensaver in one. Perhaps he can help? Right now you can find him in the thread on MortRing, or through his website www.sto-helit.de. Or you can PM him of course.
I just handle the button events in MortSaver. Nothing special there...
wille said:
Does anyone know how to programmatically enable the "Button Lock" function on the HTC devices? It's obviously not a registry key, so I assume there's some kind of (HTC) API function used to accomplish it :?:
Click to expand...
Click to collapse
Try some reversing on \windows\buttonlock.exe and you'll get what u want
I've seen it's possible to set through a KernelIoControl call, but I haven't got enough debugging/re experience to determine the required function parameters.
(are there any in-memory debuggers like SoftIce available for these devices/Windows Mobile?)
As far as I know the best debugger right now is the free embedded visual tools from Microsoft.
There is nothing even close to SICE for CE.
However, IDA Pro, even though a disassembler and not a debugger, is quite powerful and usually does the trick.
Button Lock set/enable
I am also looking for a program/setting to turn on the button lock. I found this in another forum on xda-developers.com through a google search. There is a file to download but when executed on the PPC it gives an error Setup Failed "The file "\temp\SetButtonLock.exe" is not a valid Windows CE Setup file." I am not a programmer but I manage over 60 of these devices right now soon to be hundreds. Any info is appreciated.
http://forum.xda-developers.com/viewtopic.php?p=112394
This device is known by several names:
Audiovox PPC-6600
Audiovox PPC-6601
XdaIII (XDAIIi)
XdaIIs - O2
MdaIII (T-Mobile)
SPV M2000
i-mate PDA2k (MOST POPULAR NAME)
i-mate Pocket PC Phone 2
Qtek 9090
Siemens SX66 (Cingular)
HTC Blue Angel
Unicom CU928 (CDMA based China)
XV6600WOC (Verizon)
wille said:
Does anyone know how to programmatically enable the "Button Lock" function on the HTC devices? It's obviously not a registry key, so I assume there's some kind of (HTC) API function used to accomplish it :?:
Click to expand...
Click to collapse
Hi Wille,
This is probably too late to help, but I came across your post while looking for a solution. I ended up having to reverse engineer it myself...
You can use KernelIoControl(...) to set the button lock:
BOOL success = KernelIoControl(0x01012A00, &in, sizeof(in), NULL, 0, NULL);
struct button_lock_in
{
DWORD set_or_get;
DWORD set_value;
};
If set_or_get is 0x00000000, the set_value must be 0x00000000 to disable key lock and 0x00000001 to enable key lock.
If set_or_get is 0x00000001, set_value should be 0x00000000 (but it may be ignored). You then pass in a pointer to a DWORD in lpOutBuf and set nOutBufSize to sizeof(DWORD) (4 bytes). You'll get a 0x00000001 or 0x00000000 depending on if the buttons are locked or unlocked.
The above calls seem to work, but because it was gained from intercepting kernel calls and not from documentation I can not warrant that the above will work or won't set fire to your XDA.
By the way, lpBytesReturned doesn't seem to be implemented properly. It is unmodified by the KernelIoControl(...) IOCTL.
HELP
HELP
Somehow when I did a hard reset (for the first time) the ButtonLock is gone from Settings->System
Tried to call Audiovox/UTStar support, no help available.
Any idea how to get that app back? thx
Keylocking
Microsoft recommended way of doing this (turning keylock on) is posting
VK_F22 keycode (special key for locking WM5). I did small utility which looks Power Notification Queue and as soon as it sees WM_SUSPENDING message in it, it throws VK_F22 thus locking keyboard,
Utility can be found from
http://mobilitytoday.com/forum/showthread.php?t=13030
Devicelock
There is an aygshell-API function from Microsoft:
HRESULT SHDeviceLockAndPrompt();
But it is available only in very new Windows Mobile versions.
It works fine on a MDA Pro with AKU2.0 (OS 5.1.195 Build 14847.2.0.0) and on the landscape smartphone emulator image (same OS build) but it is not available in the standard emulator image with OS version 5.1.1700 (Build 14343.0.0.0).
How about the PIN-settings?
I would like to alternate between regular screen lock and PIN-lock..

Where is GPS control panel on Qtek 9100????

Where is GPS control panel on Qtek 9100???? Funny, the help describes in detail where it should be, but it is not there
I tried this:
WM5 built in GPS control panel
For some reason this is not active in the settings of the JASJAR. To make it visible do the following:
Fire up a registry editor
Go to: HKEY_LOCAL_MASCHINE\ControlPanel\GPS Settings
Delete the DWORD marked "hide"
Add a DWORD called "Group" and give it the value of "2" (dec)
The GPS panel will now show up in your connection settings.
Click to expand...
Click to collapse
Soft-reset the qek 9100, but still can't find it in the Connections??
Help pls? :shock:
There is also a 'redirect' entry in that registry location.. remove that one, and it will apear in your settings menu
Hello
You have to
keep the Hide key but change the value to 0 and
delete the redirect value and
soft reset
then it appears
tig said:
Hello
You have to
keep the Hide key but change the value to 0 and
delete the redirect value and
soft reset
then it appears
Click to expand...
Click to collapse
worked like a charm!!!
I love this forum.. thanks!!
why on earth did they disable it??????/
I cant find the hide key?
Am i looking in the wrong place, i am in the gps settings registry but cannot see a Hide key?
Re: I cant find the hide key?
dannyweb said:
Am i looking in the wrong place, i am in the gps settings registry but cannot see a Hide key?
Click to expand...
Click to collapse
me to. could someone post the reg keys please?
Re: I cant find the hide key?
dannyweb said:
Am i looking in the wrong place, i am in the gps settings registry but cannot see a Hide key?
Click to expand...
Click to collapse
Thats why you are supposed to SET IT!
So once again....
Go to HKEY_LOCAL_MASCHINE\ControlPanel\GPS Settings
1. Remove the REDIRECT
2. Add DWORD Hide and set Value to 0
3. Add DWORD Group and set Value to 2
4. Soft-Reset*
5. There ya go!
Its not that hard - just follow the directions and you will succeed!
*Be sure to do a correct Softreset! Either use a tool like Pocketplus to do a softreset or turn off the ppc by pushing the powerbutton very long untill you are asked if you really want to turn off the device.
That way the changes made to the registry are really saved to the ROM !
Re: I cant find the hide key?
DREAMBOXER said:
dannyweb said:
Am i looking in the wrong place, i am in the gps settings registry but cannot see a Hide key?
Click to expand...
Click to collapse
Thats why you are supposed to SET IT!
So once again....
Go to HKEY_LOCAL_MASCHINE\ControlPanel\GPS Settings
1. Remove the REDIRECT
2. Add DWORD Hide and set Value to 0
3. Add DWORD Group and set Value to 2
4. Soft-Reset*
5. There ya go!
Its not that hard - just follow the directions and you will succeed!
*Be sure to do a correct Softreset! Either use a tool like Pocketplus to do a softreset or turn off the ppc by pushing the powerbutton very long untill you are asked if you really want to turn off the device.
That way the changes made to the registry are really saved to the ROM !
Click to expand...
Click to collapse
done, thanks.
Does this mean I can force my GPS receiver to communicate with designated ports on my Vario?
And if so how do I get it working properly?
Mesias said:
Does this mean I can force my GPS receiver to communicate with designated ports on my Vario?
And if so how do I get it working properly?
Click to expand...
Click to collapse
Get yourself the GPS Menu in the settings and you'll get total control over the used COM PORTs used by the navigation software and the navigation hardware.
i tried that hack today, but i have the problem that my wizard "resets" the reg entries i changed to the default (only redirect)
I'm using the 2.18 german qtek rom, any ideas? I think a cab file would help.
lutzs said:
i tried that hack today, but i have the problem that my wizard "resets" the reg entries i changed to the default (only redirect)
I'm using the 2.18 german qtek rom, any ideas? I think a cab file would help.
Click to expand...
Click to collapse
You have to wait a while before register changes would be in the ROM, dont soft-reset immediately, or you could just turn your device off with the power button (hold it for 5 secs.) and turn it on again.
But then again.....this hack doesn't work on the latest Rom's
The latest Roms don't have the GPS control panel in it, I also tried it but didn't work.
i waited some time, then soft resets and it works! thanks! (2.18 Rom)
molski said:
lutzs said:
i tried that hack today, but i have the problem that my wizard "resets" the reg entries i changed to the default (only redirect)
I'm using the 2.18 german qtek rom, any ideas? I think a cab file would help.
Click to expand...
Click to collapse
You have to wait a while before register changes would be in the ROM, dont soft-reset immediately, or you could just turn your device off with the power button (hold it for 5 secs.) and turn it on again.
But then again.....this hack doesn't work on the latest Rom's
The latest Roms don't have the GPS control panel in it, I also tried it but didn't work.
Click to expand...
Click to collapse
Works on modified 2.17 ROM
GPS not detected by progs
DREAMBOXER said:
Get yourself the GPS Menu in the settings and you'll get total control over the used COM PORTs used by the navigation software and the navigation hardware.
Click to expand...
Click to collapse
Well, I've tried to play with different hardware/software port settings; neither MioMap nor Google Maps see whichever port I set. Anyone found a good combination?
katyaMio said:
Well, I've tried to play with different hardware/software port settings; neither MioMap nor Google Maps see whichever port I set. Anyone found a good combination?
Click to expand...
Click to collapse
This thread is over three years old, so you might not get many responses. To answer your question, I use Program port 0 and Hardware port 6 in External GPS. The latteer port must match the port you assigned in the bluetooth settings. Make sure you disable the check mark that sets up a secure connection. This is also found in the bluetooth settings.

Quastion about Windows Mobile Registry. Need Help

I need programmatically change Profiles in phone (Normal, Silent...).
When I change Value ActiveProfile in Registry Key "HKEY_CURRENT_USER\ControlPanel\Profiles" I need also update changes in phone.
Question: How can I do it? What system message I must send for updating profiles status?
2007fs said:
I need programmatically change Profiles in phone (Normal, Silent...).
When I change Value ActiveProfile in Registry Key "HKEY_CURRENT_USER\ControlPanel\Profiles" I need also update changes in phone.
Question: How can I do it? What system message I must send for updating profiles status?
Click to expand...
Click to collapse
Depends what you need to do, in general there is a Windows Meesage WM_SETTINGCHANGE that will notify the change (provided that you flush the registry), however to me it looks like you are "hacking" the registry instead of using a more appropiate method, I never changed a profile, but I done some similar things, did you try something like the API SystemParametersInfo?
For example I must change Profile from Normal to Silent and after changing at the same time must automatically turn off the phone sound and on desktop must show non-sound icon.
I have try a sending message WM_SETTINGCHANGE, but I have no effect, may be I not correctly used command SendMessage.
API SystemParametersInfo and other I didn't try. May be you have any expirience in this?
As far as possible, write please some example to solve my problem
Take a look here:
http://groups.google.com/group/micr...rofile+registry&rnum=1&hl=en#b3a56f92d65fee2d
There are not good news, you either try to simulate a key stroke to change the profile or try to feed it or try to work out if DMProcessConfigXml function will make the trick by feeding the XML with the profile configuration.
It doesn't seem to be other workout, for the DMProcessConfigXml function is plenty of information and examples @ msdn.microsoft.com.
Hey!
I used this code and it helped me
HWND hWnd = FindWindow(_T("MSCprog"),NULL);
::SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0);
::SendMessage(HWND_BROADCAST, WM_NOTIFY, 0, 0);
::SendMessage(HWND_BROADCAST, WM_USER+0x3084,0xFFFFFFFF,2);
if (hWnd!=NULL)
{
::SendMessage(hWnd, WM_USER+0x3084,0xFFFFFFFF,2);
::SendMessage(hWnd, WM_USER+0x3084,0xFFFFFFFF,2);
::SendMessage(hWnd, WM_USER+0x3084,0xFFFFFFFF,2);
}
don't worry and be happy, as I am
On the HTC Touch pro 2 in the settings somewhere I tapped commit registry and it said registry flushed. Since I have nothing on my phone really just yet I feel like doing a hard reset after pressing that button.
What does it do? Should I hard reset or not? Is it safe?
Does it change anything in the phone? Does/ can it make the phone run slower (after time maybe, or better?)? Can it make the phone have problems and flaws along with bad performance and instability; can it make the phone not stable? Can it change a certain program or make it worse? How often is the registry to be flushed?

registry keys

Hi Everyone:
A small clarification is needed. My device is defaulting to Moscow GMT+3 everytime I restart it. I want to know actually 3 things if possible:
1- What's the registry key that allows you to select the regional settings?
2- How can I know the table code of countries like Moscow is 0x00FFXXX, etc... for the various time zones.
3- I noticed sometimes that whatever registry keys in HKEY_LOCAL_MACHINE -> nls, they are changed everytime the system restarts. I was assuming that nls\overrides is doing that but I altered everyting and yet after restart new values appear in nls keys and even in overrides. Is there any other place in registry that writes values on top of nls upon restart?
appreciate the help,
Cheers
I have a similar problem where the backlight timeout setting (on battery power) resets to 10 seconds everytime I turn my MDA off. Really annoying.
I've tried changing the setting in the registry directly as well, but it still changes back.
Any ideas?
Thanks,
Scott
It is strange that something keeps changing the reg settings.
I had the 10 second thing on my Jamin and it seem to have something to do with the screen lock plugin.
Never did solve it.
Locale settings are in HKLM\nls DefaultLCID (dword) and you can find all possible values here.
But the time zone is set in HKLM\Time\TimeZoneInformation and its a bit complicated (its a whole data structure and not just a value)
I think you need to check your startup programs (HKLM\init and windows\startup).
levenum said:
It is strange that something keeps changing the reg settings.
I had the 10 second thing on my Jamin and it seem to have something to do with the screen lock plugin.
Never did solve it.
Locale settings are in HKLM\nls DefaultLCID (dword) and you can find all possible values here.
But the time zone is set in HKLM\Time\TimeZoneInformation and its a bit complicated (its a whole data structure and not just a value)
I think you need to check your startup programs (HKLM\init and windows\startup).
Click to expand...
Click to collapse
Thank you for your reply and for the great link. I am starting to feel that this problem is related to HTC Home. Appreciate if anyone can comment on this issue.
Requesting Moderators / Admin to move this post to the appropriate board
I've been playing with the new PDAMobiz ROM and discovered that in Settings->Phone there is an option to sync time with the cellular network.
Unfortunately this will also force your time zone in to what ever the network is set to which at least in my case is incorrect because the network operator did not want to bother with DLS settings.
Perhaps you have this setting on as well?

Registry change in WM6.1

Hi all,
First off, thanks for all the information and work you guys put in. With the write-ups I have been able to get the GPS working and the VoiceCommand 1.6 with one exception. I cannot get the BT headset working with the Voice Commander and the point where I'm stuck is that the registry key ...AudioGateway\BTAGExtModule will not accept a change. Using PHM Reg Edit I can rename the key and 'save' but when I close the editor and then reopen the key gets reverted back to OEMAGW. If I delete the key completely it gets restored automatically to OEMAGW. Can someone please point me to a thread that could help me out or answer this one?
Thanks.
Mark
Mod Edit: Moved from Titan Upgrading
I'm having the exact same problem. I'm using Resco registry editor and the change isn't sticking. I've added a simple string at a different location and did a soft reset and it stayed so that led me to believe that perhaps there were some kind of security policies being enforced that were causing this problem (I sync with an Exchange server so sec policies are being pushed down). Now to find out how to turn those off I think may resolve this... I'm still searching for a solution so if anyone has any updates please do post back...
Thanks!
niel

Categories

Resources