probem with RegOpenKeyEx on Windows 2003 Itanium(64 bit)

S

sarab

I have a simple program to read registry key using RegOpenKeyEx and
RegQueryValueEx.
The program is compiled on windows 2000.
It works fine on windows 2000.
When run on a Windows 2003 (64 bit) box, RegOpenKeyEx always returns 2 (
File Not Found).

Is this a bug or i am using the wrong api?

regards
-sarab
 
R

Robin Caron

What key are you trying to open? That error indicates the key does not
exist. Remember that 32 bit software on 64 bit Windows reads different part
of the registry than 64 bit applications.
 

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

Top