bag number to folder name (folder options)

  • Thread starter Thread starter zeus
  • Start date Start date
Z

zeus

I spent all day trying to figure out what is going on with the folder
options and reached to the point where a bag number under the
HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags\ is
inserted the first time a folder is opened (not created). After that
this same folder uses the same Bag number even if you delete the key
from the registry and/or delete the folder. Somehow once a folder is
created it is associated with a steady bag number.
My problem is that I want to automatically (via VB) change the folder
options of a given folder (e.g. the view setting or sort order). The
problem is that I couldn't find a function (not even between API
functions) which would return me the bag number of a folder name. It is
certainly stored somewhere (unfortunatelly not is the Bag key) but
where.

Does anyone know how this thing works?

Thanks

Vassilis Tavoultsidis.
 
There is no reason to tell you this. It is none of your business how a folder stores it's settings. As a result code written for 95 will work on XP despite different underlying mechanisms.

See interfaces like iFolderView to do what you want correctly.

If you have a problem and you solution is to edit another's program's settings then you have the wrong solution.
 
Back
Top