/* Wannabe OSD This plugin tries to become miranda's standard OSD ;-) (C) 2005 Andrej Krutak Distributed under GNU's GPL 2 or later */ #include "stdafx.h" HINSTANCE hI; HWND g_hWnd = 0; HANDLE hservosda; int hLangpack = 0; CLIST_INTERFACE *pcli; HANDLE hHookedInit, hProtoAck, hContactSettingChanged, hHookContactStatusChanged, hContactStatusChanged; void logmsg2(char *str); int MainInit(WPARAM,LPARAM); ///////////////////////////////////////////////////////////////////////////////////////// static PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), __PLUGIN_NAME, PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), __DESCRIPTION, __AUTHOR, __AUTHOREMAIL, __COPYRIGHT, __AUTHORWEB, UNICODE_AWARE, // {FC718BC7-ABC8-43CD-AAD9-761614617738} {0xfc718bc7, 0xabc8, 0x43cd, {0xaa, 0xd9, 0x76, 0x16, 0x14, 0x61, 0x77, 0x38}} }; extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD) { return &pluginInfo; } ///////////////////////////////////////////////////////////////////////////////////////// extern "C" __declspec(dllexport) int Load() { mir_getLP(&pluginInfo); pcli = Clist_GetInterface(); logmsg("Load"); hHookedInit = HookEvent(ME_SYSTEM_MODULESLOADED, MainInit); return 0; } ///////////////////////////////////////////////////////////////////////////////////////// extern "C" __declspec(dllexport) int Unload() { logmsg("Unload"); UnhookEvent(hProtoAck); UnhookEvent(hContactSettingChanged); UnhookEvent(hContactStatusChanged); UnhookEvent(hHookedInit); DestroyServiceFunction(hservosda); DestroyHookableEvent(hHookContactStatusChanged); return 0; } ///////////////////////////////////////////////////////////////////////////////////////// BOOL WINAPI DllMain(HINSTANCE hinst, DWORD, LPVOID) { hI = hinst; return TRUE; }