delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/09/05/17:19:43

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Date: Thu, 5 Sep 2002 12:12:52 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: GetConsoleWindow
Message-ID: <20020905121252.B15737@cygbert.vinschen.de>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <3D74CE7E DOT FC9C5BDF AT ieee DOT org> <3D74E346 DOT 53082DA7 AT yahoo DOT com> <3D7537F8 DOT 1050105 AT netscape DOT net> <3D754D71 DOT 9DB9EEDA AT yahoo DOT com> <20020904111259 DOT C1213 AT cygbert DOT vinschen DOT de> <20020904113230 DOT E1213 AT cygbert DOT vinschen DOT de> <3D75F865 DOT 27083D77 AT yahoo DOT com> <20020904150040 DOT H1213 AT cygbert DOT vinschen DOT de> <3D768405 DOT 122C3339 AT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <3D768405.122C3339@yahoo.com>
User-Agent: Mutt/1.3.22.1i

On Wed, Sep 04, 2002 at 06:07:01PM -0400, Earnie Boyd wrote:
> Corinna Vinschen wrote:
> The w32api isn't Cygwin specific.  It is the plan that was established
> before
> I took over.  What plan do you have?  What plan can we give for others
> to use
> that use the w32api on older platforms?  If you want newer API then set
> the
> _WIN32_WINNT constant as needed within the application.  Sure the same
> could
> be said for older platforms, but that would cause more headache.  It
> seems to
> me that as you've explained it Cygwin could set the constant to -1 and
> survive.

No, it can't due to the problems in commdlg.h/unknwn.h.

If your intend is to follow the way practiced at MS, you have to
set WINVER always to the most recent Windows version.  To compile
explicitely for older platforms requires to set that value by hand.
It's not the other way around.

> > Definitely not.  But I'm probably not good enough in explaining things,
> > I'll let others discuss that.
> 
> Funny, you just said that it was in the previous paragraph.

No, I didn't.  You're mixing two thing which have nothing to do with
each other.  Anyway, the way to go should be:

- Your patch to guard GetCosoleWindow() was correct.

- Set WINVER to 0x0500 if w32api doesn't define any XP/.NET-only
functions/datatypes, to 0x0510 (or is it 0x0501?) otherwise.

- Fix the commdlg.h/unknwn.h problem.

Corinna

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019