Hey my bose told me to generate the cide that scan the regsitry. What it maens,can somebody explians that,I wnat to know what is shown as o/p.
NoBody Have any idea about Regsistry
Collapse
X
-
Tags: None
-
Registry Subkeys
hey frnds on Form Load, I am displaying the displaying the registry keys & Subkeys.
In this procedure,we have to create object
dim registry as classesroot
dim obj as localmachine
I m importing the namespace
Imports Microsoft.Win32
Error-ClassesRoot,Loc almachine is not a member of registry.
Is there any other namespace also which is to be imported???Comment
-
NoBody Have any idea about Regsistry
hey frnds, I m not getting the answers regaring registry.
I want to know how to retrieve Value & Names of REG_DWORD , REG_BINARY type.
is somebody have idea regarding it???????????/Comment
-
Three Threads merged.
It had not even benn ONE day since your last question. You cannot expect immediate answers from a global community.
Double posting your questions is not acceptable behavior and is against the posting guidelines.
Furthermore, if it has been a few days and you are not receiving any help, the common practice is to re-post to the SAME question thread, to get it moved up to the top of the list in hopes that someone notices it.
As to your question, the Microsoft.Win32 .Registry object is fairly straight forward and MSDN has plenty of examples on the subject. Maybe you should start there and if you have a specific problem, come back and reply to this thread with your issue.Comment
-
hi,
This is just as example i am giving since i have used that in my application but according to ur requirement u should change
Code:public string GetKeyValue() { string key = "hkey_local_machine", subKey = @"System\ControlSet001\Control\COM Name Arbiter", valueName = "ComDB"; return( GetRegistryKeyValue(key, subKey, valueName)); } public string GetRegistryKeyValue(String key, String subKey, String valueName) { RegistryKey rkey = null; if (key.ToLower().Equals("hkey_classes_root")) rkey = Registry.ClassesRoot; if (key.ToLower().Equals("hkey_current_user")) rkey = Registry.CurrentUser; if (key.ToLower().Equals("hkey_local_machine")) rkey = Registry.LocalMachine; if (key.ToLower().Equals("hkey_current_config ")) rkey = Registry.CurrentConfig; if (key.ToLower().Equals("hkey_dyn_data")) rkey = Registry.DynData; if (key.ToLower().Equals("hkey_users")) rkey = Registry.Users; if (key.ToLower().Equals("hkey_performance_data")) rkey = Registry.PerformanceData; if (rkey != null && subKey != null) rkey = rkey.OpenSubKey(subKey); return (rkey.GetValue(valueName).ToString()); }
Originally posted by sonia.sardanahey frnds, I m not getting the answers regaring registry.
I want to know how to retrieve Value & Names of REG_DWORD , REG_BINARY type.
is somebody have idea regarding it???????????/Comment
Comment