Help reading 'Time Zone Information' from Registry.

M

Michael D

I want to be able to read the 'StandardStart' and 'DaylightStart' key values
from the Registry. I know they are stored in Binary with 16 hex bytes of
information each. I also know they are stored in a 'SystemTime' type
structure. I don't know how to read it then pass it back through the a
SystemTime type structure.

I need some explicit help to give me step by step instructions on how to
'read' these Binary values from the Registry and a meaninful way of returning
the 'Month + Day + Hour' of what values they are set to. For example in the
southern hemisphere at Melbourne, Australia our 'StandardStart' or the date
we went off Daylight Saving Time is Sunday the 6th April at 3:00am.

How do I read the Registry for this "HKEY_LOCAL_MACHINE,
"System\CurrentControlSet\Control\TimeZoneInformation" -> StandardStart and
DaylightStart key values and have them returned in the readable format as
shown above, like StandardStart = Sunday 6th April at 3:00am?

I really appreciate your assistance. ...MichaelD
 
V

Vsn

Read the thread in this news group subjected and dated 'Displaing local time
zone' Friday, May 16, 2008 18:31, this will give you your solution in the
code posted.

Ludovic
 
M

Michael D

Hi Ludovic

That link was just brilliant and I've figured it out now. Thank you very
much!!!

The secret was having the SYSTEMTIME structure type before the
TimeZoneInformation structure type and then making the StandardStart and
DaylightStart types both 'as SYSTEMTIME'.

I really appreciate your help.

Regards

Michael D.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top