Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture screenshot of hidden desktop

I am using virtual desktops on Windows using simple app that i coded myself in C++, i was wondering if there is way to capture screenshot of secondary/hidden desktop ? I know that i can do SwitchDesktop -> capture screenshot -> SwitchDesktop, but it doesnt sound like good solution....

Maybe i run some window in the hidden desktop, to get its hwnd and SOMEHOW to use it to capture the entire screen ?

I have run Spy++ but seems it not finding windows that dont belong to currently active desktop.

Thanks in advance.

like image 666
VisaToHell Avatar asked Apr 29 '12 20:04

VisaToHell


1 Answers

If you could live without XP support this article explains how to use DWM API for getting screenshot of the invisible desktop.

like image 165
Flot2011 Avatar answered Sep 30 '22 05:09

Flot2011