Anyone know which API function looks inside a given registry key, and lists all its subkeys?
I'm making a mail application, and need this to load a list of profiles.
Printable View
Anyone know which API function looks inside a given registry key, and lists all its subkeys?
I'm making a mail application, and need this to load a list of profiles.
Hothead,
No API does it but you can enumerate through a Key once you position yourself there.
Here is a project I found that may help.
That's almost like what I need. However, I don't want it enumerating the subkey's subkeys or the subkey's parent. I'm sure it can be set this way, I just don't know how yet.
Forgot to post an example of what it's doing.
Under HKEY_LOCAL_MACHINE\SOFTWARE, I have a key named Gitmail. Then I have a key called Profiles under that. Now when I set this program you gave me to list HKEY_LOCAL_MACHINE\SOFTWARE\Gitmail\Profiles, it lists the Profiles key, its subkeys, and its subkey's subkeys. I just want it to show the subkeys that branch directly off the Profiles key.
In other words, instead of it listing this:
Profiles
Account 1
Main Settings
Account 2
Main Settings
I want it to list like this:
Account 1
Account 2
hothead,
You have the code now... Just eliminate the subkeys code.
Ok, I didn't know where it was getting the info. I have it figured out now. Thanks a lot.