PDA

View Full Version : TimeZoneInformation hacking ...


julio.maranhao
26-12-2007, 09:52 PM
I know how to hack the TimeZones in Windows OS family (98 to XP). But I am having dificult to do the same in WM6.

This is what I found:

1) HKLM\Time has a TimeZoneInformation value (binary). It seems to be the active time zone rules (set by SDK functions).
2) HKLM\Software\Microsoft\Clock has some values I don't understand.
3) I am brazilian and I am using "GMT-3 Brasilia". I cannot find that text in the registry. Not ever "GMT". Is it hardcoded?

I want to change the "GMT?????????" rules. In Windows, everything is in the registry. In WM, I don't know.

Any hints are welcome.

Júlio

levenum
26-12-2007, 11:48 PM
The timezones in WM have a bit of a different structure.

1) The HKLM\Time TimeZoneInformation is the active time zone. It is a structure described here (http://msdn2.microsoft.com/en-us/library/aa908812.aspx) (you need some understanding of C/C++ data types to fully understand this).

2) The HKLM\Software\Microsoft\Clock just holds the settings for the clock app and is irrelevant in this case.

3) The timezones are listed by code, not names. Here is the full table (http://msdn2.microsoft.com/en-us/library/aa226764.aspx). Note however that usually they are not stored in registry but only in the wince.nls file (that contains defaults for all regional settings). Only when a change to the timezone information is made it is placed in registry with the code as the key name.

julio.maranhao
27-12-2007, 10:43 PM
Only when a change to the timezone information is made it is placed in registry with the code as the key name.

Items 1 and 2 are Ok. I am familiar with TimeZoneInformation structure.

But focusing on item 3: wince.nls is binary and not writeable. What change should I do? Could you explain the quoted text?

Cheers.

Júlio