Mail Archives: cygwin-developers/1998/04/12/23:30:14
Christopher G. Faylor wrote:
> > Opening a file in posix mode is just NtCreateFile() (ZwCreateFile())
with
> > OBJ_CASE_INSENSITIVE in object attribute structure unset.
>
> Hmm. Have you actually managed to trace the system call? I don't have
> a debugger which allows that although I know that there are such things
> available.
>
No, of course :-) I can't set a breakpoint in csrss.exe :-) But it's not
neccessary - it's enough to read a description of ZwCreateFile() in NT DDK
to understand how csrss (called by kernel32.dll) works. With this kernel
call I can create/delete files and directories case-sensitively. But it's
impossible to chdir case sensitively - "current directory" is just a
per-process environment option, maintained by csrss in insensetiv way :-(
PS. csrss - Client-Server Runtime Subsystem, the heart of Win32 api's base
services implementation.
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia.
- Raw text -