Another good book is Windows Via C++. I picked it up after Cypher mentioned it and I believe his EnsureCleanup code is based on that book.
Also, use Cypher's latest posted loader code. It is much better than Microsoft's old injector that I adapted here. Please don't necro this thread anymore.![]()