user90188
user90188

Reputation: 41

How to get the screenshot of a minimized application programmatically?

I'm trying to get the screenshot of a minimized application, any ideas of how to it under windows ? I'm using C#

tks in advance, Jose

Upvotes: 3

Views: 1481

Answers (3)

Noyoudont
Noyoudont

Reputation: 155

It's easy. Just use the printWindow Api call!

Upvotes: 0

OregonGhost
OregonGhost

Reputation: 23759

On Vista and later, this should be possible with the Desktop Window Manager. Explorer also displays (animated) screenshots of minimized windows when hovering over a taskbar entry with DWM enabled, so the DWM APIs should be the way to go.

Out of curiosity, why do you need such a screenshot?

Upvotes: 2

PhiLho
PhiLho

Reputation: 41162

Restore, take the screenshot, minimize back...

If it is not on screen, I don't see how you can make a copy of the image...

Upvotes: 3

Related Questions