Hook 32-bit and 64-bit processes at the same time
Hook 32-bit and 64-bit processes at the same time
I need a global API hook to work for all processes in a x64 Windows 8 system. I based my injector code on the HookProcessCreation sample but even the original DllInjector32.exe OR DllInjector64.exe run exclusively, not parallel. If the 64 bit version is started, LoadInjectionDriver in the 32 bit injector fails and vice versa. What is the proper way to hook both subsystems?
Re: Hook 32-bit and 64-bit processes at the same time
The proper way is to use DllInjector64.exe on 64bit OSs to inject both the 32bit and 64bit dlls.
Re: Hook 32-bit and 64-bit processes at the same time
Und wieder eine "danke schön"!
It is just not obvious that a 64 bit executable can handle a 32 bit dll in InjectLibrary because normally any LoadLibrary or whatever attempts would fail, now that's clear.
It is just not obvious that a 64 bit executable can handle a 32 bit dll in InjectLibrary because normally any LoadLibrary or whatever attempts would fail, now that's clear.