Дамп содержимого ветви... Да любой ветви вобщем в реестре

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
private: System::Void ProcessKey(String^ name, TreeNode^ n){
if (name!="") n->Nodes->Add(name);
}
private: TreeNode^ ListRoots(RegistryKey ^ rkey, String^ SName){
TreeNode^ n;
array<String^>^names = rkey->GetValueNames();
IEnumerator^ e = names->GetEnumerator();
n=gcnew TreeNode(SName);
while(e->MoveNext()){
String^ keyName = safe_cast<String^>(e->Current);
ProcessKey( keyName, n);
}
array<String^>^R_names = rkey->GetSubKeyNames();
IEnumerator^ R_e = R_names->GetEnumerator();
while(R_e->MoveNext()){
String^ subR = safe_cast<String^>(R_e->Current);
if (subR!="SECURITY"&&subR!="SAM"&&subR!="Protected Storage System Provider")
n->Nodes->Add(ListRoots(rkey->OpenSubKey(subR), subR));
}
return n;
}