示例#1
0
 private void ReleaseHook()
 {
     if (!_isHooked)
     {
         return;
     }
     LLMouseHook.UnHook();
     LLKeyboardHook.UnHook();
     ClearHooksFromFile();
     _isHooked = false;
 }
示例#2
0
        private void ClearExistingHook()
        {
            long val;

            if (Int64.TryParse(Config.HookPtr1, out val))
            {
                LLMouseHook.UnHook(val);
            }
            if (Int64.TryParse(Config.HookPtr2, out val))
            {
                LLKeyboardHook.UnHook(val);
            }
        }