PC Review


Reply
Thread Tools Rate Thread

Apply registry changes immediately

 
 
=?Utf-8?B?VHJveSBIZWJlcg==?=
Guest
Posts: n/a
 
      6th Feb 2004
Can anyone tell me how to force an immediate apply of system based registry changes. I have an application written in C# that updates the registry. However I’m forced to logout and log back in for the changes to take effect. I need to figure out how to have an apply button (just like the one in Microsoft power tweak). Any help is greatly appreciated.
 
Reply With Quote
 
 
 
 
DalePres
Guest
Posts: n/a
 
      6th Feb 2004
What specific system settings are you trying to change? There are API
functions that will reload some of them and others can only be read as part
of the user settings upon login. There are still others that will only be
read on startup - so the answer to your question really depends on what it
is you're trying to change.

Dale


"Troy Heber" <(E-Mail Removed)> wrote in message
news:5787E724-2A37-4705-88FB-(E-Mail Removed)...
> Can anyone tell me how to force an immediate apply of system based

registry changes. I have an application written in C# that updates the
registry. However I'm forced to logout and log back in for the changes to
take effect. I need to figure out how to have an apply button (just like the
one in Microsoft power tweak). Any help is greatly appreciated.


 
Reply With Quote
 
=?Utf-8?B?VHJveSBIZWJlcg==?=
Guest
Posts: n/a
 
      6th Feb 2004

I'm trying to apply changes in two different areas (local machine & current user):

1. HKEY_CURRENT_USER\Control Panel\Desktop
2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

If you could point me to the documentation on the API functions to apply the settings I would really appreicate it. I have searched and searched and can't find it.

Thanks for the reply!!

Troy

----- DalePres wrote: -----

What specific system settings are you trying to change? There are API
functions that will reload some of them and others can only be read as part
of the user settings upon login. There are still others that will only be
read on startup - so the answer to your question really depends on what it
is you're trying to change.

Dale


"Troy Heber" <(E-Mail Removed)> wrote in message
news:5787E724-2A37-4705-88FB-(E-Mail Removed)...
> Can anyone tell me how to force an immediate apply of system based

registry changes. I have an application written in C# that updates the
registry. However I'm forced to logout and log back in for the changes to
take effect. I need to figure out how to have an apply button (just like the
one in Microsoft power tweak). Any help is greatly appreciated.



 
Reply With Quote
 
Phil Wilson
Guest
Posts: n/a
 
      7th Feb 2004
For that first set, it looks like you're hacking the regstry instead of using
the SystemParametersInfo API.
--
Phil Wilson [MVP Windows Installer]
----
"Troy Heber" <(E-Mail Removed)> wrote in message
news:B0FBAE41-63AA-4EE2-B335-(E-Mail Removed)...
>
> I'm trying to apply changes in two different areas (local machine & current

user):
>
> 1. HKEY_CURRENT_USER\Control Panel\Desktop
> 2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
>
> If you could point me to the documentation on the API functions to apply the

settings I would really appreicate it. I have searched and searched and can't
find it.
>
> Thanks for the reply!!
>
> Troy
>
> ----- DalePres wrote: -----
>
> What specific system settings are you trying to change? There are API
> functions that will reload some of them and others can only be read as

part
> of the user settings upon login. There are still others that will only

be
> read on startup - so the answer to your question really depends on what

it
> is you're trying to change.
>
> Dale
>
>
> "Troy Heber" <(E-Mail Removed)> wrote in message
> news:5787E724-2A37-4705-88FB-(E-Mail Removed)...
> > Can anyone tell me how to force an immediate apply of system based

> registry changes. I have an application written in C# that updates the
> registry. However I'm forced to logout and log back in for the changes to
> take effect. I need to figure out how to have an apply button (just like

the
> one in Microsoft power tweak). Any help is greatly appreciated.
>
>
>



 
Reply With Quote
 
DalePres
Guest
Posts: n/a
 
      7th Feb 2004
Troy, Phil is right. Use SystemParametersInfo along with WM_SETTINGCHANGE
message. You don't really say what you want to change on or about the
desktop, but if it is video settings/colors, etc. you might start with
these:

Microsoft had an article on MSDN a few years ago entitled Creating A
ScreenInfo Class. You may want to find an old MSDN disk and try to track
that down. It includes descriptions of using EnumDisplaySettings and
ChangeDisplaySettings.

As for the Services area, that's outside my experience. Hopefully someone
else can point you in the right direction for that one.

Dale


"Phil Wilson" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> For that first set, it looks like you're hacking the regstry instead of

using
> the SystemParametersInfo API.
> --
> Phil Wilson [MVP Windows Installer]
> ----
> "Troy Heber" <(E-Mail Removed)> wrote in message
> news:B0FBAE41-63AA-4EE2-B335-(E-Mail Removed)...
> >
> > I'm trying to apply changes in two different areas (local machine &

current
> user):
> >
> > 1. HKEY_CURRENT_USER\Control Panel\Desktop
> > 2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
> >
> > If you could point me to the documentation on the API functions to apply

the
> settings I would really appreicate it. I have searched and searched and

can't
> find it.
> >
> > Thanks for the reply!!
> >
> > Troy
> >
> > ----- DalePres wrote: -----
> >
> > What specific system settings are you trying to change? There are

API
> > functions that will reload some of them and others can only be read

as
> part
> > of the user settings upon login. There are still others that will

only
> be
> > read on startup - so the answer to your question really depends on

what
> it
> > is you're trying to change.
> >
> > Dale
> >
> >
> > "Troy Heber" <(E-Mail Removed)> wrote in message
> > news:5787E724-2A37-4705-88FB-(E-Mail Removed)...
> > > Can anyone tell me how to force an immediate apply of system

based
> > registry changes. I have an application written in C# that updates

the
> > registry. However I'm forced to logout and log back in for the

changes to
> > take effect. I need to figure out how to have an apply button (just

like
> the
> > one in Microsoft power tweak). Any help is greatly appreciated.
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Immediately propogate registry change to IE without restarting it smart.spooky@gmail.com Windows XP General 3 19th Feb 2008 07:59 AM
Immediately propogate registry change to IE without restarting it smart.spooky@gmail.com Windows XP Help 3 19th Feb 2008 07:59 AM
Immediately propogate registry change to IE without restarting it smart.spooky@gmail.com Windows XP Internet Explorer 1 19th Feb 2008 07:54 AM
Please apply the MS04-011 patch IMMEDIATELY to protect your system against W32.Sasser worm Kenrick Fu Windows XP General 4 2nd May 2004 02:41 PM
Apply Registry Key to All Users Steve Microsoft Windows 2000 Registry Archive 0 19th Nov 2003 05:30 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:49 PM.