delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/06/07:18:27

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20090806044706.GA2009@ednor.casa.cgf.cx>
References: <20090806044706 DOT GA2009 AT ednor DOT casa DOT cgf DOT cx>
Date: Thu, 6 Aug 2009 12:18:10 +0100
Message-ID: <416096c60908060418p70329409q751c2a3735167998@mail.gmail.com>
Subject: Re: mintty doesn't run on NT4 due to lack of GetConsoleWindow
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

2009/8/6 Christopher Faylor:
> I spent much of the day trying to resurrect my Windows NT4 system and
> now that I finall have it back, I just tried to run mintty and noticed
> that it seems to be using GetConsoleWindow. =C2=A0That's not allowed on N=
T4.
> I get an error that says:
>
> "The procedure entry point GetConsoleWindow could not be located in the d=
ynamic link library KERNEL32.dll"
>
> This means that this entry point isn't available on Windows NT4.
>
> Andy would it be possible to avoid calling this function when it isn't
> available?

If you build mintty from source on 1.7, the workaround code with that
call is omitted, so this particular issue will go away as soon as 1.5
goes dead and I release a 1.7-compiled mintty. (Been too lazy to
dual-package.)

However, I suspect NT4 will also barf at "SetLayeredWindowAttributes",
and there might be others. I guess the way to work around such issues
is via GetModuleHandle and GetProcAddress?

If you think it's worth the effort and you want to be the guinea pig,
I'd have a go at making mintty run on NT4. I don't want to set up NT4
myself though.

(And to be honest I don't see the point in Cygwin 1.7 still supporting
NT4. Anyone willing to stick with an OS that's been unsupported for
five years should be more than happy to stick with Cygwin 1.5.)

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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