Hey if you check out my TSX Client topic it has a nice write up on some parts of the code of a DLL for DLL Injection.
Something a bit difficult and hard to work out but well worth it is Manual Mapping Injection. But discussion about it online is hard to follow. I almost have it working

But won't be doing anymore work on things till im finished my industry project.