summaryrefslogtreecommitdiff
path: root/include/m_core.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-08 12:18:11 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-08 12:18:11 +0300
commit54d93d2c1ae60d2205476cc08ad356fc7bbd13e0 (patch)
treed2511407730733583156eab9c7a840b1e4fb336e /include/m_core.h
parentfc8c1d39c4955db131d423a9930f5da878d10f9e (diff)
HookTemporaryEvent - new function that executes an event handler immediately if the event is missing
usable to hook events that disappear after being used
Diffstat (limited to 'include/m_core.h')
-rw-r--r--include/m_core.h4
1 files changed, 4 insertions, 0 deletions
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);