you'll need to keep a struct like:
struct key{
std::string name;
std::string value;
vector <key> subkeys;
};
then you can just recurse the tree and fill it in, with a root struct, or just 
5 structs that have the roots of the keys.
On Jan 4, 2010, at 10:55 AM, Gopi Krishna Komanduri wrote:

> Hi,
>    I need to access registry and need to store the values of the key and 
> subkeys along with values in a data structure . For example ,
>   I Should access HKCU/software , I should get the details of all keys under 
> software like Microsoft etc and also the internal subkeys of all the ubkeys. 
> ALong with that I need to get the values of all subkeys. 
> 
> Can anyone suggest how can I achieve this.
> 
> I designed a data strucure like this
> 
> struct keyDetails
> {
>     char *keyName;
>     char *keyvalue;
> };
> 
> struct MyTree
> {
>     char *Name;
>     vector<struct keyDetails > MyKeys;
>     vector<struct MyTree *>subkeys;
> };
> 
> But somehow I am unable to get what I need.
> 
> Please throw some light on this.
> 
> Thx,
> --Gopi
> 
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
> http://in.yahoo.com/
> 
> [Non-text portions of this message have been removed]
> 
> 



[Non-text portions of this message have been removed]



------------------------------------

To unsubscribe, send a blank message to 
<mailto:c-prog-unsubscr...@yahoogroups.com>.Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/c-prog/join
    (Yahoo! ID required)

<*> To change settings via email:
    c-prog-dig...@yahoogroups.com 
    c-prog-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    c-prog-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to