From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 095643858D35; Sun, 24 Mar 2024 21:05:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 095643858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1711314345; bh=af64NXmZmDNjUZJw3LiRQ/RDahDphReY/HjuypYortM=; h=Date:From:To:Subject:Reply-To:References:In-Reply-To:From; b=wkYZPklXmRYIOvc4fr/55FuOjMRkz3BoWQSFL68ip/mZwnbhMAiKmikzai/BGMLIW yvdBWvvZ+iu5D8qQ6vzDdAr8MfV3+VTungkLRXghta3pJjz+bcxu6H6c5VONCuC2a8 jMoi9E71hVUxoSpzdhVVVOKdBHvK9Scgj7z8/Ebs= Received: by calimero.vinschen.de (Postfix, from userid 500) id 3F5DAA80F6E; Sun, 24 Mar 2024 22:05:43 +0100 (CET) Date: Sun, 24 Mar 2024 22:05:43 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10? Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <0d8daf74-2861-8b08-b47c-28cf5d3b991f@t-online.de> <538aa134-b079-12ec-76fe-5a60fc77c3ee@t-online.de> <38b3f5df-ea63-8eb4-f0f9-4057c0eeae90@t-online.de> <3bff55cd-f8f2-24a7-8955-8765590a3caf@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3bff55cd-f8f2-24a7-8955-8765590a3caf@t-online.de> List-Id: 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