diff options
Diffstat (limited to 'include/m_hotkeys.h')
-rw-r--r-- | include/m_hotkeys.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/m_hotkeys.h b/include/m_hotkeys.h index 6bb568d618..7d6acba08f 100644 --- a/include/m_hotkeys.h +++ b/include/m_hotkeys.h @@ -54,6 +54,8 @@ typedef struct #define HKF_MIRANDA_LOCAL 0x8000
+extern int hLangpack;
+
/* use this macro to defile hotkey codes like this:
hkd.DefHotkey = HOTKEYCODE(HOTKEYF_SHIFT|HOTKEYF_EXT, 'A');
*/
@@ -65,7 +67,11 @@ Registers new hotkey lParam=(LPARAM)(HOTKEYDESC *)hotkey
Returns 0 on failure or hotkey atom id on success
*/
-#define MS_HOTKEY_REGISTER "CoreHotkeys/Register"
+
+__inline static INT_PTR Hotkey_Register(HOTKEYDESC *hk)
+{
+ return CallService("CoreHotkeys/Register", (WPARAM)hLangpack, (LPARAM)hk);
+}
/* CoreHotkeys/Unregister service
Unregister existing hotkey
|