I have a dll injector app and want inject a 32bit dll file in a 32bit process like for example 32 bit version of cmd.exe on Windows x64, but only is possible inject a 64 bit dll :-(
String sysdir = System.getenv("WINDIR") + "\\System32\\cmd.exe";
Before, my injector executes target process using CreateProcess
api by Java Native Access (JNA).
After this execution, i can see from of Process Hacker software that really was executed 32 bit version of cmd.exe.
But when try inject a 32 bit dll, not works, already injecting 64 bit dll works!
Why this is happen?
All suggestion are welcome!