// JP opened flex table

Click to See Complete Forum and Search --> : make windows read registry settings


mcnamara
April 24th, 2007, 05:06 AM
Hello,
As you know if you make changes in windows registry then the changes will take affect only after you restart windows. It means that windows reads settings at startup. Is there any way to make windows reread these settings so that they take affect without restarting? Thanks

Marc G
April 24th, 2007, 08:41 AM
It depends on which settings you are changing.
What are you trying to do?

mcnamara
April 24th, 2007, 08:49 AM
I'm changing path of desktop folder

Marc G
April 24th, 2007, 09:03 AM
Did you try to use SHSetFolderPath (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shgetspecialfolderlocation.asp).

mcnamara
April 24th, 2007, 09:33 AM
No, I didn't know this function I'll try it. Thanks

mcnamara
April 24th, 2007, 01:03 PM
Thanks the function works well

Marc G
April 25th, 2007, 08:59 AM
You're welcome :wave:

mcnamara
April 26th, 2007, 05:13 AM
In fact after using shsetfolderpath I used shchangenotify to refresh dektop window. I think that if I just change registry key without using shsetfolderpath and then call shchangenotify I should get the same result

Marc G
April 29th, 2007, 03:34 PM
It's better to you use the SHSetFolderPath so you are sure the correct key in the registry will get updated.

mcnamara
April 29th, 2007, 03:50 PM
Yes I agree with you. After calling these functions the memory used by explorer.exe is very high ad CPU load gets about 50%. Is there anything that can be done to solve these issues?

Marc G
April 30th, 2007, 08:31 AM
That's strange ... i don't see a reason why explorer would starting eating CPU cycles.
Did you try it on another test machine?

mcnamara
April 30th, 2007, 09:19 AM
Yes I tried. It's the same

//JP added flex table