I just finished reading this excellent article about code injection. However the article doesn’t go just into the “how to” stuff but also goes deeply into the organization of executable files. I have to thank Ashkbiz Danehkar for sharing his expert knowledge.

Go ahead, take your time and read Inject your code to a Portable Executable file on Codeproject.