1

When I/We change the taskbar settings with right click on taskbar > taskbar settings the changes apply immediately but when I make changes in registry settings I have to reset explorer.exe to apply the changes.

Is there any API to apply registry changes immediately? or another idea?

mopebi
  • 79
  • 7

1 Answers1

0

As far as I know there is no easy way in general, since each application has to implement some way to notice registry changes. So if the application only reads the registry key at startup you are out of luck, but there is an event system in Windows to notify (willing) applications about registry changes. Have a look at this

SendNotifyMessage( HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0 );

Other maybe helpful links:

Jarrrkob
  • 11
  • 1
  • 3
  • thanks for answer, I called these functions immediately after changing the registry but the changes didn't apply... – j.doe Feb 24 '20 at 06:32