Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com From: "Gerald S. Williams" To: Subject: Re: True case-sensitive filenames Date: Thu, 23 Jan 2003 09:49:44 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Pavel Tsekov wrote: > There is. Use a debugger+disassembler and you are free to find out what > it does. You may also want to try to visit ReactOS' homepage. I tried that, but encountered something like JMP *406100 that couldn't be followed (the memory page couldn't be read). I was using GDB--maybe I should switch to WINDBG. Your second suggestion was quite helpful, though. As I had suspected, there is a FileRename operation in the Native API, which Microsoft has taken steps to hide (they only show the operation that allows you to change the short name). This is probably the answer (although currently ZwSetInformationFile/ NtSetInformationFile and FileRenameInformation aren't in any of the Cygwin w32 libs--I may need to install the DDK to try it). I'm pretty sure this will solve the issue of renaming both files and directories. There is also another issue: setting of the current working directory. I'm not certain, but it may be possible to do this using NtSetInformationProcess to set the following fields of the current process environment block: ProcessParameters->CurrentDirectoryPath ProcessParameters->CurrentDirectoryHandle If the ReactOS implementation matches NT's (and it probably does in this case), RtlSetCurrentDirectory_U normally does this. However, it uses a case-insensitive open to find the directory. -Jerry