enable system info for Windows 10,

exclude function not existing in older SDKs
This commit is contained in:
Holger Vogt 2019-11-06 22:18:12 +01:00
parent db281f63f3
commit 917ea99758
1 changed files with 4 additions and 1 deletions

View File

@ -25,6 +25,7 @@
#include "windows.h"
#include <psapi.h>
#include <VersionHelpers.h>
#include <ntverp.h>
#endif
#include "stdio.h"
@ -437,7 +438,9 @@ tesCreateSystemInfo(TesSystemInfo *info)
if (IsWindows8Point1OrGreater()) {
strcpy(mversion, "Windows 8.1");
}
#if (_MSC_PLATFORM_TOOLSET > 140)
/* SDK has version 10 and thus IsWindows10OrGreater() */
#if (VER_PRODUCTBUILD > 10000)
/* This will deliver the right OS version only if we have a manifest */
if (IsWindows10OrGreater()) {
strcpy(mversion, "Windows 10");
}