probem with RegOpenKeyEx on Windows 2003 Itanium(64 bit)

  • Thread starter Thread starter sarab
  • Start date Start date
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
 
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.
 
Back
Top