Click here to Skip to main content
15,867,990 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all.

I have a hook dll nicely injected into the specified process but I need to tell it about the state of a bool variable in the program that did the injecting. Is this possible? There are threads galore about the opposite, sending data from the hookproc to a host but not TO the hookproc.

There are instances where I don't want the hook to do what it does specifically when a double click has happened which is held as a bool for a time in my process.

btw: it's just a hook via setwindowshookex() not the callremotethread stuff.

Thanks 1,000,000.99

:Ron
Posted

1 solution

Injecting usually involves creating a new thread in the target process. If the thread is still running, try PostThreadMessage[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900