Registry Changes

I need to change the key...
 HKEY_USERS\DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\EnableAutodial

I have some code that is supposed to allow reads and writes to the registry, but it will not change this key properly.  I dont know what kind of key it is, but it looks like
01 00 00 00
 and I need to switch it to
00 00 00 00
and back to
01 00 00 00
with command buttons.

Please point me in the right direction.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

See the following microsoft KB article:

HOWTO: Use the Registry API to Save and Retrieve Setting 


Tom_HickersonAuthor Commented:
I need more that that.  Give me the specific code I need to use and what type of key that is.

should have said please...
Hi tom

Here is the best answer available to u.

use api functions

regkeyopen open the registry key and have handle to that

regsetvaluex to set the registry key value

regkeyclose handle to close the handle.

use this method for edit values in registry.

use these codes in different command button and see working.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.