Exemple #1
0
        public void DisableHook()
        {
            if (!isHookEnabled)
            {
                return;
            }

            Logger.Debug("Disabling DebugHelper input hooks");

            mouseHookManager.DisableHook();
            keyboardHookManager.DisableHook();

            isHookEnabled = false;
        }
        public void DisableHook()
        {
            if ((thread == null) || stopRequested)
            {
                return;
            }

            Logger.Debug("Disabling WinAPI input hooks");

            mouseHookManager.DisableHook();
            keyboardHookManager.DisableHook();

            stopRequested = true;
            thread.Join();

            stopRequested = false;
            thread        = null;
        }