Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Registry

Posted on 1998-07-26
2
Medium Priority
?
231 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 100 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

772 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