Chun-wei Fan
5f56477cc7
gutils.c: Improve Windows Server 2016/10 20H2+ detection
...
This improves how we obtain the Windows release versions in
get_windows_version(), in turn g_get_os_info() for Windows Server 2016
and later, and Windows 10 20H2 (2009) and later and Windows 11, by doing
the following:
* Check the build number. For Windows 11, the build number is 22000+;
for Windows Server 2022, the build number is 20348, and for Windows
Server 2019, the build number is 17763. We know what OS build
numbers to check for by the Windows OS type that we obtained by using
g_win32_check_windows_version(). Show the actual server release
string (i.e. Windows Server 20xx yyyy) as appropriate, as a result.
* Check the DisplayVersion entry in the registry under
SOFTWARE\Microsoft\Windows NT\CurrentVersion if we obtained "2009"
from the ReleaseId entry, since DisplayVersion replaces ReleaseId
after Windows 10/Server 2019 20H2 (2009). This makes things more
clear for Windows releases after 20H2, where previously 20H2
and 21H1 were all identified as Windows 10 [Server] 2009.
This should fix issue #2443 .
2021-11-22 12:16:14 +08:00
..
2021-05-06 22:54:53 +02:00
2021-04-19 19:23:10 +01:00
2019-01-15 15:11:43 +00:00
2021-01-06 01:06:28 +01:00
2020-02-27 10:33:45 +00:00
2021-11-18 10:57:37 +00:00
2021-08-16 20:05:59 +00:00
2021-03-25 12:55:21 +00:00
2020-06-12 15:01:08 +01:00
2021-11-04 14:50:24 +01:00
2019-10-07 14:38:24 +02:00
2021-08-02 16:00:12 +01:00
2019-07-29 12:27:29 +01:00
2017-05-24 11:58:19 +02:00
2020-11-20 14:41:07 +00:00
2021-09-23 22:09:07 +02:00
2021-10-15 14:15:43 +03:00
2020-05-28 09:21:35 +01:00
2020-01-15 13:15:54 +00:00
2017-05-24 11:58:19 +02:00
2021-06-03 15:15:34 +01:00
2017-05-24 11:58:19 +02:00
2021-06-07 14:03:48 +01:00
2021-08-02 16:00:12 +01:00
2018-06-02 09:45:55 +02:00
2021-06-15 12:01:11 +00:00
2021-06-15 12:01:11 +00:00
2021-10-12 18:05:48 +02:00
2019-05-27 17:51:40 +00:00
2021-03-27 09:28:10 +01:00
2020-12-12 18:30:22 +00:00
2021-08-02 16:00:12 +01:00
2020-09-18 23:50:09 +05:30
2021-11-12 21:32:21 -05:00
2018-08-22 11:18:02 +01:00
2021-03-27 09:28:10 +01:00
2021-11-12 21:32:21 -05:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2021-11-03 10:47:38 +00:00
2020-06-23 10:49:44 +01:00
2021-10-12 18:03:58 +02:00
2021-08-02 16:00:12 +01:00
2021-04-19 19:24:08 +01:00
2017-05-24 11:58:19 +02:00
2021-07-29 10:09:27 -04:00
2021-10-12 18:05:48 +02:00
2017-05-24 11:58:19 +02:00
2021-05-28 17:15:46 +02:00
2021-05-28 17:15:46 +02:00
2021-10-14 18:42:07 +02:00
2021-08-02 16:00:12 +01:00
2020-06-12 15:01:08 +01:00
2017-05-24 11:58:19 +02:00
2021-06-11 15:19:17 +02:00
2019-05-30 10:38:45 +01:00
2019-08-24 19:14:05 +00:00
2017-05-24 11:58:19 +02:00
2017-11-12 16:36:16 +01:00
2017-05-24 11:58:19 +02:00
2021-10-12 18:05:48 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2021-02-08 10:37:01 +00:00
2019-08-24 19:14:05 +00:00
2021-07-26 11:01:07 +01:00
2021-10-13 18:38:59 +02:00
2021-11-02 09:38:36 +00:00
2018-08-22 11:18:02 +01:00
2020-11-17 15:50:07 +00:00
2018-08-25 23:59:45 +01:00
2019-09-05 14:16:58 +01:00
2020-10-14 11:01:24 +00:00
2021-01-06 15:44:59 +00:00
2021-11-19 16:01:54 +08:00
2019-12-11 11:48:41 +00:00
2020-06-10 09:48:02 +01:00
2021-11-03 15:42:20 +00:00
2021-05-17 12:07:30 -04:00
2021-09-28 10:36:42 +00:00
2019-11-26 12:17:04 +00:00
2021-05-17 12:07:30 -04:00
2018-01-04 22:19:30 +01:00
2019-08-24 19:14:05 +00:00
2020-05-19 16:20:31 +01:00
2013-01-13 13:11:57 -05:00
2020-09-22 16:41:55 +01:00
2019-11-25 13:09:25 +01:00
2021-11-16 15:13:07 +00:00
2017-05-24 11:58:19 +02:00
2021-11-01 18:39:56 +00:00
2021-09-21 14:50:30 +01:00
2019-03-15 21:30:22 +01:00
2018-08-22 11:18:02 +01:00
2020-11-20 14:40:19 +00:00
2017-05-24 11:58:19 +02:00
2020-05-19 15:12:16 +01:00
2021-05-17 12:07:30 -04:00
2021-11-16 14:43:12 +00:00
2021-08-02 16:00:12 +01:00
2021-09-21 09:41:29 +00:00
2020-06-12 15:01:08 +01:00
2019-06-25 09:19:49 +02:00
2021-05-13 12:57:06 +02:00
2021-05-13 12:57:06 +02:00
2021-11-18 14:32:09 +00:00
2021-04-27 16:25:09 +02:00
2021-04-27 16:25:09 +02:00
2021-10-18 14:23:26 +02:00
2017-05-24 11:58:19 +02:00
2019-03-15 21:30:22 +01:00
2017-05-24 11:58:19 +02:00
2020-11-12 03:25:58 +00:00
2017-05-24 11:58:19 +02:00
2020-06-10 09:48:02 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2019-09-21 10:48:23 +02:00
2017-05-24 11:58:19 +02:00
2020-09-02 14:38:15 +02:00
2019-05-01 13:01:14 -07:00
2021-07-21 13:49:48 +02:00
2020-06-12 15:01:08 +01:00
2019-07-10 10:10:58 -04:00
2021-05-17 12:07:30 -04:00
2018-12-18 11:18:43 +00:00
2021-05-11 15:08:20 +05:30
2018-11-08 16:04:51 +01:00
2018-07-30 23:06:23 +05:30
2018-12-17 13:53:34 +00:00
2021-06-21 14:07:45 +00:00
2017-10-06 12:49:12 +01:00
2021-05-06 23:07:04 +02:00
2019-05-30 10:38:45 +01:00
2021-09-21 09:41:29 +00:00
2021-09-09 23:34:16 +03:00
2017-05-24 11:58:19 +02:00
2021-08-02 16:00:12 +01:00
2017-05-24 11:58:19 +02:00
2021-10-18 11:03:33 +00:00
2020-07-28 18:22:21 +02:00
2020-09-22 16:41:55 +01:00
2019-11-25 13:09:25 +01:00
2018-06-12 16:13:51 +01:00
2020-06-12 15:01:08 +01:00
2021-10-13 18:38:59 +02:00
2021-08-03 13:53:38 +00:00
2021-06-15 14:33:14 +01:00
2018-10-10 19:19:18 +00:00
2021-10-18 14:23:31 +02:00
2019-09-18 10:47:23 +02:00
2020-01-30 01:56:56 +00:00
2021-11-02 09:38:36 +00:00
2021-02-04 17:34:03 +00:00
2021-09-18 20:16:57 -04:00
2021-02-09 10:50:16 +00:00
2017-10-26 12:27:17 +01:00
2017-05-24 11:58:19 +02:00
2021-05-26 12:41:18 +00:00
2021-05-26 12:41:18 +00:00
2020-06-12 15:01:08 +01:00
2021-05-13 22:16:27 +01:00
2021-08-19 09:49:11 +01:00
2021-08-19 09:49:11 +01:00
2021-07-23 22:21:11 +02:00
2021-10-21 12:01:33 +01:00
2021-08-02 15:59:43 +01:00
2020-05-19 16:17:39 +01:00
2021-08-19 14:25:24 +01:00
2021-07-02 18:42:59 +05:30
2020-01-21 11:56:34 +00:00
2019-07-29 12:27:29 +01:00
2019-07-29 12:27:29 +01:00
2021-10-19 18:44:20 +02:00
2020-11-21 23:11:23 +00:00
2020-11-14 19:04:45 +00:00
2020-11-14 19:04:45 +00:00
2014-02-20 18:27:24 -05:00
2020-05-12 12:41:22 +01:00
2020-07-27 15:41:09 +01:00
2019-05-30 10:39:11 +01:00
2021-03-23 11:36:57 +00:00
2021-03-23 11:36:57 +00:00
2021-11-17 11:57:09 +00:00
2017-05-24 11:58:19 +02:00
2021-09-21 09:41:29 +00:00
2021-09-21 09:41:29 +00:00
2021-09-21 09:41:29 +00:00
2017-05-24 11:58:19 +02:00
2021-06-09 11:11:06 +02:00
2020-03-18 14:50:36 +00:00
2020-03-31 14:18:32 +01:00
2021-09-21 09:41:29 +00:00
2021-09-21 09:41:29 +00:00
2021-11-17 15:20:28 +00:00
2021-03-11 13:37:49 +00:00
2020-06-25 13:57:35 +04:00
2021-11-17 14:40:38 +01:00
2021-11-22 12:16:14 +08:00
2020-11-25 11:34:05 +00:00
2018-12-17 17:16:03 +00:00
2021-05-03 15:09:31 +02:00
2017-02-06 14:40:38 +01:00
2018-05-28 09:22:55 -04:00
2021-05-10 15:28:12 -03:00
2020-08-18 09:46:12 +01:00
2018-10-23 17:01:51 +13:00
2019-10-30 15:37:39 +00:00
2021-05-10 15:28:12 -03:00
2021-05-10 15:28:12 -03:00
2021-10-15 14:15:43 +03:00
2021-08-02 15:56:42 +01:00
2021-02-04 16:04:10 +00:00
2018-10-23 17:01:51 +13:00
2021-05-10 15:28:12 -03:00
2021-05-10 15:28:12 -03:00
2021-08-02 14:52:06 +01:00
2017-05-24 11:58:19 +02:00
2021-09-17 11:35:21 +01:00
2018-04-27 16:46:19 +01:00
2017-05-24 11:58:19 +02:00
2021-06-08 08:38:59 +00:00
2021-11-19 16:01:54 +08:00
2017-07-12 22:36:30 +02:00
2016-05-23 10:52:10 -04:00
2021-10-18 11:50:49 +01:00
2020-11-17 15:50:07 +00:00
2020-04-27 22:00:50 +03:00
2021-10-14 18:48:02 +02:00