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