summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/main.cpp')
-rw-r--r--protocols/FacebookRM/src/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/main.cpp b/protocols/FacebookRM/src/main.cpp
index e53a72310a..0ce184d4aa 100644
--- a/protocols/FacebookRM/src/main.cpp
+++ b/protocols/FacebookRM/src/main.cpp
@@ -27,6 +27,7 @@ CMPlugin g_plugin;
std::string g_strUserAgent;
DWORD g_mirandaVersion;
bool g_bMessageState;
+HWND g_hwndHeartbeat;
/////////////////////////////////////////////////////////////////////////////////////////
@@ -65,6 +66,8 @@ static int OnModuleLoaded(WPARAM, LPARAM)
int CMPlugin::Load()
{
+ g_hwndHeartbeat = CreateWindowEx(0, L"STATIC", nullptr, 0, 0, 0, 0, 0, nullptr, nullptr, nullptr, nullptr);
+
HookEvent(ME_SYSTEM_MODULELOAD, OnModuleLoaded);
HookEvent(ME_SYSTEM_MODULEUNLOAD, OnModuleLoaded);
HookEvent(ME_SYSTEM_MODULESLOADED, OnModuleLoaded);
@@ -90,3 +93,9 @@ int CMPlugin::Load()
return 0;
}
+
+int CMPlugin::Unload()
+{
+ DestroyWindow(g_hwndHeartbeat);
+ return 0;
+}