Hello, I'm looking for a way to take a screenshot and save it as a PNG.

I came across this, for saving the image to a BMP:
http://69.10.233.10/KB/cpp/Screen_Capture__Win32_.aspx

But can find no examples or documentation of how I would save as a PNG instead.

I'm fairly competent with the Win32 API and C++ in general, but this is the first time I've ever had to do something like this (I normally do very low-levl stuff) so I'm at a loss of where to look for the API (I searched MSDN but couldn't find anything, I'm probably overlooking something though).

If someone could give me a nudge in the right direction I'd greatly appreciate it.

Thanks.