在一个钩子dll中设置变量注入一个单独的进程? [英] Set variable in a hook dll injected into a separate process?

查看:82
本文介绍了在一个钩子dll中设置变量注入一个单独的进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



我有一个很好地注入到指定进程中的钩子dll但我需要告诉它有关程序中bool变量的状态做了注射。这可能吗?有相反的线程,将数据从hookproc发送到主机但不发送到hookproc。



有些情况我不希望钩子到当双击发生时,它会做什么,在我的过程中作为一个bool持有一段时间。



顺便说一句:它只是一个通过setwindowshookex()的钩子不是callremotethread的东西。



谢谢1,000,000.99



:Ron

解决方案

注入通常涉及在目标进程中创建新线程。如果线程仍在运行,请尝试 PostThreadMessage [ ^ ]

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

解决方案

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


这篇关于在一个钩子dll中设置变量注入一个单独的进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