I am creating a registry editing tool: I am thinking of using a Key Object to represnt each key. I know the basics of creating objects and setting their propeties however i would like to include a subKeys object too, which will enumerate the subkeys each of which will be represented by its own key object.

However i am not sure how this is possible because it would require my ;program to go through the whole registry and enumerate all the keys.

Does anyone know anything about objects within objects, and how to create them.