Link to home
Create AccountLog in
Avatar of daypro
daypro

asked on

vb6 write registry key and value

'---registry export text begin

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts\E0200407]
"Ime File"="Abc.IME"
"Layout Text"="Test Message"
"Layout File"="kbdus.dll"

'----registry export text end

Hello ,

how to use vb6 code to write registry key
for example
 write key "E0200407" to
 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts

and then write value of
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts\E0200407]
like below

"Ime File"="Abc.IME"
"Layout Text"="Test Message"
"Layout File"="kbdus.dll"

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Brook Braswell
Brook Braswell
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of daypro
daypro

ASKER

thanks,but it's to complex for me ,and i have problem to adjust it
to write below registry


can expert give me simple example  code just exactly  how to
write below registry key and value
thanks

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts\E0200407]
"Ime File"="Abc.IME"
"Layout Text"="Test Message"
"Layout File"="kbdus.dll"

SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of daypro

ASKER

thanks for the help ,i'll try