Hello guys, my goal is to create 2 desktops (each emulates a monitor) and show a preview of the desktop(s) by taking a screenshot of each. Tried using Bitblt but it failed so I'm trying with PrintWindow, it returns TRUE, but for some reason the bitmap is all black! If I use SwitchDesktop, it works but I don't want to switch just to take a screenshot ( it takes like 3 seconds to switch between desktops). sorry if it's noob question, I'm a little newbie using the GDI functions. attached the code.
Hello
Here on Board gives Screenshot capture source or here a good Article
https://msdn.microsoft.com/en-us/library/windows/desktop/dd183402%28v=vs.85%29.aspx