Exemplo n.º 1
0
int SplitmsgShutdown(void)
{
	WindowList_Destroy(M.m_hMessageWindowList);
	WindowList_Destroy(PluginConfig.hUserPrefsWindowList);

	DestroyCursor(PluginConfig.hCurSplitNS);
	DestroyCursor(PluginConfig.hCurHyperlinkHand);
	DestroyCursor(PluginConfig.hCurSplitWE);

	FreeLibrary(GetModuleHandleA("Msftedit.dll"));

	if (g_hIconDLL) {
		FreeLibrary(g_hIconDLL);
		g_hIconDLL = NULL;
	}

	ImageList_RemoveAll(PluginConfig.g_hImageList);
	ImageList_Destroy(PluginConfig.g_hImageList);

	delete Win7Taskbar;

	DestroyMenu(PluginConfig.g_hMenuContext);
	if (PluginConfig.g_hMenuContainer)
		DestroyMenu(PluginConfig.g_hMenuContainer);

	UnloadIcons();
	FreeTabConfig();

	if (Utils::rtf_ctable)
		mir_free(Utils::rtf_ctable);

	UnloadTSButtonModule();
	return 0;
}
Exemplo n.º 2
0
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;
}
Exemplo n.º 3
0
int AwayMsgPreShutdown(void)
{
	if (hWindowList) {
		WindowList_Broadcast(hWindowList, WM_CLOSE, 0, 0);
		WindowList_Destroy(hWindowList);
	}
	if (hWindowList2) {
		WindowList_Broadcast(hWindowList2, WM_CLOSE, 0, 0);
		WindowList_Destroy(hWindowList2);
	}
	return 0;
}
Exemplo n.º 4
0
extern "C" int __declspec(dllexport) Unload(void)
{
   ChangeContactStatus(0);

   KillTimer(NULL, timerId);
   KillTimer(NULL, Countdown);

   db_set_b(NULL, MODULENAME, HAS_CRASHED_KEY, 0);
   SavewinSettings();
   if (hRichEd)
		FreeLibrary(hRichEd);

	if (hNetlibUser) {
		Netlib_CloseHandle(hNetlibUser);
		hNetlibUser = NULL;
	}
	
	if (hHookDisplayDataAlert)
		DestroyHookableEvent(hHookDisplayDataAlert);
	if (hHookAlertPopup)
		DestroyHookableEvent(hHookAlertPopup);
	if (hHookAlertWPopup)
		DestroyHookableEvent(hHookAlertWPopup);
	
	if (h_font != NULL)
		DeleteObject(h_font);
	if (hMenu)
		DestroyMenu(hMenu);    
	WindowList_Destroy(hWindowList);
	return 0;
}
Exemplo n.º 5
0
MIR_APP_DLL(void) ProtoDestructor(PROTO_INTERFACE *pThis)
{
	mir_free(pThis->m_szModuleName);
	mir_free(pThis->m_tszUserName);

	WindowList_Destroy(pThis->m_hWindowList);
}
Exemplo n.º 6
0
extern "C" __declspec(dllexport) int Unload(void)
{
	WindowList_Destroy(hInternalWindowList);
	Uninitilize();
	bUseInternalViewer(false);
	return 0;
}
Exemplo n.º 7
0
extern "C" int __declspec(dllexport) Unload()
{
	DestroyServices();

	WindowList_Broadcast(hOpenWindowsList, WM_CLOSE, 0, 0);
	WindowList_Destroy(hOpenWindowsList);
	return 0;
}
Exemplo n.º 8
0
static int PreShutdownHistoryModule(WPARAM, LPARAM)
{
	if (hWindowList) {
		WindowList_Broadcast(hWindowList, WM_DESTROY, 0, 0);
		WindowList_Destroy(hWindowList);
	}
	return 0;
}
Exemplo n.º 9
0
void DeinitAlarmWin()
{	
	WindowList_Broadcast(hAlarmWindowList, WM_COMMAND, IDC_SNOOZE, 0);
	WindowList_Destroy(hAlarmWindowList);

	if (hBackgroundBrush) DeleteObject(hBackgroundBrush);
	if (hTitleFont) DeleteObject(hTitleFont);
	if (hWindowFont) DeleteObject(hWindowFont);
}
Exemplo n.º 10
0
//
// Unload()
// Called by Miranda when Plugin is unloaded.
//
extern "C" __declspec(dllexport) int Unload(void)
{
	WindowList_Destroy(hFileList);
	if(hHookSkinIconsChanged != NULL)
		UnhookEvent(hHookSkinIconsChanged);
	UnhookEvent(hHookDbSettingChange);
	UnhookEvent(hHookContactAdded);

	return 0;
}
Exemplo n.º 11
0
// unload function
extern "C" int __declspec(dllexport) Unload(void)
{
	DestroyMwin();
	DestroyWindow(hPopupWindow);

	DestroyHookableEvent(hHookWeatherUpdated);
	DestroyHookableEvent(hHookWeatherError);

	NetlibHttpDisconnect();
	Netlib_CloseHandle(hNetlibUser);

	DestroyUpdateList();
	DestroyOptions();
	DestroyWIList();				// unload all ini data from memory

	WindowList_Destroy(hDataWindowList);
	WindowList_Destroy(hWindowList);

	CloseHandle(hUpdateMutex);
	return 0;
}
Exemplo n.º 12
0
static int SRUrlShutdown(WPARAM, LPARAM)
{
	if (hEventContactSettingChange)
		UnhookEvent(hEventContactSettingChange);

	if (hContactDeleted)
		UnhookEvent(hContactDeleted);

	if (hUrlWindowList) {
		WindowList_Broadcast(hUrlWindowList, WM_CLOSE, 0, 0);
		WindowList_Destroy(hUrlWindowList);
	}
	return 0;
}
Exemplo n.º 13
0
void g_MenuUninit(void)
{
    DestroyHookableEvent(hStatusMenuInit);

    Menu_RemoveItem(g_hMenuRequestAuth);
    Menu_RemoveItem(g_hMenuGrantAuth);
    Menu_RemoveItem(g_hMenuRevokeAuth);
    Menu_RemoveItem(g_hMenuConvert);
    Menu_RemoveItem(g_hMenuRosterAdd);
    Menu_RemoveItem(g_hMenuLogin);
    Menu_RemoveItem(g_hMenuRefresh);
    Menu_RemoveItem(g_hMenuAddBookmark);

    WindowList_Destroy(hDialogsList);
}
Exemplo n.º 14
0
void UnloadClcModule()
{
	if (!bModuleInitialized)
		return;

	for (int i = 0; i < arEvents.getCount(); i++)
		UnhookEvent(arEvents[i]);

	mir_free(cli.clcProto);
	WindowList_Destroy(hClcWindowList); hClcWindowList = NULL;

	FreeDisplayNameCache();

	UninitCustomMenus();
	UninitGenMenu();
}
Exemplo n.º 15
0
int CMPlugin::Unload()
{
	WindowList_Destroy(g_hSendWindowList);
	WindowList_Destroy(g_hRecvWindowList);
	return 0;
}
Exemplo n.º 16
0
extern "C" int __declspec(dllexport) Unload()
{
    WindowList_Destroy(g_hReadWndList);
    return 0;
}
Exemplo n.º 17
0
static int OnShutdown(WPARAM, LPARAM)
{
	WindowList_Destroy(g_dat.hMessageWindowList);
	return 0;
}
Exemplo n.º 18
0
void SrmmMenu_Unload()
{
	WindowList_Destroy(hDialogsList);
}
Exemplo n.º 19
0
void UninitHistoryDialog(void)
{
	WindowList_Destroy(hWindowList);
}
Exemplo n.º 20
0
extern "C" int __declspec(dllexport) Unload(void)
{
	WindowList_Destroy(hChangeSoundDlgList);
	return 0;
}
Exemplo n.º 21
0
extern "C" __declspec(dllexport) int Unload(void)
{
	WindowList_Destroy(hWindowList);
	DestroyCursor(splitCursor);
	return 0;
}
Exemplo n.º 22
0
extern "C" __declspec(dllexport) int Unload(void)
{
	WindowList_Destroy(g_hSendWindowList);
	WindowList_Destroy(g_hRecvWindowList);
	return 0;
}
Exemplo n.º 23
0
void UninitCustomMenus(void)
{
	WindowList_Destroy(hWindowListIGN);
}
Exemplo n.º 24
0
extern "C" __declspec(dllexport) int Unload(void)
{
	WindowList_Destroy(hAvatarWindowsList);
	return 0;
}
Exemplo n.º 25
0
int TN_ModuleDeInit()
{
	WindowList_Destroy(hPopupsList);
	db_set_b(0, Module, SET_DISABLED, (BYTE)(Disabled | StartDisabled | StopDisabled));
	return 0;
}
Exemplo n.º 26
0
void ToolbarButtonUnloadModule()
{
	WindowList_Destroy(hButtonWindowList);
}