Using Detours and Hooks to screen shot a DirectX 11 Game

I have been playing with Detours and DLL injection to take screen shots inside a game a-la-FRAPS.

According to the literature this method seems to be the least frowned upon.

The motivation is to generate screen shots of a game to train a OpenCV haar classifier to detect objects in the screen. This has already been done successfully offline.

I moved the repository here: