I created a program that performs DLL injection. It does that by opening the process with
OpenProcess, writes the DLL path to the process and creates a remote thread with
CreateRemoteThread with the dll as a parameter.(The DLL just spawns a messagebox). It works just fine but the problem is the second time i can't see the messagebox. The functions
WriteProcessMemory all return true but i can't see the thread being created and the DLL does not run.