summaryrefslogtreecommitdiff
path: root/plugins/wbOSD/src/main.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-26 18:36:45 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-26 18:36:45 +0000
commitf34c2e508eeaba527009e2b86bf6ef7a09a496bb (patch)
tree4b89867b872732b1899609f5dea358092ca4891d /plugins/wbOSD/src/main.cpp
parent895ee7a4623bfa3378c5c5f1dec69893ca87b6b6 (diff)
plugins cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6243 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/wbOSD/src/main.cpp')
-rw-r--r--plugins/wbOSD/src/main.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/plugins/wbOSD/src/main.cpp b/plugins/wbOSD/src/main.cpp
index 5c6cef5884..ee7e35b252 100644
--- a/plugins/wbOSD/src/main.cpp
+++ b/plugins/wbOSD/src/main.cpp
@@ -15,8 +15,6 @@ HWND hwnd=0;
HANDLE hservosda;
int hLangpack = 0;
HANDLE hHookedNewEvent, hHookedInit, hProtoAck, hContactSettingChanged, hHookContactStatusChanged, hContactStatusChanged, hpluginShutDown;
-HINSTANCE hUser32;
-BOOL (WINAPI*pSetLayeredWindowAttributes)(HWND, COLORREF, BYTE, DWORD);
void logmsg2(char *str);
int MainInit(WPARAM,LPARAM);
@@ -49,22 +47,6 @@ extern "C" __declspec(dllexport) int Load()
mir_getLP(&pluginInfo);
logmsg("Load");
- pSetLayeredWindowAttributes=0;
-
-#ifndef FORCE_9XDRAWING
- hUser32=LoadLibrary(_T("user32.dll"));
-#else
- hUser32=0;
-#endif
-
- if (hUser32) {
- pSetLayeredWindowAttributes=(BOOL(WINAPI*)(HWND, COLORREF, BYTE, DWORD))GetProcAddress(hUser32, "SetLayeredWindowAttributes");
- if (!pSetLayeredWindowAttributes) {
- FreeLibrary(hUser32);
- hUser32=0;
- }
- }
-
hHookedInit = HookEvent(ME_SYSTEM_MODULESLOADED, MainInit);
return 0;
}
@@ -81,10 +63,6 @@ extern "C" __declspec(dllexport) int Unload()
UnhookEvent(hHookedNewEvent);
UnhookEvent(hHookedInit);
- if (hUser32)
- FreeLibrary(hUser32);
- pSetLayeredWindowAttributes=0;
-
DestroyServiceFunction(hservosda);
DestroyHookableEvent(hHookContactStatusChanged);
return 0;