Solved

Registry

Posted on 1998-07-26
2
225 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

805 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