summaryrefslogtreecommitdiff
path: root/plugins/KeyboardNotify/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-05-27 16:21:17 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-05-27 16:21:17 +0300
commit189f6be24f11066a3c711b783cf98f79f703e3a5 (patch)
tree3acf7a0cf990f574d9edb0f8045b605d8e3ec024 /plugins/KeyboardNotify/src/main.cpp
parente3179c1ef509482ff9b4c7d4fb89d0b208e84000 (diff)
as well as calls of GetVersionEx should be removed
Diffstat (limited to 'plugins/KeyboardNotify/src/main.cpp')
-rw-r--r--plugins/KeyboardNotify/src/main.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/plugins/KeyboardNotify/src/main.cpp b/plugins/KeyboardNotify/src/main.cpp
index adbe79029d..def163577f 100644
--- a/plugins/KeyboardNotify/src/main.cpp
+++ b/plugins/KeyboardNotify/src/main.cpp
@@ -723,19 +723,6 @@ void LoadSettings(void)
}
-void GetWindowsVersion(void)
-{
- OSVERSIONINFOEX osvi = { sizeof(OSVERSIONINFOEX) };
- BOOL bOsVersionInfoEx = GetVersionEx((OSVERSIONINFO *)&osvi);
-
- if (!bOsVersionInfoEx) {
- osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
- if (!GetVersionEx((OSVERSIONINFO *)&osvi))
- osvi.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS;
- }
-}
-
-
void updateXstatusProto(PROTOCOL_INFO *protoInfo)
{
if (!ProtoServiceExists(protoInfo->szProto, PS_GETCUSTOMSTATUSEX))
@@ -913,7 +900,6 @@ static int ModulesLoaded(WPARAM, LPARAM)
int CMPlugin::Load()
{
- GetWindowsVersion();
OpenKeyboardDevice();
HookEvent(ME_MC_ENABLED, OnMetaChanged);