Refreshing a key in HKEY_CURRENT_USER registry hive without restart

T

tempnode

I'm trying to update a registry key (HKEY_CURRENT_USER -> Control
Panel -> Accessibility -> Keyboard Response -> Flags) and refresh the
registry without restarting explorer.exe (or without logging off).

I've tried UpdatePerUserSystemParameters from user32.dll, which is
supposed to update HKCU, but it won't work.


Is there something about this key that won't allow a refresh like the
rest of HKCU?
 
P

PaulM

What do you mean, refresh??

If you make a change in the registry and want to refresh, just hit F5 or
click on View in the toolbar and click, refresh.
 
T

tempnode

when i say "refresh" i mean i want the changes to take effect. so, i
change the key, and i want that change to take place in the system.
for example, there is a registry key to enable and disable task
manager. once you enter the key, it takes effect immediately, meaning
that if you make the value 1 and press enter, then try to access the
task manager, it won't work; once you revert it by making the value 0,
you can access the task manager again.

that scenario gives an example of what i want to do: make the
registry change to "HKEY_CURRENT_USER -> Control
Panel -> Accessibility -> Keyboard Response -> Flags" and have the
changes take place right away.
 
P

Pegasus \(MVP\)

PaulM said:
What do you mean, refresh??

If you make a change in the registry and want to refresh, just hit F5 or
click on View in the toolbar and click, refresh.

Windows loads the contents of many registry keys at boot time or at logon
time. If you subsequently change one of them then the change has no effect
until you log off and on again. The OP wants to know how force Windows to
propagate the change without him having to log off an on.
 
P

PaulM

Some keys you can not do this, you will have Log/off and back on for the
change to take effect.
 
P

PaulM

You can't, you have to logoff/on or stop and start explorer for the change
to take effect. I don't think there is any other way to force the change to
take effect.

--
 
P

Pegasus \(MVP\)

PaulM said:
You can't, you have to logoff/on or stop and start explorer for the change
to take effect. I don't think there is any other way to force the change
to take effect.

Not necessarily. Take NICs, for example. If you manually modify an NIC's IP
address in the registry then the change won't be effective until you reboot
the machine. However, if you do it through the Control Panel then it happens
without a reboot. In other words, if you know the inner workings then you
may be able to propagate a registry change without logging off.
 
P

PaulM

I write VbScripts and I have not found a way to do it yet. Most you have to
logoff/on or do a soft reboot.

--
 
T

tempnode

actually Paul,

you can update the hive without restarting explorer.exe... and i do
know that some keys require a reboot for the change to take effect.
what determines this?

i think this key may be one that absolutely needs a reset, but is
there a way to block keyboard inputs via registry (disabling keyboard)
without rebooting?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top