當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。