You could find the window using the FindWindow Api, then Bring it to top, make the screenshot, restore the old position and voila.
That's the way how to do it. I could figure some code for ya