summaryrefslogtreecommitdiff
path: root/plugins/wbOSD/src/main.cpp
diff options
context:
space:
mode:
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;