[misc] small Windows versioning improvement

* Actually define a WINDOWS_11 version and use it when Windows 11 is detected.
* Also some comment cleanup.
This commit is contained in:
Pete Batard 2021-09-28 15:39:51 +01:00
parent d203c91403
commit aba6c7d996
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
5 changed files with 37 additions and 26 deletions

View file

@ -440,12 +440,13 @@ enum WindowsVersion {
WINDOWS_UNSUPPORTED = 0,
WINDOWS_XP = 0x51,
WINDOWS_2003 = 0x52, // Also XP_64
WINDOWS_VISTA = 0x60, // Also 2008
WINDOWS_7 = 0x61, // Also 2008_R2
WINDOWS_8 = 0x62, // Also 2012
WINDOWS_8_1 = 0x63, // Also 2012_R2
WINDOWS_VISTA = 0x60, // Also Server 2008
WINDOWS_7 = 0x61, // Also Server 2008_R2
WINDOWS_8 = 0x62, // Also Server 2012
WINDOWS_8_1 = 0x63, // Also Server 2012_R2
WINDOWS_10_PREVIEW1 = 0x64,
WINDOWS_10 = 0xA0,
WINDOWS_10 = 0xA0, // Also Server 2016, also Server 2019
WINDOWS_11 = 0xB0, // Also Server 2022
WINDOWS_MAX
};