How does Windows deal with the desktop icons. What I mean
is....if you have Auto Arrange turned off move a couple desktop
icons to some other arbitrary location then shut down Windows
start her back up the icons are right where you left them. Is this
X,Y location kept in the registry, it must be, but where!?
Posted on 2001-08-11 14:02:48 by bcraven
This I would like to know too. I run a dual screen solution and
it happens that windows looses control and positions the
icons randomly. When I restore the registry backup everything
is ok again.
Posted on 2001-08-11 17:10:11 by KetilO

How does Windows deal with the desktop icons.
X,Y location kept in the registry, it must be, but where!?


Positions of the icons stores in the registry only after u refresh desktop (F5).
So if u moved some icos and did not refresh it,
old positions still are in ViewView2 parameter,
and after reboot restores from there.

In Jeffrey Richter's book "Programming Applications for Microsoft Windows" fourth edition
there is one good example how to save and restore desktop icons positions:
"The Desktop Item Position Saver (DIPS) Utility"
It's C, but some time i rewrote it in asm with minor changes. So all credits goes to Jeffrey

The DLL has shared section, so don't forget add /SECTION:shared,RWS to linker options.
(see BuildDll.bat).
Posted on 2001-08-12 05:56:47 by Four-F

Thank you kindly for the info.

I spent several hours last night looking for
this icon placement info and did come acrossed
ViewView2 in the registry but when I moved
icons and then refreshed the registry no values
changed. I did not know that the desktop had
to be refreshed to save the new positions.

Thanks also for the download.:grin:

I'm going to go play around with it.:alright:
Posted on 2001-08-12 07:42:32 by bcraven
I found this on MSN... hope it will help...

When you restart your computer with multiple-display support enabled, your desktop icons may not appear on a secondary monitor.

Or, when you are using multiple monitors, your desktop icons may not be saved when you quit Windows.

WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing Keys and Values" Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" Help topics in Regedt32.exe. Note that you should back up the registry before you edit it. If you are running Windows NT or Windows 2000, you should also update your Emergency Repair Disk (ERD).

This issue may be temporarily resolved by deleting the following registry key:

HKEY_USERS\DEFAULT\Software\Microsoft\Internet Explorer\Desktop\Old WorkAreas
This is not a permanent fix. It may happen again after a period of time and the registry key must be deleted each time the issue comes up.
Posted on 2001-08-15 16:59:34 by adapix
Thanks adapix

One day will come that I cannot restore registry backup
because I just have installed new software.
Posted on 2001-08-15 18:39:25 by KetilO