diff options
author | George Hazan <ghazan@miranda.im> | 2019-05-27 16:21:17 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-05-27 16:21:17 +0300 |
commit | 189f6be24f11066a3c711b783cf98f79f703e3a5 (patch) | |
tree | 3acf7a0cf990f574d9edb0f8045b605d8e3ec024 /plugins/KeyboardNotify/src/main.cpp | |
parent | e3179c1ef509482ff9b4c7d4fb89d0b208e84000 (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.cpp | 14 |
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);
|