473,396 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

RegOpenKeyEx fails on Win 2003 Itanium

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


Nov 16 '05 #1
2 2770
On Wed, 05 Nov 2003 00:48:53 GMT, sarab wrote:
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.
Nov 16 '05 #2
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

"Bronek Kozicki" <br**@rubikon.pl> wrote in message
news:1v*****************************@40tude.net...
On Wed, 05 Nov 2003 00:48:53 GMT, sarab wrote:
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.

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Christian McArdle | last post by:
REQUEST FOR DISCUSSION (RFD) unmoderated group comp.os.ms-windows.programmer.64bit This is a formal Request For Discussion (RFD) to create comp.os.ms-windows.programmer.64bit as an unmoderated...
3
by: VJK | last post by:
This question is related to Windows registry key opening. Please refer to the following two lines of VC++ code printf ("queryRegistrySetting:%s - %s - %s\n", subElement, variableName,...
20
by: Sion Roberts | last post by:
While porting our application to HP/UX 11.23 Itanium, I came across this situation where the compiler acts differently to any other UNIX C/C++ compiler that I have come across in the last 10 years...
22
by: EP | last post by:
When running my asp.net hosting service (asp.net without IIS), on server 2003 with IIS not installed, I get the following when trying to process a request. "System.DllNotFoundException: Unable to...
25
by: John Gibson | last post by:
Hi, all. I need to upgrade my dual Xeon PostgreSQL engine. Assuming similar memory and disk sub-systems, I am considering a Quad Xeon system vs. a Dual Itanium for PostgreSQL. I believe that...
8
by: bhochstetler | last post by:
I am needing to build python 2.5 on Windows XP x64 Windows Server 2003 sp1 Platform SDK and am not finding anything documented on the process to use. Has anyone had any success with this? If so has...
14
by: csgrimes1 | last post by:
Anyone know where else I can download 2.6 for x64 windows? Thanks!
0
by: vickyvick | last post by:
Hi, I'm using Regcreatekeyex() to query a value, the frequency of using this function is very high and I was wondering if I could use the Regcopenkeyex function to optimise the code,Please leave...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.