diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-07 13:45:34 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-07 19:55:09 +0300 |
commit | e012650957335d5f4295441debf849b3b9b2f4ef (patch) | |
tree | 54438907b350f05b598ff16d9fbcb17c92672647 /protocols/Discord/src/main.cpp | |
parent | e59fe8f85cfa3e309a465dd92d17ebfc7093c5fb (diff) |
first version of Discord with working gateway connection
Diffstat (limited to 'protocols/Discord/src/main.cpp')
-rw-r--r-- | protocols/Discord/src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/Discord/src/main.cpp b/protocols/Discord/src/main.cpp index edfac36d0c..850d4a044e 100644 --- a/protocols/Discord/src/main.cpp +++ b/protocols/Discord/src/main.cpp @@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. HINSTANCE g_hInstance; int hLangpack = 0; +HWND g_hwndHeartbeat; PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), @@ -68,6 +69,8 @@ extern "C" int __declspec(dllexport) Load(void) { mir_getLP(&pluginInfo); + g_hwndHeartbeat = CreateWindowEx(0, L"STATIC", NULL, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL); + PROTOCOLDESCRIPTOR pd = { 0 }; pd.cbSize = sizeof(pd); pd.szName = "Discord"; @@ -83,5 +86,6 @@ extern "C" int __declspec(dllexport) Load(void) extern "C" int __declspec(dllexport) Unload(void) { + DestroyWindow(g_hwndHeartbeat); return 0; } |