This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
RE: Cleanup of ntdll.h
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: "'Corinna Vinschen'" <cygwin-patches at cygwin dot com>
- Date: Thu, 30 May 2002 21:03:06 +1000
- Subject: RE: Cleanup of ntdll.h
> -----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