How to retrieve the ORACLE_HOME location from Registry Editor through VC++ irrespective of ORACLE Version???

Thanks