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 Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Mikkel Rostock" To: Subject: RE: Windows hardening and system paths Date: Mon, 15 Aug 2005 14:56:42 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <43005573.3F987AED@dessent.net> Hello Brian, Thanks for a quick answer! However, I have searched all over to find out where to add the path, and as you state "just put it in the path" - but where? - In Windows registry or in a Cygwin config file? Mikkel Rostock wrote: > Cygwin uses some DLL-resources in Windows, but in my case, these DLLs reside > in another location than the usual Windows system directory, so how can I > tell Cygwin to (also) look for Windows resources in a different place than > the usual system folder? Cygwin doesn't know or care where DLLs are, it does not replace the Windows dynamic linker. The same rules apply for the search path of DLLs for Cygwin as for any other program. The MSDN LoadLibrary() API documentation details this. In short, just put it in the path. > I can see, when I run the cygpath -W or cygpath -S that the Windows paths > are /cygdrive/x/WINNT and /cygdrive/x/WINNT/SYSTEM32. Those I would probably > want to change. When you run cygpath -W, the result is the direct output of the GetWindowsDirectory() function, converted to posix form. . If that function returns C:\WINNT then that's where Windows thinks its directory is. If this is not correct then whatever method you did to relocate this directory seems very suspect. I do know that cygpath -W works correctly when the Windows directory is not the stock location, as my current system has it in a custom place. But I did this with a response file during installation, so Windows has always known of this location from the start. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/