title: Is there a way to turn the Windows ghosting feature back on after DisableProcessWindowsGhosting?
body: <p>We have an application that do heavy work in the main thread. To prevent Windows from deeming it 'Not Responding' and starting the ghosting feature (as described in section 'Hangs - Operating System Perspective' in this <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd744765%28v=vs.85%29.aspx" rel="noreferrer">link</a>) during the heavy work, we could use <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms648415%28v=vs.85%29.aspx" rel="noreferrer">DisableProcessWindowsGhosting</a> to turn the ghosting feature off.</p>
  
  <p>But we don't want to turn it off for the rest of the session, we want to turn it back on once the heavy work is done. Unfortunately Windows doesn't provide any (documented) API for that.</p>
  
  <p>Is there any (possibly hacky) way to turn it back on?</p>
  
  <p>As an interesting note, when the application runs in VC debugger, the ghosting feature is turned off, but once the it's detached, it's back on. There must be something the debugger does, any idea?</p>