diff options
Diffstat (limited to 'protocols/SkypeWeb/src/main.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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;
}
|