Solved

Registry

Posted on 1998-07-26
2
227 Views
Last Modified: 2010-05-03
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
Comment
Question by:bilcrete
2 Comments
 
LVL 1

Accepted Solution

by:
web_crusher earned 50 total points
ID: 1466720
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
 
LVL 39

Expert Comment

by:abel
ID: 1466721
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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question