Hello, I have experience in code injection (dll injection, .exe self-injection to other process). I might review your code or give you some of my code - I have dll injector that can use one of use CreateRemoteThread, NtCreateThreadEx and NtCreateThread API functions.
It would be good if you could give me more details.