I have a piece of code similar to
It's function injection (code injection) into another process using WriteProcessMemory and VirtualAllocEx etc.
But it fails because DEP is enabled in my PC and I get a message about DEP error.
How I can solve it without disabling DEP? or disabling DEP but without needing for PC or app restart or it's because of DEP or it's wrong message?
Thanks from now!