winapi - capturing a desktop , other then the active one -


(c/win32)

i using http://msdn.microsoft.com/en-us/library/windows/desktop/dd183402(v=vs.85).aspx capture current desktop. uses: getdc(null);

to running desktop. let's have few desktops (for example, using sysinternal's desktop tool). thought use opendesktop , use handle in getdc gives me black pic. there other way of capturing other desktops in current station (within current session of course)?

opendesktop() returns hdesk getdc() requires hwnd instead.

try calling setthreaddesktop() first, thread associated target desktop, try getdc(null) again.


Comments

Popular posts from this blog

mongodb - Struggling to get ordered results from the last retrieved article, given array of elements to search in -

c# - Pausing a storyboard on TabItem mouse over -

c# - Attribute value in root node of xml Linq to XML -