extern "C" int __declspec(dllexport) Unload(void) { #ifdef _DEBUG UnInitDebug(); #endif WindowList_Destroy(YAMNVar.MessageWnds); WindowList_Destroy(YAMNVar.NewMailAccountWnd); DestroyCursor(hCurSplitNS); DestroyCursor(hCurSplitWE); CloseHandle(NoWriterEV); CloseHandle(WriteToFileEV); CloseHandle(ExitEV); DeleteCriticalSection(&AccountStatusCS); DeleteCriticalSection(&FileWritingCS); DeleteCriticalSection(&PluginRegCS); UnhookEvents(); DestroyServiceFunctions(); UnloadPlugins(); delete [] CodePageNamesSupp; return 0; }
extern "C" int __declspec(dllexport) Unload() { DestroyServices(); UnhookEvents(); return 0; }
extern "C" int __declspec(dllexport) Unload() { bWaitForUnload = 0; UnhookEvents(); DestroyServer(); return 0; }
extern "C" int __declspec(dllexport) Unload() { // Log("%s", "Entering function " __FUNCTION__); // Log("%s", "Unhooking events ..."); // Log("%s", "Destroying service functions ..."); DestroyServices(); // DestroyEvents(); UnhookEvents(); // Log("%s", "Leaving function " __FUNCTION__); return 0; }
int Chat_Unload(void) { if (!PluginConfig.m_chat_enabled) return 0; DBWriteContactSettingWord(NULL, "Chat", "SplitterX", (WORD)g_Settings.iSplitterX); DBWriteContactSettingWord(NULL, "Chat", "splitY", (WORD)g_Settings.iSplitterY); CList_SetAllOffline(TRUE, NULL); mir_free(pszActiveWndID); mir_free(pszActiveWndModule); DestroyMenu(g_hMenu); DestroyServiceFunctions(); DestroyHookableEvents(); FreeIcons(); OptionsUnInit(); UnhookEvents(); return 0; }
extern "C" int __declspec(dllexport) Unload() { #if _MSC_VER >= 1300 Log("%s", "Entering function " __FUNCTION__); Log("%s", "Unhooking events ..."); Log("%s", "Destroying service functions ..."); #endif // DestroyServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY); DestroyServices(); DestroyEvents(); UnhookEvents(); #ifdef _DEBUG DestroyServiceFunction(hTestPlugin); #endif #if _MSC_VER >= 1300 Log("%s", "Leaving function " __FUNCTION__); #endif return 0; }
int __declspec(dllexport) Unload(void) { DBWriteContactSettingWord(NULL, "Chat", "SplitterX", (WORD)g_Settings.iSplitterX); DBWriteContactSettingWord(NULL, "Chat", "SplitterY", (WORD)g_Settings.iSplitterY); DBWriteContactSettingDword(NULL, "Chat", "roomx", g_Settings.iX); DBWriteContactSettingDword(NULL, "Chat", "roomy", g_Settings.iY); DBWriteContactSettingDword(NULL, "Chat", "roomwidth" , g_Settings.iWidth); DBWriteContactSettingDword(NULL, "Chat", "roomheight", g_Settings.iHeight); CList_SetAllOffline(TRUE, NULL); mir_free( pszActiveWndID ); mir_free( pszActiveWndModule ); DestroyMenu(g_hMenu); DestroyServiceFunctions(); DestroyHookableEvents(); FreeIcons(); OptionsUnInit(); FreeLibrary(GetModuleHandleA("riched20.dll")); UnhookEvents(); return 0; }
int CMPlugin::Unload() { DestroyServices(); UnhookEvents(); return 0; }