Search code examples
c++directxwdm

Desktop DirectX Surface (WDM)


I'm trying to make a screen recording app. Is there a way to use DirectX to capture the entire screen and store it as a texture? This would be in WDM. I know there's a way to get the texture for windows, but what about the entire screen.

I've tried the GDI method of using getDC(null) but that's rather slow for my uses.


Solution

  • There's three methods: gdi method, directx method and windows media api. When you need to capture entire screen as texture, you should use

    IDirect3DSurface9->GetFrontBufferData()