当前位置: 首页>>代码示例>>C++>>正文


C++ DestroyServiceFunction函数代码示例

本文整理汇总了C++中DestroyServiceFunction函数的典型用法代码示例。如果您正苦于以下问题:C++ DestroyServiceFunction函数的具体用法?C++ DestroyServiceFunction怎么用?C++ DestroyServiceFunction使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了DestroyServiceFunction函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: UninitSettingsDlg

void UninitSettingsDlg(void)
{
	/* Menu Item */
	DestroyServiceFunction(hServiceMenuCommand);
	/* Services */
	DestroyServiceFunction(hServiceShowDlg);
}
开发者ID:martok,项目名称:miranda-ng,代码行数:7,代码来源:settingsdlg.cpp

示例2: DestroyServices

int DestroyServices()
{
	DestroyServiceFunction(hsYGMove);
	DestroyServiceFunction(hsYGReset);

	return 0;
}
开发者ID:kmdtukl,项目名称:miranda-ng,代码行数:7,代码来源:services.cpp

示例3: UninitWatcher

void UninitWatcher(void)
{
	/* remember watcher if running */
	if (!ServiceStopWatcher(0, 0))
		if (db_get_b(NULL, "AutoShutdown", "RememberOnRestart", SETTING_REMEMBERONRESTART_DEFAULT))
			db_set_b(NULL, "AutoShutdown", "RememberOnRestart", SDROR_RUNNING);

	/* Message Shutdown */
	UnhookEvent(hHookEventAdded);
	/* Status Shutdown*/
	UnhookEvent(hHookSettingChanged);
	/* Idle Shutdown */
	UnhookEvent(hHookIdleChanged);
	/* Transfer Shutdown */
	UnhookEvent(hHookProtoAck);
	mir_free(transfers); /* does NULL check */
	/* Weather Shutdown */
	UnhookEvent(hHookWeatherUpdated); /* does NULL check */
	/* Services */
	DestroyServiceFunction(hServiceStartWatcher);
	DestroyServiceFunction(hServiceStopWatcher);
	DestroyServiceFunction(hServiceIsEnabled);
	DestroyHookableEvent(hEventWatcherChanged);
	/* Misc */
	UnhookEvent(hHookModulesLoaded);
}
开发者ID:Seldom,项目名称:miranda-ng,代码行数:26,代码来源:watcher.cpp

示例4: Unload

MIRAPI int Unload(void)
{
	int i;

	for (i = SIZEOF(popupServices); i--; )
		DestroyServiceFunction(popupServices[i].handle);

	SrmmMenu_Unload();

	UnhookEvent(hOptionsInitialize);
	UnhookEvent(hModulesLoaded);
	UnhookEvent(hOkToExit);
	UnhookEvent(hEventStatusChanged);
	UnhookEvent(hIconsChanged);
	UnhookEvent(hFontsChanged);
	UnhookEvent(hTBLoaded);

	DestroyServiceFunction(hShowHistory);
	DestroyServiceFunction(hTogglePopup);
	DestroyServiceFunction(hGetStatus);
	DestroyServiceFunction(hSquareFad);

	DeleteObject(fonts.title);
	DeleteObject(fonts.clock);
	DeleteObject(fonts.text);
	DeleteObject(fonts.action);
	DeleteObject(fonts.actionHover);

	DeleteObject(hbmNoAvatar);

	FreeLibrary(hDwmapiDll);
	FreeLibrary(hUserDll);
	FreeLibrary(hMsimgDll);
//	FreeLibrary(hKernelDll);
	FreeLibrary(hGdiDll);

	if(PopUpOptions.SkinPack) mir_free(PopUpOptions.SkinPack);
	mir_free(PopUpOptions.Effect);

	OptAdv_UnregisterVfx();
	UnloadPopupThread();
	UnloadPopupWnd2();
	PopupHistoryUnload();

	UnregisterClass (MAKEINTATOM(g_wndClass.cPopupWnd2),hInst);
	UnregisterClassW(L"PopupEditBox",hInst);
	UnregisterClass (MAKEINTATOM(g_wndClass.cPopupMenuHostWnd),hInst);
	UnregisterClass (MAKEINTATOM(g_wndClass.cPopupThreadManagerWnd),hInst);
	UnregisterClass (MAKEINTATOM(g_wndClass.cPopupPreviewBoxWndclass),hInst);
	UnregisterClass (MAKEINTATOM(g_wndClass.cPopupPlusDlgBox),hInst);

	UnloadGDIPlus();

	UnloadActions();

	CloseHandle(hMainThread);

	return 0;
}
开发者ID:TonyAlloa,项目名称:miranda-dev,代码行数:59,代码来源:main.cpp

示例5: ShutdownProc

static int ShutdownProc(WPARAM wParam, LPARAM lParam)
{
	if (hSvc_invoke)
		DestroyServiceFunction(hSvc_invoke);
	if (hSvc_fillby)
		DestroyServiceFunction(hSvc_fillby);
	return 0;
}
开发者ID:biddyweb,项目名称:miranda-ng,代码行数:8,代码来源:main.cpp

示例6: __declspec

extern "C" __declspec (dllexport) int Unload(void)
{
    DestroyServiceFunction(hServiceToggle);
    DestroyServiceFunction(hServiceClear);

    RemoveReadEvents();
    return 0;
}
开发者ID:kmdtukl,项目名称:miranda-ng,代码行数:8,代码来源:dllmain.cpp

