1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 00:04:57 +03:00

v4.05-9422-beta

This commit is contained in:
dnobori
2014-02-17 03:16:50 +09:00
parent bad6a4c22b
commit e8ce5fa014
285 changed files with 346 additions and 277 deletions

View File

@ -8667,7 +8667,36 @@ bool MsIsWindows7()
return false;
}
// Determine whether it's Windows 8 later
// Determine whether it's Windows 8.1 or later
bool MsIsWindows81()
{
OS_INFO *info = GetOsInfo();
if (info == NULL)
{
return false;
}
if (OS_IS_WINDOWS_NT(info->OsType))
{
if (GET_KETA(info->OsType, 100) == 7)
{
if (GET_KETA(info->OsType, 1) >= 1)
{
return true;
}
}
if (GET_KETA(info->OsType, 100) >= 8)
{
return true;
}
}
return false;
}
// Determine whether it's Windows 8 or later
bool MsIsWindows8()
{
OS_INFO *info = GetOsInfo();