private int check1() { Tree_root root = new Tree_root(); root.name = @"HKLM/System\CurrentControlSet\Control\Session Manager\KnownDlls"; string[] name; Tree_item item; string str; name = REdit.get_name(root.name); for (int i = 0; i < name.Length; i++) { item = new Tree_item(); item.name = name[i]; str = root.name; //MessageBox.Show(str); //type = REdit.get_value("Type", str); item.description = REdit.get_value(name[i], root.name); root.item.Add(item); //MessageBox.Show(item.description); } list1.Add(root); return 0; }
private int check1() { Tree_root root = new Tree_root(); root.name = @"HKLM/Software\Microsoft\Windows\CurrentVersion\Explorer\Browser Helper Objects"; string[] name; Tree_item item; string str; name = REdit.get_sub_key(root.name); for (int i = 0; i < name.Length; i++) { item = new Tree_item(); item.name = name[i]; // MessageBox.Show(item.name); //str = root.name + @"\" + name[i]; //item.description = REdit.get_value("CLSID", str); str = "name=" + CLSID_Contorller.find_name(item.name); str += "\nimagepath=" + CLSID_Contorller.find_imagepath(item.name); item.description = str; root.item.Add(item); } list1.Add(root); return 0; }
private int check1() { Tree_root root = new Tree_root(); root.name = @"HKLM/System\CurrentControlSet\Services"; string[] name; Tree_item item; string str; string type; name = REdit.get_sub_key(root.name); for (int i = 0; i < name.Length; i++) { item = new Tree_item(); item.name = name[i]; str = root.name + @"\" + name[i]; //MessageBox.Show(str); try { type = REdit.get_value("Type", str); if (type == "1") // it's a service { try { item.description = "name=" + REdit.get_value("DisplayName", str); } catch (Exception ex) { item.description = "name=?"; Console.WriteLine(ex.ToString()); } item.description += "\npacketid=" + REdit.get_value("DriverPackageId", str); item.description += "\n"; item.description += "imagepath=" + REdit.get_value("ImagePath", str); root.item.Add(item); } else { //skip; } } catch (Exception ex) { //not type element founded // MessageBox.Show(ex.ToString() + "\n\n" + str); } //MessageBox.Show(item.description); } list1.Add(root); return 0; }
private int check3() { Tree_root root = new Tree_root(); root.name = @"HKLM/SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\"; Tree_item item = new Tree_item(); item.name = "Shell"; item.description = REdit.get_value(item.name, root.name); root.item.Add(item); list1.Add(root); return 0; }
private int check1() { Tree_root root = new Tree_root(); root.name = @"HKLM/System\CurrentControlSet\Control\Terminal Server\Wds\rdpwd"; Tree_item item = new Tree_item(); item.name = "StartupPrograms"; item.description = REdit.get_value(item.name, root.name); root.item.Add(item); list1.Add(root); return 0; }
private int check1() { Tree_root root = new Tree_root(); root.name = @"HKLM/System\CurrentControlSet\Control\Session Manager"; Tree_item item = new Tree_item(); item.name = "BootExecute"; item.description = REdit.get_value("BootExecute", @"HKLM/System\CurrentControlSet\Control\Session Manager"); root.item.Add(item); list1.Add(root); return 0; //return 0; }
private int check1() { Tree_root root = new Tree_root(); root.name = @"C:\Windows\Tasks"; string[] name; Tree_item item; name = REdit.get_file_name(root.name); for (int i = 0; i < name.Length; i++) { item = new Tree_item(); item.name = name[i]; item.description = ""; root.item.Add(item); } list1.Add(root); return 0; }
private int check4() { Tree_root root = new Tree_root(); root.name = @"HKLM/SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; string[] name; Tree_item item; name = REdit.get_name(root.name); for (int i = 0; i < name.Length; i++) { item = new Tree_item(); item.name = name[i]; item.description = REdit.get_value(item.name, root.name); root.item.Add(item); } list1.Add(root); return 0; }
private int check2() { Tree_root root = new Tree_root(); root.name = @"HKCU/Software\Microsoft\Internet Explorer\UrlSearchHooks"; string[] name; Tree_item item; string str; name = REdit.get_name(root.name); for (int i = 0; i < name.Length; i++) { item = new Tree_item(); item.name = name[i]; str = root.name + @"\" + name[i]; str = "name=" + CLSID_Contorller.find_name(item.name); str += "\nimagepath=" + CLSID_Contorller.find_imagepath(item.name); item.description = str; root.item.Add(item); } list1.Add(root); return 0; }
private int check4() { Tree_root root = new Tree_root(); root.name = @"HKLM/Software\Microsoft\Internet Explorer\Extensions"; string[] name; Tree_item item; string itemname; string str; name = REdit.get_sub_key(root.name); for (int i = 0; i < name.Length; i++) { item = new Tree_item(); item.name = name[i]; str = root.name + @"\" + name[i]; str = REdit.get_value("CLSID", str); item.name = str; // MessageBox.Show(str); str = "name=" + CLSID_Contorller.find_name(item.name); str += "\nimagepath=" + CLSID_Contorller.find_imagepath(item.name); item.description = str; root.item.Add(item); } list1.Add(root); return 0; }
//start folder private int check8() { string str; Tree_root root = new Tree_root(); root.name = @"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup"; string[] name; Tree_item item; name = REdit.get_file_name(root.name); for (int i = 0; i < name.Length; i++) { item = new Tree_item(); item.name = name[i]; item.description = ""; root.item.Add(item); } list1.Add(root); return 0; }
private int check7() { string str; Tree_root root = new Tree_root(); root.name = @"HKLM/SOFTWARE\Classes\Protocols\Handler"; string[] name; Tree_item item; //string str; name = REdit.get_sub_key(root.name); for (int i = 0; i < name.Length; i++) { item = new Tree_item(); item.name = name[i]; str = root.name + @"\" + name[i]; item.description = REdit.get_value("CLSID", str); str = "name=" + CLSID_Contorller.find_name(item.name); str += "\nimagepath=" + CLSID_Contorller.find_imagepath(item.name); item.description = str; root.item.Add(item); } list1.Add(root); return 0; }
private int check6() { Tree_root root = new Tree_root(); root.name = @"HKLM/SOFTWARE\Classes\Protocols\Filter"; string[] name; Tree_item item; string str; name = REdit.get_sub_key(root.name); for (int i = 0; i < name.Length; i++) { item = new Tree_item(); item.name = name[i]; str = root.name+@"\" + name[i]; item.description = REdit.get_value("CLSID", str); root.item.Add(item); } list1.Add(root); return 0; }