dbTalk Databases Forums  

Accessing HKEY_LOCAL_MACHINE in registry

comp.databases.gupta comp.databases.gupta


Discuss Accessing HKEY_LOCAL_MACHINE in registry in the comp.databases.gupta forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Krysia
 
Posts: n/a

Default Accessing HKEY_LOCAL_MACHINE in registry - 07-14-2003 , 12:38 PM






Hi there

I'm attempting to access the registry using the following:

Call SalUseRegistry(TRUE,
"\\\\HKEY_LOCAL_MACHINE\\SOFTWARE\\ODBC\\ODBC.INI" )
Call SalGetProfileString("", "Language", "", strTest2, "OMOAD")

but no luck!!!

I can access HKEY_CURRENT_USER fine, but I specifically need to access
HKEY_LOCAL_MACHINE.

Any help would be much appreciated.

Oh yes, running Centura Version 1.5.1-PTF6 and Windows 2000 (Version
5.0)

Thanks
Krysia

Reply With Quote
  #2  
Old   
Lars Raube
 
Posts: n/a

Default Re: Accessing HKEY_LOCAL_MACHINE in registry - 07-15-2003 , 03:28 AM






Hy Krysia,

check out the centura newsgroup on news://talkto.centurasoft.com

you can only use the HKEY_CURRENT_USER with the centura standard functions.
If you want to got other keys try
http://www.iceteagroup.com/Download/free/Registry.zip

greetz

Lars



"Krysia" <kniekrasz (AT) fairbairncapital (DOT) com> schrieb im Newsbeitrag
news:b4fdffb7.0307140441.110f7861 (AT) posting (DOT) google.com...
Quote:
Hi there

I'm attempting to access the registry using the following:

Call SalUseRegistry(TRUE,
"\\\\HKEY_LOCAL_MACHINE\\SOFTWARE\\ODBC\\ODBC.INI" )
Call SalGetProfileString("", "Language", "", strTest2, "OMOAD")

but no luck!!!

I can access HKEY_CURRENT_USER fine, but I specifically need to access
HKEY_LOCAL_MACHINE.

Any help would be much appreciated.

Oh yes, running Centura Version 1.5.1-PTF6 and Windows 2000 (Version
5.0)

Thanks
Krysia



Reply With Quote
  #3  
Old   
Klaus-Dieter Remmler
 
Posts: n/a

Default Re: Accessing HKEY_LOCAL_MACHINE in registry - 07-15-2003 , 05:09 AM



Hallo Krysia,

sorry but with the function SalUseRegistry() you are not able to
access HKEY_LOCAL_MACHINE.
If you want to read this part of registry you must use the windows API
functions. You can import these functions from a DLL or import these
function directly from windows API (e.g. look at MSDN topic registry
functions):
http://msdn.microsoft.com/library/de...e_registry.asp
I don't know if there is a library for CTD that encapsulates these
function in classes or functions.
Hope it helps
Greeting from Germany

Dr. Klaus-Dieter Remmler

Reply With Quote
  #4  
Old   
Krysia
 
Posts: n/a

Default Re: Accessing HKEY_LOCAL_MACHINE in registry - 07-16-2003 , 06:21 AM



Hi Lars

Thanks very much ... works perfectly using registry.apl!!!

Regards
Krysia

"Lars Raube" <raube (AT) rzr (DOT) de> wrote

Quote:
Hy Krysia,

check out the centura newsgroup on news://talkto.centurasoft.com

you can only use the HKEY_CURRENT_USER with the centura standard functions.
If you want to got other keys try
http://www.iceteagroup.com/Download/free/Registry.zip

greetz

Lars



"Krysia" <kniekrasz (AT) fairbairncapital (DOT) com> schrieb im Newsbeitrag
news:b4fdffb7.0307140441.110f7861 (AT) posting (DOT) google.com...
Hi there

I'm attempting to access the registry using the following:

Call SalUseRegistry(TRUE,
"\\\\HKEY_LOCAL_MACHINE\\SOFTWARE\\ODBC\\ODBC.INI" )
Call SalGetProfileString("", "Language", "", strTest2, "OMOAD")

but no luck!!!

I can access HKEY_CURRENT_USER fine, but I specifically need to access
HKEY_LOCAL_MACHINE.

Any help would be much appreciated.

Oh yes, running Centura Version 1.5.1-PTF6 and Windows 2000 (Version
5.0)

Thanks
Krysia

Reply With Quote
Reply




Thread Tools
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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.