void UnLoadContactListModule() //unhooks noncritical events { UninitTrayMenu(); UninitCustomMenus(); // UnloadMainMenu(); // UnloadStatusMenu(); ModernUnhookEvent(hookOptInitialise_CList); ModernUnhookEvent(hookOptInitialise_Skin); ModernUnhookEvent(hSettingChanged); ModernUnhookEvent(hookContactAdded_CListSettings); }
static int ehhToolBarSystemShutdown(WPARAM wParam, LPARAM lParam) { //Remove services; ModernUnhookEvent(tbdat.hehSettingsChanged); ModernUnhookEvent(tbdat.hehModulesLoaded); ModernUnhookEvent(tbdat.hehSystemShutdown); ModernUnhookEvent(tbdat.hehOptInit); EnterCriticalSection(&tbdat.cs); g_CluiData.hEventToolBarModuleLoaded=NULL; li_ListDestruct(tbdat.listOfButtons,delete_MTB_BUTTONINFO); LeaveCriticalSection(&tbdat.cs); DeleteCriticalSection(&tbdat.cs); return 0; }
int UnloadFavoriteContactMenu() { ModernUnhookEvent(hOnContactMenuBuild_FAV); if (hFavoriteContactMenuItems) free (hFavoriteContactMenuItems); hFavoriteContactMenuItems=NULL; if (hFavoriteContactMenu) CallService(MO_REMOVEMENUITEM,(WPARAM)hFavoriteContactMenu,0); hFavoriteContactMenu=NULL; return 0; }
int CListMod_ContactListShutdownProc(WPARAM wParam,LPARAM lParam) { ModernUnhookEvent(hookSystemShutdown_CListMod); FreeDisplayNameCache(); return 0; }
int ToolbarButtonUnloadModule(WPARAM wParam, LPARAM lParam) { ModernUnhookEvent(hBkgChangedHook); ModernUnhookEvent(hIconChangedHook); return 0; }