tags:

views:

309

answers:

0

Hi,

I'm trying to capture DWM's DirectX surface by using DXGI and GetDisplaySurfaceData(). (I know how to do it with GDI and DirectX 9 but I need it in Direct3D 10/11).

However when I'm taking ownership of adapter's output with IDXGIOutput::TakeOwnership(), before calling to GetDisplaySurfaceData(), the whole screen blacks-out for a moment and then restores back(like display mode switching).

Maybe somebody knows why is this happens, and how to prevent this?

Thanks!