public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygcheck -svc segfaults on Windows 8.1 with cygwin64
Date: Tue, 19 Nov 2013 22:34:00 -0000	[thread overview]
Message-ID: <20131119223407.GK2936@calimero.vinschen.de> (raw)
In-Reply-To: <20131119215129.GJ2936@calimero.vinschen.de>

[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]

On Nov 19 22:51, Corinna Vinschen wrote:
> On Nov 20 00:59, Andrey Repin wrote:
> > Greetings, Corinna Vinschen!
> > 
> > > Why isn't there at least an additional non-manifest way to claim
> > > compatibility with the current OS? :(
> > 
> > Because this "claim" is informational, or at least it should be.
> 
> But apparently it isn't.  It's enforced.
> 
> 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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2013-11-19 22:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19  5:35 Gabriel Marcano
2013-11-19 10:03 ` Corinna Vinschen
2013-11-19 16:38   ` Warren Young
2013-11-19 17:13     ` Corinna Vinschen
2013-11-19 18:23       ` Charles Wilson
2013-11-19 19:03         ` Corinna Vinschen
2013-11-19 19:21           ` Larry Hall (Cygwin)
2013-11-19 20:30             ` Corinna Vinschen
2013-11-19 20:36               ` Corinna Vinschen
2013-11-19 21:06               ` Andrey Repin
2013-11-19 21:51                 ` Corinna Vinschen
2013-11-19 22:34                   ` Corinna Vinschen [this message]
2013-11-19 23:41               ` Jim Garrison
2013-11-20  8:59                 ` Csaba Raduly
2013-11-19 23:08       ` Warren Young
2013-11-20 10:04         ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131119223407.GK2936@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).