I am trying to create a remote thread on the "notepad.exe" process using CreateRemoteThread() but i am getting error code 5 "Access-Denied". I tried enabling debug permissions due to the intergrity level being "High" but that did not do the trick. I know my function works since i tested it on a simple console app and it created it successfully. So there seems to be some sort of issue aside from if not also debug privileges that im missing.
I apologize for not posting the code, i currently dont have access to it.