This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Add FILE_FLAG_FIRST_PIPE_INSTANCE to <w32api/winbase.h>
- From: "Conrad Scott" <Conrad dot Scott at dsl dot pipex dot com>
- To: "Earnie Boyd" <Cygwin-Patches at Cygwin dot Com>
- Cc: <cygwin-patches at cygwin dot com>
- Date: Fri, 21 Jun 2002 14:26:56 +0100
- Subject: Re: Add FILE_FLAG_FIRST_PIPE_INSTANCE to <w32api/winbase.h>
- References: <03bf01c2191a$af67ba50$6132bc3e@BABEL> <3D1317FE.EBB92CF3@yahoo.com>
"Earnie Boyd" <earnie_boyd@yahoo.com> wrote:
> MSDN says that this is Win2000 SP2 and XP only. So you need to
guard it
> with the appropriate WINVER constant.
Earnie, I'm a bit confused about these WINVER guards. The use of a
new Win2000 SP2 and XP only flag like this is not a compile-time but a
run-time issue, i.e. I should be able to compile a program using such
a flag on any platform and the application should act check at
run-time whether the flag is supported on whatever it is running on.
So, to use such a flag in a program, it seems I would need to add a
#define WINVER into the compilation to get access to the flag and then
add code (as I have) to check the windows version at run-time when
using the flag.
Given this, it doesn't seem much point having such WINVER guards. Am I
missing something here?
// Conrad