X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4315A3858414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1711011548; bh=W+fJvxPIrRGC5UthycslVVAW6jO8CgUggAddx7bPGIQ=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=q+NAhzIUs24SQz7BnYNfLFd+R1q8P7/80OmUMArd2dCaOirHNGqWXf7qyNzFjJ8Hm tlvv/n6Ijoaf43gUaYKVr1VbgD8Wzp4QMCiu9mDRWo0cct9kURmnusvJPhk2asloAj jcaUeuBBo5NevsoFt3jbAJPRlMGmFriF6DCT/8II= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 763193858D1E ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 763193858D1E ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711011528; cv=none; b=NTE4CwZt6ww1bVhlAlEZzTkAo0tYehIxg4kQC0t1vqgrGaQIP8zSXimvMVjEIL0I68wZVBr9GLW0HZo+CQk9PrB4hBicxtkKOaM9/8hI0/n9RdtUZoj/Zfcav47o3L6q/nm7dp9kB+4XZ4pKjUDpwrOP4F2FgvSCP4o1IGBDdNY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711011528; c=relaxed/simple; bh=nN7YuV6UgXuuB/tQjxAcJgGDQGxsAVVr+ZlxJfRIDkU=; h=Subject:To:From:Message-ID:Date:MIME-Version; b=pNWA6CjRi0HrXJye4SR0y03+UopI0wJajHsSIm1Qz//NTRH5DB9tmdXokjTHdSVSmcQefmF1zodLwImXeOw/T+ZAc9gsU/ebqisf0aVwGU75EUtPNVjzOaNMIuzc3TW2XA3s/cN2BDwaE1DkE36Xx5oD9+Yow/JPekprzRCnTUU= ARC-Authentication-Results: i=1; server2.sourceware.org Subject: Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10? To: cygwin AT cygwin DOT com References: <0d8daf74-2861-8b08-b47c-28cf5d3b991f AT t-online DOT de> Message-ID: <538aa134-b079-12ec-76fe-5a60fc77c3ee@t-online.de> Date: Thu, 21 Mar 2024 09:58:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 SeaMonkey/2.53.16 MIME-Version: 1.0 In-Reply-To: X-TOI-EXPURGATEID: 150726::1711011524-54FA2986-38428592/0/0 CLEAN NORMAL X-TOI-MSGID: 5c4b6105-be49-4f5f-b3b0-c170cc371ae2 X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00, FREEMAIL_FROM, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP 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-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Christian Franke via Cygwin Reply-To: Christian Franke Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Corinna Vinschen via Cygwin wrote: > On Mar 20 12:39, Christian Franke via Cygwin wrote: >> Corinna Vinschen via Cygwin wrote: >>> You have to create an application with an application manifest not >>> supporting your OS. >>> >>> 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) > Please check on commit 48511f3d3847c. It was a real, existing problem > at the time. I wouldn't have added the RtlGetNtVersionNumbers call > just for fun. > Of course. I learned about the existence of RtlGetNtVersionNumbers via this commit and was curious, which Windows versions were affected but found none. This suggests that only some early Win10 versions were affected. -- Regards, Christian -- 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