C# DLL Injection Library
Due to the lack of well documented C# sources, I decided to make my own injection library. It supports both x86 and x64 injection for all methods.
Currently, it supports the following methods
CreateRemoteThread
QueueUserAPC
SetThreadContext (Thread Hijack)
I will probably be adding more methods when I get the time, however, for now, It works as is.
The source code is hosted on Github as well as the instructions on how to use it.
Currently, it supports the following methods
CreateRemoteThread
QueueUserAPC
SetThreadContext (Thread Hijack)
I will probably be adding more methods when I get the time, however, for now, It works as is.
The source code is hosted on Github as well as the instructions on how to use it.

maybe u can add an optional second parameter for getting the memoryInformation as output variable, so People can even restore the PE Header if they want without changing anything. If you restore the PE Header u can unload your DLL with FreeLibraryAndExitThread((HMODULE)handle, 0); from the Injected DLL itself