Get rid of old .ini files - redirect them to registry!

If you remember, loooong time ago (Windows 3.x) we used .ini files for setting almost everything.

These files were often placed in %WinDir% (which is quite disaster when you try to implement LUA). What can you do about it (instead of logging, creating security templates and so on)?

There is functionality built-in Windows called Initialization file mapping, that allow you to "upgrade" your registry-unaware software -> this software will now be able to use registry :)

How to do it? It is quite simple - the best documentation I found is here:

http://www.oreilly.com/catalog/manwinreg/chapter/ch08.html#32309

Published Wed, Mar 1 2006 9:22 by martin
Filed under: ,

Comments

# re: Get rid of old .ini files - redirect them to registry!

Don't think it's a good idea to use the registry which is itself on its way to deprecation.

.NET applications use .config files which look like .ini files in XML format. The more things change the more they stay the same...

Friday, August 18, 2006 2:00 PM by argie

# re: Get rid of old .ini files - redirect them to registry!

The registry isn't going anywhere, argie.

Monday, November 26, 2007 3:41 PM by MR

# re: Get rid of old .ini files - redirect them to registry!

Thank you. very nice

Friday, July 10, 2009 8:30 PM by en güzel oyunlar

# re: Get rid of old .ini files - redirect them to registry!

Thank you admin

Friday, July 10, 2009 8:32 PM by mp3 dinle

# re: Get rid of old .ini files - redirect them to registry!

Thank you articles . very good admin

Friday, July 10, 2009 8:33 PM by koxp