Prevent classic DLL Injection
Today i made a dll to prevent the classic dll injection based on LoadLibrary functions of kernel32.dll, this is how to use it
You just need to put the dll in the same location of the exe or in some subfolder like .\\FolderName\\AntiDLLInject.dll
Result trying to inject with CE:

Antivirus scans:
https://www.virustotal.com/it/file/5...is/1411229492/ⓘ
http://virusscan.jotti.org/en/scanre...e7154f23a02985ⓘ
Download dll:

Code:
[DllImport("AntiDLLInject.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void Activate();
static void Main(string[] args)
{
Activate();
//etc...
}
Result trying to inject with CE:

Antivirus scans:
https://www.virustotal.com/it/file/5...is/1411229492/ⓘ
http://virusscan.jotti.org/en/scanre...e7154f23a02985ⓘ
Download dll:

, the dll just handle native injection do not affects the .net app.