Dynamically altering another program’s flow

I’ve been asked by a friend of mine for sample code on debugging APIs. The code starts and debugs the Minesweeper game that comes with Windows 7, using breakpoints and single steps. When the user clicks a bomb, the instruction pointer is moved so that it doesn’t explode.

Updates
14/04/2012: fixed a bug

Downloads
Source code (x86 and x64 compatible)

Overlaying OpenGL programs with text and/or geometry

This is a sample program i made for a friend of mine. It simply overlays an OpenGL program with an FPS counter, but can also be modified to display geometry as well.

YouTube

Screenshot

http://www.youtube.com/watch?v=CFucIgCg6K8

Source code and binaries