ReOpenKeyEx returns ERROR_FILE_NOT_FOUND in 64 bits machine

rag84dec's Avatar, Join Date: Jul 2007
Go4Expert Member
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
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Use the WOW64 flag for 64 bit OS