| View previous topic :: View next topic |
| Author |
Message |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu May 23, 2002 8:42 am Post subject: Registry value |
|
|
I want to get the timezone bias, and I've located it in the registry here:
| Code: | | @regread(LOCAL,SYSTEM\CurrentControlSet\Control\TimeZoneInformation,ActiveTimeBias) |
So far, so good! Now, on my XP/W2K systems this key returns -120; fine, that's a bias of
minus 120 minutes.
On my W98 system, however, it returns 136|255|255|255. So how do I handle this W98 value?
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu May 23, 2002 2:26 pm Post subject: |
|
|
Try this - i think that it is correct
| Code: |
%a = @regread(the registry you want)
parse "%1;%2;%3;%4",%a
%a = @sum(@sum(@sum(%1,@prod(256,%2)),@prod(65536,%3)),@prod(16777216,%4))
|
this should convert the registry value to the equivalent integer value.
Serge _________________
|
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu May 23, 2002 3:16 pm Post subject: |
|
|
Yeah, that works. Thanks.
Tricky one, I must say.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu May 23, 2002 3:27 pm Post subject: |
|
|
glad that it works - i only know about it because i had to access registry information in the same way.
Serge _________________
|
|
| Back to top |
|
 |
|