title: DWM Screen Capturing with DirectX IDXGIOutput::GetDisplaySurfaceData
body: <p>I am trying to capture DWM's DirectX surface by using DXGI and <code>GetDisplaySurfaceData()</code> using Direct3D 10/11. </p>
  
  <p>However, when I am taking ownership of the adapter's output with <code>IDXGIOutput::TakeOwnership()</code> before calling to <code>GetDisplaySurfaceData()</code>, the whole screen blacks out for a moment and then restores back (just as during display mode switching).</p>
  
  <p>Why does this happen, and how can I prevent this?</p>