title: mouse lagging if windbg attach to a process which hook global mouse event
body: <p>While debugging my c# application which hook global mouse event, I found after attach to my application using windbg, the mouse's response is very slow. After comment out the hook, the lagging is gone.</p>
  <p>I am using a library called globalmousekeyhook. To reproduce the issue, download source code from <a href="https://github.com/gmamaladze/globalmousekeyhook" rel="nofollow noreferrer">globalmousekeyhook</a>, then compile the solution, set FormsExample as startup project &amp; run it. Then using windbg attach demo.exe</p>
  <p>If comment out all the code inside Subscribe(), the lagging issue is gone.</p>
  <pre><code>    private IKeyboardMouseEvents m_GlobalHook;
  
      public void Subscribe()
      {
          // Note: for the application hook, use the Hook.AppEvents() instead
          m_GlobalHook = Hook.GlobalEvents();
  
          m_GlobalHook.MouseDownExt += GlobalHookMouseDownExt;
          m_GlobalHook.KeyPress += GlobalHookKeyPress;
      }
  </code></pre>
  <p>I've had the same problem when debugging some other applications. Does windbg has any solution for this issue?</p>
  <p>Windbg version:<br />
  Windbg preview<br />
  Debugger client version: 1.0.2007.06001<br />
  Debugger engine version: 10.0.20153.1000</p>
  <p>Windbg 10.0.19041 in window 10 SDK has the same issue.</p>