* TEIniFile - Enhanced TIniFile component. * * Derived from Borland Delphi's TIniFile component by * Mark R. Holbrook - System Dynamics - 10/16/1995 * * No warranties expressed or implied are made about the usefulness or * destructive nature of this component. The author assumes no liability for * any damage to your computer hardware or software that this component may * cause. This component has been tested under Windows95 and * and appears to work as expected. * * This component is released into the public domain. I only ask that you * distribute it with these comments intact. If you feel included to donate * for it's usefulness, please contact me at the email address below. * * I would appreciate comments, questions, enhancements, and observations * about this code. Please feel free to write: markh@sysdyn.com * * This version has all the functionality (since it is derived from) of * TIniFile. It has been modified to have the following additional * features: * * Search the entire .INI file for an item. * Replace an item in a .INI file. * Delete an item from a .INI file. * Add an item in a .INI file. * * These four features are notable in that they will work with SYSTEM.INI. * The [386Enh] section of SYSTEM.INI contains multiple lines of the form: * * device=... * * These lines mess up the normally used Windows functions * GetPrivateProfileString and WritePrivateProfileString since they are * looking for unique identifiers. Since the ReadString and WriteString * methods of TIniFile are based on those functions they mess up too. * * The methods to add, delete, and replace .INI file items accomplish there * actions by making copies of the file. This means that your directory will * have back copies of the .INI file you modify. It is up to you to decide if * you want to clean these up or leave them around. * * I wrote this to go along with TInstall from Bill White. Our application * must have a .386 VXD installed to work correctly. Every .INI component * I looked at did not handle the wierdness of SYSTEM.INI. So here it is...