diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-17 17:09:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-17 17:09:50 +0300 |
commit | bce8bc74daf1c5f510404c8bdf956b41fb1c10fc (patch) | |
tree | 9879ad5ce5f42087558601af6a6f2827d7df4c39 /plugins/wbOSD/src/main.cpp | |
parent | ba1083b4da33ca44a5ae7d90eabbe3d6d340a81e (diff) |
WinterSpeak, WhoUsesMyFiles, WhenWasIt, wbOSD, Watrack_MPD -> CMPlugin
Diffstat (limited to 'plugins/wbOSD/src/main.cpp')
-rw-r--r-- | plugins/wbOSD/src/main.cpp | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/plugins/wbOSD/src/main.cpp b/plugins/wbOSD/src/main.cpp index fdae90110a..486b5a7511 100644 --- a/plugins/wbOSD/src/main.cpp +++ b/plugins/wbOSD/src/main.cpp @@ -9,11 +9,11 @@ Distributed under GNU's GPL 2 or later #include "stdafx.h"
-HINSTANCE hI;
+int hLangpack;
+CMPlugin g_plugin;
HWND g_hWnd = nullptr;
-int hLangpack = 0;
-HANDLE hHookedInit, hProtoAck, hContactSettingChanged, hHookContactStatusChanged, hContactStatusChanged;
+HANDLE hHookContactStatusChanged;
void logmsg2(char *str);
int MainInit(WPARAM,LPARAM);
@@ -45,7 +45,7 @@ extern "C" __declspec(dllexport) int Load() mir_getLP(&pluginInfo);
logmsg("Load");
- hHookedInit = HookEvent(ME_SYSTEM_MODULESLOADED, MainInit);
+ HookEvent(ME_SYSTEM_MODULESLOADED, MainInit);
return 0;
}
@@ -54,19 +54,7 @@ extern "C" __declspec(dllexport) int Load() extern "C" __declspec(dllexport) int Unload()
{
logmsg("Unload");
- UnhookEvent(hProtoAck);
- UnhookEvent(hContactSettingChanged);
- UnhookEvent(hContactStatusChanged);
- UnhookEvent(hHookedInit);
DestroyHookableEvent(hHookContactStatusChanged);
return 0;
}
-
-/////////////////////////////////////////////////////////////////////////////////////////
-
-BOOL WINAPI DllMain(HINSTANCE hinst, DWORD, LPVOID)
-{
- hI = hinst;
- return TRUE;
-}
|