Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3C6DF94A.2079DCC0@windriver.com> Date: Fri, 15 Feb 2002 22:16:42 -0800 From: Doru Carastan Organization: Wind River, Inc. X-Mailer: Mozilla 4.78 [en] (WinNT; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Registry freedom References: <1013760405 DOT 2121 DOT ezmlm AT cygwin DOT com> Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit Hello everybody, I believe it is time to break free from using the registry. It doesn't allow for multiple versions to coexists, which creates a nightmare when it comes to packaging Cygwin with another product. I've been rebuilding cygwin1.dll for a while with a custom shared memory id and registry section and I know that it is possible to have a given cygwin1.dll version coexist with its modified clone. Why not using GetModuleFileName() to retrieve the path to the dll and look around it for an mtab like ASCII file. Once the DLL path is retrieved the mtab file can be searched in $dllDir/../etc/:$dllDir. If it is missing then assume that there are no custom settings and use the defaults. I wonder if this can be done. Does anyone see any technical problems? Thank you, Doru Carastan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/