X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85DAF3858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1710866014; bh=tCILQyF9/mZtGFFvMzbGxkjE75vpTz/DzsBVGFTFyHQ=; 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=Antx2hIwdc5/kJnHhTUGi5LTZ+dfKZezvVUWF5mz6w+p/vprQRnRYtd+BYScgsKZj jX9G76jBvXaLqIDWlBToKMHme67nFayGnyuXLcgMdCCeyeKwu7PxTwUIixigWECOrB oYyZoLf48iNXcq7PqO6Zklto5jTdem/5J+FZN3hc= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 35FD43858CDB ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 35FD43858CDB ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710865991; cv=none; b=u+wiLT9yy0EHR10wzZiUT5OlpCPNXBIK9Li/vMLOKXwScG67K2UMCFfEcuymlwRXoTocM1bZP2uV+2YLhA4e+EoOyfHyNwOYezVOq+lDurmR0JEXdExtDSCPx1O6XaNXv49d05cpzYBmw9gvHZzt9j7kv595prmnQK4YzCdfO0E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710865991; c=relaxed/simple; bh=pzN+TMbu92dHsCjkoBZ+lE9lSmAo7YjR/yeJKPMl+0I=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=cZdbK8xyJKD31tejHi3fUEyQofPCoxmCu9hPHfHeVif2vGUgpu1iA65uNygiOfI6ABguTzlqtrjRQTftLFz1feTnPZhNkOSyM77saAOK0MLes3AIoh8oM1d5D/4mW26CHAJVE/6yKqeagvaEcms2qFPAx04XvXTgF4tCQGksv5M= ARC-Authentication-Results: i=1; server2.sourceware.org X-UI-Sender-Class: f2cb72be-343f-493d-8ec3-b1efb8d6185a X-Gm-Message-State: AOJu0YwFqb+Aa3vqfnYfhcgR7jnJ+FTGRqR8GmwSJZlae6tMMAYqRdRC Vof224Y3pKYXEuLiHHwsmVzLPU+RDOq5/r2J2L+/86PhRjJIqv30K4ECx2cqFT7A4ihfl52QpGM Qvba9fUBMKvqoV0oTbEEaTyxmqcg= X-Google-Smtp-Source: AGHT+IHn2KhgL0llPrjmzkQcB0L8DHUy4o8S+XPobb6fbcydSVRfHRTjGa8CQ1ksQk3hW7j47SzaFZqbaUjtWEz9Ffw= X-Received: by 2002:a2e:3e18:0:b0:2d6:87e2:e11e with SMTP id l24-20020a2e3e18000000b002d687e2e11emr1325428lja.8.1710865978588; Tue, 19 Mar 2024 09:32:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 19 Mar 2024 10:32:31 -0600 X-Gmail-Original-Message-ID: Message-ID: 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:RSSudMrEP5MazLOz5NiSTS/korM/VtgpSGOyNiqzYGJOd0xpT94 rMbNF9Vw31PWXAaFlfXXNh8WE2Ome4ksAFGUBAvCSOhufnv86sNN/3JqSNlIyLd22iW1Qsp TnHIPXzJ6U4M/+2im07NM5yQTUgKcRwAdq5mAgaBEI0HYRM7YAwBxoJRGd3kY5NU63baxOO e5D0/m0dO7215UNwMAUrg== UI-OutboundReport: notjunk:1;M01:P0:UsnFu/FDy1Y=;VytnqRigIBTam5LPeXV07ptX80N shZeeOqfOUWlUduUArCWgn37vJ9QiZq0YqjAxf/emkW+LIrCpT59XWf6/TBGWZKaqwZZrvaMG dqE9G2wrZZSEyFj28vy8kGqyOb5MuYKOYZXBPAC/CaIVSjYQpr3z0GHunQeRomKjBeRpJLAMG 8kKgcUftaXWOwa6EqVp6q6/MxX8M8ZMOYzkw0XbM/W2q4vyUPJFGmY/r+qyHW/Iuyqj3xaRhb 0y4DNlCeiOb63lTfLbjRc7HXT39MY57H/HPtBqlVUBMTDtpWtT0Ec+4jg4rMAD+esDVYaLYnG 13bdjVzXSOSNJ/lZVU7BeY7fVfwXKEMFxUh7Fc5EuwN+nLxvnUVeV5bbmbhFaOqhlw8amZYJS q56zrLbV2KcoQz7hUDd7NByMwCihTSJSwULE3Ey30T+jzY4z1m/mRpxGMT4HDjVhLv5p393eR wh8pFcZJVSKCvp+ks74YOQhaYwz7gCFyDBAvGm4lV3mwFclpAFjQ1A8xZqXUbuBESZiYfVsrJ udkYVM+4eTpjtw7qSDADMzfYy+RC7yWdoEZuG9BXHcxLsdVCyQBrPSjI6rSyWVcAc73DJ2AAw Y5Lj7jLz1uUU/T6Eh8iQsJLlpWT7NfKfSKmnQYFhTyFKjKBMsugEk4D1I/0V9F+ZBl7v0zV1j noCALAByiLGZFKgkvIQyHLptfqiumKOFfshaHlc/ruD7vr28UTyRyb7yTVNFkyhNtiBf1H1s4 R8T7DjwZqOCT+xojmlN3hbxJlnQkzkJJJluvG90MxzskVb82Yvt20VJEq03hChAuOeSzq43v5 RVNWWm3D818HRcMcnLqtbXi5hPCsZ4Rm0K9krdswxdkoE= X-Spam-Status: No, score=-2.8 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 List-Archive: List-Post: List-Help: List-Subscribe: , From: Bill Stewart via Cygwin Reply-To: Bill Stewart Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 42JGXZ2N802016 On Tue, Mar 19, 2024 at 10:21 AM Corinna Vinschen wrote: On Mar 19 09:18, Bill Stewart via Cygwin wrote: > > > I'm not sure of the exact scenario that led to the "RtlGetVersion is > > subject to manifesting" conclusion, but I can't reproduce it. > > 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. > > Fortunately Microsoft didn't change the required manifest GUID entry > since the introduction of Windows 10. Even Windows 11 is still using > the same GUID. > Interesting. Thanks for the clarification! 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