Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do "personalized" folders *really* work

Status
Not open for further replies.

carpeliam

Programmer
Mar 17, 2000
990
US
each windows-created folder within My Documents, for example "My Music" or "My Pictures", has a hidden Desktop.ini file with, among other things, something like this:

Personalized=39
PersonalizedName=My Pictures

Where exactly is it pulling the number 39 from? Is that in the registry somewhere, or is that a reference to a DLL (like how IconIndex references shell32.dll, for example)?

I looked at shell32.dll (where everything else seems to come from), but I don't see it there. If it is inside a DLL, can I successfully add a string to that DLL? Or would changing the DLL make Microsoft think that I'm hacking the OS, and either fail some sort of check or otherwise reset the DLL on me?

Not even MSDN seems to specify an API for the Desktop.ini file... It seems to be obscure and MS-specific.

I'm also trying to figure out how to do the same kind of thing with the "LocalizedResourceName" field... I know that it references shell32.dll, but I'd like to know if I will break my OS by simply adding a line of text in there.

Liam Morley
lmorley@wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top