I want to take a screenshot in C on my windows machine and save it as a jpg or bmp or whatever. Anyway, I tried to do it by my own, it\'s okay and working well but it\'s UNB
See the CaptureAnImage() function in the example. The whole code is a bit complex because it is a full win32 app but it shows how to capture a sepcific window and save to filename.bmp.