Is there a way to take a screenshot of the user's Windows desktop?

前端 未结 5 1840
孤独总比滥情好
孤独总比滥情好 2020-12-08 22:08

I want to provide the user with a scaled-down screenshot of their desktop in my application.

Is there a way to take a screenshot of the current user\'s Windo

5条回答
  •  無奈伤痛
    2020-12-08 22:40

    You might look at using GetDesktopWindow through p/invoke, then get the device context and take your snapshot. There is a very detailed tutorial here. It might be better than perturbing the existing windows.

提交回复
热议问题