Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   ReOpenKeyEx returns ERROR_FILE_NOT_FOUND in 64 bits machine (http://www.go4expert.com/forums/reopenkeyex-returns-errorfilenotfound-t10864/)

rag84dec 28May2008 12:10

ReOpenKeyEx returns ERROR_FILE_NOT_FOUND in 64 bits machine
 
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

shabbir 28May2008 16:37

Re: ReOpenKeyEx returns ERROR_FILE_NOT_FOUND in 64 bits machine
 
Use the WOW64 flag for 64 bit OS


All times are GMT +5.5. The time now is 03:58.