I came across this issue once when testing my injector on a friends 64bit machine.
After some debugging, i noticed i wasnt able to get the process handle of a 32bit process on a 64bit machine.
In the build settings i changed the cpu type from *any to x86.
This would allow my injector and trainers to work on 32/64bit without issues.