Cleanup of ntdll.h

Robert Collins robert.collins@itdomain.com.au
Thu May 30 04:03:00 GMT 2002



> -----Original Message-----
> From: cygwin-patches-owner@cygwin.com 
> [mailto:cygwin-patches-owner@cygwin.com] On Behalf Of Corinna Vinschen
> Sent: Thursday, 30 May 2002 6:23 PM
> To: cygpatch
> Subject: Re: Cleanup of ntdll.h
> 
> 
> On Thu, May 30, 2002 at 06:04:19PM +1000, Robert Collins wrote:
> > > [mailto:cygwin-patches-owner@cygwin.com] On Behalf Of 
> Corinna Vinschen
> > > I changed that now so that all functions are called with 
> Nt prefix.
> > 
> > This is incorrect. BOTH definitions should exist. NtXXX are 
> kernel mode
> > calls, ZwXXX are user mode calls that gate through to 
> kernel mode calls
> > via int 2eh.
> 
> Nope.  From user mode both call types are identical.  There's no need
> to use both forms in Cygwin and since the header is only used inside
> of Cygwin there's also no need to define both variations.  
> One is enough.
> It's all one to me if it's the Zw or Nt version but we should at least
> use always the same.

It was my understandinf that the NtXXX calls cannot be used from user
mode. We should be using the Zw calls.

Rob



More information about the Cygwin-patches mailing list