I wonder if MS's poor INI model (ie no load,process, store, but rather all 3 steps for each INI operation) is part of the reason they started pushing the registry so hard way back when.Įdit: I was just messing around with it and found another interesting line:ĬLSID= What's left of the run time is i/o-bound file manipulations. You can probably find this online by searching MSDN for 'desktop.ini'Īs an interesting random comment, for a project at work I had a program that read from a 'long' ini file using the windows API (on Win2k), and the INI access (only reading each entry in the ini a single time) was taking around 75% of the program's runtime, and making a custom INI class (including support for TEA encryption/decryption and much nicer enumeration routines) took it down to around 0% (rounded appropriately) of the program's total runtime. Also, there is information in the latest platform SDK documentation. To find more about Desktop.ini, just search your computer - by default, a lot of system folders have such a file filled with interesting settings. This way, you could make a folder full of zip files (for example) appear to be a copy of the 'Administrative Tools' folder from the control panel or the like, but double clicking files will still execute the normal action for that file type. You could do a similar thing for all the files in the folder using an INI section called This can make manipulating the contents difficult if the admin tries to use the command line tool, because the folder will show it's real file name in the command line but it's "Localized Resource Name" in the GUI. ShellClassInfo would be "LocalizedResourceName" which forces the folder's name to appear to be something depending on the language of the windows version viewing it (so things are properly translated) despite what the actual folder's name is.Īn example would is the string "System Tools" in my US English version and would be a similar string in any other language. Otherwise, the admin's machine might not be able to read it in order to apply the specified settings.Īnother entry you might want to add under. If you use desktop.ini, make sure you give "everyone" permission to read the 'Desktop.ini' file despite blocking their permission to everything else.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |