I\'m trying to find a (somewhat) easy way to take a screenshot on window and save the resulting HBITMAP as a JPEG. The tricky part here is that since the code is in C I can\
libjpeg is free, open source, coded in C. You can copy their code into yours.
http://sourceforge.net/project/showfiles.php?group_id=159521