Ed,

> I am struggling to get to all the occurances of a key ORACLE_HOME
> I am using Tregistry. but I only every find the path the first occurance
> Can someone point me in the right direction ?

Are you trying to find all sub-keys named ORACLE_HOME no matter what keys 
they are under?

You will need to set up a recursive search. Start at one of the two 
top-level keys (HKEY_LOCAL_MACHINE and HKEY_USERS).  Use GetKeyNames to see 
if your desired subkey name is there.  Then use that same list of key names 
to move to each key in turn, then do the recursion to look under those key 
names.

If this is not clear, then you will need to learn more about the registry 
and about recursion.  Sorry, I don't have time to set up a lesson on those 
topics.  My code also does not use TRegistry for things like that: I use the 
Windows API directly.

Rory Daulton
[email protected] 

Reply via email to