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

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -