I've been developing a Library that allows the ability to set and read values from the registy. Everything works great except I can't seem to set the correct Registry value for Binary. For Example, if I open regedit, and modify a BINARY key, let's say I put 10. The Read part of my code returns 10. However, when I set the value of 10, my registry shows 0a

I'm using the API that I keep seeing all over the place.

lngResult = RegSetValueEx(HKEY_LOCAL_MACHINE, "Testing", 0, REG_BINARY, bytData(0), UBound(bytData()) + 1)

All I want is to see the same result as if I open up and "modify' a value though RegEdit.

Any ideas?

Once I get that working, I'll post my code up so that maybe someone else can take advantage of it.