示例7: __declspec

extern "C" int __declspec(dllexport) Unload(void)
{
	UnhookEvent(hCSModuleLoadedHook);

	DestroyServiceFunction(hGetProfileService);
	DestroyServiceFunction(hGetProfileCountService);
	DestroyServiceFunction(hGetProfileNameService);
	return 0;
}
开发者ID:kxepal,项目名称:miranda-ng,代码行数:9,代码来源:main.cpp

示例8: CB_DeInitCustomButtons

void CB_DeInitCustomButtons()
{
	DestroyHookableEvent(hHookToolBarLoadedEvt);
	DestroyHookableEvent(hHookButtonPressedEvt);
	DestroyServiceFunction(hButtonsBarAddButton);
	DestroyServiceFunction(hButtonsBarRemoveButton);
	DestroyServiceFunction(hButtonsBarModifyButton);
	DestroyServiceFunction(hButtonsBarGetButtonState);
	DestroyServiceFunction(hButtonsBarSetButtonState);
}
开发者ID:0xmono,项目名称:miranda-ng,代码行数:10,代码来源:buttonsbar.cpp

示例9: __declspec

extern "C" __declspec(dllexport) int Unload(void)
{
	DestroyServiceFunction(hService);
	DestroyServiceFunction(hService2);
	DestroyServiceFunction(hService3);
	UnhookEvent(hHook);
	UnhookEvent(hOnButtonPressed);

	return 0;
}
开发者ID:TonyAlloa,项目名称:miranda-dev,代码行数:10,代码来源:TranslitSwitcher.cpp

示例10: onShutdown

int onShutdown(WPARAM, LPARAM)
{
	DestroyServiceFunction(hContactReturnedAction);
	DestroyServiceFunction(hContactStillAbsentAction);
	DestroyServiceFunction(hMissYouAction);
	DestroyServiceFunction(hMenuMissYouClick);

	IcoLib_ReleaseIcon(hIcon);
	return 0;
}
开发者ID:kxepal,项目名称:miranda-ng,代码行数:10,代码来源:BuddyExpectator.cpp

示例11: mir_free

int CMPlugin::Unload()
{
	for (int i = 0; i < bLayNum; i++)
		mir_free(ptszLayStrings[i]);

	DestroyServiceFunction(hChangeLayout);
	DestroyServiceFunction(hGetLayoutOfText);
	DestroyServiceFunction(hChangeTextLayout);
	UnhookWindowsHookEx(kbHook_All);
	return 0;
}
开发者ID:tweimer,项目名称:miranda-ng,代码行数:11,代码来源:main.cpp

示例12: UninitKeyBinding

static void UninitKeyBinding() 
{
	KeyBindingItem *ptr, *ptr2;
	ptr = keyBindingList;
	keyBindingList = NULL;
	for (; ptr != NULL; ptr = ptr2) {
		ptr2 = ptr->next;
		mir_free(ptr->actionName);
		mir_free(ptr->fullActionName);
		mir_free(ptr->actionGroupName);
		mir_free(ptr);
	}
	DestroyServiceFunction(hKeyBindings_Register);
	DestroyServiceFunction(hKeyBindings_Get);
}
开发者ID:TonyAlloa,项目名称:miranda-dev,代码行数:15,代码来源:keybindings.cpp

示例13: __declspec

extern "C" int __declspec(dllexport) Unload(void) 
{	
	UnhookEvent(hModulesLoaded);
	UnhookEvent(hEventPreShutdown);
	UnhookEvent(hOptionsInit);
	UnhookEvent(hPrebuildContactMenu);
	UnhookEvent(hTabsrmmButtonPressed);
	
	DestroyServiceFunction(hServiceUpload);
	DestroyServiceFunction(hServiceShowManager);
	DestroyServiceFunction(hServiceContactMenu);
	DestroyServiceFunction(hServiceMainMenu);

	return 0;
}
开发者ID:0xmono,项目名称:miranda-ng,代码行数:15,代码来源:ftpfile.cpp

示例14: PreShutdown

int PreShutdown(WPARAM wParam, LPARAM lParam)
{
	if (hwnd2watchedVarsWindow) DestroyWindow(hwnd2watchedVarsWindow);
	if (hwnd2mainWindow) DestroyWindow(hwnd2mainWindow);
	if (hwnd2importWindow) DestroyWindow(hwnd2importWindow);

	UnhookEvent(hSettingsChangedHook);
	UnhookEvent(hOptInitHook);
	UnhookEvent(hPreShutdownHook);

	DestroyServiceFunction(sServicemodeLaunch);
	DestroyServiceFunction(sMenuCommand);
	DestroyServiceFunction(sImport);
	return 0;
}
开发者ID:MrtsComputers,项目名称:miranda-ng,代码行数:15,代码来源:main.cpp

示例15: __declspec

extern "C" int __declspec(dllexport) Unload(void)
{
	DestroyHookableEvent(hConnectionEvent);

	UnhookEvent(hCSModuleLoadedHook);

	if (hMainThread)
		CloseHandle(hMainThread);
	DestroyServiceFunction(hStopRecon);
	DestroyServiceFunction(hEnableProto);
	DestroyServiceFunction(hIsProtoEnabled);
	DestroyServiceFunction(hAnnounceStat);

	return 0;
}
开发者ID:Seldom,项目名称:miranda-ng,代码行数:15,代码来源:main.cpp


注:本文中的DestroyServiceFunction函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。