ReOpenKeyEx returns ERROR_FILE_NOT_FOUND in 64 bits machine

Go4Expert Member
28May2008,12:10   #1
rag84dec's Avatar
Code:
if( RegOpenKeyEx( HKEY_LOCAL_MACHINE, TEXT(RegKeyPath.c_str()),
      0,
      KEY_READ,
      &a_KeyHandle) == ERROR_SUCCESS )
Hi,
For the above mentioned code ... RegOpenKeyEx works fine in the 32 bits machine but fails in 64 bit windows can anyone correct me?

Thanks
Go4Expert Founder
28May2008,16:37   #2
shabbir's Avatar
Use the WOW64 flag for 64 bit OS