From 57d7aea9d038519bfa7cf38e757105d730220e37 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 14 Aug 2015 11:21:27 +0000 Subject: SkypeWeb: small fixes. git-svn-id: http://svn.miranda-ng.org/main/trunk@14952 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/SkypeWeb/src/main.cpp') diff --git a/protocols/SkypeWeb/src/main.cpp b/protocols/SkypeWeb/src/main.cpp index a65a80bd4f..732c570d59 100644 --- a/protocols/SkypeWeb/src/main.cpp +++ b/protocols/SkypeWeb/src/main.cpp @@ -21,6 +21,7 @@ int hLangpack; HINSTANCE g_hInstance; CLIST_INTERFACE *pcli; char g_szMirVer[100]; +HANDLE g_hCallEvent; PLUGININFOEX pluginInfo = { @@ -73,6 +74,8 @@ extern "C" int __declspec(dllexport) Load(void) CreateServiceFunction(MODULE "/GetEventIcon", &CSkypeProto::EventGetIcon); CreateServiceFunction(MODULE "/GetEventText", &CSkypeProto::GetEventText); + g_hCallEvent = CreateHookableEvent(MODULE "/IncomingCall"); + HookEvent(ME_SYSTEM_MODULESLOADED, &CSkypeProto::OnModulesLoaded); return 0; @@ -83,6 +86,8 @@ extern "C" int __declspec(dllexport) Unload(void) CSkypeProto::UninitIcons(); CSkypeProto::UninitMenus(); + DestroyHookableEvent(g_hCallEvent); + return 0; } -- cgit v1.2.3