Start
here[
^], then take a look at the following example, which demonstrates how to retrieve the subkeys of this key, and prints their names to the screen:
[Visual Basic]
Imports System
Imports Microsoft.Win32
Class Reg
Public Shared Sub Main()
Dim rk As RegistryKey = Registry.Users
PrintKeys(rk)
End Sub
Shared Sub PrintKeys(rkey As RegistryKey)
Dim names As String() = rkey.GetSubKeyNames()
Dim icount As Integer = 0
Console.WriteLine("Subkeys of " & rkey.Name)
Console.WriteLine("-----------------------------------------------")
Dim s As String
For Each s In names
Console.WriteLine(s)
icount += 1
If icount >= 10 Then
Exit For
End If
Next s
End Sub
End Class
source:
http://msdn.microsoft.com/en-us/library/microsoft.win32.registry%28v=vs.71%29.aspx[
^]
I hope it will be helpful.