Ariane Soft PPL2 Pocket Programming DataMite

Go Back   ArianeSoft Forums > PPL version 2 > Support

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-20-2010, 12:34 PM
sdkfz250 sdkfz250 is offline
Member
 
Join Date: Jul 2009
Posts: 36
Default How can I convert a binary time string from registry

Hi,

I am using the following code to extract registy values from my WM5 mobile phone:

*****************
k$ = Reg_OpenKey(HKEY_CURRENT_USER, "\\System\\State\\Appointments\\HomeScreen");
Reg_GetValues(k$, &Value$);
goto(Value$, 4);
showmessage(Reg_GetKeyValue(k$, Value$, FALSE));
Reg_CloseKey(k$);
******************

The value I want to read is a appointment end time in binary format :00 40 2f 8D e1 27 cb 01

When I run the code the following value is displayed: 728422400

Can anyone help in getting the correct time out of this number?

Thanks in advance

Michael
Reply With Quote
  #2  
Old 07-22-2010, 04:31 PM
c4esar c4esar is offline
Member
 
Join Date: Mar 2009
Location: Germany
Posts: 41
Default

Hi Michael!

I had a look on that Value and its type is REG_BINARY.
So after comparing several values on my WinMo-Device I guess that this is one giant number.
Your number might stand for July 20th 2010, 9:30am MESZ (CEST)?
The value is stored as a Little Endian, so you'll have to read the bytes (not the bits) from "right" to "left".

An intervall of 600.000.000 is equivalent to one minute.

Hope this might be helpful for you,

Daniel
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:54 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd