RegOpenKeyEx fails on Win 2003 Itanium

  • Thread starter Thread starter sarab
  • Start date Start date
S

sarab

Hi ,
I am having problems accessing the registry using RegOpenKeyEx(). It
returns 2.
The keys are related to MS SQL Server 2000.
Do i need some permissions to access the registry?.

please help.

regards
-sarab
 
I am having problems accessing the registry using RegOpenKeyEx(). It
returns 2.
The keys are related to MS SQL Server 2000.
Do i need some permissions to access the registry?.

probably answer is "yes". You may run regedit and check it for yourself.


B.
 
The permissions are there.
It seems one needs a extra \\ in the begining of the path to access the key.

For e.g to access SOFTWARE\Microsoft SQL
Server\SALES\MSSQLServer\CurrentVersion where the key name is
CurrentVersion, one has to use
\\ SOFTWARE\Microsoft SQL Server\SALES\MSSQLServer\CurrentVersion

This works but i am not sure if they would make such a change.

-sarab
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top