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,375
    Likes Received:
    388
    Trophy Points:
    83
    Use the WOW64 flag for 64 bit OS
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice