Is there a way to re-load the registry while running Windows ?

Is there a way to re-load the registry in Windows so that Windows system settings take effect ?
dms@Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

anilmsCommented:
Yes, if you are using Windows NT, you use the regedt32 command instead of regedit command. This allows you to save and restore the registry directly when running Windows NT
0
dms@Author Commented:
It's for Windows 95
0
mirek071497Commented:
I think so you are searching for :

SendMessage( hwnd_broadcast,  WM_WININICHANGE );
0
JavaScript Best Practices

Save hours in development time and avoid common mistakes by learning the best practices to use for JavaScript.

mirek071497Commented:
sorry .

Windows 95: The WM_WININICHANGE message is implemented on the Windows NT platform, but not on the Windows 95 platform. Windows 95 applications should use the WM_SETTINGCHANGE message, which provides equivalent functionality.

good work !
0
mirek071497Commented:
Hi
Are you there ?

0
mirek071497Commented:
Do you need more ?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dms@Author Commented:
Well, it still doesn't seem to work. Windows refreshes the desktop allright, but it doesn't reload the icons !
0
mirek071497Commented:
Why you don't say that you need reload icons !
I will try this today and if I found solution (or not) I submit comment tomorrow or today afternoon.
0
dms@Author Commented:
Well, the basic idea is that I change the location of the Desktop
(default C:\WINDOWS\DESKTOP) in the registry and after this, Windows will have to show the icons of the new directory.
0
dms@Author Commented:
Adjusted points to 220
0
mirek071497Commented:
Yes. This is big problem. I found so probably the only one way to reload icons from HDD is to change icon size from 32 to other and then back to 32. You can test this in properties for screen. I have Polish version so i can't say right names but in the third tab you can find combobox where the icon is listed. You can change then the icon size and apply changes. However you must remember to set this value back ! I don't know now how to do this in delphi, but when I found this then I submit comment.
0
mirek071497Commented:
Hi

Mayby this is not very fine however this is working solution.

uses
  Registry;

procedure TForm1.Button1Click(Sender: TObject);
var
  reg : TRegistry;
  st  : string;
begin
  reg := TRegistry.Create;
  if reg.OpenKey('Control Panel\desktop\WindowMetrics', false) then
    begin
      st := reg.readstring('Shell Icon Size');
      reg.writestring( 'Shell Icon Size', IntToStr(StrToInt(st)+1) );
      SendMessage( hwnd_broadcast, WM_SETTINGCHANGE, 0, 0 );
      reg.writestring( 'Shell Icon Size', st );
    end;
  reg.free;
end;

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.