From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,47bc849aad30d586 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-30 10:00:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: achrist@easystreet.com Newsgroups: comp.lang.ada Subject: Re: A standard package for config files is needed Date: Thu, 30 May 2002 10:00:55 -0700 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3CF65AC7.82F494D9@easystreet.com> X-Mailer: Mozilla 4.79 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 References: <3CF3B160.DF10E94F@san.rr.com> <3CF500A2.1A9428E2@san.rr.com> <3CF54B50.9E73654B@easystreet.com> <17cd177c.0205300645.1a465737@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:25015 Date: 2002-05-30T10:00:55-07:00 List-Id: Gautier wrote: > > Are you sure of it ? My impression is that Windows lets the .ini files > in peace, unless the program using the .ini uses the Windows API for > I/O - like any other text file! Sure. If you never use the ini file API for ini files, it will leave it right there AFAIK. If you know that no other application will ever try to access your app's ini file and you make sure that only one copy of your app is running at once, you don't have to worry about simultaneous accesses and updates. If everyone always does everything your way, it will work just fine. However, there are something like a dozen functions in the Windows API for accessing and updating ini file data. Depending on what version of Windows, these functions may cache data, may share data if accesses to the same data come from multiple processes, and MS more or less reserved the right to move the ini file right into the registry without any further ado, if and when they wanted to. IOW, the OS vendor wants you to use their 12+ functions to access this data. If everyone always does everything the MS way, it will work just fine. Al