So I can pretty much read any information I need from the registry that I need but this last bit. Let me explain what I'm doing and then perhaps someone can tell me why this specific code isnt reading this value or a better method to look it up. I appreciate any help given in advance!
So I'm trying to identify entries in the registry and put names to them, my example is this, if I read information from
"Software\Wow6432Node\Microsoft\Internet Explorer\Toolbar"
I'll get some keys with a name like {8E5E2654-AD2D-48bf-AC2D-D17F00898D06}, well I'd like to identify this specifically within my application so what I'm doing is going to HKCR\CLSID and finding that name and located in the default value, is the name of this entry. However if I try to pragmatically pull that value from the default I get an error. The reason I get this error is because "(Default)" in VB shows as "". And my application doesnt like this at all so it refuses to pull that information based on not getting past the name itself. Is there a better way of pulling this information to identifying these toolbars that have the crazy name entries? This is of course an example but to the same end.
Otherwise the following code below is my example test function I'm trying to get to work. Thanks :)
So I'm trying to identify entries in the registry and put names to them, my example is this, if I read information from
"Software\Wow6432Node\Microsoft\Internet Explorer\Toolbar"
I'll get some keys with a name like {8E5E2654-AD2D-48bf-AC2D-D17F00898D06}, well I'd like to identify this specifically within my application so what I'm doing is going to HKCR\CLSID and finding that name and located in the default value, is the name of this entry. However if I try to pragmatically pull that value from the default I get an error. The reason I get this error is because "(Default)" in VB shows as "". And my application doesnt like this at all so it refuses to pull that information based on not getting past the name itself. Is there a better way of pulling this information to identifying these toolbars that have the crazy name entries? This is of course an example but to the same end.
Otherwise the following code below is my example test function I'm trying to get to work. Thanks :)
Code:
Dim pRegKey1 As RegistryKey = Registry.ClassesRoot
Dim pRegSubKey1 As RegistryKey
pRegSubKey1 = pRegKey1.OpenSubKey("CLSID\" & "{D73E76A3-F902-45BD-8FC8-95AE8E014671}\")
Dim strParts() As String = pRegSubKey1.GetValueNames ' Pulls all of the subkeys out of my selectioon
Dim strParts2() As String = pRegSubKey1.GetValue("CLSID\" & "{D73E76A3-F902-45BD-8FC8-95AE8E014671}\" & strParts(0)) ' SHOULD be grabbing default here
RichTextBox1.Text = RichTextBox1.Text & strParts2(0) & vbCrLf ' Displaying it to me
pRegSubKey1.Close()