From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id B08AC3858D37 for ; Tue, 19 Mar 2024 15:00:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B08AC3858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B08AC3858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::529 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710860460; cv=none; b=u/qrUnH2OiQO/1zmsM5W6H7RwafHVE3auqbgaBk0SmxGc7tpel90v9cnCUXjfoSSVkPeksGvkypqayOzP6N02fvPHA2yQ1hg6ZowfWCNxfV6XYfK0pWBR70Tgh6cU+vhekv9WZv/6GVTAsH4wcEmnABNZBBFSBE3Lt+yRm+fKL4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710860460; c=relaxed/simple; bh=ZotOTkTjmysT5yVhm3y9G82KMfxsozRIWgs5Ih95bgg=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=o8PxEd4dCjMxqgWhDlPIoCWPgYY8n8p7V3WZnwq71JuIyoPFjlqoewfXcfszv05lB2a+NRg9zn8h7HGrDECvF6Do7/0ROsnDrTNZCnIKCaq5P8/jmd09PudyYYM/oxS8aXsDbm9jXfR2SSvNhgx6KULXj1aUDvrjE0TFaaYd+mM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5684db9147dso7315506a12.2 for ; Tue, 19 Mar 2024 08:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710860457; x=1711465257; darn=cygwin.com; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=dz4j+C76nE31/29TwG3aJOYOe4s0J3Hsr2/Wre9K9VU=; b=Yt8BIrEhKDsGs+fNRTfF6qSlYYQ1mNCtszC+0ovsI8o/Hk0dCqyYVJwfrxm9IYtk+g 8emsklk9uA/XeVaWx+xFPwKBeNC3Xu8+gP4NiuH+7zux3QTn40ObK9GoJ70zg1W5KkA/ 7RKZAYjLRZMNYMxTO5Eb78R6qD2kBnADmjFURxJkAkHtL9NoQosUf46G1wzt2yuS/1v5 8doYwgwrsEjDgcCKcHNtitaQvM4Fe8NJ036L9xq3Kyj96jZ96CurXqvdF50HJ6Y9OP/H moNiclq4UNrCzPBLT6cVAykAFe+ANnf6t4qLurkXofSXMBcgd8fPYl8Iy/UB9DNQHN30 dTJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710860457; x=1711465257; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dz4j+C76nE31/29TwG3aJOYOe4s0J3Hsr2/Wre9K9VU=; b=wiNrSmS+ALJIudC6lm7dSmJ9uRTCFwPZi7xS5qumm8SlXgzSoZQHOLtgN5DxhfpjLS v2wqEoA3NzksNhs3/ODdhbi7aubCTL8nW4lf2AEKE0hPtcjm8ua8bFvyLqT8PaFVTvK0 XoAL+PTByW8jlmw730xkwqaPr5wzO1SpmxhxryB11GmtS4n6Rm4W2B7bB/6cX2mGdHCO E1iaUHkBCmcgxEZwta2g4uxFjPxq8NbeurbiNAhHhP2QXnW7d2Q9AvAofmsi+uDV9kGu dDGlg3M8A9iwGaxmkOy3B37aO8IGTGWiE9Fn/VQXuId+d8e4wiKUtFVigb3UqETmlxVU a6wQ== X-Gm-Message-State: AOJu0YwSWAL1kon9nE4jv6qc3MiP6KTUufp9Q1nHxLuSAmRuVAb6xvsl l/+PSCYOeFBrep2JE58v2ySJuoVVCQK0Y9JLeIu/36llMQbvwjak5ZXE8LBRVP5VtwcP4mDzNPd 3CtxlooCrq4gjp78yg8lCkPM1JRzaA15o6d0= X-Google-Smtp-Source: AGHT+IFX/lj6/KDz12w5oj1OMAn1RfuaTOwVfGSz0GV8zHrzClg4Fw1ik0dtSlPuMk3/HVbXbOORSwVEiDzMG7nBWdM= X-Received: by 2002:aa7:d591:0:b0:56b:8439:6d91 with SMTP id r17-20020aa7d591000000b0056b84396d91mr2090145edq.40.1710860456519; Tue, 19 Mar 2024 08:00:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Richard Campbell Date: Tue, 19 Mar 2024 10:00:44 -0500 Message-ID: Subject: Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10? To: cygwin@cygwin.com Content-Type: multipart/alternative; boundary="000000000000c56ea7061404bddb" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,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 List-Id: --000000000000c56ea7061404bddb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Mar 19, 2024 at 9:04=E2=80=AFAM Bill Stewart via Cygwin wrote: > > Can you please clarify the circumstances under which the RtlGetVersion > function "may not return the correct values"? > "Originally, using RtlGetVersion instead of GetVersionEx was supposed to fix the fact that GetVersionInfo returns the wrong kernel version if the executable has been built with an old manifest (or none at all), starting with Windows 8.1. Either this never really worked as desired and our testing was flawed, or this has been changed again with Windows 10, so that RtlGetVersion does the kernel faking twist as well. Since we're only reading the value in the first process in a process tree. the entire process tree is running with a wrong OS version information in that case. Fortunately, the (undocumented) RtlGetNtVersionNumbers function is not affected by this nonsense, so we simply override the OS version info fields with the correct values now." https://cygwin.com/git/?p=3Dnewlib-cygwin.git;a=3Dcommitdiff;h=3D48511f3d38= 47c35352d09cded56e25f0c1b22bc9 -Richard Campbell. --000000000000c56ea7061404bddb--