I need to capture the screen when a game is running.
The problem is that when I make my app use keybd_event API to simulate the PrintScreen button, or when I use BitBlt to capture the screen, the window that the game is in is just black.

I need to capture the screen because I want to look for certain pixels within the game window, but atm the whole thing is just black.

Any way to capture the pixels in the window or somehow compare the pixels to a picture I have (sort of like an OCR but I want to find shapes, not text)