• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

Registry Refresh 257 Points

I am submitting this question again as the link to microsoft didn't answer my question. I am offering some serious points this time so please don't link me this time. I would like some sample code if this is possible.
Here is the question:
Why do some systems write to the registry and act on this immediately,
while others have to be rebooted ? I have a windows95 system and a windows98
system. When i write to the registry expecting a result with the 95 it is immediate in writing and then does what it is supposed to instantly, but i have to reboot to get the same results with the 98. It will write to the registry in 98 immediately but won't act on this until rebooted. Is this the system itself or the windows version ?
If there is a way to make the 98 system act as the 95 by forcing something like a refresh or whatever then i am would appreciate knowing how using visual basic 5.0
Thanks
canon
0
Canon
Asked:
Canon
  • 3
  • 3
  • 2
1 Solution
 
KDivadCommented:
I think the API SendMessage with the parameter WININISETTINGSCHANGE (or something like that) may help. The problem is (in part) that some apps (including Explorer) don't recheck the settings each time they execute a command. In Win98, tweaking the registry to eliminate the context menu is immediate, but turning it back on requires reboot.

It's not much, but I hope this helps some.
0
 
CanonAuthor Commented:
Morning Kdivad:) You are right about the registry being written immediately, but then requires a reboot.
I will wait for more information on the "API SendMessage with the parameter
WININISETTINGSCHANGE" that you have made a reference to.
If you find this information for the complete idiot in your archives i will gladly give it a try. I will try anything to keep from having to reboot each time !
Thanks for the comment !
Canon
0
 
KDivadCommented:
I can't find it (which only means that I have misnamed the parameter), but I wish you luck!
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
CanonAuthor Commented:
Kdivad nooooooo problem. This is the experts exchange and someone must have ran across this problem before right? Thanks for the input !
Canon
0
 
BelatucadrosCommented:
I know what you're talking about, I made a program to get rid of/get back Run, find, recent docs, etc...but it never works right away in win 98, but in win 98 you can force the user to restart explorer without rebooting, although any icons in they're system tray won't be there...(DUN, ICQ, Norton antivirus, etc) the programs will still be running though, if you receive an ICQ message it'll be back in the systray, DUN is a problem though, etiher way, this helps. It might work in win95, but I haven't seen it work as of yet...heh. But you said you only need it for 98, so this should be great ;)
'Here:
Shell ("rundll32 shell32,SHExitWindowsEx -1")
'There ya go! Hope this helps. Happy coding.
0
 
BelatucadrosCommented:
I doubt you'll mind, but I meant "their" instead of "they're" ;)
0
 
CanonAuthor Commented:
Hey, it works better than what i had. Thank You !
Canon
0
 
BelatucadrosCommented:
Hey, if you find a way for the icons to stay in the systray do you mind telling me? :) Same goes to you, if I find it I'll get in touch.
anachronoxz@hotmail.com
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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