adding binary value to registry

tommy916

New member
Joined
Jul 6, 2003
Messages
1
I need a sample code how to add binary value in Hex into the registry. I cannnot find more info about microsoft.win32.registrykey. Ive search all over the net but most are for VB 5&6. I need help ASAP.

Thanks,
Tommy
 
Code:
Dim rk As Microsoft.Win32.RegistryKey
rk = Microsoft.Win32.Registry.CurrentUser.CreateSubKey("Software\Test")
Dim b() As Byte = {1, 2, 3, 4, 5, 6}
rk.SetValue("A Value", b)

will write out a simple byte array.
 
Back
Top