OSDN Git Service

Make the keyboard hook thread local.
[xkeymacs/xkeymacs.git] / xkeymacsdll / xkeymacsdll.h
index 4aa2c53..28201f9 100644 (file)
@@ -194,10 +194,12 @@ public:
        void SetAtIbeamCursorOnly(int nApplicationID, int nCommandType, int nKey, BOOL bAtIbeamCursorOnly);\r
        void SetApplicationName(int nApplicationID, CString szApplicationName);\r
        static void ReleaseHooks();\r
+       static void ReleaseKeyboardHook();\r
        void SetEnableCUA(int nApplicationID, BOOL bEnableCUA);\r
        void SetIgnoreUndefinedC_x(int nApplicationID, BOOL bIgnoreUndefinedC_x);\r
        void SetIgnoreUndefinedMetaCtrl(int nApplicationID, BOOL bIgnoreUndefinedMetaCtrl);\r
        static void SetHooks();\r
+       static void SetKeyboardHook();\r
        void SetSettingStyle(int nApplicationID, int nSettingStyle);\r
        void SetUseDialogSetting(int nApplicationID, BOOL bUseDialogSetting);\r
        static void AddKillRing(BOOL bNewData = TRUE);\r
@@ -232,7 +234,7 @@ private:
        static LRESULT CALLBACK CallWndRetProc(int nCode, WPARAM wParam, LPARAM lParam);\r
        static BOOL IsMatchWindowText(CString szWindowText);\r
        static TCHAR m_szWindowText[MAX_APP][WINDOW_TEXT_LENGTH];\r
-       static HHOOK m_hHookKeyboard;\r
+       static BOOL m_bEnableKeyboardHook;\r
        static HHOOK m_hHookCallWnd;\r
        static HHOOK m_hHookGetMessage;\r
        static HHOOK m_hHookShell;\r