1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ReOpenKeyEx returns ERROR_FILE_NOT_FOUND in 64 bits machine

Discussion in 'C' started by rag84dec, May 28, 2008.

  1. rag84dec

    rag84dec New Member

    Joined:
    Jul 17, 2007
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,283
    Likes Received:
    364
    Trophy Points:
    83
    Use the WOW64 flag for 64 bit OS
     

Share This Page