delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/03/20/10:27:24

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ADDB43858CDB
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1710944841;
bh=DeTiL2j739v2el6BAKLWFvb4/xXjcWKWxl88SgUl0wc=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=kDl1cjinSTaFYK5pH3a5kz/d8PBQtJvx1MHySTFWC2mN9ut+SdTNSp5DuZHTU1mKL
u9UPs1Cr6+MSOIRwhbPUy3oDNL++pX5+W7bCsgjH3Wk39UH0bQrv6A/HEcMXPDZ/wN
UUrlHI2I9K2A99fNNo9FF3o7b8Mla/W4gNPTyhic=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5B0B13858CD1
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5B0B13858CD1
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710944792; cv=none;
b=bznKL9r959nj9W99obmRbQwbhKjMGf8UIQ2bxbpKKOb+C0bIZyEX8rZml/lNNF+h3xLLBZAE+4pGWMzC01jK2t6kP2A6Kh7tgnvKWJ3gK9sm4AY1Si2JdUJd+LKgfdI+obsPfjXzDlWD3BPoA0Ch3Kw4YITUkd/HZ0Au+SlwZwE=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1710944792; c=relaxed/simple;
bh=TbhdzZg9xJ8bVEapzVdensur3VYkoBdgKQH/aRuWlTM=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=VMpk7MFzqyYD6zVXv2Orc79YNz22zUCzrmdLNEdcaj275eTHSa4ckz17VcvuHJ3Q5u/2epuzyzcjS+gYcQzmah1BVAfkpkn7Ixj+NMSo1cDjxONJzBEa3nhVZ0Cz3aoPMGg0YpEHtnQIQ1Gn/NcfD8eWcZkojltC28Icol2rnX0=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-UI-Sender-Class: f2cb72be-343f-493d-8ec3-b1efb8d6185a
X-Gm-Message-State: AOJu0Yxvhnnuhlu/A3HysQspDCF3UZj7iEbkP8c+ZcA4ILPQY8IupQN3
CHDXF2pCMm/x0NaTfakTpObP+a0TWJiK6noic0JZ6Fh0W29CbZfr2sQZUQZSd4t+jvdYZ0sMK4T
2exh3mTxA/L/uBftWFYOhgkJ0xBA=
X-Google-Smtp-Source: AGHT+IHrsGXrgv5K2u9a4iQ3LIUAPAF+Kdrxi4b4Dozd7lAabXftjkUi/hdG9pyEwoymiYUBbmrMLi5dOo8u4RqwhaU=
X-Received: by 2002:a2e:b8cb:0:b0:2d4:aa55:72db with SMTP id
s11-20020a2eb8cb000000b002d4aa5572dbmr9813016ljp.19.1710944788481; Wed, 20
Mar 2024 07:26:28 -0700 (PDT)
MIME-Version: 1.0
References: <CALXu0UdrjFfhrBmBPNYepvMJ3hL7CPf1n6HEowxZgOxwdoy1TA AT mail DOT gmail DOT com>
<b47b7092-716a-c626-a14d-e5847bc86926 AT t-online DOT de>
<CANV9t=S2BJ2d-_zNm3ZgVeerQ+ZEONQ4fjN1MXc6JVp+Gvrxsg AT mail DOT gmail DOT com>
<CALwydEs5ZTYqSxfZOp_hWobWQxFEeLGio8WoUCwTAM2eaph_sA AT mail DOT gmail DOT com>
<CANV9t=QHLHyv_jvvrCREpyrEX=JqmTdQvnmfUXbSKuvMrhHn9A AT mail DOT gmail DOT com>
<Zfm7ZqZBdMBaoEOM AT calimero DOT vinschen DOT de>
<0d8daf74-2861-8b08-b47c-28cf5d3b991f AT t-online DOT de>
In-Reply-To: <0d8daf74-2861-8b08-b47c-28cf5d3b991f@t-online.de>
Date: Wed, 20 Mar 2024 08:26:01 -0600
X-Gmail-Original-Message-ID: <CANV9t=RzYjxnf3qzJjaG6iGmS7zjS_JQk2Or+fO8zfB8dMMjKQ AT mail DOT gmail DOT com>
Message-ID: <CANV9t=RzYjxnf3qzJjaG6iGmS7zjS_JQk2Or+fO8zfB8dMMjKQ@mail.gmail.com>
Subject: Re: GetVersionEx() depreciated, what should be used instead for
Windows 7/8/10?
To: cygwin AT cygwin DOT com
X-Provags-ID: V03:K1:4jMEnkjtHDE/P6YhyjsnlW9SHQ4ZxVHtMBQqS8PbnRr1Yd6gOOp
hHWsAU33AuglBI33Jeeh7kJZXggNA7/KSpEiWFq7U5Pk+OaD56A/cEfw8Jx4V8q9K7jUoYk
RKUelZhfRekg9ECYXJ1Lj92qU7gl8xv7UWX8sAM6R5kV9bObmQOy89RwaagqFIdYQUqnkR7
LcZN6/d1RTvlBW7gw3RSA==
UI-OutboundReport: notjunk:1;M01:P0:+eePRghXsuY=;db5kK1NzjPAlQYiZ1IXKLwoJnxi
Q+Bp3Ok4IEYL4dlcfaZ3hFiAkDcVxJ4FaRTpdOxb8xIsUIUDv6e5guDqmouVwTWrASS+bR6WF
/MFw30oyaCCpqHKwx43tzd2jtEyi1FIu0mAkruRrObcmOj1ucadZHLJ7Ab+BKeX1YF/BrkPbM
5mj4V1su5aml7LqSL3NrUvfpk8Upsm1kycvCQiBSSLIY90elD9vvkhvEh71H6LVX3lT+7RZbe
ailTXMt1tc9kLE78dVBePULZnnGRdfMrJLIUZlRFVwHgZlQPqCYfMwnFcWZxg4LEDjGApmQIZ
k1zz2fzqMB4UEd0+/bQFFgGcI7ER1YW2MvnISKLVrgH9zdUzzJ3kjjfpXCze7ELRCBkn/gKvn
WYD1o2VX3qRmZuKg1Ro3/zCnwlbBQDUfs8u5MR2jiztKpcH4sfupglnvRy9UxEZDUCHNUeRK6
hZx7UaW9bKQE+vlWMw8VDV7RhcwDFo1Jsmr4w4ob51vFh+voPArtIPjRzsNKh/6TpkLLLzXGR
ifsbLywoIkKK1j72KmzcpyicSnJR7LDjTg4snN9le/dm/HcEuSWxQXu4dT4RzubPMy3Y5LHj0
15rBQPxgCmt5ln4laUrqjPQUR7J/Bh7j8vGj3hR6h3jgpji0vZfb7HKE6z4EWE8pkdtYqRS9B
S2rZ3mO6Pw9sxzfXUhDv5T7Ksh2hf/A45mS913pvFVrx7mQeSXz2jzXGKEYCqgTxA7n7TcTad
K+amb8mrIapjKN47NWFugSKTnulKbxK/4758Zzdnz4tVPVn3QgjLpZ6DZPJTewblSvyZPz5PO
ofgxPACHX8ftJqcn4viuNV2uIbhx8/maSs2Yit/nq22RQ=
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Bill Stewart via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Bill Stewart <bstewart AT iname DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 42KEROm81146098

On Wed, Mar 20, 2024 at 5:40 AM Christian Franke wrote:

Corinna Vinschen via Cygwin wrote:
>
> > For Cygwin apps, this occured when you built, say, an executable under
> > Windows 8.1 before Windows 10 support was added to the Cygwin toolchain:
> > the manifest linked to the Cygwin executable didn't yet contain a GUID
> > entry for Windows 10 support.
> >
> > In this case, RtlGetVersion returns an OS version 6.3 even when running
> > under the 10.0 kernel.  This behaviour exists back 'til Windows Vista.
>
> Could not reproduce the latter on Win10. I tested with recent Win10 and
> Win11 and also found a Win10 1511 (and Slackware 1.1.2, Win3.1, OS/2,
> ...) in my VM image museum.
>
> Regardless of the exe manifest, RtlGetVersion and RtlGetNtVersionNumbers
> return the correct versions:
> 10.0.22621 (Win11 22H2)
> 10.0.19045 (Win10 22H2)
> 10.0.10586 (Win10 1511)
>
> Without a manifest, GetVersionEx returns:
> 6.2.9200 (Win8)


Thanks for testing. That was my recollection (RtlGetVersion is not subject
to manifesting).

Bill

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

- Raw text -


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