I'm looking for a way to get a picture of the Main Window of a process without getting a screenshot of the whole desktop. I want to be able to get a picture of minimized windows and covered windows. Ideally I'd like to get this image as a Bitmap
object for later manipulation.
I can already get the hwnd for the Main Window using System.Diagnostics.Process
, where can I use that hwnd to get the image of the window? I do expect to need to use the WinAPI, I just don't know where.