Hey all,
i'm writing a program that adds a binary value to the registry. i am able to create a value, but i can only make it at max 1 byte (00,00,00,00) i need to create something that is more than one byte for example, i need it to look something like this:
00,00,00,00,00,00,00,00,02,00,00,00,58,00,5c,e0,00,00,00,00
if you havent guessed, i'm switching the windows key with another one, so i can disable the start menu for the right flying windows key and use my own code for it.
here's what i have so far:
Private Sub Form_Load()
Dim wshshell
Dim prefix
Set wshshell = CreateObject("wscript.shell")
prefix = "HKLMSYSTEMCurrentControlSetControlKeyboard Layout"
wshshell.RegWrite prefix & "Scancode Map", CLng(1), "REG_BINARY"
End Sub
when you say CLng(1) that will create 01,00,00,00 in the registry, if you just say 1 then it will create 01,00
thanks in advance,
Eric