system-wide hook for 64-bit operating systems

Posted by strDisplayName on Stack Overflow See other posts from Stack Overflow or by strDisplayName
Published on 2011-02-28T07:15:18Z Indexed on 2011/02/28 7:24 UTC
Read the original article Hit count: 181

Filed under:
|
|

Hey everybody

I want to perform a system-wide hook (using SetWindowHook) on a 64bit operating system.

I know that 64bit processes (= proc64) can load only 64bit dlls (= dll64) and 32bit processes (= proc32) can load only 32bit dlls (= dll32).

Currently I am planning to call SetWindowHook twice, once with dll32 and once with dll64, expecting that proc64s will load dll64 and proc32s will load dll32 (while dll32 for proc64s and dll64 for proc32s will fail).

Is that the correct way to do that, or is there a "more correct" way to do that?

Thanks! :-)

© Stack Overflow or respective owner

Related posts about c++

Related posts about window