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
Visual Basic Classic

Avatar of undefined
Last Comment
daypro

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Brook Braswell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
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
Brook Braswell

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
daypro

ASKER
thanks for the help ,i'll try
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes