summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-09 14:31:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-09 14:31:52 +0000
commit493f0bc3b05d6e1e4454a391723dff1a164dee37 (patch)
treefb442d967af98f68f1d36d27efc3fc104b4f3a0f /src/mir_core
parent6dde4172bb2a84ca76a2e6541f6788ab613797ab (diff)
three new functions for checking Windows version
git-svn-id: http://svn.miranda-ng.org/main/trunk@14882 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/mir_core.def4
-rw-r--r--src/mir_core/src/mir_core64.def4
-rw-r--r--src/mir_core/src/winver.cpp15
3 files changed, 23 insertions, 0 deletions
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def
index fed657fd09..8412723e7f 100644
--- a/src/mir_core/src/mir_core.def
+++ b/src/mir_core/src/mir_core.def
@@ -973,3 +973,7 @@ Utils_ResizeDialog @1130
Utils_GetRandom @1131
Utils_OpenUrl @1132
Utils_OpenUrlW @1133
+GetOSDisplayString @1134
+IsWinVer10Plus @1135
+IsWinVer81Plus @1136
+IsWinVer8Plus @1137
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def
index af4a9a45d7..b29f37541d 100644
--- a/src/mir_core/src/mir_core64.def
+++ b/src/mir_core/src/mir_core64.def
@@ -973,3 +973,7 @@ Utils_ResizeDialog @1130
Utils_GetRandom @1131
Utils_OpenUrl @1132
Utils_OpenUrlW @1133
+GetOSDisplayString @1134
+IsWinVer10Plus @1135
+IsWinVer81Plus @1136
+IsWinVer8Plus @1137
diff --git a/src/mir_core/src/winver.cpp b/src/mir_core/src/winver.cpp
index 71b7969f77..0a08891244 100644
--- a/src/mir_core/src/winver.cpp
+++ b/src/mir_core/src/winver.cpp
@@ -35,6 +35,21 @@ MIR_CORE_DLL(BOOL) IsWinVer7Plus()
return dwWinVer >= _WIN32_WINNT_WIN7;
}
+MIR_CORE_DLL(BOOL) IsWinVer8Plus()
+{
+ return dwWinVer >= _WIN32_WINNT_WIN8;
+}
+
+MIR_CORE_DLL(BOOL) IsWinVer81Plus()
+{
+ return dwWinVer >= _WIN32_WINNT_WINBLUE;
+}
+
+MIR_CORE_DLL(BOOL) IsWinVer10Plus()
+{
+ return dwWinVer >= _WIN32_WINNT_WIN10;
+}
+
MIR_CORE_DLL(BOOL) IsFullScreen()
{
RECT rcScreen = { 0 };