From 54d93d2c1ae60d2205476cc08ad356fc7bbd13e0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Aug 2017 12:18:11 +0300 Subject: HookTemporaryEvent - new function that executes an event handler immediately if the event is missing usable to hook events that disappear after being used --- include/m_core.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/m_core.h b/include/m_core.h index 6d31fe17bb..eba11f2956 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -109,6 +109,10 @@ MIR_CORE_DLL(HANDLE) HookEventParam(const char *name, MIRANDAHOOKPARAM hookProc MIR_CORE_DLL(HANDLE) HookEventObj(const char *name, MIRANDAHOOKOBJ hookProc, void* object); MIR_CORE_DLL(HANDLE) HookEventObjParam(const char *name, MIRANDAHOOKOBJPARAM hookProc, void* object, LPARAM lParam); MIR_CORE_DLL(HANDLE) HookEventMessage(const char *name, HWND hwnd, UINT message); + +// executes the event handler if event is missing +MIR_CORE_DLL(HANDLE) HookTemporaryEvent(const char *name, MIRANDAHOOK hookProc); + MIR_CORE_DLL(int) UnhookEvent(HANDLE hHook); MIR_CORE_DLL(void) KillObjectEventHooks(void* pObject); MIR_CORE_DLL(void) KillModuleEventHooks(HINSTANCE pModule); -- cgit v1.2.3