delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/03/24/17:06:31

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C375B385841F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1711314389;
bh=8SmHebAducgXIvnMTHuaAUt1hDXdUN/dTN5Fvh9xgjY=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=T8ZJKct8Bu6F6CKyMiP4aUcnvmrerYkwkNVyVr2aeU30df1wVHewLwcqQYqehuudW
/dCI8Zk6Nx2aJVqA69cp7Vkfasw8TIkw2wYGIrGSeTPx6xzneMgI6pYWtopXLomhYv
/5Z8N4WDZG3Y9MLr6Ud+VCmDGESeGNcM7aVugbP4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 095643858D35
Date: Sun, 24 Mar 2024 22:05:43 +0100
To: cygwin AT cygwin DOT com
Subject: Re: GetVersionEx() depreciated, what should be used instead for
Windows 7/8/10?
Message-ID: <ZgCVp4_1Em16PO4-@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <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>
<ZfszwBeYDxxApO9v AT calimero DOT vinschen DOT de>
<538aa134-b079-12ec-76fe-5a60fc77c3ee AT t-online DOT de>
<ZfxPIbU5K_VgX5hZ AT calimero DOT vinschen DOT de>
<38b3f5df-ea63-8eb4-f0f9-4057c0eeae90 AT t-online DOT de>
<Zf9D8b8lqoSYDLtH AT calimero DOT vinschen DOT de>
<3bff55cd-f8f2-24a7-8955-8765590a3caf AT t-online DOT de>
MIME-Version: 1.0
In-Reply-To: <3bff55cd-f8f2-24a7-8955-8765590a3caf@t-online.de>
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Mar 24 15:42, Christian Franke via Cygwin wrote:
> Corinna Vinschen via Cygwin wrote:
> > On Mar 23 10:57, Christian Franke via Cygwin wrote:
> > > On Mar 21 16:15, Corinna Vinschen via Cygwin wrote:
> > > > On Mar 21 09:58, Christian Franke via Cygwin wrote:
> > > > > > > ..
> > > > I just gave it a try on W11. The results are even more funny than I
> > > > anticipated:
> > > > 
> > > > ...
> > > > 
> > > > So, yeah, with your observations especially on older W10 versions and
> > > > with 8.1 doing the same thing, I guess we can safely drop the extra call
> > > > to RtlGetNtVersionNumbers now.
> > > Or:
> > > Keep RtlGetVersionNumbers, compare result with RtlGetVersion and emit debug
> > > output if both differ. This would allow to diagnose a possible future
> > > reappearance of the issue.
> > Good idea! Do you want to create a patch?
> > 
> 
> I tried, but without success. Unfortunately debug_printf() does not work
> because wincap.init() is called before get_cygwin_startup_info() which calls
> strace.activate().

small_printf should work, just needs "\r\n" in the Windows console.

But, anyway, nothing speaks aginst just sticking to the current code.
It works and probably continues to work...


Thanks,
Corinna

-- 
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