Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

Registry

Once I make a change in the registry, such as the wallpaper, How do I get the registry settings to automatically take affect without rebooting?
Thanks
0
bilcrete
Asked:
bilcrete
1 Solution
 
web_crusherCommented:
You cant - but on screen saver issue - you just have to put the scr name in the win.ini file with the "writeprivateprofilestring" api - that it will take effect without reboot!
0
 
abelCommented:
You CAN!
Just use SendMessage with the hwnd parameter set to HWND_BROADCAST and send the message WM_SETTINGCHANGE. That way you can inform the whole system of a systemwide change to the registry, win.ini or system.ini. Make sure you point the lParam to the correct string containing the section or the key in the registry you changed.

Regards, Abel
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now