I have been googling this and have not come along a working solution for an entire day. I don\'t know anything about binary data types (as I\'ve never knowingly used them) a
There is no need to use APIs for this. There is a registry class built into the .NET framework
Try this code and let me know what happens:
Dim rk = Registry.CurrentUser.OpenSubKey("KEY_TO_OPEN", True)
rk.SetValue("BinaryValue", New Byte() {10, 43, 44, 45, 14, 255}, _
RegistryValueKind.Binary)
rk.Close()
You can also read the Registry documentation on MSDN for more information.