[DUG] Reading binary data as date/time from registry
Jan Bakuwel
jan.bakuwel at omiha.com
Thu May 13 13:22:26 NZST 2010
Hi,
I'm struggling to find a good reference how I can read a date/time that
is stored in the registry. Its stored in the registry by a Microsoft
product; I'd like to read it with Delphi.
Here are some examples:
DateLastChecked REG_BINARY 95 a2 58 f2 2d f2 ca 01
When I write dates with Delphi (TRegistry.WriteDateTime(Now()), I get
the following results:
13 may 2010 12:56pm 03 ce dc 3f f1 ae e3 40
13 may 2010 12:57pm 39 75 33 48 f1 ae e3 40
13 may 2010 1:01pm 3e 47 d1 60 f1 ae e3 40
The last 4 bytes seem to resemble the date, the first the time.
When I use TRegistry.ReadDateTime on those entries, I get 30/12/1899.
Suggestions are very welcome!
thanks,
Jan
More information about the Delphi
mailing list