mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 00:04:57 +03:00
v4.10-9505-beta
This commit is contained in:
@ -8729,6 +8729,35 @@ bool MsIsWindows7()
|
||||
return false;
|
||||
}
|
||||
|
||||
// Determine whether it's Windows 10 or later
|
||||
bool MsIsWindows10()
|
||||
{
|
||||
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) >= 2)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (GET_KETA(info->OsType, 100) >= 8)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Determine whether it's Windows 8.1 or later
|
||||
bool MsIsWindows81()
|
||||
{
|
||||
|
Reference in New Issue
Block a user