This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
RE: Minor additions to winbase.h and ntdll.def
- From: "Hartmut Honisch" <hartmut_honisch at web dot de>
- To: <cygwin-patches at cygwin dot com>
- Date: Mon, 16 Dec 2002 14:39:53 +0100
- Subject: RE: Minor additions to winbase.h and ntdll.def
> > Winbase.h
> > - Changed NMPWAIT_WAIT_FOREVER constant from (-1) to 0xffffffff (like in
> Why?
I have a piece of own code that passes NMPWAIT_WAIT_FOREVER as a parameter
to CallNamedPipe. The compiler gave me a warning because the function
prototype expected a DWORD value which by definition cannot be negative. So
it's obviously a (minor) bug in cygwin's header files, which I thought the
cygwin folks might be interested in to fix.
> Looking at Microsoft's header files and making changes to w32api is not
> allowed.
Technically, I didn't do it that way. I just mentioned that to avoid
discussions like that one, since cygwin's headers shouldn't differ from
Microsoft's headers regarding the value of numeric constants.
> You'll have to find the MSDN documentation and provide the
> references.
There are no references in MSDN that show the numeric value of that
constant - at least I can't find any. So I wonder how (-1) got there in the
first place.
Hartmut