diff options
Diffstat (limited to 'src/mir_core/modules.cpp')
-rw-r--r-- | src/mir_core/modules.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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)) {
|