I want to create an application which does the same stuff as regedit, but simpler as i just want to enumerate the Keys in the form of a tree. I am trying to use RegOpenKeyEX to open a key and then RegEnumKeyex to enumerate it, but i keep getting the same key enumerated, even though i am incrementing the Index value.
Second question is, will recursion be helpful in this application.
Thanks in advance
Perhaps this code sample will help you understand what went wrong in your code:
http://msdn.microsoft.com/en-us/library/ms724256(v=vs.85).aspx.
As for the second question. Recursion will probably help you in this application in order to build the Keys tree that you usually see in regedit on the left.