Skip to content
forked from BOINC/boinc

Commit 7f5f29d

Browse files
committed
Merge pull request BOINC#5663 from borg17/patch-2
Update hostinfo_win.cpp
1 parent 25061de commit 7f5f29d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

client/hostinfo_win.cpp

+9-1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@
200200
#ifndef PRODUCT_IOTENTERPRISES
201201
#define PRODUCT_IOTENTERPRISES 0x000000BF
202202
#endif
203+
#ifndef PRODUCT_IOTENTERPRISESK
204+
#define PRODUCT_IOTENTERPRISESK 0x000000CD
205+
#endif
203206
#ifndef PRODUCT_AZURESTACKHCI_SERVER_CORE
204207
#define PRODUCT_AZURESTACKHCI_SERVER_CORE 0x00000196
205208
#endif
@@ -382,7 +385,9 @@ int get_os_information(
382385
strlcat(os_name, "Windows 10", os_name_size);
383386
}
384387
} else {
385-
if (osvi.dwBuildNumber >= 25398) {
388+
if (osvi.dwBuildNumber >= 26100) {
389+
strlcat(os_name, "Windows Server 2025", os_name_size);
390+
} else if (osvi.dwBuildNumber >= 25398) {
386391
strlcat(os_name, "Windows Server 23H2", os_name_size);
387392
} else if (osvi.dwBuildNumber >= 20348) {
388393
strlcat(os_name, "Windows Server 2022", os_name_size);
@@ -582,6 +587,9 @@ int get_os_information(
582587
case PRODUCT_IOTENTERPRISES:
583588
safe_strcat(szSKU, "IoT Enterprise LTSC ");
584589
break;
590+
case PRODUCT_IOTENTERPRISESK:
591+
safe_strcat(szSKU, "IoT Enterprise Subscription LTSC ");
592+
break;
585593
case PRODUCT_IOTUAP:
586594
safe_strcat(szSKU, "Internet of Things ");
587595
break;

0 commit comments

Comments
 (0)