A quick way of spying inside of a process. You could also turn this into something like a disassemble, pretty easy, if you wanted too.
The inline assembly is GCC dependent(quick fix for other compilers), and in MinGW you need to link th32 and gid32.
The code flow might be lacking a bit since this was initial just a small test program that I just kept adding to, but I have cleaned it up quite a bit. Still might be an unnecessary variable or two floating around.
Let me know what you think.