c++ - Hook 32bit Process In 64bit Windows -


I have a problem using keyboard hook on window 7 64 bit. I do this work: 1. a 32 Bit DLL 2. Load it on application and set WindowHookEx

I have successfully bent over 32bit application (Y, M, Skype ...), but when I use desktop or any 64 bit application (Notepad) until the application stops my hook application until it stops. I make 64 bit DLL, do it from the top, and found the same problem with 32 bit process.

So, I think the problem is in my 32 bit DLL, the 64 bit process can not be injected. But I do not know how I can process 64 bit DLL when the window is focusing on it.

I have no idea how to do this, and how to do it. Or can I just hook up on 32 bit process and not hook over the 64 bit process, can you show me the way to do this? Thank you.

The problem is that you can not load 32-bit DLLs in 64-bit processes, or In a 32-bit process from a 64-bit DLL:

... 64-bit DLL can not load for 32-bit process execution, and for 64-bit process execution Can not load 32-bit DLL.

You will need two versions of your DLL: 32-bit and 64-bit but this is only part of the solution. Additionally, you will need to determine the architecture of that process in which You want to load your DLL. The WINAPI function can determine this, but it takes a binary that should get your code.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -