summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/mir_core.def2
-rw-r--r--src/mir_core/modules.cpp10
2 files changed, 12 insertions, 0 deletions
diff --git a/src/mir_core/mir_core.def b/src/mir_core/mir_core.def
index 0a13752fff..9e4253fc91 100644
--- a/src/mir_core/mir_core.def
+++ b/src/mir_core/mir_core.def
@@ -131,3 +131,5 @@ CmdLine_GetOption @128
CmdLine_Parse @129
Utf8CheckString @130
GetSubscribersCount @131
+NotifyFastHook @132
+
diff --git a/src/mir_core/modules.cpp b/src/mir_core/modules.cpp
index 4e9a518d26..7ab515e469 100644
--- a/src/mir_core/modules.cpp
+++ b/src/mir_core/modules.cpp
@@ -275,6 +275,16 @@ MIR_CORE_DLL(int) NotifyEventHooks(HANDLE hEvent, WPARAM wParam, LPARAM lParam)
return item->result;
}
+MIR_CORE_DLL(int) NotifyFastHook(HANDLE hEvent, WPARAM wParam, LPARAM lParam)
+{
+ switch ( checkHook((THook*)hEvent)) {
+ case hookInvalid: return -1;
+ case hookEmpty: return 0;
+ }
+
+ return CallHookSubscribers((THook*)hEvent, wParam, lParam);
+}
+
extern "C" MIR_CORE_DLL(int) GetSubscribersCount(THook* pHook)
{
switch ( checkHook(pHook)) {