From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18117 invoked by alias); 19 Nov 2013 22:34:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 18106 invoked by uid 89); 19 Nov 2013 22:34:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from Unknown (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 19 Nov 2013 22:34:15 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id A29B91A0C5D; Tue, 19 Nov 2013 23:34:07 +0100 (CET) Date: Tue, 19 Nov 2013 22:34:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: cygcheck -svc segfaults on Windows 8.1 with cygwin64 Message-ID: <20131119223407.GK2936@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <1384839303.14356.YahooMailNeo@web125203.mail.ne1.yahoo.com> <20131119100343.GA27525@calimero.vinschen.de> <528B93E6.3030802@etr-usa.com> <20131119171330.GF2936@calimero.vinschen.de> <528BAC3D.9070506@cwilson.fastmail.fm> <20131119190343.GG2936@calimero.vinschen.de> <528BBA1A.2080209@cygwin.com> <20131119202958.GH2936@calimero.vinschen.de> <18727143.20131120005904@mtu-net.ru> <20131119215129.GJ2936@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5me2qT3T17SWzdxI" Content-Disposition: inline In-Reply-To: <20131119215129.GJ2936@calimero.vinschen.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-11/txt/msg00351.txt.bz2 --5me2qT3T17SWzdxI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1064 On Nov 19 22:51, Corinna Vinschen wrote: > On Nov 20 00:59, Andrey Repin wrote: > > Greetings, Corinna Vinschen! > >=20 > > > Why isn't there at least an additional non-manifest way to claim > > > compatibility with the current OS? :( > >=20 > > Because this "claim" is informational, or at least it should be. >=20 > But apparently it isn't. It's enforced. >=20 > However, I just had an in-shower inspiration and following up on it > I found a way to access the correct version info despite having no > 8.1 manifest. I'm still playing with it, but I think I have a working > patch by tomorrow. Patch checked in. It was pretty simple, actually. Rather than GetVersionEx from kernel32.dll, just call RtlGetVersion from ntdll.dll. It returns an OSVERSIONINFOEXW structure just as GetVersionExW, but it's not tweaked according to the executable manifest, so the returned info reflects the actual OS info. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --5me2qT3T17SWzdxI Content-Type: application/pgp-signature Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQIcBAEBAgAGBQJSi+dfAAoJEPU2Bp2uRE+gvL8P/A2+mZZV/q70+cLhh1Rbl6Fl Z7bBnYrWwODF9okRhBrI/Dc8gCqHOnv7ObW3Q4cI5mftyaRLQkKEwt0aDCy088Lv rsgj6P13x57wnJ1bHTa3gEPPMXWGpk6QGRisHmr3bL8iUmdRXfdz6Nqd2w5vrwd0 aOjfGSnz/sWo26SzvUR89o1kppqUZsvztEq4Gmze/GM0jnn9FVf2s20htR8VDM62 8MWPNQhZewrhoQIUGH12zfndOixjD2eckFoZSRK1hDhVp4kATRCkPccHXOj1yAT/ /49IPPaESx1oahLEf3Lr0WDTt0QTH9kXQPHGrmGTEVXzytfAIid6zyEtJwehD7rg pyB0FLt/uzi4rrqnh+1C5wMg4X/4BBuNWfW6K8rAQM1pByWDYbnhZabYM0Si5WZ3 3S6OamOR8zghL/sxIUtM2ZrlTZaFKLFMh94JjnbqxwA+s3udZIugtopL1HOxKpPE Th8RotS5F1W2yGQIKs8S0SgJ5OhlJEknNM+NK2Q+y6aU4DQKx8NUWiOhdqXdYqFb ozpir2dL22O8EzJEkAsOLxlpxPpjPRYaP7N7ugaab7pTQ7aJwwrVrxfGFOd3REsp hbecQkh4gqf6nrfRd5Jxp9UmFGROsoRmBLNAC4Hc+QM6SoUlTSXAROQNxF3KDEIc UIl3HBLD2sSYRNfe9jl/ =mnhx -----END PGP SIGNATURE----- --5me2qT3T17SWzdxI--