Microsoft recommends using SaveSetting and GetSetting to write to and read from the Registry rather than using ini files.