This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GetConsoleWindow


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@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]