Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Message-ID: <3D774D48.44F382AA@yahoo.com> Date: Thu, 05 Sep 2002 08:25:44 -0400 From: Earnie Boyd Reply-To: cygwin-developers AT cygwin DOT com X-Accept-Language: en MIME-Version: 1.0 To: cygwin-developers AT cygwin DOT com Subject: Re: GetConsoleWindow 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> <20020905121252 DOT B15737 AT cygbert DOT vinschen DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Corinna Vinschen wrote: > > > 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. > Well, yes, but for w32api that would not be logical. At least this thread has pointed some doco weaknesses that I need to address. Yes, if you want to use the newer API functions then you must be aware to set WINVER to the version you wish to support. MS must do this for each generation of new compilers to support newer OS's. If give the developer the freedom to not think about backward compatibility, and as evidenced there is little. We are smarter than that, so we choose to let the developer set the version h[im|er]self, I.E.: the developer is forced to think about the new functionality w.r.t. backward compatibility of older OS versions. > each other. Anyway, the way to go should be: > > - Your patch to guard GetCosoleWindow() was correct. > I'm glad to see we agree here. > - Set WINVER to 0x0500 if w32api doesn't define any XP/.NET-only > functions/datatypes, to 0x0510 (or is it 0x0501?) otherwise. > That is a Cygwin specific change. If you wish to use functions supported by 0x0500 then Cygwin must specifically redefine the WINVER constant. > - Fix the commdlg.h/unknwn.h problem. > I'll have to look further into this one. Earnie.