Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Registry

4 views
Skip to first unread message

Alex

unread,
Feb 27, 2004, 11:12:07 AM2/27/04
to
I would like to get the value of an item in the registry. How can I do?

Exemple I would like this registry key :
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\Bias


Paul Attryde

unread,
Feb 27, 2004, 11:42:30 AM2/27/04
to
Alex" <A...@a.com> wrote in message
news:q%J%b.20270$253.1...@news20.bellglobal.com...

> I would like to get the value of an item in the registry. How can I do?
>
> Exemple I would like this registry key :
> HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\TimeZoneInformation\Bias
>
>

You've got 2 options - code it yourself using API calls, or get a 3rd party
product to do it for you
Info on the first is on my website (www.attryde.com/clarion), or you can get
the registry library from
http://ourworld.compuserve.com/homepages/jeffnjones/

--
Paul
(look at ORGANISATION field in header for email)
[message posting using news.individual.net]


Alex

unread,
Feb 27, 2004, 3:19:38 PM2/27/04
to
Thx

"Paul Attryde" <m...@privacy.net> a écrit dans le message de news:
c1ns06$1ktmli$1...@ID-161168.news.uni-berlin.de...

Eddie Sizemore

unread,
Feb 27, 2004, 6:04:46 PM2/27/04
to
Alex, if you are using c55 or c6 you have a third option.

In C55 GetReg is a function in c55util.clw in the libsrc dir. Along with a
lot of other usefull stuff. To use c55util you have to include three files
in you app. You have to include c55util.inc in the map. You have to
include c55utilEquates.inc before global includes. Finally you add
c55util.clw as an external source in the project editor.

In C6 GetReg is part of the rtl.

HTH

"Paul Attryde" <m...@privacy.net> wrote in message
news:c1ns06$1ktmli$1...@ID-161168.news.uni-berlin.de...

Paul Attryde

unread,
Feb 28, 2004, 12:21:43 PM2/28/04
to
"Eddie Sizemore" <esize...@spamqx.net> wrote in message
news:i2Q%b.134333$jk2.548861@attbi_s53...

> Alex, if you are using c55 or c6 you have a third option.
>
> In C55 GetReg is a function in c55util.clw in the libsrc dir. Along with
a
> lot of other usefull stuff. To use c55util you have to include three
files
> in you app. You have to include c55util.inc in the map. You have to
> include c55utilEquates.inc before global includes. Finally you add
> c55util.clw as an external source in the project editor.
>
> In C6 GetReg is part of the rtl.
>

Test it thouroughly beforehand though - the last time I looked at GetReg in
5.5 it definately had problems with some of the registry data types. IIRC
it didn't handle REG_SZ_MULTI correctly, along with a couple of others
(binary data maybe?)
If all you're doing is strings/bytes then it should be OK

Eddie Sizemore

unread,
Mar 1, 2004, 10:35:48 PM3/1/04
to
Paul, thanks for the heads up. Only strings for me so no problems.

"Paul Attryde" <m...@privacy.net> wrote in message

news:c1qilm$197rvd$1...@ID-161168.news.uni-berlin.de...

0 new messages