diff options
author | dnobori <da.git@softether.co.jp> | 2014-10-03 19:09:23 +0400 |
---|---|---|
committer | dnobori <da.git@softether.co.jp> | 2014-10-03 19:09:23 +0400 |
commit | 10d4b2c43ddc9fcc2f318c76e3d66f11ef383fad (patch) | |
tree | 0f6a9b771241360febb89ab977d2c45ff9654d90 /src/Mayaqua/Microsoft.c | |
parent | 16b713b98da8dba29f0f845d5a8c36d6f7c34824 (diff) |
v4.10-9505-beta
Diffstat (limited to 'src/Mayaqua/Microsoft.c')
-rw-r--r-- | src/Mayaqua/Microsoft.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Mayaqua/Microsoft.c b/src/Mayaqua/Microsoft.c index ddaa8dc7..dbbaa158 100644 --- a/src/Mayaqua/Microsoft.c +++ b/src/Mayaqua/Microsoft.c @@ -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()
{
|