本文整理汇总了C++中UnhookEvent函数的典型用法代码示例。如果您正苦于以下问题:C++ UnhookEvent函数的具体用法?C++ UnhookEvent怎么用?C++ UnhookEvent使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了UnhookEvent函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnShutdown
static INT OnShutdown(WPARAM wParam, LPARAM lParam)
{
UnhookEvent(ghShutdownHook);
if(hPrebuildMenuHook)
UnhookEvent(hPrebuildMenuHook);
if (hSettingChanged)
UnhookEvent(hSettingChanged);
if (ghChangedHook)
UnhookEvent(ghChangedHook);
services.destroy();
DlgContactInfoUnLoadModule();
SvcReminderUnloadModule();
// uninitialize classes
CtrlContactUnLoadModule();
CtrlButtonUnloadModule();
SvcConstantsUnloadModule();
UnhookEvent(ghPrebuildStatusMenu);
SvcEMailUnloadModule();
SvcFlagsUnloadModule();
SvcGenderUnloadModule();
SvcHomepageUnloadModule();
SvcPhoneUnloadModule();
OptionsUnloadModule();
mir_free(hMenuItemAccount);
return 0;
}
示例2: SvcGenderUnloadModule
/**
* This function unloads the module.
*
* @param none
*
* @return nothing
**/
VOID SvcGenderUnloadModule()
{
// unhook event handlers
UnhookEvent(hChangedHook); hChangedHook = NULL;
UnhookEvent(hApplyIconHook); hApplyIconHook = NULL;
UnhookEvent(hRebuildIconsHook); hRebuildIconsHook = NULL;
}
示例3: UninitOptions
void UninitOptions(void)
{
/* Option Page */
UnhookEvent(hHookOptInit);
/* Trigger */
UnhookEvent(hHookModulesLoaded);
}
示例4: __declspec
extern "C" __declspec(dllexport) int Unload(void)
{
UnhookWindowsHooks();
if (hModulesLoaded)
UnhookEvent(hModulesLoaded);
if (hMsgEventHook)
UnhookEvent(hMsgEventHook);
if (hOptionsInitialize)
UnhookEvent(hOptionsInitialize);
if (hEnableService)
DestroyServiceFunction(hEnableService);
if (hDisableService)
DestroyServiceFunction(hDisableService);
if (hStartBlinkService)
DestroyServiceFunction(hStartBlinkService);
if (hEventsOpenedService)
DestroyServiceFunction(hEventsOpenedService);
if (hFlashingEventService)
DestroyServiceFunction(hFlashingEventService);
if (hNormalizeSequenceService)
DestroyServiceFunction(hNormalizeSequenceService);
// Wait for thread to exit
SetEvent(hExitEvent);
WaitForSingleObject(hThread, INFINITE);
RestoreLEDState();
CloseKeyboardDevice();
destroyProcessList();
destroyProtocolList();
return 0;
}
示例5: SvcGenderEnableExtraIcons
bool SvcGenderEnableExtraIcons(bool bEnable, bool bUpdateDB)
{
bool bChanged;
if (bUpdateDB) {
bChanged = g_eiGender != bEnable;
db_set_b(NULL, MODNAME, SET_CLIST_EXTRAICON_GENDER2, g_eiGender = bEnable);
}
else bChanged = g_eiGender = db_get_b(NULL, MODNAME, SET_CLIST_EXTRAICON_GENDER2, 0) != 0;
if (g_eiGender) { // Gender checked or dropdown select
if (ghExtraIconSvc == INVALID_HANDLE_VALUE)
ghExtraIconSvc = ExtraIcon_RegisterIcolib("gender", LPGEN("Gender (uinfoex)"), ICO_COMMON_MALE);
// hook events
if (hChangedHook == NULL)
hChangedHook = HookEvent(ME_DB_CONTACT_SETTINGCHANGED, (MIRANDAHOOK)OnContactSettingChanged);
if (hApplyIconHook == NULL)
hApplyIconHook = HookEvent(ME_CLIST_EXTRA_IMAGE_APPLY, (MIRANDAHOOK)OnCListApplyIcons);
}
else {
if (hChangedHook) {
UnhookEvent(hChangedHook);
hChangedHook = NULL;
}
if (hApplyIconHook) {
UnhookEvent(hApplyIconHook);
hApplyIconHook = NULL;
}
}
return bChanged;
}
示例6: SvcHomepageEnableExtraIcons
bool SvcHomepageEnableExtraIcons(bool bEnable, bool bUpdateDB)
{
bool bChanged;
if (bUpdateDB) {
bChanged = g_eiHome != bEnable;
db_set_b(NULL, MODNAME, SET_CLIST_EXTRAICON_HOMEPAGE, g_eiHome = bEnable);
}
else bChanged = g_eiHome = db_get_b(NULL, MODNAME, SET_CLIST_EXTRAICON_HOMEPAGE, DEFVAL_CLIST_EXTRAICON_HOMEPAGE) != 0;
if (g_eiHome) {
// hook events
if (hChangedHook == NULL)
hChangedHook = HookEvent(ME_DB_CONTACT_SETTINGCHANGED, (MIRANDAHOOK)OnContactSettingChanged);
if (hApplyIconHook == NULL)
hApplyIconHook = HookEvent(ME_CLIST_EXTRA_IMAGE_APPLY, (MIRANDAHOOK)OnCListApplyIcons);
if (ghExtraIconSvc == INVALID_HANDLE_VALUE)
ghExtraIconSvc = ExtraIcon_Register("homepage", LPGEN("Homepage (uinfoex)"), ICO_BTN_GOTO);
}
else {
if (hChangedHook) {
UnhookEvent(hChangedHook);
hChangedHook = NULL;
}
if (hApplyIconHook) {
UnhookEvent(hApplyIconHook);
hApplyIconHook = NULL;
}
}
return bChanged;
}
示例7: __declspec
extern "C" __declspec(dllexport) int Unload(void)
{
UnhookEvent(hHookedNewEvent);
UnhookEvent(hHookedOpt);
UnhookEvent(hHookedInit);
return 0;
}
示例8: SvcPhoneEnableExtraIcons
bool SvcPhoneEnableExtraIcons(bool bEnable, bool bUpdateDB)
{
bool bChanged;
if (bUpdateDB) {
bChanged = g_eiPhone != bEnable;
db_set_b(NULL, MODNAME, SET_CLIST_EXTRAICON_PHONE, g_eiPhone = bEnable);
}
else bChanged = g_eiPhone = db_get_b(NULL, MODNAME, SET_CLIST_EXTRAICON_PHONE, DEFVAL_CLIST_EXTRAICON_PHONE) != 0;
// force module enabled, if extraicon plugin was found
if (g_eiPhone) {
// hook events
if (hChangedHook == NULL)
hChangedHook = HookEvent(ME_DB_CONTACT_SETTINGCHANGED, (MIRANDAHOOK)OnContactSettingChanged);
if (hApplyIconHook == NULL)
hApplyIconHook = HookEvent(ME_CLIST_EXTRA_IMAGE_APPLY, (MIRANDAHOOK)OnCListApplyIcons);
if (ghExtraIconSvc == INVALID_HANDLE_VALUE)
ghExtraIconSvc = ExtraIcon_Register("sms", LPGEN("Phone (uinfoex)"), ICO_BTN_CELLULAR);
}
else {
if (hChangedHook) {
UnhookEvent(hChangedHook);
hChangedHook = NULL;
}
if (hApplyIconHook) {
UnhookEvent(hApplyIconHook);
hApplyIconHook = NULL;
}
}
return bChanged;
}
示例9: UnhookEvents
int UnhookEvents()
{
UnhookEvent(hModulesLoaded);
UnhookEvent(hOptionsInitialize);
return 0;
}
示例10: __declspec
extern "C" int __declspec(dllexport) Unload(void)
{
UnhookEvent(hModulesLoaded);
UnhookEvent(hPrebuildContactMenu);
UnhookEvent(hOptionsInit);
if(hWindowEvent != NULL)
UnhookEvent(hWindowEvent);
DestroyServiceFunction(hServiceContactMenu);
Netlib_CloseHandle(g_hNetlibUser);
if(hTabsrmmButtonPressed != NULL)
UnhookEvent(hTabsrmmButtonPressed);
for(int i=0; i < PasteToWeb::pages; ++i)
if(pasteToWebs[i] != NULL) {
delete pasteToWebs[i];
pasteToWebs[i] = NULL;
}
if(Options::instance != NULL) {
delete Options::instance;
Options::instance = NULL;
}
delete contactWindows;
return 0;
}
示例11: OnPreShutdown
int OnPreShutdown(WPARAM wParam, LPARAM lParam) {
if(current_status != ID_STATUS_OFFLINE) LogOut();
UnhookEvent(hIdleEventHook);
UnhookEvent(hWindowEventHook);
return 0;
}
示例12: SetStatusTimed
static VOID CALLBACK SetStatusTimed(HWND hwnd, UINT message, UINT_PTR idEvent, DWORD dwTime)
{
KillTimer(NULL, setStatusTimerId);
UnhookEvent(hProtoAckHook);
UnhookEvent(hCSStatusChangeHook);
UnhookEvent(hStatusChangeHook);
CallService(MS_CS_SETSTATUSEX, (WPARAM)&startupSettings, 0);
}
示例13: _ExtFrames_UninitServices
static void _ExtFrames_UninitServices()
{
if (ExtFrames.hookSBShowTooltip) UnhookEvent( ExtFrames.hookSBShowTooltip );
if (ExtFrames.hookSBHideTooltip) UnhookEvent( ExtFrames.hookSBHideTooltip );
if (ExtFrames.hookPrebuildFrameMenu) UnhookEvent( ExtFrames.hookPrebuildFrameMenu );
ExtFrames.hookSBShowTooltip = NULL;
ExtFrames.hookSBHideTooltip = NULL;
ExtFrames.hookPrebuildFrameMenu = NULL;
}
示例14: UnhookEvents
int UnhookEvents()
{
UnhookEvent(hModulesLoaded);
UnhookEvent(hOptionsInitialise);
UnhookEvent(hPreShutdown);
KillTimers();
return 0;
}
示例15: _declspec
extern "C" _declspec(dllexport) int Unload(void)
{
RemoveNotOnListSettings();
UnhookEvent(hOptInitialize);
UnhookEvent(hModulesLoaded);
UnhookEvent(hDBContactAdded);
UnhookEvent(hDBEventAdded);
UnhookEvent(hDBEventFilterAdd);
return 0;
}