Skip to content

Commit

Permalink
Merge pull request #5663 from borg17/patch-2
Browse files Browse the repository at this point in the history
Update hostinfo_win.cpp
  • Loading branch information
AenBleidd authored Jun 21, 2024
2 parents b35ed1e + 0cc401b commit d950b6d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/hostinfo_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@
#ifndef PRODUCT_IOTENTERPRISES
#define PRODUCT_IOTENTERPRISES 0x000000BF
#endif
#ifndef PRODUCT_IOTENTERPRISESK
#define PRODUCT_IOTENTERPRISESK 0x000000CD
#endif
#ifndef PRODUCT_AZURESTACKHCI_SERVER_CORE
#define PRODUCT_AZURESTACKHCI_SERVER_CORE 0x00000196
#endif
Expand Down Expand Up @@ -382,7 +385,9 @@ int get_os_information(
strlcat(os_name, "Windows 10", os_name_size);
}
} else {
if (osvi.dwBuildNumber >= 25398) {
if (osvi.dwBuildNumber >= 26100) {
strlcat(os_name, "Windows Server 2025", os_name_size);
} else if (osvi.dwBuildNumber >= 25398) {
strlcat(os_name, "Windows Server 23H2", os_name_size);
} else if (osvi.dwBuildNumber >= 20348) {
strlcat(os_name, "Windows Server 2022", os_name_size);
Expand Down Expand Up @@ -582,6 +587,9 @@ int get_os_information(
case PRODUCT_IOTENTERPRISES:
safe_strcat(szSKU, "IoT Enterprise LTSC ");
break;
case PRODUCT_IOTENTERPRISESK:
safe_strcat(szSKU, "IoT Enterprise Subscription LTSC ");
break;
case PRODUCT_IOTUAP:
safe_strcat(szSKU, "Internet of Things ");
break;
Expand Down

0 comments on commit d950b6d

Please sign in to comment.