Cleanup of ntdll.h

Corinna Vinschen cygwin-patches@cygwin.com
Thu May 30 04:41:00 GMT 2002


On Thu, May 30, 2002 at 09:03:06PM +1000, Robert Collins wrote:
> It was my understandinf that the NtXXX calls cannot be used from user
> mode. 

That's a misunderstanding.  They are intentionally identical in user mode.

> We should be using the Zw calls.

...because...???

Anyway, they *are* identical from the Cygwin DLL point of view.  The
calls are the same.  They don't point to different entry points in user
mode.  So it's just a point of taste how to call these functions.

The following is my taste:

IMHO, we should use the Nt calls.  When I first introduced usage of
native NT calls I called them NtXXX since that the name of the function
is sort of self explaining.  IMHO.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.



More information about the Cygwin-patches mailing list